1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9604],{8302:(e,t,l)=>{l.d(t,{Gk:()=>n.StarRating,lG:()=>s.Dialog,ul:()=>a.ButtonsList,wC:()=>r.EmptyList});var a=l(81838),r=l(46314),s=l(27974);l(12984);var n=l(39497)},12984:(e,t,l)=>{l.d(t,{DegradedStateBanner:()=>r});var a=l(54568);let r=(0,l(7620).memo)(e=>{let{message:t,actionLabel:l,onAction:r}=e;return(0,a.jsxs)("div",{role:"alert","aria-live":"polite",className:"mb-4 flex items-start gap-3 rounded-lg border-l-4 border-amber-500 bg-amber-50 p-4 dark:bg-amber-900/20",children:[(0,a.jsx)("svg",{className:"mt-0.5 h-5 w-5 shrink-0 text-amber-600 dark:text-amber-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200",children:t}),l&&r&&(0,a.jsx)("button",{onClick:r,className:"mt-2 text-sm font-semibold text-amber-800 underline hover:text-amber-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amber-600 dark:text-amber-200 dark:hover:text-amber-100",children:l})]})]})});r.displayName="DegradedStateBanner"},39497:(e,t,l)=>{l.d(t,{StarRating:()=>c});var a=l(54568),r=l(7620);function s(e){let{className:t}=e;return(0,a.jsx)("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M15.1432 5.29139L10.8276 4.63445L8.89678 0.536709C8.55881 -0.178903 7.44091 -0.178903 7.10294 0.536709L5.17312 4.63445L0.856507 5.29139C0.0395812 5.41607 -0.291389 6.4722 0.302557 7.0799L3.42628 10.2692L2.68934 14.7735C2.55035 15.6264 3.40628 16.2812 4.14021 15.8778L7.99986 13.752L11.8605 15.8789C12.5884 16.2781 13.4514 15.6337 13.3114 14.7746L12.5744 10.2703L15.6982 7.08095C16.2911 6.4722 15.9601 5.41607 15.1432 5.29139Z",fill:"var(--text-tertiary, #858585)"})})}function n(e){let{className:t}=e;return(0,a.jsx)("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M15.1432 5.29139L10.8276 4.63445L8.89678 0.536709C8.55881 -0.178903 7.44091 -0.178903 7.10294 0.536709L5.17312 4.63445L0.856507 5.29139C0.0395812 5.41607 -0.291389 6.4722 0.302557 7.0799L3.42628 10.2692L2.68934 14.7735C2.55035 15.6264 3.40628 16.2812 4.14021 15.8778L7.99986 13.752L11.8605 15.8789C12.5884 16.2781 13.4514 15.6337 13.3114 14.7746L12.5744 10.2703L15.6982 7.08095C16.2911 6.4722 15.9601 5.41607 15.1432 5.29139Z",fill:"#FFCC00"})})}let i=e=>{let{value:t,ratingViewValue:l,disabled:r,onClick:i,onMouseEnter:o,onMouseLeave:c,label:d,selected:u}=e,m=l-t>=-.25,x=l-t>=-.75;return(0,a.jsxs)("button",{"data-inp-target":"rating",className:"relative",disabled:r,type:"button","aria-label":null!=d?d:t.toString(),"aria-pressed":u,onFocus:()=>o(t),onBlur:c,onClick:()=>null==i?void 0:i(t),onMouseEnter:()=>o(t),onMouseLeave:()=>c(),children:[(0,a.jsx)(s,{className:5!==t?"mr-1":void 0}),(0,a.jsx)("span",{className:"pointer-events-none absolute left-0 top-0 block h-full overflow-hidden",style:{width:m?"16px":x?"8px":0},children:(0,a.jsx)(n,{})})]},t)},o=[1,2,3,4,5];function c(e){let{rating:t,groupLabel:l,className:s="",disabled:n=!1,selectedScore:c,scoreLabels:d,onRate:u}=e,[m,x]=(0,r.useState)(null),h=n?t:null!=m?m:t;return(0,a.jsx)("div",{className:"relative inline-block ".concat(s),children:(0,a.jsx)("div",{className:"flex flex-nowrap",role:"group","aria-label":l,children:o.map(e=>(0,a.jsx)(i,{value:e,label:null==d?void 0:d[e-1],selected:void 0===c?void 0:c===e,onClick:e=>{x(null),u(e)},onMouseEnter:x,onMouseLeave:()=>x(null),disabled:n,ratingViewValue:h},e))})})}},46314:(e,t,l)=>{l.d(t,{EmptyList:()=>s});var a=l(54568),r=l(49080);let s=(0,l(7620).memo)(e=>{let{onClear:t,label:l,buttonLabel:s}=e;return(0,a.jsxs)("div",{"data-cy":"EmptyList",className:"flex flex-col gap-4",children:[(0,a.jsx)("span",{className:"link-normal block w-full p-4 text-center",children:l}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(r.$n,{onClick:t,children:s})})]})});s.displayName="EmptyList"},74292:(e,t,l)=>{l.r(t),l.d(t,{ProductHitsStoreFilters:()=>d});var a=l(54568),r=l(49080),s=l(53070),n=l(93235),i=l(27541),o=l(7620),c=l(4827);let d=e=>{let{labels:t,locale:l,popularStoreIds:d,searchTerm:m,selectedStoreIds:x,stores:h}=e,{push:f}=(0,i.useRouter)(),{url:p}=(0,n._p)(),[v,b]=(0,o.useState)(m),[w,g]=(0,o.useState)(x),L=(0,o.useRef)(new Set(x)),j=(0,o.useRef)(m),[N]=(0,c.Q3)(v,500);(0,o.useEffect)(()=>{j.current=m,b(m)},[m]),(0,o.useEffect)(()=>
1{L.current=new Set(x),g(x)},[x]);let C=(0,o.useCallback)((e,t)=>{f(p({page:1,q:e,store:t}),{scroll:!1})},[f,p]);return(0,o.useEffect)(()=>{N!==j.current&&(j.current=N,C(N,[...L.current]))},[N,C]),(0,a.jsxs)("div",{className:"flex w-full flex-wrap gap-6 lg:flex-nowrap","data-testid":"ProductHitsFilters",children:[(0,a.jsx)(r.Sm,{className:"w-full lg:max-w-sm",classNameLabel:"text-md",label:t.search,value:v,onChange:b,icon:(0,a.jsx)(u,{hasText:!!v,label:t.clearSearch,onClear:()=>b("")}),placeholder:t.searchPlaceholder,type:"search"}),(0,a.jsx)(s.L6,{labels:t,locale:l,onClearFilters:()=>{L.current=new Set,j.current="",b(""),g([]),C("",[])},onStoreToggle:e=>{let t=new Set(L.current);t.has(e)?t.delete(e):t.add(e);let l=h.map(e=>e.id).filter(e=>t.has(e));L.current=new Set(l),g(l),j.current=v,C(v,l)},popularStoreIds:d,selectedStoreIds:w,showClearFilters:v.trim().length>0||w.length>0,stores:h})]})};function u(e){let{hasText:t,label:l,onClear:s}=e;return t?(0,a.jsx)("button",{type:"button","aria-label":l,onClick:s,children:(0,a.jsx)(r.ie,{className:"opacity-60"})}):(0,a.jsx)(r.NX,{className:"opacity-60"})}},81838:(e,t,l)=>{l.d(t,{ButtonsList:()=>n});var a=l(54568),r=l(7620),s=l(18842);let n=r.memo(e=>{let{buttons:t,className:l,classNameButtonList:n,classNameTitle:i,dataTestId:o,setHasScroll:c,title:d}=e,u=(0,r.useRef)(null),[m,x]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!u.current)return;let{scrollLeft:e,scrollWidth:t,clientWidth:l,scrollHeight:a,clientHeight:r}=u.current;e+l<.95*t&&x(!0),null==c||c(l!==t||r!==a)},[u.current]),(0,a.jsxs)("div",{"data-chromatic":"ignore",className:(0,s.Q)("relative mb-3 w-full max-w-[100vw] overflow-hidden",l),"data-testid":o,children:[d&&(0,a.jsx)("div",{className:(0,s.Q)("link-normal mb-2 block",i),children:d}),(0,a.jsxs)("div",{className:"relative overflow-hidden",children:[(0,a.jsx)("div",{className:(0,s.Q)("flex w-full gap-1 overflow-x-auto pb-3 lg:flex-wrap",n),onScroll:()=>{if(!u.current)return;let{scrollLeft:e,scrollWidth:t,clientWidth:l}=u.current;e+l>=.95*t?m&&x(!1):m||x(!0),0===e?h&&f(!1):h||f(!0)},ref:u,"data-cy":"ButtonsListScrollable",tabIndex:0,children:t}),(0,a.jsx)("div",{"data-cy":"ButtonsListShadowLeft","data-chromatic":"ignore","aria-disabled":!0,className:(0,s.Q)("shadow-backgroundColor absolute right-full top-0 h-full w-1 opacity-0 shadow-[0_0_16px_16px_rgba(0,0,0,0)] transition",h&&"opacity-100")}),(0,a.jsx)("div",{"data-chromatic":"ignore","data-cy":"ButtonsListShadowRight","aria-disabled":!0,className:(0,s.Q)("shadow-backgroundColor absolute left-full top-0 h-full w-1 opacity-0 shadow-[0_0_16px_16px_rgba(0,0,0,0)] transition",m&&"opacity-100")})]})]})});n.displayName="ButtonsList"}}]);
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.