(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,331540,e=>{"use strict";var t=e.i(458201),l=e.i(436028),a=e.i(538167),i=e.i(789422),s=e.i(380993),n=e.i(368847),r=e.i(665488),d=e.i(336726),c=e.i(993269),o=e.i(859827),h=e.i(815021);let p=()=>(0,t.jsxs)("span",{"aria-hidden":"true",className:"flex items-center",children:[(0,t.jsx)(d.f,{className:"hidden h-4 w-4 transition-transform group-data-[state=open]:rotate-180 @xl/card:block"}),(0,t.jsx)(o.f,{className:"h-5 w-5 group-data-[state=open]:hidden @xl/card:hidden"}),(0,t.jsx)(c.f,{className:"hidden h-5 w-5 group-data-[state=open]:block @xl/card:group-data-[state=open]:hidden"})]}),u=({tips:e})=>{let l=(0,i.r)("AllergyTips"),d=(0,h.f)(),[c,o]=(0,a.useState)(["tip-0"]);return e.length?(0,t.jsxs)(s.N,{"data-testid":"AllergyTipsModule","aria-label":l("allergyTips"),children:[(0,t.jsx)("div",{className:"pb-4",children:(0,t.jsx)(n.U,{variant:"Title.S",children:l("allergyTips")})}),(0,t.jsx)(s.O,{children:(0,t.jsx)(r.i,{type:"multiple",value:c,onValueChange:e=>{for(let t of e){if(c.includes(t))continue;let e=Number(t.replace("tip-",""));d("allergy-tips",`tip-${e+1}`)}o(e)},className:"flex flex-col gap-2",children:e.map((e,l)=>(0,t.jsxs)(r.O,{value:`tip-${l}`,className:"rounded-lg bg-[#f2f2f2] px-4",children:[(0,t.jsx)(r.P,{className:"gap-3 py-4 hover:text-gray-900",iconNodeOverride:(0,t.jsx)(p,{}),triggerContent:(0,t.jsxs)("span",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#252422] text-sm font-bold text-white",children:l+1}),(0,t.jsx)("span",{className:"text-base font-bold text-gray-900",children:e.heading})]})}),(0,t.jsx)(r.L,{className:"pb-4 pl-9 text-base text-gray-900",children:e.body})]},`${l}-${e.heading}`))})})]}):null},x=({tips:e})=>{if(!(0,l.f)(e))return null;let a=[];for(let t of e)t.heading&&t.body&&a.push({heading:t.heading,body:t.body});return a.length?(0,t.jsx)(u,{tips:a}):null};e.s(["AllergyTipsBlockClient",0,x,"default",0,x],331540)},136535,function(e){e.n(e.i(331540))},815021,e=>{"use strict";var t=e.i(538167),l=e.i(598513);e.s(["f",0,function(){let e=(0,l.f)();return(0,t.useCallback)((t,l)=>{e({moduleId:t,interactionType:"click",interactionElement:l},{flushImmediately:!0})},[e])}])}]);