Files

2 lines
71 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* empty css */import{aa as Me,u as st,o as l,c as u,B as r,r as m,a as p,C as h,v as b,Z as q,G as N,H as O,I as H,ad as Be,ao as K,ap as De,_ as Z,t as k,E as _,J as T,W as J,F as E,D as z,j as $t,O as Ae,w as ot,P as Kt,a5 as Jt,i as xe,k as D,e as Qt,n as vt,aq as te,M as wt,p as He,f as Ee,T as Oe,ar as Ie,h as kt,q as B,as as ze,X as ee,R as Re,x as St,Y as We}from"./index.9_UWDUyH.js";import{B as dt}from"./Button.Bq0AsH5N.js";import{_ as $}from"./dynamic-import-helper.DN_NaYa5.js";import{n as Ot,_ as mt,S as oe}from"./Close.nP60UGBF.js";import{S as ut}from"./Close.CP9mbBVR.js";import{S as Ve}from"./Logo.Djm_hqGc.js";import{E as Lt,q as G,F as se,H as Ue,I as Nt,v as Fe,x as je,z as qe,J as Ye,K as Ze,L as Xe}from"./Gear.Cnfq8u1Y.js";import{d as Ge}from"./debounce.DK1RwK91.js";import{S as Ke}from"./Caret.BLqjRAPo.js";import{T as it}from"./Slide.Dfu7CR71.js";import{S as Tt}from"./Check.DYwyuRF-.js";const Je=t=>(t||document.location.search).replace(/(^\?)/,"").split("&").map((function(e){return e=e.split("="),this[e[0]]=e[1],this}).bind({}))[0],Qe=(t,e)=>{e=e||document.location.href;const o=e.split("#"),i=o[0].split("?");if(2>i.length)return e;const s=encodeURIComponent(t)+"=",n=i[1].split(/[&;]/g);for(let a=n.length;0<a--;)n[a].lastIndexOf(s,0)!==-1&&n.splice(a,1);const c=o[1]?"#"+o[1]:"",d=i[0]+(0<n.length?"?"+n.join("&"):"")+c;window.history.replaceState(null,null,d)},ie={methods:{processSaveChanges(){const t=Me(),e=st();e.loading=!0;let o=!1,i=!1;const s="saveChanges";setTimeout(()=>{o=!0,i&&(e.loading=!1)},1500),t[s]().then(n=>{n&&n.body.redirection||(o?e.loading=!1:i=!0,window.aioseoBrokenLinkCheckerBus.$emit("changes-saved"))})}}},to=t=>{const o=st().aioseoBrokenLinkChecker.user;return!!o.canManage||!!(o.capabilities&&o.capabilities[t])},eo={},oo={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-logo-gear"},so=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47716 0 0 4.47715 0 10C0 15.5228 4.47716 20 10 20ZM8.40767 3.65998C8.27222 3.45353 8.02129 3.357 7.79121 3.43828C7.52913 3.53087 7.27279 3.63976 7.02373 3.76429C6.80511 3.87361 6.69542 4.12332 6.74355 4.36686L6.91501 5.23457C6.95914 5.45792 6.86801 5.68459 6.69498 5.82859C6.42152 6.05617 6.16906 6.31347 5.94287 6.59826C5.80229 6.77526 5.58046 6.86908 5.36142 6.82484L4.51082 6.653C4.27186 6.60473 4.02744 6.71767 3.92115 6.94133C3.86111 7.06769 3.80444 7.19669 3.75129 7.32826C3.69815 7.45983 3.64929 7.59212 3.60464 7.72495C3.52562 7.96007 3.62107 8.21596 3.82396 8.35351L4.54621 8.84316C4.73219 8.96925 4.82481 9.19531 4.80234 9.42199C4.7662 9.78671 4.76767 10.1508 4.80457 10.5089C4.82791 10.7355 4.73605 10.9619 4.55052 11.0886L3.82966 11.5811C3.62734 11.7193 3.53274 11.9753 3.61239 12.2101C3.70314 12.4775 3.80985 12.7391 3.93188 12.9932C4.03901 13.2163 4.28373 13.3282 4.5224 13.2791L5.37279 13.1042C5.59165 13.0591 5.8138 13.1521 5.95491 13.3287C6.17794 13.6077 6.43009 13.8653 6.70918 14.0961C6.88264 14.2396 6.97459 14.4659 6.93122 14.6894L6.76282 15.5574C6.71551 15.8013 6.8262 16.0507 7.04538 16.1591C7.16921 16.2204 7.29563 16.2782 7.42457 16.3324C7.55352 16.3867 7.68316 16.4365 7.81334 16.4821C8.19418 16.6154 8.72721 16.1383 9.1213 15.7855C9.31563 15.6116 9.4355 15.3654 9.43677 15.1018C9.43677 15.1004 9.43678 15.099 9.43678 15.0976L9.43677 13.6462C9.43677 13.6308 9.43736 13.6155 9.43852 13.6004C8.27454 13.3165 7.40918 12.248 7.40918 10.9732V9.43198C7.40918 9.31483 7.50224 9.21986 7.61706 9.21986H8.338V7.70343C8.338 7.49405 8.50433 7.32432 8.70952 7.32432C8.9147 7.32432 9.08105 7.49405 9.08105 7.70343V9.21986H11.0316V7.70343C11.0316 7.49405 11.1979 7.32432 11.4031 7.32432C11.6083 7.32432 11.7746 7.49405 11.7746 7.70343V9.21986H12.4956C12.6104 9.21986 12.7034 9.31483 12.7034 9.43198V10.9732C12.7034 12.2883 11.7825 13.3838 10.5628 13.625C10.5631 13.632 10.5632 13.6391 10.5632 13.6462L10.5632 15.0914C10.5632 15.36 10.6867 15.6107 10.8868 15.7853C11.2879 16.1351 11.8302 16.6079 12.2088 16.4742C12.4708 16.3816 12.7272 16.2727 12.9762 16.1482C13.1949 16.0389 13.3046 15.7891 13.2564 15.5456L13.085 14.6779C13.0408 14.4545 13.132 14.2278 13.305 14.0838C13.5785 13.8563 13.8309 13.599 14.0571 13.3142C14.1977 13.1372 14.4195 13.0434 14.6385 13.0876L15.4892 13.2595C15.7281 13.3077 15.9725 13.1948 16.0788 12.9711C16.1389 12.8448 16.1955 12.7158 16.2487 12.5842C16.3018 12.4526 16.3507 12.3204 16.3953 12.1875C16.4744 11.9524 16.3789 11.6965 16.176 11.559L15.4537 11.0693C15.2678 10.9432 15.1752 10.7171 15.1976 10.4905C15.2338 10.1258 15.2323 9.76167 15.1954 9.40357C15.1721 9.17699 15.2639 8.95062 15.4495 8.82387L16.1703 8.33141C16.3726 8.1932 16.4672 7.93715 16.3876 7.70238C16.2968 7.43495 16.1901 7.17337 16.0681 6.91924C15.961 6.69615 15.7162 6.58422 15.4776 6.63333L14.6272 6.8083C14.4083 6.85333 14.1862 6.76033 14.0451 6.58377C13.822 6.30474 13.5699 6.04713 13.2908 5.81632C13.1173 5.67287 13.0254 5.44652 13.0688 5.22301L13.2372 4.35503C13.2845 4.11121 13.1738 3.86179 12.9546 3.75334C12.8308 3.69208 12.7043 3.63424 12.5754 3.58002C12.4465 3.52579 12.3168 3.47593 12.1866 3.43037C11.9562 3.34974 11.7055 3.44713 11.5707 3.65416L11.0908 4.39115C10.9672 4.58093 10.7457 4.67543 10.5235 4.65251C10.1661 4.61563 9.80932 4.61712 9.45837 4.65477C9.23633 4.6786 9.01448 4.58486 8.89027 4.39554L8.40767 3.65998Z",fill:"currentColor"},null,-1),io=[so];function no(t,e){return l(),u("svg",oo,io)}const Pt=$(eo,[["render",no]]),ro={components:{SvgAioseoLogoGear:Pt},data(){return{strings:{boldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","BLC",this.$isPro?"Pro":""),linkText:this.$t.__("Click here to learn more",this.$td)}}},computed:{link(){return this.$t.sprintf('<strong><a href="%1$s" target="_blank" class="text-white">%2$s</a></strong>',this.$links.getDocUrl("restApi"),this.strings.linkText)},upgradeText(){return this.$t.sprintf(this.$t.__("%1$s relies on the WordPress Rest API and your site might have it disabled. %2$s.",this.$td),this.strings.boldText,this.link)}},mounted(){document.body.classList.add("aioseo-has-bar")},beforeUnmount(){document.body.classList.remove("aioseo-has-bar")}},ao={class:"aioseo-api-bar"},co={class:"upgrade-text"},lo=["innerHTML"];function uo(t,e,o,i,s,n){const c=m("svg-aioseo-logo-gear");return l(),u("div",ao,[r("div",co,[p(c),r("div",{innerHTML:n.upgradeText},null,8,lo)])])}const ne=$(ro,[["render",uo]]),fo={props:{number:Number,fromNumber:{type:Number,default(){return 0}},formatNumber:{type:Boolean,default(){return!0}}},data(){return{animatedNumber:0}},watch:{number(){this.animateNumber()}},computed:{formattedNumber(){return this.formatNumber?Ot.numberFormat(this.animatedNumber):this.animatedNumber}},methods:{animateNumber(){const t=Ot.animateNumbers(this.fromNumber,this.number,e=>this.animatedNumber=e);window.addEventListener("blur",()=>{t.cancel(),this.animatedNumber=this.number})}},mounted(){this.animateNumber()}};function ho(t,e,o,i,s,n){return l(),u("span",null,h(n.formattedNumber),1)}const po=$(fo,[["render",ho]]),mo={components:{UtilAnimatedNumber:po},props:{percentage:Number},data(){return{fromNumber:0,number:0}},watch:{percentage:{deep:!0,handler(t){t!==this.number&&(this.fromNumber=this.number,this.number=t)}}},mounted(){this.number=this.percentage}},_o={class:"aioseo-percent-circle"},go={class:"aioseo-seo-site-score-svg",viewBox:"0 0 33.83098862 33.83098862",xmlns:"http://www.w3.org/2000/svg"},vo=r("circle",{class:"aioseo-percent-circle-score__background",stroke:"#BFD6F7","stroke-width":"2",fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"},null,-1),bo=["stroke-dasharray"],Co={class:"aioseo-percent-circle-percent"};function yo(t,e,o,i,s,n){const c=m("util-animated-number");return l(),u("div",_o,[p(q,{name:"fill-percent-circle"},{default:b(()=>[(l(),u("svg",go,[vo,r("circle",{class:"aioseo-percent-circle-score__circle",stroke:"#005AE0","stroke-width":"2","stroke-dasharray":`${o.percentage},100`,fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"},null,8,bo)]))]),_:1}),r("div",Co,[r("div",null,[p(c,{number:s.number,"from-number":s.fromNumber},null,8,["number","from-number"]),N("% ")])])])}const re=$(mo,[["render",yo]]),$o={emits:["close"],components:{CorePercentCircle:re,SvgClose:ut},props:{strings:Object,percentage:Number}},wo={class:"aioseo-processing-popup"},ko=r("br",null,null,-1);function So(t,e,o,i,s,n){const c=m("core-percent-circle"),d=m("svg-close");return l(),u("div",wo,[p(c,{percentage:o.percentage},null,8,["percentage"]),r("div",null,[r("strong",null,h(o.strings.header),1),ko,N(h(o.strings.description),1)]),p(d,{onClick:e[0]||(e[0]=a=>t.$emit("close"))})])}const Lo=$($o,[["render",So]]),No={props:{hero:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fullWidth:Boolean,small:Boolean},computed:{classes(){let t=this.fluid?"aioseo-container-fluid ":"aioseo-container ";return t+=this.hero?"aioseo-hero ":"",t+=this.fullWidth?"full-width ":"",t+=this.small?"small ":"",t}}};function To(t,e,o,i,s,n){return l(),u("div",{class:H(n.classes)},[O(t.$slots,"default")],2)}const ae=$(No,[["render",To]]),Po={},Mo={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-notifications"},Bo=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.8333 2.5H4.16667C3.25 2.5 2.5 3.25 2.5 4.16667V15.8333C2.5 16.75 3.24167 17.5 4.16667 17.5H15.8333C16.75 17.5 17.5 16.75 17.5 15.8333V4.16667C17.5 3.25 16.75 2.5 15.8333 2.5ZM15.8333 15.8333H4.16667V13.3333H7.13333C7.70833 14.325 8.775 15 10.0083 15C11.2417 15 12.3 14.325 12.8833 13.3333H15.8333V15.8333ZM11.675 11.6667H15.8333V4.16667H4.16667V11.6667H8.34167C8.34167 12.5833 9.09167 13.3333 10.0083 13.3333C10.925 13.3333 11.675 12.5833 11.675 11.6667Z",fill:"currentColor"},null,-1),Do=[Bo];function Ao(t,e){return l(),u("svg",Mo,Do)}const xo=$(Po,[["render",Ao]]),rt="aioseo-broken-link-checker",Ho={setup(){return{licenseStore:Be(),notificationsStore:K(),scansStore:De(),rootStore:st()}},components:{CoreApiBar:ne,CorePercentCircle:re,CoreProcessingPopup:Lo,GridContainer:ae,SvgLogo:Ve,SvgNotifications:xo},props:{fullWidth:Boolean,small:Boolean,pageName:String,actions:{type:Boolean,default(){return!0}},upgradeBar:{type:Boolean,default(){return!0}}},data(){return{activeScan:"",strings:{popups:{links:{header:Z("Posts are being scanned for links",rt),description:Z("Depending on the number of posts being scanned, this process can take some time. You can safely leave this page and check back later.",rt)},linkStatuses:{header:Z("Links are being checked for the first time",rt),description:Z("Depending on the number of links that need to be checked, this process can take some time. You can safely leave this page and check back later.",rt)}}}}},computed:{percentage(){return this.activeScan?this.scansStore.scans.percentages[this.activeScan]:100},showPopup(){return this.scansStore.scans.show[this.activeScan]&&this.scansStore.scans.percentages[this.activeScan]!==100},popupStrings(){return this.strings.popups[this.activeScan]}},methods:{debounce(t){let e;return(...o)=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame(()=>{t(...o)})}},storeScroll(){document.documentElement.dataset.scroll=window.scrollY},toggleModal(){document.getElementById("aioseo-help-modal").classList.toggle("visible"),document.body.classList.toggle("modal-open")},checkForActiveScan(){this.rootStore.aioseoBrokenLinkChecker.page!=="links"||this.$route.name!=="broken-links"||(this.scansStore.scans.percentages.links!==100&&(this.activeScan="links",this.scansStore.pollScan("links"),this.togglePopup()),this.scansStore.scans.percentages.linkStatuses!==100&&(this.activeScan="linkStatuses",this.scansStore.pollScan("linkStatuses"),this.togglePopup()))},togglePopup(){this.scansStore.scans.show[this.activeScan]=!this.scansStore.scans.show[this.activeScan]}},mounted(){this.storeScroll(),document.addEventListener("scroll",this.debounce(this.storeScroll),{passive:!0}),this.licenseStore.isUnlicensed?window.aioseoBrokenLinkCheckerBus.$on("checkForActiveScan",()=>{this.checkForActiveScan()}):this.checkForActiveScan()}},Eo={class:"aioseo-header"},Oo={class:"aioseo-header-content"},Io={class:"logo"},zo={key:0,class:"header-actions"},Ro={key:0,class:"round number"};function Wo(t,e,o,i,s,n){const c=m("core-api-bar"),d=m("svg-logo"),a=m("core-percent-circle"),f=m("core-processing-popup"),v=m("svg-notifications"),w=m("grid-container");return l(),u("div",Eo,[i.rootStore.pong?_("",!0):(l(),k(c,{key:0})),p(w,{"full-width":o.fullWidth,small:o.small},{default:b(()=>[r("div",Oo,[r("div",Io,[p(d)]),o.actions?(l(),u("div",zo,[p(q,{name:"fade-percent-circle"},{default:b(()=>[s.activeScan&&parseInt(n.percentage)!==100?(l(),k(a,{key:0,percentage:n.percentage,onClick:n.togglePopup},null,8,["percentage","onClick"])):_("",!0)]),_:1}),p(q,{name:"fade-processing-popup"},{default:b(()=>[n.showPopup?(l(),k(f,{key:0,strings:n.popupStrings,percentage:n.percentage,onClose:n.togglePopup},null,8,["strings","percentage","onClose"])):_("",!0)]),_:1}),r("span",{class:"round",onClick:e[0]||(e[0]=T((...g)=>i.notificationsStore.toggleNotifications&&i.notificationsStore.toggleNotifications(...g),["stop"]))},[i.notificationsStore.activeNotificationsCount?(l(),u("span",Ro,h(i.notificationsStore.activeNotificationsCount>9?"!":i.notificationsStore.activeNotificationsCount),1)):_("",!0),p(v,{onClick:T(i.notificationsStore.toggleNotifications,["stop"])},null,8,["onClick"])])])):_("",!0)])]),_:1},8,["full-width","small"])])}const Vo=$(Ho,[["render",Wo]]),Uo={setup(){return{licenseStore:Lt(),rootStore:G()}},components:{SvgAioseoLogoGear:Pt},data(){return{strings:{boldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","Broken Link Checker","Pro"),linkText:this.$t.__("license key now",this.$tdPro),renewLinkText:this.$t.__("Renew your license now",this.$tdPro)}}},computed:{link(){return this.$t.sprintf('<strong><a href="%1$s" class="text-white">%2$s</a></strong>',this.rootStore.aioseo.data.isNetworkAdmin?this.rootStore.aioseo.urls.aio.networkSettings:this.rootStore.aioseo.urls.aio.settings,this.strings.linkText)},renewLink(){return this.$t.sprintf('<strong><a href="%1$s" class="text-white" target="_blank">%2$s</a></strong>',this.$links.utmUrl("expired-license-key-bar","","https://aioseo.com/account/downloads/"),this.strings.renewLinkText)},upgradeText(){return this.licenseStore.license.isExpired?this.$t.sprintf(this.$t.__("You're using %1$s but your license has expired. %2$s.",this.$tdPro),this.strings.boldText,this.renewLink):this.$t.sprintf(this.$t.__("You're using %1$s but no license key has been entered. Add your %2$s.",this.$tdPro),this.strings.boldText,this.link)}},mounted(){document.body.classList.add("aioseo-has-bar")},beforeUnmount(){document.body.classList.remove("aioseo-has-bar")}},Fo={class:"aioseo-license-key-bar"},jo={class:"upgrade-text"},qo=["innerHTML"];function Yo(t,e,o,i,s,n){const c=m("svg-aioseo-logo-gear");return l(),u("div",Fo,[r("div",jo,[p(c),r("div",{innerHTML:n.upgradeText},null,8,qo)])])}const Zo=$(Uo,[["render",Yo]]),Xo={setup(){return{settingsStore:se()}},components:{SvgAioseoLogoGear:Pt,SvgClose:ut},data(){return{strings:{boldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","Broken Link Checker",this.$t.__("Free",this.$td)),url:this.$links.utmUrl("lite-upgrade-bar"),linkText:this.$t.sprintf(this.$t.__("upgrading to %1$s",this.$td),"Pro")}}},computed:{link(){return this.$t.sprintf('<strong><a href="%1$s" target="_blank" class="text-white">%2$s</a> <a href="%1$s" target="_blank" class="text-white upgrade-arrow">&rarr;</a></strong>',this.strings.url,this.strings.linkText)},upgradeText(){return this.$t.sprintf(this.$t.__("You're using %1$s. To unlock more features, consider %2$s",this.$td),this.strings.boldText,this.link)}},methods:{processHideUpgradeBar(){document.body.classList.remove("aioseo-has-bar"),this.settingsStore.hideUpgradeBar()}},mounted(){document.body.classList.add("aioseo-has-bar")}},Go={class:"aioseo-upgrade-bar"},Ko={class:"upgrade-text"},Jo=["innerHTML"];function Qo(t,e,o,i,s,n){const c=m("svg-aioseo-logo-gear"),d=m("svg-close");return l(),u("div",Go,[r("div",Ko,[p(c),r("div",{innerHTML:n.upgradeText},null,8,Jo)]),p(d,{onClick:n.processHideUpgradeBar},null,8,["onClick"])])}const ts=$(Xo,[["render",Qo]]),es={props:{aioColor:{type:String,default(){return"#005AE0"}},seoColor:{type:String,default(){return"#141B38"}}}},os={viewBox:"0 0 132 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-logo"},ss=["fill"],is=["fill"],ns=["fill"],rs=["fill"],as=["fill"];function cs(t,e,o,i,s,n){return l(),u("svg",os,[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M119.038 25.9241C126.197 25.9241 132 20.1208 132 12.962C132 5.8033 126.197 0 119.038 0C111.879 0 106.076 5.8033 106.076 12.962C106.076 20.1208 111.879 25.9241 119.038 25.9241ZM116.974 4.74408C116.798 4.47648 116.473 4.35136 116.175 4.45672C115.835 4.57673 115.503 4.71787 115.18 4.87929C114.897 5.02098 114.755 5.34466 114.817 5.66033L115.039 6.78507C115.096 7.07457 114.978 7.36839 114.754 7.55504C114.4 7.85003 114.072 8.18354 113.779 8.55268C113.597 8.78212 113.309 8.90373 113.025 8.84638L111.923 8.62364C111.613 8.56107 111.296 8.70747 111.159 8.99738C111.081 9.16116 111.007 9.32837 110.938 9.49892C110.869 9.66947 110.806 9.84093 110.748 10.0131C110.646 10.3179 110.77 10.6496 111.033 10.8279L111.969 11.4625C112.21 11.626 112.33 11.919 112.301 12.2128C112.254 12.6856 112.256 13.1575 112.304 13.6217C112.334 13.9154 112.215 14.2088 111.974 14.3731L111.04 15.0114C110.778 15.1906 110.655 15.5224 110.758 15.8268C110.876 16.1734 111.014 16.5125 111.172 16.8419C111.311 17.1311 111.629 17.2761 111.938 17.2125L113.04 16.9857C113.324 16.9273 113.612 17.0478 113.795 17.2767C114.084 17.6384 114.411 17.9723 114.772 18.2715C114.997 18.4574 115.116 18.7508 115.06 19.0405L114.842 20.1656C114.781 20.4817 114.924 20.8049 115.208 20.9455C115.369 21.0249 115.533 21.0999 115.7 21.1702C115.867 21.2405 116.035 21.3051 116.204 21.3642C116.697 21.5369 117.388 20.9185 117.899 20.4613C118.151 20.2358 118.306 19.9167 118.308 19.5751C118.308 19.5732 118.308 19.5714 118.308 19.5696L118.308 17.6882C118.308 17.6682 118.309 17.6485 118.31 17.6289C116.801 17.2609 115.68 15.8759 115.68 14.2236V12.2258C115.68 12.0739 115.8 11.9508 115.949 11.9508H116.884V9.98521C116.884 9.71381 117.099 9.49381 117.365 9.49381C117.631 9.49381 117.847 9.71381 117.847 9.98521V11.9508H120.375V9.98521C120.375 9.71381 120.591 9.49381 120.857 9.49381C121.123 9.49381 121.338 9.71381 121.338 9.98521V11.9508H122.273C122.422 11.9508 122.542 12.0739 122.542 12.2258V14.2236C122.542 15.9281 121.348 17.3482 119.768 17.6608C119.768 17.6699 119.768 17.679 119.768 17.6882L119.768 19.5615C119.768 19.9097 119.928 20.2346 120.187 20.4609C120.707 20.9143 121.41 21.5273 121.901 21.3539C122.241 21.2339 122.573 21.0927 122.896 20.9313C123.179 20.7896 123.321 20.4659 123.259 20.1503L123.037 19.0255C122.98 18.736 123.098 18.4422 123.322 18.2555C123.676 17.9606 124.004 17.6271 124.297 17.2579C124.479 17.0285 124.767 16.9069 125.05 16.9642L126.153 17.187C126.463 17.2495 126.78 17.1031 126.917 16.8132C126.995 16.6494 127.069 16.4822 127.138 16.3117C127.206 16.1412 127.27 15.9697 127.328 15.7975C127.43 15.4927 127.306 15.1611 127.043 14.9828L126.107 14.3481C125.866 14.1846 125.746 13.8916 125.775 13.5978C125.822 13.125 125.82 12.6531 125.772 12.1889C125.742 11.8952 125.861 11.6018 126.102 11.4375L127.036 10.7992C127.298 10.6201 127.421 10.2882 127.318 9.98385C127.2 9.63721 127.062 9.29815 126.903 8.96874C126.765 8.67957 126.447 8.5345 126.138 8.59814L125.036 8.82494C124.752 8.88331 124.464 8.76277 124.281 8.53391C123.992 8.17222 123.665 7.83832 123.304 7.53914C123.079 7.35319 122.959 7.05979 123.016 6.77009L123.234 5.64501C123.295 5.32896 123.152 5.00567 122.868 4.8651C122.707 4.78568 122.543 4.71072 122.376 4.64043C122.209 4.57014 122.041 4.50551 121.872 4.44646C121.574 4.34194 121.249 4.46819 121.074 4.73654L120.452 5.69183C120.292 5.93781 120.005 6.06032 119.717 6.0306C119.253 5.98279 118.791 5.98473 118.336 6.03353C118.048 6.06441 117.761 5.94292 117.6 5.69751L116.974 4.74408Z",fill:o.aioColor},null,8,ss),r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M105.513 1.05337H88.2941V25.1068H105.615C104.821 23.4472 104.185 21.6978 103.726 19.8778H94.4968V15.5503H102.989C102.912 14.7012 102.872 13.8412 102.872 12.972C102.872 12.0658 102.915 11.1696 102.999 10.2853H94.4968V6.28237H103.672C104.115 4.46375 104.735 2.71435 105.513 1.05337ZM75.3679 25.5395C70.4995 25.5395 67.1096 24.0249 64.6935 21.7169L67.9751 17.0649C69.7061 18.7959 72.3747 20.2384 75.6564 20.2384C77.784 20.2384 79.0823 19.3368 79.0823 18.1829C79.0823 16.8125 77.5316 16.2716 74.9712 15.7306L74.7674 15.6899C70.817 14.9016 65.4508 13.8306 65.4508 8.22973C65.4508 4.19077 68.8767 0.692749 75.0433 0.692749C78.9019 0.692749 82.2557 1.84674 84.8161 4.04652L81.4263 8.48216C79.4068 6.8233 76.7743 5.99388 74.6466 5.99388C72.5911 5.99388 71.7977 6.8233 71.7977 7.86911C71.7977 9.13128 73.2763 9.56402 75.9449 10.0689C79.9117 10.8983 85.3931 12.0523 85.3931 17.4977C85.3931 22.33 81.823 25.5395 75.3679 25.5395Z",fill:o.aioColor},null,8,is),r("path",{d:"M18.6646 25.1186H25.2253L16.3842 1.71759H8.80606L0 25.1186H6.56069L7.75355 21.5751H17.4718L18.6646 25.1186ZM12.5951 6.98018L15.893 16.4879H9.33232L12.5951 6.98018Z",fill:o.seoColor},null,8,ns),r("path",{d:"M27.999 25.1186H34.0335V1.71759H27.999V25.1186Z",fill:o.seoColor},null,8,rs),r("path",{d:"M37.0504 13.4356C37.0504 20.5577 42.4183 25.5396 49.5754 25.5396C56.7325 25.5396 62.0653 20.5577 62.0653 13.4356C62.0653 6.31358 56.7325 1.33167 49.5754 1.33167C42.4183 1.33167 37.0504 6.31358 37.0504 13.4356ZM55.9256 13.4356C55.9256 17.2247 53.4346 20.2068 49.5754 20.2068C45.6811 20.2068 43.1901 17.2247 43.1901 13.4356C43.1901 9.61147 45.6811 6.66442 49.5754 6.66442C53.4346 6.66442 55.9256 9.61147 55.9256 13.4356Z",fill:o.seoColor},null,8,as)])}const ls=$(es,[["render",cs]]),ds={},us={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-description"},fs=r("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),hs=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z",fill:"currentColor"},null,-1),ps=[fs,hs];function ms(t,e){return l(),u("svg",us,ps)}const _s=$(ds,[["render",ms]]),gs={},vs={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-folder-open"},bs=r("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),Cs=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z",fill:"currentColor"},null,-1),ys=[bs,Cs];function $s(t,e){return l(),u("svg",vs,ys)}const ws=$(gs,[["render",$s]]),ks={props:{active:{type:Boolean,default(){return!1}}}},Ss={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-support"};function Ls(t,e,o,i,s,n){return l(),u("svg",Ss,[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12,2C6.48,2,2,6.48,2,12c0,5.52,4.48,10,10,10s10-4.48,10-10C22,6.48,17.52,2,12,2z M19.46,9.12l-2.78,1.15 c-0.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78C16.98,5.35,18.65,7.02,19.46,9.12z M12,15c-1.66,0-3-1.34-3-3s1.34-3,3-3s3,1.34,3,3 S13.66,15,12,15z M9.13,4.54l1.17,2.78c-1.38,0.5-2.47,1.59-2.98,2.97L4.54,9.13C5.35,7.02,7.02,5.35,9.13,4.54z M4.54,14.87 l2.78-1.15c0.51,1.38,1.59,2.46,2.97,2.96l-1.17,2.78C7.02,18.65,5.35,16.98,4.54,14.87z M14.88,19.46l-1.15-2.78 c1.37-0.51,2.45-1.59,2.95-2.97l2.78,1.17C18.65,16.98,16.98,18.65,14.88,19.46z",fill:"currentColor",style:J({transform:o.active?"rotate(45deg)":"rotate(0deg)",transformOrigin:"center"})},null,4)])}const Ns=$(ks,[["render",Ls]]),Ts={setup(){return{licenseStore:Lt(),rootStore:G(),helpPanelStore:Ue(),settingsStore:se()}},components:{CoreApiBar:ne,CoreLicenseKeyBar:Zo,CoreUpgradeBar:ts,SvgAioseoLogo:ls,SvgClose:ut,SvgDescription:_s,SvgFolderOpen:ws,SvgSupport:Ns},data(){return{searchItem:null,strings:{close:this.$t.__("Close",this.$td),search:this.$t.__("Search",this.$td),viewAll:this.$t.__("View All",this.$td),docs:this.$t.__("Docs",this.$td),viewDocumentation:this.$t.__("View Documentation",this.$td),browseDocumentation:this.$t.sprintf(this.$t.__("Browse documentation, reference material, and tutorials for %1$s.",this.$td),"BLC"),viewAllDocumentation:this.$t.__("View All Documentation",this.$td),getSupport:this.$t.__("Get Support",this.$td),submitTicket:this.$t.__("Submit a ticket and our world class support team will be in touch soon.",this.$td),submitSupportTicket:this.$t.__("Submit a Support Ticket",this.$td),upgradeToPro:this.$t.__("Upgrade to Pro",this.$td)}}},computed:{filteredDocs(){return this.searchItem!==""?Object.values(this.helpPanelStore.docs).filter(t=>this.searchItem!==null?t.title.toLowerCase().includes(this.searchItem.toLowerCase()):null):null}},methods:{inputSearch:function(t){Ge(()=>{this.searchItem=t},1e3)},toggleSection:function(t){t.target.parentNode.parentNode.classList.toggle("opened")},toggleDocs:function(t){t.target.previousSibling.classList.toggle("opened"),t.target.style.display="none"},toggleModal(){document.getElementById("aioseo-help-modal").classList.toggle("visible"),document.body.classList.toggle("modal-open")},getCategoryDocs(t){return Object.values(this.helpPanelStore.docs).filter(e=>e.categories.flat().includes(t)?e:null)}}},Ps={id:"aioseo-help-modal",class:"aioseo-help"},Ms={class:"aioseo-help-header"},Bs={class:"logo"},Ds=["href"],As=["title"],xs={class:"help-content"},Hs={id:"aioseo-help-search"},Es={id:"aioseo-help-result"},Os={class:"aioseo-help-docs"},Is={class:"icon"},zs=["href"],Rs={id:"aioseo-help-categories"},Ws={class:"aioseo-help-categories-toggle"},Vs={class:"folder-open"},Us={class:"title"},Fs=r("span",{class:"dashicons dashicons-arrow-right-alt2"},null,-1),js={class:"aioseo-help-docs"},qs={class:"icon"},Ys=["href"],Zs={class:"aioseo-help-additional-docs"},Xs={class:"icon"},Gs=["href"],Ks={id:"aioseo-help-footer"},Js={class:"aioseo-help-footer-block"},Qs=["href"],ti={class:"aioseo-help-footer-block"},ei=["href"];function oi(t,e,o,i,s,n){const c=m("core-upgrade-bar"),d=m("core-license-key-bar"),a=m("core-api-bar"),f=m("svg-aioseo-logo"),v=m("svg-close"),w=m("base-input"),g=m("svg-description"),C=m("svg-folder-open"),y=m("base-button"),W=m("svg-support");return l(),u("div",Ps,[!t.$isPro&&i.settingsStore.settings.showUpgradeBar&&i.rootStore.pong?(l(),k(c,{key:0})):_("",!0),t.$isPro&&i.licenseStore.isUnlicensed&&i.rootStore.pong?(l(),k(d,{key:1})):_("",!0),i.rootStore.pong?_("",!0):(l(),k(a,{key:2})),r("div",Ms,[r("div",Bs,[i.licenseStore.isUnlicensed?(l(),u("a",{key:0,href:t.$links.utmUrl("header-logo"),target:"_blank"},[p(f,{id:"aioseo-help-logo"})],8,Ds)):_("",!0),i.licenseStore.isUnlicensed?_("",!0):(l(),k(f,{key:1,id:"aioseo-help-logo"}))]),r("div",{id:"aioseo-help-close",title:s.strings.close,onClick:e[0]||(e[0]=T((...S)=>n.toggleModal&&n.toggleModal(...S),["stop"]))},[p(v)],8,As)]),r("div",xs,[r("div",Hs,[p(w,{type:"text",size:"medium",placeholder:s.strings.search,"onUpdate:modelValue":e[1]||(e[1]=S=>n.inputSearch(S))},null,8,["placeholder"])]),r("div",Es,[r("ul",Os,[(l(!0),u(E,null,z(n.filteredDocs,(S,A)=>(l(),u("li",{key:A},[r("span",Is,[p(g)]),r("a",{href:t.$links.utmUrl("help-panel-doc","",S.url),rel:"noopener noreferrer",target:"_blank"},h(S.title),9,zs)]))),128))])]),r("div",Rs,[r("ul",Ws,[(l(!0),u(E,null,z(i.helpPanelStore.categories,(S,A)=>(l(),u("li",{key:A,class:H(["aioseo-help-category",{opened:A==="getting-started"}])},[r("header",{onClick:e[2]||(e[2]=T(M=>n.toggleSection(M),["stop"]))},[r("span",Vs,[p(C)]),r("span",Us,h(S),1),Fs]),r("ul",js,[(l(!0),u(E,null,z(n.getCategoryDocs(A).slice(0,5),(M,x)=>(l(),u("li",{key:x},[r("span",qs,[p(g)]),r("a",{href:t.$links.utmUrl("help-panel-doc","",M.url),rel:"noopener noreferrer",target:"_blank"},h(M.title),9,Ys)]))),128)),r("div",Zs,[(l(!0),u(E,null,z(n.getCategoryDocs(A).slice(5,n.getCategoryDocs(A).length),(M,x)=>(l(),u("li",{key:x},[r("span",Xs,[p(g)]),r("a",{href:t.$links.utmUrl("help-panel-doc","",M.url),rel:"noopener noreferrer",target:"_blank"},h(M.title),9,Gs)]))),128))]),n.getCategoryDocs(A).length>=5?(l(),k(y,{key:0,class:"aioseo-help-docs-viewall gray medium",onClick:e[3]||(e[3]=T(M=>n.toggleDocs(M),["stop"]))},{default:b(()=>[N(h(s.strings.viewAll)+" "+h(S)+" "+h(s.strings.docs),1)]),_:2},1024)):_("",!0)])],2))),128))])]),r("div",Ks,[r("div",Js,[r("a",{href:t.$links.utmUrl("help-panel-all-docs","","https://aioseo.com/docs/"),rel:"noopener noreferrer",target:"_blank"},[p(g),r("h3",null,h(s.strings.viewDocumentation),1),r("p",null,h(s.strings.browseDocumentation),1),p(y,{class:"aioseo-help-docs-viewall gray small"},{default:b(()=>[N(h(s.strings.viewAllDocumentation),1)]),_:1})],8,Qs)]),r("div",ti,[r("a",{href:!t.$isPro||!i.licenseStore.license.isActive?t.$links.getUpsellUrl("help-panel","get-support","liteUpgrade"):t.$links.utmUrl("help-panel-support","","https://aioseo.com/account/support/"),rel:"noopener noreferrer",target:"_blank"},[p(W),r("h3",null,h(s.strings.getSupport),1),r("p",null,h(s.strings.submitTicket),1),t.$isPro&&i.licenseStore.license.isActive?(l(),k(y,{key:0,class:"aioseo-help-docs-support blue small"},{default:b(()=>[N(h(s.strings.submitSupportTicket),1)]),_:1})):_("",!0),!t.$isPro||!i.licenseStore.license.isActive?(l(),k(y,{key:1,class:"aioseo-help-docs-support green small"},{default:b(()=>[N(h(s.strings.upgradeToPro),1)]),_:1})):_("",!0)],8,ei)])])])])}const si=$(Ts,[["render",oi]]),ce={locks:{},zIndex:2e3,enableRipple:!0};$t(ce);var le=$t(ce),ii=Object.defineProperty,ni=Object.defineProperties,ri=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,zt=(t,e,o)=>e in t?ii(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,li=(t,e)=>{for(var o in e||(e={}))ai.call(e,o)&&zt(t,o,e[o]);if(It)for(var o of It(e))ci.call(e,o)&&zt(t,o,e[o]);return t},di=(t,e)=>ni(t,ri(e)),R=t=>typeof t=="string",ui=t=>typeof t=="boolean",Mt=t=>typeof t=="number",de=t=>Mt(t)||R(t)&&/^[-+]?\d+$/.test(t),fi=t=>Object.prototype.toString.call(t)==="[object Object]",hi=t=>typeof t=="function",ue=t=>Array.isArray(t),pi=t=>t===window,mi=()=>ft()&&"ontouchstart"in window,ft=()=>typeof window<"u",Rt=(t,e)=>{if(t.length){const o=t.indexOf(e);if(o>-1)return t.splice(o,1)}},_i=(...t)=>t.map(e=>{if(ue(e)){const[o,i,s=null]=e;return o?i:s}return e}),gi=()=>typeof globalThis<"u"?globalThis:ft()?window:typeof global<"u"?global:self,bt=t=>{const e=gi();return e.requestAnimationFrame?e.requestAnimationFrame(t):e.setTimeout(t)},vi=()=>new Promise(t=>{bt(t)}),fe=()=>new Promise(t=>{bt(()=>{bt(t)})}),Bt=t=>window.getComputedStyle(t),ct=t=>{if(pi(t)){const e=t.innerWidth,o=t.innerHeight,i={x:0,y:0,top:0,left:0,right:e,bottom:o,width:e,height:o};return di(li({},i),{toJSON:()=>i})}return t.getBoundingClientRect()},bi=t=>{const e="scrollTop"in t?t.scrollTop:t.scrollY;return Math.max(e,0)},Ci=t=>{const e="scrollLeft"in t?t.scrollLeft:t.scrollX;return Math.max(e,0)};function X(t,...e){if(ue(t))return t.map(o=>o(...e));if(t)return t(...e)}var he=t=>t==null?0:R(t)?(t=parseFloat(t),t=Number.isNaN(t)?0:t,t):ui(t)?Number(t):t,yi=(t,e,o)=>Math.min(o,Math.max(e,t)),$i=t=>wi(t).replace(t.charAt(0),t.charAt(0).toUpperCase()),wi=t=>t.replace(/-(\w)/g,(e,o)=>o.toUpperCase());function ki(t){return e=>{const o=`${t}-${e}`,i=s=>s?s[0]==="$"?s.replace("$",t):s.startsWith("--")?`${o}${s}`:`${o}__${s}`:o;return{name:$i(o),n:i,classes:_i}}}var Si=Object.defineProperty,lt=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Wt=(t,e,o)=>e in t?Si(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Li=(t,e)=>{for(var o in e||(e={}))pe.call(e,o)&&Wt(t,o,e[o]);if(lt)for(var o of lt(e))me.call(e,o)&&Wt(t,o,e[o]);return t},Ni=(t,e)=>{var o={};for(var i in t)pe.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(t!=null&&lt)for(var i of lt(t))e.indexOf(i)<0&&me.call(t,i)&&(o[i]=t[i]);return o};function _e(t){let e=!1;Qt(()=>{t(),vt(()=>{e=!0})}),te(()=>{e&&t()})}function Ct(t,e,o,i={}){if(!ft())return;const{passive:s=!1,capture:n=!1}=i;let c=!1,d=!1;const a=C=>hi(C)?C():Ee(C),f=C=>{if(c||d)return;const y=a(C);y&&(y.addEventListener(e,o,{passive:s,capture:n}),c=!0)},v=C=>{if(!c||d)return;const y=a(C);y&&(y.removeEventListener(e,o,{capture:n}),c=!1)};let w;Ae(t)&&(w=ot(()=>t.value,(C,y)=>{v(y),f(C)}));const g=()=>{w==null||w(),v(t),d=!0};return _e(()=>{f(t)}),Kt(()=>{v(t)}),Jt(()=>{v(t)}),g}function Ti(t){Oe(()=>{t()}),Jt(()=>{t()})}function Pi(t){const e=wt();return t in e.provides}function Mi(t){if(!Pi(t))return{index:null,parentProvider:null,bindParent:null};const o=xe(t),{childInstances:i,collect:s,clear:n}=o,c=Ni(o,["childInstances","collect","clear"]),d=wt();return{index:D(()=>i.indexOf(d)),parentProvider:c,bindParent:v=>{Qt(()=>{vt().then(()=>{s(d,v)})}),Kt(()=>{vt().then(()=>{n(d,v)})})}}}function Bi(t){const e=[],o=i=>{if(i!=null&&i.component){o(i==null?void 0:i.component.subTree);return}Array.isArray(i==null?void 0:i.children)&&i.children.forEach(s=>{Ie(s)&&(e.push(s),o(s))})};return o(t),e}function Di(t){const e=wt(),o=$t([]),i=[],s=D(()=>o.length),n=()=>{const f=Bi(e.subTree);o.sort((v,w)=>f.indexOf(v.vnode)-f.indexOf(w.vnode))},c=(f,v)=>{o.push(f),i.push(v),n()},d=(f,v)=>{Rt(o,f),Rt(i,v)};return{length:s,childProviders:i,bindChildren:f=>{He(t,Li({childInstances:o,collect:c,clear:d},f))}}}function ge(t){Ct(()=>window,"resize",t,{passive:!0}),Ct(()=>window,"orientationchange",t,{passive:!0})}var Ai=Object.defineProperty,xi=Object.defineProperties,Hi=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable,Ut=(t,e,o)=>e in t?Ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ii=(t,e)=>{for(var o in e||(e={}))Ei.call(e,o)&&Ut(t,o,e[o]);if(Vt)for(var o of Vt(e))Oi.call(e,o)&&Ut(t,o,e[o]);return t},zi=(t,e)=>xi(t,Hi(e));function _t(t,e){return Array.isArray(e)?e.reduce((o,i)=>(o[i]=t[i],o),{}):t[e]}function Dt(t,e){const o=t;return o.install=function(i){const{name:s}=t;s&&i.component(s,t)},o}function At(t,e){t.setPropsDefaults=function(o){Object.entries(o).forEach(([i,s])=>{const n=e[i];if(n!=null){if(fi(n)){e[i]=zi(Ii({},n),{default:s});return}e[i]={type:n,default:s}}})}}const ht=ki("var");function tt(t){return{type:[Function,Array],default:t}}function Ri(t,e){return t===!1?null:(t===!0&&e&&(t=e),`var-elevation--${t}`)}var Wi=Object.defineProperty,Vi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Fi=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,jt=(t,e,o)=>e in t?Wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ve=(t,e)=>{for(var o in e||(e={}))Fi.call(e,o)&&jt(t,o,e[o]);if(Ft)for(var o of Ft(e))ji.call(e,o)&&jt(t,o,e[o]);return t},qi=(t,e)=>Vi(t,Ui(e));const{n:be}=ht("ripple"),qt=250;function Yi(t){const{zIndex:e,position:o}=Bt(t);t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden",o==="static"&&(t.style.position="relative"),e==="auto"&&(t.style.zIndex="1")}function Zi(t,e){const{top:o,left:i}=ct(t),{clientWidth:s,clientHeight:n}=t,c=Math.sqrt(s**2+n**2)/2,d=c*2,a=e.touches[0].clientX-i,f=e.touches[0].clientY-o,v=(s-c*2)/2,w=(n-c*2)/2,g=a-c,C=f-c;return{x:g,y:C,centerX:v,centerY:w,size:d}}function Ce(t){const e=this._ripple;if(e.removeRipple(),e.disabled||e.tasker||!le.enableRipple)return;const o=()=>{e.tasker=null;const{x:i,y:s,centerX:n,centerY:c,size:d}=Zi(this,t),a=document.createElement("div");a.classList.add(be()),a.style.opacity="0",a.style.transform=`translate(${i}px, ${s}px) scale3d(.3, .3, .3)`,a.style.width=`${d}px`,a.style.height=`${d}px`,e.color&&(a.style.backgroundColor=e.color),a.dataset.createdAt=String(performance.now()),Yi(this),this.appendChild(a),window.setTimeout(()=>{a.style.transform=`translate(${n}px, ${c}px) scale3d(1, 1, 1)`,a.style.opacity=".25"},20)};e.tasker=window.setTimeout(o,30)}function yt(){const t=this._ripple,e=()=>{const o=this.querySelectorAll(`.${be()}`);if(!o.length)return;const i=o[o.length-1],s=qt-performance.now()+Number(i.dataset.createdAt);window.setTimeout(()=>{i.style.opacity="0",window.setTimeout(()=>{var n;return(n=i.parentNode)==null?void 0:n.removeChild(i)},qt)},s)};t.tasker?window.setTimeout(e,30):e()}function ye(){if(!mi()||!le.enableRipple)return;const t=this._ripple;t.tasker&&window.clearTimeout(t.tasker),t.tasker=null}function Xi(t,e){var o;t._ripple=qi(ve({tasker:null},(o=e.value)!=null?o:{}),{removeRipple:yt.bind(t)}),t.addEventListener("touchstart",Ce,{passive:!0}),t.addEventListener("touchmove",ye,{passive:!0}),t.addEventListener("dragstart",yt,{passive:!0}),document.addEventListener("touchend",t._ripple.removeRipple,{passive:!0}),document.addEventListener("touchcancel",t._ripple.removeRipple,{passive:!0}),document.addEventListener("dragend",t._ripple.removeRipple,{passive:!0})}function Gi(t){t.removeEventListener("touchstart",Ce),t.removeEventListener("touchmove",ye),t.removeEventListener("dragstart",yt),document.removeEventListener("touchend",t._ripple.removeRipple),document.removeEventListener("touchcancel",t._ripple.removeRipple),document.removeEventListener("dragend",t._ripple.removeRipple)}function Ki(t,e){var o,i,s,n,c,d;const a={color:(o=e.value)==null?void 0:o.color,disabled:(i=e.value)==null?void 0:i.disabled};(a.color!==((s=t._ripple)==null?void 0:s.color)||a.disabled!==((n=t._ripple)==null?void 0:n.disabled))&&(t._ripple=ve({tasker:a.disabled?null:(c=t._ripple)==null?void 0:c.tasker,removeRipple:(d=t._ripple)==null?void 0:d.removeRipple},a))}const Ji={mounted:Xi,unmounted:Gi,updated:Ki,install(t){t.directive("ripple",this)}};var Qi=Ji;function tn(t,e){throw Error(`Varlet [${t}]: ${e}`)}function en(t){let e=t;for(;e&&!(!e.parentNode||(e=e.parentNode,e===document.body||e===document.documentElement));){const o=/(scroll|auto)/,{overflowY:i,overflow:s}=Bt(e);if(o.test(i)||o.test(s))return e}return window}function on(){const{width:t,height:e}=ct(window);return{vw:t,vh:e,vMin:Math.min(t,e),vMax:Math.max(t,e)}}const sn=t=>R(t)&&t.endsWith("rem"),nn=t=>R(t)&&t.endsWith("px")||Mt(t),rn=t=>R(t)&&t.endsWith("vw"),an=t=>R(t)&&t.endsWith("vh"),cn=t=>R(t)&&t.endsWith("vmin"),ln=t=>R(t)&&t.endsWith("vmax"),dn=t=>{if(de(t))return Number(t);if(nn(t))return+t.replace("px","");if(!ft())return 0;const{vw:e,vh:o,vMin:i,vMax:s}=on();if(rn(t))return+t.replace("vw","")*e/100;if(an(t))return+t.replace("vh","")*o/100;if(cn(t))return+t.replace("vmin","")*i/100;if(ln(t))return+t.replace("vmax","")*s/100;if(sn(t)){const n=+t.replace("rem",""),c=Bt(document.documentElement).fontSize;return n*parseFloat(c)}return R(t)?he(t):0},un=t=>{if(t!=null)return de(t)?`${t}px`:String(t)};function Yt(t,{top:e=0,left:o=0,duration:i=300,animation:s}){const n=Date.now(),c=bi(t),d=Ci(t);return new Promise(a=>{const f=()=>{const v=(Date.now()-n)/i;if(v<1){const w=c+(e-c)*s(v),g=d+(o-d)*s(v);t.scrollTo(g,w),requestAnimationFrame(f)}else t.scrollTo(o,e),a()};requestAnimationFrame(f)})}const Zt=t=>t,et={offsetTop:{type:[String,Number],default:0},zIndex:{type:[String,Number],default:10},cssMode:Boolean,disabled:Boolean,onScroll:tt()};var Xt=(t,e,o)=>new Promise((i,s)=>{var n=a=>{try{d(o.next(a))}catch(f){s(f)}},c=a=>{try{d(o.throw(a))}catch(f){s(f)}},d=a=>a.done?i(a.value):Promise.resolve(a.value).then(n,c);d((o=o.apply(t,e)).next())});const{name:fn,n:hn,classes:pn}=ht("sticky");function mn(t,e){return l(),u("div",{class:H(t.classes(t.n(),[t.enableCSSMode,t.n("--css-mode")])),ref:"stickyEl",style:J({zIndex:t.toNumber(t.zIndex),top:t.enableCSSMode?`${t.offsetTop}px`:void 0,width:t.enableFixedMode?t.fixedWidth:void 0,height:t.enableFixedMode?t.fixedHeight:void 0})},[r("div",{class:H(t.n("wrapper")),ref:"wrapperEl",style:J({zIndex:t.toNumber(t.zIndex),position:t.enableFixedMode?"fixed":void 0,width:t.enableFixedMode?t.fixedWrapperWidth:void 0,height:t.enableFixedMode?t.fixedWrapperHeight:void 0,left:t.enableFixedMode?t.fixedLeft:void 0,top:t.enableFixedMode?t.fixedTop:void 0})},[O(t.$slots,"default")],6)],6)}const $e=kt({name:fn,props:et,setup(t){const e=B(null),o=B(null),i=B(!1),s=B("0px"),n=B("0px"),c=B("auto"),d=B("auto"),a=B("auto"),f=B("auto"),v=D(()=>!t.disabled&&t.cssMode),w=D(()=>!t.disabled&&!t.cssMode&&i.value),g=D(()=>dn(t.offsetTop));let C;ot(()=>t.disabled,M),_e(()=>Xt(this,null,function*(){yield fe(),W(),S()})),Ti(A),ge(M),Ct(()=>window,"scroll",S);function y(){const{cssMode:x,disabled:Y}=t;if(Y)return;let U=0;if(C!==window){const{top:L}=ct(C);U=L}const F=o.value,j=e.value,{top:pt,left:V}=ct(j),nt=pt-U;return nt<=g.value?(x||(c.value=`${j.offsetWidth}px`,d.value=`${j.offsetHeight}px`,s.value=`${U+g.value}px`,n.value=`${V}px`,a.value=`${F.offsetWidth}px`,f.value=`${F.offsetHeight}px`,i.value=!0),{offsetTop:g.value,isFixed:!0}):(i.value=!1,{offsetTop:nt,isFixed:!1})}function W(){C=en(e.value),C!==window&&C.addEventListener("scroll",S)}function S(){const x=y();x&&X(t.onScroll,x.offsetTop,x.isFixed)}function A(){!C||C===window||C.removeEventListener("scroll",S)}function M(){return Xt(this,null,function*(){i.value=!1,yield vi(),y()})}return{stickyEl:e,wrapperEl:o,isFixed:i,offsetTop:g,fixedTop:s,fixedLeft:n,fixedWidth:c,fixedHeight:d,fixedWrapperWidth:a,fixedWrapperHeight:f,enableCSSMode:v,enableFixedMode:w,n:hn,classes:pn,resize:M,toNumber:he}}});$e.render=mn;var xt=$e;Dt(xt);At(xt,et);var _n=xt;const we={name:[String,Number],disabled:Boolean,ripple:{type:Boolean,default:!0},onClick:tt()},ke=Symbol("TABS_BIND_TAB_KEY");function gn(){const{childProviders:t,bindChildren:e,length:o}=Di(ke);return{length:o,tabList:t,bindTabList:e}}function vn(){const{parentProvider:t,bindParent:e,index:o}=Mi(ke);return e||tn("Tab","<var-tab/> must in <var-tabs/>"),{index:o,tabs:t,bindTabs:e}}const{name:bn,n:at,classes:Cn}=ht("tab");function yn(t,e){const o=ze("ripple");return ee((l(),u("div",{class:H(t.classes(t.n(),t.n("$--box"),t.computeColorClass(),t.n(`--${t.itemDirection}`))),ref:"tabEl",style:J({color:t.computeColorStyle()}),onClick:e[0]||(e[0]=(...i)=>t.handleClick&&t.handleClick(...i))},[O(t.$slots,"default")],6)),[[o,{disabled:t.disabled||!t.ripple}]])}const Se=kt({name:bn,directives:{Ripple:Qi},props:we,setup(t){const e=B(null),o=D(()=>e.value),i=D(()=>t.name),s=D(()=>t.disabled),{index:n,tabs:c,bindTabs:d}=vn(),{onTabClick:a,active:f,activeColor:v,inactiveColor:w,disabledColor:g,itemDirection:C,resize:y}=c,W={name:i,index:n,disabled:s,element:o};d(W),ot(()=>[t.name,t.disabled],y);function S(){return t.name!=null?f.value===t.name:f.value===(n==null?void 0:n.value)}function A(){return t.disabled?g.value:S()?v.value:w.value}function M(){return t.disabled?at("$-tab--disabled"):S()?at("$-tab--active"):at("$-tab--inactive")}function x(Y){const{disabled:U,name:F,onClick:j}=t;U||(X(j,F??n.value,Y),a(W))}return{tabEl:e,active:f,activeColor:v,inactiveColor:w,itemDirection:C,n:at,classes:Cn,computeColorStyle:A,computeColorClass:M,handleClick:x}}});Se.render=yn;var Ht=Se;Dt(Ht);At(Ht,we);var $n=Ht;const Le={active:{type:[String,Number],default:0},layoutDirection:{type:String,default:"horizontal"},itemDirection:{type:String,default:"horizontal"},fixedBottom:Boolean,activeColor:String,inactiveColor:String,disabledColor:String,color:String,indicatorColor:String,indicatorSize:[String,Number],elevation:{type:[Boolean,String,Number],default:!1},scrollable:{type:String,default:"auto"},indicatorPosition:{type:String,default:"normal"},safeArea:Boolean,sticky:Boolean,stickyCssMode:_t(et,"cssMode"),stickyZIndex:_t(et,"zIndex"),offsetTop:_t(et,"offsetTop"),onClick:tt(),onChange:tt(),"onUpdate:active":tt()};var Gt=(t,e,o)=>new Promise((i,s)=>{var n=a=>{try{d(o.next(a))}catch(f){s(f)}},c=a=>{try{d(o.throw(a))}catch(f){s(f)}},d=a=>a.done?i(a.value):Promise.resolve(a.value).then(n,c);d((o=o.apply(t,e)).next())});const{name:wn,n:kn,classes:Sn}=ht("tabs");function Ln(t,e){return l(),k(St(t.sticky?t.n("$-sticky"):t.Transition),{ref:t.sticky?"stickyComponent":void 0,"css-mode":t.sticky?t.stickyCssMode:void 0,"offset-top":t.sticky?t.offsetTop:void 0,"z-index":t.sticky?t.stickyZIndex:void 0},{default:b(()=>[r("div",Re({class:t.classes(t.n(),t.n("$--box"),t.n(`--item-${t.itemDirection}`),t.n(`--layout-${t.layoutDirection}-padding`),t.formatElevation(t.elevation,4),[t.fixedBottom,t.n("--fixed-bottom")],[t.safeArea,t.n("--safe-area")]),style:{background:t.color}},t.$attrs),[r("div",{ref:"scrollerEl",class:H(t.classes(t.n("tab-wrap"),[t.localScrollable,t.n(`--layout-${t.layoutDirection}-scrollable`)],t.n(`--layout-${t.layoutDirection}`)))},[O(t.$slots,"default"),r("div",{class:H(t.classes(t.n("indicator"),t.n(`--layout-${t.layoutDirection}${t.indicatorPosition}-indicator`))),style:J({width:t.layoutDirection==="horizontal"?t.indicatorWidth:t.toSizeUnit(t.indicatorSize),height:t.layoutDirection==="horizontal"?t.toSizeUnit(t.indicatorSize):t.indicatorHeight,transform:t.layoutDirection==="horizontal"?`translateX(${t.indicatorX})`:`translateY(${t.indicatorY})`})},[r("div",{class:H(t.classes(t.n("indicator-inner"),t.n(`--layout-${t.layoutDirection}-indicator-inner`))),style:J({background:t.indicatorColor||t.activeColor})},null,6)],6)],2)],16)]),_:3},8,["css-mode","offset-top","z-index"])}const Ne=kt({name:wn,components:{VarSticky:_n},inheritAttrs:!1,props:Le,setup(t){const e=B("0px"),o=B("0px"),i=B("0px"),s=B("0px"),n=B(!1),c=B(null),d=D(()=>t.active),a=D(()=>t.activeColor),f=D(()=>t.inactiveColor),v=D(()=>t.disabledColor),w=D(()=>t.itemDirection),g=B(null),C=D(()=>t.indicatorPosition==="reverse"?"-reverse":""),{tabList:y,bindTabList:W,length:S}=gn();W({active:d,activeColor:a,inactiveColor:f,disabledColor:v,itemDirection:w,resize:V,onTabClick:M}),ot(()=>S.value,()=>Gt(this,null,function*(){yield fe(),V()})),ot(()=>[t.active,t.scrollable],V),te(V),ge(V);function M(L){var P;const I=(P=L.name.value)!=null?P:L.index.value,{active:Q,onChange:Te,onClick:Pe}=t;X(t["onUpdate:active"],I),X(Pe,I),I!==Q&&X(Te,I)}function x(){return y.find(({name:L})=>t.active===L.value)}function Y(L){return y.find(({index:P})=>(L??t.active)===P.value)}function U(){if(S.value===0)return;const{active:L}=t;if(Mt(L)){const P=yi(L,0,S.value-1);return X(t["onUpdate:active"],P),Y(P)}}function F(){n.value=t.scrollable==="always"||y.length>=5}function j({element:L}){const P=L.value;P&&(t.layoutDirection==="horizontal"?(e.value=`${P.offsetWidth}px`,i.value=`${P.offsetLeft}px`):(o.value=`${P.offsetHeight}px`,s.value=`${P.offsetTop}px`))}function pt({element:L}){if(!n.value)return;const P=c.value,I=L.value;if(t.layoutDirection==="horizontal"){const Q=I.offsetLeft+I.offsetWidth/2-P.offsetWidth/2;Yt(P,{left:Q,animation:Zt})}else{const Q=I.offsetTop+I.offsetHeight/2-P.offsetHeight/2;Yt(P,{top:Q,animation:Zt})}}function V(){const L=x()||Y()||U();!L||L.disabled.value||(F(),j(L),pt(L))}function nt(){return Gt(this,null,function*(){t.sticky&&g.value&&(yield g.value.resize())})}return{stickyComponent:g,indicatorWidth:e,indicatorHeight:o,indicatorX:i,indicatorY:s,indicatorPosition:C,localScrollable:n,scrollerEl:c,Transition:q,toSizeUnit:un,n:kn,classes:Sn,resize:V,resizeSticky:nt,formatElevation:Ri}}});Ne.render=Ln;var Et=Ne;Dt(Et);At(Et,Le);var Nn=Et;const Tn="aioseo-broken-link-checker",Pn={setup(){return{rootStore:st()}},emits:["changed"],components:{BaseButton:dt,SvgCaret:Ke,TransitionSlide:it,VarTab:$n,VarTabs:Nn},mixins:[ie],props:{tabs:{type:Array,required:!0},skinnyTabs:Boolean,active:String,showSaveButton:{type:Boolean,default(){return!0}},internal:Boolean,disableMobile:Boolean},data(){return{buttonLoading:!1,showMobileMenu:!0,calculateWidth:!1,showMobileTabs:!1,strings:{saveChanges:Z("Save Changes",Tn)}}},computed:{activeTab(){var t,e;return this.active?this.active:(t=this.$route)!=null&&t.name?this.$route.name:(e=this.tabs[0])==null?void 0:e.slug},filteredTabs(){return this.tabs.filter(t=>{var e;return t.slug!==(this.active?this.active:(e=this.$route)!=null&&e.name?this.$route.name:"")})}},methods:{maybeChangeTab(t){if(this.active){this.$emit("changed",t);return}const e=this.tabs.find(o=>o.slug===t);e&&this.$router.push(e.url)},getActiveTabName(){const t=this.tabs.find(e=>{var o;return e.slug===(this.active?this.active:(o=this.$route)!=null&&o.name?this.$route.name:"")});return t?t.name:""},maybeShowMobileMenu(){if(window.matchMedia("(max-width: 782px)").matches&&!this.disableMobile){this.showMobileMenu=!0;return}let t=0;this.calculateWidth=!0,this.$nextTick(()=>{t=this.$refs["tabs-scroller"].offsetWidth,this.calculateWidth=!1;let e=0;const o=this.$refs["tabs-button"];if(o){const i=o.querySelector(".aioseo-button");e=i?i.scrollWidth:0}if(t+e>this.$refs["aioseo-tabs"].offsetWidth){this.showMobileMenu=!0;return}this.showMobileMenu=!1})},createRipple(t){const e=t.currentTarget,o=document.createElement("span"),i=Math.max(e.clientWidth,e.clientHeight),s=i/2,n=e.getBoundingClientRect();o.style.width=o.style.height=`${i}px`,o.style.left=`${t.clientX-(n.left+s)}px`,o.style.top=`${t.clientY-(n.top+s)}px`,o.classList.add("ripple");const c=e.getElementsByClassName("ripple")[0];c&&c.remove(),e.appendChild(o)}},beforeMount(){window.addEventListener("resize",this.maybeShowMobileMenu)},async mounted(){this.$nextTick(()=>{this.maybeShowMobileMenu();const t=this.$refs["aioseo-tabs"],e=t.querySelector(".var-tab--active"),o=t.querySelector(".var-tabs__indicator");if(!e||!o)return;setTimeout(()=>{o.style.width==="0px"&&(o.style.width=`${e.offsetWidth}px`,o.style.transform=`translateX(${e.offsetLeft}px)`)},300),new MutationObserver(()=>{o.style.width==="0px"&&(o.style.width=`${e.offsetWidth}px`,o.style.transform=`translateX(${e.offsetLeft}px)`)}).observe(o,{attributes:!0});const s=t.querySelectorAll(".var-tab");s.length&&s.forEach(n=>{n.addEventListener("click",this.createRipple)})})},beforeUnmount(){window.removeEventListener("resize",this.maybeShowMobileMenu)}},Mn={class:"tabs-scroller",ref:"tabs-scroller"},Bn={class:"label"},Dn={key:0,class:"aioseo-mobile-tabs"},An=r("span",{class:"tab-indicator"},null,-1),xn={class:"tab-links"},Hn=["onClick"],En={key:1,class:"button-right",ref:"tabs-button"},On={class:"tabs-extra"};function In(t,e,o,i,s,n){const c=m("var-tab"),d=m("var-tabs"),a=m("svg-caret"),f=m("router-link"),v=m("transition-slide"),w=m("base-button");return l(),u("div",{class:H(["aioseo-tabs",{internal:o.internal,skinny:o.skinnyTabs}]),ref:"aioseo-tabs"},[ee(r("div",Mn,[p(d,{active:n.activeTab,onClick:n.maybeChangeTab,ref:"var-tabs"},{default:b(()=>[(l(!0),u(E,null,z(o.tabs,(g,C)=>(l(),k(c,{name:g.slug,key:C},{default:b(()=>[O(t.$slots,"var-tab",{tab:g},()=>[O(t.$slots,"var-tab-icon",{tab:g}),r("span",Bn,h(g.name),1)])]),_:2},1032,["name"]))),128))]),_:3},8,["active","onClick"])],512),[[We,!s.showMobileMenu||s.calculateWidth]]),s.showMobileMenu?(l(),u("div",Dn,[r("div",{class:"active-tab",onClick:e[1]||(e[1]=g=>s.showMobileTabs=!s.showMobileTabs)},[r("div",null,[N(h(n.getActiveTabName())+" ",1),p(a,{onClick:e[0]||(e[0]=T(g=>s.showMobileTabs=!s.showMobileTabs,["stop"])),class:H({rotated:!s.showMobileTabs})},null,8,["class"]),An])]),p(v,{active:s.showMobileTabs,class:"tab-dropdown"},{default:b(()=>[r("div",xn,[o.active?_("",!0):(l(!0),u(E,{key:0},z(n.filteredTabs,(g,C)=>(l(),k(f,{key:C,to:g.url,onClick:e[2]||(e[2]=y=>s.showMobileTabs=!1)},{default:b(()=>[N(h(g.name),1)]),_:2},1032,["to"]))),128)),o.active?(l(!0),u(E,{key:1},z(n.filteredTabs,(g,C)=>(l(),u("a",{href:"#",key:C,onClick:T(y=>t.$emit("changed",g.slug)&&(s.showMobileTabs=!1),["prevent"])},h(g.name),9,Hn))),128)):_("",!0)])]),_:1},8,["active"])])):_("",!0),o.showSaveButton?(l(),u("div",En,[O(t.$slots,"button",{},()=>[p(w,{type:"blue",size:"medium",loading:i.rootStore.loading,onClick:t.processSaveChanges},{default:b(()=>[N(h(s.strings.saveChanges),1)]),_:1},8,["loading","onClick"])])],512)):_("",!0),r("div",On,[O(t.$slots,"extra")])],2)}const zn=$(Pn,[["render",In]]),gt="aioseo-broken-link-checker",Rn=()=>({strings:{notifications:mt("Notifications",gt),newNotifications:mt("New Notifications",gt),activeNotifications:mt("Active Notifications",gt)}}),Wn={computed:{notificationsCount(){const t=K();return this.dismissed?t.dismissedNotificationsCount:t.activeNotificationsCount},notifications(){const t=K();return this.dismissed?t.dismissedNotifications:t.activeNotifications},notificationTitle(){return this.dismissed?this.strings.notifications:this.strings.newNotifications}}},Vn=""+window.__aioseoDynamicImportPreload__("images/dannie-detective.C0gjJQEP.png"),Un={data(){return{button1Loading:!1,button2Loading:!1}},methods:{getHref(t){if(!t)return"";let e=t;if(this.isRoute(t)){const i=t.split("#")[1].split(":");e=G().aioseo.urls.aio.dashboard.replace("page=aioseo",`page=${i[0]}#/${i[1]}`)}return e},getTarget(t){return this.isRoute(t)?null:"_blank"},isRoute(t){return t.startsWith("http://route#")||t.startsWith("https://route#")},isAction(t){return t.startsWith("http://action#")||t.startsWith("https://action#")},getTagType(t){return this.isAction(t)?"button":"a"},processButtonClick(t,e){if(this[`button${e}Loading`]=!0,this.isAction(t))return this.processAction(t,e);if(this.isRoute(t))return this.processRoute(t,e);this[`button${e}Loading`]=!1},processAction(t,e){const o=/[^#?]*/gm,i=t.match(o),s=i[2];Nt().processButtonAction(s).then(()=>{if(i[4]&&i[4].startsWith("redirect=")){const c=G(),d=i[4].replace("redirect=","").split(":"),a=c.aioseo.urls.aio.dashboard.replace("page=aioseo",`page=${d[0]}#/${d[1]}`);if(a===window.location.href){window.location.reload();return}window.location.href=a}else i[4]&&i[4].startsWith("refresh")?window.location.reload():this[`button${e}Loading`]=!1})},processRoute(t){const e=G(),o=/[^#?]*/gm,s=t.match(o)[2].split(":");e.aioseo.urls.aio.dashboard.replace("page=aioseo",`page=${s[0]}#/${s[1]}`)===window.location.href&&window.location.reload()}}},Fn={setup(){return{notificationsStore:Nt()}},emits:["dismissed-notification"],components:{BaseButton:dt,SvgCircleCheck:Tt,SvgCircleClose:oe,SvgCircleExclamation:Fe,SvgGear:je,TransitionSlide:it},mixins:[Un,qe],props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{dismiss:this.$t.__("Dismiss",this.$td)}}},computed:{getIcon(){switch(this.notification.type){case"warning":return"svg-circle-exclamation";case"error":return"svg-circle-close";case"info":return"svg-gear";case"success":default:return"svg-circle-check"}},getDate(){return this.dateSqlToLocalRelative(this.notification.start)}},methods:{processDismissNotification(){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug]),this.$emit("dismissed-notification")},getButtonType(){switch(this.notification.notification_name){case"search-console-site-not-connected":case"search-console-site-not-verified":return"blue";default:return"gray"}}}},jn={class:"icon"},qn={class:"body"},Yn={class:"title"},Zn={class:"date"},Xn=["innerHTML"],Gn={class:"actions"};function Kn(t,e,o,i,s,n){const c=m("base-button"),d=m("transition-slide");return l(),k(d,{class:H(["aioseo-notification",[`aioseo-notification-${o.notification.notification_name}`]]),active:s.active},{default:b(()=>[r("div",null,[r("div",jn,[(l(),k(St(n.getIcon),{class:H(o.notification.type)},null,8,["class"]))]),r("div",qn,[r("div",Yn,[r("div",null,h(o.notification.title),1),r("div",Zn,h(n.getDate),1)]),r("div",{class:"notification-content",innerHTML:o.notification.content},null,8,Xn),r("div",Gn,[o.notification.button1_label&&o.notification.button1_action?(l(),k(c,{key:0,size:"small",type:n.getButtonType(1),class:"aioseo-button1",tag:t.getTagType(o.notification.button1_action),href:t.getHref(o.notification.button1_action),target:t.getTarget(o.notification.button1_action),onClick:e[0]||(e[0]=a=>t.processButtonClick(o.notification.button1_action,1)),loading:t.button1Loading},{default:b(()=>[N(h(o.notification.button1_label),1)]),_:1},8,["type","tag","href","target","loading"])):_("",!0),o.notification.button2_label&&o.notification.button2_action?(l(),k(c,{key:1,size:"small",type:n.getButtonType(2),class:"aioseo-button2",tag:t.getTagType(o.notification.button2_action),href:t.getHref(o.notification.button2_action),target:t.getTarget(o.notification.button2_action),onClick:e[1]||(e[1]=a=>t.processButtonClick(o.notification.button2_action,2)),loading:t.button2Loading},{default:b(()=>[N(h(o.notification.button2_label),1)]),_:1},8,["type","tag","href","target","loading"])):_("",!0),o.notification.dismissed?_("",!0):(l(),u("a",{key:2,href:"#",class:"dismiss",onClick:e[2]||(e[2]=T((...a)=>n.processDismissNotification&&n.processDismissNotification(...a),["stop","prevent"]))},h(s.strings.dismiss),1))])])])]),_:1},8,["class","active"])}const Jn=$(Fn,[["render",Kn]]),Qn={setup(){return{licenseStore:Lt(),notificationsStore:Nt(),optionsStore:Ye(),rootStore:G()}},emits:["dismissed-notification"],components:{SvgCircleCheck:Tt,TransitionSlide:it},props:{notification:{type:Object,required:!0}},data(){return{step:1,active:!0,strings:{dismiss:this.$t.__("Dismiss",this.$td),yesILoveIt:this.$t.__("Yes, I love it!",this.$td),notReally:this.$t.__("Not Really...",this.$td),okYouDeserveIt:this.$t.__("Ok, you deserve it",this.$td),nopeMaybeLater:this.$t.__("Nope, maybe later",this.$td),giveFeedback:this.$t.__("Give feedback",this.$td),noThanks:this.$t.__("No thanks",this.$td)}}},computed:{title(){switch(this.step){case 2:return this.$t.__("That's Awesome!",this.$td);case 3:return this.$t.__("Help us improve",this.$td);default:return this.$t.sprintf(this.$t.__("Are you enjoying %1$s?",this.$td),"BLC")}},content(){switch(this.step){case 2:return this.$t.__("Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?",this.$td);case 3:return this.$t.sprintf(this.$t.__("We're sorry to hear you aren't enjoying %1$s. We would love a chance to improve. Could you take a minute and let us know what we can do better?",this.$td),"Broken Link Checker");default:return""}},feedbackUrl(){const t=this.optionsStore.options.general&&this.licenseStore.licenseKey?this.licenseStore.licenseKey:"",e=this.$isPro?"pro":"lite";return this.$links.utmUrl("notification-review-notice",this.rootStore.aioseo.version,"https://aioseo.com/plugin-feedback/?wpf7528_24="+encodeURIComponent(this.rootStore.aioseo.urls.home)+"&wpf7528_26="+t+"&wpf7528_27="+e+"&wpf7528_28="+this.rootStore.aioseo.version)}},methods:{processDismissNotification(t=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(t?"-delay":"")]),this.$emit("dismissed-notification")}}},tr={class:"icon"},er={class:"body"},or={class:"title"},sr=["innerHTML"],ir={class:"actions"};function nr(t,e,o,i,s,n){const c=m("svg-circle-check"),d=m("base-button"),a=m("transition-slide");return l(),k(a,{class:"aioseo-notification",active:s.active},{default:b(()=>[r("div",null,[r("div",tr,[p(c,{class:"success"})]),r("div",er,[r("div",or,[r("div",null,h(n.title),1)]),r("div",{class:"notification-content",innerHTML:n.content},null,8,sr),r("div",ir,[s.step===1?(l(),u(E,{key:0},[p(d,{size:"small",type:"blue",onClick:e[0]||(e[0]=T(f=>s.step=2,["stop"]))},{default:b(()=>[N(h(s.strings.yesILoveIt),1)]),_:1}),p(d,{size:"small",type:"gray",onClick:e[1]||(e[1]=T(f=>s.step=3,["stop"]))},{default:b(()=>[N(h(s.strings.notReally),1)]),_:1})],64)):_("",!0),s.step===2?(l(),u(E,{key:1},[p(d,{tag:"a",href:"https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/?filter=5#new-post",size:"small",type:"blue",target:"_blank",rel:"noopener noreferrer",onClick:e[2]||(e[2]=f=>n.processDismissNotification(!1))},{default:b(()=>[N(h(s.strings.okYouDeserveIt),1)]),_:1}),p(d,{size:"small",type:"gray",onClick:e[3]||(e[3]=T(f=>n.processDismissNotification(!0),["stop","prevent"]))},{default:b(()=>[N(h(s.strings.nopeMaybeLater),1)]),_:1})],64)):_("",!0),s.step===3?(l(),u(E,{key:2},[p(d,{tag:"a",href:n.feedbackUrl,size:"small",type:"blue",target:"_blank",rel:"noopener noreferrer",onClick:e[4]||(e[4]=f=>n.processDismissNotification(!1))},{default:b(()=>[N(h(s.strings.giveFeedback),1)]),_:1},8,["href"]),p(d,{size:"small",type:"gray",onClick:e[5]||(e[5]=T(f=>n.processDismissNotification(!1),["stop","prevent"]))},{default:b(()=>[N(h(s.strings.noThanks),1)]),_:1})],64)):_("",!0),o.notification.dismissed?_("",!0):(l(),u("a",{key:3,class:"dismiss",href:"#",onClick:e[6]||(e[6]=T(f=>n.processDismissNotification(!1),["stop","prevent"]))},h(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const rr=$(Qn,[["render",nr]]),ar={setup(){return{notificationsStore:K()}},emits:["dismissed-notification"],components:{BaseButton:dt,SvgCircleCheck:Tt,TransitionSlide:it},props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{dismiss:this.$t.__("Dismiss",this.$td),yesILoveIt:this.$t.__("Yes, I love it!",this.$td),notReally:this.$t.__("Not Really...",this.$td),okYouDeserveIt:this.$t.__("Ok, you deserve it",this.$td),nopeMaybeLater:this.$t.__("Nope, maybe later",this.$td),giveFeedback:this.$t.__("Give feedback",this.$td),noThanks:this.$t.__("No thanks",this.$td)}}},computed:{title(){return this.$t.sprintf(this.$t.__("Are you enjoying %1$s?",this.$td),"BLC")},content(){return this.$t.sprintf(this.$t.__("Hey, we noticed you have been using %1$s for some time - thats awesome! Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?",this.$td),"<strong>Broken Link Checker</strong>")}},methods:{processDismissNotification(t=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(t?"-delay":"")]),this.$emit("dismissed-notification")}}},cr={class:"icon"},lr={class:"body"},dr={class:"title"},ur=["innerHTML"],fr={class:"actions"};function hr(t,e,o,i,s,n){const c=m("svg-circle-check"),d=m("base-button"),a=m("transition-slide");return l(),k(a,{class:"aioseo-notification",active:s.active},{default:b(()=>[r("div",null,[r("div",cr,[p(c,{class:"success"})]),r("div",lr,[r("div",dr,[r("div",null,h(n.title),1)]),r("div",{class:"notification-content",innerHTML:n.content},null,8,ur),r("div",fr,[p(d,{tag:"a",href:"https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/?filter=5#new-post",size:"small",type:"blue",target:"_blank",rel:"noopener noreferrer",onClick:e[0]||(e[0]=f=>n.processDismissNotification(!1))},{default:b(()=>[N(h(s.strings.okYouDeserveIt),1)]),_:1}),p(d,{size:"small",type:"gray",onClick:e[1]||(e[1]=T(f=>n.processDismissNotification(!0),["stop","prevent"]))},{default:b(()=>[N(h(s.strings.nopeMaybeLater),1)]),_:1}),o.notification.dismissed?_("",!0):(l(),u("a",{key:0,class:"dismiss",href:"#",onClick:e[2]||(e[2]=T(f=>n.processDismissNotification(!1),["stop","prevent"]))},h(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const pr=$(ar,[["render",hr]]),mr={components:{SvgCircleClose:oe,TransitionSlide:it},props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{title:this.$t.sprintf(this.$t.__("%1$s Addons Not Configured Properly",this.$td),"BLC"),learnMore:this.$t.__("Learn More",this.$td),upgrade:this.$t.__("Upgrade",this.$td)}}},computed:{content(){let t="<ul>";return this.notification.addons.forEach(e=>{t+="<li><strong>BLC - "+e.name+"</strong></li>"}),t+="</ul>",this.notification.message+t}}},_r={class:"icon"},gr={class:"body"},vr={class:"title"},br=["innerHTML"],Cr={class:"actions"};function yr(t,e,o,i,s,n){const c=m("svg-circle-close"),d=m("base-button"),a=m("transition-slide");return l(),k(a,{class:"aioseo-notification",active:s.active},{default:b(()=>[r("div",null,[r("div",_r,[p(c,{class:"error"})]),r("div",gr,[r("div",vr,[r("div",null,h(s.strings.title),1)]),r("div",{class:"notification-content",innerHTML:n.content},null,8,br),r("div",Cr,[p(d,{size:"small",type:"green",tag:"a",href:t.$links.utmUrl("notification-unlicensed-addons"),target:"_blank"},{default:b(()=>[N(h(s.strings.upgrade),1)]),_:1},8,["href"])])])])]),_:1},8,["active"])}const $r=$(mr,[["render",yr]]),wr={emits:["toggle-dismissed","dismissed-notification"],components:{CoreNotification:Jn,NotificationsReview:rr,NotificationsReview2:pr,NotificationsUnlicensedAddons:$r},props:{dismissedCount:{type:Number,required:!0},notifications:{type:Array,required:!0}},data(){return{dannieDetectiveImg:Vn,strings:{greatScott:this.$t.__("Great Scott! Where'd they all go?",this.$td),noNewNotifications:this.$t.__("You have no new notifications.",this.$td),seeDismissed:this.$t.__("See Dismissed Notifications",this.$td)}}},methods:{getAssetUrl:Ze}},kr={class:"aioseo-notification-cards"},Sr={key:"no-notifications"},Lr={class:"no-notifications"},Nr=["src"],Tr={class:"great-scott"},Pr={class:"no-new-notifications"};function Mr(t,e,o,i,s,n){return l(),u("div",kr,[o.notifications.length?(l(!0),u(E,{key:0},z(o.notifications,c=>(l(),k(St(c.component?c.component:"core-notification"),{key:c.slug,notification:c,ref_for:!0,ref:"notification",onDismissedNotification:e[0]||(e[0]=d=>t.$emit("dismissed-notification"))},null,40,["notification"]))),128)):_("",!0),o.notifications.length?_("",!0):(l(),u("div",Sr,[O(t.$slots,"no-notifications",{},()=>[r("div",Lr,[r("img",{alt:"Dannie the Detective",src:n.getAssetUrl(s.dannieDetectiveImg)},null,8,Nr),r("div",Tr,h(s.strings.greatScott),1),r("div",Pr,h(s.strings.noNewNotifications),1),o.dismissedCount?(l(),u("a",{key:0,href:"#",class:"dismiss",onClick:e[1]||(e[1]=T(c=>t.$emit("toggle-dismissed"),["stop","prevent"]))},h(s.strings.seeDismissed),1)):_("",!0)])])]))])}const Br=$(wr,[["render",Mr]]),Dr={setup(){const t=K(),{strings:e}=Rn();return{notificationsStore:t,composableStrings:e}},components:{CoreNotificationCards:Br,SvgClose:ut},mixins:[Wn],data(){return{dismissed:!1,maxNotifications:Number.MAX_SAFE_INTEGER,currentPage:0,totalPages:1,strings:Xe(this.composableStrings,{dismissedNotifications:this.$t.__("Dismissed Notifications",this.$td),dismissAll:this.$t.__("Dismiss All",this.$td)})}},watch:{"notificationsStore.showNotifications"(t){t?(this.currentPage=0,this.setMaxNotifications(),this.addBodyClass()):this.removeBodyClass()},dismissed(){this.setMaxNotifications()},notifications(){this.setMaxNotifications()}},computed:{filteredNotifications(){return[...this.notifications].splice(this.currentPage===0?0:this.currentPage*this.maxNotifications,this.maxNotifications)},pages(){const t=[];for(let e=0;e<this.totalPages;e++)t.push({number:e+1});return t}},methods:{escapeListener(t){t.key==="Escape"&&this.notificationsStore.showNotifications&&this.notificationsStore.toggleNotifications()},addBodyClass(){document.body.classList.add("aioseo-show-notifications")},removeBodyClass(){document.body.classList.remove("aioseo-show-notifications")},documentClick(t){if(!this.notificationsStore.showNotifications)return;const e=t&&t.target?t.target:null,o=document.querySelector("#wp-admin-bar-aioseo-notifications");if(o&&(o===e||o.contains(e)))return;const i=document.querySelector("#toplevel_page_aioseo .wp-first-item"),s=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");if(i&&i.contains(s)&&(i===e||i.contains(e)))return;const n=this.$refs["aioseo-notifications"];n&&(n===e||n.contains(e))||this.notificationsStore.toggleNotifications()},notificationsLinkClick(t){t.preventDefault(),this.notificationsStore.toggleNotifications()},processDismissAllNotifications(){const t=[];this.notifications.forEach(e=>{t.push(e.slug)}),this.notificationsStore.dismissNotifications(t).then(()=>{this.setMaxNotifications()})},setMaxNotifications(){const t=this.currentPage;this.currentPage=0,this.totalPages=1,this.maxNotifications=Number.MAX_SAFE_INTEGER,this.$nextTick(async()=>{const e=[],o=document.querySelectorAll(".notification-menu .aioseo-notification");o&&o.forEach(s=>{let n=s.offsetHeight;const c=window.getComputedStyle?getComputedStyle(s,null):s.currentStyle,d=parseInt(c.marginTop)||0,a=parseInt(c.marginBottom)||0;n+=d+a,e.push(n)});const i=document.querySelector(".notification-menu .aioseo-notification-cards");if(i){let s=0,n=0;for(let c=0;c<e.length&&(n+=e[c],!(n>i.offsetHeight));c++)s++;this.maxNotifications=s||1,this.totalPages=Math.ceil(e.length/s)}this.currentPage=t>this.totalPages-1?this.totalPages-1:t})}},mounted(){document.addEventListener("keydown",this.escapeListener),document.addEventListener("mousedown",this.documentClick);const t=document.querySelector("#wp-admin-bar-aioseo-notifications .ab-item");t&&t.addEventListener("mousedown",this.notificationsLinkClick);const e=document.querySelector("#toplevel_page_aioseo .wp-first-item"),o=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");e&&o&&e.addEventListener("mousedown",this.notificationsLinkClick)}},Ar={class:"aioseo-notifications",ref:"aioseo-notifications"},xr={key:0,class:"notification-menu"},Hr={class:"notification-header"},Er={class:"new-notifications"},Or={class:"dismissed-notifications"},Ir={class:"notification-footer"},zr={class:"pagination"},Rr=["onClick"],Wr={key:0,class:"dismiss-all"};function Vr(t,e,o,i,s,n){const c=m("svg-close"),d=m("core-notification-cards");return l(),u("div",Ar,[p(q,{name:"notifications-slide"},{default:b(()=>[i.notificationsStore.showNotifications?(l(),u("div",xr,[r("div",Hr,[r("span",Er,"("+h(t.notificationsCount)+") "+h(t.notificationTitle),1),r("div",Or,[!s.dismissed&&i.notificationsStore.dismissedNotificationsCount?(l(),u("a",{key:0,href:"#",onClick:e[0]||(e[0]=T(a=>s.dismissed=!0,["stop","prevent"]))},h(s.strings.dismissedNotifications),1)):_("",!0),s.dismissed&&i.notificationsStore.dismissedNotificationsCount?(l(),u("a",{key:1,href:"#",onClick:e[1]||(e[1]=T(a=>s.dismissed=!1,["stop","prevent"]))},h(s.strings.activeNotifications),1)):_("",!0)]),r("div",{onClick:e[2]||(e[2]=T((...a)=>i.notificationsStore.toggleNotifications&&i.notificationsStore.toggleNotifications(...a),["stop"]))},[p(c)])]),p(d,{class:"notification-cards",notifications:n.filteredNotifications,dismissedCount:i.notificationsStore.dismissedNotificationsCount,onToggleDismissed:e[3]||(e[3]=a=>s.dismissed=!s.dismissed)},null,8,["notifications","dismissedCount"]),r("div",Ir,[r("div",zr,[s.totalPages>1?(l(!0),u(E,{key:0},z(n.pages,(a,f)=>(l(),u("div",{class:H(["page-number",{active:a.number===1+s.currentPage}]),key:f,onClick:T(v=>s.currentPage=a.number-1,["stop"])},h(a.number),11,Rr))),128)):_("",!0)]),s.dismissed?_("",!0):(l(),u("div",Wr,[t.notifications.length?(l(),u("a",{key:0,href:"#",class:"dismiss",onClick:e[4]||(e[4]=T((...a)=>n.processDismissAllNotifications&&n.processDismissAllNotifications(...a),["stop","prevent"]))},h(s.strings.dismissAll),1)):_("",!0)]))])])):_("",!0)]),_:1}),p(q,{name:"notifications-fade"},{default:b(()=>[i.notificationsStore.showNotifications?(l(),u("div",{key:0,onClick:e[5]||(e[5]=(...a)=>i.notificationsStore.toggleNotifications&&i.notificationsStore.toggleNotifications(...a)),class:"overlay"})):_("",!0)]),_:1})],512)}const Ur=$(Dr,[["render",Vr]]),Fr="aioseo-broken-link-checker",jr={setup(){return{allowed:to,notificationsStore:K(),rootStore:st()}},components:{BaseButton:dt,CoreHeader:Vo,CoreHelp:si,CoreMainTabs:zn,CoreNotifications:Ur,GridContainer:ae},mixins:[ie],props:{showTabs:{type:Boolean,default(){return!0}},showSaveButton:{type:Boolean,default(){return!0}},excludeTabs:{type:Array,default(){return[]}}},data(){return{tabsKey:0,strings:{saveChanges:Z("Save Changes",Fr)}}},watch:{excludeTabs(){this.tabsKey+=1}},computed:{tabs(){return this.$router.options.routes.filter(t=>t.name&&t.meta&&t.meta.name).filter(t=>this.allowed(t.meta.access)).filter(t=>!this.excludeTabs.includes(t.name)).map(t=>({slug:t.name,name:t.meta.name,url:{name:t.name},access:t.meta.access,pro:!!t.meta.pro}))},shouldShowSaveButton(){var t;if((t=this.$route)!=null&&t.name){const e=this.$router.options.routes.find(o=>o.name===this.$route.name);if(e&&e.meta&&e.meta.hideSaveButton)return!1}return this.showSaveButton}},mounted(){Je().notifications&&(this.notificationsStore.showNotifications||(this.notificationsStore.showNotifications=!this.notificationsStore.showNotifications),setTimeout(()=>{Qe("notifications")},500))}},qr={class:"aioseo-main"},Yr={key:1,class:"save-changes"};function Zr(t,e,o,i,s,n){const c=m("core-notifications"),d=m("core-header"),a=m("core-main-tabs"),f=m("base-button"),v=m("grid-container");return l(),u("div",null,[p(c),r("div",qr,[p(d),p(v,null,{default:b(()=>[o.showTabs?(l(),k(a,{key:s.tabsKey,tabs:n.tabs,showSaveButton:n.shouldShowSaveButton},null,8,["tabs","showSaveButton"])):_("",!0),p(q,{name:"route-fade",mode:"out-in"},{default:b(()=>[O(t.$slots,"default")]),_:3}),n.shouldShowSaveButton?(l(),u("div",Yr,[p(f,{type:"blue",size:"medium",loading:i.rootStore.loading,onClick:t.processSaveChanges},{default:b(()=>[N(h(s.strings.saveChanges),1)]),_:1},8,["loading","onClick"])])):_("",!0)]),_:3})])])}const aa=$(jr,[["render",Zr]]);export{aa as C};