1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{29810:function(n,e,t){"use strict";var o,r=t(67294);function i(){return i=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)({}).hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},i.apply(null,arguments)}e.Z=function(n){return r.createElement("svg",i({viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o||(o=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"})))}},48095:function(n,e,t){"use strict";var o,r=t(67294);function i(){return i=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)({}).hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},i.apply(null,arguments)}e.Z=function(n){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o||(o=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.535 5.5H11c-.939 0-1.618 0-2.155.037-.532.036-.888.107-1.184.23A3.5 3.5 0 0 0 5.766 7.66a3.159 3.159 0 0 0-.203.884 3.5 3.5 0 0 1 0 6.91c.04.373.105.647.203.884a3.5 3.5 0 0 0 1.895 1.895c.296.122.652.193 1.184.23.537.036 1.216.036 2.155.036h4.535a3.501 3.501 0 1 1 0 1h-4.554c-.916 0-1.629 0-2.204-.04-.583-.039-1.06-.12-1.5-.303a4.5 4.5 0 0 1-2.434-2.435c-.156-.374-.238-.777-.283-1.25a3.5 3.5 0 0 1 0-6.945c.045-.472.127-.875.283-1.25a4.5 4.5 0 0 1 2.435-2.434c.439-.182.916-.264 1.5-.304.574-.039 1.287-.039 2.203-.039h4.554a3.5 3.5 0 1 1 0 1Z",fill:"#DCD8E4"})))}},46501:function(n,e,t){"use strict";var o,r=t(67294);function i(){return i=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)({}).hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},i.apply(null,arguments)}e.Z=function(n){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o||(o=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18v-5.571c.607.406 1.426.535 2.334.513a3.317 3.317 0 0 0 2.236-.869 3.305 3.305 0 0 0 2.24.869h.379c.864 0 1.651-.33 2.24-.869.59.54 1.38.869 2.243.869.903 0 1.721-.135 2.328-.54V18a2 2 0 0 1-2 2h-3v-3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H7a2 2 0 0 1-2-2ZM5.398 5.354A.598.598 0 0 1 5.955 5h12.09c.247 0 .468.14.557.353l1.194 2.864C20.558 10.043 19.09 12 16.983 12a3.129 3.129 0 0 1-1.956-.674.715.715 0 0 0-.873 0A3.114 3.114 0 0 1 12.2 12h-.405a3.114 3.114 0 0 1-1.952-.673.715.715 0 0 0-.873-.001c-.525.42-1.21.674-1.956.674-2.104 0-3.572-1.956-2.811-3.781l1.194-2.865Z",fill:"#DCD8E4"})))}},73700:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(2941)}])},74978:function(n,e,t){"use strict";var o=t(85893),r=t(94184),i=t.n(r),a=t(54318),s=t(14753),c=t.n(s);e.Z=function(n){var e=n.variant,t=void 0===e?"corner":e,r=n.className;return(0,o.jsx)("div",{className:i()(c().brandmark,c()[t],r),children:(0,o.jsx)(a.Z,{className:c().lockup,role:"img","aria-label":"Violet"})})}},45379:function(n,e,t){"use strict";var o=t(67573),r=t(14251),i=t(52875),a=t(44747),s=t(85893),c=t(15581),l=t(77745),u=t(95398),d=t(76779),g=t(94810),h=t(11498),f=t(67820),_=t(50044),p=t(97105),m=t.n(p);e.Z=function(n){var e=n.header,t=n.content,p=n.actions,v=n.onClose,x=n.cx,w=n.hideCloseIcon,E=void 0!==w&&w,b=n.headerPosition,j=void 0===b?"center":b,P=(0,a.Z)(n,["header","content","actions","onClose","cx","hideCloseIcon","headerPosition"]);return(0,s.jsx)(g.Z,{injectFirst:!0,children:(0,s.jsxs)(_.Z,(0,i.Z)((0,r.Z)({as:c.Z,cx:[m().dialog,x],onClose:v},P),{children:[!E&&(0,s.jsxs)(h.Z,{wrap:!1,justify:"end",align:"center",cx:[m().dialogCloseAction,(0,o.Z)({},m().inlineHeader,"inline"===j)],children:[e&&"inline"===j&&(0,s.jsx)("span",{className:m().inlineHeader,children:e}),(0,s.jsx)(f.Z,{className:m().dialog__closeIcon,onClick:v})]}),e&&"center"===j&&(0,s.jsx)(l.Z,{children:e}),t&&(0,s.jsx)(u.Z,{children:t}),p&&(0,s.jsx)(d.Z,{children:p})]}))})}},15753:function(n,e,t){"use strict";var o=t(85893),r=t(10536),i=t(9971),a=t(77378),s=t(49619),c=t(11498),l=t(29810),u=t(23074),d=t(4164),g=t(96638),h=t.n(g);e.Z=function(n){var e=n.open,t=void 0!==e&&e,g=n.type,f=n.closeAction,_=window.location,p=_.host,m=_.protocol;return(0,o.jsx)(s.Z,{cx:[h().loginMismatchDialog],fullWidth:!0,open:t,onClose:f,hideCloseIcon:!0,header:(0,o.jsx)(c.Z,{align:"center",direction:"column",cx:[h().loginMismatchDialog__box],children:(0,o.jsx)(l.Z,{className:h().logo})}
1),content:(0,o.jsxs)(c.Z,{"data-testid":"login-mismatch-dialog",align:"center",direction:"column",cx:[h().loginMismatchDialog__box],children:[(0,o.jsx)(a.X6,{as:"h2",size:"2xl",color:"inherit",className:h().dialogTitle,children:"".concat(g===i.F.DEVELOPER?"Channel":"Merchant"," Email Detected")}),(0,o.jsx)(a.xv,{size:"sm",color:"inherit",children:"It looks like the email entered is already registered for ".concat(g===i.F.DEVELOPER?"channel":"merchant","\n use.")})]}),actions:(0,o.jsxs)(c.Z,{wrap:!1,style:{padding:0},justify:"end",children:[(0,o.jsx)(c.Z,{width:"half",children:(0,o.jsx)(u.Z,{href:"".concat((0,d.Vx)(p,m,g===i.F.DEVELOPER?r.P.CHANNEL:r.P.MERCHANT),"/login"),children:"Go to ".concat(g===i.F.DEVELOPER?"Channel":"Merchant"," Login")})}),(0,o.jsx)(c.Z,{width:"half",children:(0,o.jsx)(u.Z,{cx:[h().actions__cancel],onClick:f,variant:"secondary",children:"Stay Here"})})]})})}},49619:function(n,e,t){"use strict";t.d(e,{Z:function(){return o.Z}});var o=t(45379)},44026:function(n,e,t){"use strict";t.d(e,{M:function(){return p}});var o=t(14251),r=t(52875),i=t(44747),a=t(85893),s=t(67294),c=t(11163),l=t(83415),u=t(49934),d=t(84443),g=t(94522),h=t(38530),f=t(59891),_=function(n){var e=n.children,t=(0,i.Z)(n,["children"]),r=(0,c.useRouter)(),_=(0,g.TL)(),p=(0,u.Z)(),m=p.stage,v=p.removeStageCookie;return(0,s.useEffect)((function(){try{window.plugSDK.shutdown()}catch(n){}}),[]),(0,s.useEffect)((function(){(0,f.AS)(),_((0,h.Jo)())}),[_]),(0,s.useEffect)((function(){m&&v()}),[m,v]),(0,s.useEffect)((function(){var n=_((0,d.cd)());return n.unwrap().then((function(){return r.replace("/overview")})),function(){null===n||void 0===n||n.abort()}}),[_,r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Z,(0,o.Z)({},t)),e]})},p=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){return(0,a.jsx)(_,(0,r.Z)((0,o.Z)({title:"Violet",description:"Violet Dashboard",icon:"favicon.ico"},n),{children:e}))}}},72368:function(n,e,t){"use strict";var o=t(85893),r=t(8124),i=t(71410),a=t.n(i);e.Z=function(){return(0,o.jsxs)("div",{className:a().termsAndPrivacy,children:[(0,o.jsx)("a",{className:a().link,href:r.sK,target:"_blank",rel:"noreferrer",children:"Terms"}),(0,o.jsx)("a",{className:a().link,href:r.Db,target:"_blank",rel:"noreferrer",children:"Privacy"})]})}},82264:function(n,e,t){"use strict";t.d(e,{Z:function(){return a}});var o=t(85893),r=t(41664),i=t.n(r),a=function(n){var e=n.href,t=n.disabled,r=void 0!==t&&t,a=n.children;return r?(0,o.jsx)("div",{children:a}):(0,o.jsx)(i(),{href:e,children:a})}},8124:function(n,e,t){"use strict";t.d(e,{DF:function(){return p},Db:function(){return a},Jw:function(){return c},KD:function(){return f},RB:function(){return d},Sy:function(){return l},eA:function(){return v},h5:function(){return m},h6:function(){return u},ig:function(){return x},jb:function(){return g},oF:function(){return _},qk:function(){return s},sK:function(){return i},tk:function(){return w},x7:function(){return h}});var o=t(81540),r=t(48764).Buffer,i="https://violet.io/terms",a="https://violet.io/privacy-policy",s="https://docs.violet.io",c="https://merchant-help.violet.io",l="https://docs.violet.io/prism/violet-connect/guides/violet-connect-for-channels",u="https://docs.violet.io/prism/reporting/distributions",d="https://docs.violet.io/prism/reporting/distributions/columns",g="https://docs.violet.io/prism/reporting/payouts",h="https://docs.violet.io/prism/reporting/payouts/columns",f="https://docs.violet.io/prism/merchants/configuration/inventory-location-filters",_="https://docs.violet.io/prism/reporting/commission-rate-change-log",p="https://docs.violet.io/prism/reporting/commission-rate-change-log/columns",m="https://docs.violet.io/prism/reporting/connected-merchants";function v(n,e){if(n)return e===o.H.SANDBOX?"https://dashboard.stripe.com/test/connect/transfers/".concat(n):"https://dashboard.stripe.com/connect/transfers/".concat(n)}function x(n){return n===o.H.SANDBOX?"https://connect.violet.dev":"https://connect.violet.io"}function w(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.H.LIVE,i=x(t),a=r.from(JSON.stringify(e)).toString("base64");return"".concat(i,"/").concat(n,"/platforms/shopify/connect?preregistration=").concat(a)}},2941:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return T}});var o=t(34727),r=t(34051),i=t.n(r),a=t(85893),s=t(11163),c=t(67294),l=t(9971),u=t(94184),d=t.n(u),g=t(77378),h=t(94522),f=t(52702),_=t(87536),p=t(50589),m=t(23074),v=t(96035),x=t.n(v),w=function(n){var e=n.onSubmit,t=n.withPassword,o=void 0===t||t,r=n.loading,i=void 0!==r&&r,s=(0,_.cI)({defaultValues:{email:"",password:""}}),c=s.control,l=s.handleSubmit,u=s.formState,d=u.errors,g=u.isSubmitting,h=s.reset;return(0,a.jsxs)("form",{className:x().loginForm,onSubmit:l((function(n){return e(n,h)})),children:[(0,a.jsx)(_.Qr,{name:"email",control:c,rules:{required:"Please enter your email."},render:function(n){var e=n.field.onChange;return(0,a.jsx)(p.ZP,{"data-testid":"email-input",label:"Email Address",type:"email",required:!0,onChange:e,helperText:d.email&&d.email.message,errors:Boolean(d.email),cx:[x().loginInput]})}}),o&&(0,a.jsx)(_.Qr,{name:"password",control:c,rules:{required:"Please enter your password."},render:function(n){var e=n.field.onChange;return(0,a.jsx)(p.ro,{"data-testid":"password-input",label:"Password",required:!0,onChange:e,helperText:d.password&&d.password.message,errors:Boolean(d.password),cx:[x().loginInput]})}}),(0,a.jsx)("div",{className:x().loginButton,children:(0,a.jsx)(m.Z,{"data-testid":"login-button",type:"submit",width:"compact",loading:g||i,cx:[x().nextButton],children:"Next"})})]})},E=t(82264),b=t(48095),j=t(46501),P=t(72368),Z=t(74978),C=t(11055),k=t(84443),y=t(44026),D=t(49934),R=t(4164),B=t(59891),L=t(15753),N=t(61407),S=t(79962),F=t(9462),A=t.n(F),O=function(){var n=(0,s.useRouter)(),e=(0,h.TL)(),t=(0,R.h0)(),r=(0,D.Z)().removeStageCookie,u=(0,c.useState)(!1),_=u[0],p=u[1],m=(0,c.useState)(t),v=m[0],x=m[1],y=(0,c.useState)(!1),F=y[0],O=y[1],T=function(){var n=(0,o.Z)(i().mark((function n(t){var o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e((0,k.vS)({email:t})).unwrap();case 3:return o=n.sent,n.abrupt("return",o);case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e){return n.apply(this,arguments)}}(),V=function(){var t=(0,o.Z)(i().mark((function t(o,r){var a,s,c,u,d;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,O(!0),t.next=4,(0,B.ZP)(B.Um.VIOLET_PROXY_API,{method:"GET",path:"api/users/email/".concat(o.email)});case 4:if(t.sent.data!==l.F.DEVELOPER){t.next=9;break}x(l.F.DEVELOPER),p(!0),r(o),t.next=12;break;case 9:return t.next=11,T(o.email);case 11:n.push("/merchant-verify?email=".concat(encodeURIComponent(o.email)));case 12:t.next=22;break;case 14:if(t.prev=14,t.t0=t.catch(0),(null===t.t0||void 0===t.t0||null===(a=t.t0.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.error)!==N.$C&&404!==(null===t.t0||void 0===t.t0||null===(c=t.t0.response)||void 0===c?void 0:c.status)){t.next=20;break}return n.push("/merchant-confirm-account?email=".concat(encodeURIComponent(o.email))),t.abrupt("return");case 20:d=429===(null===t.t0||void 0===t.t0||null===(u=t.t0.response)||void 0===u?void 0:u.status),e((0,C.Wp)({ok:!1,message:d?"Too many attempts. Please wait a few minutes and try again.":"Something went wrong. Please try again."}));case 22:return t.prev=22,O(!1),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[0,14,22,25]])})));return function(n,e){return t.apply(this,arguments)}}(),I=function(){var a=(0,o.Z)(i().mark((function o(a,s){var c;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t!==l.F.DEVELOPER){o.next=33;break}return o.prev=1,o.next=4,(0,B.ZP)(B.Um.VIOLET_PROXY_API,{method:"GET",path:"api/users/email/".concat(a.email)});case 4:if(o.sent.data!==l.F.MERCHANT){o.next=9;break}x(l.F.MERCHANT),p(!0),o.next=22;break;case 9:return o.next=11,e((0,k.x4)(a)).unwrap();case 11:if((c=o.sent).verified){o.next=15;break}return o.next=15,e((0,k.QJ)({email:a.email}));case 15:return o.next=17,e((0,S.qL)({updateCache:!0})).unwrap();case 17:if(!o.sent.orgInvites.length){o.next=21;break}return n.push("/user-org-invites"),o.abrupt("return");case 21:c.verified?n.push("/overview"):n.push("/verify");case 22:o.next=27;break;case 24:o.prev=24,o.t0=o.catch(1),o.t0.response.data.error===N.$C&&e((0,C.Wp)({ok:!1,message:"Invalid username or password."}));case 27:return o.prev=27,s(a),r(),o.finish(27);case 31:o.next=34;break;case 33:V(a,s);case 34:case"end":return o.stop()}}),o,null,[[1,24,27,31]])})));return function(n,e){return a.apply(this,arguments)}}();return(0,a.jsxs)(f.Z,{width:"bleed",cx:[A().fullHeightContainer],children:[(0,a.jsx)(L.Z,{type:v,open:_,closeAction:function(){p(!1)}}),(0,a.jsxs)("div",{className:d()(A().fullHeight,A().shadow,A().loginBox),children:[(0,a.jsx)(Z.Z,{}),(0,a.jsxs)(f.Z,{cx:[A().loginContainer],children:[(0,a.jsxs)("div",{className:A().loginTextBox,children:[(0,a.jsxs)(g.X6,{as:"h2",size:"3xl",color:"inherit",className:A().loginTextSubhead,children:[t===l.F.DEVELOPER?(0,a.jsx)(b.Z,{className:A().loginIcon}):(0,a.jsx)(j.Z,{className:A().loginIcon}),"Log In"]}
1),t===l.F.DEVELOPER&&(0,a.jsxs)("div",{className:A().signupSubheader,children:["Don't have an Account? ",(0,a.jsx)("span",{className:A().signupLink,children:(0,a.jsx)(E.Z,{href:"/signup",children:"Sign Up"})})]})]}),(0,a.jsxs)("div",{className:A().inputsBox,children:[(0,a.jsx)(w,{onSubmit:I,withPassword:t===l.F.DEVELOPER,loading:F}),t===l.F.DEVELOPER&&(0,a.jsx)("div",{className:A().forgotPasswordLink,children:(0,a.jsx)(E.Z,{href:"/forgot-password",children:"Forgot Password?"})})]})]}),(0,a.jsx)(P.Z,{})]}),(0,a.jsx)("div",{className:t===l.F.MERCHANT?A().merchantBrandPanel:A().brandPanel})]})};O.getLayout=(0,y.M)();var T=O},14753:function(n){n.exports={brandmark:"AuthBrandmark_brandmark__hO5cV",lockup:"AuthBrandmark_lockup__e2ZSM",corner:"AuthBrandmark_corner__aksKx",inline:"AuthBrandmark_inline__bWNJV"}},97105:function(n){n.exports={dialog:"Dialog_dialog__lt_FU",dialog__closeIcon:"Dialog_dialog__closeIcon__EFVfG",inlineHeader:"Dialog_inlineHeader__hj0XH",dialogCloseAction:"Dialog_dialogCloseAction__tKgUR"}},96638:function(n){n.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"}},96035:function(n){n.exports={loginForm:"Login_loginForm__X2wyL",loginInput
1:"Login_loginInput__JWmiH",loginButton:"Login_loginButton__YOj0r",nextButton:"Login_nextButton__Dzf46"}},71410:function(n){n.exports={termsAndPrivacy:"TermsAndPrivacy_termsAndPrivacy__2DL6p",link:"TermsAndPrivacy_link__ciED_"}},9462:function(n){n.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(n){n.O(0,[281,3714,6585,6750,842,1664,5225,168,9774,2888,179],(function(){return e=73700,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.