1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8863],{41888:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer",function(){return i(12551)}])},2241:function(e,t,i){"use strict";i.d(t,{X:function(){return y}});var a=i(97458),r=i(52983),l=i(78906),n=i(15783),s=i(88786),o=i(92156),c=i(43359),u=i(14517),d=i(49122),m=i(71977),p=i(31165),h=i(10059),x=i(15913),f=i(39957);function g(e){let{className:t,messages:i}=e;return(0,a.jsxs)("div",{className:(0,u.Z)("flex items-center bg-ar-red bg-opacity-10 px-8 py-2.5 text-ar-red",t,{"gap-2":1===i.length,"gap-4":i.length>1}),children:[(0,a.jsx)(f.k,{icon:(0,a.jsx)(x.Z,{}),size:16}),(0,a.jsx)("p",{className:"helvetica-14-400 flex-1",children:1===i.length?i:(0,a.jsx)("ul",{className:"flex list-inside list-disc flex-col gap-0.5",children:i.map(e=>(0,a.jsx)("li",{children:e},e))})})]})}let v=new Date;function y(e){let{children:t}=e,i=(0,c.a)(890),x=(0,p.Q)(),[f,y]=(0,r.useState)({payment:void 0,mealPrep:void 0});(0,d.N66)({fetchPolicy:"network-only",variables:{input:{serviceType:d.UW4.MealPrep,serviceDateLessThan:new Date(new Date(v).setMonth(new Date(v).getMonth()+3)),serviceDateGreaterThan:new Date(v)}},onCompleted:async e=>{let{serviceList:t}=e;if(t.items.length>0){let e=t.items.sort((e,t)=>(0,m.EM)(e.serviceDate).getTime()-(0,m.EM)(t.serviceDate).getTime()).filter(e=>"CANCELLED_ENDED"!==e.serviceStatus)[0],i=(0,m.EM)(e.serviceDate);i.setHours(parseFloat(e.startTime.split(":")[0])),i.setMinutes(parseFloat(e.startTime.split(":")[1]));let a=Math.floor((i.getTime()-v.getTime())/36e5),r={mealPrep:void 0,payment:void 0};if(a<72&&0===e.dishes.length&&(r.mealPrep="Important: Select your dishes at least 24 hours prior to your service time to avoid service cancellation and fee."),a<72){let{data:e}=await x.query({query:d.KDL,fetchPolicy:"network-only"});0===e.paymentMethods.items.length?r.payment="Add a valid payment method at least 48 hours prior to your service time to avoid service cancellation.":y(e=>({...e,payment:void 0}))}y(e=>({...e,...r}))}else y(e=>({...e,mealPrep:void 0}))}});let b=!!f.payment||!!f.mealPrep,N=Object.values(f).filter(e=>!!e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,a.jsx)(s.W,{className:"border-b border-ar-culinista-black border-opacity-40",backgroundColor:n.bG.BeigeLight,textColor:n.bG.CulinistaBlack,keepColorThemeOnScroll:!0,mobileCta:{label:"Book a service",href:o.y.bookingService(),backgroundColor:n.bG.Navy,textColor:n.bG.NavyLight},hideLoginLinkOnMobile:!0}),(0,a.jsx)("div",{className:"flex flex-grow bg-ar-beige-light text-ar-culinista-black ",children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-[1750px] flex-grow",children:[!i&&(0,a.jsx)(h.U,{}),(0,a.jsxs)("main",{className:"max-w-full flex-1",children:[!!b&&(0,a.jsx)("div",{className:"px-[30px] pt-16 md:px-[118px]",children:(0,a.jsx)(g,{messages:N})}),(0,a.jsx)("div",{className:(0,u.Z)({"pt-16":!b,"pt-8":!!b}),children:t})]})]})})]}),(0,a.jsx)(l.a,{backgroundColor:n.bG.CulinistaBlack,textAndBorderColor:n.bG.NavyLight})]})}},45537:function(e,t,i){"use strict";i.d(t,{f:function(){return s}});var a=i(97458);i(52983);var r=i(37249),l=i(90015),n=i(74870);function s(e){let{title:t,description:i,images:s}=e,{siteName:o,siteDescription:c}=(0,l.K)(),u={description:i||c,images:s||n.nI.images,url:n.nI.url,siteName:o,ogTitle:"".concat(n.nI.siteName," | ").concat(t||n.nI.title)},d=Array.isArray(u.images)?u.images.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.url&&!!e.url).map(e=>({url:e.url,alt:e.alt||u.description||n.nI.description})):[];return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(r.PB,{title:t,titleTemplate:"%s | ".concat(u.siteName),defaultTitle:"".concat(n.nI.title," | ").concat(u.siteName),description:u.description,openGraph:{url:u.url,title:u.ogTitle,description:u.description,images:d.length?d:void 0,siteName:n.nI.siteName,locale:"en_US"}})})}},12551:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return s},default:function(){return o}});var a=i(97458);i(52983);var r=i(2241),l=i(45537);function n(e){let{title:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.f,{title:t}),(0,a.jsx)("div",{className:"container",children:"ArCustomerPageTemplate"})]})}n.Layout=r.X;var s=!0,o=n}},function(e){e.O(0,[7249,2888,9774,179],function(){return e(e.s=41888)}),_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.