uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Index.4f41faeb.js
/
/
import{u as rt}from"./vue-router.ad00dfec.js";import{j as Z,u as E,M as $,m as ct,c as q,g as M,s as lt,a as tt,q as dt}from"./index.681f720c.js";import{l as ut}from"./license.85061030.js";import{a as ft}from"./allowed.980a2e7b.js";/* empty css */import{g as mt,r as gt}from"./params.af7ed354.js";import{C as _t,u as pt}from"./Tabs.6e7f902f.js";import{b as et,d as ht,_ as ot,a as W,S as it,C as vt}from"./Caret.202f7c21.js";import{C as yt,_ as bt,G as St}from"./Header.3435b07a.js";import{a as kt,C as Ct}from"./LicenseKeyBar.fef34a92.js";import{S as Nt}from"./Logo.a44a17ba.js";import{_ as T}from"./_plugin-vue_export-helper.eefbdd86.js";import{o as r,c as d,a as i,x as m,l as y,b as f,H as u,J as b,G as L,N as I,t as l,K as H,m as _,y as S,g as st,f as z,v as nt,u as O,q as K,T as Y}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{S as wt}from"./Support.9fe5eb28.js";import"./translations.d159963e.js";import{_ as c,s as A}from"./default-i18n.20001971.js";import{j as Dt}from"./helpers.e8ba8937.js";import{b as Lt}from"./date.b84c8300.js";import{u as Tt}from"./Url.b0b6e9e3.js";import{S as Pt}from"./Exclamation.991934cc.js";import{S as At}from"./Gear.de600e87.js";import{T as V}from"./Slide.a525748d.js";const Bt={},It={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-description"},Mt=i("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),Ht=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),xt=[Mt,Ht];function Ut(e,t){return r(),d("svg",It,xt)}const Ot=T(Bt,[["render",Ut]]),zt={},Et={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-folder-open"},qt=i("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),Vt=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),Rt=[qt,Vt];function jt(e,t){return r(),d("svg",Et,Rt)}const Gt=T(zt,[["render",jt]]),C="all-in-one-seo-pack",Ft={setup(){return{licenseStore:Z(),rootStore:E(),helpPanelStore:$(),settingsStore:ct(),links:q}},components:{CoreApiBar:kt,CoreLicenseKeyBar:Ct,CoreUpgradeBar:yt,SvgAioseoLogo:Nt,SvgClose:et,SvgDescription:Ot,SvgFolderOpen:Gt,SvgSupport:wt},data(){return{searchItem:null,strings:{close:c("Close",C),search:c("Search",C),viewAll:c("View All",C),docs:c("Docs",C),viewDocumentation:c("View Documentation",C),browseDocumentation:A(c("Browse documentation, reference material, and tutorials for %1$s.",C),"AIOSEO"),viewAllDocumentation:c("View All Documentation",C),getSupport:c("Get Support",C),submitTicket:c("Submit a ticket and our world class support team will be in touch soon.",C),submitSupportTicket:c("Submit a Support Ticket",C),upgradeToPro:c("Upgrade to Pro",C)}}},computed:{filteredDocs(){return this.searchItem!==""?Object.values(this.helpPanelStore.docs).filter(e=>this.searchItem!==null?e.title.toLowerCase().includes(this.searchItem.toLowerCase()):null):null}},methods:{inputSearch:function(e){ht(()=>{this.searchItem=e},1e3)},toggleSection:function(e){e.target.parentNode.parentNode.classList.toggle("opened")},toggleDocs:function(e){e.target.previousSibling.classList.toggle("opened"),e.target.style.display="none"},toggleModal(){document.getElementById("aioseo-help-modal").classList.toggle("visible"),document.body.classList.toggle("modal-open")},getCategoryDocs(e){return Object.values(this.helpPanelStore.docs).filter(t=>t.categories.flat().includes(e)?t:null)}}},Kt={id:"aioseo-help-modal",class:"aioseo-help"},Yt={class:"aioseo-help-header"},Wt={class:"logo"},Xt=["href"],Jt=["title"],Qt={class:"help-content"},Zt={id:"aioseo-help-search"},$t={id:"aioseo-help-result"},te={class:"aioseo-help-docs"},ee={class:"icon"},oe=["href"],ie={id:"aioseo-help-categories"},se={class:"aioseo-help-categories-toggle"},ne={class:"folder-open"},ae={class:"title"},re=i("span",{class:"dashicons dashicons-arrow-right-alt2"},null,-1),ce={class:"aioseo-help-docs"},le={class:"icon"},de=["href"],ue={class:"aioseo-help-additional-docs"},fe={class:"icon"},me=["href"],ge={id:"aioseo-help-footer"},_e={class:"aioseo-help-footer-block"},pe=["href"],he={class:"aioseo-help-footer-block"},ve=["href"];function ye(e,t,a,o,s,n){const h=m("core-upgrade-bar"),p=m("core-license-key-bar"),g=m("core-api-bar"),v=m("svg-aioseo-logo"),x=m("svg-close"),R=m("base-input"),B=m("svg-description"),X=m("svg-folder-open"),U=m("base-button"),at=m("svg-support");return r(),d("div",Kt,[!o.rootStore.isPro&&o.settingsStore.settings.showUpgradeBar&&o.rootStore.pong?(r(),y(h,{key:0})):f("",!0),o.rootStore.isPro&&o.licenseStore.isUnlicensed&&o.rootStore.pong?(r(),y(p,{key:1})):f("",!0),o.rootStore.pong?f("",!0):(r(),y(g,{key:2})),i("div",Yt,[i("div",Wt,[o.licenseStore.isUnlicensed?(r(),d("a",{key:0,href:o.links.utmUrl("header-logo"),target:"_blank"},[u(v,{id:"aioseo-help-logo"})],8,Xt)):f("",!0),o.licenseStore.isUnlicensed?f("",!0):(r(),y(v,{key:1,id:"aioseo-help-logo"}))]),i("div",{id:"aioseo-help-close",title:s.strings.close,onClick:t[0]||(t[0]=b((...N)=>n.toggleModal&&n.toggleModal(...N),["stop"]))},[u(x)],8,Jt)]),i("div",Qt,[i("div",Zt,[u(R,{type:"text",size:"medium",placeholder:s.strings.search,"onUpdate:modelValue":t[1]||(t[1]=N=>n.inputSearch(N))},null,8,["placeholder"])]),i("div",$t,[i("ul",te,[(r(!0),d(L,null,I(n.filteredDocs,(N,P)=>(r(),d("li",{key:P},[i("span",ee,[u(B)]),i("a",{href:o.links.utmUrl("help-panel-doc","",N.url),rel:"noopener noreferrer",target:"_blank"},l(N.title),9,oe)]))),128))])]),i("div",ie,[i("ul",se,[(r(!0),d(L,null,I(o.helpPanelStore.categories,(N,P)=>(r(),d("li",{key:P,class:H(["aioseo-help-category",{opened:P==="getting-started"}])},[i("header",{onClick:t[2]||(t[2]=b(w=>n.toggleSection(w),["stop"]))},[i("span",ne,[u(X)]),i("span",ae,l(N),1),re]),i("ul",ce,[(r(!0),d(L,null,I(n.getCategoryDocs(P).slice(0,5),(w,j)=>(r(),d("li",{key:j},[i("span",le,[u(B)]),i("a",{href:o.links.utmUrl("help-panel-doc","",w.url),rel:"noopener noreferrer",target:"_blank"},l(w.title),9,de)]))),128)),i("div",ue,[(r(!0),d(L,null,I(n.getCategoryDocs(P).slice(5,n.getCategoryDocs(P).length),(w,j)=>(r(),d("li",{key:j},[i("span",fe,[u(B)]),i("a",{href:o.links.utmUrl("help-panel-doc","",w.url),rel:"noopener noreferrer",target:"_blank"},l(w.title),9,me)]))),128))]),n.getCategoryDocs(P).length>=5?(r(),y(U,{key:0,class:"aioseo-help-docs-viewall gray medium",onClick:t[3]||(t[3]=b(w=>n.toggleDocs(w),["stop"]))},{default:_(()=>[S(l(s.strings.viewAll)+" "+l(N)+" "+l(s.strings.docs),1)]),_:2},1024)):f("",!0)])],2))),128))])]),i("div",ge,[i("div",_e,[i("a",{href:o.links.utmUrl("help-panel-all-docs","","https://aioseo.com/docs/"),rel:"noopener noreferrer",target:"_blank"},[u(B),i("h3",null,l(s.strings.viewDocumentation),1),i("p",null,l(s.strings.browseDocumentation),1),u(U,{class:"aioseo-help-docs-viewall gray small"},{default:_(()=>[S(l(s.strings.viewAllDocumentation),1)]),_:1})],8,pe)]),i("div",he,[i("a",{href:!o.rootStore.isPro||!o.licenseStore.license.isActive?o.links.getUpsellUrl("help-panel","get-support","liteUpgrade"):o.links.utmUrl("help-panel-support","","https://aioseo.com/account/support/"),rel:"noopener noreferrer",target:"_blank"},[u(at),i("h3",null,l(s.strings.getSupport),1),i("p",null,l(s.strings.submitTicket),1),o.rootStore.isPro&&o.licenseStore.license.isActive?(r(),y(U,{key:0,class:"aioseo-help-docs-support blue small"},{default:_(()=>[S(l(s.strings.submitSupportTicket),1)]),_:1})):f("",!0),!o.rootStore.isPro||!o.licenseStore.license.isActive?(r(),y(U,{key:1,class:"aioseo-help-docs-support green small"},{default:_(()=>[S(l(s.strings.upgradeToPro),1)]),_:1})):f("",!0)],8,ve)])])])])}const be=T(Ft,[["render",ye]]),G="all-in-one-seo-pack",Se=()=>{const e={notifications:c("Notifications",G),newNotifications:c("New Notifications",G),activeNotifications:c("Active Notifications",G)},t=st(!1),a=M(),o=z(()=>t.value?a.dismissedNotificationsCount:a.activeNotificationsCount),s=z(()=>t.value?a.dismissedNotifications:a.activeNotifications),n=z(()=>t.value?e.notifications:e.newNotifications);return{dismissed:t,notificationTitle:n,notifications:s,notificationsCount:o,strings:e}},ke=""+window.__aioseoDynamicImportPreload__("images/dannie-detective.b4823250.png"),Ce="all-in-one-seo-pack",Ne={emits:["dismissed-notification"],setup(){const{button1Loading:e,button2Loading:t,getHref:a,getTagType:o,getTarget:s,processButtonClick:n}=Tt();return{button1Loading:e,button2Loading:t,getHref:a,getTagType:o,getTarget:s,notificationsStore:M(),processButtonClick:n,sanitizeString:lt}},components:{BaseButton:ot,SvgCircleCheck:W,SvgCircleClose:it,SvgCircleExclamation:Pt,SvgGear:At,TransitionSlide:V},props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{dismiss:c("Dismiss",Ce)}}},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 Lt(this.notification.start)}},methods:{processDismissNotification(){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug]),this.$emit("dismissed-notification")},getButtonType(e){switch(this.notification.notification_name){case"search-console-site-not-connected":case"search-console-site-not-verified":case"email-reports-enable-reminder":return e===1?"blue":"gray";default:return"gray"}}}},we={class:"icon"},De={class:"body"},Le={class:"title"},Te={class:"date"},Pe=["innerHTML"],Ae={class:"actions"};function Be(e,t,a,o,s,n){const h=m("base-button"),p=m("transition-slide");return r(),y(p,{class:H(["aioseo-notification",[`aioseo-notification-${a.notification.notification_name}`]]),active:s.active},{default:_(()=>[i("div",null,[i("div",we,[(r(),y(nt(n.getIcon),{class:H(a.notification.type)},null,8,["class"]))]),i("div",De,[i("div",Le,[i("div",null,l(o.sanitizeString(a.notification.title)),1),i("div",Te,l(n.getDate),1)]),i("div",{class:"notification-content",innerHTML:a.notification.content},null,8,Pe),i("div",Ae,[a.notification.button1_label&&a.notification.button1_action?(r(),y(h,{key:0,size:"small",type:n.getButtonType(1),class:"aioseo-button1",tag:o.getTagType(a.notification.button1_action),href:o.getHref(a.notification.button1_action),target:o.getTarget(a.notification.button1_action),onClick:t[0]||(t[0]=g=>o.processButtonClick(a.notification.button1_action,1)),loading:o.button1Loading},{default:_(()=>[S(l(a.notification.button1_label),1)]),_:1},8,["type","tag","href","target","loading"])):f("",!0),a.notification.button2_label&&a.notification.button2_action?(r(),y(h,{key:1,size:"small",type:n.getButtonType(2),class:"aioseo-button2",tag:o.getTagType(a.notification.button2_action),href:o.getHref(a.notification.button2_action),target:o.getTarget(a.notification.button2_action),onClick:t[1]||(t[1]=g=>o.processButtonClick(a.notification.button2_action,2)),loading:o.button2Loading},{default:_(()=>[S(l(a.notification.button2_label),1)]),_:1},8,["type","tag","href","target","loading"])):f("",!0),a.notification.dismissed?f("",!0):(r(),d("a",{key:2,href:"#",class:"dismiss",onClick:t[2]||(t[2]=b((...g)=>n.processDismissNotification&&n.processDismissNotification(...g),["stop","prevent"]))},l(s.strings.dismiss),1))])])])]),_:1},8,["class","active"])}const Ie=T(Ne,[["render",Be]]),k="all-in-one-seo-pack",Me={emits:["dismissed-notification"],setup(){return{licenseStore:Z(),notificationsStore:M(),optionsStore:tt(),rootStore:E()}},components:{SvgCircleCheck:W,TransitionSlide:V},props:{notification:{type:Object,required:!0}},data(){return{step:1,active:!0,strings:{dismiss:c("Dismiss",k),yesILoveIt:c("Yes, I love it!",k),notReally:c("Not Really...",k),okYouDeserveIt:c("Ok, you deserve it",k),nopeMaybeLater:c("Nope, maybe later",k),giveFeedback:c("Give feedback",k),noThanks:c("No thanks",k)}}},computed:{title(){switch(this.step){case 2:return c("That's Awesome!",k);case 3:return c("Help us improve",k);default:return A(c("Are you enjoying %1$s?",k),"AIOSEO")}},content(){switch(this.step){case 2:return c("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?",k);case 3:return A(c("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?",k),"All in One SEO");default:return""}},feedbackUrl(){const e=this.optionsStore.options.general&&this.licenseStore.licenseKey?this.licenseStore.licenseKey:"",t=this.rootStore.isPro?"pro":"lite";return q.utmUrl("notification-review-notice",this.rootStore.aioseo.version,"https://aioseo.com/plugin-feedback/?wpf7528_24="+encodeURIComponent(this.rootStore.aioseo.urls.home)+"&wpf7528_26="+e+"&wpf7528_27="+t+"&wpf7528_28="+this.rootStore.aioseo.version)}},methods:{processDismissNotification(e=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(e?"-delay":"")]),this.$emit("dismissed-notification")}}},He={class:"icon"},xe={class:"body"},Ue={class:"title"},Oe=["innerHTML"],ze={class:"actions"};function Ee(e,t,a,o,s,n){const h=m("svg-circle-check"),p=m("base-button"),g=m("transition-slide");return r(),y(g,{class:"aioseo-notification",active:s.active},{default:_(()=>[i("div",null,[i("div",He,[u(h,{class:"success"})]),i("div",xe,[i("div",Ue,[i("div",null,l(n.title),1)]),i("div",{class:"notification-content",innerHTML:n.content},null,8,Oe),i("div",ze,[s.step===1?(r(),d(L,{key:0},[u(p,{size:"small",type:"blue",onClick:t[0]||(t[0]=b(v=>s.step=2,["stop"]))},{default:_(()=>[S(l(s.strings.yesILoveIt),1)]),_:1}),u(p,{size:"small",type:"gray",onClick:t[1]||(t[1]=b(v=>s.step=3,["stop"]))},{default:_(()=>[S(l(s.strings.notReally),1)]),_:1})],64)):f("",!0),s.step===2?(r(),d(L,{key:1},[u(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:t[2]||(t[2]=v=>n.processDismissNotification(!1))},{default:_(()=>[S(l(s.strings.okYouDeserveIt),1)]),_:1}),u(p,{size:"small",type:"gray",onClick:t[3]||(t[3]=b(v=>n.processDismissNotification(!0),["stop","prevent"]))},{default:_(()=>[S(l(s.strings.nopeMaybeLater),1)]),_:1})],64)):f("",!0),s.step===3?(r(),d(L,{key:2},[u(p,{tag:"a",href:n.feedbackUrl,size:"small",type:"blue",target:"_blank",rel:"noopener noreferrer",onClick:t[4]||(t[4]=v=>n.processDismissNotification(!1))},{default:_(()=>[S(l(s.strings.giveFeedback),1)]),_:1},8,["href"]),u(p,{size:"small",type:"gray",onClick:t[5]||(t[5]=b(v=>n.processDismissNotification(!1),["stop","prevent"]))},{default:_(()=>[S(l(s.strings.noThanks),1)]),_:1})],64)):f("",!0),a.notification.dismissed?f("",!0):(r(),d("a",{key:3,class:"dismiss",href:"#",onClick:t[6]||(t[6]=b(v=>n.processDismissNotification(!1),["stop","prevent"]))},l(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const qe=T(Me,[["render",Ee]]),D="all-in-one-seo-pack",Ve={emits:["dismissed-notification"],setup(){return{notificationsStore:M()}},components:{BaseButton:ot,SvgCircleCheck:W,TransitionSlide:V},props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{dismiss:c("Dismiss",D),yesILoveIt:c("Yes, I love it!",D),notReally:c("Not Really...",D),okYouDeserveIt:c("Ok, you deserve it",D),nopeMaybeLater:c("Nope, maybe later",D),giveFeedback:c("Give feedback",D),noThanks:c("No thanks",D)}}},computed:{title(){return A(c("Are you enjoying %1$s?",D),"AIOSEO")},content(){return A(c("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?",D),"<strong>All in One SEO</strong>")}},methods:{processDismissNotification(e=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(e?"-delay":"")]),this.$emit("dismissed-notification")}}},Re={class:"icon"},je={class:"body"},Ge={class:"title"},Fe=["innerHTML"],Ke={class:"actions"};function Ye(e,t,a,o,s,n){const h=m("svg-circle-check"),p=m("base-button"),g=m("transition-slide");return r(),y(g,{class:"aioseo-notification",active:s.active},{default:_(()=>[i("div",null,[i("div",Re,[u(h,{class:"success"})]),i("div",je,[i("div",Ge,[i("div",null,l(n.title),1)]),i("div",{class:"notification-content",innerHTML:n.content},null,8,Fe),i("div",Ke,[u(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:t[0]||(t[0]=v=>n.processDismissNotification(!1))},{default:_(()=>[S(l(s.strings.okYouDeserveIt),1)]),_:1}),u(p,{size:"small",type:"gray",onClick:t[1]||(t[1]=b(v=>n.processDismissNotification(!0),["stop","prevent"]))},{default:_(()=>[S(l(s.strings.nopeMaybeLater),1)]),_:1}),a.notification.dismissed?f("",!0):(r(),d("a",{key:0,class:"dismiss",href:"#",onClick:t[2]||(t[2]=b(v=>n.processDismissNotification(!1),["stop","prevent"]))},l(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const We=T(Ve,[["render",Ye]]),Xe={class:"icon"},Je={class:"body"},Qe={class:"title"},Ze=["innerHTML"],$e={class:"actions"},to={__name:"UnlicensedAddons",props:{notification:{type:Object,required:!0}},setup(e){const t="all-in-one-seo-pack",a=e,o=E(),s=st(!0),n={title:A(c("%1$s Addons Not Configured Properly",t),"AIOSEO"),learnMore:c("Learn More",t),upgrade:c("Upgrade",t)},h=z(()=>{let p="<ul>";return a.notification.addons.forEach(g=>{p+="<li><strong>AIOSEO - "+g.name+"</strong></li>"}),p+="</ul>",a.notification.message+p});return(p,g)=>{const v=m("base-button");return r(),y(O(V),{class:"aioseo-notification",active:s.value},{default:_(()=>[i("div",null,[i("div",Xe,[u(O(it),{class:"error"})]),i("div",Je,[i("div",Qe,[i("div",null,l(n.title),1)]),i("div",{class:"notification-content",innerHTML:h.value},null,8,Ze),i("div",$e,[u(v,{size:"small",type:"green",tag:"a",href:O(q).getUpsellUrl("notification-unlicensed-addons",null,O(o).isPro?"pricing":"liteUpgrade"),target:"_blank"},{default:_(()=>[S(l(n.upgrade),1)]),_:1},8,["href"])])])])]),_:1},8,["active"])}}},F="all-in-one-seo-pack",eo={emits:["toggle-dismissed","dismissed-notification"],components:{CoreNotification:Ie,NotificationsReview:qe,NotificationsReview2:We,NotificationsUnlicensedAddons:to},props:{dismissedCount:{type:Number,required:!0},notifications:{type:Array,required:!0}},data(){return{dannieDetectiveImg:ke,strings:{greatScott:c("Great Scott! Where'd they all go?",F),noNewNotifications:c("You have no new notifications.",F),seeDismissed:c("See Dismissed Notifications",F)}}},methods:{getAssetUrl:Dt}},oo={class:"aioseo-notification-cards"},io={key:"no-notifications"},so={class:"no-notifications"},no=["src"],ao={class:"great-scott"},ro={class:"no-new-notifications"};function co(e,t,a,o,s,n){return r(),d("div",oo,[a.notifications.length?(r(!0),d(L,{key:0},I(a.notifications,h=>(r(),y(nt(h.component?h.component:"core-notification"),{key:h.slug,notification:h,ref_for:!0,ref:"notification",onDismissedNotification:t[0]||(t[0]=p=>e.$emit("dismissed-notification"))},null,40,["notification"]))),128)):f("",!0),a.notifications.length?f("",!0):(r(),d("div",io,[K(e.$slots,"no-notifications",{},()=>[i("div",so,[i("img",{alt:"Dannie the Detective",src:n.getAssetUrl(s.dannieDetectiveImg)},null,8,no),i("div",ao,l(s.strings.greatScott),1),i("div",ro,l(s.strings.noNewNotifications),1),a.dismissedCount?(r(),d("a",{key:0,href:"#",class:"dismiss",onClick:t[1]||(t[1]=b(h=>e.$emit("toggle-dismissed"),["stop","prevent"]))},l(s.strings.seeDismissed),1)):f("",!0)])])]))])}const lo=T(eo,[["render",co]]),J="all-in-one-seo-pack",uo={setup(){const{dismissed:e,notificationTitle:t,notifications:a,notificationsCount:o,strings:s}=Se();return{composableStrings:s,dismissed:e,notificationsStore:M(),notificationTitle:t,notifications:a,notificationsCount:o}},components:{CoreNotificationCards:lo,SvgClose:et},data(){return{maxNotifications:Number.MAX_SAFE_INTEGER,currentPage:0,totalPages:1,strings:dt(this.composableStrings,{dismissedNotifications:c("Dismissed Notifications",J),dismissAll:c("Dismiss All",J)})}},watch:{"notificationsStore.showNotifications"(e){e?(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(){if(typeof this.totalPages!="number"||!isFinite(this.totalPages)||0>=this.totalPages)return 1;const e=[];for(let t=0;t<this.totalPages;t++)e.push({number:t+1});return e}},methods:{escapeListener(e){e.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(e){if(!this.notificationsStore.showNotifications)return;const t=e&&e.target?e.target:null,a=document.querySelector("#wp-admin-bar-aioseo-notifications");if(a&&(a===t||a.contains(t)))return;const o=document.querySelector("#toplevel_page_aioseo .wp-first-item"),s=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");if(o&&o.contains(s)&&(o===t||o.contains(t)))return;const n=this.$refs["aioseo-notifications"];n&&(n===t||n.contains(t))||this.notificationsStore.toggleNotifications()},notificationsLinkClick(e){e.preventDefault(),this.notificationsStore.toggleNotifications()},processDismissAllNotifications(){const e=[];this.notifications.forEach(t=>{e.push(t.slug)}),this.notificationsStore.dismissNotifications(e).then(()=>{this.setMaxNotifications()})},setMaxNotifications(){const e=this.currentPage;this.currentPage=0,this.totalPages=1,this.maxNotifications=Number.MAX_SAFE_INTEGER,this.$nextTick(async()=>{const a=Array.from(document.querySelectorAll(".notification-menu .aioseo-notification")).map(s=>{const n=window.getComputedStyle?getComputedStyle(s,null):s.currentStyle,h=parseInt(n.marginTop)||0,p=parseInt(n.marginBottom)||0;return s.offsetHeight+h+p}),o=document.querySelector(".notification-menu .aioseo-notification-cards");if(o&&0<a.length){let s=0,n=0;for(const h of a){if(n+=h,n>o.offsetHeight)break;s++}this.maxNotifications=s||1,isFinite(s)&&0<s&&(this.totalPages=Math.ceil(a.length/s))}this.currentPage=e>this.totalPages-1?this.totalPages-1:e})}},mounted(){document.addEventListener("keydown",this.escapeListener),document.addEventListener("mousedown",this.documentClick);const e=document.querySelector("#wp-admin-bar-aioseo-notifications .ab-item");e&&e.addEventListener("mousedown",this.notificationsLinkClick);const t=document.querySelector("#toplevel_page_aioseo .wp-first-item"),a=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");t&&a&&t.addEventListener("mousedown",this.notificationsLinkClick)}},fo={class:"aioseo-notifications",ref:"aioseo-notifications"},mo={key:0,class:"notification-menu"},go={class:"notification-header"},_o={class:"new-notifications"},po={class:"dismissed-notifications"},ho={key:0,class:"notification-footer"},vo={class:"pagination"},yo=["onClick"],bo={key:0,class:"dismiss-all"};function So(e,t,a,o,s,n){const h=m("svg-close"),p=m("core-notification-cards");return r(),d("div",fo,[u(Y,{name:"notifications-slide"},{default:_(()=>[o.notificationsStore.showNotifications?(r(),d("div",mo,[i("div",go,[i("span",_o,"("+l(o.notificationsCount)+") "+l(o.notificationTitle),1),i("div",po,[!o.dismissed&&o.notificationsStore.dismissedNotificationsCount?(r(),d("a",{key:0,href:"#",onClick:t[0]||(t[0]=b(g=>o.dismissed=!0,["stop","prevent"]))},l(s.strings.dismissedNotifications),1)):f("",!0),o.dismissed&&o.notificationsStore.dismissedNotificationsCount?(r(),d("a",{key:1,href:"#",onClick:t[1]||(t[1]=b(g=>o.dismissed=!1,["stop","prevent"]))},l(s.strings.activeNotifications),1)):f("",!0)]),i("div",{onClick:t[2]||(t[2]=b((...g)=>o.notificationsStore.toggleNotifications&&o.notificationsStore.toggleNotifications(...g),["stop"]))},[u(h)])]),u(p,{class:"notification-cards",notifications:n.filteredNotifications,dismissedCount:o.notificationsStore.dismissedNotificationsCount,onToggleDismissed:t[3]||(t[3]=g=>o.dismissed=!o.dismissed)},null,8,["notifications","dismissedCount"]),s.totalPages>1||!o.dismissed&&o.notifications.length?(r(),d("div",ho,[i("div",vo,[s.totalPages>1?(r(!0),d(L,{key:0},I(n.pages,(g,v)=>(r(),d("div",{class:H(["page-number",{active:g.number===1+s.currentPage}]),key:v,onClick:b(x=>s.currentPage=g.number-1,["stop"])},l(g.number),11,yo))),128)):f("",!0)]),o.dismissed?f("",!0):(r(),d("div",bo,[o.notifications.length?(r(),d("a",{key:0,href:"#",class:"dismiss",onClick:t[4]||(t[4]=b((...g)=>n.processDismissAllNotifications&&n.processDismissAllNotifications(...g),["stop","prevent"]))},l(s.strings.dismissAll),1)):f("",!0)]))])):f("",!0)])):f("",!0)]),_:1}),u(Y,{name:"notifications-fade"},{default:_(()=>[o.notificationsStore.showNotifications?(r(),d("div",{key:0,onClick:t[5]||(t[5]=(...g)=>o.notificationsStore.toggleNotifications&&o.notificationsStore.toggleNotifications(...g)),class:"overlay"})):f("",!0)]),_:1})],512)}const ko=T(uo,[["render",So]]),Q="all-in-one-seo-pack",Co={setup(){const e=rt(),{processSaveChanges:t}=pt();return{helpPanelStore:$(),notificationsStore:M(),optionsStore:tt(),processSaveChanges:t,rootStore:E(),route:e}},components:{CoreAlert:vt,CoreHeader:bt,CoreHelp:be,CoreMainTabs:_t,CoreNotifications:ko,GridContainer:St},props:{pageName:{type:String,required:!0},showTabs:{type:Boolean,default(){return!0}},showSaveButton:{type:Boolean,default(){return!0}},excludeTabs:{type:Array,default(){return[]}},containerClasses:{type:Array,default(){return[]}}},data(){return{tabsKey:0,strings:{saveChanges:c("Save Changes",Q)}}},watch:{excludeTabs(){this.tabsKey+=1}},computed:{tabs(){return this.$router.options.routes.filter(e=>e.name&&e.meta&&e.meta.name).filter(e=>ft(e.meta.access)).filter(e=>!e.meta.license||ut.hasMinimumLevel(e.meta.license)).filter(e=>!(e.meta.display==="lite"&&this.rootStore.isPro||e.meta.display==="pro"&&!this.rootStore.isPro)).filter(e=>!this.excludeTabs.includes(e.name)).map(e=>({slug:e.name,name:e.meta.name,url:{name:e.name},access:e.meta.access,label:e.meta.label}))},shouldShowSaveButton(){if(this.$route&&this.$route.name){const e=this.$router.options.routes.find(t=>t.name===this.$route.name);if(e&&e.meta&&e.meta.hideSaveButton)return!1}return this.showSaveButton},errorSaving(){const e=this.roootStore.isPro?"https://aioseo.com/plugin/pro-support":"https://aioseo.com/plugin/lite-support";return A(c("Oops! It looks like an error occurred while saving the changes. Please try again or %1$scontact our support team%2$s.",Q),'<a href="'+q.utmUrl("error-saving",this.rootStore.aioseo.page,e)+'" target="_blank">',"</a>")}},mounted(){mt().notifications&&(this.notificationsStore.showNotifications||this.notificationsStore.toggleNotifications(),setTimeout(()=>{gt("notifications")},500)),this.notificationsStore.force&&this.notificationsStore.active.length&&(this.notificationsStore.force=!1,this.notificationsStore.toggleNotifications())}},No={class:"aioseo-main"},wo=["innerHTML"],Do={key:2,class:"save-changes"};function Lo(e,t,a,o,s,n){const h=m("core-notifications"),p=m("core-header"),g=m("core-alert"),v=m("core-main-tabs"),x=m("base-button"),R=m("grid-container"),B=m("core-help");return r(),d("div",null,[u(h),i("div",No,[u(p,{"page-name":a.pageName},null,8,["page-name"]),u(R,{class:H(a.containerClasses)},{default:_(()=>[o.optionsStore.saveError?(r(),y(g,{key:0,type:"red"},{default:_(()=>[i("div",{innerHTML:n.errorSaving},null,8,wo)]),_:1})):f("",!0),a.showTabs?(r(),y(v,{key:s.tabsKey,tabs:n.tabs,showSaveButton:n.shouldShowSaveButton},{extra:_(()=>[K(e.$slots,"extra")]),_:3},8,["tabs","showSaveButton"])):f("",!0),u(Y,{name:"route-fade",mode:"out-in"},{default:_(()=>[K(e.$slots,"default")]),_:3}),n.shouldShowSaveButton?(r(),d("div",Do,[u(x,{type:"blue",size:"medium",loading:o.rootStore.loading,onClick:t[0]||(t[0]=X=>o.processSaveChanges(o.route.name))},{default:_(()=>[S(l(s.strings.saveChanges),1)]),_:1},8,["loading"])])):f("",!0)]),_:3},8,["class"])]),o.helpPanelStore.docs&&Object.keys(o.helpPanelStore.docs).length?(r(),y(B,{key:0})):f("",!0)])}const Jo=T(Co,[["render",Lo]]);export{Jo as C,lo as a,Se as u};
/home/batcwwjx/www/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/Index.4f41faeb.js