Файловый менеджер - Редактировать - /home/harasnat/www/labour/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/posts-table.ff7a4055.js
Назад
import{o as i,c as m,a as r,x as g,l as u,b as l,m as a,y as d,t as o,H as p,J as h,q as et,K as M,Y as B,h as R}from"./js/runtime-dom.esm-bundler.c4caba60.js";import{l as st}from"./js/index.7c01c5f2.js";import{l as it}from"./js/index.f3c7a985.js";import{l as ot}from"./js/index.d80c2c2c.js";import{c as U,u as O,k as nt,q as H,h as I,a as D,l as Z}from"./js/index.21ff19c6.js";import{a as lt}from"./js/allowed.de48db46.js";import{u as j}from"./js/TruSeoScore.ba6ffe27.js";import{t as q,r as rt,j as at}from"./js/SchemaStore.e1c60a5d.js";import{l as N}from"./js/license.9ca44136.js";import{_ as F,e as G,f as J}from"./js/Caret.cc16468c.js";import{C as K}from"./js/HtmlTagsEditor.481c71d7.js";import{_ as ct}from"./js/ScoreButton.cad549af.js";import{C as Q}from"./js/Tooltip.e12834fc.js";import{_ as dt}from"./js/IndexStatus.c4967031.js";import{S as pt}from"./js/LogoGear.a15cc3e7.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.a0b389be.js";import"./js/metabox.c14c3439.js";import"./js/cleanForSlug.cacc99d0.js";import"./js/toString.1e64e8a6.js";import"./js/contentHasAssets.e1428256.js";import"./js/_baseSet.ca702273.js";import"./js/regex.8a6101c0.js";import"./js/upperFirst.9d3c89a3.js";import"./js/Editor.9bd1daf6.js";import"./js/isEqual.34cebf90.js";import"./js/_baseIsEqual.e5574158.js";import"./js/_getTag.69d3a807.js";import"./js/_baseClone.b312b692.js";import"./js/_arrayEach.6af5abac.js";import"./js/UnfilteredHtml.765c4abc.js";import"./js/constants.fe8bda37.js";import"./js/CheckSolid.b3bb7c27.js";const ut={},mt={viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-headline-analyzer"},ht=r("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),gt=r("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),_t=r("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),ft=[ht,gt,_t];function wt(e,s){return i(),m("svg",mt,ft)}const yt=A(ut,[["render",wt]]),b="all-in-one-seo-pack",Tt={setup(){const{runAnalysis:e,strings:s}=j();return{composableStrings:s,optionsStore:U(),rootStore:O(),runAnalysis:e,searchStatisticsStore:nt()}},components:{BaseButton:F,CoreHtmlTagsEditor:K,CoreLoader:G,CoreScoreButton:ct,CoreTooltip:Q,IndexStatus:dt,SvgAioseoLogoGear:pt,SvgHeadlineAnalyzer:yt,SvgPencil:J},props:{post:Object,posts:Array},data(){return{allowed:lt,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:q,updatePostTitle(e,s){const c=document.getElementById(`post-${e}`);if(!c)return;const _=c.getElementsByClassName("title")[0].getElementsByTagName("a")[0];if(!_)return;const t=_.getElementsByTagName("span")[0];_.innerText=s,_.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=rt()}},vt={key:0,class:"edit-row scores"},Ct={class:"edit-row edit-title"},kt={key:0},bt=r("strong",null,":",-1),St={key:1,class:"edit-row"},Et={class:"edit-row edit-description"},It=["id"],Dt=r("strong",null,":",-1),At={key:2,class:"edit-row"},Pt={class:"edit-row edit-image-title"},Lt=["id"],Vt=r("strong",null,":",-1),xt={key:3,class:"edit-row"},Nt={class:"edit-row edit-image-alt"},zt=["id"],Mt=r("strong",null,":",-1),Bt={key:4,class:"edit-row"};function Rt(e,s,c,_,t,n){const T=g("index-status"),C=g("svg-headline-analyzer"),v=g("core-score-button"),f=g("core-tooltip"),w=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}])},[r("div",null,[e.$root.$data.screen.base==="edit"&&!t.isSpecialPage?(i(),m("div",vt,[n.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"])):l("",!0),n.showHeadlineAnalyzer?(i(),u(f,{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})):l("",!0),t.showTruSeo&&t.allowed("aioseo_page_analysis")?(i(),u(f,{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(w)]),_:1},8,["score","postId"])]),_:1})):l("",!0)])):l("",!0),r("div",null,[t.allowed("aioseo_page_general_settings")&&c.post.showTitle?(i(),u(f,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditTitle},{tooltip:a(()=>[r("strong",null,o(t.strings.title)+":",1),d(" "+o(t.titleParsed),1)]),default:a(()=>[r("div",Ct,[r("strong",null,o(t.strings.title),1),t.showEditTitle?l("",!0):(i(),m("span",kt,[bt,d(" "+o(n.truncate(t.titleParsed,100)),1)])),t.postLoading?(i(),u(E,{key:1,dark:""})):l("",!0),t.showEditTitle?l("",!0):(i(),u(P,{key:2,class:"pencil-icon",onClick:h(n.editTitle,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):l("",!0)]),t.showEditTitle?(i(),m("div",St,[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(n.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(n.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):l("",!0),r("div",null,[t.allowed("aioseo_page_general_settings")&&c.post.showDescription?(i(),u(f,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditDescription},{tooltip:a(()=>[r("strong",null,o(t.strings.description)+":",1),d(" "+o(n.truncate(t.descriptionParsed)),1)]),default:a(()=>[r("div",Et,[r("strong",null,o(t.strings.description),1),t.showEditDescription?l("",!0):(i(),m("span",{key:0,id:`aioseo-${t.columnName}-${t.postId}-value`},[Dt,d(" "+o(n.truncate(t.descriptionParsed)),1)],8,It)),t.postLoading?(i(),u(E,{key:1,dark:""})):l("",!0),t.showEditDescription?l("",!0):(i(),u(P,{key:2,class:"pencil-icon",onClick:h(n.editDescription,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):l("",!0)]),t.showEditDescription?(i(),m("div",At,[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(n.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(n.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):l("",!0),et(e.$slots,"default"),r("div",null,[e.$root.$data.screen.base==="upload"&&c.post.showMedia?(i(),u(f,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditImageTitle},{tooltip:a(()=>[r("strong",null,o(t.strings.imageTitle)+":",1),d(" "+o(t.imageTitle),1)]),default:a(()=>[r("div",Pt,[r("strong",null,o(t.strings.imageTitle),1),t.showEditImageTitle?l("",!0):(i(),m("span",{key:0,id:`aioseo-${t.columnName}-${t.postId}-value`},[Vt,d(" "+o(t.imageTitle),1)],8,Lt)),t.showEditImageTitle?l("",!0):(i(),u(P,{key:1,class:"pencil-icon",onClick:h(n.editImageTitle,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):l("",!0)]),t.showEditImageTitle?(i(),m("div",xt,[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(n.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(n.saveColumn,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):l("",!0),r("div",null,[e.$root.$data.screen.base==="upload"&&c.post.showMedia?(i(),u(f,{key:0,class:"aioseo-details-column__tooltip",disabled:t.showEditImageAltTag},{tooltip:a(()=>[r("strong",null,o(t.strings.imageAltTag)+":",1),d(" "+o(t.imageAltTag),1)]),default:a(()=>[r("div",Nt,[r("strong",null,o(t.strings.imageAltTag),1),t.showEditImageAltTag?l("",!0):(i(),m("span",{key:0,id:`aioseo-${t.columnName}-${t.postId}-value`},[Mt,d(" "+o(t.imageAltTag),1)],8,zt)),t.showEditImageAltTag?l("",!0):(i(),u(P,{key:1,class:"pencil-icon",onClick:h(n.editImageAlt,["prevent"])},null,8,["onClick"]))])]),_:1},8,["disabled"])):l("",!0)]),t.showEditImageAltTag?(i(),m("div",Bt,[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(n.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(k,{type:"blue",size:"small",onClick:h(n.saveColumn,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):l("",!0)])],2)}const Ut=A(Tt,[["render",Rt]]),Ot={components:{CorePostColumn:Ut},props:{post:Object}};function Ht(e,s,c,_,t,n){const T=g("core-post-column");return i(),u(T,{post:c.post},null,8,["post"])}const z=A(Ot,[["render",Ht]]),Zt={setup(){return{rootStore:O()}},components:{PostColumn:z,PostColumnLite:z},props:{post:Object}},jt={class:"aioseo-app"};function qt(e,s,c,_,t,n){const T=g("PostColumn"),C=g("PostColumnLite");return i(),m("div",jt,[_.rootStore.isPro?(i(),u(T,{key:0,post:c.post},null,8,["post"])):l("",!0),_.rootStore.isPro?l("",!0):(i(),u(C,{key:1,post:c.post},null,8,["post"]))])}const Ft=A(Zt,[["render",qt]]),V="all-in-one-seo-pack",Gt={setup(){const{strings:e}=j();return{composableStrings:e}},components:{BaseButton:F,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:q},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=at()}},Jt={class:"aioseo-app"},Kt={key:0},Qt={class:"edit-row edit-title"},Xt={key:0},Yt=r("strong",null,":",-1),Wt={key:1,class:"edit-row"},$t={key:2},te={class:"edit-row edit-description"},ee={key:0},se=r("strong",null,":",-1),ie={key:3,class:"edit-row"};function oe(e,s,c,_,t,n){const T=g("core-loader"),C=g("svg-pencil"),v=g("core-tooltip"),f=g("core-html-tags-editor"),w=g("base-button");return i(),m("div",Jt,[r("div",{class:M(["aioseo-details-column",{editing:t.showEditTitle||t.showEditDescription}])},[r("div",null,[t.showTitle?(i(),m("div",Kt,[p(v,{class:"aioseo-details-column__tooltip"},{tooltip:a(()=>[r("strong",null,o(t.strings.title)+":",1),d(" "+o(t.titleParsed),1)]),default:a(()=>[r("div",Qt,[r("strong",null,o(t.strings.title),1),t.showEditTitle?l("",!0):(i(),m("span",Xt,[Yt,d(" "+o(n.truncate(t.titleParsed,100)),1)])),t.termLoading?(i(),u(T,{key:1,dark:""})):l("",!0),t.showEditTitle?l("",!0):(i(),u(C,{key:2,class:"pencil-icon",onClick:h(n.editTitle,["prevent"])},null,8,["onClick"]))])]),_:1})])):l("",!0),t.showEditTitle?(i(),m("div",Wt,[p(f,{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(w,{type:"gray",size:"small",onClick:h(n.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(w,{type:"blue",size:"small",onClick:h(n.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):l("",!0),t.showDescription?(i(),m("div",$t,[p(v,{class:"aioseo-details-column__tooltip"},{tooltip:a(()=>[r("strong",null,o(t.strings.description)+":",1),d(" "+o(t.descriptionParsed),1)]),default:a(()=>[r("div",te,[r("strong",null,o(t.strings.description),1),t.showEditDescription?l("",!0):(i(),m("span",ee,[se,d(" "+o(n.truncate(t.descriptionParsed)),1)])),t.termLoading?(i(),u(T,{key:1,dark:""})):l("",!0),t.showEditDescription?l("",!0):(i(),u(C,{key:2,class:"pencil-icon",onClick:h(n.editDescription,["prevent"])},null,8,["onClick"]))])]),_:1})])):l("",!0),t.showEditDescription?(i(),m("div",ie,[p(f,{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(w,{type:"gray",size:"small",onClick:h(n.cancel,["prevent"])},{default:a(()=>[d(o(t.strings.discardChanges),1)]),_:1},8,["onClick"]),p(w,{type:"blue",size:"small",onClick:h(n.save,["prevent"])},{default:a(()=>[d(o(t.strings.saveChanges),1)]),_:1},8,["onClick"])])):l("",!0)])],2)])}const ne=A(Gt,[["render",oe]]);Z();const X=e=>(e=st(e),e=it(e),e=ot(e),Z(e),e),Y=e=>{const s=document.getElementById(e);s!=null&&s.__vue_app__&&s.__vue_app__.unmount()},W=(e,s)=>{if(!document.getElementById(`${e.columnName}-${e.id}`)){const _=document.querySelector(`tr#${s}-${e.id}`),t=_==null?void 0:_.querySelector(".column-aioseo-details");if(t){const n=document.createElement("div");n.id=`aioseo-details-${e.id}`,t.appendChild(n)}}},$=e=>{Y(`${e.columnName}-${e.id}`),W(e,"post"),X(B({name:"Standalone/PostsTable/"+e.id,data(){return{screen:window.aioseo.screen}},render:()=>R(Ft)},{post:e})).mount(`#${e.columnName}-${e.id}`)},tt=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=>{$(s)})});const x=e=>{Y(`${e.columnName}-${e.id}`),W(e,"tag"),X(B({name:"Standalone/TermsTable/"+e.id,data(){return{screen:window.aioseo.screen}},render:()=>R(ne)},{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)})});tt(document.querySelector("#inline-edit div"));tt(document.getElementById("addtag"));(function(e){e(document).on("ajaxComplete",(s,c,_)=>{var T,C;const t=new URLSearchParams(_.data),n=t==null?void 0:t.get("action");if(!(!t||!n)){if(n==="inline-save"){const{post_ID:v}=Object.fromEntries(t.entries()),f=window.aioseo.posts.find(w=>w.id===parseInt(v));$({...f,reload:!0})}if(n==="inline-save-tax"){const{tax_ID:v}=Object.fromEntries(t.entries()),f=window.aioseo.terms.find(w=>w.id===parseInt(v));x({...f,reload:!0})}if(n==="add-tag"){const v=e(c.responseXML).find("term_id").text(),f=e(c.responseXML).find("term taxonomy").text(),w=U();x({id:parseInt(v),columnName:"aioseo-details",title:(T=w.dynamicOptions.searchAppearance.taxonomies[f])==null?void 0:T.title,description:(C=w.dynamicOptions.searchAppearance.taxonomies[f])==null?void 0:C.metaDescription,reload:!0})}}})})(window.jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка