1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9355],{22245:(e,t,i)=>{i.d(t,{IF:()=>c,Pd:()=>x,Ww:()=>d,Zp:()=>l,hE:()=>a,k3:()=>r,mO:()=>p,p:()=>s,yB:()=>h});var o=i(92517),n=i(44264);let l=n.Ay.div.withConfig({componentId:"sc-649794d4-0"})(["background:#fff7d0;padding:12px 16px 12px 16px;border-radius:8px;cursor:pointer;height:100%;display:flex;@media only screen and (min-width:","){padding:16px 24px;}border:2px solid ",";margin:0 16px;border-radius:8px;@media only screen and (min-width:","){margin:0;}"],o.A.breakpoints.tabletLandscape,o.A.colors.primary,o.A.breakpoints.tabletLandscape),a=n.Ay.span.withConfig({componentId:"sc-649794d4-1"})(["font-size:18px;font-weight:bold;@media only screen and (min-width:","){font-size:24px;}"],o.A.breakpoints.tabletLandscape),s=n.Ay.div.withConfig({componentId:"sc-649794d4-2"})(["transform:rotate(270deg);width:24px;height:24px;"]),r=n.Ay.div.withConfig({componentId:"sc-649794d4-3"})(["display:flex;align-items:center;justify-content:space-between;width:100%;"]),d=n.Ay.div.withConfig({componentId:"sc-649794d4-4"})(["@media only screen and (min-width:","){display:none;}"],o.A.breakpoints.tabletLandscape),c=n.Ay.div.withConfig({componentId:"sc-649794d4-5"})(["display:none;@media only screen and (min-width:","){display:block;}"],o.A.breakpoints.tabletLandscape),p=n.Ay.div.withConfig({componentId:"sc-649794d4-6"})(["display:flex;align-items:center;justify-content:space-between;width:100%;"]),h=n.Ay.div.withConfig({componentId:"sc-649794d4-7"})(["width:100%;"]),x=n.Ay.span.withConfig({componentId:"sc-649794d4-8"})(["display:block;font-weight:400;font-size:12px;@media only screen and (min-width:","){font-size:16px;}"],o.A.breakpoints.tabletPortrait)},29073:(e,t,i)=>{i.d(t,{P:()=>n,t:()=>o});let o="Phone is required",n="Not a valid phone number"},54821:(e,t,i)=>{i.d(t,{A:()=>n});var o=i(37876);let n=e=>{let{width:t="24",height:i="24",fill:n,style:l}=e;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:t,height:i,viewBox:"0 0 24 24",style:l,children:(0,o.jsx)("path",{d:"M16.7625 9.18004C16.9137 9.05075 17.1101 8.9868 17.3084 9.00227C17.5067 9.01775 17.6907 9.11137 17.82 9.26254C17.9493 9.41371 18.0133 9.61006 17.9978 9.80838C17.9823 10.0067 17.8887 10.1907 17.7375 10.32L12.4875 14.82C12.3517 14.9362 12.1788 15.0001 12 15.0001C11.8213 15.0001 11.6484 14.9362 11.5125 14.82L6.26254 10.32C6.11137 10.1907 6.01775 10.0067 6.00227 9.80838C5.9868 9.61006 6.05075 9.41371 6.18004 9.26254C6.30933 9.11137 6.49338 9.01775 6.6917 9.00227C6.89002 8.9868 7.08637 9.05075 7.23754 9.18004L12.0003 13.26L16.7625 9.18004Z",fill:n||"#3B3A43"})})}},74614:(e,t,i)=>{i.d(t,{A:()=>c});var o=i(37876),n=i(14232),l=i(44264),a=i(85323);let s="30px",r=l.Ay.div.withConfig({componentId:"sc-f1f701a4-0"})(["display:inline-block;position:relative;"]),d=l.Ay.div.withConfig({componentId:"sc-f1f701a4-1"})(["display:",";position:absolute;border-radius:",";left:50%;transform:translateX(-50%);padding:8px;color:",";background:",";font-size:",";line-height:1.2;z-index:999999;box-shadow:0 3px 6px #00000029;width:max-content;max-width:300px;&::before{content:' ';left:50%;border:solid transparent;height:0;width:0;position:absolute;pointer-events:none;border-width:",";margin-left:calc("," * -1);}"," "," "," "," @media only screen and (max-width:","){display:inline-block;left:0;width:max-content;max-width:90vw;height:fit-content;top:100%;white-space:pre-line;transform:translateX(0);&::before{left:15%;}","}"],e=>e.showOnlyOnMobile?"none":"inline-block",a.A.borderRadiusXS,a.A.colors.black,a.A.colors.yellowLight,a.A.fontSizeXS,"6px","6px",e=>"top"===e.direction&&(0,l.AH)(["top:calc("," * -1);&::before{top:100%;border-top-color:",";}"],s,a.A.colors.yellowLight),e=>"bottom"===e.direction&&(0,l.AH)(["bottom:calc("," * -1);&::before{bottom:100%;border-bottom-color:",";}"],s,a.A.colors.yellowLight),e=>"right"===e.direction&&(0,l.AH)(["left:calc(100% + ",");top:50%;transform:translateX(0) translateY(-50%);&::before{left:calc("," * -1);top:50%;transform:translateX(0) translateY(-50%);border-right-color:",";}"],s,"6px",a.A.colors.yellowLight),e=>
1"left"===e.direction&&(0,l.AH)(["left:auto;right:calc(100% + ",");top:50%;transform:translateX(0) translateY(-50%);&::before{left:auto;right:calc("," * -2);top:50%;transform:translateX(0) translateY(-50%);border-left-color:",";}"],s,"6px",a.A.colors.yellowLight),a.A.breakpoints.tabletLandscape,e=>"bottom-right"===e.direction&&(0,l.AH)(["bottom:calc("," * -1);left:-130px;max-width:180px;&::before{bottom:100%;left:145px;border-bottom-color:",";}"],s,a.A.colors.yellowLight)),c=e=>{let t,{children:i,direction:l="top",duration:a=400,label:s,showOnlyOnMobile:c=!1,className:p}=e,[h,x]=(0,n.useState)(!1),m=()=>{t=window.setTimeout(()=>{x(!0)},a)};return(0,o.jsxs)(r,{onMouseEnter:m,onMouseLeave:()=>{clearInterval(t),x(!1)},onClick:()=>m,children:[i,h&&(0,o.jsx)(d,{className:p,direction:l,showOnlyOnMobile:c,children:s})]})}},93292:(e,t,i)=>{i.d(t,{A:()=>ee});var o=i(37876),n=i(14232),l=i(22245),a=i(54821),s=i(66932);let r=()=>{let[e,t]=(0,n.useState)(!1);return{onCardClick:(0,n.useCallback)(()=>{t(!0)},[]),isOpenModal:e,setIsOpenModal:t}};var d=i(51615),c=function(e){return e.EMAIL_LOGIN="email_login",e.SOCIALS="socials",e.SOCIAL_SIGNUP="social-singup",e.VERIFY_ACCOUNT="verify-account",e}({});let p=()=>{let[e,t]=(0,n.useState)(null),[i,o]=(0,n.useState)("socials");return{modalContent:i,setModalContent:o,setUserInfo:t,userInfo:e}};var h=i(40213),x=i(39687),m=i(22447),u=i(905),f=i(60729),g=function(e){return e.FACEBOOK="facebook",e.GOOGLE="google",e.APPLE="apple",e}({});let b=e=>{let{setModalContent:t,setUserInfo:i,setShow:o,refetchOrder:l}=e,{addNotification:a}=(0,u.m)(),r=(0,n.useCallback)(()=>{t(c.EMAIL_LOGIN)},[t]);return{handleOnEmailButtonClick:r,handleSocialSignup:(0,n.useCallback)(e=>{i(e),t(c.SOCIAL_SIGNUP)},[t,i]),handleOnSocialSuccess:(0,n.useCallback)(()=>{var e;i(null),t(c.SOCIALS),o(!1);let n=null==(e=(0,s.PN)())?void 0:e.firstName;a({text:"Hello, ".concat(n,"!\nYouâve successfully signed in."),type:f.Dc.SUCCESS}),l()},[a,l,t,o,i])}};var w=i(44264),v=i(28074),C=i(92517),A=i(40393);let y=(0,w.Ay)(v.Ay).withConfig({componentId:"sc-6c0a30b0-0"})(["border:2px solid ",";box-shadow:2px 2px 6px 0px #a6abbdcc,-2px -2px 4px 0px #ffffffbf,4px 4px 8px 0px #a6abbd1a inset;padding:10px 24px;width:100%;border-radius:40px;height:48px;span{font-size:16px;font-weight:bold;width:calc(100% - 48px);margin:0 24px;}"],C.A.colors.primary),I=w.Ay.div.withConfig({componentId:"sc-6c0a30b0-1"})(["display:flex;position:absolute;height:100%;align-items:center;margin-left:24px;"]),j=w.Ay.div.withConfig({componentId:"sc-6c0a30b0-2"})(["position:relative;"]),L=(0,w.Ay)(A.A).withConfig({componentId:"sc-6c0a30b0-3"})(["width:100%;margin:0;margin-bottom:16px;border:2px solid ",";box-shadow:2px 2px 6px 0px #a6abbdcc,-2px -2px 4px 0px #ffffffbf,4px 4px 8px 0px #a6abbd1a inset;span{font-size:16px;width:100%;font-weight:bold;margin:0 24px;text-align:center;}"],C.A.colors.primary),S=()=>(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("g",{clipPath:"url(#clip0_1660_852)",children:(0,o.jsx)("path",{d:"M3.84714 17.8571C4.05053 17.9561 4.27381 18.0074 4.5 18.0071L19.5 18.0071C19.7262 18.0074 19.9495 17.9561 20.1529 17.8571L14.245 12.3L12.3164 13.8857C12.2269 13.9594 12.1145 13.9998 11.9986 13.9998C11.8826 13.9998 11.7702 13.9594 11.6807 13.8857L9.75214 12.2986L3.84714 17.8571ZM3.14286 17.15L3.15714 17.1357L8.97714 11.6579L3.18214 6.88571C3.16976 6.87524 3.15786 6.86429 3.14643 6.85286C3.05097 7.05516 3.00215 7.27631 3.00357 7.5L3.00357 16.51C3.00262 16.7323 3.05144 16.9519 3.14643 17.1529L3.14286 17.15ZM20.8571 17.15C20.9521 16.9491 21.0009 16.7294 21 16.5071L21 7.5C21.0014 7.27631 20.9526 7.05515 20.8571 6.85286C20.8457 6.86429 20.8338 6.87524 20.8214 6.88571L15.0264 11.6579L20.8429 17.1357L20.8571 17.15ZM20.1429 6.14286C19.9419 6.04803 19.7222 5.99922 19.5 6L4.5 6C4.27774 5.9991 4.0581 6.04791 3.85714 6.14286L12 12.85L20.1429 6.14286ZM4.5 5L19.5 5C20.163 5 20.7989 5.26339 21.2678 5.73223C21.7366 6.20107 22 6.83696 22 7.5L22 16.51C22 17.173 21.7366 17.8089 21.2678 18.2778C20.7989 18.7466 20.163 19.01 19.5 19.01L4.5 19.01C3.83696 19.01 3.20107 18.7466 2.73223 18.2778C2.26339 17.8089 2 17.173 2 16.51L2 7.5C2 6.83696 2.26339 6.20107 2.73223 5.73223C3.20107 5.26339 3.83696 5 4.5 5Z",fill:"#3B3A43"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_1660_852",children:(0,o.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]});var k=i(85353);let O=e=>{let{setModalContent:t,setShow:i,setUserInfo:n,refetchOrder:l}=e,{t:a}=(0,m.A)(),{handleOnEmailButtonClick:s,handleSocialSignup:r,handleOnSocialSuccess:d}=b({setModalContent:t,setUserInfo:n,setShow:i,refetchOrder:l});return(0,o.jsx)(h.A,{setShow:i,title:a("orderFlow.summaryPage.signInTitle"),maxWidth:"460px",children:(0,o.jsxs)(k.hr,{children:[(0,o.jsx)(x.A,{}),(0,o.jsx)(L,{socialType:g.GOOGLE,isCheckout:!0,setUserInfo:r,onSuccess:d,children:(0,o.jsx)("span",{children:a("sign
1In.continueWithGoogle")})}),(0,o.jsx)(L,{socialType:g.FACEBOOK,isCheckout:!0,setUserInfo:r,onSuccess:d,children:a("signIn.continueWithFacebook")}),(0,o.jsx)(L,{socialType:g.APPLE,isCheckout:!0,setUserInfo:r,onSuccess:d,children:a("signIn.continueWithApple")}),(0,o.jsxs)(j,{children:[(0,o.jsx)(I,{children:(0,o.jsx)(S,{})}),(0,o.jsx)(y,{onClick:s,blank:!0,children:a("signIn.continueWithEmail")})]})]})})};var N=i(1766),P=i(99630);let M=w.Ay.span.withConfig({componentId:"sc-d30e62ff-0"})(["font-size:16px;text-align:center;display:block;width:100%;color:#303033;margin-bottom:16px;"]);(0,w.Ay)(P.A).withConfig({componentId:"sc-d30e62ff-1"})(["input{padding-left:24px !important;}"]);var E=i(8532),_=i.n(E),F=i(88992),U=i(26219),G=i(65356),q=i(58332),B=i(9114),z=i(29073),V=i(78831),R=i(58602),T=i(32452),Y=i(98604),W=i(8706),X=i(43264),Z=i(9099),H=i(25859),K=i(94666);let Q=e=>{let{setModalContent:t,setUserInfo:i,userInfo:o,setShow:l,setErrorMessage:a,setIsReactionModalOpen:r}=e,[d,p]=(0,n.useState)(!1),h=(0,B.A)(),{addNotification:x}=(0,u.m)();return{isLoading:d,handleOnSubmit:(0,n.useCallback)(async e=>{var n;let d={...e,email:o.email||e.email,phone:null==(n=(0,R.L)(e.phone,h))?void 0:n.number,socialProvider:o.socialProvider,socialId:o.socialId,dateOfBirth:o.birthday&&(0,Y.f)((0,T.Nq)(o.birthday))?(0,W.GP)((0,T.Nq)(o.birthday),K.fh):void 0,isSocial:!0,brazeSMSActive:!1,isVerificationNeeded:!o.email};try{p(!0),await X.A.post(Z.A.SIGN_UP,d),o.email?(0,H.l3)({email:o.email,socialId:o.socialId,socialProvider:o.socialProvider}).then(async e=>{if(null==e?void 0:e.jwt_token){var n;await (0,H.f7)({response:null==e?void 0:e.jwt_token,loginRoute:o.socialProvider,countryCode:h,locale:"en-ca"});let a=(0,s.EL)();a&&await (0,H.YR)({orderId:a}),i(null),t(c.SOCIALS),l(!1);let r=null==(n=(0,s.PN)())?void 0:n.firstName;x({text:"Hello, ".concat(r,"!\nYouâve successfully signed in."),type:f.Dc.SUCCESS})}}):(i(t=>t?{...t,email:e.email}:null),t(c.VERIFY_ACCOUNT))}catch(e){a(e.message),r(!0)}finally{p(!1)}},[x,h,a,r,t,l,i,o])}},D=e=>{var t,i,n,l,a,s;let{userInfo:r,setShow:d,setModalContent:c,setUserInfo:p,setErrorMessage:x,setIsReactionModalOpen:u}=e,{register:f,formState:{errors:g},handleSubmit:b,control:w,setValue:C}=(0,F.mN)(),{handleOnSubmit:A,isLoading:y}=Q({setModalContent:c,setUserInfo:p,userInfo:r,setShow:d,setErrorMessage:x,setIsReactionModalOpen:u}),{t:I}=(0,m.A)(),j=(0,B.A)();return(0,o.jsx)(h.A,{setShow:d,title:I("signIn.justAFewMore"),maxWidth:"460px",children:(0,o.jsxs)(k.hr,{children:[(0,o.jsx)(M,{children:I("signIn.finishSocialLogin",{provider:_()(r.socialProvider)})}),(0,o.jsxs)("form",{onSubmit:b(A),style:{marginBottom:0},children:[(0,o.jsxs)(U.o,{children:[(0,o.jsx)(G.A,{type:"text",id:"firstName",placeholder:void 0,...f("firstName",{required:!0}),label:I("signIn.firstNameLabel"),defaultValue:r.firstName,value:void 0,onChange:void 0,isLoading:y,notValid:g.firstName,optional:!1,togglePassword:void 0}),(null==(t=g.firstName)?void 0:t.type)==="required"&&(0,o.jsx)(q.jQ,{children:I("guestCheckout.error.firstName")})]}),(0,o.jsxs)(U.o,{children:[(0,o.jsx)(G.A,{type:"text",id:"lastName",placeholder:void 0,...f("lastName",{required:!0}),label:I("signIn.lastNameLabel"),defaultValue:r.lastName,value:void 0,onChange:void 0,isLoading:y,notValid:g.lastName,optional:!1,togglePassword:void 0}),(null==(i=g.lastName)?void 0:i.type)==="required"&&(0,o.jsx)(q.jQ,{children:I("guestCheckout.error.lastName")})]}),(0,o.jsx)(U.o,{children:(0,o.jsx)(V.A,{id:"phone",name:"phone",label:I("signIn.phoneLabel"),isLoading:y,countryCode:j,control:w,setValue:C,hasError:!!g.phone,helperText:(null==(n=g.phone)?void 0:n.type)==="required"?z.t:(null==(l=g.phone)?void 0:l.type)==="validate"?z.P:null,rules:{required:!0,validate:e=>!!e}})}),(0,o.jsxs)(U.o,{children:[(0,o.jsx)(G.A,{type:"email",id:"email",placeholder:void 0,...f("email",{required:!0,pattern:/\S+@\S+\.\S+/}),label:I("signIn.emailLabel"),defaultValue:r.email,value:void 0,onChange:void 0,isLoading:y,notValid:g.email,optional:!1,togglePassword:void 0,disabled:!!r.email}),(null==(a=g.email)?void 0:a.type)==="required"&&(0,o.jsx)(q.jQ,{children:I("guestCheckout.error.email.required")}),(null==(s=g.email)?void 0:s.type)==="pattern"&&(0,o.jsx)(q.jQ,{children:I("contactInfoSchema.email.invalid")})]}),(0,o.jsx)(v.Ay,{disabled:y,style:{marginLeft:0},fullWidth:!0,type:"submit",className:void 0,blank:void 0,block:void 0,inverted:void 0,important:void 0,onBlur:void 0,onClick:void 0,onFocus:void 0,onKeyPress:void 0,tabIndex:void 0,children:I("sign
1In.signUp")})]})]})})};var J=i(95127);let $=e=>{let{setShow:t,setErrorMessage:i,setIsReactionModalOpen:l,refetchOrder:a}=e,{setModalContent:s,modalContent:r,setUserInfo:d,userInfo:h}=p();return(0,n.useMemo)(()=>{switch(r){case c.SOCIALS:return(0,o.jsx)(O,{setModalContent:s,setShow:t,setUserInfo:d,refetchOrder:a});case c.EMAIL_LOGIN:return(0,o.jsx)(N.A,{setShow:t,setErrorMessage:i,setIsReactionModalOpen:l,refetchOrder:a});case c.SOCIAL_SIGNUP:return h?(0,o.jsx)(D,{setModalContent:s,setShow:t,userInfo:h,setUserInfo:d,setErrorMessage:i,setIsReactionModalOpen:l}):null;case c.VERIFY_ACCOUNT:return h?(0,o.jsx)(J.A,{setShow:t,userInfo:h,setUserInfo:d,setErrorMessage:i,setIsReactionModalOpen:l,refetchOrder:a}):null;default:return null}},[r,a,i,l,s,t,d,h])},ee=e=>{var t;let{setErrorMessage:i,setIsReactionModalOpen:c,refetchOrder:p}=e,h=null==(t=(0,s.PN)())?void 0:t.customerId,{isOpenModal:x,onCardClick:u,setIsOpenModal:f}=r(),g=(0,B.A)(),b=(0,n.useMemo)(()=>"CA"===g,[g]),{t:w}=(0,m.A)();return(0,o.jsxs)(o.Fragment,{children:[h||b?null:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(l.Zp,{role:"button",onClick:u,onKeyDown:e=>{(" "==e.key||"Space"==e.code)&&u()},tabIndex:0,children:(0,o.jsxs)(l.mO,{children:[(0,o.jsxs)(l.yB,{children:[(0,o.jsxs)(l.k3,{children:[(0,o.jsx)(l.hE,{children:w("orderFlow.summaryPage.signInTitle")}),(0,o.jsx)(l.Ww,{children:(0,o.jsx)(l.p,{children:(0,o.jsx)(a.A,{})})})]}),(0,o.jsxs)(l.Pd,{children:[" ",w("orderFlow.summaryPage.signInSubtitle")]})]}),(0,o.jsx)(l.IF,{children:(0,o.jsx)(l.p,{children:(0,o.jsx)(a.A,{})})})]})})}),(0,o.jsx)(d.A,{isFullScreenOnMobile:!1,modalOnSmallScreen:!0,isOnBottom:!0,closeable:!1,setShow:f,show:x,padding:"0",children:(0,o.jsx)($,{setShow:f,setIsReactionModalOpen:c,setErrorMessage:i,refetchOrder:p})})]})}}}]);
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.