PageSourceSearch

https://www.theculinistas.com/_next/static/chunks/pages/customer/culinary-and-household-2a4bc5062d250298.js

js theculinistas.com collected 2026-10-04 16:35:28 UTC 23,045 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6775],{71837:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/culinary-and-household",function(){return i(77601)}])},34737:function(e,t,i){"use strict";i.d(t,{c:function(){return a},e:function(){return s}});var n=i(49122);let a={[n.w_F.Compost]:"Compost",[n.w_F.NoOutsideShoes]:"No outside shoes",[n.w_F.Recycle]:"Recycle",[n.w_F.SensitiveSmokeAlarm]:"Sensitive smoke alarm",[n.kmE.SensitiveSurfaces]:"Sensitive surfaces",[n.kmE.HandWashCertainItems]:"Hand-wash certain items",[n.kmE.StaffOnPremises]:"Staff on premises",[n.kmE.VentilationPreferences]:"Ventilation preferences",other:"Other"},s={[n.IFv.EasyOnTheSpices]:"Easy on the spices",[n.IFv.GrassFedMeat]:"Grass-fed meat",[n.IFv.HighHeatExtraSpicy]:"High heat/extra spicy",[n.IFv.LowHeatMildSpicy]:"Low heat/Mildly spicy",[n.IFv.LowOil]:"Less oil",[n.IFv.LowSalt]:"Low salt",[n.IFv.MediumHeatMediumSpicy]:"Medium heat/medium spicy",[n.IFv.NoCanolaVegetableOil]:"No vegetable oil",[n.IFv.NonGmo]:"Non-GMO",[n.IFv.Organic]:"Organic",[n.IFv.SauceOnTheSide]:"Sauce on the side",[n.IFv.WildCaughtSeaFood]:"Wild-caught seafood"}},33392:function(e,t,i){"use strict";i.d(t,{sW:function(){return c},tj:function(){return o},vK:function(){return r}});var n=i(49122),a=i(99068),s=i(99672),l=i(34737);let r={household:[{id:"household.".concat(n.w_F.NoOutsideShoes),type:"checkbox",name:"household.".concat(n.w_F.NoOutsideShoes),label:l.c[n.w_F.NoOutsideShoes]},{id:"household.".concat(n.w_F.Compost),type:"checkbox",name:"household.".concat(n.w_F.Compost),label:l.c[n.w_F.Compost]},{id:"household.".concat(n.w_F.Recycle),type:"checkbox",name:"household.".concat(n.w_F.Recycle),label:l.c[n.w_F.Recycle]},{id:"household.".concat(n.w_F.SensitiveSmokeAlarm),type:"checkbox",name:"household.".concat(n.w_F.SensitiveSmokeAlarm),label:l.c[n.w_F.SensitiveSmokeAlarm]}],householdWithAdditionalNotes:[{id:"householdWithAdditionalNotes.".concat(n.kmE.SensitiveSurfaces),type:"checkbox-with-textarea",name:"householdWithAdditionalNotes.".concat(n.kmE.SensitiveSurfaces),label:l.c[n.kmE.SensitiveSurfaces]},{id:"householdWithAdditionalNotes.".concat(n.kmE.StaffOnPremises),type:"checkbox-with-textarea",name:"householdWithAdditionalNotes.".concat(n.kmE.StaffOnPremises),placeholder:"Enter the name of any support staff with whom the chef may interact.",label:l.c[n.kmE.StaffOnPremises]},{id:"householdWithAdditionalNotes.".concat(n.kmE.VentilationPreferences),type:"checkbox-with-textarea",name:"householdWithAdditionalNotes.".concat(n.kmE.VentilationPreferences),placeholder:"E.g. open kitchen window in addition to running ventilation hood.",label:l.c[n.kmE.VentilationPreferences]},{id:"householdWithAdditionalNotes.".concat(n.kmE.HandWashCertainItems),type:"checkbox-with-textarea",name:"householdWithAdditionalNotes.".concat(n.kmE.HandWashCertainItems),placeholder:"List any items that must be handwashed, e.g. china, utensils, or servingware.",label:l.c[n.kmE.HandWashCertainItems]},{id:"householdWithAdditionalNotes.other",type:"checkbox-with-textarea",name:"householdWithAdditionalNotes.other",placeholder:"Anything else we should know about your home?",label:"Other"}]},o={householdWithAdditionalNotes:(0,a.Ry)().shape({[n.kmE.SensitiveSurfaces]:(0,a.Z_)().test("reqWhenChecked","Sensitive surfaces note is required when checked.",s.k),[n.kmE.StaffOnPremises]:(0,a.Z_)().test("reqWhenChecked","Staff on premises note is required when checked.",s.k),[n.kmE.VentilationPreferences]:(0,a.Z_)().test("reqWhenChecked","Ventilation preferences note is required when checked.",s.k),[n.kmE.HandWashCertainItems]:(0,a.Z_)().test("reqWhenChecked","Handwash certain items note is required when checked.",s.k),other:(0,a.Z_)().test("reqWhenChecked","Other note is required when checked.",s.k)})},c={culinaryPreferences:[{id:"culinaryPreferences.".concat(n.IFv.Organic),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.Organic),label:l.e[n.IFv.Organic]},{id:"culinaryPreferences.".concat(n.IFv.LowOil),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.LowOil),label:l.e[n.IFv.LowOil]},{id:"culinaryPreferences.".concat(n.IFv.NonGmo),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.NonGmo),label:l.e[n.IFv.NonGmo]},{id:"culinaryPreferences.".concat(n.IFv.NoCanolaVegetableOil),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.NoCanolaVegetableOil),label:l.e[n.IFv.NoCanolaVegetableOil]},{id:"culinaryPreferences.".concat(n.IFv.LowSalt),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.LowSalt),label:l.e[n.IFv.LowSalt]},{id:"culinaryPreferences.".concat(n.IFv.EasyOnTheSpices),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.EasyOnTheSpices),label:l.e[n.IFv.EasyOnTheSpices]},{id:"culinaryPreferences.".concat(n.IFv.GrassFedMeat),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.GrassFedMeat),label:l.e[n.IFv.GrassFedMeat]},{id:"culinaryPreferences.".concat(n.IFv.LowHeatMildSpicy),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.LowHeatMildSpicy),label:l.e[n.IFv.LowHeatMildSpicy]},{id:"culinaryPreferences.".concat(n.IFv.WildCaughtSeaFood),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.WildCaughtSeaFood),label:l.e[n.IFv.WildCaughtSeaFood]},{id:"culinaryPreferences.".concat(n.IFv.MediumHeatMediumSpicy),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.MediumHeatMediumSpicy),label:l.e[n.IFv.MediumHeatMediumSpicy]},{id:"culinaryPreferences.".concat(n.IFv.SauceOnTheSide),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.SauceOnTheSide),label:l.e[n.IFv.SauceOnTheSide]},{id:"culinaryPreferences.".concat(n.IFv.HighHeatExtraSpicy),type:"checkbox",name:"culinaryPreferences.".concat(n.IFv.HighHeatExtraSpicy),label:l.e[n.IFv.HighHeatExtraSpicy]},{id:"culinaryPreferences.other",type:"checkbox-with-input-field",name:"culinaryPreferences.other",label:"Other"}]}},99672:function(e,t,i){"use strict";i.d(t,{k:function(){return a},o:function(){return s}});var n=i(75738);function a(e){return void 0===e||"string"==typeof e&&e===n.W||"string"==typeof e&&!!e}let s=e=>/\S+@\S+\.\S+/.test(String(e).toLowerCase())},19821:function(e,t,i){"use strict";i.d(t,{I5:function(){return r},UA:function(){return s},Xh:function(){return l},aQ:function(){return d},aj:function(){return c},bh:function(){return o},p$:function(){return u}});
1var n=i(75738),a=i(49122);function s(e){let{household:t,householdWithAdditionalNotes:i}=e,n=t?Object.keys(t):[],a=i?Object.keys(i):[];return[...n.filter(e=>t[e]),...a.filter(e=>i[e]&&"NOT_CHECKED"!==i[e]).map(e=>({rule:e,note:i[e]}))]}function l(e){return e.reduce((e,t)=>(e[t]=!0,e),{[a.w_F.NoOutsideShoes]:!1,[a.w_F.Compost]:!1,[a.w_F.Recycle]:!1,[a.w_F.SensitiveSmokeAlarm]:!1})}function r(e,t){return e.reduce((e,t)=>(e[t.extendedHouseholdNote]=t.additionalInfo||n.W,e),{[a.kmE.StaffOnPremises]:n.W,[a.kmE.VentilationPreferences]:n.W,[a.kmE.HandWashCertainItems]:n.W,[a.kmE.SensitiveSurfaces]:n.W,other:t||n.W})}function o(e){let{culinaryPreferences:t}=e;return t?Object.keys(t).filter(e=>"other"!==e&&t[e]):[]}function c(e,t){return{...e.reduce((e,t)=>(e[t]=!0,e),{[a.IFv.EasyOnTheSpices]:!1,[a.IFv.GrassFedMeat]:!1,[a.IFv.HighHeatExtraSpicy]:!1,[a.IFv.LowHeatMildSpicy]:!1,[a.IFv.LowOil]:!1,[a.IFv.LowSalt]:!1,[a.IFv.MediumHeatMediumSpicy]:!1,[a.IFv.NoCanolaVegetableOil]:!1,[a.IFv.NonGmo]:!1,[a.IFv.Organic]:!1,[a.IFv.SauceOnTheSide]:!1,[a.IFv.WildCaughtSeaFood]:!1}),other:t||""}}function d(e,t){let{ingredientFlags:i}=e;return Object.keys(i||{}).filter(e=>i[e]&&t.find(t=>t.id===e)).map(e=>t.find(t=>t.id===e))}function u(e,t){return{...e.reduce((e,i)=>{var n;return e[i.id]=t.includes(null===(n=i.smlenum)||void 0===n?void 0:n.toUpperCase()),e},{})}}},15219:function(e,t,i){"use strict";i.d(t,{u:function(){return s}});var n=i(70967),a=i(52983);function s(){let{data:e}=(0,n.NTg)();return(0,a.useMemo)(()=>(null==e?void 0:e.allAllergen.filter(e=>!!e.smlenum))||[],[e])}},50570:function(e,t,i){"use strict";i.d(t,{o:function(){return l}});var n=i(97458),a=i(52983),s=i(14517);let l=(0,a.forwardRef)((e,t)=>{let{className:i,lighterOnMobiles:a=!1}=e;return(0,n.jsx)("hr",{ref:t,className:(0,s.Z)("border-t border-ar-culinista-black/40",i,{"border-ar-culinista-black/20 md:border-ar-culinista-black/40":a,"border-ar-culinista-black/40":!a})})})},89044:function(e,t,i){"use strict";i.d(t,{U:function(){return s}});var n=i(97458);i(52983);var a=i(55462);function s(e){let{className:t,size:i="medium",customSize:s=""}=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},s),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..."})]})}},52243:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(97458);i(52983);var a=i(15783),s=i(35031),l=i(14517);function r(e){let{items:t,primaryColor:i=a.bG.CulinistaBlack}=e;return(0,n.jsx)("ul",{className:"flex flex-wrap",children:t.map(e=>(0,n.jsx)("li",{className:(0,l.Z)("mr-[10px] border-r border-opacity-40 pr-[10px] last:mr-0 last:border-r-0 last:pr-0",(0,s.M)("border",i)),children:e},e))})}},2241:function(e,t,i){"use strict";i.d(t,{X:function(){return g}});var n=i(97458),a=i(52983),s=i(78906),l=i(15783),r=i(88786),o=i(92156),c=i(43359),d=i(14517),u=i(49122),h=i(71977),m=i(31165),f=i(10059),p=i(15913),v=i(39957);function y(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)(v.k,{icon:(0,n.jsx)(p.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 x=new Date;function g(e){let{children:t}=e,i=(0,c.a)(890),p=(0,m.Q)(),[v,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(x).setMonth(new Date(x).getMonth()+3)),serviceDateGreaterThan:new Date(x)}},onCompleted:async e=>{let{serviceList:t}=e;if(t.items.length>0){let e=t.items.sort((e,t)=>
1(0,h.EM)(e.serviceDate).getTime()-(0,h.EM)(t.serviceDate).getTime()).filter(e=>"CANCELLED_ENDED"!==e.serviceStatus)[0],i=(0,h.EM)(e.serviceDate);i.setHours(parseFloat(e.startTime.split(":")[0])),i.setMinutes(parseFloat(e.startTime.split(":")[1]));let n=Math.floor((i.getTime()-x.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 p.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 b=!!v.payment||!!v.mealPrep,N=Object.values(v).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)(r.W,{className:"border-b border-ar-culinista-black border-opacity-40",backgroundColor:l.bG.BeigeLight,textColor:l.bG.CulinistaBlack,keepColorThemeOnScroll:!0,mobileCta:{label:"Book a service",href:o.y.bookingService(),backgroundColor:l.bG.Navy,textColor:l.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)(f.U,{}),(0,n.jsxs)("main",{className:"max-w-full flex-1",children:[!!b&&(0,n.jsx)("div",{className:"px-[30px] pt-16 md:px-[118px]",children:(0,n.jsx)(y,{messages:N})}),(0,n.jsx)("div",{className:(0,d.Z)({"pt-16":!b,"pt-8":!!b}),children:t})]})]})})]}),(0,n.jsx)(s.a,{backgroundColor:l.bG.CulinistaBlack,textAndBorderColor:l.bG.NavyLight})]})}},57337:function(e,t,i){"use strict";i.d(t,{_:function(){return r}});var n=i(97458);i(52983);var a=i(14517),s=i(15783),l=i(35031);function r(e){let{children:t,className:i,descriptionClassName:r="mt-5",childrenClassName:o,title:c,customActionElement:d,titleRightElement:u,description:h}=e,m=(0,l.M)("border",s.bG.CulinistaBlack),f=(0,l.M)("text",s.bG.CulinistaBlack),p=c||h;return(0,n.jsxs)("section",{className:(0,a.Z)("mb-[60px] md:mb-[88px]",i),children:[p&&(0,n.jsx)("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between",children:(0,n.jsxs)("div",{className:"w-full",children:[c&&(0,n.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,n.jsx)("h3",{className:(0,a.Z)(f,"editorial-24 md:editorial-38"),children:c}),u&&(0,n.jsx)("div",{className:"mt-6 md:mt-0",children:u})]}),h&&(0,n.jsx)("p",{className:(0,a.Z)("garamond-16  mt-4 max-w-[680px] md:mt-6",r),children:h})]})}),t&&(0,n.jsxs)("div",{className:(0,a.Z)(m,"border border-opacity-40 p-6 md:p-8",p&&"mt-6 md:mt-8",o),children:[t,d&&(0,n.jsx)("div",{className:"ml-auto w-fit pt-8",children:d})]})]})}},54945:function(e,t,i){"use strict";i.d(t,{X:function(){return s}});var n=i(97458);i(52983);var a=i(89044);function s(e){let{title:t,loading:i,children:s}=e;return(0,n.jsxs)("div",{className:"lg:grid lg:grid-cols-[3fr_7fr] lg:gap-4",children:[(0,n.jsx)("p",{className:"helvetica-14-500 mb-2 lg:mb-0",children:t}),i?(0,n.jsx)(a.U,{}):(0,n.jsx)("div",{className:"helvetica-14-400",children:s})]})}},80250:function(e,t,i){"use strict";i.d(t,{e:function(){return s}});var n=i(97458);i(52983);var a=i(14517);function s(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){"use strict";i.d(t,{f:function(){return r}});var n=i(97458);i(52983);var a=i(37249),s=i(90015),l=i(74870);function r(e){let{title:t,description:i,images:r}=e,{siteName:o,siteDescription:c}=(0,s.K)(),d={description:i||c,images:r||l.nI.images,url:l.nI.url,siteName:o,ogTitle:"".concat(l.nI.siteName," | ").concat(t||l.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||l.nI.description})):[];return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.PB,{title:t,titleTemplate:"%s | ".concat(d.siteName),defaultTitle:"".concat(l.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:l.nI.siteName,locale:"en_US"}})})}},77601:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return L},default:function(){return T}});var n,a=i(97458),s=i(52983),l=i(49122),r=i(39957);function o(){return(o=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 c=function(e){return s.createElement("svg",o({width:15,height:15,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{d:"m9.13 5.125.745.744-7.188 7.173h-.729v-.729l7.173-7.188Zm2.85-4.75a.792.792 0 0 0-.553.23l-1.45 1.448 2.97 2.97 1.448-1.45c.31-.308.31-.823 0-1.116L12.543.605a.777.777 0 0 0-.562-.23ZM9.13 2.9.376 11.656v2.969h2.969L12.1 5.869 9.13 2.9Z",fill:"#000"})))},d=i(49588),u=i(50570),h=i(54945),m=i(52243),f=i(34737);function p(e){let{loading:t,culinarySettings:i,allergens:n}=e,{ingredientRestrictions:s,culinaryPreferences:l,otherCulinaryPreferences:o}=null!=i?i:{}
1,{openModal:p}=(0,d.ws)();return(0,a.jsxs)("div",{className:"p-2",children:[(0,a.jsx)(h.X,{title:"Ingredient Flags",loading:t,children:n&&s&&s.length>0?(0,a.jsx)(m.f,{items:n.filter(e=>{var t;return s.includes(null===(t=e.smlenum)||void 0===t?void 0:t.toUpperCase())}).map(e=>e.title)}):(0,a.jsx)("p",{className:"opacity-70",children:"You haven't chosen any dietary restrictions yet."})}),(0,a.jsx)(u.o,{className:"my-6 lg:my-10"}),(0,a.jsx)(h.X,{title:"Culinary Settings",loading:t,children:l&&l.length>0||o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.f,{items:l.map(e=>f.e[e])}),o&&(0,a.jsxs)("p",{className:"mt-2.5",children:[(0,a.jsx)("span",{className:"font-medium",children:"Notes: "}),o]})]}):(0,a.jsx)("p",{className:"opacity-70",children:"You haven't added any culinary notes yet."})}),(0,a.jsx)(u.o,{className:"my-6 lg:mb-8 lg:mt-10"}),(0,a.jsx)("button",{title:"Edit Culinary Settings",type:"button",onClick:()=>{p(d.Ti.EditCulinary)},className:"flex w-full justify-start gap-4 md:justify-end",children:(0,a.jsx)(r.k,{icon:(0,a.jsx)(c,{}),width:15,height:15})})]})}var v=i(2241),y=i(45537),x=i(57337),g=i(80250);function b(e){let{loading:t,householdSettings:i}=e,{basicHouseholdNotes:n,householdNotesWithAdditionalInfo:l,householdNotes:o}=null!=i?i:{},{openModal:p}=(0,d.ws)();return(0,a.jsxs)("div",{className:"p-2",children:[(0,a.jsx)(h.X,{title:"Household Settings",loading:t,children:n&&n.length>0||l&&l.length>0||o?(0,a.jsxs)(a.Fragment,{children:[n&&n.length>0&&(0,a.jsx)(m.f,{items:n.map(e=>f.c[e])}),(l&&l.length>0||o)&&(0,a.jsx)("ul",{children:[...l,o?{extendedHouseholdNote:"other",additionalInfo:o}:null].filter(Boolean).map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[(0!==t||n&&n.length>0&&0===t)&&(0,a.jsx)(u.o,{className:"my-4 lg:my-6",lighterOnMobiles:!0}),(0,a.jsx)("li",{children:"".concat(f.c[e.extendedHouseholdNote],": ").concat(e.additionalInfo)})]},e.extendedHouseholdNote))})]}):(0,a.jsx)("p",{className:"opacity-70",children:"You haven't added any household settings yet."})}),(0,a.jsx)(u.o,{className:"my-6 lg:my-10",lighterOnMobiles:!0}),(0,a.jsx)("button",{type:"button",title:"Edit Household Settings",onClick:()=>{p(d.Ti.EditHousehold)},className:"flex w-full justify-start gap-4 md:justify-end",children:(0,a.jsx)(r.k,{icon:(0,a.jsx)(c,{}),width:15,height:15})})]})}var N=i(98680),j=i(33392),k=i(38156),w=i(19821),S=i(59328);function F(e){let{initialCulinarySettings:t,setCulinarySettings:i,allergens:n}=e,s=(0,N.cI)({defaultValues:{culinaryPreferences:(0,w.aj)(t.culinaryPreferences,t.otherCulinaryPreferences),ingredientFlags:(0,w.p$)(n,t.ingredientRestrictions)}}),{closeModal:l}=(0,d.ws)(),{handleSubmit:r,reset:o}=s,c=e=>{o({culinaryPreferences:(0,w.aj)(e?e.culinaryPreferences:t.culinaryPreferences,e?e.otherCulinaryPreferences:t.otherCulinaryPreferences),ingredientFlags:(0,w.p$)(n,e?e.ingredientRestrictions:t.ingredientRestrictions)})},h=async e=>{let{culinaryPreferences:t,ingredientFlags:a}=e,s={culinaryPreferences:(0,w.bh)({culinaryPreferences:t}),ingredientRestrictions:Object.keys(a).filter(e=>n.find(t=>t.id===e)&&a[e]).map(e=>{var t;return null===(t=n.find(t=>t.id===e).smlenum)||void 0===t?void 0:t.toUpperCase()}),otherCulinaryPreferences:t.other||""};await i({variables:{input:s}}),l(),c(s)};return(0,a.jsx)(S.k,{modalId:d.Ti.EditCulinary,title:"Edit Culinary Settings",onSaveClickRaw:r(h),afterClose:c,children:(0,a.jsxs)("form",{className:"mb-12 pt-0 md:mb-20 md:pt-3",children:[(0,a.jsx)("p",{className:"helvetica-14-500",children:"Ingredient Flags"}),(0,a.jsx)("p",{className:"helvetica-14-400 pt-1 opacity-70",children:"Check all that apply."}),n&&(0,a.jsx)(k.Z,{className:"mt-8 grid grid-cols-2 gap-5 md:grid-cols-3 [&>div]:flex",inputs:n.map(e=>({id:"ingredientFlags.".concat(e.id),name:"ingredientFlags.".concat(e.id),type:"checkbox",label:e.title})),...s}),(0,a.jsx)(u.o,{className:"my-8 md:my-10",lighterOnMobiles:!0}),(0,a.jsx)("p",{className:"helvetica-14-500",children:"Culinary Preferences"}),(0,a.jsx)("p",{className:"helvetica-14-400 pt-1 opacity-70",children:"Check all that apply."}),(0,a.jsx)(k.Z,{className:"mt-8 grid grid-cols-2 gap-5 md:grid-cols-3 [&>div]:flex",inputs:j.sW.culinaryPreferences,...s})]})})}var I=i(57399),C=i(99068),P=i(75738);let E=(0,C.Ry)().shape({...j.tj});function O(e){var t,i;let{initialHouseholdSettings:n,setHouseholdSettings:s}=e,l=(0,N.cI)({defaultValues:{household:(0,w.Xh)(null!==(t=n.basicHouseholdNotes)&&void 0!==t?t:[]),householdWithAdditionalNotes:(0,w.I5)(null!==(i=n.householdNotesWithAdditionalInfo)&&void 0!==i?i:[],n.householdNotes)},resolver:(0,I.X)(E)}),{closeModal:r}=(0,d.ws)(),{handleSubmit:o,reset:c,trigger:u,formState:{isValid:h}}=l,m=e=>{var t,i;c({household:(0,w.Xh)(null!==(t=e?e.basicHouseholdNotes:n.basicHouseholdNotes)&&void 0!==t?t:[]),householdWithAdditionalNotes:(0,w.I5)(null!==(i=e?e.householdNotesWithAdditionalInfo:n.householdNotesWithAdditionalInfo)&&void 0!==i?i:[],e?e.householdNotes:n.householdNotes)}),u("householdWithAdditionalNotes")},f=async e=>{let{household:t,householdWithAdditionalNotes:i}=e;if(h){let e={basicHouseholdNotes:Object.keys(t).filter(e=>t[e]),householdNotesWithAdditionalInfo:Object.keys(i).filter(e=>"other"!==e&&i[e]!==P.W).map(e=>({additionalInfo:i[e],extendedHouseholdNote:e})),householdNotes:i.other===P.W?"":i.other};await s({variables:{input:e}}),r(),m(e)}};return(0,a.jsxs)(S.k,{modalId:d.Ti.EditHousehold,title:"Edit Household Settings",onSaveClickRaw:o(f),afterClose:m,children:[(0,a.jsx)("p",{className:"helvetica-14-500 pt-0 md:pt-3",children:"Household Settings"}),(0,a.jsx)("p",{className:"helvetica-14-400 pt-1 opacity-70",children:"Check all that apply."}),(0,a.jsxs)("form",{className:"mb-12 mt-8 md:mb-20",children:[(0,a.jsx)(k.Z,{className:"mb-5 grid gap-5",inputs:j.vK.household,...l}),(0,a.jsx)(k.Z,{className:"grid gap-5",inputs:j.vK.householdWithAdditionalNotes,...l})]})]})}var W=i(6241),H=i(15219);let _={culinaryPreferences:[],otherCulinaryPreferences:"",ingredientRestrictions:[]},M={basicHouseholdNotes:[],householdNotesWithAdditionalInfo:[],householdNotes:""};function A(e){var t;let{title:i}=e,{data:n,loading:s}=(0,l.jKW)(),[r]=(0,l.JzX)({refetchQueries:[l.D75]}),[o]=(0,l.mEZ)({refetchQueries:[l.D75]}),c=(0,H.u)(),d=c?c.map(W.Y):null,u=(null==n?void 0:n.customer.culinarySettings)||_,h=(null==n?void 0:null===(t=n.customer)||void 0===t?void 0:t.householdSettings)||M;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.f,{title:i}),(0,a.jsxs)(g.e,{children:[(0,a.jsx)(x._,{className:"min-w-[315px]",title:"Service Settings",description:"Ingredient flags will appear during dish selection so you can easily customize your dishes. Your chef will use your culinary settings to customize your service. You can change flags and settings below or while booking a service.",children:(0,a.jsx)(p,{loading:s,culinarySettings:u,allergens:d})}),(0,a.jsx)(x._,{className:"min-w-[315px]",children:(0,a.jsx)(b,{loading:s,householdSettings:h})})]}),n&&d&&(0,a.jsx)(F,{initialCulinarySettings:u,setCulinarySettings:r,allergens:d}),n&&(0,a.jsx)(O,{initialHouseholdSettings:h,setHouseholdSettings:o})]})}A.Layout=v.X;var L=!0,T=A}},function(e){e.O(0,[7249,1185,356,8156,2888,9774,179],function(){return e(e.s=71837)}),_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.