import{_ as f}from"./D_7E8SMU.js";import{_ as k}from"./BOhf1Bbf.js";import{j as h,d as v,w,m as a,o as r,b as n,G as d,c as m,e as u,t as s,D as p,I as c,f as g}from"./Bgmy51Qv.js";import{u as N}from"./DKgjlGGV.js";import"./CNIrc0EA.js";import"./DZl4_Bww.js";import"./AmaTRG5a.js";import"./BHvLfWtM.js";import"./DuSynPle.js";import"./B2895E6R.js";import"./7pZkuj9N.js";const V={class:"input-wrapper"},q=["placeholder"],C={key:0,class:"error"},U={class:"input-wrapper"},B={key:0,class:"error"},D={class:"input-wrapper"},j=["placeholder"],A={key:0,class:"error"},P={class:"input-wrapper"},K=["placeholder"],R={key:0,class:"error"},S={class:"input-wrapper"},W=["placeholder"],z={key:0,class:"error"},G={class:"input-wrapper"},I={class:"dply-felx j-left mb-20 mb-sm-15"},M={class:"mr-15"},ee={__name:"[id]",setup(O){const t=h({id:"",title:"",account_number:"",account_name:"",branch_name:"",bank_name:"",default:2}),_=e=>{t.value.default=(e==null?void 0:e.key)||2},{featuredObj:b}=N();return(e,l)=>{const y=f,$=k;return r(),v($,{ref:"dataPageRef","set-api":"setWithdrawalAccount","get-api":"getWithdrawalAccount","route-name":"withdrawal-accounts",name:e.$t("user.wAcc"),"validation-keys":["title","account_number","account_name","bank_name","branch_name"],result:a(t),gate:"withdrawal_account",onResult:l[5]||(l[5]=o=>t.value=o)},{form:w(({hasError:o})=>[n("div",V,[n("label",null,s(e.$t("index.title")),1),d(n("input",{type:"text",placeholder:e.$t("index.title"),"onUpdate:modelValue":l[0]||(l[0]=i=>a(t).title=i),class:p({invalid:!a(t).title&&o})},null,10,q),[[c,a(t).title]]),!a(t).title&&o?(r(),m("span",C,s(e.$t("category.req",{type:e.$t("index.title")})),1)):u("",!0)]),n("div",U,[n("label",null,s(e.$t("admin.accNum")),1),d(n("input",{type:"text",placeholder:"eg. 3454245344554","onUpdate:modelValue":l[1]||(l[1]=i=>a(t).account_number=i),class:p({invalid:!a(t).account_number&&o})},null,2),[[c,a(t).account_number]]),!a(t).account_number&&o?(r(),m("span",B,s(e.$t("category.req",{type:e.$t("admin.accNum")})),1)):u("",!0)]),n("div",D,[n("label",null,s(e.$t("user.name")),1),d(n("input",{type:"text",placeholder:e.$t("user.name"),"onUpdate:modelValue":l[2]||(l[2]=i=>a(t).account_name=i),class:p({invalid:!a(t).account_name&&o})},null,10,j),[[c,a(t).account_name]]),!a(t).account_name&&o?(r(),m("span",A,s(e.$t("category.req",{type:e.$t("user.name")})),1)):u("",!0)]),n("div",P,[n("label",null,s(e.$t("admin.bnkName")),1),d(n("input",{type:"text",placeholder:e.$t("admin.bnkName"),"onUpdate:modelValue":l[3]||(l[3]=i=>a(t).bank_name=i),class:p({invalid:!a(t).bank_name&&o})},null,10,K),[[c,a(t).bank_name]]),!a(t).bank_name&&o?(r(),m("span",R,s(e.$t("category.req",{type:e.$t("admin.bnkName")})),1)):u("",!0)]),n("div",S,[n("label",null,s(e.$t("admin.bName")),1),d(n("input",{type:"text",placeholder:e.$t("admin.bName"),"onUpdate:modelValue":l[4]||(l[4]=i=>a(t).branch_name=i),class:p({invalid:!a(t).branch_name&&o})},null,10,W),[[c,a(t).branch_name]]),!a(t).branch_name&&o?(r(),m("span",z,s(e.$t("category.req",{type:e.$t("admin.bName")})),1)):u("",!0)]),n("div",G,[n("div",I,[n("span",M,s(e.$t("admin.default")),1),g(y,{selectedKey:`${a(t).default}`,options:a(b),onClicked:_},null,8,["selectedKey","options"])])])]),_:1},8,["name","result"])}}};export{ee as default};
