System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./public-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./index-legacy88.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./index-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy17.js?v=1764233927359","./site-legacy.js?v=1764233927359"],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,$,R,j;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.a2,x=e.V,o=e.a3,c=e.W,g=e.R,y=e.an,m=e.U,v=e.j,b=e.S,f=e.a4},e=>{k=e.dR,$=e.dT,R=e.dY,j=e.au},null,null,null,null,null,null,null,null,null,null],execute:function(){const l={key:0},W={key:1};e("default",r({__name:"index",props:{data:{}},setup(e,{expose:r}){const w=e,{getList:P}=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}),P()}}),(e,n)=>{const s=R,r=$,_=k,i=j,d=u,w=t,P=a;return x(),p(P,{class:"p-20px",ref_key:"formRef",ref:U,model:m(q),rules:D},{default:o(()=>[c(_,{label:e.$t("WP.Remote.index_2")},{default:o(()=>[c(r,{value:m(q).type,"onUpdate:value":n[0]||(n[0]=e=>m(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:m(q).url,"onUpdate:value":n[1]||(n[1]=e=>m(q).url=e),placeholder:e.$t("Waf.Rules.index_53")},null,8,["value","placeholder"])]),_:1},8,["label"]),1==m(q).type?(x(),g("div",l,[c(_,{label:e.$t("Site.Lable.index_24"),path:"username"},{default:o(()=>[c(i,{class:"w-300px!",value:m(q).username,"onUpdate:value":n[2]||(n[2]=e=>m(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:m(q).password,"onUpdate:value":n[3]||(n[3]=e=>m(q).password=e),placeholder:e.$t("Database.index_14")},null,8,["value","placeholder"])]),_:1},8,["label"])])):(x(),g("div",W,[c(_,{label:e.$t("WP.Remote.index_5"),path:"key"},{default:o(()=>[c(i,{class:"w-300px!",value:m(q).key,"onUpdate:value":n[4]||(n[4]=e=>m(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:m(q).token,"onUpdate:value":n[5]||(n[5]=e=>m(q).token=e),placeholder:e.$t("WP.Remote.index_7")},null,8,["value","placeholder"])]),_:1},8,["label"])])),2==m(q).type?(x(),p(w,{key:2,class:"ml-15px"},{default:o(()=>[v(f(e.$t("WP.Remote.index_8"))+": ",1),b("li",null,[v(" 1. "+f(e.$t("Ftp.Label.index_11"))+" ",1),c(d,{href:"https://wordpress.org/plugins/aapanel-wp-toolkit/",target:"_blank"},{default:o(()=>[v(f(e.$t("WP.Remote.index_9")),1)]),_:1})]),b("li",null,"2. "+f(e.$t("WP.Remote.index_10")),1),b("li",null,"3. "+f(e.$t("WP.Remote.index_11")),1),b("li",null,"4. "+f(e.$t("WP.Remote.index_12")),1),b("li",null,"5. "+f(e.$t("WP.Remote.index_13")),1),b("li",null,"6. "+f(e.$t("WP.Remote.index_14")),1)]),_:1})):y("",!0)]),_:1},8,["model"])}}}))}}});
