PageSourceSearch

https://channel.violet.io/_next/static/chunks/pages/forgot-password-f9004d5d6eb8fc7b.js

js violet.io collected 2026-09-28 06:05:19 UTC 11,309 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{29810:function(e,n,o){"use strict";var i,r=o(67294);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},t.apply(null,arguments)}n.Z=function(e){return r.createElement("svg",t({viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.127 3.227 1.26 13.7C.448 15.153.041 15.88.359 16.42c.317.54 1.149.54 2.813.54h11.731c1.664 0 2.495 0 2.813-.54.317-.542-.09-1.267-.902-2.719L10.948 3.227C10.102 1.717 9.679.96 9.038.96c-.642 0-1.065.755-1.911 2.266Zm1.94 3.131a.5.5 0 0 1 .5.5v3.964a.5.5 0 0 1-1 0V6.858a.5.5 0 0 1 .5-.5Zm-.449 7.03a.5.5 0 0 0 1 0v-.794a.5.5 0 0 0-1 0v.793Z",fill:"#FF5762"})))}},64923:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return o(61865)}])},74978:function(e,n,o){"use strict";var i=o(85893),r=o(94184),t=o.n(r),a=o(54318),s=o(14753),l=o.n(s);n.Z=function(e){var n=e.variant,o=void 0===n?"corner":n,r=e.className;return(0,i.jsx)("div",{className:t()(l().brandmark,l()[o],r),children:(0,i.jsx)(a.Z,{className:l().lockup,role:"img","aria-label":"Violet"})})}},45379:function(e,n,o){"use strict";var i=o(67573),r=o(14251),t=o(52875),a=o(44747),s=o(85893),l=o(15581),c=o(77745),d=o(95398),u=o(76779),_=o(94810),g=o(11498),h=o(67820),f=o(50044),x=o(97105),m=o.n(x);n.Z=function(e){var n=e.header,o=e.content,x=e.actions,p=e.onClose,w=e.cx,v=e.hideCloseIcon,j=void 0!==v&&v,P=e.headerPosition,b=void 0===P?"center":P,Z=(0,a.Z)(e,["header","content","actions","onClose","cx","hideCloseIcon","headerPosition"]);return(0,s.jsx)(_.Z,{injectFirst:!0,children:(0,s.jsxs)(f.Z,(0,t.Z)((0,r.Z)({as:l.Z,cx:[m().dialog,w],onClose:p},Z),{children:[!j&&(0,s.jsxs)(g.Z,{wrap:!1,justify:"end",align:"center",cx:[m().dialogCloseAction,(0,i.Z)({},m().inlineHeader,"inline"===b)],children:[n&&"inline"===b&&(0,s.jsx)("span",{className:m().inlineHeader,children:n}),(0,s.jsx)(h.Z,{className:m().dialog__closeIcon,onClick:p})]}),n&&"center"===b&&(0,s.jsx)(c.Z,{children:n}),o&&(0,s.jsx)(d.Z,{children:o}),x&&(0,s.jsx)(u.Z,{children:x})]}))})}},15753:function(e,n,o){"use strict";var i=o(85893),r=o(10536),t=o(9971),a=o(77378),s=o(49619),l=o(11498),c=o(29810),d=o(23074),u=o(4164),_=o(96638),g=o.n(_);n.Z=function(e){var n=e.open,o=void 0!==n&&n,_=e.type,h=e.closeAction,f=window.location,x=f.host,m=f.protocol;return(0,i.jsx)(s.Z,{cx:[g().loginMismatchDialog],fullWidth:!0,open:o,onClose:h,hideCloseIcon:!0,header:(0,i.jsx)(l.Z,{align:"center",direction:"column",cx:[g().loginMismatchDialog__box],children:(0,i.jsx)(c.Z,{className:g().logo})}),content:(0,i.jsxs)(l.Z,{"data-testid":"login-mismatch-dialog",align:"center",direction:"column",cx:[g().loginMismatchDialog__box],children:[(0,i.jsx)(a.X6,{as:"h2",size:"2xl",color:"inherit",className:g().dialogTitle,children:"".concat(_===t.F.DEVELOPER?"Channel":"Merchant"," Email Detected")}),(0,i.jsx)(a.xv,{size:"sm",color:"inherit",children:"It looks like the email entered is already registered for ".concat(_===t.F.DEVELOPER?"channel":"merchant","\n            use.")})]}),actions:(0,i.jsxs)(l.Z,{wrap:!1,style:{padding:0},justify:"end",children:[(0,i.jsx)(l.Z,{width:"half",children:(0,i.jsx)(d.Z,{href:"".concat((0,u.Vx)(x,m,_===t.F.DEVELOPER?r.P.CHANNEL:r.P.MERCHANT),"/login"),children:"Go to ".concat(_===t.F.DEVELOPER?"Channel":"Merchant"," Login")})}),(0,i.jsx)(l.Z,{width:"half",children:(0,i.jsx)(d.Z,{cx:[g().actions__cancel],onClick:h,variant:"secondary",children:"Stay Here"})})]})})}},49619:function(e,n,o){"use strict";o.d(n,{Z:function(){return i.Z}});var i=o(45379)},44026:function(e,n,o){"use strict";o.d(n,{M:function(){return x}});var i=o(14251),r=o(52875),t=o(44747),a=o(85893),s=o(67294),l=o(11163),c=o(83415),d=o(49934),u=o(84443),_=o(94522),g=o(38530),h=o(59891),f=function(e){var n=e.children,o=(0,t.Z)(e,["children"]),r=(0,l.useRouter)(),f=(0,_.TL)(),x=(0,d.Z)(),m=x.stage,p=x.removeStageCookie;return(0,s.useEffect)((function(){try{window.plugSDK.shutdown()}catch(e){}}),[]),(0,s.useEffect)((function(){(0,h.AS)(),f((0,g.Jo)())}),[f]),(0,s.useEffect)((function(){m&&p()}),[m,p]),(0,s.useEffect)((function(){var e=f((0,u.cd)());return e.unwrap().then((function(){return r.replace("/overview")})),function(){null===e||void 0===e||e.abort()}}),[f,r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,(0,i.Z)({},o)),n]})},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){return(0,a.jsx)(f,(0,r.Z)((0,i.Z)({title:"Violet",description:"Violet Dashboard",icon:"favicon.ico"},e),{children:n}))}}},61865:function(e,n,o){"use strict";o.r(n),o.d(n,{default:function(){return T}});var i=o(34727),r=o(14251),t=o(52875),a=o(34051),s=o.n(a),l=o(85893),c=o(67294),d=o(9971),u=o(94184),_=o.n(u),g=o(
177378),h=o(94522),f=o(84443),x=o(52702),m=o(87536),p=o(50589),w=o(23074),v=o(33291),j=o.n(v),P=function(e){var n=e.onSubmit,o=(0,m.cI)({defaultValues:{email:""}}),i=o.control,r=o.handleSubmit,t=o.formState,a=t.errors,s=t.isSubmitting;return(0,l.jsxs)("form",{className:j().forgotPasswordForm,onSubmit:r((function(e){return n(e)})),children:[(0,l.jsx)(m.Qr,{name:"email",control:i,rules:{required:"Please enter your email."},render:function(e){var n=e.field.onChange;return(0,l.jsx)(p.ZP,{label:"Email Address",cx:[j().input],required:!0,onChange:n,helperText:a.email&&a.email.message,errors:Boolean(a.email)})}}),(0,l.jsx)(w.Z,{type:"submit",width:"compact",cx:[j().button],loading:s,children:"Submit"})]})},b=o(44026),Z=o(59891),C=o(15753),E=o(4164),k=o(11055),y=o(74978),F=o(9462),S=o.n(F),N=function(){var e=(0,h.TL)(),n=(0,E.h0)(),o=(0,c.useState)(""),a=o[0],u=o[1],m=(0,c.useState)(!1),p=m[0],v=m[1],j=(0,c.useState)(!1),b=j[0],F=j[1],N=(0,c.useState)(n),T=N[0],D=N[1],R=function(){var n=(0,i.Z)(s().mark((function n(o){var i,a,l;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,Z.ZP)(Z.Um.VIOLET_PROXY_API,{method:"GET",path:"api/users/email/".concat(o.email)});case 3:if(n.sent.data!==d.F.MERCHANT){n.next=8;break}D(d.F.MERCHANT),F(!0),n.next=11;break;case 8:return n.next=10,e((0,f.gF)((0,t.Z)((0,r.Z)({},o),{newDashboard:!0}))).unwrap();case 10:u(o.email);case 11:n.next=19;break;case 13:n.prev=13,n.t0=n.catch(0),l="Request Failed",(null===n.t0||void 0===n.t0||null===(i=n.t0.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.message)?l=n.t0.response.data.message:(null===n.t0||void 0===n.t0?void 0:n.t0.message)&&(l=n.t0.message),e((0,k.Wp)({ok:!1,message:l}));case 19:case"end":return n.stop()}}),n,null,[[0,13]])})));return function(e){return n.apply(this,arguments)}}(),B=function(){var n=(0,i.Z)(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,v(!0),n.next=4,e((0,f.gF)({email:a,newDashboard:!0})).unwrap();case 4:return n.prev=4,v(!1),n.finish(4);case 7:case"end":return n.stop()}}),n,null,[[0,,4,7]])})));return function(){return n.apply(this,arguments)}}();return(0,l.jsxs)(x.Z,{cx:[S().fullHeightContainer],width:"bleed",children:[(0,l.jsx)(C.Z,{type:T,open:b,closeAction:function(){F(!1)}}),(0,l.jsxs)("div",{className:_()(S().fullHeight,S().shadow,S().forgotPassword),children:[(0,l.jsx)(y.Z,{}),a?(0,l.jsx)(x.Z,{style:{maxWidth:"calc(var(--max-width) / 2)"},children:(0,l.jsxs)("div",{className:S().requestedEmailContainer,children:[(0,l.jsx)(g.xv,{size:"lg",color:"inherit",children:"We sent an email to:"}),(0,l.jsx)(g.X6,{as:"h2",size:"3xl",weight:"bold",color:"inherit",className:S().requestedEmailHeading,children:a}),(0,l.jsx)(g.xv,{size:"lg",color:"inherit",children:"Check your inbox. Just two more clicks and you'll be back in your account."}),(0,l.jsx)("div",{className:S().receiveEmail,children:(0,l.jsx)(g.xv,{size:"sm",color:"inherit",children:"Didn't receive an email?"})}),(0,l.jsx)(w.Z,{width:"compact",onClick:B,loading:p,cx:[S().tryAgainButton],children:"Try again"})]})}):(0,l.jsxs)(x.Z,{cx:[S().forgotPasswordContainer],children:[(0,l.jsxs)("div",{className:S().forgotPasswordBox,children:[(0,l.jsx)(g.X6,{as:"h2",size:"3xl",color:"inherit",className:S().forgotPasswordSubhead,children:"Forgot Password"}),(0,l.jsx)(g.xv,{size:"lg",color:"inherit",className:S().resetText,children:"To reset your password, please enter your email."})]}),(0,l.jsx)(P,{onSubmit:R})]})]}),(0,l.jsx)("div",{className:n===d.F.MERCHANT?S().merchantBrandPanel:S().brandPanel})]})};N.getLayout=(0,b.M)();var T=N},14753:function(e){e.exports={brandmark:"AuthBrandmark_brandmark__hO5cV",lockup:"AuthBrandmark_lockup__e2ZSM",corner:"AuthBrandmark_corner__aksKx",inline:"AuthBrandmark_inline__bWNJV"}},97105:function(e){e.exports={dialog:"Dialog_dialog__lt_FU",dialog__closeIcon:"Dialog_dialog__closeIcon__EFVfG",inlineHeader:"Dialog_inlineHeader__hj0XH",dialogCloseAction:"Dialog_dialogCloseAction__tKgUR"}},96638:function(e){e.exports={loginMismatchDialog:"LoginMismatchDialog_loginMismatchDialog__M_nxf",loginMismatchDialog__box:"LoginMismatchDialog_loginMismatchDialog__box__N70qp",logo:"LoginMismatchDialog_logo__ouwEE",actions__cancel:"LoginMismatchDialog_actions__cancel__OmgDV",dialogTitle:"LoginMismatchDialog_dialogTitle__wEd8G"}},33291:function(e){e.exports={forgotPasswordForm:"ForgotPassword_forgotPasswordForm__nxHds",input:"ForgotPassword_
1input__xky8Z",button:"ForgotPassword_button__rFeTI"}},9462:function(e){e.exports={shadow:"login_shadow__Fnef1 signup_shadow__0Qbha",brandPanel:"login_brandPanel__9n2W5",merchantBrandPanel:"login_merchantBrandPanel__TSusu login_brandPanel__9n2W5",fullHeight:"login_fullHeight__kyFpK",halfScreenConstrained:"login_halfScreenConstrained__91JKI signup_halfScreenConstrained__tAyu7",fullHeightContainer:"login_fullHeightContainer__n8Epp",loginBox:"login_loginBox__iGF2i",loginContainer:"login_loginContainer__oZCLf",loginTextBox:"login_loginTextBox__oc5fk",loginTextSubhead:"login_loginTextSubhead__0Gtm3",loginIcon:"login_loginIcon__oTi2s",signupSubheader:"login_signupSubheader__JbFC_",signupLink:"login_signupLink__QMxTj",inputsBox:"login_inputsBox__H9XRn",forgotPasswordLink:"login_forgotPasswordLink__ugT3e",forgotPassword:"login_forgotPassword__hPjVj",requestedEmailContainer:"login_requestedEmailContainer__78BjC",requestedEmailHeading:"login_requestedEmailHeading__6bXW9",receiveEmail:"login_receiveEmail__cRpoQ",tryAgainButton:"login_tryAgainButton__g0E59",forgotPasswordContainer:"login_forgotPasswordContainer__80E_p",forgotPasswordBox:"login_forgotPasswordBox__KeSY3",forgotPasswordSubhead:"login_forgotPasswordSubhead__MdFIG",resetText:"login_resetText__zIFxj",forgotPasswordReset:"login_forgotPasswordReset__uQhhE",forgotPasswordResetContainer:"login_forgotPasswordResetContainer__h3H75",forgotPasswordResetBox:"login_forgotPasswordResetBox__KpGWz",forgotPasswordResetSubhead:"login_forgotPasswordResetSubhead__uCsn5",forgotPasswordResetForm:"login_forgotPasswordResetForm__0gXbp",merchantVerify:"login_merchantVerify__SihOn",merchantVerifyBox:"login_merchantVerifyBox__xUm7G",codeVerificationContainer:"login_codeVerificationContainer__M8Rvr"}}},function(e){e.O(0,[281,3714,6585,6750,842,5225,168,9774,2888,179],(function(){return n=64923,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.