1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7665],{72939:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(18857),i=n(81043),s=n(78677),o=n(84375),c=n(97440),a=n(6059),u=n(85893);function d(e){var t=e.children,n=e.mainMenu;(0,i.v9)(s.mR).headerHeight,(0,i.v9)(o.KY).activeMegaMenuItem;return(0,u.jsxs)("div",{className:"",children:[(0,u.jsx)(r.Z,{mainMenu:n}),(0,u.jsx)("div",{className:"py-6 md:py-16",children:t}),(0,u.jsx)(a.Z,{}),(0,u.jsx)(c.Z,{})]})}},69862:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return u}});var r=n(67294),i=(n(84877),n(31955)),s=n(11163),o=n.n(s),c=n(72939),a=n(85893),u=!0;t.default=function(e){var t,n,s=e.mainMenu,u=(0,r.useState)(""),d=u[0],l=u[1],f=(0,r.useState)(""),p=f[0],m=f[1];return(0,r.useEffect)((function(){var e=function(){for(var e=location.search,t=e.substring(e.indexOf("?")+1).split("&"),n=0,r={};n<t.length;n++)t[n]=t[n].split("="),r[t[n][0]]=decodeURIComponent(t[n][1]);return r}(),t=e.id,n=e.i;i.Z.set("id",t,{expires:2}),i.Z.set("i",n,{expires:2})}),[]),"undefined"!==typeof i.Z.get("id")&&"undefined"!==typeof i.Z.get("i")&&(t=i.Z.get("id"),n=i.Z.get("i")),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c.Z,{mainMenu:s,children:(0,a.jsx)("div",{className:"flex w-full flex-col items-center justify-center",children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-center md:w-96",children:[(0,a.jsx)("h2",{className:"text-center font-serif text-lg uppercase tracking-wider text-accent md:text-3xl",children:"Create a new password"}),(0,a.jsxs)("form",{id:"reset-password",onSubmit:function(e){e.preventDefault(),fetch("../api/centra/customer/password-reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:p,id:t,i:n})}).then((function(e){return e.json()})).then((function(e){e&&e.errors&&(l(e.message),alert("Sorry Could not change password")),e&&e.loggedIn&&(i.Z.set("token",e.token,{expires:2}),alert("Password changed successfuly"),o().push("/"))}))},className:"mt-6 w-full px-4 md:px-0",children:[(0,a.jsx)("input",{name:"password",placeholder:"Please write your new password*",type:"password",value:p,className:"h-9 w-full border-b border-solid border-gray text-base tracking-wide text-gray-dark",onChange:function(e){return m(e.target.value)},required:!0}),(0,a.jsx)("input",{type:"submit",value:"Reset password",className:"mt-6 w-full cursor-pointer bg-button-light py-3 font-com text-base uppercase tracking-wide text-button-white duration-200 ease-in-out hover:bg-accent"}),d&&(0,a.jsx)("p",{style:{color:"red"},children:d})]})]})})})})}},63834:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/password-reset",function(){return n(69862)}])},31955:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{Z:function(){return i}});var i=function e(t,n){function i(e,i,s){if("undefined"!==typeof document){"number"===typeof(s=r({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var c in s)s[c]&&(o+="; "+c,!0!==s[c]&&(o+="="+s[c].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var s=n[i].split("="),o=s.slice(1).join("=");try{var c=decodeURIComponent(s[0]);if(r[c]=t.read(o,c),e===c)break}catch(a){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
1URIComponent)}},{path:"/"})}},function(e){e.O(0,[3714,7372,2750,9554,2731,5997,5442,9774,2888,179],(function(){return t=63834,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.