PageSourceSearch

https://www.philips.de/c-resources/_next/static/chunks/8324-8955e3234503b233.js

js philips.de collected 2026-09-24 18:41:39 UTC 31,492 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8324],{1229:(e,t,r)=>{function a(e){return!!e?.some(e=>!!e.bundleId?.length)}function n(e){if(!e?.length)return 0;let t=new Set,r=0;for(let a of e){let e=a.bundleId?.[0];e?t.has(e)||(t.add(e),r+=1):r+=a.quantity??1}return r}r.d(t,{S:()=>a,W:()=>n})},2927:(e,t,r)=>{r.d(t,{$:()=>a.$,p:()=>n.p});var a=r(54800),n=r(14003)},5498:(e,t,r)=>{r.d(t,{M:()=>y});var a=r(54287),n=r(12115),s=r(23321),i=r(86161),l=r(47401),o=r(23897),c=r(86763),d=r(12609);async function u(e){let{locale:t,siteId:r,countryCode:a,token:n,bundleId:s}=e;try{let e=await (0,d.L)(),i=new URLSearchParams({bundleId:s,type:"SUBSCRIPTION",language:t,siteId:r,country:a}),u=await (0,o.G)(`${e}/api/commerce-service/cart/current?${i}`,{headers:{"Api-Key":l._.NEXT_PUBLIC_PIL_API_KEY,"Api-Version":"1",Authorization:`Bearer ${n}`},method:"POST"},{caller:`addSubscriptionToCart(bundleId=${s}, ${t}, ${r}, ${a})`});if(u.error)return u;return(0,c.k)(u.data)}catch(e){return(0,c.V)(e instanceof Error?e.message:"Failed to add subscription to cart",`addSubscriptionToCart(bundleId=${s}, ${t}, ${r}, ${a})`,e)}}async function m(e){let{locale:t,siteId:r,countryCode:a,token:n,body:s}=e;try{let e=await (0,d.L)(),i=new URLSearchParams({language:t,siteId:r,country:a}),u=await (0,o.G)(`${e}/api/commerce-service/cart/current?${i}`,{headers:{"Api-Key":l._.NEXT_PUBLIC_PIL_API_KEY,"Api-Version":"1",Authorization:`Bearer ${n}`},method:"POST",body:JSON.stringify({data:s})},{caller:`addToCart(${JSON.stringify(s)}, ${t}, ${r}, ${a})`});if(u.error)return u;return(0,c.k)(u.data)}catch(e){return(0,c.V)(e instanceof Error?e.message:"Failed to add to cart",`addToCart(${JSON.stringify(s)}, ${t}, ${r}, ${a})`,e)}}let p=e=>{let{locale:t,siteId:r,countryCode:a,token:n}=e;return["getCart",r,a,t,n]};async function h(e){let{locale:t,siteId:r,countryCode:a,token:n}=e;try{let e=await (0,d.L)(),s=new URLSearchParams({language:t,siteId:r,country:a}),i=await (0,o.G)(`${e}/api/commerce-service/cart/current?${s}`,{headers:{"Api-Key":l._.NEXT_PUBLIC_PIL_API_KEY,"Api-Version":"1",Authorization:`Bearer ${n}`}},{caller:`getCart(${t}, ${r}, ${a})`});if(i.error)return i;return(0,c.k)(i.data)}catch(e){return(0,c.V)(e instanceof Error?e.message:"Failed to fetch cart",`getCart(${t}, ${r}, ${a})`,e)}}var f=r(1229),g=r(70428),v=r(17776),b=r(43969),_=r(97325);let y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{siteIdOverride:t}=e,r=(0,a.jE)(),l=(0,n.useRef)(0),o=(0,n.useRef)(0),c=(0,n.useRef)(0),d=(0,n.useRef)(!1),{pubShopSiteId:y,country:x,locale:k}=(0,i.r)(),w=t&&t.length>0?t:y,C=x.toUpperCase(),{basketTokenInfo:E,generateOrGetTokenMutation:j,isError:N,isTokenExpired:T,clearBasketTokenForSite:$}=(0,s.XO)({effectiveSiteId:w}),S=E?.access_token??"",I=p({siteId:w??"",countryCode:C,locale:k,token:S}),{isHealthy:P,isLoading:A}=(0,_.UI)({isShoppable:!!w}),{postMessage:q}=(0,g.G)({channelName:"cart-updates",handlers:[{key:"CART_UPDATE",handler:e=>{e&&r.setQueryData(I,e)}}]}),{data:O,isEnabled:R,isLoading:B,error:L,isError:M}=(0,b.n)({queryKey:I,queryFn:()=>h({siteId:w??"",countryCode:C,locale:k,token:S}),enabled:!!(S&&w&&!T&&P)});(0,n.useEffect)(()=>{O&&(c.current=0)},[O]),(0,n.useEffect)(()=>{M&&L&&S&&w&&[400,401,403].includes(Number(L.code))&&(c.current>=2||d.current||(c.current+=1,d.current=!0,(async()=>{try{$(w),r.removeQueries({queryKey:I}),await j({forceRefresh:!0})}finally{d.current=!1}})()))},[M,L,S,w,C,k,I,$,j,r]);let{mutateAsync:D,isPending:F}=(0,v.e)({mutationFn:async e=>{let{body:t,token:r}=e,a=r;r||(a=(await j({forceRefresh:!1})).access_token??"");let n=await m({locale:k,siteId:w??"",countryCode:C,token:a,body:t});return n.error?n:{data:{cartData:n.data,usedToken:a},error:null}},onSuccess:e=>{let{cartData:t,usedToken:a}=e;l.current=0;let n=p({siteId:w??"",countryCode:C,locale:k,token:a});r.setQueryData(n,t),q("CART_UPDATE",t)},onError:(e,t)=>{if([400,401,403].includes(Number(e.causeError?.statusCode))&&l.current<2){l.current+=1,(async()=>{let e=await j({forceRefresh:!0});await D({...t,token:e.access_token??""})})().catch(()=>{});return}throw l.current=0,e}}),{mutateAsync:K,isPending:U}=(0,v.e)({mutationFn:async e=>{let{bundleId:t,token:r}=e,a=r;r||(a=(await j({forceRefresh:!1})).access_token??"");let n=await u({locale:k,siteId:w??"",countryCode:C,token:a,bundleId:t});return n.error?n:{data:{cartData:n.data,usedToken:a},error:null}},onSuccess:e=>{let{cartData:t,usedToken:a}=e;o.current=0;let n=p({siteId:w??"",countryCode:C,locale:k,token:a});r.setQueryData(n,t),q("CART_UPDATE",t)},onError:(e,t)=>
1{if([400,401,403].includes(Number(e.causeError?.statusCode))&&o.current<2){o.current+=1,(async()=>{let e=await j({forceRefresh:!0});await K({...t,token:e.access_token??""})})().catch(()=>{});return}throw o.current=0,e}});return{basketIsEnabled:R,basketIsLoading:B,basketData:(0,n.useMemo)(()=>{if(!O?.data?.attributes)return O;let e=O.data.attributes.items??[];if(!(0,f.S)(e))return O;let t=(0,f.W)(e);return t===O.data.attributes.units?O:{...O,data:{...O.data,attributes:{...O.data.attributes,units:t}}}},[O]),addToBasket:e=>D({body:e,token:S}),addSubscriptionToBasket:e=>K({bundleId:e,token:S}),isAddingToBasket:F||U,tokenIsError:N,isHealthy:P,healthCheckIsLoading:A}}},17489:(e,t,r)=>{r.d(t,{z0:()=>a.MiniCartWrapper,Ud:()=>l,QZ:()=>i,PH:()=>n.useMiniCart}),r(53554),r(80889);var a=r(92894),n=r(18430),s=r(70354);let i=e=>({itemId:e.itemId??"",title:e.familyName??e.title??"",description:e.descriptor??"",image:e.image,formattedPrice:e.toPrice?.formattedValue}),l=(e,t,r,a,n)=>{let l=t.reduce((t,r)=>{let a=e.find(e=>e.itemId===r&&e.bundleType!==s.$lS.Subscription);return a&&t.push(i(a)),t},[]);return 0===l.length?[]:r?[{type:"bundle",products:l,bundleLabel:a,bundlePrice:n}]:l.map(e=>({type:"standalone",products:[e]}))}},18430:(e,t,r)=>{r.d(t,{MiniCartProvider:()=>l,useMiniCart:()=>o});var a=r(95155),n=r(12115);let s={isOpen:!1,addedItems:[],promotionMessage:void 0,totalUnits:0,hasError:!1},i=(0,n.createContext)(null),l=e=>{let{children:t}=e,[r,l]=(0,n.useState)(s),o=(0,n.useRef)(null),c=(0,n.useCallback)(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),d=(0,n.useCallback)(()=>{c(),o.current=setTimeout(()=>{l(e=>({...e,isOpen:!1,addedItems:[]}))},5e3)},[c]),u=(0,n.useCallback)((e,t,r)=>{l({isOpen:!0,addedItems:e,promotionMessage:t,totalUnits:r??e.length,hasError:!1}),d()},[d]),m=(0,n.useCallback)(()=>{c(),l(e=>({...e,isOpen:!1,addedItems:[]}))},[c]),p=(0,n.useCallback)(()=>{c(),l({isOpen:!1,addedItems:[],promotionMessage:void 0,totalUnits:0,hasError:!0})},[c]),h=(0,n.useCallback)(()=>{l(e=>({...e,hasError:!1}))},[]),f=(0,n.useMemo)(()=>({...r,openMiniCart:u,closeMiniCart:m,showError:p,closeError:h}),[r,u,m,p,h]);return(0,a.jsx)(i.Provider,{value:f,children:t})},o=()=>{let e=(0,n.useContext)(i);if(!e)throw Error("useMiniCart must be used within a MiniCartProvider");return e}},19302:(e,t,r)=>{r.d(t,{j:()=>l});var a=r(95155),n=r(47650),s=r(50992),i=r(92795);let l=e=>{let{...t}=e;return(0,s.DE)()?(0,n.createPortal)((0,a.jsx)(i.z,{style:{zIndex:20},...t}),document.body):null}},23321:(e,t,r)=>{r.d(t,{BasketTokenProvider:()=>v,XO:()=>b});var a=r(95155),n=r(54287),s=r(85085),i=r(75860),l=r.n(i),o=r(12115),c=r(70428),d=r(47401),u=r(23897),m=r(12609);async function p(e){let{siteId:t,type:r,forceRefresh:a=!1}=e,n=await (0,m.L)(),s=new URL(`${n}/api/web-session/token`);s.searchParams.set("siteId",t),s.searchParams.set("type",r),a&&s.searchParams.set("forceRefresh","true");let i=await (0,u.G)(s.toString(),{headers:{"Api-Key":d._.NEXT_PUBLIC_PIL_API_KEY},method:"POST",credentials:"include"},{caller:`generateOrGetToken(${t}, ${r}, ${a})`});if(i.error||!i.data)throw Error(i.error?.message||"Failed to generate or get token");return i.data}var h=r(18346);let f=(0,o.createContext)({}),g="public-basket-token",v=e=>{let{children:t}=e,[r,n]=(0,o.useState)({}),{postMessage:s}=(0,c.G)({channelName:"basket-token-sync",handlers:[{key:"TOKEN_UPDATE",handler:e=>{e&&n(e)}},{key:"TOKEN_REQUEST",handler:()=>{l()(r)||s("TOKEN_UPDATE",r)}}]}),i=(0,o.useCallback)(e=>{n(t=>{let r=e&&e.length>0?e:g;if(!(r in t))return t;let a={...t};return delete a[r],s("TOKEN_UPDATE",a),a})},[s]),d=(0,o.useMemo)(()=>({basketTokenInfo:r,setBasketTokenInfo:(e,t)=>{n(r=>{let a={...r,[t??g]:e};return s("TOKEN_UPDATE",a),a})},clearBasketTokenForSite:i}),[r,s,i]);return(0,o.useEffect)(()=>
1{l()(r)&&s("TOKEN_REQUEST")},[]),(0,a.jsx)(f.Provider,{value:d,children:t})};function b(){let{effectiveSiteId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.jE)(),{basketTokenInfo:r,setBasketTokenInfo:a,clearBasketTokenForSite:i}=(0,o.useContext)(f),l=r?.[e??g],c=(0,o.useMemo)(()=>{let e=new Date().getTime();return!!l?.expires_in&&l.expires_in<e},[l?.expires_in]),{mutateAsync:d,isError:u}=(0,s.n)({mutationFn:r=>{let{forceRefresh:a}=r,n=e??"";return t.fetchQuery({queryKey:(e=>{let{siteId:t,forceRefresh:r}=e;return["web-session-token",t,"SHOP",r]})({siteId:n,forceRefresh:a}),queryFn:()=>p({siteId:n,type:"SHOP",forceRefresh:a}),staleTime:0})},onSuccess:t=>(a({...t,expires_in:Date.now()+1e3*Number(t.expires_in)},e??g),t),onError:(e,t)=>{let{forceRefresh:r}=t;return r||d({forceRefresh:!0}),e}});return(0,o.useEffect)(()=>{c&&d({forceRefresh:!1})},[d,c,e]),(0,o.useEffect)(()=>{l||c||!e||"True"!==(0,h.R)("ws-active-shop")||d({forceRefresh:!1})},[e]),{basketTokenInfo:l,isTokenExpired:c,generateOrGetTokenMutation:d,isError:u,clearBasketTokenForSite:i}}},30555:(e,t,r)=>{r.d(t,{m:()=>a});let a=e=>{let{shopLabel:t,loyaltySiteId:r,loyaltyCheckoutUrl:a}=e;return a?a.replace(/\/$/,""):r?`/c-e/${t}/checkout/${r}`:`/c-e/${t}/checkout`}},37556:(e,t,r)=>{r.d(t,{a:()=>n});var a=r(12115);let n=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(!0)},[]),e}},38260:(e,t,r)=>{r.d(t,{v:()=>S});var a=r(95155),n=r(86544),s=r(49011),i=r(10953),l=r(98023),o=r(4776),c=r(61928),d=r(12115),u=r(54800),m=r(258),p=r(53308),h=r(10385),f=r(21445),g=r(50689),v=r(70896),b=r(70443),_=r(12052),y=r(34790),x=r(87202),k=r(67767),w=r(75441),C=r(10195),E=r(22300);r(36585),r(26202),r(48364),r(84719);var j="_1cw05qle",N=r(41872),T=r(19302),$=r(42105);let S=(0,E.g)((e,t)=>{let{label:r,showLabelOnBorder:E,inputRef:S,isDisabled:I,isFullWidth:P,shape:A="round",placeholder:q,"aria-label":O,isReadOnly:R,inputProps:B={},allowsCustomValue:L=!0,allowsEmptyCollection:M=!0,description:D,errorMessages:F,header:K,footer:U,onSubmitSearch:V,onPressEnterKey:z,onPressSearchButton:W,onClear:H,clearButtonAriaLabel:G="clear search",items:Q,children:X=[],validationBehavior:Y="native",width:J,isFooterAlwaysVisible:Z,inputFieldClassName:ee,shouldStretchOnFocus:et=!1,minValueLengthForSearch:er=1,itemsType:ea,backdropClassName:en,...es}=e,ei=(0,x._)(e),{styleProps:el}=(0,k.pO)(es),eo=(0,c.c)(),{isMobileOnly:ec}=(0,p.e)(),ed=(0,w.N)(t),eu=(0,C.R)(S),em=(0,d.useRef)(null),ep=(0,d.useRef)(null),eh=(0,d.useRef)(null),ef=(0,d.useRef)(null),[eg,ev]=(0,d.useState)(!1),[eb,e_]=(0,d.useState)(!1),[ey,ex]=(0,d.useState)(!1),[ek,ew]=(0,d.useState)(!1),[eC,eE]=(0,d.useState)(void 0),[ej,eN]=(0,d.useState)(ed.current?.clientWidth),eT=(0,l.k)({...e,children:X,items:Q,allowsCustomValue:L,allowsEmptyCollection:M,shouldCloseOnBlur:!1,onOpenChange:e=>{e&&ew(e),!ec&&e&&ev(e)},onSelectionChange:t=>{e.onSelectionChange?.(t),ex(!0),ew(!1),ec||document.activeElement.blur()}}),{inputProps:e$,listBoxProps:eS,validationErrors:eI,validationDetails:eP,isInvalid:eA}=(0,n.r)({...e,items:Q,inputRef:eu,listBoxRef:em,popoverRef:ep,onFocus:()=>{ec?e_(!0):eT.setOpen(!0)}},eT),eq=(0,d.useCallback)(()=>{eT.setInputValue(""),eT.setOpen(!1),ew(!1),H&&H()},[eT,H]),eO=(0,d.useCallback)(()=>{document.activeElement.blur(),V?.(),eT.setOpen(!1),ec&&e_(!1),ew(!1)},[V,eT,ec]),eR=(0,d.useCallback)(e=>{"Enter"===e.key&&(z?.(),eO()),eh.current=eT.selectionManager.focusedKey},[eT,eh,z,eO]),eB=ek&&!ec&&(eT.collection.size>0||M&&(!!K||!!U)),eL=eT.inputValue.length>=er,eM=(0,d.useCallback)(e=>{eT.isOpen&&!ep.current?.contains(e.target)&&(eT.close(),ew(!1))},[ep,eT]);(0,s.$)({ref:ed,onInteractOutside:eM});let eD=(0,d.useCallback)(()=>{eb?eE(Math.max(0,(window.visualViewport?.height??window.innerHeight)-(ep.current?.getBoundingClientRect().top??0))):eE(void 0)},[eb]);(0,d.useEffect)(()=>(window.visualViewport?.addEventListener("resize",eD),()=>{window.visualViewport?.removeEventListener("resize",eD)}),[eD]),(0,d.useEffect)(()=>{ey&&(eT.selectedItem?.textValue??"")===eT.inputValue&&!eT.isOpen&&(ex(!1),ec&&(e_(!1),document.activeElement.blur()))},[ey,ec,eT.inputValue,eT.isOpen,eT.selectedItem?.textValue]),(0,d.useLayoutEffect)(()=>{ed.current&&eN(ed.current.clientWidth)},[ek,et,eg,eb,eT.isOpen,eT.collection.size,ec,ed]);let eF=e=>{"Tab"===e.key&&!e.shiftKey&&eT.isOpen&&(e.preventDefault(),eT.setOpen(!1),ew(!1),ev(!1))},eK="popular"===ea&&(0,a.jsx)(m.o,{className:"_1cw05qlf",variant:"body-m",weight:"book",children:eo("apps.translations.b2c.b2c-component-searchBox-popularSearchTerms-label")});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.j,{isOpen:eg,className:en||N.absolute}),(0,a.jsxs)("div",{tabIndex:-1,onBlurCapture:e=>{if(ec)return;let t=e.currentTarget.contains(e.relatedTarget),r=e.target,a=e.relatedTarget,n=r?.closest("button"),s=a?.closest("button"),i=n?.getAttribute?.("aria-label")??r?.getAttribute?.("aria-label"),l=s?.getAttribute?.("aria-label")??a?.getAttribute?.("aria-label");(n&&ef.current&&n===ef.current&&l===G||s&&ef.current&&s===ef.current&&i===G)&&!eT.isOpen&&(t=!1),e.preventDefault(),eT.setOpen(t),ew(t),ev(t)}
1,...(0,i.v)(ei,el,{className:(0,o.A)(_.$P,_.cW[A],{[h.Ck]:P,_1cw05ql2:I,_1cw05ql0:eg,_1cw05ql1:ek&&et})}),children:[!eb&&(0,a.jsx)(y.A,{onKeyUp:eR,label:r,showLabelOnBorder:E,isInvalid:eA,description:D,errorMessages:F??eI,"aria-label":O,isReadOnly:R,value:eT.inputValue,placeholder:q,isFullWidth:P,inputRef:eu,containerRef:ed,showClearButton:e.showClearButton,onClear:eq,clearButtonAriaLabel:G,inputProps:(0,i.v)(e$,B),validationBehavior:Y,validationErrors:eI,validationDetails:eP,width:J,className:(0,o.A)("_1cw05ql3",eB&&"_1cw05ql4",ek&&"_1cw05qlg",ek&&et&&"_1cw05qlh",ee),children:e=>(0,a.jsxs)(a.Fragment,{children:[e,(0,a.jsx)(u.$,{ref:ef,className:(0,o.A)("_1cw05ql7",eL&&"_1cw05ql8"),"aria-label":eo("apps.aria-labels.search-button"),onKeyDown:eF,onPress:()=>{W?.(),eO()},children:(0,a.jsx)(g.v,{className:(0,o.A)(_.qc,"_1cw05ql6"),"aria-hidden":"true"})})]})}),eB&&(0,a.jsxs)(b.B,{isNonModal:!0,overflowBehavior:"visible",offset:0,shouldFlip:!1,state:{close:()=>{},isOpen:eT.isOpen,open:()=>{},setOpen:()=>{},toggle:()=>{}},ref:ep,minWidth:ej,placement:"bottom left",triggerRef:ed,className:(0,o.A)(_.oO,"_1cw05qla",e.popoverClassName),style:{...e.popoverStyle,maxWidth:ej,marginBlock:0,background:"transparent",border:"none",boxShadow:"none"},children:[(0,a.jsxs)("div",{className:(0,o.A)(_.lv,"_1cw05qlb"),children:[!!K&&(0,a.jsx)("div",{className:(0,o.A)(_.wx,j),children:K}),!!K&&!!eT.collection.size&&(0,a.jsx)("hr",{className:h.gK}),eK,!!eT.collection.size&&(0,a.jsx)(v.q,{...eS,ref:em,state:eT,shouldFocusOnHover:!1})]}),(!!U||Z)&&!eT.collection.size&&(0,a.jsx)("div",{className:(0,o.A)(_.qr,j),children:U})]}),ec&&eb&&(0,a.jsx)($.T,{isOpen:eb,onClose:()=>e_(!1),headerClassName:"_1cw05qlc",contentContainerClassName:"_1cw05qld",isDismissable:!1,showCloseButton:!1,variant:"fullscreen",title:(0,a.jsx)(y.A,{onKeyUp:eR,label:r,showLabelOnBorder:E,isInvalid:eA,description:D,errorMessages:F??eI,"aria-label":O,isReadOnly:R,value:eT.inputValue,placeholder:q,isFullWidth:!0,inputRef:eu,containerRef:ed,showClearButton:e.showClearButton,onClear:eq,clearButtonAriaLabel:G,inputProps:(0,i.v)(e$,B),validationBehavior:Y,validationErrors:eI,validationDetails:eP,className:"_1cw05ql5",autoFocus:!0,children:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.$,{className:"_1cw05ql9",onPress:()=>e_(!1),children:(0,a.jsx)(f.b,{"aria-hidden":"true"})}),e]})}),children:(0,a.jsxs)("div",{ref:ep,className:"_1cw05qli",style:eC?{height:eC}:void 0,children:[eK,eT.isOpen&&eT.collection.size>0&&(0,a.jsx)(v.q,{...eS,ref:em,state:eT,shouldFocusOnHover:!1}),!!K&&(0,a.jsx)("div",{children:K})]})})]})]})})},51116:(e,t,r)=>{r.d(t,{TouchableTooltip:()=>c});var a=r(95155),n=r(75500),s=r(12115),i=r(7526),l=r(53402);let o=["Enter"," ","Spacebar"],c=e=>{let{children:t,content:r,description:c,focusableContent:d=!0,isOpen:u,...m}
1=e,[p,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),[v,b]=(0,s.useState)(!1),[_,y]=(0,s.useState)(!1),x=(0,s.useId)(),k=(0,s.useId)(),w=(0,s.useRef)(null),C=(0,s.useRef)(null),E=(0,s.useRef)(null),j=(0,s.useId)(),N=c?.trim()||void 0;(0,s.useEffect)(()=>{y(!0)},[]);let T=(0,s.useMemo)(()=>!!_&&(()=>{if("u"<typeof globalThis)return!1;let e=globalThis.window,t=globalThis.navigator;return(!!e||!!t)&&(e&&"ontouchstart"in e||t&&t.maxTouchPoints>0)})(),[_]);(0,s.useEffect)(()=>{if(!T||!p)return;let e=e=>{e.target.closest(`[data-tooltip-id="${x}"]`)||h(!1)};return document.addEventListener("click",e,!0),document.addEventListener("touchstart",e,!0),()=>{document.removeEventListener("click",e,!0),document.removeEventListener("touchstart",e,!0)}},[T,p,x]);let $=(0,s.useCallback)(()=>{T&&h(e=>!e)},[T]),S=(0,s.useCallback)(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]);(0,s.useEffect)(()=>()=>S(),[S]);let I=(0,s.useCallback)(()=>{g(!0)},[]),P=(0,s.useCallback)(e=>{let t=e.relatedTarget;t?.closest(`#${k}`)||g(!1)},[k]),A=(0,s.useCallback)(()=>{T||b(!0)},[T]),q=(0,s.useCallback)(()=>{T||(S(),E.current=setTimeout(()=>{b(!1),E.current=null},300))},[S,T]),O=(0,s.useCallback)(e=>{let t=o.includes(e.key),r="Tab"===e.key;if(!(t||r)||!f||r&&!d)return;let a=w.current;if(a){if(r&&d){let t=a.querySelectorAll('a[href], button, input, textarea, select, [tabindex]:not([tabindex="-1"])');if(t.length>0){e.preventDefault(),t[e.shiftKey?t.length-1:0].focus();return}}if(t){let t=a.querySelector(`#${k}-sr-focus`);if(t){t.textContent=N||a.innerText||t.textContent||"",e.preventDefault(),t.focus();return}let r=a.querySelectorAll('a[href], button, input, textarea, select, [tabindex]:not([tabindex="-1"])');r.length>0&&(e.preventDefault(),r[0].focus())}}},[f,d,w,k,N]),R=(0,s.useCallback)(e=>{if("Tab"===e.key){let t=w.current;if(!t)return;let r=t.querySelectorAll('a[href], button, input, textarea, select, [tabindex]:not([tabindex="-1"])');if(0===r.length)return;let a=r[r.length-1];e.shiftKey||document.activeElement!==a||g(!1)}},[]),B=(0,s.useCallback)(e=>{let t=e.relatedTarget;t?.closest(`#${k}`)||t?.closest(`[data-tooltip-id="${x}"]`)||g(!1)},[k,x]),L=(0,s.useMemo)(()=>(0,a.jsxs)("div",{ref:w,id:k,role:"tooltip",onMouseEnter:S,onMouseLeave:q,onKeyDown:R,onBlur:B,children:[(0,a.jsx)("span",{id:`${k}-sr-focus`,ref:e=>{C.current=e||null},tabIndex:-1,className:l.visuallyHiddenStyle}),r]}),[r,k,S,q,R,B]),M=(0,s.useMemo)(()=>"boolean"==typeof u?{isOpen:u}:T?{isOpen:p}:{isOpen:v||f},[u,T,p,v,f]),D=(0,s.useMemo)(()=>{let e={"data-tooltip-id":x,"aria-describedby":N?j:k,tabIndex:0};if(!T){let{onKeyDown:r,onFocus:a,onBlur:n,onMouseEnter:i,onMouseLeave:l}=t.props;return(0,s.cloneElement)(t,{...e,onFocus:e=>{I(),a?.(e)},onBlur:e=>{P(e),n?.(e)},onKeyDown:e=>{O(e),r?.(e)},onMouseEnter:e=>{A(),i?.(e)},onMouseLeave:e=>{q(),l?.(e)},"aria-expanded":v||f})}let{onClick:r,onTouchStart:a,onKeyDown:n,onFocus:i,onBlur:l}=t.props;return(0,s.cloneElement)(t,{...e,onClick:e=>{e.stopPropagation(),$(),r?.(e)},onTouchStart:e=>{e.stopPropagation(),$(),a?.(e)},onFocus:e=>{I(),i?.(e)},onBlur:e=>{P(e),l?.(e)},onKeyDown:e=>{O(e),n?.(e)},"aria-expanded":T?p:f})},[t,x,k,T,p,f,v,$,I,P,O,A,q,j,N]);return(0,a.jsxs)(a.Fragment,{children:[N&&(0,a.jsx)("span",{id:j,className:l.visuallyHiddenStyle,"aria-hidden":!1,children:N}),(0,a.jsx)(i.m,{...m,...M,triggerProps:{tabIndex:0},content:L,children:(0,a.jsx)(n.gY.Provider,{value:null,children:D})})]})}},53402:(e,t,r)=>{r.r(t),r.d(t,{allReviewsOverlayHeader:()=>a,allReviewsOverlaySidePanel:()=>n,averageRatingSection:()=>s,container:()=>i,emptyStarScale:()=>l,firstReviewLink:()=>o,hideToggleIcon:()=>c,overlayContentAuto:()=>d,overlayContentHidden:()=>u,overlayContentLoading:()=>m,ratingBar:()=>p,ratingBarDisabled:()=>h,reviewStatsSection:()=>f,scoreBarButton:()=>g,scoreBarRow:()=>v,scoreBarRowNonClickable:()=>b,scoreBarsSection:()=>_,starGroup:()=>y,stickyFilterBar:()=>x,tooltipContent:()=>k,tooltipWrapper:()=>w,verticalDividerWrapper:()=>C,visuallyHiddenStyle:()=>E,writeReviewButton:()=>j}),r(36585),r(26202),r(63044),r(48364),r(80224);var a="_1myqs24g",n="_1myqs24h",s="_1myqs244",i="_1myqs240",l="_1myqs24b",o="_1myqs24f",c="_1myqs24i",d="_1myqs24k",u="_1myqs24j",m="_1myqs24l",p="_1myqs24c",h="_1myqs24d",f="_1myqs245",g="_1myqs249",v="_1myqs247",b="_1myqs248",_="_1myqs246",y="_1myqs24a",x="_1myqs24m",k="_1myqs243",w="_1myqs24e zz910c1",C="_1myqs241",E="_1myqs24n",j="_1myqs242"},53554:(e,t,r)=>{r.d(t,{MiniCart:()=>$});var a=r(95155),n=r(61928),s=r(12115),i=r(41295),l=r(93617);r(36585),r(26202),r(48364),r(51105);var o="_1xg27dm6",c="_1xg27dmd",d="_1xg27dmb",u="_1xg27dma",m="_1xg27dm7",p="_1xg27dme",h="_1xg27dmc",f=r(86161),g=r(60264),v=r(87716),b=r(30555),_=r(32748),y=r(77443);let x=`${y.Dn.MiniCart}:mini_cart`,k={component_id:"mini_cart_v1.0",component_name:x,component_type:"cart",component_row:"not_set",component_source_platform:"hybris",component_source_id:"not_set",component_source_name:"not_set",component_version_date:"20250204"};var w=r(80069);function C(e){return{event:w.mu.interaction,eventProps:{component_name:x,interaction_description:`${x}:mini_cart_continue_shopping:${e}:not_set`,interaction_goal:"mini_cart_continue_shopping",link_position:e,link_type:"not_set",interaction_value:"not_set"}}}var E=r(18430),j=r(11242);let N=e=>{let{product:t,showPrice:r=!0,"data-testid":n}=e,{title:s,description:i,image:l,formattedPrice:o}=t,f=i?`${s} ${i}`:s;return(0,a.jsxs)("div",{className:"_1xg27dmg","data-testid":n,children:[l&&(0,a.jsx)("div",{className:m,children:(0,a.jsx)(j.Image,{src:l,alt:f,className:u,width:80,height:80})}),(0,a.jsxs)("div",{className:d,children:[(0,a.jsx)("p",{className:h,children:s}),i&&(0,a.jsx)("p",{className:c,children:i}),r&&o&&(0,a.jsx)("p",{className:p,children:o})]})]})},T=e=>{let{item:t,"data-testid":r="minicart-item"}=e,{type:n,products:s,bundleLabel:i,bundlePrice:l}=t;if("standalone"===n&&1===s.length){let e=s[0],t=e.description?`${e.title} ${e.description}`:e.title;return e.subscriptionMessage?(0,a.jsxs)("div",{className:"_1xg27dm8","data-testid":r,children:[(0,a.jsxs)("div",{className:"_1xg27dm9",children:[e.image&&(0,a.jsx)("div",{className:m,children:(0,a.jsx)(j.Image,{src:e.image,alt:t,className:u,width:80,height:80})}),(0,a.jsxs)("div",{className:d,children:[(0,a.jsx)("p",{className:h,children:e.title}),e.description&&(0,a.jsx)("p",{className:c,children:e.description}),e.formattedPrice&&(0,a.jsx)("p",{className:p,children:e.formattedPrice})]})]}),(0,a.jsx)("p",{className:"_1xg27dmf","data-testid":`${r}-subscription-message`,role:"note",children:e.subscriptionMessage})]}):(0,a.jsxs)("div",{className:o,"data-testid":r,children:[e.image&&(0,a.jsx)("div",{className:m,children:(0,a.jsx)(j.Image,{src:e.image,alt:t,className:u,width:80,height:80})}),(0,a.jsxs)("div",{className:d,children:[(0,a.jsx)("p",{className:h,children:e.title}),e.description&&(0,a.jsx)("p",{className:c,children:e.description}),e.formattedPrice&&(0,a.jsx)("p",{className:p,children:e.formattedPrice})]})]})}return(0,a.jsx)("div",{className:o,"data-testid":r,children:(0,a.jsxs)("div",{className:d,children:[s.map((e,t)=>(0,a.jsx)(N,{product:e,showPrice:!1,"data-testid":`${r}-product-${t}`},`${e.itemId}-${t}`)),(0,a.jsxs)("div",{className:"_1xg27dmh",children:[i&&(0,a.jsx)("span",{className:"_1xg27dmi",children:i}),l&&(0,a.jsx)("span",{className:"_1xg27dmj",children:l})]})]})})},$=e=>{let{"data-testid":t="minicart",loyaltySiteId:r,loyaltyCheckoutUrl:o}=e,c=(0,n.c)(),{locale:d,defaultLocale:u}=(0,f.r)(),{isOpen:m,addedItems:p,promotionMessage:h,totalUnits:y,closeMiniCart:j}=(0,E.useMiniCart)(),N=(0,s.useRef)(null),{hasConsentInteraction:$}=(0,g.I)();(0,s.useEffect)(()=>{$&&j()},[$,j]),(0,s.useEffect)(()=>{(0,_.A)()&&v.dW.eddlContext.setComponentProps(k)},[]);let S=c("b2c-page-checkout-url-shop-label"),I=(0,s.useMemo)(()=>
1{if(o)return o.replace(/\/$/,"");let e=(0,b.m)({shopLabel:S,loyaltySiteId:r});return d===u?e:`/${d}${e}`},[d,u,S,r,o]),P=(0,s.useMemo)(()=>{let e=p.reduce((e,t)=>e+t.products.length,0);return 1===e?c("b2c-component-minicart-singleItemAdded-label"):c("b2c-component-minicart-fewItemsAdded-label",{count:e})},[p,c]);return((0,s.useEffect)(()=>{if(!m)return;let e=e=>{N.current&&!N.current.contains(e.target)&&j()},t=setTimeout(()=>{document.addEventListener("click",e)},100);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[m,j]),(0,s.useEffect)(()=>{if(!m)return;let e=e=>{"Escape"===e.key&&j()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[m,j]),m&&0!==p.length)?(0,a.jsxs)("dialog",{ref:N,className:"_1xg27dm1",open:!0,"aria-label":P,"data-testid":t,"data-coveo-no-index":!0,children:[(0,a.jsxs)("div",{className:"_1xg27dm2",children:[(0,a.jsx)("p",{className:"_1xg27dm3",children:P}),(0,a.jsx)("button",{type:"button",className:"_1xg27dm4",onClick:()=>{(0,_.A)()&&v.dW.eddlEvents.push(C("cross_icon")),j()},"aria-label":"Close","data-testid":`${t}-close-button`,children:(0,a.jsx)(l.F,{})})]}),(0,a.jsx)("div",{className:"_1xg27dm5",children:p.map((e,r)=>(0,a.jsx)(T,{item:e,"data-testid":`${t}-item-${r}`},`${e.type}-${e.products[0]?.itemId??r}-${r}`))}),(0,a.jsxs)("div",{className:"_1xg27dmk",children:[h&&(0,a.jsx)("div",{className:"_1xg27dml",children:(0,a.jsx)("p",{className:"_1xg27dmm",children:h})}),(0,a.jsxs)("div",{className:"_1xg27dmn",children:[(0,a.jsxs)(i.Button,{variant:"solid",color:"theme",shape:"round",elementType:"a",href:I,className:"_1xg27dmo",onClick:()=>{let e,t;(0,_.A)()&&v.dW.eddlEvents.push((e=new URL(I,window.location.href),t=window.location.host===e.host,{event:w.mu.click,eventProps:{component_name:x,interaction_description:`${x}:mini_cart_checkout:button_1:checkout`,interaction_goal:"mini_cart_checkout",interaction_destination:t?"convert:checkout:not_set:not_set":"link_to:external_page",link_position:"button_1",link_type:"checkout",link_text:"checkout_(2)",link_domain:e.host,link_id:"not_set",link_url:e.href,outbound:String(!t).toUpperCase()}})),j()},"aria-label":c("b2c-component-minicart-shoppingCart-aria-label"),"data-testid":`${t}-checkout-button`,children:[c("b2c-component-minicart-shoppingCart-label")," (",y,")"]}),(0,a.jsx)(i.Button,{variant:"outline",color:"neutral",shape:"round",className:"_1xg27dmp",onClick:()=>{(0,_.A)()&&v.dW.eddlEvents.push(C("button_2")),j()},"aria-label":c("b2c-component-minicart-continueShopping-aria-label"),"data-testid":`${t}-continue-shopping-button`,children:c("b2c-component-minicart-continueShopping-label")})]})]})]}):null}},65011:(e,t,r)=>{r.d(t,{S:()=>l,z:()=>o});var a=r(95155),n=r(61928),s=r(12115),i=r(93617);r(79730);let l=e=>{let{isOpen:t,onClose:r,message:n,"data-testid":l="cart-notification"}=e,o=(0,s.useRef)(null);return((0,s.useEffect)(()=>{if(!t)return;let e=e=>{o.current&&!o.current.contains(e.target)&&r()},a=setTimeout(()=>{document.addEventListener("click",e)},100);return()=>{clearTimeout(a),document.removeEventListener("click",e)}},[t,r]),(0,s.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,r]),t)?(0,a.jsxs)("div",{ref:o,className:"_67a1hu1","data-testid":l,role:"alert","aria-live":"polite",children:[(0,a.jsx)("p",{className:"_67a1hu2",children:n}),(0,a.jsx)("button",{type:"button",className:"_67a1hu3",onClick:r,"aria-label":"Close",children:(0,a.jsx)(i.F,{})})]}):null},o=e=>{let{isOpen:t,onClose:r}=e,s=(0,n.c)();return(0,a.jsx)(l,{isOpen:t,onClose:r,message:s("b2c-shopping-cart-no-items"),"data-testid":"empty-cart-notification"})}},70428:(e,t,r)=>{r.d(t,{G:()=>i});var a=r(12115),n=r(32978),s=r(32748);let i=e=>{let{channelName:t,handlers:r,enabled:i=!0}=e,l=(0,a.useRef)(null),o=(0,a.useRef)(new Map),[c,d]=(0,a.useState)(!1);(0,a.useEffect)(()=>{o.current=new Map(r.map(e=>[e.key,e.handler]))},[r]);let u=(0,a.useCallback)((e,r)=>{if(!l.current){n.C&&console.warn(`[useBroadcastSync] Channel "${t}" not initialized`);return}l.current.postMessage({type:e,payload:r})},[t]);return(0,a.useEffect)(()=>
1{if(!(0,s.A)()||!i)return void d(!1);let e=new BroadcastChannel(t);l.current=e,d(!0);let r=e=>{let{type:t,payload:r}=e.data,a=o.current.get(t);a?a(r):n.C&&console.debug(`[useBroadcastSync] No handler for message type "${t}"`)};return e.addEventListener("message",r),()=>{e.removeEventListener("message",r),e.close(),l.current=null,d(!1)}},[t,i]),{postMessage:u,isChannelReady:c}}},73392:(e,t,r)=>{r.d(t,{F:()=>c});var a=r(95155),n=r(4776),s=r(45696),i=r(6436),l=r(73579),o=r(28232);let c=e=>{let{className:t,descriptionClassName:r,header:c,headerElementType:d,headingId:u,headerResponsiveVariant:m="heading-l-xl",headerWeight:p,subheaderElementType:h,subheader:f,subheaderResponsiveVariant:g,description:v,maxCharHeaderLength:b=85,maxCharSubHeaderLength:_=85,textAlign:y="center",headerFirst:x=!1,disclaimerByIdMap:k={},gap:w={mobile:12,tablet:16},"data-testid":C}=e,E=f&&(0,a.jsx)(s.Typography,{...g?{responsiveVariant:g}:{variant:"body-m"},weight:"book",textAlign:y,elementType:h,dangerouslySetInnerHTML:{__html:(0,l.PK)((0,o.B)(f,_,"..."),k)}}),j=c&&(0,a.jsx)(s.Typography,{id:u,responsiveVariant:m,weight:p,textAlign:y,elementType:d,dangerouslySetInnerHTML:{__html:(0,l.PK)((0,o.B)(c,b,"..."),k)}});return(0,a.jsxs)(s.FlexBox,{className:t,elementType:"header",flexDirection:"column",gap:w,alignItems:"center"===y?"center":"start","aria-labelledby":c?u:void 0,"data-testid":C,children:[x?(0,a.jsxs)(a.Fragment,{children:[j,E]}):(0,a.jsxs)(a.Fragment,{children:[E,j]}),v&&(0,a.jsx)(s.FlexBox,{justifyContent:"center"===y?"center":"start",className:(0,n.A)(i.descriptionBody,r),children:(0,a.jsx)(s.Typography,{variant:"body-m",weight:"book",textAlign:y,elementType:"p",dangerouslySetInnerHTML:{__html:(0,l.PK)(v,k)}})})]})}},80215:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(12115);let n=()=>{let e=(0,a.useRef)(null);return{disclaimersRefCallback:(0,a.useCallback)(t=>{if(e.current&&(e.current(),e.current=null),!t)return;let r=e=>{let r=e.target,a=r?.closest("[data-disclaimer-id]");if(!a)return;let n=a.dataset.disclaimerId;if(!n)return;e.preventDefault(),e.stopPropagation();let s=`[disclaimer:${n}]`,i=CSS.escape(s),l=t.querySelector(`#${i}`);l?.scrollIntoView({behavior:"smooth",block:"start"})};t.addEventListener("click",r,!0),e.current=()=>{t.removeEventListener("click",r,!0)}},[])}}},80889:(e,t,r)=>{r.d(t,{MiniCartError:()=>l});var a=r(95155),n=r(61928),s=r(65011),i=r(18430);let l=e=>{let{"data-testid":t="minicart-error"}=e,r=(0,n.c)(),{hasError:l,closeError:o}=(0,i.useMiniCart)();return(0,a.jsx)(s.S,{isOpen:l,onClose:o,message:r("b2c-component-minicart-error-label"),"data-testid":t})}},89811:(e,t,r)=>{r.d(t,{X:()=>a.TouchableTooltip});var a=r(51116)},92894:(e,t,r)=>{r.d(t,{MiniCartWrapper:()=>i});var a=r(95155),n=r(53554),s=r(80889);let i=e=>{let{"data-testid":t="minicart-wrapper",loyaltySiteId:r,loyaltyCheckoutUrl:i}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.MiniCart,{"data-testid":`${t}-overlay`,loyaltySiteId:r,loyaltyCheckoutUrl:i}),(0,a.jsx)(s.MiniCartError,{"data-testid":`${t}-error`})]})}},99106:(e,t,r)=>{r.d(t,{I:()=>n.typography,Y:()=>a.spacing});var a=r(59965),n=r(58002)}}]);

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.