PageSourceSearch

https://cdn.apopro.dk/2026-09-17-12-49-50/_next/static/chunks/3967-fcbeeb517723921d.js

js apopro.dk collected 2026-09-25 02:37:42 UTC 70,009 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3967],{131:(e,s,l)=>{"use strict";l.d(s,{g:()=>m});var t=l(95155),a=l(29722),r=l(98500),i=l.n(r),n=l(54921),o=l(68160),d=l(64826),c=l(44117);let m=({className:e,link:s,overrideLabel:l,tabIndex:r=0,onMouseOver:m,role:u,children:x,id:h,testId:p})=>{let{data:f}=(0,n.useSession)(),g=!!f?.user?.isMitIdAuthenticated,b=(0,o.o)(s,void 0,g);return b?(0,t.jsx)(i(),{...(0,d.s1)({testId:p}),className:(0,a.A)("focus-within:outline-4 focus-within:outline-offset-4 focus-within:outline-green-light",e),href:b.url??"",id:h,onMouseOver:m,prefetch:!0,rel:b.rel,role:u,tabIndex:r,target:b.newTab?"_blank":"",children:x||(0,t.jsx)(c.EE,{label:b.label,mobileLabel:b.mobileLabel??l})}):null}},3394:(e,s,l)=>{"use strict";l.d(s,{HeaderContextProvider:()=>i,u:()=>n});var t=l(95155),a=l(12115);let r=(0,a.createContext)(null),i=({children:e,initialIsMember:s=!1})=>{let[l,i]=(0,a.useState)(s);return(0,a.useEffect)(()=>{i(s)},[s]),(0,t.jsx)(r.Provider,{value:{isMember:l},children:e})},n=()=>{let e=(0,a.useContext)(r);if(!e)throw Error("useHeaderContext must be used within a HeaderContextProvider");return e}},9992:(e,s,l)=>{"use strict";l.d(s,{E:()=>i});var t=l(95155),a=l(29722);let r=(0,l(18460).F)("inline-flex items-center rounded-full border py-0.5 text-xs font-bold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 justify-center",{variants:{variant:{default:"border-transparent bg-green-dark text-sand-light",secondary:"border-transparent bg-green-dark-100 text-green-dark",tertiary:"border-transparent bg-green-light text-green-dark",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),i=({className:e,variant:s,round:l,...i})=>(0,t.jsxs)("div",{className:"relative w-fit",children:[(0,t.jsx)("div",{className:(0,a.A)(r({variant:s}),e,{"absolute -right-3 -top-2.5 z-1 select-none px-2":i.children,"w-[24px] px-[2px]":l,"w-fit px-2.5":!l}),...i,children:i.label}),i.children]})},11013:(e,s,l)=>{"use strict";l.d(s,{du:()=>o,hF:()=>d.h});var t=l(95155),a=l(29722),r=l(25397),i=l(89915);let n=(0,l(28196).r)({isMobile:!1}),o=({promoData:e,className:s})=>{let l=(0,i.m)(null,"background",e?.theme?.background),o=(0,i.m)(null,"color",e?.theme?.text);return(0,t.jsx)("div",{className:(0,a.A)("h-full rounded-br-[20px] rounded-tl-[20px] px-5 py-6 md:max-h-[392px]",s),style:{...o,...l},children:(0,t.jsx)("ul",{children:(0,t.jsx)(r.RK,{components:n,value:e?.elements})})})};var d=l(38355)},16627:e=>{e.exports={content:"Header_content__LsC2F",button:"Header_button__6oMTZ"}},21230:(e,s,l)=>{"use strict";l.d(s,{J:()=>n});var t=l(95155),a=l(29722),r=l(64826),i=l(7470);let n=({onClick:e,tabIndex:s,className:l,label:n="Luk",testId:o,containerClassName:d,iconSize:c=i.lK.Small,...m})=>(0,t.jsx)("div",{className:(0,a.A)("absolute right-6 top-6",d),children:(0,t.jsxs)("button",{className:(0,a.A)("rounded-full focus:outline-offset-2 focus:outline-green-light focus:ring-offset-2","hover:bg-green-dark-100 active:bg-green-dark-250"),...(0,r.s1)({testId:o}),onClick:e,tabIndex:s,type:"button",...m,children:[(0,t.jsx)(i.vf,{className:l,size:c}),(0,t.jsx)("span",{className:"sr-only",children:n})]})})},21642:(e,s,l)=>{"use strict";l.d(s,{_:()=>b,c:()=>x});var t=l(95155),a=l(19040),r=l(29722),i=l(33531),n=l(12115),o=l(32562),d=l(64826),c=l(68846),m=l(32201),u=l.n(m);let x=(e,s)=>({"aria-controls":e,"aria-expanded":s});var h=l(21230);let p=({overlayClassNames:e,...s})=>(0,t.jsx)("div",{...s,className:(0,r.A)("fixed left-0 top-0 h-full w-full bg-black",e)});var f=l(26381),g=l(26699);let b=({closeButtonClassName:e,id:s,testId:l,isOpen:m=!1,children:b,onClose:v,onAnimationEnd:j,theme:w="light",position:N="right",showOverlay:k=!0,ariaLabel:y,ariaLabelledBy:C,className:A,containerClassName:M,overlayClassName:_,contentClassName:E,fullScreen:S})=>{let L=((e,s,l,t)=>(0,r.A)(u().drawer,(0,r.A)("fixed z-1 md:h-full w-full max-w-[768px] overflow-hidden md:max-w-[392px] transform-gpu",{"top-0":l},{"h-full":l},{"h-[calc(100%-3.5rem)]":!l},{"top-14 md:top-0":!l},{"right-0":"right"===t}
1,{"left-0":"left"===t}),(0,r.A)({"md:rounded-tl-[48px] md:rounded-tr-none":"right"===t},{"md:rounded-tr-[48px] md:rounded-tl-none":"left"===t},{"rounded-t-md":!l}),"light"===e?"bg-sand-light":"bg-green-dark text-sand-light",s?[u().transitionOpen]:[u().transitionClose],s?"opacity-100":"opacity-0",(0,r.A)({"origin-top md:origin-left":"right"===t},{"origin-top md:origin-right":"left"===t},s?"translate-x-0 translate-y-0 md:translate-x-0 md:translate-y-0":(0,r.A)("translate-y-full md:translate-y-0",{"md:translate-x-full":"right"===t},{"md:-translate-x-full":"left"===t}))))(w,m,S,N),V=(0,r.A)("light"===w?"fill-green-dark":"fill-sand-light",{"!w-[37px] !h-[38px]":S}),I=(0,r.A)({[u().overlayOpen]:m,[u().overlayClose]:!m,"translate-y-full opacity-0":!m,"translate-y-0 opacity-70 ":m},_),O=(0,o._6)(()=>j?.(),150),D=(0,n.useCallback)(()=>{v(),O()},[O,v]);(0,f.i)(D,m),(0,g.K)(m);let q=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{if(!q.current)return;let e=e=>{e.target?.closest?.(`#${CSS.escape(s)} a`)&&D()},l=q.current;return l.addEventListener("click",e),()=>l.removeEventListener("click",e)},[s,D,m]),(0,t.jsx)(a.b,{children:(0,t.jsxs)("div",{...(0,d.s1)({testId:l}),"aria-label":C?void 0:y??"drawer","aria-labelledby":C,className:(0,r.A)("drawer relative z-dialog",A),id:s,inert:!m,ref:q,role:"dialog",children:[(0,t.jsx)("div",{className:(0,r.A)(L,M),children:(0,t.jsx)("div",{className:"h-full",children:(0,t.jsx)(i.FocusTrap,{active:m,focusTrapOptions:{returnFocusOnDeactivate:!1,initialFocus:!1,clickOutsideDeactivates:!0,escapeDeactivates:!0,fallbackFocus:"body"},children:(0,t.jsxs)("div",{className:"relative flex h-full flex-col",children:[(0,t.jsx)(h.J,{...(0,d.Mm)({testId:l},"close-button"),className:V,containerClassName:(0,r.A)("md:!right-5 md:top-5",e),label:c.u2.close,onClick:D,tabIndex:m?0:-1,...x(s,m)}),(0,t.jsx)("div",{className:(0,r.A)("h-full p-8 md:pr-[2.8rem]",E),children:b})]})})})}),k&&(0,t.jsx)(p,{onPointerDown:D,overlayClassNames:I})]})})}},26381:(e,s,l)=>{"use strict";l.d(s,{i:()=>a});var t=l(12115);let a=(e,s)=>{(0,t.useEffect)(()=>{let l=s=>{"Escape"===s.key&&(e(),s.preventDefault())};return s&&window?.addEventListener("keyup",l),()=>{window?.removeEventListener("keyup",l)}},[s,e])}},26699:(e,s,l)=>{"use strict";l.d(s,{K:()=>i});var t=l(12115);let a=0,r=()=>{a>0&&0==--a&&document.body.classList.remove("overflow-y-hidden")};function i(e){(0,t.useEffect)(()=>(e?1==++a&&document.body.classList.add("overflow-y-hidden"):r(),()=>{e&&r()}),[e])}},28196:(e,s,l)=>{"use strict";l.d(s,{r:()=>u});var t=l(95155),a=l(69242),r=l(29722),i=l(68160),n=l(23722),o=l(33287),d=l(33940);let c=({children:e})=>(0,t.jsx)("li",{className:"border-b-[1px] border-green-dark-250 pb-4 pt-4 last:border-0 last:pb-0",children:e}),m=({children:e,className:s,style:l})=>(0,t.jsx)(d.A7,{className:(0,r.A)("relative flex h-[106px] w-[204px] items-center border-green-dark-250 !px-4 after:absolute after:right-0 after:top-1/2 after:block after:h-3/5 after:w-[1px] after:-translate-y-1/2 after:bg-green-dark-250 first:rounded-bl-sm first:rounded-tl-sm last:rounded-br-sm last:rounded-tr-sm last:border-r-0 last:after:w-0",s),style:l,children:e}),u=({isMobile:e=!1,background:s,text:l})=>({types:{link:(({isMobile:e=!1,background:s,text:l})=>({value:r})=>{let n=(0,i.o)(r),d=(0,t.jsx)(o.default,{className:"w-full text-ellipsis !px-0 !font-sans !text-sm hover:!underline [&>span]:!line-clamp-2 [&>span]:!text-ellipsis [&>span]:!leading-[1.5]",prefetch:!0,...n,children:r.label});return(0,t.jsx)(e?m:c,{style:{...s,...l},children:e?d:(0,t.jsx)(a.N_,{asChild:!0,children:d})})})({isMobile:e,background:s,text:l}),logo:(({isMobile:e=!1,background:s,text:l})=>({value:a})=>(0,t.jsx)(e?m:c,{style:{...s,...l},children:(0,t.jsx)("div",{className:"relative h-8 max-h-12 w-full",children:(0,t.jsx)(n.s,{fill:!0,imgFit:"contain",sizes:"232px",src:a})})}))({isMobile:e,background:s,text:l}),textBlock:(({isMobile:e=!1,background:s,text:l})=>({value:a})=>(0,t.jsx)(e?m:c,{style:{...s,...l},children:(0,t.jsx)("span",{className:(0,r.A)("line-clamp-2 text-ellipsis text-sm",[{"max-w-[172px]":e}]),children:a.text})}))({isMobile:e,background:s,text:l})}})},31520:(e,s,l)=>{"use strict";l.d(s,{UserName:()=>u});var t=l(95155),a=l(65995),r=l(29722),i=l(73321),n=l(54921),o=l(12115),d=l(7182),c=l(68846),m=l(65488);let u=({name:e,signOutUrl:s,isMember:l,isSticky:u,isMobileApp:x})=>{let h=(0,a.mQ)(),p=(0,i.usePathname)(),f=(0,i.useSearchParams)(),g=(0,n.use
1Session)(),b=h&&g?.status==="authenticated"||!1,v=(0,o.useMemo)(()=>p.includes(d.q.profile.prescriptions())||p.includes(d.q.cpr())||p.includes(d.q.mitIdLogin())&&f.get("callbackUrl")===d.q.profile.prescriptions(),[p,f]);return(0,t.jsx)("div",{className:(0,r.A)("flex items-center overflow-hidden rounded-br-md text-sand-light transition-all duration-500 md:rounded-br-lg",{"max-h-0":u},{"mb-0":!v&&u},{"mb-6 mt-4 max-h-32":!v&&!u},{"mb-6 mt-4 max-h-40":v&&!u}),children:(0,t.jsxs)("div",{className:"container flex flex-col",children:[v&&(0,t.jsx)("span",{className:"font-mono text-sm font-medium",children:c.u2.viewPrescriptions}),e&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"data-hj-suppress max-w-[70%] hyphens-auto text-2xl md:text-3xl",children:`${c.u2.welcome} ${e}!`}),b&&!x&&(0,t.jsx)(m.ky,{className:"body1 h-[42px] max-w-56 !pl-0 !pr-0 underline md:mr-8 xl:mr-0",forceLogout:!0,large:!0,signOutUrl:s})]}),l&&(0,t.jsx)("span",{className:"text-sm text-green-dark-500",children:c.u2.apoproMember})]})]})})}},32201:e=>{e.exports={drawer:"Drawer_drawer__IVdcO",button:"Drawer_button__Z7wRK",transitionOpen:"Drawer_transitionOpen__hpr1u",transitionClose:"Drawer_transitionClose__adknM",overlayOpen:"Drawer_overlayOpen__uHG7A",overlayClose:"Drawer_overlayClose__B_0RM"}},36896:(e,s,l)=>{"use strict";l.d(s,{LogoHomeLink:()=>c});var t=l(95155),a=l(29722),r=l(98500),i=l.n(r),n=l(62950),o=l(68846),d=l(55392);let c=({isPreview:e,hidden:s,className:l,dataset:r,href:c,variant:m})=>{let{isMobileApp:u}=(0,n.NC)(),x="prod"===r;return(0,t.jsx)("div",{className:(0,a.A)("w-[146px] max-md:w-[114px]",{"md:!w-0 md:transition-[width]":s},l),children:(0,t.jsxs)(i(),{"aria-label":o.u2.apoproLogo,className:(0,a.A)("outline-offset-4 focus:border-green-light focus:outline-green-light",{"md:invisible":s}),href:c,onClick:e?e=>{e.preventDefault(),window.location.href=c}:void 0,prefetch:!e,children:[(0,t.jsx)(d.g,{className:"w-full",variant:m}),e&&(0,t.jsx)("span",{children:"Preview mode"}),!e&&!!r&&!x&&(0,t.jsx)("span",{children:u?"MOBILEAPP":r.toUpperCase()})]})})}},37371:(e,s,l)=>{"use strict";l.d(s,{d:()=>a});var t=l(9339);let a=(0,t.createServerReference)("00977f271a518b602eb1050e49edad4f7701c063a6",t.callServer,void 0,t.findSourceMapURL,"shouldAdvertiseMembership")},38355:(e,s,l)=>{"use strict";l.d(s,{h:()=>d});var t=l(95155),a=l(29722),r=l(25397),i=l(33940),n=l(89915),o=l(28196);let d=({promoData:e,className:s})=>{let l=(0,n.m)(null,"background",e?.theme?.background),d=(0,n.m)(null,"color",e?.theme?.text),c=(0,o.r)({isMobile:!0,background:l,text:d});return(0,t.jsx)("div",{className:(0,a.A)("absolute w-full",s),children:(0,t.jsx)(i.FN,{className:"max-w-screen rounded-sm md:w-[392px]",opts:{align:"start",dragFree:!0},screenReaderHeading:"Promotional box",screenReaderHeadingLevel:3,screenReaderItemLabel:"Promo box item",children:(0,t.jsx)(i.Wk,{className:"flex items-center pr-4",wrapperClassName:"sm:-ml-8 sm:pl-8 -ml-6 pl-6 sm:pr-10 pr-8",children:(0,t.jsx)(r.RK,{components:c,value:e?.elements})})})})}},55392:(e,s,l)=>{"use strict";l.d(s,{g:()=>r});var t=l(95155),a=l(88882);let r=({className:e,variant:s="light"})=>{let l="light"===s?a.T["green-dark"].DEFAULT:a.T["sand-light"];return(0,t.jsxs)("svg",{className:e,fill:"none",height:"34",viewBox:"0 0 146 34",width:"146",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8.805 26.8079C7.20765 26.8079 5.7375 26.4215 4.39779 25.6485C3.05807 24.8756 1.98727 23.7613 1.1902 22.3057C0.391526 20.8484 -0.0078125 19.0901 -0.0078125 17.0273V16.4477C-0.0078125 14.3866 0.397967 12.6282 1.20952 11.1709C2.02108 9.71527 3.09672 8.60098 4.43643 7.82807C5.77776 7.05516 7.23341 6.6687 8.805 6.6687C10.66 6.6687 12.0834 7.00363 13.077 7.67349C14.0689 8.34335 14.8096 9.10338 15.2991 9.95358H15.9174V7.20974H19.8222V21.7824C19.8222 22.5553 20.1829 22.9417 20.9043 22.9417H22.5274V26.2653H19.1652C18.2635 26.2653 17.5292 26.0076 16.9624 25.4923C16.3956 24.9771 16.1122 24.2815 16.1122 23.4055V23.135H15.5326C15.043 24.1397 14.283 25.0044 13.2525 25.7242C12.2219 26.4456 10.7405 26.8063 8.80661 26.8063H8.805V26.8079ZM9.92572 23.3298C11.6777 23.3298 13.1075 22.7759 14.217 21.668C15.3264 20.5602 15.8788 18.9757 15.8788 16.913V16.5652C15.8788 14.5299 15.3184 12.9583 14.1977 11.8488C13.077 10.741 11.6519 10.1871 9.92572 10.1871C8.19955 10.
11871 6.81475 10.741 5.69242 11.8488C4.57169 12.9567 4.01133 14.5299 4.01133 16.5652V16.913C4.01133 18.9741 4.57169 20.5602 5.69242 21.668C6.81314 22.7759 8.22371 23.3298 9.92572 23.3298Z",fill:l}),(0,t.jsx)("path",{d:"M25.4517 33.9979V7.20998H29.3565V9.95382H29.9748C30.4643 9.10362 31.205 8.34359 32.1969 7.67373C33.1888 7.00387 34.6123 6.66895 36.4689 6.66895C38.0662 6.66895 39.5283 7.0554 40.8568 7.82831C42.1836 8.60123 43.2528 9.71551 44.0644 11.1712C44.8759 12.6268 45.2817 14.3868 45.2817 16.4479V17.0276C45.2817 19.0903 44.8824 20.8487 44.0837 22.3043C43.285 23.76 42.2158 24.8743 40.8761 25.6472C39.5364 26.4201 38.0678 26.8065 36.4689 26.8065C35.2322 26.8065 34.1888 26.652 33.3386 26.3428C32.4884 26.0336 31.8056 25.6407 31.2904 25.1641C30.7751 24.6875 30.3629 24.1915 30.0537 23.6762H29.4354V33.9962H25.4517V33.9979ZM35.3079 23.33C37.0598 23.33 38.4897 22.7761 39.5992 21.6683C40.7086 20.5604 41.2609 18.976 41.2609 16.9133V16.5654C41.2609 14.5301 40.7006 12.9585 39.5799 11.8491C38.4591 10.7412 37.0341 10.1873 35.3079 10.1873C33.5817 10.1873 32.1969 10.7412 31.0746 11.8491C29.9539 12.9569 29.3935 14.5301 29.3935 16.5654V16.9133C29.3935 18.9744 29.9539 20.5604 31.0746 21.6683C32.1953 22.7761 33.6059 23.33 35.3079 23.33Z",fill:l}),(0,t.jsx)("path",{d:"M57.2841 26.8083C55.376 26.8083 53.682 26.4154 52.2006 25.6296C50.7192 24.8438 49.5534 23.7166 48.7016 22.2481C47.8514 20.7795 47.4263 19.0405 47.4263 17.0293V16.4496C47.4263 14.44 47.8514 12.7074 48.7016 11.2502C49.5518 9.79451 50.7176 8.66735 52.2006 7.86867C53.682 7.06999 55.376 6.67065 57.2841 6.67065C59.1923 6.67065 60.8911 7.06999 62.387 7.86867C63.8813 8.66735 65.0535 9.79612 65.9037 11.2502C66.7539 12.7058 67.179 14.4384 67.179 16.4496V17.0293C67.179 19.0389 66.7539 20.7795 65.9037 22.2481C65.0535 23.7166 63.8796 24.8438 62.387 25.6296C60.8927 26.4154 59.1906 26.8083 57.2841 26.8083ZM57.2841 23.2529C59.0361 23.2529 60.4595 22.6925 61.5561 21.5718C62.651 20.451 63.1985 18.8988 63.1985 16.9134V16.5655C63.1985 14.5817 62.6575 13.0295 61.5754 11.9071C60.4933 10.7864 59.0634 10.2261 57.2841 10.2261C55.5048 10.2261 54.1458 10.7864 53.0508 11.9071C51.9559 13.0279 51.4084 14.5801 51.4084 16.5655V16.9134C51.4084 18.8988 51.9559 20.4494 53.0508 21.5718C54.1458 22.6925 55.5563 23.2529 57.2841 23.2529Z",fill:l}),(0,t.jsx)("path",{d:"M69.5845 33.9979V7.20998H73.4893V9.95382H74.1076C74.5971 9.10362 75.3378 8.34359 76.3297 7.67373C77.3216 7.00387 78.7451 6.66895 80.6017 6.66895C82.199 6.66895 83.6611 7.0554 84.9896 7.82831C86.3164 8.60123 87.3856 9.71551 88.1972 11.1712C89.0087 12.6268 89.4145 14.3868 89.4145 16.4479V17.0276C89.4145 19.0903 89.0152 20.8487 88.2165 22.3043C87.4178 23.76 86.3486 24.8743 85.0089 25.6472C83.6692 26.4201 82.199 26.8065 80.6017 26.8065C79.365 26.8065 78.3216 26.652 77.4714 26.3428C76.6212 26.0336 75.9385 25.6407 75.4232 25.1641C74.9079 24.6875 74.4957 24.1915 74.1865 23.6762H73.5682V33.9962H69.5845V33.9979ZM79.4407 23.33C81.1927 23.33 82.6225 22.7761 83.732 21.6683C84.8414 20.5604 85.3938 18.976 85.3938 16.9133V16.5654C85.3938 14.5301 84.8334 12.9585 83.7127 11.8491C82.5919 10.7412 81.1669 10.1873 79.4407 10.1873C77.7145 10.1873 76.3297 10.7412 75.2074 11.8491C74.0867 12.9569 73.5263 14.5301 73.5263 16.5654V16.9133C73.5263 18.9744 74.0867 20.5604 75.2074 21.6683C76.3281 22.7761 77.7387 23.33 79.4407 23.33Z",fill:l}),(0,t.jsx)("path",{d:"M113.829 23.2511C115.581 23.2511 117.005 22.6908 118.101 21.5701C119.196 20.4493 119.744 18.8971 119.744 16.9116V16.5638C119.744 14.58 119.203 13.0278 118.121 11.9054C117.039 10.7847 115.609 10.2243 113.829 10.2243C112.05 10.2243 110.691 10.7847 109.596 11.9054C108.501 13.0262 107.954 14.5784 107.954 16.5638V16.9116C107.954 18.8971 108.501 20.4477 109.596 21.5701C110.691 22.6908 112.102 23.2511 113.829 23.2511ZM113.829 26.8065C111.921 26.8065 110.227 26.4136 108.746 25.6278C107.264 24.8421 106.099 23.7149 105.248 22.2464C104.398 20.7778 103.973 19.0388 103.973 17.0276V16.4479C103.973 14.4383 104.398 12.7057 105.248 11.2485C106.099 9.7928 107.264 8.66564 108.746 7.86696C110.227 7.06828 111.921 6.66895 113.829 6.66895C115.738 6.66895 117.436 7.06828 118.932 7.86696C120.427 8.66564 12
11.599 9.79441 122.449 11.2485C123.299 12.7041 123.724 14.4367 123.724 16.4479V17.0276C123.724 19.0372 123.299 20.7778 122.449 22.2464C121.599 23.7149 120.427 24.8421 118.932 25.6278C117.438 26.4136 115.736 26.8065 113.829 26.8065Z",fill:l}),(0,t.jsx)("path",{d:"M102.834 7.20667H95.7977C93.7076 7.20667 92.0137 8.90063 92.0137 10.9907V26.2638H95.9974V11.9569C95.9974 11.4239 96.4305 10.9907 96.9635 10.9907H102.834V7.20667Z",fill:l}),(0,t.jsx)("path",{d:"M142.413 7.16455H145.992V10.9486H138.827V10.7505C138.827 8.77156 140.434 7.16455 142.413 7.16455Z",fill:"#00A87E"}),(0,t.jsx)("path",{d:"M131.455 10.9482H127.875V7.16419L135.041 7.16419V7.36225C135.041 9.34123 133.434 10.9482 131.455 10.9482Z",fill:"#00A87E"}),(0,t.jsx)("path",{d:"M138.827 10.9482V18.1138H135.043V14.5342C135.043 12.5552 136.65 10.9482 138.629 10.9482H138.827Z",fill:"#00A87E"}),(0,t.jsx)("path",{d:"M135.042 7.16455V-0.000993729H138.827V3.57856C138.827 5.55754 137.22 7.16455 135.241 7.16455H135.042Z",fill:"#00A87E"})]})}},65488:(e,s,l)=>{"use strict";l.d(s,{ie:()=>a,ky:()=>t.ProfileButton});var t=l(66410);l(79698),l(31520);let a=2},66410:(e,s,l)=>{"use strict";l.d(s,{ProfileButton:()=>b});var t=l(95155),a=l(29722),r=l(12115),i=l(65995),n=l(73321),o=l(54921),d=l(83663),c=l(7182),m=l(33482),u=l(26388),x=l(96990),h=l(68846),p=l(37371),f=l(44117),g=l(75967);let b=({large:e,variant:s=f.Ak.Primary,subVariant:l,signOutUrl:b,icon:v,hideLogout:j=!1,className:w,forceLogout:N,id:k})=>{let{actions:y,label:C,disabled:A}=((e,s,l)=>{let t=(0,n.usePathname)(),a=(0,o.useSession)(),{consent:f}=(0,x.D)(),{dataLayer:g}=(0,u.i)(),b=(0,i.mQ)(),v=(0,n.useRouter)(),j=(0,r.useCallback)(e=>{f!==m.V1.NoConsent&&g.pushButtonClickEvent({event:"button_click",buttonText:e})},[f,g]);return(0,r.useMemo)(()=>"authenticated"===a.status&&t!==c.q.signout()?l||c.q.profile.isInProfile(t)&&!s?{actions:{url:b?`${e}&post_logout_redirect_uri=${encodeURIComponent(`${window.location.origin}${c.q.signout()}`)}`:"",onClick:()=>j(h.u2.logout),disabled:!b},label:h.u2.logout}:{actions:{onClick:async()=>{j(h.u2.header.myProfile);let[e]=await (0,p.d)(),s=e?c.q.membership.membershipSignIn({redirectUrl:c.q.profile.overview()}):c.q.profile.overview();v.push(s)}},label:h.u2.header.myProfile}:{actions:{onClick:()=>{(0,o.signIn)(d.J,{callbackUrl:c.q.handleLogin(t===c.q.auth.error()?c.q.home():t??c.q.home(),c.q.profile.overview())}),j(h.u2.login)}},label:h.u2.login},[a.status,t,s,b,e,j,l,v])})(b,j,N),M=(0,r.useMemo)(()=>e?{className:(0,a.A)("!gap-1 !px-4 text-center text-nowrap",w),subVariant:l}:{className:(0,a.A)("h-full !gap-1 !p-2 md:!p-3 text-nowrap",w),iconClassName:"w-[16px] h-[16px] md:w-[24px] md:h-[24px]",subVariant:f.mV.IconButton},[w,e,l]);return(0,t.jsx)(f.$n,{...y,...M,disabled:A,icon:v,id:k,variant:s,children:(0,t.jsx)(g.O,{label:C})})}},73611:e=>{e.exports={marquee:"MarqueeAnimation_marquee__mEU8E",content:"MarqueeAnimation_content__lokv0",scroll:"MarqueeAnimation_scroll__IsO0_"}},75967:(e,s,l)=>{"use strict";l.d(s,{O:()=>i});var t=l(95155),a=l(68846),r=l(3394);let i=({label:e,className:s})=>{var l;let i=(l=e,(0,r.u)().isMember&&l===a.u2.header.myProfile?l+"+":l);return(0,t.jsx)("p",{className:s,children:i})}},77911:(e,s,l)=>{"use strict";l.d(s,{Tag:()=>b});var t=l(95155),a=l(98500),r=l.n(a),i=l(12115),n=l(68160),o=l(64826),d=l(24550),c=l(87879),m=l(29722);let u={primary:"fill-sand-light",secondary:"fill-green-dark"},x={primary:"bg-green-dark text-white [&_svg]:hover:fill-green-dark",secondary:"bg-green-light text-green-dark",transparent:"bg-transparent text-green-dark border border-green-dark"},h=({color:e,id:s,testId:l,children:a,className:r})=>(0,t.jsx)("div",{...(0,o.s1)({testId:l}),className:(0,m.A)("body3 flex items-center justify-center gap-2 rounded-sm p-4 font-mono font-medium !leading-4 transition-all focus-within:outline-4 focus-within:outline-offset-4 focus-within:outline-green-light hover:bg-green-dark-250 hover:text-green-dark",x[e],r),id:s,children:a});var p=l(7470),f=l(43879);let g=({children:e,onDelete:s,color:l})=>(0,t.jsxs)("div",{className:"bg-gray-900 relative flex flex-row items-center justify-center gap-2 whitespace-nowrap rounded-lg !leading-4","data-dismissible":"chip",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)("button",{className:"rounded focus-within:outline-1 focus-within:outline-offset-1 focus-within:outline-green-light hover:bg-white/10 active:bg-white/30","data-dismissible-target":"chip",onClick:s,type:"button",children:(0,t.jsx)(f.B,{className:`${u[l]}`,size:p.lK.ExtraSmall})})]}),b=({children:e,className:s,color:l,onDelete:a,onCheckedChange:m,testId:u,id:x,link:p})=>{let f=(0,d.z)(x),[b,v]=(0,i.useState)(!1),j=(0,n.o)(p),w=(0,t.jsxs)(t.Fragment,{children:[a&&(0,t.jsx)(g,{color:l,onDelete:()=>{a&&a()},children:e}),m&&(0,t.jsx)(c.S,{checked:b,className:"[&>label]:!body3",id:`${f}-tag-checkbox`,label:e,onCheckedChange:e=>{m&&m(e),v(e)},reversed:!0,size:"small"}),!m&&!a&&(0,t.jsx)("div",{className:"body3 !leading-4",children:e})]});return j&&j.url?(0,t.jsx)(r(),{className:"rounded-sm leading-4 transition-all focus-within:outline-4 focus-within:outline-offset-2 focus-within:outline-green-light",href:j.url,prefetch:j.prefetch,rel:j.rel,target:j.newTab?"_blank":void 0,children:(0,t.jsx)(h,{...(0,o.Mm)({testId:u},"link"),className:s,color:l,id:f,children:j.mobileLabel??j.label})}):(0,t.jsx)(h,{className:s,color:l,id:f,testId:u,children:w})}},79698:(e,s,l)=>{"use strict";l.r(s),l.d(s,{Header:()=>
1eK});var t=l(95155),a=l(65995),r=l(29722),i=l(73321),n=l(54921),o=l(12115),d=l(11581),c=l(7182);let m=[c.q.basket(),c.q.profile.details.root(),c.q.profile.prescriptions()];var u=l(62950),x=l(64826),h=l(96661),p=l(69242),f=l(98500),g=l.n(f),b=l(68160),v=l(60828),j=l(23722),w=l(44117),N=l(209),k=l(33287);let y=({isOpen:e,promo:s,className:l,imgClassName:a,headingClassName:i,textContainerClassName:o,onButtonClick:d,id:c,testId:m})=>{let{data:u}=(0,n.useSession)(),h=!!u?.user?.isMitIdAuthenticated,p=(0,b.o)(s?.link,{event:"button_click",buttonText:s?.link?.label,blockTitle:s?.heading},h);return(0,t.jsxs)("div",{...(0,x.s1)({testId:m}),className:(0,r.A)("group relative mb-14 mt-16 flex flex-col flex-nowrap gap-4 xs:flex-row lg:flex-col",l),id:c,children:[p?.url&&(0,t.jsx)(g(),{...(0,x.pg)({testId:m},"editorial-focus-link"),"aria-label":p?.label,className:(0,r.A)("absolute inset-0 z-1 outline-none before:absolute before:inset-0 before:transition-[background] before:duration-300","focus-visible:before:outline focus-visible:before:outline-2 focus-visible:before:-outline-offset-0 focus-visible:before:outline-green-light"),href:p?.url??"",onClick:d,prefetch:!0,rel:p?.rel,tabIndex:e?0:-1}),(0,t.jsx)("div",{className:(0,r.A)("relative h-[140px] w-full before:block xs:w-[140px] md:w-full md:before:pt-[70%] lg:h-auto 3xl:before:pt-[100%]","overflow-hidden rounded-bl-sm rounded-tr-sm",a),children:(0,t.jsx)(j.s,{className:"!absolute left-0 top-0",height:140,imgFit:"cover",quality:50,roundedCorners:["tr","bl"],roundedSize:"base",sizes:(0,v.o)({md:"50vw"},"400px"),src:s?.image,width:140})}),(0,t.jsxs)("div",{className:(0,r.A)("flex flex-col justify-center xs:max-w-[170px] md:max-w-full",o),children:[s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.D,{className:(0,r.A)("text-2xl underline decoration-transparent transition-all group-hover:decoration-green-dark",i),level:3,children:s.heading}),(0,t.jsx)("p",{className:"mt-1 text-sm",children:s.text})]}),p&&p.url&&(0,t.jsx)(k.default,{className:"mt-2 !justify-start !p-0 !text-base focus-within:!outline-offset-2 group-hover:[&>span+svg]:translate-x-1",onClick:d,subVariant:w.mV.Link,tabIndex:e?0:-1,...p,children:p.label})]})]})};var C=l(11013);let A=({navItem:e,className:s})=>{let l=(0,i.usePathname)(),{data:a}=(0,n.useSession)(),o=!!a?.user?.isMitIdAuthenticated,d=(0,b.o)(e,void 0,o),c=d?.url===l;return(0,t.jsx)(p.N_,{active:c,asChild:!0,children:(0,t.jsx)(g(),{className:(0,r.A)("menu-link w-full border-b-[1px] border-green-dark-250 pb-3 !outline-offset-0",s),href:d?.url??"",prefetch:!0,rel:d.rel,target:d?.newTab?"_blank":"_self",children:d?.label})})},M=({selectedNavItem:e,isMenuOpen:s,onClose:l,promoBox:a})=>(0,t.jsx)("div",{className:"mb-14 mt-6 max-h-[60vh] min-h-[300px] w-full overflow-y-auto overflow-x-hidden 3xl:container",children:(0,t.jsxs)("div",{className:(0,r.A)("container grid h-full grid-cols-[_3fr_1fr_1fr_] gap-10"),children:[(0,t.jsx)("div",{className:"menu-sections",children:(0,t.jsx)("div",{className:(0,r.A)("pt-4",{"grid grid-cols-3 gap-10":e?.sections?.length!==1}),children:e?.sections?.map(s=>(0,t.jsx)("div",{className:"flex w-full flex-col gap-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:(0,r.A)({"columns-3":e?.sections.length===1}),children:s.link?.linkVariant?(0,t.jsx)(A,{className:"mono2 flex w-full border-b-[1px]",navItem:s.link},s.link?._key):(0,t.jsx)(N.D,{className:"mono2 border-b-[1px] border-green-dark-250 pb-3",level:2,children:s.heading})}),(0,t.jsx)("ul",{className:(0,r.A)({"columns-3":e?.sections.length===1}),children:s.links?.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(A,{className:"inline-block py-3 text-sm font-normal !leading-normal",navItem:e},e._key)},e._key))})]})},s._key))})}),a?.elements?.length&&(0,t.jsx)("div",{className:"col-start-2 mt-4 w-full",children:(0,t.jsx)(C.du,{promoData:a})}),(0,t.jsx)("div",{className:"menu-promo col-start-3 grid pt-4",children:e.editorialFocus&&(0,t.jsx)(y,{className:"!my-0 flex flex-col",headingClassName:"text-3xl",imgClassName:"w-full",isOpen:s,onButtonClick:l,promo:e.editorialFocus,textContainerClassName:"w-full max-w-none"})})]})}),_=({isVisible:e=!1,className:s,allowOpening:l})=>(0,t.jsx)("div",{className:(0,r.A)("pointer-events-none absolute left-0 h-screen w-full bg-black opacity-0 duration-700",{"opacity-0":!e,"pointer-events-auto opacity-50":e,"top-[calc(var(--header-h-lg)-16px)]":l,"top-[112px]":!l},s)});var E=l(131),S=l(94620);let L=({navigationItems:e,className:s,id:l,testId:i,promoBox:n,focusFallbackRef:d,allowOpening:c=!1})=>{let[m,u]=(0,o.useState)(""),[h,f]=(0,o.useState)(!1),g=()=>{u("")};return(0,o.useEffect)(()=>{c||(f(!1),u("")),f(!!m)},[m,c]),(0,a.ML)("resize",()=>{g()}),(0,o.useEffect)(()=>
1{if(h){let e=window.scrollY,s=()=>{window.scrollY-e>150&&g()};return document.addEventListener("scroll",s),()=>document.removeEventListener("scroll",s)}},[h,c]),(0,t.jsx)("div",{...(0,x.s1)({testId:i}),className:(0,r.A)("container",s),id:l,children:(0,t.jsxs)(p.bL,{className:(0,r.A)("!-ml-3 w-full xl:!-ml-5 [&>div:nth-child(2)]:duration-500 [&>div:nth-child(2)]:ease-in-out",{"[&>div:nth-child(2)]:-translate-y-[53px]":!c}),delayDuration:400,onValueChange:u,skipDelayDuration:300,value:m,children:[(0,t.jsx)(p.B8,{className:"m-0 flex w-full list-none",children:e.map((e,s)=>(0,S.V)(e)&&e?.sections?.length>0?(0,t.jsxs)(p.q7,{value:"item-"+s,children:[(0,t.jsxs)(p.l9,{...(0,x.pg)({testId:i},`link-${s}`),className:"mono2 group relative inline-flex text-nowrap !rounded-none px-2.5 py-2 !text-sm !opacity-100 focus-within:outline-4 focus-within:-outline-offset-1 focus-within:outline-green-light group-hover:!opacity-[75%] xl:px-5",children:[e.label,(0,t.jsx)("span",{className:"absolute bottom-0 left-2.5 block h-[3px] w-0 rounded-tr-full bg-green transition-[width] ease-linear [transition-duration:320ms] group-hover:w-10 group-data-[state=open]:w-10 motion-reduce:transition-none xl:left-5"})]}),(0,t.jsx)(p.UC,{className:(0,r.A)("absolute left-0 top-0 w-full min-w-full !text-green-dark data-[motion=from-end]:animate-enterFromRight data-[motion=from-start]:animate-enterFromLeft data-[motion=to-end]:animate-exitToRight data-[motion=to-start]:animate-exitToLeft sm:w-auto",m==="item-"+s?"":"-translate-y-[100vw]"),forceMount:!0,role:"dialog",children:(0,t.jsx)("div",{className:"m-0 grid w-full p-0",children:(0,t.jsx)(M,{focusFallbackRef:d,isMenuOpen:!!m,onClose:g,promoBox:n,selectedNavItem:e})})})]},e._id):(0,S.Q)(e)?(0,t.jsxs)(p.q7,{className:"group relative",value:"item-"+s,children:[(0,t.jsx)(E.g,{...(0,x.pg)({testId:i},`link-${s}`),className:"mono2 inline-flex text-nowrap !rounded-none px-2.5 py-2 !text-sm !opacity-100 focus:outline-4 focus:-outline-offset-1 focus:outline-green-light xl:px-5",link:e}),(0,t.jsx)("span",{className:"absolute bottom-0 left-2.5 block h-[3px] w-0 rounded-tr-full bg-green transition-[width] ease-linear [transition-duration:320ms] group-hover:w-10 group-data-[state=open]:w-10 motion-reduce:transition-none xl:left-5"})]},e._key):null)}),(0,t.jsx)("div",{className:(0,r.A)("absolute left-0 z-1 flex w-full overflow-hidden 3xl:left-1/2 3xl:m-auto 3xl:max-w-[90rem] 3xl:-translate-x-1/2"),children:(0,t.jsx)(p.LM,{className:(0,r.A)("relative z-10 h-[var(--radix-navigation-menu-viewport-height)] w-full origin-[top_center] overflow-hidden bg-sand-light transition-[width,_height] [transition-duration:250ms]","data-[state=closed]:animate-scaleOut data-[state=open]:animate-scaleIn")})}),(0,t.jsx)(_,{allowOpening:c,isVisible:h})]})})},V=({className:e,onClick:s,id:l,testId:a})=>(0,t.jsxs)("button",{...(0,x.s1)({testId:a}),className:(0,r.A)("group cursor-pointer focus-within:outline-4 focus-within:outline-offset-4 focus-within:outline-green-light",e),id:l,onClick:s,type:"button",children:[(0,t.jsxs)("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{className:"transition-all group-hover:scale-x-125 group-focus:origin-right group-focus:scale-x-0",d:"M18 4C18 5.34205 16.9121 6.43 15.57 6.43L-1.06219e-07 6.43L0 4L18 4Z",fill:"#073F3B"}),(0,t.jsx)("path",{className:"transition-all group-hover:scale-x-75 group-focus:scale-x-0",d:"M22.5 11.4301C22.5 12.7721 21.4121 13.8601 20.07 13.8601L-1.06219e-07 13.8601L0 11.4301L22.5 11.4301Z",fill:"#073F3B"}),(0,t.jsx)("path",{className:"transition-all group-hover:scale-x-125 group-focus:origin-right group-focus:scale-x-0",d:"M18 18.86C18 20.202 16.9121 21.29 15.57 21.29L-1.06219e-07 21.29L0 18.86L18 18.86Z",fill:"#073F3B"})]}),(0,t.jsx)("span",{className:"sr-only",children:"Open/close menu"})]});var I=l(91992),O=l(99734),D=l(65488),q=l(97265),z=l(68846);let H=({className:e,id:s,testId:l,isSearchOpen:a,onSearchClose:i,mobileSearchRef:n,searchInputDesktopRef:d,children:c})=>{let m=(0,o.useRef)(null);return(0,o.useEffect)(()=>
1{if(a){let e=window.scrollY,s=()=>{window.scrollY-e>150&&i()};return document.addEventListener("scroll",s),()=>document.removeEventListener("scroll",s)}},[a,i]),(0,t.jsx)("div",{...(0,x.s1)({testId:l}),"aria-hidden":!a,"aria-label":z.u2.searchSuggestions.base,"aria-live":"polite",className:(0,r.A)("container text-green-dark",e),id:s,ref:m,role:"dialog",children:(0,t.jsx)(p.bL,{asChild:!0,delayDuration:400,skipDelayDuration:300,value:a?"search-autocomplete":"",children:(0,t.jsxs)("div",{children:[(0,t.jsx)(p.q7,{asChild:!0,value:"search-autocomplete",children:(0,t.jsx)(p.UC,{className:"absolute left-0 top-0 w-full min-w-full sm:w-auto",onFocusOutside:e=>e.preventDefault(),onInteractOutside:e=>{if(e.preventDefault(),!(d.current?.contains(e.target)||n.current?.contains(e.target)))return i()},children:(0,t.jsx)("div",{className:"w-full",children:c})})}),(0,t.jsx)("div",{className:(0,r.A)("center absolute !top-[112px] left-0 right-0 z-50 mx-auto flex w-full overflow-hidden 3xl:w-[90rem]",{"border-t-[1px] border-t-green-dark-250 3xl:border-none":a}),children:(0,t.jsx)(p.LM,{className:(0,r.A)("relative h-[var(--radix-navigation-menu-viewport-height)] w-full origin-[top_center] overflow-hidden bg-sand-light transition-[width,_height] [transition-duration:250ms] sm:w-full","data-[state=closed]:animate-scaleOut data-[state=open]:animate-scaleIn")})}),(0,t.jsx)(_,{className:"!top-[112px]",isVisible:a})]})})})};var $=l(77911);let P=({id:e,testId:s,sections:l})=>{let{data:a}=(0,n.useSession)(),i=!!a?.user?.isMitIdAuthenticated,o=({n:e,isSectionWithTags:s})=>{let l=(0,b.o)(e,void 0,i);return l?.url?(0,t.jsx)("li",{children:s?(0,t.jsx)($.Tag,{color:"primary",link:e,children:(0,t.jsx)(w.EE,{label:e?.label,mobileLabel:e?.mobileLabel})},e._key):(0,t.jsx)(g(),{className:"body2 menu-link line-clamp-1",href:l?.url,children:(0,t.jsx)(w.EE,{label:l?.label,mobileLabel:l?.mobileLabel})})},e._key):null};return(0,t.jsx)("div",{...(0,x.s1)({testId:s}),className:"mx-auto mt-8 flex max-h-[calc(100vh-4rem-56px)] min-h-[300px] w-full flex-col gap-y-14 overflow-y-auto overflow-x-hidden pb-8 max-lg:container md:max-h-[60vh] lg:max-w-[610px] 2xl:my-12 3xl:my-14",id:e,children:l?.map((e,s)=>{let l=0===s;return(0,t.jsxs)("div",{children:[(0,t.jsx)(N.D,{className:(0,r.A)("body3 !font-semibold",{"sr-only":l,"mb-2 md:mb-6":!l}),level:2,children:e.title}),e.links&&(0,t.jsx)("ul",{className:(0,r.A)("flex flex-wrap",{"gap-1":l,"gap-x-3 gap-y-2":!l}),children:e.links.map(e=>(0,t.jsx)(o,{isSectionWithTags:l,n:e},e._key))})]},`search-section-${s}`)})})};var T=l(66609);let R=({search:e,searchTerm:s,testId:l})=>{let a=(0,b.o)(e?.noResultLinkBlock),r=e?.noResultsHeader??z.u2.searchSuggestions.noResults;return(0,t.jsxs)("div",{className:"container my-10 max-h-[60vh] min-h-[300px] w-full overflow-y-auto overflow-x-hidden 2xl:my-12 3xl:my-14",children:[(0,t.jsx)("p",{className:"heading4 pb-14",children:`${r} “${s}”`}),(0,t.jsx)("p",{className:"pb-6",children:e?.noResultsDescription}),a?.url&&(0,t.jsx)(k.default,{...(0,x.Mm)({testId:l},"link"),...a,className:"mt-4 !text-base lg:mt-10",subVariant:w.mV.Link,children:a.label})]})};var F=l(33940),B=l(22942),U=l.n(B),Z=l(70020),K=l(24550),W=l(32749),Q=l(827),Y=l(41719),J=l(30716),G=l(66381),X=l(18782),ee=l(70493),es=l(8600),el=l(18636);let et=({testId:e,id:s,className:l,name:a,mainImage:i,tracking:n,disableTracking:d,primaryLink:m,productId:u,raptorModuleName:h,tags:p,dosageTags:f,secondaryLink:b,isOutOfStock:v,brand:j,categories:w,campaignLabels:k,searchTerm:y,priceModels:C,isMemberOrder:A,onOpenMembershipDialog:M})=>{let _=(0,K.z)(s),E=(0,o.useMemo)(()=>(0,X.B)(p),[p]),S=(0,o.useMemo)(()=>{if(!f||0===f.length)return null;let e=f.join(", ");return(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("span",{className:"body4 line-clamp-2 text-ellipsis !leading-none",children:e})})},[f]);return(0,t.jsxs)("div",{...(0,x.s1)({testId:e}),className:(0,r.A)(l,"group relative flex h-[355px] w-[160px] min-w-[160px] flex-col gap-2 overflow-hidden"),id:s,tabIndex:-1,children:[(0,t.jsx)(es.A,{ariaLabel:`${a}-${z.u2.product}-link`,dataLayerTracking:n,disableTracking:d,primaryLink:m,productId:u,raptorModuleName:h,testId:e}),(0,t.jsxs)("div",{className:"relative flex h-[150px] min-h-[150px] w-full items-start justify-center rounded border border-green-dark-250 bg-white pt-8",children:[k&&(0,t.jsx)("div",{className:"absolute left-4 top-4 flex flex-col flex-wrap gap-2",children:k.map((e,s)=>(0,o.createElement)(Q.L,{...e,key:s,size:"small"}))}),(0,t.jsx)("div",{className:"flex h-[90px] w-[90px] items-center justify-center",children:i?(0,t.jsx)(Z.x,{...i,height:156,imgFit:"contain",loading:"lazy",quality:85,sizes:"156px",width:156}):(0,t.jsx)(J.u,{size:128})}),(0,t.jsx)(Y.Z,{...(0,x.Mm)({testId:e},"favorite"),className:"absolute right-4 top-4 z-50",id:`${_}-favorite-button`,packageId:Number(s)}),p&&(0,t.jsx)(el.h,{className:"absolute bottom-3 left-4 flex overflow-ellipsis !text-[11px]",font:"mono3",listClassName:"after:!top-0 after:!bottom-0",children:E})]}),(0,t.jsxs)("div",{className:"target flex flex-1 flex-col justify-between px-1",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[a&&(0,t.jsx)(N.D,{className:"body2 line-clamp-2 text-ellipsis !leading-none underline decoration-transparent underline-offset-2 transition-all duration-150 md:font-normal",level:3,children:(0,t.jsx)(U(),{autoEscape:!0,highlightClassName:"bg-transparent text-green-dark italic",searchWords:y?.split(" ")??[],textToHighlight:a})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[j&&(0,t.jsx)("div",{className:"relative z-50 mr-auto inline-flex",children:(0,t.jsx)(g(),{...(0,x.pg)({testId:e},"brand-link"),className:"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-green-light",href:c.q.products.byBrand(j.slug),children:(0,t.jsx)("span",{className:"mono3 z-10 block pb-1 hover:underline max-md:text-xxs",children:(0,t.jsx)(U(),{autoEscape:!0,className:"line-clamp-2 text-ellipsis",highlightClassName:"bg-transparent text-green-dark italic",searchWords:y?.split(" ")??[],textToHighlight:j?.name})})})}),S&&(0,t.jsx)("div",{children:S}),b&&b.url&&(0,t.jsx)("div",{className:"relative z-50 mt-1 flex",children:(0,t.jsx)(g(),{...(0,x.pg)({testId:e},"link"),className:"body4 product-card-link inline-block underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-green-light",href:b.url,children:b.text})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-start gap-1 md:mt-2",children:[(0,t.jsx)(ee.A,{isMemberOrder:A,onOpenMembershipDialog:M,priceModels:C}),v?(0,t.jsx)("div",{className:"flex w-full items-center justify-between",children:(0,t.jsx)(G.default,{...(0,x.Mm)({testId:e},"notification-button"),className:"!body3 h-[40px] w-full justify-center",iconClassName:"w-4",id:"notification-out-of-stock-button",productId:u})}):(0,t.jsx)(W.default,{...(0,x.Mm)({testId:e},"add-to-card"),buttonText:z.u2.addToBasket,className:"h-[40px]",disabled:v,iconClassName:"w-4",metadata:{name:a,mainImage:i,tags:p,dosageTags:f},price:C?.regularPrice?.pricePerUnit,productId:u,productInfo:{name:a,brand:j?.name,disableTracking:d,categories:w,pricePerUnit:C?.regularPrice?.pricePerUnit},raptorTrackingModuleName:h})]})]})]})};var ea=l(88856);let er=({id:e,testId:s,products:l,searchTerm:a,onSearchClose:r})=>{let{openDialog:n}=(0,ea.g)(),o=(0,i.useRouter)();return(0,t.jsxs)("div",{...(0,x.s1)({testId:s}),className:"grid grid-cols-1 gap-x-12 gap-y-2 md:gap-y-4",id:e,children:[(0,t.jsx)(w.$n,{className:"mono3 ml-auto gap-[0.4rem] !px-0 max-md:mr-6 [&>svg]:w-4",onClick:()=>{o.push(c.q.search({query:a})),r()},subVariant:w.mV.Link,children:z.u2.searchSuggestions.seeAllProducts}),(0,t.jsxs)(F.FN,{...(0,x.Mm)({testId:s},"carousel"),className:"[&>div+div]:-mb-2 [&>div>ul]:!mr-0",opts:{align:"start"},screenReaderHeading:z.u2.products,screenReaderHeadingLevel:3,screenReaderItemLabel:"Produkt",children:[(0,t.jsx)(F.Wk,{className:"mx-0 ml-auto max-w-[800px]",children:l?.map(e=>(0,t.jsx)(F.A7,{className:"flex !min-w-[auto] !basis-1/5 md:!pr-6 md:last:!pr-0",children:(0,t.jsx)(et,{...e,onOpenMembershipDialog:n,searchTerm:a})},e.id))}),(0,t.jsx)(F.lo,{className:"pr-6 2xl:pr-0"})]})]})},ei=({links:e,linkClassName:s,title:l,titleClassName:a})=>{let i=(0,r.A)("transition-colors [&>mark]:bg-transparent [&>mark]:italic [&>mark]:text-green-dark [&>mark]:transition-colors","group-hover:md:text-green-dark-500 [&>mark]:group-hover:md:text-green-dark-500","group-active:text-green-light [&>mark]:group-active:text-green-light group-active:md:text-green-light [&>mark]:md:group-active:text-green-light");return(0,t.jsxs)("div",{children:[(0,t.jsx)(N.D,{className:(0,r.A)("mono1",a),level:2,children:l}),(0,t.jsx)("ul",{className:"[@media(max-width:400px)]:[0.4rem] flex flex-col gap-y-[0.6rem] [@media(max-width:375px)]:gap-y-1",children:e.map(e=>{let l;return e.slug?(0,t.jsx)("li",{className:"max-md:[&:nth-child(5)]:hidden",children:(0,t.jsx)(g(),{className:(0,r.A)("group line-clamp-1 transition-colors focus-within:outline-4 focus-within:outline-offset-4 focus-within:outline-green-light","[@media(max-width:375px)]:!subheading3 [@media(max-width:400px)]:!subheading2 [@media(max-width:375px)]:leading-4",s),href:`/${e.slug}`,children:e.snippet?(0,t.jsx)("span",{className:i,dangerouslySetInnerHTML:(l=e.snippet,{__html:I.A.sanitize(l)})}):(0,t.jsx)("span",{className:i,children:e.name})})},e.slug):null})})]})};var en=l(35903);let eo=()=>(0,t.jsx)("div",{className:"container my-[1.7rem] max-h-[calc(100vh-10rem)] min-h-[300px] w-full overflow-y-auto overflow-x-hidden pr-0 md:my-10 md:max-h-[490px] lg:pr-8 2xl:my-12 3xl:my-14",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-[1fr_1.5fr] md:gap-4 lg:gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-8 md:gap-y-12",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 max-md:pr-6",children:[(0,t.jsx)(en.E,{className:"h-4 w-1/3"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(en.E,{className:"h-8 w-3/4"}),(0,t.jsx)(en.E,{className:"h-8 w-4/5"}),(0,t.jsx)(en.E,{className:"h-8 w-3/4"}),(0,t.jsx)(en.E,{className:"h-8 w-4/5"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 max-md:hidden max-md:pr-6",children:[(0,t.jsx)(en.E,{className:"h-4 w-1/3"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(en.E,{className:"h-8 w-3/4"}),(0,t.jsx)(en.E,{className:"h-8 w-4/5"}),(0,t.jsx)(en.E,{className:"h-8 w-3/4"})]})]})]}),(0,t.jsxs)("div",{className:"flex h-full flex-col gap-3 overflow-hidden",children:[(0,t.jsx)(en.E,{className:"ml-auto h-4 w-[160px] max-md:mr-6"}),(0,t.jsxs)("div",{className:"flex gap-6",children:[(0,t.jsx)(en.E,{className:"h-[335px] w-[160px] min-w-[160px]"}),(0,t.jsx)(en.E,{className:"h-[335px] w-[160px] min-w-[160px]"}),(0,t.jsx)(en.E,{className:"h-[335px] w-[160px] min-w-[160px]"}),(0,t.jsx)(en.E,{className:"h-[335px] w-[160px] min-w-[160px]"}),(0,t.jsx)(en.E,{className:"h-[335px] w-[160px] min-w-[160px]"})]})]})]})}),ed=({id:e,testId:s,search:l,searchTerm:r,isMobile:i,onSearchClose:n})=>{let c=(0,a.d7)(r,350),m=(0,o.useRef)(null),[u,p]=(0,o.useState)(void 0),[f,g]=(0,o.useState)(!1),[b,v]=(0,o.useState)(!0),j=async e=>
1{g(!0),m.current&&m.current.abort(),m.current=new AbortController;try{let s=await fetch(`${d.x.search}?query=${encodeURIComponent(e)}`,{signal:m.current.signal}),l=await s.json();p(l),g(!1),v(!1)}catch(e){"AbortError"!==e.name&&(T.oR.error(z.u2.somethingWentWrongMessage),g(!1),v(!1))}};(0,o.useEffect)(()=>{(0,h.a0)(c.trim(),D.ie)&&j(c)},[c]);let w=u?.suggestions?.categories,N=u?.suggestions?.brands,k=u?.suggestions?.products;return f&&b?(0,t.jsx)(eo,{}):w?.matches.length===0&&N?.matches.length===0&&0===k.length?(0,t.jsx)(R,{search:l,searchTerm:r}):(0,t.jsx)("div",{...(0,x.s1)({testId:s}),className:"container my-[1.75rem] max-h-[calc(100vh-10rem)] min-h-[300px] w-full overflow-y-auto overflow-x-hidden pr-0 md:my-10 md:max-h-[490px] lg:pr-8 2xl:my-12 3xl:my-14",id:e,children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-[1fr_1.5fr] md:gap-4 lg:gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-8 md:gap-y-12 max-md:pb-30 [@media(max-width:375px)]:gap-y-4 [@media(max-width:400px)]:gap-y-[1.2rem]",children:[w?.matches?.length>0&&(0,t.jsx)("div",{className:"max-md:pr-6",children:(0,t.jsx)(ei,{linkClassName:"heading3",links:w.matches,title:w.fieldDisplayName,titleClassName:"mb-4"})}),k&&i&&(0,t.jsx)("div",{className:"h-full",children:(0,t.jsx)("div",{className:"sticky top-0",children:(0,t.jsx)(er,{onSearchClose:n,products:k,searchTerm:r})})}),N?.matches?.length>0&&(0,t.jsx)("div",{className:"max-md:pr-6",children:(0,t.jsx)(ei,{linkClassName:"heading4",links:N.matches,title:N.fieldDisplayName,titleClassName:"mb-4"})})]}),k&&!i&&(0,t.jsx)("div",{className:"h-full",children:(0,t.jsx)("div",{className:"sticky top-0",children:(0,t.jsx)(er,{onSearchClose:n,products:k,searchTerm:r})})})]})})};var ec=l(33531),em=l(88882),eu=l(21230),ex=l(3821),eh=l.n(ex),ep=l(7470);let ef=({id:e,testId:s,className:l,inputClassName:a,onClick:n,onClose:d,onOpen:m,inputValue:h,onInputChange:p,isOpen:f,placeholder:g})=>{let b=(0,K.z)(e),v=(0,i.useRouter)(),j=(0,o.useRef)(null),w=(0,i.usePathname)(),{isMobileApp:N}=(0,u.NC)();return(0,o.useEffect)(()=>{f||j.current?.blur()},[f,w]),(0,t.jsxs)("form",{...(0,x.pg)({testId:s},"search"),action:c.q.search({query:h}),className:(0,r.A)(eh().search,N&&f&&"mt-8","group relative flex w-full items-center md:w-fit",l),id:b+"-search",method:"get",children:[(0,t.jsx)("input",{...(0,x.pg)({testId:s},"search-input"),"aria-autocomplete":"list","aria-controls":"search-suggestions","aria-expanded":f,"aria-haspopup":"dialog",autoComplete:"off",className:(0,r.A)(eh().input,"mono2 max-h-[48px] w-full rounded-[12px] !bg-sand-light !pl-[2.8rem] !pr-[1.8rem] text-green-dark placeholder-green-dark outline-offset-0 placeholder:text-xs sm:placeholder:text-sm md:pr-8","[&::-webkit-appearance]:border-none [&::-webkit-appearance]:outline-0 [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-cancel-button]:appearance-none",{"!pr-12":h},a),id:"search-input-desktop",name:"search",onChange:e=>p(e.target.value),onClick:m,onKeyDown:e=>{"Enter"===e.key&&e.preventDefault(),"Enter"===e.key&&h&&f&&(v.push(c.q.search({query:h})),d()),"Enter"!==e.key||h||m(),"Enter"===e.key&&h&&!f&&n()},placeholder:g||z.yc.searchPlaceholder,ref:j,role:"combobox",type:"search",value:h}),(0,t.jsx)("div",{className:"absolute left-4 top-1/2 h-[19px] w-[18px] -translate-y-1/2",children:(0,t.jsx)(ep.eS,{className:"absolute left-0 top-0 h-full w-full",color:em.T["green-dark"].DEFAULT,size:ep.lK.MediumSmall})}),f&&(0,t.jsx)(eu.J,{...(0,x.Mm)({testId:s},"close-button"),containerClassName:"!-right-8 !top-1/2 !-translate-y-1/2 h-full flex items-center justify-center",label:z.u2.closeSearch,onClick:d,tabIndex:0})]})};var eg=l(31228),eb=l.n(eg);let ev=({className:e,id:s,testId:l,search:a,searchValue:i,setSearchValue:n,onSearchOpen:o,isSearchOpen:d,onSearchClose:c,isSticky:m})=>{let u=(0,K.z)(s);return(0,t.jsx)("div",{...(0,x.s1)({testId:l}),className:"w-full text-green-dark",id:s,role:"search",children:(0,t.jsx)(ec.FocusTrap,{active:d,focusTrapOptions:{clickOutsideDeactivates:!0,initialFocus:!1,returnFocusOnDeactivate:!1,escapeDeactivates:!0,fallbackFocus:"body"},children:(0,t.jsxs)("div",{className:(0,r.A)(e,{"fixed left-0 top-0 z-20 h-screen w-screen flex-col bg-sand-light pt-8 md:hidden":d}),children:[(0,t.jsx)("div",{className:(0,r.A)("w-full",{container:d}),children:(0,t.jsx)(ef,{...(0,x.Mm)({testId:l},"search-input-mobile"),className:(0,r.A)("[&>input]:duration-700 [&>input]:ease-in-out",{"!w-[calc(100%-1.7rem)]":d,"!w-full":!d,"[&>
1input]:!h-[32px] [&>input]:!rounded-[8px] md:[&>input]:h-auto":m&&!d}),id:u+"-search-input-mobile",inputClassName:(0,r.A)(eb().safariInputNoMargin,"max-h-[42px]"),inputValue:i,isOpen:d,onClose:c,onInputChange:n,onOpen:o,placeholder:m&&!d?z.u2.header.search:null})}),d&&(0,t.jsx)("div",{className:e,id:"search-suggestions",children:(0,h.a0)(i.trim(),D.ie)?(0,t.jsx)(ed,{isMobile:!0,onSearchClose:c,search:a,searchTerm:i}):(0,t.jsx)(P,{className:"max-h-full",sections:a?.sections})})]})})})};var ej=l(8878),ew=l(21642),eN=l(26381),ek=l(26699),ey=l(88767);let eC=({items:e=[],className:s})=>{if(e&&0!==e.length)return(0,t.jsx)("aside",{className:(0,r.A)("mono3 w-full",s),children:(0,t.jsx)(ey.f,{containerClassName:"flex min-h-7 items-center",id:"top-marquee",items:e,separator:"dot",separatorClassName:"after:w-[3px] after:h-[3px]",testId:"top-marquee"})})},eA=({usp:e,isVisible:s=!0,imagePosition:l="left",hideTextOnMobile:a=!1,itemHeight:i=16})=>{let{width:n,height:d}=((e,s=16,l=100)=>(0,o.useMemo)(()=>{if(!e)return{width:l,height:s};let{dimensions:t}=(0,v.u)(e.asset?._ref);return t?.width&&t?.height?{width:Math.round(s*t.width/t.height),height:s}:{width:l,height:s}},[e,s,l]))(e?.image,i),c=(0,t.jsx)("div",{style:{width:`${n}px`,height:`${d}px`,maxWidth:"85px"},children:(0,t.jsx)(j.s,{height:d,imgFit:"contain",noPlaceholder:!0,quality:50,src:e?.image,width:n})});return(0,t.jsxs)(g(),{"aria-label":`${e?.link?.label}-link`,className:"flex items-center gap-2 font-mono text-xs focus-visible:outline-green-light",href:e?.link?.url??"",prefetch:!1,tabIndex:s?0:-1,children:["left"===l&&e?.image&&c,(0,t.jsx)("span",{className:(0,r.A)("font-mono text-xs",{"hidden md:block":a}),children:e.text}),"right"===l&&e?.image&&c]})},eM=({usps:e,interval:s=4e3,className:l})=>{let[a,i]=(0,o.useState)(0),[n,d]=(0,o.useState)(null),[c,m]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let l=setInterval(()=>{d(a),i((a+1)%e.length),m(!0);let s=setTimeout(()=>{d(null),m(!1)},1e3);return()=>clearTimeout(s)},s);return()=>clearInterval(l)},[a,e.length,s]),(0,t.jsx)("div",{className:(0,r.A)("relative h-[24px] w-full",l),children:e.map((e,s)=>(0,t.jsx)("div",{className:(0,r.A)("absolute inset-0 flex w-full items-center gap-2 font-mono text-xs transition-transform duration-1000 ease-in-out",{"z-20 translate-y-0":s===a&&c,"z-10 translate-y-0":s===a&&!c,"z-10 -translate-y-[35px]":s===n&&c,"pointer-events-none translate-y-[35px] opacity-0":s!==a&&s!==n}),children:(0,t.jsx)(eA,{isVisible:s===a&&!c,usp:e})},s))})},e_=({usps:e,rightUspPanel:s,className:l})=>{if(e&&0!==e.length&&s)return(0,t.jsx)("aside",{className:l,children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(eM,{className:"md:hidden",usps:[...e,{text:s.text,image:null,link:null}]}),(0,t.jsx)("div",{className:"hidden items-center gap-6 md:flex",children:e.map((e,s)=>(0,t.jsx)(eA,{usp:e},s))}),(0,t.jsx)("div",{className:"flex items-center gap-2 font-mono text-xs",children:(0,t.jsx)(eA,{hideTextOnMobile:!0,imagePosition:"right",itemHeight:24,usp:s})})]})})},eE=({topMarquee:e,uspHeader:s,variant:l})=>{let{isMobileApp:a}=(0,u.NC)();if(!a)return s?"dark"===l.color?(0,t.jsx)("div",{className:((0,r.A)(l.styles.base),"bg-green-dark"),children:(0,t.jsx)("div",{className:"container h-[49px] border-b-[1px] border-green-dark-250"})}):(0,t.jsx)(e_,{className:"container overflow-hidden border-b-[1px] border-green-dark-250 py-3 md:py-4 xl:px-0",...s}):(0,t.jsx)(eC,{className:(0,r.A)(l.styles.base),...e})};var eS=l(47575),eL=l(33482),eV=l(26388),eI=l(96990),eO=l(37371),eD=l(9992),eq=l(66410);let ez=({signOutUrl:e,onRxClick:s,badgeProps:l})=>(0,t.jsxs)("div",{className:"HeaderButtonsDesktop ml-auto hidden flex-nowrap justify-between gap-2 lg:flex",children:[(0,t.jsx)(w.$n,{className:"inline-flex !gap-1 !px-4",icon:"Prescription",onClick:s,subVariant:w.mV.Button,variant:w.Ak.Tertiary,children:z.u2.orderPrescriptionMedicine}),(0,t.jsx)(eq.ProfileButton,{hideLogout:!0,icon:"Profile",large:!0,signOutUrl:e,subVariant:w.mV.Button,variant:w.Ak.Tertiary}),(0,t.jsx)(eD.E,{...l,children:(0,t.jsx)(w.$n,{className:"!gap-1 !px-4",icon:"ShoppingCart",subVariant:w.mV.Button,url:c.q.basket(),variant:w.Ak.Tertiary,children:z.u2.header.basket})})]}),eH=({icon:e,label:s,url:l,onClick:a,className:i})=>{let n=(0,ep.ql)(e);return(0,t.jsx)("div",{className:"flex flex-col items-center",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("a",{className:(0,r.A)("group rounded-xs focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-light",i),href:l,onClick:a,children:(0,t.jsx)("div",{className:"rounded-xs bg-green-light p-2 group-hover:brightness-95 md:p-3",children:(0,t.jsx)(n,{className:"h-[16px] w-[16px] md:h-[24px] md:w-[24px]"})})}),(0,t.jsx)("span",{className:"w-full text-center text-xxs md:text-sm",children:s})]})})};var e$=l(75967);let eP=({signOutUrl:e,isDarkVariant:s,onRxClick:l,badgeProps:a,isUserMitIdAuthenticated:i})=>(0,t.jsxs)("div",{className:(0,r.A)("HeaderButtonsMobile flex flex-nowrap justify-between gap-2 lg:hidden",{"text-green-tertiary-dark":s}),children:[(0,t.jsx)(eH,{icon:"Prescription",label:z.u2.prescription,onClick:l}),(0,t.jsxs)("div",{className:"flex flex-col items-center lg:hidden",children:[(0,t.jsx)(eq.ProfileButton,{hideLogout:!0,icon:"Profile",id:z.u2.profile,signOutUrl:e,variant:w.Ak.Tertiary}),(0,t.jsx)(e$.O,{className:"text-center text-xxs md:text-sm [&>span]:sr-only",label:i?z.u2.header.myProfile:z.u2.login})]}),(0,t.jsx)(eD.E,{...a,children:(0,t.jsx)(eH,{icon:"ShoppingCart",label:z.u2.header.basket,url:c.q.basket()})})]}),eT=({signOutUrl:e,isUserMitIdAuthenticated:s,isDarkVariant:l})=>{let{basket:a}=(0,eS.M)(),n=a?.itemCount??0,{consent:o}=(0,eI.D)(),{dataLayer:d}=(0,eV.i)(),m=(0,i.useRouter)(),u={className:(0,r.A)({hidden:0===n}),round:!0,variant:l?"secondary":"default",label:n>9?"9+":n.toString()},x=async()=>
1{if(h(),!s)return m.push(c.q.rx.landing());let[e]=await (0,eO.d)(),l=e?c.q.membership.membershipSignIn({redirectUrl:c.q.profile.prescriptions()}):c.q.profile.prescriptions();m.push(l)},h=()=>{o!==eL.V1.NoConsent&&d.pushButtonClickEvent({event:"button_click",buttonText:z.u2.orderPrescriptionMedicine})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eP,{badgeProps:u,basketCount:n,isDarkVariant:l,isUserMitIdAuthenticated:s,onRxClick:x,signOutUrl:e}),(0,t.jsx)(ez,{badgeProps:u,onRxClick:x,signOutUrl:e})]})};var eR=l(36896),eF=l(31520),eB=l(16627),eU=l.n(eB),eZ=l(3394);let eK=({isPreview:e=!1,navigationItems:s,dataset:l,id:p,name:f,testId:g,signOutUrl:b,search:v,variant:j="light",topMarquee:w,uspHeader:N,promoBox:k})=>{let y=(0,o.useId)(),C=(0,K.z)(p),A=(0,o.useRef)(null),M=(0,o.useRef)(null),_=(0,o.useRef)(null),E=(0,o.useRef)(null),S=(0,i.usePathname)(),{isMobileApp:z}=(0,u.NC)(),$=z&&m.some(e=>S?.startsWith(e)),T=(0,O.U)("min-width","lg"),R=(0,O.U)("min-width","md"),[F,B]=(0,o.useState)(!1),U=(0,a.mQ)(),{isSearchOpen:Z,onSearchClose:W,onSearchOpen:Q,onOpenGlobalDrawer:Y,onCloseGlobalDrawer:J,isDrawerOpen:G,searchValue:X,onSearchInputChange:ee}=(()=>{let e=(0,i.usePathname)(),s=(0,i.useSearchParams)(),l=()=>e===c.q.search()?s.get("query")??"":"",[t,a]=(0,o.useState)(!1),[r,n]=(0,o.useState)(!1),[d,m]=(0,o.useState)(l()),u=(0,O.U)("min-width","lg"),x=(0,o.useCallback)(()=>{a(!0)},[]),h=(0,o.useCallback)(()=>{a(!1)},[]),p=(0,o.useCallback)(()=>{n(!0)},[]),f=(0,o.useCallback)(()=>{n(!1)},[]);return(0,o.useEffect)(()=>(window.addEventListener("resize",()=>{window.matchMedia("(min-width: 1024px)").matches&&h()}),()=>window.removeEventListener("resize",h)),[u,h]),(0,o.useEffect)(()=>{f()},[f,e]),(0,o.useEffect)(()=>{m(l())},[e]),{onOpenGlobalDrawer:x,onCloseGlobalDrawer:h,isDrawerOpen:t,onSearchOpen:p,onSearchClose:f,onSearchInputChange:e=>{r||p(),m(I.A.sanitize(e))},isSearchOpen:r,searchValue:d}})(),es=(0,n.useSession)(),el=(0,eZ.u)(),et=es?.data?.user?.isMitIdAuthenticated,ea="dark"===j,er=(0,o.useMemo)(()=>({base:ea?"bg-green-dark text-sand-light":"bg-sand-light text-green-dark",icon:ea?"[&>svg>path]:fill-sand-light":"[&>svg>path]:fill-dark-green"}),[ea]),ei=function(e){let s=(0,o.useRef)(null),[l,t]=(0,o.useState)([]),a=(0,o.useCallback)(()=>(null!==s.current||(s.current=(0,ej.createFocusTrap)([],{allowOutsideClick:!0,fallbackFocus:"body",clickOutsideDeactivates:!0,initialFocus:!1,returnFocusOnDeactivate:!0,escapeDeactivates:!0})),s.current),[]);return(0,o.useEffect)(()=>{a().updateContainerElements(l)},[l,a]),(0,o.useEffect)(()=>{e&&l.length?a().activate():a().deactivate()},[e,l,a]),(0,o.useCallback)(e=>(t(s=>[e,...s]),()=>t(s=>s.filter(s=>s!==e))),[t])}(Z&&!0===R);return((0,o.useEffect)(()=>{if(!U)return;let e=()=>{let e=window.scrollY;"dark"!==j&&B(e>0)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[U,j]),(0,ek.K)(Z&&!R),(0,eN.i)(W,Z),z&&S.startsWith(c.q.profile.prescriptions()))?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eE,{topMarquee:w,uspHeader:N,variant:{color:j,styles:er}}),(0,t.jsxs)("header",{...(0,x.s1)({testId:g}),className:(0,r.A)(eU().content,"Header top-0 border-green-dark-250 transition-all",er.base,Z&&!R?"z-dialog":"z-header",{"!sticky":!ea&&!z,"flex flex-col":ea,"drawer-nav-open":G&&!F,"delay-50 rounded-br-md transition-[border-radius] duration-500 md:rounded-br-lg":"dark"===j&&!F,"rounded-none transition-all duration-500":"dark"===j&&F}),id:p,ref:A,children:[(0,t.jsxs)("div",{className:(0,r.A)("relative flex flex-col pt-4 md:gap-0 md:pb-0 md:pt-0",er.base),children:[(0,t.jsxs)("div",{className:(0,r.A)({"lg:border-b-[1px]":!Z},{hidden:z},"HeaderContent container relative flex h-[52px] flex-nowrap items-center justify-between gap-5 border-green-dark-250 md:h-[112px] md:min-h-[112px] md:gap-6",er.base),children:[(0,t.jsxs)("div",{className:(0,r.A)("LogoAndSearch flex flex-1 flex-row flex-nowrap items-center gap-6 overflow-hidden max-md:-mr-[34px] [@media(max-width:374px)]:mr-0",{"!gap-0":Z}),children:[(0,t.jsx)(eR.LogoHomeLink,{className:(0,r.A)("z-10 overflow-hidden transition-transform",{"-translate-y-full delay-300 md:translate-y-0":F}),dataset:l,hidden:Z,href:e?`${d.x.disableDraft}?slug=${encodeURIComponent(S)}`:"/",isPreview:e,variant:j}),(0,t.jsx)("div",{className:(0,r.A)("mono2 hidden w-full items-center justify-center md:flex",{"mx-auto transition-all md:max-w-full lg:max-w-[610px]":Z}),ref:ei,children:(0,t.jsx)("div",{className:"w-full",ref:M,children:(0,t.jsx)(ef,{...(0,x.Mm)({testId:g},"search-input-desktop"),className:"!w-full",id:C+"-search-input-desktop",inputValue:X,isOpen:Z,onClose:W,onInputChange:ee,onOpen:Q})})})]}),(0,t.jsx)("div",{className:(0,r.A)("z-30",{hidden:Z}),children:(0,t.jsx)(eT,{isDarkVariant:ea,isUserMitIdAuthenticated:et,signOutUrl:b})}),(0,t.jsx)("div",{className:(0,r.A)("z-30 flex lg:hidden",{hidden:Z}),children:(0,t.jsx)(V,{className:(0,r.A)(er.icon,"rotate-180"),onClick:Y,...(0,x.Mm)({testId:g},"hamburger"),...p?{id:`${p}-hamburger`}:{},...(0,ew.c)(y,G)})})]}),!R&&!$&&(0,t.jsx)("div",{className:(0,r.A)("relative z-20 mb-4 mt-4 h-[42px] w-full transition-all md:hidden",er.base,{"!mt-0 mb-2 !h-0 delay-300":F}),children:(0,t.jsx)("div",{className:(0,r.A)("absolute flex px-6",F?"[transition:width_300ms_ease,bottom_500ms_ease_300ms]":"[transition:width_300ms_ease_300ms,bottom_500ms_ease_0ms]",{"w-full":z},{"bottom-4 !w-[calc(100%-192px)]":F&&et&&!z,"bottom-4 !w-[calc(100%-164px)]":F&&!et&&!z,"bottom-0 w-full":!F&&!z}),children:(0,t.jsx)(ev,{className:(0,r.A)("w-full",{}),isSearchOpen:Z,isSticky:F,onSearchClose:W,onSearchOpen:Q,search:v,searchValue:X,setSearchValue:ee})})}),(0,t.jsx)(L,{...(0,x.Mm)({testId:g},"desktop-nav"),allowOpening:!F,className:(0,r.A)("hidden h-[53px] overflow-hidden opacity-100 transition-all duration-500 ease-in-out lg:flex",{"text-sand-light":ea,"!h-0":F,"py-2":!F},er.base),focusFallbackRef:A,navigationItems:s,promoBox:k})]}),R&&(0,t.jsx)(H,{...(0,x.Mm)({testId:g},"desktop-search"),className:"hidden md:flex",headerRef:A,id:"search-suggestions",isSearchOpen:Z,mobileSearchRef:E,onSearchClose:W,search:v,searchInputDesktopRef:M,searchTerm:X,children:(0,t.jsx)("div",{ref:ei,children:(0,t.jsx)("div",{ref:_,children:(0,h.a0)(X.trim(),D.ie)?(0,t.jsx)(ed,{onSearchClose:W,search:v,searchTerm:X}):(0,t.jsx)(P,{sections:v?.sections})})})}),"dark"===j&&f&&(0,t.jsx)(eF.UserName,{isMember:el.isMember,isMobileApp:z,isSticky:F,name:f,signOutUrl:b})]}),!T&&(0,t.jsx)(ew._,{...(0,x.Mm)({testId:g},"drawer"),className:"lg:hidden",contentClassName:"!my-0 !p-6 [@media(min-width:424px)]:!p-8",fullScreen:!0,id:y,isOpen:G,onClose:J,overlayClassName:"lg:hidden",position:"right",showOverlay:!0,children:(0,t.jsx)(q.MobileNav,{...(0,x.Mm)({testId:g},"mobilenav"),isOpen:G,navigationItems:s,onCloseGlobalDrawer:J,promoBox:k})})]})}},87879:(e,s,l)=>{"use strict";l.d(s,{S:()=>f});var t=l(95155),a=l(29722),r=l(64826),i=l(68846),n=l(24550),o=l(47279),d=l(12115);let c="bg-white relative border border-primary flex",m="min-w-6 h-6 w-6 rounded-[8px]",u="min-w-4 h-4 w-4 roun
1ded-[6px]",x="h-4 w-4 rounded-[4px]",h="h-2 w-2 rounded-[3px] ",p=(0,d.forwardRef)(({className:e,size:s="normal",...l},r)=>{let i,n;return(0,t.jsx)(o.bL,{className:(0,a.A)((i=s,`hover:bg-green-dark-300 disabled:hover:bg-transparent transition-all ring-green-mid-100 focus-visible:border-green-mid-100 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-25 ${c} ${"normal"===i?m:u}`),e),ref:r,...l,children:(0,t.jsx)(o.C1,{className:(0,a.A)("flex h-full w-full items-center justify-center text-current"),children:(0,t.jsx)("div",{className:(0,a.A)("pointer-events-none absolute bg-green-dark",(n=s,`${"normal"===n?x:h}`))})})})});p.displayName=o.bL.displayName;let f=({label:e,className:s,id:l,checkboxIconClassName:o,size:d="normal",testId:c,reversed:m,labelClassName:u,...x})=>{let h=(0,n.z)(l);return(0,t.jsxs)("div",{...(0,r.s1)({testId:c}),className:(0,a.A)("flex items-center gap-2",{"flex-row-reverse":m},s),children:[(0,t.jsx)(p,{id:h,...x,...(0,r.pg)({testId:c},"checkbox-input"),"aria-label":`${e||"input"}-${i.u2.checkbox}`,className:o,size:d}),e&&(0,t.jsx)("label",{className:(0,a.A)("font-mono !leading-4",{"cursor-not-allowed opacity-25":x.disabled,body3:"normal"===d,body4:"small"===d},u),htmlFor:h,children:e})]})}},88767:(e,s,l)=>{"use strict";l.d(s,{f:()=>c});var t=l(95155),a=l(29722),r=l(12115),i=l(64826),n=l(73611),o=l.n(n);let d=({items:e,speed:s=4,itemClassName:l,ariaHidden:i,className:n,separator:d="rhombic",separatorClassName:c})=>(0,t.jsx)("ul",{"aria-hidden":i,className:(0,a.A)(o().content,n),style:{animationDuration:`${200/(s+1)}s`},children:e.map((e,s)=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("li",{className:(0,a.A)("relative",l),children:e}),(0,t.jsx)("li",{className:(0,a.A)("relative","after-left-1/2 after:absolute after:top-1/2 after:block after:h-2 after:w-2 after:-translate-x-1/2 after:-translate-y-1/2 after:bg-current",{"after:rounded-full":"dot"===d,"after:rounded-br-[3px] after:rounded-tl-[3px]":"rhombic"===d},c)})]},s))}),c=({id:e,testId:s,items:l,speed:r=4,containerClassName:n,className:c,itemClassName:m,separator:u="rhombic",separatorClassName:x})=>(0,t.jsxs)("div",{...(0,i.s1)({testId:s}),className:(0,a.A)(o().marquee,n),id:e,children:[(0,t.jsx)(d,{className:c,itemClassName:m,items:l,separator:u,separatorClassName:x,speed:r}),(0,t.jsx)(d,{ariaHidden:!0,className:c,itemClassName:m,items:l,separator:u,separatorClassName:x,speed:r})]})},94620:(e,s,l)=>{"use strict";l.d(s,{Q:()=>t,V:()=>a});let t=e=>"link"===e._type,a=e=>"navigationSectionDocument"===e._type},97265:(e,s,l)=>{"use strict";l.d(s,{MobileNav:()=>N});var t=l(95155),a=l(65995),r=l(29722),i=l(12115),n=l(64826),o=l(16627),d=l.n(o),c=l(44117),m=l(21642),u=l(7470),x=l(77514),h=l(131);let p=({isOpen:e,onOpenDrawer:s,isSubNavOpen:l,links:a,sections:i,drawerId:o,id:p,testId:f})=>(0,t.jsx)("div",{...(0,n.s1)({testId:f}),className:"",id:p,children:(0,t.jsxs)("div",{className:"h-full px-8",children:[(0,t.jsx)("ul",{className:"mt-4 flex flex-col",children:a.map((s,l)=>(0,t.jsx)("li",{className:"border-b-[1px] border-green-dark-250 pb-4 pt-4 first:pt-0",children:(0,t.jsx)(h.g,{...(0,n.Mm)({testId:f},`link-${l}`),className:"menu-link inline-flex w-full px-0 text-[1.425rem] text-base -outline-offset-1",link:s,tabIndex:e?0:-1})},s._key))}),(0,t.jsx)("ul",{children:i.map((a,i)=>(0,t.jsx)("li",{children:(0,t.jsx)(c.$n,{...(0,n.Mm)({testId:f},`buttonlink-${i}`),className:(0,r.A)("group flex w-full justify-between border-b-[1px] border-green-dark-250 !px-0 py-4 text-left first:w-full",d().button),onClick:()=>s(a._id),tabIndex:e?0:-1,...(0,m.c)(o,l),children:(0,t.jsxs)("span",{className:"flex w-full flex-nowrap items-center justify-between",children:[(0,t.jsx)("p",{className:"menu-group-link font-sans text-base",children:a.label}),(0,t.jsx)(x.y,{className:"-rotate-90 transition-all group-hover:translate-x-1 group-active:fill-green-light",size:u.lK.Small})]})})},a._id))})]})});var f=l(55392),g=l(11013);let b=({isOpen:e,drawerId:s,section:l,onReturn:a,className:o,id:p,testId:f,promoBox:b})=>{let[v,j]=(0,i.useState)(null),[w,N]=(0,i.useState)(!1),k=null!==v&&!w;return(0,t.jsxs)("div",{...(0,n.s1)({testId:f}),className:(0,r.A)("flex h-full flex-col",o),id:p,children:[(0,t.jsxs)("div",{className:"relative mb-4 flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:(0,r.A)("absolute inset-0 mt-10 overflow-y-auto transition-transform duration-300",k?"-translate-x-full":"translate-x-0"),children:[(0,t.jsx)("div",{className:"border-b border-green-dark-250",children:(0,t.jsx)(c.$n,{...(0,n.Mm)({testId:f},"back"),className:"w-full !justify-start !px-0 pb-4",onClick:a,tabIndex:k?-1:0,...(0,m.c)(s,e),children:(0,t.jsxs)("p",{className:"group flex flex-nowrap items-center gap-1 font-sans text-3xl",children:[(0,t.jsx)(x.y,{className:"rotate-90 transition-colors group-hover:fill-green-dark-500 group-active:fill-green-light",size:u.lK.Small}),(0,t.jsx)("span",{className:"menu-group-link text-left font-sansSemiBold text-base font-medium",children:l.label})]})})}),(0,t.jsx)("div",{className:"flex flex-col pb-8",children:l?.sections?.map((e,s)=>(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)(c.$n,{...(0,n.Mm)({testId:f},`buttonLink-${s}`),className:(0,r.A)("group flex w-full justify-between border-b border-green-dark-250 !px-0 py-4 text-left",d().button),onClick:()=>j(s),tabIndex:k?-1:0,children:(0,t.jsxs)("span",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("p",{className:"menu-group-link font-sans text-base",children:e.heading}),(0,t.jsx)(x.y,{className:"-rotate-90 transition-all group-hover:translate-x-1 group-active:fill-green-light",size:u.lK.Small})]})})},e._key))})]}),(0,t.jsx)("div",{className:(0,r.A)("absolute inset-0 mt-10 h-auto w-full overflow-y-auto transition-transform duration-300",k?"translate-x-0":"translate-x-full"),onTransitionEnd:e=>{w&&"transform"===e.propertyName&&(j(null),N(!1))},children:null!==v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex border-b border-green-dark-250",children:(0,t.jsx)(c.$n,{
1className:"mb-4 w-full !justify-start !px-0",onClick:()=>j(null),tabIndex:e?0:-1,children:(0,t.jsxs)("p",{className:"group flex flex-nowrap items-center gap-1 font-sans text-3xl",children:[(0,t.jsx)(x.y,{className:"rotate-90 transition-colors group-hover:fill-green-dark-500 group-active:fill-green-light",size:u.lK.Small}),(0,t.jsx)("span",{className:"menu-group-link text-left font-sansSemiBold text-base font-medium",children:l?.sections[v]?.heading})]})})}),(0,t.jsxs)("ul",{children:[l.sections[v]?.link?.linkVariant&&(0,t.jsx)("li",{className:"border-b border-green-dark-250 py-4",children:(0,t.jsx)(h.g,{...(0,n.Mm)({testId:f},`collapsiblelist-${v}-link`),className:"menu-link flex w-full text-base",link:l.sections[v].link,overrideLabel:"Se alt",tabIndex:e?0:-1})}),l.sections[v]?.links?.map(s=>(0,t.jsx)("li",{className:"border-b border-green-dark-250 py-4",children:(0,t.jsx)(h.g,{...(0,n.Mm)({testId:f},`collapsiblelist-${v}-links`),className:"menu-link flex w-full text-base",link:s,tabIndex:e?0:-1})},s._key))]})]})})]}),b?.elements?.length&&(0,t.jsx)("div",{className:"mb-8 h-[106px]",children:(0,t.jsx)(g.hF,{promoData:b})})]})},v=({onReturn:e,drawerId:s,sections:l,subNavDrawer:a,id:r,testId:o,promoBox:d})=>(0,t.jsxs)("div",{...(0,n.s1)({testId:o}),className:"h-full pt-5",id:r,children:[(0,t.jsx)("div",{className:"flex items-center [@media(min-width:424px)]:items-start",children:(0,t.jsx)(f.g,{className:"w-[114px]"})}),l.map((l,t)=>a.sectionId!==l._id?null:(0,i.createElement)(b,{...(0,n.Mm)({testId:o},`item-${t}`),drawerId:s,isOpen:a.open,key:l._id,onReturn:e,promoBox:d,section:l}))]});var j=l(94620),w=l(38355);let N=({isOpen:e,navigationItems:s,onCloseGlobalDrawer:l,id:o,testId:d,promoBox:c})=>{let u=(0,i.useId)(),[x,h]=(0,i.useState)({open:!1,sectionId:void 0}),g=()=>{h(e=>({...e,open:!1}))},b=(0,i.useMemo)(()=>s.filter(e=>(0,j.Q)(e)),[s]),N=(0,i.useMemo)(()=>s.filter(e=>(0,j.V)(e)&&e?.sections?.length>0),[s]);return(0,a.ML)("resize",g),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{...(0,n.s1)({testId:d}),className:(0,r.A)("grid h-full sm:pt-5",[{"grid-rows-[1fr_6fr_2fr]":c?.elements?.length},{"grid-rows-[72px_auto]":!c?.elements?.length}]),id:o,children:[(0,t.jsx)("div",{className:"flex w-fit items-center [@media(min-width:424px)]:items-start",children:(0,t.jsx)(f.g,{className:"w-[114px]"})}),(0,t.jsx)("div",{className:"scrollbar-0 -ml-8 -mr-8 overflow-y-auto",children:(0,t.jsx)(p,{...(0,n.Mm)({testId:d},"mobilenavbody"),drawerId:u,isOpen:e,isSubNavOpen:x.open,links:b,onOpenDrawer:e=>{void 0!==e&&h({open:!0,sectionId:e})},sections:N})}),(0,t.jsx)("div",{className:"relative flex w-full items-end",children:(0,t.jsx)(w.h,{promoData:c})})]}),(0,t.jsx)(m._,{...(0,n.Mm)({testId:d},"drawer"),className:"lg:hidden",closeButtonClassName:"!top-12",contentClassName:"!m-0 !p-6 [@media(min-width:424px)]:!p-8",fullScreen:!0,id:u,isOpen:x.open,onClose:()=>{g(),l?.(!1)},overlayClassName:"lg:hidden",position:"right",showOverlay:!1,children:(0,t.jsx)(v,{...(0,n.Mm)({testId:d},"subnav"),drawerId:u,onReturn:g,promoBox:c,sections:N,subNavDrawer:x})})]})}},99734:(e,s,l)=>{"use strict";l.d(s,{U:()=>r});var t=l(12115),a=l(32687);Object.fromEntries(Object.entries(a.m).filter(e=>"string"==typeof e[1]).map(([e,s])=>[e,Number.parseInt(s.replace("px",""))])),Object.keys(a.m).filter(e=>"max-md"!==e&&"max-lg"!==e&&"max-xl"!==e&&"4k"!==e&&"max-2xl"!==e);let r=(e,s)=>{let[l,r]=(0,t.useState)(null),i=`(${e}: ${a.m[s]})`;return(0,t.useEffect)(()=>{let e=window.matchMedia(i),s=()=>r(!!e.matches);return s(),e.addEventListener("change",s),()=>e.removeEventListener("change",s)},[i]),l}}}]);
2//# sourceMappingURL=3967-fcbeeb517723921d.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.