(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 l=e.i(902875),i=e.i(155879),t=e.i(436028),n=e.i(581014),s=e.i(380993),r=e.i(37429);let a=({tips:e})=>{let i=(0,n.useTranslations)("AllergyTips");return e.length?(0,l.jsxs)(s.Card,{"data-testid":"AllergyTipsModule","aria-label":i("allergyTips"),children:[(0,l.jsx)(s.CardHeader,{text:i("manageYourAllergies")}),(0,l.jsx)(s.CardContent,{children:(0,l.jsx)("div",{className:"grid grid-cols-1 gap-x-6 gap-y-6 sm:grid-cols-2",children:e.map(e=>(0,l.jsxs)("div",{className:"flex items-start gap-4",children:[(0,l.jsx)(r.default,{src:e.iconUrl,alt:e.iconAlt,width:56,height:56,className:"h-14 w-14 shrink-0 rounded-full object-cover"}),(0,l.jsxs)("p",{className:"max-w-[18rem] text-sm",children:[(0,l.jsx)("strong",{children:e.heading})," — ",e.body]})]},`${e.iconUrl}-${e.heading}`))})})]}):null},o=({tips:e})=>{if(!(0,t.hasLength)(e))return null;let n=[];for(let l of e){let e=(0,i.isImageObject)(l.icon)?l.icon:null;e?.url&&l.heading&&l.body&&n.push({heading:l.heading,body:l.body,iconUrl:e.url,iconAlt:e.seo?.altText??""})}return n.length?(0,l.jsx)(a,{tips:n}):null};e.s(["AllergyTipsBlockClient",0,o,"default",0,o],331540)},136535,function(e){e.n(e.i(331540))},155879,e=>{"use strict";e.s(["isImageObject",0,function(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&null!==e.seo&&"object"==typeof e.seo&&"altText"in e.seo)}])}]);