1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[325],{72832:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login/reset-pin",function(){return r(23817)}])},64753:function(e,t,r){"use strict";var n=r(85893),s=r(67294),i=r(38279),o=r.n(i),a=r(53854),u=r(64788);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}t.Z=function(e){var t=(0,s.useState)(e.revealPin),r=t[0],i=t[1],c={inputStyle:{width:"42px",height:"60px",border:"none",borderBottom:"2px solid #FB8110",color:"#fb8110",fontSize:r?"2rem":"4rem",marginLeft:"0.5rem",marginRight:"0.5rem",textAlign:"center",WebkitTextSecurity:r?"none":"disc",MozTextSecurity:r?"none":"disc",textSecurity:r?"none":"disc"},inputStyleInvalid:{border:"none",borderBottom:"2px solid #960F21",color:"#960F21",fontSize:r?"2rem":"4rem",marginLeft:"0.5rem",marginRight:"0.5rem"}},p=(0,s.useRef)(void 0);return e.error&&(p.current.textInput[0]&&p.current.textInput[0].focus(),p.current.state.input[0]="",p.current.state.input[1]="",p.current.state.input[2]="",p.current.state.input[3]="",p.current.state.input[4]="",p.current.state.input[5]=""),(0,n.jsxs)("div",{className:"sprout-text-center",children:[!e.isOtp&&(0,n.jsx)("p",{className:"bold mb-4",children:"Enter your PIN below"}),(0,n.jsx)(o(),l({ref:p,type:"number",fields:6,name:"pin",inputMode:"numeric",onChange:function(t){return e.onPinChanged(t)},value:e.error?"":e.pin},c,{className:e.className})),e.needRevealButton?(0,n.jsx)("div",{className:"col-12-md text-center mt-2",children:(0,n.jsx)(u.Z,{linkLabel:r?"Hide PIN":"Reveal PIN",isRedirectLink:!1,clickToOpen:function(){return i(!r)},class:"row justify-center mt-3",prefixLogo:(0,n.jsx)(a.Rbo,{})})}):null]})}},64788:function(e,t,r){"use strict";var n=r(85893),s=(r(67294),r(41664));t.Z=function(e){return e.isRedirectLink?(0,n.jsx)(s.default,{href:e.url,passHref:!0,children:(0,n.jsx)("a",{target:e.openInNewTab?"_blank":"_self",className:e.disabled?"inline-link-disabled ".concat(e.class):"inline-link ".concat(e.class),rel:"noreferrer",children:e.linkLabel})}):(0,n.jsxs)("a",{className:e.disabled?"inline-link-disabled ".concat(e.class):"inline-link ".concat(e.class),onClick:e.clickToOpen,children:[e.prefixLogo?(0,n.jsx)("div",{className:"mr-1 text-lg",children:e.prefixLogo}):"",e.linkLabel]})}},19600:function(e,t,r){"use strict";var n=r(85893),s=(r(67294),r(74650)),i=r(15545);t.Z=function(e){var t=e.children,r=e.pageTitle,o=e.pageDesription,a=e.pageDesription2,u=e.needHeader,c=e.pageStyle;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{}),(0,n.jsxs)("div",{className:"white sprout-text-sm sprout-flex sprout-flex-col lg:sprout-flex-row sprout-min-h-screen",children:[u?(0,n.jsx)(i.Z,{}):null,(0,n.jsxs)("div",{className:"sprout-bg-secondary sprout-text-white sprout-text-sm lg:sprout-pt-9 lg:sprout-pl-5 lg:sprout-text-base lg:sprout-max-w-[280px]",style:c,children:[(0,n.jsx)("div",{className:"mb-3 sprout-w-[70px] sprout-h-[28px] lg:sprout-w-[149px] lg:sprout-h-[60px]",children:(0,n.jsx)("img",{src:"/assets/svgs/grof-logo.svg",width:"auto",height:"auto",alt:"vector",className:"pt-3 pl-3"})}),(0,n.jsx)("p",{className:"bold pl-3 pt-2 sprout-text-base lg:sprout-text-2xl lg:sprout-p-5",children:r}),(0,n.jsx)("p",{className:"mt-1 mr-3 pl-3 lg:sprout-p-5",children:o}),(0,n.jsx)("p",{className:"mt-1 mr-3 pl-3 pb-4 lg:sprout-p-5",children:a})]}),(0,n.jsx)("div",{className:"sprout-text-sm sprout-w-full sprout-grid-cols-6 md:sprout-grid lg:sprout-py-10 lg:sprout-text-base",children:(0,n.jsx)("div",{className:"sprout-p-3 md:sprout-col-start-2 md:sprout-col-span-4 sprout-h-full",children:t})})]})]})}},23817:function(e,t,r){"use strict";r.r(t);var n=r(35666),s=r.n(n),i=r(85893),o=r(67294),a=r(19982),u=r(2418),c=r.n(u),l=r(11163),p=r(53854),d=r(64753),f=r(81526),m=r(19600),x=r(34841);function h(e,t,r,n,s,i,o){try{var a=e[i](o),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,s)}t.default=function(){var e,t=(0,l.useRouter)(),r=(0,o.useRef)(f.q.getState()).current.setGlobalSnackbar,n=(0,x.Z)().updateUserProfile,u=(0,o.useState)(""),g=u[0],v=u[1],b=(0,o.useState)(""),w=b[0],j=b[1],N=(0,o.useState)(!1),y=N[0],k=N[1],P=(e=s().mark((function e(){var i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!y||g!==w&&y&&(r("PIN doesn't match!","error"),1)?y||k(!0):(i={pin:c().hashSync(w,12)}
1,n(i).then((function(e){"OK"===e.status&&t.push({pathname:"/login/pin-successfully-changed",query:t.query})})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function o(e){h(i,n,s,o,a,"next",e)}function a(e){h(i,n,s,o,a,"throw",e)}o(void 0)}))});return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(m.Z,{needHeader:!1,pageTitle:"Reset PIN",pageDesription:"Please enter your new PIN to use Grof.",children:[(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"mt-1 font-lg",children:(0,i.jsx)(p.jTe,{className:"cursor",onClick:function(){y?(k(!1),v("")):t.back()}})}),(0,i.jsx)("p",{className:"mt-1 ml-1 mb-4 bold",children:y?"PIN Confirmation":"Setup New PIN"})]}),(0,i.jsxs)("p",{className:"mb-4",children:["Please ",y?"re-enter":"enter"," your new 6 digit PIN below."]}),(0,i.jsx)("div",{className:"md:sprout-p-5 sprout-mb-3 md:sprout-border-2 md:sprout-border-gray md:sprout-rounded-2xl",children:(0,i.jsxs)("div",{className:"col-12-md",children:[!y&&(0,i.jsx)(d.Z,{onPinChanged:function(e){v(e)},pin:g,pinLength:6,needRevealButton:!0,error:!1}),y&&(0,i.jsx)(d.Z,{onPinChanged:function(e){j(e)},pin:w,pinLength:6,needRevealButton:!0,error:!1})]})}),(0,i.jsx)(a.iR,{onClick:P,className:"primary mt-4 sprout-w-full",disabled:y?w.length<6:g.length<6,children:"Confirm"})]})})}},34841:function(e,t,r){"use strict";var n=r(35666),s=r.n(n),i=r(92518);function o(e,t,r,n,s,i,o){try{var a=e[i](o),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,s)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function a(e){o(i,n,s,a,u,"next",e)}function u(e){o(i,n,s,a,u,"throw",e)}a(void 0)}))}}t.Z=function(){var e=(0,i.Z)(),t=a(s().mark((function t(){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get("/auth/users/self");case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),r=a(s().mark((function t(r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.put("/auth/users/self",r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),n=a(s().mark((function t(r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/sign-out",r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return{getUserProfile:t,updateUserProfile:r,sendVerificationEmail:a(s().mark((function t(){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/verify-your-email");case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),verifyEmailAddress:a(s().mark((function t(r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get("/auth/users/verify-email/".concat(r));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),signOut:n}}}},function(e){e.O(0,[4885,8166,6556,9250,6962,4201,7933,8029,3735,1302,5545,9774,2888,179],(function(){return t=72832,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.