← Back
Editing: Index.72c0c67e.js
import{e as ne}from"./regex.8a6101c0.js";import{e as Ce,C as ye,A as Te,M as Le,y as fe,m as de,t as ue,u as Ue,l as Ae,h as tt}from"./index.44a18132.js";import{g as Y,f as se,N as Be,x as D,o as d,l as q,m as _,a as l,E as H,C as w,t as h,y as U,c as k,b as f,q as st,u as t,G as ie,F as Ye,J as Fe,v as ot}from"./runtime-dom.esm-bundler.647fa2bb.js";import{u as ce}from"./WpTable.7b5ee4fa.js";import{C as pe}from"./Tooltip.e09c91a9.js";import{C as ge}from"./Table.bda6cb9a.js";import{S as he}from"./External.3cb8d983.js";import{S as be}from"./index.6b623118.js";import"./translations.d159963e.js";import{_ as a,s as N,a as Ve}from"./default-i18n.20001971.js";import{u as Pe}from"./PostTypes.dafa8837.js";import{S as Ke}from"./Suggestion.fa878fb0.js";import{G as ze}from"./constants.a9947cd8.js";import{S as nt,a as Ze,f as it,C as We}from"./Caret.c1ae0fd1.js";import{C as rt}from"./Tabs.f8a7d298.js";import{C as lt}from"./Index.739df96e.js";import{_ as le}from"./_plugin-vue_export-helper.eefbdd86.js";import{B as at}from"./Editor.438f3063.js";import{T as je}from"./Slide.44995a8e.js";import{S as Ge}from"./Plus.718d11aa.js";import{a as ut,b as dt}from"./Affiliate.bfa1b695.js";const ct=()=>{let n=Ce().currentPost.postStatus;return ye()&&(n=window.wp.data.select("core/editor").getCurrentPostAttribute("status")),n},tn=()=>{const s=i=>{const c=i.links.suggestionsOutbound.rows,u=[];return c.forEach(g=>{n(g)||u.push(g)}),u},n=i=>ye()?e(i):Te()?r(i):!1,e=i=>{const c=window.wp.data.select("core/block-editor").getBlocks();return c?v(c,i):!1},v=(i,c)=>{let u=!1;return i.forEach(g=>{u||!g.attributes||c.suggestions.forEach(P=>{const I=ne(P.context.permalink.trim()),A=new RegExp(`(<a href="${I}"[^<>]*>)(.*)(</a[^<>]*>)`,"i");if(g.attributes.content&&g.attributes.content.search(A)!==-1){u=!0;return}if(!g.innerBlocks)return;v(g.innerBlocks,c)&&(u=!0)})}),u},r=i=>{let c="",u=null,g=null;if(document.querySelector("#wp-content-wrap.tmce-active")?(u=window.tinyMCE.get("content"),c=u.getContent({format:"raw"})):(g=document.querySelector("textarea#content"),c=g?g.value:""),!c)return!1;let P=!1;return i.suggestions.forEach(I=>{const A=ne(I.context.permalink.trim()),x=new RegExp(`(<a href="${A}"[^<>]*>)(.*)(</a[^<>]*>)`,"i");c.search(x)!==-1&&(P=!0)}),P};return{filteredSuggestionsOutbound:s}},Je=()=>{const s=(n,e)=>{const v=ne(e);let r=null;return n.forEach(i=>{if(r||!i.attributes)return;if(i.attributes.content&&i.attributes.content.search(v)!==-1){r=i.clientId;return}if(!i.innerBlocks)return;const c=s(i.innerBlocks,e);c&&(r=c)}),r};return{findTargetBlock:s}},re="all-in-one-seo-pack",_e=(s={})=>{const{emit:n,linkType:e,linksReport:v,metabox:r,pageNumber:i,post:c,postIndex:u,postReport:g,refreshTable:P=()=>{},wpTableLoading:I}=s,A=Y(""),x="linkAssistantPostsReport",R=Y([]),S=Y(!1),G=se(()=>{if(!r)return c.links[e].rows;const b=i.value===1?0:(i.value-1)*10;return c.links[e].rows.slice(b,b+10)}),O={frontPage:a("Front Page",re),deleteLink:a("Delete Link",re)},J={areYouSureSingle:a("Are you sure you want to delete this link?",re),areYouSureMultiple:a("Are you sure you want to delete these links?",re),areYouSureAll:a("Are you sure you want to delete all links?",re),actionCannotBeUndone:a("This action cannot be undone.",re),yesSingle:a("Yes, I want to delete this link",re),yesMultiple:a("Yes, I want to delete these links",re),yesAll:a("Yes, I want to delete all links",re),noChangedMind:a("No, I changed my mind",re)},j=[{label:a("Delete",re),value:"delete"}],z=Le(),C=Ce(),F=b=>{window.aioseoBus.$emit("updatingLinks",!0);const y={...b,additionalFilters:{postId:c.ID||C.currentPost.id,postIndex:u,type:e}};return z[g?"fetchPostReport":"fetchLinksReportInner"](y).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1)})},X=b=>{window.location.href=`#/post-report?postId=${c.ID}&postIndex=${u}&initialTab=${b}`},Q=({action:b,selectedRows:y})=>{!y.length||!b||(A.value=b,R.value=y,S.value=!0)},ee=()=>{if(S.value=!1,!!R.value.length){if(typeof R.value=="number"){te(R.value);return}if(r&&e!=="inboundInternal"){$(R.value).forEach(y=>{E(y)});return}window.aioseoBus.$emit("updatingLinks",!0),z.linksBulk({postIndex:u,postId:c.ID||C.currentPost.id,action:A.value,linkType:e,linkIds:R.value,linksReport:v,postReport:g}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated"),P()})}},te=b=>{const y=c.links[e].rows[b].id;if(y){if(r&&e!=="inboundInternal"){E(b);return}window.aioseoBus.$emit("updatingLinks",!0),z.linkDelete({postIndex:u,postId:c.ID||C.currentPost.id,linkId:y,linksReport:v,postReport:g}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated"),P()})}},E=b=>{ye()&&(window.aioseoBus.$emit("updatingLinks",!1),Z(b),window.aioseoBus.$emit("updatingLinks",!1)),Te()&&L(b)},Z=b=>{const y=C.currentPost.linkAssistant.links[e].rows[b];if(!y)return;window.aioseoBus.$emit("updatingLinks",!0);const B=ne(y.anchor.trim()),o=y.phrase_html.trim(),p=ne(o),m=window.wp.data.select("core/block-editor").getBlocks(),{findTargetBlock:M}=Je(),V=M(m,o);if(!V){window.aioseoBus.$emit("updatingLinks",!1);return}const T=window.wp.data.select("core/block-editor").getBlock(V);if(!T){window.aioseoBus.$emit("updatingLinks",!1);return}let W=new RegExp(`(<t?a[^<>]*>)(.*)?(${B})(.*)?(</t?a[^<>]*>)`,"i");const oe=o.replace(W,"$2$3$4");W=new RegExp(`${p}`,"i"),window.wp.data.dispatch("core/block-editor").updateBlockAttributes(V,{content:T.attributes.content.replace(W,oe)}).then(()=>{c.links[e].rows.splice(b,1)}).catch(me=>{console.error(`Couldn delete link with type "${e}" and index ${b}:`,me)}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated")})},L=b=>{var oe;const y=C.currentPost.linkAssistant.links[e].rows[b];if(!y||!window.tinyMCE)return;window.aioseoBus.$emit("updatingLinks",!0);let B="",o=null,p=null;if(document.querySelector("#wp-content-wrap.tmce-active")?(o=window.tinyMCE.get("content"),B=o.getContent({format:"raw"})):(p=document.querySelector("textarea#content"),B=p?p.value:""),!B){window.aioseoBus.$emit("updatingLinks",!1);return}let m=y.phrase_html.trim();o||(m=m.replace(/(\sdata-mce-href=".*")/gi,""));const M=ne(y.anchor.trim());let V=new RegExp(`(<t?a[^<>]*>)(.*)?(${M})(.*)?(</t?a[^<>]*>)`,"i");const T=m.replace(V,"$2$3$4"),W=ne(m);V=new RegExp(`${W}`,"i"),B=B.replace(V,T),o?o.setContent(B):p.value=B,c.links[e].rows.splice(b,1),(oe=z.postSettingsUpdate({postContent:B}))==null||oe.finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated")})},$=b=>{let y,B=[];return Array.isArray(b)&&(y=b.map(Number)),y&&c.links[e].rows.forEach((o,p)=>{y.includes(o.id)&&B.push(p)}),b==="all"&&(B=c.links[e].rows.map((o,p)=>p)),B.sort(function(o,p){return p-o})};return Be(()=>{window.aioseoBus.$on("updatingLinks",b=>{I.value=b}),i.value=z.postReport[e].totals.page}),{bulkOptions:j,changeItemsPerPageSlug:x,doBulkAction:ee,fetchData:F,maybeDoBulkAction:Q,modalStrings:J,openPostReport:X,rows:G,selectedRows:R,showModal:S,strings:O}},pt={emits:["closeModal","doBulkAction"],components:{CoreModal:lt,SvgClose:nt},props:{selectedRows:{required:!0},strings:{type:Object,required:!0},show:Boolean},computed:{areYouSure(){return this.selectedRows==="all"?this.strings.areYouSureAll:Array.isArray(this.selectedRows)&&1<this.selectedRows.length?this.strings.areYouSureMultiple:this.strings.areYouSureSingle},confirmation(){return this.selectedRows==="all"?this.strings.yesAll:Array.isArray(this.selectedRows)&&1<this.selectedRows.length?this.strings.yesMultiple:this.strings.yesSingle}}},gt={class:"aioseo-modal-body"},ht=["innerHTML"];function kt(s,n,e,v,r,i){const c=D("svg-close"),u=D("base-button"),g=D("core-modal");return d(),q(g,{show:e.show,classes:["aioseo-link-assistant-confirmation-modal"],"no-header":"",onClose:n[4]||(n[4]=P=>s.$emit("closeModal",!0))},{body:_(()=>[l("div",gt,[l("button",{class:"close",onClick:n[1]||(n[1]=H(P=>s.$emit("closeModal",!0),["stop"]))},[w(c,{onClick:n[0]||(n[0]=P=>s.$emit("closeModal",!0))})]),l("h3",null,h(i.areYouSure),1),l("div",{class:"reset-description",innerHTML:e.strings.actionCannotBeUndone},null,8,ht),w(u,{type:"blue",size:"medium",onClick:n[2]||(n[2]=P=>s.$emit("doBulkAction",P))},{default:_(()=>[U(h(i.confirmation),1)]),_:1}),w(u,{type:"gray",size:"medium",onClick:n[3]||(n[3]=P=>s.$emit("closeModal",!0))},{default:_(()=>[U(h(e.strings.noChangedMind),1)]),_:1})])]),_:1},8,["show"])}const ke=le(pt,[["render",kt]]),mt={components:{CoreTooltip:pe},props:{phrase:{type:String,required:!0},phraseHtml:{type:String,required:!0},anchor:{type:String,required:!0},url:{type:String,required:!0},tooltip:{type:Boolean,required:!1,default:!0},clickableAnchor:{type:Boolean,default(){return!1}}},computed:{partPattern(){const s=fe.decode(this.anchor),n=ne(s);return new RegExp(`(.*)(<t?a[^>]*>.*${n}.*</t?a>)(.*)`,"i")},firstPart(){return fe.decode(this.stripTags(this.getPart(1)).trimStart())},linkAnchor(){return fe.decode(this.stripTags(this.getPart(2)))},lastPart(){return fe.decode(this.stripTags(this.getPart(3)).trimEnd())}},methods:{getPart(s){const e=fe.decode(this.stripTags(this.phraseHtml,!0)).match(this.partPattern);return e?e[s]:""},stripTags(s,n=!1){return s=s.replace(/<br\s?\/?>/gi," "),n?s.replace(/<(?!a\s)(?!\/a)[^>]*>/gi,""):s.replace(/<[^>]*>/gi,"")},maybeOpenLink(){this.clickableAnchor&&window.open(this.url,"_blank").focus()}}},ft={class:"phrase"},bt={key:0,class:"first"},vt=["href"],wt={key:2},yt={class:"anchor"},Pt={key:3,class:"last"};function _t(s,n,e,v,r,i){const c=D("core-tooltip");return d(),k("div",{class:"aioseo-link-assistant-phrase",onMouseover:n[1]||(n[1]=u=>s.$emit("mouseOver")),onMouseleave:n[2]||(n[2]=u=>s.$emit("mouseLeave"))},[l("span",ft,[i.firstPart?(d(),k("span",bt,h(i.firstPart),1)):f("",!0),e.tooltip?(d(),q(c,{key:1,type:"action"},{tooltip:_(()=>[l("a",{class:"tooltip-url",href:e.url,target:"_blank"},h(e.url),9,vt)]),default:_(()=>[l("span",{class:"anchor",onClick:n[0]||(n[0]=(...u)=>i.maybeOpenLink&&i.maybeOpenLink(...u))},h(i.linkAnchor),1)]),_:1})):f("",!0),e.tooltip?f("",!0):(d(),k("div",wt,[l("span",yt,h(i.linkAnchor),1)])),i.lastPart?(d(),k("span",Pt,h(i.lastPart),1)):f("",!0)]),st(s.$slots,"icons")],32)}const ve=le(mt,[["render",_t]]),It={key:0,class:"links-bottom"},xt={class:"links-bottom-left"},St={key:0},Rt={class:"links-bottom-right"},$t="affiliate",Me="aioseo-post-report-affiliate",sn={__name:"Affiliate",props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},linksReport:{type:Boolean,default(){return!1}},postReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}}},emits:["linksUpdated"],setup(s,{emit:n}){const e="aioseo-pro",v=de(),r=s,i=n,c=Y(1),u=Y(!1),{bulkOptions:g,changeItemsPerPageSlug:P,doBulkAction:I,fetchData:A,maybeDoBulkAction:x,modalStrings:R,openPostReport:S,rows:G,selectedRows:O,showModal:J,strings:j}=_e({emit:i,linkType:$t,linksReport:r.linksReport,metabox:r.metabox,pageNumber:c,post:r.post,postIndex:r.postIndex,postReport:r.postReport,refreshTable:()=>F(),wpTableLoading:u}),{processChangeItemsPerPage:z,processFetchTableData:C,refreshTable:F,wpTableKey:X}=ce({changeItemsPerPageSlug:P,fetchData:A,pageNumber:c,tableId:Me,wpTableLoading:u}),Q=ue(j,{deleteAllLinks:N(a("Delete All %1$s Links",e),a("Affiliate",e))}),ee=se(()=>[{slug:"phrase",label:a("Phrase",e)},{slug:"delete",width:"50px"}]),te=se(()=>N(a("See All %1$s %2$s Links",e),r.post.links.affiliate.totals.total,a("Affiliate",e))),E=Z=>{c.value=Z,!r.metabox&&(u.value=!0,C().then(()=>u.value=!1))};return(Z,L)=>(d(),k("div",null,[(d(),q(t(ge),{"bulk-options":t(g),class:ie({"link-assistant-inner-table":!s.postReport}),columns:ee.value,id:Me,"initial-items-per-page":t(v).settings.tablePagination.linkAssistantPostsReport,"initial-page-number":c.value,key:t(X),loading:u.value,rows:t(G),"show-pagination":!s.linksReport,"show-search":!1,"show-table-footer":s.postReport,totals:s.post.links.affiliate.totals,"show-items-per-page":"",onPaginate:E,onProcessBulkAction:t(x),onProcessChangeItemsPerPage:t(z)},{phrase:_(({row:$})=>[w(t(ve),{phrase:$.phrase,phraseHtml:$.phrase_html,anchor:$.anchor,url:$.url,clickableAnchor:!0},null,8,["phrase","phraseHtml","anchor","url"])]),delete:_(({row:$})=>[w(t(pe),{type:"action"},{tooltip:_(()=>[U(h(t(Q).deleteLink),1)]),default:_(()=>[w(t(be),{onClick:b=>t(x)({action:"delete",selectedRows:[$.id]})},null,8,["onClick"])]),_:2},1024)]),_:1},8,["bulk-options","class","columns","initial-items-per-page","initial-page-number","loading","rows","show-pagination","show-table-footer","totals","onProcessBulkAction","onProcessChangeItemsPerPage"])),s.postReport?f("",!0):(d(),k("div",It,[l("div",xt,[s.post.links.affiliate.totals.total>5&&s.postReport?(d(),k("div",St,[w(t(he)),l("a",{class:"link-view",href:"#",onClick:L[0]||(L[0]=H($=>t(S)("affiliate"),["prevent"]))},h(te.value),1)])):f("",!0)]),l("div",Rt,[s.post.links.affiliate.rows.length?(d(),k("a",{key:0,class:"link-delete",onClick:L[1]||(L[1]=H($=>t(x)({action:"delete",selectedRows:"all"}),["prevent"]))},h(t(Q).deleteAllLinks),1)):f("",!0)])])),w(t(ke),{show:t(J),selectedRows:t(O),strings:t(R),onDoBulkAction:t(I),onCloseModal:L[2]||(L[2]=$=>J.value=!1)},null,8,["show","selectedRows","strings","onDoBulkAction"])]))}},At={key:0,class:"links-bottom"},Ct={class:"links-bottom-left"},Tt={key:0},Lt={class:"links-bottom-right"},Bt="external",Ee="aioseo-post-report-external",on={__name:"External",props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},linksReport:{type:Boolean,default(){return!1}},postReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}}},emits:["linksUpdated"],setup(s,{emit:n}){const e="aioseo-pro",v=de(),r=s,i=n,c=Y(1),u=Y(!1),{bulkOptions:g,changeItemsPerPageSlug:P,doBulkAction:I,fetchData:A,maybeDoBulkAction:x,modalStrings:R,openPostReport:S,rows:G,selectedRows:O,showModal:J,strings:j}=_e({emit:i,linkType:Bt,linksReport:r.linksReport,metabox:r.metabox,pageNumber:c,post:r.post,postIndex:r.postIndex,postReport:r.postReport,refreshTable:()=>F(),wpTableLoading:u}),{processChangeItemsPerPage:z,processFetchTableData:C,refreshTable:F,wpTableKey:X}=ce({changeItemsPerPageSlug:P,fetchData:A,pageNumber:c,tableId:Ee,wpTableLoading:u}),Q=ue(j,{deleteAllLinks:N(a("Delete All %1$s Links",e),a("External",e))}),ee=se(()=>[{slug:"phrase",label:a("Phrase",e)},{slug:"delete",width:"50px"}]),te=se(()=>N(a("See All %1$s %2$s Links",e),r.post.links.external.totals.total,a("External",e))),E=Z=>{c.value=Z,!r.metabox&&(u.value=!0,C().then(()=>u.value=!1))};return(Z,L)=>(d(),k("div",null,[(d(),q(t(ge),{"bulk-options":t(g),class:ie({"link-assistant-inner-table":!s.postReport}),columns:ee.value,id:Ee,"initial-items-per-page":t(v).settings.tablePagination.linkAssistantPostsReport,"initial-page-number":c.value,key:t(X),loading:u.value,rows:t(G),"show-pagination":!s.linksReport,"show-search":!1,"show-table-footer":s.postReport,totals:s.post.links.external.totals,"show-items-per-page":"",onPaginate:E,onProcessBulkAction:t(x),onProcessChangeItemsPerPage:t(z)},{phrase:_(({row:$})=>[w(t(ve),{phrase:$.phrase,phraseHtml:$.phrase_html,anchor:$.anchor,url:$.url,clickableAnchor:!0},null,8,["phrase","phraseHtml","anchor","url"])]),delete:_(({row:$})=>[w(t(pe),{type:"action"},{tooltip:_(()=>[U(h(t(Q).deleteLink),1)]),default:_(()=>[w(t(be),{onClick:b=>t(x)({action:"delete",selectedRows:[$.id]})},null,8,["onClick"])]),_:2},1024)]),_:1},8,["bulk-options","class","columns","initial-items-per-page","initial-page-number","loading","rows","show-pagination","show-table-footer","totals","onProcessBulkAction","onProcessChangeItemsPerPage"])),s.postReport?f("",!0):(d(),k("div",At,[l("div",Ct,[s.post.links.external.totals.total>5&&s.linksReport?(d(),k("div",Tt,[w(t(he)),l("a",{class:"link-view",href:"#",onClick:L[0]||(L[0]=H($=>t(S)("external"),["prevent"]))},h(te.value),1)])):f("",!0)]),l("div",Lt,[s.post.links.external.rows.length?(d(),k("a",{key:0,class:"link-delete",onClick:L[1]||(L[1]=H($=>t(x)({action:"delete",selectedRows:"all"}),["prevent"]))},h(t(Q).deleteAllLinks),1)):f("",!0)])])),w(t(ke),{show:t(J),selectedRows:t(O),strings:t(R),onDoBulkAction:t(I),onCloseModal:L[2]||(L[2]=$=>J.value=!1)},null,8,["show","selectedRows","strings","onDoBulkAction"])]))}},Mt={key:0},Et={key:0,class:"row-actions"},Ot={class:"view"},Dt=["href"],qt={class:"edit"},Ht=["href"],Nt={key:0,class:"links-bottom"},Ut={class:"links-bottom-left"},Yt={key:1},Ft={class:"links-bottom-right"},Vt="inboundInternal",Oe="aioseo-post-report-inbound-internal",nn={__name:"InboundInternal",props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},linksReport:{type:Boolean,default(){return!1}},postReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}}},emits:["linksUpdated","openSuggestions"],setup(s,{emit:n}){const e="all-in-one-seo-pack",v=Ue(),r=de(),i=s,c=n,u=Y(1),g=Y(!1),{bulkOptions:P,changeItemsPerPageSlug:I,doBulkAction:A,fetchData:x,maybeDoBulkAction:R,modalStrings:S,openPostReport:G,rows:O,selectedRows:J,showModal:j,strings:z}=_e({emit:c,linkType:Vt,linksReport:i.linksReport,metabox:i.metabox,pageNumber:u,post:i.post,postIndex:i.postIndex,postReport:i.postReport,refreshTable:()=>ee(),wpTableLoading:g}),{editPost:C,viewPost:F}=Pe(),{processChangeItemsPerPage:X,processFetchTableData:Q,refreshTable:ee,wpTableKey:te}=ce({changeItemsPerPageSlug:I,fetchData:x,pageNumber:u,tableId:Oe,wpTableLoading:g}),E=ue(z,{deleteAllLinks:N(a("Delete All %1$s Links",e),a("Inbound Internal",e)),outboundSuggestions:N(a("%1$s Link Suggestions",e),a("Inbound",e))}),Z=se(()=>[{slug:"post_title",label:a("Post Title",e)},{slug:"phrase",label:a("Phrase",e)},{slug:"delete",width:"50px"}]),L=se(()=>N(a("See All %1$s %2$s Links",e),i.post.links.inboundInternal.totals.total,a("Inbound Internal",e))),$=b=>{u.value=b,!i.metabox&&(g.value=!0,Q().then(()=>g.value=!1))};return(b,y)=>{const B=D("base-button");return d(),k("div",null,[(d(),q(t(ge),{id:Oe,key:t(te),class:ie({"link-assistant-inner-table":!s.postReport}),columns:Z.value,loading:g.value,rows:t(O),totals:s.post.links.inboundInternal.totals,"bulk-options":t(P),"initial-items-per-page":t(r).settings.tablePagination.linkAssistantPostsReport,"initial-page-number":u.value,"show-pagination":!s.linksReport,"show-search":!1,"show-table-footer":s.postReport,"show-items-per-page":"",onPaginate:$,onProcessBulkAction:t(R),onProcessChangeItemsPerPage:t(X)},{post_title:_(({row:o})=>{var p,m;return[l("span",null,[U(h(o.context.postTitle)+" ",1),((m=(p=o.context)==null?void 0:p.permalink)==null?void 0:m.replace(/\/$/,""))===t(v).aioseo.urls.home?(d(),k("span",Mt,"("+h(t(E).frontPage)+")",1)):f("",!0)]),o.context?(d(),k("div",Et,[l("span",Ot,[l("a",{href:o.context.permalink,target:"_blank"},h(t(F)(o.context.postType.singular)),9,Dt),U(" | ")]),l("span",qt,[l("a",{href:o.context.editLink,target:"_blank"},h(t(C)(o.context.postType.singular)),9,Ht)])])):f("",!0)]}),phrase:_(({row:o})=>[w(t(ve),{phrase:o.phrase,phraseHtml:o.phrase_html||"",anchor:o.anchor,url:o.url,clickableAnchor:!0},null,8,["phrase","phraseHtml","anchor","url"])]),delete:_(({row:o})=>[w(t(pe),{type:"action"},{tooltip:_(()=>[U(h(t(E).deleteLink),1)]),default:_(()=>[w(t(be),{onClick:p=>t(R)({action:"delete",selectedRows:[o.id]})},null,8,["onClick"])]),_:2},1024)]),_:1},8,["class","columns","loading","rows","totals","bulk-options","initial-items-per-page","initial-page-number","show-pagination","show-table-footer","onProcessBulkAction","onProcessChangeItemsPerPage"])),s.postReport?f("",!0):(d(),k("div",Nt,[l("div",Ut,[s.post.links.inboundInternal.rows.length?(d(),q(B,{key:0,type:"blue",tag:"button",onClick:y[0]||(y[0]=o=>c("openSuggestions"))},{default:_(()=>[w(t(Ke)),U(" "+h(t(E).outboundSuggestions),1)]),_:1})):f("",!0),s.post.links.inboundInternal.totals.total>5&&s.linksReport?(d(),k("div",Yt,[w(t(he)),l("a",{class:"link-view",href:"#",onClick:y[1]||(y[1]=H(o=>t(G)("inbound-internal"),["prevent"]))},h(L.value),1)])):f("",!0)]),l("div",Ft,[s.post.links.inboundInternal.rows.length?(d(),k("a",{key:0,class:"link-delete",onClick:y[2]||(y[2]=H(o=>t(R)({action:"delete",selectedRows:"all"}),["prevent"]))},h(t(E).deleteAllLinks),1)):f("",!0)])])),w(t(ke),{show:t(j),selectedRows:t(J),strings:t(S),onDoBulkAction:t(A),onCloseModal:y[3]||(y[3]=o=>j.value=!1)},null,8,["show","selectedRows","strings","onDoBulkAction"])])}}},Kt={key:0},zt={key:0},Zt={key:1},Wt={key:0},jt={key:2,class:"row-actions"},Gt={class:"view"},Jt=["href"],Qt={class:"edit"},Xt=["href"],es={key:3,class:"row-actions"},ts={class:"view"},ss=["href"],os={key:0,class:"links-bottom"},ns={class:"links-bottom-left"},is={key:1},rs={class:"links-bottom-right"},ls="outboundInternal",De="aioseo-post-report-outbound-internal",rn={__name:"OutboundInternal",props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},linksReport:{type:Boolean,default(){return!1}},postReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}}},emits:["linksUpdated","openSuggestions"],setup(s,{emit:n}){const e="aioseo-pro",v=Ue(),r=de(),i=s,c=n,u=Y(1),g=Y(!1),{bulkOptions:P,changeItemsPerPageSlug:I,doBulkAction:A,fetchData:x,maybeDoBulkAction:R,modalStrings:S,openPostReport:G,rows:O,selectedRows:J,showModal:j,strings:z}=_e({emit:c,linkType:ls,linksReport:i.linksReport,metabox:i.metabox,pageNumber:u,post:i.post,postIndex:i.postIndex,postReport:i.postReport,refreshTable:()=>ee(),wpTableLoading:g}),{editPost:C,viewPost:F}=Pe(),{processChangeItemsPerPage:X,processFetchTableData:Q,refreshTable:ee,wpTableKey:te}=ce({changeItemsPerPageSlug:I,fetchData:x,pageNumber:u,tableId:De,wpTableLoading:g}),E=ue(z,{deleteAllLinks:N(a("Delete All %1$s Links",e),a("Outbound Internal",e)),outboundSuggestions:N(a("%1$s Link Suggestions",e),a("Outbound",e)),openUrl:a("Open URL",e)}),Z=se(()=>[{slug:"post_title",label:a("Post Title / URL",e)},{slug:"phrase",label:a("Phrase",e)},{slug:"delete",width:"50px"}]),L=se(()=>N(a("See All %1$s %2$s Links",e),i.post.links.outboundInternal.totals.total,a("Outbound Internal",e))),$=b=>{u.value=b,!i.metabox&&(g.value=!0,Q().then(()=>g.value=!1))};return(b,y)=>{const B=D("base-button");return d(),k("div",null,[(d(),q(t(ge),{"bulk-options":t(P),class:ie({"link-assistant-inner-table":!s.postReport}),columns:Z.value,id:De,"initial-items-per-page":t(r).settings.tablePagination.linkAssistantPostsReport,"initial-page-number":u.value,key:t(te),loading:g.value,rows:t(O),"show-pagination":!s.linksReport,"show-search":!1,"show-table-footer":s.postReport,totals:s.post.links.outboundInternal.totals,"show-items-per-page":"",onPaginate:$,onProcessBulkAction:t(R),onProcessChangeItemsPerPage:t(X)},{post_title:_(({row:o})=>[o.context&&o.context.postTitle?(d(),k("span",Kt,[U(h(o.context.postTitle)+" ",1),o.url.replace(/\/$/,"")===t(v).aioseo.urls.home?(d(),k("span",zt,"("+h(t(E).frontPage)+")",1)):f("",!0)])):f("",!0),!o.context||!o.context.postTitle?(d(),k("span",Zt,[U(h(o.url)+" ",1),o.url.replace(/\/$/,"")===t(v).aioseo.urls.home?(d(),k("span",Wt,"("+h(t(E).frontPage)+")",1)):f("",!0)])):f("",!0),o.context?(d(),k("div",jt,[l("span",Gt,[l("a",{href:o.url,target:"_blank"},h(t(F)(o.context.postType.singular)),9,Jt),U(" | ")]),l("span",Qt,[l("a",{href:o.context.editLink,target:"_blank"},h(t(C)(o.context.postType.singular)),9,Xt)])])):f("",!0),o.context?f("",!0):(d(),k("div",es,[l("span",ts,[l("a",{href:o.url,target:"_blank"},h(t(E).openUrl),9,ss)])]))]),phrase:_(({row:o})=>[w(t(ve),{phrase:o.phrase,phraseHtml:o.phrase_html,anchor:o.anchor,url:o.url,clickableAnchor:!0},null,8,["phrase","phraseHtml","anchor","url"])]),delete:_(({row:o})=>[w(t(pe),{type:"action"},{tooltip:_(()=>[U(h(t(E).deleteLink),1)]),default:_(()=>[w(t(be),{onClick:p=>t(R)({action:"delete",selectedRows:[o.id]})},null,8,["onClick"])]),_:2},1024)]),_:1},8,["bulk-options","class","columns","initial-items-per-page","initial-page-number","loading","rows","show-pagination","show-table-footer","totals","onProcessBulkAction","onProcessChangeItemsPerPage"])),s.postReport?f("",!0):(d(),k("div",os,[l("div",ns,[s.post.links.outboundInternal.rows.length?(d(),q(B,{key:0,type:"blue",tag:"button",onClick:y[0]||(y[0]=o=>c("openSuggestions"))},{default:_(()=>[w(t(Ke)),U(" "+h(t(E).outboundSuggestions),1)]),_:1})):f("",!0),s.post.links.outboundInternal.totals.total>5&&s.linksReport?(d(),k("div",is,[w(t(he)),l("a",{class:"link-view",href:"#",onClick:y[1]||(y[1]=H(o=>t(G)("outbound-internal"),["prevent"]))},h(L.value),1)])):f("",!0)]),l("div",rs,[s.post.links.outboundInternal.rows.length?(d(),k("a",{key:0,class:"link-delete",onClick:y[2]||(y[2]=H(o=>t(R)({action:"delete",selectedRows:"all"}),["prevent"]))},h(t(E).deleteAllLinks),1)):f("",!0)])])),w(t(ke),{show:t(j),selectedRows:t(J),strings:t(S),onDoBulkAction:t(A),onCloseModal:y[3]||(y[3]=o=>j.value=!1)},null,8,["show","selectedRows","strings","onDoBulkAction"])])}}},K="aioseo-pro",Qe=(s={})=>{const{emit:n,suggestionType:e,linksReport:v,metabox:r,pageNumber:i,post:c,postIndex:u,postReport:g,refreshTable:P=()=>{},wpTableLoading:I}=s,A=Y(""),x=Y(-1),R="linkAssistantPostsReport",S=Y([]),G=Y(!1),O=se(()=>{if(!r)return c.links[e].rows;const o=i.value===1?0:(i.value-1)*10;return e==="suggestionsOutbound"?c.links[e].rows.slice(o,o+10):c.links[e].rows}),J=se(()=>A.value==="add"?{areYouSureSingle:a("Are you sure you want to add this suggestion?",K),areYouSureMultiple:a("Are you sure you want to add these suggestions?",K),areYouSureAll:a("Are you sure you want to add all suggestions?",K),actionCannotBeUndone:a("This action cannot be undone.",K),yesSingle:a("Yes, I want to add this suggestion",K),yesMultiple:a("Yes, I want to add these suggestions",K),yesAll:a("Yes, I want to add all suggestions",K),noChangedMind:a("No, I changed my mind",K)}:{areYouSureSingle:a("Are you sure you want to dismiss this suggestion?",K),areYouSureMultiple:a("Are you sure you want to dismiss these suggestions?",K),areYouSureAll:a("Are you sure you want to dismiss all suggestions?",K),actionCannotBeUndone:a("This action cannot be undone.",K),yesSingle:a("Yes, I want to dismiss this suggestion",K),yesMultiple:a("Yes, I want to dismiss these suggestions",K),yesAll:a("Yes, I want to dismiss all suggestions",K),noChangedMind:a("No, I changed my mind",K)}),j={addLink:a("Add Link",K),dismiss:a("Dismiss Suggestion",K)},z=[{label:a("Add Link",K),value:"add"},{label:a("Dismiss",K),value:"dismiss"}],C=Le(),F=Ce(),X=o=>{window.aioseoBus.$emit("updatingLinks",!0);const p={...o,additionalFilters:{postId:c.ID||F.currentPost.id,postIndex:u,type:e}};return C[g?"fetchPostReport":"fetchLinksReportInner"](p).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1)})},Q=o=>{if(x.value===o){x.value=-1;return}x.value=o},ee=(o,p)=>{window.location.href=`#/post-report?postId=${c.ID}&postIndex=${u}&initialTab=${o}&initialSuggestionTab=${p}`},te=o=>{let p=null;v&&(p=C.linksReport.rows[u].links[e].rows[o.postIndex]),g&&(p=C.postReport[e].rows[o.postIndex]),r&&(p=F.currentPost.linkAssistant.links[e].rows[o.postIndex]),p.suggestions[o.phraseIndex].phrase_html!==o.phraseHtml&&(p.suggestions[o.phraseIndex].phrase=o.phrase,p.suggestions[o.phraseIndex].phrase_html=o.phraseHtml,p.suggestions[o.phraseIndex].anchor=o.anchor)},E=(o,p)=>{let m=null;if(e==="suggestionsInbound"&&(m=p.selectedPhrase),e==="suggestionsOutbound"&&(m=p.selectedPostTitleIndex),m===!1||typeof m>"u"){console.error("Couldn't determine index of suggestion.");return}if(e==="suggestionsOutbound"){const V=ne(o.suggestions[0].context.permalink),T=ne(o.suggestions[m].context.permalink),W=new RegExp(`/${V}/`,"i"),oe=o.suggestions[0].phrase_html.replace(W,T);o.suggestions[m].phrase_html=oe,o.suggestions[m].anchor=o.suggestions[0].anchor}const M=o.suggestions[m];o.suggestions[m]=o.suggestions[0],o.suggestions[0]=M,Z({action:"add",selectedRows:o})},Z=({action:o,selectedRows:p})=>{p===!1||p===void 0||!o||(A.value=o,S.value=p,G.value=!0)},L=()=>{if(G.value=!1,!S.value)return;if(A.value==="dismiss"&&typeof S.value=="number"){$(S.value);return}if(S.value==="all"){window.aioseoBus.$emit("updatingLinks",!0),C.suggestionsBulk({postIndex:u,postId:c.ID||F.currentPost.id,action:A.value,suggestionType:e,suggestionRows:"all",linksReport:v,postReport:g}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated"),P()});return}let o=null;if(v&&(o=C.linksReport.rows[u].links[e].rows),g&&(o=C.postReport[e].rows),r){if(A.value==="add"&&e!=="suggestionsInbound"){if(window.aioseoBus.$emit("updatingLinks",!0),Array.isArray(S.value))S.value.forEach(m=>{b(m)});else{const m=S.value;b(m)}window.aioseoBus.$emit("updatingLinks",!1);return}o=F.currentPost.linkAssistant.links[e].rows}const p=[];Array.isArray(S.value)?S.value.forEach(m=>{p.push(o[m])}):p.push(S.value),window.aioseoBus.$emit("updatingLinks",!0),C.suggestionsBulk({postIndex:u,postId:c.ID||F.currentPost.id,action:A.value,suggestionType:e,suggestionRows:p,linksReport:v,postReport:g}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated"),P()})},$=o=>{window.aioseoBus.$emit("updatingLinks",!0),C.suggestionDismiss({postIndex:u,postId:c.ID||F.currentPost.id,suggestionId:o,linksReport:v,postReport:g}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1),n("linksUpdated"),P()})},b=o=>{ye()&&y(o),Te()&&B(o)},y=o=>{let p=null,m=null;if(isNaN(o)?O.value.forEach((ae,xe)=>{ae.suggestions[0].id===o.suggestions[0].id&&(p=ae,m=xe)}):(m=o,p=O.value[o]),!p||m===!1)return;window.aioseoBus.$emit("updatingLinks",!0);const M=window.wp.data.select("core/block-editor").getBlocks(),V=p.suggestions[0].original_phrase_html.trim(),{findTargetBlock:T}=Je(),W=T(M,V);if(!W){window.aioseoBus.$emit("updatingLinks",!1);return}const oe=window.wp.data.select("core/block-editor").getBlock(W);if(!oe){window.aioseoBus.$emit("updatingLinks",!1);return}const me=p.suggestions[0].phrase_html.trim(),Ie=ne(V),we=new RegExp(`(${Ie})`,"i");window.wp.data.dispatch("core/block-editor").updateBlockAttributes(W,{content:oe.attributes.content.replace(we,me)}).then(()=>{O.value.splice(m,1)}).catch(ae=>{console.error("Couldn't add outbound link:",ae)}).finally(()=>{C.postSettingsUpdate({postContent:window.wp.data.select("core/editor").getEditedPostContent(),skipNextRun:!0})})},B=o=>{var we;let p=null,m=null;if(isNaN(o)?O.value.forEach((ae,xe)=>{ae.suggestions[0].id===o.suggestions[0].id&&(p=ae,m=xe)}):(m=o,p=O.value[o]),!p||m===!1)return;window.aioseoBus.$emit("updatingLinks",!0);let M="",V=null,T=null;if(document.querySelector("#wp-content-wrap.tmce-active")?(V=window.tinyMCE.get("content"),M=V.getContent({format:"raw"})):(T=document.querySelector("textarea#content"),M=T?T.value:""),!M){window.aioseoBus.$emit("updatingLinks",!1);return}const W=p.suggestions[0].original_phrase_html.trim(),oe=ne(W),me=p.suggestions[0].phrase_html.trim(),Ie=new RegExp(`(${oe})`,"i");M=M.replace(Ie,me),V?V.setContent(M):T.value=M,O.value.splice(m,1),(we=C.postSettingsUpdate({postContent:M,skipNextRun:!0}))==null||we.finally(()=>{window.aioseoBus.$emit("updatingLinks",!1)})};return Be(()=>{window.aioseoBus.$on("updatingLinks",o=>{I.value=o}),i.value=C.postReport[e].totals.page}),{activeSuggestionRow:x,addLink:E,bulkOptions:z,changeItemsPerPageSlug:R,doBulkAction:L,fetchData:X,maybeDoBulkAction:Z,modalStrings:J,openPostReport:ee,rows:O,saveModifiedPhrase:te,selectedRows:S,showModal:G,strings:j,toggleShowMorePhrases:Q}},Se="aioseo-pro",as={emits:["saveEditor","closeEditor","update:modelValue"],components:{BaseEditor:at},props:{phrase:{type:String,required:!0},url:{type:String,required:!0},context:{type:String,required:!1}},data(){return{strings:{saveChanges:a("Save Changes",Se),cancel:a("Cancel",Se),context:a("Context",Se)}}},methods:{getPhrase(){return this.$refs.linkEditor.getPhrase()},getPhraseHtml(){return this.$refs.linkEditor.getPhraseHtml()},getPhraseWithFormats(){return this.$refs.linkEditor.getPhraseWithFormats()},selectionChange({range:s,source:n}){const e=document.querySelector(".ql-autoLink");e&&(!s||!s.length||n!=="user")?e.classList.add("ql-disabled"):e.classList.remove("ql-disabled")}},mounted(){this.$refs.linkEditor.setPhrase(this.phrase);const s=document.querySelector(".ql-autoLink");s&&(s.innerHTML='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"></line><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"></path><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"></path></svg>',s.classList.add("ql-disabled"))}},us={class:"aioseo-phrase-editor"},ds={key:0,class:"context"},cs={class:"context-label"},ps=["innerHTML"],gs={class:"action-buttons"};function hs(s,n,e,v,r,i){const c=D("base-editor"),u=D("base-button");return d(),k("div",us,[e.context?(d(),k("div",ds,[l("p",null,[l("strong",cs,h(r.strings.context)+":",1)]),l("p",{innerHTML:e.context},null,8,ps)])):f("",!0),w(c,{ref:"linkEditor","auto-link":{url:e.url,phrase:e.phrase},"show-toolbar":"","allow-tags":"","onUpdate:modelValue":n[0]||(n[0]=g=>s.$emit("update:modelValue",g)),onSelectionChange:i.selectionChange},null,8,["auto-link","onSelectionChange"]),l("div",gs,[w(u,{type:"blue",size:"small",onClick:n[1]||(n[1]=g=>s.$emit("saveEditor"))},{default:_(()=>[U(h(r.strings.saveChanges),1)]),_:1}),w(u,{type:"gray",size:"small",onClick:n[2]||(n[2]=g=>s.$emit("closeEditor"))},{default:_(()=>[U(h(r.strings.cancel),1)]),_:1})])])}const ks=le(as,[["render",hs]]),ms="aioseo-pro",fs={emits:["toggleShowMorePhrases","saveModifiedPhrase","delete"],components:{LinkAssistantPhrase:ve,LinkAssistantPhraseEditor:ks,SvgCaret:Ze,SvgPencil:it,SvgTrash:be,TransitionSlide:je},props:{row:{type:Object,required:!0},rowIndex:{type:Number,default:0},activeRow:{type:Number,default:-1},postIndex:{type:Number,required:!1},suggestionType:{type:String,required:!1},selectedPostTitleIndex:{type:Number,required:!1,default(){return 0}},linkSuggestion:{type:Boolean,default(){return!1}},domainsReport:{type:Boolean,default(){return!1}}},data(){return{phraseIndex:-1,showEditor:-1,hoveringOver:-1,selectedPhrase:0}},computed:{phrases(){return this.linkSuggestion?this.row.suggestions.slice(0,10):this.row.links.slice(0,10)},url(){return this.domainsReport?this.phrases[this.phraseIndex].url:this.suggestionType==="suggestionsInbound"?this.row.context.permalink:this.suggestionType==="suggestionsOutbound"?this.row.suggestions[this.selectedPostTitleIndex].context.permalink:""},showingMorePhrases(){return 1<this.phrases.length&&this.activeRow===this.rowIndex},viewMorePhrasesLabel(){const s=1<this.phrases.length?this.phrases.length-1:0;return N(Ve("%1$d more phrase","%1$d more phrases",s,ms),s)},phraseContext(){let s="",n="";if(this.linkSuggestion){const r=this.row.suggestions[this.phraseIndex];s=r.phrase.trim(),n=r.paragraph.trim()}else{const r=this.row.links[this.phraseIndex];s=r.phrase.trim(),n=r.paragraph.trim()}if(s===n)return"";const e=ne(s),v=new RegExp(e,"i");return n.match(v)&&(n=n.replace(v,`<strong>${s}</strong>`)),n}},methods:{tooltipUrl(s,n){return this.domainsReport?n.url:this.suggestionType==="suggestionsInbound"?s.permalink:this.suggestionType==="suggestionsOutbound"&&s.suggestions[this.selectedPostTitleIndex]?s.suggestions[this.selectedPostTitleIndex].context.permalink:""},openEditor(s,n){this.phraseIndex=n,this.showEditor=s},processModifiedPhrase(){this.showEditor=-1,this.hoveringOver=-1;const s=this.$refs.linkEditor.getPhrase(),n=this.$refs.linkEditor.getPhraseHtml(),e=this.$refs.linkEditor.getPhraseWithFormats();let v="";e.ops.forEach(r=>{var i;(i=r==null?void 0:r.attributes)!=null&&i.link&&(v=v+r.insert)}),v&&this.$emit("saveModifiedPhrase",{phrase:s,phraseHtml:n,anchor:v,postIndex:this.rowIndex,phraseIndex:this.phraseIndex})},deleteLink(s,n,e){s.stopPropagation(),s.preventDefault(),this.$emit("delete",{postIndex:n,linkIndex:e})}}},bs={class:"aioseo-editable-phrase"},vs={class:"domains-report-editable-phrase"},ws={key:0},ys=["checked"],Ps={class:"icons"},_s={key:0,class:"show-more-phrases"},Is=["onClick"],xs=["checked","onClick"],Ss={class:"icons"};function Rs(s,n,e,v,r,i){const c=D("svg-pencil"),u=D("svg-trash"),g=D("link-assistant-phrase"),P=D("svg-caret"),I=D("transition-slide"),A=D("link-assistant-phrase-editor");return d(),k("div",bs,[l("div",vs,[r.showEditor!==e.rowIndex?(d(),k("div",ws,[l("div",{class:"editable-phrase first-phrase",onClick:n[4]||(n[4]=x=>i.openEditor(e.rowIndex,0))},[e.linkSuggestion&&i.showingMorePhrases&&e.suggestionType!=="suggestionsOutbound"?(d(),k("input",{key:0,type:"radio",checked:r.selectedPhrase===0,onClick:n[0]||(n[0]=H(x=>r.selectedPhrase=0,["stop"]))},null,8,ys)):f("",!0),w(g,{url:i.tooltipUrl(e.row,i.phrases[0]),phrase:i.phrases[0].phrase,phraseHtml:i.phrases[0].phrase_html,anchor:i.phrases[0].anchor,class:ie({hover:r.hoveringOver===0}),onMouseOver:n[2]||(n[2]=x=>r.hoveringOver=0),onMouseLeave:n[3]||(n[3]=x=>r.hoveringOver=-1)},{icons:_(()=>[l("span",Ps,[w(c),e.domainsReport?(d(),q(u,{key:0,onClick:n[1]||(n[1]=x=>i.deleteLink(x,e.rowIndex,0))})):f("",!0)])]),_:1},8,["url","phrase","phraseHtml","anchor","class"])]),e.suggestionType!=="suggestionsOutbound"&&1<i.phrases.length&&r.showEditor!==e.rowIndex?(d(),k("div",_s,[l("a",{href:"#",onClick:n[5]||(n[5]=H(x=>{s.$emit("toggleShowMorePhrases",e.rowIndex),r.selectedPhrase=0},["prevent"]))},[l("div",null,h(i.viewMorePhrasesLabel),1),w(P,{class:ie({rotated:i.showingMorePhrases})},null,8,["class"])])])):f("",!0),w(I,{class:"phrases-list",tag:"div",active:i.showingMorePhrases&&e.suggestionType!=="suggestionsOutbound"},{default:_(()=>[(d(!0),k(Ye,null,Fe(i.phrases,(x,R)=>(d(),k("div",{class:"editable-phrase-container",key:R},[R?(d(),k("div",{key:0,class:"editable-phrase selectable-phrase",onClick:S=>i.openEditor(e.rowIndex,R)},[e.linkSuggestion&&i.showingMorePhrases?(d(),k("input",{key:0,type:"radio",checked:R===r.selectedPhrase,onClick:H(S=>r.selectedPhrase=R,["stop"])},null,8,xs)):f("",!0),w(g,{url:i.tooltipUrl(e.row,i.phrases[0]),phrase:x.phrase,phraseHtml:x.phrase_html,anchor:x.anchor,class:ie({hover:R===r.hoveringOver}),onMouseOver:S=>r.hoveringOver=R,onMouseLeave:n[6]||(n[6]=S=>r.hoveringOver=-1)},{icons:_(()=>[l("div",Ss,[w(c),e.domainsReport?(d(),q(u,{key:0,onClick:S=>i.deleteLink(S,e.rowIndex,R)},null,8,["onClick"])):f("",!0)])]),_:2},1032,["url","phrase","phraseHtml","anchor","class","onMouseOver"])],8,Is)):f("",!0)]))),128))]),_:1},8,["active"])])):f("",!0),r.showEditor===e.rowIndex?(d(),q(A,{key:1,ref:"linkEditor",modelValue:i.phrases[r.phraseIndex].phrase,phrase:i.phrases[r.phraseIndex].phrase_html,url:i.url,context:i.phraseContext,onSaveEditor:i.processModifiedPhrase,onCloseEditor:n[7]||(n[7]=x=>{r.showEditor=-1,r.hoveringOver=-1})},null,8,["modelValue","phrase","url","context","onSaveEditor"])):f("",!0)])])}const Xe=le(fs,[["render",Rs]]),$s={},As={viewBox:"0.1 0.43 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-cornerstone-content"},Cs=l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M2.31673 12.0587V6.40873H3.53342V12.0587H2.31673ZM6.46312 12.0587V6.40873H7.67038V12.0587H6.46312ZM0.0979004 14.1624V12.842H13.9117V14.1624H0.0979004ZM10.4667 12.0587V6.40873H11.6834V12.0587H10.4667ZM0.0979004 5.62542V4.3464L7.00008 0.43335L13.9117 4.3464V5.62542H0.0979004ZM2.93417 4.29568H11.066L7.00008 1.95077L2.93417 4.29568Z"},null,-1),Ts=[Cs];function Ls(s,n){return d(),k("svg",As,Ts)}const Bs=le($s,[["render",Ls]]),Ms="aioseo-pro",Es={components:{CoreTooltip:pe,SvgCornerstoneContent:Bs},data(){return{strings:{description:N(a("Cornerstone content refers to the most important and informative articles or pages on your website that serve as the foundation for your content strategy. AIOSEO uses cornerstone content for internal linking recommendations in Link Assistant. %1$s",Ms),Ae.getDocLink(ze.learnMore,"cornerstoneContent",!0))}}}},Os=["innerHTML"];function Ds(s,n,e,v,r,i){const c=D("svg-cornerstone-content"),u=D("core-tooltip");return d(),q(u,{class:"aioseo-cornerstone-content-tooltip"},{tooltip:_(()=>[l("span",{innerHTML:r.strings.description},null,8,Os)]),default:_(()=>[w(c)]),_:1})}const et=le(Es,[["render",Ds]]),qs={class:"aioseo-link-suggestions-Inbound"},Hs=["href"],Ns={class:"row-actions"},Us={class:"view"},Ys=["href"],Fs={class:"edit"},Vs=["href"],Ks={class:"dismiss"},zs=["onClick"],Zs=["onClick"],Ws={key:1,class:"links-bottom"},js={class:"links-bottom-left"},Gs={key:0},Js={class:"links-bottom-right"},qe="suggestionsInbound",He="aioseo-post-report-inbound-suggestions",Qs={__name:"Inbound",props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},filteredSuggestionsOutbound:{type:Array,required:!1},postReport:{type:Boolean,default(){return!1}},linksReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}}},emits:["linksUpdated"],setup(s,{emit:n}){const e="aioseo-pro",v=de(),{editPost:r,viewPost:i}=Pe(),c=n,u=s,g=Y(1),P=Y(!1),{activeSuggestionRow:I,addLink:A,bulkOptions:x,changeItemsPerPageSlug:R,doBulkAction:S,fetchData:G,maybeDoBulkAction:O,modalStrings:J,openPostReport:j,rows:z,saveModifiedPhrase:C,selectedRows:F,showModal:X,strings:Q,toggleShowMorePhrases:ee}=Qe({emit:c,linksReport:u.linksReport,metabox:u.metabox,pageNumber:g,post:u.post,postIndex:u.postIndex,postReport:u.postReport,refreshTable:()=>Z(),suggestionType:qe,wpTableLoading:P}),{processChangeItemsPerPage:te,processFetchTableData:E,refreshTable:Z,wpTableKey:L}=ce({changeItemsPerPageSlug:R,fetchData:G,pageNumber:g,tableId:He,wpTableLoading:P}),$=Y(!1),b=ue(Q,{dismissAllSuggestions:N(a("Dismiss All %1$s Suggestions",e),a("Inbound Internal",e)),noSuggestions:N(a("You currently don't have any %1$s Suggestions!",e),a("Inbound Internal",e)),unpublishedPost:a("This post has not been published yet. You must publish the post before inbound link suggestions can be generated.",e)}),y=se(()=>[{slug:"post_title",label:a("Post Title",e)},{slug:"spacer",width:"30px"},{slug:"phrase",label:a("Phrase",e)},{slug:"add_link",width:"150px"}]),B=se(()=>N(a("See All %1$s %2$s Suggestions",e),u.post.links.suggestionsInbound.totals.total,a("Inbound Internal",e))),o=p=>{g.value=p,!u.metabox&&(P.value=!0,E().then(()=>P.value=!1))};return Be(()=>{if(u.post.isPostEditor){const p=ct();$.value=p&&p==="publish"}}),(p,m)=>{var M,V;return d(),k("div",qs,[s.post.post_status&&((M=s.post)==null?void 0:M.post_status)!=="publish"||(V=s.post)!=null&&V.isPostEditor&&!$.value?(d(),q(t(We),{key:0,class:"unpublished-post-alert",type:"yellow"},{default:_(()=>[l("span",null,h(t(b).unpublishedPost),1)]),_:1})):f("",!0),(d(),q(t(ge),{"bulk-options":t(x),class:ie({"link-assistant-inner-table":!s.postReport}),columns:y.value,id:He,"initial-items-per-page":t(v).settings.tablePagination.linkAssistantPostsReport,"initial-page-number":g.value,key:t(L),loading:P.value,rows:t(z),"show-pagination":!s.linksReport,"show-search":!1,"show-table-footer":s.postReport,totals:s.post.links.suggestionsInbound.totals,"show-items-per-page":"",onPaginate:o,onProcessBulkAction:t(O),onProcessChangeItemsPerPage:t(te)},{post_title:_(({row:T})=>[l("strong",null,[l("a",{class:"edit-link",href:T.context.permalink,target:"_blank"},h(T.context.postTitle),9,Hs),T.context.isCornerstoneContent?(d(),q(t(et),{key:0})):f("",!0)]),l("div",Ns,[l("span",Us,[l("a",{href:T.context.permalink,target:"_blank"},h(t(i)(T.context.postType.singular)),9,Ys),U(" | ")]),l("span",Fs,[l("a",{href:T.context.editLink,target:"_blank"},h(t(r)(T.context.postType.singular)),9,Vs),U(" | ")]),l("span",Ks,[l("a",{href:"#",onClick:H(W=>t(O)({action:"dismiss",selectedRows:T}),["prevent"])},h(t(b).dismiss),9,zs)])])]),phrase:_(({row:T,index:W})=>[w(t(Xe),{ref:"editablePhrase"+W,row:T,rowIndex:W,activeRow:t(I),postIndex:s.postIndex,suggestionType:qe,linkSuggestion:"",onHidePhrases:m[0]||(m[0]=oe=>{I.value=-1}),onToggleShowMorePhrases:t(ee),onSaveModifiedPhrase:t(C)},null,8,["row","rowIndex","activeRow","postIndex","onToggleShowMorePhrases","onSaveModifiedPhrase"])]),add_link:_(({row:T,index:W})=>[l("div",{class:"add-link",onClick:H(oe=>t(A)(T,p.$refs["editablePhrase"+W]),["prevent"])},[w(t(Ge)),l("a",null,h(t(b).addLink),1)],8,Zs)]),_:1},8,["bulk-options","class","columns","initial-items-per-page","initial-page-number","loading","rows","show-pagination","show-table-footer","totals","onProcessBulkAction","onProcessChangeItemsPerPage"])),s.postReport?f("",!0):(d(),k("div",Ws,[l("div",js,[s.post.links.suggestionsInbound.totals.total>5&&s.linksReport?(d(),k("div",Gs,[w(t(he)),l("a",{class:"link-view",href:"#",onClick:m[1]||(m[1]=H(T=>t(j)("link-suggestions","suggestions-inbound"),["prevent"]))},h(B.value),1)])):f("",!0)]),l("div",Js,[s.post.links.suggestionsInbound.rows.length?(d(),k("a",{key:0,class:"link-delete",onClick:m[2]||(m[2]=H(T=>t(O)({action:"dismiss",selectedRows:"all"}),["prevent"]))},h(t(b).dismissAllSuggestions),1)):f("",!0)])])),w(t(ke),{show:t(X),strings:t(J),selectedRows:t(F),onCloseModal:m[3]||(m[3]=T=>X.value=!1),onDoBulkAction:t(S)},null,8,["show","strings","selectedRows","onDoBulkAction"])])}}},Xs="aioseo-pro",eo={emits:["toggleShowMorePhrases","postTitleIndexChanged"],setup(){const{editPost:s,viewPost:n}=Pe();return{editPost:s,viewPost:n}},components:{SvgCaret:Ze,TransitionSlide:je,CornerstoneContentTooltip:et},props:{row:{type:Object,required:!0},rowIndex:{type:Number,default:0},activeRow:{type:Number,default:-1},postIndex:{type:Number,required:!1},suggestionType:{type:String,required:!1}},data(){return{selectedPostTitleIndex:-1,hoveringOver:-1}},computed:{postTitles(){const s=[];return this.row.suggestions.forEach(n=>{s.includes[n.context.postTitle]||s.push(n.context.postTitle)}),s.slice(0,10)},showingMorePostTitles(){return 1<this.postTitles.length&&this.activeRow===this.rowIndex},viewMorePostTitlesLabel(){const s=1<this.postTitles.length?this.postTitles.length-1:0;return N(Ve("%1$d more post","%1$d more posts",s,Xs),s)}},methods:{selectDifferentPostTitle(s){this.selectedPostTitleIndex!==s&&(this.selectedPostTitleIndex=s,this.$emit("postTitleIndexChanged",s))}}},to={class:"aioseo-post-title-selector"},so=["checked"],oo={class:"post-title-text"},no={class:"view"},io=["href"],ro={class:"edit"},lo=["href"],ao={key:0,class:"show-more-post-titles"},uo=["onMouseover"],co=["checked","onClick"],po={class:"post-title-text"},go={class:"view"},ho=["href"],ko={class:"edit"},mo=["href"];function fo(s,n,e,v,r,i){const c=D("cornerstone-content-tooltip"),u=D("svg-caret"),g=D("transition-slide");return d(),k("div",to,[l("div",{class:"post-title first-post-title",onMouseover:n[1]||(n[1]=P=>r.hoveringOver=0),onMouseleave:n[2]||(n[2]=P=>r.hoveringOver=-1)},[i.showingMorePostTitles?(d(),k("input",{key:0,type:"radio",checked:r.selectedPostTitleIndex===0,onClick:n[0]||(n[0]=H(P=>i.selectDifferentPostTitle(0),["stop"]))},null,8,so)):f("",!0),l("span",oo,[U(h(i.postTitles[0])+" ",1),e.row.suggestions[0].context.isCornerstoneContent?(d(),q(c,{key:0})):f("",!0)]),l("div",{class:ie(["row-actions",{hover:r.hoveringOver===0}])},[l("span",no,[l("a",{href:e.row.suggestions[0].context.permalink,target:"_blank"},h(v.viewPost(e.row.suggestions[0].context.postType.singular)),9,io),U(" | ")]),l("span",ro,[l("a",{href:e.row.suggestions[0].context.editLink,target:"_blank"},h(v.editPost(e.row.suggestions[0].context.postType.singular)),9,lo)])],2)],32),1<i.postTitles.length?(d(),k("div",ao,[l("a",{href:"#",onClick:n[3]||(n[3]=H(P=>{s.$emit("toggleShowMorePhrases",e.rowIndex),i.selectDifferentPostTitle(0)},["prevent"]))},[l("div",null,h(i.viewMorePostTitlesLabel),1),w(u,{class:ie({rotated:i.showingMorePostTitles})},null,8,["class"])])])):f("",!0),w(g,{class:"post-titles-list",tag:"div",active:i.showingMorePostTitles},{default:_(()=>[(d(!0),k(Ye,null,Fe(i.postTitles,(P,I)=>(d(),k("div",{class:"post-title post-title-container",key:I},[I?(d(),k("div",{key:0,class:"selectable-post-title",onMouseover:A=>r.hoveringOver=I,onMouseleave:n[4]||(n[4]=A=>r.hoveringOver=-1)},[i.showingMorePostTitles?(d(),k("input",{key:0,type:"radio",checked:I===r.selectedPostTitleIndex,onClick:H(A=>i.selectDifferentPostTitle(I),["stop"])},null,8,co)):f("",!0),l("span",po,[U(h(i.postTitles[I])+" ",1),e.row.suggestions[I].context.isCornerstoneContent?(d(),q(c,{key:0})):f("",!0)]),l("div",{class:ie(["row-actions",{hover:I===r.hoveringOver}])},[l("span",go,[l("a",{href:e.row.suggestions[I].context.permalink,target:"_blank"},h(v.viewPost(e.row.suggestions[I].context.postType.singular)),9,ho),U(" | ")]),l("span",ko,[l("a",{href:e.row.suggestions[I].context.editLink,target:"_blank"},h(v.editPost(e.row.suggestions[I].context.postType.singular)),9,mo)])],2)],40,uo)):f("",!0)]))),128))]),_:1},8,["active"])])}const bo=le(eo,[["render",fo]]),vo={class:"aioseo-link-suggestions-outbound"},wo={class:"row-actions"},yo={class:"dismiss"},Po=["onClick"],_o=["onClick"],Io={key:0,class:"links-bottom"},xo={class:"links-bottom-left"},So={key:0},Ro={class:"links-bottom-right"},Re="suggestionsOutbound",Ne="aioseo-post-report-outbound-suggestions",$o={__name:"Outbound",props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},filteredSuggestionsOutbound:{type:Array,required:!1},postReport:{type:Boolean,default(){return!1}},linksReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}}},emits:["linksUpdated"],setup(s,{emit:n}){const e="aioseo-pro",v=de(),r=n,i=s,c=Y(1),u=Y(!1),{activeSuggestionRow:g,addLink:P,bulkOptions:I,changeItemsPerPageSlug:A,doBulkAction:x,fetchData:R,maybeDoBulkAction:S,modalStrings:G,openPostReport:O,rows:J,saveModifiedPhrase:j,selectedRows:z,showModal:C,strings:F,toggleShowMorePhrases:X}=Qe({emit:r,linksReport:i.linksReport,metabox:i.metabox,pageNumber:c,post:i.post,postIndex:i.postIndex,postReport:i.postReport,refreshTable:()=>te(),suggestionType:Re,wpTableLoading:u}),{processChangeItemsPerPage:Q,processFetchTableData:ee,refreshTable:te,wpTableKey:E}=ce({changeItemsPerPageSlug:A,fetchData:R,pageNumber:c,tableId:Ne,wpTableLoading:u}),Z=Y(0),L=ue(F,{dismissAllSuggestions:N(a("Dismiss All %1$s Suggestions",e),a("Outbound Internal",e)),noSuggestions:N(a("You currently don't have any %1$s Suggestions!",e),a("Outbound Internal",e))}),$=se(()=>[{slug:"phrase",label:a("Phrase",e)},{slug:"spacer",width:"30px"},{slug:"post_title",label:a("Post Title",e)},{slug:"add_link",width:"150px"}]),b=se(()=>N(a("See All %1$s %2$s Suggestions",e),i.post.links.suggestionsOutbound.totals.total,a("Outbound Internal",e))),y=B=>{c.value=B,!i.metabox&&(u.value=!0,ee().then(()=>u.value=!1))};return(B,o)=>(d(),k("div",vo,[(d(),q(t(ge),{"bulk-options":t(I),class:ie({"link-assistant-inner-table":!s.postReport}),columns:$.value,id:Ne,"initial-items-per-page":t(v).settings.tablePagination.linkAssistantPostsReport,"initial-page-number":c.value,key:t(E),loading:u.value,rows:t(J),"show-pagination":!s.linksReport,"show-search":!1,"show-table-footer":s.postReport,totals:s.post.links.suggestionsOutbound.totals,"show-items-per-page":"",onPaginate:y,onProcessBulkAction:t(S),onProcessChangeItemsPerPage:t(Q)},{post_title:_(({row:p,index:m})=>[w(t(bo),{ref:"postTitleSelector"+m,row:p,rowIndex:m,activeRow:t(g),postIndex:s.postIndex,suggestionType:Re,linkSuggestion:"",onHidePhrases:o[0]||(o[0]=M=>{g.value=-1}),onToggleShowMorePhrases:t(X),onSaveModifiedPhrase:t(j),onPostTitleIndexChanged:o[1]||(o[1]=M=>Z.value=M)},null,8,["row","rowIndex","activeRow","postIndex","onToggleShowMorePhrases","onSaveModifiedPhrase"])]),phrase:_(({row:p,index:m})=>[w(t(Xe),{ref:"editablePhrase"+m,row:p,rowIndex:m,activeRow:t(g),postIndex:s.postIndex,suggestionType:Re,selectedPostTitleIndex:Z.value,linkSuggestion:"",onHidePhrases:o[2]||(o[2]=M=>{g.value=-1}),onSaveModifiedPhrase:t(j)},null,8,["row","rowIndex","activeRow","postIndex","selectedPostTitleIndex","onSaveModifiedPhrase"]),l("div",wo,[l("span",yo,[l("a",{href:"#",onClick:H(M=>t(S)({action:"dismiss",selectedRows:p}),["prevent"])},h(t(L).dismiss),9,Po)])])]),add_link:_(({row:p,index:m})=>[l("div",{class:"add-link",onClick:H(M=>t(P)(p,B.$refs["editablePhrase"+m]),["prevent"])},[w(t(Ge)),l("a",null,h(t(L).addLink),1)],8,_o)]),_:1},8,["bulk-options","class","columns","initial-items-per-page","initial-page-number","loading","rows","show-pagination","show-table-footer","totals","onProcessBulkAction","onProcessChangeItemsPerPage"])),s.postReport?f("",!0):(d(),k("div",Io,[l("div",xo,[s.post.links.suggestionsOutbound.totals.total>5&&s.linksReport?(d(),k("div",So,[w(t(he)),l("a",{class:"link-view",href:"#",onClick:o[3]||(o[3]=H(p=>t(O)("link-suggestions","suggestions-outbound"),["prevent"]))},h(b.value),1)])):f("",!0)]),l("div",Ro,[s.filteredSuggestionsOutbound.length?(d(),k("a",{key:0,class:"link-delete",onClick:o[4]||(o[4]=H(p=>t(S)({action:"dismiss",selectedRows:"all"}),["prevent"]))},h(t(L).dismissAllSuggestions),1)):f("",!0)])])),w(t(ke),{show:t(C),strings:t(G),selectedRows:t(z),onCloseModal:o[5]||(o[5]=p=>C.value=!1),onDoBulkAction:t(x)},null,8,["show","strings","selectedRows","onDoBulkAction"])]))}},$e="aioseo-pro",Ao={emits:["linksUpdated","suggestionsTabChanged"],setup(){return{linkAssistantStore:Le()}},components:{CoreAlert:We,CoreMainTabs:rt,Inbound:Qs,Outbound:$o,SvgLinkInternalInbound:ut,SvgLinkInternalOutbound:dt},props:{post:{type:Object,required:!0},postIndex:{type:Number,required:!1},postId:{type:Number,required:!1},linksReport:{type:Boolean,default(){return!1}},postReport:{type:Boolean,default(){return!1}},metabox:{type:Boolean,default(){return!1}},filteredSuggestionsOutbound:{type:Array,required:!0},initialTab:{type:String,required:!1},showAlert:{type:Boolean,default(){return!1}}},data(){return{tabsKey:0,activeTab:"suggestions-inbound",strings:ue(this.composableStrings,{description:N(a("Below you can add inbound and outbound internal links based on %1$s's smart suggestions. These suggestions are generated in the background, which requires some time to complete. %2$s",$e),"AIOSEO",Ae.getDocLink(ze.learnMore,"linkAssistant",!0))})}},computed:{tabs(){return[{slug:"suggestions-inbound",icon:"svg-link-internal-inbound",name:N("%1$s %2$s",this.metabox||this.postReport?this.post.links.suggestionsInbound.totals.total:this.linkAssistantStore.linksReport.counts[this.postIndex].suggestionsInbound,a("Inbound Internal Suggestions",$e))},{slug:"suggestions-outbound",icon:"svg-link-internal-outbound",name:N("%1$s %2$s",this.metabox||this.postReport?this.filteredSuggestionsOutbound.length:this.linkAssistantStore.linksReport.counts[this.postIndex].suggestionsOutbound,a("Outbound Internal Suggestions",$e))}]}},methods:{processChangeTab(s){this.activeTab=s,this.$emit("suggestionsTabChanged",s)},dismissAlert(){this.linkAssistantStore.internalOptions.internal.dismissedAlerts.suggestions=!0,tt.get(Ae.restUrl("link-assistant/data/dismiss-alert")).catch(s=>console.error("Could not dismiss suggestions alert:",s))}},beforeMount(){this.initialTab&&(this.activeTab=this.initialTab),this.linkAssistantStore.setLinksReportCounts()}},Co={class:"aioseo-link-suggestions"},To=["innerHTML"],Lo={class:"link-suggestions-container"};function Bo(s,n,e,v,r,i){const c=D("core-alert"),u=D("core-main-tabs"),g=D("outbound"),P=D("inbound");return d(),k("div",Co,[v.linkAssistantStore.internalOptions.internal.dismissedAlerts.suggestions?f("",!0):(d(),q(c,{key:0,class:"description",type:"blue","show-close":"",onCloseAlert:i.dismissAlert},{default:_(()=>[l("span",{innerHTML:r.strings.description},null,8,To)]),_:1},8,["onCloseAlert"])),(d(),q(u,{internal:"",key:r.tabsKey,tabs:i.tabs,active:r.activeTab,showSaveButton:!1,onChanged:i.processChangeTab},{"var-tab-icon":_(({tab:I})=>[(d(),q(ot(I.icon),{class:ie([{warning:I.warning}])},null,8,["class"]))]),_:1},8,["tabs","active","onChanged"])),l("div",Lo,[r.activeTab==="suggestions-outbound"?(d(),q(g,{key:0,post:e.post,postIndex:e.postIndex,postId:e.postId,filteredSuggestionsOutbound:e.filteredSuggestionsOutbound,linksReport:e.linksReport,postReport:e.postReport,metabox:e.metabox,onLinksUpdated:n[0]||(n[0]=I=>{r.tabsKey++,s.$emit("linksUpdated")})},null,8,["post","postIndex","postId","filteredSuggestionsOutbound","linksReport","postReport","metabox"])):f("",!0),r.activeTab==="suggestions-inbound"?(d(),q(P,{key:1,post:e.post,postIndex:e.postIndex,postId:e.postId,linksReport:e.linksReport,postReport:e.postReport,metabox:e.metabox,onLinksUpdated:n[1]||(n[1]=I=>{r.tabsKey++,s.$emit("linksUpdated")})},null,8,["post","postIndex","postId","linksReport","postReport","metabox"])):f("",!0)])])}const ln=le(Ao,[["render",Bo]]);export{ke as L,rn as _,Xe as a,nn as b,sn as c,on as d,ln as e,ct as g,tn as u};
Save File
Cancel