1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{70659:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return t(81614)}])},88403:function(e,a,t){"use strict";t.d(a,{o:function(){return n}});var i=t(97458);t(52983);var r=t(14517),l=t(35031),s=t(15783);function n(e){let{children:a,variant:t="solid",primaryColor:n}=e,o=(0,r.Z)("border-t border-opacity-40",(0,l.M)("border",null!=n?n:s.bG.CulinistaBlack),{"border-dotted":"dotted"===t});return a?(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{className:(0,r.Z)("flex-grow",o)}),(0,i.jsx)("div",{className:"helvetica-10-500 mx-1.5 uppercase opacity-40",children:a}),(0,i.jsx)("div",{className:(0,r.Z)("flex-grow",o)})]}):(0,i.jsx)("hr",{className:o})}},18367:function(e,a,t){"use strict";t.d(a,{F:function(){return g}});var i,r,l,s,n=t(97458),o=t(52983),c=t(55462),d=t(35031),u=t(15783);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}var x=function(e){return o.createElement("svg",m({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=o.createElement("path",{d:"M15.84 8.191a10 10 0 0 0-.139-1.62H8.154v3.084h4.323a3.636 3.636 0 0 1-1.604 2.423l2.58 2.004c1.516-1.412 2.388-3.468 2.388-5.89Z",fill:"#4280EF"})),r||(r=o.createElement("path",{d:"M8.155 16c2.16 0 3.974-.715 5.298-1.935l-2.58-1.987c-.714.488-1.638.767-2.718.767-2.092 0-3.852-1.412-4.497-3.294l-2.65 2.039A7.992 7.992 0 0 0 8.156 16Z",fill:"#34A353"})),l||(l=o.createElement("path",{d:"M3.658 9.534a4.86 4.86 0 0 1 0-3.067L1.008 4.41a8.01 8.01 0 0 0 0 7.181l2.65-2.057Z",fill:"#F6B704"})),s||(s=o.createElement("path",{d:"M8.155 3.172a4.365 4.365 0 0 1 3.067 1.203l2.284-2.3A7.7 7.7 0 0 0 8.154 0a7.992 7.992 0 0 0-7.146 4.41l2.649 2.057c.645-1.9 2.405-3.295 4.497-3.295Z",fill:"#E54335"})))},h=t(48095),p=t(39957);let g=(0,o.forwardRef)((e,a)=>{let{children:t,className:i,disabled:r,loading:l,primaryColor:s,...o}=e;return(0,n.jsx)("button",{ref:a,type:"button",disabled:r||l,className:(0,c.cn)("helvetica-14-400 inline-flex h-[54px] items-center justify-center border border-opacity-40",(0,d.M)("border",null!=s?s:u.bG.CulinistaBlack),i),...o,children:l?(0,n.jsx)(h.U,{size:"small",primaryColor:s}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.k,{icon:(0,n.jsx)(x,{}),size:16,className:"mr-5"}),"Continue with Google"]})})})},5037:function(e,a,t){"use strict";t.d(a,{U:function(){return n}});var i=t(97458);t(52983);var r=t(74870),l=t(37249),s=t(90015);function n(e){let{title:a,description:t,images:n,article:o,recipe:c,noIndex:d,openGraphTitle:u,openGraphDescription:m}=e,{siteName:x,siteDescription:h}=(0,s.K)(),p={noIndex:d,description:t||h,images:n||r.nI.images,url:r.nI.url,siteName:x,ogTitle:"".concat(r.nI.siteName," | ").concat(a||r.nI.title)},g=Array.isArray(p.images)?p.images.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.url&&!!e.url).map(e=>({url:e.url,alt:e.alt||p.description||r.nI.description})):[],f=null,b=null;return o&&(f={url:"",title:"",images:[],datePublished:"",authorName:"",description:""}),c&&(b={name:"",description:"",authorName:"",ingredients:[],instructions:[]}),(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)(l.dX,{...f}),b&&(0,i.jsx)(l.P8,{...b}),(0,i.jsx)(l.PB,{title:a,titleTemplate:"%s | ".concat(p.siteName),defaultTitle:"".concat(r.nI.title," | ").concat(p.siteName),description:p.description,noindex:d,nofollow:d,openGraph:{url:p.url,title:u||p.ogTitle,description:m||p.description,images:g.length?g:void 0,siteName:r.nI.siteName,locale:"en_US"},twitter:{site:r.nI.twitterSite,cardType:"summary_large_image"}})]})}},86133:function(e,a,t){"use strict";t.d(a,{z:function(){return l}});var i=t(87933),r=t(19218);let l=e=>{let a="";if(e instanceof i.c){var t,l,s,n,o;a=null===(o=e.networkError)||void 0===o?void 0:null===(n=o.result)||void 0===n?void 0:null===(s=n.errors)||void 0===s?void 0:null===(l=s[0])||void 0===l?void 0:null===(t=l.extensions)||void 0===t?void 0:t.errorSlug}else a=e instanceof r.U?e.getErrorMessage():e.message;return a}},81614:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return K},default:function(){return W}});var i=t(97458),r=t(52983),l=t(34376),s=t(18367),n=t(88403),o=t(15783),c=t(42424),d=t.n(c),u=t(92156),m=t(98680),x=t(38156),h=t(99068),p=t(92058),g=t(57399),f=t(18844),b=t(19685),v=t(76102),y=t(1137),j=t(78778);let w=[{id:"email",type:"text",name:"email",label:"Email"},{id:"password",type:"password",name:"password",label:"Password"}],N=(0,h.Ry)().shape({email:(0,h.Z_)().required("Please enter your email address").email(p.Om[p.c8.EmailInvalid]),password:(0,h.Z_)().required("Please enter your password")});function k(e){let{goToForgotPasswordForm:a}=e,{loginWithEmailAndPassword:t,loginWithGoogle:l}=(0,b.a)(),[c,h]=(0,r.useState)(null),p=(0,m.cI)({defaultValues:{email:"",password:""},resolver:(0,g.X)(N)}),{handleSubmit:k,formState:{isSubmitting:C}}=p,S=async e=>{try{await t(e.email,e.password)}catch(e){p.setError("password",{message:"".concat((0,v.i)(e))})}},[E,L]=(0,r.useState)(!1),G=async()=>{L(!0);try{await l()}catch(a){let e=(0,v.i)(a);"Unknown error"===e?h("Something went wrong. Please try again."):h(e)}finally{L(!1)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"mx-7 flex flex-shrink-0 flex-col gap-y-4",children:[(0,i.jsx)(s.F,{className:"flex-shrink-0",onClick:G,loading:E}),(0,i.jsx)(y.M,{children:c&&(0,i.jsx)(j.E.p,{className:"helvetica-12-400 text-ar overflow-hidden text-ar-red",initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},children:c},"error")})]}),(0,i.jsx)(n.o,{primaryColor:o.bG.CulinistaBlack,children:"or"}),(0,i.jsxs)("form",{className:"mx-auto flex w-full max-w-[285px] flex-grow flex-col",onSubmit:k(S),children:[(0,i.jsx)(x.Z,{className:"flex flex-col gap-y-10",...p,inputs:w}),(0,i.jsx)(y.M,{children:(p.formState.touchedFields.email||p.formState.errors.password)&&(0,i.jsxs)(j.E.p,{className:"helvetica-12-400 mt-8 overflow-hidden",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},children:["We recently launched a new account experience, which requires a password reset. ",(0,i.jsx)("br",{}),"Please"," ",(0,i.jsx)("button",{className:"underline",type:"button",onClick:a,children:"reset your password"})," ","or email"," ",(0,i.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})," ","with any questions."]},"email")}),(0,i.jsx)(f.k,{type:"submit",className:"mt-10 w-full",backgroundColor:o.bG.NavyLight,textColor:o.bG.CulinistaBlack,loading:C,children:"Log in"}),(0,i.jsx)("button",{type:"button",className:"helvetica-12-400 mt-2.5 underline",onClick:a,children:"Forgot your password?"})]}),(0,i.jsx)(n.o,{primaryColor:o.bG.CulinistaBlack,children:"or"}),(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("p",{className:"helvetica-12-500 mb-2.5",children:"Don't have an account?"}),(0,i.jsx)(d(),{className:"helvetica-12-400 underline",href:u.y.bookingService(),children:"Book a service to create an account"})]})]})}var C=t(46027),S=t(19218),E=t(49122),L=t(48095),G=t(21967),B=t(45606),I=t(73178),_=t(86133);function F(e){let{token:a,isLoggedIn:t}=e,[l,{loading:s}]=(0,E.Mfy)(),[n,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(null),{user:m}=(0,G.jJ)(),{refreshUserToken:x}=(0,G.BJ)(),h=(0,C.H)({token:a,setError:u});return((0,r.useEffect)(()=>{(async e=>{try{if(!e)throw new S.U({code:S.w.InvalidVerificationToken});await l({variables:{input:{token:e}}}),(null==m?void 0:m.isLoggedIn)&&await x(),c(!0)}catch(e){var a,t;"TOKEN_NOT_FOUND"===(0,_.z)(e)?null===(a=h.current)||void 0===a||a.setError("Your account is already verified"):null===(t=h.current)||void 0===t||t.setError((0,v.i)(e))}})(h.current.token)},[h,x,null==m?void 0:m.isLoggedIn,l]),s)?(0,i.jsx)(L.U,{}):d?(0,i.jsx)(I.K,{text:d,variant:"error"}):n?(0,i.jsxs)(j.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"w-full",children:[(0,i.jsx)(I.K,{text:"Your account has been verified."}),t&&(0,i.jsx)(f.k,{href:B.Z.services(),className:"mt-10 border border-ar-culinista-black border-opacity-40",backgroundColor:o.bG.Transparent,textColor:o.bG.CulinistaBlack,children:"Go to the customer panel"})]}):null}var T=t(53460),O=t(14242);let P=t.n(O)().theme.screens;var M=t(39957),Z=t(25052);let A=[{id:"resetEmail",type:"text",name:"email",label:"Email"}],q=(0,h.Ry)().shape({email:(0,h.Z_)().required("Please enter your email address").email(p.Om[p.c8.EmailInvalid])});function U(e){let{onReturn:a}=e,{resetPassword:t}=(0,b.a)(),[l,s]=(0,r.useState)(!1),[n,c]=(0,r.useState)(null),d=(0,m.cI)({defaultValues:{email:""},resolver:(0,g.X)(q)}),{handleSubmit:u,formState:{isSubmitting:h}}=d,p=async e=>{try{await t(e.email),s(!0)}catch(e){c((0,v.i)(e))}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"mx-7 space-y-4",children:[(0,i.jsx)(I.K,{text:n,variant:"error"}),(0,i.jsx)(I.K,{text:l?"If the account exists, you will receive an email with a link to reset your password.":null,variant:"success"}),(0,i.jsx)("button",{type:"button",onClick:a,children:(0,i.jsx)(M.k,{width:24,height:24,icon:(0,i.jsx)(Z.Z,{})})})]}),(0,i.jsxs)("form",{className:"mx-auto flex w-full max-w-[285px] flex-grow flex-col",onSubmit:u(p),children:[(0,i.jsx)(x.Z,{...d,inputs:A}),(0,i.jsx)(f.k,{type:"submit",className:"mt-10 w-full",backgroundColor:o.bG.NavyLight,textColor:o.bG.CulinistaBlack,loading:h,disabled:d.formState.isSubmitted||!d.formState.isValid,children:d.formState.isSubmitted?"Please check your inbox":"Send link"})]})]})}var D=t(88786),R=t(42353);function z(e){let{children:a}=e,{user:t}=(0,G.jJ)(),{logout:l}=(0,b.a)(),[s,c]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),[h]=(0,E.PrD)({}),p=async()=>{if(t.email){let{data:e}=await h({variables:{input:{email:t.email}}});e.customer.sendVerificationEmail.success?c(!0):x("Failed to send verification email")}else x("No email found")};return!t.isLoggedIn||t.isAccountCreated&&t.isEmailVerified?(0,i.jsx)(i.Fragment,{children:a}):(0,i.jsxs)("div",{className:"mx-7 flex flex-col gap-y-10 text-center",children:[t.isAccountCreated?(0,i.jsxs)("div",{className:"helvetica-14-400 flex flex-col justify-center gap-2",children:[(0,i.jsxs)("p",{children:["To access your Account Dashboard, follow the link in the verification email we sent to"," ",(0,i.jsx)("span",{className:"font-medium",children:t.email}),"."]}),!s&&!m&&(0,i.jsxs)("p",{children:["Didn't receive an email? Click"," ",(0,i.jsx)("button",{type:"button",className:"font-bold text-ar-navy",onClick:p,children:"here"})," ","to resend."]}),s&&(0,i.jsx)("p",{className:"text-ar-navy",children:"Verification email has been sent. Check your inbox."}),m&&(0,i.jsx)("span",{className:"text-ar-navy",children:m})]}):(0,i.jsxs)("div",{className:"helvetica-14-400",children:[(0,i.jsxs)("p",{className:"mb-2.5",children:["You're logged in as ",(0,i.jsx)("span",{className:"font-medium",children:t.email}),"."]}),(0,i.jsxs)("p",{children:[(0,i.jsx)(d(),{className:"underline",href:u.y.bookingService(),children:"Book your first service"})," ","to access your Account Dashboard."]})]}),(0,i.jsx)(n.o,{children:"or"}),(0,i.jsx)(f.k,{type:"button",onClick:l,className:"w-full border border-ar-culinista-black border-opacity-40",backgroundColor:o.bG.Transparent,textColor:o.bG.CulinistaBlack,children:"Log out"})]})}var V=t(5037);function X(){let{user:e}=(0,G.jJ)(),a=function(e){let[a,t]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{let e=()=>{let e=window.innerWidth,a=Object.keys(P);Object.keys(P).forEach((i,r)=>{let l=Number(P[i].replace("px","")),s=P[a[r+1]];s&&(s=Number(s.replace("px",""))),s?0===r&&e<l?t(i):e>=l&&e<s&&t(i):e>=l&&t(i)})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),Array.isArray("md")?"md".includes(a):e===a}("md"),t=(0,l.useSearchParams)(),s=t.get("verification"),n=t.get("resetPassword"),[o,c]=(0,r.useState)("login"),d=()=>n?(0,i.jsx)("div",{children:"TODO"}):"forgot-password"===o?(0,i.jsx)(j.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"flex flex-col gap-y-10",children:(0,i.jsx)(U,{onReturn:()=>c("login")})},"forgot-password-form"):(0,i.jsx)(j.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex flex-col gap-y-10",children:(0,i.jsx)(k,{goToForgotPasswordForm:()=>c("forgot-password")})},"login-form");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V.U,{title:"Sign In",noIndex:!0}),(0,i.jsxs)("section",{className:"flex h-full w-full flex-col gap-y-10 border-x border-x-ar-culinista-black border-opacity-40 py-5 md:py-10",children:[(0,i.jsxs)("header",{className:"editorial-38 md:editorial-42 mx-7 uppercase",children:[(0,i.jsx)("div",{children:"Log in"}),(0,i.jsxs)("div",{className:"ml-[52px] flex gap-x-2",children:[(0,i.jsx)("svg",{width:a?33:30,height:a?33:30,className:"mt-[2px] md:mt-[3px]",children:(0,i.jsx)("path",{className:"fill-ar-navy-light",d:T.a.hospitality,transform:a?"scale(0.33, 0.33)":"scale(0.30, 0.30)"})}),"to the"]}),(0,i.jsx)("div",{children:"Culinistas"})]}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"mx-7 flex justify-center",children:(0,i.jsx)(F,{token:s,isLoggedIn:e.isLoggedIn})}),!e.isLoggedIn&&(0,i.jsx)(y.M,{initial:!1,mode:"popLayout",children:d()})]}):(0,i.jsx)(z,{children:(0,i.jsx)(y.M,{initial:!1,mode:"popLayout",children:d()})})]})]})}X.Layout=function(e){let{children:a,bookingServiceNote:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R.ArBookingServiceStartFormModal,{data:{backgroundColor:o.bG.NavyLight,fontColor:o.bG.CulinistaBlack,errorBackgroundColor:o.bG.Red,errorFontColor:o.bG.White,note:t}}),(0,i.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,i.jsx)(D.W,{className:"border-b border-ar-culinista-black border-opacity-40",backgroundColor:o.bG.BeigeLight,textColor:o.bG.CulinistaBlack,mobileCta:{label:"Book a service",href:u.y.bookingService(),backgroundColor:o.bG.Navy,textColor:o.bG.NavyLight},hideLoginLinkOnMobile:!0,keepColorThemeOnScroll:!0}),(0,i.jsx)("div",{className:"flex flex-grow bg-ar-beige-light text-ar-culinista-black",children:(0,i.jsx)("main",{className:"mx-auto w-full flex-grow md:max-w-[500px]",children:a})})]})]})};var K=!0,W=X},14242:function(e,a,t){"use strict";let i=t(32420),{COLORS:r}=t(83679);e.exports={content:["./src/components/**/*.{ts,tsx}","./src/pages/**/*.{ts,tsx}","./src/helpers/getConditionalTailwindClass.ts"],theme:{screens:{sm:"600px",md:"728px","2md":"890px",lg:"984px",xl:"1240px",xxl:"1440px"},container:{center:!0,screens:{sm:"600px",md:"728px",lg:"984px",xl:"1240px",xxl:"1440px"},padding:{DEFAULT:"1rem",sm:"1rem",lg:"1rem",xl:"1rem"}},colors:{black:i.black,white:i.white,gray:i.gray,transparent:"transparent","ar-culinista-black":r.CulinistaBlack,"ar-navy":r.Navy,"ar-navy-light":r.NavyLight,"ar-brown":r.Brown,"ar-brown-light":r.BrownLight,"ar-green":r.Green,"ar-green-light":r.GreenLight,"ar-yellow":r.Yellow,"ar-yellow-light":r.YellowLight,"ar-red":r.Red,"ar-red-light":r.RedLight,"ar-red-warning":r.RedWarning,"ar-beige-light":r.BeigeLight},extend:{keyframes:{"marquee-left":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(calc(-100% - 2.5rem))"}}},animation:{"marquee-left-20":"marquee-left 20s linear infinite"},screens:{tall:{raw:"(max-height:1366px) and (min-width:1024px)"},"tall-sm":{raw:"(max-height:1280px) and (min-width:1024px)"},"2xl":"1440px",xxl:"1200px","3xl":"1782px","4xl":"1810px",xs:"375px","small-lg":"1000px"},boxShadow:{sm:"0px 4px 4px rgba(0, 0, 0, 0.25)",dropdown:"0px 2px 4px 0px rgba(0, 0, 0, 0.1)"},spacing:{"ar-logged-out-navbar-height-mobile":"54px","ar-logged-out-navbar-height-desktop":"60px","ar-logged-in-navbar-height-mobile":"111px","ar-logged-in-navbar-height-desktop":"72px"},zIndex:{60:60}}},safelist:[],plugins:[t(89115),t(72031)({strategy:"class"}),t(56663),t(92006),t(59439)]}}},function(e){e.O(0,[7249,1185,356,9292,8156,2888,9774,179],function(){return e(e.s=70659)}),_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.