1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6419],{46419:function(e,l,t){t.d(l,{P:function(){return G}});var r,i=t(97458),a=t(52983),o=t(35031),n=t(14517),d=t(70967),s=t(11479),c=t(48095),u=t(43359),m=t(6241),v=t(13916),p=t(6722),h=t(73628),x=t(71977),f=t(5037),g=t(5380),b=t(53460),j=t(92156),y=t(42424),N=t.n(y);function w(e){let{className:l,primaryColor:t,textColor:r}=e,a=(0,o.M)("text",r),d=(0,o.M)("bg",t),s=(0,o.M)("fill",r);return(0,i.jsxs)("div",{className:(0,n.Z)(l,a,d,"flex flex-col items-center gap-[10px] p-5 md:p-10"),children:[(0,i.jsx)("svg",{width:"20",height:"20",children:(0,i.jsx)("path",{className:(0,n.Z)(s,"self-center"),d:b.a.hospitality,transform:"scale(0.20, 0.20)"})}),(0,i.jsx)("p",{className:"editorial-22",children:"Get Ready for Your Service"}),(0,i.jsxs)("p",{className:"garamond-16",children:["Review our"," ",(0,i.jsx)(N(),{href:j.y.bestPractices(),rel:"noopener noreferrer",target:"_blank",className:"underline",children:"Best Practices & Equipment List"})]})]})}var I=t(61765);function k(e){let{data:l,borderColor:t,...r}=e,a=Object.entries(l).map(e=>{let[l,t]=e;return null!==t?{name:l.split(/(?=[A-Z])/).join(" "),value:t}:null}).filter(Boolean),d=(0,o.M)("text",t);return(0,i.jsx)(I.N,{...r,borderColor:t,className:"w-full max-w-none p-5 lg:!p-6 lg:!pb-8",children:(0,i.jsx)("ul",{className:"helvetica-12-400 md:helvetica-14-400 flex flex-col gap-[10px]",children:a.map(e=>(0,i.jsxs)("li",{className:(0,n.Z)("flex",{"helvetica-12-500 md:helvetica-14-500":"total"===e.name,"flex-row justify-between":"additional Notes"!==e.name,"flex-col justify-start":"additional Notes"===e.name&&e.value}),children:["additional Notes"!==e.name&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:(0,n.Z)(d,"capitalize text-opacity-70"),children:e.name}),(0,i.jsx)("span",{className:"break-all pl-8 text-right",dangerouslySetInnerHTML:{__html:e.value}})]}),"additional Notes"===e.name&&e.value&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:(0,n.Z)(d,"mb-[10px] capitalize text-opacity-70"),children:"Additional Details"}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:e.value}})]})]},e.name))})})}var C=t(98644);function S(e){let{data:l,allergens:t,primaryColor:r}=e,{getLocalStorageSummaryResult:d}=(0,g.c)(),{cartData:s,activeService:c}=d()||{},u=(0,a.useCallback)(e=>s.items[0].selectedItems.find(l=>l.referenceId===e),[s.items]),m=(0,o.M)("border",r),v=(0,o.M)("text",r),p=e=>{var l;return null===(l=u(e))||void 0===l?void 0:l.restrictions.map(e=>t.find(l=>l.id===e))};return(0,i.jsx)("ul",{children:l.map(e=>{var l,r,a,o,d;let{id:s,title:x}=e,f=(0,C.E)(p(s).map(e=>e.id),t,"No"),g=null===(l=u(s))||void 0===l?void 0:l.portions,b=null===(r=u(s))||void 0===r?void 0:r.othersNote,j=f||(null===(a=u(s))||void 0===a?void 0:a.additionalInformation)||g||b;return(0,i.jsxs)("li",{className:(0,n.Z)(m,"mb-[15px] flex flex-col border-b-2 border-dotted border-opacity-40 pb-[15px]"),children:[(0,i.jsx)("p",{className:"editorial-16",children:x}),(0,i.jsxs)("div",{className:(0,n.Z)(v,"helvetica-12-400 text-opacity-70",{"mt-[10px]":j}),children:["gatherings"!==c&&g&&(0,i.jsxs)("p",{children:["Portion: ",g]}),f&&(0,i.jsx)("p",{children:f+(0,h.J)(b,"No")}),!f&&b&&(0,i.jsx)("p",{children:"No ".concat(b)}),(null===(o=u(s))||void 0===o?void 0:o.additionalInformation)&&(0,i.jsx)("p",{children:null===(d=u(s))||void 0===d?void 0:d.additionalInformation.substring(0,50)})]})]},s)})})}function _(e){let{dishesData:l,borderColor:t,allergens:r}=e,a=(0,o.M)("border",t);return(0,i.jsxs)("section",{className:(0,n.Z)(a,"h-max border border-opacity-40 p-5 lg:mb-[30px] lg:p-6"),children:[(0,i.jsx)("h3",{className:"helvetica-14-500 mb-10",children:"Your dishes"}),(0,i.jsx)(S,{data:l,allergens:r,primaryColor:t})]})}var A=t(54100),T=t.n(A);function D(e){let{borderColor:l,menuData:{mainImage:t,sections:r,title:a},allergens:d}=e,s=(0,o.M)("border",l),{getLocalStorageSummaryResult:c}=(0,g.c)(),{cartData:u}=c()||{},m=u.items[0],v=r.reduce((e,l)=>(m.selectedItems.find(e=>e.courseId===l.id)&&!e.includes(l)&&e.push(l),e),[]),p=null==m?void 0:m.selectedItems.filter(e=>{var l;return null==u?void 0:null===(l=u.dishesSelectedFromLibrary)||void 0===l?void 0:l.some(l=>l.id===e.referenceId)}),h=v.map(e=>{var l,t;let r=null==p?void 0:null===(l=p.find(l=>l.courseId===e.id))||void 0===l?void 0:l.referenceId,i=null===(t=u.dishesSelectedFromLibrary)||void 0===t?void 0:t.find(e=>e.id===r);return i&&e.data.push(i),e}),x=e=>{let{data:l}=h.find(l=>l.id===e);return l.filter(l=>m.selectedItems.filter(l=>l.courseId===e).map(e=>e.referenceId).includes(l.id))};return(0,i.jsxs)("section",{className:(0,n.Z)(s,"h-max border border-opacity-40 p-5 lg:p-6"),children:[(0,i.jsxs)("div",{className:"mb-9 flex w-full items-center uppercase",children:[(0,i.jsx)(T(),{src:t.image.asset.url,alt:t.alt,blurDataURL:t.image.asset.metadata.lqip,placeholder:"blur",width:80,height:60}),(0,i.jsx)("p",{className:(0,n.Z)('before:float-right before:h-3 before:w-3 before:content-[""] xs:before:h-8 xs:before:w-8',"editorial-18 relative max-w-[250px] pl-12 text-left indent-[-24px] uppercase md:!pr-8 md:indent-[-32px] xs:pr-5"),children:a})]}),(0,i.jsx)("ul",{children:v.map(e=>{let{title:t,id:r}=e;return(0,i.jsxs)("li",{className:"mb-10 last:[&>ul>li]:last:border-b-0",children:[(0,i.jsx)("p",{className:"helvetica-10-400 mb-[30px] uppercase tracking-[.12em]",children:t}),(0,i.jsx)(S,{data:x(r),allergens:d,primaryColor:l})]},r)})})]})}function P(e){var l,t,r,a,b,j,y,N,I,C,S,A,T,P,Z,E,M,O,L,F,U,q,z,B,K,G,J,R;let $,{primaryColor:Y,secondaryColor:H,summaryDescription:X,pageData:Q}
1=e,V=(0,u.a)(1024),{getLocalStorageSummaryResult:W}=(0,g.c)(),ee=W(),{cartData:el,paymentData:et,activeService:er}=ee,ei=null==el?void 0:el.items[0],ea=null==ei?void 0:ei.selectedItems.map(e=>e.referenceId),eo=null==ei?void 0:ei.selectedItems.map(e=>e.restrictions).flat(),{data:en,loading:ed}=(0,d.TvZ)({skip:!ei||"gatherings"!==er,variables:{id:null==ei?void 0:ei.referenceId}}),{data:es,loading:ec}=(0,d.KQ6)({skip:!ei||"cookingClasses"!==er,variables:{id:null==ei?void 0:ei.referenceId}}),{data:eu,loading:em}=(0,d.lr8)({skip:!ea,variables:{ids:ea}}),{data:ev,loading:ep}=(0,d.lN3)({skip:!eo,variables:{ids:eo}}),{data:eh,loading:ex}=(0,d.lN3)({skip:!(null==el?void 0:null===(l=el.householdSettings)||void 0===l?void 0:l.restrictions),variables:{ids:null==el?void 0:null===(t=el.householdSettings)||void 0===t?void 0:t.restrictions}}),{data:ef,loading:eg}=(0,d.d$_)({skip:!(null==el?void 0:null===(r=el.householdSettings)||void 0===r?void 0:r.diets),variables:{ids:null==el?void 0:null===(a=el.householdSettings)||void 0===a?void 0:a.diets}}),eb=e=>{let{address:l,city:t,secondaryAddress:r,state:i,zipCode:a}=e;return"".concat(l).concat(r?", ".concat(r):"",",<br> ").concat(t,", ").concat(i,", ").concat(a)},ej=(null==et?void 0:et.order)?{service:(0,v.T)(null==et?void 0:et.order.service),discount:(0,v.T)(null==et?void 0:et.order.discount),groceries:(0,v.T)(null==et?void 0:et.order.grocery),tip:(0,v.T)(null==et?void 0:et.order.tip),travel:(0,v.T)(null==et?void 0:et.order.travel),tax:(0,v.T)(null==et?void 0:et.order.tax),total:(0,v.T)(null==et?void 0:et.order.total)}:null,ey=(null==et?void 0:et.customer)&&(null==et?void 0:et.order.cart)?{name:"".concat(null==et?void 0:et.order.cart.firstName," ").concat(null==et?void 0:et.order.cart.lastName),email:null==et?void 0:et.customer.email,phone:et.order.cart.phone,billingAddress:eb(Object.keys(null===(j=et.order)||void 0===j?void 0:null===(b=j.cart)||void 0===b?void 0:b.billingAddress).length>0&&Object.values(null===(N=et.order)||void 0===N?void 0:null===(y=N.cart)||void 0===y?void 0:y.billingAddress).filter(Boolean).length>0?{...null===(C=et.order)||void 0===C?void 0:null===(I=C.cart)||void 0===I?void 0:I.billingAddress}:{address:et.order.cart.address,city:et.order.cart.city,state:et.order.cart.state,zipCode:et.order.cart.zipCode,secondaryAddress:et.order.cart.secondaryAddress})}:null,eN=(null==et?void 0:et.order)?{day:(null===(S=et.order.cart)||void 0===S?void 0:S.selectDay)?(0,x.$G)(null===(A=et.order.cart)||void 0===A?void 0:A.selectDay):null,numberOfGuests:(null===(T=et.order.cart)||void 0===T?void 0:T.guests)||null,time:(null===(P=et.order.cart)||void 0===P?void 0:P.time)?(0,x.Os)(null===(Z=et.order.cart)||void 0===Z?void 0:Z.time):null,date:"gatherings"===er||"cookingClasses"===er?(0,x._3)(null==et?void 0:null===(E=et.order.cart)||void 0===E?void 0:E.date):null,startDate:"mealPrep"===er?(0,x._3)(null==et?void 0:null===(M=et.order.cart)||void 0===M?void 0:M.date):null,guestArrivalTime:(null===(O=et.order.cart)||void 0===O?void 0:O.arrivalTime)?(0,x.hK)(null===(L=et.order.cart)||void 0===L?void 0:L.arrivalTime):null,dinnerTime:(null===(F=et.order.cart)||void 0===F?void 0:F.dinnerTime)?(0,x.hK)(null===(U=et.order.cart)||void 0===U?void 0:U.dinnerTime):null,address:eb({address:et.order.cart.address,city:et.order.cart.city,state:et.order.cart.state,zipCode:et.order.cart.zipCode,secondaryAddress:et.order.cart.secondaryAddress}),additionalNotes:(null===(q=et.order.cart)||void 0===q?void 0:q.additionalNotes)||null}:null,ew=ed||ec||em||ep||eg||ex;"gatherings"===er&&($=(0,s.o)(null==en?void 0:en.menu[0])),"cookingClasses"===er&&($=(0,s.p)(null==es?void 0:es.cookingClasses[0]));let eI=(0,o.M)("text",H),ek=ev?null===(z=(0,m.s9)(ev.allergens))||void 0===z?void 0:z.map(e=>(0,m.Y)(e)):null,eC=eh?eh.allergens.map(e=>e.title).join(", "):null,eS=eu?eu.dishes.map(e=>({id:e._id,title:e.title})):null,e_=ef?ef.diets.map(e=>e.title).join(", "):null,eA=(null==el?void 0:el.householdSettings)?{portions:(null==el?void 0:el.householdSettings.portions)||null,diets:e_||null,allergies:eC?eC+(0,h.J)(null===(B=el.householdSettings)||void 0===B?void 0:B.othersNote):(null===(K=el.householdSettings)||void 0===K?void 0:K.othersNote)?null===(G=el.householdSettings)||void 0===G?void 0:G.othersNote:null,specialInstructions:(null==el?void 0:null===(J=el.householdSettings)||void 0===J?void 0:J.additionalInformation)||null}:null;
1return el&&et&&ei&&ee?!ew&&!ew&&(en||es||eu||ev||ef||eh)&&er?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.U,{title:Q.metaData.title,description:Q.metaData.description,images:(null===(R=Q.metaData)||void 0===R?void 0:R.image)?[Q.metaData.image]:[],noIndex:!0}),(0,i.jsx)("section",{className:(0,n.Z)(eI,"container mt-7 pb-8 md:mt-20 md:pb-32"),children:(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[(0,i.jsxs)("div",{className:"mb-14 text-center lg:mb-11",children:[(0,i.jsx)("h2",{className:"editorial-32 lg:editorial-48 mb-[10px] lg:mb-5",children:"Thank you for booking!"}),(0,i.jsx)(p.i,{className:"garamond-18 max-w-[625px] lg:mt-5",value:X,fontVariant:"small"})]}),(0,i.jsxs)("div",{className:"grid w-full gap-[30px] lg:grid-cols-[repeat(2,minmax(250px,1fr))]",children:[(0,i.jsxs)("div",{className:"order-2 flex flex-col gap-[30px] lg:order-1",children:[eA&&(0,i.jsx)(k,{title:"Diets & Allergies",data:eA,borderColor:H}),eN&&(0,i.jsx)(k,{title:"Service Details",borderColor:H,data:eN}),ey&&(0,i.jsx)(k,{data:ey,title:"Client Information",borderColor:H}),ej&&(0,i.jsx)(k,{data:ej,title:"Estimated Bill",borderColor:H}),("mealPrep"!==er||"mealPrep"===er&&V)&&(0,i.jsx)(w,{primaryColor:H,textColor:Y})]}),(0,i.jsxs)("div",{className:"order-1 lg:order-2",children:["mealPrep"===er&&eS&&(0,i.jsx)(_,{dishesData:eS,borderColor:H,allergens:ek}),"mealPrep"!==er&&(0,i.jsx)(D,{menuData:$,borderColor:H,allergens:ek}),"mealPrep"===er&&!V&&(0,i.jsx)(w,{primaryColor:H,textColor:Y})]})]})]})})]}):(0,i.jsx)("div",{className:"flex h-[50vh] w-full items-center justify-center pt-10",children:(0,i.jsx)(c.U,{})}):null}var Z=t(26636),E=t(91541),M=t(31791),O=t(62785),L=t(34480);function F(){let e=(0,M._)(["*[_id in $refs]{\n _id,\n link,\n }"]);return F=function(){return e},e}let U=async e=>{if("object"!=typeof e||!e)return e;let l={},t=(e,r)=>{(null==e?void 0:e._type)==="reference"&&(l[r]=e._ref),"object"!=typeof e||null===e||Array.isArray(e)||Object.keys(e).forEach(l=>t(e[l],"".concat(r,".").concat(l))),Array.isArray(e)&&e.forEach((e,l)=>t(e,"".concat(r,"[").concat(l,"]")))};if(Object.keys(e).forEach(l=>t(e[l],l)),0===Object.keys(l).length)return e;let r=await L.L.fetch((0,O.Z)(F()),{refs:Object.values(l)}),i=(e,t)=>l[t]?r.find(e=>e._id===l[t]):"object"!=typeof e||null===e||Array.isArray(e)?Array.isArray(e)?e.map((e,l)=>i(e,"".concat(t,"[").concat(l,"]"))):e:Object.keys(e).reduce((l,r)=>({...l,[r]:i(e[r],"".concat(t,".").concat(r))}),{});return Object.keys(e).reduce((l,t)=>({...l,[t]:i(e[t],t)}),{})};async function q(e){let{data:l}=await e.query({query:d.JU$});if(!l.document||"Settings"!==l.document.__typename)throw Error("Something went wrong. Please check data model");let t=await U({...l.document});return(0,m.XN)(t)}async function z(e){let{data:l}=await e.query({query:d.w1K});if(!("title"in l.document))throw Error("Something went wrong. Please check data model");let{metaData:t,title:r,seo:i,settings:a}=await U({...l.document});return{title:r,seo:i,metaData:(0,m.wR)(t),allBookingServiceSettings:a.map(m.i)}}var B=t(57490),K=t(12496);function G(e){let{pageData:l}=e,{allBookingServiceSettings:t}=l,{getLocalStorageSummaryResult:r}=(0,g.c)(),a=r(),{secondaryColor:o,primaryColor:n}=(0,Z.U)(null==a?void 0:a.activeService,t),d=(0,K.n)(null==a?void 0:a.activeService,t);return(0,i.jsx)(P,{primaryColor:n,secondaryColor:o,summaryDescription:null==d?void 0:d.summaryDescription,pageData:l})}G.Layout=B.c,r=async e=>({props:{pageData:await z(e)}}),async e=>{let l=(0,E.i)();try{let[{props:t,redirect:i},a]=await Promise.all([r(l,e),q(l)]);if(i)return{redirect:i};return{props:{initialApolloState:l.cache.extract(),globalSettings:a,...t},revalidate:10}}catch(e){return{notFound:!0}}}},5037:function(e,l,t){t.d(l,{U:function(){return n}});var r=t(97458);t(52983);var i=t(74870),a=t(37249),o=t(90015);function n(e){let{title:l,description:t,images:n,article:d,recipe:s,noIndex:c,openGraphTitle:u,openGraphDescription:m}=e,{siteName:v,siteDescription:p}=(0,o.K)(),h={noIndex:c,description:t||p,images:n||i.nI.images,url:i.nI.url,siteName:v,ogTitle:"".concat(i.nI.siteName," | ").concat(l||i.nI.title)},x=Array.isArray(h.images)?h.images.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.url&&!!e.url).map(e=>({url:e.url,alt:e.alt||h.description||i.nI.description})):[],f=null,g=null;return d&&(f={url:"",title:"",images:[],datePublished:"",authorName:"",description:""}),s&&(g={name:"",description:"",authorName:"",ingredients:[],instructions:[]}),(0,r.jsxs)(r.Fragment,{children:[f&&(0,r.jsx)(a.dX,{...f}),g&&(0,r.jsx)(a.P8,{...g}),(0,r.jsx)(a.PB,{title:l,titleTemplate:"%s | ".concat(h.siteName),defaultTitle:"".concat(i.nI.title," | ").concat(h.siteName),description:h.description,noindex:c,nofollow:c,openGraph:{url:h.url,title:u||h.ogTitle,description:m||h.description,images:x.length?x:void 0,siteName:i.nI.siteName,locale:"en_US"},twitter:{site:i.nI.twitterSite,cardType:"summary_large_image"}})]})}},98644:function(e,l,t){t.d(l,{E:function(){return r}});function r(e,l,t){let r=l.filter(e=>e.title);return e.map(e=>{let l=r.find(l=>l.id===e),i=l?l.title:null;return t?"".concat(t," ").concat(i):i}).join(", ")}},73628:function(e,l,t){t.d(l,{J:function(){return r}});let r=(e,l)=>"".concat(e?", ".concat(l||""," ").concat(e):"")}}]);
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.