1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7250],{21535:function(e,t,i){var n,a=i(52983);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}t.Z=function(e){return a.createElement("svg",l({viewBox:"0 0 9 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{d:"m.5 1 4.033 4 4.033-4",stroke:"currentColor"})))}},1571:function(e,t,i){i.d(t,{k:function(){return s}});var n=i(97458),a=i(52983),l=i(55462),r=i(89044);let s=(0,a.forwardRef)((e,t)=>{let{children:i,className:a,disabled:s,loading:o,type:c="button",variant:d="primary",theme:u="black",...p}=e;return(0,n.jsxs)("button",{ref:t,type:c,disabled:s||o,className:(0,l.cn)("helvetica-16-400 flex w-fit justify-center gap-x-2",{"bg-opacity-50":s||o,"border border-black bg-black text-white":"black"===u,"border border-gray-400 bg-white text-black":"white"===u,"w-full py-3":"primary"===d},a),...p,children:[i," ",o&&(0,n.jsx)(r.U,{size:"small"})]})})},11738:function(e,t,i){i.d(t,{W:function(){return u}});var n=i(97458),a=i(52983),l=i(35031),r=i(78778),s=i(1137),o=i(55462),c=i(21535),d=i(60728);let u=a.forwardRef((e,t)=>{let{label:i,name:u,initialOption:p,options:h,onOptionChange:m,hoverColor:x,...f}=e,[b,v]=(0,a.useState)(p),[g,y]=(0,a.useState)(!1),j=(0,a.useRef)(null),w=(0,l.M)("hoverBg",x),N=e=>{e.value!==(null==b?void 0:b.value)&&(null==m||m(e.value),v(e),y(!1))};return(0,a.useEffect)(()=>{let e=e=>{var t;(null===(t=j.current)||void 0===t?void 0:t.contains(e.target))||y(!1)};return window.addEventListener("mousedown",e),()=>{window.removeEventListener("mousedown",e)}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{ref:j,className:"z-2 relative w-full border-b border-ar-culinista-black",children:[(0,n.jsxs)("label",{className:"cursor-pointer text-ar-culinista-black",htmlFor:i,children:[(0,n.jsx)("div",{className:"helvetica-10-400 mb-1",children:i}),(0,n.jsxs)("div",{className:"mt-auto flex items-center justify-between",children:[(0,n.jsx)("input",{...f,id:i,ref:t,readOnly:!0,name:u,value:b.label,onClick:()=>{y(e=>!e)},className:"helvetica-14-400 flex-grow cursor-pointer rounded-none bg-transparent pb-[10px] text-ar-culinista-black !outline-none"}),(0,n.jsx)("div",{className:"pb-1",children:(0,n.jsx)(r.E.div,{className:"z-[1] h-fit",animate:{rotate:g?180:0},transition:{duration:.3},children:(0,n.jsx)(d.k,{icon:(0,n.jsx)(c.Z,{}),size:10})})})]})]}),(0,n.jsx)(s.M,{children:g&&(0,n.jsx)(r.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"absolute top-full z-10 mt-[1px] flex max-h-[200px] w-full flex-col overflow-auto bg-white shadow-sm",children:h.map(e=>(0,n.jsx)(r.E.button,{initial:{opacity:0,visibility:"hidden"},animate:{opacity:1,visibility:"visible",transition:{duration:.3,delay:.1}},exit:{opacity:0,visibility:"hidden",transition:{duration:.2}},type:"button",onClick:()=>N(e),className:(0,o.cn)("helvetica-12-400 flex border-b border-opacity-40 px-4 py-3",{"hover:bg-ar-culinista-black hover:bg-opacity-20":!w},w),children:e.label},e.value))})})]})})})},97373:function(e,t,i){i.d(t,{J:function(){return u}});var n,a=i(97458),l=i(52983);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var s=function(e){return l.createElement("svg",r({width:6,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=l.createElement("path",{d:"m1 9.066 4-4.033L1 1",stroke:"#22292F"})))},o=i(13764),c=i(55462),d=i(60728);function u(e){let{totalItemsCount:t,itemsPerPage:i,onPageChange:n,className:l,currentPage:r=1}=e,u=Math.ceil(t/i),p=[];for(let e=1;e<=u;e+=1)p.push(e);let h=e=>()=>{null==n||n(e)};return u<2?null:(0,a.jsxs)("div",{className:(0,c.cn)("helvetica-14-500 flex flex-row gap-x-2.5",l),children:[(0,a.jsxs)("button",{type:"button",className:(0,
1c.cn)("flex flex-row items-center gap-x-2",1===r&&"hidden"),onClick:()=>{r-1>=1&&(null==n||n(r-1))},children:[(0,a.jsx)(d.k,{icon:(0,a.jsx)(o.Z,{}),size:10}),(0,a.jsx)("p",{children:"Previous"})]}),(0,a.jsx)("button",{type:"button",className:(0,c.cn)("opacity-40",r<=3&&"hidden"),onClick:()=>{null==n||n(1)},children:"1"}),(0,a.jsx)("p",{className:(0,c.cn)("opacity-40",r<=3&&"hidden"),children:"..."}),(0,a.jsx)("ul",{className:" flex flex-row gap-x-2 text-ar-culinista-black",children:p.map(e=>(0,a.jsx)("li",{className:(0,c.cn)(r!==e&&"opacity-40",e<=r-3&&"hidden",e>=r+3&&"hidden"),children:(0,a.jsx)("button",{type:"button",onClick:h(e),children:e})},e))}),(0,a.jsx)("p",{className:(0,c.cn)("opacity-40",r>=u-2&&"hidden"),children:"..."}),(0,a.jsx)("button",{type:"button",className:(0,c.cn)("opacity-40",r>=u-2&&"hidden"),onClick:()=>{null==n||n(u)},children:u}),(0,a.jsxs)("button",{type:"button",className:(0,c.cn)("flex items-center gap-x-2",r===u&&"hidden"),onClick:()=>{r+1<=u&&(null==n||n(r+1))},children:[(0,a.jsx)("p",{children:"Next"}),(0,a.jsx)(d.k,{icon:(0,a.jsx)(s,{}),size:10})]})]})}},89044:function(e,t,i){i.d(t,{U:function(){return l}});var n=i(97458);i(52983);var a=i(55462);function l(e){let{className:t,size:i="medium",customSize:l=""}=e;return(0,n.jsxs)("div",{className:(0,a.cn)("relative",t,{"h-4 w-4":"small"===i,"h-6 w-6":"medium"===i,"h-8 w-8":"large"===i},l),children:[(0,n.jsx)("div",{className:"absolute left-0 top-0 h-full w-full animate-spin rounded-full border-2 border-gray-200"}),(0,n.jsx)("div",{className:"h-full w-full animate-spin rounded-full border-2 border-ar-culinista-black border-t-transparent",role:"status"}),(0,n.jsx)("span",{className:"invisible",children:"Loading..."})]})}},2241:function(e,t,i){i.d(t,{X:function(){return g}});var n=i(97458),a=i(52983),l=i(78906),r=i(15783),s=i(88786),o=i(92156),c=i(43359),d=i(14517),u=i(49122),p=i(71977),h=i(31165),m=i(10059),x=i(15913),f=i(39957);function b(e){let{className:t,messages:i}=e;return(0,n.jsxs)("div",{className:(0,d.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,n.jsx)(f.k,{icon:(0,n.jsx)(x.Z,{}),size:16}),(0,n.jsx)("p",{className:"helvetica-14-400 flex-1",children:1===i.length?i:(0,n.jsx)("ul",{className:"flex list-inside list-disc flex-col gap-0.5",children:i.map(e=>(0,n.jsx)("li",{children:e},e))})})]})}let v=new Date;function g(e){let{children:t}=e,i=(0,c.a)(890),x=(0,h.Q)(),[f,g]=(0,a.useState)({payment:void 0,mealPrep:void 0});(0,u.N66)({fetchPolicy:"network-only",variables:{input:{serviceType:u.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,p.EM)(e.serviceDate).getTime()-(0,p.EM)(t.serviceDate).getTime()).filter(e=>"CANCELLED_ENDED"!==e.serviceStatus)[0],i=(0,p.EM)(e.serviceDate);i.setHours(parseFloat(e.startTime.split(":")[0])),i.setMinutes(parseFloat(e.startTime.split(":")[1]));let n=Math.floor((i.getTime()-v.getTime())/36e5),a={mealPrep:void 0,payment:void 0};if(n<72&&0===e.dishes.length&&(a.mealPrep="Important: Select your dishes at least 24 hours prior to your service time to avoid service cancellation and fee."),n<72){let{data:e}=await x.query({query:u.KDL,fetchPolicy:"network-only"});0===e.paymentMethods.items.length?a.payment="Add a valid payment method at least 48 hours prior to your service time to avoid service cancellation.":g(e=>({...e,payment:void 0}))}g(e=>({...e,...a}))}else g(e=>({...e,mealPrep:void 0}))}});let y=!!f.payment||!!f.mealPrep,j=Object.values(f).filter(e=>!!e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,n.jsx)(s.W,{className:"border-b border-ar-culinista-black border-opacity-40",backgroundColor:r.bG.BeigeLight,textColor:r.bG.CulinistaBlack,keepColorThemeOnScroll:!0,mobileCta:{label:"Book a service",href:o.y.bookingService(),backgroundColor:r.bG.Navy,textColor:r.bG.NavyLight},hideLoginLinkOnMobile:!0}),(0,n.jsx)("div",{className:"flex flex-grow bg-ar-beige-light text-ar-culinista-black ",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-[1750px] flex-grow",children:[!i&&(0,n.jsx)(m.U,{}),(0,n.jsxs)("main",{className:"max-w-full flex-1",children:[!!y&&(0,n.jsx)("div",{className:"px-[30px] pt-16 md:px-[118px]",children:(0,n.jsx)(b,{messages:j})}),(0,n.jsx)("div",{className:(0,d.Z)({"pt-16":!y,"pt-8":!!y}),children:t})]})]})})]}),(0,n.jsx)(l.a,{backgroundColor:r.bG.CulinistaBlack,textAndBorderColor:r.bG.NavyLight})]})}},80250:function(e,t,i){i.d(t,{e:function(){return l}});var n=i(97458);i(52983);var a=i(14517);function l(e){let{className:t,children:i}=e;return(0,n.jsx)("div",{className:(0,a.Z)("px-[30px] pb-40 md:px-[118px]",t),children:i})}},45537:function(e,t,i){i.d(t,{f:function(){return s}});var n=i(97458);i(52983);var a=i(37249),l=i(90015),r=i(74870);function s(e){let{title:t,description:i,images:s}=e,{siteName:o,siteDescription:c}=(0,l.K)(),d={description:i||c,images:s||r.nI.images,url:r.nI.url,siteName:o,ogTitle:"".concat(r.nI.siteName," | ").concat(t||r.nI.title)},u=Array.isArray(d.images)?d.images.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.url&&!!e.url).map(e=>({url:e.url,alt:e.alt||d.description||r.nI.description})):[];return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.PB,{title:t,titleTemplate:"%s | ".concat(d.siteName),defaultTitle:"".concat(r.nI.title," | ").concat(d.siteName),description:d.description,openGraph:{url:d.url,title:d.ogTitle,description:d.description,images:u.length?u:void 0,siteName:r.nI.siteName,locale:"en_US"}})})}}}]);
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.