1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6107],{10778:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/allergens/[slug]",function(){return l(18463)}])},18463:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>j,default:()=>y});var a=l(37876),s=l(15039),n=l.n(s),r=l(4917),i=l.n(r),o=l(89033),d=l(89099),c=l(14232),u=l(626),x=l(95644),h=l(66497),p=l(69936),m=l(42007),f=l(33447),g=l(46637),v=l(85132),w=l(65432),b=l(93600),j=!0;function y(e){let{nutritionItems:t,popupNutritionItems:l,store:s}=e,{t:r}=(0,o.Bd)("nutrition"),w=(0,d.useRouter)(),{setLoading:j}=(0,m.L)(),{data:y,loading:N}=(0,g.tA)({latitude:Number.parseFloat(null==s?void 0:s.latitude),longitude:Number.parseFloat(null==s?void 0:s.longitude)}),_=N?[]:(null==y?void 0:y.map(e=>({...e.store,distance:e.distanceInMiles})))||[],A="string"==typeof w.query.scrollId?w.query.scrollId:"",S=e=>{j(!0);let t=new URLSearchParams;A&&t.set("scrollId",A);let l=t.size?"".concat(e,"?").concat(t.toString()):"".concat(e);w.push(l).then(()=>j(!1),()=>j(!1))},C=r("allergens"),[k,E]=(0,c.useState)(""),[I,L]=(0,c.useState)(k),[D,F]=(0,c.useState)(!1),T=(0,c.useMemo)(()=>(0,b.qF)(t,r),[t,r]),z=(null==l?void 0:l.length)?r("popup"):void 0,M=(0,c.useMemo)(()=>(0,b.qF)(l,r),[l,r]),R=[r("all_products"),...Array.from(new Set(T.map(e=>e.type))),...z?[z]:[]],q=R[0],[O,H]=(0,c.useState)(q);(0,c.useEffect)(()=>{let e=document.documentElement,{body:t}=document;return e.classList.add("overflow-hidden"),t.classList.add("overflow-hidden"),()=>{e.classList.remove("overflow-hidden"),t.classList.remove("overflow-hidden")}},[]),(0,c.useEffect)(()=>{let e=i()(()=>{L(k)},500);return e(),()=>{e.cancel()}},[k]),(0,c.useEffect)(()=>{R.includes(O)||H(q)},[q,O,R]);let V=e=>e.filter(e=>e.name.toLowerCase().includes(I.toLowerCase())),B=O===r("all_products")?V(T):z&&O===z?V(M):V(T).filter(e=>e.type===O);return(0,a.jsx)("div",{className:"fixed inset-x-0 top-[60px] sm:top-[80px] bottom-0 z-0 overflow-hidden bg-white",children:(0,a.jsx)("div",{className:"h-full max-w-screen-2xl mx-auto flex flex-col overflow-hidden",children:(0,a.jsxs)("div",{className:"flex flex-1 min-h-0 p-7 md:py-10 gap-0",children:[(0,a.jsx)("div",{className:"w-[180px] xl:w-[220px] flex-shrink-0 space-y-7 hidden lg:flex lg:flex-col overflow-y-auto pr-2",children:R.map(e=>{let t=O===e;return(0,a.jsx)("button",{type:"button",className:n()("py-2.5 px-4 rounded-lg cursor-pointer text-left w-full flex-shrink-0",t?"bg-primary":""),onClick:()=>{t||H(e)},children:(0,a.jsx)(p.A,{variant:"title2",className:"text-[22px] leading-[26px]",children:e})},e)})}),(0,a.jsx)("div",{className:"flex flex-col flex-1 min-h-0 min-w-0 lg:pl-6 lg:ml-6 lg:border-l lg:border-solid lg:border-black/10 xl:pl-12 xl:ml-12",children:(0,a.jsx)(v.A,{filteredItemData:B,selectedTab:C,loadingItemsData:!1,showNutritionFacts:!1,chrome:(0,a.jsxs)("div",{className:"pb-3",children:[(0,a.jsx)(p.A,{variant:"display3",className:"hidden md:block mb-5",children:r("allergen_info")}),(0,a.jsx)(p.A,{variant:"title2",className:"md:hidden mb-3",children:r("allergen_info")}),(0,a.jsx)(p.A,{variant:"body2",className:"mb-5 text-[16px] leading-[20px]",children:r("additional_nutrition_upon_request")}),(0,a.jsx)(p.A,{variant:"body2",className:"mb-5 text-[16px] leading-[20px]",children:r("food_allergy_text")}),(0,a.jsx)("div",{className:"flex justify-between gap-2 lg:hidden text-nowrap overflow-x-auto md:mb-3",children:R.map(e=>{let t=O===e;return(0,a.jsx)("button",{type:"button",className:n()("py-2.5 px-1 rounded-lg cursor-pointer text-left",t?"underline hover:cursor-default":"bg-white hover:bg-primary"),onClick:()=>{t||H(e)},children:(0,a.jsx)("span",{className:"".concat(t?"font-bold":"font-normal"),children:e})},e)})}),(0,a.jsx)("div",{className:"flex flex-col gap-1 md:hidden mb-3",children:(0,a.jsxs)("div",{className:n()("flex items-center",D?"gap-0":"gap-3"),children:[(0,a.jsx)("div",{className:n()("transition-all duration-300",D?"w-0 overflow-hidden":"w-full"),children:(0,a.jsx)(f.A,{storeName:s.name,allStoresAndSlugs:_,onStoreSelection:S})}),(0,a.jsx)("div",{className:n()("transition-all duration-300",D?"w-full":"w-[40px]"),children:(0,a.jsx)(h.A,{inputHeight:"h-[40px]",placeholder:D?r("search_product"):"",contentLeft:(0,a.jsx)(u.A,{className:"opacity-60 cursor-pointer",onClick:()=>F(!0)}),contentRight:D&&(0,a.jsx)(x.A,{onClick:()=>{F(!1),E("")}}),value:k,onChange:e=>E(e.target.value),"aria-label":r("start_type_to_search_products"),autoComplete:"on"})})]})}),(0,a.jsxs)("div",{className:"hidden md:flex gap-5 mb-8 flex-row",children:[(0,a.jsx)(f.A,{storeName:s.name,allStoresAndSlugs:_,onStoreSelection:e=>S(e)}),(0,a.jsx)(h.A,{inputHeight:"h-[40px]",placeholder:r("search_product"),contentLeft:(0,a.jsx)(u.A,{className:"opacity-60"}),value:k,onChange:e=>E(e.target.value),"aria-label":r("start_type_to_search_products"),autoComplete:"on"})]})]})})})]})})})}y.getLayout=e=>
1(0,a.jsx)(w.A,{footer:!1,overrideOpenGraphTitle:"Allergens | Crumbl",children:e})},33447:(e,t,l)=>{"use strict";l.d(t,{A:()=>h});var a=l(37876),s=l(87044),n=l(25895),r=l(15039),i=l.n(r),o=l(90893),d=l(96092),c=l(82170);let u=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20","aria-hidden":"true",...e,children:(0,a.jsx)("path",{fill:"currentColor",d:"M19.545 5.872 18.506 2.8C18.017 1.356 17.412.252 14.5.252h-9C2.588.252 1.983 1.356 1.495 2.8L.455 5.873c-.462 1.364-.119 2.816.795 3.772V16c0 2.418 1.332 3.75 3.75 3.75h10c2.418 0 3.75-1.332 3.75-3.75V9.644c.914-.956 1.256-2.408.795-3.772m-17.67.481L2.916 3.28c.344-1.018.517-1.529 2.584-1.529h9c2.067 0 2.24.511 2.585 1.529l1.04 3.072c.343 1.014-.02 2.104-.864 2.59-1.227.709-3.084.003-3.509-1.192a.75.75 0 0 0-.707-.5h-.003a.75.75 0 0 0-.706.505c-.296.853-1.3 1.496-2.336 1.496s-2.04-.643-2.336-1.496a.75.75 0 0 0-.706-.504c-.285.034-.604.199-.71.499-.304.855-1.313 1.5-2.349 1.5-.41 0-.812-.105-1.16-.307-.843-.486-1.207-1.576-.864-2.59M11.28 18.25h-2.5V15.5c0-.69.561-1.25 1.25-1.25.69 0 1.25.56 1.25 1.25zm3.72 0h-2.22V15.5a2.75 2.75 0 0 0-2.75-2.75 2.75 2.75 0 0 0-2.75 2.75v2.75H5c-1.577 0-2.25-.673-2.25-2.25v-5.446c1.47.432 3.206-.053 4.201-1.141a4.18 4.18 0 0 0 3.05 1.336 4.18 4.18 0 0 0 3.048-1.336 4.2 4.2 0 0 0 3.052 1.336 3.8 3.8 0 0 0 1.15-.183V16c0 1.577-.674 2.25-2.25 2.25"})});var x=l(69936);function h(e){let{storeName:t,allStoresAndSlugs:l,onStoreSelection:r}=e,h=l.findIndex(e=>{let{name:l}=e;return l===t}),p=e=>{let{index:t,key:n,style:o}=e;return(0,a.jsx)("div",{style:o,children:(0,a.jsx)(s.Dr,{children:(0,a.jsxs)("button",{id:n,className:i()("inline-flex items-center px-[15px] justify-between hover:bg-gray-50 text-left w-full",0!==t&&"border-t"),onClick:()=>{r(l[t].slug)},role:"menuitem",children:[l[t].name,h==t&&(0,a.jsx)(c.A,{className:"size-5"})]})})},n)};return(0,a.jsx)("div",{className:"md:w-80",children:(0,a.jsx)("div",{className:"relative inline-block w-full",children:(0,a.jsxs)(s.W1,{children:[(0,a.jsxs)(s.IU,{type:"button",className:"bg-white hover:bg-gray-50 h-[40px] w-full text-left text-nowrap text-ellipsis inline-flex items-center justify-between gap-x-1.5 rounded-lg px-[15px] text-sm font-semibold text-gray-900 shadow-xs ring-1 ring-inset ring-grey-20",id:"menu-button","aria-expanded":"true","aria-haspopup":"true",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{variant:"lineItem",children:t})]}),(0,a.jsx)(d.A,{})]}),(0,a.jsx)(n.e,{enter:"transition ease-out duration-75",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsx)(s.c,{className:"flex flex-col absolute max-h-48 overflow-y-auto right-0 z-50 w-full origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none","aria-orientation":"vertical","aria-labelledby":"menu-button",children:(0,a.jsx)(o.t$,{disableHeight:!0,children:e=>{let{width:t}=e;return(0,a.jsx)(o.B8,{width:t,height:400,rowHeight:40,rowRenderer:p,rowCount:l.length,overscanRowCount:7})}})})})]})})})}},93600:(e,t,l)=>{"use strict";l.d(t,{qF:()=>n});let a=/-\d+\s*oz$/i,s=/\s+\d+\s*oz$/i,n=(e,t)=>{let l=new Map;
1return(null!=e?e:[]).forEach(e=>{let t=(e=>"SODA"!==e.type?e.typeId:e.typeId.replace(a,"")||e.typeId)(e);l.has(t)||l.set(t,"SODA"===e.type?{...e,name:(e=>(null==e?void 0:e.replace(s,"").trim())||"")(e.name)}:e)}),[...l.values()].map(e=>({...e,type:((e,t)=>"DESSERT"===e?t("large_desserts"):"DESSERT_MINI"===e?t("mini_desserts"):"SODA"===e?t("soda"):void 0)(e.type,t)}))}}},e=>{e.O(0,[4e3,9555,893,1221,5432,5132,636,6593,8792],()=>e(e.s=10778)),_N_E=e.O()}]); 2//# sourceMappingURL=[slug]-597b458cc4cc3789.js.map
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.