Files
yakpanel-core/YakPanel/static/vite/js/index-legacy-P2h824qL.js
2026-04-07 02:04:22 +05:30

2 lines
2.9 KiB
JavaScript

System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSBh0Le2.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785"],(function(e,s){"use strict";var a,r,l,d,t,o,n,p,u,i,w,c,_,x,g,f,v,y,h,P,j,m,b,$,k,C;return{setters:[e=>{a=e._},e=>{r=e._,l=e.d,d=e.e,t=e.f,o=e.h,n=e.j},e=>{p=e._},e=>{u=e.a1,i=e.b,w=e.B,c=e.s},e=>{_=e.k,x=e.R,g=e.r,f=e.e,v=e.$,y=e.Z,h=e._,P=e.aa,j=e.a0,m=e.a9,b=e.S,$=e.j,k=e.a2,C=e.F},null,null],execute:function(){const s={class:"flex-center flex-col pt-8%"},E={class:"pt-44px"},U={class:"mb-24px text-center text-20p"},R={class:"flex justify-end mt-16px"};e("default",_({__name:"index",setup(e){const{t:_}=x(),S=g(null),T=f({password1:"",password2:"",userpassword:""}),Z={password1:{trigger:["blur","input"],validator:()=>c(T.password1)?new Error(_("Config.Panel.index_67")):!(T.password1.length<6)||new Error(_("Password.index_6"))},password2:{trigger:["blur","input"],validator:()=>c(T.password2)?new Error(_("Config.Panel.index_69")):T.password1===T.password2||new Error(_("Config.Panel.index_70"))},userpassword:{trigger:["blur","input"],required:!0,message:_("Config.Panel.index_67")}},q=async()=>{await(S.value?.validate()),await l({password1:d(T.password1),password2:d(T.password2),userpassword:d(T.userpassword)}),t("/login?dologin=True",1500)},z=()=>{o({title:_("Password.index_7"),content:()=>j(C,null,[j(k,{tag:"div",scope:"global",keypath:"Password.index_8"},{text_1:()=>j("span",{class:"text-error"},[_("Password.index_9")])})]),onConfirm:async()=>{await n(),t("/login?dologin=True",1500)}})};return(e,l)=>{const d=i,t=u,o=p,n=w,c=r,_=a;return v(),y("div",s,[h("div",E,[h("h3",U,P(e.$t("Password.index_1")),1)]),j(_,{ref_key:"formRef",ref:S,model:b(T),rules:Z,size:"large",class:"w-500px p-32px pt-0"},{default:m((()=>[j(t,{path:"userpassword"},{default:m((()=>[j(d,{value:b(T).userpassword,"onUpdate:value":l[0]||(l[0]=e=>b(T).userpassword=e),placeholder:e.$t("Old Password")},null,8,["value","placeholder"])])),_:1}),j(t,{path:"password1"},{default:m((()=>[j(o,{value:b(T).password1,"onUpdate:value":l[1]||(l[1]=e=>b(T).password1=e),length:10,default:!1,placeholder:e.$t("Password.index_2")},null,8,["value","placeholder"])])),_:1}),j(t,{path:"password2"},{default:m((()=>[j(d,{value:b(T).password2,"onUpdate:value":l[2]||(l[2]=e=>b(T).password2=e),placeholder:e.$t("Password.index_3")},null,8,["value","placeholder"])])),_:1}),j(t,{"show-feedback":!1},{default:m((()=>[j(n,{type:"primary",block:"",onClick:q},{default:m((()=>[$(P(e.$t("Password.index_4")),1)])),_:1})])),_:1}),h("div",R,[j(c,{onClick:z},{default:m((()=>[$(P(e.$t("Password.index_5")),1)])),_:1})])])),_:1},8,["model"])])}}}))}}}));