1import{A as t,Dt as e,Kt as s,Q as a,S as o,V as r,at as i,b as n,d as m,f as l,gt as d,nt as p,p as c,vt as u}from"./runtime-core.esm-bundler-DQQ_4B2-.js";import"./modalManager-CNln-kP4.js";import"./vue-types-Cyjj0J5i.js";import"./vc-trigger-B4FAFrG7.js";import{n as f,t as w}from"./form-D363g1kf.js";import"./GtcTable-D-ltUCkD.js";import"./compressor-Dd_idyYq.js";import{Ot as j,rn as g}from"./components-JR0eFQrd.js";import"./CountryBusinessPermissionTip-D5AMQcRd.js";import"./store-V8lH7rZL.js";import"./GtcRangePicker-DoOk62gb.js";import"./GtcDatePicker-BY-8STi6.js";import{n as v}from"./vue-i18n-Cwve0frC.js";import"./__vite-browser-external-BXEh5nXE.js";import"./en-US-Bx_dxbVL.js";import"./lodash-Bd9D_7c2.js";import"./SvgIcon-CSrwEzy_.js";import"./notifications-BiAl65R7.js";import"./GtcButton-D-OBgleC.js";import"./GtcBreadcrumb-Dq6l-3EA.js";import"./GtcEmpty-nrm-xACr.js";import"./out-platform-copy-SCLoREgB.js";import{n as P}from"./GtcAmountInput-BrNITUqt.js";import"./RiskControlWarning-BLjUWlAJ.js";import"./gtc-alert-ByPmEyZN.js";import"./GtcInput-1pNUIAoM.js";import"./GtcSelect-mYnm6Km9.js";import"./m-kline-chart-CLUGXzP_.js";import"./klinechart-pro-HcVGhB-P2.js";import"./core-DJQE0WV0.js";import"./ZSlider-BbJMpYL-.js";var y={class:"flex flex-col gap-2"},h={class:"ink-14 text-ink-950 font-medium"},k=o({__name:"UpdateFundPasswordModal",props:t({onSubmit:{type:Function}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:t(["cancel","confirm"],["update:open"]),setup(t,{emit:o}){const k=a(t,"open"),x=t,F=o,{t:G}=v(),b=u(),_=d({formData:{newPassword:""}}),{LimitationTip:D,fetchData:S}=g("new_update_pwd");p(()=>x.open,t=>{t&&S()},{immediate:!0});const B=m(()=>({newPassword:[{required:!0,message:G("modals.settings.updateFundPassword.form.message.required"),trigger:["blur","change"]},{validator:async(t,e)=>e&&6!==e.length?Promise.reject(G("modals.settings.updateFundPassword.form.newPassword.message.length")):Promise.resolve(),trigger:["blur","change"]}]})),C=u(!1),I=m(()=>C.value),R=async()=>{if(I.value)return;try{await(b.value?.validate())}catch{return}const t={password:_.formData.newPassword};C.value=!0;try{await x.onSubmit(t),window.GtcNotification("success",G("modals.settings.updateFundPassword.success")),F("confirm",t)}catch(e){}finally{C.value=!1}};return(t,a)=>{const o=f,m=w;return r(),c(e(j),{open:k.value,title:e(G)("modals.settings.updateFundPassword.title"),"confirm-loading":I.value,width:"466px","ok-text":e(G)("modals.settings.updateFundPassword.form.confirm"),"cancel-text":e(G)("modals.settings.updateFundPassword.form.cancel"),onOk:R,onCancel:a[1]||(a[1]=e=>t.$emit("cancel"))},{default:i(()=>[n(m,{ref_key:"formRef",ref:b,model:_.formData,class:"w-full !my-6",rules:B.value,layout:"vertical","required-mark":!1,onFinish:R},{default:i(()=>[n(o,{name:"newPassword"},{default:i(()=>[l("div",y,[n(e(D)),l("div",h,s(e(G)("modals.settings.updateFundPassword.form.newPassword.label")),1),n(e(P),{"is-password":"",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start"},modelValue:_.formData.newPassword,"onUpdate:modelValue":a[0]||(a[0]=t=>_.formData.newPassword=t)},null,8,["modelValue"])])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["open","title","confirm-loading","ok-text","cancel-text"])}}});export{k as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.