1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="c0b9b72b-5b4e-4349-9cbb-1b30f225c60d",e._sentryDebugIdIdentifier="sentry-dbid-c0b9b72b-5b4e-4349-9cbb-1b30f225c60d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5785],{24739:function(e,s,a){Promise.resolve().then(a.bind(a,53505))},53505:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return y}});var t=a(64755),n=a(23936),r=a(97436),i=a(84463),o=a(24750),l=a(50392),d=a(63610),c=a(44767),u=a(17486),b=a(98162),m=a(95906),h=a(60511),g=a(12287),p=a(11287),v=a(59312),f=a(22474),x=a(50003);function y(){let e=(0,r.useRouter)(),[s,a]=(0,n.useState)("email"),[y,j]=(0,n.useState)(""),[C,N]=(0,n.useState)(300),[w,k]=(0,n.useState)(!1),S=(0,n.useRef)(null),I=(0,g.useToastStore)(e=>e.addToast),_=(0,n.useCallback)(()=>{S.current&&clearInterval(S.current),N(300),k(!1),S.current=setInterval(()=>{N(e=>e<=1?(k(!0),S.current&&clearInterval(S.current),0):e-1)},1e3)},[]);(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current)},[]);let E=(0,p.pi)({onSuccess:()=>{I("success","Verification code sent to your email"),a("otp"),j(""),_()},onError:e=>{var s,a;I("error",(null===(a=e.response)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.message)||"Failed to send verification code")}}),P=(0,p.Ge)({onSuccess:s=>{var a,t;I("success","Logged in successfully!"),0===(null!==(t=null===(a=s.data)||void 0===a?void 0:a.brandsCount)&&void 0!==t?t:0)?e.push(v.NW.setup()):e.push(v.sI.home())},onError:e=>{var s,a;I("error",(null===(a=e.response)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.message)||"Invalid or expired code"),j("")}}),V=(0,o.TA)({initialValues:{email:""},validationSchema:x.$R,onSubmit:e=>{E.mutate({email:e.email})}}),D=!!V.errors.email&&(V.values.email.trim()?V.touched.email:V.submitCount>0),L=async()=>{I("info","Google Login will be implemented soon")};return(0,t.jsxs)(u.g,{children:["email"===s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"text-3xl sm:text-4xl font-semibold text-brand-black mb-6 sm:mb-8",children:"Log In"}),(0,t.jsxs)("form",{onSubmit:V.handleSubmit,className:"space-y-6",children:[(0,t.jsxs)(b.z,{type:"button",variant:"outline",className:"w-full h-12 border-gray-200 hover:bg-gray-50 gap-3",onClick:L,children:[(0,t.jsx)(c._,{}),(0,t.jsx)("span",{className:"text-brand-black font-medium",children:"Continue with Google"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-200"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"bg-white px-4 text-gray-500 font-medium",children:"OR"})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Z,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}),(0,t.jsx)(m.I,{type:"email",name:"email",placeholder:"Email address",value:V.values.email,onChange:V.handleChange,onBlur:V.handleBlur,className:"pl-11 ".concat(D?"border-error focus-visible:ring-error":"")})]}),D&&(0,t.jsx)("p",{className:"text-sm text-error font-medium",children:V.errors.email})]}),(0,t.jsx)(b.z,{type:"submit",disabled:E.isPending,className:"w-full h-12 bg-brand-black text-white hover:opacity-90 font-semibold disabled:opacity-50",children:E.isPending?"Sending code...":"Continue"}),(0,t.jsxs)("p",{className:"text-sm text-brand-black",children:["Don't have an account?"," ",(0,t.jsx)(i.default,{href:f.I.signup(),className:"font-semibold hover:underline",children:"Sign Up"})]})]})]}),"otp"===s&&(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{a("email"),j(""),S.current&&clearInterval(S.current)},className:"flex items-center gap-2 text-sm font-medium text-brand-black hover:opacity-70",children:[(0,t.jsx)(d.Z,{className:"h-4 w-4"}),"Back"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-3xl sm:text-4xl font-semibold text-brand-black mb-2",children:"Verify Code"}),(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["We've sent a 6-digit code to"," ",(0,t.jsx)("span",{className:"font-medium text-brand-black",children:V.values.email})]})]}),(0,t.jsx)(h.v,{value:y,onChange:e=>
1{j(e),6===e.length&&P.mutate({email:V.values.email,otp:e})},disabled:P.isPending}),(0,t.jsx)("div",{className:"text-center",children:w?(0,t.jsx)("button",{type:"button",onClick:()=>{w&&E.mutate({email:V.values.email})},disabled:E.isPending,className:"text-sm font-medium text-brand-black hover:underline disabled:opacity-50",children:E.isPending?"Sending...":"Resend code"}):(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["Resend code in"," ",(0,t.jsx)("span",{className:"font-medium text-brand-black",children:"".concat(Math.floor(C/60).toString().padStart(2,"0"),":").concat((C%60).toString().padStart(2,"0"))})]})}),(0,t.jsx)(b.z,{type:"button",onClick:()=>P.mutate({email:V.values.email,otp:y}),disabled:6!==y.length||P.isPending,className:"w-full h-12 bg-brand-black text-white hover:opacity-90 font-semibold disabled:opacity-50",children:P.isPending?"Verifying...":"Verify"})]})]})}},44767:function(e,s,a){"use strict";a.d(s,{_:function(){return n}});var t=a(64755);function n(e){let{className:s}=e;return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M17.64 9.20443C17.64 8.56625 17.5827 7.95262 17.4764 7.36353H9V10.8449H13.8436C13.635 11.9699 13.0009 12.9231 12.0477 13.5613V15.8194H14.9564C16.6582 14.2526 17.64 11.9453 17.64 9.20443Z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M8.99976 18C11.4298 18 13.467 17.1941 14.9561 15.8195L12.0475 13.5613C11.2416 14.1013 10.2107 14.4204 8.99976 14.4204C6.65567 14.4204 4.67158 12.8372 3.96385 10.71H0.957031V13.0418C2.43794 15.9831 5.48158 18 8.99976 18Z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M3.96409 10.7098C3.78409 10.1698 3.68182 9.59301 3.68182 8.99983C3.68182 8.40664 3.78409 7.82983 3.96409 7.28983V4.95801H0.957273C0.347727 6.17301 0 7.54755 0 8.99983C0 10.4521 0.347727 11.8266 0.957273 13.0416L3.96409 10.7098Z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M8.99976 3.57955C10.3211 3.57955 11.5075 4.03364 12.4402 4.92545L15.0216 2.34409C13.4629 0.891818 11.4257 0 8.99976 0C5.48158 0 2.43794 2.01682 0.957031 4.95818L3.96385 7.29C4.67158 5.16273 6.65567 3.5795
15 8.99976 3.57955Z",fill:"#EA4335"})]})}},22474:function(e,s,a){"use strict";a.d(s,{I:function(){return t}});let t={login:()=>"/login",signup:()=>"/signup",confirmEmail:()=>"/confirm-email",forgotPassword:()=>"/forgot-password"}},39354:function(e,s,a){"use strict";a.d(s,{J:function(){return n},s:function(){return t}});let t={home:()=>"/dashboard",lookAndFeel:()=>"/dashboard/look-and-feel",liveExperience:()=>"/dashboard/live-experience",menuManager:()=>"/dashboard/menu-manager",restaurantSettings:()=>"/dashboard/restaurant-settings",restaurantSettingsCore:()=>"/dashboard/restaurant-settings/core",restaurantSettingsDelivery:()=>"/dashboard/restaurant-settings/delivery",restaurantSettingsOrdering:()=>"/dashboard/restaurant-settings/ordering",restaurantSettingsImport:()=>"/dashboard/restaurant-settings/import",knowledgeBase:()=>"/dashboard/knowledge-base",referrals:()=>"/dashboard/referrals",campaigns:()=>"/dashboard/campaigns",campaignDetail:e=>"/dashboard/campaigns/".concat(e),rewards:()=>"/dashboard/rewards",contacts:()=>"/dashboard/contacts",conversations:()=>"/dashboard/conversations",openQuestions:()=>"/dashboard/open-questions",publicLinks:()=>"/dashboard/public-links",analytics:()=>"/dashboard/analytics",widget:()=>"/dashboard/widget",integrations:()=>"/dashboard/integrations",settings:()=>"/dashboard/settings",billing:()=>"/dashboard/billing",messages:()=>"/dashboard/messages",supportRequests:()=>"/dashboard/support-requests",reservations:()=>"/dashboard/reservations",reservationsSchedule:()=>"/dashboard/reservations/schedule",reservationsSpecialDays:()=>"/dashboard/reservations/special-days",reservationsFloorPlan:()=>"/dashboard/reservations/floor-plan",reservationsInsights:()=>"/dashboard/reservations/insights",reservationsCombinations:()=>"/dashboard/reservations/combinations",reservationsWaitlist:()=>"/dashboard/reservations/waitlist",reservationsPrinters:()=>"/dashboard/reservations/printers",reservationsSettings:()=>"/dashboard/reservations/settings",voiceAi:()=>"/dashboard/voice-ai",email:()=>"/dashboard/email",aiSkills:()=>"/dashboard/ai-skills",team:()=>"/dashboard/team"},n={root:()=>"/account",profile:()=>"/account/profile",branding:()=>"/account/branding",apiKeys:()=>"/account/api-keys",partner:()=>"/account/partner",referrals:()=>"/account/referrals"}},59312:function(e,s,a){"use strict";a.d(s,{JT:function(){return t.J},sI:function(){return t.s},NW:function(){return n}}),a(22474);var t=a(39354);let n={setup:()=>"/onboarding/setup",personalize:e=>
1"/onboarding/personalize".concat(e?"?brand=".concat(encodeURIComponent(e)):"")}}},function(e){e.O(0,[9591,5509,9874,3965,9461,5137,233,3597,2493,8319,2137,6083,617,7486,4440,3803,1744],function(){return e(e.s=24739)}),_N_E=e.O()}]);
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.