1(self.webpackChunkidc_shop=self.webpackChunkidc_shop||[]).push([[275],{25275(e,r,t){var a=t(24994);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=a(t(29293)),l=a(t(85715)),n=t(96540),s=a(t(94129)),i=a(t(68997)),d=a(t(78506)),u=a(t(9176)),p=a(t(78505)),c=t(92171),f=a(t(42162)),y=a(t(27107)),h=t(18091),m=t(28635),g=a(t(56849)),b=a(t(1631)),v=t(65123),x=a(t(22207)),j=t(74848);function C(e,r,t){if(r&&!Array.isArray(r)&&"number"==typeof r.length){var a=r.length;return function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}(r,void 0!==t&&t<a?t:a)}return e(r,t)}var A=(0,n.memo)(function(e){var r=e.navigation,t=e.route.params,a=(0,v.useAnimatedHeader)(),i=C(l.default,a,1)[0],c=(0,n.useState)(""),A=C(l.default,c,2),S=A[0],T=A[1],w=(0,n.useState)(""),O=C(l.default,w,2),R=O[0],B=O[1],W=(0,n.useState)(!1),z=C(l.default,W,2),M=z[0],_=z[1],P=(0,n.useState)(y.default.emptyArray),V=C(l.default,P,2),E=V[0],N=V[1];(0,n.useEffect)(function(){N([])},[S,R]),(0,n.useEffect)(function(){null!=t&&t.token&&t.email||r.popToTop()},[null==t?void 0:t.token]);var D=(0,n.useCallback)((0,o.default)(function*(){if(S&&R){_(!0);try{var e,a;yield h.GlobalState.account.resetPassword(null!=(e=null==t?void 0:t.token)?e:"",null!=(a=null==t?void 0:t.email)?a:"",S,R),g.default.set("token",h.GlobalState.account._token),r.popToTop()}catch(e){var o,l;e instanceof m.ApiError?N([null==(o=e.errors.password)?void 0:o.join(" "),e.message]):N([void 0,null!=(l=e.message)?l:p.default.general.error])}_(!1)}}),[S,R]),H=(0,n.useMemo)(function(){if(!E[0])return E[1]},[E]);return(0,j.jsxs)(u.default,{style:k.container,children:[(0,j.jsx)(x.default,{navigation:r}),(0,j.jsxs)(u.default,{style:k.innerContainer,children:[(0,j.jsx)(u.default,{style:k.iconContainer,children:(0,j.jsx)(b.default,{name:"person",size:16})}),(0,j.jsx)(d.default,{style:k.headerText,children:p.default.account.passwordReseting}),void 0!==H&&(0,j.jsx)(d.default,{style:k.errorText,children:H}),(0,j.jsx)(u.default,{style:k.inputWrapper,children:(0,j.jsx)(f.default,{value:S,setValue:T,label:p.default.account.enterNewPassword,placeholder:"******",error:E[0],secure:!0})}),(0,j.jsx)(u.default,{style:k.inputWrapper,children:(0,j.jsx)(f.default,{value:R,setValue:B,label:p.default.account.confirmNewPassword,placeholder:"******",secure:!0})}),(0,j.jsx)(s.default,{onPress:M?void 0:D,style:k.submitButton,children:(0,j.jsx)(d.default,{style:k.submitButtonText,children:p.default.general.save})})]}),(0,j.jsx)(x.default,{navigation:r,state:i})]})});A.displayName="RegistrationMobile";var k=i.default.create({container:{flex:1,justifyContent:"center"},innerContainer:{marginHorizontal:16,padding:24,backgroundColor:"white",borderRadius:16,shadowColor:"black",shadowOpacity:.3,shadowOffset:{width:0,height:2},shadowRadius:8},iconContainer:{height:40,aspectRatio:1,marginBottom:12,justifyContent:"center",alignItems:"center",alignSelf:"center",backgroundColor:c.AppColors.primaryBg,borderWidth:1,borderColor:"#0000004d",borderRadius:150},headerText:Object.assign({},c.AppStyles.text,{fontSize:16,fontWeight:"500",color:c.AppColors.primaryDark,textAlign:"center"}),errorText:Object.assign({},c.AppStyles.text,{fontSize:14,color:c.AppColors.primaryRed,marginBottom:20,padding:8,borderWidth:1,borderColor:c.AppColors.primaryBg,borderRadius:12}),inputWrapper:{marginTop:20},submitButton:{marginTop:20,padding:8,backgroundColor:c.AppColors.primaryBlue,borderWidth:1,borderColor:c.AppColors.primaryBlue,borderRadius:12},submitButtonText:Object.assign({},c.AppStyles.text,{fontSize:14,fontWeight:"500",color:"white",textAlign:"center"})});r.default=A},42162(e,r,t){var a=t(24994);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=t(96540),l=a(t(74220)),n=a(t(68997)),s=a(t(78506)),i=t(92171),d=t(74848),u=(0,o.memo)(function(e){var r=e.value,t=e.label,a=e.placeholder,u=e.secure,c=e.error,f=e.readOnly,y=e.required,h=void 0===y||y,m=e.ref,g=e.setValue,b=(0,o.useMemo)(function(){return n.default.compose(p.label,{color:c?i.AppColors.primaryRed:i.AppColors.primaryDark})},[c]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(s.default,{style:b,children:[t,h&&(0,d.jsx)(s.default,{style:p.asterisk,children:" *"})]}),(0,d.jsx)(l.default,{value:r,setValue:g,placeholder:a,readOnly:f,error:c,secure:u,ref:m})]})}),p=n.default.create({label:Object.assign({},i.AppStyles.text,{fontSize:14,fontWeight:"500",marginBottom:4}),asterisk:{color:i.AppColors.primaryRed}});r.default=u},74220(e,r,t){var a=t(24994);
1Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=t(96540),l=a(t(68997)),n=a(t(78506)),s=a(t(15782)),i=a(t(9176)),d=t(92171),u=t(74848),p=(0,o.memo)(function(e){var r=e.value,t=e.placeholder,a=e.secure,p=e.readOnly,f=e.error,y=e.ref,h=e.setValue,m=(0,o.useMemo)(function(){return l.default.compose(c.input,{borderColor:f?d.AppColors.primaryRed:d.AppColors.primaryBorder})},[f]);return(0,u.jsxs)(i.default,{children:[(0,u.jsx)(s.default,{value:r,onChangeText:h,placeholder:t,placeholderTextColor:d.AppColors.secondaryText,secureTextEntry:a,readOnly:p,focusable:!p,style:m,ref:y}),f&&(0,u.jsx)(n.default,{style:c.errorText,children:f})]})});p.displayName="MainInputMobile";var c=l.default.create({input:Object.assign({},d.AppStyles.text,{fontSize:16,color:d.AppColors.primaryDark,paddingVertical:10,paddingHorizontal:12,borderWidth:1,borderRadius:12}),errorText:Object.assign({},d.AppStyles.text,{fontSize:16,color:d.AppColors.primaryRed,marginTop:8})});r.default=p}}]);
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.