import{f as V,u as z,R,e as J,i as w,a as G,o as X}from"./links.Byq_3x2e.js";import{l as Q}from"./license.Cml-S8vw.js";import{a as Z}from"./allowed.DT5C8zBi.js";/* empty css */import{g as tt,r as et}from"./params.B3T1WKlC.js";import{a as it}from"./Ellipse.CMQFf36o.js";import{S as j,d as st,B as F,c as q,e as Y,C as ot}from"./Caret.Ke5gylGO.js";import{b as nt,C as rt,G as at}from"./Header.D3SHoKY-.js";import{C as ct,a as lt}from"./ScrollAndHighlight.Bq2wseLx.js";import{S as dt}from"./Logo.bX-u9KVJ.js";import{_ as k}from"./_plugin-vue_export-helper.BN1snXvA.js";import{o as n,c as l,a as i,v as u,k as g,b as f,B as d,E as v,F as C,J as L,t as a,G as T,l as _,C as b,q as x,m as E,T as O}from"./runtime-dom.esm-bundler.tPRhSV4q.js";import{S as ut}from"./Support.DcbjlfoT.js";import{C as ft}from"./Tabs.BKGFcDsj.js";import{_ as H}from"./default-i18n.DXRQgkn2.js";import{h as ht}from"./helpers.CXsRrhc8.js";import{U as mt}from"./Url.Cq-E_nhh.js";import{D as _t}from"./Date.B1K6W9Mx.js";import{S as pt}from"./Exclamation.DGJubTNT.js";import{S as gt}from"./Gear.DwDaVskn.js";import{T as B}from"./Slide.fjAuzpC8.js";const U="all-in-one-seo-pack",vt=()=>({strings:{notifications:H("Notifications",U),newNotifications:H("New Notifications",U),activeNotifications:H("Active Notifications",U)}}),yt={},bt={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-description"},kt=i("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),St=i("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),$t=[kt,St];function Ct(t,e){return n(),l("svg",bt,$t)}const Nt=k(yt,[["render",Ct]]),wt={},Dt={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-folder-open"},Lt=i("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),Tt=i("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),Pt=[Lt,Tt];function At(t,e){return n(),l("svg",Dt,Pt)}const Bt=k(wt,[["render",At]]),It={setup(){return{licenseStore:V(),rootStore:z(),helpPanelStore:R(),settingsStore:J()}},components:{CoreApiBar:ct,CoreLicenseKeyBar:lt,CoreUpgradeBar:nt,SvgAioseoLogo:dt,SvgClose:j,SvgDescription:Nt,SvgFolderOpen:Bt,SvgSupport:ut},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),"AIOSEO"),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){st(()=>{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)}}},Mt={id:"aioseo-help-modal",class:"aioseo-help"},Ht={class:"aioseo-help-header"},Ut={class:"logo"},Et=["href"],Ot=["title"],zt={class:"help-content"},qt={id:"aioseo-help-search"},Vt={id:"aioseo-help-result"},Rt={class:"aioseo-help-docs"},Gt={class:"icon"},jt=["href"],Ft={id:"aioseo-help-categories"},Yt={class:"aioseo-help-categories-toggle"},xt={class:"folder-open"},Kt={class:"title"},Wt=i("span",{class:"dashicons dashicons-arrow-right-alt2"},null,-1),Jt={class:"aioseo-help-docs"},Xt={class:"icon"},Qt=["href"],Zt={class:"aioseo-help-additional-docs"},te={class:"icon"},ee=["href"],ie={id:"aioseo-help-footer"},se={class:"aioseo-help-footer-block"},oe=["href"],ne={class:"aioseo-help-footer-block"},re=["href"];function ae(t,e,r,c,s,o){const m=u("core-upgrade-bar"),p=u("core-license-key-bar"),h=u("core-api-bar"),y=u("svg-aioseo-logo"),P=u("svg-close"),I=u("base-input"),D=u("svg-description"),K=u("svg-folder-open"),A=u("base-button"),W=u("svg-support");return n(),l("div",Mt,[!t.$isPro&&c.settingsStore.settings.showUpgradeBar&&c.rootStore.pong?(n(),g(m,{key:0})):f("",!0),t.$isPro&&c.licenseStore.isUnlicensed&&c.rootStore.pong?(n(),g(p,{key:1})):f("",!0),c.rootStore.pong?f("",!0):(n(),g(h,{key:2})),i("div",Ht,[i("div",Ut,[c.licenseStore.isUnlicensed?(n(),l("a",{key:0,href:t.$links.utmUrl("header-logo"),target:"_blank"},[d(y,{id:"aioseo-help-logo"})],8,Et)):f("",!0),c.licenseStore.isUnlicensed?f("",!0):(n(),g(y,{key:1,id:"aioseo-help-logo"}))]),i("div",{id:"aioseo-help-close",title:s.strings.close,onClick:e[0]||(e[0]=v((...S)=>o.toggleModal&&o.toggleModal(...S),["stop"]))},[d(P)],8,Ot)]),i("div",zt,[i("div",qt,[d(I,{type:"text",size:"medium",placeholder:s.strings.search,"onUpdate:modelValue":e[1]||(e[1]=S=>o.inputSearch(S))},null,8,["placeholder"])]),i("div",Vt,[i("ul",Rt,[(n(!0),l(C,null,L(o.filteredDocs,(S,N)=>(n(),l("li",{key:N},[i("span",Gt,[d(D)]),i("a",{href:t.$links.utmUrl("help-panel-doc","",S.url),rel:"noopener noreferrer",target:"_blank"},a(S.title),9,jt)]))),128))])]),i("div",Ft,[i("ul",Yt,[(n(!0),l(C,null,L(c.helpPanelStore.categories,(S,N)=>(n(),l("li",{key:N,class:T(["aioseo-help-category",{opened:N==="getting-started"}])},[i("header",{onClick:e[2]||(e[2]=v($=>o.toggleSection($),["stop"]))},[i("span",xt,[d(K)]),i("span",Kt,a(S),1),Wt]),i("ul",Jt,[(n(!0),l(C,null,L(o.getCategoryDocs(N).slice(0,5),($,M)=>(n(),l("li",{key:M},[i("span",Xt,[d(D)]),i("a",{href:t.$links.utmUrl("help-panel-doc","",$.url),rel:"noopener noreferrer",target:"_blank"},a($.title),9,Qt)]))),128)),i("div",Zt,[(n(!0),l(C,null,L(o.getCategoryDocs(N).slice(5,o.getCategoryDocs(N).length),($,M)=>(n(),l("li",{key:M},[i("span",te,[d(D)]),i("a",{href:t.$links.utmUrl("help-panel-doc","",$.url),rel:"noopener noreferrer",target:"_blank"},a($.title),9,ee)]))),128))]),o.getCategoryDocs(N).length>=5?(n(),g(A,{key:0,class:"aioseo-help-docs-viewall gray medium",onClick:e[3]||(e[3]=v($=>o.toggleDocs($),["stop"]))},{default:_(()=>[b(a(s.strings.viewAll)+" "+a(S)+" "+a(s.strings.docs),1)]),_:2},1024)):f("",!0)])],2))),128))])]),i("div",ie,[i("div",se,[i("a",{href:t.$links.utmUrl("help-panel-all-docs","","https://aioseo.com/docs/"),rel:"noopener noreferrer",target:"_blank"},[d(D),i("h3",null,a(s.strings.viewDocumentation),1),i("p",null,a(s.strings.browseDocumentation),1),d(A,{class:"aioseo-help-docs-viewall gray small"},{default:_(()=>[b(a(s.strings.viewAllDocumentation),1)]),_:1})],8,oe)]),i("div",ne,[i("a",{href:!t.$isPro||!c.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"},[d(W),i("h3",null,a(s.strings.getSupport),1),i("p",null,a(s.strings.submitTicket),1),t.$isPro&&c.licenseStore.license.isActive?(n(),g(A,{key:0,class:"aioseo-help-docs-support blue small"},{default:_(()=>[b(a(s.strings.submitSupportTicket),1)]),_:1})):f("",!0),!t.$isPro||!c.licenseStore.license.isActive?(n(),g(A,{key:1,class:"aioseo-help-docs-support green small"},{default:_(()=>[b(a(s.strings.upgradeToPro),1)]),_:1})):f("",!0)],8,re)])])])])}const ce=k(It,[["render",ae]]),le={computed:{notificationsCount(){const t=w();return this.dismissed?t.dismissedNotificationsCount:t.activeNotificationsCount},notifications(){const t=w();return this.dismissed?t.dismissedNotifications:t.activeNotifications},notificationTitle(){return this.dismissed?this.strings.notifications:this.strings.newNotifications}}},de=""+window.__aioseoDynamicImportPreload__("images/dannie-detective.C0gjJQEP.png"),ue={setup(){return{notificationsStore:w()}},emits:["dismissed-notification"],components:{BaseButton:F,SvgCircleCheck:q,SvgCircleClose:Y,SvgCircleExclamation:pt,SvgGear:gt,TransitionSlide:B},mixins:[mt,_t],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"}}}},fe={class:"icon"},he={class:"body"},me={class:"title"},_e={class:"date"},pe=["innerHTML"],ge={class:"actions"};function ve(t,e,r,c,s,o){const m=u("base-button"),p=u("transition-slide");return n(),g(p,{class:T(["aioseo-notification",[`aioseo-notification-${r.notification.notification_name}`]]),active:s.active},{default:_(()=>[i("div",null,[i("div",fe,[(n(),g(x(o.getIcon),{class:T(r.notification.type)},null,8,["class"]))]),i("div",he,[i("div",me,[i("div",null,a(r.notification.title),1),i("div",_e,a(o.getDate),1)]),i("div",{class:"notification-content",innerHTML:r.notification.content},null,8,pe),i("div",ge,[r.notification.button1_label&&r.notification.button1_action?(n(),g(m,{key:0,size:"small",type:o.getButtonType(1),class:"aioseo-button1",tag:t.getTagType(r.notification.button1_action),href:t.getHref(r.notification.button1_action),target:t.getTarget(r.notification.button1_action),onClick:e[0]||(e[0]=h=>t.processButtonClick(r.notification.button1_action,1)),loading:t.button1Loading},{default:_(()=>[b(a(r.notification.button1_label),1)]),_:1},8,["type","tag","href","target","loading"])):f("",!0),r.notification.button2_label&&r.notification.button2_action?(n(),g(m,{key:1,size:"small",type:o.getButtonType(2),class:"aioseo-button2",tag:t.getTagType(r.notification.button2_action),href:t.getHref(r.notification.button2_action),target:t.getTarget(r.notification.button2_action),onClick:e[1]||(e[1]=h=>t.processButtonClick(r.notification.button2_action,2)),loading:t.button2Loading},{default:_(()=>[b(a(r.notification.button2_label),1)]),_:1},8,["type","tag","href","target","loading"])):f("",!0),r.notification.dismissed?f("",!0):(n(),l("a",{key:2,href:"#",class:"dismiss",onClick:e[2]||(e[2]=v((...h)=>o.processDismissNotification&&o.processDismissNotification(...h),["stop","prevent"]))},a(s.strings.dismiss),1))])])])]),_:1},8,["class","active"])}const ye=k(ue,[["render",ve]]),be={setup(){return{licenseStore:V(),notificationsStore:w(),optionsStore:G(),rootStore:z()}},emits:["dismissed-notification"],components:{SvgCircleCheck:q,TransitionSlide:B},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),"AIOSEO")}},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),"All in One SEO");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")}}},ke={class:"icon"},Se={class:"body"},$e={class:"title"},Ce=["innerHTML"],Ne={class:"actions"};function we(t,e,r,c,s,o){const m=u("svg-circle-check"),p=u("base-button"),h=u("transition-slide");return n(),g(h,{class:"aioseo-notification",active:s.active},{default:_(()=>[i("div",null,[i("div",ke,[d(m,{class:"success"})]),i("div",Se,[i("div",$e,[i("div",null,a(o.title),1)]),i("div",{class:"notification-content",innerHTML:o.content},null,8,Ce),i("div",Ne,[s.step===1?(n(),l(C,{key:0},[d(p,{size:"small",type:"blue",onClick:e[0]||(e[0]=v(y=>s.step=2,["stop"]))},{default:_(()=>[b(a(s.strings.yesILoveIt),1)]),_:1}),d(p,{size:"small",type:"gray",onClick:e[1]||(e[1]=v(y=>s.step=3,["stop"]))},{default:_(()=>[b(a(s.strings.notReally),1)]),_:1})],64)):f("",!0),s.step===2?(n(),l(C,{key:1},[d(p,{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]=y=>o.processDismissNotification(!1))},{default:_(()=>[b(a(s.strings.okYouDeserveIt),1)]),_:1}),d(p,{size:"small",type:"gray",onClick:e[3]||(e[3]=v(y=>o.processDismissNotification(!0),["stop","prevent"]))},{default:_(()=>[b(a(s.strings.nopeMaybeLater),1)]),_:1})],64)):f("",!0),s.step===3?(n(),l(C,{key:2},[d(p,{tag:"a",href:o.feedbackUrl,size:"small",type:"blue",target:"_blank",rel:"noopener noreferrer",onClick:e[4]||(e[4]=y=>o.processDismissNotification(!1))},{default:_(()=>[b(a(s.strings.giveFeedback),1)]),_:1},8,["href"]),d(p,{size:"small",type:"gray",onClick:e[5]||(e[5]=v(y=>o.processDismissNotification(!1),["stop","prevent"]))},{default:_(()=>[b(a(s.strings.noThanks),1)]),_:1})],64)):f("",!0),r.notification.dismissed?f("",!0):(n(),l("a",{key:3,class:"dismiss",href:"#",onClick:e[6]||(e[6]=v(y=>o.processDismissNotification(!1),["stop","prevent"]))},a(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const De=k(be,[["render",we]]),Le={setup(){return{notificationsStore:w()}},emits:["dismissed-notification"],components:{BaseButton:F,SvgCircleCheck:q,TransitionSlide:B},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),"AIOSEO")},content(){return this.$t.sprintf(this.$t.__("Hey, we noticed you have been using %1$s for some time - that’s 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),"All in One SEO")}},methods:{processDismissNotification(t=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(t?"-delay":"")]),this.$emit("dismissed-notification")}}},Te={class:"icon"},Pe={class:"body"},Ae={class:"title"},Be=["innerHTML"],Ie={class:"actions"};function Me(t,e,r,c,s,o){const m=u("svg-circle-check"),p=u("base-button"),h=u("transition-slide");return n(),g(h,{class:"aioseo-notification",active:s.active},{default:_(()=>[i("div",null,[i("div",Te,[d(m,{class:"success"})]),i("div",Pe,[i("div",Ae,[i("div",null,a(o.title),1)]),i("div",{class:"notification-content",innerHTML:o.content},null,8,Be),i("div",Ie,[d(p,{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]=y=>o.processDismissNotification(!1))},{default:_(()=>[b(a(s.strings.okYouDeserveIt),1)]),_:1}),d(p,{size:"small",type:"gray",onClick:e[1]||(e[1]=v(y=>o.processDismissNotification(!0),["stop","prevent"]))},{default:_(()=>[b(a(s.strings.nopeMaybeLater),1)]),_:1}),r.notification.dismissed?f("",!0):(n(),l("a",{key:0,class:"dismiss",href:"#",onClick:e[2]||(e[2]=v(y=>o.processDismissNotification(!1),["stop","prevent"]))},a(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const He=k(Le,[["render",Me]]),Ue={components:{SvgCircleClose:Y,TransitionSlide:B},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),"AIOSEO"),learnMore:this.$t.__("Learn More",this.$td),upgrade:this.$t.__("Upgrade",this.$td)}}},computed:{content(){let t="