System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy88.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy17.js?v=1763625242172","./site-legacy.js?v=1763625242172"],(function(e,l){"use strict";var a,t,u,n,s,r,_,i,d,p,x,o,c,g,y,m,v,b,f,k,$,j,P;return{setters:[e=>{a=e._},e=>{t=e._},e=>{u=e.o},e=>{n=e.c,s=e.a},e=>{r=e.k,_=e.P,i=e.r,d=e.e,p=e.R,x=e.a2,o=e.a3,c=e.X,g=e.V,y=e.S,m=e.j,v=e.a4,b=e.U,f=e.an},e=>{k=e.dZ,$=e.dT,j=e.dP,P=e.au},null,null,null,null,null,null,null,null,null,null],execute:function(){const l={key:0},R={key:1};e("default",r({__name:"index",props:{data:{}},setup(e,{expose:r}){const w=e,{getList:W}=w.data,{t:h}=_(),U=i(null),q=d({url:"",type:2,username:"",password:"",key:"",token:""}),D={url:{trigger:["blur","input"],message:h("Database.form.index_16"),required:!0},username:{required:!0,message:h("Database.form.index_16"),trigger:["input","blur"]},password:{required:!0,trigger:["blur","input"],message:h("Database.form.index_17")},key:{required:!0,trigger:["blur","input"],message:h("WP.Remote.index_15")},token:{required:!0,trigger:["blur","input"],message:h("WP.Remote.index_16")}};return r({onConfirm:async()=>{await(U.value?.validate()),1==q.type?await n({login_url:q.url,username:q.username,password:q.password}):await s({login_url:q.url,security_key:q.key,security_token:q.token}),W()}}),(e,n)=>{const s=k,r=$,_=j,i=P,d=u,w=t,W=a;return p(),x(W,{class:"p-20px",ref_key:"formRef",ref:U,model:g(q),rules:D},{default:o((()=>[c(_,{label:e.$t("WP.Remote.index_2")},{default:o((()=>[c(r,{value:g(q).type,"onUpdate:value":n[0]||(n[0]=e=>g(q).type=e)},{default:o((()=>[c(s,{label:e.$t("WP.Remote.index_4"),value:2},null,8,["label"]),c(s,{label:e.$t("WP.Remote.index_3"),value:1},null,8,["label"])])),_:1},8,["value"])])),_:1},8,["label"]),c(_,{label:e.$t("WP.Config.index_1"),path:"url"},{default:o((()=>[c(i,{class:"w-300px!",value:g(q).url,"onUpdate:value":n[1]||(n[1]=e=>g(q).url=e),placeholder:e.$t("Waf.Rules.index_53")},null,8,["value","placeholder"])])),_:1},8,["label"]),1==g(q).type?(p(),y("div",l,[c(_,{label:e.$t("Site.Lable.index_24"),path:"username"},{default:o((()=>[c(i,{class:"w-300px!",value:g(q).username,"onUpdate:value":n[2]||(n[2]=e=>g(q).username=e),placeholder:e.$t("Database.index_13")},null,8,["value","placeholder"])])),_:1},8,["label"]),c(_,{label:e.$t("Site.Lable.index_27"),path:"password"},{default:o((()=>[c(i,{class:"w-300px!",value:g(q).password,"onUpdate:value":n[3]||(n[3]=e=>g(q).password=e),placeholder:e.$t("Database.index_14")},null,8,["value","placeholder"])])),_:1},8,["label"])])):(p(),y("div",R,[c(_,{label:e.$t("WP.Remote.index_5"),path:"key"},{default:o((()=>[c(i,{class:"w-300px!",value:g(q).key,"onUpdate:value":n[4]||(n[4]=e=>g(q).key=e),placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},null,8,["value"])])),_:1},8,["label"]),c(_,{label:e.$t("WP.Remote.index_6"),path:"token"},{default:o((()=>[c(i,{class:"w-300px!",value:g(q).token,"onUpdate:value":n[5]||(n[5]=e=>g(q).token=e),placeholder:e.$t("WP.Remote.index_7")},null,8,["value","placeholder"])])),_:1},8,["label"])])),2==g(q).type?(p(),x(w,{key:2,class:"ml-15px"},{default:o((()=>[m(v(e.$t("WP.Remote.index_8"))+": ",1),b("li",null,[m(" 1. "+v(e.$t("Ftp.Label.index_11"))+" ",1),c(d,{href:"https://wordpress.org/plugins/aapanel-wp-toolkit/",target:"_blank"},{default:o((()=>[m(v(e.$t("WP.Remote.index_9")),1)])),_:1})]),b("li",null,"2. "+v(e.$t("WP.Remote.index_10")),1),b("li",null,"3. "+v(e.$t("WP.Remote.index_11")),1),b("li",null,"4. "+v(e.$t("WP.Remote.index_12")),1),b("li",null,"5. "+v(e.$t("WP.Remote.index_13")),1),b("li",null,"6. "+v(e.$t("WP.Remote.index_14")),1)])),_:1})):f("",!0)])),_:1},8,["model"])}}}))}}}));
