App.05bcb014.js
130 KB
/* empty css */import{a as o,c as g,b as d,m as p}from"./vuex.esm.8fdeb4b6.js";import{g as P,r as A}from"./params.597cd0f5.js";import{c as x,f as L,a as I,b as ht,C as V,d as K,S as q,g as mt}from"./Caret.19b10233.js";import{T as M,W as gt}from"./WpTable.ee9185a7.js";import"./default-i18n.3a91e0e5.js";import"./constants.0d8c074c.js";import{n as r}from"./_plugin-vue2_normalizer.61652a7c.js";import{i as z,h as ft,e as vt,g as $t,m as u}from"./index.ec9852b3.js";import{J as W}from"./JsonValues.870a4901.js";import{S as yt}from"./SaveChanges.e40a9083.js";import{C as m,S as R,a as D,b as bt,c as kt,d as Ct,e as Pt,f as xt,g as wt,h as St,i as Tt,j as At,k as Lt,m as It,n as Mt,o as Rt,p as Dt,q as Et,r as Ot,s as Bt,t as Ft,v as Kt,w as Ht,x as Gt,y as Nt,z as Ut}from"./index.3c70e00e.js";import{C as _}from"./SettingsRow.edbb3005.js";import{B as Vt}from"./Checkbox.60ba2f56.js";import{G as qt,a as zt}from"./Row.830f6397.js";import{C as Wt,a as Yt,S as Zt}from"./LicenseKeyBar.f7493613.js";import{S as jt,C as y}from"./Tabs.94a491a6.js";import{C as b}from"./Portal.15b73242.js";import{t as T}from"./attachments.6af710f9.js";import{M as E}from"./MaxCounts.12b45bab.js";import{T as Y}from"./TruSeoScore.339d22e1.js";import{S as k}from"./Plus.6984df43.js";import{B as Jt}from"./Editor.17682c4e.js";import{C as O}from"./Blur.f36c594d.js";import{C as f}from"./Tooltip.68a8a92b.js";import{B as Z}from"./RadioToggle.e6e54396.js";import{C as Qt}from"./GoogleSearchPreview.853cda22.js";import{C as B}from"./HtmlTagsEditor.16842e9d.js";import{T as Xt}from"./Slide.15a07930.js";import{p as H}from"./popup.b60b699f.js";import{C as j}from"./Index.235069bb.js";import{C as te}from"./Table.e3a46b6a.js";import{P as ee}from"./PostTypes.9ab32454.js";import{C as se}from"./Index.6dd703b2.js";import{S as J,a as ie,b as ne,c as re}from"./InternalOutbound.e736afb6.js";import{R as ae}from"./RequiredPlans.d3ddea12.js";import{a as Q,I as X,U as tt}from"./Image.c7244514.js";import{B as et}from"./Img.b3dc0554.js";import{C as oe}from"./FacebookPreview.42741cd9.js";import{C as le}from"./TwitterPreview.55d7a415.js";import{S as st}from"./Settings.26e66713.js";import{S as it,a as ce}from"./Build.6a71ce0a.js";import{R as ue}from"./Redirects.76f4bc5a.js";import{S as de}from"./Eye.57c925d7.js";const v={methods:{setIsDirty(){this.$store.commit("isDirty",!0)},clearIsDirty(){this.$store.commit("isDirty",!1)}}};const pe={components:{BaseCheckbox:Vt,GridColumn:qt,GridRow:zt},mixins:[v],data(){return{strings:{useDefaultSettings:this.$t.__("Use Default Settings",this.$td),robotsMeta:this.$t.__("Robots meta:",this.$td),maxSnippet:this.$t.__("Max Snippet",this.$td),maxVideoPreview:this.$t.__("Max Video Preview",this.$td),maxImagePreview:this.$t.__("Max Image Preview",this.$td),standard:this.$t.__("Standard",this.$td),none:this.$t.__("None",this.$td),large:this.$t.__("Large",this.$td),noindex:this.$t.__("No Index",this.$td),nofollow:this.$t.__("No Follow",this.$td),noarchive:this.$t.__("No Archive",this.$td),notranslate:this.$t.__("No Translate",this.$td),noimageindex:this.$t.__("No Image Index",this.$td),nosnippet:this.$t.__("No Snippet",this.$td),noodp:this.$t.__("No ODP",this.$td)}}},computed:{...o(["currentPost"]),imagePreviewOptions(){return[{label:this.strings.none,value:"none"},{label:this.strings.standard,value:"standard"},{label:this.strings.large,value:"large"}]}},methods:{getImagePreview(s){return this.imagePreviewOptions.find(t=>t.value===s)},saveImagePreview(s){this.$set(this.currentPost,"maxImagePreview",s),this.$store.commit("isDirty",!0)}}};var _e=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-robots-meta"},[e("base-toggle",{on:{input:t.setIsDirty},model:{value:t.currentPost.default,callback:function(i){t.$set(t.currentPost,"default",i)},expression:"currentPost.default"}},[t._v(" "+t._s(t.strings.useDefaultSettings)+" ")]),t.currentPost.default?t._e():e("div",{staticClass:"global-robots-settings aioseo-description"},[e("span",{staticClass:"robots-meta-title"},[t._v(t._s(t.strings.robotsMeta))]),e("grid-row",{staticClass:"settings"},[this.$aioseo.currentPost.isHomePage?t._e():e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.noindex,callback:function(i){t.$set(t.currentPost,"noindex",i)},expression:"currentPost.noindex"}},[t._v(" "+t._s(t.strings.noindex)+" ")])],1),e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.nofollow,callback:function(i){t.$set(t.currentPost,"nofollow",i)},expression:"currentPost.nofollow"}},[t._v(" "+t._s(t.strings.nofollow)+" ")])],1),e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.noarchive,callback:function(i){t.$set(t.currentPost,"noarchive",i)},expression:"currentPost.noarchive"}},[t._v(" "+t._s(t.strings.noarchive)+" ")])],1),e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.notranslate,callback:function(i){t.$set(t.currentPost,"notranslate",i)},expression:"currentPost.notranslate"}},[t._v(" "+t._s(t.strings.notranslate)+" ")])],1),e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.noimageindex,callback:function(i){t.$set(t.currentPost,"noimageindex",i)},expression:"currentPost.noimageindex"}},[t._v(" "+t._s(t.strings.noimageindex)+" ")])],1),e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.nosnippet,callback:function(i){t.$set(t.currentPost,"nosnippet",i)},expression:"currentPost.nosnippet"}},[t._v(" "+t._s(t.strings.nosnippet)+" ")])],1),e("grid-column",{attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.noodp,callback:function(i){t.$set(t.currentPost,"noodp",i)},expression:"currentPost.noodp"}},[t._v(" "+t._s(t.strings.noodp)+" ")])],1)],1),e("div",{staticClass:"global-robots-settings-options"},[t.currentPost.nosnippet?t._e():e("div",{staticClass:"aioseo-description max-snippet"},[e("span",[t._v(t._s(t.strings.maxSnippet))]),e("base-input",{attrs:{type:"number",size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.maxSnippet,callback:function(i){t.$set(t.currentPost,"maxSnippet",i)},expression:"currentPost.maxSnippet"}})],1),e("div",{staticClass:"aioseo-description max-video-preview"},[e("span",[t._v(t._s(t.strings.maxVideoPreview))]),e("base-input",{attrs:{type:"number",size:"medium"},on:{input:t.setIsDirty},model:{value:t.currentPost.maxVideoPreview,callback:function(i){t.$set(t.currentPost,"maxVideoPreview",i)},expression:"currentPost.maxVideoPreview"}})],1),t.currentPost.noimageindex?t._e():e("div",{staticClass:"aioseo-description max-image-preview"},[e("span",[t._v(t._s(t.strings.maxImagePreview))]),e("base-select",{attrs:{size:"medium",options:t.imagePreviewOptions,value:t.getImagePreview(t.currentPost.maxImagePreview)},on:{input:i=>t.saveImagePreview(i.value)}})],1)])],1)],1)},he=[],me=r(pe,_e,he,!1,null,null,null,null);const ge=me.exports;const fe={components:{CoreAlert:m,CoreSettingsRow:_,CoreSingleRobotsMeta:ge},mixins:[v,W],props:{disabled:{type:Boolean,default(){return!1}},type:{type:String,required:!1},object:{type:Object,required:!1}},data(){return{strings:{pageName:this.$t.__("Advanced",this.$td),robotsSetting:this.$t.__("Robots Setting",this.$td),robotsToggle:this.$t.__("Use Default Settings",this.$td),canonicalUrl:this.$t.__("Canonical URL",this.$td),placeholder:this.$t.__("Enter a URL to change the default Canonical URL",this.$td),priorityScore:this.$t.__("Priority Score",this.$td),priority:this.$t.__("Priority",this.$td),frequency:this.$t.__("Frequency",this.$td),priorityFrequencyUpsell:this.$t.sprintf(this.$t.__("This feature is only for licensed %1$s users. %2$s",this.$td),"<strong>AIOSEO Pro</strong>",this.$links.getUpsellLink("post-advanced",this.$constants.GLOBAL_STRINGS.learnMore,"priority-frequency",!0)),keywords:this.$t.__("Keywords",this.$td),tagPlaceholder:this.$t.__("Press enter to create a keyword",this.$td)}}},computed:{...g(["isUnlicensed"]),...o(["currentPost","options"]),getPriorityOptions(){return[{label:this.$t.__("default",this.$td),value:"default"}].concat(this.$constants.PRIORITY_OPTIONS)},getFrequencyOptions(){return[{label:this.$t.__("default",this.$td),value:"default"}].concat(this.$constants.FREQUENCY_OPTIONS)}},methods:{getPriority(s){return this.getPriorityOptions.find(t=>t.value===s)},savePriority(s){this.$set(this.currentPost,"priority",s),this.$store.commit("isDirty",!0)},getFrequency(s){return this.getFrequencyOptions.find(t=>t.value===s)},saveFrequency(s){this.$set(this.currentPost,"frequency",s),this.$store.commit("isDirty",!0)}}};var ve=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content aioseo-post-advanced"},[e("core-settings-row",{attrs:{id:"aioseo-post-robots-setting",name:t.strings.robotsSetting,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-single-robots-meta")]},proxy:!0}])}),e("core-settings-row",{attrs:{id:"aioseo-post-canonical-url",name:t.strings.canonicalUrl,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{type:"text",size:"medium",placeholder:t.strings.placeholder},on:{input:t.setIsDirty},model:{value:t.currentPost.canonicalUrl,callback:function(i){t.$set(t.currentPost,"canonicalUrl",i)},expression:"currentPost.canonicalUrl"}})]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.priorityScore,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"selectbox-row"},[e("div",{staticClass:"select"},[e("span",[t._v(t._s(t.strings.priority))]),e("base-select",{attrs:{disabled:t.isUnlicensed,size:"medium",options:t.getPriorityOptions,value:t.isUnlicensed?t.getPriority("default"):t.getPriority(t.currentPost.priority)},on:{input:i=>t.isUnlicensed?null:t.savePriority(i.value)}})],1),e("div",{staticClass:"separator"},[e("span"),t._v(" - ")]),e("div",{staticClass:"select"},[e("span",[t._v(t._s(t.strings.frequency))]),e("base-select",{attrs:{disabled:t.isUnlicensed,size:"medium",options:t.getFrequencyOptions,value:t.isUnlicensed?t.getFrequency("default"):t.getFrequency(t.currentPost.frequency)},on:{input:i=>t.isUnlicensed?null:t.saveFrequency(i.value)}})],1)]),t.isUnlicensed?e("core-alert",{staticClass:"inline-upsell",attrs:{type:"blue"}},[e("div",{domProps:{innerHTML:t._s(t.strings.priorityFrequencyUpsell)}})]):t._e()]},proxy:!0}])}),t.options.searchAppearance.advanced.useKeywords?e("core-settings-row",{attrs:{name:t.strings.keywords,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-select",{attrs:{multiple:"",taggable:"",options:t.getJsonValue(t.currentPost.keywords)||[],value:t.getJsonValue(t.currentPost.keywords)||[],"tag-placeholder":t.strings.tagPlaceholder},on:{input:i=>t.currentPost.keywords=t.setJsonValue(i)}})]},proxy:!0}],null,!1,2312666634)}):t._e()],1)},$e=[],ye=r(fe,ve,$e,!1,null,null,null,null);const be=ye.exports,ke={components:{CoreApiBar:Wt,CoreLicenseKeyBar:Yt},computed:{...g(["isUnlicensed"]),...o(["pong"])}};var Ce=function(){var t=this,e=t._self._c;return e("div",[t.pong?t._e():e("core-api-bar"),t.$isPro&&t.isUnlicensed&&t.pong?e("core-license-key-bar"):t._e()],1)},Pe=[],xe=r(ke,Ce,Pe,!1,null,null,null,null);const nt=xe.exports;const we={components:{SvgPencil:x,SvgTrash:R},props:{index:{type:Number},keyphrase:{type:String},score:{type:Number}},data(){return{edit:!1,strings:{delete:this.$t.__("Delete",this.$td)}}},computed:{scoreClass(){return 80<this.score?"score-green":50<this.score?"score-orange":1<this.score?"score-red":"score-none"}},methods:{editKeyphraseEv(s){this.edit=!0,this.$emit("selectedKeyphrase",s)},deleteKeyphraseEv(s){this.edit=!1,this.$emit("deleted",s)},toggleKeyphrasesPanel(s){this.$emit("selectedKeyphrase",s)},closeEdit(s){const t=s.target.value,e=this.index;this.$emit("saved",{index:e,value:t}),this.edit=!1},pressEnter(s){s.preventDefault(),s.target.blur(),this.edit=!1}}};var Se=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-keyphrase-tag"},[e("span",{staticClass:"aioseo-add-keyphrase-tag",class:t.edit?"hidden":""},[e("span",{staticClass:"keyphrase-name",on:{click:function(i){return t.toggleKeyphrasesPanel(t.index)}}},[t._v(" "+t._s(t.keyphrase)+" ")]),e("span",{staticClass:"keyphrase-edit",on:{click:function(i){return t.editKeyphraseEv(t.index)}}},[e("svg-pencil")],1),e("span",{staticClass:"keyphrase-score",class:t.scoreClass,on:{click:function(i){return t.toggleKeyphrasesPanel(t.index)}}},[t._v(t._s(t.score)+"/100")])]),t.edit?e("span",{staticClass:"aioseo-edit-keyphrase-tag"},[e("input",{attrs:{size:"medium"},domProps:{value:t.keyphrase},on:{blur:t.closeEdit,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.pressEnter.apply(null,arguments)}}}),e("span",{staticClass:"keyphrase-delete",on:{click:function(i){return t.deleteKeyphraseEv(t.index)}}},[e("svg-trash"),e("md-tooltip",{attrs:{"md-direction":"top"}},[t._v(t._s(t.strings.delete))])],1)]):t._e()])},Te=[],Ae=r(we,Se,Te,!1,null,null,null,null);const rt=Ae.exports;const Le={components:{SvgCaret:L,SvgCircleCheck:I,SvgCircleClose:ht},props:{analysisItems:{type:Object}},data(){return{strings:{delete:this.$t.__("Delete",this.$td)}}},methods:{toggleDescriptionEv(s){s.target.parentElement.classList.toggle("toggled")}}};var Ie=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"aioseo-analysis-detail"},[t._l(t.analysisItems,function(i,n){return[i.title?e("li",{key:n},[e("p",{staticClass:"title",class:i.error===0?"toggled":""},[i.error===0?e("svg-circle-check",{attrs:{width:"12"}}):t._e(),i.error===1?e("svg-circle-close",{attrs:{width:"12"}}):t._e(),t._v(" "+t._s(i.title)+" "),e("svg-caret",{attrs:{width:"16"},on:{click:t.toggleDescriptionEv}})],1),e("p",{staticClass:"description"},[t._v(t._s(i.description))])]):t._e()]})],2)},Me=[],Re=r(Le,Ie,Me,!1,null,null,null,null);const w=Re.exports;const De={components:{CoreAlert:m,CoreKeyphrase:rt,CoreLoader:V,SvgCirclePlus:k,metaboxAnalysisDetail:w},mixins:[v],data(){return{selectedKeyphrase:0,strings:{additional:this.$t.__("Additional Keyphrases",this.$td),addKeyphrase:this.$t.__("Add Additional Keyphrases",this.$td),keyphraseDocumentation:this.$t.__("Improve your SEO rankings with additional keyphrases.",this.$td),upSell:this.$t.sprintf(this.$t.__("Multiple Keyphrases is a %1$s feature. %2$s",this.$td),"Pro",this.$links.getUpsellLink("seo-settings",this.$t.__("Click here to get",this.$td)+" AIOSEO Pro","additional-keyphrases",!0))}}},watch:{"currentPost.keyphrases.additional"(){this.currentPost.keyphrases.additional&&!this.currentPost.keyphrases.additional[this.selectedKeyphrase]&&(this.selectedKeyphrase=0)}},computed:{...o(["currentPost"])},methods:{onSelectedKeyphrase(s){this.selectedKeyphrase=s},onSaved(s){const{index:t,value:e}=s;this.currentPost.keyphrases.additional[t].keyphrase=e,this.currentPost.keyphrases.additional[t].score=0,this.currentPost.loading.additional[t]=!0,this.setIsDirty(),this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost}),this.selectedKeyphrase=t},onDeleted(s){const t=[...this.currentPost.keyphrases.additional];t.splice(s,1),this.currentPost.keyphrases.additional=null,setTimeout(()=>{this.currentPost.keyphrases.additional=t,this.setIsDirty(),this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost})},300)},addKeyphraseEv(){var e;const t=document.getElementsByClassName(`add-keyphrase-${this.$root._data.screenContext}-input`)[0].querySelector(".medium");if(t.value){const i={keyphrase:t.value,score:0},n=this.currentPost.keyphrases.additional.push(i),a=document.getElementsByClassName("keyphrase-name");this.currentPost.loading.additional[0]=!0,t.value="",t.blur(),this.setIsDirty(),(e=a[n])==null||e.click(),this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost})}},pressEnter(s){const t=document.getElementById("add-additional-keyphrase");s.preventDefault(),t.click()},created(){this.currentPost.keyphrases.forEach((s,t)=>{this.currentPost.loading.additional[t]=!1})}}};var Ee=function(){var t=this,e=t._self._c;return e("div",{staticClass:"additional-keyphrases-panel"},[t.currentPost.keyphrases.additional&&t.currentPost.keyphrases.additional.length&&t.$isPro&&t.$aioseo.license.isActive?e("div",[t._l(t.currentPost.keyphrases.additional,function(i,n){return e("core-keyphrase",{key:n,staticClass:"aioseo-keyphrase-tag additional-keyphrase",class:t.selectedKeyphrase===n?"selected":null,attrs:{index:n,keyphrase:i.keyphrase,score:i.score},on:{saved:t.onSaved,deleted:t.onDeleted,selectedKeyphrase:t.onSelectedKeyphrase}})}),e("div",{staticClass:"analysis-wrapper"},[t.currentPost.loading.additional[this.selectedKeyphrase]&&t.currentPost.keyphrases.additional[this.selectedKeyphrase]&&t.currentPost.keyphrases.additional[this.selectedKeyphrase].keyphrase?e("core-loader",{staticClass:"analysis-loading",attrs:{dark:""}}):t._e(),!t.currentPost.loading.additional[this.selectedKeyphrase]&&t.currentPost.keyphrases.additional[this.selectedKeyphrase]&&t.currentPost.keyphrases.additional[this.selectedKeyphrase].keyphrase?e("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.keyphrases.additional[this.selectedKeyphrase].analysis}}):t._e()],1)],2):t._e(),t.$isPro&&t.$aioseo.license.isActive?e("base-input",{class:`add-keyphrase-${this.$root._data.screenContext}-input`,attrs:{size:"medium"},on:{keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.pressEnter.apply(null,arguments)}}}):t._e(),t.$isPro&&t.$aioseo.license.isActive?e("base-button",{staticClass:"add-keyphrase gray small",attrs:{id:"add-additional-keyphrase"},on:{click:t.addKeyphraseEv}},[e("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.addKeyphrase)+" ")],1):t._e(),!t.$isPro||!t.$aioseo.license.isActive?[e("div",{staticClass:"aioseo-description additional-keyphrases-description"},[t._v(" "+t._s(t.strings.keyphraseDocumentation)+" ")]),e("core-alert",{staticClass:"inline-upsell",attrs:{type:"yellow"}},[e("div",{domProps:{innerHTML:t._s(t.strings.upSell)}})])]:t._e()],2)},Oe=[],Be=r(De,Ee,Oe,!1,null,"cdc7b16c",null,null);const Fe=Be.exports,Ke=""+window.__aioseoDynamicImportPreload__("images/open-ai.d02756ab.png");const He={props:{type:{type:String,required:!0}},components:{BaseEditor:Jt,CoreBlur:O,CoreModalPortal:b,SvgCirclePlus:k},data(){return{OpenAiImage:Ke,suggestions:{title:["21 Amazing Blog Design Examples to Inspire Your Creativity","Create a Good First Impression with 21 Amazing Blog Design Examples","Create a Good First Impression: 21 Amazing Blog Design Examples to Spark Your Creativity","Create a Good First Impression With 21 Eye-Catching Blog Design Examples","Create a First Impression with 21 Eye-Catching Blog Design Examples"]},strings:{upgradeToPro:this.$t.__("Upgrade to Pro Today",this.$td),learnMoreLink:this.$t.sprintf('<a class="feature-link" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a> %3$s',this.$links.getUpsellUrl("post-settings","general","open-ai"),this.$t.__("Learn more about all the features",this.$td),this.$links.getUpsellLink("post-settings","","general",!0))}}},computed:{headerTitle(){return this.type==="title"?this.$t.sprintf(this.$t.__("Generate New SEO Post %1$s",this.$td),this.$t.__("Title",this.$td)):this.$t.sprintf(this.$t.__("Generate New SEO Post %1$s",this.$td),this.$t.__("Description",this.$td))},ctaHeaderTitle(){return this.type==="title"?this.$t.sprintf(this.$t.__("Generating SEO Post %1$s is a Pro Feature",this.$td),this.$t.__("Titles",this.$td)):this.$t.sprintf(this.$t.__("Generating SEO Post %1$s is a Pro Feature",this.$td),this.$t.__("Descriptions",this.$td))},ctaDescription(){return this.type==="title"?this.$t.sprintf(this.$t.__("With our Pro version, you now have access to the powerful feature that generates SEO optimized %1$s with just a click of a button. Say goodbye to manual %2$s creation and hello to increased online visibility.",this.$td),this.$t.__("titles",this.$td),this.$t.__("title",this.$td)):this.$t.sprintf(this.$t.__("With our Pro version, you now have access to the powerful feature that generates SEO optimized %1$s with just a click of a button. Say goodbye to manual %2$s creation and hello to increased online visibility.",this.$td),this.$t.__("meta descriptions",this.$td),this.$t.__("description",this.$td))}},methods:{...d(["setModalState"])}};var Ge=function(){var t=this,e=t._self._c;return e("core-modal-portal",{attrs:{classes:["aioseo-ai-generator-modal"]},on:{close:function(i){return t.setModalState({modalName:"aiGenerator",value:!1})}}},[e("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.headerTitle)+" ")]),e("div",{staticClass:"aioseo-ai-unlicensed-modal",attrs:{slot:"body"},slot:"body"},[e("core-blur",[e("div",{staticClass:"list"},[e("div",{staticClass:"suggestions"},t._l(t.suggestions.title,function(i,n){return e("div",{key:n,staticClass:"suggestion"},[e("base-editor",{ref:"editor",refInFor:!0,attrs:{value:i,single:"",disabled:""},scopedSlots:t._u([{key:"append-button",fn:function(){return[e("button",{attrs:{type:"button",disabled:""}},[e("svg-circle-plus")],1)]},proxy:!0}],null,!0)})],1)}),0)])]),e("div",{staticClass:"cta"},[e("img",{attrs:{src:t.$getAssetUrl(t.OpenAiImage),alt:"open-ai-upsell"}}),e("div",{staticClass:"bottom"},[e("div",[e("p",{staticClass:"title"},[t._v(t._s(t.ctaHeaderTitle))]),e("p",[t._v(t._s(t.ctaDescription))])]),e("div",[e("base-button",{attrs:{type:"green",size:"medium",tag:"a",href:t.$links.getPricingUrl("post-settings","general","open-ai")}},[t._v(" "+t._s(t.strings.upgradeToPro)+" ")]),e("span",{domProps:{innerHTML:t._s(t.strings.learnMoreLink)}})],1)])])],1)])},Ne=[],Ue=r(He,Ge,Ne,!1,null,null,null,null);const Ve=Ue.exports,qe={};var ze=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-ai-robot",attrs:{viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2.23351 8.73334C1.73351 8.73334 1.31129 8.55996 0.966845 8.2132C0.622412 7.86644 0.450195 7.44537 0.450195 6.95C0.450195 6.45464 0.623579 6.03357 0.970345 5.6868C1.31709 5.34005 1.73815 5.16667 2.23351 5.16667V2.89999C2.23351 2.63332 2.33351 2.39999 2.53351 2.19999C2.73351 1.99999 2.96685 1.89999 3.23351 1.89999H6.21686C6.21686 1.39999 6.39024 0.977765 6.737 0.63332C7.08376 0.288876 7.50483 0.116653 8.0002 0.116653C8.49556 0.116653 8.91663 0.290037 9.2634 0.636803C9.61015 0.983559 9.78353 1.40462 9.78353 1.89999H12.7669C13.0335 1.89999 13.2669 1.99999 13.4669 2.19999C13.6669 2.39999 13.7669 2.63332 13.7669 2.89999V5.16667C14.2669 5.16667 14.6891 5.34005 15.0335 5.6868C15.378 6.03357 15.5502 6.45464 15.5502 6.95C15.5502 7.44537 15.3768 7.86644 15.0301 8.2132C14.6833 8.55996 14.2622 8.73334 13.7669 8.73334V12.2167C13.7669 12.4834 13.6669 12.7167 13.4669 12.9167C13.2669 13.1167 13.0335 13.2167 12.7669 13.2167H3.23351C2.96685 13.2167 2.73351 13.1167 2.53351 12.9167C2.33351 12.7167 2.23351 12.4834 2.23351 12.2167V8.73334ZM5.77731 7.01015C5.97615 7.01015 6.14416 6.94024 6.28136 6.80042C6.41856 6.66061 6.48716 6.48971 6.48716 6.28774C6.48716 6.08577 6.41726 5.91619 6.27745 5.77899C6.13762 5.64179 5.9683 5.57319 5.76946 5.57319C5.57063 5.57319 5.40104 5.64283 5.2607 5.78212C5.12036 5.92141 5.0502 6.09414 5.0502 6.3003C5.0502 6.49914 5.12167 6.66715 5.26463 6.80435C5.40758 6.94155 5.57848 7.01015 5.77731 7.01015ZM10.2309 7.01015C10.4298 7.01015 10.5994 6.94024 10.7397 6.80042C10.88 6.66061 10.9502 6.48971 10.9502 6.28774C10.9502 6.08577 10.8787 5.91619 10.7358 5.77899C10.5928 5.64179 10.4219 5.57319 10.2231 5.57319C10.0242 5.57319 9.85623 5.64283 9.71903 5.78212C9.58183 5.92141 9.51323 6.09414 9.51323 6.3003C9.51323 6.49914 9.58313 6.66715 9.72295 6.80435C9.86277 6.94155 10.0321 7.01015 10.2309 7.01015ZM5.30383 10.25H10.6966V9.14637H5.30383V10.25ZM3.55383 11.8964H12.4466V3.2203H3.55383V11.8964Z",fill:"currentColor"}})])},We=[],Ye=r(qe,ze,We,!1,null,null,null,null);const Ze=Ye.exports;const je={props:{type:{type:String,required:!0}},components:{AiModal:Ve,CoreTooltip:f,SvgAiRobot:Ze},data(){return{strings:{useAiGenerator:this.$t.__("Use AI Generator",this.$td)}}},computed:{...o(["modals"])},methods:{...d(["setModalState"])}};var Je=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-ai-generator"},[e("core-tooltip",{attrs:{type:"action",offset:"-30px,0"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.useAiGenerator)+" ")]},proxy:!0}])},[e("button",{attrs:{type:"button"},on:{click:function(i){return t.setModalState({modalName:"aiGenerator",value:t.type})}}},[e("svg-ai-robot",{on:{click:function(i){return t.setModalState({modalName:"aiGenerator",value:t.type})}}})],1)]),t.modals.aiGenerator===t.type?e("ai-modal",{attrs:{type:t.type}}):t._e()],1)},Qe=[],Xe=r(je,Je,Qe,!1,null,null,null,null);const ts=Xe.exports;const es={components:{CoreTooltip:f,SvgCaret:L,SvgCircleCheck:I,SvgCircleQuestionMark:D,SvgEllipse:jt,TransitionSlide:Xt},mixins:[Y],props:{slug:{type:String,required:!0},headerText:String,focusScore:Number,trueSeoScore:Number,toggles:{type:Boolean,default(){return!0}},hideHeader:Boolean,noSlide:Boolean,saveToggleStatus:{type:Boolean,default(){return!0}}},watch:{"metaBoxTabs.mainSidebar":{deep:!0,handler(s){this.$root._data.screenContext==="sidebar"&&this.openCard(s.card)}}},computed:{...g(["settings"]),...o(["metaBoxTabs"])},methods:{...p(["toggleCard"]),openCard(s){for(const t in this.settings.toggledCards)this.settings.toggledCards[t]&&this.toggleCard({slug:t});this.toggleCard({slug:s})}},created(){this.openCard(this.metaBoxTabs.mainSidebar.card)}};var ss=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-card aioseo-sidebar-card"},[t.hideHeader?t._e():e("div",{staticClass:"header",on:{click:function(i){return t.toggleCard({slug:t.slug,shouldSave:t.saveToggleStatus})}}},[e("div",{staticClass:"text"},[t._t("header",function(){return[t._v(" "+t._s(t.headerText)+" ")]}),t.focusScore>=0?t._t("alt",function(){return[t.focusScore!==null?e("span",{staticClass:"card-score",class:t.getScoreClass(t.focusScore)},[t._v(" "+t._s(t.focusScore)+"/100 ")]):t._e()]}):t._e(),t.trueSeoScore>=0?t._t("alt",function(){return[e("span",{staticClass:"card-score",class:t.getErrorClass(t.trueSeoScore)},[0<t.trueSeoScore?e("svg-ellipse",{attrs:{width:"6"}}):t._e(),t.trueSeoScore===0?e("svg-circle-check",{attrs:{width:"12"}}):t._e(),t._v(" "+t._s(t.getErrorDisplay(t.trueSeoScore))+" ")],1)]}):t._e(),t.$slots.tooltip?e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._t("tooltip")]},proxy:!0}],null,!0)},[e("svg-circle-question-mark")],1):t._e()],2),t.toggles&&t.settings.toggledCards?e("svg-caret",{class:{rotated:!t.settings.toggledCards[t.slug]}}):t._e()],1),t.settings.toggledCards||t.noSlide?e("transition-slide",{attrs:{active:t.settings.toggledCards[t.slug]&&t.toggles||t.noSlide}},[t.$slots["before-tabs"]?e("div",{staticClass:"content"},[t._t("before-tabs")],2):t._e(),t._t("tabs"),t.$slots.default?e("div",{staticClass:"content"},[t._t("default")],2):t._e()],2):t._e()],1)},is=[],ns=r(es,ss,is,!1,null,null,null,null);const rs=ns.exports,as={props:{width:Number,height:Number,fillColor:String,strokeColor:String,strokeWidth:Number,data:Array},computed:{getViewBox(){return"0 0 "+this.width+" "+this.height},polylinePoints(){const s=Math.max(...this.data.map(n=>n.x)),t=Math.max(...this.data.map(n=>n.y)),e=this.height-this.strokeWidth,i=this.data.map(n=>{const a=n.x===0?0:n.x/s,l=n.y===0?0:n.y/t,c=a*this.width,h=e-l*e+this.strokeWidth;return`${c},${h}`}).join(" ");return`0,${e+this.strokeWidth} `+i+` ${this.width},${e+this.strokeWidth}`}}};var os=function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:t.width,height:t.height,viewBox:t.getViewBox,role:"img","aria-hidden":"true",focusable:"false"}},[e("polygon",{attrs:{fill:t.fillColor,points:t.polylinePoints}}),e("polyline",{attrs:{fill:"none",stroke:t.strokeColor,strokeWidth:t.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round",points:t.polylinePoints}})])},ls=[],cs=r(as,os,ls,!1,null,null,null,null);const us=cs.exports;const ds={components:{CoreAlert:m,CoreKeyphrase:rt,CoreLoader:V,CoreModalPortal:b,CoreTooltip:f,SvgAreaChart:us,SvgCircleCheck:I,SvgCirclePlus:k,SvgTrash:R,metaboxAnalysisDetail:w},mixins:[v],data(){return{showSemrushTooltip:!1,loadingResults:!1,semrushShowModal:!1,addingAdditionalKeyphrase:!1,removingAdditionalKeyphrase:!1,semrushCountry:{value:"US",label:"United States of America - US"},strings:{modalTitle:this.$t.sprintf(this.$t.__("Additional Keyphrases by %1$s",this.$td),"Semrush"),addKeyphrase:this.$t.__("Add Focus Keyphrase",this.$td),getAdditionalKeyphrases:this.$t.__("Get Additional Keyphrases",this.$td),showResultsFor:this.$t.__("Show Results For:",this.$td),keyphrase:this.$t.__("Keyphrase",this.$td),volume:this.$t.__("Volume",this.$td),trend:this.$t.__("Trend",this.$td),addAdditionalKeyphrase:this.$t.__("Add Keyphrase",this.$td),removeAdditionalKeyphrase:this.$t.__("Remove Keyphrase",this.$td),noResults:this.$t.__("No results",this.$td),upsell:this.$t.sprintf(this.$t.__("Analyzing your content with %1$s keywords is only available to licensed %2$s users. %3$s",this.$td),"Semrush","<strong>AIOSEO Pro</strong>",this.$links.getUpsellLink("semrush-keywords",this.$constants.GLOBAL_STRINGS.learnMore,null,!0)),semrushGetAdditionalKeyphrases:this.$t.sprintf(this.$t.__("%1$s integrates directly with %2$s to provide you with actionable keyphrases to help you write better content.",this.$td),"AIOSEO","Semrush"),pleaseAddFocusKeyphrase:this.$t.__("To use this feature, first add a focus keyphrase.",this.$td),focusKeyphrase:this.$t.__("Focus Keyphrase",this.$td),delete:this.$t.__("Delete",this.$td),semrushTooltip:this.$t.sprintf(this.$t.__("Get Additional Keyphrases with %1$s!",this.$td),"Semrush"),semrushTooltipLicenseKey:this.$t.sprintf(this.$t.__("%1$sA valid license key is required%2$s in order to connect with %3$s.",this.$td),'<a href="'+this.$aioseo.urls.aio.settings+'">',"</a>","Semrush"),youHaveExceededSemrush:this.$t.sprintf(this.$t.__("You have exceeded the number of requests allowed by your %1$s plan.",this.$td),"Semrush"),inOrderToUpgradeSemrush:this.$t.sprintf(this.$t.__("In order to continue searching for additional keyphrases, you'll need to upgrade. %1$s",this.$td),this.$links.getUpsellLink("semrush-pricing",this.$constants.GLOBAL_STRINGS.learnMore,"semrushPricing",!0))}}},watch:{semrushCountry:{deep:!0,handler(){this.getKeyphrases()}}},computed:{...g("integrations",["semrushExpired","semrushHasValidTokens"]),...g(["isUnlicensed","isConnected"]),...o(["currentPost","internalOptions"]),...o("integrations",["semrush"]),semrushError(){return this.semrush.error.includes("TOTAL LIMIT EXCEEDED")?this.$t.__("You have exceeded the limit for requests. Please try again later.",this.$td):this.$t.__("An error occurred while fetching keyphrases. Please try again later.",this.$td)},semrushDatabase(){return this.$constants.COUNTRY_LIST.map(s=>(s.value==="GB"&&(s.value="UK",s.label="United Kingdom"),s.value==="KR"&&(s.label="South Korea"),s)).filter(s=>this.$constants.SEMRUSH_DATABASE.includes(s.value.toLowerCase())).map(s=>(s.label=s.label+" - "+s.value.toUpperCase(),s))}},methods:{...p("integrations",["semrushAuthenticate","semrushRefresh","semrushGetKeyphrases"]),...p(["saveConnectToken"]),getAdditionalKeyphrases(){if(this.showSemrushTooltip=!1,!this.isConnected){this.openConnectPopup(this.$aioseo.urls.connect+"&semrush=true");return}if(!this.semrushHasValidTokens){this.openPopup("https://oauth.semrush.com/auth/login?client_id=aioseo&redirect_uri=https%3A%2F%2Foauth.semrush.com%2Foauth2%2Faioseo%2Fsuccess&ref=2190331110&response_type=code&scope=user.id");return}this.openModal()},transformTrendDataToChartPoints(s){return s.split(",").map((e,i)=>({x:i,y:parseFloat(e)}))},openConnectPopup(s){H(s,this.connectWithAioseo,600,630,!0,["token"],this.completedConnectCallback,this.closedConnectCallback)},openPopup(s){H(s,"Semrush Oauth",450,570,!0,["code"],this.completedCallback,this.closedCallback,this.postMessageCallback)},async completedCallback(s){return this.semrushAuthenticate(s.code)},completedConnectCallback(s){return this.saveConnectToken(s.token)},openModal(){this.semrushShowModal=!0,!this.semrush.error&&this.getKeyphrases()},getKeyphrases(){this.loadingResults=!0,this.semrushGetKeyphrases(this.semrushCountry.value).then(()=>{this.loadingResults=!1}).catch(s=>{this.semrushShowModal=!1,this.loadingResults=!1,console.error(s.message)})},closedCallback(s){s&&this.openModal()},closedConnectCallback(s){if(s){if(this.semrushHasValidTokens){this.$nextTick(this.getAdditionalKeyphrases);return}this.showSemrushTooltip=!0}},async postMessageCallback(s,t,e){const{data:i,source:n,origin:a}=s;if(!(a!=="https://oauth.semrush.com"||t!==n)){if(i.type==="semrush:oauth:success"){window.removeEventListener("message",e,!1);let l={};try{const c=new URL(i.url);l=P(c.search)}catch{}this.completedCallback(l).then(()=>{t.close(),t=null,this.closedCallback(!0)})}i.type==="semrush:oauth:denied"&&(t.close(),window.removeEventListener("message",e,!1),t=null,this.closedCallback())}},onSaved(s){const{value:t}=s;this.currentPost.keyphrases.focus.keyphrase=t,this.currentPost.loading.focus=!0,this.setIsDirty(),this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost})},onDeleted(){this.currentPost.keyphrases.focus.keyphrase=null,this.setIsDirty(),this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost})},addKeyphraseEv(){const t=document.getElementsByClassName(`add-focus-keyphrase-${this.$root._data.screenContext}-input`)[0].querySelector(".medium");if(t.value){const e={keyphrase:t.value,score:0,analysis:{}};this.$set(this.currentPost.keyphrases,"focus",e),this.currentPost.loading.focus=!0,t.value="",t.blur(),this.setIsDirty(),this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost})}},hasAdditionalKeyphrase(s){const{additional:t}=this.currentPost.keyphrases;return t.filter(e=>e.keyphrase.toLowerCase()===s).length},getAdditionalKeyphrase(s){const{additional:t}=this.currentPost.keyphrases;return t.find(e=>e.keyphrase.toLowerCase()===s)},scoreClass(s){return 80<s?"score-green":50<s?"score-orange":1<s?"score-red":"score-none"},async addAdditionalKeyphrase(s,t){this.addingAdditionalKeyphrase=t;const{additional:e}=this.currentPost.keyphrases,i=e.push({keyphrase:s,score:0}),n=document.getElementsByClassName("keyphrase-name");this.$set(this.currentPost.keyphrases,"additional",e),this.setIsDirty(),await this.$truSeo.runAnalysis({postId:this.currentPost.id,postData:this.currentPost}),await this.$nextTick(),n[i]&&n[i].click(),this.addingAdditionalKeyphrase=!1},goToAdditionalKeyphrase(s){const{additional:t}=this.currentPost.keyphrases,e=t.findIndex(i=>i.keyphrase.toLowerCase()===s);if(e!==-1){const i=document.getElementsByClassName("keyphrase-name");i[e+1]&&i[e+1].click(),this.semrushShowModal=!1}},removeAdditionalKeyphrase(s,t){this.removingAdditionalKeyphrase=t;const{additional:e}=this.currentPost.keyphrases,i=e.findIndex(n=>n.keyphrase.toLowerCase()===s);if(i!==-1){e.splice(i,1),this.$set(this.currentPost.keyphrases,"additional",e);const n=document.getElementsByClassName("keyphrase-name");n[0]&&n[0].click()}this.$nextTick(()=>{this.removingAdditionalKeyphrase=!1})},toggleDescriptionEv(s){s.target.parentElement.classList.toggle("toggled")},pressEnter(s){const t=document.getElementById("add-focus-keyphrase");s.preventDefault(),t.click()}},mounted(){const s=[];this.internalOptions.integrations.semrush.accessToken&&this.semrushExpired&&s.push(this.semrushRefresh())}};var ps=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-focus-keyphrase-panel"},[!t.currentPost.keyphrases.focus||!t.currentPost.keyphrases.focus.keyphrase?e("base-input",{class:`add-focus-keyphrase-${this.$root._data.screenContext}-input`,attrs:{size:"medium"},on:{keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.pressEnter.apply(null,arguments)}}}):t._e(),e("div",{class:`add-focus-keyphrase-${this.$root._data.screenContext}-button`},[!t.currentPost.keyphrases.focus||!t.currentPost.keyphrases.focus.keyphrase?e("base-button",{staticClass:"add-keyphrase gray small",attrs:{id:"add-focus-keyphrase"},on:{click:t.addKeyphraseEv}},[e("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.addKeyphrase)+" ")],1):t._e(),!t.currentPost.keyphrases.focus||!t.currentPost.keyphrases.focus.keyphrase?e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("span",[t._v(" "+t._s(t.strings.semrushGetAdditionalKeyphrases)+" "+t._s(t.strings.pleaseAddFocusKeyphrase)+" ")])]},proxy:!0}],null,!1,76107531)},[e("div",{staticClass:"disabled-button gray"},[e("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.getAdditionalKeyphrases)+" ")],1)]):t._e()],1),t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?e("core-keyphrase",{staticClass:"aioseo-keyphrase-tag",attrs:{index:0,keyphrase:t.currentPost.keyphrases.focus.keyphrase,score:t.currentPost.keyphrases.focus.score},on:{saved:t.onSaved,deleted:t.onDeleted}}):t._e(),t.currentPost.loading.focus&&t.currentPost.keyphrases.focus?e("core-loader",{staticClass:"analysis-loading",attrs:{dark:""}}):t._e(),!t.currentPost.loading.focus&&t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?e("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.keyphrases.focus.analysis}}):t._e(),!t.currentPost.loading.focus&&t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase&&t.$isPro&&t.isUnlicensed?e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("span",{domProps:{innerHTML:t._s(t.strings.semrushTooltipLicenseKey)}})]},proxy:!0}],null,!1,1529238061)},[e("div",{staticClass:"disabled-button gray"},[e("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.getAdditionalKeyphrases)+" ")],1)]):t._e(),!t.currentPost.loading.focus&&t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase&&(!t.$isPro||!t.isUnlicensed)?e("core-tooltip",{attrs:{disabled:!t.showSemrushTooltip||t.$isPro,"force-show":t.showSemrushTooltip&&!t.$isPro},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("span",[t._v(" "+t._s(t.strings.semrushTooltip)+" ")])]},proxy:!0}],null,!1,248438756)},[e("base-button",{staticClass:"add-keyphrase gray small",on:{click:t.getAdditionalKeyphrases}},[e("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.getAdditionalKeyphrases)+" ")],1)],1):t._e(),t.semrushShowModal?e("core-modal-portal",{attrs:{classes:["aioseo-focus-keyphrase-panel-modal"]},on:{close:function(i){t.semrushShowModal=!1}}},[e("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.strings.modalTitle)+" ")]),e("div",{attrs:{slot:"body"},slot:"body"},[e("div",{staticClass:"aioseo-modal-content has-padding"},[t.isUnlicensed?e("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.strings.upsell)}}):t._e(),e("div",{staticClass:"aioseo-settings-row"},[e("div",{staticClass:"settings-name"},[e("div",{staticClass:"name"},[t._v(" "+t._s(t.strings.showResultsFor)+" ")])]),e("base-select",{staticClass:"semrush-country-selector",attrs:{size:"medium",options:t.semrushDatabase,placeholder:t.strings.selectPriceIndicator},model:{value:t.semrushCountry,callback:function(i){t.semrushCountry=i},expression:"semrushCountry"}})],1),e("div",{staticClass:"results"},[e("table",{staticClass:"additional-keyphrases-table",attrs:{"aria-label":"Additional Keyphrases",cellpadding:"0",cellspacing:"0"}},[e("thead",[e("tr",{staticClass:"keyphrases-header"},[e("th",{staticClass:"keyphrase"},[t._v(t._s(t.strings.keyphrase))]),e("th",{staticClass:"keyphrase-volume"},[t._v(t._s(t.strings.volume))]),e("th",{staticClass:"keyphrase-trend"},[t._v(t._s(t.strings.trend))]),t.isUnlicensed?t._e():e("th",{staticClass:"keyphrase-actions"})])]),e("tbody",{staticClass:"keyphrases-rows"},[t.semrush.results.length&&!t.loadingResults?t._l(t.semrush.results,function(i,n){return e("tr",{key:n,staticClass:"keyphrase-row",class:{even:n%2===0}},[e("td",{staticClass:"keyphrase"},[t._v(" "+t._s(i[0])+" ")]),e("td",{staticClass:"keyphrase-volume"},[t._v(" "+t._s(i[1])+" ")]),e("td",{staticClass:"keyphrase-trend"},[e("svg-area-chart",{attrs:{width:66,height:24,data:t.transformTrendDataToChartPoints(i[2]),strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc"}})],1),t.isUnlicensed?t._e():e("td",{staticClass:"keyphrase-actions"},[i[0]===t.currentPost.keyphrases.focus.keyphrase.toLowerCase()?e("div",{staticClass:"focus-keyphrase"},[e("svg-circle-check"),t._v(" "+t._s(t.strings.focusKeyphrase)+" ")],1):t._e(),i[0]!==t.currentPost.keyphrases.focus.keyphrase.toLowerCase()?e("div",[n!==t.removingAdditionalKeyphrase&&(n===t.addingAdditionalKeyphrase||!t.hasAdditionalKeyphrase(i[0]))?e("base-button",{attrs:{type:"gray",size:"small",loading:n===t.addingAdditionalKeyphrase},on:{click:function(a){return t.addAdditionalKeyphrase(i[0],n)}}},[t._v(" "+t._s(t.strings.addAdditionalKeyphrase)+" ")]):t._e(),t.getAdditionalKeyphrase(i[0])&&n!==t.addingAdditionalKeyphrase&&(n===t.removingAdditionalKeyphrase||t.hasAdditionalKeyphrase(i[0]))?e("div",{staticClass:"remove-keyphrase"},[e("span",{staticClass:"keyphrase-score",class:t.scoreClass(t.getAdditionalKeyphrase(i[0]).score),on:{click:function(a){return t.goToAdditionalKeyphrase(i[0])}}},[t._v(t._s(t.getAdditionalKeyphrase(i[0]).score)+"/100")]),e("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.delete)+" ")]},proxy:!0}],null,!0)},[e("svg-trash",{nativeOn:{click:function(a){return t.removeAdditionalKeyphrase(i[0],n)}}})],1)],1):t._e()],1):t._e()])])}):t._e(),!t.semrush.results.length||t.loadingResults?[e("tr",{staticClass:"keyphrase-row"},[e("td",{staticClass:"no-results",attrs:{colspan:t.isUnlicensed?3:4}},[e("div",[t.loadingResults?e("core-loader",{attrs:{dark:""}}):t._e(),!t.loadingResults&&!t.semrush.error?e("span",[t._v(" "+t._s(t.strings.noResults)+" ")]):t._e(),t.semrush.error&&!t.semrush.error.includes("TOTAL LIMIT EXCEEDED")?e("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.semrushError)+" ")]):t._e(),t.semrush.error&&t.semrush.error.includes("TOTAL LIMIT EXCEEDED")?[e("div",{staticClass:"semrush-logo"},[e("svg-logo-semrush")],1),e("div",{staticClass:"semrush-upsell"},[e("span",[e("strong",{domProps:{innerHTML:t._s(t.strings.youHaveExceededSemrush)}})]),t._v(" "+t._s(" ")+" "),e("span",{domProps:{innerHTML:t._s(t.strings.inOrderToUpgradeSemrush)}})])]:t._e()],2)])])]:t._e()],2)])])],1)])]):t._e()],1)},_s=[],hs=r(ds,ps,_s,!1,null,null,null,null);const ms=hs.exports;const gs={components:{CoreAlert:m,CoreMainTabs:y,metaboxAnalysisDetail:w},data(){return{initTab:"basic",tabs:[{slug:"basic",name:this.$t.__("Basic SEO",this.$td)},{slug:"title",name:this.$t.__("Title",this.$td)},{slug:"readability",name:this.$t.__("Readability",this.$td)}]}},computed:{...o(["currentPost"]),pageBuilderAlert(){if(!z()||this.$aioseo.integration==="")return!1;const s=this.$aioseo.integration.charAt(0).toUpperCase()+this.$aioseo.integration.slice(1);return this.$t.sprintf(this.$t.__("We have detected that you are currently using the %1$s Page Builder. Please click %2$shere%3$s to use the %1$s editor for a most accurate result.",this.$td),s,'<a href="'+this.currentPost.editlink+'">',"</a>")}},methods:{processChangeTab(s){this.initTab=s}},mounted(){this.tabs.map(s=>(s.errorCount=this.currentPost.page_analysis.analysis[s.slug].errors,s))}};var fs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-analysis-panel"},[t.pageBuilderAlert?e("core-alert",{attrs:{type:"yellow"}},[e("span",{domProps:{innerHTML:t._s(t.pageBuilderAlert)}})]):t._e(),e("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:this.initTab,internal:""},on:{changed:i=>t.processChangeTab(i)}}),e("transition",{attrs:{mode:"out-in"}},[t.currentPost.page_analysis?e("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis[this.initTab]}}):t._e()],1)],1)},vs=[],$s=r(gs,fs,vs,!1,null,null,null,null);const ys=$s.exports,bs={};var ks=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-desktop",attrs:{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.50004 0.666504H17.5C18.4167 0.666504 19.1667 1.4165 19.1667 2.33317V12.3332C19.1667 13.2498 18.4167 13.9998 17.5 13.9998H11.6667V15.6665H13.3334V17.3332H6.66671V15.6665H8.33337V13.9998H2.50004C1.58337 13.9998 0.833374 13.2498 0.833374 12.3332V2.33317C0.833374 1.4165 1.58337 0.666504 2.50004 0.666504ZM2.50004 12.3332H17.5V2.33317H2.50004V12.3332Z",fill:"currentColor"}})])},Cs=[],Ps=r(bs,ks,Cs,!1,null,null,null,null);const at=Ps.exports,xs={};var ws=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-mobile",attrs:{width:"12",height:"20",viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.72767 0.833496L10.061 0.841829C10.9777 0.841829 11.7277 1.5835 11.7277 2.50016V17.5002C11.7277 18.4168 10.9777 19.1668 10.061 19.1668H1.72767C0.811003 19.1668 0.0693359 18.4168 0.0693359 17.5002V2.50016C0.0693359 1.5835 0.811003 0.833496 1.72767 0.833496ZM1.72763 15.8335H10.061V4.16683H1.72763V15.8335Z",fill:"currentColor"}})])},Ss=[],Ts=r(xs,ws,Ss,!1,null,null,null,null);const ot=Ts.exports;const As={mixins:[v,E,yt,M,Y],components:{AdditionalKeyphrases:Fe,AiGenerator:ts,BaseRadioToggle:Z,CoreAlert:m,CoreGoogleSearchPreview:Qt,CoreHtmlTagsEditor:B,CoreSettingsRow:_,CoreSidebarCard:rs,CoreTooltip:f,FocusKeyphrase:ms,MetaboxAnalysisDetail:w,PageAnalysis:ys,SvgCircleQuestionMark:D,SvgDesktop:at,SvgMobile:ot,SvgPencil:x},props:{disabled:{type:Boolean,default(){return!1}},parentComponentContext:String},data(){return{isPageBuilderEditor:ft,titleCount:0,descriptionCount:0,keywords:null,keyphrases:null,selectedKeyphrase:0,editSnippet:!1,truSeo:null,titleKey:"title"+0,descriptionKey:"description"+0,strings:{pageName:this.$t.__("General",this.$td),snippetPreview:this.$t.__("Snippet Preview",this.$td),snippetPreviewContent:this.$t.__("Snippet Preview content here.",this.$td),editSnippet:this.$t.__("Edit Snippet",this.$td),clickToAddTitle:this.$t.__("Click on the tags below to insert variables into your title.",this.$td),metaDescription:this.$t.__("Meta Description",this.$td),clickToAddDescription:this.$t.__("Click on the tags below to insert variables into your meta description.",this.$td),pillarContent:this.$t.__("Pillar Content",this.$td),pillarContentCopy:this.$t.__("Cornerstone content should be the most important and extensive articles on your site.",this.$td),focusKeyphrase:this.$t.__("Focus Keyphrase",this.$td),additionalKeyphrases:this.$t.__("Additional Keyphrases",this.$td),pageAnalysis:this.$t.__("Page Analysis",this.$td),basicSeo:this.$t.__("Basic SEO",this.$td),title:this.$t.__("Title",this.$td),readability:this.$t.__("Readability",this.$td),lookingForMetaKeywords:this.$t.__("Looking for meta keywords?",this.$td),goToAdvancedTab:this.$t.__("Go to the Advanced tab to add/edit meta keywords",this.$td),keyphraseDocumentation:this.$t.sprintf(this.$t.__("Not sure what keyphrases are used for? Check out our documentation for more information. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"useKeyphrasesTooltip",!0))}}},watch:{"currentPost.title"(){K(()=>this.runAnalysis({postId:this.currentPost.id}),500)},"currentPost.description"(){K(()=>this.runAnalysis({postId:this.currentPost.id}),500)}},computed:{...o(["currentPost","options"]),...o("live-tags",["liveTags"]),title(){return this.$t.sprintf(this.$t.__("%1$s Title",this.$td),this.currentPost.type)},toggled:function(){return this.currentPost.pillar_content===1},displayTruSeoMetaboxCard(){return T()&&this.$root._data.screenContext==="metabox"&&this.currentPost.context==="post"&&this.currentPost.postType!=="attachment"&&this.parentComponentContext!=="modal"&&this.$allowed("aioseo_page_analysis")&&!this.currentPost.isSpecialPage&&!this.isForum},displayTruSeoSidebarKeyphraseCard(){return T()&&this.$root._data.screenContext==="sidebar"&&this.parentComponentContext!=="modal"&&this.$allowed("aioseo_page_analysis")&&!this.currentPost.isSpecialPage&&!this.isForum},displayTruSeoSidebarAnalysisCard(){return T()&&this.$root._data.screenContext==="sidebar"&&this.currentPost.page_analysis&&this.parentComponentContext!=="modal"&&this.$allowed("aioseo_page_analysis")&&!this.currentPost.isSpecialPage&&!this.isForum},isForum(){return!!((this.currentPost.postType==="forum"||this.currentPost.postType==="topic"||this.currentPost.postType==="reply")&&window.aioseo.data.isBBPressActive)},focusKeyphraseScore(){return this.currentPost.keyphrases.focus.keyphrase?this.currentPost.keyphrases.focus.score:null}},methods:{...p(["openModal"]),...d(["changeTabSettings"]),hideKeywordsLooking(){this.options.searchAppearance.advanced.keywordsLooking=!1,this.saveChanges()},isMobilePreviewEv(s){this.changeGeneralPreview(s)},editSnippetEv(){this.editSnippet=!this.editSnippet,this.changeTabSettings({setting:"modal",value:"general"}),this.openModal(!0)},getDefaultTags(s){switch(s){case"title":return this.currentPost.context==="post"?["post_title","separator_sa","site_title"]:["taxonomy_title","separator_sa","site_title"];case"description":return this.currentPost.context==="post"?this.currentPost.postType==="attachment"?["attachment_caption","separator_sa","site_title"]:this.currentPost.postType==="product"?["post_excerpt","post_content"]:["post_excerpt","post_content","separator_sa"]:["taxonomy_title","separator_sa","taxonomy_description"]}}},mounted(){this.keyphrases=this.currentPost.keyphrases,this.currentPost.context==="post"&&!this.currentPost.keyphrases.length&&(this.selectedKeyphrase=-1),this.$bus.$on("updateTitleKey",()=>{this.titleKey="title"+Math.random(0,999)}),this.$bus.$on("updateDescriptionKey",()=>{this.descriptionKey="description"+Math.random(0,999)})}};var Ls=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content aioseo-post-general"},[this.$allowed("aioseo_page_general_settings")?e("core-settings-row",{staticClass:"mobile-radio-buttons",scopedSlots:t._u([{key:"content",fn:function(){return[t.$root._data.screenContext==="metabox"||t.parentComponentContext==="modal"?e("base-radio-toggle",{staticClass:"circle",attrs:{value:t.currentPost.generalMobilePrev,name:"previewGeneralIsMobile",options:[{label:"desktop",value:!1,activeClass:"dark",slot:"desktop"},{label:"mobile",value:!0,slot:"mobile"}]},on:{input:t.isMobilePreviewEv},scopedSlots:t._u([{key:"desktop",fn:function(){return[e("svg-desktop")]},proxy:!0},{key:"mobile",fn:function(){return[e("svg-mobile")]},proxy:!0}],null,!1,3417581673)}):t._e()]},proxy:!0}],null,!1,1896340531)}):t._e(),this.$allowed("aioseo_page_general_settings")?e("core-settings-row",{staticClass:"snippet-preview-row",attrs:{name:t.strings.snippetPreview},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-google-search-preview",{class:{ismobile:t.currentPost.generalMobilePrev},attrs:{title:t.parseTags(t.currentPost.title||t.currentPost.tags.title||"#post_title #separator_sa #site_title"),separator:t.options.searchAppearance.global.separator,description:t.parseTags(t.currentPost.description||t.currentPost.tags.description||"#post_content")},scopedSlots:t._u([{key:"domain",fn:function(){return[t._v(" "+t._s(t.liveTags.permalink)+" ")]},proxy:!0}],null,!1,3436692130)}),t.$root._data.screenContext==="sidebar"&&t.parentComponentContext!=="modal"?e("base-button",{staticClass:"edit-snippet gray small",on:{click:t.editSnippetEv}},[e("svg-pencil"),t._v(" "+t._s(t.strings.editSnippet)+" ")],1):t._e()]},proxy:!0}],null,!1,1780722876)}):t._e(),(t.$root._data.screenContext==="metabox"||t.parentComponentContext==="modal")&&this.$allowed("aioseo_page_general_settings")?e("core-settings-row",{key:t.titleKey,staticClass:"snippet-title-row",attrs:{id:"aioseo-post-settings-post-title-row",name:t.title},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-html-tags-editor",{attrs:{"line-numbers":!1,single:"","tags-context":`${t.currentPost.postType||t.currentPost.termType}Title`,defaultMenuOrientation:t.parentComponentContext==="modal"?"top":"bottom","default-tags":t.getDefaultTags("title")},on:{counter:i=>t.updateCount(i,"titleCount"),input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddTitle)+" ")]},proxy:!0},{key:"append-button",fn:function(){return[t.currentPost.postType&&!t.isPageBuilderEditor()?e("ai-generator",{attrs:{type:"title"}}):t._e()]},proxy:!0}],null,!1,2286604185),model:{value:t.currentPost.title,callback:function(i){t.$set(t.currentPost,"title",i)},expression:"currentPost.title"}}),e("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.titleCount,60))}})]},proxy:!0}],null,!1,1305441611)}):t._e(),(t.$root._data.screenContext==="metabox"||t.parentComponentContext==="modal")&&this.$allowed("aioseo_page_general_settings")?e("core-settings-row",{key:t.descriptionKey,staticClass:"snippet-description-row",attrs:{id:"aioseo-post-settings-meta-description-row",name:t.strings.metaDescription},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-html-tags-editor",{attrs:{"line-numbers":!1,description:"","tags-context":`${t.currentPost.postType||t.currentPost.termType}Description`,defaultMenuOrientation:t.parentComponentContext==="modal"?"top":"bottom","default-tags":t.getDefaultTags("description")},on:{counter:i=>t.updateCount(i,"descriptionCount"),input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddDescription)+" ")]},proxy:!0},{key:"append-button",fn:function(){return[t.currentPost.postType&&!t.isPageBuilderEditor()?e("ai-generator",{attrs:{type:"description"}}):t._e()]},proxy:!0}],null,!1,2606774105),model:{value:t.currentPost.description,callback:function(i){t.$set(t.currentPost,"description",i)},expression:"currentPost.description"}}),e("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.descriptionCount,160))}})]},proxy:!0}],null,!1,1948914434)}):t._e(),t.displayTruSeoMetaboxCard&&t.options.searchAppearance.advanced.useKeywords&&t.options.searchAppearance.advanced.keywordsLooking?e("div",[e("core-alert",{attrs:{type:"blue","show-close":""},on:{"close-alert":t.hideKeywordsLooking}},[t._v(" "+t._s(t.strings.lookingForMetaKeywords)+" "),e("a",{attrs:{href:"#"},on:{click:function(i){return t.$emit("changeTab","advanced")}}},[t._v(" "+t._s(t.strings.goToAdvancedTab)+" ")]),e("a",{staticClass:"no-underline",attrs:{href:"#"},on:{click:function(i){return t.$emit("changeTab","advanced")}}},[t._v(" → ")])])],1):t._e(),t.displayTruSeoMetaboxCard?e("core-settings-row",{staticClass:"snippet-focus-keyphrase-row",attrs:{align:""},scopedSlots:t._u([{key:"name",fn:function(){return[t._v(" "+t._s(t.strings.focusKeyphrase)+" "),e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{domProps:{innerHTML:t._s(t.strings.keyphraseDocumentation)}})]},proxy:!0}],null,!1,3089343708)},[e("svg-circle-question-mark")],1)]},proxy:!0},{key:"content",fn:function(){return[e("focus-keyphrase")]},proxy:!0}],null,!1,3061269146)}):t._e(),t.displayTruSeoMetaboxCard?e("core-settings-row",{staticClass:"snippet-additional-keyphrases-row",attrs:{name:t.strings.additionalKeyphrases},scopedSlots:t._u([{key:"content",fn:function(){return[e("additional-keyphrases")]},proxy:!0}],null,!1,2027129292)}):t._e(),t.displayTruSeoMetaboxCard&&t.currentPost.page_analysis?e("core-settings-row",{staticClass:"snippet-page-analysis-row",attrs:{name:t.strings.pageAnalysis,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("page-analysis")]},proxy:!0}],null,!1,4169061421)}):t._e(),t.displayTruSeoSidebarKeyphraseCard?e("core-sidebar-card",{staticClass:"card-focus-keyphrase",attrs:{slug:"focus",focusScore:t.focusKeyphraseScore},scopedSlots:t._u([{key:"header",fn:function(){return[e("span",[t._v(t._s(t.strings.focusKeyphrase))]),e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{domProps:{innerHTML:t._s(t.strings.keyphraseDocumentation)}})]},proxy:!0}],null,!1,3089343708)},[e("svg-circle-question-mark")],1)]},proxy:!0}],null,!1,2192376698)},[e("focus-keyphrase")],1):t._e(),t.displayTruSeoSidebarKeyphraseCard?e("core-sidebar-card",{staticClass:"card-additional-keyphrase",attrs:{slug:"additional","header-text":t.strings.additionalKeyphrases}},[e("additional-keyphrases")],1):t._e(),t.displayTruSeoSidebarAnalysisCard?e("core-sidebar-card",{staticClass:"card-basic-seo",attrs:{slug:"basicseo","header-text":t.strings.basicSeo,trueSeoScore:t.currentPost.page_analysis.analysis.basic.errors}},[e("metabox-analysis-detail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis.basic}})],1):t._e(),t.displayTruSeoSidebarAnalysisCard?e("core-sidebar-card",{staticClass:"card-title-seo",attrs:{slug:"title","header-text":t.strings.title,trueSeoScore:t.currentPost.page_analysis.analysis.title.errors}},[e("metabox-analysis-detail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis.title}})],1):t._e(),t.displayTruSeoSidebarAnalysisCard?e("core-sidebar-card",{staticClass:"card-readability-seo",attrs:{slug:"readability","header-text":t.strings.readability,trueSeoScore:t.currentPost.page_analysis.analysis.readability.errors}},[e("metabox-analysis-detail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis.readability}})],1):t._e()],1)},Is=[],Ms=r(As,Ls,Is,!1,null,null,null,null);const lt=Ms.exports,Rs={};var Ds=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-right-arrow-short",attrs:{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8 0L6.59 1.41L12.17 7H0V9H12.17L6.59 14.59L8 16L16 8L8 0Z",fill:"currentColor"}})])},Es=[],Os=r(Rs,Ds,Es,!1,null,null,null,null);const ct=Os.exports;const Bs={components:{CoreSettingsRow:_,SvgRightArrowShort:ct},data(){return{strings:{title:this.$t.__("Link Assistant",this.$td),description:this.$t.__("Here you can view an overview of your existing links as well as find suggestions for new internal links. Click on the button below to view the Link Assistant panel.",this.$td),button:this.$t.__("Open Link Assistant",this.$td)}}},methods:{...d(["toggleLinkAssistantModal"])}};var Fs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-link-assistant-sidebar"},[t.$root._data.screenContext==="sidebar"?e("core-settings-row",{staticClass:"snippet-description-row open-link-assistant-copy",scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"aioseo-sidebar-content-title"},[t._v(t._s(t.strings.title))]),e("p",[t._v(t._s(t.strings.description))]),e("base-button",{staticClass:"open-link-assistant-modal gray small",on:{click:t.toggleLinkAssistantModal}},[e("svg-right-arrow-short"),t._v(" "+t._s(t.strings.button)+" ")],1)]},proxy:!0}],null,!1,797682359)}):t._e()],1)},Ks=[],Hs=r(Bs,Fs,Ks,!1,null,null,null,null);const Gs=Hs.exports,$=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ns={methods:{findTargetBlock(s,t){const e=$(t);let i=null;return s.forEach(n=>{if(i||!n.attributes)return;if(n.attributes.content&&n.attributes.content.search(e)!==-1){i=n.clientId;return}if(!n.innerBlocks)return;const a=this.findTargetBlock(n.innerBlocks,t);a&&(i=a)}),i}}},Us={mixins:[Ns],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}}},beforeMount(){this.$bus.$on("updatingLinks",s=>{this.wpTableLoading=s}),this.pageNumber=this.linkType?this.linkAssistant.postReport[this.linkType].totals.page:1},data(){return{changeItemsPerPageSlug:"linkAssistantPostsReport",action:"",showModal:!1,selectedRows:[],bulkOptions:[{label:this.$t.__("Delete",this.$td),value:"delete"}],strings:{frontPage:this.$t.__("Front Page",this.$tdPro),deleteLink:this.$t.__("Delete Link",this.$tdPro)},modalStrings:{areYouSureSingle:this.$t.__("Are you sure you want to delete this link?",this.$tdPro),areYouSureMultiple:this.$t.__("Are you sure you want to delete these links?",this.$tdPro),areYouSureAll:this.$t.__("Are you sure you want to delete all links?",this.$tdPro),actionCannotBeUndone:this.$t.__("This action cannot be undone.",this.$tdPro),yesSingle:this.$t.__("Yes, I want to delete this link",this.$tdPro),yesMultiple:this.$t.__("Yes, I want to delete these links",this.$tdPro),yesAll:this.$t.__("Yes, I want to delete all links",this.$tdPro),noChangedMind:this.$t.__("No, I changed my mind",this.$tdPro)}}},computed:{...o(["linkAssistant","currentPost"]),rows(){if(!this.metabox)return this.post.links[this.linkType].rows;const s=this.pageNumber===1?0:(this.pageNumber-1)*10;return this.post.links[this.linkType].rows.slice(s,s+10)}},methods:{...p("linkAssistant",["linkDelete","linksBulk","fetchPostReport","fetchLinksReportInner","postSettingsUpdate"]),fetchData(s){this.$bus.$emit("updatingLinks",!0);const t={...s,additionalFilters:{postId:this.post.ID||this.currentPost.id,postIndex:this.postIndex,type:this.linkType}},e=this.postReport?"fetchPostReport":"fetchLinksReportInner";return this[e](t).finally(()=>{this.$bus.$emit("updatingLinks",!1)})},openPostReport(s){window.location.href=`#/post-report?postId=${this.postId}&postIndex=${this.postIndex}&initialTab=${s}`},maybeDoBulkAction({action:s,selectedRows:t}){t===!1||!s||(this.action=s,this.selectedRows=t,this.showModal=!0)},doBulkAction(){if(this.showModal=!1,!(this.selectedRows===!1||typeof this.selectedRows>"u")){if(typeof this.selectedRows=="number"){this.doDeleteLink(this.selectedRows);return}if(this.metabox&&this.linkType!=="inboundInternal"){this.idsToIndexes(this.selectedRows).forEach(t=>{this.editorRemoveLink(t)});return}this.$bus.$emit("updatingLinks",!0),this.linksBulk({postIndex:this.postIndex,postId:this.post.ID||this.currentPost.id,action:this.action,linkType:this.linkType,linkIds:this.selectedRows,linksReport:this.linksReport,postReport:this.postReport}).finally(()=>{this.$bus.$emit("updatingLinks",!1),this.$emit("linksUpdated"),this.refreshTable()})}},doDeleteLink(s){const t=this.post.links[this.linkType].rows[s].id;if(t){if(this.metabox&&this.linkType!=="inboundInternal"){this.editorRemoveLink(s);return}this.$bus.$emit("updatingLinks",!0),this.linkDelete({postIndex:this.postIndex,postId:this.post.ID||this.currentPost.id,linkId:t,linksReport:this.linksReport,postReport:this.postReport}).finally(()=>{this.$bus.$emit("updatingLinks",!1),this.$emit("linksUpdated"),this.refreshTable()})}},editorRemoveLink(s){z()&&(this.$bus.$emit("updatingLinks",!1),this.blockEditorRemoveLink(s),this.$bus.$emit("updatingLinks",!1)),vt()&&this.classicEditorRemoveLink(s)},blockEditorRemoveLink(s){const t=this.currentPost.linkAssistant.links[this.linkType].rows[s];if(!t)return;this.$bus.$emit("updatingLinks",!0);const e=$(t.anchor.trim()),i=t.phrase_html.trim(),n=$(i),a=window.wp.data.select("core/block-editor").getBlocks(),l=this.findTargetBlock(a,i);if(!l){this.$bus.$emit("updatingLinks",!1);return}const c=window.wp.data.select("core/block-editor").getBlock(l);if(!c){this.$bus.$emit("updatingLinks",!1);return}let h=new RegExp(`(<t?a[^<>]*>)(.*)?(${e})(.*)?(</t?a[^<>]*>)`,"i");const C=i.replace(h,"$2$3$4");h=new RegExp(`${n}`,"i"),window.wp.data.dispatch("core/block-editor").updateBlockAttributes(l,{content:c.attributes.content.replace(h,C)}).then(()=>{this.$delete(this.post.links[this.linkType].rows,s)}).catch(S=>{console.error(`Couldn delete link with type "${this.linkType}" and index ${s}:`,S)}).finally(()=>{this.$bus.$emit("updatingLinks",!1),this.$emit("linksUpdated")})},classicEditorRemoveLink(s){const t=this.currentPost.linkAssistant.links[this.linkType].rows[s];if(!t||!window.tinyMCE)return;this.$bus.$emit("updatingLinks",!0);let e="",i=null,n=null;if(document.querySelector("#wp-content-wrap.tmce-active")?(i=window.tinyMCE.get("content"),e=i.getContent({format:"raw"})):(n=document.querySelector("textarea#content"),e=n?n.value:""),!e){this.$bus.$emit("updatingLinks",!1);return}let a=t.phrase_html.trim();i||(a=a.replace(/(\sdata-mce-href=".*")/gi,""));const l=$(t.anchor.trim());let c=new RegExp(`(<t?a[^<>]*>)(.*)?(${l})(.*)?(</t?a[^<>]*>)`,"i");const h=a.replace(c,"$2$3$4"),C=$(a);c=new RegExp(`${C}`,"i"),e=e.replace(c,h),i?i.setContent(e):n.value=e,this.$delete(this.post.links[this.linkType].rows,s),this.postSettingsUpdate({postContent:e}).finally(()=>{this.$bus.$emit("updatingLinks",!1),this.$emit("linksUpdated")})},idsToIndexes(s){let t,e=[];return Array.isArray(s)&&(t=s.map(Number)),t&&this.post.links[this.linkType].rows.forEach((i,n)=>{t.includes(i.id)&&e.push(n)}),s==="all"&&(e=this.post.links[this.linkType].rows.map((i,n)=>n)),e.sort(function(i,n){return n-i})}}};const Vs={components:{CoreModal:se,SvgClose:q},props:{selectedRows:{required:!0},strings:{type:Object,required:!0}},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}}};var qs=function(){var t=this,e=t._self._c;return e("core-modal",{staticClass:"aioseo-confirmation-modal",attrs:{"no-header":""},scopedSlots:t._u([{key:"body",fn:function(){return[e("div",{staticClass:"aioseo-modal-body"},[e("button",{staticClass:"close",on:{click:function(i){return i.stopPropagation(),t.$emit("closeModal",!0)}}},[e("svg-close",{on:{click:function(i){return t.$emit("closeModal",!0)}}})],1),e("h3",[t._v(t._s(t.areYouSure))]),e("div",{staticClass:"reset-description",domProps:{innerHTML:t._s(t.strings.actionCannotBeUndone)}}),e("base-button",{attrs:{type:"blue",size:"medium"},on:{click:function(i){return t.$emit("doBulkAction",i)}}},[t._v(" "+t._s(t.confirmation)+" ")]),e("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(i){return t.$emit("closeModal",!0)}}},[t._v(" "+t._s(t.strings.noChangedMind)+" ")])],1)]},proxy:!0}])})},zs=[],Ws=r(Vs,qs,zs,!1,null,null,null,null);const Ys=Ws.exports;const Zs={components:{CoreTooltip:f},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=$(this.anchor);return new RegExp(`(.*)(<t?a[^>]*>.*${s}.*</t?a>)(.*)`,"i")},firstPart(){return this.stripTags(this.getPart(1))},linkAnchor(){return this.stripTags(this.getPart(2))},lastPart(){return this.stripTags(this.getPart(3))}},methods:{getPart(s){const t=this.phraseHtml.match(this.partPattern);return t?t[s]:""},stripTags(s){return s.replace(/(<([^>]+)>)/gi,"")},maybeOpenLink(){this.clickableAnchor&&window.open(this.url,"_blank").focus()}}};var js=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-link-assistant-phrase",on:{mouseover:function(i){return t.$emit("mouseOver")},mouseleave:function(i){return t.$emit("mouseLeave")}}},[e("span",{staticClass:"phrase"},[e("span",{staticClass:"first"},[t._v(t._s(t.firstPart))]),t.tooltip?e("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("a",{staticClass:"tooltip-url",attrs:{href:t.url,target:"_blank"}},[t._v(t._s(t.url))])]},proxy:!0}],null,!1,3985851943)},[e("span",{staticClass:"anchor",on:{click:t.maybeOpenLink}},[t._v(t._s(t.linkAnchor))])]):t._e(),t.tooltip?t._e():e("div",[e("span",{staticClass:"anchor"},[t._v(t._s(t.linkAnchor))])]),e("span",{staticClass:"last"},[t._v(t._s(t.lastPart))])],1),t._t("icons")],2)},Js=[],Qs=r(Zs,js,Js,!1,null,null,null,null);const Xs=Qs.exports,ti={};var ei=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-link-suggestion",attrs:{viewBox:"0 0 17 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.66699 7.43742H4.33366C2.95866 7.43742 1.83366 6.31242 1.83366 4.93742C1.83366 3.56242 2.95866 2.43742 4.33366 2.43742H7.66699V0.770752H4.33366C2.03366 0.770752 0.166992 2.63742 0.166992 4.93742C0.166992 7.23742 2.03366 9.10408 4.33366 9.10408H7.66699V7.43742ZM12.667 0.770752H9.33366V2.43742H12.667C14.042 2.43742 15.167 3.56242 15.167 4.93742C15.167 6.31242 14.042 7.43742 12.667 7.43742H9.33366V9.10408H12.667C14.967 9.10408 16.8337 7.23742 16.8337 4.93742C16.8337 2.63742 14.967 0.770752 12.667 0.770752ZM11.8337 4.10409H5.16699V5.77075H11.8337V4.10409Z",fill:"currentColor"}})])},si=[],ii=r(ti,ei,si,!1,null,null,null,null);const F=ii.exports,ni={components:{CoreTooltip:f,CoreWpTable:te,LinkAssistantConfirmationModal:Ys,LinkAssistantPhrase:Xs,SvgLinkExternal:J,SvgLinkSuggestion:F,SvgTrash:R},mixins:[Us,ee,gt],data(){return{tableId:"aioseo-post-report-inbound-internal",linkType:"inboundInternal",strings:{deleteAllLinks:this.$t.sprintf(this.$t.__("Delete All %1$s Links",this.$td),this.$t.__("Inbound Internal",this.$td)),outboundSuggestions:this.$t.sprintf(this.$t.__("%1$s Link Suggestions",this.$td),this.$t.__("Inbound",this.$td))}}},computed:{columns(){return[{slug:"post_title",label:this.$t.__("Post Title",this.$td)},{slug:"phrase",label:this.$t.__("Phrase",this.$td)},{slug:"delete",width:"50px"}]},seeAllLinks(){return this.$t.sprintf(this.$t.__("See All %1$s %2$s Links",this.$td),this.post.links.inboundInternal.totals.total,this.$t.__("Inbound Internal",this.$td))}},methods:{maybeViewPost(s){var t,e;this.viewPost(((e=(t=s.context)==null?void 0:t.postType)==null?void 0:e.singular)||"Post")},maybeEditPost(s){var t,e;this.editPost(((e=(t=s.context)==null?void 0:t.postType)==null?void 0:e.singular)||"Post")},processPagination(s){this.pageNumber=s,!this.metabox&&(this.wpTableLoading=!0,this.processFetchTableData().then(()=>this.wpTableLoading=!1))}}};var ri=function(){var t=this,e=t._self._c;return e("div",[e("core-wp-table",{key:t.wpTableKey,class:{"link-assistant-inner-table":!t.postReport},attrs:{"bulk-options":t.bulkOptions,columns:t.columns,id:t.tableId,"initial-items-per-page":t.$aioseo.settings.tablePagination.linkAssistantPostsReport,"initial-page-number":t.pageNumber,loading:t.wpTableLoading,rows:t.rows,"show-pagination":!t.linksReport,"show-search":!1,"show-table-footer":t.postReport,totals:t.post.links.inboundInternal.totals,"show-items-per-page":""},on:{paginate:t.processPagination,"process-bulk-action":t.maybeDoBulkAction,"process-change-items-per-page":t.processChangeItemsPerPage},scopedSlots:t._u([{key:"post_title",fn:function({row:i}){return[e("span",[t._v(" "+t._s(i.context.postTitle)+" "),i.context.permalink.replace(/\/$/,"")===t.$aioseo.urls.home?e("span",[t._v("("+t._s(t.strings.frontPage)+")")]):t._e()]),i.context?e("div",{staticClass:"row-actions"},[e("span",{staticClass:"view"},[e("a",{attrs:{href:i.context.permalink,target:"_blank"}},[t._v(t._s(t.maybeViewPost(i)))]),t._v(" | ")]),e("span",{staticClass:"edit"},[e("a",{attrs:{href:i.context.editLink,target:"_blank"}},[t._v(t._s(t.maybeEditPost(i)))])])]):t._e()]}},{key:"phrase",fn:function({row:i}){return[e("link-assistant-phrase",{attrs:{phrase:i.phrase,phraseHtml:i.phrase_html||"",anchor:i.anchor,url:i.url,clickableAnchor:!0}})]}},{key:"delete",fn:function({index:i}){return[e("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.deleteLink)+" ")]},proxy:!0}],null,!0)},[e("svg-trash",{nativeOn:{click:function(n){return t.maybeDoBulkAction({action:"delete",selectedRows:i})}}})],1)]}}])}),t.postReport?t._e():e("div",{staticClass:"links-bottom"},[e("div",{staticClass:"links-bottom-left"},[t.post.links.inboundInternal.rows.length?e("base-button",{attrs:{type:"blue",tag:"button"},nativeOn:{click:function(i){return t.$emit("openSuggestions")}}},[e("svg-link-suggestion"),t._v(" "+t._s(t.strings.outboundSuggestions)+" ")],1):t._e(),t.post.links.inboundInternal.totals.total>5&&t.linksReport?e("div",[e("svg-link-external"),e("a",{staticClass:"link-view",attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.openPostReport("inbound-internal")}}},[t._v(" "+t._s(t.seeAllLinks)+" ")])],1):t._e()],1),e("div",{staticClass:"links-bottom-right"},[t.post.links.inboundInternal.rows.length?e("a",{staticClass:"link-delete",on:{click:function(i){return i.preventDefault(),t.maybeDoBulkAction({action:"delete",selectedRows:"all"})}}},[t._v(" "+t._s(t.strings.deleteAllLinks)+" ")]):t._e()])]),t.showModal?e("link-assistant-confirmation-modal",{attrs:{selectedRows:t.selectedRows,strings:t.modalStrings},on:{doBulkAction:t.doBulkAction,closeModal:function(i){t.showModal=!1}}}):t._e()],1)},ai=[],oi=r(ni,ri,ai,!1,null,null,null,null);const li=oi.exports,ci={components:{CoreAlert:m,CoreBlur:O,CoreMainTabs:y,CoreModalPortal:b,Cta:j,LinkAssistantInboundInternal:li,LinksSideBar:Gs,SvgLinkAffiliate:ie,SvgLinkExternal:J,SvgLinkInternalInbound:ne,SvgLinkInternalOutbound:re,SvgLinkSuggestion:F,RequiredPlans:ae},props:{parentComponentContext:String},data(){return{activeTab:"inbound-internal",activeSuggestionTab:"suggestions-inbound",mockedPostData:{links:{inboundInternal:{rows:[{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#"}},{phrase:"AIOSEO also allows you to create video sitemaps and comes with tons of different SEO tools.",anchor:"video sitemaps",url:"#",context:{postTitle:"How to Create WordPress Image Sitemap",permalink:"#",editLink:"#"}},{phrase:"You may also want to check out how to name your image files for SEO in WordPress and write alt text for images.",anchor:"how to name your image files for SEO in WordPress",url:"#",context:{postTitle:"What’s the Best Image Format for Your Website?",permalink:"#",editLink:"#"}},{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#"}},{phrase:"To learn more, please check out our post on image SEO: how to best optimize your images in WordPress. ",anchor:"image SEO",url:"#",context:{postTitle:"How to Write Alt Text for Images for SEO",permalink:"#",editLink:"#"}},{phrase:"So let’s now move on to showing you exactly how easy it is to import and export redirects using the best redirect plugin for WordPress.",anchor:"best redirect plugin for WordPress",url:"#",context:{postTitle:"How to Easily Import and Export Redirects in WordPress",permalink:"#",editLink:"#"}}],totals:{total:6}},outboundInternal:{totals:{total:12}},affiliate:{totals:{total:8}},external:{totals:{total:24}},suggestionsInbound:{totals:{total:9}},suggestionsOutbound:{totals:{total:9}}}},strings:{ctaButtonText:this.$t.sprintf(this.$t.__("Upgrade to %1$s and Unlock Link Assistant",this.$td),"Pro"),ctaHeader:this.$t.sprintf(this.$t.__("Link Assistant is only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro"),linkAssistantDescription:this.$t.__("Get relevant suggestions for adding internal links to all your content as well as finding any orphaned posts that have no internal links.",this.$td),thisFeatureRequires:this.$t.__("This feature requires one of the following plans:",this.$td),linkOpportunities:this.$t.__("Actionable Link Suggestions",this.$td),orphanedPosts:this.$t.__("See Orphaned Posts",this.$td),affiliateLinks:this.$t.__("See Affiliate Links",this.$td),domainReports:this.$t.__("Top Domain Reports",this.$td)}}},computed:{...o(["currentPost"]),initialTab(){return"inbound-internal"},tabs(){return[{slug:"inbound-internal",icon:"svg-link-internal-inbound",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.inboundInternal.totals.total,this.$t.__("Inbound Internal",this.$tdPro))},{slug:"outbound-internal",icon:"svg-link-internal-outbound",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.outboundInternal.totals.total,this.$t.__("Outbound Internal",this.$tdPro))},{slug:"affiliate",icon:"svg-link-affiliate",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.affiliate.totals.total,this.$t.__("Affiliate",this.$tdPro))},{slug:"external",icon:"svg-link-external",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.external.totals.total,this.$t.__("External",this.$tdPro))},{slug:"link-suggestions",icon:"svg-link-suggestion",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.suggestionsOutbound.totals.total+this.mockedPostData.links.suggestionsInbound.totals.total,this.$t.__("Link Suggestions",this.$tdPro))}]},modalHeader(){return this.$t.sprintf(this.$t.__('Links & Suggestions for "%1$s"',this.$tdPro),window.wp.data.select("core/editor").getEditedPostAttribute("title"))}},methods:{...d(["toggleLinkAssistantModal"])}};var ui=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content aioseo-link-assistant"},[t.$root._data.screenContext==="metabox"?e("div",[e("core-blur",[e("core-main-tabs",{staticClass:"link-tabs",attrs:{internal:"",tabs:t.tabs,active:t.initialTab,showSaveButton:!1},scopedSlots:t._u([{key:"md-tab-icon",fn:function({tab:i}){return[e(i.icon,{tag:"component",class:[{warning:i.data.warning}]})]}}],null,!1,158741971)}),t.activeTab==="inbound-internal"?e("link-assistant-inbound-internal",{attrs:{post:t.mockedPostData,metabox:""}}):t._e()],1),e("cta",{attrs:{"cta-link":t.$links.getPricingUrl("link-assistant","link-assistant-upsell","metabox"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("link-assistant","metabox","home"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[e("required-plans",{attrs:{addon:"aioseo-link-assistant"}}),t._v(" "+t._s(t.strings.linkAssistantDescription)+" ")]},proxy:!0}],null,!1,2592559336)})],1):t._e(),t.currentPost.linkAssistant.modalOpen&&t.$root._data.screenContext==="sidebar"?e("core-modal-portal",{attrs:{classes:["aioseo-link-assistant-modal"]},on:{close:t.toggleLinkAssistantModal}},[e("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.modalHeader)+" ")]),e("div",{attrs:{slot:"body"},slot:"body"},[e("core-blur",[e("core-main-tabs",{staticClass:"link-tabs",attrs:{internal:"",tabs:t.tabs,active:t.initialTab,showSaveButton:!1},scopedSlots:t._u([{key:"md-tab-icon",fn:function({tab:i}){return[e(i.icon,{tag:"component",class:[{warning:i.data.warning}]})]}}],null,!1,2019150867)}),t.activeTab==="inbound-internal"?e("link-assistant-inbound-internal",{attrs:{post:t.mockedPostData,metabox:""}}):t._e()],1),e("cta",{attrs:{"cta-link":t.$links.getPricingUrl("link-assistant","link-assistant-upsell","metabox"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("link-assistant","metabox","home"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[e("required-plans",{attrs:{addon:"aioseo-link-assistant"}}),t._v(" "+t._s(t.strings.linkAssistantDescription)+" ")]},proxy:!0}],null,!1,2592559336)})],1)]):t._e(),this.parentComponentContext!=="modal"?e("links-side-bar"):t._e()],1)},di=[],pi=r(ci,ui,di,!1,null,null,null,null);const G=pi.exports,_i={};var hi=function(){var t=this,e=t._self._c;return e("div")},mi=[],gi=r(_i,hi,mi,!1,null,null,null,null);const fi=gi.exports;const vi={components:{Links:G,LinksActivate:fi,LinksLite:G},props:{parentComponentContext:String},computed:{...g(["isUnlicensed"])}};var $i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content aioseo-link-assistant"},[!t.isUnlicensed&&t.$addons.isActive("aioseo-link-assistant")&&!t.$addons.requiresUpgrade("aioseo-link-assistant")?e("Links",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e(),t.isUnlicensed||t.$addons.requiresUpgrade("aioseo-link-assistant")?e("LinksLite",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e(),!t.isUnlicensed&&!t.$addons.isActive("aioseo-link-assistant")&&t.$addons.canActivate("aioseo-link-assistant")&&!t.$addons.requiresUpgrade("aioseo-link-assistant")?e("LinksActivate",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e()],1)},yi=[],bi=r(vi,$i,yi,!1,null,null,null,null);const ki=bi.exports;const Ci={components:{BaseImg:et,CoreAlert:m,CoreFacebookPreview:oe,CoreHtmlTagsEditor:B,CoreSettingsRow:_,SvgCirclePlus:k},mixins:[Q,X,W,E,M,tt,v],props:{isMobilePreview:{type:Boolean,default(){return!1}}},data(){return{titleCount:0,descriptionCount:0,strings:{tabName:this.$t.__("Facebook Preview",this.$td),imageSource:this.$t.__("Image Source",this.$td),customFieldsName:this.$t.__("Custom Field Name",this.$td),video:this.$t.__("Video URL",this.$td),width:this.$t.__("Width",this.$td),height:this.$t.__("Height",this.$td),facebookObjectType:this.$t.__("Object Type",this.$td),facebookImage:this.$t.__("Facebook Image",this.$td),facebookTitle:this.$t.__("Facebook Title",this.$td),facebookDescription:this.$t.__("Facebook Description",this.$td),uploadOrSelectImage:this.$t.__("Upload or Select Image",this.$td),pasteYourImageUrl:this.$t.__("Paste your image URL or select a new image",this.$td),minimumSize:this.$t.__("Minimum size: 200px x 200px, ideal ratio 1.91:1, 5MB max. (eg: 1640px x 856px or 3280px x 1712px for retina screens). JPG, PNG, WEBP and GIF formats only.",this.$td),remove:this.$t.__("Remove",this.$td),clickToAddSiteName:this.$t.__("Click on the tags below to insert variables into your site name.",this.$td),clickToAddHomePageDescription:this.$t.__("Click on the tags below to insert variables into your meta description.",this.$td),articleSection:this.$t.__("Article Section",this.$td),articleTags:this.$t.__("Article Tags",this.$td),tagPlaceholder:this.$t.__("Press enter to create an article tag",this.$td),facebookDisabled:this.$t.sprintf(this.$t.__("No %1$s markup will be output for your post because it is currently disabled. You can enable %1$s markup in the Social Networks settings. %2$s",this.$td),this.$t.__("Open Graph",this.$td),this.$t.sprintf('<a href="%1$s" target="_blank">%2$s<span class="link-right-arrow"> →</span></a>',this.$aioseo.urls.aio.socialNetworks+"#facebook",this.$t.__("Go to Social Networks",this.$td)))}}},computed:{...o("live-tags",["liveTags"]),...o(["currentPost","metaBoxTabs","options","dynamicOptions"]),objectTypeOptions(){return[{groupLabel:this.$t.__("Default",this.$td),options:[{label:this.$t.__("Default Object Type (Set in Social Networks)",this.$td),value:"default"}]}].concat(this.$constants.OG_TYPE_OPTIONS)},previewTitle(){return this.parseTags(this.currentPost.og_title||this.currentPost.title||this.currentPost.tags.title||"#post_title #separator_sa #site_title")},previewDescription(){return this.parseTags(this.currentPost.og_description||this.currentPost.description||this.currentPost.tags.description||"#post_content")},shouldShowArticleSection(){const s=this.currentPost.context==="term"?"taxonomies":"postTypes";return this.currentPost.og_object_type==="article"||this.currentPost.og_object_type==="default"&&this.dynamicOptions.social.facebook.general[s][this.currentPost.postType||this.currentPost.termType].objectType==="article"}},methods:{...p(["savePostState"]),scrollToElement(){const s=document.getElementsByClassName("component-wrapper")[0];setTimeout(()=>{s&&(s.firstChild.scrollTop=0)},10)},saveImageType(s){this.$set(this.currentPost,"og_image_type",s),this.$store.commit("isDirty",!0)},getObjectTypeOptions(s){let t=null;return this.objectTypeOptions.forEach(e=>{const i=e.options.find(n=>n.value===s);i&&(t=i)}),t},setObjectType(s){this.$set(this.currentPost,"og_object_type",s),this.$store.commit("isDirty",!0)},updateImage(s){this.currentPost.og_image_custom_url=s,this.savePostState()}},watch:{"currentPost.og_image_type"(){this.setImageUrl()},"currentPost.og_image_custom_url"(){this.setImageUrl()}},mounted(){this.scrollToElement()}};var Pi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tab-facebook"},[e("core-settings-row",{attrs:{noBorder:"",noVerticalMargin:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.options.social.facebook.general.enable?t._e():e("core-alert",{staticClass:"facebook-disabled-warning",attrs:{type:"red"},domProps:{innerHTML:t._s(t.strings.facebookDisabled)}})]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.tabName},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-facebook-preview",{class:{ismobilecard:t.currentPost.socialMobilePreview},attrs:{description:t.previewDescription,image:t.imageUrl,loading:t.loading,title:t.previewTitle}})]},proxy:!0}])}),e("div",{attrs:{id:"aioseo-post-settings-facebook"}},[e("core-settings-row",{staticClass:"facebook-title-settings",attrs:{name:t.strings.facebookTitle,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-html-tags-editor",{staticClass:"facebook-meta-input",attrs:{"line-numbers":!1,single:"","tags-context":`${t.currentPost.postType||t.currentPost.termType}Title`,"default-tags":t.$tags.getDefaultTags(t.currentPost.context==="term"?"taxonomies":null,null,"title")},on:{counter:i=>t.updateCount(i,"titleCount"),input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddSiteName)+" ")]},proxy:!0}]),model:{value:t.currentPost.og_title,callback:function(i){t.$set(t.currentPost,"og_title",i)},expression:"currentPost.og_title"}}),e("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.titleCount,95))}})]},proxy:!0}])}),e("core-settings-row",{staticClass:"facebook-description-settings",attrs:{name:t.strings.facebookDescription,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-html-tags-editor",{staticClass:"facebook-meta-input",attrs:{"line-numbers":!1,description:"","tags-context":`${t.currentPost.postType||t.currentPost.termType}Description`,"default-tags":t.$tags.getDefaultTags(t.currentPost.context==="term"?"taxonomies":null,null,"description")},on:{counter:i=>t.updateCount(i,"descriptionCount"),input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddHomePageDescription)+" ")]},proxy:!0}]),model:{value:t.currentPost.og_description,callback:function(i){t.$set(t.currentPost,"og_description",i)},expression:"currentPost.og_description"}}),e("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.descriptionCount,200))}})]},proxy:!0}])}),e("core-settings-row",{staticClass:"facebook-image-source",attrs:{name:t.strings.imageSource,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-select",{attrs:{size:"medium",options:t.imageSourceOptionsFiltered,value:t.getImageSourceOptionFiltered(t.currentPost.og_image_type)},on:{input:i=>t.saveImageType(i.value)}})]},proxy:!0}])}),t.currentPost.og_image_type==="custom"?e("core-settings-row",{attrs:{name:t.strings.customFieldsName,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{type:"text",size:"medium",placeholder:t.strings.placeholder},on:{input:t.setIsDirty},model:{value:t.currentPost.og_image_custom_fields,callback:function(i){t.$set(t.currentPost,"og_image_custom_fields",i)},expression:"currentPost.og_image_custom_fields"}})]},proxy:!0}],null,!1,1200630708)}):t._e(),t.currentPost.og_image_type==="custom_image"?e("core-settings-row",{staticClass:"facebook-image",attrs:{name:t.strings.facebookImage},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"facebook-image-upload"},[e("base-input",{attrs:{size:"medium",placeholder:t.strings.pasteYourImageUrl},on:{input:t.setIsDirty},model:{value:t.currentPost.og_image_custom_url,callback:function(i){t.$set(t.currentPost,"og_image_custom_url",i)},expression:"currentPost.og_image_custom_url"}}),e("base-button",{staticClass:"insert-image",attrs:{size:"medium",type:"black"},on:{click:function(i){return t.openUploadModal("facebookImage",t.updateImage)}}},[e("svg-circle-plus"),t._v(" "+t._s(t.strings.uploadOrSelectImage)+" ")],1),e("base-button",{staticClass:"remove-image",attrs:{size:"medium",type:"gray"},on:{click:function(i){t.currentPost.og_image_custom_url=null}}},[t._v(" "+t._s(t.strings.remove)+" ")])],1),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.minimumSize)+" ")]),e("base-img",{attrs:{src:t.currentPost.og_image_custom_url}})]},proxy:!0}],null,!1,3927397516)}):t._e(),e("core-settings-row",{staticClass:"facebook-video",attrs:{name:t.strings.video,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{type:"text",size:"medium"},model:{value:t.currentPost.og_video,callback:function(i){t.$set(t.currentPost,"og_video",i)},expression:"currentPost.og_video"}})]},proxy:!0}])}),e("core-settings-row",{staticClass:"facebook-object-type",attrs:{name:t.strings.facebookObjectType,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-select",{attrs:{size:"medium","open-direction":"top",options:t.objectTypeOptions,"group-label":"groupLabel","group-values":"options",value:t.getObjectTypeOptions(t.currentPost.og_object_type)},on:{input:i=>t.setObjectType(i.value)}})]},proxy:!0}])}),t.shouldShowArticleSection?e("core-settings-row",{attrs:{name:t.strings.articleSection,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{type:"text",size:"medium"},model:{value:t.currentPost.og_article_section,callback:function(i){t.$set(t.currentPost,"og_article_section",i)},expression:"currentPost.og_article_section"}})]},proxy:!0}],null,!1,1205905290)}):t._e(),t.shouldShowArticleSection?e("core-settings-row",{attrs:{name:t.strings.articleTags,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-select",{attrs:{multiple:"",taggable:"",options:t.getJsonValue(t.currentPost.og_article_tags)||[],value:t.getJsonValue(t.currentPost.og_article_tags)||[],"tag-placeholder":t.strings.tagPlaceholder},on:{input:i=>t.currentPost.og_article_tags=t.setJsonValue(i)}})]},proxy:!0}],null,!1,2497302637)}):t._e()],1)],1)},xi=[],wi=r(Ci,Pi,xi,!1,null,null,null,null);const Si=wi.exports;const Ti={components:{BaseImg:et,CoreAlert:m,CoreHtmlTagsEditor:B,CoreSettingsRow:_,CoreTwitterPreview:le,SvgCirclePlus:k},mixins:[Q,X,E,M,tt,v],props:{isMobilePreview:{type:Boolean,default(){return!1}}},data(){return{titleCount:0,descriptionCount:0,strings:{twitterPreview:this.$t.__("Twitter Preview",this.$td),useFB:this.$t.__("Use Data from Facebook Tab",this.$td),imageSource:this.$t.__("Image Source",this.$td),customFieldsName:this.$t.__("Custom Field Name",this.$td),twitterImage:this.$t.__("Twitter Image",this.$td),twitterTitle:this.$t.__("Twitter Title",this.$td),twitterDescription:this.$t.__("Twitter Description",this.$td),twitterCardType:this.$t.__("Twitter Card Type",this.$td),pasteYourImageUrl:this.$t.__("Paste your image URL or select a new image",this.$td),uploadOrSelectImage:this.$t.__("Upload or Select Image",this.$td),remove:this.$t.__("Remove",this.$td),minimumSizeSummary:this.$t.__("Minimum size: 144px x 144px, ideal ratio 1:1, 5MB max. JPG, PNG, WEBP and GIF formats only.",this.$td),minimumSizeSummaryWithLarge:this.$t.__("Minimum size: 300px x 157px, ideal ratio 2:1, 5MB max. JPG, PNG, WEBP and GIF formats only.",this.$td),twitterDisabled:this.$t.sprintf(this.$t.__("No %1$s markup will be output for your post because it is currently disabled. You can enable %1$s markup in the Social Networks settings. %2$s",this.$td),this.$t.__("Twitter",this.$td),this.$t.sprintf('<a href="%1$s" target="_blank">%2$s<span class="link-right-arrow"> →</span></a>',this.$aioseo.urls.aio.socialNetworks+"#twitter",this.$t.__("Go to Social Networks",this.$td)))}}},computed:{...o(["currentPost","metaBoxTabs","options"]),twitterCards(){return[{label:this.$t.__("Default (Set under Social Networks)",this.$td),value:"default"},{label:this.$t.__("Summary",this.$td),value:"summary"},{label:this.$t.__("Summary with Large Image",this.$td),value:"summary_large_image"}]},previewTitle(){const s=this.currentPost.twitter_use_og?this.currentPost.og_title:this.currentPost.twitter_title;return this.parseTags(s||this.currentPost.title||this.currentPost.tags.title||"#post_title #separator_sa #site_title")},previewDescription(){const s=this.currentPost.twitter_use_og?this.currentPost.og_description:this.currentPost.twitter_description;return this.parseTags(s||this.currentPost.description||this.currentPost.tags.description||"#post_content")}},methods:{...p(["savePostState"]),getCardOptions(s){return this.twitterCards.find(t=>t.value===s)},cardSelect(s){this.$set(this.currentPost,"twitter_card",s),this.$store.commit("isDirty",!0)},scrollToElement(){const s=document.getElementsByClassName("component-wrapper")[0];setTimeout(()=>{s&&(s.firstChild.scrollTop=0)},10)},saveTwitterImageType(s){this.$set(this.currentPost,"twitter_image_type",s),this.$store.commit("isDirty",!0)},updateImage(s){this.currentPost.twitter_image_custom_url=s,this.savePostState()}},watch:{"currentPost.twitter_use_og"(){this.setImageUrl()},"currentPost.twitter_image_type"(){this.setImageUrl()},"currentPost.twitter_image_custom_url"(){this.setImageUrl()}},mounted(){this.scrollToElement()}};var Ai=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tab-twitter"},[e("core-settings-row",{attrs:{noBorder:"",noVerticalMargin:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.options.social.twitter.general.enable?t._e():e("core-alert",{staticClass:"twitter-disabled-warning",attrs:{type:"red"},domProps:{innerHTML:t._s(t.strings.twitterDisabled)}})]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.twitterPreview},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-twitter-preview",{class:{ismobilecard:t.currentPost.socialMobilePreview},attrs:{card:t.currentPost.twitter_card,description:t.previewDescription,image:t.imageUrl,loading:t.loading,title:t.previewTitle}})]},proxy:!0}])}),e("div",{attrs:{id:"aioseo-post-settings-twitter"}},[e("core-settings-row",{staticClass:"use-facebook",attrs:{name:t.strings.useFB},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-toggle",{on:{input:t.setIsDirty},model:{value:t.currentPost.twitter_use_og,callback:function(i){t.$set(t.currentPost,"twitter_use_og",i)},expression:"currentPost.twitter_use_og"}})]},proxy:!0}])}),t.currentPost.twitter_use_og?t._e():e("core-settings-row",{staticClass:"twitter-title-settings",attrs:{name:t.strings.twitterTitle,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-html-tags-editor",{staticClass:"twitter-meta-input",attrs:{"line-numbers":!1,single:"","tags-context":`${t.currentPost.postType||t.currentPost.termType}Title`,"default-tags":t.$tags.getDefaultTags(t.currentPost.context==="term"?"taxonomies":null,null,"title")},on:{counter:i=>t.updateCount(i,"titleCount"),input:t.setIsDirty},model:{value:t.currentPost.twitter_title,callback:function(i){t.$set(t.currentPost,"twitter_title",i)},expression:"currentPost.twitter_title"}}),e("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.titleCount,70))}})]},proxy:!0}],null,!1,4187010693)}),t.currentPost.twitter_use_og?t._e():e("core-settings-row",{staticClass:"twitter-description-settings",attrs:{name:t.strings.twitterDescription,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-html-tags-editor",{staticClass:"twitter-meta-input",attrs:{"line-numbers":!1,description:"","tags-context":`${t.currentPost.postType||t.currentPost.termType}Description`,"default-tags":t.$tags.getDefaultTags(t.currentPost.context==="term"?"taxonomies":null,null,"description")},on:{counter:i=>t.updateCount(i,"descriptionCount"),input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddHomePageDescription)+" ")]},proxy:!0}],null,!1,3376949532),model:{value:t.currentPost.twitter_description,callback:function(i){t.$set(t.currentPost,"twitter_description",i)},expression:"currentPost.twitter_description"}}),e("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.descriptionCount,200))}})]},proxy:!0}],null,!1,577802586)}),t.currentPost.twitter_use_og?t._e():e("core-settings-row",{staticClass:"twitter-image-source",attrs:{name:t.strings.imageSource,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-select",{attrs:{size:"medium",options:t.imageSourceOptionsFiltered,value:t.getImageSourceOptionFiltered(t.currentPost.twitter_image_type)},on:{input:i=>t.saveTwitterImageType(i.value)}})]},proxy:!0}],null,!1,45254494)}),!t.currentPost.twitter_use_og&&t.currentPost.twitter_image_type==="custom"?e("core-settings-row",{staticClass:"twitter-custom-field",attrs:{name:t.strings.customFieldsName,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{type:"text",size:"medium",placeholder:t.strings.placeholder},on:{input:t.setIsDirty},model:{value:t.currentPost.twitter_image_custom_fields,callback:function(i){t.$set(t.currentPost,"twitter_image_custom_fields",i)},expression:"currentPost.twitter_image_custom_fields"}})]},proxy:!0}],null,!1,2513842721)}):t._e(),!t.currentPost.twitter_use_og&&t.currentPost.twitter_image_type==="custom_image"?e("core-settings-row",{staticClass:"twitter-image",attrs:{name:t.strings.twitterImage},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"twitter-image-upload"},[e("base-input",{attrs:{size:"medium",placeholder:t.strings.pasteYourImageUrl},on:{input:t.setIsDirty},model:{value:t.currentPost.twitter_image_custom_url,callback:function(i){t.$set(t.currentPost,"twitter_image_custom_url",i)},expression:"currentPost.twitter_image_custom_url"}}),e("base-button",{staticClass:"insert-image",attrs:{size:"medium",type:"black"},on:{click:function(i){return t.openUploadModal("twitterImage",t.updateImage)}}},[e("svg-circle-plus"),t._v(" "+t._s(t.strings.uploadOrSelectImage)+" ")],1),e("base-button",{staticClass:"remove-image",attrs:{size:"medium",type:"gray"},on:{click:function(i){t.currentPost.twitter_image_custom_url=null}}},[t._v(" "+t._s(t.strings.remove)+" ")])],1),e("div",{staticClass:"aioseo-description"},[t.currentPost.twitter_card==="summary"||t.currentPost.twitter_card==="default"&&t.options.social.twitter.general.defaultCardType==="summary"?e("span",[t._v(t._s(t.strings.minimumSizeSummary))]):t._e(),t.currentPost.twitter_card==="summary_large_image"||t.currentPost.twitter_card==="default"&&t.options.social.twitter.general.defaultCardType==="summary_large_image"?e("span",[t._v(t._s(t.strings.minimumSizeSummaryWithLarge))]):t._e()]),e("base-img",{attrs:{src:t.currentPost.twitter_image_custom_url}})]},proxy:!0}],null,!1,887651572)}):t._e(),e("core-settings-row",{staticClass:"twitter-card-type",attrs:{name:t.strings.twitterCardType,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-select",{attrs:{size:"medium","open-direction":"top",options:t.twitterCards,value:t.getCardOptions(t.currentPost.twitter_card)},on:{input:i=>t.cardSelect(i.value)}})]},proxy:!0}])})],1)],1)},Li=[],Ii=r(Ti,Ai,Li,!1,null,null,null,null);const Mi=Ii.exports;const Ri={components:{CoreSettingsRow:_,SvgPencil:x},data(){return{strings:{title:this.$t.__("Social Media",this.$td),sidebarCopy:this.$t.__("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media. Click on the button below to view and edit the preview.",this.$td),editSnippet:this.$t.__("Preview & Edit",this.$td)}}},methods:{...p(["openModal"]),...d(["changeTabSettings"]),openModalEv(){this.changeTabSettings({setting:"modal",value:"social"}),this.openModal(!0)}}};var Di=function(){var t=this,e=t._self._c;return t.$root._data.screenContext==="sidebar"?e("core-settings-row",{staticClass:"snippet-description-row open-social-copy",attrs:{name:t.strings.metaDescription},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"aioseo-sidebar-content-title"},[t._v(t._s(t.strings.title))]),e("p",[t._v(t._s(t.strings.sidebarCopy))]),e("base-button",{staticClass:"open-social-modal gray small",on:{click:t.openModalEv}},[e("svg-pencil"),t._v(" "+t._s(t.strings.editSnippet)+" ")],1)]},proxy:!0}],null,!1,610604356)}):t._e()},Ei=[],Oi=r(Ri,Di,Ei,!1,null,null,null,null);const Bi=Oi.exports;const Fi={components:{BaseRadioToggle:Z,CoreMainTabs:y,CoreSettingsRow:_,Facebook:Si,Twitter:Mi,SocialSideBar:Bi,SvgDesktop:at,SvgMobile:ot},props:{parentComponentContext:String},data(){return{strings:{pageName:this.$t.__("Social",this.$td)},tabs:[{slug:"facebook",name:this.$t.__("Facebook",this.$td)},{slug:"twitter",name:this.$t.__("Twitter",this.$td)}]}},computed:{...o(["currentPost","metaBoxTabs","options"]),initTab:function(){let s=this.metaBoxTabs.social;return P()["social-tab"]&&(s=P()["social-tab"],A("social-tab")),this.parentComponentContext==="modal"&&(s=this.metaBoxTabs.socialModal),s}},methods:{...p(["changeSocialPreview"]),...d(["changeTabSettings"]),isMobilePreviewEv(s){this.changeSocialPreview(s)},processChangeTab(s){this.parentComponentContext==="modal"?this.changeTabSettings({setting:"socialModal",value:s}):this.changeTabSettings({setting:"social",value:s})}}};var Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content aioseo-post-social"},[e("core-settings-row",{staticClass:"mobile-radio-buttons",scopedSlots:t._u([{key:"content",fn:function(){return[e("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.initTab,internal:""},on:{changed:i=>t.processChangeTab(i)}}),t.$root._data.screenContext==="metabox"||t.parentComponentContext==="modal"?e("base-radio-toggle",{staticClass:"circle",attrs:{value:t.currentPost.socialMobilePreview,name:"previewSocialIsMobile",options:[{label:"desktop",value:!1,activeClass:"dark",slot:"desktop"},{label:"mobile",value:!0,slot:"mobile"}]},on:{input:t.isMobilePreviewEv},scopedSlots:t._u([{key:"desktop",fn:function(){return[e("svg-desktop")]},proxy:!0},{key:"mobile",fn:function(){return[e("svg-mobile")]},proxy:!0}],null,!1,3417581673)}):t._e()]},proxy:!0}])}),e("transition",{attrs:{name:"route-fade",mode:"out-in"}},[e(t.initTab,{tag:"component"})],1),this.parentComponentContext!=="modal"?e("social-side-bar"):t._e()],1)},Hi=[],Gi=r(Fi,Ki,Hi,!1,null,null,null,null);const ut=Gi.exports;const Ni={components:{CoreMainTabs:y,CoreSettingsRow:_,General:lt,Social:ut,SvgSettings:st,SvgShare:it},data(){return{activeTab:"general",strings:{pageName:this.$t.__("Modal Content",this.$td)},tabs:[{slug:"general",icon:"svg-settings",name:"General"},{slug:"social",icon:"svg-share",name:"Social"}]}},computed:{...o(["metaBoxTabs"]),getTabs(){return this.tabs.filter(s=>this.$allowed(`aioseo_page_${s.slug}_settings`))}},methods:{...d(["changeTabSettings"]),processChangeTab(s){this.activeTab=s,this.changeTabSettings({setting:"modal",value:s})}}};var Ui=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-modal-content"},[e("div",{staticClass:"mobile-radio-buttons"},[e("core-main-tabs",{attrs:{tabs:t.getTabs,showSaveButton:!1,active:t.metaBoxTabs.modal,internal:""},on:{changed:i=>t.processChangeTab(i)}})],1),e("div",{staticClass:"component-wrapper"},[e("transition",{attrs:{name:"route-fade",mode:"out-in"}},[e(this.activeTab,{tag:"component",attrs:{parentComponentContext:"modal"}})],1)],1)])},Vi=[],qi=r(Ni,Ui,Vi,!1,null,null,null,null);const zi=qi.exports;const Wi={components:{CoreSettingsRow:_,SvgRightArrowShort:ct},data(){return{strings:{title:this.$t.__("Redirects",this.$td),description:this.$t.__("Here you can add a redirect or view your existing redirects from this page. Click on the button below to view the Redirects panel.",this.$td),button:this.$t.__("Open Redirects",this.$td)}}},methods:{...d(["toggleRedirectsModal"])}};var Yi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-redirects-sidebar"},[t.$root._data.screenContext==="sidebar"?e("core-settings-row",{staticClass:"snippet-description-row open-redirects-copy",scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"aioseo-sidebar-content-title"},[t._v(t._s(t.strings.title))]),e("p",[t._v(t._s(t.strings.description))]),e("base-button",{staticClass:"open-redirects-modal gray small",on:{click:t.toggleRedirectsModal}},[e("svg-right-arrow-short"),t._v(" "+t._s(t.strings.button)+" ")],1)]},proxy:!0}],null,!1,2798976986)}):t._e()],1)},Zi=[],ji=r(Wi,Yi,Zi,!1,null,"8b622754",null,null);const Ji=ji.exports,Qi={components:{CoreModalPortal:b,RedirectsSideBar:Ji,RedirectsLite:ue},props:{parentComponentContext:String},data(){return{strings:{modalHeader:this.$t.__("Redirects",this.$tdPro)}}},computed:{...o(["currentPost"])},methods:{...d(["toggleRedirectsModal"])}};var Xi=function(){var t=this,e=t._self._c;return e("div",[t.$root._data.screenContext==="metabox"?e("redirects-lite",{attrs:{noCoreCard:!0,parentComponentContext:t.parentComponentContext}}):t._e(),t.currentPost.redirects.modalOpen&&t.$root._data.screenContext==="sidebar"?e("core-modal-portal",{attrs:{classes:["aioseo-redirects","modal"]},on:{close:t.toggleRedirectsModal}},[e("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.strings.modalHeader)+" ")]),e("div",{attrs:{slot:"body"},slot:"body"},[e("div",{staticClass:"bd"},[e("redirects-lite",{attrs:{noCoreCard:!0,parentComponentContext:t.parentComponentContext}})],1)])]):t._e(),this.parentComponentContext!=="modal"?e("redirects-side-bar"):t._e()],1)},tn=[],en=r(Qi,Xi,tn,!1,null,null,null,null);const N=en.exports,sn={};var nn=function(){var t=this,e=t._self._c;return e("div")},rn=[],an=r(sn,nn,rn,!1,null,null,null,null);const on=an.exports,ln={props:{parentComponentContext:String},components:{Redirects:N,RedirectsActivate:on,RedirectsLite:N},computed:{...g(["isUnlicensed"])}};var cn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content"},[!t.isUnlicensed&&t.$addons.isActive("aioseo-redirects")&&!t.$addons.requiresUpgrade("aioseo-redirects")?e("Redirects",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e(),t.isUnlicensed||t.$addons.requiresUpgrade("aioseo-redirects")?e("RedirectsLite",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e(),!t.isUnlicensed&&!t.$addons.isActive("aioseo-redirects")&&t.$addons.canActivate("aioseo-redirects")&&!t.$addons.requiresUpgrade("aioseo-redirects")?e("RedirectsActivate",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e()],1)},un=[],dn=r(ln,cn,un,!1,null,null,null,null);const pn=dn.exports,_n={};var hn=function(){var t=this,e=t._self._c;return e("div")},mn=[],gn=r(_n,hn,mn,!1,null,null,null,null);const fn=gn.exports,vn={};var $n=function(){var t=this,e=t._self._c;return e("div")},yn=[],bn=r(vn,$n,yn,!1,null,null,null,null);const kn=bn.exports,Cn={};var Pn=function(){var t=this,e=t._self._c;return e("div")},xn=[],wn=r(Cn,Pn,xn,!1,null,null,null,null);const Sn=wn.exports,Tn={};var An=function(){var t=this,e=t._self._c;return e("div")},Ln=[],In=r(Tn,An,Ln,!1,null,null,null,null);const Mn=In.exports,Rn={};var Dn=function(){var t=this,e=t._self._c;return e("div")},En=[],On=r(Rn,Dn,En,!1,null,null,null,null);const Bn=On.exports,Fn={};var Kn=function(){var t=this,e=t._self._c;return e("div")},Hn=[],Gn=r(Fn,Kn,Hn,!1,null,null,null,null);const Nn=Gn.exports,Un={};var Vn=function(){var t=this,e=t._self._c;return e("div")},qn=[],zn=r(Un,Vn,qn,!1,null,null,null,null);const Wn=zn.exports,Yn={};var Zn=function(){var t=this,e=t._self._c;return e("div")},jn=[],Jn=r(Yn,Zn,jn,!1,null,null,null,null);const Qn=Jn.exports,Xn={};var tr=function(){var t=this,e=t._self._c;return e("div")},er=[],sr=r(Xn,tr,er,!1,null,null,null,null);const ir=sr.exports,nr={};var rr=function(){var t=this,e=t._self._c;return e("div")},ar=[],or=r(nr,rr,ar,!1,null,null,null,null);const lr=or.exports,cr={};var ur=function(){var t=this,e=t._self._c;return e("div")},dr=[],pr=r(cr,ur,dr,!1,null,null,null,null);const _r=pr.exports,hr={};var mr=function(){var t=this,e=t._self._c;return e("div")},gr=[],fr=r(hr,mr,gr,!1,null,null,null,null);const vr=fr.exports,$r={};var yr=function(){var t=this,e=t._self._c;return e("div")},br=[],kr=r($r,yr,br,!1,null,null,null,null);const Cr=kr.exports,Pr={};var xr=function(){var t=this,e=t._self._c;return e("div")},wr=[],Sr=r(Pr,xr,wr,!1,null,null,null,null);const Tr=Sr.exports,Ar={};var Lr=function(){var t=this,e=t._self._c;return e("div")},Ir=[],Mr=r(Ar,Lr,Ir,!1,null,null,null,null);const Rr=Mr.exports,Dr={};var Er=function(){var t=this,e=t._self._c;return e("div")},Or=[],Br=r(Dr,Er,Or,!1,null,null,null,null);const Fr=Br.exports,Kr={};var Hr=function(){var t=this,e=t._self._c;return e("div")},Gr=[],Nr=r(Kr,Hr,Gr,!1,null,null,null,null);const Ur=Nr.exports,Vr={};var qr=function(){var t=this,e=t._self._c;return e("div")},zr=[],Wr=r(Vr,qr,zr,!1,null,null,null,null);const Yr=Wr.exports,Zr={};var jr=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-trash",attrs:{viewBox:"0 0 11 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.0013 4V10.6667H2.66797V4H8.0013ZM7.0013 0H3.66797L3.0013 0.666667H0.667969V2H10.0013V0.666667H7.66797L7.0013 0ZM9.33463 2.66667H1.33464V10.6667C1.33464 11.4 1.93464 12 2.66797 12H8.0013C8.73464 12 9.33463 11.4 9.33463 10.6667V2.66667Z",fill:"currentColor"}})])},Jr=[],Qr=r(Zr,jr,Jr,!1,null,null,null,null);const Xr=Qr.exports,ta={};var ea=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-web-page",attrs:{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M3.6666 10.3H8.24994V9.3H3.6666V10.3ZM3.6666 7.5H10.3499V6.5H3.6666V7.5ZM3.6666 4.68333H10.3499V3.68333H3.6666V4.68333ZM2.08327 13.2333C1.72771 13.2333 1.41938 13.1028 1.15827 12.8417C0.897157 12.5806 0.766602 12.2722 0.766602 11.9167V2.08333C0.766602 1.71667 0.897157 1.40278 1.15827 1.14167C1.41938 0.880556 1.72771 0.75 2.08327 0.75H11.9166C12.2833 0.75 12.5972 0.880556 12.8583 1.14167C13.1194 1.40278 13.2499 1.71667 13.2499 2.08333V11.9167C13.2499 12.2722 13.1194 12.5806 12.8583 12.8417C12.5972 13.1028 12.2833 13.2333 11.9166 13.2333H2.08327ZM2.08327 11.9167H11.9166V2.08333H2.08327V11.9167ZM2.08327 2.08333V11.9167V2.08333Z",fill:"currentColor"}})])},sa=[],ia=r(ta,ea,sa,!1,null,null,null,null);const na=ia.exports,dt={components:{Article:fn,Book:kn,Course:Sn,Dataset:Mn,Event:Bn,FAQPage:Nn,FactCheck:Wn,HowTo:Qn,JobPosting:ir,Movie:lr,Music:_r,Person:vr,Product:Cr,Recipe:Tr,Service:Rr,SoftwareApplication:Fr,Video:Ur,WebPage:Yr,SvgArticle:bt,SvgBook:kt,SvgCircleQuestionMark:D,SvgCustomSchema:Ct,SvgCopy:Pt,SvgCourse:xt,SvgDataset:wt,SvgEvent:St,SvgFaqPage:Tt,SvgFactCheck:At,SvgFile:Lt,SvgFileEdit:It,SvgGoogleSmall:Mt,SvgHowTo:Rt,SvgJobPosting:Dt,SvgMovie:Et,SvgMusic:Ot,SvgPencil:x,SvgPerson:Bt,SvgProduct:Ft,SvgRecipe:Kt,SvgService:Ht,SvgSoftwareApplication:Gt,SvgTerminal:Nt,SvgTrash:Xr,SvgVideo:Ut,SvgWebPage:na},data(){return{graphs:[{slug:"article",graphName:"Article",label:this.$t.__("Article",this.$td)},{slug:"book",graphName:"Book",label:this.$t.__("Book",this.$td)},{slug:"course",graphName:"Course",label:this.$t.__("Course",this.$td)},{slug:"dataset",graphName:"Dataset",label:this.$t.__("Dataset",this.$td)},{slug:"event",graphName:"Event",label:this.$t.__("Event",this.$td)},{slug:"faq-page",graphName:"FAQPage",label:this.$t.__("FAQ",this.$td)},{slug:"fact-check",graphName:"FactCheck",label:this.$t.__("Fact Check",this.$td)},{slug:"how-to",graphName:"HowTo",label:this.$t.__("How To",this.$td)},{slug:"job-posting",graphName:"JobPosting",label:this.$t.__("Job Posting",this.$td)},{slug:"movie",graphName:"Movie",label:this.$t.__("Movie",this.$td)},{slug:"music",graphName:"Music",label:this.$t.__("Music",this.$td)},{slug:"person",graphName:"Person",label:this.$t.__("Person",this.$td)},{slug:"product",graphName:"Product",label:this.$t.__("Product",this.$td)},{slug:"recipe",graphName:"Recipe",label:this.$t.__("Recipe",this.$td)},{slug:"service",graphName:"Service",label:this.$t.__("Service",this.$td)},{slug:"software-application",graphName:"SoftwareApplication",label:this.$t.__("Software",this.$td)},{slug:"video",graphName:"Video",label:this.$t.__("Video",this.$td)},{slug:"web-page",graphName:"WebPage",label:this.$t.__("Web Page",this.$td)}],childGraphs:{Article:[{childGraphName:"BlogPosting",label:this.$t.__("Blog Post",this.$td)},{childGraphName:"NewsArticle",label:this.$t.__("News Article",this.$td)}],Music:[{childGraphName:"MusicAlbum",label:this.$t.__("Music Album",this.$td)},{childGraphName:"MusicGroup",label:this.$t.__("Music Group",this.$td)}],WebPage:[{childGraphName:"WebPage",label:this.$t.__("Web Page",this.$td)},{childGraphName:"AboutPage",label:this.$t.__("About Page",this.$td)},{childGraphName:"CheckoutPage",label:this.$t.__("Checkout Page",this.$td)},{childGraphName:"CollectionPage",label:this.$t.__("Collection Page",this.$td)},{childGraphName:"ContactPage",label:this.$t.__("Contact Page",this.$td)},{childGraphName:"ItemPage",label:this.$t.__("Item Page",this.$td)},{childGraphName:"MedicalPage",label:this.$t.__("Medical Page",this.$td)},{childGraphName:"ProfilePage",label:this.$t.__("Profile Page",this.$td)},{childGraphName:"RealEstateListing",label:this.$t.__("Real Estate Listing",this.$td)},{childGraphName:"SearchResultsPage",label:this.$t.__("Search Results Page",this.$td)}]}}},methods:{getParentGraphName(s){let t="";return Object.entries(this.childGraphs).forEach(e=>{const i=e[0];e[1].forEach(n=>{t||s===n.childGraphName&&(t=i)})}),t||s}}};const ra={mixins:[dt],props:{graph:Object,customGraph:Boolean,defaultGraph:String},computed:{graphLabel(){if(this.customGraph)return this.$t.__("Custom Schema",this.$td)+" - "+this.graph.graphName;if(this.defaultGraph)return this.formatDefaultGraphName(this.defaultGraph);if(this.graph.label)return this.graph.label;const s=this.graph.slug.toLowerCase();return this.graphs.find(t=>t.slug===s).label},graphIcon(){if(this.customGraph)return"svg-custom-schema";if(this.defaultGraph){const s=this.getParentGraphSlug(this.defaultGraph);return s?"svg-"+s:"svg-custom-schema"}return"svg-"+this.graph.slug}},methods:{getParentGraphSlug(s){Object.entries(this.childGraphs).forEach(e=>{const i=e[0];e[1].forEach(n=>{s===n.childGraphName&&(s=i)})});let t="";return this.graphs.forEach(e=>{e.graphName===s&&(t=e.slug)}),t},formatDefaultGraphName(s){let t="",e=s;return Object.entries(this.childGraphs).forEach(i=>{const n=i[0];i[1].forEach(a=>{t||s===a.childGraphName&&(t=n,e=a.label,this.graphs.forEach(l=>{l.graphName===n&&(t=l.label)}))})}),t?t+" - "+e+" "+this.$t.__("(Default)",this.$td):s+" "+this.$t.__("(Default)",this.$td)}}};var aa=function(){var t=this,e=t._self._c;return e("div",{staticClass:"graph-container"},[e("div",{staticClass:"graph"},[e("div",{staticClass:"left"},[e(t.graphIcon,{tag:"component"}),e("span",{attrs:{title:t.graphLabel}},[t._v(t._s(t.graphLabel))])],1),e("div",{staticClass:"right action-buttons"},[t._t("buttons")],2)])])},oa=[],la=r(ra,aa,oa,!1,null,null,null,null);const pt=la.exports;const ca={mixins:[dt],components:{CoreBlur:O,CoreMainTabs:y,CoreModalPortal:b,CoreTooltip:f,Cta:j,GraphCard:pt,SvgCirclePlus:k},data(){return{strings:{schemaGenerator:this.$t.__("Schema Generator",this.$td),headerTooltip:this.$t.sprintf(this.$t.__("Use our powerful Schema Generator to configure Schema Markup for your content. Search Engines use structured data to better understand what your site is about as well as to display rich snippets in search results. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"schema",!0)),searchSchema:this.$t.__("Search Schema",this.$tdPro),ctaDescription:this.$t.__("Easily generate unlimited schema markup for your content to help you rank higher in search results. Our schema validator ensures your schema works out of the box.",this.$tdPro),ctaButtonText:this.$t.__("Upgrade to Pro and Unlock Schema Generator",this.$td),ctaHeader:this.$t.sprintf(this.$t.__("Schema Generator is only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro")},features:[this.$t.__("Unlimited Schema",this.$td),this.$t.__("Validate with Google",this.$td),this.$t.__("Increase Rankings",this.$td),this.$t.__("Additional Schema Types",this.$td)],tabs:[{slug:"schema-templates",icon:"svg-file",name:this.$t.__("Schema Templates",this.$td),component:"templates"},{slug:"custom-schema",icon:"svg-file-edit",name:this.$t.__("Custom Schema",this.$td),component:"custom"},{slug:"schema-validation",icon:"svg-terminal",name:this.$t.__("Schema Validation",this.$td),component:"validation"}],templatesTabs:[{slug:"schema-catalog",name:this.$t.__("Schema Catalog",this.$td)},{slug:"your-templates",name:this.$t.__("Your Templates",this.$td)}]}}};var ua=function(){var t=this,e=t._self._c;return e("core-modal-portal",{attrs:{classes:["aioseo-post-schema-modal-cta"]},on:{close:function(i){return t.$emit("close")}},scopedSlots:t._u([{key:"headerTitle",fn:function(){return[e("div",{staticClass:"title"},[t._v(t._s(t.strings.schemaGenerator))]),e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("span",{domProps:{innerHTML:t._s(t.strings.headerTooltip)}})]},proxy:!0}])},[e("svg-circle-question-mark")],1)]},proxy:!0},{key:"body",fn:function(){return[e("core-blur",[e("core-main-tabs",{attrs:{tabs:t.tabs,active:"schema-templates",showSaveButton:!1},scopedSlots:t._u([{key:"md-tab-icon",fn:function({tab:i}){return[e(i.icon,{tag:"component"})]}}])}),e("div",{staticClass:"schema-templates"},[e("core-main-tabs",{attrs:{tabs:t.templatesTabs,active:"schema-catalog",showSaveButton:!1},scopedSlots:t._u([{key:"md-tab-icon",fn:function({tab:i}){return[e(i.icon,{tag:"component"})]}}])}),e("div",{staticClass:"main"},[e("base-input",{staticClass:"search",attrs:{size:"medium",prependIcon:"search",placeholder:t.strings.searchSchema}}),e("div",{staticClass:"schema-catalog"},[e("div",{staticClass:"graphs"},t._l(t.graphs,function(i,n){return e("graph-card",{key:i.graphName+n,attrs:{graph:i},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("base-button",{staticClass:"small",attrs:{type:"gray"}},[e("svg-circle-plus")],1)]},proxy:!0}],null,!0)})}),1)])],1)],1)],1),e("cta",{attrs:{"cta-link":t.$links.getPricingUrl("schema-generator","schema-generator-upsell"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("schema-generator",null,"home"),"feature-list":t.features},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0}])})]},proxy:!0}])})},da=[],pa=r(ca,ua,da,!1,null,null,null,null);const _a=pa.exports;const ha={components:{CoreAlert:m,CoreSettingsRow:_,CoreTooltip:f,CtaModal:_a,GraphCard:pt,SvgEye:de},props:{parentComponentContext:String},data(){return{modalOpenMetabox:!1,modalOpenSidebar:!1,strings:{sidebarDescription:this.$t.__("Configure Schema Markup for your content. Search engines use structured data to display rich results in SERPs.",this.$td),noGraphs:this.$t.__("You have not added any schema yet. You can add any schema graphs you like via the Schema Generator below.",this.$td),schemaInUse:this.$t.__("Schema In Use",this.$td),generateSchema:this.$t.__("Generate Schema",this.$td),validateSchema:this.$t.__("Validate Schema",this.$td),defaultGraphTooltip:this.$t.__("This is the default graph for this post type. All data for this graph will be automatically generated.",this.$td)}}},computed:{...o(["currentPost","schema"]),isSidebar(){return this.$root._data.screenContext==="sidebar"}}};var ma=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-tab-content aioseo-post-schema",class:[{sidebar:t.isSidebar}]},[e("core-settings-row",{attrs:{name:t.strings.schemaInUse},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"graphs"},[t.isSidebar?e("div",{staticClass:"sidebar-description"},[e("p",{staticClass:"description"},[t._v(t._s(t.strings.sidebarDescription))]),e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.$links.getDocLink(t.$constants.GLOBAL_STRINGS.learnMore,"schema",!0))}})]):t._e(),t.currentPost.schema.defaultGraph&&t.currentPost.schema.defaultGraph!=="none"?e("graph-card",{attrs:{defaultGraph:t.currentPost.schema.defaultGraph},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("core-tooltip",{attrs:{offset:t.isSidebar?"-70px,0":"0,0"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("span",{domProps:{innerHTML:t._s(t.strings.defaultGraphTooltip)}})]},proxy:!0}],null,!1,2088100193)},[e("base-button",{staticClass:"small no-hover",attrs:{type:"gray"}},[e("svg-eye")],1)],1)]},proxy:!0}],null,!1,1435612472)}):t._e()],1),e("div",{staticClass:"buttons"},[!t.currentPost.schema.defaultGraph||t.currentPost.schema.defaultGraph==="none"?e("core-alert",{staticClass:"no-graphs",attrs:{type:"yellow"}},[t._v(" "+t._s(t.strings.noGraphs)+" ")]):t._e(),e("base-button",{staticClass:"medium",attrs:{type:"blue"},on:{click:function(i){t.modalOpenMetabox=!0,t.modalOpenSidebar=!0}}},[t._v(" "+t._s(t.strings.generateSchema)+" ")]),e("base-button",{staticClass:"medium",attrs:{type:"gray"},on:{click:function(i){t.modalOpenMetabox=!0,t.modalOpenSidebar=!0}}},[t._v(" "+t._s(t.strings.validateSchema)+" ")])],1),!t.isSidebar&&t.modalOpenMetabox?e("cta-modal",{on:{close:function(i){t.modalOpenMetabox=!1}}}):t._e(),t.isSidebar&&t.modalOpenSidebar?e("cta-modal",{on:{close:function(i){t.modalOpenSidebar=!1}}}):t._e()]},proxy:!0}])})],1)},ga=[],fa=r(ha,ma,ga,!1,null,null,null,null);const U=fa.exports,va={props:{parentComponentContext:String},components:{Schema:U,SchemaLite:U},computed:{...g(["isUnlicensed"])}};var $a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-post-schema-view"},[t.isUnlicensed?t._e():e("schema",{attrs:{parentComponentContext:t.parentComponentContext}}),t.isUnlicensed?e("schema-lite",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e()],1)},ya=[],ba=r(va,$a,ya,!1,null,null,null,null);const ka=ba.exports,Ca={};var Pa=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-circle-information-solid",attrs:{viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M7.00016 0.833334C3.32016 0.833334 0.333496 3.82 0.333496 7.5C0.333496 11.18 3.32016 14.1667 7.00016 14.1667C10.6802 14.1667 13.6668 11.18 13.6668 7.5C13.6668 3.82 10.6802 0.833334 7.00016 0.833334ZM7.66683 10.8333H6.3335V9.5H7.66683V10.8333ZM7.66683 8.16667H6.3335V4.16667H7.66683V8.16667Z",fill:"currentColor"}})])},xa=[],wa=r(Ca,Pa,xa,!1,null,null,null,null);const Sa=wa.exports,Ta={};var Aa=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-receipt",attrs:{viewBox:"0 0 12 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M11 1.83325L10 0.833252L9 1.83325L8 0.833252L7 1.83325L6 0.833252L5 1.83325L4 0.833252L3 1.83325L2 0.833252L1 1.83325L0 0.833252V14.1666L1 13.1666L2 14.1666L3 13.1666L4 14.1666L5 13.1666L6 14.1666L7 13.1666L8 14.1666L9 13.1666L10 14.1666L11 13.1666L12 14.1666V0.833252L11 1.83325ZM1.33333 12.2266V2.77328H10.6667V12.2266H1.33333ZM10 10.8333V9.49992H2V10.8333H10ZM10 6.83325V8.16659H2V6.83325H10ZM10 5.49992V4.16658H2V5.49992H10Z",fill:"currentColor"}})])},La=[],Ia=r(Ta,Aa,La,!1,null,null,null,null);const Ma=Ia.exports,Ra={};var Da=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"aioseo-crossed-arrows",attrs:{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.26625 4.7737L1.73375 0.249954L0.5 1.4837L5.02375 6.00745L6.26625 4.7737ZM9.6875 0.249954L11.4725 2.03495L0.5 13.0162L1.73375 14.25L12.715 3.27745L14.5 5.06245V0.249954H9.6875ZM8.74251 9.71747L9.97626 8.48372L12.715 11.2225L14.5 9.43746V14.25H9.68751L11.4813 12.4562L8.74251 9.71747Z",fill:"currentColor"}})])},Ea=[],Oa=r(Ra,Da,Ea,!1,null,null,null,null);const Ba=Oa.exports;const Fa={components:{Advanced:be,Alert:nt,CoreMainTabs:y,CoreModalPortal:b,General:lt,LinkAssistant:ki,ModalContent:zi,Redirects:pn,Schema:ka,Social:ut,SvgBuild:ce,SvgCaret:L,SvgCircleInformationSolid:Sa,SvgClose:q,SvgLinkSuggestion:F,SvgReceipt:Ma,SvgRedirectCrossedArrows:Ba,SvgSettings:st,SvgShare:it},data(){return{activeTab:"general",modal:!1,strings:{pageName:"General",modalTitle:this.$t.__("Preview Snippet Editor",this.$td)},sidebarFirstOpen:!1}},watch:{currentPost:{deep:!0,handler(){mt(this.savePostState,250)}},"currentPost.modalOpen"(s){this.activeTab!=="general"&&this.maybeResetActiveTab(s)},"currentPost.linkAssistant.modalOpen"(s){this.maybeResetActiveTab(s)},"currentPost.redirects.modalOpen"(s){this.maybeResetActiveTab(s)},"metaBoxTabs.mainSidebar":{deep:!0,handler(s){this.$root._data.screenContext==="sidebar"&&this.processChangeTab(s.tab)}}},computed:{...o(["currentPost","redirects","metaBoxTabs"]),tabs(){var t,e;const s=[{slug:"general",icon:"svg-settings",name:"General"},{slug:"social",icon:"svg-share",name:"Social"},{slug:"schema",icon:"svg-receipt",name:"Schema"},{slug:"redirects",icon:"svg-redirect-crossed-arrows",name:"Redirects",warning:0<((e=(t=this==null?void 0:this.redirects)==null?void 0:t.rows)==null?void 0:e.filter(i=>!!i.enabled).length),permission:"aioseo_page_redirects_manage"},{slug:"advanced",icon:"svg-build",name:"Advanced"}];return!this.$aioseo.integration&&this.currentPost.context==="post"&&(!this.currentPost.linkAssistant||!this.currentPost.linkAssistant.isExcludedPost)&&s.splice(3,0,{slug:"linkAssistant",icon:"svg-link-suggestion",name:"Link Assistant"}),s},initTab(){return this.getTabs[0].slug},getTabs(){return this.currentPost.context==="term"||this.currentPost.isWooCommercePageWithoutSchema?this.tabs.filter(s=>s.slug!=="schema"&&this.$allowed(this.getTabPermission(s.slug),!0)):this.tabs.filter(s=>this.$allowed(this.getTabPermission(s.slug),!0)?!0:s.slug==="general"&&(this.$allowed("aioseo_page_analysis")||this.$allowed(this.getTabPermission(s.slug),!0)))}},methods:{...d(["toggleLinkAssistantModal","toggleRedirectsModal","changeTabSettings"]),...p(["openModal","updateState","savePostState"]),processChangeTab(s){switch(this.activeTab=s,this.$root._data.screenContext){case"sidebar":document.querySelectorAll(".components-panel__header").forEach(t=>{const e=s===null?"sticky":"static";t.style.position=e});break;default:this.changeTabSettings({setting:"main",value:s});break}if(this.sidebarFirstOpen){this.sidebarFirstOpen=!1;return}if(this.$root._data.screenContext==="sidebar")switch(s){case"social":this.currentPost.modalOpen||(this.changeTabSettings({setting:"modal",value:"social"}),this.openModal(!0));break;case"linkAssistant":this.currentPost.linkAssistant&&!this.currentPost.linkAssistant.modalOpen&&this.toggleLinkAssistantModal();break;case"redirects":this.currentPost.redirects&&!this.currentPost.redirects.modalOpen&&this.toggleRedirectsModal();break}},maybeResetActiveTab(s){s||this.$root._data.screenContext==="sidebar"&&this.$nextTick(()=>{this.processChangeTab(null)})},closeModal(){this.openModal(!1)},getTabPermission(s){const t=this.tabs.find(e=>e.slug===s);return typeof t.permission<"u"?t.permission:`aioseo_page_${t.slug}_settings`},getTabName(s){const t=this.tabs.find(e=>e.slug===s);return t==null?void 0:t.name}},created(){switch(this.sidebarFirstOpen=!0,this.modal=P()["aioseo-modaltab"]||this.modal,this.modal&&(this.changeTabSettings({setting:"modal",value:this.modal}),this.openModal(!0),setTimeout(()=>{A("aioseo-modaltab")},500)),this.$nextTick(()=>{this.metaBoxTabs.mainSidebar.tab&&this.processChangeTab(this.metaBoxTabs.mainSidebar.tab)}),this.$bus.$on("standalone-update-post",s=>{Object.keys(s).forEach(t=>{this.$set(this.currentPost,t,s[t])})}),this.$root._data.screenContext){case"sidebar":this.activeTab=null;break;default:this.activeTab=P()["aioseo-tab"]||this.initTab,this.changeTabSettings({setting:"main",value:this.activeTab}),setTimeout(()=>{A("aioseo-tab")},500);break}},beforeMount(){const s=document.querySelector(".interface-complementary-area__pin-unpin-item");s&&s!==null&&(s.style.display="block")}};var Ka=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-app aioseo-post-settings"},[t.$root._data.screenContext!=="sidebar"?e("core-main-tabs",{attrs:{tabs:t.getTabs,showSaveButton:!1,active:t.activeTab,internal:"",disableMobile:""},on:{changed:i=>t.processChangeTab(i)},scopedSlots:t._u([{key:"md-tab-icon",fn:function({tab:i}){return[e(i.icon,{tag:"component",class:[{warning:i.data.warning}]})]}}],null,!1,1941963731)}):t._e(),e("transition",{attrs:{name:"route-fade",mode:"out-in"}},[t.$root._data.screenContext==="sidebar"&&t.activeTab===null?e("div",{staticClass:"aioseo-sidepanel"},t._l(t.getTabs,function(i,n){return e("a",{key:n,staticClass:"aioseo-sidepanel-button",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.processChangeTab(i.slug)}}},[e(i.icon,{tag:"component",staticClass:"icon"}),e("div",{staticClass:"name"},[t._v(t._s(i.name))]),i.warning?e("svg-circle-information-solid",{attrs:{width:"15",height:"15"}}):t._e(),e("svg-caret")],1)}),0):t._e()]),e("transition",{attrs:{name:"route-fade",mode:"out-in"}},[t.activeTab?e("div",{key:t.activeTab,staticClass:"aioseo-tab",class:{"is-page-builder":!!t.$aioseo.integration}},[t.$root._data.screenContext==="sidebar"?e("div",{staticClass:"aioseo-tab-title"},[e("span",[t._v(t._s(t.getTabName(t.activeTab)))]),e("svg-close",{on:{click:function(i){return t.processChangeTab(null)}}})],1):t._e(),this.$root._data.screenContext==="sidebar"?e("alert"):t._e(),e(t.activeTab,{tag:"component",attrs:{parentComponentContext:"metabox"},on:{changeTab:i=>t.processChangeTab(i)}})],1):t._e()]),t.currentPost.modalOpen&&t.$root._data.screenContext==="sidebar"?e("core-modal-portal",{attrs:{classes:["aioseo-post-settings-modal"]},on:{close:t.closeModal}},[e("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.strings.modalTitle)+" ")]),e("div",{attrs:{slot:"body"},slot:"body"},[e("modal-content")],1)]):t._e()],1)},Ha=[],Ga=r(Fa,Ka,Ha,!1,null,null,null,null);const Na=Ga.exports;const Ua={components:{Alert:nt,MainView:Na},mixins:[Zt],data(){return{scrollContainer:".interface-interface-skeleton__content",scrollTimeout:1e3,ScrollAndHighlightTimeout:2e3}},computed:{...o(["currentPost"])},async created(){const{internalOptions:s,options:t,dynamicOptions:e,settings:i,notifications:n,addons:a,license:l,currentPost:c,tags:h,linkAssistant:C,redirects:S,schema:_t}=await $t(this.$http);this.$set(this.$store.state,"internalOptions",u({...this.$store.state.internalOptions},{...s})),this.$set(this.$store.state,"options",u({...this.$store.state.options},{...t})),this.$set(this.$store.state,"dynamicOptions",u({...this.$store.state.dynamicOptions},{...e})),this.$set(this.$store.state,"settings",u({...this.$store.state.settings},{...i})),this.$set(this.$store.state,"notifications",u({...this.$store.state.notifications},{...n})),this.$set(this.$store.state,"addons",u([...this.$store.state.addons],[...a])),this.$set(this.$store.state,"license",u({...this.$store.state.license},{...l})),this.$set(this.$store.state,"currentPost",u({...this.$store.state.currentPost},{...c})),this.$set(this.$store.state,"tags",u({...this.$store.state.tags},{...h})),this.$set(this.$store.state,"linkAssistant",u({...this.$store.state.linkAssistant},{...C})),this.$set(this.$store.state,"redirects",u({...this.$store.state.redirects},{...S})),this.$set(this.$store.state,"schema",u({...this.$store.state.schema},{..._t}))}};var Va=function(){var t=this,e=t._self._c;return e("div",[this.$root._data.screenContext!=="sidebar"?e("alert"):t._e(),t.currentPost.id?e("main-view"):t._e()],1)},qa=[],za=r(Ua,Va,qa,!1,null,null,null,null);const Fo=za.exports;export{Fo as A};