Файловый менеджер - Редактировать - /home/onlin326/cristianalberio.org/wp-content/plugins/broken-link-checker-seo/dist/assets/js/Index.P8xkfWXT.js
Назад
/* empty css */import{u as re,ac as tn,_ as m,o as u,c as p,B as l,A as F,r as _,a as g,C as h,v as w,a0 as X,G as L,J as E,K as B,al as ae,am as nn,t as O,E as y,L as T,j as Ae,e as pt,n as $e,an as ht,Q as on,w as oe,R as vt,a7 as gt,V as sn,i as rn,k as P,q as $,O as Be,p as an,f as cn,ao as ln,a4 as Xr,F as H,b as Kr,m as Gr,Y as se,h as De,ap as un,Z as bt,T as dn,x as Ee,$ as fn,D as ee}from"./index.B-fNRxMl.js";import{_ as ge}from"./Button.B_i50r8c.js";import{c as ce,L as _t,v as mn,s as pn,j as hn,N as vn,e as xe,u as gn,l as yt,d as wt,f as bn,o as _n,i as Ct,b as yn,r as wn,U as qe,m as Cn,p as Sn,a as je,h as Ye,O as kn,n as Nn,P as $n,w as Y,Q as pe,T as te,V as we,y as J,A as Tn,C as Ln,E as Pn,W as Mn}from"./Gear.oVJbPq6y.js";import{_ as M}from"./dynamic-import-helper.BYS4eB6Y.js";import{n as Xe,S as St}from"./Close.DyUJjDWQ.js";import{S as kt}from"./Close.Dorc6RTZ.js";import{S as On}from"./Logo.Wni62kpo.js";import{u as An}from"./LicenseStore.Db5X-EXE.js";import{S as Bn}from"./Caret.DoERFzmH.js";import{T as le}from"./Slide.BnAEsryh.js";import{S as Ie}from"./Check.C-6c2YTx.js";const Dn=e=>(e||document.location.search).replace(/(^\?)/,"").split("&").map((function(t){return t=t.split("="),this[t[0]]=t[1],this}).bind({}))[0],En=(e,t)=>{t=t||document.location.href;const n=t.split("#"),i=n[0].split("?");if(2>i.length)return t;const o=encodeURIComponent(e)+"=",s=i[1].split(/[&;]/g);for(let r=s.length;0<r--;)s[r].lastIndexOf(o,0)!==-1&&s.splice(r,1);const a=n[1]?"#"+n[1]:"",c=i[0]+(0<s.length?"?"+s.join("&"):"")+a;window.history.replaceState(null,null,c)},xn=e=>{const n=re().aioseoBrokenLinkChecker.user;return!!n.canManage||!!(n.capabilities&&n.capabilities[e])};function Nt(){return{processSaveChanges:()=>{const t=re();t.loading=!0;let n=!1,i=!1;const o="saveChanges";setTimeout(()=>{n=!0,i&&(t.loading=!1)},1500),tn()[o]().then(a=>{a&&a.body.redirection||(n?t.loading=!1:i=!0,window.aioseoBrokenLinkCheckerBus.$emit("changes-saved"))})}}}var Ke=Object.create,In=function(){function e(){}return function(t){if(!ce(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Rn(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function zn(e,t,n,i){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var c=t[s],r=void 0;r===void 0&&(r=e[c]),o?_t(n,c,r):mn(n,c,r)}return n}function Wn(e,t){return pn(hn(e,t,vn),e+"")}function Fn(e,t,n){if(!ce(n))return!1;var i=typeof t;return(i=="number"?xe(n)&&gn(t,n.length):i=="string"&&t in n)?yt(n[t],e):!1}function Hn(e){return Wn(function(t,n){var i=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,a&&Fn(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i<o;){var c=n[i];c&&e(t,c,i,s)}return t})}function Un(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Vn=Object.prototype,qn=Vn.hasOwnProperty;function jn(e){if(!ce(e))return Un(e);var t=wt(e),n=[];for(var i in e)i=="constructor"&&(t||!qn.call(e,i))||n.push(i);return n}function $t(e){return xe(e)?bn(e,!0):jn(e)}var Tt=_n(Object.getPrototypeOf,Object),Yn="[object Object]",Xn=Function.prototype,Kn=Object.prototype,Lt=Xn.toString,Gn=Kn.hasOwnProperty,Zn=Lt.call(Object);function Jn(e){if(!Ct(e)||yn(e)!=Yn)return!1;var t=Tt(e);if(t===null)return!0;var n=Gn.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Lt.call(n)==Zn}var Pt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ge=Pt&&typeof module=="object"&&module&&!module.nodeType&&module,Qn=Ge&&Ge.exports===Pt,Ze=Qn?wn.Buffer:void 0;Ze&&Ze.allocUnsafe;function ei(e,t){return e.slice()}function ti(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function ni(e,t){var n=ti(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function ii(e){return typeof e.constructor=="function"&&!wt(e)?In(Tt(e)):{}}function oi(e){return function(t,n,i){for(var o=-1,s=Object(t),a=i(t),c=a.length;c--;){var r=a[++o];if(n(s[r],r,s)===!1)break}return t}}var si=oi();function Te(e,t,n){(n!==void 0&&!yt(e[t],n)||n===void 0&&!(t in e))&&_t(e,t,n)}function ri(e){return Ct(e)&&xe(e)}function Le(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ai(e){return zn(e,$t(e))}function ci(e,t,n,i,o,s,a){var c=Le(e,n),r=Le(t,n),d=a.get(r);if(d){Te(e,n,d);return}var f=s?s(c,r,n+"",e,t,a):void 0,C=f===void 0;if(C){var v=je(r),b=!v&&Cn(r),S=!v&&!b&&Sn(r);f=r,v||b||S?je(c)?f=c:ri(c)?f=Rn(c):b?(C=!1,f=ei(r)):S?(C=!1,f=ni(r)):f=[]:Jn(r)||Ye(r)?(f=c,Ye(c)?f=ai(c):(!ce(c)||kn(c))&&(f=ii(r))):C=!1}C&&(a.set(r,f),o(f,r,i,s,a),a.delete(r)),Te(e,n,f)}function Mt(e,t,n,i,o){e!==t&&si(t,function(s,a){if(o||(o=new Nn),ce(s))ci(e,t,a,n,Mt,i,o);else{var c=i?i(Le(e,a),s,a+"",e,t,o):void 0;c===void 0&&(c=s),Te(e,a,c)}},$t)}var li=Hn(function(e,t,n){Mt(e,t,n)});const ui="aioseo-broken-link-checker",Je=()=>{const e=Y(),t=document.createElement("a");t.href=e.aioseo.urls.aio.settings,t.classList.add("ab-item");const n=document.createElement("span");return n.innerText=m("Add License Key",ui),n.classList.add("aioseo-menu-highlight"),n.classList.add("green"),t.appendChild(n),t},di=$n("LicenseStore",{state:()=>({license:{expires:0,isActive:!1,isDisabled:!1,isExpired:!1,isInvalid:!1,features:{}}}),getters:{isUnlicensed:e=>(void 0).toLowerCase()!=="pro"||!e.license.isActive,licenseKey:()=>{const e=Y(),t=pe();return e.aioseo.data.isNetworkAdmin?t.networkOptions.general.licenseKey:t.options.general.licenseKey}},actions:{activate(e){const t=te(),n=Y();return we.post(J.restUrl("activate")).send({licenseKey:e.trim(),network:n.aioseo.data.isNetworkAdmin}).then(i=>{const o=pe(),s=n.aioseo.data.isNetworkAdmin?"networkOptions":"options";return o.updateOption(s,{groups:["general"],key:"licenseKey",value:e}),t.updateNotifications(i.body.notifications),i.body.licenseData&&(Object.keys(i.body.licenseData).forEach(a=>{const c=n.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";o.updateOption(c,{groups:["internal","license"],key:a,value:i.body.licenseData[a]})}),this.license=i.body.license,n.aioseo.data.isNetworkLicensed=n.aioseo.data.isNetworkAdmin,this.clearLicenseNotices()),i})},multisite(e){const t=te(),n=Y();return we.post(J.restUrl("multisite")).send({network:n.aioseo.data.isNetworkAdmin,sites:e}).then(i=>{n.aioseo.data={...n.aioseo.data,network:{...n.aioseo.data.network}},t.updateNotifications(i.body.notifications)})},deactivate(){const e=te(),t=Y();return we.post(J.restUrl("deactivate")).send({network:t.aioseo.data.isNetworkAdmin}).then(n=>{const i=pe(),o=t.aioseo.data.isNetworkAdmin?"networkOptions":"options";return i.updateOption(o,{groups:["general"],key:"licenseKey",value:null}),e.updateNotifications(n.body.notifications),n.body.licenseData&&(Object.keys(n.body.licenseData).forEach(s=>{const a=t.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";i.updateOption(a,{groups:["internal","license"],key:s,value:n.body.licenseData[s]})}),this.license=n.body.license,t.aioseo.isUnlicensed=!0,this.addLicenseNotices()),n})},clearLicenseNotices(){const e=document.querySelector(".aioseo-submenu-highlight");e&&e.remove();const t=document.querySelector("#wp-admin-bar-aioseo-pro-license");t&&t.remove()},addLicenseNotices(){this.clearLicenseNotices();const e=document.querySelector("#toplevel_page_aioseo ul.wp-submenu-wrap");if(e){const n=document.createElement("li");n.classList.add("aioseo-submenu-highlight");const i=Je();n.appendChild(i),e.appendChild(n)}const t=document.querySelector("#wp-admin-bar-aioseo-main-default");if(t){const n=document.createElement("li");n.id="wp-admin-bar-aioseo-pro-license";const i=Je();n.appendChild(i),t.appendChild(n)}}}}),fi=e=>new URL(e,import.meta.url).href,mi={},pi={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-logo-gear"},hi=l("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),vi=[hi];function gi(e,t){return u(),p("svg",pi,vi)}const bi=M(mi,[["render",gi]]),Qe="aioseo-broken-link-checker",_i={setup(){return{rootStore:Y()}},components:{SvgAioseoLogoGear:bi},data(){return{strings:{boldText:F("<strong>%1$s %2$s</strong>","BLC",this.rootStore.isPro?"Pro":""),linkText:m("Click here to learn more",Qe)}}},computed:{link(){return F('<strong><a href="%1$s" target="_blank" class="text-white">%2$s</a></strong>',J.getDocUrl("restApi"),this.strings.linkText)},upgradeText(){return F(m("%1$s relies on the WordPress Rest API and your site might have it disabled. %2$s.",Qe),this.strings.boldText,this.link)}},mounted(){document.body.classList.add("aioseo-has-bar")},beforeUnmount(){document.body.classList.remove("aioseo-has-bar")}},yi={class:"aioseo-api-bar"},wi={class:"upgrade-text"},Ci=["innerHTML"];function Si(e,t,n,i,o,s){const a=_("svg-aioseo-logo-gear");return u(),p("div",yi,[l("div",wi,[g(a),l("div",{innerHTML:s.upgradeText},null,8,Ci)])])}const ki=M(_i,[["render",Si]]),Ni={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?Xe.numberFormat(this.animatedNumber):this.animatedNumber}},methods:{animateNumber(){const e=Xe.animateNumbers(this.fromNumber,this.number,t=>this.animatedNumber=t);window.addEventListener("blur",()=>{e.cancel(),this.animatedNumber=this.number})}},mounted(){this.animateNumber()}};function $i(e,t,n,i,o,s){return u(),p("span",null,h(s.formattedNumber),1)}const Ti=M(Ni,[["render",$i]]),Li={components:{UtilAnimatedNumber:Ti},props:{percentage:Number},data(){return{fromNumber:0,number:0}},watch:{percentage:{deep:!0,handler(e){e!==this.number&&(this.fromNumber=this.number,this.number=e)}}},mounted(){this.number=this.percentage}},Pi={class:"aioseo-percent-circle"},Mi={class:"aioseo-seo-site-score-svg",viewBox:"0 0 33.83098862 33.83098862",xmlns:"http://www.w3.org/2000/svg"},Oi=l("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),Ai=["stroke-dasharray"],Bi={class:"aioseo-percent-circle-percent"};function Di(e,t,n,i,o,s){const a=_("util-animated-number");return u(),p("div",Pi,[g(X,{name:"fill-percent-circle"},{default:w(()=>[(u(),p("svg",Mi,[Oi,l("circle",{class:"aioseo-percent-circle-score__circle",stroke:"#005AE0","stroke-width":"2","stroke-dasharray":`${n.percentage},100`,fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"},null,8,Ai)]))]),_:1}),l("div",Bi,[l("div",null,[g(a,{number:o.number,"from-number":o.fromNumber},null,8,["number","from-number"]),L("% ")])])])}const Ot=M(Li,[["render",Di]]),Ei={emits:["close"],components:{CorePercentCircle:Ot,SvgClose:kt},props:{strings:Object,percentage:Number}},xi={class:"aioseo-processing-popup"},Ii=l("br",null,null,-1);function Ri(e,t,n,i,o,s){const a=_("core-percent-circle"),c=_("svg-close");return u(),p("div",xi,[g(a,{percentage:n.percentage},null,8,["percentage"]),l("div",null,[l("strong",null,h(n.strings.header),1),Ii,L(h(n.strings.description),1)]),g(c,{onClick:t[0]||(t[0]=r=>e.$emit("close"))})])}const zi=M(Ei,[["render",Ri]]),Wi={props:{hero:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fullWidth:Boolean,small:Boolean},computed:{classes(){let e=this.fluid?"aioseo-container-fluid ":"aioseo-container ";return e+=this.hero?"aioseo-hero ":"",e+=this.fullWidth?"full-width ":"",e+=this.small?"small ":"",e}}};function Fi(e,t,n,i,o,s){return u(),p("div",{class:B(s.classes)},[E(e.$slots,"default")],2)}const At=M(Wi,[["render",Fi]]),Hi={},Ui={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-notifications"},Vi=l("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),qi=[Vi];function ji(e,t){return u(),p("svg",Ui,qi)}const Yi=M(Hi,[["render",ji]]),fe="aioseo-broken-link-checker",Xi={setup(){return{licenseStore:An(),notificationsStore:ae(),scansStore:nn(),rootStore:re()}},components:{CoreApiBar:ki,CorePercentCircle:Ot,CoreProcessingPopup:zi,GridContainer:At,SvgLogo:On,SvgNotifications:Yi},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:m("Posts are being scanned for links",fe),description:m("Depending on the number of posts being scanned, this process can take some time. You can safely leave this page and check back later.",fe)},linkStatuses:{header:m("Links are being checked for the first time",fe),description:m("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.",fe)}}}}},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(e){let t;return(...n)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e(...n)})}},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()}},Ki={class:"aioseo-header"},Gi={class:"aioseo-header-content"},Zi={class:"logo"},Ji={key:0,class:"header-actions"},Qi={key:0,class:"round number"};function eo(e,t,n,i,o,s){const a=_("core-api-bar"),c=_("svg-logo"),r=_("core-percent-circle"),d=_("core-processing-popup"),f=_("svg-notifications"),C=_("grid-container");return u(),p("div",Ki,[i.rootStore.pong?y("",!0):(u(),O(a,{key:0})),g(C,{"full-width":n.fullWidth,small:n.small},{default:w(()=>[l("div",Gi,[l("div",Zi,[g(c)]),n.actions?(u(),p("div",Ji,[g(X,{name:"fade-percent-circle"},{default:w(()=>[o.activeScan&&parseInt(s.percentage)!==100?(u(),O(r,{key:0,percentage:s.percentage,onClick:s.togglePopup},null,8,["percentage","onClick"])):y("",!0)]),_:1}),g(X,{name:"fade-processing-popup"},{default:w(()=>[s.showPopup?(u(),O(d,{key:0,strings:s.popupStrings,percentage:s.percentage,onClose:s.togglePopup},null,8,["strings","percentage","onClose"])):y("",!0)]),_:1}),l("span",{class:"round",onClick:t[0]||(t[0]=T((...v)=>i.notificationsStore.toggleNotifications&&i.notificationsStore.toggleNotifications(...v),["stop"]))},[i.notificationsStore.activeNotificationsCount?(u(),p("span",Qi,h(i.notificationsStore.activeNotificationsCount>9?"!":i.notificationsStore.activeNotificationsCount),1)):y("",!0),g(f,{onClick:T(i.notificationsStore.toggleNotifications,["stop"])},null,8,["onClick"])])])):y("",!0)])]),_:1},8,["full-width","small"])])}const to=M(Xi,[["render",eo]]),Bt={locks:{},zIndex:2e3,enableRipple:!0};Ae(Bt);var Dt=Ae(Bt),no=Object.defineProperty,io=Object.defineProperties,oo=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,tt=(e,t,n)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ao=(e,t)=>{for(var n in t||(t={}))so.call(t,n)&&tt(e,n,t[n]);if(et)for(var n of et(t))ro.call(t,n)&&tt(e,n,t[n]);return e},co=(e,t)=>io(e,oo(t)),z=e=>typeof e=="string",lo=e=>typeof e=="boolean",Re=e=>typeof e=="number",Et=e=>Re(e)||z(e)&&/^[-+]?\d+$/.test(e),uo=e=>Object.prototype.toString.call(e)==="[object Object]";var fo=e=>typeof e=="function",xt=e=>Array.isArray(e);var mo=e=>e===window,po=()=>be()&&"ontouchstart"in window,be=()=>typeof window<"u";var nt=(e,t)=>{if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}};var ho=(...e)=>e.map(t=>{if(xt(t)){const[n,i,o=null]=t;return n?i:o}return t}),vo=()=>typeof globalThis<"u"?globalThis:be()?window:typeof global<"u"?global:self,Pe=e=>{const t=vo();return t.requestAnimationFrame?t.requestAnimationFrame(e):t.setTimeout(e)};var go=()=>new Promise(e=>{Pe(e)}),It=()=>new Promise(e=>{Pe(()=>{Pe(e)})}),ze=e=>window.getComputedStyle(e),he=e=>{if(mo(e)){const t=e.innerWidth,n=e.innerHeight,i={x:0,y:0,top:0,left:0,right:t,bottom:n,width:t,height:n};return co(ao({},i),{toJSON:()=>i})}return e.getBoundingClientRect()};var bo=e=>{const t="scrollTop"in e?e.scrollTop:e.scrollY;return Math.max(t,0)},_o=e=>{const t="scrollLeft"in e?e.scrollLeft:e.scrollX;return Math.max(t,0)};function Z(e,...t){if(xt(e))return e.map(n=>n(...t));if(e)return e(...t)}var Rt=e=>e==null?0:z(e)?(e=parseFloat(e),e=Number.isNaN(e)?0:e,e):lo(e)?Number(e):e,yo=(e,t,n)=>Math.min(n,Math.max(t,e));var wo=e=>Co(e).replace(e.charAt(0),e.charAt(0).toUpperCase()),Co=e=>e.replace(/-(\w)/g,(t,n)=>n.toUpperCase());function So(e){return t=>{const n=`${e}-${t}`,i=o=>o?o[0]==="$"?o.replace("$",e):o.startsWith("--")?`${n}${o}`:`${n}__${o}`:n;return{name:wo(n),n:i,classes:ho}}}var ko=Object.defineProperty,ve=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,it=(e,t,n)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,No=(e,t)=>{for(var n in t||(t={}))zt.call(t,n)&&it(e,n,t[n]);if(ve)for(var n of ve(t))Wt.call(t,n)&&it(e,n,t[n]);return e},$o=(e,t)=>{var n={};for(var i in e)zt.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&ve)for(var i of ve(e))t.indexOf(i)<0&&Wt.call(e,i)&&(n[i]=e[i]);return n};function Ft(e){let t=!1;pt(()=>{e(),$e(()=>{t=!0})}),ht(()=>{t&&e()})}function Me(e,t,n,i={}){if(!be())return;const{passive:o=!1,capture:s=!1}=i;let a=!1,c=!1;const r=b=>fo(b)?b():cn(b),d=b=>{if(a||c)return;const S=r(b);S&&(S.addEventListener(t,n,{passive:o,capture:s}),a=!0)},f=b=>{if(!a||c)return;const S=r(b);S&&(S.removeEventListener(t,n,{capture:s}),a=!1)};let C;on(e)&&(C=oe(()=>e.value,(b,S)=>{f(S),d(b)}));const v=()=>{C==null||C(),f(e),c=!0};return Ft(()=>{d(e)}),vt(()=>{f(e)}),gt(()=>{f(e)}),v}function To(e){sn(()=>{e()}),gt(()=>{e()})}function Lo(e){const t=Be();return e in t.provides}function Po(e){if(!Lo(e))return{index:null,parentProvider:null,bindParent:null};const n=rn(e),{childInstances:i,collect:o,clear:s}=n,a=$o(n,["childInstances","collect","clear"]),c=Be();return{index:P(()=>i.indexOf(c)),parentProvider:a,bindParent:f=>{pt(()=>{$e().then(()=>{o(c,f)})}),vt(()=>{$e().then(()=>{s(c,f)})})}}}function Mo(e){const t=[],n=i=>{if(i!=null&&i.component){n(i==null?void 0:i.component.subTree);return}Array.isArray(i==null?void 0:i.children)&&i.children.forEach(o=>{ln(o)&&(t.push(o),n(o))})};return n(e),t}function Oo(e){const t=Be(),n=Ae([]),i=[],o=P(()=>n.length),s=()=>{const d=Mo(t.subTree);n.sort((f,C)=>d.indexOf(f.vnode)-d.indexOf(C.vnode))},a=(d,f)=>{n.push(d),i.push(f),s()},c=(d,f)=>{nt(n,d),nt(i,f)};return{length:o,childProviders:i,bindChildren:d=>{an(e,No({childInstances:n,collect:a,clear:c},d))}}}function Ht(e){Me(()=>window,"resize",e,{passive:!0}),Me(()=>window,"orientationchange",e,{passive:!0})}var Ao=Object.defineProperty,Bo=Object.defineProperties,Do=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,st=(e,t,n)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))Eo.call(t,n)&&st(e,n,t[n]);if(ot)for(var n of ot(t))xo.call(t,n)&&st(e,n,t[n]);return e},Ro=(e,t)=>Bo(e,Do(t));function Ce(e,t){return Array.isArray(t)?t.reduce((n,i)=>(n[i]=e[i],n),{}):e[t]}function We(e,t){const n=t??e;return n.install=function(i){const{name:o}=e;o&&i.component(o,e)},n}function Fe(e,t){e.setPropsDefaults=function(n){Object.entries(n).forEach(([i,o])=>{const s=t[i];if(s!=null){if(uo(s)){t[i]=Ro(Io({},s),{default:o});return}t[i]={type:s,default:o}}})}}const _e=So("var");function ne(e){return{type:[Function,Array],default:e}}function zo(e,t){return e===!1?null:(e===!0&&t&&(e=t),`var-elevation--${e}`)}var Wo=Object.defineProperty,Fo=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,at=(e,t,n)=>t in e?Wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))Uo.call(t,n)&&at(e,n,t[n]);if(rt)for(var n of rt(t))Vo.call(t,n)&&at(e,n,t[n]);return e},qo=(e,t)=>Fo(e,Ho(t));const{n:Vt}=_e("ripple"),ct=250;function jo(e){const{zIndex:t,position:n}=ze(e);e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden",n==="static"&&(e.style.position="relative"),t==="auto"&&(e.style.zIndex="1")}function Yo(e,t){const{top:n,left:i}=he(e),{clientWidth:o,clientHeight:s}=e,a=Math.sqrt(o**2+s**2)/2,c=a*2,r=t.touches[0].clientX-i,d=t.touches[0].clientY-n,f=(o-a*2)/2,C=(s-a*2)/2,v=r-a,b=d-a;return{x:v,y:b,centerX:f,centerY:C,size:c}}function qt(e){const t=this._ripple;if(t.removeRipple(),t.disabled||t.tasker||!Dt.enableRipple)return;const n=()=>{t.tasker=null;const{x:i,y:o,centerX:s,centerY:a,size:c}=Yo(this,e),r=document.createElement("div");r.classList.add(Vt()),r.style.opacity="0",r.style.transform=`translate(${i}px, ${o}px) scale3d(.3, .3, .3)`,r.style.width=`${c}px`,r.style.height=`${c}px`,t.color&&(r.style.backgroundColor=t.color),r.dataset.createdAt=String(performance.now()),jo(this),this.appendChild(r),window.setTimeout(()=>{r.style.transform=`translate(${s}px, ${a}px) scale3d(1, 1, 1)`,r.style.opacity=".25"},20)};t.tasker=window.setTimeout(n,30)}function Oe(){const e=this._ripple,t=()=>{const n=this.querySelectorAll(`.${Vt()}`);if(!n.length)return;const i=n[n.length-1],o=ct-performance.now()+Number(i.dataset.createdAt);window.setTimeout(()=>{i.style.opacity="0",window.setTimeout(()=>{var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)},ct)},o)};e.tasker?window.setTimeout(t,30):t()}function jt(){if(!po()||!Dt.enableRipple)return;const e=this._ripple;e.tasker&&window.clearTimeout(e.tasker),e.tasker=null}function Xo(e,t){var n;e._ripple=qo(Ut({tasker:null},(n=t.value)!=null?n:{}),{removeRipple:Oe.bind(e)}),e.addEventListener("touchstart",qt,{passive:!0}),e.addEventListener("touchmove",jt,{passive:!0}),e.addEventListener("dragstart",Oe,{passive:!0}),document.addEventListener("touchend",e._ripple.removeRipple,{passive:!0}),document.addEventListener("touchcancel",e._ripple.removeRipple,{passive:!0}),document.addEventListener("dragend",e._ripple.removeRipple,{passive:!0})}function Ko(e){e.removeEventListener("touchstart",qt),e.removeEventListener("touchmove",jt),e.removeEventListener("dragstart",Oe),document.removeEventListener("touchend",e._ripple.removeRipple),document.removeEventListener("touchcancel",e._ripple.removeRipple),document.removeEventListener("dragend",e._ripple.removeRipple)}function Go(e,t){var n,i,o,s,a,c;const r={color:(n=t.value)==null?void 0:n.color,disabled:(i=t.value)==null?void 0:i.disabled};(r.color!==((o=e._ripple)==null?void 0:o.color)||r.disabled!==((s=e._ripple)==null?void 0:s.disabled))&&(e._ripple=Ut({tasker:r.disabled?null:(a=e._ripple)==null?void 0:a.tasker,removeRipple:(c=e._ripple)==null?void 0:c.removeRipple},r))}const Zo={mounted:Xo,unmounted:Ko,updated:Go,install(e){e.directive("ripple",this)}};var Jo=Zo;function Qo(e,t){throw Error(`Varlet [${e}]: ${t}`)}function es(e){let t=e;for(;t&&!(!t.parentNode||(t=t.parentNode,t===document.body||t===document.documentElement));){const n=/(scroll|auto)/,{overflowY:i,overflow:o}=ze(t);if(n.test(i)||n.test(o))return t}return window}function ts(){const{width:e,height:t}=he(window);return{vw:e,vh:t,vMin:Math.min(e,t),vMax:Math.max(e,t)}}const ns=e=>z(e)&&e.endsWith("rem"),is=e=>z(e)&&e.endsWith("px")||Re(e),os=e=>z(e)&&e.endsWith("vw"),ss=e=>z(e)&&e.endsWith("vh"),rs=e=>z(e)&&e.endsWith("vmin"),as=e=>z(e)&&e.endsWith("vmax"),cs=e=>{if(Et(e))return Number(e);if(is(e))return+e.replace("px","");if(!be())return 0;const{vw:t,vh:n,vMin:i,vMax:o}=ts();if(os(e))return+e.replace("vw","")*t/100;if(ss(e))return+e.replace("vh","")*n/100;if(rs(e))return+e.replace("vmin","")*i/100;if(as(e))return+e.replace("vmax","")*o/100;if(ns(e)){const s=+e.replace("rem",""),a=ze(document.documentElement).fontSize;return s*parseFloat(a)}return z(e)?Rt(e):0},ls=e=>{if(e!=null)return Et(e)?`${e}px`:String(e)};function lt(e,{top:t=0,left:n=0,duration:i=300,animation:o}){const s=Date.now(),a=bo(e),c=_o(e);return new Promise(r=>{const d=()=>{const f=(Date.now()-s)/i;if(f<1){const C=a+(t-a)*o(f),v=c+(n-c)*o(f);e.scrollTo(v,C),requestAnimationFrame(d)}else e.scrollTo(n,t),r()};requestAnimationFrame(d)})}const ut=e=>e;const ie={offsetTop:{type:[String,Number],default:0},zIndex:{type:[String,Number],default:10},cssMode:Boolean,disabled:Boolean,onScroll:ne()};var dt=(e,t,n)=>new Promise((i,o)=>{var s=r=>{try{c(n.next(r))}catch(d){o(d)}},a=r=>{try{c(n.throw(r))}catch(d){o(d)}},c=r=>r.done?i(r.value):Promise.resolve(r.value).then(s,a);c((n=n.apply(e,t)).next())});const{name:us,n:ds,classes:fs}=_e("sticky");function ms(e,t){return u(),p("div",{class:B(e.classes(e.n(),[e.enableCSSMode,e.n("--css-mode")])),ref:"stickyEl",style:se({zIndex:e.toNumber(e.zIndex),top:e.enableCSSMode?`${e.offsetTop}px`:void 0,width:e.enableFixedMode?e.fixedWidth:void 0,height:e.enableFixedMode?e.fixedHeight:void 0})},[l("div",{class:B(e.n("wrapper")),ref:"wrapperEl",style:se({zIndex:e.toNumber(e.zIndex),position:e.enableFixedMode?"fixed":void 0,width:e.enableFixedMode?e.fixedWrapperWidth:void 0,height:e.enableFixedMode?e.fixedWrapperHeight:void 0,left:e.enableFixedMode?e.fixedLeft:void 0,top:e.enableFixedMode?e.fixedTop:void 0})},[E(e.$slots,"default")],6)],6)}const Yt=De({name:us,props:ie,setup(e){const t=$(null),n=$(null),i=$(!1),o=$("0px"),s=$("0px"),a=$("auto"),c=$("auto"),r=$("auto"),d=$("auto"),f=P(()=>!e.disabled&&e.cssMode),C=P(()=>!e.disabled&&!e.cssMode&&i.value),v=P(()=>cs(e.offsetTop));let b;oe(()=>e.disabled,U),Ft(()=>dt(this,null,function*(){yield It(),K(),D()})),To(ue),Ht(U),Me(()=>window,"scroll",D);function S(){const{cssMode:x,disabled:G}=e;if(G)return;let V=0;if(b!==window){const{top:k}=he(b);V=k}const q=n.value,j=t.value,{top:ye,left:W}=he(j),de=ye-V;return de<=v.value?(x||(a.value=`${j.offsetWidth}px`,c.value=`${j.offsetHeight}px`,o.value=`${V+v.value}px`,s.value=`${W}px`,r.value=`${q.offsetWidth}px`,d.value=`${q.offsetHeight}px`,i.value=!0),{offsetTop:v.value,isFixed:!0}):(i.value=!1,{offsetTop:de,isFixed:!1})}function K(){b=es(t.value),b!==window&&b.addEventListener("scroll",D)}function D(){const x=S();x&&Z(e.onScroll,x.offsetTop,x.isFixed)}function ue(){!b||b===window||b.removeEventListener("scroll",D)}function U(){return dt(this,null,function*(){i.value=!1,yield go(),S()})}return{stickyEl:t,wrapperEl:n,isFixed:i,offsetTop:v,fixedTop:o,fixedLeft:s,fixedWidth:a,fixedHeight:c,fixedWrapperWidth:r,fixedWrapperHeight:d,enableCSSMode:f,enableFixedMode:C,n:ds,classes:fs,resize:U,toNumber:Rt}}});Yt.render=ms;var He=Yt;We(He);Fe(He,ie);var ps=He;const Xt={name:[String,Number],disabled:Boolean,ripple:{type:Boolean,default:!0},onClick:ne()},Kt=Symbol("TABS_BIND_TAB_KEY");function hs(){const{childProviders:e,bindChildren:t,length:n}=Oo(Kt);return{length:n,tabList:e,bindTabList:t}}function vs(){const{parentProvider:e,bindParent:t,index:n}=Po(Kt);return t||Qo("Tab","<var-tab/> must in <var-tabs/>"),{index:n,tabs:e,bindTabs:t}}const{name:gs,n:me,classes:bs}=_e("tab");function _s(e,t){const n=un("ripple");return bt((u(),p("div",{class:B(e.classes(e.n(),e.n("$--box"),e.computeColorClass(),e.n(`--${e.itemDirection}`))),ref:"tabEl",style:se({color:e.computeColorStyle()}),onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[E(e.$slots,"default")],6)),[[n,{disabled:e.disabled||!e.ripple}]])}const Gt=De({name:gs,directives:{Ripple:Jo},props:Xt,setup(e){const t=$(null),n=P(()=>t.value),i=P(()=>e.name),o=P(()=>e.disabled),{index:s,tabs:a,bindTabs:c}=vs(),{onTabClick:r,active:d,activeColor:f,inactiveColor:C,disabledColor:v,itemDirection:b,resize:S}=a,K={name:i,index:s,disabled:o,element:n};c(K),oe(()=>[e.name,e.disabled],S);function D(){return e.name!=null?d.value===e.name:d.value===(s==null?void 0:s.value)}function ue(){return e.disabled?v.value:D()?f.value:C.value}function U(){return e.disabled?me("$-tab--disabled"):D()?me("$-tab--active"):me("$-tab--inactive")}function x(G){const{disabled:V,name:q,onClick:j}=e;V||(Z(j,q??s.value,G),r(K))}return{tabEl:t,active:d,activeColor:f,inactiveColor:C,itemDirection:b,n:me,classes:bs,computeColorStyle:ue,computeColorClass:U,handleClick:x}}});Gt.render=_s;var Ue=Gt;We(Ue);Fe(Ue,Xt);var ys=Ue;const Zt={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:Ce(ie,"cssMode"),stickyZIndex:Ce(ie,"zIndex"),offsetTop:Ce(ie,"offsetTop"),onClick:ne(),onChange:ne(),"onUpdate:active":ne()};var ft=(e,t,n)=>new Promise((i,o)=>{var s=r=>{try{c(n.next(r))}catch(d){o(d)}},a=r=>{try{c(n.throw(r))}catch(d){o(d)}},c=r=>r.done?i(r.value):Promise.resolve(r.value).then(s,a);c((n=n.apply(e,t)).next())});const{name:ws,n:Cs,classes:Ss}=_e("tabs");function ks(e,t){return u(),O(Ee(e.sticky?e.n("$-sticky"):e.Transition),{ref:e.sticky?"stickyComponent":void 0,"css-mode":e.sticky?e.stickyCssMode:void 0,"offset-top":e.sticky?e.offsetTop:void 0,"z-index":e.sticky?e.stickyZIndex:void 0},{default:w(()=>[l("div",dn({class:e.classes(e.n(),e.n("$--box"),e.n(`--item-${e.itemDirection}`),e.n(`--layout-${e.layoutDirection}-padding`),e.formatElevation(e.elevation,4),[e.fixedBottom,e.n("--fixed-bottom")],[e.safeArea,e.n("--safe-area")]),style:{background:e.color}},e.$attrs),[l("div",{ref:"scrollerEl",class:B(e.classes(e.n("tab-wrap"),[e.localScrollable,e.n(`--layout-${e.layoutDirection}-scrollable`)],e.n(`--layout-${e.layoutDirection}`)))},[E(e.$slots,"default"),l("div",{class:B(e.classes(e.n("indicator"),e.n(`--layout-${e.layoutDirection}${e.indicatorPosition}-indicator`))),style:se({width:e.layoutDirection==="horizontal"?e.indicatorWidth:e.toSizeUnit(e.indicatorSize),height:e.layoutDirection==="horizontal"?e.toSizeUnit(e.indicatorSize):e.indicatorHeight,transform:e.layoutDirection==="horizontal"?`translateX(${e.indicatorX})`:`translateY(${e.indicatorY})`})},[l("div",{class:B(e.classes(e.n("indicator-inner"),e.n(`--layout-${e.layoutDirection}-indicator-inner`))),style:se({background:e.indicatorColor||e.activeColor})},null,6)],6)],2)],16)]),_:3},8,["css-mode","offset-top","z-index"])}const Jt=De({name:ws,components:{VarSticky:ps},inheritAttrs:!1,props:Zt,setup(e){const t=$("0px"),n=$("0px"),i=$("0px"),o=$("0px"),s=$(!1),a=$(null),c=P(()=>e.active),r=P(()=>e.activeColor),d=P(()=>e.inactiveColor),f=P(()=>e.disabledColor),C=P(()=>e.itemDirection),v=$(null),b=P(()=>e.indicatorPosition==="reverse"?"-reverse":""),{tabList:S,bindTabList:K,length:D}=hs();K({active:c,activeColor:r,inactiveColor:d,disabledColor:f,itemDirection:C,resize:W,onTabClick:U}),oe(()=>D.value,()=>ft(this,null,function*(){yield It(),W()})),oe(()=>[e.active,e.scrollable],W),ht(W),Ht(W);function U(k){var N;const I=(N=k.name.value)!=null?N:k.index.value,{active:Q,onChange:Qt,onClick:en}=e;Z(e["onUpdate:active"],I),Z(en,I),I!==Q&&Z(Qt,I)}function x(){return S.find(({name:k})=>e.active===k.value)}function G(k){return S.find(({index:N})=>(k??e.active)===N.value)}function V(){if(D.value===0)return;const{active:k}=e;if(Re(k)){const N=yo(k,0,D.value-1);return Z(e["onUpdate:active"],N),G(N)}}function q(){s.value=e.scrollable==="always"||S.length>=5}function j({element:k}){const N=k.value;N&&(e.layoutDirection==="horizontal"?(t.value=`${N.offsetWidth}px`,i.value=`${N.offsetLeft}px`):(n.value=`${N.offsetHeight}px`,o.value=`${N.offsetTop}px`))}function ye({element:k}){if(!s.value)return;const N=a.value,I=k.value;if(e.layoutDirection==="horizontal"){const Q=I.offsetLeft+I.offsetWidth/2-N.offsetWidth/2;lt(N,{left:Q,animation:ut})}else{const Q=I.offsetTop+I.offsetHeight/2-N.offsetHeight/2;lt(N,{top:Q,animation:ut})}}function W(){const k=x()||G()||V();!k||k.disabled.value||(q(),j(k),ye(k))}function de(){return ft(this,null,function*(){e.sticky&&v.value&&(yield v.value.resize())})}return{stickyComponent:v,indicatorWidth:t,indicatorHeight:n,indicatorX:i,indicatorY:o,indicatorPosition:b,localScrollable:s,scrollerEl:a,Transition:X,toSizeUnit:ls,n:Cs,classes:Ss,resize:W,resizeSticky:de,formatElevation:zo}}});Jt.render=ks;var Ve=Jt;We(Ve);Fe(Ve,Zt);var Ns=Ve;const $s="aioseo-broken-link-checker",Ts={emits:["changed"],setup(){const{processSaveChanges:e}=Nt();return{rootStore:re(),processSaveChanges:e}},components:{BaseButton:ge,SvgCaret:Bn,TransitionSlide:le,VarTab:ys,VarTabs:Ns},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:m("Save Changes",$s)}}},computed:{activeTab(){var e,t;return this.active?this.active:(e=this.$route)!=null&&e.name?this.$route.name:(t=this.tabs[0])==null?void 0:t.slug},filteredTabs(){return this.tabs.filter(e=>{var t;return e.slug!==(this.active?this.active:(t=this.$route)!=null&&t.name?this.$route.name:"")})}},methods:{maybeChangeTab(e){if(this.active){this.$emit("changed",e);return}const t=this.tabs.find(n=>n.slug===e);t&&this.$router.push(t.url)},getActiveTabName(){const e=this.tabs.find(t=>{var n;return t.slug===(this.active?this.active:(n=this.$route)!=null&&n.name?this.$route.name:"")});return e?e.name:""},maybeShowMobileMenu(){if(window.matchMedia("(max-width: 782px)").matches&&!this.disableMobile){this.showMobileMenu=!0;return}let e=0;this.calculateWidth=!0,this.$nextTick(()=>{e=this.$refs["tabs-scroller"].offsetWidth,this.calculateWidth=!1;let t=0;const n=this.$refs["tabs-button"];if(n){const i=n.querySelector(".aioseo-button");t=i?i.scrollWidth:0}if(e+t>this.$refs["aioseo-tabs"].offsetWidth){this.showMobileMenu=!0;return}this.showMobileMenu=!1})},createRipple(e){const t=e.currentTarget,n=document.createElement("span"),i=Math.max(t.clientWidth,t.clientHeight),o=i/2,s=t.getBoundingClientRect();n.style.width=n.style.height=`${i}px`,n.style.left=`${e.clientX-(s.left+o)}px`,n.style.top=`${e.clientY-(s.top+o)}px`,n.classList.add("ripple");const a=t.getElementsByClassName("ripple")[0];a&&a.remove(),t.appendChild(n)}},beforeMount(){window.addEventListener("resize",this.maybeShowMobileMenu)},async mounted(){this.$nextTick(()=>{this.maybeShowMobileMenu();const e=this.$refs["aioseo-tabs"],t=e.querySelector(".var-tab--active"),n=e.querySelector(".var-tabs__indicator");if(!t||!n)return;setTimeout(()=>{n.style.width==="0px"&&(n.style.width=`${t.offsetWidth}px`,n.style.transform=`translateX(${t.offsetLeft}px)`)},300),new MutationObserver(()=>{n.style.width==="0px"&&(n.style.width=`${t.offsetWidth}px`,n.style.transform=`translateX(${t.offsetLeft}px)`)}).observe(n,{attributes:!0});const o=e.querySelectorAll(".var-tab");o.length&&o.forEach(s=>{s.addEventListener("click",this.createRipple)})})},beforeUnmount(){window.removeEventListener("resize",this.maybeShowMobileMenu)}},Ls={class:"tabs-scroller",ref:"tabs-scroller"},Ps={class:"label"},Ms={key:0,class:"aioseo-mobile-tabs"},Os=l("span",{class:"tab-indicator"},null,-1),As={class:"tab-links"},Bs=["onClick"],Ds={key:1,class:"button-right",ref:"tabs-button"},Es={class:"tabs-extra"};function xs(e,t,n,i,o,s){const a=_("var-tab"),c=_("var-tabs"),r=_("svg-caret"),d=_("router-link"),f=_("transition-slide"),C=_("base-button");return u(),p("div",{class:B(["aioseo-tabs",{internal:n.internal,skinny:n.skinnyTabs}]),ref:"aioseo-tabs"},[bt(l("div",Ls,[g(c,{active:s.activeTab,onClick:s.maybeChangeTab,ref:"var-tabs"},{default:w(()=>[(u(!0),p(H,null,ee(n.tabs,(v,b)=>(u(),O(a,{name:v.slug,key:b},{default:w(()=>[E(e.$slots,"var-tab",{tab:v},()=>[E(e.$slots,"var-tab-icon",{tab:v}),l("span",Ps,h(v.name),1)])]),_:2},1032,["name"]))),128))]),_:3},8,["active","onClick"])],512),[[fn,!o.showMobileMenu||o.calculateWidth]]),o.showMobileMenu?(u(),p("div",Ms,[l("div",{class:"active-tab",onClick:t[1]||(t[1]=v=>o.showMobileTabs=!o.showMobileTabs)},[l("div",null,[L(h(s.getActiveTabName())+" ",1),g(r,{onClick:t[0]||(t[0]=T(v=>o.showMobileTabs=!o.showMobileTabs,["stop"])),class:B({rotated:!o.showMobileTabs})},null,8,["class"]),Os])]),g(f,{active:o.showMobileTabs,class:"tab-dropdown"},{default:w(()=>[l("div",As,[n.active?y("",!0):(u(!0),p(H,{key:0},ee(s.filteredTabs,(v,b)=>(u(),O(d,{key:b,to:v.url,onClick:t[2]||(t[2]=S=>o.showMobileTabs=!1)},{default:w(()=>[L(h(v.name),1)]),_:2},1032,["to"]))),128)),n.active?(u(!0),p(H,{key:1},ee(s.filteredTabs,(v,b)=>(u(),p("a",{href:"#",key:b,onClick:T(S=>e.$emit("changed",v.slug)&&(o.showMobileTabs=!1),["prevent"])},h(v.name),9,Bs))),128)):y("",!0)])]),_:1},8,["active"])])):y("",!0),n.showSaveButton?(u(),p("div",Ds,[E(e.$slots,"button",{},()=>[g(C,{type:"blue",size:"medium",loading:i.rootStore.loading,onClick:i.processSaveChanges},{default:w(()=>[L(h(o.strings.saveChanges),1)]),_:1},8,["loading","onClick"])])],512)):y("",!0),l("div",Es,[E(e.$slots,"extra")])],2)}const Is=M(Ts,[["render",xs]]),Se="aioseo-broken-link-checker",Rs=()=>{const e={notifications:m("Notifications",Se),newNotifications:m("New Notifications",Se),activeNotifications:m("Active Notifications",Se)},t=$(!1),n=ae(),i=P(()=>t.value?n.dismissedNotificationsCount:n.activeNotificationsCount),o=P(()=>t.value?n.dismissedNotifications:n.activeNotifications),s=P(()=>t.value?e.notifications:e.newNotifications);return{dismissed:t,notificationTitle:s,notifications:o,notificationsCount:i,strings:e}},zs=""+window.__aioseoDynamicImportPreload__("images/dannie-detective.C0gjJQEP.png"),Ws="aioseo-broken-link-checker",Fs={emits:["dismissed-notification"],setup(){const{button1Loading:e,button2Loading:t,getHref:n,getTagType:i,getTarget:o,processButtonClick:s}=Tn();return{button1Loading:e,button2Loading:t,getHref:n,getTagType:i,getTarget:o,notificationsStore:te(),processButtonClick:s}},components:{BaseButton:ge,SvgCircleCheck:Ie,SvgCircleClose:St,SvgCircleExclamation:Ln,SvgGear:Pn,TransitionSlide:le},props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{dismiss:m("Dismiss",Ws)}}},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 Mn(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"}}}},Hs={class:"icon"},Us={class:"body"},Vs={class:"title"},qs={class:"date"},js=["innerHTML"],Ys={class:"actions"};function Xs(e,t,n,i,o,s){const a=_("base-button"),c=_("transition-slide");return u(),O(c,{class:B(["aioseo-notification",[`aioseo-notification-${n.notification.notification_name}`]]),active:o.active},{default:w(()=>[l("div",null,[l("div",Hs,[(u(),O(Ee(s.getIcon),{class:B(n.notification.type)},null,8,["class"]))]),l("div",Us,[l("div",Vs,[l("div",null,h(n.notification.title),1),l("div",qs,h(s.getDate),1)]),l("div",{class:"notification-content",innerHTML:n.notification.content},null,8,js),l("div",Ys,[n.notification.button1_label&&n.notification.button1_action?(u(),O(a,{key:0,size:"small",type:s.getButtonType(1),class:"aioseo-button1",tag:i.getTagType(n.notification.button1_action),href:i.getHref(n.notification.button1_action),target:i.getTarget(n.notification.button1_action),onClick:t[0]||(t[0]=r=>i.processButtonClick(n.notification.button1_action,1)),loading:i.button1Loading},{default:w(()=>[L(h(n.notification.button1_label),1)]),_:1},8,["type","tag","href","target","loading"])):y("",!0),n.notification.button2_label&&n.notification.button2_action?(u(),O(a,{key:1,size:"small",type:s.getButtonType(2),class:"aioseo-button2",tag:i.getTagType(n.notification.button2_action),href:i.getHref(n.notification.button2_action),target:i.getTarget(n.notification.button2_action),onClick:t[1]||(t[1]=r=>i.processButtonClick(n.notification.button2_action,2)),loading:i.button2Loading},{default:w(()=>[L(h(n.notification.button2_label),1)]),_:1},8,["type","tag","href","target","loading"])):y("",!0),n.notification.dismissed?y("",!0):(u(),p("a",{key:2,href:"#",class:"dismiss",onClick:t[2]||(t[2]=T((...r)=>s.processDismissNotification&&s.processDismissNotification(...r),["stop","prevent"]))},h(o.strings.dismiss),1))])])])]),_:1},8,["class","active"])}const Ks=M(Fs,[["render",Xs]]),A="aioseo-broken-link-checker",Gs={emits:["dismissed-notification"],setup(){return{licenseStore:di(),notificationsStore:te(),optionsStore:pe(),rootStore:Y()}},components:{SvgCircleCheck:Ie,TransitionSlide:le},props:{notification:{type:Object,required:!0}},data(){return{step:1,active:!0,strings:{dismiss:m("Dismiss",A),yesILoveIt:m("Yes, I love it!",A),notReally:m("Not Really...",A),okYouDeserveIt:m("Ok, you deserve it",A),nopeMaybeLater:m("Nope, maybe later",A),giveFeedback:m("Give feedback",A),noThanks:m("No thanks",A)}}},computed:{title(){switch(this.step){case 2:return m("That's Awesome!",A);case 3:return m("Help us improve",A);default:return F(m("Are you enjoying %1$s?",A),"BLC")}},content(){switch(this.step){case 2:return m("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?",A);case 3:return F(m("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?",A),"Broken Link Checker");default:return""}},feedbackUrl(){const e=this.optionsStore.options.general&&this.licenseStore.licenseKey?this.licenseStore.licenseKey:"",t=this.rootStore.isPro?"pro":"lite";return J.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")}}},Zs={class:"icon"},Js={class:"body"},Qs={class:"title"},er=["innerHTML"],tr={class:"actions"};function nr(e,t,n,i,o,s){const a=_("svg-circle-check"),c=_("base-button"),r=_("transition-slide");return u(),O(r,{class:"aioseo-notification",active:o.active},{default:w(()=>[l("div",null,[l("div",Zs,[g(a,{class:"success"})]),l("div",Js,[l("div",Qs,[l("div",null,h(s.title),1)]),l("div",{class:"notification-content",innerHTML:s.content},null,8,er),l("div",tr,[o.step===1?(u(),p(H,{key:0},[g(c,{size:"small",type:"blue",onClick:t[0]||(t[0]=T(d=>o.step=2,["stop"]))},{default:w(()=>[L(h(o.strings.yesILoveIt),1)]),_:1}),g(c,{size:"small",type:"gray",onClick:t[1]||(t[1]=T(d=>o.step=3,["stop"]))},{default:w(()=>[L(h(o.strings.notReally),1)]),_:1})],64)):y("",!0),o.step===2?(u(),p(H,{key:1},[g(c,{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]=d=>s.processDismissNotification(!1))},{default:w(()=>[L(h(o.strings.okYouDeserveIt),1)]),_:1}),g(c,{size:"small",type:"gray",onClick:t[3]||(t[3]=T(d=>s.processDismissNotification(!0),["stop","prevent"]))},{default:w(()=>[L(h(o.strings.nopeMaybeLater),1)]),_:1})],64)):y("",!0),o.step===3?(u(),p(H,{key:2},[g(c,{tag:"a",href:s.feedbackUrl,size:"small",type:"blue",target:"_blank",rel:"noopener noreferrer",onClick:t[4]||(t[4]=d=>s.processDismissNotification(!1))},{default:w(()=>[L(h(o.strings.giveFeedback),1)]),_:1},8,["href"]),g(c,{size:"small",type:"gray",onClick:t[5]||(t[5]=T(d=>s.processDismissNotification(!1),["stop","prevent"]))},{default:w(()=>[L(h(o.strings.noThanks),1)]),_:1})],64)):y("",!0),n.notification.dismissed?y("",!0):(u(),p("a",{key:3,class:"dismiss",href:"#",onClick:t[6]||(t[6]=T(d=>s.processDismissNotification(!1),["stop","prevent"]))},h(o.strings.dismiss),1))])])])]),_:1},8,["active"])}const ir=M(Gs,[["render",nr]]),R="aioseo-broken-link-checker",or={emits:["dismissed-notification"],setup(){return{notificationsStore:ae()}},components:{BaseButton:ge,SvgCircleCheck:Ie,TransitionSlide:le},props:{notification:{type:Object,required:!0}},data(){return{active:!0,strings:{dismiss:m("Dismiss",R),yesILoveIt:m("Yes, I love it!",R),notReally:m("Not Really...",R),okYouDeserveIt:m("Ok, you deserve it",R),nopeMaybeLater:m("Nope, maybe later",R),giveFeedback:m("Give feedback",R),noThanks:m("No thanks",R)}}},computed:{title(){return F(m("Are you enjoying %1$s?",R),"BLC")},content(){return F(m("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?",R),"<strong>Broken Link Checker</strong>")}},methods:{processDismissNotification(e=!1){this.active=!1,this.notificationsStore.dismissNotifications([this.notification.slug+(e?"-delay":"")]),this.$emit("dismissed-notification")}}},sr={class:"icon"},rr={class:"body"},ar={class:"title"},cr=["innerHTML"],lr={class:"actions"};function ur(e,t,n,i,o,s){const a=_("svg-circle-check"),c=_("base-button"),r=_("transition-slide");return u(),O(r,{class:"aioseo-notification",active:o.active},{default:w(()=>[l("div",null,[l("div",sr,[g(a,{class:"success"})]),l("div",rr,[l("div",ar,[l("div",null,h(s.title),1)]),l("div",{class:"notification-content",innerHTML:s.content},null,8,cr),l("div",lr,[g(c,{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]=d=>s.processDismissNotification(!1))},{default:w(()=>[L(h(o.strings.okYouDeserveIt),1)]),_:1}),g(c,{size:"small",type:"gray",onClick:t[1]||(t[1]=T(d=>s.processDismissNotification(!0),["stop","prevent"]))},{default:w(()=>[L(h(o.strings.nopeMaybeLater),1)]),_:1}),n.notification.dismissed?y("",!0):(u(),p("a",{key:0,class:"dismiss",href:"#",onClick:t[2]||(t[2]=T(d=>s.processDismissNotification(!1),["stop","prevent"]))},h(o.strings.dismiss),1))])])])]),_:1},8,["active"])}const dr=M(or,[["render",ur]]),ke="aioseo-broken-link-checker",fr={components:{SvgCircleClose:St,TransitionSlide:le},props:{notification:{type:Object,required:!0}},data(){return{links:J,active:!0,strings:{title:F(m("%1$s Addons Not Configured Properly",ke),"BLC"),learnMore:m("Learn More",ke),upgrade:m("Upgrade",ke)}}},computed:{content(){let e="<ul>";return this.notification.addons.forEach(t=>{e+="<li><strong>BLC - "+t.name+"</strong></li>"}),e+="</ul>",this.notification.message+e}}},mr={class:"icon"},pr={class:"body"},hr={class:"title"},vr=["innerHTML"],gr={class:"actions"};function br(e,t,n,i,o,s){const a=_("svg-circle-close"),c=_("base-button"),r=_("transition-slide");return u(),O(r,{class:"aioseo-notification",active:o.active},{default:w(()=>[l("div",null,[l("div",mr,[g(a,{class:"error"})]),l("div",pr,[l("div",hr,[l("div",null,h(o.strings.title),1)]),l("div",{class:"notification-content",innerHTML:s.content},null,8,vr),l("div",gr,[g(c,{size:"small",type:"green",tag:"a",href:o.links.utmUrl("notification-unlicensed-addons"),target:"_blank"},{default:w(()=>[L(h(o.strings.upgrade),1)]),_:1},8,["href"])])])])]),_:1},8,["active"])}const _r=M(fr,[["render",br]]),Ne="aioseo-broken-link-checker",yr={emits:["toggle-dismissed","dismissed-notification"],components:{CoreNotification:Ks,NotificationsReview:ir,NotificationsReview2:dr,NotificationsUnlicensedAddons:_r},props:{dismissedCount:{type:Number,required:!0},notifications:{type:Array,required:!0}},data(){return{dannieDetectiveImg:zs,strings:{greatScott:m("Great Scott! Where'd they all go?",Ne),noNewNotifications:m("You have no new notifications.",Ne),seeDismissed:m("See Dismissed Notifications",Ne)}}},methods:{getAssetUrl:fi}},wr={class:"aioseo-notification-cards"},Cr={key:"no-notifications"},Sr={class:"no-notifications"},kr=["src"],Nr={class:"great-scott"},$r={class:"no-new-notifications"};function Tr(e,t,n,i,o,s){return u(),p("div",wr,[n.notifications.length?(u(!0),p(H,{key:0},ee(n.notifications,a=>(u(),O(Ee(a.component?a.component:"core-notification"),{key:a.slug,notification:a,ref_for:!0,ref:"notification",onDismissedNotification:t[0]||(t[0]=c=>e.$emit("dismissed-notification"))},null,40,["notification"]))),128)):y("",!0),n.notifications.length?y("",!0):(u(),p("div",Cr,[E(e.$slots,"no-notifications",{},()=>[l("div",Sr,[l("img",{alt:"Dannie the Detective",src:s.getAssetUrl(o.dannieDetectiveImg)},null,8,kr),l("div",Nr,h(o.strings.greatScott),1),l("div",$r,h(o.strings.noNewNotifications),1),n.dismissedCount?(u(),p("a",{key:0,href:"#",class:"dismiss",onClick:t[1]||(t[1]=T(a=>e.$emit("toggle-dismissed"),["stop","prevent"]))},h(o.strings.seeDismissed),1)):y("",!0)])])]))])}const Lr=M(yr,[["render",Tr]]),mt="aioseo-broken-link-checker",Pr={setup(){const{dismissed:e,notificationTitle:t,notifications:n,notificationsCount:i,strings:o}=Rs();return{composableStrings:o,dismissed:e,notificationsStore:ae(),notificationTitle:t,notifications:n,notificationsCount:i}},components:{CoreNotificationCards:Lr,SvgClose:kt},data(){return{maxNotifications:Number.MAX_SAFE_INTEGER,currentPage:0,totalPages:1,strings:li(this.composableStrings,{dismissedNotifications:m("Dismissed Notifications",mt),dismissAll:m("Dismiss All",mt)})}},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,n=document.querySelector("#wp-admin-bar-aioseo-notifications");if(n&&(n===t||n.contains(t)))return;const i=document.querySelector("#toplevel_page_aioseo .wp-first-item"),o=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");if(i&&i.contains(o)&&(i===t||i.contains(t)))return;const s=this.$refs["aioseo-notifications"];s&&(s===t||s.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 n=Array.from(document.querySelectorAll(".notification-menu .aioseo-notification")).map(o=>{const s=window.getComputedStyle?getComputedStyle(o,null):o.currentStyle,a=parseInt(s.marginTop)||0,c=parseInt(s.marginBottom)||0;return o.offsetHeight+a+c}),i=document.querySelector(".notification-menu .aioseo-notification-cards");if(i&&0<n.length){let o=0,s=0;for(const a of n){if(s+=a,s>i.offsetHeight)break;o++}this.maxNotifications=o||1,isFinite(o)&&0<o&&(this.totalPages=Math.ceil(n.length/o))}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"),n=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");t&&n&&t.addEventListener("mousedown",this.notificationsLinkClick)}},Mr={class:"aioseo-notifications",ref:"aioseo-notifications"},Or={key:0,class:"notification-menu"},Ar={class:"notification-header"},Br={class:"new-notifications"},Dr={class:"dismissed-notifications"},Er={key:0,class:"notification-footer"},xr={class:"pagination"},Ir=["onClick"],Rr={key:0,class:"dismiss-all"};function zr(e,t,n,i,o,s){const a=_("svg-close"),c=_("core-notification-cards");return u(),p("div",Mr,[g(X,{name:"notifications-slide"},{default:w(()=>[i.notificationsStore.showNotifications?(u(),p("div",Or,[l("div",Ar,[l("span",Br,"("+h(i.notificationsCount)+") "+h(i.notificationTitle),1),l("div",Dr,[!i.dismissed&&i.notificationsStore.dismissedNotificationsCount?(u(),p("a",{key:0,href:"#",onClick:t[0]||(t[0]=T(r=>i.dismissed=!0,["stop","prevent"]))},h(o.strings.dismissedNotifications),1)):y("",!0),i.dismissed&&i.notificationsStore.dismissedNotificationsCount?(u(),p("a",{key:1,href:"#",onClick:t[1]||(t[1]=T(r=>i.dismissed=!1,["stop","prevent"]))},h(o.strings.activeNotifications),1)):y("",!0)]),l("div",{onClick:t[2]||(t[2]=T((...r)=>i.notificationsStore.toggleNotifications&&i.notificationsStore.toggleNotifications(...r),["stop"]))},[g(a)])]),g(c,{class:"notification-cards",notifications:s.filteredNotifications,dismissedCount:i.notificationsStore.dismissedNotificationsCount,onToggleDismissed:t[3]||(t[3]=r=>i.dismissed=!i.dismissed)},null,8,["notifications","dismissedCount"]),o.totalPages>1||!i.dismissed&&i.notifications.length?(u(),p("div",Er,[l("div",xr,[o.totalPages>1?(u(!0),p(H,{key:0},ee(s.pages,(r,d)=>(u(),p("div",{class:B(["page-number",{active:r.number===1+o.currentPage}]),key:d,onClick:T(f=>o.currentPage=r.number-1,["stop"])},h(r.number),11,Ir))),128)):y("",!0)]),i.dismissed?y("",!0):(u(),p("div",Rr,[i.notifications.length?(u(),p("a",{key:0,href:"#",class:"dismiss",onClick:t[4]||(t[4]=T((...r)=>s.processDismissAllNotifications&&s.processDismissAllNotifications(...r),["stop","prevent"]))},h(o.strings.dismissAll),1)):y("",!0)]))])):y("",!0)])):y("",!0)]),_:1}),g(X,{name:"notifications-fade"},{default:w(()=>[i.notificationsStore.showNotifications?(u(),p("div",{key:0,onClick:t[5]||(t[5]=(...r)=>i.notificationsStore.toggleNotifications&&i.notificationsStore.toggleNotifications(...r)),class:"overlay"})):y("",!0)]),_:1})],512)}const Wr=M(Pr,[["render",zr]]),Fr="aioseo-broken-link-checker",Hr={setup(){const{processSaveChanges:e}=Nt();return{allowed:xn,notificationsStore:ae(),rootStore:re(),processSaveChanges:e}},components:{BaseButton:ge,CoreHeader:to,CoreMainTabs:Is,CoreNotifications:Wr,GridContainer:At},props:{showTabs:{type:Boolean,default(){return!0}},showSaveButton:{type:Boolean,default(){return!0}},excludeTabs:{type:Array,default(){return[]}}},data(){return{tabsKey:0,strings:{saveChanges:m("Save Changes",Fr)}}},watch:{excludeTabs(){this.tabsKey+=1}},computed:{tabs(){return this.$router.options.routes.filter(e=>e.name&&e.meta&&e.meta.name).filter(e=>this.allowed(e.meta.access)).filter(e=>!this.excludeTabs.includes(e.name)).map(e=>({slug:e.name,name:e.meta.name,url:{name:e.name},access:e.meta.access}))},shouldShowSaveButton(){var e;if((e=this.$route)!=null&&e.name){const t=this.$router.options.routes.find(n=>n.name===this.$route.name);if(t&&t.meta&&t.meta.hideSaveButton)return!1}return this.showSaveButton}},mounted(){Dn().notifications&&(this.notificationsStore.showNotifications||(this.notificationsStore.showNotifications=!this.notificationsStore.showNotifications),setTimeout(()=>{En("notifications")},500))}},Ur={class:"aioseo-main"},Vr={key:1,class:"save-changes"};function qr(e,t,n,i,o,s){const a=_("core-notifications"),c=_("core-header"),r=_("core-main-tabs"),d=_("base-button"),f=_("grid-container");return u(),p("div",null,[g(a),l("div",Ur,[g(c),g(f,null,{default:w(()=>[n.showTabs?(u(),O(r,{key:o.tabsKey,tabs:s.tabs,showSaveButton:s.shouldShowSaveButton},null,8,["tabs","showSaveButton"])):y("",!0),g(X,{name:"route-fade",mode:"out-in"},{default:w(()=>[E(e.$slots,"default")]),_:3}),s.shouldShowSaveButton?(u(),p("div",Vr,[g(d,{type:"blue",size:"medium",loading:i.rootStore.loading,onClick:i.processSaveChanges},{default:w(()=>[L(h(o.strings.saveChanges),1)]),_:1},8,["loading","onClick"])])):y("",!0)]),_:3})])])}const aa=M(Hr,[["render",qr]]);export{aa as C};
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка