1"use strict";(self.webpackChunk_zone_kit_cra_ts=self.webpackChunk_zone_kit_cra_ts||[]).push([[8303],{51911:function(e,r,n){n.d(r,{Fl:function(){return J},jb:function(){return C},Re:function(){return F},s2:function(){return P},vA:function(){return j},km:function(){return L},Cc:function(){return g},kk:function(){return W},_e:function(){return D},au:function(){return M},ZP:function(){return G}});var t=n(1413),o=n(45987),a=n(61134),l=n(64554),i=n(85771),c=n(13034),s=n(82626),u=n(62861),d=n(68096),x=n(86596),p=n(47071),h=n(17563),m=n(48550),v=n(80184),f=["name","native","maxHeight","helperText","children","PaperPropsSx"],Z=["name","chip","label","options","checkbox","placeholder","helperText","sx"];function g(e){var r=e.name,n=e.native,l=e.maxHeight,i=void 0===l?220:l,c=e.helperText,s=e.children,u=e.PaperPropsSx,d=(0,o.Z)(e,f),x=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:r,control:x,render:function(e){var r=e.field,o=e.fieldState.error;return(0,v.jsx)(m.Z,(0,t.Z)((0,t.Z)((0,t.Z)({},r),{},{select:!0,fullWidth:!0,SelectProps:{native:n,MenuProps:{PaperProps:{sx:(0,t.Z)((0,t.Z)({},!n&&{maxHeight:"number"===typeof i?i:"unset"}),u)}},sx:{textTransform:"capitalize"}},error:!!o,helperText:o?null===o||void 0===o?void 0:o.message:c},d),{},{children:s}))}})}function j(e){var r=e.name,n=e.chip,m=e.label,f=e.options,g=e.checkbox,j=e.placeholder,b=e.helperText,y=e.sx,k=(0,o.Z)(e,Z),_=(0,a.Gc)().control,T=function(e){var r=f.filter((function(r){return e.includes(r.value)}));return!r.length&&j?(0,v.jsx)(l.Z,{component:"em",sx:{color:"text.disabled"},children:j}):n?(0,v.jsx)(l.Z,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:r.map((function(e){return(0,v.jsx)(i.Z,{size:"small",label:e.label},e.value)}))}):r.map((function(e){return e.label})).join(", ")};return(0,v.jsx)(a.Qr,{name:r,control:_,render:function(e){var n=e.field,o=e.fieldState.error;return(0,v.jsxs)(d.Z,{sx:y,children:[m&&(0,v.jsxs)(u.Z,{id:r,children:[" ",m," "]}),(0,v.jsxs)(h.Z,(0,t.Z)((0,t.Z)((0,t.Z)({},n),{},{multiple:!0,displayEmpty:!!j,labelId:r,input:(0,v.jsx)(x.Z,{fullWidth:!0,error:!!o}),renderValue:T},k),{},{children:[j&&(0,v.jsx)(s.Z,{disabled:!0,value:"",children:(0,v.jsxs)("em",{children:[" ",j," "]})}),f.map((function(e){var r=n.value.includes(e.value);return(0,v.jsxs)(s.Z,{value:e.value,children:[g&&(0,v.jsx)(c.Z,{size:"small",disableRipple:!0,checked:r}),e.label]},e.value)}))]})),(!!o||b)&&(0,v.jsx)(p.Z,{error:!!o,children:o?null===o||void 0===o?void 0:o.message:b})]})}})}var b=n(4942),y=n(93433),k=n(79012),_=n(17133),T=n(25801),S=n(75948),w=["name","helperText"],H=["row","name","label","options","spacing","helperText","sx"];function C(e){var r=e.name,n=e.helperText,l=(0,o.Z)(e,w),i=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:r,control:i,render:function(e){var r=e.field,o=e.fieldState.error;return(0,v.jsxs)("div",{children:[(0,v.jsx)(T.Z,(0,t.Z)({control:(0,v.jsx)(c.Z,(0,t.Z)((0,t.Z)({},r),{},{checked:r.value}))},l)),(!!o||n)&&(0,v.jsx)(p.Z,{error:!!o,children:o?null===o||void 0===o?void 0:o.message:n})]})}})}function P(e){var r=e.row,n=e.name,l=e.label,i=e.options,s=e.spacing,u=e.helperText,x=e.sx,h=(0,o.Z)(e,H),m=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:n,control:m,render:function(e){var n=e.field,o=e.fieldState.error;return(0,v.jsxs)(d.Z,{component:"fieldset",children:[l&&(0,v.jsx)(_.Z,{component:"legend",sx:{typography:"body2"},children:l}),(0,v.jsx)(k.Z,{sx:(0,t.Z)((0,t.Z)({},r&&{flexDirection:"row"}),{},(0,b.Z)({},"& .".concat(S.Z.root),(0,t.Z)({"&:not(:last-of-type)":{mb:s||0}},r&&{mr:0,"&:not(:last-of-type)":{mr:s||2}})),x),children:i.map((function(e){return(0,v.jsx)(T.Z,(0,t.Z)({control:(0,v.jsx)(c.Z,{checked:n.value.includes(e.value),onChange:function(){return n.onChange((r=n.value,t=e.value,r.includes(t)?r.filter((function(e){return e!==t})):[].concat((0,y.Z)(r),[t])));var r,t}}),label:e.label},h),e.value)}))}),(!!o||u)&&(0,v.jsx)(p.Z,{error:!!o,sx:{mx:0},children:o?null===o||void 0===o?void 0:o.message:u})]})}})}function G(e){var r=e.children,n=e.onSubmit,o=e.methods;return(0,v.jsx)(a.RV,(0,t.Z)((0,t.Z)({},o),{},{children:(0,v.jsx)("form",{onSubmit:n,children:r})}))}var Q=n(11455),z=["name"];function F(e){var r=e.name,n=(0,o.Z)(e,z),l=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:r,control:l,render:function(e){var r=e.field,o=e.fieldState.error;return(0,v.jsxs)("div",{children:[(0,v.jsx)(Q.P,(0,t.Z)((0,t.Z)({},r),{},{autoFocus:!0,gap:1.5,length:6,TextFieldsProps:{error:!!o,placeholder:"-"}},n)),o&&(0,v.jsx)(p.Z,{sx:{px:2},error:!0,children:o.message})]})}})}var R=n(59256),V=["name","helperText"];function W(e){var r=e.name,n=e.helperText,l=(0,o.Z)(e,V),i=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:r,control:i,render:function(e){var r=e.field,o=e.fieldState.error;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(R.ZP,(0,t.Z)((0,t.Z)({},r),{},{valueLabelDisplay:"auto"},l)),(!!o||n)&&(0,v.jsx)(p.Z,{error:!!o,children:o?null===o||void 0===o?void 0:o.message:n})]})}})}var q=n(89891),I=["name","helperText"];function D(e){var r=e.name,n=e.helperText,l=(0,o.Z)(e,I),i=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:r,control:i,render:function(e){var r=e.field,o=e.fieldState.error;return(0,v.jsxs)("div",{children:[(0,v.jsx)(T.Z,(0,t.Z)({control:(0,v.jsx)(q.Z,(0,t.Z)((0,t.Z)({},r),{},{checked:r.value}))},l)),(!!o||n)&&(0,v.jsx)(p.Z,{error:!!o,children:o?null===o||void 0===o?void 0:o.message:n})]})}})}var E=["name","helperText","type"];function M(e){var r=e.name,n=e.helperText,l=e.type,i=(0,o.Z)(e,E),c=(0,a.Gc)().control;return(0,v.jsx)(a.Qr,{name:r,control:c,render:function(e){var r=e.field,o=e.fieldState.error;return(0,v.jsx)(m.Z,(0,t.Z)((0,t.Z)({},r),{},{fullWidth:!0,type:l,value:"number"===l&&0===r.value?"":r.value,onChange:function(e){"number"===l?r.onCh
1ange(Number(e.target.value)):r.onChange(e.target.value)},error:!!o,helperText:o?null===o||void 0===o?void 0:o.message:n},i))}})}var $=n(61419),A=n(88970),B=["row","name","label","options","spacing","helperText"];function L(e){var r=e.row,n=e.name,l=e.label,i=e.options,c=e.spacing,s=e.helperText,u=(0,o.Z)(e,B),x=(0,a.Gc)().control,h=l?"".concat(n,"-").concat(l):"";return(0,v.jsx)(a.Qr,{name:n,control:x,render:function(e){var n=e.field,o=e.fieldState.error;return(0,v.jsxs)(d.Z,{component:"fieldset",children:[l&&(0,v.jsx)(_.Z,{component:"legend",id:h,sx:{typography:"body2"},children:l}),(0,v.jsx)(A.Z,(0,t.Z)((0,t.Z)((0,t.Z)({},n),{},{"aria-labelledby":h,row:r},u),{},{children:i.map((function(e){return(0,v.jsx)(T.Z,{value:e.value,control:(0,v.jsx)($.Z,{}),label:e.label,sx:(0,t.Z)({"&:not(:last-of-type)":{mb:c||0}},r&&{mr:0,"&:not(:last-of-type)":{mr:c||2}})},e.value)}))})),(!!o||s)&&(0,v.jsx)(p.Z,{error:!!o,sx:{mx:0},children:o?null===o||void 0===o?void 0:o.message:s})]})}})}var N=n(30055),X=["name","label","placeholder","helperText"];function J(e){var r=e.name,n=e.label,l=e.placeholder,i=e.helperText,c=(0,o.Z)(e,X),s=(0,a.Gc)(),u=s.control,d=s.setValue;return(0,v.jsx)(a.Qr,{name:r,control:u,render:function(e){var o=e.field,a=e.fieldState.error;return(0,v.jsx)(N.Z,(0,t.Z)((0,t.Z)({},o),{},{onChange:function(e,n){return d(r,n,{shouldValidate:!0})},renderInput:function(e){return(0,v.jsx)(m.Z,(0,t.Z)({label:n,placeholder:l,error:!!a,helperText:a?null===a||void 0===a?void 0:a.message:i},e))}},c))}})}},88303:function(e,r,n){n.r(r),n.d(r,{default:function(){return w}});var t=n(6907),o=n(36829),a=n(74165),l=n(15861),i=n(29439),c=n(72791),s=n(57689),u=n(11087),d=n(8007),x=n(61134),p=n(44695),h=n(58518),m=n(50533),v=n(36314),f=n(4567),Z=n(12258),g=n(95704),j=n(7055),b=n(71445),y=n(8523),k=n(89302),_=n(51911),T=n(80184);function S(){var e=(0,s.s0)(),r=(0,u.lr)(),n=(0,i.Z)(r,1)[0].get("email"),t=(0,g.Z)(),S=t.sendResetPasswordVerifyCodeMail,w=t.verifyCodeConfirm,H=(0,h.Ds)().enqueueSnackbar,C=(0,o.$G)().t,P=d.Ry().shape({code:d.Z_().min(6,C("ohmyappHomepage.login.least_code")||"").required(C("ohmyappHomepage.login.required_code")||"")}),G=(0,x.cI)({mode:"onChange",resolver:(0,p.X)(P),defaultValues:{code:""}}),Q=(0,c.useCallback)((0,l.Z)((0,a.Z)().mark((function e(){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=n,e.next=4,S(r).then((function(e){var r=e.data,n=r.code,t=r.message;"1"===n||1===n?H(C("ohmyappHomepage.login.success_send_code")||"",{variant:"success"}):H(t,{variant:"warning"})}));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[n,H,S,C]),z=G.handleSubmit,F=G.formState.isSubmitting,R=z(function(){var r=(0,l.Z)((0,a.Z)().mark((function r(t){var o,l;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=n,l=t.code,r.next=5,w(o,l).then((function(r){var n=r.data,t=n.code,o=n.message;"1"===t||1===t?(H(C("ohmyappHomepage.login.success_verify")||"",{variant:"success"}),e("".concat(j.H.resetPassword,"?oid=").concat(o),{replace:!0})):H(o,{variant:"warning"})}));case 5:r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),console.error(r.t0);case 10:case"end":return r.stop()}}),r,null,[[0,7]])})));return function(e){return r.apply(this,arguments)}}());return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(b.E,{alt:"email inbox",src:"/assets/icons/ic_email_inbox.svg",sx:{mb:5,width:96,height:96,mx:"auto"}}),(0,T.jsx)(f.Z,{variant:"h3",children:C("ohmyappHomepage.login.check_email")}),(0,T.jsx)(f.Z,{variant:"body2",sx:{mt:2,mb:5,color:"text.secondary"},children:C("ohmyappHomepage.login.check_email_desc")}),(0,T.jsx)(_.ZP,{methods:G,onSubmit:R,children:(0,T.jsxs)(v.Z,{spacing:3,children:[(0,T.jsx)(_.Re,{name:"code"}),(0,T.jsx)(Z.Z,{fullWidth:!0,size:"large",color:"inherit",type:"submit",variant:"contained",loading:F,sx:{mt:3},children:C("ohmyappHomepage.login.verify")})]})}),(0,T.jsxs)(f.Z,{variant:"body2",align:"center",sx:{mt:3},children:[C("ohmyappHomepage.login.dont_have_code"),(0,T.jsx)(Z.Z,{fullWidth:!0,size:"large",color:"inherit",type:"submit",variant:"contained",sx:{mt:2.5},onClick:Q,children:C("ohmyappHomepage.login.retry_code")})]}
1),(0,T.jsxs)(m.Z,{component:k.r,href:j.H.loginBackground,color:"inherit",variant:"subtitle2",sx:{mt:3,mx:"auto",alignItems:"center",display:"inline-flex"},children:[(0,T.jsx)(y.Z,{icon:"carbon:chevron-left",width:16,sx:{mr:1}}),C("ohmyappHomepage.login.return_sign_in")]})]})}function w(){var e=(0,o.$G)().t;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(t.ql,{children:(0,T.jsx)("title",{children:e("ohmyappHomepage.login.verify")})}),(0,T.jsx)(S,{})]})}}}]); 2//# sourceMappingURL=8303.7b3561d7.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.