(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 a=e.i(902875),t=e.i(436028),l=e.i(581014),s=e.i(380993),n=e.i(368847),i=e.i(665488),r=e.i(336726),d=e.i(993269),o=e.i(859827);let c=()=>(0,a.jsxs)("span",{"aria-hidden":"true",className:"flex items-center",children:[(0,a.jsx)(r.ChevronDown,{className:"hidden h-4 w-4 transition-transform group-data-[state=open]:rotate-180 @xl/card:block"}),(0,a.jsx)(o.Plus,{className:"h-5 w-5 group-data-[state=open]:hidden @xl/card:hidden"}),(0,a.jsx)(d.Minus,{className:"hidden h-5 w-5 group-data-[state=open]:block @xl/card:group-data-[state=open]:hidden"})]}),h=({tips:e})=>{let t=(0,l.useTranslations)("AllergyTips");return e.length?(0,a.jsxs)(s.Card,{"data-testid":"AllergyTipsModule","aria-label":t("allergyTips"),children:[(0,a.jsx)("div",{className:"pb-4",children:(0,a.jsx)(n.default,{variant:"Title.S",children:t("allergyTips")})}),(0,a.jsx)(s.CardContent,{children:(0,a.jsx)(i.Accordion,{type:"multiple",defaultValue:["tip-0"],className:"flex flex-col gap-2",children:e.map((e,t)=>(0,a.jsxs)(i.AccordionItem,{value:`tip-${t}`,className:"rounded-lg bg-[#f2f2f2] px-4",children:[(0,a.jsx)(i.AccordionTrigger,{className:"gap-3 py-4 hover:text-gray-900",iconNodeOverride:(0,a.jsx)(c,{}),triggerContent:(0,a.jsxs)("span",{className:"flex items-center gap-3",children:[(0,a.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:t+1}),(0,a.jsx)("span",{className:"text-base font-bold text-gray-900",children:e.heading})]})}),(0,a.jsx)(i.AccordionContent,{className:"pb-4 pl-9 text-base text-gray-900",children:e.body})]},`${t}-${e.heading}`))})})]}):null},x=({tips:e})=>{if(!(0,t.hasLength)(e))return null;let l=[];for(let a of e)a.heading&&a.body&&l.push({heading:a.heading,body:a.body});return l.length?(0,a.jsx)(h,{tips:l}):null};e.s(["AllergyTipsBlockClient",0,x,"default",0,x],331540)},136535,function(e){e.n(e.i(331540))}]);