Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
superstepsgroup.com
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: General.71bb78bc.js
import{aq as m,f as i,i as w,j as u,a0 as g,R as p,M as y,P as H,U as v,T as U,b as at,o as yt,r as F,n as Le,an as mt,h as ft,af as Ue,ae as M,Q as k,v as r,O as re,ad as We,S as _t,B as G,a4 as vt,w as He,e as kt,aD as Ye,u as z,g as St}from"./vendor-vue-ui.f00a1236.js";import{M as bt,bv as Pe,i as it,H as wt,bw as Ct,bx as Y,aN as Ve,by as Se,Q as xt,bz as At,bA as Et,bB as Pt,bC as Tt,aL as Kt,bD as Mt,c as J,G as ae,bE as Bt,bF as It,bG as Dt,T as lt,b as Te,u as he,h as Ke,q as Me,bH as Lt,bI as dt,bJ as Ht,bK as Rt,bL as Ot,bM as Nt,bN as Ft,bO as Vt,bP as Ut,bQ as Wt,bR as zt,bS as $t,_ as qt,bT as jt,y as ct,U as Gt,A as Xe,bm as Yt,ai as Xt,e as Re,C as $,V as Jt,ah as Oe}from"./app-core.b862f9c8.js";import{u as Qt}from"./MaxCounts.56235a1f.js";import{C as N}from"./Tooltip.cb3a78f6.js";import{S as ze}from"./Caret.e6c9f7cc.js";import{S as Zt}from"./Close.de45e465.js";import{S as $e}from"./Ellipse.7306136d.js";import{S as ut}from"./Eye.2769085b.js";import{_ as I}from"./_plugin-vue_export-helper.eefbdd86.js";import{l as Ne,y as es,m as ts}from"./vendor-lodash.d3ad8b99.js";import{u as qe}from"./TruSeoScore.b67de13f.js";import{g as ss,M as os,i as Je}from"./MetaDescriptionModal.4dd2b6a5.js";import{b as ht,a as Be,S as ns}from"./Pencil.1ca5815a.js";import{S as rs}from"./Statistics.9ab9ed18.js";import{_ as pt,S as Ee}from"./Trash.c3e8db0b.js";import{_ as f,a as L}from"./vendor-other.7b559694.js";import{C as je}from"./Button.6c09d515.js";import{C as j}from"./Index.3967c277.js";import{S as Ge}from"./Plus.542c86d0.js";import{S as as}from"./AiContent.3a62156e.js";import{B as is}from"./RadioToggle.b2f1549c.js";import{C as ls}from"./GoogleSearchPreview.14fc9832.js";import{C as Qe}from"./HtmlTagsEditor.fc0c6398.js";import{C as X}from"./SettingsRow.1722e16a.js";import{T as ds}from"./Slide.805812ec.js";import{C as cs}from"./ProBadge.838818f5.js";import{C as us}from"./Index.08267eee.js";import{C as hs}from"./Tabs.37afc36c.js";import{S as ps,a as gs}from"./Mobile.3ce5f047.js";import"./CreditCounter.99aa2625.js";import"./Url.2a5968be.js";import"./Editor.ce4b47c1.js";import"./vendor-quill.e1eec88c.js";import"./Input.af82b72e.js";import"./UnfilteredHtml.d98e0104.js";import"./vendor-emoji.92c96208.js";import"./Row.2a7735dd.js";import"./Information.bbfb3caf.js";const ys={emits:["next","previous"],setup(){return{truSeoHighlighterStore:Pe()}},components:{CoreTooltip:N,SvgCaret:ze,SvgClose:Zt,SvgEllipse:$e,SvgEye:ut},computed:{total(){return this.truSeoHighlighterStore.highlightMarks.length},error(){return this.truSeoHighlighterStore.highlightAnalyzerHasError},order(){return this.truSeoHighlighterStore.highlightMarks.findIndex(s=>s.active)+1},showSentence(){return this.truSeoHighlighterStore.activeMark?.sentence.length&&this.truSeoHighlighterStore.activeMark.annotatorSelector==="block"},sentences(){const s=[];let o=1;return this.truSeoHighlighterStore.highlightMarks.forEach(t=>{t.node.isSameNode(this.truSeoHighlighterStore.activeMark.node)&&(s.push(`<strong>(${o})</strong> ${t.sentence}`),o++)}),bt(s.join(" "),1e3," [...]")}},methods:{close(){this.truSeoHighlighterStore.toggleHighlightAnalyzer(null)}}},ms={class:"tru-seo-highlight-popover","data-arrow-placement":"right"},fs={key:0,class:"tru-seo-highlight-popover__row tru-seo-highlight-popover__row--sentence"},_s={class:"tru-seo-highlight-popover__sentence"},vs=["innerHTML"],ks={class:"tru-seo-highlight-popover__row tru-seo-highlight-popover__row--main"},Ss={class:"tru-seo-highlight-popover__count"},bs={class:"tru-seo-highlight-popover__nav"},ws=["disabled"],Cs=["disabled"],xs={class:"tru-seo-highlight-popover__close"};function As(s,o,t,c,d,e){const _=m("svg-eye"),b=m("core-tooltip"),S=m("svg-ellipse"),a=m("svg-caret"),x=m("svg-close");return i(),w("div",ms,[e.showSentence?(i(),w("div",fs,[u("div",_s,[g(b,{offset:"120px,0"},{tooltip:p(()=>[u("span",{innerHTML:e.sentences},null,8,vs)]),default:p(()=>[g(_,{width:"16",height:"16"})]),_:1})])])):y("",!0),u("div",ks,[u("div",{class:H(["tru-seo-highlight-popover__bullet",{"tru-seo-highlight-popover__bullet--error":e.error}])},[g(S,{width:"8"})],2),u("div",Ss,[u("span",null,v(e.order)+"/"+v(e.total),1)]),o[3]||(o[3]=u("div",{class:"tru-seo-highlight-popover__pipe"},null,-1)),u("div",bs,[u("button",{type:"button",class:"caret-wrapper caret-wrapper--previous",tabindex:"0",disabled:e.order===1,onClick:o[0]||(o[0]=U(A=>s.$emit("previous"),["stop","exact"]))},[g(a,{width:"20"})],8,ws),u("button",{type:"button",class:"caret-wrapper",tabindex:"0",disabled:e.order===e.total,onClick:o[1]||(o[1]=U(A=>s.$emit("next"),["stop","exact"]))},[g(a,{width:"20"})],8,Cs)]),u("div",xs,[u("button",{type:"button",class:"close-wrapper",tabindex:"0",onClickOnce:o[2]||(o[2]=U((...A)=>e.close&&e.close(...A),["stop","exact"]))},[g(x,{width:"10"})],32)])])])}const Es=I(ys,[["render",As],["__scopeId","data-v-aa3e0f58"]]),Ps=()=>{const s=F(null),o=F({}),t=F(null),c=it(),d=wt(),e=F(!1),_=window?.wp?.data?.select("core/block-editor"),b=window?.wp?.data?.select("core/edit-post"),S=F(null),a=Pe(),x=()=>e.value&&Y()?.contentDocument||document,A=()=>e.value&&Y()?.contentWindow||window,Q=()=>{const n=x();if(!n||n===document||!n.head)return;const h="aioseo-tru-seo-highlight-styles";if(n.getElementById(h))return;const l=n.createElement("style");l.id=h,l.textContent=` mark.annotation-text.annotation-text-${a.source}, span.annotation-text.annotation-text-${a.source} { background-color: #CCE0FF; color: inherit; display: inline; font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; position: static; } .is-annotated-by-${a.source} { background-color: #CCE0FF; outline: 2px solid #CCE0FF; } `.trim(),n.head.appendChild(l)},pe=async(n,h="range")=>{let l="content";n.block?.attributes?.caption?l="caption":n.block?.attributes?.value?l="value":n.block?.attributes?.citation&&(l="citation"),n.annotatorSelector=h;const C=h==="block"?{selector:h,source:a.source,blockClientId:n.block.clientId}:{selector:h,id:n.id,range:n.range,source:a.source,blockClientId:n.block.clientId,richTextIdentifier:l};return a.dispatchAnnotations.__experimentalAddAnnotation(C)},ie=(n,h)=>{if(!h)return!1;!h.hasFocus()&&c&&h.focus();let l=h.selection.win.getSelection();l.selectAllChildren(n.parent);const C=l.toString().length;if(n.range.end<C)for(let E=n.range.end;E<C;E++)l.modify("extend","backward","character");if(0<n.range.start){l=At(l);for(let E=n.range.start;0<E;E--)l.modify("extend","forward","character")}h.undoManager.ignore(()=>{h.annotator.annotate(a.source,{uid:n.id})}),l.empty()},le=()=>{t.value&&(A().removeEventListener("scroll",t.value,!0),t.value=null)},de=()=>{if(le(),a.clearHighlightPopover(),a.sanitizeHighlightMarks(),!a.activeMark)return!1;const n=mt({name:"TruSeoHighlightPopover",render(){return ft(Es,{onNext(){B(1)},onPrevious(){B(-1)}})}}),h=Tt(),l=new ResizeObserver(Ne(ue,750)),C=D("wrapper");if(!C)return!1;if(d?C.parentElement.appendChild(h):e.value?Y().parentElement.appendChild(h):C.appendChild(h),n.mount(h),l.observe(D("wrapper"),{box:"border-box"}),a.highlightPopover.app=n,a.highlightPopover.node=h,a.highlightPopover.observer=l,d||e.value){t.value=()=>ue(),A().addEventListener("scroll",t.value,!0);const E=d?C:Y();h.addEventListener("wheel",P=>{P.preventDefault(),E.contentWindow.scrollBy(0,P.deltaY)},{passive:!1})}ue()},Z=()=>{a.toggleHighlightAnalyzer(null),a.allowHighlighting=!1},ge=({block:n,node:h})=>{try{let l="";return h?l=h.outerText.replace(/\n\n/g,` `):n&&(l=n?.attributes?.content||n?.attributes?.caption||n?.attributes?.value||n?.attributes?.citation||"",n.name==="core/table"&&(l=n?.originalContent||""),l=l.replace(/<br[^>]*>/gi,` `),l=Et(l)),Pt(l)}catch{return""}},D=n=>{if(n==="closest-relative")return Se({element:D("wrapper").parentElement,property:"position",value:"relative"});if(n==="navigable")return Se({element:D("wrapper").parentElement,property:"overflow-y",value:"auto"});if(d){if(n==="wrapper")return document.getElementById("content_ifr");if(n==="first-block")return S.value.getBody()?.firstElementChild||{}}if(c){if(n==="wrapper")return x().querySelector(".editor-styles-wrapper .is-root-container");if(n==="first-block"){const h=_.getBlocks()[0];return x().getElementById(`block-${h?.clientId}`)||{}}}},ye=()=>{for(const n of _.getBlocks()||[]){if(n.name==="core/freeform"){const h=window.tinymce.get(`editor-${n.clientId}`),l=h.getBody()?.children||[];if(!l.length)continue;te(h);for(const C of l)se({block:n,node:C});continue}se({block:n,node:null})}a.highlightMarks.forEach(async(n,h)=>{const l=h===a.highlightMarks.length-1;ee(n.parent,l),n.block.name==="core/freeform"?ie(n,window.tinymce.get(`editor-${n.block.clientId}`)):(await pe(n),l&&setTimeout(()=>{a.highlightMarks.at(-1)?.parent?.classList.add("is-hovered")},100))})},Ie=()=>{const n=S.value.getBody()?.children||[];if(!n.length)return!1;te(S.value);for(const h of n)se({block:null,node:h});a.highlightMarks.forEach((h,l)=>{ee(h.parent,l===a.highlightMarks.length-1),ie(h,S.value)})},B=n=>{const h=a.highlightMarks.findIndex(l=>l.active);if(!a.highlightMarks[h+n])return!1;a.allowScrolling=!0,a.highlightMarks[h].active=!1,a.highlightMarks[h+n].active=!0,de()},R=n=>{const h=A(),l=()=>{n.preventDefault(),n.clipboardData.setData("text/html",h.getSelection().toString())},C=h.getSelection()||{};if(!C?.rangeCount)return!1;const E=n.clipboardData?.getData("text/html")||"";if(E&&E.indexOf(a.source)!==-1)return l(),!1;const P=C.getRangeAt(0)||{};for(const T of Object.values(P?.cloneContents()?.children||[]))if(Object.values(T?.classList||[]).some(K=>K.endsWith(a.source)))return l(),!1},me=n=>{const h=(P,T)=>{P.collapse(T.firstChild,T.firstChild.length),P.deleteFromDocument()};if(["Delete","Backspace"].indexOf(n.key)===-1)return!1;const l=A().getSelection()||null;if(!l?.toString())return!1;const C=l?.anchorNode?.parentElement||null,E=l?.anchorNode?.nextElementSibling||null;Object.values(C?.classList||[]).some(P=>P.endsWith(a.source))?h(l,C):Object.values(E?.classList||[]).some(P=>P.endsWith(a.source))&&h(l,E)},fe=()=>{s.value=new MutationObserver(h=>{let l=!1;for(const C of h)for(const E of C?.removedNodes||[])(a.highlightMarks.some(P=>E.isEqualNode(P.parent))||Object.values(E?.classList||[]).some(P=>P.endsWith(a.source)))&&(l=!0);l&&_e()});const n=D("first-block")?.parentElement;if(typeof n!="object")return!1;s.value.observe(n,{attributes:!1,childList:!0,subtree:!0})},ee=(n,h=!1)=>{const l=(E,P)=>{P.disconnect();for(const T of E){if(T?.target?.classList.contains("is-hovered"))break;if(Object.values(T?.target?.classList||[]).some(K=>K.endsWith(a.source))){ve(T.target);continue}for(const K of T?.addedNodes||[])if(Object.values(K?.classList||[]).some(V=>V.endsWith(a.source))){ve(K);break}}h&&a.highlightMarks.forEach(async(T,K)=>{T.node||(ee(T.parent),await pe(T,"block")),K===a.highlightMarks.length-1&&(await Le(),Ne(de,250)())})};if(typeof n?.parentElement!="object")return!1;new MutationObserver(l).observe(n,{attributes:!0,childList:!0,subtree:!0})},ce=()=>{const n=h=>{for(const l of h){if(l?.type!=="attributes")continue;const C=D("wrapper");if(!C)return;const E=Se({element:C.parentElement,property:"display",value:"none"}),P=(C.ownerDocument||document).documentElement;if(!E?.isEqualNode(P)||c&&(b.getEditorMode()!=="visual"||_.getBlockMode(_.getSelectedBlock()?.clientId)==="html")||d&&(ke(),document.getElementById("content")?.nodeName==="TEXTAREA"&&document.getElementById("content").style.display!=="none"))return Z(),!1;a.allowHighlighting=!0}};a.wpBodyContentObserver=new MutationObserver(Ne(n,250)),a.wpBodyContentObserver.observe(document.getElementById("wpbody-content"),{attributes:!0,childList:!1,subtree:!0})},te=n=>{n.annotator.register(a.source,{persistent:!1,decorate:()=>({classes:["annotation-text",`annotation-text-${a.source}`]})})},ue=(n=[])=>{if(!a.activeMark||!a.highlightPopover.node)return!1;for(const l of n)if(JSON.stringify(l.contentRect)===JSON.stringify(o))return!1;n.length&&(o.value=n[0]?.contentRect||o,a.allowScrolling=!1);const h=a.activeMark.node.getBoundingClientRect();if(d){const l=D("wrapper").getBoundingClientRect(),C=D("closest-relative").getBoundingClientRect(),E=D("first-block").getBoundingClientRect(),[P,T]=[140,32];let K=h.top,V=E.left-C.left;P<V?(a.highlightPopover.node.style.top=K-C.top+"px",a.highlightPopover.node.style.transform="translate(-105%, 0)",a.highlightPopover.node.childNodes[0].dataset.arrowPlacement="right"):(K=K-T-C.top+l.top,V=V+l.left,a.highlightPopover.node.style.top=K+"px",a.highlightPopover.node.style.transform="translate(0, 0)",a.highlightPopover.node.childNodes[0].dataset.arrowPlacement="bottomleft"),a.highlightPopover.node.style.left=V+"px"}else if(e.value){const l=Y().getBoundingClientRect(),C=Se({element:Y().parentElement,property:"position",value:"relative"}).getBoundingClientRect(),E=D("first-block").getBoundingClientRect(),[P,T]=[140,32];let K=l.top+h.top-C.top;const V=l.left+E.left-C.left;P<V?(a.highlightPopover.node.style.top=K+"px",a.highlightPopover.node.style.transform="translate(-105%, 0)",a.highlightPopover.node.childNodes[0].dataset.arrowPlacement="right"):(K=K-T,a.highlightPopover.node.style.top=K+"px",a.highlightPopover.node.style.transform="translate(0, 0)",a.highlightPopover.node.childNodes[0].dataset.arrowPlacement="bottomleft"),a.highlightPopover.node.style.left=V+"px"}else{const l=D("wrapper").getBoundingClientRect(),C=D("first-block").getBoundingClientRect(),[E,P]=[140,32];let T=h.top-l.top;const K=C.left-l.left;E<K?(a.highlightPopover.node.style.top=T+"px",a.highlightPopover.node.style.transform="translate(-105%, 0)",a.highlightPopover.node.childNodes[0].dataset.arrowPlacement="right"):(T=T-P,a.highlightPopover.node.style.top=T+"px",a.highlightPopover.node.style.transform="translate(0, 0)",a.highlightPopover.node.childNodes[0].dataset.arrowPlacement="bottomleft"),a.highlightPopover.node.style.left=K+"px"}De()},_e=()=>{le();const n=A();n.removeEventListener("copy",R),n.removeEventListener("keyup",me),s.value?.disconnect(),a.clearAll(),Le().then(()=>{if(!a.highlightSentences)return a.toggleHighlightAnalyzer(null),!1;e.value&&Q(),c&&ye(),d&&Ie(),fe();const h=A();h.addEventListener("copy",R),h.addEventListener("keyup",me)})},De=()=>{Le().then(()=>{if(!a.allowScrolling)return!1;a.activeMark.node.scrollIntoView();let n=D("navigable"),h=n.scrollTop-60;d&&(h-=document.querySelector("#wp-content-editor-tools")?.getBoundingClientRect()?.height||0,h-=document.querySelector("#wp-content-editor-container .mce-toolbar-grp")?.getBoundingClientRect()?.height||0);const l=x();n.isEqualNode(l.documentElement)&&(n=A()),n.scrollTo({top:h}),a.allowScrolling=!1})},ve=n=>{const h=[];a.highlightMarks.forEach((l,C)=>{if(n.hasAttribute("data-mce-annotation-uid")&&n.dataset.mceAnnotationUid.indexOf(l.id)!==-1){h.push(C);return}if(n.classList.contains(`is-annotated-by-${a.source}`)&&l.block.clientId===n.dataset.block){h.push(C);return}n.id.indexOf(l.id)!==-1&&h.push(C)}),h.length&&h.forEach(l=>{a.highlightMarks[l].node=n})},se=({block:n,node:h})=>{const l=ge({block:n,node:h});if(l)for(const[C,E]of Object.entries(a.highlightSentences||{})){const P=new RegExp(xt(E),"g");let T;for(;(T=P.exec(l))!==null&&!a.highlightMarks.find(W=>W.sentenceIndex===C);){const K={start:T.index,end:T.index+T[0].length||1};a.highlightMarks.find(W=>h?(W.range.start===K.start||W.range.end===K.end)&&W.parent.isSameNode(h):(W.range.start===K.start||W.range.end===K.end)&&W.block.clientId===n.clientId)||a.highlightMarks.push({id:es(1,999999999),range:K,block:n,parent:h||x().getElementById(`block-${n.clientId}`),active:a.highlightMarks.length===0,sentenceIndex:C,sentence:E,node:null,annotatorSelector:null})}}if(n)for(const C of n?.innerBlocks||[])se({block:C,node:null})},ke=()=>{if(S.value)return!1;const n=window.setInterval(()=>{if(S.value=window?.tinymce?.get("content")||null,!S.value||!S.value.dom)return!1;window.clearInterval(n),S.value.dom.addStyle(` span.annotation-text.annotation-text-${a.source} { background-color: #CCE0FF; color: inherit; display: inline; font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; position: static; } `.trim())},500)},O=(n,h)=>{const l=JSON.stringify(n),C=JSON.stringify(h);l!==C&&_e()};return at(()=>{if(!a.enabled)return;a.wpBodyContentObserver&&a.wpBodyContentObserver?.disconnect();const n=window.setInterval(()=>{if(!e.value&&Ct()){if(!Y()?.contentDocument?.head)return;e.value=!0,Q()}D("wrapper")!==null&&(window.clearInterval(n),ce())},1e3)}),yt(()=>{(Ve()||!c&&!d)&&(a.enabled=!1),c&&(!a.dispatchAnnotations||!_||!b)&&(a.enabled=!1)}),{watchHighlightSentences:O}},Ts="all-in-one-seo-pack",Ks={emits:["selectedKeyphrase","deleted","saved"],setup(){return{keywordRankTrackerStore:Kt()}},components:{CoreTooltip:N,SvgPencil:ht,SvgStatistics:rs,SvgTrash:pt},props:{index:{type:Number},keyphrase:{type:String},score:{type:Number}},data(){return{edit:!1,strings:{delete:f("Delete",Ts)}}},computed:{scoreClass(){return 79<this.score?"score-green":49<this.score?"score-orange":0<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 o=s.target?.value.trim(),t=this.index;o?(this.edit=!1,this.$emit("saved",{index:t,value:o})):this.deleteKeyphraseEv(t)},pressEnter(s){s.preventDefault(),s.target.blur(),this.edit=!1}}},Ms={class:"aioseo-keyphrase-tag"},Bs={key:0,class:"aioseo-edit-keyphrase-tag"},Is=["value"];function Ds(s,o,t,c,d,e){const _=m("svg-pencil"),b=m("svg-statistics"),S=m("svg-trash"),a=m("core-tooltip");return i(),w("div",Ms,[u("span",{class:H(["aioseo-add-keyphrase-tag",d.edit?"hidden":""])},[u("span",{class:"keyphrase-name",onClick:o[0]||(o[0]=x=>e.toggleKeyphrasesPanel(t.index))},v(t.keyphrase),1),u("span",{class:"keyphrase-edit",onClick:o[1]||(o[1]=x=>e.editKeyphraseEv(t.index))},[g(_)]),u("a",{href:"#",onClick:o[2]||(o[2]=U(x=>c.keywordRankTrackerStore.toggleModal({modal:"modalOpenPostEdit",open:!0}),["prevent","exact"])),class:"btn-keyword-rank-tracker"},[g(b,{width:"20",height:"19"})]),u("span",{class:H(["keyphrase-score",e.scoreClass]),onClick:o[3]||(o[3]=x=>e.toggleKeyphrasesPanel(t.index))},v(t.score)+"/100",3)],2),d.edit?(i(),w("span",Bs,[u("input",{value:t.keyphrase,onBlur:o[4]||(o[4]=(...x)=>e.closeEdit&&e.closeEdit(...x)),onKeydown:o[5]||(o[5]=Ue((...x)=>e.pressEnter&&e.pressEnter(...x),["enter"]))},null,40,Is),u("span",{class:"keyphrase-delete",onClick:o[6]||(o[6]=x=>e.deleteKeyphraseEv(t.index))},[g(a,{type:"action"},{tooltip:p(()=>[M(v(d.strings.delete),1)]),default:p(()=>[g(S)]),_:1})])])):y("",!0)])}const gt=I(Ks,[["render",Ds]]),Ls={},Hs={width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-eye-filled"};function Rs(s,o){return i(),w("svg",Hs,[...o[0]||(o[0]=[u("path",{d:"M8.0018 8.57162C8.78938 8.57162 9.45817 8.29596 10.0082 7.74465C10.5582 7.19335 10.8332 6.5239 10.8332 5.73632C10.8332 4.94874 10.5575 4.27995 10.0062 3.72995C9.4549 3.17995 8.78546 2.90495 7.99787 2.90495C7.21029 2.90495 6.5415 3.1806 5.9915 3.73191C5.4415 4.28322 5.1665 4.95266 5.1665 5.74025C5.1665 6.52783 5.44216 7.19661 5.99347 7.74661C6.54477 8.29662 7.21422 8.57162 8.0018 8.57162ZM7.99592 7.60495C7.47631 7.60495 7.03595 7.42309 6.67484 7.05937C6.31373 6.69563 6.13317 6.25396 6.13317 5.73436C6.13317 5.21475 6.31503 4.77439 6.67875 4.41328C7.04249 4.05217 7.48415 3.87161 8.00375 3.87161C8.52337 3.87161 8.96373 4.05348 9.32484 4.4172C9.68595 4.78093 9.8665 5.2226 9.8665 5.7422C9.8665 6.26181 9.68464 6.70217 9.32092 7.06328C8.95719 7.42439 8.51552 7.60495 7.99592 7.60495ZM7.99984 10.7383C6.37762 10.7383 4.91095 10.2772 3.59984 9.35495C2.28873 8.43273 1.31095 7.22717 0.666504 5.73828C1.31095 4.24939 2.28873 3.04384 3.59984 2.12161C4.91095 1.19939 6.37762 0.738281 7.99984 0.738281C9.62206 0.738281 11.0887 1.19939 12.3998 2.12161C13.7109 3.04384 14.6887 4.24939 15.3332 5.73828C14.6887 7.22717 13.7109 8.43273 12.3998 9.35495C11.0887 10.2772 9.62206 10.7383 7.99984 10.7383Z",fill:"currentColor"},null,-1)])])}const Os=I(Ls,[["render",Rs]]),Ze="all-in-one-seo-pack",Ns={setup(){return{truSeoHighlighterStore:Pe()}},components:{CoreTooltip:N,SvgEye:ut,SvgEyeFilled:Os},props:{analyzer:String},data(){return{strings:{highlightSections:f("Highlight sections in the Editor",Ze),highlightingIsDisabled:f("Highlighting is disabled for current view",Ze)}}},methods:{onClickBtnToggleHighlighter(){this.truSeoHighlighterStore.toggleHighlightAnalyzer(this.analyzer)}}},Fs=["disabled"];function Vs(s,o,t,c,d,e){const _=m("svg-eye"),b=m("core-tooltip"),S=m("svg-eye-filled");return c.truSeoHighlighterStore.enabled?(i(),w("button",{key:0,type:"button",class:"tru-seo-toggle-highlighter",disabled:!c.truSeoHighlighterStore.allowHighlighting,onClick:o[0]||(o[0]=U(a=>e.onClickBtnToggleHighlighter(),["stop","exact"]))},[c.truSeoHighlighterStore.highlightAnalyzer!==t.analyzer?(i(),k(b,{key:0,offset:s.$root.$data.screenContext==="sidebar"?"-200px,0":"",type:"action"},{tooltip:p(()=>[M(v(c.truSeoHighlighterStore.allowHighlighting?d.strings.highlightSections:d.strings.highlightingIsDisabled),1)]),default:p(()=>[g(_,{width:"16",height:"16"})]),_:1},8,["offset"])):(i(),k(S,{key:1,width:"16",height:"16"}))],8,Fs)):y("",!0)}const Us=I(Ns,[["render",Vs]]),Ws={class:"aioseo-analysis-detail"},zs={key:0,class:"detail detail--pl-0"},$s={key:0,class:"detail"},qs={class:"title__text"},js={class:"description"},ne={__name:"MetaboxAnalysisDetail",props:{analysisItems:{type:Object}},setup(s){const t={switchToVisualEditor:f("TruSEO cannot analyze the post while you are using the Code Editor. Please switch back to the Visual Editor to view your results.","all-in-one-seo-pack")},c=d=>{d.target.parentElement.classList.toggle("toggled")};return(d,e)=>(i(),w("ul",Ws,[r(Mt)()?(i(),w("li",zs,[g(r(j),{type:"yellow"},{default:p(()=>[M(v(t.switchToVisualEditor),1)]),_:1})])):(i(!0),w(re,{key:1},We(s.analysisItems,(_,b)=>(i(),w(re,{key:b},[_.title?(i(),w("li",$s,[u("p",{class:H(["title",_.error===0?"toggled":""])},[_.error===0?(i(),k(r(Be),{key:0,width:"16"})):y("",!0),_.error===1?(i(),k(r(ns),{key:1,width:"16"})):y("",!0),u("span",qs,v(_.title),1),_?.highlightSentences?.length?(i(),k(r(Us),{key:2,analyzer:b},null,8,["analyzer"])):y("",!0),g(r(ze),{width:"16",role:"button",onClick:U(c,["stop"])})],2),u("p",js,v(_.description),1)])):y("",!0)],64))),128))]))}},Gs={emits:["saved","deleted","selected"],components:{CoreKeyphrase:gt,CoreLoader:je,MetaboxAnalysisDetail:ne},props:{keyphrases:{type:Array,required:!0},selectedKeyphrase:{type:Number,default:0},loading:{type:Array,default:()=>[]}},computed:{hasKeyphrases(){return this.keyphrases&&0<this.keyphrases.length},isLoading(){return this.loading[this.selectedKeyphrase]&&this.keyphrases[this.selectedKeyphrase]&&this.keyphrases[this.selectedKeyphrase].keyphrase},hasAnalysis(){return this.keyphrases[this.selectedKeyphrase]&&this.keyphrases[this.selectedKeyphrase].keyphrase},analysisItems(){return this.keyphrases[this.selectedKeyphrase]?.analysis||{}}},methods:{handleSaved(s){this.$emit("saved",s)},handleDeleted(s){this.$emit("deleted",s)},handleSelectedKeyphrase(s){this.$emit("selected",s)}}},Ys={key:0,class:"additional-keyphrases-display"},Xs={class:"analysis-wrapper"};function Js(s,o,t,c,d,e){const _=m("core-keyphrase"),b=m("core-loader"),S=m("metabox-analysis-detail");return e.hasKeyphrases?(i(),w("div",Ys,[(i(!0),w(re,null,We(t.keyphrases,(a,x)=>(i(),k(_,{key:x,index:x,keyphrase:a.keyphrase,score:a.score,onSaved:e.handleSaved,onDeleted:e.handleDeleted,onSelectedKeyphrase:e.handleSelectedKeyphrase,class:H(["aioseo-keyphrase-tag additional-keyphrase",t.selectedKeyphrase===x?"selected":null])},null,8,["index","keyphrase","score","onSaved","onDeleted","onSelectedKeyphrase","class"]))),128)),u("div",Xs,[e.isLoading?(i(),k(b,{key:0,class:"analysis-loading",dark:""})):y("",!0),!e.isLoading&&e.hasAnalysis?(i(),k(S,{key:1,analysisItems:e.analysisItems},null,8,["analysisItems"])):y("",!0)])])):y("",!0)}const Qs=I(Gs,[["render",Js],["__scopeId","data-v-bd384ffc"]]),et="all-in-one-seo-pack",Zs={emits:["add"],components:{CoreTooltip:N,SvgCirclePlus:Ge},props:{screenContext:{type:String,required:!0},maxReached:{type:Boolean,default:!1},maxAdditionalKeyphrases:{type:Number,required:!0}},computed:{strings(){return{addKeyphrase:f("Add Additional Keywords",et),maxAmountReached:L(f("You have reached the maximum of %1$s additional keywords.",et),this.maxAdditionalKeyphrases)}}},methods:{handleAddClick(){this.$emit("add")},handleEnter(s){s.preventDefault();const o=document.getElementById("add-additional-keyphrase");o&&o.click()}}},eo={class:"additional-keyphrase-input-wrapper"};function to(s,o,t,c,d,e){const _=m("base-input"),b=m("svg-circle-plus"),S=m("base-button"),a=m("core-tooltip");return i(),w("div",eo,[g(_,{size:"medium",class:H(`add-keyphrase-${t.screenContext}-input`),onKeydown:Ue(e.handleEnter,["enter"])},null,8,["class","onKeydown"]),t.maxReached?y("",!0):(i(),k(S,{key:0,id:"add-additional-keyphrase",class:"add-keyphrase gray medium",onClick:e.handleAddClick},{default:p(()=>[g(b,{width:"14",height:"14"}),M(" "+v(e.strings.addKeyphrase),1)]),_:1},8,["onClick"])),t.maxReached?(i(),k(a,{key:1},{tooltip:p(()=>[u("span",null,v(e.strings.maxAmountReached),1)]),default:p(()=>[g(S,{id:"add-additional-keyphrase",class:"add-keyphrase gray medium",disabled:!0},{default:p(()=>[g(b,{width:"14",height:"14"}),M(" "+v(e.strings.addKeyphrase),1)]),_:1})]),_:1})):y("",!0)])}const so=I(Zs,[["render",to],["__scopeId","data-v-a031c128"]]),tt="all-in-one-seo-pack",oo={components:{CoreAlert:j},data(){return{strings:{keyphraseDocumentation:f("Improve your SEO rankings with additional keywords.",tt),upsell:L(f("Additional Keywords are a %1$s feature. %2$s",tt),"PRO",J.getUpsellLink("post-settings","additional-keywords",ae.learnMore,"liteUpgrade",!0))}}}},no={class:"additional-keyphrases-upsell"},ro={class:"aioseo-description additional-keyphrases-description"},ao=["innerHTML"];function io(s,o,t,c,d,e){const _=m("core-alert");return i(),w("div",no,[u("div",ro,v(d.strings.keyphraseDocumentation),1),g(_,{class:"inline-upsell",type:"blue"},{default:p(()=>[u("div",{innerHTML:d.strings.upsell},null,8,ao)]),_:1})])}const lo=I(oo,[["render",io],["__scopeId","data-v-22516404"]]),co={setup(){return{licenseStore:Ke(),postEditorStore:he(),rootStore:Te(),truSeo:new lt}},components:{AdditionalKeyphrasesDisplay:Qs,AdditionalKeyphraseInput:so,AdditionalKeyphrasesUpsell:lo},data(){return{selectedKeyphrase:0}},watch:{"postEditorStore.currentPost.keyphrases.additional"(){this.postEditorStore.currentPost.keyphrases.additional&&!this.postEditorStore.currentPost.keyphrases.additional[this.selectedKeyphrase]&&(this.selectedKeyphrase=0)}},computed:{hasLicense(){return this.rootStore.isPro&&this.licenseStore.license.isActive},maxReached(){return this.postEditorStore.currentPost.maxAdditionalKeyphrases<=(this.postEditorStore.currentPost.keyphrases?.additional?.length||0)}},methods:{handleSelectedKeyphrase(s){this.selectedKeyphrase=s},handleSaved(s){const{index:o,value:t}=s;Dt({postEditorStore:this.postEditorStore,truSeo:this.truSeo,index:o,value:t,onSuccess:c=>{this.selectedKeyphrase=c}})},handleDeleted(s){It({postEditorStore:this.postEditorStore,truSeo:this.truSeo,index:s})},handleAdd(){const s=Bt({postEditorStore:this.postEditorStore,truSeo:this.truSeo,screenContext:this.$root.$data.screenContext,onSuccess:o=>{this.selectedKeyphrase=o}});s!==null&&(this.selectedKeyphrase=s)}},mounted(){this.selectedKeyphrase=this.postEditorStore.currentPost.keyphrases.additional?.length-1}},uo={class:"additional-keyphrases-panel"};function ho(s,o,t,c,d,e){const _=m("additional-keyphrases-display"),b=m("additional-keyphrase-input"),S=m("additional-keyphrases-upsell");return i(),w("div",uo,[e.hasLicense?(i(),k(_,{key:0,keyphrases:c.postEditorStore.currentPost.keyphrases.additional,"selected-keyphrase":d.selectedKeyphrase,loading:c.postEditorStore.currentPost.loading.additional,onSaved:e.handleSaved,onDeleted:e.handleDeleted,onSelected:e.handleSelectedKeyphrase},null,8,["keyphrases","selected-keyphrase","loading","onSaved","onDeleted","onSelected"])):y("",!0),e.hasLicense?(i(),k(b,{key:1,"screen-context":s.$root.$data.screenContext,"max-reached":e.maxReached,"max-additional-keyphrases":c.postEditorStore.currentPost.maxAdditionalKeyphrases,onAdd:e.handleAdd},null,8,["screen-context","max-reached","max-additional-keyphrases","onAdd"])):y("",!0),e.hasLicense?y("",!0):(i(),k(S,{key:2}))])}const st=I(co,[["render",ho],["__scopeId","data-v-5e4a7647"]]),po="all-in-one-seo-pack",go={setup(){return{settingsStore:Me()}},components:{CoreTooltip:N,SvgAiContent:as,MetaTitleModal:os,MetaDescriptionModal:ss},props:{feature:{type:Object,required:!0}},data(){return{strings:{useAiGenerator:f("Use AI Generator",po)},showModal:!1}}},yo={class:"aioseo-ai-generator"};function mo(s,o,t,c,d,e){const _=m("svg-ai-content"),b=m("core-tooltip");return i(),w("div",yo,[g(b,{type:"action",offset:"-30px,0"},{tooltip:p(()=>[M(v(d.strings.useAiGenerator),1)]),default:p(()=>[u("button",{type:"button",onClick:o[0]||(o[0]=S=>d.showModal=!0)},[g(_,{width:"18",height:"18"})])]),_:1}),(i(),k(_t(`${t.feature.slug}-modal`),{feature:t.feature,show:d.showModal,onCloseModal:o[1]||(o[1]=S=>d.showModal=!1)},null,40,["feature","show"]))])}const ot=I(go,[["render",mo]]),fo={setup(){const{getErrorClass:s,getErrorDisplay:o,getScoreClass:t,strings:c}=qe();return{getErrorClass:s,getErrorDisplay:o,getScoreClass:t,settingsStore:Me(),strings:c}},components:{CoreTooltip:N,SvgCaret:ze,SvgCircleCheck:Be,SvgCircleQuestionMark:Ee,SvgEllipse:$e,TransitionSlide:ds},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:{"settingsStore.metaBoxTabs.mainSidebar":{deep:!0,handler(s){this.$root.$data.screenContext==="sidebar"&&this.openCard(s.card)}}},methods:{openCard(s){for(const o in this.settingsStore.settings.toggledCards)this.settingsStore.settings.toggledCards[o]&&this.settingsStore.toggleCard({slug:o});this.settingsStore.toggleCard({slug:s})}},created(){this.openCard(this.settingsStore.metaBoxTabs.mainSidebar.card)}},_o={class:"aioseo-card aioseo-sidebar-card"},vo={class:"text"},ko={key:0,class:"content"},So={key:1,class:"content"};function bo(s,o,t,c,d,e){const _=m("svg-ellipse"),b=m("svg-circle-check"),S=m("svg-circle-question-mark"),a=m("core-tooltip"),x=m("svg-caret"),A=m("transition-slide");return i(),w("div",_o,[t.hideHeader?y("",!0):(i(),w("div",{key:0,class:"header",onClick:o[0]||(o[0]=Q=>c.settingsStore.toggleCard({slug:t.slug,shouldSave:t.saveToggleStatus}))},[u("div",vo,[G(s.$slots,"header",{},()=>[M(v(t.headerText),1)]),t.focusScore>=0?G(s.$slots,"alt",{key:0},()=>[t.focusScore!==null?(i(),w("span",{key:0,class:H(["card-score",c.getScoreClass(t.focusScore)])},v(t.focusScore)+"/100 ",3)):y("",!0)]):y("",!0),t.trueSeoScore>=0?G(s.$slots,"alt",{key:1},()=>[u("span",{class:H(["card-score",c.getErrorClass(t.trueSeoScore)])},[0<t.trueSeoScore?(i(),k(_,{key:0,width:"6"})):y("",!0),t.trueSeoScore===0?(i(),k(b,{key:1,width:"12"})):y("",!0),M(" "+v(c.getErrorDisplay(t.trueSeoScore)),1)],2)]):y("",!0),s.$slots.tooltip?(i(),k(a,{key:2},{tooltip:p(()=>[G(s.$slots,"tooltip")]),default:p(()=>[g(S)]),_:3})):y("",!0)]),t.toggles&&c.settingsStore.settings.toggledCards?(i(),k(x,{key:0,class:H({rotated:!c.settingsStore.settings.toggledCards[t.slug]})},null,8,["class"])):y("",!0)])),c.settingsStore.settings.toggledCards||t.noSlide?(i(),k(A,{key:1,active:c.settingsStore.settings.toggledCards[t.slug]&&t.toggles||t.noSlide},{default:p(()=>[s.$slots["before-tabs"]?(i(),w("div",ko,[G(s.$slots,"before-tabs")])):y("",!0),G(s.$slots,"tabs"),s.$slots.default?(i(),w("div",So,[G(s.$slots,"default")])):y("",!0)]),_:3},8,["active"])):y("",!0)])}const oe=I(fo,[["render",bo]]),be="all-in-one-seo-pack",wo={emits:["add"],components:{CoreTooltip:N,SvgCirclePlus:Ge},props:{screenContext:{type:String,required:!0}},data(){return{strings:{addKeyphrase:f("Add Focus Keyword",be),getAdditionalKeyphrases:f("Get Additional Keywords",be),semrushGetAdditionalKeyphrases:L(f("%1$s integrates directly with %2$s to provide you with actionable keywords to help you write better content.",be),"AIOSEO","Semrush"),pleaseAddFocusKeyphrase:f("To use this feature, first add a focus keyword.",be)}}},methods:{handleAddClick(){this.$emit("add")},handleEnter(s){s.preventDefault();const o=document.getElementById("add-focus-keyphrase");o&&o.click()}}},Co={class:"focus-keyphrase-input-wrapper"},xo={class:"disabled-button gray medium"};function Ao(s,o,t,c,d,e){const _=m("base-input"),b=m("svg-circle-plus"),S=m("base-button"),a=m("core-tooltip");return i(),w("div",Co,[g(_,{size:"medium",class:H(`add-focus-keyphrase-${t.screenContext}-input`),onKeydown:Ue(e.handleEnter,["enter"])},null,8,["class","onKeydown"]),u("div",{class:H(`add-focus-keyphrase-${t.screenContext}-button`)},[g(S,{id:"add-focus-keyphrase",class:"add-keyphrase gray medium",onClick:e.handleAddClick},{default:p(()=>[g(b,{width:"14",height:"14"}),M(" "+v(d.strings.addKeyphrase),1)]),_:1},8,["onClick"]),g(a,null,{tooltip:p(()=>[u("span",null,v(d.strings.semrushGetAdditionalKeyphrases)+" "+v(d.strings.pleaseAddFocusKeyphrase),1)]),default:p(()=>[u("div",xo,[g(b,{width:"14",height:"14"}),M(" "+v(d.strings.getAdditionalKeyphrases),1)])]),_:1})],2)])}const Eo=I(wo,[["render",Ao],["__scopeId","data-v-d13c67de"]]),Po={emits:["saved","deleted"],components:{CoreKeyphrase:gt,CoreLoader:je,MetaboxAnalysisDetail:ne},props:{keyphrase:{type:String,required:!0},score:{type:Number,default:0},loading:{type:Boolean,default:!1},analysisItems:{type:Object,default:()=>({})}},methods:{handleSaved(s){this.$emit("saved",s)},handleDeleted(){this.$emit("deleted")}}},To={class:"focus-keyphrase-display"};function Ko(s,o,t,c,d,e){const _=m("core-keyphrase"),b=m("core-loader"),S=m("metabox-analysis-detail");return i(),w("div",To,[g(_,{index:0,keyphrase:t.keyphrase,score:t.score,onSaved:e.handleSaved,onDeleted:e.handleDeleted,class:"aioseo-keyphrase-tag"},null,8,["keyphrase","score","onSaved","onDeleted"]),t.loading?(i(),k(b,{key:0,class:"analysis-loading",dark:""})):y("",!0),!t.loading&&t.analysisItems?(i(),k(S,{key:1,analysisItems:t.analysisItems},null,8,["analysisItems"])):y("",!0)])}const Mo=I(Po,[["render",Ko],["__scopeId","data-v-0d9ef5cb"]]),Fe="all-in-one-seo-pack",Bo={emits:["click"],components:{CoreTooltip:N,SvgCirclePlus:Ge},props:{hasFocusKeyphrase:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isPro:{type:Boolean,default:!1},isUnlicensed:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1},settingsUrl:{type:String,required:!0}},computed:{strings(){return{getAdditionalKeyphrases:f("Get Additional Keywords",Fe),semrushTooltip:L(f("Get Additional Keywords with %1$s!",Fe),"Semrush"),semrushTooltipLicenseKey:L(f("%1$sA valid license key is required%2$s in order to connect with %3$s.",Fe),'<a href="'+this.settingsUrl+'">',"</a>","Semrush")}}},methods:{handleClick(){this.$emit("click")}}},Io={class:"semrush-keywords-button-wrapper"},Do={class:"disabled-button gray"},Lo=["innerHTML"];function Ho(s,o,t,c,d,e){const _=m("svg-circle-plus"),b=m("core-tooltip"),S=m("base-button");return i(),w("div",Io,[!t.loading&&t.hasFocusKeyphrase&&t.isPro&&t.isUnlicensed?(i(),k(b,{key:0},{tooltip:p(()=>[u("span",{innerHTML:e.strings.semrushTooltipLicenseKey},null,8,Lo)]),default:p(()=>[u("div",Do,[g(_,{width:"14",height:"14"}),M(" "+v(e.strings.getAdditionalKeyphrases),1)])]),_:1})):y("",!0),!t.loading&&t.hasFocusKeyphrase&&(!t.isPro||!t.isUnlicensed)?(i(),k(b,{key:1,disabled:!t.showTooltip||t.isPro,"force-show":t.showTooltip&&!t.isPro},{tooltip:p(()=>[u("span",null,v(e.strings.semrushTooltip),1)]),default:p(()=>[g(S,{class:"add-keyphrase gray medium",onClick:e.handleClick},{default:p(()=>[g(_,{width:"14",height:"14"}),M(" "+v(e.strings.getAdditionalKeyphrases),1)]),_:1},8,["onClick"])]),_:1},8,["disabled","force-show"])):y("",!0)])}const Ro=I(Bo,[["render",Ho],["__scopeId","data-v-4eb801a3"]]),Oo={},No={viewBox:"0 0 158 21",class:"aioseo-logo-semrush"};function Fo(s,o){return i(),w("svg",No,[...o[0]||(o[0]=[u("path",{d:"M108.808 8.212c0-2.579-1.586-4.456-4.628-4.456h-9.826v13.37h3.227v-4.563h3.822l3.742 4.562h3.637v-.29l-3.637-4.351c2.288-.463 3.663-2.13 3.663-4.272zm-4.985 1.653h-6.229V6.533h6.229c1.15 0 1.891.608 1.891 1.666 0 1.084-.714 1.666-1.891 1.666zM157.593 3.756h-3.029v5.078h-8.133V3.756h-3.266v13.383h3.266v-5.277h8.133v5.277h3.029V3.756zM85.72 3.756l-3.598 11.253h-.198l-3.61-11.253H72.56v13.383h3.081V6.149h.185l3.597 10.99h4.96l3.61-10.99h.185v10.99h3.174V3.756h-5.634zM50.57 9.23c-1.138-.118-3.267-.317-4.404-.436-1.124-.119-1.772-.45-1.772-1.19 0-.714.687-1.31 3.464-1.31 2.46 0 4.721.53 6.692 1.482V4.787c-1.97-.939-4.153-1.402-6.864-1.402-3.808 0-6.44 1.587-6.44 4.285 0 2.275 1.547 3.518 4.642 3.861 1.124.12 3.028.291 4.364.397 1.454.12 1.878.569 1.878 1.23 0 .913-1.019 1.468-3.597 1.468-2.619 0-5.277-.86-7.168-2.063v3.081c1.521 1.019 4.14 1.878 7.062 1.878 4.152 0 6.824-1.6 6.824-4.47.026-2.168-1.402-3.478-4.682-3.821zM57.393 3.756v13.383h12.47V14.4h-9.389v-2.71h9.23V8.978h-9.23V6.493h9.39V3.756H57.392zM136.487 9.23c-1.138-.118-3.267-.317-4.404-.436-1.124-.119-1.772-.45-1.772-1.19 0-.714.688-1.31 3.465-1.31 2.459 0 4.721.53 6.691 1.482V4.787c-1.97-.939-4.152-1.402-6.863-1.402-3.809 0-6.44 1.587-6.44 4.285 0 2.275 1.547 3.518 4.641 3.861 1.124.12 3.029.291 4.364.397 1.455.12 1.878.569 1.878 1.23 0 .913-1.018 1.468-3.597 1.468-2.618 0-5.276-.86-7.167-2.063v3.081c1.52 1.019 4.139 1.878 7.061 1.878 4.153 0 6.824-1.6 6.824-4.47.027-2.168-1.402-3.478-4.681-3.821zM121.742 3.756v6.85c0 2.592-1.574 4.02-3.941 4.02-2.38 0-3.941-1.402-3.941-4.06v-6.81h-3.213v6.506c0 4.853 3.028 7.26 7.207 7.26 4.007 0 7.115-2.301 7.115-7.101V3.756h-3.227z",fill:"#020202"},null,-1),u("path",{d:"M30.19 10.368c0 .648-.33.753-1.15.753-.872 0-1.031-.145-1.124-.806-.172-1.68-1.309-3.108-3.213-3.267-.608-.052-.754-.277-.754-1.031 0-.7.106-1.031.648-1.031 3.306.013 5.594 2.67 5.594 5.382zm4.814 0C35.004 5.329 31.593 0 23.711 0H8.054c-.318 0-.516.159-.516.45 0 .158.119.304.225.383.568.45 1.415.952 2.525 1.508 1.085.542 1.931.899 2.777 1.243.357.145.49.304.49.502 0 .278-.199.45-.582.45H.543c-.371 0-.543.238-.543.476 0 .198.066.37.238.542 1.005 1.058 2.618 2.328 4.96 3.796a71.557 71.557 0 006.611 3.636c.344.159.45.344.45.542-.013.225-.185.41-.582.41h-5.7c-.317 0-.502.172-.502.437 0 .145.119.33.278.476 1.295 1.177 3.372 2.46 6.136 3.636C15.579 20.061 19.32 21 23.526 21c7.974 0 11.478-5.964 11.478-10.632zm-10.407 7.445c-4.073 0-7.485-3.32-7.485-7.458 0-4.074 3.399-7.353 7.485-7.353 4.179 0 7.458 3.266 7.458 7.353-.013 4.139-3.28 7.458-7.458 7.458z",fill:"#FF642D"},null,-1)])])}const Vo=I(Oo,[["render",Fo]]),Uo={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(d=>d.x)),o=Math.max(...this.data.map(d=>d.y)),t=this.height-this.strokeWidth,c=this.data.map(d=>{const e=d.x===0?0:d.x/s,_=d.y===0?0:d.y/o,b=e*this.width,S=t-_*t+this.strokeWidth;return`${b},${S}`}).join(" ");return`0,${t+this.strokeWidth} `+c+` ${this.width},${t+this.strokeWidth}`}}},Wo=["width","height","viewBox"],zo=["fill","points"],$o=["stroke","strokeWidth","points"];function qo(s,o,t,c,d,e){return i(),w("svg",{width:t.width,height:t.height,viewBox:e.getViewBox,role:"img","aria-hidden":"true",focusable:"false"},[u("polygon",{fill:t.fillColor,points:e.polylinePoints},null,8,zo),u("polyline",{fill:"none",stroke:t.strokeColor,strokeWidth:t.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round",points:e.polylinePoints},null,8,$o)],8,Wo)}const jo=I(Uo,[["render",qo]]),we="all-in-one-seo-pack",Go={emits:["add","remove","navigate"],components:{CoreTooltip:N,SvgAreaChart:jo,SvgCircleCheck:Be,SvgTrash:pt},props:{keyword:{type:Array,required:!0},index:{type:Number,required:!0},focusKeyphrase:{type:String,required:!0},hasAdditional:{type:Boolean,default:!1},additionalScore:{type:Number,default:0},isAdding:{type:Boolean,default:!1},isRemoving:{type:Boolean,default:!1},maxReached:{type:Boolean,default:!1},isUnlicensed:{type:Boolean,default:!1},maxAdditionalKeyphrases:{type:Number,required:!0}},computed:{isFocusKeyphrase(){return this.keyword[0]===this.focusKeyphrase.toLowerCase()},trendData(){return Lt(this.keyword[2])},scoreClass(){const s=this.additionalScore;return 79<s?"score-green":49<s?"score-orange":0<s?"score-red":"score-none"},strings(){return{focusKeyphrase:f("Focus Keyword",we),addAdditionalKeyphrase:f("Add Keyword",we),delete:f("Delete",we),maxAmountReached:L(f("You have reached the maximum of %1$s additional keywords.",we),this.maxAdditionalKeyphrases)}}},methods:{handleAdd(){this.$emit("add",this.keyword[0],this.index)},handleRemove(){this.$emit("remove",this.keyword[0],this.index)},handleNavigate(){this.$emit("navigate",this.keyword[0])}}},Yo={class:"keyphrase"},Xo={class:"keyphrase-volume"},Jo={class:"keyphrase-trend"},Qo={key:0,class:"keyphrase-actions"},Zo={key:0,class:"focus-keyphrase"},en={key:1},tn={key:2,class:"remove-keyphrase"};function sn(s,o,t,c,d,e){const _=m("svg-area-chart"),b=m("svg-circle-check"),S=m("base-button"),a=m("core-tooltip"),x=m("svg-trash");return i(),w("tr",{class:H(["keyphrase-row",{even:t.index%2===0}])},[u("td",Yo,v(t.keyword[0]),1),u("td",Xo,v(t.keyword[1]),1),u("td",Jo,[g(_,{width:66,height:24,data:e.trendData,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc"},null,8,["data"])]),t.isUnlicensed?y("",!0):(i(),w("td",Qo,[e.isFocusKeyphrase?(i(),w("div",Zo,[g(b),M(" "+v(e.strings.focusKeyphrase),1)])):y("",!0),e.isFocusKeyphrase?y("",!0):(i(),w("div",en,[!t.isRemoving&&(t.isAdding||!t.hasAdditional)&&!t.maxReached?(i(),k(S,{key:0,type:"gray",size:"medium",onClick:e.handleAdd,loading:t.isAdding},{default:p(()=>[M(v(e.strings.addAdditionalKeyphrase),1)]),_:1},8,["onClick","loading"])):y("",!0),!t.isRemoving&&(t.isAdding||!t.hasAdditional)&&t.maxReached?(i(),k(a,{key:1},{tooltip:p(()=>[u("span",null,v(e.strings.maxAmountReached),1)]),default:p(()=>[g(S,{type:"gray",size:"medium",disabled:!0,loading:t.isAdding},{default:p(()=>[M(v(e.strings.addAdditionalKeyphrase),1)]),_:1},8,["loading"])]),_:1})):y("",!0),t.hasAdditional&&!t.isAdding&&(t.isRemoving||t.hasAdditional)?(i(),w("div",tn,[u("span",{class:H(["keyphrase-score",e.scoreClass]),onClick:o[0]||(o[0]=(...A)=>e.handleNavigate&&e.handleNavigate(...A))},v(t.additionalScore)+"/100",3),g(a,{type:"action"},{tooltip:p(()=>[M(v(e.strings.delete),1)]),default:p(()=>[g(x,{onClick:e.handleRemove},null,8,["onClick"])]),_:1})])):y("",!0)]))]))],2)}const on=I(Go,[["render",sn],["__scopeId","data-v-40f391ea"]]),q="all-in-one-seo-pack",nn={emits:["add","remove","navigate"],components:{CoreAlert:j,CoreLoader:je,SvgLogoSemrush:Vo,SemrushKeywordTableRow:on},props:{keywords:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:""},focusKeyphrase:{type:String,required:!0},additionalKeyphrases:{type:Array,default:()=>[]},addingIndex:{type:[Number,Boolean],default:!1},removingIndex:{type:[Number,Boolean],default:!1},maxAdditionalKeyphrases:{type:Number,required:!0},isUnlicensed:{type:Boolean,default:!1}},computed:{maxReached(){return this.maxAdditionalKeyphrases<=(this.additionalKeyphrases?.length||0)},formattedError(){return this.error&&this.error.includes("TOTAL LIMIT EXCEEDED")?f("You have exceeded the limit for requests. Please try again later.",q):this.error||f("An error occurred while fetching keywords. Please try again later.",q)},strings(){return{keyphrase:f("Keyword",q),volume:f("Volume",q),trend:f("Trend",q),noResults:f("No results",q),youHaveExceededSemrush:L(f("You have exceeded the number of requests allowed by your %1$s plan.",q),"Semrush"),inOrderToUpgradeSemrush:L(f("In order to continue searching for additional keywords, you'll need to upgrade. %1$s",q),J.getUpsellLink("post-settings","semrush-pricing",ae.learnMore,"semrushPricing",!0))}}},methods:{hasAdditionalKeyphrase(s){return!this.additionalKeyphrases||!Array.isArray(this.additionalKeyphrases)?!1:0<this.additionalKeyphrases.filter(o=>o.keyphrase.toLowerCase()===s.toLowerCase()).length},getAdditionalKeyphraseScore(s){if(!this.additionalKeyphrases||!Array.isArray(this.additionalKeyphrases))return 0;const o=this.additionalKeyphrases.find(t=>t.keyphrase.toLowerCase()===s.toLowerCase());return o?o.score:0},handleAdd(s,o){this.$emit("add",s,o)},handleRemove(s,o){this.$emit("remove",s,o)},handleNavigate(s){this.$emit("navigate",s)}}},rn={class:"results"},an={"aria-label":"Additional Keywords",class:"additional-keyphrases-table",cellpadding:"0",cellspacing:"0"},ln={class:"keyphrases-header"},dn={class:"keyphrase"},cn={class:"keyphrase-volume"},un={class:"keyphrase-trend"},hn={key:0,class:"keyphrase-actions"},pn={class:"keyphrases-rows"},gn={key:1,class:"keyphrase-row"},yn=["colspan"],mn={key:1},fn={class:"semrush-logo"},_n={class:"semrush-upsell"},vn=["innerHTML"],kn=["innerHTML"];function Sn(s,o,t,c,d,e){const _=m("semrush-keyword-table-row"),b=m("core-loader"),S=m("core-alert"),a=m("svg-logo-semrush");return i(),w("div",rn,[u("table",an,[u("thead",null,[u("tr",ln,[u("th",dn,v(e.strings.keyphrase),1),u("th",cn,v(e.strings.volume),1),u("th",un,v(e.strings.trend),1),t.isUnlicensed?y("",!0):(i(),w("th",hn))])]),u("tbody",pn,[t.keywords.length&&!t.loading?(i(!0),w(re,{key:0},We(t.keywords,(x,A)=>(i(),k(_,{key:A,keyword:x,index:A,"focus-keyphrase":t.focusKeyphrase,"has-additional":e.hasAdditionalKeyphrase(x[0]),"additional-score":e.getAdditionalKeyphraseScore(x[0]),"is-adding":t.addingIndex===A,"is-removing":t.removingIndex===A,"max-reached":e.maxReached,"is-unlicensed":t.isUnlicensed,"max-additional-keyphrases":t.maxAdditionalKeyphrases,onAdd:e.handleAdd,onRemove:e.handleRemove,onNavigate:e.handleNavigate},null,8,["keyword","index","focus-keyphrase","has-additional","additional-score","is-adding","is-removing","max-reached","is-unlicensed","max-additional-keyphrases","onAdd","onRemove","onNavigate"]))),128)):y("",!0),!t.keywords.length||t.loading?(i(),w("tr",gn,[u("td",{colspan:t.isUnlicensed?3:4,class:"no-results"},[u("div",null,[t.loading?(i(),k(b,{key:0,dark:""})):y("",!0),!t.loading&&!t.error?(i(),w("span",mn,v(e.strings.noResults),1)):y("",!0),t.error&&!t.error.includes("TOTAL LIMIT EXCEEDED")?(i(),k(S,{key:2,type:"red"},{default:p(()=>[M(v(e.formattedError),1)]),_:1})):y("",!0),t.error&&t.error.includes("TOTAL LIMIT EXCEEDED")?(i(),w(re,{key:3},[u("div",fn,[g(a)]),u("div",_n,[u("span",null,[u("strong",{innerHTML:e.strings.youHaveExceededSemrush},null,8,vn)]),o[0]||(o[0]=M(" "+v(" ")+" ",-1)),u("span",{innerHTML:e.strings.inOrderToUpgradeSemrush},null,8,kn)])],64)):y("",!0)])],8,yn)])):y("",!0)])])])}const bn=I(nn,[["render",Sn],["__scopeId","data-v-be732be9"]]),Ce="all-in-one-seo-pack",wn={emits:["close","add","remove","navigate","country-changed"],components:{CoreAlert:j,CoreModal:us,SemrushKeywordsTable:bn},props:{show:{type:Boolean,default:!1},keywords:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:""},focusKeyphrase:{type:String,required:!0},additionalKeyphrases:{type:Array,default:()=>[]},addingIndex:{type:[Number,Boolean],default:!1},removingIndex:{type:[Number,Boolean],default:!1},maxAdditionalKeyphrases:{type:Number,required:!0},isUnlicensed:{type:Boolean,default:!1},countryValue:{type:Object,required:!0}},data(){return{selectedCountry:this.countryValue,strings:{modalTitle:L(f("Additional Keywords by %1$s",Ce),"Semrush"),showResultsFor:f("Show Results For:",Ce),selectPriceIndicator:f("Select a country",Ce),upsell:L(f("Analyzing your content with %1$s keywords is only available to licensed %2$s users. %3$s",Ce),"Semrush","<strong>AIOSEO Pro</strong>",J.getUpsellLink("post-settings","semrush-keywords",ae.learnMore,"liteUpgrade",!0))}}},watch:{countryValue:{deep:!0,handler(s){this.selectedCountry=s}},selectedCountry:{deep:!0,handler(s){this.$emit("country-changed",s)}}},computed:{countryOptions(){return dt()}},methods:{handleClose(){this.$emit("close")},handleAdd(s,o){this.$emit("add",s,o)},handleRemove(s,o){this.$emit("remove",s,o)},handleNavigate(s){this.$emit("navigate",s)}}},Cn={class:"aioseo-modal-content has-padding"},xn={class:"aioseo-settings-row"},An={class:"settings-name"},En={class:"name"};function Pn(s,o,t,c,d,e){const _=m("core-alert"),b=m("base-select"),S=m("semrush-keywords-table"),a=m("core-modal");return i(),k(a,{show:t.show,onClose:e.handleClose,classes:["aioseo-focus-keyphrase-panel-modal"]},{headerTitle:p(()=>[M(v(d.strings.modalTitle),1)]),body:p(()=>[u("div",Cn,[t.isUnlicensed?(i(),k(_,{key:0,type:"blue",innerHTML:d.strings.upsell},null,8,["innerHTML"])):y("",!0),u("div",xn,[u("div",An,[u("div",En,v(d.strings.showResultsFor),1)]),g(b,{class:"semrush-country-selector",size:"medium",options:e.countryOptions,placeholder:d.strings.selectPriceIndicator,modelValue:d.selectedCountry,"onUpdate:modelValue":o[0]||(o[0]=x=>d.selectedCountry=x)},null,8,["options","placeholder","modelValue"])]),g(S,{keywords:t.keywords,loading:t.loading,error:t.error,"focus-keyphrase":t.focusKeyphrase,"additional-keyphrases":t.additionalKeyphrases,"adding-index":t.addingIndex,"removing-index":t.removingIndex,"max-additional-keyphrases":t.maxAdditionalKeyphrases,"is-unlicensed":t.isUnlicensed,onAdd:e.handleAdd,onRemove:e.handleRemove,onNavigate:e.handleNavigate},null,8,["keywords","loading","error","focus-keyphrase","additional-keyphrases","adding-index","removing-index","max-additional-keyphrases","is-unlicensed","onAdd","onRemove","onNavigate"])])]),_:1},8,["show","onClose"])}const Tn=I(wn,[["render",Pn]]),Kn={setup(){return{connectStore:Gt(),licenseStore:Ke(),optionsStore:ct(),postEditorStore:he(),rootStore:Te(),semrushStore:jt(),settingsStore:Me(),sensitiveOptionsStore:qt(),truSeo:new lt}},components:{FocusKeyphraseInput:Eo,FocusKeyphraseDisplay:Mo,SemrushKeywordsButton:Ro,SemrushKeywordsModal:Tn},data(){return{showSemrushTooltip:!1,loadingResults:!1,semrushShowModal:!1,addingAdditionalKeyphrase:!1,removingAdditionalKeyphrase:!1,semrushCountry:null}},computed:{hasFocusKeyphrase(){return!!(this.postEditorStore.currentPost.keyphrases.focus&&this.postEditorStore.currentPost.keyphrases.focus.keyphrase)}},methods:{handleAddKeyphrase(){$t({postEditorStore:this.postEditorStore,truSeo:this.truSeo,screenContext:this.$root.$data.screenContext})},handleKeyphraseSaved(s){const{value:o}=s;zt({postEditorStore:this.postEditorStore,truSeo:this.truSeo,value:o})},handleKeyphraseDeleted(){Wt({postEditorStore:this.postEditorStore,truSeo:this.truSeo})},async handleSemrushButtonClick(){this.showSemrushTooltip=!1,this.sensitiveOptionsStore.hasSemrushAccessToken&&this.semrushStore.expired&&await this.semrushStore.refresh();const s=Ut({isConnected:this.connectStore.isConnected,hasValidTokens:this.semrushStore.hasValidTokens,connectUrl:this.rootStore.aioseo.urls.connect});if(!s){this.openModal();return}if(s.type==="connect"){this.openConnectPopup(s.url);return}s.type==="semrush_oauth"&&this.openSemrushOAuthPopup()},openConnectPopup(s){Vt({url:s,onAuthenticated:o=>this.connectStore.saveConnectToken(o),onClosed:o=>{this.handleConnectOAuthClosed(o)}})},openSemrushOAuthPopup(){Ft({onAuthenticated:s=>this.semrushStore.authenticate(s),onClosed:s=>{this.handleSemrushOAuthClosed(s)}})},handleConnectOAuthClosed(s){if(s){if(this.semrushStore.hasValidTokens){this.$nextTick(this.handleSemrushButtonClick);return}this.showSemrushTooltip=!0}},handleSemrushOAuthClosed(s){s&&this.openModal()},openModal(){this.semrushShowModal=!0,!this.semrushStore.error&&this.getKeyphrases()},getKeyphrases(){Nt({semrushStore:this.semrushStore,database:this.semrushCountry.value,focusKeyphrase:this.postEditorStore.currentPost?.keyphrases?.focus?.keyphrase,onStart:()=>{this.loadingResults=!0},onSuccess:()=>{this.loadingResults=!1},onError:()=>{this.semrushShowModal=!1,this.loadingResults=!1}})},handleCountryChanged(s){this.semrushCountry.value===s.value&&this.semrushCountry.label===s.label||(this.settingsStore.changeSemrushCountry(s),this.semrushCountry=s,this.getKeyphrases())},async handleAddAdditionalKeyphrase(s,o){await Ot({postEditorStore:this.postEditorStore,truSeo:this.truSeo,keyphrase:s,onStart:()=>{this.addingAdditionalKeyphrase=o},onSuccess:()=>{this.addingAdditionalKeyphrase=!1}})},handleRemoveAdditionalKeyphrase(s,o){Rt({postEditorStore:this.postEditorStore,keyphrase:s,onStart:()=>{this.removingAdditionalKeyphrase=o},onSuccess:()=>{this.removingAdditionalKeyphrase=!1},nextTick:async()=>{await this.$nextTick()}})},handleNavigateToAdditionalKeyphrase(s){Ht({postEditorStore:this.postEditorStore,keyphrase:s,onSuccess:()=>{this.semrushShowModal=!1}})}},created(){const s=dt();this.semrushCountry={value:this.settingsStore.settings.semrushCountry,label:s.find(o=>o.value===this.settingsStore.settings.semrushCountry)?.label||this.settingsStore.settings.semrushCountry}}},Mn={class:"aioseo-focus-keyphrase-panel"};function Bn(s,o,t,c,d,e){const _=m("focus-keyphrase-input"),b=m("focus-keyphrase-display"),S=m("semrush-keywords-button"),a=m("semrush-keywords-modal");return i(),w("div",Mn,[e.hasFocusKeyphrase?y("",!0):(i(),k(_,{key:0,"screen-context":s.$root.$data.screenContext,onAdd:e.handleAddKeyphrase},null,8,["screen-context","onAdd"])),e.hasFocusKeyphrase?(i(),k(b,{key:1,keyphrase:c.postEditorStore.currentPost.keyphrases.focus.keyphrase,score:c.postEditorStore.currentPost.keyphrases.focus.score,loading:c.postEditorStore.currentPost.loading.focus,"analysis-items":c.postEditorStore.currentPost.keyphrases.focus.analysis,onSaved:e.handleKeyphraseSaved,onDeleted:e.handleKeyphraseDeleted},null,8,["keyphrase","score","loading","analysis-items","onSaved","onDeleted"])):y("",!0),g(S,{"has-focus-keyphrase":e.hasFocusKeyphrase,loading:c.postEditorStore.currentPost.loading.focus,"is-pro":c.rootStore.isPro,"is-unlicensed":c.licenseStore.isUnlicensed,"show-tooltip":d.showSemrushTooltip,"settings-url":c.rootStore.aioseo.urls.aio.settings,onClick:e.handleSemrushButtonClick},null,8,["has-focus-keyphrase","loading","is-pro","is-unlicensed","show-tooltip","settings-url","onClick"]),g(a,{show:d.semrushShowModal,keywords:c.semrushStore.results,loading:d.loadingResults,error:c.semrushStore.error,"focus-keyphrase":c.postEditorStore.currentPost.keyphrases.focus?.keyphrase||"","additional-keyphrases":c.postEditorStore.currentPost.keyphrases.additional,"adding-index":d.addingAdditionalKeyphrase,"removing-index":d.removingAdditionalKeyphrase,"max-additional-keyphrases":c.postEditorStore.currentPost.maxAdditionalKeyphrases,"is-unlicensed":c.licenseStore.isUnlicensed,"country-value":d.semrushCountry,onClose:o[0]||(o[0]=x=>d.semrushShowModal=!1),onAdd:e.handleAddAdditionalKeyphrase,onRemove:e.handleRemoveAdditionalKeyphrase,onNavigate:e.handleNavigateToAdditionalKeyphrase,onCountryChanged:e.handleCountryChanged},null,8,["show","keywords","loading","error","focus-keyphrase","additional-keyphrases","adding-index","removing-index","max-additional-keyphrases","is-unlicensed","country-value","onAdd","onRemove","onNavigate","onCountryChanged"])])}const nt=I(Kn,[["render",Bn]]),xe="all-in-one-seo-pack",In={setup(){const{getErrorClass:s,getErrorDisplay:o,strings:t}=qe();return{postEditorStore:he(),rootStore:Te(),getErrorClass:s,getErrorDisplay:o,strings:t}},components:{CoreAlert:j,CoreMainTabs:hs,metaboxAnalysisDetail:ne,SvgEllipse:$e,SvgCircleCheck:Be},data(){return{initTab:"basic",tabs:[{slug:"basic",name:f("Basic SEO",xe)},{slug:"title",name:f("Title",xe)},{slug:"readability",name:f("Readability",xe)}]}},computed:{parseTabs(){return this.tabs.map(s=>(s.errorCount=this.postEditorStore.currentPost.page_analysis.analysis[s.slug].errors,s))},pageBuilderAlert(){const s=this.rootStore.aioseo.integration,o=this.postEditorStore.currentPost?.editlink;if(!it()||!s||!o)return!1;const t=s.charAt(0).toUpperCase()+s.slice(1);return L(f("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.",xe),t,'<a href="'+o+'">',"</a>")}},methods:{processChangeTab(s){this.initTab=s}}},Dn={class:"page-analysis-panel"},Ln=["innerHTML"];function Hn(s,o,t,c,d,e){const _=m("core-alert"),b=m("svg-ellipse"),S=m("svg-circle-check"),a=m("core-main-tabs"),x=m("metaboxAnalysisDetail");return i(),w("div",Dn,[e.pageBuilderAlert?(i(),k(_,{key:0,type:"yellow"},{default:p(()=>[u("span",{innerHTML:e.pageBuilderAlert},null,8,Ln)]),_:1})):y("",!0),g(a,{tabs:e.parseTabs,showSaveButton:!1,active:d.initTab,internal:"",onChanged:o[0]||(o[0]=A=>e.processChangeTab(A))},{"after-label":p(({tab:A})=>[A.errorCount>=0?(i(),w("span",{key:0,class:H(["tab-score",c.getErrorClass(c.postEditorStore.currentPost.page_analysis.analysis[A.slug].errors)])},[0<c.postEditorStore.currentPost.page_analysis.analysis[A.slug].errors?(i(),k(b,{key:0,width:"6"})):y("",!0),c.postEditorStore.currentPost.page_analysis.analysis[A.slug].errors===0?(i(),k(S,{key:1,width:"12"})):y("",!0),M(" "+v(c.getErrorDisplay(c.postEditorStore.currentPost.page_analysis.analysis[A.slug].errors)),1)],2)):y("",!0)]),_:1},8,["tabs","active"]),g(vt,{mode:"out-in"},{default:p(()=>[c.postEditorStore.currentPost.page_analysis?(i(),k(x,{key:0,analysisItems:c.postEditorStore.currentPost.page_analysis.analysis[d.initTab]},null,8,["analysisItems"])):y("",!0)]),_:1})])}const Rn=I(In,[["render",Hn]]),Ae="all-in-one-seo-pack",On={emits:["changeTab"],setup(){return{licenseStore:Ke(),postEditorStore:he(),hasRequiredFeature:Xe.hasCoreFeature("general","cornerstone-content"),GLOBAL_STRINGS:ae,links:J}},components:{CoreAlert:j},data(){return{license:Xe,strings:{description:f("Cornerstone content refers to the most important and informative articles or pages on your website that serve as the foundation for your content strategy. AIOSEO uses cornerstone content for",Ae),linkingRecommendations:f("internal linking recommendations in Link Assistant.",Ae),upsell:L(f("Cornerstone Content is a %1$s feature. %2$s",Ae),"PRO",J.getUpsellLink("post-settings-general","cornerstone-content",ae.learnMore,"liteUpgrade",!0)),markAsCornerstone:f("Mark as Cornerstone",Ae)}}}},Nn={class:"cornerstone-content-panel"},Fn={class:"cornerstone-content-text"},Vn=["innerHTML"],Un=["innerHTML"];function Wn(s,o,t,c,d,e){const _=m("base-toggle"),b=m("core-alert");return i(),w("div",Nn,[u("div",Fn,[u("span",null,v(d.strings.description),1),u("a",{href:"#",onClick:o[0]||(o[0]=U(S=>s.$emit("changeTab",{main:"linkAssistant",sub:"link-suggestions"}),["stop","prevent"]))},v(d.strings.linkingRecommendations),1),u("span",{innerHTML:c.links.getDocLink(c.GLOBAL_STRINGS.learnMore,"cornerstoneContent",!0)},null,8,Vn)]),g(_,{modelValue:c.postEditorStore.currentPost.pillar_content,"onUpdate:modelValue":o[1]||(o[1]=S=>c.postEditorStore.currentPost.pillar_content=S),disabled:!c.hasRequiredFeature},{default:p(()=>[M(v(d.strings.markAsCornerstone),1)]),_:1},8,["modelValue","disabled"]),c.licenseStore.isUnlicensed||!c.hasRequiredFeature?(i(),k(b,{key:0,class:"inline-upsell",type:"blue"},{default:p(()=>[u("div",{innerHTML:d.strings.upsell},null,8,Un)]),_:1})):y("",!0)])}const rt=I(On,[["render",Wn]]),zn={class:"aioseo-tab-content aioseo-post-general"},$n={class:"snippet-preview-row-label"},qn=["innerHTML"],jn=["innerHTML"],Gn=["innerHTML"],Yn={key:0},Xn=["innerHTML"],Jn=["innerHTML"],Hr={__name:"General",props:{disabled:{type:Boolean,default(){return!1}},parentComponentContext:String},emits:["changeTab"],setup(s){const o="all-in-one-seo-pack",t=s,c=Ke(),d=ct(),e=he(),_=Te(),b=Yt(),S=Me(),a=Xt(),x=Pe(),A=F(0),Q=F(0),pe=F(0),ie=F(!1),le=F("title0"),de=F("description0"),{parseTags:Z}=Jt({separator:void 0}),{maxRecommendedCount:ge}=Qt(),{watchHighlightSentences:D}=Ps(),{runAnalysis:ye,strings:Ie}=qe(),B=ts(Ie,{pageName:f("General",o),serpPreview:f("SERP Preview",o),serpPreviewDocumentation:f("SERP: Search Engine Results Page preview. Your site's potential appearance in Google search results. Final display may vary, but this preview closely resembles it.",o),editSnippet:f("Edit Snippet",o),clickToAddTitle:f("Click on the tags below to insert variables into your title.",o),metaDescription:f("Meta Description",o),clickToAddDescription:f("Click on the tags below to insert variables into your meta description.",o),cornerstoneContent:f("Cornerstone Content",o),focusKeyphrase:f("Focus Keyword",o),additionalKeyphrases:f("Additional Keywords",o),pageAnalysis:f("Page Analysis",o),basicSeo:f("Basic SEO",o),title:f("Title",o),readability:f("Readability",o),lookingForMetaKeywords:f("Looking for meta keywords?",o),goToAdvancedTab:f("Go to the Advanced tab to add/edit meta keywords",o),autogenerateDescriptionsAlert:L(f("Warning: You have disabled Autogenerate Descriptions and are using the default description format. %1$s will not output a description unless you enter a custom one. You can enable Autogenerate Descriptions under %2$s.",o),"AIOSEO",J.getPlainLink(f("Search Appearance > Advanced",o),_.aioseo.urls.aio.searchAppearance+"#/advanced")),keyphraseDocumentation:L(f("Not sure what keywords are used for? Check out our documentation for more information. %1$s",o),J.getDocLink(ae.learnMore,"useKeyphrasesTooltip",!0))}),R=z(()=>St().root.data.screenContext),me=z(()=>L(f("%1$s Title",o),e.currentPost.type)),fe=z(()=>Oe()&&R.value==="metabox"&&e.currentPost.context==="post"&&t.parentComponentContext!=="modal"&&$("aioseo_page_analysis")&&!te.value),ee=z(()=>Oe()&&R.value==="sidebar"&&t.parentComponentContext!=="modal"&&$("aioseo_page_analysis")&&!te.value),ce=z(()=>Oe()&&R.value==="sidebar"&&e.currentPost.page_analysis&&t.parentComponentContext!=="modal"&&$("aioseo_page_analysis")&&!te.value),te=z(()=>_.aioseo.data.isBBPressActive&&(e.currentPost.postType==="forum"||e.currentPost.postType==="topic"||e.currentPost.postType==="reply")),ue=z(()=>e.currentPost.keyphrases.focus.keyphrase?e.currentPost.keyphrases.focus.score:null),_e=z(()=>d.internalOptions.internal.deprecatedOptions.includes("autogenerateDescriptions")?(e.currentPost.context==="post"?d.dynamicOptions.searchAppearance.postTypes[e.currentPost.postType].metaDescription:d.dynamicOptions.searchAppearance.taxonomies[e.currentPost.termType].metaDescription)===e.currentPost.description&&!d.options.deprecated.searchAppearance.advanced.autogenerateDescriptions:!1),De=()=>{d.options.searchAppearance.advanced.keywordsLooking=!1,d.saveChanges()},ve=O=>{e.changeGeneralPreview(O)},se=()=>{ie.value=!ie.value,S.changeTabSettings({setting:"modal",value:"general"}),e.currentPost.modalOpen=!0},ke=O=>{switch(O){case"title":return e.currentPost.context==="post"?["post_title","separator_sa","site_title"]:["taxonomy_title","separator_sa","site_title"];case"description":return e.currentPost.context==="post"?e.currentPost.postType==="attachment"?["attachment_caption","separator_sa","site_title"]:e.currentPost.postType==="product"?["post_excerpt","post_content"]:["post_excerpt","post_content","separator_sa"]:["taxonomy_title","separator_sa","taxonomy_description"]}};return He(()=>e.currentPost.title,()=>{Re(()=>{ye({postId:e.currentPost.id})},750)}),He(()=>e.currentPost.description,()=>{Re(()=>ye({postId:e.currentPost.id}),750)}),He(()=>x.highlightSentences,(O,n)=>{Re(()=>D(O,n))}),at(()=>{e.currentPost.context==="post"&&!e.currentPost.keyphrases.length&&(pe.value=-1),window.aioseoBus.$on("updateTitleKey",()=>{le.value="title"+Math.random(0,999)}),window.aioseoBus.$on("updateDescriptionKey",()=>{de.value="description"+Math.random(0,999)})}),kt(()=>{window.aioseoBus.$off("updateTitleKey"),window.aioseoBus.$off("updateDescriptionKey")}),(O,n)=>{const h=m("base-button");return i(),w("div",zn,[r($)("aioseo_page_general_settings")?(i(),k(r(X),{key:0,class:"snippet-preview-row","no-right-max-width":""},{name:p(()=>[u("div",null,[u("span",$n,v(r(B).serpPreview),1),g(r(N),{offset:"0,0",placement:"bottom"},{tooltip:p(()=>[M(v(r(B).serpPreviewDocumentation),1)]),default:p(()=>[g(r(Ee))]),_:1})]),R.value==="metabox"||t.parentComponentContext==="modal"?(i(),k(r(is),{key:0,modelValue:r(e).currentPost.generalMobilePrev,"onUpdate:modelValue":ve,name:"previewGeneralIsMobile",class:"circle",options:[{label:"desktop",value:!1,activeClass:"dark",slot:"desktop"},{label:"mobile",value:!0,slot:"mobile"}]},{desktop:p(()=>[g(r(gs))]),mobile:p(()=>[g(r(ps))]),_:1},8,["modelValue"])):y("",!0)]),content:p(()=>[g(r(ls),{"focus-keyphrase":r(e).currentPost?.keyphrases?.focus?.keyphrase??"",device:R.value==="sidebar"&&t.parentComponentContext==="metabox"||r(e).currentPost.generalMobilePrev?"mobile":"desktop",url:r(a).liveTags.permalink,title:r(Z)(r(e).currentPost.title||r(e).currentPost.tags.title||"#post_title #separator_sa #site_title"),description:r(Z)(r(e).currentPost.description||r(e).currentPost.tags.description||"#post_content"),"rich-results":r(b).richResults},null,8,["focus-keyphrase","device","url","title","description","rich-results"]),R.value==="sidebar"&&t.parentComponentContext!=="modal"?(i(),k(h,{key:0,class:"edit-snippet gray small",onClick:se},{default:p(()=>[g(r(ht)),M(" "+v(r(B).editSnippet),1)]),_:1})):y("",!0)]),_:1})):y("",!0),(R.value==="metabox"||t.parentComponentContext==="modal")&&r($)("aioseo_page_general_settings")?(i(),k(r(X),{id:"aioseo-post-settings-post-title-row",class:"snippet-title-row",name:me.value,key:le.value},{content:p(()=>[g(r(Qe),{"line-numbers":!1,single:"",onCounter:n[0]||(n[0]=l=>A.value=l.length),modelValue:r(e).currentPost.title,"onUpdate:modelValue":n[1]||(n[1]=l=>r(e).currentPost.title=l),"tags-context":`${r(e).currentPost.postType||r(e).currentPost.termType}Title`,defaultMenuOrientation:t.parentComponentContext==="modal"?"top":"bottom","default-tags":ke("title")},Ye({"tags-description":p(()=>[M(v(r(B).clickToAddTitle),1)]),_:2},[r($)("aioseo_page_ai_content_settings")&&!r(e).currentPost.isWooCommercePageWithoutSchema&&r(e).currentPost.postType&&!["attachment","web-story"].includes(r(e).currentPost.postType)?{name:"append-button",fn:p(()=>[g(r(ot),{feature:r(Je).metaTitle},null,8,["feature"])]),key:"0"}:void 0]),1032,["modelValue","tags-context","defaultMenuOrientation","default-tags"]),u("div",{class:"max-recommended-count",innerHTML:r(ge)(A.value,60)},null,8,qn)]),_:1},8,["name"])):y("",!0),(R.value==="metabox"||t.parentComponentContext==="modal")&&r($)("aioseo_page_general_settings")?(i(),k(r(X),{id:"aioseo-post-settings-meta-description-row",class:"snippet-description-row",name:r(B).metaDescription,key:de.value},{content:p(()=>[_e.value?(i(),k(r(j),{key:0,type:"yellow"},{default:p(()=>[u("span",{innerHTML:r(B).autogenerateDescriptionsAlert},null,8,jn)]),_:1})):y("",!0),g(r(Qe),{"line-numbers":!1,description:"",onCounter:n[2]||(n[2]=l=>Q.value=l.length),modelValue:r(e).currentPost.description,"onUpdate:modelValue":n[3]||(n[3]=l=>r(e).currentPost.description=l),"tags-context":`${r(e).currentPost.postType||r(e).currentPost.termType}Description`,defaultMenuOrientation:t.parentComponentContext==="modal"?"top":"bottom","default-tags":ke("description")},Ye({"tags-description":p(()=>[M(v(r(B).clickToAddDescription),1)]),_:2},[r($)("aioseo_page_ai_content_settings")&&!r(e).currentPost.isWooCommercePageWithoutSchema&&r(e).currentPost.postType&&!["attachment","web-story"].includes(r(e).currentPost.postType)?{name:"append-button",fn:p(()=>[g(r(ot),{feature:r(Je).metaDescription},null,8,["feature"])]),key:"0"}:void 0]),1032,["modelValue","tags-context","defaultMenuOrientation","default-tags"]),u("div",{class:"max-recommended-count",innerHTML:r(ge)(Q.value,160)},null,8,Gn)]),_:1},8,["name"])):y("",!0),t.parentComponentContext!=="modal"&&R.value==="metabox"&&r(e).currentPost.context==="post"&&!["attachment","web-story"].includes(r(e).currentPost.postType)&&!r(Ve)()?(i(),k(r(X),{key:3,id:"aioseo-post-settings-cornerstone-content-row",class:"cornerstone-content-row"},{name:p(()=>[M(v(r(B).cornerstoneContent)+" ",1),r(c).isUnlicensed?(i(),k(r(cs),{key:0})):y("",!0)]),content:p(()=>[g(r(rt),{onChangeTab:n[4]||(n[4]=l=>O.$emit("changeTab",l))})]),_:1})):y("",!0),fe.value?(i(),w(re,{key:4},[r(d).options.searchAppearance.advanced.useKeywords&&r(d).options.searchAppearance.advanced.keywordsLooking?(i(),w("div",Yn,[g(r(j),{class:"meta-keywords-alert",type:"blue","show-close":"",onCloseAlert:De},{default:p(()=>[M(v(r(B).lookingForMetaKeywords)+" ",1),u("a",{href:"#",onClick:n[5]||(n[5]=U(l=>O.$emit("changeTab","advanced"),["prevent"]))},v(r(B).goToAdvancedTab),1),u("a",{class:"no-underline",href:"#",onClick:n[6]||(n[6]=U(l=>O.$emit("changeTab","advanced"),["prevent"]))}," → ")]),_:1})])):y("",!0),g(r(X),{id:"aioseo-post-settings-snippet-focus-keyphrase-row",class:"snippet-focus-keyphrase-row",align:""},{name:p(()=>[u("span",null,v(r(B).focusKeyphrase),1),g(r(N),{offset:"25px,0"},{tooltip:p(()=>[u("div",{innerHTML:r(B).keyphraseDocumentation},null,8,Xn)]),default:p(()=>[g(r(Ee))]),_:1})]),content:p(()=>[g(r(nt))]),_:1}),g(r(X),{name:r(B).additionalKeyphrases,class:"snippet-additional-keyphrases-row"},{content:p(()=>[g(r(st))]),_:1},8,["name"])],64)):y("",!0),fe.value&&r(e).currentPost.page_analysis?(i(),k(r(X),{key:5,name:r(B).pageAnalysis,class:"snippet-page-analysis-row",align:""},{content:p(()=>[g(r(Rn))]),_:1},8,["name"])):y("",!0),R.value==="sidebar"&&!r(Ve)()&&t.parentComponentContext!=="modal"?(i(),k(r(oe),{key:6,class:"card-cornerstone-content",slug:"cornerstoneContent","header-text":r(B).cornerstoneContent},{default:p(()=>[g(r(rt),{onChangeTab:n[7]||(n[7]=l=>O.$emit("changeTab",l))})]),_:1},8,["header-text"])):y("",!0),ee.value?(i(),k(r(oe),{key:7,slug:"focus",focusScore:ue.value,class:"card-focus-keyphrase"},{header:p(()=>[u("span",null,v(r(B).focusKeyphrase),1),g(r(N),{offset:"0,0"},{tooltip:p(()=>[u("div",{innerHTML:r(B).keyphraseDocumentation},null,8,Jn)]),default:p(()=>[g(r(Ee))]),_:1})]),default:p(()=>[g(r(nt))]),_:1},8,["focusScore"])):y("",!0),ee.value?(i(),k(r(oe),{key:8,slug:"additional","header-text":r(B).additionalKeyphrases,class:"card-additional-keyphrase"},{default:p(()=>[g(r(st))]),_:1},8,["header-text"])):y("",!0),ce.value?(i(),k(r(oe),{key:9,slug:"basicseo","header-text":r(B).basicSeo,trueSeoScore:r(e).currentPost.page_analysis.analysis.basic.errors,class:"card-basic-seo"},{default:p(()=>[g(r(ne),{analysisItems:r(e).currentPost.page_analysis.analysis.basic},null,8,["analysisItems"])]),_:1},8,["header-text","trueSeoScore"])):y("",!0),ce.value?(i(),k(r(oe),{key:10,slug:"title","header-text":r(B).title,trueSeoScore:r(e).currentPost.page_analysis.analysis.title.errors,class:"card-title-seo"},{default:p(()=>[g(r(ne),{analysisItems:r(e).currentPost.page_analysis.analysis.title},null,8,["analysisItems"])]),_:1},8,["header-text","trueSeoScore"])):y("",!0),ce.value?(i(),k(r(oe),{key:11,slug:"readability","header-text":r(B).readability,trueSeoScore:r(e).currentPost.page_analysis.analysis.readability.errors,class:"card-readability-seo"},{default:p(()=>[g(r(ne),{analysisItems:r(e).currentPost.page_analysis.analysis.readability},null,8,["analysisItems"])]),_:1},8,["header-text","trueSeoScore"])):y("",!0)])}}};export{Hr as default};
Save
Cancel