mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
1. Added: Mail Server - Add Domain with Domain management center to Automatic DNS record & apply SSL 2. Added: Mail Server - DNS record with One-click Parsing 3. Added: Mail Server - Compatible with Domain management center to apply for renewal SSL 4. Added: Mail Server - Mail Marketing - Add Template supports Upload HTML 5. Added: bt default command supports displaying separate IPV4, IPV6 and bound domain info 6. Added: Settings - Panel SSL supports using Domains SSL Certificate 7. Added: PHP Project - Automatic Add Record & SSL with progress display 8. Fixed: Mail Server quota limit issue 9. Fixed: WP Toolkit incorrect cache directory issue 10. Optimized: Enhanced domain validation in the Domain module 11. Fixed: Issue with automatic domain resolution prompts in Mail Server editing 12. Fixed: "Internal Server Error" occurring in certain scenarios
2 lines
36 KiB
JavaScript
2 lines
36 KiB
JavaScript
System.register(["./index.vue_vue_type_script_setup_true_lang-legacy9.js?v=1744703330658","./public-legacy.js?v=1744703330658","./alarm-legacy.js?v=1744703330658","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1744703330658","./index.vue_vue_type_script_setup_true_lang-legacy11.js?v=1744703330658","./page_layout-legacy.js?v=1744703330658","./vue-legacy.js?v=1744703330658","./naive-legacy.js?v=1744703330658","./index-legacy98.js?v=1744703330658","./open-legacy.js?v=1744703330658","./index-legacy104.js?v=1744703330658","./index-legacy95.js?v=1744703330658","./index-legacy99.js?v=1744703330658","./index-legacy.js?v=1744703330658","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1744703330658","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1744703330658","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1744703330658"],(function(e,a){"use strict";var t,n,l,i,s,o,d,r,u,f,p,c,_,x,g,m,v,b,C,S,h,w,y,$,k,P,U,j,B,R,T,L,z,E,I,D,M,H,A,F,O,q,K,Y,J,N,V,W,Q,X,Z,G,ee,ae,te,ne,le,ie,se,oe,de,re,ue,fe,pe,ce,_e,xe,ge,me,ve,be,Ce,Se,he,we,ye,$e,ke,Pe,Ue,je,Be,Re,Te,Le,ze,Ee,Ie,De,Me,He,Ae,Fe,Oe,qe,Ke,Ye,Je,Ne,Ve,We,Qe,Xe;return{setters:[e=>{t=e._,n=e.a,l=e.C},e=>{i=e.c,s=e.u,o=e.d,d=e.a,r=e.h,u=e.b,f=e.f},e=>{p=e.a,c=e.g,_=e.s,x=e.b},e=>{g=e._},e=>{m=e._},e=>{v=e.I,b=e.K,C=e.aq,S=e.aO,h=e.aP,w=e._,y=e.aQ,$=e.aR,k=e.d,P=e.aS,U=e.a,j=e.m,B=e.k,R=e.aT,T=e.E,L=e.aU,z=e.aV,E=e.aW,I=e.aX,D=e.aY,M=e.aZ,H=e.a_,A=e.J,F=e.a$,O=e.b0,q=e.b1,K=e.D,Y=e.b2,J=e.b3,N=e.W,V=e.b4,W=e.b5,Q=e.b6,X=e.b7,Z=e.b8,G=e.b9},e=>{ee=e.d,ae=e.O,te=e.r,ne=e.j,le=e.x,ie=e.R,se=e.S,oe=e.P,de=e.a0,re=e.V,ue=e.U,fe=e.$,pe=e.c,ce=e.a1,_e=e.af,xe=e.f,ge=e.o,me=e.F,ve=e.N,be=e.Y,Ce=e.ap,Se=e.M,he=e.k,we=e.v,ye=e.ab,$e=e.ao,ke=e.e},e=>{Pe=e.b$,Ue=e.ch,je=e.T,Be=e.a2,Re=e.cq,Te=e.bz,Le=e._,ze=e.bU,Ee=e.bY,Ie=e.cn,De=e.cs,Me=e.cl},e=>{He=e.s,Ae=e._,Fe=e.f,Oe=e.h,qe=e.c},e=>{Ke=e.O},e=>{Ye=e._},e=>{Je=e._},e=>{Ne=e._},e=>{Ve=e._},e=>{We=e._},e=>{Qe=e._},e=>{Xe=e._}],execute:function(){var Ze=document.createElement("style");Ze.textContent=".panel-ssl-progress[data-v-589e5a52]{min-width:340px;padding:24px 24px 22px}.panel-ssl-progress .progress-item[data-v-589e5a52]{display:flex;gap:16px;cursor:pointer}.panel-ssl-progress .progress-item+.progress-item[data-v-589e5a52]{margin-top:16px}.panel-ssl-progress .progress-item .progress-label[data-v-589e5a52]{min-width:120px}.bt-tips-ul[data-v-493fa0d9]{margin-top:24px;padding:24px 0;border-top:1px solid #ececec;font-size:14px}[data-v-919bcd3c] .n-input,[data-v-919bcd3c] .n-button,[data-v-919bcd3c] .n-select .n-base-selection{--n-height: 30px}[data-v-919bcd3c] .n-button.n-button--medium-type{min-width:52px}[data-v-919bcd3c] .n-switch{--n-height: max(20px, 16px)}\n",document.head.appendChild(Ze);const Ge={class:"p-20px pt-28px pb-8px"},ea={class:"w-300px"},aa=ee({__name:"set",props:{open:{type:Boolean,default:!1},taskList:{default:()=>[]}},emits:["refresh"],setup(e,{expose:a,emit:t}){const n=e,l=t,{t:s}=ae(),o=te(null),d=ne({status:!0,method:[]}),r={method:{trigger:["change"],validator:()=>0!==d.method.length||new Error(s("Config.Safe.index_7"))}},u=le([]),{loading:f,setLoading:_}=i();return(()=>{const{open:e,taskList:a}=n;a.length>0&&(d.status=e||a[0].status,d.method=a[0].sender)})(),(async()=>{try{_(!0);const{message:e}=await c();u.value=v(e)?e:[]}finally{_(!1)}})(),a({onConfirm:async()=>{await(o.value?.validate()),await p((()=>{const e=u.value.filter((e=>"panel_safe_push"===e.source))[0];return{template_id:e.id,task_data:{task_data:{tid:e.id,type:e.source,title:e.title,status:d.status,count:0,interval:600,project:"",help:600},sender:d.method,number_rule:{day_num:0,total:0},time_rule:{send_interval:0,time_range:[0,86399]}}}})()),l("refresh")}}),(e,a)=>{const t=Pe,n=Ue,l=m,i=g,s=b;return ie(),se("div",Ge,[oe(s,{show:re(f)},{default:de((()=>[oe(i,{ref_key:"formRef",ref:o,model:re(d),rules:r},{default:de((()=>[oe(n,{label:e.$t("Config.Safe.index_5")},{default:de((()=>[oe(t,{value:re(d).status,"onUpdate:value":a[0]||(a[0]=e=>re(d).status=e)},null,8,["value"])])),_:1},8,["label"]),oe(n,{label:e.$t("Config.Safe.index_6"),path:"method"},{default:de((()=>[ue("div",ea,[oe(l,{value:re(d).method,"onUpdate:value":a[1]||(a[1]=e=>re(d).method=e)},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show"])])}}}),ta=ee({__name:"index",setup(e){const{t:a}=ae(),n=te(!1),l=te([]),o=async e=>{e?d(!0):(await _({task_id:l.value[0].id,status:0}),n.value=!1,l.value[0].status=!1)},d=(e=!1)=>{s({title:a("Config.Safe.index_4"),width:480,footer:!0,confirmText:a("Public.Btn.Save"),data:{open:e,taskList:l.value,onRefresh:f},component:aa})},{loading:r,setLoading:u}=i(),f=async()=>{try{u(!0);const{message:e}=await x();if(v(e)){const a=e.filter((e=>"panel_safe_push"===e.keyword));a&&a.length>0?(n.value=a[0].status,l.value=a):(n.value=!1,l.value=[])}}finally{u(!1)}};return f(),(e,a)=>{const l=Pe,i=je,s=t;return ie(),fe(s,{label:e.$t("Config.Safe.index_2")},{content:de((()=>[oe(l,{loading:re(r),value:re(n),"onUpdate:value":o},null,8,["loading","value"]),oe(i,{class:"ml-12px h-22px px-5px",size:"small",onClick:a[0]||(a[0]=e=>d())},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_3")),1)])),_:1},8,["label"])}}}),na={class:"flex p-20px"},la={class:"min-w-32px"},ia={class:"flex-1 ml-10px text-14px leading-22px"},sa={class:"flex items-center min-h-30px mb-12px text-error"},oa=ee({__name:"close",emits:["setConfirm"],setup(e,{expose:a,emit:t}){const n=t,{t:l}=ae(),i=C(),s=te(!1),o=()=>{d>0||n("setConfirm",{disabled:!s.value})};let d=5;return(()=>{n("setConfirm",{text:l("Config.Safe.index_16",[d]),disabled:!0});const e=setInterval((()=>{d--,n("setConfirm",{text:l("Config.Safe.index_16",[d])}),d<=0&&(clearInterval(e),n("setConfirm",{text:l("Config.Safe.index_17"),disabled:!s.value}))}),1e3)})(),a({onConfirm:async()=>(await S(),await h(),setTimeout((()=>{{const e="http:"===location.protocol?"https":"http";window.location.href=`${e}://${window.location.host}${He.value.adminPath}`}}),1500),!1)}),(e,a)=>{const t=w,n=Be;return ie(),se("div",na,[ue("div",la,[oe(t,{name:"base-warning",color:re(i).warningColor,size:"32"},null,8,["color"])]),ue("div",ia,[ue("div",sa,ce(e.$t("Config.Safe.index_14")),1),oe(n,{checked:re(s),"onUpdate:checked":[a[0]||(a[0]=e=>_e(s)?s.value=e:null),o]},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_15")),1)])),_:1},8,["checked"])])])}}}),da={class:"flex flex-wrap py-2px text-primary text-12px"},ra={class:"mr-24px"},ua={class:"mr-24px"},fa={class:"flex gap-20px mt-16px"},pa={class:"flex-1"},ca={class:"mb-8px"},_a={class:"flex-1"},xa={class:"mb-8px"},ga={class:"mt-10px"},ma={class:"bt-link",href:"http://www.bt.cn/bbs/thread-704-1-1.html",target:"_blank"},va=ee({__name:"ssl-custom",setup(e){const a=te(""),t=te(""),n=ne({subject:"--",issuer:"--",notBefore:"--",notAfter:"--"}),l=async()=>{await y({privateKey:a.value,certPem:t.value},!0),i()},i=async()=>{const{message:e}=await $();k(e)&&(a.value=e.privateKey||"",t.value=e.certPem||"",n.subject=e.info.subject||"",n.issuer=e.info.issuer||"",n.notBefore=e.info.notBefore||"",n.notAfter=e.info.notAfter||"")};return i(),(e,i)=>{const s=Re,o=Ne,d=je,r=Je;return ie(),se("div",null,[oe(s,{type:"success","show-icon":!1},{default:de((()=>[ue("div",da,[ue("div",ra,[pe(ce(e.$t("Config.Safe.index_37")),1),ue("b",null,ce(re(n).subject),1)]),ue("div",ua,[pe(ce(e.$t("Config.Safe.index_38")),1),ue("b",null,ce(re(n).issuer),1)]),ue("div",null,[pe(ce(e.$t("Config.Safe.index_39")),1),ue("b",null,ce(re(n).notAfter),1)])])])),_:1}),ue("div",fa,[ue("div",pa,[ue("div",ca,ce(e.$t("Config.Safe.index_27")),1),oe(o,{value:re(a),"onUpdate:value":i[0]||(i[0]=e=>_e(a)?a.value=e:null),rows:14,placeholder:""},null,8,["value"])]),ue("div",_a,[ue("div",xa,ce(e.$t("Config.Safe.index_28")),1),oe(o,{value:re(t),"onUpdate:value":i[1]||(i[1]=e=>_e(t)?t.value=e:null),rows:14,placeholder:""},null,8,["value"])])]),ue("div",ga,[oe(d,{type:"primary",onClick:l},{default:de((()=>[pe(ce(e.$t("Public.Btn.Save")),1)])),_:1})]),oe(r,{class:"mt-12px"},{default:de((()=>[ue("li",null,[pe(ce(e.$t("Config.Safe.index_40"))+" ",1),ue("a",ma," ["+ce(e.$t("Public.Btn.Help"))+"] ",1)]),ue("li",null,ce(e.$t("Config.Safe.index_42")),1),ue("li",null,ce(e.$t("Config.Safe.index_43")),1)])),_:1})])}}}),ba={class:"panel-ssl-progress"},Ca=["onClick"],Sa={class:"progress-label"},ha={class:"w-120px"},wa=B(ee({__name:"ssl-lets-progress",props:{domain:{type:String,default:""},toggleMenu:{type:Function}},emits:["close"],setup(e,{emit:t}){const n=be((()=>U((()=>a.import("./ssl-log-legacy.js?v=1744703330658")),void 0))),{t:l}=ae(),i=t,s=te([]);let d=null;const r=te(!1),u=o(l("SSL.Domain.index_5")),f=async(e=!1)=>{try{e&&(r.value=!0);const{message:a}=await P.post("/ssl_domain?action=ssl_tasks_status",{task_type:2});s.value=v(a)?a:[],0===s.value.length?(d&&(clearTimeout(d),d=null),j.success(l("Config.Safe.Ssl.index_11")),i("close"),setTimeout((()=>{window.location.href=window.location.href.split("?")[0]+"?_t="+Date.now()}),1e3)):p()}catch{s.value.forEach((e=>{e.task_status=100})),setTimeout((()=>{window.location.href=window.location.href.split("?")[0]+"?_t="+Date.now()}),1e3)}finally{e&&(r.value=!1)}},p=()=>{d&&clearTimeout(d),d=window.setTimeout((()=>{f()}),3e3)};return xe((()=>{f(!0)})),ge((()=>{d&&(clearTimeout(d),d=null)})),(e,a)=>{const t=Te,l=w,i=b,o=Ve;return ie(),se("div",ba,[oe(i,{show:r.value},{default:de((()=>[(ie(!0),se(me,null,ve(s.value,((e,a)=>(ie(),se("div",{class:"progress-item",key:a,onClick:a=>{return t=e,u.data.path=t.task_log,void(u.show=!0);var t}},[ue("span",Sa,ce(e.task_name),1),ue("div",ha,[oe(t,{percentage:e.task_status,type:"line",status:"success",processing:100!==e.task_status,"indicator-placement":"inside"},null,8,["percentage","processing"])]),oe(l,{name:"base-left-logs",size:"18"})],8,Ca)))),128))])),_:1},8,["show"]),oe(o,{show:re(u).show,"onUpdate:show":a[0]||(a[0]=e=>re(u).show=e),title:re(u).title,data:re(u).data,width:700,height:450,footer:!1,component:re(n)},null,8,["show","title","data","component"])])}}}),[["__scopeId","data-v-589e5a52"]]),ya={class:"h-400px"},$a={class:"flex items-center"},ka={class:"min-w-18px mr-8px"},Pa={class:"leading-18px"},Ua={class:"w-400px mr-10px"},ja={class:"text-primary font-bold"},Ba={class:"text-warning font-bold"},Ra=ee({__name:"ssl-lets",props:{toggleMenu:{type:Function}},setup(e){const{t:a}=ae(),t=te(null),n=ne({domain:"",hash:"",support:[]}),l={domain:{required:!0,trigger:"blur",message:a("Config.Safe.Ssl.index_10")}},i=te(!1),o=te(!1),d=te(!1),r=()=>{_()},u=()=>{d.value=!1,o.value=!1,n.hash="",n.support=[]},f=()=>{window.open("/ssl_domain/domain")},p=async()=>{var e;await(t.value?.validate()),await(e={domain:Se(n)},P.post("/ssl_domain?action=set_panel_domain_ssl",{domain:JSON.stringify(e.domain)},{requestOptions:{loading:"Installing certificate, please wait...",successMessage:!1}})),c()},c=()=>{s({hideClose:!0,data:{toggleMenu:e.toggleMenu,domain:n.domain},component:wa})},_=async()=>{var e;if(n.domain)try{i.value=!0;const{message:a}=await(e={domain:n.domain},P.post("/ssl_domain?action=add_site_check",e));k(a)&&(o.value=!0,d.value=!!a.hash,n.hash=a.hash,n.support=a.support)}finally{i.value=!1}};return(async()=>{const{message:e}=await P.post("/ssl_domain?action=get_panel_domain");k(e)&&(n.domain=e.domain)})(),(e,a)=>{const s=w,c=Re,x=Ue,m=Le,v=je,b=ze,C=g;return ie(),se("div",ya,[oe(c,{"show-icon":!1,class:"mb-20px"},{default:de((()=>[ue("div",$a,[ue("div",ka,[oe(s,{name:"base-info",size:17})]),ue("span",Pa,ce(e.$t("Config.Safe.Ssl.index_1")),1)])])),_:1}),oe(C,{ref_key:"formRef",ref:t,model:re(n),rules:l,"label-width":"140"},{default:de((()=>[oe(x,{label:e.$t("Config.Safe.Ssl.index_2")},{default:de((()=>[oe(c,{class:"w-400px","show-icon":!1},{default:de((()=>[pe(ce(e.$t("Config.Safe.Ssl.index_3")),1)])),_:1})])),_:1},8,["label"]),oe(x,{label:e.$t("Config.Safe.Ssl.index_4"),prop:"domain"},{default:de((()=>[ue("div",Ua,[oe(m,{value:re(n).domain,"onUpdate:value":a[0]||(a[0]=e=>re(n).domain=e),loading:re(i),"input-props":{spellcheck:!1},placeholder:e.$t("Config.Safe.Ssl.index_5"),clearable:"",onBlur:r,onInput:u},null,8,["value","loading","placeholder"])]),oe(v,{onClick:_},{default:de((()=>[pe(ce(e.$t("Config.Safe.Ssl.index_12")),1)])),_:1})])),_:1},8,["label"]),re(o)?(ie(),fe(x,{key:0,label:" "},{default:de((()=>[re(d)?(ie(),fe(c,{key:0,type:"success",class:"min-w-500px"},{default:de((()=>[ue("span",ja,ce(e.$t("Config.Safe.Ssl.index_6",[re(n).domain])),1)])),_:1})):(ie(),fe(c,{key:1,type:"warning",class:"min-w-500px"},{default:de((()=>[oe(b,{class:"items-center"},{default:de((()=>[ue("span",Ba,ce(e.$t("Config.Safe.Ssl.index_7",[re(n).domain])),1),oe(v,{type:"primary",ghost:"",size:"small",onClick:f},{default:de((()=>[pe(ce(e.$t("Config.Safe.Ssl.index_8")),1)])),_:1})])),_:1})])),_:1}))])),_:1})):Ce("",!0),oe(x,{label:" "},{default:de((()=>[oe(v,{type:"primary",disabled:!re(d),onClick:p},{default:de((()=>[pe(ce(e.$t("Config.Safe.Ssl.index_9")),1)])),_:1},8,["disabled"])])),_:1})])),_:1},8,["model"])])}}}),Ta={class:"p-16px"},La=ee({__name:"ssl",setup(e){const a=te("custom"),t=[{key:"custom",label:"Custom SSL",component:va},{key:"lets",label:"Lets Encrypt",data:{toggleMenu:e=>{a.value=e}},component:Ra}];return(e,n)=>{const l=Ye;return ie(),se("div",Ta,[oe(l,{value:re(a),"onUpdate:value":n[0]||(n[0]=e=>_e(a)?a.value=e:null),options:t},null,8,["value"])])}}}),za={class:"bt-link",href:"https://forum.aapanel.com/d/15210-aapanel-enable-panel-ssl-use-self-signed-certificate-browser-add-secure",target:"_blank"},Ea=ee({__name:"index",setup(e){const{t:a}=ae(),n=e=>{e?l():i()},l=()=>{s({title:a("Config.Safe.index_11"),width:600,footer:!0,component:Ke})},i=()=>{s({title:a("Config.Safe.index_12"),width:400,footer:!0,confirmType:"error",component:oa})},o=()=>{s({title:a("Config.Safe.index_13"),width:740,component:La})};return(e,a)=>{const l=Pe,i=je,s=t;return ie(),fe(s,{label:e.$t("Config.Safe.index_8")},{content:de((()=>[oe(l,{value:re(He).panelSSL,"onUpdate:value":n},null,8,["value"]),oe(i,{class:"ml-12px h-22px px-5px",size:"small",onClick:o},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_9")),1),ue("a",za,ce(e.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),Ia={class:"p-20px"},Da={class:"w-280px"},Ma={class:"w-280px"},Ha={class:"text-error"},Aa=ee({__name:"config",setup(e){const{t:a}=ae(),t=te(null),n=ne({open:"True",basic_user:"",basic_pwd:""}),l={basic_user:{trigger:["blur","input"],validator:()=>"True"!==n.open||""!==n.basic_user.trim()||new Error(a("Config.Safe.index_56"))},basic_pwd:{trigger:["blur","input"],validator:()=>"True"!==n.open||""!==n.basic_pwd.trim()||new Error(a("Config.Safe.index_58"))}},i=async()=>{await(t.value?.validate()),await R(Se(n)),T()};return(e,a)=>{const s=Pe,o=Ue,d=Le,r=je,u=g,f=Je;return ie(),se("div",Ia,[oe(u,{ref_key:"formRef",ref:t,model:re(n),rules:l},{default:de((()=>[oe(o,{label:e.$t("Config.Safe.index_54")},{default:de((()=>[oe(s,{value:re(n).open,"onUpdate:value":a[0]||(a[0]=e=>re(n).open=e),"checked-value":"True","unchecked-value":"False"},null,8,["value"])])),_:1},8,["label"]),oe(o,{label:e.$t("Config.Safe.index_55"),path:"basic_user"},{default:de((()=>[ue("div",Da,[oe(d,{value:re(n).basic_user,"onUpdate:value":a[1]||(a[1]=e=>re(n).basic_user=e),placeholder:e.$t("Config.Safe.index_56")},null,8,["value","placeholder"])])])),_:1},8,["label"]),oe(o,{label:e.$t("Config.Safe.index_57"),path:"basic_pwd"},{default:de((()=>[ue("div",Ma,[oe(d,{value:re(n).basic_pwd,"onUpdate:value":a[2]||(a[2]=e=>re(n).basic_pwd=e),placeholder:e.$t("Config.Safe.index_58")},null,8,["value","placeholder"])])])),_:1},8,["label"]),oe(o,{label:" ","show-feedback":!1},{default:de((()=>[oe(r,{type:"primary",onClick:i},{default:de((()=>[pe(ce(e.$t("Public.Btn.Save")),1)])),_:1})])),_:1})])),_:1},8,["model"]),oe(f,{class:"mt-20px pl-12px"},{default:de((()=>[ue("li",Ha,ce(e.$t("Config.Safe.index_59")),1),ue("li",null,ce(e.$t("Config.Safe.index_48")),1),ue("li",null,ce(e.$t("Config.Safe.index_49")),1),ue("li",null,ce(e.$t("Config.Safe.index_50")),1),ue("li",null,ce(e.$t("Config.Safe.index_51")),1)])),_:1})])}}}),Fa={class:"p-20px"},Oa={class:"text-error"},qa={class:"flex items-center justify-between"},Ka={class:"bt-link",href:"https://www.bt.cn/bbs/thread-34374-1-1.html",target:"_blank"},Ya=ee({__name:"confirm",setup(e,{expose:a}){const{t:t}=ae(),l=te();return a({onConfirm:async()=>{await l.value.validate(),s({title:t("Config.Safe.index_53"),width:500,component:Aa})}}),(e,a)=>{const t=n,i=Ae,s=Fe;return ie(),se("div",Fa,[oe(t,{class:"mb-20px"},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_47")),1)])),_:1}),oe(i,{class:"mb-20px"},{default:de((()=>[ue("li",Oa,ce(e.$t("Config.Safe.index_19")),1),ue("li",null,ce(e.$t("Config.Safe.index_48")),1),ue("li",null,ce(e.$t("Config.Safe.index_49")),1),ue("li",null,ce(e.$t("Config.Safe.index_50")),1),ue("li",null,ce(e.$t("Config.Safe.index_51")),1)])),_:1}),ue("div",qa,[oe(s,{ref_key:"riskRef",ref:l},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_29")),1)])),_:1},512),ue("a",Ka,ce(e.$t("Config.Safe.index_52")),1)])])}}}),Ja={class:"bt-link",href:"https://www.bt.cn/bbs/thread-34374-1-1.html",target:"_blank"},Na=ee({__name:"index",setup(e){const{t:a}=ae(),n=async e=>{e?s({title:a("Config.Safe.index_46"),width:650,footer:!0,component:Ya}):(await R({open:"False",basic_user:"",basic_pwd:""}),T())};return(e,a)=>{const l=Pe,i=t;return ie(),fe(i,{label:e.$t("Config.Safe.index_44")},{content:de((()=>[oe(l,{value:re(He).basicAuth,"onUpdate:value":n},null,8,["value"])])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_45")),1),ue("a",Ja,ce(e.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),Va={class:"p-20px"},Wa={class:"mb-20px text-20px text-center text-#555"},Qa={class:"px-36px"},Xa={class:"mb-10px text-16px text-#666"},Za={class:"mb-20px px-24px py-16px bg-#f8f8f8 rounded-4px leading-24px text-14px text-#444 font-500"},Ga={class:"text-#666"},et={class:"text-#666"},at={class:"mb-20px text-16px text-#666"},tt={class:"bt-link",href:"",target:"_blank"},nt={class:"text-error"},lt=ee({__name:"config",setup(e){const a=ne({key:"--",username:"--"}),t=te(""),{loading:n,setLoading:l}=i();return(async()=>{const{message:e}=await L();k(e)&&(a.key=e.key,a.username=e.username)})(),(async()=>{try{l(!0);const{message:e}=await z({act:1});k(e)&&(t.value=e.result)}finally{l(!1)}})(),(e,l)=>{const i=E,s=b,o=Je;return ie(),se("div",Va,[ue("div",Wa,ce(e.$t("Config.Safe.index_70")),1),ue("div",Qa,[ue("div",Xa,ce(e.$t("Config.Safe.index_71")),1),ue("div",Za,[ue("div",null,[pe(ce(e.$t("Config.Safe.index_72"))+" ",1),ue("span",Ga,ce(re(a).username),1)]),ue("div",null,[pe(ce(e.$t("Config.Safe.index_73"))+" ",1),ue("span",et,ce(re(a).key),1)]),ue("div",null,[pe(ce(e.$t("Config.Safe.index_74"))+" ",1),l[0]||(l[0]=ue("span",{class:"text-#666"},"Time based",-1))])]),ue("div",at,ce(e.$t("Config.Safe.index_75")),1),oe(s,{class:"flex justify-center h-150px",show:re(n)},{default:de((()=>[he(oe(i,{value:re(t),size:150,padding:0},null,8,["value"]),[[we,re(t)]])])),_:1},8,["show"]),oe(o,null,{default:de((()=>[ue("li",null,[pe(ce(e.$t("Config.Safe.index_76"))+" ",1),ue("a",tt,ce(e.$t("Config.Safe.index_77")),1)]),ue("li",nt,ce(e.$t("Config.Safe.index_78")),1)])),_:1})])])}}}),it=B(lt,[["__scopeId","data-v-493fa0d9"]]),st={class:"p-20px"},ot={class:"text-error"},dt={class:"text-error"},rt={class:"flex items-center justify-between"},ut={class:"bt-link",href:"https://www.aapanel.com/forum/d/357-how-to-use-google-authenticator-in-the-aapanel",target:"_blank"},ft=ee({__name:"confirm",setup(e,{expose:a}){const{t:t}=ae(),l=te();return a({onConfirm:async()=>{await l.value.validate();const{message:e}=await I({act:1});He.value.dynamicPwd=!0,s({title:t("Config.Safe.index_62"),width:600,component:it}),k(e)&&j.success(e.result)}}),(e,a)=>{const t=n,i=Ae,s=Fe;return ie(),se("div",st,[oe(t,{class:"mb-20px"},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_47")),1)])),_:1}),oe(i,{class:"mb-20px"},{default:de((()=>[ue("li",ot,ce(e.$t("Config.Safe.index_19")),1),ue("li",dt,ce(e.$t("Config.Safe.index_69")),1),ue("li",null,ce(e.$t("Config.Safe.index_66")),1),ue("li",null,ce(e.$t("Config.Safe.index_67")),1)])),_:1}),ue("div",rt,[oe(s,{ref_key:"riskRef",ref:l},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_68")),1)])),_:1},512),ue("a",ut,ce(e.$t("Config.Safe.index_168")),1)])])}}}),pt={class:"bt-link",href:"https://www.aapanel.com/forum/d/357-how-to-use-google-authenticator-in-the-aapanel",target:"_blank"},ct=ee({__name:"index",setup(e){const{t:a}=ae(),n=async e=>{e?l():(await I({act:0},!0),He.value.dynamicPwd=!1)},l=()=>{He.value.dynamicPwd?s({title:a("Config.Safe.index_62"),width:600,component:it}):s({title:a("Config.Safe.index_63"),width:670,footer:!0,component:ft})};return(e,a)=>{const i=Pe,s=je,o=t;return ie(),fe(o,{label:e.$t("Config.Safe.index_60")},{content:de((()=>[oe(i,{value:re(He).dynamicPwd,"onUpdate:value":n},null,8,["value"]),oe(s,{class:"ml-12px h-22px px-5px",size:"small",onClick:l},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_61")),1),ue("a",pt,ce(e.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),_t={class:"text-error"},xt=ee({__name:"index",setup(e){const{t:a}=ae(),n=async e=>{d({title:a("Config.Safe.index_82",[a(e?"Config.Safe.index_83":"Config.Safe.index_84")]),content:()=>e?oe(ye,{tag:"div",scope:"global",keypath:"Config.Safe.index_85"},{tips_:()=>oe("span",{class:"text-error"},[a("Config.Safe.index_86")])}):oe(me,null,[a("Config.Safe.index_87")]),onConfirm:async()=>{await D(),He.value.pwdComplexity=e}})};return(e,a)=>{const l=Pe,i=t;return ie(),fe(i,{label:e.$t("Config.Safe.index_79")},{content:de((()=>[oe(l,{value:re(He).pwdComplexity,"onUpdate:value":n},null,8,["value"])])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_80")),1),ue("span",_t,ce(e.$t("Config.Safe.index_81")),1)])),_:1},8,["label"])}}}),gt={class:"w-260px"},mt={class:"text-error"},vt=ee({__name:"index",setup(e){const a=async()=>{await M(Oe()),T()};return(e,n)=>{const l=Le,i=je,s=t;return ie(),fe(s,{label:e.$t("Config.Safe.index_88")},{content:de((()=>[ue("div",gt,[oe(l,{value:re(He).domain,"onUpdate:value":n[0]||(n[0]=e=>re(He).domain=e),placeholder:""},null,8,["value"])]),oe(i,{class:"ml-12px",type:"primary",onClick:a},{default:de((()=>[pe(ce(e.$t("Public.Btn.Save")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_89")),1),ue("span",mt,ce(e.$t("Config.Safe.index_90")),1)])),_:1},8,["label"])}}}),bt={class:"w-260px"},Ct={class:"text-error"},St=ee({__name:"index",setup(e){const{t:a}=ae(),n=async()=>{let e=/^((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}$/,t=He.value.limitIp.split(",").join("-").split("-"),n=!0;if(t.length)for(let a=0;a<t.length;a++)0==e.test(t[a])&&(n=!1);if(!n&&He.value.limitIp.length>0)return j.error(a("Config.Safe.index_95"));await H(Oe()),T()};return(e,a)=>{const l=Le,i=je,s=t;return ie(),fe(s,{label:e.$t("Config.Safe.index_91")},{content:de((()=>[ue("div",bt,[oe(l,{value:re(He).limitIp,"onUpdate:value":a[0]||(a[0]=e=>re(He).limitIp=e),placeholder:e.$t("Config.Safe.index_92")},null,8,["value","placeholder"])]),oe(i,{class:"ml-12px",type:"primary",onClick:n},{default:de((()=>[pe(ce(e.$t("Public.Btn.Save")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_93")),1),ue("span",Ct,ce(e.$t("Config.Safe.index_94")),1)])),_:1},8,["label"])}}}),ht={class:"p-20px"},wt={class:"text-error"},yt={class:"text-error"},$t={class:"w-210px"},kt=ee({__name:"set",setup(e,{expose:a}){const{t:t}=ae(),n=te(),l=te(null),i=ne({port:A(He.value.port)}),s={port:{trigger:["blur","input"],validator:()=>!!F(i.port)||new Error(t("Config.Safe.index_104"))}};return a({onConfirm:async()=>{await n.value.validate(),await(l.value?.validate());const e=Oe();e.port=`${i.port}`,await O(e),T(`${location.protocol}//${location.hostname}:${i.port}${location.pathname}`)}}),(e,a)=>{const t=Ae,o=Ee,d=Ue,r=g,u=Fe;return ie(),se("div",ht,[oe(t,{class:"mb-20px"},{default:de((()=>[ue("li",wt,ce(e.$t("Config.Safe.index_100")),1),ue("li",yt,ce(e.$t("Config.Safe.index_101")),1)])),_:1}),oe(r,{ref_key:"formRef",ref:l,model:re(i),rules:s},{default:de((()=>[oe(d,{label:e.$t("Config.Safe.index_96"),path:"port","label-width":"auto","label-style":{paddingLeft:"24px"}},{default:de((()=>[ue("div",$t,[oe(o,{value:re(i).port,"onUpdate:value":a[0]||(a[0]=e=>re(i).port=e),min:1,max:65535,"show-button":!1,placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),oe(u,{ref_key:"riskRef",ref:n},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_102"))+" ",1),ue("a",{class:"bt-link",href:"https://www.aapanel.com/forum/d/599-how-to-release-the-aapanel-port",target:"_blank",onClick:$e((()=>!1),["stop"])},ce(e.$t("Config.Safe.index_103")),1)])),_:1},512)])}}}),Pt={class:"w-260px"},Ut={class:"text-error"},jt=ee({__name:"index",setup(e){const{t:a}=ae(),n=async()=>{s({title:a("Config.Safe.index_99"),width:400,footer:!0,component:kt})};return(e,a)=>{const l=Le,i=je,s=t;return ie(),fe(s,{label:e.$t("Config.Safe.index_96")},{content:de((()=>[ue("div",Pt,[oe(l,{value:re(He).port,disabled:!0,placeholder:""},null,8,["value"])]),oe(i,{class:"ml-12px",type:"primary",onClick:n},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_97")),1),ue("span",Ut,ce(e.$t("Config.Safe.index_98")),1)])),_:1},8,["label"])}}}),Bt={class:"px-20px pt-28px pb-8px"},Rt={class:"w-240px"},Tt=ee({__name:"set",setup(e,{expose:a}){const{t:t}=ae(),n=te(null),l=ne({adminPath:He.value.adminPath}),i={adminPath:{trigger:["blur","input"],validator:()=>""!==l.adminPath.trim()||new Error(t("Config.Safe.index_108"))}};return a({onConfirm:async()=>{await(n.value?.validate()),await q({admin_path:K(l.adminPath)}),He.value.adminPath=l.adminPath}}),(e,a)=>{const t=Le,s=Ue,o=g;return ie(),se("div",Bt,[oe(o,{ref_key:"formRef",ref:n,model:re(l),rules:i},{default:de((()=>[oe(s,{label:e.$t("Config.Safe.index_105"),path:"adminPath"},{default:de((()=>[ue("div",Rt,[oe(t,{value:re(l).adminPath,"onUpdate:value":a[0]||(a[0]=e=>re(l).adminPath=e),placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),Lt={class:"w-260px"},zt=ee({__name:"index",setup(e){const{t:a}=ae(),n=async()=>{s({title:a("Config.Safe.index_107"),width:440,footer:!0,component:Tt})};return(e,a)=>{const l=Le,i=je,s=t;return ie(),fe(s,{label:e.$t("Config.Safe.index_105")},{content:de((()=>[ue("div",Lt,[oe(l,{value:re(He).adminPath,disabled:!0,placeholder:""},null,8,["value"])]),oe(i,{class:"ml-12px",type:"primary",onClick:n},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_106")),1)])),_:1},8,["label"])}}}),Et={class:"px-20px py-24px"},It={class:"w-200px"},Dt={class:"text-error"},Mt=ee({__name:"set",setup(e,{expose:a}){const{t:t}=ae(),n=te(null),l=ne({status_code:He.value.statusCode}),i={},s=[{value:403,label:t("Config.Safe.index_111")},{value:404,label:t("Config.Safe.index_112")},{value:416,label:t("Config.Safe.index_113")},{value:408,label:t("Config.Safe.index_114")},{value:400,label:t("Config.Safe.index_115")},{value:401,label:t("Config.Safe.index_116")}];return a({onConfirm:async()=>{await(n.value?.validate()),await Y({status_code:l.status_code}),He.value.statusCode=l.status_code}}),(e,a)=>{const t=Ie,o=Ue,d=g,r=Je;return ie(),se("div",Et,[oe(d,{ref_key:"formRef",ref:n,model:re(l),rules:i},{default:de((()=>[oe(o,{label:e.$t("Config.Safe.index_118"),path:"adminPath"},{default:de((()=>[ue("div",It,[oe(t,{value:re(l).status_code,"onUpdate:value":a[0]||(a[0]=e=>re(l).status_code=e),options:s},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),oe(r,null,{default:de((()=>[ue("li",Dt,ce(e.$t("Config.Safe.index_119")),1)])),_:1})])}}}),Ht={class:"w-260px"},At=ee({__name:"index",setup(e){const{t:a}=ae(),n=new Map([[403,a("Config.Safe.index_111")],[404,a("Config.Safe.index_112")],[416,a("Config.Safe.index_113")],[408,a("Config.Safe.index_114")],[400,a("Config.Safe.index_115")],[401,a("Config.Safe.index_116")]]),l=ke((()=>n.get(He.value.statusCode)||"--")),i=async()=>{s({title:a("Config.Safe.index_117"),width:420,footer:!0,component:Mt})};return(e,a)=>{const n=Le,s=je,o=t;return ie(),fe(o,{label:e.$t("Config.Safe.index_109")},{content:de((()=>[ue("div",Ht,[oe(n,{value:re(l),disabled:!0,placeholder:""},null,8,["value"])]),oe(s,{class:"ml-12px",type:"primary",onClick:i},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_110")),1)])),_:1},8,["label"])}}}),Ft={class:"px-20px py-24px"},Ot={class:"w-120px"},qt={class:"text-error"},Kt=ee({__name:"set",setup(e,{expose:a}){const{t:t}=ae(),n=te(null),l=ne({day:He.value.pwdSetDay}),i={day:{trigger:["blur","input"],validator:()=>l.day<0?new Error(t("Config.Safe.index_128")):!(!l.day&&0!==l.day)||new Error(t("Config.Safe.index_129"))}};return a({onConfirm:async()=>{await(n.value?.validate()),await J({expire:l.day}),qe()}}),(e,a)=>{const t=Ee,s=Ue,o=g,d=Je;return ie(),se("div",Ft,[oe(o,{ref_key:"formRef",ref:n,model:re(l),rules:i},{default:de((()=>[oe(s,{label:e.$t("Config.Safe.index_120"),path:"day"},{default:de((()=>[ue("div",Ot,[oe(t,{value:re(l).day,"onUpdate:value":a[0]||(a[0]=e=>re(l).day=e),min:0,"show-button":!1,placeholder:""},{suffix:de((()=>[pe(ce(e.$t("Public.Unit.Day",re(l).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),oe(d,{class:"mt-4px"},{default:de((()=>[ue("li",qt,ce(e.$t("Config.Safe.index_126")),1),ue("li",null,ce(e.$t("Config.Safe.index_127")),1)])),_:1})])}}}),Yt={class:"w-260px"},Jt=ee({__name:"index",setup(e){const{t:a}=ae(),n=ke((()=>{const{pwdSetDay:e,pwdExpireDay:t,pwdExpireTime:n}=He.value;return 0===e?a("Config.Safe.index_122"):a("Config.Safe.index_123",[N(n),t])})),l=async()=>{s({title:a("Config.Safe.index_124"),width:360,footer:!0,component:Kt})};return(e,a)=>{const i=Le,s=je,o=t;return ie(),fe(o,{label:e.$t("Config.Safe.index_120")},{content:de((()=>[ue("div",Yt,[oe(i,{value:re(n),disabled:!0,placeholder:""},null,8,["value"])]),oe(s,{class:"ml-12px",type:"primary",onClick:l},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_121")),1)])),_:1},8,["label"])}}}),Nt={class:"p-20px"},Vt={class:"mb-12px"},Wt={class:"mb-12px"},Qt={class:"mb-20px"},Xt=ee({__name:"set-add-result",props:{address:{default:""}},setup(e){const a=e,t=()=>{r(a.address)};return(e,a)=>{const n=Ne,l=je,i=Je;return ie(),se("div",Nt,[ue("div",Vt,ce(e.$t("Config.Safe.index_147")),1),ue("div",Wt,[oe(n,{value:e.address,readonly:"",rows:2},null,8,["value"])]),ue("div",Qt,[oe(l,{type:"primary",onClick:t},{default:de((()=>[pe(ce(e.$t("Public.Btn.Copy")),1)])),_:1})]),oe(i,null,{default:de((()=>[ue("li",null,ce(e.$t("Config.Safe.index_148")),1),ue("li",null,ce(e.$t("Config.Safe.index_149")),1),ue("li",null,ce(e.$t("Config.Safe.index_150")),1)])),_:1})])}}}),Zt={class:"p-20px pt-28px pb-8px"},Gt={class:"flex mb-24px"},en={class:"min-w-32px"},an={class:"flex-1 ml-16px"},tn={class:"leading-24px text-error text-14px"},nn={class:"w-160px"},ln=ee({__name:"set-add",emits:["refresh"],setup(e,{expose:a,emit:t}){const n=t,{t:l}=ae(),i=C(),o=te(null),d=ne({type:3,day:1}),r={day:{trigger:["blur","input"],validator:()=>0!==d.type||!(d.day<=0||d.day%1!=0)||new Error(l("Config.Safe.index_145"))}},u=e=>e%1==0,f=(e="")=>{const a=`${window.location.protocol}//${window.location.host}/login?tmp_token=${e}`;s({title:l("Config.Safe.index_146"),width:580,data:{address:a},component:Xt})};return a({onConfirm:async()=>{await(o.value?.validate());const{message:e}=await V({expire_time:60*(0===d.type?24*d.day:d.type)*60+Math.floor(Date.now()/1e3)});k(e)&&(f(e.token),j.success(e.msg),n("refresh"))}}),(e,a)=>{const t=w,n=De,l=Me,s=Ue,f=Ee,p=g;return ie(),se("div",Zt,[ue("div",Gt,[ue("div",en,[oe(t,{name:"base-warning",size:"32",color:re(i).warningColor},null,8,["color"])]),ue("div",an,[ue("div",tn,[ue("div",null,ce(e.$t("Config.Safe.index_140")),1),ue("div",null,ce(e.$t("Config.Safe.index_141")),1)])])]),oe(p,{ref_key:"formRef",ref:o,model:re(d),rules:r,"label-width":"140"},{default:de((()=>[oe(s,{label:e.$t("Config.Safe.index_142")},{default:de((()=>[oe(l,{value:re(d).type,"onUpdate:value":a[0]||(a[0]=e=>re(d).type=e)},{default:de((()=>[oe(n,{value:3},{default:de((()=>[pe("3 "+ce(e.$t("Public.Unit.Hour",3)),1)])),_:1}),oe(n,{value:6},{default:de((()=>[pe("6 "+ce(e.$t("Public.Unit.Hour",6)),1)])),_:1}),oe(n,{value:9},{default:de((()=>[pe("9 "+ce(e.$t("Public.Unit.Hour",9)),1)])),_:1}),oe(n,{value:12},{default:de((()=>[pe("12 "+ce(e.$t("Public.Unit.Hour",12)),1)])),_:1}),oe(n,{value:0},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_143")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),he(oe(s,{label:e.$t("Config.Safe.index_144"),path:"day"},{default:de((()=>[ue("div",nn,[oe(f,{value:re(d).day,"onUpdate:value":a[1]||(a[1]=e=>re(d).day=e),min:1,"show-button":!1,validator:u},{suffix:de((()=>[pe(ce(e.$t("Public.Unit.Day",re(d).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"]),[[we,0===re(d).type]])])),_:1},8,["model"])])}}}),sn={class:"p-20px h-500px"},on=ee({__name:"set-log",props:{id:{default:0}},setup(e){const a=e,{t:t}=ae(),{table:n,columns:l,setLoading:i}=u([{key:"type",title:t("Config.Safe.index_151"),width:120,ellipsis:{tooltip:!0}},{key:"addtime",title:t("Config.Safe.index_152"),width:140},{key:"log",title:t("Config.Safe.index_153"),ellipsis:{tooltip:!0}}]),s=async()=>{try{i(!0);const{message:e}=await W({id:a.id});n.data=v(e)?e:[]}finally{i(!1)}};return s(),(e,a)=>{const t=je,i=Xe,o=We;return ie(),se("div",sn,[oe(o,null,{toolsLeft:de((()=>[oe(t,{onClick:s},{default:de((()=>[pe(ce(e.$t("Public.Btn.Refresh")),1)])),_:1})])),table:de((()=>[oe(i,{"max-height":360,loading:re(n).loading,data:re(n).data,columns:re(l)},null,8,["loading","data","columns"])])),_:1})])}}}),dn={class:"h-500px p-20px"},rn=ee({__name:"set",setup(e){const{t:a}=ae(),t=()=>{s({title:a("Config.Safe.index_146"),width:580,footer:!0,component:ln,data:{onRefresh:()=>{_()}}})},{table:n,columns:l,setLoading:i}=u([{key:"login_addr",title:a("Config.Safe.index_154"),ellipsis:{tooltip:!0},render:e=>e.login_addr||a("Config.Safe.index_155")},{key:"state",title:a("Config.Safe.index_156"),width:100,render:e=>-1===e.state?oe("span",{class:"text-error"},[a("Config.Safe.index_166")]):1===e.state?a("Config.Safe.index_157"):oe("span",{class:"text-primary"},[a("Config.Safe.index_155")])},{key:"login_time",title:a("Config.Safe.index_158"),width:140,render:e=>0===e.login_time?a("Config.Safe.index_155"):N(e.login_time)},{key:"expire",title:a("Config.Safe.index_159"),width:140,render:e=>N(e.expire)},f({width:160,options:e=>[{label:a("Config.Safe.index_160"),type:"error",show:e.online_state,onClick:()=>{r(e)}},{label:a("Config.Safe.index_161"),show:1===e.state||-1===e.state,onClick:()=>{o(e)}},{label:a("Public.Btn.Del"),onClick:()=>{p(e)}}]})]),o=e=>{s({title:a("Config.Safe.index_161"),width:700,data:{id:e.id},component:on})},r=e=>{d({title:a("Config.Safe.index_162",[e.login_addr]),content:a("Config.Safe.index_163",[e.login_addr]),onConfirm:async()=>{await Q({id:e.id}),_()}})},p=e=>{d({title:a("Config.Safe.index_164"),content:a("Config.Safe.index_165"),onConfirm:async()=>{await X({id:e.id}),_()}})},c=ne({p:1,rows:10}),_=async()=>{try{i(!0);const{message:e}=await Z(Se(c));k(e)&&(n.data=v(e.data)?e.data:[],n.total=G(e.page))}finally{i(!1)}};return _(),(e,a)=>{const i=je,s=Xe,o=Qe,d=We;return ie(),se("div",dn,[oe(d,null,{toolsLeft:de((()=>[oe(i,{type:"primary",onClick:t},{default:de((()=>[pe(ce(e.$t("Config.Safe.index_146")),1)])),_:1})])),table:de((()=>[oe(s,{"max-height":340,loading:re(n).loading,data:re(n).data,columns:re(l)},null,8,["loading","data","columns"])])),pageRight:de((()=>[oe(o,{page:re(c).p,"onUpdate:page":a[0]||(a[0]=e=>re(c).p=e),"page-size":re(c).rows,"onUpdate:pageSize":a[1]||(a[1]=e=>re(c).rows=e),"item-count":re(n).total,onRefresh:_},null,8,["page","page-size","item-count"])])),_:1})])}}}),un=ee({__name:"index",setup(e){const{t:a}=ae(),n=()=>{s({title:a("Config.Safe.index_139"),width:740,component:rn})};return(e,a)=>{const l=je,i=t;return ie(),fe(i,{label:e.$t("Config.Safe.index_137")},{content:de((()=>[oe(l,{type:"primary",onClick:n},{default:de((()=>[pe(ce(e.$t("Public.Btn.Set")),1)])),_:1})])),desc:de((()=>[ue("span",null,ce(e.$t("Config.Safe.index_138")),1)])),_:1},8,["label"])}}});e("S",B(ee({__name:"config",setup:e=>(e,a)=>(ie(),se("div",null,[oe(l,null,{default:de((()=>[pe(ce(e.$t("Config.Safe.index_1")),1)])),_:1}),oe(ta),oe(Ea),oe(Na),oe(ct),oe(xt),oe(vt),oe(St),oe(jt),oe(zt),oe(At),oe(Jt),oe(un)]))}),[["__scopeId","data-v-919bcd3c"]]))}}}));
|