1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{63953:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/myaccount/resetpassword/[...token]",function(){return n(63086)}])},57307:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var o=n(67294),a=n(45243),r=n(31430),s=n(69156),c=n(7650),i=n(89287),l=n(93967),d=n.n(l),p=n(16819),m=n(80672),u=n(89157),f=n(84476),h=n(17399),g=n(46368),b=n(30641),y=n(52317);let w=(e,t,n,o,a)=>({background:e,border:"".concat((0,g.bf)(o.lineWidth)," ").concat(o.lineType," ").concat(t),["".concat(a,"-icon")]:{color:n}}),v=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:a,fontSize:r,fontSizeLG:s,lineHeight:c,borderRadiusLG:i,motionEaseInOutCirc:l,withDescriptionIconSize:d,colorText:p,colorTextHeading:m,withDescriptionPadding:u,defaultPadding:f}=e;return{[t]:Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:i,["&".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-content")]:{flex:1,minWidth:0},["".concat(t,"-icon")]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:c},"&-message":{color:m},["&".concat(t,"-motion-leave")]:{overflow:"hidden",opacity:1,transition:"max-height ".concat(n," ").concat(l,", opacity ").concat(n," ").concat(l,",\n padding-top ").concat(n," ").concat(l,", padding-bottom ").concat(n," ").concat(l,",\n margin-bottom ").concat(n," ").concat(l)},["&".concat(t,"-motion-leave-active")]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),["".concat(t,"-with-description")]:{alignItems:"flex-start",padding:u,["".concat(t,"-icon")]:{marginInlineEnd:a,fontSize:d,lineHeight:0},["".concat(t,"-message")]:{display:"block",marginBottom:o,color:m,fontSize:s},["".concat(t,"-description")]:{display:"block",color:p}},["".concat(t,"-banner")]:{marginBottom:0,border:"0 !important",borderRadius:0}}},x=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:a,colorWarning:r,colorWarningBorder:s,colorWarningBg:c,colorError:i,colorErrorBorder:l,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:u}=e;return{[t]:{"&-success":w(a,o,n,e,t),"&-info":w(u,m,p,e,t),"&-warning":w(c,s,r,e,t),"&-error":Object.assign(Object.assign({},w(d,l,i,e,t)),{["".concat(t,"-description > pre")]:{margin:0,padding:0}})}}},j=e=>{let{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:a,fontSizeIcon:r,colorIcon:s,colorIconHover:c}=e;return{[t]:{"&-action":{marginInlineStart:a},["".concat(t,"-close-icon")]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:r,lineHeight:(0,g.bf)(r),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",["".concat(n,"-close")]:{color:s,transition:"color ".concat(o),"&:hover":{color:c}}},"&-close-text":{color:s,transition:"color ".concat(o),"&:hover":{color:c}}}}};var _=(0,y.I$)("Alert",e=>[v(e),x(e),j(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:"".concat(e.paddingContentVerticalSM,"px ").concat(12,"px"),withDescriptionPadding:"".concat(e.paddingMD,"px ").concat(e.paddingContentHorizontalLG,"px")})),E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)0>t.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let N={success:a.Z,info:i.Z,error:r.Z,warning:c.Z},k=e=>{let{icon:t,prefixCls:n,type:a}=e,r=N[a]||null;return t?(0,f.wm)(t,o.createElement("span",{className:"".concat(n,"-icon")},t),()=>({className:d()("".concat(n,"-icon"),t.props.className)})):o.createElement(r,{className:"".concat(n,"-icon")})},P=e=>{let{isClosable:t,prefixCls:n,closeIcon:a,handleClose:r,ariaProps:c}=e,i=!0===a||void 0===a?o.createElement(s.Z,null):a;return t?o.createElement("button",Object.assign({type:"button",onClick:r,className:"".concat(n,"-close-icon"),tabIndex:0},c),i):null},Z=o.forwardRef((e,t)=>{let{description:n,prefixCls:a,message:r,banner:s,className:c,rootClassName:i,style:l,onMouseEnter:f,onMouseLeave:g,onClick:b,afterClose:y,showIcon:w,closable:v,closeText:x,closeIcon:j,action:N,id:Z}=e,C=E(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,I]=o.use
1State(!1),O=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:O.current}));let{getPrefixCls:T,direction:z,closable:W,closeIcon:D,className:F,style:H}=(0,h.dj)("alert"),M=T("alert",a),[R,q,B]=_(M),L=t=>{var n;I(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},A=o.useMemo(()=>void 0!==e.type?e.type:s?"warning":"info",[e.type,s]),G=o.useMemo(()=>"object"==typeof v&&!!v.closeIcon||!!x||("boolean"==typeof v?v:!1!==j&&null!=j||!!W),[x,j,v,W]),Q=!!s&&void 0===w||w,X=d()(M,"".concat(M,"-").concat(A),{["".concat(M,"-with-description")]:!!n,["".concat(M,"-no-icon")]:!Q,["".concat(M,"-banner")]:!!s,["".concat(M,"-rtl")]:"rtl"===z},F,c,i,B,q),$=(0,m.Z)(C,{aria:!0,data:!0}),J=o.useMemo(()=>"object"==typeof v&&v.closeIcon?v.closeIcon:x||(void 0!==j?j:"object"==typeof W&&W.closeIcon?W.closeIcon:D),[j,v,W,x,D]),K=o.useMemo(()=>{let e=null!=v?v:W;if("object"==typeof e){let{closeIcon:t}=e;return E(e,["closeIcon"])}return{}},[v,W]);return R(o.createElement(p.ZP,{visible:!S,motionName:"".concat(M,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:y},(t,a)=>{let{className:s,style:c}=t;return o.createElement("div",Object.assign({id:Z,ref:(0,u.sQ)(O,a),"data-show":!S,className:d()(X,s),style:Object.assign(Object.assign(Object.assign({},H),l),c),onMouseEnter:f,onMouseLeave:g,onClick:b,role:"alert"},$),Q?o.createElement(k,{description:n,icon:e.icon,prefixCls:M,type:A}):null,o.createElement("div",{className:"".concat(M,"-content")},r?o.createElement("div",{className:"".concat(M,"-message")},r):null,n?o.createElement("div",{className:"".concat(M,"-description")},n):null),N?o.createElement("div",{className:"".concat(M,"-action")},N):null,o.createElement(P,{isClosable:G,prefixCls:M,closeIcon:J,handleClose:L,ariaProps:K}))}))});var C=n(15671),S=n(43144),I=n(61120),O=n(78814),T=n(82963),z=n(60136);let W=function(e){function t(){var e,n,o;return(0,C.Z)(this,t),n=t,o=arguments,n=(0,I.Z)(n),(e=(0,T.Z)(this,(0,O.Z)()?Reflect.construct(n,o||[],(0,I.Z)(this).constructor):n.apply(this,o))).state={error:void 0,info:{componentStack:""}},e}return(0,z.Z)(t,e),(0,S.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:n,children:a}=this.props,{error:r,info:s}=this.state,c=(null==s?void 0:s.componentStack)||null,i=void 0===e?(r||"").toString():e;return r?o.createElement(Z,{id:n,type:"error",message:i,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?c:t)}):a}}])}(o.Component);Z.ErrorBoundary=W;var D=Z},63086:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return C},default:function(){return S}});var o=n(85893),a=n(67294),r=n(64972),s=n(83663),c=n(11949),i=n(65765),l=n(2516),d=n(57307),p=n(55493),m=n(43807),u=n(85551),f=n(22971),h=n(37781),g=n(39332),b=n(49826);let y=async e=>{let t=await fetch("/api/resetPassword?token=".concat(e.token,"&id=").concat(e.customerID),{method:"GET",headers:{"Content-Type":"application/json"}}),n=await t.json();if(t.ok)return n;throw new b.S0({code:n.code.toString(),message:n.message,status:n.status,name:b.S0.name})},w=async e=>{let t=await fetch("/api/resetPassword",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(t.ok)return n;throw new b.S0({code:n.code.toString(),message:n.message,status:n.status,name:b.S0.name})};var v=n(32351);let x=(e,t)=>{let{data:n,error:o,isFetching:a,isSuccess:r,refetch:s,isLoading:c,isPending:i}=(0,v.z)({queryKey:["GET_RESET_PASSWORD_BY_ID",e,t],queryFn:()=>y({token:e,customerID:t}),enabled:!!e&&!!t});return{data:n,error:o,isFetching:a,isSuccess:r,refetch:s,isLoading:c,isPending:i}};var j=n(35186),_=n(16992),E=n.n(_);function N(){let{t:e}=(0,c.q)(),[t]=(0,f.Z)(),{error:n,isLoading:b,handleSubmit:y}=function(){let e=(0,g.useSearchParams)(),t=(0,g.useParams)(),n=e.get("id"),{t:o}=(0,c.q)(),{showSuccess:r}=(0,h.p)(),{data:s,error:i,isPending:l}=x(t.token,n?Number.parseInt(n):0),{mutateAsync:d,isPending:p,error:m}=function(){let{mutate:e,mutateAsync:t,status:n,error:o,isPending:a,data:r,isSuccess:s}=(0,j.b)({mutationFn:e=>w(e)});return{mutate:e,mutateAsync:t,status:n,error:o,isPending:a,data:r,isSuccess:s}}(),u=(0,a.useCallback)(async e=>{if(!s)return;let t={...s,newPassword:e.newPassword,confirmPassword:e.confirmPassword};await d(t,{onSuccess:e=>{e&&r(o("label.success"),o("updatepassword.submit.success"))}})},[s,d,r,o]);return{isLoading:l||p,dataSource:s,error:i||m,handleSubmit:u}}();return(0,o.jsxs)(i.Z.Content,{className:E().layout,children:[(0,o.jsxs)(l.Z,{className:E().wrapper,vertical:!0,gap:12,children:[(0,o.jsx)(s.F,{className:E().title,level:2,children:e("header.reset.password")}),n&&(0,o.jsx)(d.Z,{message:null==n?void 0:n.message,type:"error",className:E().alert}),(0,o.jsxs)(p.Z,{className:E().form,layout:"vertical",form:t,onFinish:y,children:[(0,o.jsx)(p.Z.Item,{name:"newPassword",label:e("label.newpassword"),rules:[{required:!0,message:e("newpassword.required")}],children:(0,o.jsx)(m.Z.Password,{size:"large",placeholder:e("label.newpassword")})}),(0,o.jsx)(p.Z.Item,{name:"confirmPassword",label:e("label.newpassword.confirm"),dependencies:["newPassword"],rules:[{required:!0,message:e("password.confirm.required")},t=>{let{getFieldValue:n}=t;return{validator:(t,o)=>o&&n("newPassword")!==o?Promise.reject(Error(e("newpassword.confirmpassword.invalid"))):Promise.resolve()}}],children:(0,o.jsx)(m.Z.Password,{size:"large",placeholder:e("label.newpassword.confirm")})}),(0,o.jsx)(p.Z.Item,{children:(0,o.jsx)(u.ZP,{className:E().action,htmlType:"submit",size:"large",block:!0,type:"primary",loading:b,children:e("label.button.submit")})})]})]}),(0,o.jsx)(r.$,{})]})}var k=n(60902),P=n(9008),Z=n.n(P),C=!0;function S(e){let{website:t,company:n,theme:a}=e;return(0,k.P)({website:t,company:n,theme:a}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z(),{children:(0,o.jsx)("title",{children:"".concat(null==n?void 0:n.name," - Reset Password")})}),(0,o.jsx)(N,{})]})}},64972:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var o=n(85893),a=n(11949),r=n(47529),s=n(50820),c=n(2516),i=n(25675),l=n.n(i),d=n(82057),p=n(74322),m=n.n(p);function u(e){let{className:t}=e,{t:n}=(0,a.q)(),i=(0,s.Z)(e=>e.company),p=(0,r.Vf)(null==i?void 0:i.salesCompanyName),u=(null==i?void 0:i.salesCompanyWebsite)?i.salesCompanyWebsite.startsWith("http")?i.salesCompanyWebsite:"https://".concat(i.salesCompanyWebsite):void 0,f=null==i?void 0:i.salesCompanyName,h=(0,r.k2)(f,"terms-and-conditions"),g=(0,r.k2)(f,"privacy-policy"),b=(0,r.k2)(f,"cookie-policy");return(0,o.jsx)(c.Z,{className:t,children:(0,o.jsx)("footer",{id:"footer",className:m().footer,children:(0,o.jsxs)(c.Z,{vertical:!0,align:"center",children:[p&&(0,o.jsx)("a",{href:u,target:"_blank",rel:"noopener",children:(0,o.jsx)(l(),{src:p,alt:"footer logo",width:0,height:0,sizes:"100vw",priority:!0,style:{width:"100px",height:"auto",maxHeight:"48px",objectFit:"contain"}})}),(0,o.jsxs)(c.Z,{className:m().copyright,children:[(0,o.jsxs)(d._,{type:"secondary",children:[n("label.copyright")," \xa9 ",new Date().getFullYear()," ",null==i?void 0:i.salesCompanyName]}),(h||g)&&(0,o.jsx)("span",{className:m().dash,children:"|"}),(0,o.jsxs)(c.Z,{gap:8,children:[h&&(0,o.jsx)("a",{href:(0,r.Qh)(f,"terms-and-conditions"),children:n("label.terms.and.conditions")}),h&&g&&(0,o.jsx)("span",{children:"|"}),g&&(0,o.jsx)("a",{href:(0,r.Qh)(f,"privacy-policy"),children:n("label.link.privacy.policy")})]}),b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:m().dash,children:"|"}),(0,o.jsx)("a",{href:(0,r.Qh)(f,"cookie-policy"),children:n("label.link.cookie.policy")})]})]})]})})})}},60902:function(e,t,n){"use strict";n.d(t,{P:function(){return d}});
1var o=n(67294),a=n(52675),r=n(50820),s=n(24726);let c=(0,n(31993).U)(e=>({websiteTheme:null,setWebsiteTheme:t=>e({websiteTheme:t})}));var i=n(6811),l=n(24660);function d(e){let{website:t,company:n,branch:d,theme:p}=e,m=c(e=>e.setWebsiteTheme),u=(0,s.Z)(e=>e.setWebsite),f=(0,r.Z)(e=>e.setCompany),h=(0,a.Z)(e=>e.setBranch);(0,o.useEffect)(()=>{(0,i.LP)()||(0,l.KR)("customer")},[]),(0,o.useEffect)(()=>{u(t)},[t,u]),(0,o.useEffect)(()=>{f(n)},[n,f]),(0,o.useEffect)(()=>{d&&h(d)},[d,h]),(0,o.useEffect)(()=>{p&&m(p)},[p,m])}},16992:function(e){e.exports={layout:"page_layout__3Ozg3",wrapper:"page_wrapper__xwR_C",title:"page_title__kXc4b",alert:"page_alert__2lU6Z",form:"page_form__a_BaT",action:"page_action__J6Ti8"}},74322:function(e){e.exports={footer:"Footer_footer__ddZ2A",copyright:"Footer_copyright__CP_2u",dash:"Footer_dash__Tb_Dk"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=63953)}),_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.