1"use strict";(self.webpackChunkrental_front=self.webpackChunkrental_front||[]).push([[8966],{88966(e,t,a){a.r(t),a.d(t,{default:()=>b});var n=a(65043),s=a(45029),i=a(56582),o=a(27752),r=a(13892),u=a(80899),c=a(53536),d=a.n(c),m=a(44582),l=a(70579);const b=()=>{const e=(0,s.Zp)(),{customer:t,bank_account:a}=(0,o.A)(),c=(0,n.useMemo)(()=>({id:d().get(a,"id",void 0),customer_id:null===t||void 0===t?void 0:t.id,type:d().get(a,"type","0"),bank_name:d().get(a,"bank_name",""),shop_name:d().get(a,"shop_name",""),account_number:d().get(a,"account_number",""),account_name:d().get(a,"account_name",""),is_enable:d().get(a,"is_enable",!0),submit:!1}),[a,null===t||void 0===t?void 0:t.id]),b=u.Ik().shape({id:u.ai(),customer_id:u.ai().required("\u9867\u5ba2ID\u306f\u5fc5\u9808\u3067\u3059"),type:u.Yj().required("\u7a2e\u5225\u306f\u5fc5\u9808\u3067\u3059"),bank_name:u.Yj().required("\u7a2e\u9280\u884c\u540d\u306f\u5fc5\u9808\u3067\u3059"),shop_name:u.Yj().required("\u652f\u5e97\u540d\u306f\u5fc5\u9808\u3067\u3059"),account_number:u.Yj().required("\u53e3\u5ea7\u756a\u53f7\u306f\u5fc5\u9808\u3067\u3059").matches(/^\d{7}$/,"\u53e3\u5ea7\u756a\u53f7\u306f7\u6841\u306e\u6570\u5b57\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044"),account_name:u.Yj().required("\u540d\u7fa9\u4eba\u540d\uff08\u30ab\u30bf\u30ab\u30ca\uff09\u306f\u5fc5\u9808\u3067\u3059").matches(/^[\u30a1-\u30f3\u30f4\u30fc\u3000]+$/,"\u5168\u89d2\u30ab\u30bf\u30ab\u30ca\u307e\u305f\u306f\u5168\u89d2\u30b9\u30da\u30fc\u30b9\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044"),submit:u.zM()}),p=(0,r.Wx)({initialValues:c,validationSchema:b,onSubmit:async(t,a)=>{let{setErrors:n,setStatus:s,setSubmitting:o}=a;try{const{data:a}=await i.A.post("/endpoint/customers/bank-account",t);if("success"!==a.data.result)throw new Error("bank account edit is failed.");e("/rental/mypage/bank/complete")}catch(r){console.error(r),s({success:!1});n({submit:(r.response&&r.response.data.message?r.response.data.message:"\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc")+"\n\u9280\u884c\u53e3\u5ea7\u60c5\u5831\u5909\u66f4\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u5165\u529b\u5185\u5bb9\u3092\u3054\u78ba\u8a8d\u9802\u304f\u304b\u3001\u6642\u9593\u3092\u304a\u3044\u3066\u518d\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002"})}finally{o(!1)}}}),{handleSubmit:_,isSubmitting:h}=p;return(0,l.jsxs)(r.QI,{value:p,children:[(0,l.jsx)(r.lV,{autoComplete:"off",noValidate:!0,onSubmit:_,children:(0,l.jsx)(s.sv,{})}),h&&(0,l.jsx)(m.Rh,{})]})}}}]); 2//# sourceMappingURL=8966.97a82245.chunk.js.map
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.