| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/posts-table.7f651cd1.js.tar |
home/xbodynamge/dev/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/posts-table.7f651cd1.js 0000644 00000050336 15115000056 0026715 0 ustar 00 import{o as i,c as m,a as l,v as g,k as u,b as n,l as a,x as d,t as o,H as p,J as h,m as tt,K as M,Y as R,h as B}from"./js/runtime-dom.esm-bundler.baf35205.js";import{l as et}from"./js/index.7c01c5f2.js";import{l as st}from"./js/index.7fee6f1a.js";import{l as it}from"./js/index.d80c2c2c.js";import{c as U,u as O,j as ot,q as H,h as I,a as D,l as j}from"./js/index.4fea5b8a.js";import{a as nt}from"./js/allowed.269a2007.js";import{u as Z}from"./js/TruSeoScore.d16c2dfa.js";import{t as F,r as lt,j as rt}from"./js/helpers.da4c5c22.js";import{l as N}from"./js/license.ae04185d.js";import{_ as q,b as G,f as J}from"./js/Caret.7cc96622.js";import{C as K}from"./js/HtmlTagsEditor.3190787b.js";import{_ as at}from"./js/ScoreButton.16c8a595.js";import{C as Q}from"./js/Tooltip.70b51a50.js";import{_ as ct}from"./js/IndexStatus.9f10668d.js";import{S as dt}from"./js/LogoGear.383c5312.js";import{_ as A}from"./js/_plugin-vue_export-helper.eefbdd86.js";import"./js/translations.d159963e.js";import{_ as y}from"./js/default-i18n.20001971.js";/* empty css */import"./js/helpers.114e9c35.js";import"./js/metabox.5993e7e8.js";import"./js/cleanForSlug.2f987c7a.js";import"./js/toString.bbd66337.js";import"./js/contentHasAssets.e1428256.js";import"./js/_baseSet.a1a8944e.js";import"./js/regex.8a6101c0.js";import"./js/upperFirst.eafa5318.js";import"./js/Editor.683d2097.js";import"./js/isEqual.5e2458d5.js";import"./js/_baseIsEqual.6ad153a3.js";import"./js/_getTag.423682f1.js";import"./js/_baseClone.8bb70b4f.js";import"./js/_arrayEach.6af5abac.js";import"./js/UnfilteredHtml.5963c49b.js";import"./js/constants.a8a14dc3.js";import"./js/CheckSolid.1941c38f.js";const pt={},ut={viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-headline-analyzer"},mt=l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5448 1.76771H14.6665V1.79272L10.5448 4.61008V1.76771ZM5.46515 8.08232V1.76779H1.34351V4.8899L1.34378 4.71192L5.42731 8.10819L5.46515 8.08232ZM1.34351 11.4568L5.46515 14.2652V15.0999H1.34351V11.4568ZM10.5448 10.8851L14.6665 8.14027V15.0982H10.5448V10.8851Z",fill:"currentColor"},null,-1),ht=l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.46515 8.05739L5.42731 8.08325L1.34378 4.68698L1.34351 4.86412V1.76779H5.46515V8.05739ZM5.46515 14.2083L1.34351 11.3998V15.0999H5.46515V14.2083ZM10.5448 10.8281L14.6665 8.08332V15.0982H10.5448V10.8281ZM14.6665 1.76778L10.5448 4.58515V1.76771H14.6665V1.76778Z",fill:"currentColor"},null,-1),gt=l("path",{d:"M5.42725 9.45857L14.6665 3.14303V6.76487L5.46703 12.8912L1.33325 10.0745L1.34372 6.06231L5.42725 9.45857Z",fill:"currentColor"},null,-1),_t=[mt,ht,gt];function ft(e,s){return i(),m("svg",ut,_t)}const wt=A(pt,[["render",ft]]),b="all-in-one-seo-pack",yt={setup(){const{runAnalysis:e,strings:s}=Z();return{composableStrings:s,optionsStore:U(),rootStore:O(),runAnalysis:e,searchStatisticsStore:ot()}},components:{BaseButton:q,CoreHtmlTagsEditor:K,CoreLoader:G,CoreScoreButton:at,CoreTooltip:Q,IndexStatus:ct,SvgAioseoLogoGear:dt,SvgHeadlineAnalyzer:wt,SvgPencil:J},props:{post:Object,posts:Array},data(){return{allowed:nt,postId:null,columnName:null,value:null,title:null,titleParsed:null,postDescription:null,descriptionParsed:null,imageTitle:null,imageAltTag:null,showEditTitle:!1,showEditDescription:!1,showEditImageTitle:!1,showEditImageAltTag:!1,showTruSeo:!1,isSpecialPage:!1,inspectionResult:{},inspectionResultLoading:!0,postLoading:!1,strings:H(this.composableStrings,{title:y("Title",b),description:y("Description",b),imageTitle:y("Image Title",b),imageAltTag:y("Image Alt Tag",b),saveChanges:y("Save Changes",b),discardChanges:y("Discard Changes",b),truSeoScore:y("TruSEO Score",b),headlineScore:y("Headline Score",b)}),license:N}},computed:{showIndexStatus(){if(!this.rootStore.isPro||!N.hasCoreFeature("search-statistics","index-status"))return!1;const e=!this.searchStatisticsStore.unverifiedSite,s=!!this.searchStatisticsStore.isConnected,c=this.allowed("aioseo_search_statistics_settings");return e&&s&&c},showHeadlineAnalyzer(){return this.rootStore.aioseo.data.isClassicEditorActive||this.post.postType==="product"||this.post.postType==="web-story"?!1:this.optionsStore.options.advanced.headlineAnalyzer}},methods:{save(){this.showEditTitle=!1,this.showEditDescription=!1,this.post.title=this.title,this.post.description=this.postDescription,this.postLoading=!0,I.post(D.restUrl("posts-list/update-details-column")).send({postId:this.post.id,title:this.post.title,description:this.post.description}).then(e=>{this.titleParsed=e.body.title,this.descriptionParsed=e.body.description,this.post.titleParsed=e.body.title,this.post.descriptionParsed=e.body.description,this.$root.$data.screen.base!=="upload"&&this.runAnalysis(this.post.id)}).catch(e=>{console.error(`Unable to update post with ID ${this.post.id}: ${e}`)}).finally(()=>{this.postLoading=!1})},saveColumn(){this.showEditImageTitle=!1,this.showEditImageAltTag=!1,this.post.title=this.title,this.post.description=this.postDescription,this.post.imageTitle=this.imageTitle,this.post.imageAltTag=this.imageAltTag,I.post(D.restUrl("posts-list/update-details-column")).send({postId:this.post.id,isMedia:!0,title:this.post.title,description:this.post.description,imageTitle:this.post.imageTitle,imageAltTag:this.post.imageAltTag}).then(()=>{this.updatePostTitle(this.post.id,this.post.imageTitle)}).catch(e=>{console.error(`Unable to update attachment with ID ${this.post.id}: ${e}`)})},cancel(){this.value=this.post.value,this.showEditTitle=!1,this.showEditDescription=!1,this.showEditImageTitle=!1,this.showEditImageAltTag=!1},editTitle(){this.showEditTitle=!0},editDescription(){this.showEditDescription=!0},editImageTitle(){this.showEditImageTitle=!0},editImageAlt(){this.showEditImageAltTag=!0},truncate:F,updatePostTitle(e,s){const c=document.getElementById(`post-${e}`);if(!c)return;const w=c.getElementsByClassName("title")[0].getElementsByTagName("a")[0];if(!w)return;const t=w.getElementsByTagName("span")[0];w.innerText=s,w.prepend(t)},updateInspectionResult(e){const{inspectionResult:s,inspectionResultLoading:c}=e;this.inspectionResult=s,this.inspectionResultLoading=c}},mounted(){this.postId=this.post.id,this.columnName=this.post.columnName,this.value=this.post.value,this.imageTitle=this.post.imageTitle,this.imageAltTag=this.post.imageAltTag,this.isSpecialPage=this.post.isSpecialPage,this.title=this.post.title||this.post.defaultTitle,this.titleParsed=this.post.titleParsed,this.postDescription=this.post.description||this.post.defaultDescription,this.descriptionParsed=this.post.descriptionParsed,this.inspectionResult=this.post.inspectionResult,this.inspectionResultLoading=this.post.inspectionResultLoading,this.post.reload&&this.save(),window.aioseoBus.$on("updateInspectionResult"+this.postId,this.updateInspectionResult)},beforeUnmount(){window.aioseoBus.$off("updateInspectionResult"+this.postId,this.updateInspectionResult)},async created(){this.showTruSeo=lt()}},Tt={key:0,class:"edit-row scores"},vt={class:"edit-row edit-title"},Ct={key:0},kt=l("strong",null,":",-1),bt={key:1,class:"edit-row"},St={class:"edit-row edit-description"},Et=["id"],It=l("strong",null,":",-1),Dt={key:2,class:"edit-row"},At={class:"edit-row edit-image-title"},Pt=["id"],Lt=l("strong",null,":",-1),Vt={key:3,class:"edit-row"},xt={class:"edit-row edit-image-alt"},Nt=["id"],zt=l("strong",null,":",-1),Mt={key:4,class:"edit-row"};function Rt(e,s,c,w,t,r){const T=g("index-status"),C=g("svg-headline-analyzer"),v=g("core-score-button"),_=g("core-tooltip"),f=g("svg-aioseo-logo-gear"),E=g("core-loader"),P=g("svg-pencil"),L=g("core-html-tags-editor"),k=g("base-button");return i(),m("div",{class:M(["aioseo-details-column",{editing:t.showEditTitle||t.showEditDescription||t.showEditImageTitle||t.showEditImageAltTag}])},[l("div",null,[e.$root.$data.screen.base==="edit"&&!t.isSpecialPage?(i(),m("div",Tt,[r.showIndexStatus?(i(),u(T,{key:0,result:t.inspectionResult,loading:t.inspectionResultLoading,viewable:c.post.isPostVisible,"tooltip-offset":"-150px,0"},null,8,["result","loading","viewable"])):n("",!0),r.showHeadlineAnalyzer?(i(),u(_,{key:1,type:"action"},{tooltip:a(()=>[d(o(t.strings.headlineScore),1)]),default:a(()=>[p(v,{score:c.post.headlineScore,postId:t.postId},{icon:a(()=>[p(C)]),_:1},8,["score","postId"])]),_:1})):n("",!0),t.showTruSeo&&t.allowed("aioseo_page_analysis")?(i(),u(_,{key:2,type:"action"},{tooltip:a(()=>[d(o(t.strings.truSeoScore),1)]),default:a(()=>[p(v,{score:c.post.value,postId:t.postId},{icon:a(()=>[p(f)]),_:1},8,["score","postId"])]),_:1})):n("",!0)])):n("",!0),l("div",null,[t.allowed("aioseo_page_general_settings")&&c.post.showTitle?(i(),u(_,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditTitle},{tooltip:a(()=>[l("strong",null,o(t.strings.title)+":",1),d(" "+o(t.titleParsed),1)]),default:a(()=>[l("div",vt,[l("strong",null,o(t.strings.title),1),t.showEditTitle?n("",!0):(i(),m("span",Ct,[kt,d(" "+o(r.truncate(t.titleParsed,100)),1)])),t.postLoading?(i(),u(E,{key:1,dark:""})):n("",!0),t.showEditTitle?n("",!0):(i(),u(P,{key:2,class:"pencil-icon",onClick:h(r.editTitle,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):n("",!0)]),t.showEditTitle?(i(),m("div",bt,[p(L,{modelValue:t.title,"onUpdate:modelValue":s[0]||(s[0]=S=>t.title=S),"line-numbers":!1,single:"","tags-context":"postTitle",defaultMenuOrientation:"bottom",tagsDescription:"","default-tags":["post_title"]},null,8,["modelValue"]),p(k,{type:"gray",size:"small",onClick:h(r.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(r.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):n("",!0),l("div",null,[t.allowed("aioseo_page_general_settings")&&c.post.showDescription?(i(),u(_,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditDescription},{tooltip:a(()=>[l("strong",null,o(t.strings.description)+":",1),d(" "+o(r.truncate(t.descriptionParsed)),1)]),default:a(()=>[l("div",St,[l("strong",null,o(t.strings.description),1),t.showEditDescription?n("",!0):(i(),m("span",{key:0,id:`aioseo-${t.columnName}-${t.postId}-value`},[It,d(" "+o(r.truncate(t.descriptionParsed)),1)],8,Et)),t.postLoading?(i(),u(E,{key:1,dark:""})):n("",!0),t.showEditDescription?n("",!0):(i(),u(P,{key:2,class:"pencil-icon",onClick:h(r.editDescription,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):n("",!0)]),t.showEditDescription?(i(),m("div",Dt,[p(L,{modelValue:t.postDescription,"onUpdate:modelValue":s[1]||(s[1]=S=>t.postDescription=S),"line-numbers":!1,"tags-context":"postDescription",defaultMenuOrientation:"bottom",tagsDescription:"","default-tags":["post_excerpt"]},null,8,["modelValue"]),p(k,{type:"gray",size:"small",onClick:h(r.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(r.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):n("",!0),tt(e.$slots,"default"),l("div",null,[e.$root.$data.screen.base==="upload"&&c.post.showMedia?(i(),u(_,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditImageTitle},{tooltip:a(()=>[l("strong",null,o(t.strings.imageTitle)+":",1),d(" "+o(t.imageTitle),1)]),default:a(()=>[l("div",At,[l("strong",null,o(t.strings.imageTitle),1),t.showEditImageTitle?n("",!0):(i(),m("span",{key:0,id:`aioseo-${t.columnName}-${t.postId}-value`},[Lt,d(" "+o(t.imageTitle),1)],8,Pt)),t.showEditImageTitle?n("",!0):(i(),u(P,{key:1,class:"pencil-icon",onClick:h(r.editImageTitle,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):n("",!0)]),t.showEditImageTitle?(i(),m("div",Vt,[p(L,{modelValue:t.imageTitle,"onUpdate:modelValue":s[2]||(s[2]=S=>t.imageTitle=S),"line-numbers":!1,single:"","tags-context":"imageSeoTitleColumn",defaultMenuOrientation:"bottom",tagsDescription:"","default-tags":[]},null,8,["modelValue"]),p(k,{type:"gray",size:"small",onClick:h(r.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(r.saveColumn,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):n("",!0),l("div",null,[e.$root.$data.screen.base==="upload"&&c.post.showMedia?(i(),u(_,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditImageAltTag},{tooltip:a(()=>[l("strong",null,o(t.strings.imageAltTag)+":",1),d(" "+o(t.imageAltTag),1)]),default:a(()=>[l("div",xt,[l("strong",null,o(t.strings.imageAltTag),1),t.showEditImageAltTag?n("",!0):(i(),m("span",{key:0,id:`aioseo-${t.columnName}-${t.postId}-value`},[zt,d(" "+o(t.imageAltTag),1)],8,Nt)),t.showEditImageAltTag?n("",!0):(i(),u(P,{key:1,class:"pencil-icon",onClick:h(r.editImageAlt,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):n("",!0)]),t.showEditImageAltTag?(i(),m("div",Mt,[p(L,{modelValue:t.imageAltTag,"onUpdate:modelValue":s[3]||(s[3]=S=>t.imageAltTag=S),"line-numbers":!1,single:"","tags-context":"imageSeoAltColumn",defaultMenuOrientation:"bottom",tagsDescription:"","default-tags":[]},null,8,["modelValue"]),p(k,{type:"gray",size:"small",onClick:h(r.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(r.saveColumn,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):n("",!0)])],2)}const Bt=A(yt,[["render",Rt]]),Ut={components:{CorePostColumn:Bt},props:{post:Object}};function Ot(e,s,c,w,t,r){const T=g("core-post-column");return i(),u(T,{post:c.post},null,8,["post"])}const z=A(Ut,[["render",Ot]]),Ht={setup(){return{rootStore:O()}},components:{PostColumn:z,PostColumnLite:z},props:{post:Object}},jt={class:"aioseo-app"};function Zt(e,s,c,w,t,r){const T=g("PostColumn"),C=g("PostColumnLite");return i(),m("div",jt,[w.rootStore.isPro?(i(),u(T,{key:0,post:c.post},null,8,["post"])):n("",!0),w.rootStore.isPro?n("",!0):(i(),u(C,{key:1,post:c.post},null,8,["post"]))])}const Ft=A(Ht,[["render",Zt]]),V="all-in-one-seo-pack",qt={setup(){const{strings:e}=Z();return{composableStrings:e}},components:{BaseButton:q,CoreHtmlTagsEditor:K,CoreLoader:G,CoreTooltip:Q,SvgPencil:J},props:{term:Object,terms:Array,index:Number},data(){return{termId:null,columnName:null,title:null,titleParsed:null,termDescription:null,descriptionParsed:null,showEditTitle:!1,showEditDescription:!1,showTruSeo:!1,termLoading:!1,showTitle:!0,showDescription:!0,strings:H(this.composableStrings,{title:y("Title",V),description:y("Description",V),saveChanges:y("Save Changes",V),discardChanges:y("Discard Changes",V)})}},methods:{save(){this.showEditTitle=!1,this.showEditDescription=!1,this.term.title=this.title,this.term.description=this.termDescription,this.termLoading=!0,I.post(D.restUrl("terms-list/update-details-column")).send({termId:this.term.id,title:this.term.title,description:this.term.description}).then(e=>{this.titleParsed=e.body.title,this.descriptionParsed=e.body.description,this.term.titleParsed=e.body.title,this.term.descriptionParsed=e.body.description,this.showTitle=e.body.showTitle,this.showDescription=e.body.showDescription}).catch(e=>{console.error(`Unable to update term with ID ${this.term.id}: ${e}`)}).finally(()=>{this.termLoading=!1})},cancel(){this.showEditTitle=!1,this.showEditDescription=!1},editTitle(){this.showEditTitle=!0},editDescription(){this.showEditDescription=!0},truncate:F},mounted(){this.termId=this.term.id,this.columnName=this.term.columnName,this.title=this.term.title,this.titleParsed=this.term.titleParsed,this.termDescription=this.term.description,this.descriptionParsed=this.term.descriptionParsed,this.showTitle=this.term.showTitle,this.showDescription=this.term.showDescription,this.term.reload&&this.save()},async created(){this.showTruSeo=rt()}},Gt={class:"aioseo-app"},Jt={key:0},Kt={class:"edit-row edit-title"},Qt={key:0},Xt=l("strong",null,":",-1),Yt={key:1,class:"edit-row"},Wt={key:2},$t={class:"edit-row edit-description"},te={key:0},ee=l("strong",null,":",-1),se={key:3,class:"edit-row"};function ie(e,s,c,w,t,r){const T=g("core-loader"),C=g("svg-pencil"),v=g("core-tooltip"),_=g("core-html-tags-editor"),f=g("base-button");return i(),m("div",Gt,[l("div",{class:M(["aioseo-details-column",{editing:t.showEditTitle||t.showEditDescription}])},[l("div",null,[t.showTitle?(i(),m("div",Jt,[p(v,{class:"aioseo-details-column__tooltip"},{tooltip:a(()=>[l("strong",null,o(t.strings.title)+":",1),d(" "+o(t.titleParsed),1)]),default:a(()=>[l("div",Kt,[l("strong",null,o(t.strings.title),1),t.showEditTitle?n("",!0):(i(),m("span",Qt,[Xt,d(" "+o(r.truncate(t.titleParsed,100)),1)])),t.termLoading?(i(),u(T,{key:1,dark:""})):n("",!0),t.showEditTitle?n("",!0):(i(),u(C,{key:2,class:"pencil-icon",onClick:h(r.editTitle,["prevent"])},null,8,["onClick"]))])]),_:1})])):n("",!0),t.showEditTitle?(i(),m("div",Yt,[p(_,{modelValue:t.title,"onUpdate:modelValue":s[0]||(s[0]=E=>t.title=E),"line-numbers":!1,single:"","tags-context":"taxonomyTitle",defaultMenuOrientation:"bottom",tagsDescription:"","default-tags":["taxonomy_title"]},null,8,["modelValue"]),p(f,{type:"gray",size:"small",onClick:h(r.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(f,{type:"blue",size:"small",onClick:h(r.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):n("",!0),t.showDescription?(i(),m("div",Wt,[p(v,{class:"aioseo-details-column__tooltip"},{tooltip:a(()=>[l("strong",null,o(t.strings.description)+":",1),d(" "+o(t.descriptionParsed),1)]),default:a(()=>[l("div",$t,[l("strong",null,o(t.strings.description),1),t.showEditDescription?n("",!0):(i(),m("span",te,[ee,d(" "+o(r.truncate(t.descriptionParsed)),1)])),t.termLoading?(i(),u(T,{key:1,dark:""})):n("",!0),t.showEditDescription?n("",!0):(i(),u(C,{key:2,class:"pencil-icon",onClick:h(r.editDescription,["prevent"])},null,8,["onClick"]))])]),_:1})])):n("",!0),t.showEditDescription?(i(),m("div",se,[p(_,{modelValue:t.termDescription,"onUpdate:modelValue":s[1]||(s[1]=E=>t.termDescription=E),"line-numbers":!1,"tags-context":"taxonomyDescription",defaultMenuOrientation:"bottom",tagsDescription:"","default-tags":["taxonomy_description"]},null,8,["modelValue"]),p(f,{type:"gray",size:"small",onClick:h(r.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(f,{type:"blue",size:"small",onClick:h(r.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):n("",!0)])],2)])}const oe=A(qt,[["render",ie]]);j();const X=e=>(e=et(e),e=st(e),e=it(e),j(e),e),Y=e=>{const s=document.getElementById(e);s!=null&&s.__vue_app__&&s.__vue_app__.unmount()},W=e=>{Y(`${e.columnName}-${e.id}`),X(R({name:"Standalone/PostsTable/"+e.id,data(){return{screen:window.aioseo.screen}},render:()=>B(Ft)},{post:e})).mount(`#${e.columnName}-${e.id}`)},$=e=>{if(!e)return;const s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name","aioseo-has-details-column"),s.setAttribute("value",!0),e.append(s)};window.aioseo.posts&&0<window.aioseo.posts.length&&I.post(D.restUrl("posts-list/load-details-column")).send({ids:window.aioseo.posts.map(e=>e.id)}).then(e=>{window.aioseo.posts=window.aioseo.posts.map(s=>({...s,...e.body.posts.find(c=>c.id===s.id)})),window.aioseo.posts.forEach(s=>{W(s)})});const x=e=>{Y(`${e.columnName}-${e.id}`),X(R({name:"Standalone/TermsTable/"+e.id,data(){return{screen:window.aioseo.screen}},render:()=>B(oe)},{term:e})).mount(`#${e.columnName}-${e.id}`)};window.aioseo.terms&&0<window.aioseo.terms.length&&window.aioseo.posts.length===0&&I.post(D.restUrl("terms-list/load-details-column")).send({ids:window.aioseo.terms.map(e=>e.id)}).then(e=>{window.aioseo.terms=window.aioseo.terms.map(s=>({...s,...e.body.terms.find(c=>c.id===s.id)})),window.aioseo.terms.forEach(s=>{x(s)})});$(document.querySelector("#inline-edit div"));$(document.getElementById("addtag"));(function(e){e(document).on("ajaxComplete",(s,c,w)=>{var T,C;const t=new URLSearchParams(w.data),r=t==null?void 0:t.get("action");if(!(!t||!r)){if(r==="inline-save"){const{post_ID:v}=Object.fromEntries(t.entries()),_=window.aioseo.posts.find(f=>f.id===parseInt(v));W({..._,reload:!0})}if(r==="inline-save-tax"){const{tax_ID:v}=Object.fromEntries(t.entries()),_=window.aioseo.terms.find(f=>f.id===parseInt(v));x({..._,reload:!0})}if(r==="add-tag"){const v=e(c.responseXML).find("term_id").text(),_=e(c.responseXML).find("term taxonomy").text(),f=U();x({id:parseInt(v),columnName:"aioseo-details",title:(T=f.dynamicOptions.searchAppearance.taxonomies[_])==null?void 0:T.title,description:(C=f.dynamicOptions.searchAppearance.taxonomies[_])==null?void 0:C.metaDescription,reload:!0})}}})})(window.jQuery);