System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-BPdTJPVn.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BBkGleHZ.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtQUnlS_.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-CvnE2rtV.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B8-yxO0Z.js?v=1773287522785"],(function(e,l){"use strict";var a,t,u,n,s,r,_,i,d,p,x,o,c,g,y,v,m,b,f,j,k,$,R;return{setters:[e=>{a=e._},e=>{t=e._},e=>{u=e._},e=>{n=e.c,s=e.a},e=>{r=e.k,_=e.R,i=e.r,d=e.e,p=e.$,x=e.a8,o=e.a9,c=e.a0,g=e.S,y=e.Z,v=e.j,m=e.aa,b=e._,f=e.ak},e=>{j=e.a1,k=e.a3,$=e.ag,R=e.b},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={key:0},h={key:1};e("default",r({__name:"index",props:{data:{}},setup(e,{expose:r}){const w=e,{getList:W}=w.data,{t:P}=_(),D=i(null),U=d({url:"",type:2,username:"",password:"",key:"",token:""}),q={url:{trigger:["blur","input"],message:P("Database.form.index_16"),required:!0},username:{required:!0,message:P("Database.form.index_16"),trigger:["input","blur"]},password:{required:!0,trigger:["blur","input"],message:P("Database.form.index_17")},key:{required:!0,trigger:["blur","input"],message:P("WP.Remote.index_15")},token:{required:!0,trigger:["blur","input"],message:P("WP.Remote.index_16")}};return r({onConfirm:async()=>{await(D.value?.validate()),1==U.type?await n({login_url:U.url,username:U.username,password:U.password}):await s({login_url:U.url,security_key:U.key,security_token:U.token}),W()}}),(e,n)=>{const s=$,r=k,_=j,i=R,d=u,w=t,W=a;return p(),x(W,{class:"p-20px",ref_key:"formRef",ref:D,model:g(U),rules:q},{default:o((()=>[c(_,{label:e.$t("WP.Remote.index_2")},{default:o((()=>[c(r,{value:g(U).type,"onUpdate:value":n[0]||(n[0]=e=>g(U).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(U).url,"onUpdate:value":n[1]||(n[1]=e=>g(U).url=e),placeholder:e.$t("Waf.Rules.index_53")},null,8,["value","placeholder"])])),_:1},8,["label"]),1==g(U).type?(p(),y("div",l,[c(_,{label:e.$t("Site.Lable.index_24"),path:"username"},{default:o((()=>[c(i,{class:"w-300px!",value:g(U).username,"onUpdate:value":n[2]||(n[2]=e=>g(U).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(U).password,"onUpdate:value":n[3]||(n[3]=e=>g(U).password=e),placeholder:e.$t("Database.index_14")},null,8,["value","placeholder"])])),_:1},8,["label"])])):(p(),y("div",h,[c(_,{label:e.$t("WP.Remote.index_5"),path:"key"},{default:o((()=>[c(i,{class:"w-300px!",value:g(U).key,"onUpdate:value":n[4]||(n[4]=e=>g(U).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(U).token,"onUpdate:value":n[5]||(n[5]=e=>g(U).token=e),placeholder:e.$t("WP.Remote.index_7")},null,8,["value","placeholder"])])),_:1},8,["label"])])),2==g(U).type?(p(),x(w,{key:2,class:"ml-15px"},{default:o((()=>[v(m(e.$t("WP.Remote.index_8"))+": ",1),b("li",null,[v(" 1. "+m(e.$t("Ftp.Label.index_11"))+" ",1),c(d,{href:"https://wordpress.org/plugins/yakpanel-wp-toolkit/",target:"_blank"},{default:o((()=>[v(m(e.$t("WP.Remote.index_9")),1)])),_:1})]),b("li",null,"2. "+m(e.$t("WP.Remote.index_10")),1),b("li",null,"3. "+m(e.$t("WP.Remote.index_11")),1),b("li",null,"4. "+m(e.$t("WP.Remote.index_12")),1),b("li",null,"5. "+m(e.$t("WP.Remote.index_13")),1),b("li",null,"6. "+m(e.$t("WP.Remote.index_14")),1)])),_:1})):f("",!0)])),_:1},8,["model"])}}}))}}}));
