Files
aaPanel/BTPanel/static/vite/js/app-components-legacy.js
T
2026-07-24 16:25:43 +08:00

8 lines
200 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){System.register([`./rolldown-runtime-legacy.js?v=1784873523001`,`./vendor-utils-legacy.js?v=1784873523001`,`./vendor-vue-legacy.js?v=1784873523001`,`./vendor-naive-legacy.js?v=1784873523001`,`./vendor-legacy.js?v=1784873523001`,`./app-legacy.js?v=1784873523001`,`./vendor-pdf-legacy.js?v=1784873523001`,`./app-base-legacy.js?v=1784873523001`,`./vendor-pay-legacy.js?v=1784873523001`],function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,T,ma,E,D,O,k,ha,A,j,ga,_a,va,ya,ba,M,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,N,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,P,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,F,ss,cs,I,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,L,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,R,Fs,Is,Ls,Rs,zs,Bs,Vs,z,Hs,Us,Ws,Gs,Ks,B,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,V,Cc,wc,H,Tc,Ec,U,W,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,G,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,K,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,q,il,al,J,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Y,X,Tl,El;function Dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ol(e){if(Array.isArray(e))return e}function kl(e){if(Array.isArray(e))return Dl(e)}function Al(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Z(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Al(a,r,i,o,s,`next`,e)}function s(e){Al(a,r,i,o,s,`throw`,e)}o(void 0)})}}function jl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ml(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Nl(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Pl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){jl(e,t,n[t])})}return e}function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ll(e,t){return t=t==null?{}:t,Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Il(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Rl(e,t){return Ol(e)||Nl(e,t)||Bl(e,t)||Pl()}function zl(e){return kl(e)||Ml(e)||Bl(e)||Fl()}function $(e,t){var n,r,i,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype),s=Object.defineProperty;return s(o,`next`,{value:c(0)}),s(o,`throw`,{value:c(1)}),s(o,`return`,{value:c(2)}),typeof Symbol==`function`&&s(o,Symbol.iterator,{value:function(){return this}}),o;function c(e){return function(t){return l([e,t])}}function l(s){if(n)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=s[0]&2?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if((i=a.trys,!(i=i.length>0&&i[i.length-1]))&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(s[0]===6&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Bl(e,t){if(e){if(typeof e==`string`)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dl(e,t)}}function Vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,r=null,i=!1,a=0,o=function(){if(!i){if(n!==0&&a>=n){s();return}r=window.setTimeout(function(){return Z(function(){return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),[4,e()];case 1:return t.sent(),a=0,[3,4];case 2:return t.sent(),a++,[3,4];case 3:return o(),[7];case 4:return[2]}})})()},t*1e3)}},s=function(){i=!0,r&&(clearTimeout(r),r=null)};return js(function(){s()}),{loop:o,clearTimer:s}}function Hl(e,t){for(var n=e.split(`.`),r=t.split(`.`),i=Math.max(n.length,r.length),a=0;a<i;a++){var o=parseInt(n[a]||`0`,10),s=parseInt(r[a]||`0`,10);if(o>s)return!0;if(o<s)return!1}return!1}function Ul(e){return!(e!=null&&e.install)||!e.version||!e.required_version?!1:Hl(e.required_version,e.version)}function Wl(e){return Z(function(){var t,n,r;return $(this,function(i){switch(i.label){case 0:return[4,To({sName:e},!0)];case 1:return t=i.sent().message,!I(t)||(n=Yc(t),r=t.versions[n],!r)?[2,null]:[2,{row:{name:t.name,title:t.title,m_version:r.m_version,version:r.version,update_msg:r.update_msg,create_time:r.create_time},softInfo:t}]}})})()}function Gl(e){return qc.value[e]?!1:(qc.value[e]=!0,!0)}function Kl(e){return Z(function(){var t;return $(this,function(n){switch(n.label){case 0:switch(sc(e),t=[],e){case`toShell`:Gl(e)&&t.push(Oo());break;case`site`:Gl(e)&&t.push(vo(e));break;case`database`:Gl(e)&&(t.push(Za(`mysql`)),t.push(vo(e)));break;case`enterpriseBackup`:Gl(e)&&t.push(Za());break;case`logs`:Gl(e)&&t.push(vo(e));break;case`path`:Gl(e)&&t.push(vo(e));break;case`webshell`:Gl(e)&&t.push(vo(e));break;case`sync_time`:Gl(e)&&t.push(oo());break;case`full_backup`:Gl(e)&&t.push(vo(e));break}return[4,Promise.all(t)];case 1:return n.sent(),[2]}})})()}function ql(e){var t=wl.find(function(t){return t.value===e});return t?t.label:void 0}function Jl(e){return T(function(){var t=``,n=``.concat(Ur(e.hour),`:`,Ur(e.minute));switch(e.time){case`day`:t=wc(`Daily at {0}`,[n]);break;case`day-n`:t=``.concat(wc(`Crontab.Planned.index_31`),` `,e.day,` `,wc(`Crontab.arrange.index_33`),` `,n,` `,wc(`Crontab.Planned.index_30`));break;case`hour`:t=wc(`Crontab.Planned.index_32`,[e.minute]);break;case`week`:t=wc(`Crontab.Planned.index_36`,[ql(e.week),n]);break;case`month`:t=wc(`Crontab.Planned.index_37`,[e.day,n]);break;case`minute-n`:t=wc(`Crontab.Planned.index_39`,[e.minute]);break;case`hour-n`:t=``.concat(wc(`Crontab.Planned.index_41`),` `,e.hour,` `,wc(`Crontab.Planned.index_42`),` `,e.minute,` `,wc(`Crontab.Planned.index_33`));break;case`second-n`:t=wc(`Crontab.Planned.index_95`,[e.second]);break;case`once`:t=wc(`One-time at {0}`,[e.costom_time]);break}return t})}function Yl(e){var t=Kc.find(function(t){return t.value===e});return t==null?void 0:t.tips}function Xl(e){var t=Kc.find(function(t){return t.value===e});return t?t.forbidden:!1}function Zl(e,t,n,r,i){J({title:`Manually parse TXT records`,width:700,minHeight:400,data:{manualParse:e,site_id:t,domains:n,callback:r,tips:i},component:ys})}function Ql(e){J({title:`Application failed`,content:function(){return jo(`pre`,{style:{padding:`10px`,color:`#fff`,maxHeight:`300px`,overflow:`auto`,backgroundColor:`#000`,whiteSpace:`pre-wrap`,wordBreak:`break-word`}},JSON.stringify(e,null,2))},width:480})}function $l(e){J({title:`Application failed`,width:1e3,component:Jr,data:{error:e}})}function eu(){return{key:`name`,title:bc(`Site.TableRow.index_19`),render:function(e){return j(Fi,{href:`http://`.concat(e.name,`:`,e.port),target:`_blank`},{default:function(){return[e.name]}})}}}function tu(){return{key:`port`,title:bc(`Site.TableRow.index_16`),width:100}}function nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bc(`Site.TableOP.index_9`);return{key:`action`,title:bc(`Public.Table.Action`),width:80,align:`right`,render:function(){return j(`span`,{class:`text-default`},[e])}}}function ru(e){var t=e.delDomain;return{key:`action`,title:bc(`Public.Table.Action`),width:80,align:`right`,render:function(e){return j(Ii,{options:[{label:bc(`Public.Btn.Del`),onClick:function(){rl({title:``.concat(bc(`Site.Batch.index_12`),`[`,e.name,`]`),content:bc(`Site.Batch.index_13`),onConfirm:function(n){var r=n.hide;return Z(function(){return $(this,function(n){switch(n.label){case 0:return[4,t(e)];case 1:return n.sent(),r(),[2]}})})()}})}}]},null)}}}function iu(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!fs(e)}function au(e,t){var n=Fi,r=Gi;return R(),D(r,null,{default:Y(function(){return[E(`li`,rt,G(e.$t(`SSL.SiteSSL.index_1`)),1),E(`li`,null,G(e.$t(`SSL.SiteSSL.index_2`)),1),E(`li`,null,G(e.$t(`SSL.SiteSSL.index_3`)),1),E(`li`,null,[A(G(e.$t(`SSL.SiteSSL.index_4`))+` `,1),j(n,{href:`https://www.aapanel.com/docs/Function/BusinessCertificate.html`,target:`_blank`},{default:Y(function(){return[A(G(e.$t(`SSL.Business.index_20`)),1)]}),_:1})])]}),_:1})}return e({$:void 0,$i:void 0,$n:void 0,$r:void 0,$t:void 0,A:void 0,Ai:void 0,An:void 0,Ar:void 0,At:void 0,B:void 0,Bi:void 0,Bn:void 0,Br:void 0,Bt:void 0,C:ru,Ci:void 0,Cn:void 0,Cr:void 0,Ct:void 0,D:void 0,Di:void 0,Dn:void 0,Dr:void 0,Dt:void 0,E:tu,Ei:void 0,En:void 0,Er:void 0,Et:void 0,F:void 0,Fi:void 0,Fn:void 0,Fr:void 0,Ft:void 0,G:void 0,Gi:void 0,Gn:void 0,Gr:void 0,Gt:void 0,H:void 0,Hi:void 0,Hn:void 0,Hr:void 0,Ht:ql,I:void 0,Ii:void 0,In:void 0,Ir:void 0,It:void 0,J:void 0,Ji:void 0,Jn:void 0,Jr:Ul,Jt:Yl,K:void 0,Ki:void 0,Kn:void 0,Kr:void 0,Kt:void 0,L:void 0,Li:void 0,Ln:void 0,Lr:void 0,Lt:void 0,M:void 0,Mi:void 0,Mn:void 0,Mr:void 0,Mt:void 0,N:void 0,Ni:void 0,Nn:void 0,Nr:void 0,Nt:void 0,O:Ql,Oi:void 0,On:void 0,Or:void 0,Ot:void 0,P:void 0,Pi:void 0,Pn:void 0,Pr:void 0,Pt:void 0,Q:void 0,Qi:void 0,Qn:void 0,Qr:void 0,Qt:void 0,R:void 0,Ri:void 0,Rn:void 0,Rr:void 0,Rt:void 0,S:void 0,Si:void 0,Sn:void 0,Sr:void 0,St:void 0,T:nu,Ti:void 0,Tn:void 0,Tr:void 0,Tt:void 0,U:void 0,Ui:void 0,Un:void 0,Ur:void 0,Ut:void 0,V:void 0,Vi:void 0,Vn:void 0,Vr:void 0,Vt:void 0,W:void 0,Wi:void 0,Wn:void 0,Wr:void 0,Wt:void 0,X:void 0,Xi:void 0,Xn:void 0,Xr:void 0,Xt:void 0,Y:void 0,Yi:void 0,Yn:void 0,Yr:void 0,Yt:void 0,Z:void 0,Zi:void 0,Zn:void 0,Zr:void 0,Zt:void 0,_:void 0,_i:void 0,_n:void 0,_r:void 0,_t:void 0,a:void 0,aa:void 0,ai:void 0,an:Kl,ar:void 0,at:void 0,b:void 0,bi:void 0,bn:void 0,br:void 0,bt:void 0,c:void 0,ci:void 0,cn:void 0,cr:void 0,ct:void 0,d:void 0,di:void 0,dn:void 0,dr:void 0,dt:void 0,ea:void 0,ei:void 0,en:void 0,er:void 0,et:void 0,f:void 0,fi:void 0,fn:void 0,fr:void 0,ft:void 0,g:void 0,gi:void 0,gn:void 0,gr:void 0,gt:void 0,h:void 0,hi:void 0,hn:void 0,hr:void 0,ht:void 0,i:void 0,ia:void 0,ii:void 0,in:void 0,ir:void 0,it:void 0,j:void 0,ji:void 0,jn:void 0,jr:void 0,jt:void 0,k:Zl,ki:void 0,kn:void 0,kr:void 0,kt:void 0,l:void 0,li:void 0,ln:void 0,lr:void 0,lt:void 0,m:void 0,mi:void 0,mn:void 0,mr:void 0,mt:void 0,n:void 0,na:void 0,ni:void 0,nn:void 0,nr:void 0,nt:void 0,o:void 0,oi:void 0,on:void 0,or:void 0,ot:void 0,p:void 0,pi:void 0,pn:void 0,pr:void 0,pt:void 0,q:void 0,qi:void 0,qn:void 0,qr:Wl,qt:Xl,r:void 0,ra:void 0,ri:void 0,rn:void 0,rr:void 0,rt:void 0,s:void 0,si:void 0,sn:void 0,sr:void 0,st:void 0,t:void 0,ta:Vl,ti:void 0,tn:void 0,tr:void 0,tt:void 0,u:void 0,ui:void 0,un:void 0,ur:void 0,ut:void 0,v:void 0,vi:void 0,vn:void 0,vr:void 0,vt:void 0,w:eu,wi:void 0,wn:void 0,wr:void 0,wt:void 0,x:void 0,xi:void 0,xn:void 0,xr:void 0,xt:void 0,y:void 0,yi:void 0,yn:void 0,yr:void 0,yt:void 0,z:void 0,zi:void 0,zn:void 0,zr:void 0,zt:void 0}),{setters:[function(e){ve=e.r,ye=e.a},function(e){_=e.mn,ge=e.gn,zr=e.A,ca=e.jt,T=e.yn,E=e.bn,D=e.xn,O=e.Sn,k=e.Cn,ha=e.wn,A=e.En,j=e.Dn,ba=e.On,M=e.kn,Va=e.Ft,jo=e.jn,e.dr,e.Nn,e.on,e.Pr,F=e.nn,ss=e.Pn,ls=e.mr,fs=e.Fn,xs=e.In,Ss=e.Ln,ws=e.Rn,Os=e.qr,ks=e.Jr,As=e.Bn,js=e.Vn,Ms=e.Wn,Ns=e.Gn,R=e.qn,Bs=e.Jn,Vs=e._r,z=e.yr,Ws=e.Yn,Gs=e.Xn,Js=e.Zn,Ys=e.$n,dc=e.br,fc=e.xr,G=e.Zr,Ic=e.Rt,Lc=e.Sr,Rc=e.wr,K=e.Er,$c=e.tr,sl=e.nr,fl=e.rr,hl=e.ir,bl=e.ln,xl=e.un,Cl=e.ar,Y=e.sr,X=e.cr},function(e){xa=e.f,vc=e.p,q=e.l,cl=e.o},function(e){n=e.St,a=e.ht,s=e.ut,c=e.lt,l=e.G,u=e.U,d=e.z,f=e.J,p=e.Tt,m=e.I,h=e.P,g=e.F,v=e.N,y=e.j,b=e.yt,x=e.bt,S=e.k,C=e.xt,ee=e.$,te=e.wt,ne=e.w,re=e.Z,ie=e.X,ae=e.Q,ce=e.et,le=e.y,ue=e.L,de=e._,fe=e.h,pe=e.g,me=e.m,he=e.Ct,_e=e.Y,za=e.rn,gl=e.r},function(e){qs=e.c},function(e){o=e.t,Lr=e.If,Hr=e.c,$r=e.rr,Ni=e.Ff,Fi=e.mn,Ii=e.pn,Ri=e.xf,Gi=e.ln,Yi=e.f,aa=e.g,oa=e._,sa=e.Jd,pa=e.tp,ma=e.Ea,Ta=e._r,Ea=e.b,Oa=e.C,ka=e.Yd,Pa=e.np,Ba=e.Jf,Ja=e.P,Ya=e.ap,$a=e.Vf,no=e.sp,ro=e.tf,ao=e.of,so=e.Zr,co=e.z,lo=e.H,uo=e.W,fo=e.K,po=e.J,mo=e.Y,go=e.$r,_o=e.oi,wo=e.On,To=e.Zs,Ao=e.i,Mo=e.qf,P=e.Lf,cs=e.pp,I=e.gp,ds=e._p,L=e.Pf,Ts=e.Vo,Fs=e.Sn,Hs=e.up,Ks=e.nt,B=e.Tf,Zs=e.Di,nc=e.Uf,ac=e.vf,Jc=e.Sc,Yc=e.xa,Xc=e.st,Zc=e.ma,Qc=e.Zt,tl=e.Of,nl=e.kf,rl=e.Af,il=e.Sa,al=e.Oa,J=e.jf,ol=e.Mf,pl=e.Tn,ml=e.Da,_l=e.Ta,Sl=e.ct},function(e){be=e.n,os=e.r},function(e){Li=e.u,Ui=e.d},function(e){gs=e.t,_s=e.n}],execute:function(){xe=document.createElement(`style`),xe.textContent=`.progress-box[data-v-28a73ad0]{border:1px solid var(--site-task-progress-border)}.iconfont[data-v-eaa99c82]{background:0 0;width:auto;height:auto}.bt-table--empty-header[data-v-a68fc059] .n-data-table-tbody,.bt-table--empty-header[data-v-a68fc059] .n-data-table-base-table-body{display:none}.bt-table__empty[data-v-a68fc059]{border:1px solid var(--color-border);border-top:0;border-radius:0 0 4px 4px;justify-content:center;align-items:center;min-height:120px;margin-top:-1px;display:flex}.progress-box[data-v-57b0edf4]{border:1px solid var(--site-task-progress-border)}.select-box[data-v-e78f55b0]{border:1px solid var(--color-border);border-radius:10px;width:100%;padding:10px;transition:background-color .2s}.select-box[data-v-e78f55b0]:hover{background-color:var(--color-bg-2)}.execution-time-row[data-v-9e179572]{border:1px solid var(--color-border);border-radius:8px;align-items:center;gap:12px;padding:12px;display:flex}.execution-time-row+.execution-time-row[data-v-9e179572]{margin-top:10px}.execution-index[data-v-9e179572]{color:#8a8f99;background:#f3f4f6;border-radius:50%;flex:0 0 28px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.execution-index--primary[data-v-9e179572]{color:var(--color-primary);background:#e7f7ed}.execution-cycle[data-v-9e179572]{white-space:nowrap;flex:none}.second[data-v-4488e53e] .n-form-item-feedback--error{position:absolute}.backup-scheduled__notice-card[data-v-3f95ab8b]{background-color:var(--site-backup-timer-bg);border-radius:8px;justify-content:space-between;align-items:center;margin-top:18px;padding:12px;display:flex}.backup-scheduled__notice-dot[data-v-3f95ab8b]{background-color:var(--color-primary);border-radius:50%;flex:0 0 6px;width:6px;height:6px}.backup-scheduled__grid[data-v-3f95ab8b]{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.backup-plugin-card[data-v-3f95ab8b]{background-color:var(--site-backup-timer-bg);border-radius:8px;flex-direction:column;justify-content:space-between;min-height:160px;padding:16px;display:flex}.backup-plugin-card__icon[data-v-3f95ab8b]{object-fit:contain;width:22px;height:22px}.wp-backup-guide{z-index:3000;pointer-events:none;position:fixed;top:0;bottom:0;left:0;right:0}.wp-backup-guide__mask{pointer-events:auto;background:0 0;animation:.18s ease-out both wp-backup-guide-mask-in;position:absolute;top:0;bottom:0;left:0;right:0}.wp-backup-guide__target{z-index:1;pointer-events:none;border:3px solid rgba(16,185,129,.72);border-radius:8px;transition:left .18s,top .18s,width .18s,height .18s,border-radius .18s;animation:.24s ease-out both wp-backup-guide-target-in,1.8s ease-in-out infinite wp-backup-guide-target-pulse;position:fixed;box-shadow:0 0 0 1px rgba(16,185,129,.4),0 0 24px rgba(16,185,129,.35),0 0 0 9999px rgba(3,7,18,.82)}.wp-backup-guide__popover{z-index:2;color:#d7dde8;pointer-events:auto;background:#1f2430;border:1px solid rgba(148,163,184,.2);border-radius:10px;padding:20px;transition:left .18s,top .18s;animation:.22s cubic-bezier(.2,.8,.2,1) both wp-backup-guide-popover-in;position:fixed;box-shadow:0 20px 60px rgba(0,0,0,.35)}.wp-backup-guide__popover:before{content:"";background:#1f2430;border-top:1px solid rgba(148,163,184,.2);border-left:1px solid rgba(148,163,184,.2);width:16px;height:16px;position:absolute;left:50%;transform:translate(-50%)rotate(45deg)}.wp-backup-guide__popover.is-step-1:before,.wp-backup-guide__popover.is-step-2:before{top:-9px}.wp-backup-guide__popover.is-step-3:before{bottom:-9px;transform:translate(-50%)rotate(225deg)}.wp-backup-guide__close{color:#94a3b8;cursor:pointer;background:0 0;border:0;font-size:18px;line-height:1;transition:color .16s,transform .16s;position:absolute;top:16px;right:16px}.wp-backup-guide__close:hover{color:#f8fafc;transform:rotate(90deg)scale(1.08)}.wp-backup-guide__title{color:#f8fafc;align-items:center;gap:8px;padding-right:24px;font-size:15px;font-weight:700;display:flex}.wp-backup-guide__dot{background:#20c997;border-radius:50%;flex:0 0 10px;width:10px;height:10px;animation:1.6s ease-out infinite wp-backup-guide-dot-pulse;box-shadow:0 0 rgba(32,201,151,.45)}.wp-backup-guide__content{color:#aeb7c7;margin-top:14px;font-size:13px;line-height:1.65}.wp-backup-guide__footer{color:#94a3b8;border-top:1px solid rgba(148,163,184,.12);justify-content:space-between;align-items:center;margin-top:18px;padding-top:14px;font-size:12px;display:flex}.wp-backup-guide__actions{align-items:center;gap:10px;display:flex}@keyframes wp-backup-guide-mask-in{0%{opacity:0}to{opacity:1}}@keyframes wp-backup-guide-target-in{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes wp-backup-guide-target-pulse{0%,to{box-shadow:0 0 0 1px rgba(16,185,129,.4),0 0 24px rgba(16,185,129,.35),0 0 0 9999px rgba(3,7,18,.82)}50%{box-shadow:0 0 0 1px rgba(16,185,129,.58),0 0 34px rgba(16,185,129,.52),0 0 0 9999px rgba(3,7,18,.82)}}@keyframes wp-backup-guide-popover-in{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes wp-backup-guide-dot-pulse{0%{box-shadow:0 0 rgba(32,201,151,.45)}70%{box-shadow:0 0 0 8px rgba(32,201,151,0)}to{box-shadow:0 0 rgba(32,201,151,0)}}@media (prefers-reduced-motion:reduce){.wp-backup-guide__mask,.wp-backup-guide__target,.wp-backup-guide__popover,.wp-backup-guide__dot{animation:none}.wp-backup-guide__target,.wp-backup-guide__popover,.wp-backup-guide__close{transition:none}}.site-backup-new[data-v-6b27e819]{position:relative}.site-backup-new__guide-btn[data-v-6b27e819]{color:var(--color-primary);position:absolute;top:16px;right:16px}.site-backup-new__guide-dot[data-v-6b27e819]{background:var(--color-primary);border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px rgba(16,185,129,.12)}.install-box[data-v-aac05997]{background:var(--install-box-bg);z-index:100;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.install-box .install-desc[data-v-aac05997]{background:var(--install-desc-bg);color:var(--install-box-text-color);border-radius:4px;justify-content:center;align-items:center;min-width:450px;min-height:60px;padding:16px;font-size:13px;font-weight:700;display:flex;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.circle[data-v-3771031c]{background-color:var(--color-primary) ;border-radius:9999px;width:10px;height:10px;margin-right:5px;display:inline-block}.placeholder[data-v-9059602f]{color:#999;cursor:text;flex-direction:column;width:100%;height:100%;padding:12px 16px 0;line-height:18px;display:flex;position:absolute;top:0;left:0}.error-box[data-v-8ac8e215]{background-color:var(--domains-lets-ssl-apply-bg) ;border:1px solid var(--domains-lets-ssl-apply-border);border-radius:4px;margin:20px;padding:20px}.label-text[data-v-8ac8e215]{color:#666;width:125px;font-weight:600;display:inline-block}pre[data-v-8ac8e215]{color:#c5c5c5;border:1px solid #666}.panel-ssl-progress[data-v-8b526699]{min-width:340px;padding:24px 24px 22px}.panel-ssl-progress .progress-item[data-v-8b526699]{cursor:pointer;gap:16px;display:flex}.panel-ssl-progress .progress-item+.progress-item[data-v-8b526699]{margin-top:16px}.panel-ssl-progress .progress-item .progress-label[data-v-8b526699]{min-width:120px}.n-alert[data-v-60ba1713]{--n-font-size:12px}.cert-info[data-v-60ba1713]{align-items:center;height:24px;display:flex}.cert-info .cert-label[data-v-60ba1713]{color:var(--site-config-ssl-label);font-weight:700}.cert-info .cert-value[data-v-60ba1713]{flex:1;width:0;margin-left:4px}.number-control[data-v-0b876ba0]{flex-wrap:wrap;align-items:center;display:flex}.number-control .minus[data-v-0b876ba0],.number-control .plus[data-v-0b876ba0]{border:2px solid var(--domains-business-ssl-buy-bg-border);cursor:pointer;border-radius:8px;width:35px;height:35px;position:relative}.number-control .minus.is-disable[data-v-0b876ba0],.number-control .plus.is-disable[data-v-0b876ba0]{background:var(--domains-business-ssl-count-disable);border-color:var(--domains-lets-ssl-upload-border);cursor:not-allowed}.number-control .minus[data-v-0b876ba0]:before,.number-control .minus[data-v-0b876ba0]:after,.number-control .plus[data-v-0b876ba0]:before,.number-control .plus[data-v-0b876ba0]:after{content:"";background:#555;position:absolute}.number-control .minus[data-v-0b876ba0]:hover,.number-control .plus[data-v-0b876ba0]:hover{--un-bg-opacity:1;background-color:rgba(32,165,58,var(--un-bg-opacity)) ;--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity)) }.number-control .minus[data-v-0b876ba0]:hover:before,.number-control .minus[data-v-0b876ba0]:hover:after,.number-control .plus[data-v-0b876ba0]:hover:before,.number-control .plus[data-v-0b876ba0]:hover:after{background:#fff}.number-control .minus[data-v-0b876ba0]:before{width:14px;height:2px;top:50%;left:50%;transform:translate(-50%,-50%)}.number-control .plus[data-v-0b876ba0]:before{width:14px;height:2px}.number-control .plus[data-v-0b876ba0]:after{width:2px;height:14px}.number-control .plus[data-v-0b876ba0]:before,.number-control .plus[data-v-0b876ba0]:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.number-control .number-input[data-v-0b876ba0]{background:var(--domains-business-ssl-buy-bg);text-align:center;--un-text-opacity:1;width:50px;height:35px;color:rgba(32,165,58,var(--un-text-opacity)) ;border:2px solid #20a53a;border-radius:8px;margin-left:2px;margin-right:2px}.total-price[data-v-a98a5ede]{align-items:center;height:110px;padding-left:20px;padding-right:20px;box-shadow:0 0 10px rgba(184,184,184,.25)}.option-item[data-v-8e0f720f]{cursor:pointer;text-align:center;border:2px solid var(--domains-business-ssl-buy-bg-border);border-radius:8px;padding-left:20px;padding-right:20px;line-height:32px;position:relative}.option-item.is-active[data-v-8e0f720f]{background:var(--domains-business-ssl-buy-bg);--un-border-opacity:1;border-width:2px;border-color:rgba(32,165,58,var(--un-border-opacity))}.option-item.is-active[data-v-8e0f720f]:after{content:"";border-bottom:25px solid #20a53a;border-left:25px solid transparent;border-radius:8px;position:absolute;bottom:-1px;right:-2px}.option-item.is-active[data-v-8e0f720f]:before{content:"";z-index:1;border-bottom:2px solid #fff;border-left:2px solid #fff;width:12px;height:6px;position:absolute;bottom:5px;right:0;transform:rotate(-45deg)}.option-item .item-title[data-v-8e0f720f]{border-bottom:1px solid var(--domains-business-ssl-buy-bg-border);margin:0 10px;font-weight:700}.option-item .item-tag[data-v-8e0f720f]{--un-bg-opacity:1;background-color:rgba(255,96,0,var(--un-bg-opacity)) ;--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity)) ;border-radius:0 9px;padding:2px 6px;line-height:15px;position:absolute;top:-10px;right:-2px}.n-alert[data-v-8e0f720f]{--n-content-text-color:#db2828;--n-icon-color:#db2828;--n-color:#fbeaea}.n-alert[data-v-13ad8e59]{--n-font-size:12px}.cert-info[data-v-13ad8e59]{align-items:center;height:24px;display:flex}.cert-info .cert-label[data-v-13ad8e59]{color:var(--site-config-ssl-label);font-weight:700}.cert-info .cert-value[data-v-13ad8e59]{flex:1;width:0;margin-left:4px}
/*$vite$:1*/`,document.head.appendChild(xe),e(`na`,function(e){return e.split(` `).map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(` `)}),e(`aa`,function(e,t){var n=``;return Object.entries(t).forEach(function(e){var t=Rl(e,2),r=t[0],i=t[1];n+=``.concat(r,`=`,encodeURIComponent(``.concat(i)),`&`)}),n=n.replace(/&$/,``),/\?$/.test(e)?e+n:e.replace(/\/?$/,`?`)+n}),e(`ia`,function(e){try{return JSON.parse(e),!0}catch(e){return!1}}),e(`ra`,to=function(e){return Number.isNaN(Ic(e))?0:Ic(e)}),F(),F(),et={class:`p-16px`},sn={class:`mb-16px`},En={class:`progress-box p-10px rounded-8px`},ai=M({__name:`backup-logs`,props:{fetchFn:{type:Function},callback:{type:Function}},setup:function(e){var t=q().t,r=e,i=z(!1),a=z([]),o=[{key:`site_name`,title:t(`Site.TableRow.index_1`),ellipsis:{tooltip:!0}},{key:`msg`,title:t(`Site.DelSite.index_10`),ellipsis:{tooltip:!0},render:function(e){return j(`span`,{class:e.status===0?`text-primary`:`text-error`},[e.msg])}}],s=T(function(){return a.value.findIndex(function(e){return e.status===0})+1}),c=T(function(){var e;return(e=a.value[s.value])==null?void 0:e.status}),u={0:`process`,1:`finish`,"-1":`error`,2:`wait`},d=function(e){return u[e]},f=function(){return Z(function(){var e,n,o;return $(this,function(s){switch(s.label){case 0:return[4,r.fetchFn()];case 1:return e=s.sent(),n=e.message,I(n)&&(n.status===1?(g(),i.value=!0,(o=r.callback)==null||o.call(r),L.success(t(`WP.Task.index_4`))):i.value=!1,a.value=Object.values(n).filter(function(e){return I(e)})),[2]}})})()},p=Vl(f,1),h=p.loop,g=p.clearTimer;return Ms(function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,f()];case 1:return e.sent(),i.value||h(),[2]}})})()}),function(e,t){var r=n,u=de,f=m,p=l,h=fe,g=pe;return R(),k(`div`,et,[E(`div`,sn,[K(i)?(R(),D(r,{key:0,type:`success`,title:e.$t(`WP.Task.index_4`)},null,8,[`title`])):(R(),D(r,{key:1,type:`default`,title:e.$t(`WP.Task.index_5`)},null,8,[`title`]))]),E(`div`,En,[j(g,{vertical:``,current:K(s),status:d(K(c)),size:`small`},{default:Y(function(){return[(R(!0),k(_,null,Ws(K(a),function(e,t){return R(),D(h,{key:t,status:d(e.status),description:e.error||e.ps},ha({title:Y(function(){return[j(f,{class:`flex-nowrap! items-center!`},{default:Y(function(){return[E(`span`,null,G(e.title),1),X(j(u,{size:`small`},null,512),[[xl,e.status===0]])]}),_:2},1024)]}),_:2},[e.result_list?{name:`default`,fn:Y(function(){return[E(`div`,null,G(e.error||e.ps),1),j(p,{class:`mt-8px`,data:e.result_list,columns:o,"max-height":200},null,8,[`data`])]}),key:`0`}:void 0]),1032,[`status`,`description`])}),128))]}),_:1},8,[`current`,`status`])])])}}}),ii=ve({default:function(){return ri}}),ri=Lr(ai,[[`__scopeId`,`data-v-28a73ad0`]]),Mr=P.global,Sc=Mr.t,e(`$i`,eo=function(){return B.post(`/mod/nodejs/com/get_general_progress`)}),e(`ea`,Es=function(e){return B.post(`/mod/nodejs/com/nodejs_backup`,e)}),Ds=function(e){return B.post(`/mod/nodejs/com/nodejs_restore`,e,{requestOptions:{loading:Sc(`Node.index_89`),successMessage:!0}})},F(),Zo=M({__name:`index`,props:{iconName:{type:String,default:``},iconSize:{type:String,default:`16`}},setup:function(e){return function(t,n){var r=m;return R(),D(r,{class:`items-center`,size:6},{default:Y(function(){return[X(E(`i`,{class:Os([`iconfont`,`icon-`.concat(e.iconName)]),style:ks({fontSize:K(za)(e.iconSize)})},null,6),[[xl,e.iconName]]),Gs(t.$slots,`default`,{},void 0,!0)]}),_:3})}}}),e(`Qi`,Ro=Lr(Zo,[[`__scopeId`,`data-v-eaa99c82`]])),F(),os(),Xo=M({__name:`index`,props:{id:{}},setup:function(e){var n=e,r=function(){J({width:574,minHeight:400,data:{entryId:n.id},component:ba(function(){return be(function(){return t.import(`./feature-Feedback-legacy.js?v=1784873523001`).then(function(e){return e.r})},void 0)})})};return function(e,t){var n=Fi,i=Ro;return R(),D(i,{"icon-name":`demand`},{default:Y(function(){return[j(n,{onClick:r},{default:Y(function(){return[A(G(e.$t(`Component.Feedback.index_7`)),1)]}),_:1})]}),_:1})}}}),e(`Zi`,Ra=Xo),F(),$e={key:1,class:`ml-4px text-desc`},Yo=M({__name:`index`,props:{feedback:{type:Boolean,default:!1},email:{type:Boolean,default:!1},feedbackId:{}},setup:function(e){var t=!!fl().toolsLeft,n=!!fl().toolsRight,r=!!fl().pageLeft||!!fl().pageRight;return function(i,a){var o=m;return R(),k(`div`,null,[t||n?(R(),D(o,{key:0,class:`items-center mb-12px`,justify:`space-between`},{default:Y(function(){return[j(o,{class:`items-center`,size:8},{default:Y(function(){return[Gs(i.$slots,`toolsLeft`),e.feedback?(R(),D(Ra,{key:0,id:e.feedbackId},null,8,[`id`])):O(``,!0),e.email?(R(),k(`div`,$e,G(i.$t(`Component.Pay.index_8`,[`support@aapanel.com`])),1)):O(``,!0)]}),_:3}),j(o,{class:`items-center`,size:8},{default:Y(function(){return[Gs(i.$slots,`toolsRight`)]}),_:3})]}),_:3})):O(``,!0),Gs(i.$slots,`table`),K(r)?(R(),D(o,{key:1,class:`items-center mt-12px`,justify:`space-between`},{default:Y(function(){return[E(`div`,null,[Gs(i.$slots,`pageLeft`)]),j(o,null,{default:Y(function(){return[Gs(i.$slots,`pageRight`)]}),_:3})]}),_:3})):O(``,!0)])}}}),e(`Xi`,Bi=Yo),F(),Qe={class:`ml-8px text-14px`},Jo=M({__name:`index`,props:xs({storeKey:{default:``},pageSizes:{default:function(){return[10,20,50,100]}},showTotal:{type:Boolean,default:!0},showSizePicker:{type:Boolean,default:!0},showQuickJumper:{type:Boolean,default:!0},onUpdatePageSize:{}},{page:{},pageModifiers:{},pageSize:{},pageSizeModifiers:{}}),emits:xs([`refresh`],[`update:page`,`update:pageSize`]),setup:function(e,t){var n=t.emit,r=e,i=n,a=T(function(){var e=r.storeKey;return e?``.concat(e,`-page`):``}),o=sl(e,`page`),s=sl(e,`pageSize`),c=function(e){o.value=e,i(`refresh`)},l=function(e){var t;o.value=1,s.value=e,(t=r.onUpdatePageSize)==null||t.call(r,to(e)),u(e),ws(function(){i(`refresh`)})},u=function(e){a.value&&nc(a.value,String(e))};return function(){if(a.value){var e=$a(a.value);if(e){var t;s.value=to(e),(t=r.onUpdatePageSize)==null||t.call(r,to(e))}}}(),function(t,n){var r=ee;return R(),D(r,Ss(t.$attrs,{page:o.value,"onUpdate:page":[n[0]||(n[0]=function(e){return o.value=e}),c],"page-size":s.value,"onUpdate:pageSize":[n[1]||(n[1]=function(e){return s.value=e}),l],"show-size-picker":e.showSizePicker,"show-quick-jumper":e.showQuickJumper,"page-sizes":e.pageSizes,"display-order":[`pages`,`size-picker`,`quick-jumper`]}),ha({_:2},[e.showTotal?{name:`suffix`,fn:Y(function(e){var n=e.itemCount;return[E(`span`,Qe,G(t.$t(`Public.Table.Page.index_4`,[n])),1)]}),key:`0`}:void 0]),1040,[`page`,`page-size`,`show-size-picker`,`show-quick-jumper`,`page-sizes`])}}}),e(`Yi`,Hi=Jo),F(),Ze={class:`flex justify-center w-42px`},on={class:`ml-8px`},qo=M({__name:`index`,props:xs({data:{default:function(){return[]}},rowKey:{default:`id`},options:{default:function(){return[]}},selectWidth:{default:140}},{checkedRowKeys:{default:function(){return[]}},checkedRowKeysModifiers:{}}),emits:[`update:checkedRowKeys`],setup:function(e){var t=e,n={enable:`i-famicons:play-circle-outline`,disable:`i-famicons:pause-circle-outline`,start:`i-famicons:play-circle-outline`,stop:`i-famicons:pause-circle-outline`,restart:`<BtIcon name="base-restart"></BtIcon>`,category:`i-material-symbols:category`,delete:`i-weui:delete-outlined`,del:`i-weui:delete-outlined`,backup:`i-material-symbols:backup-outline-rounded`,expired:`i-covid:quarantine-place-time-calendar-1`,php:`i-ic:baseline-php`,webserver:`i-material-symbols:network-node`,sync:`i-material-symbols:cloud-sync`,kill:`i-mdi:remove-circle-off-outline`,pause:`i-material-symbols:stop-circle-outline-rounded`,unpause:`i-ri:device-recover-line`,restart_panel:`i-cbi:power-panel-logo`,restart_service:`<BtIcon name="base-restart"></BtIcon>`,execute:`<BtIcon name="base-batch_execute"></BtIcon>`},r=function(e){var r,i,a=t.options.find(function(t){return t.key===e});return(r=(i=a==null?void 0:a.icon)==null?n[e]:i)==null?`i-material-symbols:action-key`:r},i=function(e){var t=r(e.value),n=t.includes(`<BtIcon`),i=null;if(n){var a;i=jo(Ni,{name:((a=t.match(/name="([^"]+)"/))==null?void 0:a[1])||``,size:16,class:`flex-shrink-0`})}else i=jo(`i`,{class:t+` text-18px flex-shrink-0`});return jo(`div`,{class:`flex items-center gap-8px w-full`},[i,e.label])},o=sl(e,`checkedRowKeys`),s=t.rowKey,l=ds(s)?function(e){return e[s]}:s,u=T({get:function(){return o.value.length>0&&o.value.length===t.data.length},set:function(e){e?o.value=t.data.map(function(e){return l(e)}):o.value=[]}}),d=T(function(){return t.data.length===0}),f=T(function(){return o.value.length>0&&o.value.length<t.data.length}),p=z(null),h=T(function(){return t.options.map(function(e){return{label:e.label,value:e.key}})}),g=T(function(){return o.value.length===0}),v=T(function(){return g.value||p.value===null}),y=T(function(){return t.data.filter(function(e){return o.value.includes(l(e))})}),b=function(){var e=t.options,n=!0,r=!1,i=void 0;try{for(var a=e[Symbol.iterator](),o;!(n=(o=a.next()).done);n=!0){var s=o.value;if(s.key===p.value)switch(s.type){case`confirm`:tl(Ll(Q({},s.confirm),{data:y.value}));break;default:var c;(c=s.onBatch)==null||c.call(s,y.value);break}}}catch(e){r=!0,i=e}finally{try{!n&&a.return!=null&&a.return()}finally{if(r)throw i}}},x=function(){var e=t.options[0];switch(e.type){case`confirm`:tl(Ll(Q({},e.confirm),{data:y.value}));break;default:var n;(n=e.onBatch)==null||n.call(e,y.value);break}};return function(t,n){var r=c,s=ce,l=a,y=m;return R(),D(y,{class:`bt-table-batch items-center`,size:0},{default:Y(function(){return[E(`div`,Ze,[j(r,{checked:K(u),"onUpdate:checked":n[0]||(n[0]=function(e){return ls(u)?u.value=e:null}),disabled:K(d),indeterminate:K(f)},null,8,[`checked`,`disabled`,`indeterminate`])]),e.options.length>1?(R(),k(_,{key:0},[E(`div`,{class:`min-w-160px`,style:ks({width:K(za)(e.selectWidth)})},[j(s,{value:K(p),"onUpdate:value":n[1]||(n[1]=function(e){return ls(p)?p.value=e:null}),options:K(h),disabled:K(g),"render-label":i,"consistent-menu-width":!1,placeholder:t.$t(`Component.Batch.index_1`)},null,8,[`value`,`options`,`disabled`,`placeholder`])],4),E(`div`,on,[j(l,{type:K(v)?`default`:`primary`,disabled:K(v),onClick:b},{default:Y(function(){return[A(G(t.$t(`Public.Btn.Execute`)),1)]}),_:1},8,[`type`,`disabled`])])],64)):O(``,!0),e.options.length===1?(R(),D(l,{key:1,disabled:K(g),type:K(g)?`default`:`primary`,onClick:x},{default:Y(function(){return[E(`span`,null,G(e.options[0].label),1),X(E(`span`,null,G(t.$t(`Component.Batch.index_2`,[o.value.length])),513),[[xl,o.value.length>0]])]}),_:1},8,[`disabled`,`type`])):O(``,!0)]}),_:1})}}}),e(`Ji`,zi=qo),F(),Xe={key:0,class:`bt-table__empty`},La=`__bt_empty_header__`,Ko=M({__name:`index`,props:xs({data:{default:function(){return[]}},rowKey:{default:`id`},loading:{type:Boolean,default:!1},loadingNum:{default:10},isPage:{type:Boolean,default:!1},maxHeight:{},columns:{default:function(){return[]}},rowProps:{},storeKey:{},showEmptyHeader:{type:Boolean}},{page:{default:function(){return{page:1,pageSize:10}}},pageModifiers:{}}),emits:[`update:page`],setup:function(e){var t=e,n=sl(e,`page`),r=q().t,i=Rc(t),a=i.columns,o=i.data,s=function(){return ca(Lc(a.value))},c=function(){var e=s();return e.forEach(function(e){e.type!==`selection`&&(e.ellipsis&&delete e.ellipsis,e.render=function(){return j(le,null,null)})}),e},u=function(){return t.loading?c():s()},d=z(u()),f=function(){var e=s();return e.forEach(function(e){if(e.type===`selection`){e.disabled=function(){return!0};return}e.render=function(){return null}}),e},m=T(function(){return!!(t.showEmptyHeader&&!t.loading&&C.value.length===0&&d.value.length>0)}),h=T(function(){return{"bt-table--empty-header":m.value}}),g=T(function(){return[jl({},La,La)]}),_=T(function(){return m.value?g.value:C.value}),v=T(function(){return m.value?f():d.value}),y=function(){return La},b=T(function(){var e=t.rowKey;return ds(e)?function(t){var n=t[e];return n==null||Number.isNaN(n)?String(t):n}:e}),x=T(function(){return m.value?y:b.value}),S=T(function(){var e=t.storeKey;return e?``.concat(e,`-page`):``}),C=z([]),w=fl(),ee=Vs({style:{width:`100%`},showSizePicker:!0,showQuickJumper:!0,pageSizes:[10,20,50,100],prefix:function(){var e;return(e=w.pagePrefix)==null?void 0:e.call(w)},suffix:function(e){return j(`span`,{class:`text-13px text-default`},[r(`Public.Table.Page.index_4`,[e.itemCount])])},onChange:function(e){n.value.page=e},onUpdatePageSize:function(e){n.value.page=1,n.value.pageSize=e,S.value&&nc(S.value,String(e))}});(function(){if(S.value){var e=$a(S.value);e&&(n.value.pageSize=to(e))}})();var te=T(function(){return Ll(Q({},ee),{page:n.value.page,pageSize:n.value.pageSize})});return Cl(function(){return o.value},function(e){t.loading||(C.value=e)},{deep:!0}),Cl(function(){return t.loading},function(e){if(e){if(d.value=c(),o.value.length===0){C.value=[];for(var n=0;n<t.loadingNum;n++){var r={},i=t.rowKey;r[ds(i)?i:`id`]=n,C.value.push(r)}}}else C.value=[],d.value=s(),ws(function(){C.value=o.value})},{immediate:!0}),Cl(function(){return t.columns},function(){d.value=u()},{deep:!0}),function(t,n){var r=l,i=p;return R(),k(`div`,{class:Os([`bt-table`,K(h)])},[j(r,Ss(t.$attrs,{data:K(_),"max-height":e.maxHeight,"row-key":K(x),columns:K(v),pagination:e.isPage?K(te):!1,"row-props":K(m)?void 0:e.rowProps}),{empty:Y(function(){return[Gs(t.$slots,`empty`,{},void 0,!0)]}),default:Y(function(){return[Gs(t.$slots,`pagePrefix`,{},void 0,!0)]}),_:3},16,[`data`,`max-height`,`row-key`,`columns`,`pagination`,`row-props`]),K(m)?(R(),k(`div`,Xe,[Gs(t.$slots,`empty`,{},function(){return[j(i)]},!0)])):O(``,!0)],2)}}}),e(`qi`,Vi=Lr(Ko,[[`__scopeId`,`data-v-a68fc059`]])),Or=P.global,xc=Or.t,cc=function(e){return B.post(`/site?action=set_backup_config`,e,{requestOptions:{loading:xc(`Component.Pay.index_12`),successMessage:!0}})},Ga=function(e){return B.post(`/site?action=get_backup_cron_status`,e)},F(),os(),i={full:`Full Backup`,file:`Only Site File`,sql:`Only Database Backup`},r={local:`Local Server`,ftp:`FTP Storage`,aws_s3:`AWS S3`,gdrive:`Google Drive`,gcloud_storage:`Google Cloud Storage`},qa=function(e){return i[e]||e},Ka=function(e){return e?r[e]||e:``},w=[{key:`ftp`,descKey:`Back up and package your website or database to FTP storage.`},{key:`aws_s3`,descKey:`Package and back up your website or database to AWS S3. Supports S3-compatible protocols.`},{key:`gdrive`,descKey:`Back up your website and database directly to Google Drive.`},{key:`gcloud_storage`,descKey:`Back up your website or database to Google Cloud Storage.`}],us=function(e){return e!==`local`&&Object.prototype.hasOwnProperty.call(r,e)},zc=function(e){if(!us(e.value))return null;var t=w.find(function(t){return t.key===e.value});return{key:e.value,name:e.name,description:(t==null?void 0:t.descKey)||``,setup:e.install,config:e.config,task:`1`}},el=function(){var e=z([]),t=z([]),n=z(void 0);return{plugins:e,storageOptions:t,cron:n,fetchPlugins:function(r){return Z(function(){var i;return $(this,function(a){switch(a.label){case 0:return[4,Ga({site_id:r})];case 1:return i=a.sent().message,I(i)?(n.value=i.cron,Array.isArray(i.orderOpt)?(t.value=i.orderOpt,e.value=i.orderOpt.map(zc).filter(Boolean),[2]):(t.value=[],e.value=[],[2])):[2]}})})()}}},Is=function(e,t,n,r){return Z(function(){return $(this,function(i){return J({title:P.global.t(`Configure instant backup task`),width:500,minHeight:200,data:{site_type:e,backupData:t,storageOptions:n,callback:r},footer:!0,component:ba(function(){return be(function(){return Promise.resolve().then(function(){return yi})},void 0)})}),[2]})})()},F(),Si=M({__name:`backup-table`,props:{siteId:{},onRestore:{type:Function},backupRef:{},onChanged:{type:Function},searchKey:{},nameKey:{},downloadPathKey:{},downloadNameKey:{},downloadPath:{type:Function},downloadName:{type:Function},getListApi:{type:Function},deleteApi:{type:Function},timeRender:{type:Function},typeTitle:{},typeRender:{type:Function}},setup:function(e,t){var n=t.expose,r=q().t,i=e,a=z([]),o=Vs(jl({p:1,limit:10},i.searchKey||`search`,i.siteId)),s=al(),c=s.loading,l=s.setLoading,u=function(e,t,n){return e[t||n]},d=function(e){switch(e){case`Google Drive`:return`gdrive`;case`Google Cloud`:return`gcloud_storage`;case`Google Cloud Storage`:return`gcloud_storage`;default:return e}},f=function(e){return String(u(e,i.nameKey,`name`)||e.filename||``)},p=function(e){var t;return((t=i.downloadPath)==null?void 0:t.call(i,e))||String(u(e,i.downloadPathKey,`filename`)||``)},m=function(e){var t;return((t=i.downloadName)==null?void 0:t.call(i,e))||String(u(e,i.downloadNameKey,`name`)||f(e))},h=function(e){var t;return((t=i.timeRender)==null?void 0:t.call(i,e))||e.addtime},g=function(e){var t;return((t=i.typeRender)==null?void 0:t.call(i,e))||(e.backup_type===1?r(`Full Backup`):r(`Only Site File`))},_=function(e){return e.bak_method?Ka(e.bak_method):`-`},v=function(e){var t;return((t=i.getListApi)==null?void 0:t.call(i,e))||go(e)},y=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n;return((n=i.deleteApi)==null?void 0:n.call(i,e,t))||Ta({id:e.id},t)},b=ml([{type:`selection`,width:40},{key:String(i.nameKey||`name`),title:r(`Site.TableRow.index_22`),ellipsis:{tooltip:!0}},{key:`size`,title:r(`Site.TableRow.index_23`),width:90,render:function(e){return Ya(e.size)}},{key:`addtime`,title:r(`Site.TableRow.index_25`),width:150,render:function(e){return h(e)}},{key:`backup_type`,title:i.typeTitle||r(`Backup type`),width:120,render:function(e){return g(e)}},{key:`bak_method`,title:r(`Storage path`),width:130,ellipsis:{tooltip:!0},render:function(e){return _(e)}},Qc({width:190,options:function(e){return[{label:r(`Site.TableOP.index_4`),show:e.bak_method===`local`,onClick:function(){i.onRestore(e)}},{label:r(`WP.Task.index_2`),show:e.bak_method!==`local`,onClick:function(){pl({title:_(e),name:d(e.bak_method),admin:!0})}},{label:r(`Site.TableOP.index_5`),show:e.bak_method===`local`,onClick:function(){Pa(p(e),m(e))}},{label:r(`Public.Btn.Del`),onClick:function(){rl({title:r(`Site.Batch.index_18`),content:``.concat(r(`Site.Batch.index_19`),` [`,f(e),`]`),onConfirm:function(t){var n=t.hide;return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,y(e)];case 1:return t.sent(),[4,w()];case 2:return t.sent(),i.onChanged?[4,i.onChanged()]:[3,4];case 3:return t.sent(),[3,5];case 4:i.backupRef.backup_count--,t.label=5;case 5:return n(),[2]}})})()}})}}]}})]),x=b.table,S=b.columns,C=[{key:`del`,type:`confirm`,label:r(`Site.Batch.index_20`),confirm:{title:r(`Site.Batch.index_21`),desc:r(`Site.Batch.index_11`),columns:[S.value[1]],api:function(e){return y(e,!1)},done:function(e){return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,w()];case 1:return t.sent(),i.onChanged?[4,i.onChanged()]:[3,3];case 2:return t.sent(),[3,4];case 3:i.backupRef.backup_count-=e.length,t.label=4;case 4:return[2]}})})()}}}],w=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),l(!0),[4,v(Lc(o))];case 1:return e=t.sent().message,I(e)?(x.data=cs(e.data)?e.data:[],x.total=no(e.page)):(x.data=[],x.total=0),[3,3];case 2:return a.value=[],l(!1),[7];case 3:return[2]}})})()};return n({getList:w}),As(function(){w()}),function(e,t){var n=Vi,r=zi,i=Hi,s=Bi;return R(),D(s,null,{toolsLeft:Y(function(){return[Gs(e.$slots,`toolsLeft`)]}),table:Y(function(){return[j(n,{"checked-row-keys":K(a),"onUpdate:checkedRowKeys":t[0]||(t[0]=function(e){return ls(a)?a.value=e:null}),loading:K(c),"loading-num":1,"max-height":340,data:K(x).data,columns:K(S)},null,8,[`checked-row-keys`,`loading`,`data`,`columns`])]}),pageLeft:Y(function(){return[j(r,{"checked-row-keys":K(a),"onUpdate:checkedRowKeys":t[1]||(t[1]=function(e){return ls(a)?a.value=e:null}),data:K(x).data,options:C},null,8,[`checked-row-keys`,`data`])]}),pageRight:Y(function(){return[j(i,{page:K(o).p,"onUpdate:page":t[2]||(t[2]=function(e){return K(o).p=e}),"page-size":K(o).limit,"onUpdate:pageSize":t[3]||(t[3]=function(e){return K(o).limit=e}),"item-count":K(x).total,onRefresh:w},null,8,[`page`,`page-size`,`item-count`])]}),_:3})}}}),xi=Si,F(),Go=M({__name:`index`,props:{model:{},rules:{},labelWidth:{default:`126`},labelPlacement:{default:`left`}},setup:function(e,t){var n=t.expose,r=z(null);return n({validate:function(){var e;return(e=r.value)==null?void 0:e.validate()},restoreValidation:function(){var e;return(e=r.value)==null?void 0:e.restoreValidation()}}),function(t,n){var i=g;return R(),D(i,Ss(t.$attrs,{ref_key:`formRef`,ref:r,model:e.model,rules:e.rules,"label-width":e.labelWidth,"label-placement":e.labelPlacement,"show-require-mark":!1}),{default:Y(function(){return[Gs(t.$slots,`default`)]}),_:3},16,[`model`,`rules`,`label-width`,`label-placement`])}}}),e(`Ki`,Mi=Go),F(),Ye={class:`p-20px`},an={class:`text-warning`},tc=M({__name:`restore-type`,props:{onRefresh:{type:Function,default:function(){}},showDb:{type:Boolean,default:!1}},setup:function(e,t){var n=t.expose,r=q().t,i=e,a=T(function(){var e=[{label:r(`Logs.Soft.index_3`),value:`file`},{label:r(`Public.Btn.Config`),value:`conf`}];return i.showDb&&e.push({label:r(`Site.PHP.add_site_16`),value:`db`}),e}),o=z(null),l=Vs({value:[`file`]}),u={value:{type:`array`,required:!0,trigger:`change`,message:r(`Please select at least one restore type`)}},d=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,(e=o.value)==null?void 0:e.validate()];case 1:return t.sent(),i.onRefresh(l.value),[2]}})})()},f=T(function(){return i.showDb&&l.value.includes(`db`)});return n({onConfirm:d}),function(e,t){var n=c,r=s,i=h,d=Mi,p=Gi;return R(),k(`div`,Ye,[j(d,{ref_key:`formRef`,ref:o,rules:u,model:K(l)},{default:Y(function(){return[j(i,{label:`Restore type`,path:`value`,"show-require-mark":!0},{default:Y(function(){return[j(r,{value:K(l).value,"onUpdate:value":t[0]||(t[0]=function(e){return K(l).value=e}),class:`flex gap-16px`},{default:Y(function(){return[(R(!0),k(_,null,Ws(K(a),function(e){return R(),D(n,{key:e.value,value:e.value,label:e.label},null,8,[`value`,`label`])}),128))]}),_:1},8,[`value`])]}),_:1})]}),_:1},8,[`model`]),j(p,null,{default:Y(function(){return[t[1]||(t[1]=E(`li`,null,` File: Restore website files `,-1)),t[2]||(t[2]=E(`li`,null,` Config: Restore website configuration files `,-1)),X(E(`li`,an,` Database: Restoring the website database will overwrite the existing database `,512),[[xl,K(f)]])]}),_:1})])}}}),ec=tc,F(),os(),Je={class:`p-20px`},ci=M({__name:`backup-node`,props:{row:{}},setup:function(e){var t=Ts(),n=e.row,r=q().t,i=ba(function(){return be(function(){return Promise.resolve().then(function(){return wi})},void 0)}),o=ba(function(){return be(function(){return Promise.resolve().then(function(){return ii})},void 0)}),s=z(!1),c=function(){return Z(function(){return $(this,function(e){return J({title:`Backup type`,width:450,footer:!0,data:{onRefresh:u},component:i}),[2]})})()},l=function(){t.setRefresh(!0)},u=function(e){return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,Es({id:String(n.id),backup_type:String(e)})];case 1:return t.sent(),d(r(`Site.Batch.index_7`),function(){return Z(function(){return $(this,function(e){return _(),l(),[2]})})()}),[2]}})})()},d=function(e,t){J({title:e,width:500,minHeight:200,data:{fetchFn:eo,callback:t},component:o})},f=function(e){return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,Ds(e)];case 1:return t.sent(),_(),l(),[2]}})})()},p=function(){d(r(`Site.Batch.index_7`),function(){return Z(function(){return $(this,function(e){return _(),l(),[2]})})()})},m=function(e){e.backup_type===1?J({title:r(`Restore type`),width:450,minHeight:150,footer:!0,data:{showDb:!1,onRefresh:function(t){return f({file_name:e.name,site_id:n.id,restore_type:JSON.stringify(t)})}},component:ec}):rl({title:r(`Site.Config.index_28`),content:r(`Site.Config.index_29`),onConfirm:function(t){var r=t.hide;return Z(function(){return $(this,function(t){switch(t.label){case 0:return r(),[4,f({file_name:e.name,site_id:n.id,restore_type:`["file"]`})];case 1:return t.sent(),[2]}})})()}})},h=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,eo()];case 1:return e=t.sent().message,I(e)&&(s.value=e.status===0),[2]}})})()},g=hl(`tableRef`),_=function(){var e;(e=g.value)==null||e.getList()};return h(),function(e,t){var r=a;return R(),k(`div`,Je,[j(xi,{ref_key:`tableRef`,ref:g,"site-id":K(n).id,"on-restore":m,"backup-ref":K(n),"on-changed":l},{toolsLeft:Y(function(){return[j(r,{class:`backup-btn`,type:`primary`,loading:K(s),disabled:K(s),onClick:c},{default:Y(function(){return[A(G(e.$t(`Database.index_16`)),1)]}),_:1},8,[`loading`,`disabled`]),K(s)?(R(),D(r,{key:0,onClick:p},{default:Y(function(){return zl(t[0]||(t[0]=[A(` Current Task Progress `,-1),E(`i`,{class:`i-mingcute:arrow-right-fill text-16px ml-4px`},null,-1)]))}),_:1})):O(``,!0)]}),_:1},8,[`site-id`,`backup-ref`])])}}}),e(`Gi`,ve({default:function(){return si}})),si=ci,Ir=P.global,W=Ir.t,e(`Xr`,function(e){return B.post(`/site?action=clone_php_site`,e,{requestOptions:{loading:W(`WP.api.tamper_8`),successMessage:!1}})}),e(`mi`,function(e){return B.post(`/site?action=get_php_clone_progress`,e)}),e(`bi`,yo=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`PHP`;return B.post(`/data?action=getSiteThirtyTotal`,Q({site_type:t},e))}),e(`xi`,function(e){return B.post(`/data?action=getSiteWafConfig`,e)}),e(`zi`,function(e){return B.post(`/plugin?action=a&name=btwaf&s=set_site_obj_open`,e,{requestOptions:{loading:W(`WP.api.tamper_8`),successMessage:!0}})}),e(`Ti`,function(e){return B.post(`/panel/public/get_soft_status`,Q({},e))}),e(`_i`,function(e){return B.post(`/plugin?action=get_soft_find`,Q({},e))}),e(`Ni`,function(e){return B.post(`/system?action=ServiceAdmin`,Q({},e),{requestOptions:{loading:W(`WP.api.tamper_8`),successMessage:!0}})}),e(`gi`,function(){return B.post(`/plugin?action=a&name=security_notice&s=get_status`,{},{requestOptions:{isOriginalResult:!0,prefix:``}})}),e(`Vi`,function(e){return B.post(`/plugin?action=a&name=security_notice&s=`.concat(e?`start_site`:`stop_site`),{requestOptions:{loading:W(`WP.api.tamper_8`),successMessage:!0}})}),e(`pi`,function(){return B.post(`/site?action=get_https_mode`)}),e(`Fi`,function(){return B.post(`/site?action=set_https_mode`,{},{requestOptions:{loading:W(`WP.api.tamper_8`),successMessage:!0}})}),e(`hi`,function(e){return B.post(`/site?action=get_site_maintenance`,e)}),e(`Ii`,function(e){return B.post(`/site?action=set_site_maintenance`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`wi`,function(e){return B.post(`/site?action=get_current_webservice`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!1}})}),e(`Bi`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/site?action=switch_webservice`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:t}})}),e(`ii`,function(e){return B.post(`/site?action=multi_service_check_repair`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`Hi`,function(e){return B.post(`/site?action=website_rollback`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`fi`,function(){return B.post(`/site?action=get_multi_webservice_status`)}),e(`Ei`,function(){return B.post(`/git?action=get_ssh_key`)}),e(`si`,function(e){return B.post(`/git?action=get_deploy_records`,e)}),e(`ki`,function(e){return B.post(`/git?action=manual_deploy_site`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`di`,function(e){return B.post(`/git?action=get_site_git_conf`,e)}),e(`Mi`,function(e){return B.post(`/git?action=save_site_git_conf`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`Ai`,function(e){return B.post(`/git?action=refresh_webhook_url`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`Pi`,function(e){return B.post(`/git?action=add_key_repository`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`oi`,function(e){return B.post(`/git?action=get_site_deploy_log`,e)}),e(`Qr`,function(e){return B.post(`/git?action=git_rollback`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!1}})}),e(`ji`,function(e){return B.post(`/git?action=save_deploy_sh`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`ci`,function(e){return B.post(`/git?action=get_deploy_sh`,e)}),e(`li`,function(e){return B.post(`/git?action=get_deploy_script`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!1}})}),e(`Wi`,function(e){return B.post(`/git?action=update_deploy_sh`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`Di`,function(e){return B.post(`/git?action=get_webhook_log`,e)}),e(`Yr`,function(e){return B.post(`/git?action=clear_webhook_log`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`Zr`,function(e){return B.post(`/git?action=del_script`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`vi`,function(){return B.post(`/site?action=get_site_global`)}),e(`yi`,function(e){return B.post(`/site?action=get_cdn_ip`,e)}),e(`Li`,function(e){return B.post(`/site?action=set_site_global`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`Si`,bo=function(e){return B.post(`/site_monitor?action=get_overview`,e)}),e(`Ci`,xo=function(e){return B.post(`/site_monitor?action=get_site_overview`,e)}),e(`Ui`,function(e){return B.post(`/site?action=site_performance_test`,e,{requestOptions:{loading:W(`Login.index_22`)}})}),e(`Ri`,function(e){return B.post(`/site?action=set_default_site_conf`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`ti`,function(e){return B.post(`/git?action=generate_aapanel_ed25519_key`,e,{requestOptions:{loading:W(`Login.index_22`)}})}),e(`ri`,function(e){return B.post(`/git?action=get_remote_branches`,e,{requestOptions:{loading:W(`Login.index_22`)}})}),e(`ei`,function(e){return B.post(`/git?action=change_repository_key`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`ni`,function(e){return B.post(`/git?action=get_git_directory`,e,{requestOptions:{loading:W(`Login.index_22`)}})}),e(`Oi`,function(e){return B.post(`/git?action=import_existing_repository`,e,{requestOptions:{loading:W(`Login.index_22`),successMessage:!0}})}),e(`ui`,function(e){return B.post(`/deployment?action=GetList`,e)}),e(`$r`,function(e){return B.post(`/deployment?action=SetupPackage`,Ll(Q({},e),{webname:JSON.stringify(e.webname)}),{requestOptions:{loading:W(`Login.index_22`)}})}),e(`ai`,Wa=function(e){return B.post(`/site?action=get_general_progress`,e)}),F(),qe={class:`p-16px`},rn={class:`mb-16px`},Tn={class:`progress-box p-10px rounded-8px`},pi=M({__name:`backup-progress`,props:{params:{},callback:{type:Function}},setup:function(e){var t=e,r=q().t,i=z(!1),a=z([]),o=[{key:`site_name`,title:r(`Site.TableRow.index_1`),ellipsis:{tooltip:!0}},{key:`msg`,title:r(`Site.DelSite.index_10`),ellipsis:{tooltip:!0},render:function(e){return j(`span`,{class:e.status===0?`text-primary`:`text-error`},[e.msg])}}],s=T(function(){return a.value.findIndex(function(e){return e.status===0})+1}),c=T(function(){var e;return(e=a.value[s.value])==null?void 0:e.status}),u={0:`process`,1:`finish`,"-1":`error`,2:`wait`},d=function(e){return u[e]},f=null,p=!1,h=function(){return Z(function(){var e,n,o;return $(this,function(s){switch(s.label){case 0:return[4,Wa({type:t.params})];case 1:return e=s.sent(),n=e.message,I(n)&&(n.status===1?(f&&clearInterval(f),L.success(r(`WP.Task.index_4`)),i.value=!0,p||(p=!0,(o=t.callback)==null||o.call(t))):i.value=!1,a.value=Object.values(n).filter(function(e){return I(e)})),[2]}})})()};return Ms(function(){h(),f=window.setInterval(function(){h()},2e3)}),js(function(){f&&clearInterval(f)}),function(e,t){var r=n,u=de,f=m,p=l,h=fe,g=pe;return R(),k(`div`,qe,[E(`div`,rn,[K(i)?(R(),D(r,{key:0,type:`success`,title:e.$t(`WP.Task.index_4`)},null,8,[`title`])):(R(),D(r,{key:1,type:`default`,title:e.$t(`WP.Task.index_5`)},null,8,[`title`]))]),E(`div`,Tn,[j(g,{vertical:``,current:K(s),status:d(K(c)),size:`small`},{default:Y(function(){return[(R(!0),k(_,null,Ws(K(a),function(e,t){return R(),D(h,{key:t,status:d(e.status),description:e.error||e.ps},ha({title:Y(function(){return[j(f,{class:`flex-nowrap! items-center!`},{default:Y(function(){return[E(`span`,null,G(e.title),1),X(j(u,{size:`small`},null,512),[[xl,e.status===0]])]}),_:2},1024)]}),_:2},[e.result_list?{name:`default`,fn:Y(function(){return[E(`div`,null,G(e.error||e.ps),1),j(p,{class:`mt-8px`,data:e.result_list,columns:o,"max-height":200},null,8,[`data`])]}),key:`0`}:void 0]),1032,[`status`,`description`])}),128))]}),_:1},8,[`current`,`status`])])])}}}),fi=ve({default:function(){return di}}),di=Lr(pi,[[`__scopeId`,`data-v-57b0edf4`]]),F(),fa=M({__name:`cloud-storage-select`,props:xs({orderOpt:{default:function(){return[]}},isLocal:{type:Boolean,default:!0},installCallback:{type:Function,default:void 0}},{value:{},valueModifiers:{}}),emits:[`update:value`],setup:function(e,t){var n=t.expose,r=e,i=sl(e,`value`),a=q().t,o=T(function(){return r.isLocal}),s=T({get:function(){return i.value||null},set:function(e){i.value=e||null}}),c=T(function(){return{label:a(`Crontab.Script.index_24`),value:`localhost`,install:!0,config:!0,local:!0}}),l=T(function(){return r.orderOpt.map(function(e){return{label:e.name,value:e.value,install:e.install,config:e.config,required_version:e.required_version,version:e.version,disabled:!e.install||Ul(e)||!e.config}})}),u=T(function(){return o.value?[c.value].concat(zl(l.value)):l.value}),d=function(e,t){return Z(function(){var n,i;return $(this,function(a){switch(a.label){case 0:return t.stopPropagation(),n=e.value,e.install?Ul(e)?[4,Wl(n)]:[3,2]:(il(n,r.installCallback),[2]);case 1:return i=a.sent(),i&&_l(i.row,r.installCallback,i.softInfo),[2];case 2:return pl({name:n,title:e.label,admin:!0}),[2]}})})()},f=function(e){return e.disabled?e.install?Ul(e)?j(`span`,{class:`cursor-pointer color-error`,onClick:function(t){return d(e,t)}},[A(`[`),a(`Public.Btn.Update`),A(`]`)]):j(te,null,{trigger:function(){return j(`span`,{class:`cursor-pointer color-error`,onClick:function(t){return d(e,t)}},[A(`[`),a(`Crontab.Planned.index_47`),A(`]`)])},default:function(){return j(`span`,null,[a(`Please refresh the page manually after configuration`)])}}):j(`span`,{class:`cursor-pointer color-error`,onClick:function(t){return d(e,t)}},[A(`[`),a(`Public.Btn.Install`),A(`]`)]):null},p=function(e){var t=e;return t.local?j(m,{size:4,class:`flex-nowrap! items-center!`},{default:function(){return[j(`div`,{class:`w-20px flex justify-center items-center`},[j(Ni,{name:`base-dir`,size:`16`},null)]),j(`span`,null,[t.label])]}}):j(m,{class:`justify-between! items-center! w-full`,size:8},{default:function(){return[j(m,{size:4,class:`flex-nowrap! items-center!`},{default:function(){return[j(`img`,{class:`w-20px`,src:wo(t.value)},null),j(`span`,null,[t.label])]}}),f(t)]}})};return n({options:u}),function(e,t){var n=ce;return R(),D(n,{value:K(s),"onUpdate:value":t[0]||(t[0]=function(e){return ls(s)?s.value=e:null}),options:K(u),"consistent-menu-width":!1,"render-label":p},null,8,[`value`,`options`])}}}),e(`Kr`,da=fa),F(),Ke={class:`select-box`},nn={class:`select-box`},bi=M({__name:`backup-setting`,props:{site_type:{},backupData:{},storageOptions:{default:function(){return[]}},callback:{type:Function,default:void 0}},setup:function(e,t){var n=t.expose,r=e,i=Rc(r),a=i.site_type,o=i.backupData,l=q().t,u=z(null),d=Vs({backup_type:o.value.bak_type||`full`,storage:[o.value.bak_local,o.value.bak_remote?`remote`:``],remote_type:o.value.bak_remote||null}),f={storage:{required:!0,type:`array`,trigger:[`change`],validator:function(e,t){return!Array.isArray(t)||t.filter(Boolean).length===0?Error(l(`Please select backup storage location`)):!0}},remote_type:{trigger:`change`,required:!0,message:l(`Please select remote storage`)}},p=T(function(){var e=[{label:l(`Full Backup`),value:`full`},{label:l(`Only Database Backup`),value:`sql`},{label:l(`Only Site File`),value:`file`}];return a.value===`php`?e.filter(function(e){return e.value!==`sql`}):e}),g=T(function(){var e;return(e=K(r.storageOptions))==null?[]:e});return n({onConfirm:function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return[4,(e=u.value)==null?void 0:e.validate()];case 1:return n.sent(),[4,cc({site_type:a.value,bak_type:d.backup_type,bak_local:d.storage.includes(`local`)?`local`:``,bak_remote:d.storage.includes(`remote`)?d.remote_type:``})];case 2:return n.sent(),(t=r.callback)==null||t.call(r),[2]}})})()}}),function(e,t){var n=ce,i=h,a=c,o=m,l=s,_=Mi;return R(),D(_,{class:`p-24px`,ref_key:`formRef`,ref:u,model:K(d),rules:f,"label-placement":`top`},{default:Y(function(){return[j(i,{label:e.$t(`1.Backup Type`)},{default:Y(function(){return[j(n,{value:K(d).backup_type,"onUpdate:value":t[0]||(t[0]=function(e){return K(d).backup_type=e}),options:K(p)},null,8,[`value`,`options`])]}),_:1},8,[`label`]),j(i,{label:e.$t(`2.Backup Storage Location`),path:`storage`},{default:Y(function(){return[j(l,{class:`w-full`,value:K(d).storage,"onUpdate:value":t[2]||(t[2]=function(e){return K(d).storage=e})},{default:Y(function(){return[j(o,{vertical:``},{default:Y(function(){return[E(`div`,Ke,[j(a,{value:`local`},{default:Y(function(){return[A(G(e.$t(`Local Server`)),1)]}),_:1})]),E(`div`,nn,[j(a,{value:`remote`},{default:Y(function(){return[A(G(e.$t(`Remote Cloud Storage`)),1)]}),_:1})]),K(d).storage.includes(`remote`)?(R(),D(i,{key:0,path:`remote_type`,"show-label":!1},{default:Y(function(){return[j(da,{value:K(d).remote_type,"onUpdate:value":t[1]||(t[1]=function(e){return K(d).remote_type=e}),"order-opt":K(g),"is-local":!1,"install-callback":r.callback},null,8,[`value`,`order-opt`,`install-callback`])]}),_:1})):O(``,!0)]}),_:1})]}),_:1},8,[`value`])]}),_:1},8,[`label`])]}),_:1},8,[`model`])}}}),yi=ve({default:function(){return vi}}),vi=Lr(bi,[[`__scopeId`,`data-v-e78f55b0`]]),F(),os(),We={class:`p-20px`},Ti=M({__name:`backup-type`,props:{onRefresh:{type:Function,default:function(){}},progressTitle:{type:String,default:``},fetchProgress:{type:Function,default:null},onProgressDone:{type:Function,default:void 0}},setup:function(e,t){var n=t.expose,r=ba(function(){return be(function(){return Promise.resolve().then(function(){return ii})},void 0)}),i=q().t,a=e,o=z(0),s=[{label:i(`Only Site File`),value:0},{label:i(`Full Backup`),value:1}];return n({onConfirm:function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,a.onRefresh(o.value)];case 1:return e.sent(),a.fetchProgress&&J({title:a.progressTitle||i(`Site.Batch.index_7`),width:500,minHeight:200,data:{fetchFn:a.fetchProgress,callback:a.onProgressDone},component:r}),[2]}})})()}}),function(e,t){var n=ce,r=h,i=Mi,a=Gi;return R(),k(`div`,We,[j(i,null,{default:Y(function(){return[j(r,{label:e.$t(`Config.Backup.index_40`),"show-require-mark":!0},{default:Y(function(){return[j(n,{class:`w-250px`,value:K(o),"onUpdate:value":t[0]||(t[0]=function(e){return ls(o)?o.value=e:null}),options:s},null,8,[`value`])]}),_:1},8,[`label`])]}),_:1}),j(a,null,{default:Y(function(){return zl(t[1]||(t[1]=[E(`li`,null,`Only Site File: Includes only website files`,-1),E(`li`,null,`Full Backup: Includes website files, database, and SSL certificate`,-1)]))}),_:1})])}}}),e(`Gr`,wi=ve({default:function(){return Ci}})),Ci=Ti,F(),os(),e(`Wr`,Ps=function(e,t,n){return Z(function(){return $(this,function(r){return J({title:e,width:500,minHeight:200,data:{params:t,callback:n},component:ba(function(){return be(function(){return Promise.resolve().then(function(){return fi})},void 0)})}),[2]})})()}),F(),e(`Ur`,dl=xa(`SitePhpStore`,function(){var e=z(!1),t=z(`--`),n=z(``),r=z(`/www/wwwroot`),i=z(!0),a=z({setup:!0,type:``,version:``,status:!1}),o=z({setup:!1,version:``,status:!1}),s=z({setup:!1,version:``,status:!1}),c=z({is_install:0,status:!1,version:``}),l=z({is_install:0,status:!1,version:``}),u=T(function(){return c.value.is_install===1&&pa(c.value.version,`4.1.2`)}),d=T(function(){return l.value.is_install===1&&pa(l.value.version,`9.6.8`)}),f=z({setup:!1});return{web:a,ftp:o,siteName:t,mysql:s,php:f,sitePath:r,webserver:n,recycleBin:i,isRefresh:e,monitor:c,waf:l,isMonitorInstall:u,isWafInstall:d,getConfig:function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,ao()];case 1:return e=t.sent().message,I(e)&&(n.value=Va(e,`webserver`,``),r.value=Va(e,`sites_path`,``),i.value=Va(e,`recycle_bin`,!1),f.value.setup=!!e.php.length,I(e.web)&&(a.value=e.web),I(e[`pure-ftpd`])&&(o.value=e[`pure-ftpd`]),I(e.mysql)&&(s.value=e.mysql),I(e.monitor)&&(c.value=e.monitor),I(e.waf)&&(l.value=e.waf)),[2]}})})()},setRefresh:function(t){e.value=t}}})),F(),Ue={class:`w-600px h-400px`},$s=M({__name:`restore-logs`,setup:function(e){var t=z(``),n=Vl(function(){return Z(function(){var e;return $(this,function(n){switch(n.label){case 0:return[4,so()];case 1:return e=n.sent().message,I(e)&&(t.value=e.result),[2]}})})()},1),r=n.loop,i=n.clearTimer;return Ms(function(){r()}),js(function(){i()}),function(e,n){var r=Li;return R(),k(`div`,Ue,[j(r,{log:K(t)},null,8,[`log`])])}}}),Qs=$s,F(),ui=M({__name:`backup-php`,setup:function(e){var t=q().t,n=dl(),r=ss(`site`,{}),i=Vs({bak_local:`local`,bak_remote:``,bak_type:`full`}),o=T(function(){return[i.bak_local,i.bak_remote].filter(Boolean).map(Ka).join(`, `)}),s=el(),c=s.storageOptions,l=s.fetchPlugins,u=z(!1),d=function(){n.setRefresh(!0)},f=function(e){return Z(function(){var t;return $(this,function(n){switch(n.label){case 0:t=J({title:`Recovering backup`,hideClose:!0,width:600,minHeight:400,component:Qs}),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,Zs(e)];case 2:return n.sent(),x(),d(),[3,4];case 3:return t.hide(),[7];case 4:return[2]}})})()},p=function(){Is(`php`,i,c,x)},h=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,$r({id:JSON.stringify([r.id]),site_type:`php`})];case 1:return e.sent(),Ps(t(`Site.Batch.index_7`),`php`,function(){return Z(function(){return $(this,function(e){return x(),d(),[2]})})()}),[2]}})})()},g=function(){Ps(t(`Site.Batch.index_7`),`php`,function(){return Z(function(){return $(this,function(e){return x(),d(),[2]})})()})},_=function(e){e.backup_type===1?J({title:t(`Restore type`),width:450,footer:!0,data:{showDb:!0,onRefresh:function(t){return f({file_name:e.name,site_id:r.id,restore_type:JSON.stringify(t)})}},component:ec}):rl({title:t(`Site.Config.index_28`),content:t(`Site.Config.index_29`),onConfirm:function(t){var n=t.hide;return Z(function(){return $(this,function(t){switch(t.label){case 0:return n(),[4,f({file_name:e.name,site_id:r.id})];case 1:return t.sent(),[2]}})})()}})},v=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,Wa({type:`php`})];case 1:return e=t.sent().message,I(e)&&(u.value=e.status===0),[2]}})})()},y=function(e){return Z(function(){var t,n,a,o,s;return $(this,function(c){switch(c.label){case 0:return[4,v()];case 1:return c.sent(),n=Ll(Q({},e),{search:(t=e.search)==null?r.id:t}),[4,Promise.all([go(n),l(r.id)])];case 2:return a=Rl.apply(void 0,[c.sent(),1]),o=a[0],s=o.message,I(s)&&(i.bak_local=s.bak_local,i.bak_remote=s.bak_remote,i.bak_type=s.bak_type),[2,o]}})})()},b=z(),x=function(){var e;(e=b.value)==null||e.getList()};return v(),function(e,t){var n=a,s=Fi,c=Js(`i18n-t`),l=m;return R(),D(xi,{ref_key:`tableRef`,ref:b,"site-id":K(r).id,"on-restore":_,"backup-ref":K(r),"get-list-api":y,"on-changed":d},{toolsLeft:Y(function(){return[j(l,{vertical:``},{default:Y(function(){return[j(l,{class:`flex-nowrap! items-center!`},{default:Y(function(){return[j(n,{class:`wp-backup-guide-now`,type:`primary`,loading:K(u),disabled:K(u),onClick:h},{default:Y(function(){return[A(G(e.$t(`Site.Config.index_27`)),1)]}),_:1},8,[`loading`,`disabled`]),j(c,{tag:`div`,keypath:`Current configuration: [{a}] to [{b}]. To modify these settings, please {c}`},{a:Y(function(){return[A(G(K(qa)(K(i).bak_type)),1)]}),b:Y(function(){return[A(G(K(o)),1)]}),c:Y(function(){return[j(s,{class:`font-bold`,onClick:p},{default:Y(function(){return[A(G(e.$t(`click here to configure`)),1)]}),_:1})]}),_:1})]}),_:1}),j(l,{class:`mb-8px`},{default:Y(function(){return[K(u)?(R(),D(n,{key:0,onClick:g},{default:Y(function(){return[A(G(e.$t(`Current Task Progress`))+` `,1),t[0]||(t[0]=E(`i`,{class:`i-mingcute:arrow-right-fill text-16px ml-4px`},null,-1))]}),_:1})):O(``,!0)]}),_:1})]}),_:1})]}),_:1},8,[`site-id`,`backup-ref`])}}}),li=ui,Dr=P.global,U=Dr.t,e(`hr`,function(e){return B.post(`/data?action=get_wp_site_list`,e)}),e(`Rn`,function(e){return B.post(`/site?action=AddWPSite`,Ll(Q({},e),{webname:JSON.stringify(e.webname),project_type:`WP2`}),{requestOptions:{loading:U(`WP.api.tamper_7`)}})}),e(`yr`,function(e){return B.post(`/site?action=get_wp_versions`,e)}),e(`_r`,function(e){return B.post(`/site?action=get_wp_configurations`,e)}),e(`kr`,function(e){return B.post(`/site?action=save_wp_configurations`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),ho=function(e){return B.post(`/site?action=wp_backup_list`,e)},Xs=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/site?action=wp_restore`,e,{requestOptions:{loading:t?U(`WP.api.tamper_10`):``,successMessage:!0}})},wa=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/site?action=wp_remove_backup`,e,{requestOptions:{loading:t?U(`WP.api.tamper_8`):``,successMessage:t}})},e(`dr`,function(){return B.post(`/site?action=wp_can_migrate_from_website_to_wptoolkit`)}),e(`xr`,function(e){return B.post(`/site?action=wp_migrate_from_website_to_wptoolkit`,e,{requestOptions:{loading:U(`WP.api.tamper_11`),successMessage:!1}})}),e(`lr`,function(e){return B.post(`/site?action=get_wp_security_info`,e)}),e(`Sr`,function(e){return B.post(`/site?action=open_wp_file_protection`,{paths:JSON.stringify(e.paths)},{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`Bn`,function(e){return B.post(`/site?action=close_wp_file_protection`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`er`,function(e){return B.post(`/site?action=get_wp_file_info`,e)}),e(`Cr`,function(e){return B.post(`/site?action=open_wp_firewall_protection`,Q({obj:`open`},e),{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`Vn`,function(e){return B.post(`/site?action=close_wp_firewall_protection`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`zn`,function(e){return B.post(`/site?action=wp_clone`,e,{requestOptions:{loading:U(`WP.api.index_1`),successMessage:!0}})}),e(`Wn`,function(e){return B.post(`/site?action=wp_create_with_aap_bak`,e,{requestOptions:{loading:U(`WP.api.index_2`),successMessage:!0}})}),e(`Kn`,function(e){return B.post(`/site?action=wp_create_with_plesk_or_cpanel_bak`,e,{requestOptions:{loading:U(`WP.api.index_2`),successMessage:!0}})}),e(`Gn`,function(e){return B.post(`/site?action=wp_create_with_manual_bak`,e,{requestOptions:{loading:U(`WP.api.index_2`),successMessage:!0}})}),e(`Hn`,function(e){return B.post(`/site?action=wp_batch_create_bar`,e,{requestOptions:{loading:U(`WP.api.index_2`),successMessage:!0}})}),e(`Nr`,function(e){return B.post(`/site?action=wp_integrity_check`,e,{requestOptions:{loading:``,successMessage:!1,errorMessage:!1}})}),e(`Pr`,function(e){return B.post(`/site?action=wp_reinstall_files`,e,{requestOptions:{loading:``,successMessage:!1}})}),e(`rr`,function(e){return B.post(`/site?action=wp_installed_plugins`,e)}),e(`zr`,function(e){return B.post(`/site?action=wp_uninstall_plugin`,e,{requestOptions:{loading:U(`WP.api.tamper_14`),successMessage:!0}})}),e(`Vr`,function(e){return B.post(`/site?action=wp_update_plugin`,e,{requestOptions:{loading:U(`WP.api.tamper_15`),successMessage:!0}})}),e(`Fr`,function(e){return B.post(`/site?action=wp_set_plugin_status`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`Ir`,function(e){return B.post(`/site?action=wp_set_plugin_auto_update`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`ir`,function(e){return B.post(`/site?action=wp_installed_themes`,e)}),e(`Br`,function(e){return B.post(`/site?action=wp_uninstall_theme`,e,{requestOptions:{loading:U(`WP.api.tamper_14`),successMessage:!0}})}),e(`Hr`,function(e){return B.post(`/site?action=wp_update_theme`,e,{requestOptions:{loading:U(`WP.api.tamper_15`),successMessage:!0}})}),e(`Lr`,function(e){return B.post(`/site?action=wp_switch_theme`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`Rr`,function(e){return B.post(`/site?action=wp_set_theme_auto_update`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`nr`,function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return B.post(`/site?action=wp_theme_list`,e,{requestOptions:{loading:t?U(`WP.api.tamper_17`):``,successMessage:!1}})}),e(`Er`,function(e){return B.post(`/site?action=wp_install_theme`,e,{requestOptions:{loading:U(`WP.api.tamper_16`),successMessage:!1}})}),e(`tr`,function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return B.post(`/site?action=wp_plugin_list`,e,{requestOptions:{loading:t?U(`WP.api.tamper_17`):``,successMessage:!1}})}),e(`Tr`,function(e){return B.post(`/site?action=wp_install_plugin`,e,{requestOptions:{loading:U(`WP.api.tamper_16`),successMessage:!1}})}),e(`ur`,function(e){return B.post(`/site?action=wp_set_list`,e)}),e(`qn`,function(e){return B.post(`/site?action=wp_remove_set`,e,{requestOptions:{loading:U(`WP.api.tamper_3`),successMessage:!0}})}),e(`Ln`,function(e){return B.post(`/site?action=wp_create_set`,e,{requestOptions:{loading:U(`WP.api.tamper_2`),successMessage:!0}})}),e(`Or`,function(e){return B.post(`/site?action=wp_update_item_state_with_set`,e,{requestOptions:{loading:U(`WP.api.tamper_1`),successMessage:!0}})}),e(`Jn`,function(e){return B.post(`/site?action=wp_remove_items_from_set`,e,{requestOptions:{loading:U(`WP.api.tamper_3`),successMessage:!0}})}),e(`In`,function(e){return B.post(`/site?action=wp_add_items_to_set`,e,{requestOptions:{loading:U(`WP.api.tamper_2`),successMessage:!0}})}),e(`br`,function(e){return B.post(`/site?action=wp_install_with_set`,e,{requestOptions:{loading:U(`WP.api.tamper_16`),successMessage:!0}})}),e(`ar`,function(e){return B.post(`/site?action=wp_get_items_from_set`,e)}),e(`pr`,function(){return B.post(`/site?action=wp_all_sites`)}),e(`wr`,function(e){return B.post(`/site?action=wordpress_vulnerabilities_scan`,e,{requestOptions:{loading:U(`WP.index_63`),successMessage:!1}})}),e(`sr`,function(e){return B.post(`/site?action=get_ignore_vuln`,e)}),e(`Fn`,function(e){return B.post(`/site?action=ignore_vuln`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`Dr`,function(e){return B.post(`/site?action=set_auth_scan`,e,{requestOptions:{loading:U(`WP.api.tamper_8`),successMessage:!0}})}),e(`cr`,function(e){return B.post(`/site?action=get_auth_scan_status`,e)}),e(`vr`,function(e){return B.post(`/site?action=get_wp_tool`,e)}),e(`jr`,function(e){return B.post(`/site?action=set_wp_tool`,e,{requestOptions:{loading:U(`Login.index_22`),successMessage:!0}})}),e(`$n`,function(e){return B.post(`/site?action=get_wp_debug_log`,e)}),e(`Qn`,function(e){return B.post(`/site?action=get_source_tables`,e)}),e(`Zn`,function(){return B.post(`/site?action=get_wp_sites`)}),e(`Pn`,function(e){return B.post(`/site?action=wp_copy_data`,e,{requestOptions:{loading:U(`Login.index_22`),successMessage:!0}})}),e(`Xn`,function(e){return B.post(`/site?action=get_wp_progress`,e)}),e(`gr`,function(e){return B.post(`/site?action=get_wp_maintenance`,e)}),e(`Ar`,function(e){return B.post(`/site?action=set_wp_maintenance`,e,{requestOptions:{loading:U(`Login.index_22`),successMessage:!0}})}),e(`or`,function(){return B.post(`/site?action=get_wp_security_status`)}),e(`Mr`,function(e){return B.post(`/site?action=wp_manual_upload`,e,{requestOptions:{loading:U(`Login.index_22`),successMessage:!0}})}),e(`fr`,function(e){return B.post(`/data?action=get_wp_sub_sites`,e)}),e(`mr`,function(e){return B.post(`/data?action=get_wp_real_sites`,e,{requestOptions:{loading:U(`Component.Api.index_1`),successMessage:!1}})}),e(`Yn`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/site?action=delete_wp_site`,e,{requestOptions:{loading:t?U(`Component.Api.index_1`):``,successMessage:t}})}),e(`Un`,function(e){return B.post(`/site?action=to_php_backup_create`,e,{requestOptions:{loading:U(`WP.api.tamper_7`),successMessage:!0}})}),F(),e(`Nn`,vl=xa(`wordpress-toolkit`,function(){var e=z(``),t=z(!1);return{siteName:e,isRefresh:t,phpVersion:z(``),setRefresh:function(e){t.value=e}}})),F(),He={key:0},tn={class:`text-warning font-bold`},Di=M({__name:`backup-wp`,setup:function(e){var t=q().t,n=ss(`site`,{}),r=vl(),i=Vs({bak_local:``,bak_remote:``,bak_type:``}),o=T(function(){return[i.bak_local,i.bak_remote].filter(Boolean).map(Ka).join(`, `)}),s=el(),c=s.storageOptions,l=s.fetchPlugins,u=z(!1),d=function(){r.setRefresh(!0)},f=hl(`tableRef`),p=function(){var e;(e=f.value)==null||e.getList()},h=function(){Is(`wp`,i,c,p)},g=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,$r({id:JSON.stringify([n.id]),site_type:`wp`})];case 1:return e.sent(),Ps(t(`Site.Batch.index_7`),`wp`,function(){return Z(function(){return $(this,function(e){return p(),d(),[2]})})()}),[2]}})})()},_=function(){Ps(t(`Site.Batch.index_7`),`wp`,function(){return Z(function(){return $(this,function(e){return p(),d(),[2]})})()})},v=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,Wa({type:`wp`})];case 1:return e=t.sent().message,I(e)&&(u.value=e.status===0),[2]}})})()},y=function(e){return Z(function(){var t,r,a;return $(this,function(o){switch(o.label){case 0:return[4,v()];case 1:return o.sent(),[4,Promise.all([ho(e),l(n.id)])];case 2:return t=Rl.apply(void 0,[o.sent(),1]),r=t[0],a=r.message,I(a)&&(i.bak_local=a.bak_local,i.bak_remote=a.bak_remote,i.bak_type=a.bak_type),[2,r]}})})()},b=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return wa({bak_id:e.id},t)},x=function(e){return encodeURIComponent(e.bak_file)},S=function(e){return Ba(e.bak_time)},C=function(e){return e.bak_type===1?t(`WP.index_24`):e.bak_type===2?t(`WP.index_25`):t(`WP.index_26`)},w=n.main_site||!n.is_child?function(){return j(_e,{trigger:`hover`},{trigger:function(){return j(m,{align:`center`,size:4},{default:function(){return[t(`Site.TableRow.index_24`),j(`i`,{class:`i-uiw:question-circle-o text-16px text-desc cursor-pointer`},null)]}})},default:function(){return t(`Subsites not included`)}})}:function(){return t(`Site.TableRow.index_24`)},ee=function(e){rl({title:t(`Site.Config.index_28`),content:t(`Site.Config.index_29`),onConfirm:function(t){var n=t.hide;return Z(function(){return $(this,function(t){switch(t.label){case 0:return n(),[4,Xs({bak_id:e.id})];case 1:return t.sent(),p(),d(),[2]}})})()}})};return function(e,t){var r=a,s=Fi,c=Js(`i18n-t`);return R(),D(xi,{ref_key:`tableRef`,ref:f,"site-id":K(n).id,"on-restore":ee,"backup-ref":K(n),"search-key":`s_id`,"name-key":`filename`,"download-name-key":`filename`,"download-path":x,"get-list-api":y,"delete-api":b,"time-render":S,"type-title":K(w),"type-render":C,"on-changed":d},{toolsLeft:Y(function(){return[j(K(m),{vertical:``},{default:Y(function(){return[j(K(m),{class:`flex-nowrap! items-center!`},{default:Y(function(){return[j(r,{class:`wp-backup-guide-now`,type:`primary`,loading:K(u),disabled:K(u),onClick:g},{default:Y(function(){return[A(G(e.$t(`Site.Config.index_27`)),1)]}),_:1},8,[`loading`,`disabled`]),j(c,{tag:`div`,keypath:`Current configuration: [{a}] to [{b}]. To modify these settings, please {c}`},{a:Y(function(){return[A(G(K(qa)(K(i).bak_type)),1)]}),b:Y(function(){return[A(G(K(o)),1)]}),c:Y(function(){return[j(s,{class:`font-bold`,onClick:h},{default:Y(function(){return[A(G(e.$t(`click here to configure`)),1)]}),_:1})]}),_:1})]}),_:1}),j(K(m),{class:`mb-8px`},{default:Y(function(){return[K(n).main_site||!K(n).is_child?(R(),k(`span`,He,[E(`li`,tn,`* `+G(e.$t(`Subsites not included`)),1)])):O(``,!0),K(u)?(R(),D(r,{key:1,onClick:_},{default:Y(function(){return[A(G(e.$t(`Current Task Progress`))+` `,1),t[0]||(t[0]=E(`i`,{class:`i-mingcute:arrow-right-fill text-16px ml-4px`},null,-1))]}),_:1})):O(``,!0)]}),_:1})]}),_:1})]}),_:1},8,[`site-id`,`backup-ref`,`type-title`])}}}),Ei=Di,Nr=P.global,Ec=Nr.t,e(`Mn`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/breaking_through?action=set_compiler_status`,e,{requestOptions:{loading:t?Ec(`Security.Api.Index_5`):``,successMessage:!!t}})}),e(`An`,function(e){return B.post(`/breaking_through?action=get_compiler_info`,e)}),e(`jn`,Xa=function(){return B.post(`/breaking_through?action=get_linux_users`,{limit:999})}),e(`On`,function(e){return B.post(`/breaking_through?action=add_user_to_compiler`,e,{requestOptions:{loading:Ec(`Security.Api.Index_4`),successMessage:!0}})}),e(`kn`,function(e){return B.post(`/breaking_through?action=del_user_to_compiler`,e,{requestOptions:{loading:Ec(`Security.Api.Index_3`),successMessage:!0}})}),Fr=P.global,Tc=Fr.t,e(`bn`,function(e){return B.post(`/crontab?action=GetCrontab`,e)}),e(`_n`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return B.post(`/crontab?action=export_crontab_to_json`,e,{requestOptions:{loading:Tc(`Crontab.Planned.index_100`),successMessage:!1}})}),e(`Cn`,function(e){return B.post(`/crontab?action=import_crontab_from_json`,e,{headers:{"Content-Type":`multipart/form-data`},requestOptions:{loading:Tc(`Crontab.Api.index_1`),successMessage:!1}})}),e(`ln`,Br=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/crontab?action=AddCrontab`,e,{requestOptions:{loading:t?Tc(`Security.Api.Index_4`):``,successMessage:t,errorMessage:t}})}),e(`hn`,Fa=function(e){return B.post(`/crontab?action=modify_crond`,e,{requestOptions:{loading:Tc(`Crontab.Api.index_5`),successMessage:!0}})}),e(`Tn`,rc=function(e){return B.post(`/crontab?action=set_cron_status`,e,{requestOptions:{loading:Tc(`Crontab.Api.index_2`),successMessage:!0}})}),e(`yn`,function(e){return B.post(`/crontab?action=get_backup_list`,e)}),e(`pn`,function(e){return B.post(`/crontab?action=cloud_backup_download`,e)}),e(`xn`,function(e){return B.post(`/crontab?action=GetLogs`,e)}),e(`Dn`,function(e){return B.post(`/crontab?action=check_url_connecte`,e,{requestOptions:{errorMessage:!1}})}),e(`fn`,function(e){return B.post(`/crontab?action=DelLogs`,e,{requestOptions:{loading:Tc(`Crontab.Api.index_3`),successMessage:!0}})}),e(`gn`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/crontab?action=StartTask`,e,{requestOptions:{loading:t?Tc(`Crontab.Api.index_4`):``,successMessage:t}})}),e(`dn`,Sa=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/crontab?action=DelCrontab`,e,{requestOptions:{loading:t?Tc(`Security.Api.Index_3`):``,successMessage:t}})}),e(`En`,function(e){return B.post(`/crontab?action=set_cron_status_all`,e,{requestOptions:{loading:Tc(`Crontab.Api.index_4`),successMessage:!1,errorMessage:!1}})}),e(`vn`,function(){return B.post(`/crontab?action=get_crontab_types`)}),e(`un`,function(e){return B.post(`/crontab?action=remove_crontab_type`,e,{requestOptions:{loading:Tc(`Security.Api.Index_3`),successMessage:!0}})}),e(`cn`,function(e){return B.post(`/crontab?action=add_crontab_type`,e,{requestOptions:{loading:Tc(`Security.Api.Index_4`),successMessage:!0}})}),e(`mn`,function(e){return B.post(`/crontab?action=modify_crontab_type_name`,e,{requestOptions:{loading:Tc(`Crontab.Api.index_5`),successMessage:!0}})}),e(`wn`,function(e){return B.post(`/crontab?action=set_crontab_type`,e,{requestOptions:{loading:Tc(`Crontab.Api.index_2`),successMessage:!0}})}),Ua=function(e){return B.post(`/crontab?action=GetDataList`,{type:`sites`,task_type:e.task_type})},Ha=function(e){return B.post(`/crontab?action=GetDatabases`,e)},ko=function(){return B.post(`/crontab?action=get_zone`)},e(`Sn`,function(){return B.post(`/crontab/script/get_script_list_by_type`)}),F(),kr=P.global,H=kr.t,e(`rn`,Kc=[{value:`toShell`,label:H(`Crontab.Script.index_26`),tips:H(`Crontab.Script.index_27`)},{value:`site`,label:H(`Crontab.Script.index_28`),forbidden:!0},{value:`database`,label:H(`Crontab.Script.index_29`),tips:H(`Crontab.Script.index_30`),forbidden:!0},{value:`logs`,label:H(`Crontab.Script.index_33`),tips:H(`Crontab.Script.index_34`),forbidden:!0},{value:`path`,label:H(`Crontab.Script.index_35`),forbidden:!0},{value:`full_backup`,label:H(`Full Backup`),tips:[H(`A full backup may take a while and use a significant amount of disk space. Please ensure sufficient disk space is available before starting`),H(`For first-time use, we recommend performing and verifying a manual backup before enabling scheduled backups`),H(`During backup, the corresponding website will not be accessible`)],forbidden:!0},{value:`sync_time`,label:H(`Crontab.Script.index_37`),tips:H(`Crontab.Script.index_38`)},{value:`rememory`,label:H(`Crontab.Script.index_39`),tips:H(`Crontab.Script.index_40`)},{value:`toUrl`,label:H(`Crontab.Script.index_41`)}]),Ac=z([{value:`day`,label:H(`Crontab.arrange.index_40`)},{value:`day-n`,label:`N `.concat(H(`Crontab.arrange.index_41`))},{value:`hour`,label:H(`Crontab.arrange.index_42`)},{value:`hour-n`,label:`N `.concat(H(`Crontab.arrange.index_43`))},{value:`minute-n`,label:`N `.concat(H(`Crontab.arrange.index_44`))},{value:`week`,label:H(`Crontab.arrange.index_25`)},{value:`month`,label:H(`Crontab.arrange.index_26`)},{value:`second-n`,label:`N `.concat(H(`Crontab.Script.index_14`))},{value:`once`,label:H(`Once`)}]),jc=z([{value:`day`,label:H(`Crontab.arrange.index_40`)},{value:`day-n`,label:`N `.concat(H(`Crontab.arrange.index_41`))},{value:`hour`,label:H(`Crontab.arrange.index_42`)},{value:`hour-n`,label:`N `.concat(H(`Crontab.arrange.index_43`))},{value:`minute-n`,label:`N `.concat(H(`Crontab.arrange.index_44`))},{value:`week`,label:H(`Crontab.arrange.index_25`)},{value:`month`,label:H(`Crontab.arrange.index_26`)}]),kc=z(Ac.value),sc=function(e){kc.value=e===`toShell`||e===`toUrl`?Ac.value:jc.value},e(`sn`,wl=[{value:`1`,label:H(`Crontab.Script.index_15`)},{value:`2`,label:H(`Crontab.Script.index_16`)},{value:`3`,label:H(`Crontab.Script.index_17`)},{value:`4`,label:H(`Crontab.Script.index_18`)},{value:`5`,label:H(`Crontab.Script.index_19`)},{value:`6`,label:H(`Crontab.Script.index_20`)},{value:`7`,label:H(`Crontab.Script.index_21`)}]),e(`tn`,[{value:`0`,label:H(`Crontab.Script.index_22`)},{value:`1`,label:H(`Crontab.Script.index_23`)}]),H(`Crontab.Script.index_57`),H(`Crontab.Script.index_58`),H(`Crontab.Script.index_59`),ya=[{value:`localhost`,label:H(`Crontab.Script.index_24`)}],e(`Zt`,z([{value:`mysql`,label:`MySQL`},{value:`mongodb`,label:`MongoDB`},{value:`redis`,label:`Redis`},{value:`pgsql`,label:`PgSQL`}])),e(`on`,yl=z([])),e(`nn`,pc=z([])),e(`Xt`,va=z([])),e(`Yt`,ei=z([])),e(`en`,Us=z([])),Kr=[{value:`ALL`,label:H(`Crontab.Script.index_25`)}],e(`in`,qc=z({})),Oo=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,Xa()];case 1:return e=t.sent().message,I(e)&&(yl.value=e.data.map(function(e){return{label:e,value:e}})),[2]}})})()},vo=function(e){return Z(function(){var t,n;return $(this,function(r){switch(r.label){case 0:return[4,Ua({task_type:e})];case 1:return t=r.sent().message,I(t)&&(pc.value=t.data.map(function(e){return{label:e.name,value:e.name}}),ei.value=t.orderOpt,(n=pc.value).unshift.apply(n,zl(Kr))),[2]}})})()},e(`$t`,Za=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return Z(function(){var t,n;return $(this,function(r){switch(r.label){case 0:return[4,Ha({db_type:e})];case 1:return t=r.sent().message,cs(t)&&(va.value=t.length?t.map(function(e){return{label:e.name,value:e.name}}):[],(n=va.value).unshift.apply(n,zl(Kr))),[2]}})})()}),oo=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,ko()];case 1:return e=t.sent().message,I(e)&&(Us.value=Object.entries(e).map(function(e){var t=Rl(e,2),n=t[0];return{value:n,label:n,children:t[1].map(function(e){return{value:e,label:e}})}})),[2]}})})()},e(`Qt`,function(e){var t=ei.value.find(function(t){return t.name===e});return t?t.value:ya[0].value}),F(),os(),Er=P.global,wc=Er.t,e(`zt`,Ur=function(e){return e<10?`0`+e:e}),e(`Wt`,``.concat(wc(`Crontab.Planned.index_46`),`:
data/config.php
static/upload
*.log
`)),e(`Gt`,function(e){return j(`div`,null,[j(`span`,null,[e.label]),e.value===`enterpriseBackup`?j(`span`,{class:`float-right cursor-pointer color-#ffb800`},[A(`PRO`)]):``])}),e(`Ut`,function(e){if(!RegExp(`^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-|\\u4e00-\\u9fa5]*)?(\\#[-a-z\\d_]*)?$`,`i`).test(e)){L.error(wc(`Crontab.Planned.index_85`));return}J({title:wc(`Crontab.Planned.index_84`),width:600,footer:!1,data:{val:e},component:ba(function(){return be(function(){return t.import(`./view-crontab-legacy.js?v=1784873523001`).then(function(e){return e.i})},void 0)})})}),e(`Vt`,function(e){return{name:e.name,type:e.time,where1:e.time===`once`?e.costom_time:e.time==`minute-n`?e.minute.toString():e.time==`hour-n`?e.hour.toString():e.day.toString(),week:e.week,hour:e.hour.toString(),minute:e.minute.toString(),second:e.time==`second-n`?e.second.toString():``,user:e.user,save:e.type==`site`||e.type==`database`||e.type==`logs`||e.type==`path`||e.type==`full_backup`?e.save:``,backupTo:e.type==`site`||e.type==`database`||e.type==`enterpriseBackup`||e.type==`path`||e.type==`full_backup`?e.backupTo:``,sName:e.type==`sync_time`?``.concat(e.region,`/`,e.sName):e.sName,sBody:e.sBody,sType:e.type,urladdress:e.url,save_local:e.backup&&e.backupTo!==`localhost`?`1`:`0`,notice:e.reminder,notice_channel:e.reminder==`0`?``:e.message.join(`,`),db_type:e.databaseType,split_type:e.splitType,split_value:e.splitValue.toString(),flock:`1`,timeSet:`1`,db_backup_path:e.dbBackupPath,timeType:`sday`,special_time:``,log_cut_path:`/www/wwwlogs/history_backups`,user_agent:e.agent,version:``,table_list:``,zip_password:e.zip,id:e.id?e.id:null,region:e.type==`sync_time`?e.region:null,zone:e.type==`sync_time`?e.sName:null}}),e(`Bt`,function(e){var t=!0,n=!1,r=void 0,i=!0,a=!1,o=void 0;try{for(var s=Us.value[Symbol.iterator](),c;!(i=(c=s.next()).done);i=!0){var l=c.value;try{for(var u=(l.children||[])[Symbol.iterator](),d;!(t=(d=u.next()).done);t=!0)if(d.value.value===e)return l.label}catch(e){n=!0,r=e}finally{try{!t&&u.return!=null&&u.return()}finally{if(n)throw r}}}}catch(e){a=!0,o=e}finally{try{!i&&s.return!=null&&s.return()}finally{if(a)throw o}}return``}),e(`Kt`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.isEdit,r=n!==void 0&&n,i=e.data,a=e.getList,o=e.taskType;J({title:wc(`Crontab.Planned.index_4`),width:1e3,footer:!0,data:{isEdit:r,row:i,getList:a,taskType:o},component:ba(function(){return be(function(){return t.import(`./view-crontab-legacy.js?v=1784873523001`).then(function(e){return e.r})},void 0)})})}),jr=P.global,Cc=jr.t,ps=function(e){return typeof e==`number`&&e>=0&&e<24},ms=function(e){return typeof e==`number`&&e>=0&&e<60},Lo={trigger:[`blur`,`input`],validator:function(e,t){return ps(t)?!0:Error(``.concat(Cc(`Site.Placeholder.Index_10`),` 0-23`))}},Cs={required:!0,trigger:[`blur`,`input`],validator:function(e,t){return ms(t)?!0:Error(``.concat(Cc(`Site.Placeholder.Index_10`),` 0-59`))}},e(`Rt`,{name:{required:!0,trigger:[`blur`,`input`],message:Cc(`Crontab.Planned.index_49`)},sName:{required:!0,trigger:[`blur`,`input`],message:Cc(`Security.Conf.Index_28`)},day:{trigger:[`blur`,`input`],validator:function(e,t){return t>=32||t<1||t==``?Error(``.concat(Cc(`Site.Placeholder.Index_10`),` 1-31`)):!0}},hour:Lo,second:{required:!0,trigger:[`blur`,`input`],validator:function(e,t){return t>=60||t<1||t==``?Error(``.concat(Cc(`Site.Placeholder.Index_10`),` 1-59`)):!0}},sBody:{required:!0,trigger:[`blur`,`input`],message:Cc(`Crontab.Planned.index_50`)},save:{trigger:[`blur`,`input`],validator:function(e,t){return t<=0||t==``?Error(Cc(`Crontab.Planned.index_51`)):!0}},url:{required:!0,trigger:[`blur`,`input`],message:Cc(`Crontab.Planned.index_53`)},splitValue:{trigger:[`blur`,`input`],required:!0,type:`number`,message:Cc(`Site.Placeholder.Index_10`)},costom_time:{trigger:[`blur`,`change`],type:`date`,required:!0,message:Cc(`Please select time`)}}),F(),Ve={class:`mb-12px font-bold`},en={class:`execution-time-row`},wn={class:`execution-cycle`},Wn={class:`execution-index`},er={class:`execution-cycle`},Pc=M({__name:`time-select-popover`,props:{value:{required:!0},valueModifiers:{}},emits:[`update:value`],setup:function(e,t){var n=t.expose,r=sl(e,`value`),i=z(!1),o=z(null),s=z(0),c=q().t,l=T(function(){return r.value.time===`week`?c(`Crontab.arrange.index_25`):c(`Crontab.arrange.index_40`)}),u=function(){var e;r.value.executionTimes=[],i.value=!1,s.value=0,(e=o.value)==null||e.restoreValidation()},d=function(){var e=r.value.executionTimes[r.value.executionTimes.length-1];r.value.executionTimes.push(e?Q({},e):{week:r.value.week,hour:r.value.hour,minute:r.value.minute}),s.value=0},f=function(e){r.value.executionTimes.splice(e,1),s.value=0,ws(function(){var e;return(e=o.value)==null?void 0:e.restoreValidation()})},p=function(){var e;r.value.executionTimes=[],s.value=0,(e=o.value)==null||e.restoreValidation()},g=function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(e=o.value)==null?void 0:e.validate()];case 1:return n.sent(),[3,3];case 2:throw t=n.sent(),i.value=!0,t;case 3:return[2]}})})()},v=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,g()];case 1:return e.sent(),s.value=r.value.executionTimes.length+1,i.value=!1,[2]}})})()};return Cl([function(){return r.value.week},function(){return r.value.hour},function(){return r.value.minute},function(){return r.value.executionTimes}],function(){s.value=0},{deep:!0}),n({resetExecutionTimes:u,validate:g}),function(e,t){var n=Ni,c=a,u=ce,g=S,y=b,C=x,w=he,ee=h,ne=m,re=Mi,ie=te;return R(),D(ie,{show:K(i),"onUpdate:show":t[3]||(t[3]=function(e){return ls(i)?i.value=e:null}),trigger:`click`,placement:`bottom-end`,"display-directive":`show`},{trigger:Y(function(){return[j(c,{type:`primary`,ghost:``},{default:Y(function(){return[A(G(K(s)?e.$t(`Saved {0} execution times`,[K(s)]):e.$t(`Multiple executions`))+` `,1),j(n,{class:`ml-6px`,name:`down`})]}),_:1})]}),default:Y(function(){return[j(re,{ref_key:`executionFormRef`,ref:o,class:`p-16px`,model:r.value},{default:Y(function(){return[E(`div`,Ve,G(e.$t(`All execution times`)),1),E(`div`,en,[t[4]||(t[4]=E(`span`,{class:`execution-index execution-index--primary`},`1`,-1)),E(`span`,wn,G(K(l)),1),r.value.time===`week`?(R(),D(u,{key:0,class:`w-110px!`,value:r.value.week,"onUpdate:value":t[0]||(t[0]=function(e){return r.value.week=e}),options:K(wl),"consistent-menu-width":!1},null,8,[`value`,`options`])):O(``,!0),j(C,{class:`w-150px!`},{default:Y(function(){return[j(g,{value:r.value.hour,"onUpdate:value":t[1]||(t[1]=function(e){return r.value.hour=e}),"show-button":!1,placeholder:``,min:0,max:23},null,8,[`value`]),j(y,null,{default:Y(function(){return[A(G(e.$t(`Crontab.arrange.index_43`)),1)]}),_:1})]}),_:1}),j(C,{class:`w-165px!`},{default:Y(function(){return[j(g,{value:r.value.minute,"onUpdate:value":t[2]||(t[2]=function(e){return r.value.minute=e}),"show-button":!1,placeholder:``,min:0,max:59},null,8,[`value`]),j(y,null,{default:Y(function(){return[A(G(e.$t(`Crontab.arrange.index_44`)),1)]}),_:1})]}),_:1}),j(w,{class:`ml-auto`,type:`success`,round:``,bordered:!1},{default:Y(function(){return[A(G(e.$t(`First`)),1)]}),_:1})]),(R(!0),k(_,null,Ws(r.value.executionTimes,function(n,i){return R(),k(`div`,{key:i,class:`execution-time-row`},[E(`span`,Wn,G(i+2),1),E(`span`,er,G(K(l)),1),r.value.time===`week`?(R(),D(u,{key:0,class:`w-110px!`,value:n.week,"onUpdate:value":function(e){return n.week=e},options:K(wl),"consistent-menu-width":!1},null,8,[`value`,`onUpdate:value`,`options`])):O(``,!0),j(ee,{class:`w-150px!`,path:`executionTimes.`.concat(i,`.hour`),rule:K(Lo),"show-feedback":!1},{default:Y(function(){return[j(C,{class:`w-full!`},{default:Y(function(){return[j(g,{value:n.hour,"onUpdate:value":function(e){return n.hour=e},"show-button":!1,placeholder:``,min:0,max:23},null,8,[`value`,`onUpdate:value`]),j(y,null,{default:Y(function(){return[A(G(e.$t(`Crontab.arrange.index_43`)),1)]}),_:1})]}),_:2},1024)]}),_:2},1032,[`path`,`rule`]),j(ee,{class:`w-165px!`,path:`executionTimes.`.concat(i,`.minute`),rule:K(Cs),"show-feedback":!1},{default:Y(function(){return[j(C,{class:`w-full!`},{default:Y(function(){return[j(g,{value:n.minute,"onUpdate:value":function(e){return n.minute=e},"show-button":!1,placeholder:``,min:0,max:59},null,8,[`value`,`onUpdate:value`]),j(y,null,{default:Y(function(){return[A(G(e.$t(`Crontab.arrange.index_44`)),1)]}),_:1})]}),_:2},1024)]}),_:2},1032,[`path`,`rule`]),j(c,{class:`ml-auto`,quaternary:``,circle:``,onClick:function(e){return f(i)}},{default:Y(function(){return zl(t[5]||(t[5]=[E(`i`,{class:`i-material-symbols:close text-14px`},null,-1)]))}),_:1},8,[`onClick`])])}),128)),j(c,{class:`mt-12px w-full!`,type:`primary`,ghost:``,dashed:``,onClick:d},{default:Y(function(){return[t[6]||(t[6]=E(`i`,{class:`i-material-symbols:add mr-6px text-16px`},null,-1)),A(` `+G(e.$t(`Add execution time`)),1)]}),_:1}),j(ne,{class:`mt-12px`,justify:`end`},{default:Y(function(){return[j(c,{onClick:p},{default:Y(function(){return[A(G(e.$t(`Public.Btn.Clear`)),1)]}),_:1}),j(c,{type:`primary`,onClick:v},{default:Y(function(){return[A(G(e.$t(`Public.Btn.Save`)),1)]}),_:1})]}),_:1})]}),_:1},8,[`model`])]}),_:1},8,[`show`])}}}),Nc=Lr(Pc,[[`__scopeId`,`data-v-9e179572`]]),F(),Fc=M({__name:`time-select`,props:xs({isEdit:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{}}),emits:[`update:value`],setup:function(e,t){var n=t.expose,r=e,i=sl(e,`value`),a=z(null),o=T(function(){return!r.isEdit&&[`day`,`week`].includes(i.value.time)}),s=function(){var e;i.value.executionTimes=[],(e=a.value)==null||e.resetExecutionTimes()},c=function(){var e;return(e=a.value)==null?void 0:e.validate()},l=T(function(){var e=i.value.time,t=e===`once`;return{day:!t&&(e===`day-n`||e===`month`),week:!t&&e===`week`,hour:!t&&e!==`hour`&&e!==`minute-n`&&e!==`second-n`,minute:!t&&e!==`second-n`,second:!t&&e===`second-n`,custom_time:t}}),d=function(e){return e<Date.now()-864e5},f=function(e){var t=new Date,n=new Date(e),r=t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate();return{isHourDisabled:function(e){return r&&e<t.getHours()},isMinuteDisabled:function(e,n){return r&&n!==null&&n===t.getHours()&&e<t.getMinutes()},isSecondDisabled:function(e,n,i){return r&&i!==null&&i===t.getHours()&&n!==null&&n===t.getMinutes()&&e<t.getSeconds()}}},p=function(){kc.value=kc.value.map(function(e){return e.value===`once`&&(e.disabled=r.isEdit),e})};return Ms(function(){p()}),Cl(function(){return i.value.time},s),n({resetExecutionTimes:s,validateExecutionTimes:c}),function(t,n){var r=ce,s=h,c=S,p=b,g=x,_=u,v=m;return R(),D(v,{class:`flex-nowrap! items-center!`},{default:Y(function(){return[j(s,{label:t.$t(`Crontab.Planned.index_9`)},{default:Y(function(){return[j(r,{class:`w-105px!`,value:i.value.time,"onUpdate:value":n[0]||(n[0]=function(e){return i.value.time=e}),options:K(kc),disabled:i.value.time===`once`&&e.isEdit,"consistent-menu-width":!1},null,8,[`value`,`options`,`disabled`])]}),_:1},8,[`label`]),K(l).day?(R(),D(s,{key:0,path:`day`},{default:Y(function(){return[j(g,{class:`w-100px!`},{default:Y(function(){return[j(c,{value:i.value.day,"onUpdate:value":n[1]||(n[1]=function(e){return i.value.day=e}),"show-button":!1,placeholder:``},null,8,[`value`]),j(p,null,{default:Y(function(){return[A(G(t.$t(`Crontab.arrange.index_41`)),1)]}),_:1})]}),_:1})]}),_:1})):O(``,!0),K(l).week?(R(),D(s,{key:1,path:`week`},{default:Y(function(){return[j(r,{class:`w-100px!`,value:i.value.week,"onUpdate:value":n[2]||(n[2]=function(e){return i.value.week=e}),options:K(wl),"consistent-menu-width":!1},null,8,[`value`,`options`])]}),_:1})):O(``,!0),K(l).hour?(R(),D(s,{key:2,path:`hour`},{default:Y(function(){return[j(g,null,{default:Y(function(){return[j(c,{value:i.value.hour,"onUpdate:value":n[3]||(n[3]=function(e){return i.value.hour=e}),class:`w-50px`,"show-button":!1,placeholder:``,"input-props":{name:`hour`}},null,8,[`value`]),j(p,null,{default:Y(function(){return[A(G(t.$t(`Crontab.arrange.index_43`)),1)]}),_:1})]}),_:1})]}),_:1})):O(``,!0),K(l).minute?(R(),D(s,{key:3,path:`minute`,class:`second`},{default:Y(function(){return[j(g,null,{default:Y(function(){return[j(c,{value:i.value.minute,"onUpdate:value":n[4]||(n[4]=function(e){return i.value.minute=e}),class:`w-50px`,"show-button":!1,placeholder:``,"input-props":{name:`minute`}},null,8,[`value`]),j(p,null,{default:Y(function(){return[A(G(t.$t(`Crontab.arrange.index_44`)),1)]}),_:1})]}),_:1})]}),_:1})):O(``,!0),K(l).second?(R(),D(s,{key:4,path:`second`},{default:Y(function(){return[j(g,null,{default:Y(function(){return[j(c,{value:i.value.second,"onUpdate:value":n[5]||(n[5]=function(e){return i.value.second=e}),class:`w-50px`,"show-button":!1,placeholder:``,"input-props":{name:`second`}},null,8,[`value`]),j(p,null,{default:Y(function(){return[A(G(t.$t(`Waf.Setting.config_53`)),1)]}),_:1})]}),_:1})]}),_:1})):O(``,!0),K(l).custom_time?(R(),D(s,{key:5,path:`costom_time`},{default:Y(function(){return[j(_,{"formatted-value":i.value.costom_time,"onUpdate:formattedValue":n[6]||(n[6]=function(e){return i.value.costom_time=e}),type:`datetime`,clearable:``,"is-date-disabled":d,"is-time-disabled":f,"value-format":`yyyy-MM-dd HH:mm:ss`},null,8,[`formatted-value`])]}),_:1})):O(``,!0),j(s,null,{default:Y(function(){return[E(`span`,null,G(K(Jl)(i.value)),1)]}),_:1}),j(s,null,{default:Y(function(){return[K(o)?(R(),D(Nc,{key:0,ref_key:`popoverRef`,ref:a,value:i.value,"onUpdate:value":n[7]||(n[7]=function(e){return i.value=e})},null,8,[`value`])):O(``,!0)]}),_:1})]}),_:1})}}}),e(`Lt`,Mc=Lr(Fc,[[`__scopeId`,`data-v-4488e53e`]])),F(),gi=M({__name:`backup-scheduled-set`,props:{callback:{type:Function,default:function(){}},storageOptions:{default:function(){return[]}},cron:{default:void 0}},setup:function(e,t){var n=t.expose,r=q().t,i=e,a=z(null),o=ss(`site`,{});sc(`site`);var s=Vs({type:`site`,name:``,time:`day`,day:1,week:`1`,hour:1,minute:30,second:5,user:`root`,sBody:``,reminder:`0`,message:[],sName:o.name,backupTo:`localhost`,save:3,databaseType:``,zip:``,url:``,agent:``,dbBackupPath:`/www/backup`,id:0,region:``,splitType:``,splitValue:3,backup:!0,costom_time:null,executionTimes:[],backup_to:`localhost`,retain:3}),l={time:{required:!0,trigger:`change`,message:r(`Please select execute cycle`)},day:{trigger:[`blur`,`input`],validator:function(e,t){return t>=32||t<1||t==null?Error(``.concat(r(`Site.Placeholder.Index_10`),` 1-31`)):!0}},hour:{trigger:[`blur`,`input`],validator:function(e,t){return t==null||t<0||t>23?Error(``.concat(r(`Site.Placeholder.Index_10`),` 0-23`)):!0}},minute:{required:!0,trigger:[`blur`,`input`],validator:function(e,t){return t>=60||t<0||t==null?Error(``.concat(r(`Site.Placeholder.Index_10`),` 0-59`)):s.time===`hour-n`&&t===0&&s.hour===0?Error(r(`Crontab.Script.index_60`)):!0}},second:{required:!0,trigger:[`blur`,`input`],validator:function(e,t){return t>=60||t<1||t==null?Error(``.concat(r(`Site.Placeholder.Index_10`),` 1-59`)):!0}},costom_time:{trigger:[`blur`,`change`],required:!0,message:r(`Please select time`)},backup_to:{required:!0,trigger:`change`,message:r(`Please select backup storage location`)},retain:{required:!0,trigger:[`blur`,`input`],type:`number`,message:r(`Please enter retain quantity`)}},u=function(){return s.time===`once`?s.costom_time:s.time===`minute-n`?s.minute.toString():s.time===`hour-n`?s.hour.toString():s.day.toString()},d=function(){return{name:``.concat(r(`Crontab.Script.index_28`),`[`,o.name,`]`),type:s.time,where1:u(),week:s.week,hour:s.hour.toString(),minute:s.minute.toString(),second:s.time===`second-n`?s.second.toString():``,user:`root`,save:s.retain,backupTo:s.backup_to,sName:o.name||`ALL`,sBody:``,sType:`site`,urladdress:``,save_local:s.backup&&s.backup_to!==`localhost`?`1`:`0`,notice:`0`,notice_channel:``,db_type:``,split_type:``,split_value:`3`,flock:`1`,timeSet:`1`,db_backup_path:`/www/backup`,timeType:`sday`,special_time:``,log_cut_path:`/www/wwwlogs/history_backups`,user_agent:``,version:``,table_list:``,zip_password:``}},f=function(){var e=i.cron,t=d();return Ll(Q({},Lc(e)),{id:e.id,name:e.name,type:t.type,where1:t.where1,week:t.week,hour:t.hour,minute:t.minute,second:t.second,save:t.save,backupTo:t.backupTo,save_local:t.save_local})};return function(){var e;i.cron&&(s.time=i.cron.type||`day`,s.day=Number(i.cron.where1||1),s.week=i.cron.type===`week`&&i.cron.where1||`1`,s.hour=(e=i.cron.where_hour)==null?1:e,s.minute=i.cron.where_minute?i.cron.where_minute:Number(i.cron.where1||30),s.costom_time=i.cron.type===`once`?i.cron.where1:null,s.backup_to=i.cron.backupTo||`localhost`,s.retain=Number(i.cron.save||3),s.backup=!!i.cron.save_local)}(),n({onConfirm:function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return[4,(e=a.value)==null?void 0:e.validate()];case 1:return n.sent(),(t=i.cron)!=null&&t.id?[4,Fa(f())]:[3,3];case 2:return n.sent(),[3,5];case 3:return[4,Br(d())];case 4:n.sent(),n.label=5;case 5:return i.callback(),[2]}})})()}}),function(t,n){var r=h,o=c,u=S,d=b,f=x,p=Mi;return R(),D(p,{class:`p-16px pt-24px`,ref_key:`formRef`,ref:a,model:K(s),rules:l},{default:Y(function(){return[j(Mc,{value:K(s),"onUpdate:value":n[0]||(n[0]=function(e){return ls(s)?s.value=e:null})},null,8,[`value`]),j(r,{label:t.$t(`Mail.Backup.index_4`),path:`backup_to`},{default:Y(function(){return[j(da,{class:`w-200px`,value:K(s).backup_to,"onUpdate:value":n[1]||(n[1]=function(e){return K(s).backup_to=e}),"order-opt":e.storageOptions,"is-local":``,"install-callback":i.callback},null,8,[`value`,`order-opt`,`install-callback`])]}),_:1},8,[`label`]),K(s).backup_to===`localhost`?O(``,!0):(R(),D(r,{key:0,label:t.$t(`Crontab.Script.index_55`)},{default:Y(function(){return[j(o,{checked:K(s).backup,"onUpdate:checked":n[2]||(n[2]=function(e){return K(s).backup=e})},{default:Y(function(){return[A(G(t.$t(`Crontab.Script.index_56`)),1)]}),_:1},8,[`checked`])]}),_:1},8,[`label`])),j(r,{label:t.$t(`Docker.Container.log.index_18`),path:`retain`},{default:Y(function(){return[j(f,{class:`w-200px`},{default:Y(function(){return[j(u,{value:K(s).retain,"onUpdate:value":n[3]||(n[3]=function(e){return K(s).retain=e}),min:1,max:999,"show-button":!1},null,8,[`value`]),j(d,null,{default:Y(function(){return[A(G(t.$t(`Crontab.Planned.index_94`)),1)]}),_:1})]}),_:1})]}),_:1},8,[`label`])]}),_:1},8,[`model`])}}}),hi=gi,F(),os(),Be={key:0,class:`text-warning mb-24px`},Qt=[`textContent`],Cn={key:1,class:`text-warning mb-24px`},Un=[`textContent`],$n={class:`wp-backup-guide-plan`},sr={class:`font-bold`},mr=[`textContent`],br={key:2,class:`backup-scheduled__notice-card`},Tr={class:`text-desc`},dt={key:0,class:`text-desc`},ht={class:`font-bold`},yt=[`textContent`],Ct={class:`backup-scheduled__grid wp-backup-guide-plugins`},Dt={class:`backup-plugin-card__body`},At=[`src`,`alt`],Nt={class:`font-bold my-5px`},It={class:`text-desc`},zt={key:1,class:`text-right`},_i=M({__name:`backup-scheduled`,setup:function(e,n){var r=n.expose,i=q().t,o=ss(`site`,{}),s=ss(`siteType`,`wp`),c=T(function(){if(s!==`wp`)return!1;var e=o;return e.main_site||!e.is_child}),l=z(!1),u=el(),f=u.plugins,p=u.storageOptions,h=u.cron,g=u.fetchPlugins,v=function(e){return Z(function(){var t;return $(this,function(n){switch(n.label){case 0:return(t=h.value)!=null&&t.id?[4,rc({id:h.value.id,if_stop:e})]:[2];case 1:return n.sent(),l.value=e,[2]}})})()},y=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return(e=h.value)!=null&&e.id?[4,Sa({id:h.value.id})]:[2];case 1:return t.sent(),l.value=!1,[4,g(o.id)];case 2:return t.sent(),[2]}})})()},b=function(){rl({title:i(`Public.Btn.Delete`),width:450,content:i(`This scheduled task includes [All websites]. Delete it?`),onConfirm:y})},x=function(e){return Z(function(){var t;return $(this,function(n){switch(n.label){case 0:return(t=h.value)!=null&&t.id?e?[3,2]:h.value.sName===`ALL`?(b(),[2]):[4,y()]:(e&&(S.show=!0),[2]);case 1:return n.sent(),[2];case 2:return[4,v(!0)];case 3:return n.sent(),[2]}})})()},S=ol(i(`Configure Schedule`)),C=T(function(){return{callback:function(){return g(o.id)},plugins:f.value,storageOptions:p.value,cron:h.value}}),w=Vs({type:`site`,name:``,time:`day`,day:1,week:`1`,hour:1,minute:30,second:5,user:`root`,sBody:``,reminder:`0`,message:[],sName:``,backupTo:`localhost`,save:3,databaseType:``,zip:``,url:``,agent:``,dbBackupPath:`/www/backup`,id:0,region:``,splitType:``,splitValue:3,backup:!0,costom_time:null}),ee=function(e){pl({name:e.key,title:e.name,admin:!0})},te=function(e){rl({title:i(`Public.Btn.Uninstall`),content:i(`Soft.index_15`,[e.name,``]),onConfirm:function(){return Z(function(){var n;return $(this,function(r){switch(r.label){case 0:return[4,be(function(){return Z(function(){var e;return $(this,function(n){switch(n.label){case 0:return[4,t.import(`./app-legacy.js?v=1784873523001`).then(function(e){return e.vc})];case 1:return e=n.sent().unInstallSoft,[2,{unInstallSoft:e}]}})})()},void 0)];case 1:return n=r.sent().unInstallSoft,[4,n({sName:e.key,version:``})];case 2:return r.sent(),g(o.id),[2]}})})()}})};Cl(h,function(){var e;if(l.value=((e=h.value)==null?void 0:e.status)===1,h.value){var t=Number(h.value.where1||1);w.time=h.value.type||`day`,w.day=Number.isNaN(t)?1:t,w.week=h.value.type===`week`&&h.value.where1||`1`,w.hour=h.value.type===`hour-n`?Number(h.value.where1||0):h.value.where_hour,w.minute=h.value.type===`minute-n`?Number(h.value.where1||0):h.value.where_minute,w.second=Number(h.value.second||5),w.costom_time=h.value.type===`once`?h.value.where1:null}},{immediate:!0,deep:!0});var ne=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,g(o.id)];case 1:return e.sent(),[2]}})})()};return ne(),r({init:ne}),function(e,t){var n=me,r=d,i=a,u=m,p=Fi,v=Ri;return R(),k(`div`,null,[K(c)?(R(),k(`div`,Be,[t[2]||(t[2]=A(` * `,-1)),E(`span`,{textContent:G(e.$t(`Note: Backup schedules and remote storage only apply to the current main site, not sub-sites.`))},null,8,Qt)])):O(``,!0),K(s)===`php`?(R(),k(`div`,Cn,[t[3]||(t[3]=A(` * `,-1)),E(`span`,{textContent:G(e.$t(`Note: Only supports backing up site files (excluding website configuration and databases).`))},null,8,Un)])):O(``,!0),E(`section`,$n,[j(u,{class:`items-center`,size:5},{default:Y(function(){return[t[4]||(t[4]=E(`span`,{class:`w-20px h-20px`},[E(`i`,{class:`i-mingcute:time-line text-primary text-3xl`})],-1)),E(`span`,sr,G(e.$t(`Scheduled Backup Plan`)),1),j(n,{value:K(l),size:`small`,"onUpdate:value":x},null,8,[`value`]),j(r,{vertical:``}),j(i,{onClick:t[0]||(t[0]=function(e){return K(S).show=!0})},{default:Y(function(){return[A(G(e.$t(`Configure Schedule`)),1)]}),_:1})]}),_:1}),E(`div`,{class:`text-desc mt-8px ml-25px`,textContent:G(e.$t(`Once enabled, automated backups will run at your scheduled intervals.`))},null,8,mr)]),K(h)&&K(l)?(R(),k(`div`,br,[j(u,{class:`items-center`},{default:Y(function(){return[t[5]||(t[5]=E(`span`,{class:`backup-scheduled__notice-dot`},null,-1)),E(`span`,null,G(e.$t(`Schedule`))+`: `+G(K(Jl)(K(w))),1),E(`span`,Tr,G(e.$t(`Keep the last {0} backups`,[K(h).save])),1)]}),_:1}),K(h).addtime?(R(),k(`div`,dt,G(e.$t(`Next Execution`))+`: `+G(K(h).addtime),1)):O(``,!0)])):O(``,!0),j(r,{class:`my-24px!`}),E(`section`,null,[j(u,{class:`items-center`,size:5},{default:Y(function(){return[t[6]||(t[6]=E(`span`,{class:`w-20px h-20px`},[E(`i`,{class:`i-mingcute:cloud-line text-primary text-3xl`})],-1)),E(`span`,ht,G(e.$t(`Remote Storage Plugins`)),1)]}),_:1}),E(`div`,{class:`text-desc mt-8px ml-25px`,textContent:G(e.$t(`Back up your data to the cloud to free up local storage and ensure your backups are secure and accessible anytime, anywhere.`))},null,8,yt),E(`div`,Ct,[(R(!0),k(_,null,Ws(K(f),function(t){return R(),k(`div`,{key:t.key,class:`backup-plugin-card`},[E(`div`,Dt,[E(`img`,{class:`backup-plugin-card__icon`,src:K(wo)(t.key),alt:t.name},null,8,At),E(`div`,Nt,G(t.name),1),E(`div`,It,G(t.description),1)]),t.setup?(R(),k(`div`,zt,[j(p,{onClick:function(e){return ee(t)}},{default:Y(function(){return[A(G(e.$t(`Layout.Sider.mail_12`)),1)]}),_:1},8,[`onClick`]),j(r,{vertical:``}),j(p,{onClick:function(e){return te(t)}},{default:Y(function(){return[A(G(e.$t(`Public.Btn.Uninstall`)),1)]}),_:1},8,[`onClick`])])):(R(),D(i,{key:0,type:`primary`,size:`small`,disabled:t.task!==`1`,onClick:function(e){return K(il)(t.key,function(){return K(g)(K(o).id)})}},{default:Y(function(){return[A(G(t.task===`0`?e.$t(`Soft.index_40`):e.$t(`Public.Btn.Install`)),1)]}),_:2},1032,[`disabled`,`onClick`]))])}),128))])]),j(v,{show:K(S).show,"onUpdate:show":t[1]||(t[1]=function(e){return K(S).show=e}),title:K(S).title,data:K(C),footer:!0,width:900,component:hi},null,8,[`show`,`title`,`data`])])}}}),mi=Lr(_i,[[`__scopeId`,`data-v-3f95ab8b`]]),F(),ze={key:0,class:`wp-backup-guide`},Zt={class:`wp-backup-guide__title`},Sn={class:`wp-backup-guide__content`},Hn={class:`wp-backup-guide__footer`},Qn={class:`wp-backup-guide__actions`},ni=M({__name:`backup-guide`,props:{show:{type:Boolean},root:{},persistOnFinish:{type:Boolean,default:!0}},emits:[`change-tab`,`close`],setup:function(e,t){var n=t.expose,r=t.emit,i=q().t,o=e,s=r,c=Ao(),l=z(0),u=fc(null),d,f,p=null,m=0,h=[{tab:`backup`,selector:`.wp-backup-guide-now`,title:i(`Your first backup`),content:i(`Quickly back up your site with this button. To set up scheduled backups and remote storage, go to {0}`,[i(`Schedule & Remote Storage`)])},{tab:`scheduled`,selector:`.wp-backup-guide-plan`,title:i(`Set up backup plan`),content:i(`Please select a backup frequency and time point that suits you. We offer a variety of preset plans for you to choose from.`)},{tab:`scheduled`,selector:`.wp-backup-guide-plugins`,title:i(`Remote storage`),content:i(`Supports the configuration of remote storage destinations, allowing you to store backup files in the cloud and mitigate the risk of server failure.`)}],g=T(function(){return h[l.value]}),_=T(function(){return l.value===h.length-1}),v=T(function(){var e=u.value;return e?{left:``.concat(e.left-8,`px`),top:``.concat(e.top-8,`px`),width:``.concat(e.width+16,`px`),height:``.concat(e.height+16,`px`)}:{}}),y=T(function(){var e=u.value;if(!e)return{left:`calc(50% - 160px)`,top:`calc(50% - 95px)`,width:`320px`};var t=320,n=22,r=16,i=Math.min(Math.max(e.left+e.width/2-t/2,r),window.innerWidth-t-r),a=l.value===2?Math.max(e.top-190-n,r):Math.min(e.bottom+n,window.innerHeight-190-r);return{left:``.concat(i,`px`),top:``.concat(a,`px`),width:``.concat(t,`px`)}}),b=function(e){return!!e&&e.width>0&&e.height>0},x=function(){var e;return((e=o.root)==null?void 0:e.querySelector(g.value.selector))||null},S=function(e){var t=e.getBoundingClientRect();return b(t)?(u.value=t,!0):!1},C=function(){m&&(window.cancelAnimationFrame(m),m=0)},w=function(){C();var e=function(){if(!o.show||!p){m=0;return}S(p),m=window.requestAnimationFrame(e)};m=window.requestAnimationFrame(e)},ee=function(){f==null||f.disconnect(),f=void 0,p=null,C()},te=function(){d==null||d.disconnect(),d=void 0},ne=function(){te(),ee()},re=function(e){p!==e&&(ee(),p=e,f=new ResizeObserver(function(){return S(e)}),f.observe(e),w())},ie=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return o.show?[4,ws()]:[2];case 1:return t.sent(),e=x(),!e||!S(e)?(u.value=null,[2]):(e.scrollIntoView({block:`center`,inline:`nearest`}),[4,ws()]);case 2:return t.sent(),S(e),re(e),[2]}})})()},ae=function(){te(),o.root&&(d=new MutationObserver(function(){ie()}),d.observe(o.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`,`style`]}))},oe=function(e){l.value=e,u.value=null,ee(),s(`change-tab`,h[e].tab),ws(function(){ae(),ie()})},se=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:if(ne(),!o.persistOnFinish)return[3,4];c.first_backup=!1,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ac({name:`wp_backup`,value:0})];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return s(`close`),[2]}})})()},ce=function(){if(_.value){se();return}oe(l.value+1)};return Cl(function(){return o.show},function(e){e?oe(0):ne()},{immediate:!0}),Cl(function(){return o.root},function(){o.show&&(ae(),ie())}),Ms(function(){window.addEventListener(`resize`,ie),window.addEventListener(`scroll`,ie,!0)}),js(function(){ne(),window.removeEventListener(`resize`,ie),window.removeEventListener(`scroll`,ie,!0)}),n({updateGuideTarget:ie}),function(t,n){var r=a;return R(),D(ge,{to:`body`},[e.show?(R(),k(`div`,ze,[n[3]||(n[3]=E(`div`,{class:`wp-backup-guide__mask`},null,-1)),K(u)?(R(),k(`div`,{key:0,class:`wp-backup-guide__target`,style:ks(K(v))},null,4)):O(``,!0),(R(),k(`div`,{key:K(l),class:Os([`wp-backup-guide__popover`,`is-step-`.concat(K(l)+1)]),style:ks(K(y))},[E(`button`,{class:`wp-backup-guide__close`,type:`button`,onClick:se},zl(n[0]||(n[0]=[E(`i`,{class:`i-mingcute:close-line`},null,-1)]))),E(`div`,Zt,[n[1]||(n[1]=E(`span`,{class:`wp-backup-guide__dot`},null,-1)),E(`span`,null,G(K(g).title),1)]),E(`div`,Sn,G(K(g).content),1),E(`div`,Hn,[E(`span`,null,G(K(l)+1)+` / `+G(h.length),1),E(`div`,Qn,[j(r,{text:``,size:`small`,onClick:se},{default:Y(function(){return[A(G(t.$t(`Public.Confirm.Disable`)),1)]}),_:1}),j(r,{type:`primary`,size:`small`,onClick:ce},{default:Y(function(){return[A(G(K(_)?t.$t(`Finished`):t.$t(`Public.Table.Page.index_3`))+` `,1),n[2]||(n[2]=E(`i`,{class:`i-mingcute:right-line ml-2px`},null,-1))]}),_:1})])])],6))])):O(``,!0)])}}}),ti=ni,F(),Wo=M({__name:`index`,props:{row:{},site_type:{default:`wp`}},setup:function(e){var t=q().t,n=Ao(),r=e;Bs(`site`,r.row),Bs(`siteType`,r.site_type);var i=z(null),o=z(`backup`),s=z(!1),c=T(function(){return n.first_backup}),l=T(function(){return c.value||s.value}),u=function(e){switch(e){case`php`:return li;default:return Ei}},d=T(function(){return[{key:`backup`,label:t(`Backup / Restore`),component:u(r.site_type)},{key:`scheduled`,label:t(`Schedule & Remote Storage`),component:mi}]}),f=function(e){o.value=e},p=function(){s.value=!0};return function(e,t){var n=Ui,r=a;return R(),k(`div`,{ref_key:`backupGuideRoot`,ref:i,class:`site-backup-new`},[j(n,{class:`p-16px`,value:K(o),"onUpdate:value":t[0]||(t[0]=function(e){return ls(o)?o.value=e:null}),options:K(d)},null,8,[`value`,`options`]),j(r,{class:`site-backup-new__guide-btn`,size:`small`,secondary:``,onClick:p},{default:Y(function(){return[t[2]||(t[2]=E(`i`,{class:`i-site:light w-14px h-14px mr-4px`},null,-1)),A(` `+G(e.$t(`Help Wizard`)),1)]}),_:1}),j(ti,{show:K(l),root:K(i),"persist-on-finish":K(c),onChangeTab:f,onClose:t[1]||(t[1]=function(e){return s.value=!1})},null,8,[`show`,`root`,`persist-on-finish`])],512)}}}),e(`It`,ve({default:function(){return oi}})),oi=Lr(Wo,[[`__scopeId`,`data-v-6b27e819`]]),Ar=P.global,V=Ar.t,e(`tt`,function(e){return B.post(`/project/python/GetProjectList`,e)}),e(`Pt`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/project/python/StopProject`,e,{requestOptions:{loading:t?V(`Component.Pay.index_12`):``,successMessage:t}})}),e(`Nt`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/project/python/StartProject`,e,{requestOptions:{loading:t?V(`Component.Pay.index_12`):``,successMessage:t}})}),e(`wt`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/project/python/RestartProject`,e,{requestOptions:{loading:t?V(`Component.Pay.index_12`):``,successMessage:t}})}),io=function(e){return B.post(`/site?action=get_project_site_types`,e)},Vr=function(e){return B.post(`/site?action=add_project_site_type`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})},Ca=function(e){return B.post(`/site?action=remove_project_site_type`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})},Ia=function(e){return B.post(`/site?action=modify_project_site_type`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})},ic=function(e){return B.post(`/site?action=batch_set_site_type`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})},e(`et`,function(e){return B.post(`/mod/python/environment/list_environment`,e)}),e(`X`,function(e){return B.post(`/mod/python/environment/remove_environment`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`gt`,function(){return B.post(`/project/python/list_system_user`)}),e(`Y`,function(e){return B.post(`/mod/python/environment/create_python_env`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`H`,function(e){return B.post(`/mod/python/environment/add_environment`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`ht`,function(e){return B.post(`/project/python/list_py_version`,e)}),e(`_t`,function(e){return B.post(`/project/python/async_install_py_version`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`Ft`,function(e){return B.post(`/project/python/RemovePythonV`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`Dt`,function(e){return B.post(`/mod/python/environment/set_environment_default`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`Z`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/project/python/RemoveProject`,e,{requestOptions:{loading:t?V(`Component.Pay.index_12`):``,successMessage:t}})}),e(`U`,function(e){return B.post(`/project/python/CreateProject`,{data:JSON.stringify(e)},{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`lt`,function(e){return B.post(`/project/python/get_info`,e)}),e(`ut`,function(e){return B.post(`/project/python/GetProjectInfo`,e)}),e(`q`,function(e){return B.post(`/project/python/ChangeProjectConf`,{data:JSON.stringify(e)},{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`ct`,function(e){return B.post(`/project/python/GetProjectDomain`,e)}),e(`G`,function(e){return B.post(`/project/python/AddProjectDomain`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!1}})}),e(`Q`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/project/python/RemoveProjectDomain`,e,{requestOptions:{loading:t?V(`Component.Pay.index_12`):``,successMessage:t}})}),e(`rt`,function(e){return B.post(`/project/python/get_port_status`,e)}),e(`St`,function(e){return B.post(`/project/python/BindExtranet`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`J`,function(e){return B.post(`/project/python/unBindExtranet`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`Mt`,function(e){return B.post(`/project/python/add_server_proxy`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`ft`,function(e){return B.post(`/project/python/get_project_redirect_list`,e)}),e(`K`,function(e){return B.post(`/project/python/create_project_redirect`,Ll(Q({},e),{redirectdomain:JSON.stringify(e.redirectdomain)}),{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`bt`,function(e){return B.post(`/project/python/modify_project_redirect`,Ll(Q({},e),{redirectdomain:JSON.stringify(e.redirectdomain)}),{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`xt`,function(e){return B.post(`/project/python/modify_project_redirect`,Ll(Q({},e),{redirectdomain:JSON.stringify(e.redirectdomain)}),{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`$`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return B.post(`/project/python/remove_project_redirect`,e,{requestOptions:{loading:t?V(`Component.Pay.index_12`):``,successMessage:t}})}),e(`mt`,function(e){return B.post(`/project/python/GetConfFile`,e)}),e(`Et`,function(e){return B.post(`/project/python/SaveConfFile`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`pt`,function(e){return B.post(`/crontab?action=get_restart_project_config`,e)}),e(`Tt`,function(e){return B.post(`/crontab?action=set_restart_project`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`ot`,function(e){return B.post(`/mod/python/service/get_services_info`,e)}),e(`At`,function(e){return B.post(`/mod/python/service/handle_service`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`W`,function(e){return B.post(`/mod/python/service/add_service`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`yt`,function(e){return B.post(`/mod/python/service/modify_service`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`Ct`,function(e){return B.post(`/mod/python/service/remove_service`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`st`,function(e){return B.post(`/mod/python/service/get_service_log`,e)}),e(`it`,function(e){return B.post(`/project/python/get_env_info`,e)}),e(`vt`,function(e){return B.post(`/project/python/manage_package`,e)}),e(`at`,function(e){return B.post(`/ajax?action=get_lines`,e,{requestOptions:{errorMessage:!1}})}),e(`jt`,function(e){return B.post(`/project/python/ChangeProjectConf`,{data:JSON.stringify(e)},{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`dt`,function(e){return B.post(`/project/python/GetProjectLog`,e)}),e(`nt`,function(e){return B.post(`/project/python/get_log_split`,e,{requestOptions:{loading:``,successMessage:!1,errorMessage:!1}})}),e(`Ot`,function(e){return B.post(`/project/python/set_log_split`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),e(`kt`,function(e){return B.post(`/project/python/mamger_log_split`,e,{requestOptions:{loading:V(`Component.Pay.index_12`),successMessage:!0}})}),F(),Re={class:`p-20px`},Xt={class:`w-150px`},ki=M({__name:`batch`,props:{data:{}},setup:function(e,t){var n=t.expose,r=e,i=q().t,a=r.data,o=a.siteType,s=a.ids,c=a.onRefresh,l=z(null),u=z([]),d=al(),f=d.loading,p=d.setLoading;(function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),p(!0),[4,io({project_type:o})];case 1:return e=t.sent().message,cs(e)&&e.length>0?(u.value=e.map(function(e){return{label:e.name,value:e.id}}),l.value=e[0].id):(l.value=null,u.value=[]),[3,3];case 2:return p(!1),[7];case 3:return[2]}})})()})();var m=function(){if(l.value===null)throw L.error(i(`Site.PHP.add_site_46`)),Error(i(`Site.PHP.add_site_46`));return{id:l.value,site_ids:JSON.stringify(s),project_type:o}};return n({onConfirm:function(e){var t=e.hide;return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,ic(m())];case 1:return e.sent(),c(),t(),[2]}})})()}}),function(e,t){var n=ce,r=h,i=Mi;return R(),k(`div`,Re,[j(i,null,{default:Y(function(){return[j(r,{label:e.$t(`Site.PHP.add_site_22`),"show-feedback":!1},{default:Y(function(){return[E(`div`,Xt,[j(n,{value:K(l),"onUpdate:value":t[0]||(t[0]=function(e){return ls(l)?l.value=e:null}),loading:K(f),options:K(u)},null,8,[`value`,`loading`,`options`])])]}),_:1},8,[`label`])]}),_:1})])}}}),e(`V`,ve({default:function(){return Oi}})),Oi=ki,F(),os(),Do=function(){var e=new Date;return{start_date:Ba(zr(e,-30),`yyyy-MM-dd`),end_date:Ba(e,`yyyy-MM-dd`)}},e(`z`,Ls=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=P.global.t;J({title:t?`[`.concat(t,`] `,n(`Website statistics`)):n(`Website statistics`),width:900,minHeight:450,data:{name:t,showTops5:e},component:ba(function(){return be(function(){return Promise.resolve().then(function(){return _c})},void 0)})})}),e(`B`,function(e){var t=fc({});return{monitorMap:t,getMonitorData:function(){return Z(function(){var n,r,i,a;return $(this,function(o){switch(o.label){case 0:return n=vc(Ao()),r=n.isFree,i=n.siteMonitorStatus,r.value&&!i.value?[2]:[4,yo(Do(),e)];case 1:return a=o.sent().message,I(a)&&(t.value=a),[2]}})})()}}}),F(),os(),Uo=M({name:`BtEcharts`,__name:`index`,props:{type:{type:String,default:`line`},width:{type:[Number,String],default:`100%`},height:{type:[Number,String],default:`200px`},option:{type:Object,required:!0}},setup:function(e,n){var r=n.expose,i=z(),a={line:ba(function(){return be(function(){return t.import(`./feature-Charts-legacy.js?v=1784873523001`).then(function(e){return e.i})},void 0)}),bar:ba(function(){return be(function(){return t.import(`./feature-Charts-legacy.js?v=1784873523001`).then(function(e){return e.a})},void 0)}),pie:ba(function(){return be(function(){return t.import(`./feature-Charts-legacy.js?v=1784873523001`).then(function(e){return e.t})},void 0)}),map:ba(function(){return be(function(){return t.import(`./feature-Charts-legacy.js?v=1784873523001`).then(function(e){return e.n})},void 0)})};return r({getChart:function(){var e;return(e=i.value)==null?void 0:e.getChart()}}),function(t,n){return R(),D(Ys(a[e.type]),{ref_key:`chartRef`,ref:i,width:e.width,height:e.height,option:e.option},null,8,[`width`,`height`,`option`])}}}),e(`R`,ve({default:function(){return ji}})),e(`L`,ji=Uo),F(),Le={class:`text-left`},Yt={class:`cursor-pointer`},se=M({__name:`Requests`,props:{name:{type:String,default:``},total:{type:[Number,String],default:0},value:{type:Array,default:function(){return[]}}},setup:function(e){var t=T(function(){return e.total.toLocaleString(`en-US`)}),n=gl(),r=T(function(){return{xAxis:{type:`category`,data:e.value.map(function(e){return e.date})},yAxis:{type:`value`,show:!1},series:[{name:`Page views`,data:e.value.map(function(e){return e.value}),type:`line`,lineStyle:{color:n.value.primaryColor,width:2},areaStyle:{color:Mo(n.value.primaryColor,.1)},symbol:`none`}],grid:{left:0,right:0,top:0,bottom:0}}});return function(n,i){return R(),k(`div`,{class:`flex flex-col gap-3px cursor-pointer`,onClick:i[0]||(i[0]=function(t){return K(Ls)(!1,e.name)})},[E(`div`,Le,G(K(t)),1),E(`div`,Yt,[j(ji,{type:`line`,option:K(r),height:`15px`},null,8,[`option`])])])}}}),e(`I`,ve({default:function(){return oe}})),oe=se,F(),Ie={class:`bt-install relative`},Jt={key:0,class:`install-box`},xn={class:`install-desc`},Ho=M({__name:`index`,props:{install:{type:Boolean,default:!0}},setup:function(e){return function(t,n){var r=Ni;return R(),k(`div`,Ie,[Gs(t.$slots,`default`,{},void 0,!0),e.install?O(``,!0):(R(),k(`div`,Jt,[E(`div`,xn,[j(r,{name:`base-warning`,class:`text-warning mr-8px`,size:`24`}),Gs(t.$slots,`desc`,{},void 0,!0)])]))])}}}),e(`F`,Pi=Lr(Ho,[[`__scopeId`,`data-v-aac05997`]])),e(`P`,`/static/vite/images/logo.png`),F(),Fe={class:`flex gap-4`},Gc=M({__name:`tren-type`,props:xs({showSort:{type:Boolean,default:!0}},{sort:{default:`desc`},sortModifiers:{},type:{default:`traffic`},typeModifiers:{}}),emits:[`update:sort`,`update:type`],setup:function(e){var t=sl(e,`sort`),n=sl(e,`type`);return function(r,i){var a=re,o=ie;return R(),k(`div`,Fe,[e.showSort?(R(),D(o,{key:0,value:t.value,"onUpdate:value":i[0]||(i[0]=function(e){return t.value=e}),size:`small`},{default:Y(function(){return[j(a,{value:`desc`},{default:Y(function(){return[A(G(r.$t(`Desc`)),1)]}),_:1}),j(a,{value:`asc`},{default:Y(function(){return[A(G(r.$t(`Asc`)),1)]}),_:1})]}),_:1},8,[`value`])):O(``,!0),j(o,{value:n.value,"onUpdate:value":i[1]||(i[1]=function(e){return n.value=e}),size:`small`},{default:Y(function(){return[j(a,{value:`traffic`},{default:Y(function(){return[A(G(r.$t(`Traffic`)),1)]}),_:1}),j(a,{value:`req_count`},{default:Y(function(){return[A(G(r.$t(`Requests`)),1)]}),_:1}),j(a,{value:`ip_count`},{default:Y(function(){return zl(i[2]||(i[2]=[A(`IP`,-1)]))}),_:1}),j(a,{value:`uv`},{default:Y(function(){return zl(i[3]||(i[3]=[A(`UV`,-1)]))}),_:1}),j(a,{value:`pv`},{default:Y(function(){return zl(i[4]||(i[4]=[A(`PV`,-1)]))}),_:1})]}),_:1},8,[`value`])])}}}),Wc=Gc,F(),Ne=[`textContent`],qt={key:1},bn={class:`font-bold text-16px text-font2`},Vn={class:`text-font2`},Zn={class:`text-font2`},or={class:`font-bold text-16px text-font2`},pr={class:`font-bold text-16px text-font2`},as=M({__name:`index`,props:{name:{type:String,default:``},showTops5:{type:Boolean,default:!0}},setup:function(e){var t=q().t,n=vc(Ao()).siteMonitorStatus,r=vc(ma()),i=r.webserver,o=r.isMonitorInstall,s=T(function(){return i.value!==`openlitespeed`&&(o.value||n.value)}),c=z(!1),l=e,u=Vs({sort:`desc`,top5Type:`traffic`,trenType:`traffic`}),f={traffic:t(`Traffic`),req_count:t(`Requests`),ip_count:`IP`,uv:`UV`,pv:`PV`},h=z([]),g=T(function(){return f[u.trenType]}),v=function(e){return e===`traffic`?`traffic_bytes`:e},y=function(e,t){return t===`traffic`?Ya(e):e},b=Vs({today:{traffic_human:`-`,req_count:`-`,ip_count:`-`,uv:`-`,pv:`-`},yesterday:{traffic_human:`-`,req_count:`-`,ip_count:`-`,uv:`-`,pv:`-`},day_before:{traffic_human:`-`,req_count:`-`,ip_count:`-`,uv:`-`,pv:`-`}}),x=[{key:`traffic_human`,label:t(`Traffic`)},{key:`req_count`,label:t(`Requests`)},{key:`ip_count`,label:`IP`},{key:`uv`,label:`UV`},{key:`pv`,label:`PV`}],S=gl(),C=dc({grid:{left:150,right:50,top:20,bottom:20},tooltip:{trigger:`axis`,backgroundColor:`var(--chart-tooltip-bg-color)`,textStyle:{color:`var(--chart-tooltip-text-color)`},formatter:function(e){var t=Array.isArray(e)?e[0]:e,n=t.name||t.axisValueLabel||``,r=Array.isArray(t.value)?t.value[0]:t.value;return``.concat(n,`<br/>`,f[u.top5Type],`: `,y(r,u.top5Type))}},xAxis:{type:`value`,axisLabel:{formatter:function(e){return y(e,u.top5Type)}}},yAxis:{type:`category`,data:[],axisTick:{show:!1},axisLine:{show:!1},axisLabel:{width:130,overflow:`truncate`,ellipsis:`...`,lineHeight:18,margin:4,align:`right`}},series:[{type:`bar`,data:[],barWidth:14,label:{show:!0,position:`right`,color:`#666`,formatter:function(e){return y(e.value,u.top5Type)}},itemStyle:{color:S.value.primaryColor,borderRadius:[0,6,6,0]}}]}),w=dc({grid:{left:80,right:30,top:20,bottom:20},tooltip:{trigger:`axis`,backgroundColor:`var(--chart-tooltip-bg-color)`,textStyle:{color:`var(--chart-tooltip-text-color)`},formatter:function(e){var t,n=Array.isArray(e)?e[0]:e,r=n.name||n.axisValueLabel||``,i=Array.isArray(n.value)?(t=n.value[1])==null?n.value[0]:t:n.value;return``.concat(r,`<br/>`,g.value,`: `,y(i,u.trenType))}},xAxis:{type:`category`,boundaryGap:!1,data:[]},yAxis:{type:`value`,axisLabel:{formatter:function(e){return y(e,u.trenType)}}},series:[{type:`line`,data:[],smooth:!0,symbol:`circle`,symbolSize:6,itemStyle:{color:`#fff`,borderColor:S.value.primaryColor,borderWidth:2},lineStyle:{color:S.value.primaryColor,width:2},areaStyle:{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Mo(S.value.primaryColor,.35)},{offset:1,color:Mo(S.value.primaryColor,.05)}]}}}]}),ee=function(e){var t;c.value=e.top5_sites.items.length===0;var n=v(u.top5Type);C.yAxis=Ll(Q({},C.yAxis),{data:e.top5_sites.items.map(function(e){return e.site}).reverse()}),C.series=[Ll(Q({},(t=C.series)==null?void 0:t[0]),{data:e.top5_sites.items.map(function(e){return e[n]||0}).reverse()})]},te=function(){var e,t=v(u.trenType);w.xAxis=Ll(Q({},w.xAxis),{data:h.value.map(function(e){return e.date.substring(5)})}),w.series=[Ll(Q({},(e=w.series)==null?void 0:e[0]),{data:h.value.map(function(e){return e[t]||0})})]},ne=al(),re=ne.loading,ie=ne.setLoading,ae=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,5,6]),ie(!0),l.name?[4,xo({site_name:l.name})]:[3,2];case 1:return e=t.sent().message,[3,4];case 2:return[4,bo({metric:u.top5Type,order:u.sort})];case 3:e=t.sent().message,t.label=4;case 4:return I(e)&&(h.value=e.trend_7days.points,Object.assign(b,e.overview_three_days),te(),l.name||ee(e)),[3,6];case 5:return ie(!1),[7];case 6:return[2]}})})()};return Ms(function(){i.value===`openlitespeed`||!o.value&&!n.value||ae()}),function(e,t){var n=Fi,r=Js(`i18n-t`),o=m,f=Ni,h=a,g=p,v=d,y=Gi,S=de,ee=Pi;return R(),D(ee,{install:K(s)},{desc:Y(function(){return[K(i)==`openlitespeed`?(R(),k(`span`,{key:0,textContent:G(e.$t(`This feature is not currently supported by the OpenLiteSpeed service`))},null,8,Ne)):(R(),k(`span`,qt,[j(r,{keypath:`Please use {a} or enable Site Monitor in the Settings`},{a:Y(function(){return[j(n,{class:`font-bold`,onClick:t[0]||(t[0]=function(e){return K(Fs)(l.name)})},{default:Y(function(){return zl(t[5]||(t[5]=[A(`Website statistics-v2`,-1)]))}),_:1})]}),_:1})]))]}),default:Y(function(){return[j(S,{class:`py-16px px-30px`,show:K(re)},{default:Y(function(){return[j(o,{class:`justify-between!`},{default:Y(function(){return[(R(),k(_,null,Ws(x,function(n){return j(o,{class:`flex-col! items-center`,key:n.key},{default:Y(function(){return[E(`span`,null,[t[6]||(t[6]=E(`span`,{class:`circle`},null,-1)),E(`span`,null,G(n.label),1)]),E(`span`,bn,G(K(b).today[n.key]),1),E(`span`,Vn,G(e.$t(`Public.Search.Yesterday`))+` `+G(K(b).yesterday[n.key]),1),E(`span`,Zn,G(e.$t(`Day Before`))+` `+G(K(b).day_before[n.key]),1)]}),_:2},1024)}),64)),j(o,{class:`flex-col! items-center justify-center! cursor-pointer`,onClick:ae},{default:Y(function(){return[j(o,{class:`items-center`,size:5},{default:Y(function(){return[j(f,{name:`base-refresh`,class:`text-primary`}),j(h,{type:`primary`,text:``},{default:Y(function(){return[A(G(e.$t(`Refresh`)),1)]}),_:1})]}),_:1}),t[7]||(t[7]=E(`img`,{src:`/static/vite/images/logo.png`,class:`w-40px h-40px`},null,-1))]}),_:1})]}),_:1}),l.showTops5?(R(),k(_,{key:0},[j(o,{class:`my-25px justify-between! items-center`},{default:Y(function(){return[E(`div`,or,G(e.$t(`Today Top 5 Websites`)),1),j(Wc,{sort:K(u).sort,"onUpdate:sort":[t[1]||(t[1]=function(e){return K(u).sort=e}),ae],type:K(u).top5Type,"onUpdate:type":[t[2]||(t[2]=function(e){return K(u).top5Type=e}),ae]},null,8,[`sort`,`type`])]}),_:1}),K(c)?(R(),D(g,{key:0,class:`h-200px justify-center`})):(R(),D(ji,{key:1,type:`bar`,height:`200px`,option:K(C)},null,8,[`option`]))],64)):O(``,!0),j(o,{class:`my-25px justify-between! items-center`},{default:Y(function(){return[E(`div`,pr,G(e.$t(`Last 7 Days Statistics`)),1),j(Wc,{showSort:!1,type:K(u).trenType,"onUpdate:type":[t[3]||(t[3]=function(e){return K(u).trenType=e}),te]},null,8,[`type`])]}),_:1}),j(ji,{type:`line`,height:`260px`,option:K(w)},null,8,[`option`]),j(v),j(y,{class:`mt-10px`},{default:Y(function(){return[E(`li`,null,[A(G(e.$t(`This is a simplified website statistics report. For more detailed data, please use`))+` `,1),j(h,{type:`primary`,text:``,onClick:t[4]||(t[4]=function(e){return K(Fs)(l.name)})},{default:Y(function(){return zl(t[8]||(t[8]=[A(`Website statistics-v2`,-1)]))}),_:1})])]}),_:1})]}),_:1},8,[`show`])]}),_:1},8,[`install`])}}}),_c=ve({default:function(){return gc}}),gc=Lr(as,[[`__scopeId`,`data-v-3771031c`]]),F(),Me={class:`relative w-full`},Kt={class:`leading-18px`},is=M({__name:`index`,props:{rows:{type:Number,default:4},placeholder:{type:String,default:``},readonly:{type:Boolean,default:!1},name:{type:String,default:``}},emits:[`blur`],setup:function(e,t){var n=t.emit,r=$c(),i=!!fl().default,a=gl(),o=fc(),s=function(){o.value.focus()},c=z(!1),l=function(){c.value=!0},u=function(){c.value=!1,n(`blur`)},d=T(function(){return!i||r.value?!1:!c.value});return function(t,n){var r=C,c=te;return R(),k(`div`,Me,[j(c,{trigger:`focus`,placement:`top-start`,"display-directive":`show`,disabled:!i,style:ks({"--n-color":K(a).primaryColor,"--n-text-color":`#fff`})},{trigger:Y(function(){return[j(r,Ss({ref_key:`inputRef`,ref:o},t.$attrs,{type:`textarea`,placeholder:e.placeholder,"input-props":{name:e.name,spellcheck:!1},autosize:{minRows:e.rows,maxRows:e.rows},readonly:e.readonly,onFocus:l,onBlur:u}),null,16,[`placeholder`,`input-props`,`autosize`,`readonly`])]}),default:Y(function(){return[E(`div`,Kt,[Gs(t.$slots,`default`,{},void 0,!0)])]}),_:3},8,[`disabled`,`style`]),X(E(`div`,{class:`placeholder`,onClick:s},[Gs(t.$slots,`default`,{},void 0,!0)],512),[[xl,K(d)]])])}}}),e(`N`,Wi=Lr(is,[[`__scopeId`,`data-v-9059602f`]])),e(`j`,function(){return B.post(`/ssl_domain?action=get_panel_domain`)}),e(`M`,function(e){return B.post(`/ssl_domain?action=set_panel_domain_ssl`,{domain:JSON.stringify(e.domain)},{requestOptions:{loading:`Installing certificate, please wait...`,successMessage:!1}})}),Eo=function(e){return B.post(`/ssl_domain?action=ssl_tasks_status`,e)},zo=ye(qs(),1),F(),je=[`innerHTML`],Zr=M({__name:`apply-progress`,setup:function(e){var t=z(`Applying for a certificate...`),n=function(){return Z(function(){var e;return $(this,function(n){switch(n.label){case 0:return[4,po({path:`/www/server/panel/logs/letsencrypt.log`})];case 1:return e=n.sent().message,I(e)&&(t.value=e.data?e.data:`None`),[2]}})})()};n();var r=null;return Ms(function(){r=setInterval(function(){n()},1e3)}),Ns(function(){r&&clearInterval(r)}),function(e,n){return R(),k(`pre`,{innerHTML:K(t),class:`h-full overflow-auto bg-black text-white p-10px whitespace-pre-wrap`},null,8,je)}}}),e(`A`,Xr=Zr),F(),Ae={class:`p-16px`},Gt={class:`flex items-center`},bs=M({__name:`manual-parse`,props:{manualParse:{},site_id:{},domains:{},callback:{type:Function},tips:{type:Boolean}},emits:[`close`],setup:function(e,t){var r=t.emit,i=q().t,o=e,s=r,c=ml([{key:`domain`,title:i(`Mail.Domain.index_3`)},{key:`auth_value`,title:i(`Mail.Domain.index_38`)},{key:`type`,title:i(`Ftp.Table.index_3`),width:80},{key:`must`,title:`Essential`,width:100}]),l=c.table,u=c.columns,d=al(),f=d.loading,p=d.setLoading,h=function(){try{p(!0),o.manualParse.length&&(l.data=o.manualParse.map(function(e){return Q({},e.data)}).flatMap(function(e){return Object.values(e)}))}finally{p(!1)}},g=function(){return Z(function(){var e,t,n,r;return $(this,function(i){switch(i.label){case 0:e=J({width:500,height:300,hideClose:!0,component:Xr}),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,oa({site_id:o.site_id,domains:o.domains.join(`,`)})];case 2:return i.sent(),[3,5];case 3:if(t=i.sent(),!t.message.result)return L.error(`Application failed`),[2];n=t.message.result;try{r=zo.default.parse(n)}catch(e){return Ql(n),[2]}if(r)try{$l(r)}catch(e){L.error(`Application failed`)}else L.error(`Application failed`);return[3,5];case 4:return e.hide(),s(`close`),o.callback(),[7];case 5:return[2]}})})()};return h(),function(e,t){var r=n,i=Ni,s=Vi,c=a,d=m,p=Gi;return R(),k(`div`,Ae,[o.tips?(R(),D(r,{key:0,type:`warning`,class:`mb-10px`},{default:Y(function(){return zl(t[0]||(t[0]=[E(`span`,null,`You have unfinished application tasks, please complete them first.`,-1)]))}),_:1})):O(``,!0),j(r,{"show-icon":!1,class:`mb-10px`},{default:Y(function(){return[E(`div`,Gt,[j(i,{name:`base-info`,size:`17`,class:`mr-8px`}),t[1]||(t[1]=E(`span`,{class:`leading-17px`},`Please do TXT analysis according to the following list`,-1))])]}),_:1}),j(s,{loading:K(f),"loading-num":2,columns:K(u),data:K(l).data,"max-height":`450px`},null,8,[`loading`,`columns`,`data`]),j(d,{justify:`end`,class:`my-10px`},{default:Y(function(){return[j(c,{type:`primary`,onClick:g},{default:Y(function(){return[A(G(e.$t(`SSL.Business.index_54`)),1)]}),_:1})]}),_:1}),j(p,null,{default:Y(function(){return[t[2]||(t[2]=E(`li`,{class:`text-error`},`It takes some time to resolve the domain name to take effect. After completing all the resolution operations, please wait 1 minute before clicking the verification button`,-1)),E(`li`,null,`You can manually verify whether the domain name resolution is effective through CMD commands: nslookup -q=txt `+G(K(l).data[0].domain),1),t[3]||(t[3]=E(`li`,null,`If you are using Pagoda Cloud Resolution Plugin, Alibaba Cloud DNS, DnsPod as DNS, you can use the DNS interface to automatically resolve`,-1))]}),_:1})])}}}),ys=bs,F(),ke={class:`p-20px`},Wt={class:`text-14px px-16px`},yn={key:0,class:`error-box leading-25px`},Bn={key:0},Xn={key:0},ar={class:`text-white bg-[#333] p-10px w-full whitespace-pre-wrap`},fr={key:1},yr={class:`text-white bg-[#333] p-10px w-full whitespace-pre-wrap`},Yr=M({__name:`apply-error`,props:{error:{}},setup:function(e){return function(t,n){var r,i,a,o,s,c=Ni,l=m,u=Fi;return R(),k(`div`,ke,[j(l,{class:`items-center! text-error justify-center!`},{default:Y(function(){return[j(c,{name:`base-error`,size:24}),E(`div`,Wt,G(e.error[0]),1)]}),_:1}),(r=e.error[1].challenges)!=null&&r[0]||(i=e.error[1])!=null&&i.detail?(R(),k(`div`,yn,[(a=e.error[1].challenges)!=null&&a[0]?(R(),k(`div`,Bn,[E(`div`,null,[n[0]||(n[0]=E(`span`,{class:`label-text`},`Verify Domain: `,-1)),A(G(e.error[1].identifier.value),1)]),e.error[1].challenges[0].type.indexOf(`dns`)>-1||(o=e.error[1].challenges[0].validationRecord)!=null&&o[0]?(R(),k(`div`,Xn,[n[2]||(n[2]=E(`span`,{class:`label-text`},`Verify URL: `,-1)),j(u,{href:e.error[1].challenges[0].type.indexOf(`dns`)>-1?`https://dnschecker.org/#TXT/_acme-challenge.`.concat(e.error[1].identifier.value):e.error[1].challenges[0].validationRecord[0].url,target:`_blank`},{default:Y(function(){return zl(n[1]||(n[1]=[E(`span`,{class:`font-bold`},`Click to view`,-1)]))}),_:1},8,[`href`])])):O(``,!0),E(`div`,null,[n[3]||(n[3]=E(`span`,{class:`label-text`},`Verify Content: `,-1)),A(G(e.error[1].challenges[0].token),1)]),E(`div`,null,[n[4]||(n[4]=E(`span`,{class:`label-text`},`Error Code: `,-1)),E(`pre`,ar,G(e.error[1].challenges[0].error.detail),1)]),n[5]||(n[5]=E(`div`,null,[E(`span`,{class:`label-text`},`Verification Result:`),E(`span`,{class:`text-error`},`Verification Failed`)],-1))])):O(``,!0),(s=e.error[1])!=null&&s.detail?(R(),k(`div`,fr,[E(`div`,null,[n[6]||(n[6]=E(`span`,{class:`label-text`},`Error Code: `,-1)),E(`pre`,yr,G(e.error[1].detail),1)]),n[7]||(n[7]=E(`div`,null,[E(`span`,{class:`label-text`},`Verification Result:`),E(`span`,{class:`text-error`},`Verification Failed`)],-1))])):O(``,!0)])):O(``,!0)])}}}),Jr=Lr(Yr,[[`__scopeId`,`data-v-8ac8e215`]]),F(),F(),os(),Oe={class:`panel-ssl-progress`},Ut={class:`progress-label`},Pn={class:`w-120px`},hc=M({__name:`ssl-lets-progress`,props:{task_id:{type:Number,default:0},isJump:{type:Boolean,default:!0},onFinish:{type:Function,default:function(){}}},emits:[`close`],setup:function(e,n){var r=n.emit,i=ba(function(){return be(function(){return t.import(`./view-ssl-legacy.js?v=1784873523001`).then(function(e){return e.r})},void 0)}),a=q().t,o=r,s=z({}),c=null,l=z(!1),u=ol(a(`SSL.Domain.index_5`)),d=function(e){u.data.path=e.task_log,u.show=!0},f=function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return Z(function(){var n,r,i,u,d;return $(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,3,4]),t&&(l.value=!0),[4,Eo({task_id:e.task_id})];case 1:if(n=f.sent(),r=n.message,I(r)&&(s.value=r,r.task_code===-1)){if(o(`close`),i=r.task_result.match(/Error:\s*(\[[\s\S]+\])$/),i&&i[1]){u=i[1];try{$l(zo.default.parse(u))}catch(e){L.error(a(`SSL.index_31`))}}else L.error(a(`SSL.index_31`));return[2]}return s.value.task_status===100?(c&&clearTimeout(c),o(`close`),(d=e.onFinish)==null||d.call(e),L.success(a(`Config.Safe.Ssl.index_11`)),e.isJump&&setTimeout(function(){window.location.href=window.location.href.split(`?`)[0]+`?_t=`+Date.now()},1e3)):p(),[3,4];case 2:return f.sent(),e.isJump&&setTimeout(function(){window.location.href=window.location.href.split(`?`)[0]+`?_t=`+Date.now()},1e3),[3,4];case 3:return t&&(l.value=!1),[7];case 4:return[2]}})})()},p=function(){c&&clearTimeout(c),c=window.setTimeout(function(){f()},3e3)};return Ms(function(){f(!0)}),js(function(){c&&(clearTimeout(c),c=null)}),function(e,t){var n=ne,r=Ni,a=de,o=Ri;return R(),k(`div`,Oe,[j(a,{show:K(l)},{default:Y(function(){return[E(`div`,{class:`progress-item`,onClick:t[0]||(t[0]=function(e){return d(K(s))})},[E(`span`,Ut,G(K(s).task_name),1),E(`div`,Pn,[j(n,{percentage:K(s).task_status,type:`line`,status:`success`,processing:K(s).task_status!==100,"indicator-placement":`inside`},null,8,[`percentage`,`processing`])]),j(r,{name:`base-left-logs`,size:`18`})])]}),_:1},8,[`show`]),j(o,{show:K(u).show,"onUpdate:show":t[1]||(t[1]=function(e){return K(u).show=e}),title:K(u).title,data:K(u).data,width:700,height:450,footer:!1,component:K(i)},null,8,[`show`,`title`,`data`,`component`])])}}}),e(`D`,mc=Lr(hc,[[`__scopeId`,`data-v-8b526699`]])),F(),Pr=P.global,bc=Pr.t,F(),De={class:`p-16px`},Gr=M({__name:`add-result`,props:{data:{}},setup:function(e){var t=q().t,n=e,r=ml([{key:`name`,title:t(`Site.TableRow.index_2`)},{key:`status`,title:t(`Public.Table.Status`),render:function(e){return j(`span`,{class:e.status?`text-primary`:`text-error`},[e.msg])}}]),i=r.table,a=r.columns;return ws(function(){i.data=n.data.result}),function(e,t){var n=Vi;return R(),k(`div`,De,[j(n,{data:K(i).data,columns:K(a),"max-height":200},null,8,[`data`,`columns`])])}}}),e(`S`,Gr),yc=P.global.t,So=function(e){return B.post(`/site?action=GetSSL`,e)},oc=function(e){return B.post(`/site?action=HttpToHttps`,e,{requestOptions:{loading:yc(`WP.api.tamper_8`),successMessage:!0}})},la=function(e){return B.post(`/site?action=CloseToHttps`,e,{requestOptions:{loading:yc(`WP.api.tamper_8`),successMessage:!0}})},ua=function(e){return B.post(`/site?action=CloseSSLConf`,e,{requestOptions:{loading:yc(`WP.api.tamper_8`),successMessage:!0}})},e(`x`,function(){return B.post(`/ssl?action=GetCertList`)}),Co=function(e){return B.post(`/site?action=GetSSL`,e)},F(),ul=xa(`siteSsl`,function(){var e=z(null),t=z(null),n=z(!1),r=z(!1),i=z(!1),a=z(``),s=z(o.NotDeploy),c=z(``),l=z(0),u=z(``),d=z(function(){}),f=function(){var e=!1;return l.value<=30&&(e=!0),s.value===o.TestDeploy&&l.value<0&&(e=!0),(s.value===o.SaveOrHolderDeploy||s.value===o.NotDeploy)&&(e=!1),e},p=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Z(function(){var d,p,m;return $(this,function(h){switch(h.label){case 0:if(!o||!e.value)return[2];h.label=1;case 1:return h.trys.push([1,3,4,5]),n.value=!0,[4,So({siteName:e.value.name})];case 2:return d=h.sent().message,I(d)&&(s.value=d.type,r.value=d.status,l.value=Va(d,`cert_data.endtime`,0),u.value=(p=d.cert_data)==null?void 0:p.issuer_O,i.value=f(),c.value=((m=d.cert_data)==null||(m=m.dns)==null?void 0:m.join(`,`))||``,a.value=d.hash,t.value=d),[3,5];case 3:return h.sent(),r.value=!1,i.value=!1,[3,5];case 4:return n.value=!1,[7];case 5:return[2]}})})()};return{site:e,sslInfo:t,loading:n,isStart:r,isRenew:i,hash:a,type:s,domain:c,expirationDay:l,certificateType:u,getInfo:p,setSite:function(t){e.value=t},setExternalRefresh:function(e){d.value=e},refresh:function(){p(),d.value()}}}),F(),Ee={class:`cert-info`},mn={class:`cert-label`},Nn={class:`cert-value`},zn={class:`cert-info`},Yn={class:`cert-label`},ir={class:`cert-value`},dr={class:`cert-info`},vr={class:`cert-label`},wr={class:`cert-value`},ut={class:`cert-info`},mt={class:`cert-label`},vt={class:`cert-value`},St={key:0,class:`text-primary`},Et={key:1,class:`text-error`},kt={class:`cert-info`},Mt={class:`cert-label`},Ft={class:`cert-value`},Rt={class:`w-48%`},Bt={class:`mb-8px`},hn={class:`w-48%`},gn={class:`mb-8px`},rs=M({__name:`index`,setup:function(e,t){var r=t.expose,i=q().t,s=ul(),c=ss(`sslSite`,{}),l=ss(`sslSetRefresh`,function(){}),u=ss(`sslEnableExtranet`,!0),d=z(!1),p=z(``),h=z(``),g=``,_=z(``),b=``;Ms(function(){u&&s.getInfo()}),Cl(function(){return s.sslInfo},function(e){e&&(h.value=e.key||``,g=e.key||``,_.value=e.csr||``,b=e.csr||``,p.value=e.index,d.value=e.httpTohttps)},{immediate:!0});var x=T(function(){var e=s.type;return e===o.LetsEncryptDeploy?i(`Site.Cert.index_65`):e===o.BusinessDeploy?i(`Site.Cert.index_64`):e===o.TestDeploy?i(`Site.Cert.index_38`):i(`Site.Cert.index_37`)}),S=T(function(){var e;return!!((e=s.sslInfo)!=null&&e.csr)}),C=T(function(){return s.isRenew||s.type===o.LetsEncryptDeploy}),w=T(function(){return!1}),ee=T(function(){return s.isStart}),te=function(e){return Z(function(){return $(this,function(t){switch(t.label){case 0:return e?[3,1]:(rl({title:i(`Site.Cert.index_12`),content:i(`Site.Cert.index_13`),onConfirm:function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,la({siteName:c.name})];case 1:return e.sent(),oe(),[2]}})})()},onPublicClose:function(){d.value=!0}}),[3,3]);case 1:return[4,oc({siteName:c.name})];case 2:t.sent(),oe(),t.label=3;case 3:return[2]}})})()},ne=function(){if(h.value.trim()===``||_.value.trim()===``){L.error(i(`Site.Cert.index_9`));return}h.value!==g&&g||_.value!==b&&b?rl({title:i(`Site.Cert.index_10`),content:i(`Site.Cert.index_11`),onConfirm:function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,re()];case 1:return e.sent(),[2]}})})()}}):re()},re=function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return[4,Xc({key:h.value,cert:_.value})];case 1:return e=n.sent(),t=e.message,!I(t)||!t.hash?[3,3]:[4,Oa({hash:t.hash,domains:JSON.stringify([c.name]),append:1})];case 2:n.sent(),L.success(i(`SSL.index_32`)),n.label=3;case 3:return oe(),[2]}})})()},ie=function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return[4,Ks({hash:((e=s.sslInfo)==null?void 0:e.hash)||``})];case 1:return t=n.sent().message,I(t)&&J({hideClose:!0,data:{isJump:!1,task_id:t.task_id,onFinish:function(){s.getInfo()}},component:mc}),[2]}})})()},ae=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,ua({updateOf:1,siteName:c.name})];case 1:return e.sent(),oe(),[2]}})})()},oe=function(){u&&s.getInfo(),l()};return r({init:function(){u&&s.getInfo()}}),function(e,t){var r=Fi,i=v,o=f,c=me,l=y,u=n,p=Wi,g=m,b=a,re=Gi,oe=de;return R(),D(oe,{show:K(s).loading},{default:Y(function(){return[K(S)?(R(),D(u,{key:0,class:`mb-16px`,type:`success`,"show-icon":!1},{default:Y(function(){return[j(l,{"x-gap":12,cols:`15`},{default:Y(function(){return[j(i,{span:`8`},{default:Y(function(){return[E(`div`,Ee,[E(`div`,mn,G(e.$t(`Site.Cert.index_44`))+G(e.$t(`Public.Punctuation.Colon`)),1),E(`div`,Nn,[j(r,null,{default:Y(function(){return[A(G(K(x)),1)]}),_:1})])])]}),_:1}),j(i,{span:`7`},{default:Y(function(){return[E(`div`,zn,[E(`div`,Yn,G(e.$t(`Site.Cert.index_45`))+G(e.$t(`Public.Punctuation.Colon`)),1),E(`div`,ir,[j(o,null,{default:Y(function(){var e;return[A(G(((e=K(s).sslInfo)==null||(e=e.cert_data)==null?void 0:e.issuer)||`other`),1)]}),_:1})])])]}),_:1}),j(i,{span:`8`},{default:Y(function(){return[E(`div`,dr,[E(`div`,vr,G(e.$t(`Site.Cert.index_46`))+G(e.$t(`Public.Punctuation.Colon`)),1),E(`div`,wr,[j(o,null,{default:Y(function(){var t;return[A(G((t=K(s).sslInfo)==null||(t=t.cert_data)==null?void 0:t.dns.join(e.$t(`Public.Punctuation.Comma`))),1)]}),_:1})])])]}),_:1}),j(i,{span:`7`},{default:Y(function(){var t,n,r,i;return[E(`div`,ut,[E(`div`,mt,G(e.$t(`Site.Cert.index_47`))+G(e.$t(`Public.Punctuation.Colon`)),1),E(`div`,vt,[((t=(n=K(s).sslInfo)==null||(n=n.cert_data)==null?void 0:n.endtime)==null?0:t)>0?(R(),k(`span`,St,G(e.$t(`Site.Cert.index_48`,{date:(r=K(s).sslInfo)==null?void 0:r.cert_data.notAfter,days:(i=K(s).sslInfo)==null?void 0:i.cert_data.endtime})),1)):(R(),k(`span`,Et,G(e.$t(`Site.Cert.index_47`)),1))])])]}),_:1}),j(i,{span:`8`},{default:Y(function(){return[E(`div`,kt,[E(`div`,Mt,G(e.$t(`Site.Cert.index_49`))+G(e.$t(`Public.Punctuation.Colon`)),1),E(`div`,Ft,[j(c,{value:K(d),"onUpdate:value":[t[0]||(t[0]=function(e){return ls(d)?d.value=e:null}),te],size:`small`},null,8,[`value`])])])]}),_:1})]}),_:1})]}),_:1})):O(``,!0),j(g,{class:`mb-16px`,size:10,justify:`space-between`},{default:Y(function(){return[E(`div`,Rt,[E(`div`,Bt,G(e.$t(`Site.Cert.index_50`)),1),j(p,{value:K(h),"onUpdate:value":t[1]||(t[1]=function(e){return ls(h)?h.value=e:null}),rows:10},null,8,[`value`])]),E(`div`,hn,[E(`div`,gn,G(e.$t(`Site.Cert.index_51`)),1),j(p,{value:K(_),"onUpdate:value":t[2]||(t[2]=function(e){return ls(_)?_.value=e:null}),rows:10},null,8,[`value`])])]}),_:1}),j(g,{class:`mb-12px`},{default:Y(function(){return[j(b,{type:`primary`,onClick:ne},{default:Y(function(){return[A(G(K(s).isStart?e.$t(`Public.Btn.Save`):e.$t(`Site.Cert.index_52`)),1)]}),_:1}),K(C)?(R(),D(b,{key:0,type:`primary`,onClick:ie},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_53`)),1)]}),_:1})):O(``,!0),K(w)?(R(),D(b,{key:1},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_54`)),1)]}),_:1})):O(``,!0),K(ee)?(R(),D(b,{key:2,onClick:ae},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_55`)),1)]}),_:1})):O(``,!0)]}),_:1}),j(re,null,{default:Y(function(){return[E(`li`,null,G(e.$t(`Site.Cert.index_33`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_34`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_35`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_36`)),1)]}),_:1})]}),_:1},8,[`show`])}}}),_a=Lr(rs,[[`__scopeId`,`data-v-60ba1713`]]),F(),Te={class:`flex flex-wrap`},pn={class:`text-primary w-100%`},Vc=M({__name:`top-tips`,setup:function(e){var t=q().t,r=[t(`SSL.SiteSSL.index_5`),t(`SSL.SiteSSL.index_6`),t(`SSL.SiteSSL.index_7`),t(`SSL.SiteSSL.index_8`),t(`SSL.SiteSSL.index_9`),t(`SSL.SiteSSL.index_10`),t(`SSL.SiteSSL.index_11`)];return function(e,t){var i=Ni,a=m,o=n;return R(),D(o,{type:`success`,"show-icon":!1},{default:Y(function(){return[E(`div`,Te,[(R(),k(_,null,Ws(r,function(e,t){return j(a,{size:5,key:e,class:Os([`flex-nowrap! leading-20px`,{"w-33%":t!==r.length-1}])},{default:Y(function(){return[j(i,{name:`base-tick`,size:16,color:`#ff8d00`}),E(`span`,pn,G(e),1)]}),_:2},1032,[`class`])}),64))])]}),_:1})}}}),Bc=Vc,F(),e(`_`,z(`manage`)),e(`g`,z(!1)),e(`p`,Io=z([])),e(`s`,ja=z([])),e(`u`,Po=z()),e(`f`,Fo=z(``)),e(`o`,Aa=z(``)),e(`h`,vs=z(!1)),e(`a`,z(``)),e(`d`,z(!1)),e(`y`,[{label:`A`,value:`A`},{label:`AAAA`,value:`AAAA`},{label:`MX`,value:`MX`},{label:`TXT`,value:`TXT`},{label:`NS`,value:`NS`},{label:`CAA`,value:`CAA`},{label:`CNAME`,value:`CNAME`}]),e(`l`,function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),vs.value=!0,[4,mo({p:1,limit:9999})];case 1:return e=n.sent().message,I(e)&&(t=e.data.find(function(e){return e.name===`aaPanelDns`}),t&&(e.data.splice(e.data.indexOf(t),1),e.data.unshift(t)),e.data.length>0?(Io.value=e.data.map(function(e){return{label:e.name,value:e.id,alias:e.alias}}),Po.value||(Po.value=Io.value[0].value),Fo.value||(Fo.value=Io.value[0].label),Io.value.some(function(e){return e.value===Po.value})||(Po.value=Io.value[0].value,Fo.value=Io.value[0].label)):(Io.value=[],Po.value=void 0,Fo.value=``)),[3,3];case 2:return vs.value=!1,[7];case 3:return[2]}})})()}),e(`c`,function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),vs.value=!0,[4,fo({p:1,limit:9999,id:Po.value})];case 1:return e=t.sent().message,I(e)&&(e.data.length>0?(ja.value=e.data.map(function(e){return{label:e.name,value:e.name,ssl_info:e.ssl_info.end_time,dns_resolve:e.dns_resolve}}),Aa.value||(Aa.value=ja.value[0].value)):(ja.value=[],Aa.value=``)),[3,3];case 2:return vs.value=!1,[7];case 3:return[2]}})})()}),e(`v`,function(e){return{key:`provider`,title:P.global.t(`SSL.Domain.index_28`),render:function(t){var n=t.task&&t.task.some(function(e){return e.task_status!==100});return j(m,null,{default:function(){return[j(`span`,null,[t.name||t.provider]),n?j(te,{trigger:`hover`},{trigger:function(){return j(de,{size:`small`},null)},default:function(){return j(_,null,[t.task.map(function(t){return j(`div`,{class:`flex flex-nowrap! p-10px cursor-pointer justify-between items-center`,title:P.global.t(`SSL.Domain.index_33`),key:t.id,onClick:function(){e(t.task_log)}},[j(`span`,{class:`whitespace-nowrap mr-10px`},[t.task_name]),j(m,{class:`items-center flex-nowrap!`},{default:function(){return[j(ne,{class:`w-120px!`,type:`line`,status:`success`,percentage:t.task_status,"indicator-placement":`inside`,processing:t.task_status!==100},null),j(Ni,{name:`base-left-logs`,size:18},null)]}})])})])}}):``]}})}}}),e(`m`,function(e){return{key:`ps`,title:P.global.t(`SSL.Domain.index_29`),render:function(t){var n,r,i,a=t.user_for;if(!a)return`--`;var o=function(){e(t,arguments.length>0&&arguments[0]!==void 0?arguments[0]:`site`)};return Object.keys(a).map(function(e){return a[e]}).every(function(e){return e.length===0})?j(`span`,{class:`bt-link`,onClick:function(){return o()}},[P.global.t(`SSL.Domain.index_30`)]):j(Ii,{options:[{label:P.global.t(`Layout.Sider.site_1`),onClick:function(){return o(`site`)},show:((n=a.sites)==null?void 0:n.length)>0},{label:P.global.t(`SSL.Domain.index_31`),onClick:function(){return o(`mail`)},show:((r=a.mails)==null?void 0:r.length)>0},{label:P.global.t(`SSL.Domain.index_32`),onClick:function(){return o(`panel`)},show:((i=a.panel)==null?void 0:i.length)>0}]},null)}}}),e(`b`,ll=function(e){var t=e.key,n=t===void 0?`end_time`:t;return{key:n,title:e.title,width:e.width,render:function(e){var t=n.split(`.`).reduce(function(e,t){return e&&e[t]},e);if(t===-1||t===void 0)return`--`;var r=Number(t);if(r<=0){var i;return j(he,{type:`error`,class:`px-10px`},iu(i=P.global.t(`Config.Safe.index_166`))?i:{default:function(){return[i]}})}return j(he,{type:r>30?`success`:`warning`,class:`px-10px`},{default:function(){return[r,A(` `),P.global.t(`Crontab.arrange.index_41`)]}})}}}),F(),N=Vs({domainCount:1,certType:`dv`,brand:`Positive`,mode:`single`,years:5,deploy:1}),Cl(function(){return N.certType},function(e){e===`dv`?N.brand=`Positive`:N.brand=`sslTrus`,N.domainCount>1?N.mode=`multi`:N.mode=`single`}),Cl(function(){return N.domainCount},function(e){e>1&&N.mode===`single`?N.mode=`multi`:e===1&&N.mode===`multi`&&(N.mode=`single`)}),Cl(function(){return N.domainCount},function(e){e>1&&N.brand===`GeoTrust`&&(N.brand=`Positive`)}),ga=T(function(){var e;return((e=qi.value)==null?void 0:e.find(function(e){var t=e.brand===N.brand,n=e.type.substring(0,2).toLowerCase()===N.certType,r=!1;return N.brand===`Sectigo`&&N.certType===`ov`&&N.mode===`wildcard`&&N.domainCount>1?(r=e.code.includes(`comodo-multi-domain-wildcard`),t&&n&&r):N.brand===`Positive`&&N.certType===`dv`&&N.mode===`wildcard`&&N.domainCount>1?(r=e.code.includes(`multi-domain-wildcard`),t&&n&&r):(N.mode===`single`?r=e.add_price===0:N.mode===`multi`?r=e.code.includes(`multi`):N.mode===`wildcard`&&(N.brand===`Digicert`||N.domainCount===1?r=e.code.includes(`wildcard`):(r=e.code.includes(`multi-domain-wildcard`),r||(L.error(`The current certificate brand does not support multi-domain certificate, has automatically switched to the supported certificate brand for you!`),N.mode=`multi`))),N.brand===`Digicert`&&N.certType===`ov`&&N.mode===`wildcard`?r=e.code.includes(`digicert-basic-ov-wildcard`):N.brand===`Digicert`&&!r&&(r=e.code.includes(`digicert-secure-site-`.concat(N.certType))),t&&n&&r)}))||{}}),na=[{value:`dv`,name:`DV certificate`,desc:`Recommended for personal, test use`},{value:`ov`,name:`OV certificate`,desc:`Recommended for enterprise use`},{value:`ev`,name:`EV certificate`,desc:`Recommended for large government and enterprise use, high security`}],Qi=Vs([{value:`Positive`,name:`Positive`,show:T(function(){return N.certType!==`ov`})},{value:`sslTrus`,name:`sslTrus`,show:!0},{value:`Digicert`,name:`Digicert`,show:T(function(){return N.certType!==`dv`})},{value:`GeoTrust`,name:`GeoTrust`,show:T(function(){return N.domainCount===1||N.domainCount!==1&&N.certType===`ev`})},{value:`Sectigo`,name:`Sectigo`,show:!0}]),ea=Vs([{value:`single`,name:`Single domain`,show:T(function(){return N.domainCount===1})},{value:`multi`,name:`Multi-domain`,show:T(function(){return N.domainCount>1})},{value:`wildcard`,name:`Wildcard`,show:T(function(){return N.certType!==`ev`})}]),Tl=[{value:5,name:`5 year`},{value:4,name:`4 year`},{value:3,name:`3 year`},{value:2,name:`2 year`},{value:1,name:`1 year`}],Da=[{value:1,name:`Deploy Service`},{value:0,name:`It isn't necessary`}],Ki=z(),qi=z(),ta=T(function(){var e,t=(e=Ki.value)==null?void 0:e.type[N.certType];return Array.isArray(t)&&t.length>0?t[0]:``}),Xi=T(function(){var e,t=(e=Ki.value)==null?void 0:e.brand[N.brand];return Array.isArray(t)&&t.length>0?t[0]:``}),Zi=T(function(){var e,t=(e=Ki.value)==null?void 0:e.recommend[N.certType];return typeof t==`string`?t:``}),$i=T(function(){return N.mode===`single`?`Only one secondary domain or subdomain is supported, e.g. bt.com, cloud.bt.com, or dnspod.cloud.bt.com. If you need to bind all subdomains of a peer, e.g. *.bt.com, purchase a universal domain certificate.`:`Domain names with wildcards, such as *.bt.com and *.cloud.bt.com, are universal domain names that contain all subdomain names of the same level.<br>Note that universal domain names do not support cross-tiers, e.g. *.bt.com does not include *.cloud.bt.com support`}),El=T(function(){var e,t=(e=Ki.value)==null?void 0:e.times[``.concat(N.years,`_year`)];return Array.isArray(t)&&t.length>0?t[0]:``}),Qa=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,co()];case 1:return e=t.sent().message,I(e)&&(Ki.value=e.info,qi.value=e.data.map(function(e){return Ll(Q({},e),{isMulti:e.code.indexOf(`multi`)>-1,isWildcard:e.code.indexOf(`wildcard`)>-1,isMultiWildcard:e.code.indexOf(`multi-domain-wildcard`)>-1})})),[2]}})})()},F(),we={class:`number-control`},fn={class:`text-desc`},Mn={class:`text-#fc6d26`},Na=M({__name:`domain-count`,setup:function(e){var t=function(e){N.domainCount<=1&&e===-1||N.domainCount>=99&&e===1||(N.domainCount+=e)};return function(e,n){var r=m,i=h;return R(),D(i,{label:e.$t(`Domain Count`)},{default:Y(function(){return[j(r,{class:`flex-col!`},{default:Y(function(){var r,i;return[E(`div`,we,[E(`div`,{class:Os([`minus`,{"is-disable":K(N).domainCount<=1}]),onClick:n[0]||(n[0]=function(e){return t(-1)})},null,2),X(E(`input`,{type:`number`,"onUpdate:modelValue":n[1]||(n[1]=function(e){return K(N).domainCount=e}),class:`number-input`,onInput:n[2]||(n[2]=function(e){return K(N).domainCount=Math.min(Math.max(K(N).domainCount,1),99)})},null,544),[[bl,K(N).domainCount,void 0,{number:!0}]]),E(`div`,{class:Os([`plus`,{"is-disable":K(N).domainCount>=99}]),onClick:n[3]||(n[3]=function(e){return t(1)})},null,2)]),E(`div`,fn,[X(E(`div`,null,[A(G(e.$t(`SSL.Business.index_1`,[(r=K(ga))==null?void 0:r.num]))+` `,1),E(`span`,Mn,`$ `+G((((i=K(ga))==null?void 0:i.add_price)/100).toFixed(2))+`/one/year`,1)],512),[[xl,K(N).domainCount>1]]),E(`div`,null,G(e.$t(`SSL.Business.index_2`)),1)])]}),_:1})]}),_:1},8,[`label`])}}}),Ma=Lr(Na,[[`__scopeId`,`data-v-0b876ba0`]]),F(),zs=M({__name:`paypal-button`,setup:function(e){var t=z(null),n=z(0),r=function(e){return Z(function(){var r,o,s;return $(this,function(c){switch(c.label){case 0:return[4,gs({clientId:e})];case 1:return r=c.sent(),r&&t.value&&(t.value.innerHTML=``,(o=r.Buttons)==null||o.call(r,{style:{height:30},fundingSource:(s=r.FUNDING)==null?void 0:s.PAYPAL,createOrder:function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,a(!1)];case 1:return e.sent(),[2,ro({oid:n.value}).then(i).then(function(e){return e})]}})})()},onApprove:function(e){return sa({paypal_order_id:e.orderID}).then(function(){Hs()})}}).render(t.value)),[2]}})})()},i=function(e){return new Promise(function(t,n){var r=e.message;if(I(r)){if(r.status)return t(r.res);L.error(r.msg)}n(r)})},a=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Z(function(){var t,i,a,o;return $(this,function(s){switch(s.label){case 0:return[4,Yi({pdata:JSON.stringify({pid:((t=ga.value)==null?void 0:t.pid)||8001,years:N.years,deploy:N.deploy,num:N.domainCount-((i=ga.value)==null?void 0:i.num)>0?N.domainCount-((a=ga.value)==null?void 0:a.num):0})})];case 1:return o=s.sent().message,I(o)&&(e&&r(o.paypal_client_id),n.value=o.order_id),[2]}})})()};return a(),function(e,n){return R(),k(`div`,{ref_key:`payBtnRef`,ref:t},null,512)}}}),Rs=zs,F(),ot={class:`flex-shrink-0! font-bold`},dn={class:`font-bold`},jn={class:`text-#fc6d26`},rr={class:`font-bold text-20px`},ur={key:1},_r={class:`text-desc line-through`},Cr={class:`text-right`},lt={class:`color-desc whitespace-nowrap`},Uc=M({__name:`total-price`,setup:function(e){var t=q().t,n=null,r=T(function(){var e,t,n;return N.domainCount-((e=ga.value)==null?void 0:e.num)>0?(N.domainCount-((t=ga.value)==null?void 0:t.num))*((n=ga.value)==null?void 0:n.add_price):0}),i=T(function(){var e,t;return(((((e=ga.value)==null?void 0:e.price)+r.value)*N.years+(N.deploy?(t=ga.value)==null?void 0:t.deploy_price:0))/100).toFixed(2)}),o=T(function(){var e,t;return(((((e=ga.value)==null?void 0:e.other_price)+r.value)*N.years+(N.deploy?(t=ga.value)==null?void 0:t.deploy_price:0))/100).toFixed(2)}),s=z(0),c=function(){return Z(function(){var e,r,i,a,o,c;return $(this,function(l){switch(l.label){case 0:e=L.loading(t(`Component.Pay.index_12`)),l.label=1;case 1:return l.trys.push([1,,7,8]),[4,Yi({pdata:JSON.stringify({pid:(r=ga.value)==null?void 0:r.pid,years:N.years,deploy:N.deploy,num:N.domainCount-((i=ga.value)==null?void 0:i.num)>0?N.domainCount-((a=ga.value)==null?void 0:a.num):0})})];case 2:return o=l.sent(),c=o.message,I(c)?(s.value=c.order_id,c.stripe_checkout_redirect_url?(u(),window.open(c.stripe_checkout_redirect_url,`_blank`,`no_opener,noreferrer`),[3,6]):[3,3]):[3,6];case 3:return c.session_id?[4,_s(c.stripe_public_key)]:[3,5];case 4:return n=l.sent(),n&&n.redirectToCheckout({sessionId:c.session_id}),[3,6];case 5:L.error(t(`Component.Pay.index_28`)),l.label=6;case 6:return[3,8];case 7:return e.close(),[7];case 8:return[2]}})})()},l=null,u=function(){return Z(function(){var e,n,r,i;return $(this,function(o){switch(o.label){case 0:return e=L.loading(function(){return j(_,null,[j(`span`,null,[A(`Paying in progress, `)]),j(a,{text:!0,type:`primary`,onClick:n},{default:function(){return[A(`Cancel Pay`)]}})])}).close,n=function(){rl({title:t(`Public.Confirm.Title`),content:`Do you want to confirm the cancellation of payment?`,onConfirm:function(){return Z(function(){return $(this,function(t){return l&&(clearTimeout(l),l=null),e(),[2]})})()}})},r=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Z(function(){var r,a;return $(this,function(o){switch(o.label){case 0:return[4,ka({order_id:s.value})];case 1:return r=o.sent(),a=r.message,I(a)&&a.res===1?(l&&(clearTimeout(l),l=null),e(),L.success(t(`Component.Pay.index_7`)),[4,Jc({force:1})]):[3,3];case 2:return o.sent(),Hs(),[2];case 3:return n&&l!==null&&i(),[2]}})})()},i=function(){l=window.setTimeout(function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,r()];case 1:return e.sent(),[2]}})})()},1e3)},l&&clearTimeout(l),[4,r(!1)];case 1:return o.sent(),i(),[2]}})})()};return function(e,t){var n=m;return R(),D(n,{class:`total-price justify-between! flex-nowrap!`},{default:Y(function(){return[j(n,{class:`flex-col!`},{default:Y(function(){return[j(n,{class:`flex-nowrap!`},{default:Y(function(){var t,n,i,a;return[E(`div`,ot,G(e.$t(`SSL.Business.index_3`)),1),E(`div`,null,[E(`span`,null,`The default contains `+G((t=K(ga))==null?void 0:t.num)+` domain $`+G((((n=K(ga))==null?void 0:n.price)/100).toFixed(2))+`/year`,1),X(E(`span`,null,`over `+G(K(N).domainCount-((i=K(ga))==null?void 0:i.num))+` additional domain names $`+G((K(r)/100).toFixed(2))+`/year`,513),[[xl,K(N).domainCount>((a=K(ga))==null?void 0:a.num)]])])]}),_:1}),j(n,{class:`items-center!`},{default:Y(function(){return[E(`div`,dn,G(e.$t(`SSL.Business.index_4`)),1),E(`div`,null,[E(`div`,jn,[O(``,!0),E(`span`,null,[E(`text`,rr,`$`+G(K(i)?(Number(K(i))/K(N).years).toFixed(2):`--`),1),t[0]||(t[0]=A(`/year `,-1))]),K(N).deploy?(R(),k(`span`,ur,`(`+G(e.$t(`SSL.Business.index_5`))+`)`,1)):O(``,!0)]),E(`div`,_r,`Original price $`+G(K(o)?(Number(K(o))/K(N).years).toFixed(2):`--`)+`/year`,1)])]}),_:1})]}),_:1}),j(n,{class:`flex-col!`},{default:Y(function(){return[E(`div`,Cr,[j(K(a),{type:`primary`,size:`large`,onClick:c},{default:Y(function(){return[A(G(e.$t(`Component.Auth.index_3`)),1)]}),_:1})]),j(n,{class:`flex-nowrap! items-center!`},{default:Y(function(){return[E(`span`,lt,G(e.$t(`Component.Pay.index_27`,[`Stripe`])),1),j(Rs)]}),_:1})]}),_:1})]}),_:1})}}}),Hc=Lr(Uc,[[`__scopeId`,`data-v-a98a5ede`]]),F(),at=[`onClick`],un={class:`item-title`},An={class:`text-desc leading-20px pb-10px`},Rn={class:`item-tag`},Jn=[`innerHTML`],nr=[`onClick`],lr={class:`item-tag`},gr=[`innerHTML`],Sr=[`onClick`],ct=[`innerHTML`],pt=[`onClick`],_t=[`innerHTML`],xt=[`onClick`],Tt={class:`text-#fc6d26`},ns=M({__name:`index`,setup:function(e){var t=function(e,t){N[e]=t},n=al(),r=n.loading,i=n.setLoading;return Ms(function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return e.trys.push([0,,2,3]),i(!0),[4,Qa()];case 1:return e.sent(),[3,3];case 2:return i(!1),[7];case 3:return[2]}})})()}),function(e,n){var i=m,a=h,o=Mi,s=de;return R(),D(s,{show:K(r),class:`w-850px! select-none`},{default:Y(function(){return[O(``,!0),j(o,{class:`px-16px pt-20px`},{default:Y(function(){return[j(Ma),j(a,{label:`Cert Type`},{default:Y(function(){return[j(i,{class:`flex-col!`},{default:Y(function(){return[j(i,null,{default:Y(function(){return[(R(!0),k(_,null,Ws(K(na),function(e){return R(),k(`div`,{key:e.value,class:Os([`option-item w-210px`,{"is-active":K(N).certType===e.value}]),onClick:function(n){return t(`certType`,e.value)}},[E(`div`,un,G(e.name),1),E(`div`,An,G(e.desc),1),X(E(`div`,Rn,`Hot`,512),[[xl,e.value===`dv`]])],10,at)}),128))]}),_:1}),E(`div`,{class:`text-desc`,innerHTML:K(ta)},null,8,Jn)]}),_:1})]}),_:1}),j(a,{label:`Certificate brand`},{default:Y(function(){return[j(i,{class:`flex-col!`},{default:Y(function(){return[j(i,null,{default:Y(function(){return[(R(!0),k(_,null,Ws(K(Qi),function(e){return X((R(),k(`div`,{key:e.value,class:Os([`option-item`,{"is-active":K(N).brand===e.value}]),onClick:function(n){return t(`brand`,e.value)}},[A(G(e.name)+` `,1),X(E(`div`,lr,`Hot`,512),[[xl,K(Zi)===e.value]])],10,nr)),[[xl,e.show]])}),128))]}),_:1}),E(`div`,{class:`text-desc`,innerHTML:K(Xi)},null,8,gr)]}),_:1})]}),_:1}),j(a,{label:`Certificate type`},{default:Y(function(){return[j(i,{class:`flex-col!`},{default:Y(function(){return[j(i,null,{default:Y(function(){return[(R(!0),k(_,null,Ws(K(ea),function(e){return X((R(),k(`div`,{key:e.value,class:Os([`option-item`,{"is-active":K(N).mode===e.value}]),onClick:function(n){return t(`mode`,e.value)}},G(e.name),11,Sr)),[[xl,e.show]])}),128))]}),_:1}),E(`div`,{class:`text-desc`,innerHTML:K($i)},null,8,ct)]}),_:1})]}),_:1}),j(a,{label:`Purchase period`},{default:Y(function(){return[j(i,{class:`flex-col!`},{default:Y(function(){return[j(i,null,{default:Y(function(){return[(R(!0),k(_,null,Ws(K(Tl),function(e){return R(),k(`div`,{key:e.value,class:Os([`option-item`,{"is-active":K(N).years===e.value}]),onClick:function(n){return t(`years`,e.value)}},G(e.name),11,pt)}),128))]}),_:1}),E(`div`,{class:`text-desc`,innerHTML:K(El)},null,8,_t)]}),_:1})]}),_:1}),j(a,{label:`Deploy Service`},{default:Y(function(){return[j(i,{class:`flex-col!`},{default:Y(function(){return[j(i,{class:`items-center!`},{default:Y(function(){return[(R(!0),k(_,null,Ws(K(Da),function(e){return R(),k(`div`,{key:e.value,class:Os([`option-item`,{"is-active":K(N).deploy===e.value}]),onClick:function(n){return t(`deploy`,e.value)}},G(e.name),11,xt)}),128)),X(E(`div`,null,[A(G(e.$t(`SSL.Business.index_7`))+` `,1),E(`span`,Tt,` $`+G((K(ga).deploy_price/100).toFixed(2))+`/1 Time `,1)],512),[[xl,K(N).deploy===1]])]}),_:1}),X(E(`div`,{class:`text-desc`},G(e.$t(`SSL.Business.index_8`)),513),[[xl,K(N).deploy===1]])]}),_:1})]}),_:1})]}),_:1}),j(Hc)]}),_:1},8,[`show`])}}}),e(`i`,Wr=Lr(ns,[[`__scopeId`,`data-v-8e0f720f`]])),F(),os(),it={class:`my-10px`},Oc=M({__name:`table`,setup:function(e){var n=ba(function(){return be(function(){return t.import(`./view-ssl-legacy.js?v=1784873523001`).then(function(e){return e.s})},void 0)}),r=ba(function(){return be(function(){return t.import(`./view-ssl-legacy.js?v=1784873523001`).then(function(e){return e.a})},void 0)}),i=ba(function(){return be(function(){return t.import(`./view-ssl-legacy.js?v=1784873523001`).then(function(e){return e.c})},void 0)}),o=vc(Ao()).userInfo,s=ss(`sslSetRefresh`,function(){}),c=q().t,l=Vs({p:1,limit:9999}),u=ol(c(`SSL.Business.index_41`),{onRefresh:function(e,t){p.data.request=!0,p.data.uc_id=t,p.data.verify=e,p.show=!0,v()}}),d=ol(c(`SSL.index_44`)),f=ol(c(`SSL.index_49`),{onRefresh:function(){v(),s()}}),p=ol(c(`SSL.Business.index_42`),{onRefresh:function(){v()}}),m=ml([{key:`verify_domains`,title:c(`Layout.Sider.mail_3`),render:function(e){return j(`span`,{innerHTML:e.verify_domains&&e.verify_domains.length>0?e.verify_domains.join(`<br/>`):`--`},null)}},{key:`title`,title:c(`Site.Cert.index_44`),render:function(e){return e.order_info.title},ellipsis:{tooltip:!0}},ll({title:c(`SSL.index_54`)}),{key:`order_status`,title:c(`SSL.Business.index_43`),render:function(e){var t=e.order_info;if(!t.certId&&!t.domains.length)return j(`span`,{class:`color-warning cursor-pointer`,onClick:function(){return _(e)}},[` `,c(`SSL.Business.index_44`),` `]);if(!t.certId&&t.domains.length)return j(`span`,{class:`color-warning`},[A(` `),c(`SSL.Business.index_45`),A(` `)]);if(t.order_status===`PENDING`&&t.status===1)return j(`span`,{class:`color-warning`},[A(` `),c(`SSL.Business.index_46`),A(` `)]);if(t.order_status===`COMPLETE`&&t.status===1)return j(`span`,{class:`color-#20a53a`},[A(` `),c(`SSL.Business.index_47`),A(` `)]);if(t.order_status===`CANCELLED`&&t.status===1||t.status===-1)return j(`span`,{class:`color-warning`},[A(` `),c(`SSL.Business.index_48`),A(` `)]);if(t.order_status===`FAILED`&&t.status===1)return j(`span`,{class:`color-error`},[A(` `),c(`SSL.Business.index_49`),A(` `)]);if(t.order_status===`EXPIRED`&&t.status===1)return j(`span`,{class:`color-warning`},[A(` `),c(`SSL.Business.index_50`),A(` `)]);if(t.status===1&&![`PENDING`,`COMPLETE`,`CANCELLED`,`FAILED`,`EXPIRED`].includes(t.order_status))return j(`span`,{class:`color-warning`},[A(` `),c(`SSL.Business.index_51`),A(` `)]);if(t.status===0)return j(`span`,{class:`color-warning`},[A(` `),c(`SSL.Business.index_52`),A(` `)])}},Qc({width:140,options:function(e){return[{show:!e.order_info.certId&&!e.order_info.domains.length,label:c(`SSL.Business.index_53`),onClick:function(){_(e)}},{show:e.order_info.order_status===`PENDING`&&e.order_info.status===1,label:c(`SSL.Business.index_54`),onClick:function(){return Z(function(){var t;return $(this,function(n){switch(n.label){case 0:return[4,Sl({uc_id:e.order_info.uc_id})];case 1:return t=n.sent().message,I(t)&&(p.data.uc_id=e.order_info.uc_id,p.data.verify=t.data,p.data.paths=t.paths,p.show=!0),[2]}})})()}},{show:e.order_info.order_status===`COMPLETE`&&e.order_info.status===1,label:c(`SSL.index_58`),onClick:function(){return Z(function(){return $(this,function(t){return f.data.row=e,f.show=!0,[2]})})()}},{show:e.order_info.order_status===`COMPLETE`&&e.order_info.status===1,label:c(`Ftp.Label.index_11`),onClick:function(){return Z(function(){var t;return $(this,function(n){return t=window.location.origin+`/v2/business_ssl?action=download_cert&uc_id=`+e.order_info.uc_id,window.open(t),[2]})})()}},{show:!1,label:c(`Public.Btn.Del`),onClick:function(){rl({title:c(`SSL.index_59`),content:c(`SSL.index_60`),onConfirm:function(){return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,Ea({hash:e.hash})];case 1:return t.sent(),v(),[2]}})})()}})}}]}})]),h=m.table,g=m.columns,_=function(e){u.data.row=e,u.show=!0},v=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),h.loading=!0,[4,Ja(l)];case 1:return e=t.sent().message,I(e)&&(h.data=e.data,h.total=e.total),[3,3];case 2:return h.loading=!1,[7];case 3:return[2]}})})()};return o.value.status&&v(),function(e,t){var s=a,l=Vi,m=Bi,_=Ri,v=Pi;return R(),k(`div`,it,[j(v,{install:K(o).status},{desc:Y(function(){return[t[5]||(t[5]=E(`span`,{class:`mr-10px`},`Business certificates require login panel to start using them`,-1)),j(s,{type:`primary`,onClick:K(Zc)},{default:Y(function(){return[A(G(e.$t(`Login.index_3`)),1)]}),_:1},8,[`onClick`])]}),default:Y(function(){return[j(m,null,{toolsLeft:Y(function(){return[j(s,{type:`primary`,onClick:t[0]||(t[0]=function(e){return K(d).show=!0})},{default:Y(function(){return[A(G(K(c)(`SSL.index_44`)),1)]}),_:1})]}),table:Y(function(){return[j(l,{loading:K(h).loading,data:K(h).data,columns:K(g),"max-height":220},null,8,[`loading`,`data`,`columns`])]}),_:1}),j(_,{show:K(d).show,"onUpdate:show":t[1]||(t[1]=function(e){return K(d).show=e}),title:K(d).title,data:K(d).data,"min-height":250,component:Wr},null,8,[`show`,`title`,`data`]),j(_,{show:K(u).show,"onUpdate:show":t[2]||(t[2]=function(e){return K(u).show=e}),title:K(u).title,data:K(u).data,width:650,"min-height":450,component:K(n)},null,8,[`show`,`title`,`data`,`component`]),j(_,{show:K(f).show,"onUpdate:show":t[3]||(t[3]=function(e){return K(f).show=e}),title:K(f).title,data:K(f).data,width:720,height:530,component:K(r)},null,8,[`show`,`title`,`data`,`component`]),j(_,{show:K(p).show,"onUpdate:show":t[4]||(t[4]=function(e){return K(p).show=e}),title:K(p).title,data:K(p).data,width:650,"min-height":450,component:K(i)},null,8,[`show`,`title`,`data`,`component`])]}),_:1},8,[`install`])])}}}),Dc=Oc,F(),Rr={},rt={class:`text-error`},Ai=Lr(Rr,[[`render`,au]]),F(),ts=M({__name:`index`,setup:function(e){return function(e,t){return R(),k(`div`,null,[j(Bc),j(Dc),j(Ai)])}}}),Ji=ts,F(),nt={class:`cert-info`},ln={class:`cert-label`},kn={class:`cert-value`},Ln={class:`cert-info`},qn={class:`cert-label`},tr={class:`cert-value`},cr={class:`cert-info`},hr={class:`cert-label`},xr={class:`cert-value`},st={class:`cert-info`},ft={class:`cert-label`},gt={class:`cert-value`},bt={key:0,class:`text-primary`},wt={key:1,class:`text-error`},Ot={class:`w-48%`},jt={class:`mb-8px`},Pt={class:`w-48%`},Lt={class:`mb-8px`},ia=M({__name:`cert`,emits:[`update`],setup:function(e,t){var r=t.emit,i=ss(`sslSite`,{}),o=ss(`sslSetRefresh`,function(){}),s=z(!1),c=z(1),l=z(``),u=z(``),d=Vs({hash:``,issuer:``,notAfter:``,notBefore:``,dns:[],subject:``,endtime:0}),p=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,Ks({hash:d.hash})];case 1:return e=t.sent().message,I(e)&&J({hideClose:!0,data:{isJump:!1,task_id:e.task_id,onFinish:function(){x()}},component:mc}),[2]}})})()},h=function(){return Z(function(){return $(this,function(e){switch(e.label){case 0:return[4,ua({updateOf:1,siteName:i.name})];case 1:return e.sent(),r(`update`),o(),[2]}})})()},g=al(),_=g.loading,b=g.setLoading,x=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),b(!0),[4,Co({siteName:i.name})];case 1:return e=t.sent().message,I(e)&&(s.value=e.status,d.hash=e.hash,d.issuer=e.cert_data.issuer,d.notAfter=e.cert_data.notAfter,d.notBefore=e.cert_data.notBefore,d.dns=e.cert_data.dns,d.subject=e.cert_data.subject,d.endtime=e.cert_data.endtime,l.value=e.key,u.value=e.csr,c.value=e.auto_renew),[3,3];case 2:return b(!1),[7];case 3:return[2]}})})()};return x(),function(e,t){var r=v,i=f,o=y,s=n,g=Wi,b=m,x=a,S=Gi,C=de;return R(),D(C,{show:K(_)},{default:Y(function(){return[j(s,{class:`mb-16px`,type:`success`,"show-icon":!1},{default:Y(function(){return[j(o,{"x-gap":12,cols:`15`},{default:Y(function(){return[K(c)?(R(),D(r,{key:0,span:`16`},{default:Y(function(){return[E(`div`,nt,[E(`div`,ln,G(e.$t(`SSL.SiteSSL.index_22`))+` `,1),E(`div`,kn,G(e.$t(`SSL.SiteSSL.index_23`)),1)])]}),_:1})):O(``,!0),j(r,{span:`7`},{default:Y(function(){return[E(`div`,Ln,[E(`div`,qn,G(e.$t(`Site.Cert.index_45`))+` `,1),E(`div`,tr,[j(i,null,{default:Y(function(){return[A(G(K(d).issuer),1)]}),_:1})])])]}),_:1}),j(r,{span:`8`},{default:Y(function(){return[E(`div`,cr,[E(`div`,hr,G(e.$t(`Site.Cert.index_46`))+` `,1),E(`div`,xr,[j(i,null,{default:Y(function(){return[A(G(K(d).dns.join(e.$t(`Public.Punctuation.Comma`))),1)]}),_:1})])])]}),_:1}),j(r,{span:`7`},{default:Y(function(){return[E(`div`,st,[E(`div`,ft,G(e.$t(`Site.Cert.index_47`))+G(e.$t(`Public.Punctuation.Colon`)),1),E(`div`,gt,[K(d).endtime>0?(R(),k(`span`,bt,G(e.$t(`Site.Cert.index_48`,{date:K(d).notAfter,days:K(d).endtime})),1)):(R(),k(`span`,wt,G(e.$t(`Site.Cert.index_47`)),1))])])]}),_:1})]}),_:1})]}),_:1}),j(b,{class:`mb-16px`,size:10,justify:`space-between`},{default:Y(function(){return[E(`div`,Ot,[E(`div`,jt,G(e.$t(`Site.Cert.index_50`)),1),j(g,{readonly:``,value:K(l),"onUpdate:value":t[0]||(t[0]=function(e){return ls(l)?l.value=e:null}),rows:14},null,8,[`value`])]),E(`div`,Pt,[E(`div`,Lt,G(e.$t(`Site.Cert.index_51`)),1),j(g,{readonly:``,value:K(u),"onUpdate:value":t[1]||(t[1]=function(e){return ls(u)?u.value=e:null}),rows:14},null,8,[`value`])])]}),_:1}),j(b,{class:`mb-12px`},{default:Y(function(){return[j(x,{type:`primary`,onClick:p},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_53`)),1)]}),_:1}),j(x,{onClick:h},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_55`)),1)]}),_:1})]}),_:1}),j(S,null,{default:Y(function(){return[E(`li`,null,G(e.$t(`SSL.SiteSSL.index_24`)),1),E(`li`,null,G(e.$t(`SSL.SiteSSL.index_25`)),1)]}),_:1})]}),_:1},8,[`show`])}}}),ra=Lr(ia,[[`__scopeId`,`data-v-13ad8e59`]]),F(),tt={class:`flex items-center`},cn={class:`leading-17px`},On={class:`w-full`},In={class:`w-full`},Kn={class:`text-error`},Qr=M({__name:`apply`,emits:[`update`],setup:function(e,t){var r=t.emit,i=cl(),o=q().t,l=ss(`sslSite`,{}),u=ss(`sslSetRefresh`,function(){}),d=r,f=Vs({auth_type:`http`,dns_manual:0,auto_wildcard:0,domains:[],all:!1}),g={domains:{required:!0,trigger:`change`,type:`array`,message:o(`SSL.SiteSSL.index_16`)}},v=z(null),y=z([]),b=function(e){var t;return(t=y.value.find(function(t){return t.name===e}))==null?void 0:t.auto},x=function(){i.push(`/ssl_domain/domain`)},S=T(function(){return f.domains.length>0&&f.domains.length<y.value.length});Cl(function(){return f.domains},function(e){e.length===y.value.length?f.all=!0:e.length||(f.all=!1)}),Cl(function(){return f.all},function(e){if(e){var t;f.domains=y.value.map(function(e){return e.name}),(t=v.value)==null||t.validate()}else f.domains=[]}),Cl(function(){return f.auth_type},function(e){if(e===`dns`){var t;f.domains=y.value.filter(function(e){return e.auto}).map(function(e){return e.name}),(t=v.value)==null||t.validate()}else f.domains=[]});var C=T(function(){return f.domains.filter(function(e){return!b(e)})}),w=function(){return Z(function(){var e,t,n,r,i,a,s,c,p,m;return $(this,function(h){switch(h.label){case 0:return[4,(e=v.value)==null?void 0:e.validate()];case 1:return h.sent(),f.auth_type===`dns`&&C.value.length&&!f.dns_manual?(L.error({content:function(){return jo(`span`,{innerHTML:``.concat(C.value.join(`<br/>`),o(`SSL.SiteSSL.index_14`))})}}),[2]):(t={auth_type:f.dns_manual?`dns_manual`:f.auth_type,auto_wildcard:f.auto_wildcard,domains:JSON.stringify(f.domains),site_id:f.dns_manual?l.id:void 0,deploy:+!f.dns_manual},f.dns_manual&&f.auth_type===`dns`?[4,aa({site_id:l.id,domains:JSON.stringify(f.domains)})]:[3,8]);case 2:if(n=h.sent(),r=n.message,I(r)&&Object.keys(r).length)return Zl(r.auths,l.id,f.domains,function(){d(`update`),u()},!0),[2];i=J({width:500,height:300,hideClose:!0,component:Xr}),h.label=3;case 3:return h.trys.push([3,5,6,7]),[4,Hr(t,!1)];case 4:return a=h.sent(),s=a.message,I(s)&&(s.deploy?(L.success(s.result||o(`SSL.index_32`)),d(`update`),u()):Array.isArray(s.auths)&&s.auths.length&&Zl(s.auths,l.id,f.domains,function(){d(`update`),u()})),[3,7];case 5:return c=h.sent(),Ql(Va(c,`message`,``)),[3,7];case 6:return i.hide(),[7];case 7:return[2];case 8:return[4,Hr(t)];case 9:return p=h.sent(),m=p.message,I(m)&&J({hideClose:!0,data:{isJump:!1,task_id:m.task_id,onFinish:function(){d(`update`),u()}},component:mc}),[2]}})})()},ee=al(),te=ee.loading,ne=ee.setLoading,re=function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return n.trys.push([0,,4,5]),ne(!0),[4,_o({id:l.id})];case 1:return e=n.sent().message,cs(e)?(t=e.map(function(e){return Z(function(){var t,n;return $(this,function(r){switch(r.label){case 0:return[4,lo({domain:e.name})];case 1:return t=r.sent(),n=t.message,I(n)&&y.value.push({name:e.name,auto:n.support.includes(`auto`)}),[2]}})})()}),[4,Promise.all(t)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return ne(!1),[7];case 5:return[2]}})})()};return Ms(function(){re()}),function(e,t){var r=Ni,i=n,o=ae,l=ue,u=ie,d=h,ee=c,ne=m,re=s,oe=p,se=de,ce=a,le=Mi,fe=Gi;return R(),k(`div`,null,[X(j(i,{"show-icon":!1,class:`mb-10px`},{default:Y(function(){return[E(`div`,tt,[j(r,{name:`base-info`,size:`17`,class:`mr-8px`}),E(`span`,cn,G(e.$t(`SSL.SiteSSL.index_12`)),1)])]}),_:1},512),[[xl,K(f).auth_type===`dns`]]),j(le,{ref_key:`formRef`,ref:v,model:K(f),rules:g,"label-width":`140`},{default:Y(function(){return[j(d,{label:e.$t(`Config.Safe.Ssl.index_2`)},{default:Y(function(){return[j(u,{value:K(f).auth_type,"onUpdate:value":t[0]||(t[0]=function(e){return K(f).auth_type=e})},{default:Y(function(){return[j(l,null,{default:Y(function(){return[j(o,{value:`http`},{default:Y(function(){return[A(G(e.$t(`SSL.SiteSSL.index_17`)),1)]}),_:1}),j(o,{value:`dns`},{default:Y(function(){return[A(G(e.$t(`SSL.index_12`))+` (Wildcard support) `,1)]}),_:1})]}),_:1})]}),_:1},8,[`value`])]}),_:1},8,[`label`]),X(j(d,{label:` `,"show-feedback":!1},{default:Y(function(){return[j(ee,{checked:K(f).dns_manual,"onUpdate:checked":t[1]||(t[1]=function(e){return K(f).dns_manual=e}),"checked-value":1,"unchecked-value":0},{default:Y(function(){return[A(G(e.$t(`SSL.index_2`)),1)]}),_:1},8,[`checked`])]}),_:1},512),[[xl,K(f).auth_type===`dns`]]),X(j(d,{label:` `},{default:Y(function(){return[j(ee,{checked:K(f).auto_wildcard,"onUpdate:checked":t[2]||(t[2]=function(e){return K(f).auto_wildcard=e}),"checked-value":1,"unchecked-value":0},{default:Y(function(){return[A(G(e.$t(`SSL.SiteSSL.index_20`)),1)]}),_:1},8,[`checked`])]}),_:1},512),[[xl,K(f).auth_type===`dns`]]),j(d,{label:e.$t(`Mail.Domain.index_3`),path:`domains`},{default:Y(function(){return[j(se,{show:K(te),class:`p-12px w-300px max-h-300px min-h-100px overflow-auto border border-solid border-#ccc`},{default:Y(function(){return[j(ee,{class:`mb-12px`,checked:K(f).all,"onUpdate:checked":t[3]||(t[3]=function(e){return K(f).all=e}),label:e.$t(`Public.SelectAll`),indeterminate:K(S)},null,8,[`checked`,`label`,`indeterminate`]),K(y).length?(R(),D(re,{key:0,value:K(f).domains,"onUpdate:value":t[4]||(t[4]=function(e){return K(f).domains=e})},{default:Y(function(){return[j(ne,{class:`flex-col!`,size:12},{default:Y(function(){return[(R(!0),k(_,null,Ws(K(y),function(e){return R(),D(ee,{key:e.name,value:e.name,label:e.name},null,8,[`value`,`label`])}),128))]}),_:1})]}),_:1},8,[`value`])):(R(),D(oe,{key:1,description:`No domain name`}))]}),_:1},8,[`show`])]}),_:1},8,[`label`]),X(j(d,{label:` `},{default:Y(function(){return[j(i,{"show-icon":!1,type:K(C).length?`warning`:`success`},{default:Y(function(){return[(R(!0),k(_,null,Ws(K(f).domains,function(t){return R(),D(ne,{key:t},{default:Y(function(){return[b(t)?(R(),D(ne,{key:0,class:`flex-nowrap! py-3px`},{default:Y(function(){return[j(r,{name:`base-success`,size:`17`,color:`#20a53a`}),E(`span`,On,`[`+G(t)+`] `+G(e.$t(`SSL.SiteSSL.index_13`)),1)]}),_:2},1024)):(R(),D(ne,{key:1,class:`flex-nowrap! py-3px items-center!`},{default:Y(function(){return[j(r,{name:`base-error`,size:`17`,color:`#E85445`}),E(`span`,In,`[`+G(t)+`] `+G(e.$t(`SSL.SiteSSL.index_14`)),1),j(ce,{type:`primary`,size:`tiny`,onClick:x},{default:Y(function(){return[A(G(e.$t(`SSL.SiteSSL.index_21`)),1)]}),_:1})]}),_:2},1024))]}),_:2},1024)}),128))]}),_:1},8,[`type`])]}),_:1},512),[[xl,K(f).auth_type===`dns`&&K(f).domains.length&&!K(f).dns_manual]]),j(d,{label:` `},{default:Y(function(){return[j(ce,{type:`primary`,onClick:w},{default:Y(function(){return[A(G(e.$t(`Public.Btn.Apply`)),1)]}),_:1})]}),_:1})]}),_:1},8,[`model`]),X(j(fe,{class:`mt-16px`},{default:Y(function(){return[E(`li`,Kn,G(e.$t(`SSL.SiteSSL.index_15`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_21`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_23`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_24`)),1)]}),_:1},512),[[xl,K(f).auth_type===`http`]]),X(j(fe,{class:`mt-24px`},{default:Y(function(){return[t[5]||(t[5]=E(`li`,null,`Manually resolved certificates do not support auto-renewal`,-1)),E(`li`,null,G(e.$t(`Site.Cert.index_25`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_26`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_27`)),1),E(`li`,null,G(e.$t(`Site.Cert.index_28`)),1)]}),_:1},512),[[xl,K(f).auth_type===`dns`]])])}}}),qr=Qr,F(),es=M({__name:`index`,setup:function(e){var t=ul(),n=function(){t.refresh()};return function(e,r){return R(),k(`div`,null,[K(t).isStart&&K(t).certificateType===`Let's Encrypt`?(R(),D(ra,{key:0,onUpdate:n})):(R(),D(qr,{key:1,onUpdate:n}))])}}}),hs=es,F(),$o=M({__name:`index`,props:{onMenuChange:{type:Function}},setup:function(e,t){var n=t.expose,r=e,i=ss(`sslSite`,{}),a=q().t,o=Vs({p:1,limit:99999}),s=function(e){nl({title:a(`Site.Cert.index_31`),content:a(`Site.Cert.index_32`),onConfirm:function(){return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,Ea({hash:e.hash})];case 1:return t.sent(),m(),[2]}})})()}})},c=ml([{key:`domain`,title:a(`Site.Cert.index_29`),render:function(e){return j(`span`,{innerHTML:e.verify_domains.length>0?e.verify_domains.join(`<br/>`):`--`},null)}},ll({title:a(`SSL.index_54`),width:140}),{key:`issuer`,title:a(`Site.Cert.index_30`),ellipsis:{tooltip:!0}},Qc({width:150,options:function(e){return[{label:a(`Public.Btn.Deploy`),onClick:function(){return Z(function(){var t;return $(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Oa({hash:e.hash,domains:JSON.stringify([i.name]),append:1})];case 1:return n.sent(),L.success(a(`SSL.index_32`)),setTimeout(function(){r.onMenuChange()},500),[3,3];case 2:return t=n.sent(),console.log(t),[3,3];case 3:return[2]}})})()}},{show:e.provider===`Let's Encrypt`,label:a(`Public.Btn.Del`),onClick:function(){s(e)}}]}})]),l=c.columns,u=c.table,d=al(!0),f=d.loading,p=d.setLoading,m=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),p(!0),[4,uo(o)];case 1:return e=t.sent().message,I(e)&&(u.data=e.data),[3,3];case 2:return p(!1),[7];case 3:return[2]}})})()};return m(),n({init:m}),function(e,t){var n=Vi;return R(),k(`div`,null,[j(n,{loading:K(f),columns:K(l),data:K(u).data,"max-height":510},null,8,[`loading`,`columns`,`data`])])}}}),No=$o,F(),Ge={class:`mr-12px`},$t={key:0,class:`mr-12px`},Dn={key:1,class:`mr-12px`},Qo=M({__name:`index`,props:{site:{},setRefresh:{},isEnableExtranet:{type:Boolean,default:!0}},setup:function(e,t){var r=t.expose,i=e,o=q().t;Bs(`sslSite`,i.site),Bs(`sslSetRefresh`,i.setRefresh),Bs(`sslEnableExtranet`,i.isEnableExtranet);var s=ul();s.setSite(i.site),s.setExternalRefresh(i.setRefresh);var c=z(`current`),l=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,Ks({hash:s.hash})];case 1:return e=t.sent().message,I(e)&&J({hideClose:!0,data:{isJump:!1,task_id:e.task_id,onFinish:function(){s.getInfo(i.isEnableExtranet)}},component:mc}),[2]}})})()},u=z([{key:`current`,label:function(){return j(`div`,null,[j(`span`,null,[A(`Current Certs - `)]),j(`span`,{class:s.isStart?`text-primary`:`text-error`},[A(`[`),s.isStart?`Deployed`:`Not Deployed`,A(`]`)])])},component:fc(_a)},{key:`business`,label:o(`Site.Cert.index_64`),component:fc(Ji)},{key:`let`,label:o(`Site.Cert.index_65`),component:fc(hs)},{key:`holder`,label:o(`Site.Cert.index_66`),component:fc(No),data:{onMenuChange:function(){c.value=`current`,s.getInfo(i.isEnableExtranet),i.setRefresh()}}}]);return Cl(function(){return i.isEnableExtranet},function(e){e&&s.getInfo(!0)}),r({init:function(){s.getInfo(i.isEnableExtranet)}}),function(e,t){var r=a,i=n,o=Ui;return R(),k(`div`,null,[K(s).isStart?O(``,!0):(R(),D(i,{key:0,class:`mb-12px`,type:`error`,"show-icon":!1,style:{"--n-padding":`9px 16px`}},{default:Y(function(){return[E(`span`,Ge,G(e.$t(`Site.Cert.index_41`)),1),j(r,{size:`tiny`,type:`primary`,onClick:t[0]||(t[0]=function(e){return c.value=`business`})},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_43`)),1)]}),_:1})]}),_:1})),K(s).isStart&&K(s).isRenew?(R(),D(i,{key:1,class:`mb-12px`,type:`error`,"show-icon":!1,style:{"--n-padding":`9px 16px`}},{default:Y(function(){return[K(s).expirationDay>0?(R(),k(`span`,$t,G(e.$t(`SSL.SiteSSL.index_26`,[K(s).domain,K(s).expirationDay])),1)):(R(),k(`span`,Dn,G(e.$t(`SSL.SiteSSL.index_19`,[K(s).domain])),1)),j(r,{size:`tiny`,type:`primary`,onClick:l},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_53`)),1)]}),_:1})]}),_:1})):O(``,!0),j(o,{value:K(c),"onUpdate:value":t[1]||(t[1]=function(e){return ls(c)?c.value=e:null}),options:K(u)},null,8,[`value`,`options`])])}}}),e(`r`,Qo),F(),Pe={class:`w-440px p-20px`},Ht={class:`flex items-center mb-24px`},vn={class:`flex-1 ml-8px text-16px leading-22px`},Vo=M({__name:`index`,props:{desc:{default:``},list:{default:function(){return[]}},columns:{default:function(){return[]}},onConfirm:{},onRefresh:{}},emits:[`setConfirm`],setup:function(e,t){var n=t.expose,r=t.emit,i=e,a=r,o=q().t,s=z(``),c=z([]),u=!1,d=z(zl(i.columns).concat([{key:`msg`,title:o(`Public.Table.Result`),align:`right`,width:`50%`,ellipsis:{tooltip:!0},render:function(e){return`status`in e&&`msg`in e?e.status?j(`span`,{class:`text-primary`},[e.msg]):j(`span`,{class:`text-error`},[e.msg]):j(`span`,{class:`text-warning`},[o(`Public.Status.Wait`)])}}]));return function(){c.value=i.list.map(function(e){return Q({},e)})}(),n({onConfirm:function(){return Z(function(){var e,t;return $(this,function(n){switch(n.label){case 0:return!u&&i.onConfirm?[4,i.onConfirm()]:[3,2];case 1:return t=n.sent().message,I(t)&&(c.value=t.msg_list,u=!0,s.value=t.msg,a(`setConfirm`,{text:o(`Public.Btn.Finish`)})),(e=i.onRefresh)==null||e.call(i),[2,!1];case 2:return[2]}})})()}}),function(t,n){var r=l;return R(),k(`div`,Pe,[E(`div`,Ht,[n[0]||(n[0]=E(`i`,{class:`i-common-warning text-40px text-warning`},null,-1)),E(`div`,vn,G(K(s)||K(o)(`Public.Batch.ConfirmWithDesc`,[e.desc])),1)]),j(r,{"max-height":182,columns:K(d),data:K(c)},null,8,[`columns`,`data`])])}}}),e(`n`,Vo),F(),Ce={class:`p-20px`},Vt={class:`flex-1`},_n={class:`mt-12px`},Fn={class:`px-20px pt-24px pb-8px`},Gn={class:`w-150px`},uc=M({__name:`set`,props:{data:{}},setup:function(e){var t=q().t,n=e.data,r=n.project_type,i=n.setOptions,o=z(``),s=function(){return Z(function(){var e;return $(this,function(n){switch(n.label){case 0:return e=o.value.trim(),e===``?(L.error(t(`Site.PHP.index_46`)),[2]):[4,Vr({project_type:r,type_name:e,ps:``})];case 1:return n.sent(),o.value=``,[4,b()];case 2:return n.sent(),i(),[2]}})})()},c=ol(),u=z(null),d=Vs({project_type:r,type_id:-1,type_name:``,ps:``}),f={type_name:{required:!0,message:t(`Site.PHP.index_46`),trigger:[`blur`,`change`]}},p=function(e){d.type_id=e.id,d.type_name=e.name,c.title=``.concat(t(`Site.PHP.index_48`),` [`,e.name,`]`),c.show=!0},g=function(e){var t=e.hide;return Z(function(){var e;return $(this,function(n){switch(n.label){case 0:return[4,(e=u.value)==null?void 0:e.validate()];case 1:return n.sent(),[4,Ia(Lc(d))];case 2:return n.sent(),[4,b()];case 3:return n.sent(),i(),t(),[2]}})})()},_=ml([{key:`name`,title:`Name`},Qc({width:120,options:function(e){return[{label:t(`Public.Btn.Edit`),disabled:e.id===0,onClick:function(){p(e)}},{label:t(`Public.Btn.Delete`),disabled:e.id===0,onClick:function(){rl({title:``.concat(t(`Site.PHP.index_49`),` [`,e.name,`]`),content:t(`Site.PHP.index_50`),onConfirm:function(t){var n=t.hide;return Z(function(){return $(this,function(t){switch(t.label){case 0:return[4,Ca({project_type:r,type_id:e.id})];case 1:return t.sent(),[4,b()];case 2:return t.sent(),i(e.id),n(),[2]}})})()}})}}]}})]),v=_.table,y=_.columns,b=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return[4,io({project_type:r})];case 1:return e=t.sent().message,v.data=cs(e)?e:[],[2]}})})()};return b(),function(e,t){var n=C,r=a,i=m,p=l,_=h,b=Mi,x=Ri;return R(),k(`div`,Ce,[j(i,null,{default:Y(function(){return[E(`div`,Vt,[j(n,{value:K(o),"onUpdate:value":t[0]||(t[0]=function(e){return ls(o)?o.value=e:null}),placeholder:e.$t(`Site.PHP.index_46`)},null,8,[`value`,`placeholder`])]),E(`div`,null,[j(r,{type:`primary`,onClick:s},{default:Y(function(){return[A(G(e.$t(`Site.Cert.index_62`)),1)]}),_:1})])]}),_:1}),E(`div`,_n,[j(p,{"max-height":300,data:K(v).data,columns:K(y)},null,8,[`data`,`columns`])]),j(x,{show:K(c).show,"onUpdate:show":t[2]||(t[2]=function(e){return K(c).show=e}),title:K(c).title,width:350,footer:!0,onConfirm:g},{default:Y(function(){return[E(`div`,Fn,[j(b,{ref_key:`formRef`,ref:u,model:K(d),rules:f},{default:Y(function(){return[j(_,{label:e.$t(`Site.PHP.index_47`),path:`type_name`},{default:Y(function(){return[E(`div`,Gn,[j(n,{value:K(d).type_name,"onUpdate:value":t[1]||(t[1]=function(e){return K(d).type_name=e}),placeholder:``},null,8,[`value`])])]}),_:1},8,[`label`])]}),_:1},8,[`model`])])]}),_:1},8,[`show`,`title`])])}}}),lc=uc,F(),Se={class:`w-160px`},Bo=M({__name:`index`,props:xs({project_type:{type:String,default:`python`}},{value:{},valueModifiers:{}}),emits:[`update:value`],setup:function(e,t){var n=t.expose,r=sl(e,`value`),i=e.project_type,o=q().t,s=al(),c=s.loading,l=s.setLoading,u=z([]),d=ol(o(`Site.PHP.index_44`),{project_type:i,setOptions:function(e){p(),r.value===e&&(r.value=``)}}),f=function(){d.show=!0},p=function(){return Z(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),l(!0),[4,io({project_type:i})];case 1:return e=t.sent().message,cs(e)&&(u.value=e.map(function(e){return{label:e.name,value:e.id}})),[3,3];case 2:return u.value.unshift({label:o(`Site.PHP.index_45`),value:``}),l(!1),[7];case 3:return[2]}})})()};return n({getList:p}),function(e,t){var n=a,i=ce,o=Ri;return R(),k(`div`,Se,[j(i,Ss(e.$attrs,{value:r.value,"onUpdate:value":t[0]||(t[0]=function(e){return r.value=e}),loading:K(c),options:K(u)}),{action:Y(function(){return[j(n,{block:``,onClick:f},{default:Y(function(){return[A(G(e.$t(`Site.PHP.index_43`)),1)]}),_:1})]}),_:1},16,[`value`,`loading`,`options`]),j(o,{show:K(d).show,"onUpdate:show":t[1]||(t[1]=function(e){return K(d).show=e}),width:350,title:K(d).title,data:K(d).data,component:lc},null,8,[`show`,`title`,`data`])])}}}),e(`t`,Bo)}}})})();