1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1671],{63598:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/new-user",function(){return t(55880)}])},55880:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return i},default:function(){return u}});var s=t(52322),r=t(2784),a=t(30001),c=t(5632);t(70661);var i=!0;function u(){let e=(0,c.useRouter)(),{inputSelections:n}=(0,a.bND)(),[t,i]=(0,r.useState)(!1),[u,l]=(0,r.useState)(!1),[o,d]=(0,r.useState)(),[_,f]=(0,r.useState)(),h=async()=>{var e;i(!0),null==n||null===(e=n.clear)||void 0===e||e.call(n);try{let e=await (0,a.ptH)("new-user");f(e)}finally{i(!1)}};(0,r.useEffect)(()=>{h()},[]);let x=n=>{e.push("account-list?newUserId=".concat(n))};return(0,s.jsx)("div",{className:"new-user-content",children:o?(0,s.jsxs)("div",{className:"new-user-content__created",children:[(0,s.jsx)(a.ZT$,{variant:"h1",children:"new_user_created"}),(0,s.jsx)(a.ZT$,{variant:"span",children:"new_user_created_successfully"}),(0,s.jsxs)("div",{className:"user-buttons",children:[(0,s.jsx)(a.zxk,{extraClass:"btn-primary",onClick:()=>d(void 0),children:(0,s.jsx)(a.ZT$,{children:"ask_create_another_user"})}),(0,s.jsxs)(a.zxk,{extraClass:"btn-secondary",onClick:()=>x(null==o?void 0:o.id),children:[(0,s.jsx)(a.ZT$,{children:"deposit_to"}),(0,s.jsx)("span",{children:" - "}),null==o?void 0:o.username]})]})]}):(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(a.ZT$,{variant:"h1",children:"new_user"}),t&&(0,s.jsx)(a.YfE,{cover:!0}),!t&&_&&(0,s.jsxs)(r.Fragment,{children:[u&&(0,s.jsx)(a.YfE,{cover:!0}),(0,s.jsx)(a.F3R,{onSubmit:e=>{if(!(0,a.JYS)(e))return;let{password_confirm:n,...t}=e;l(!0),(0,a.Nyn)({...t,password_confirm:n}).then(e=>{d(null==e?void 0:e.created_user),a.Cmi.success({content:"new_user_created"})}).catch(()=>{}).finally(()=>{l(!1)})},flatDesign:!0,data:_.data.form.data.columns,noStepTitle:!0,flatDirection:"column",submitButtonTitle:"save"})]})]})})}},70661:function(){}},function(e){e.O(0,[1705,1617,1711,1709],function(){return e(e.s=63598)}),_N_E=e.O()}]);
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.