1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[527],{24617:(e,a,t)=>{t.d(a,{p:()=>o});var l=t(11650),r=t(50633),n=t(78410),s=t(36624),i=t(57639);let o=n.forwardRef((e,a)=>{let{prepend:t,append:o,label:c,className:d,required:u,errors:m,colorScheme:x="light",id:h,...p}=e,f=n.useId();return(0,l.jsxs)("div",{className:(0,r.$)("w-full space-y-2",d),children:[null!=c&&""!==c&&(0,l.jsx)(i.J,{colorScheme:x,htmlFor:null!=h?h:f,children:c}),(0,l.jsxs)("div",{className:(0,r.$)("relative overflow-hidden rounded-lg border transition-colors duration-200 focus:outline-none",{light:"border-[var(--input-light-border,hsl(var(--contrast-300)))] bg-[var(--input-light-background,hsl(var(--background)))] focus-within:border-[var(--input-light-focus,hsl(var(--foreground)))]",dark:"border-[var(--input-dark-border,hsl(var(--contrast-500)))] bg-[var(--input-dark-background,hsl(var(--foreground)))] focus-within:border-[var(--input-dark-focus,hsl(var(--background)))]"}[x]),children:[null!=t&&""!==t&&(0,l.jsx)("span",{className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2",children:t}),null!=o&&""!==o&&(0,l.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:o}),(0,l.jsx)("input",{...p,className:(0,r.$)("w-full px-6 py-3 text-sm [appearance:textfield] placeholder:font-normal focus:outline-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{light:"bg-[var(--input-light-background,hsl(var(--background)))] text-[var(--input-light-text,hsl(var(--foreground)))] placeholder:text-[var(--input-light-placeholder,hsl(var(--contrast-300)))]",dark:"bg-[var(--input-dark-background,hsl(var(--foreground)))] text-[var(--input-dark-text,hsl(var(--background)))] placeholder:text-[var(--input-dark-placeholder,hsl(var(--contrast-100)))]"}[x],{"py-2.5 pe-4 ps-12":t},{"pe-16":o}),id:null!=h?h:f,ref:a})]}),null==m?void 0:m.map(e=>(0,l.jsx)(s.b,{children:e},e))]})});o.displayName="Input"},34202:(e,a,t)=>{t.d(a,{CompareDrawer:()=>x});var l=t(11650),r=t(55424),n=t(80154),s=t(90661),i=t(78410),o=t(39357),c=t(68901);function d(e){let{children:a}=e,[t,r]=(0,i.useState)(null);return(0,i.useEffect)(()=>r(window.document),[]),t&&(0,l.jsx)(c.b,{className:"sticky bottom-0 z-10 w-full border-t bg-background px-3 py-4 @container @md:py-5 @xl:px-6 @5xl:px-10",children:a})}var u=t(14703),m=t(63387);function x(e){let{items:a,paramName:t="compare",action:c,submitLabel:x="Compare"}=e,[,h]=(0,s.ZA)(t,(0,s.IN)(s.tU).withOptions({shallow:!1,scroll:!1}));return a.length>0&&(0,l.jsx)(d,{children:(0,l.jsxs)("form",{action:c,className:"mx-auto flex w-full max-w-7xl flex-col items-start justify-end gap-x-3 gap-y-4 @md:flex-row",children:[(0,l.jsx)("div",{className:"flex flex-1 flex-wrap justify-end gap-4",children:a.map(e=>{var a;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{name:t,type:"hidden",value:e.id},e.id),(0,l.jsxs)(m.Link,{className:"group relative flex max-w-56 items-center whitespace-nowrap rounded-xl border border-contrast-100 bg-background font-semibold ring-primary transition-all duration-150 hover:bg-contrast-100 focus:outline-0 focus:ring-2",href:e.href,children:[(0,l.jsx)("div",{className:"bg-primary-highlight/10 relative aspect-square w-12 shrink-0",children:(null==(a=e.image)?void 0:a.src)!=null?(0,l.jsx)(u.Image,{alt:e.image.alt,className:"rounded-lg object-cover @4xl:rounded-r-none",fill:!0,src:e.image.src}):(0,l.jsx)("span",{className:"max-w-full break-all p-1 text-xs text-primary-shadow opacity-20",children:e.title.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2)})}),(0,l.jsx)("span",{className:"hidden truncate pl-3 pr-5 text-foreground @4xl:block",children:e.title})]}),(0,l.jsx)("button",{"aria-label":"Remove ".concat(e.title),className:"absolute -right-2.5 -top-2.5 flex h-7 w-7 items-center justify-center rounded-full border border-contrast-100 bg-background text-contrast-400 transition-colors duration-150 hover:border-contrast-200 hover:bg-contrast-100 hover:text-foreground",onClick:()=>{(0,i.startTransition)(async()=>{await h(a=>{var t;let l=null!=(t=null==a?void 0:a.filter(a=>a!==e.id))?t:[];return l.length>0?l:null})})},type:"button",children:(0,l.jsx)(r.A,{absoluteStrokeWidth:!0,size:16,strokeWidth:1.5})})]},e.id)})}),(0,l.jsxs)(o.$,{className:"hidden @md:block",size:"medium",type:"submit",variant:"primary",children:[x," ",(0,l.jsx)(n.A,{absoluteStrokeWidth:!0,size:20,strokeWidth:1})]}),(0,l.jsxs)(o.$,{className:"w-full @md:hidden",size:"small",type:"submit",variant:"primary",children:[x," ",(0,l.jsx)(n.A,{absoluteStrokeWidth:!0,size:16,strokeWidth:1})]})]})})}},44304:(e,a,t)=>{t.d(a,{Sorting:()=>
1o,SortingSkeleton:()=>c});var l=t(11650),r=t(90661),n=t(78410),s=t(52693),i=t(35263);function o(e){var a,t;let{label:o,options:c,paramName:d="sort",defaultValue:u="",placeholder:m}=e,[x,h]=(0,r.ZA)(d,r.tU.withDefault(u).withOptions({shallow:!1,history:"push"})),[p,f]=(0,n.useOptimistic)(x),[g,v]=(0,n.useTransition)(),b=(0,i.aI)(c),j=null!=(a=(0,i.aI)(o))?a:"Sort",N=null!=(t=(0,i.aI)(m))?t:"Sort by";return(0,l.jsx)(s.l,{hideLabel:!0,label:j,name:d,onValueChange:e=>{v(async()=>{f(e),await h(e)})},options:b,pending:g,placeholder:N,value:p,variant:"round"})}function c(){return(0,l.jsx)("div",{className:"h-[50px] w-[12ch] animate-pulse rounded-full bg-contrast-100"})}},49218:(e,a,t)=>{t.d(a,{F:()=>n,G:()=>s});var l=t(11650),r=t(50633);let n=e=>{let{type:a}=e,t={empty:(0,l.jsx)("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:(0,l.jsx)("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return(0,l.jsx)("svg",{className:"inline-block text-foreground",fill:"none",height:20,viewBox:"0 0 20 20",width:20,children:t[a]})},s=function(e){let{showRating:a=!0,rating:t,numberOfReviews:s,showNumberOfReviews:i=!0,className:o}=e,c=Math.min(t,5),d=Array.from({length:5},(e,a)=>a<Math.floor(c)?"full":a<Math.ceil(c)?"half":"empty");return(0,l.jsxs)("div",{className:(0,r.$)("flex items-center",o),children:[d.map((e,a)=>(0,l.jsx)(n,{type:e},a)),a&&(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"ml-2 flex h-6 shrink-0 items-center justify-center text-xs font-semibold text-foreground bg-gray-100 border-gray-300 border rounded-full px-2",children:c%1!=0?c.toFixed(1):c}),i&&null!=s&&(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"mx-1 h-4 w-px bg-contrast-200"}),(0,l.jsxs)("span",{className:"text-xs text-contrast-500",children:[s," ",1===s?"review":"reviews"]})]})]})]})}},52693:(e,a,t)=>{t.d(a,{l:()=>u});var l=t(11650),r=t(34506),n=t(50633),s=t(92602),i=t(24551),o=t(78410),c=t(36624),d=t(57639);function u(e){let{label:a,hideLabel:t=!1,name:u,pending:m=!1,placeholder:x="Select an item",variant:h="rectangle",options:p,className:f,errors:g,onFocus:v,onBlur:b,onOptionMouseEnter:j,value:N,...y}=e,k=o.useId();return(0,l.jsxs)("div",{className:(0,n.$)("w-full space-y-2",f),children:[void 0!==a&&""!==a&&(0,l.jsx)(d.J,{className:(0,n.$)(t&&"sr-only","mb-2"),htmlFor:k,children:a}),(0,l.jsxs)(r.bL,{...y,value:N,children:[(0,l.jsxs)(r.l9,{"aria-label":a,className:(0,n.$)("flex h-fit w-full select-none items-center justify-between gap-3 border bg-white p-2 px-5 py-3 text-sm font-normal text-foreground ring-anthemRed transition-colors hover:border-contrast-300 hover:bg-contrast-100 focus-visible:outline-none focus-visible:ring-2 data-[placeholder]:text-contrast-300","rectangle"===h?"rounded-lg":"rounded-full",g&&g.length>0?"border-error":"border-contrast-300"),"data-pending":!!m||null,id:k,name:u,onBlur:b,onFocus:v,children:[(0,l.jsx)(r.WT,{placeholder:x}),(0,l.jsx)(r.In,{asChild:!0,children:(0,l.jsx)(s.A,{className:"w-5 text-foreground transition-transform",strokeWidth:1.5})})]}),(0,l.jsx)(r.ZL,{children:(0,l.jsxs)(r.UC,{className:"z-50 max-h-80 w-full overflow-y-scroll roun
1ded-xl bg-background p-2 shadow-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 @4xl:rounded-3xl @4xl:p-4",children:[(0,l.jsx)(r.PP,{className:"flex w-full cursor-default items-center justify-center py-3",children:(0,l.jsx)(i.A,{className:"w-5 text-foreground",strokeWidth:1.5})}),(0,l.jsx)(r.LM,{children:p.map(e=>(0,l.jsx)(r.q7,{className:"w-full cursor-default select-none rounded-xl px-3 py-2 text-sm font-medium text-contrast-400 outline-none transition-colors hover:bg-contrast-100 hover:text-foreground focus-visible:bg-contrast-100 focus-visible:text-foreground data-[state=checked]:text-foreground @4xl:text-base",onMouseEnter:()=>{null==j||j(e.value)},value:e.value,children:(0,l.jsx)(r.p4,{children:e.label})},e.value))}),(0,l.jsx)(r.wn,{className:"flex w-full cursor-default items-center justify-center py-3",children:(0,l.jsx)(s.A,{className:"w-5 text-foreground",strokeWidth:1.5})})]})})]}),null==g?void 0:g.map(e=>(0,l.jsx)(c.b,{children:e},e))]})}},57100:(e,a,t)=>{t.d(a,{$:()=>c});
1var l=t(11650),r=t(50633),n=t(78410),s=t(36624),i=t(57639),o=t(78822);function c(e){let{className:a,label:t,options:c,errors:d,name:u,value:m,onValueChange:x}=e,h=n.useId();return(0,l.jsxs)("div",{className:(0,r.$)("space-y-2",a),children:[void 0!==t&&""!==t&&(0,l.jsx)(i.J,{id:h,children:t}),(0,l.jsx)("div",{"aria-labelledby":h,className:"space-y-2",children:c.map(e=>(0,l.jsx)(o.S,{checked:m.includes(e.value),label:e.label,name:u,onCheckedChange:a=>x(!0===a?[...m,e.value]:m.filter(a=>a!==e.value)),value:e.value},e.value))}),null==d?void 0:d.map(e=>(0,l.jsx)(s.b,{children:e},e))]})}},57639:(e,a,t)=>{t.d(a,{J:()=>s});var l=t(11650),r=t(46533),n=t(50633);function s(e){let{className:a,colorScheme:t="light",...s}=e;return(0,l.jsx)(r.b,{...s,className:(0,n.$)("block font-mono text-xs uppercase",{light:"text-[var(--label-light-text,hsl(var(--contrast-500)))]",dark:"text-[var(--label-dark-text,hsl(var(--contrast-100)))]"}[t],a)})}},71116:(e,a,t)=>{t.d(a,{Accordion:()=>i,Accordions:()=>d});var l=t(11650),r=t(95443),n=t(50633),s=t(78410);function i(e){let{children:a,title:t,titleHtml:i,colorScheme:d="light",contentClassName:u,titleClassName:m,usePlusMinus:x=!1,...h}=e,[p,f]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{f(!0)},[]),(0,l.jsxs)(r.q7,{...h,children:[(0,l.jsx)(r.Y9,{children:(0,l.jsxs)(r.l9,{className:"group flex w-full cursor-pointer items-start gap-8 py-3 text-start @md:py-4",children:[i?(0,l.jsx)("div",{className:(0,n.$)("flex-1 select-none font-[family-name:var(--accordion-title-font-family,var(--font-family-mono))] text-md uppercase transition-colors duration-300 ease-out",m),dangerouslySetInnerHTML:{__html:i}}):(0,l.jsx)("div",{className:(0,n.$)("flex-1 select-none font-[family-name:var(--accordion-title-font-family,var(--font-family-mono))] text-md uppercase transition-colors duration-300 ease-out",m),children:t}),x?(0,l.jsx)(c,{className:(0,n.$)({light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[d])}):(0,l.jsx)(o,{className:(0,n.$)({light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[d])})]})}),(0,l.jsx)(r.UC,{className:(0,n.$)("overflow-hidden",p&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),children:(0,l.jsx)("div",{className:(0,n.$)("pb-5 font-[family-name:var(--accordion-content-font-family)] font-medium leading-normal",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[d]),children:a})})]})}function o(e){let{className:a,...t}=e;return(0,l.jsxs)("svg",{...t,className:(0,n.$)("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",a),viewBox:"0 0 10 10",width:16,children:[(0,l.jsx)("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),(0,l.jsx)("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})}function c(e){let{className:a,...t}=e;return(0,l.jsxs)("svg",{...t,className:(0,n.$)("mt-1 shrink-0",a),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,l.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,l.jsx)("line",{className:"origin-center transition-transform duration-300 ease-out group-data-[state=open]:rotate-90",x1:"12",y1:"8",x2:"12",y2:"16"})]})}let d=r.bL},75379:(e,a,t)=>{t.d(a,{FiltersPanel:()=>v});
1var l=t(11650),r=t(50633),n=t(90661),s=t(78410),i=t(78822),o=t(80154),c=t(24617),d=t(39357);let u=(e,a,t)=>Math.min(Math.max(e,null!=a?a:-1/0),null!=t?t:1/0);function m(e){var a,t,r,n;let{applyLabel:i="Apply",disabled:m=!1,max:x,maxLabel:h,maxName:p="max",maxPlaceholder:f="Max",maxPrepend:g,maxStep:v,min:b,minLabel:j,minName:N="min",minPlaceholder:y="Min",minPrepend:k,minStep:w,onChange:L,value:C}=e,[S,A]=(0,s.useState)({min:null!=(r=null==C||null==(a=C.min)?void 0:a.toString())?r:"",max:null!=(n=null==C||null==(t=C.max)?void 0:t.toString())?n:""});(0,s.useEffect)(()=>{var e,a,t,l;A({min:null!=(t=null==C||null==(e=C.min)?void 0:e.toString())?t:"",max:null!=(l=null==C||null==(a=C.max)?void 0:a.toString())?l:""})},[C]);let $=parseInt(S.min,10),P=parseInt(S.max,10),I=Number.isNaN($)?null:$,M=Number.isNaN(P)?null:P;return(0,l.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,l.jsx)(c.p,{className:"flex-1",disabled:m,label:j,max:null!=M?M:x,min:b,name:N,onBlur:e=>{let a=u(e.currentTarget.valueAsNumber,null!=b?b:null,""===e.currentTarget.max?null:parseInt(e.currentTarget.max,10)),t=Number.isNaN(a)?null:a;A(e=>{var a;return{...e,min:null!=(a=null==t?void 0:t.toString())?a:""}})},onChange:e=>{let a=e.currentTarget.value;A(e=>({...e,min:a}))},placeholder:y,prepend:k,step:w,type:"number",value:S.min}),(0,l.jsx)(c.p,{className:"flex-1",disabled:m,label:h,max:x,min:null!=I?I:b,name:p,onBlur:e=>{let a=u(e.currentTarget.valueAsNumber,""===e.currentTarget.min?null:parseInt(e.currentTarget.min,10),x),t=Number.isNaN(a)?null:a;A(e=>{var a;return{...e,max:null!=(a=null==t?void 0:t.toString())?a:""}})},onChange:e=>{let a=e.currentTarget.value;A(e=>({...e,max:a}))},placeholder:f,prepend:g,step:v,type:"number",value:S.max}),(0,l.jsxs)(d.$,{className:"shrink-0",disabled:m||S.min===S.max&&""!==S.min&&""!==S.max,onClick:()=>null==L?void 0:L({min:""===S.min?null:Number(S.min),max:""===S.max?null:Number(S.max)}),shape:"circle",size:"small",variant:"secondary",children:[(0,l.jsx)("span",{className:"sr-only",children:i}),(0,l.jsx)(o.A,{size:20,strokeWidth:1})]})]})}var x=t(57100),h=t(35263),p=t(71116),f=t(49218),g=t(26772);function v(e){let{className:a,filters:t,resetFiltersLabel:r,rangeFilterApplyLabel:n}=e;return(0,l.jsx)(s.Suspense,{fallback:(0,l.jsx)(j,{}),children:(0,l.jsx)(b,{className:a,filters:t,rangeFilterApplyLabel:n,resetFiltersLabel:r})})}function b(e){var a,t,o;let{className:c,filters:u,resetFiltersLabel:v,rangeFilterApplyLabel:b,paginationInfo:j}=e,N=(0,h.aI)(u),y=null!=(a=(0,h.aI)(v))?a:"Reset filters",k=(0,h.aI)(b),w=(0,h.aI)(j),L=null!=(t=null==w?void 0:w.startCursorParamName)?t:"before",C=null!=(o=null==w?void 0:w.endCursorParamName)?o:"after",[S,A]=(0,n.ab)({...N.filter(e=>"link-group"!==e.type).reduce((e,a)=>"range"===a.type?{...e,[a.minParamName]:g.GJ,[a.maxParamName]:g.GJ}:{...e,[a.paramName]:(0,g.IN)(g.tU)},{}),[L]:n.tU,[C]:n.tU},{shallow:!1,history:"push"}),[$,P]=(0,s.useTransition)(),[I,M]=(0,s.useOptimistic)(S),[z,T]=(0,s.useState)(()=>N.filter(e=>"link-group"!==e.type).map((e,a)=>({key:a.toString(),value:a.toString(),filter:e,expanded:a<1})));return 0===N.length?null:(N.filter(e=>"link-group"===e.type),(0,l.jsxs)("div",{className:(0,r.$)("space-y-5",c),"data-pending":!!$||null,children:[(0,l.jsx)(p.Accordions,{onValueChange:e=>T(a=>a.map(a=>({...a,expanded:e.includes(a.value)}))),type:"multiple",value:z.filter(e=>e.expanded).map(e=>e.value),children:z.map(e=>{var a,t,r,n;let{key:s,value:o,filter:c}=e;switch(c.type){case"toggle-group":let d="ProductSeries"===c.label?"Series":"ProductCategory"===c.label?"Category":"ProductName"===c.label?"Product Name":c.label;return(0,l.jsx)(p.Accordion,{title:"".concat(d).concat(Array.isArray(I[n=c.paramName])&&I[n].length>0?"(".concat(I[n].length,")"):""),value:o,children:(0,l.jsx)(x.$,{label:"",options:c.options,name:c.paramName,value:null!=(a=I[c.paramName])?a:[],onValueChange:e=>{P(async()=>{let a={...I,[L]:null,[C]:null,[c.paramName]:0===e.length?null:e};M(a),await A(a)})},className:"font-light"})},s);case"range":return(0,l.jsx)(p.Accordion,{title:c.label,value:o,children:(0,l.jsx)(m,{applyLabel:k,disabled:c.disabled,max:c.max,maxLabel:c.maxLabel,maxName:c.maxParamName,maxPlaceholder:c.maxPlaceholder,maxPrepend:c.maxPrepend,min:c.min,minLabel:c.minLabel,minName:c.minParamName,minPlaceholder:c.minPlaceholder,minPrepend:c.minPrepend,onChange:e=>{let{min:a,max:t}=e;P(async()=>{let e={...I,[c.minParamName]:a,[c.maxParamName]:t,[L]:null,[C]:null};M(e),await A(e)})},value:{min:null!=(t=I[c.minParamName])?t:null,max:null!=(r=I[c.maxParamName])?r:null}})},s);case"rating":return(0,l.jsx)(p.Accordion,{title:c.label,value:o,children:(0,l.jsx)("div",{className:"space-y-3",children:[5,4,3,2,1].map(e=>{var a,t;return(0,l.jsx)(i.S,{checked:null!=(t=null==(a=I[c.paramName])?void 0:a.includes(e.toString()))&&t,disabled:c.disabled,label:(0,l.jsx)(f.G,{rating:e,showRating:!1}),onCheckedChange:a=>P(async()=>{let t=new Set(I[c.paramName]);!0===a?t.add(e.toString()):t.delete(e.toString());let l={...I,[c.paramName]:Array.from(t),[L]:null,[C]:null};M(l),await A(l)}
1)},e)})})},s);default:return null}})}),(0,l.jsx)(d.$,{onClick:()=>{P(async()=>{let e={...Object.fromEntries(Object.entries(I).map(e=>{let[a]=e;return[a,null]})),[L]:I[L],[C]:I[C]};M(e),await A(e)})},size:"small",variant:"secondary",className:"font-heading",children:y})]}))}function j(){return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)(N,{children:(0,l.jsx)(y,{options:4,seed:2})}),(0,l.jsx)(N,{children:(0,l.jsx)(y,{options:3,seed:1})}),(0,l.jsx)(N,{children:(0,l.jsx)(k,{})}),(0,l.jsx)("div",{className:"h-10 w-[10ch] animate-pulse rounded-full bg-contrast-100"})]})}function N(e){let{children:a}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"items-start py-3 font-mono text-sm uppercase last:flex @md:py-4",children:(0,l.jsx)("div",{className:"inline-flex h-[1lh] items-center",children:(0,l.jsx)("div",{className:"h-2 w-[10ch] flex-1 animate-pulse rounded-sm bg-contrast-100"})})}),(0,l.jsx)("div",{className:"pb-5",children:a})]})}function y(e){let{options:a,seed:t=0}=e;return(0,l.jsx)("div",{className:"flex flex-wrap gap-2",children:Array.from({length:a},(e,a)=>{let r=Math.floor((3*a+7+t)%8+6);return(0,l.jsx)("div",{className:"h-12 w-[var(--width)] animate-pulse rounded-full bg-contrast-100 px-4",style:{"--width":"".concat(r,"ch")}},a)})})}function k(){return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"h-12 w-[10ch] animate-pulse rounded-lg bg-contrast-100"}),(0,l.jsx)("div",{className:"h-12 w-[10ch] animate-pulse rounded-lg bg-contrast-100"}),(0,l.jsx)("div",{className:"h-10 w-10 shrink-0 animate-pulse rounded-full bg-contrast-100"})]})}},86189:(e,a,t)=>{t.d(a,{Content:()=>o,Root:()=>c,Trigger:()=>d});var l=t(11650),r=t(36649),n=t(50633),s=t(55424);t(78410);var i=t(39357);function o(e){let{title:a,children:t,side:o="right"}=e;return(0,l.jsx)(r.ZL,{children:(0,l.jsx)(r.hJ,{className:"fixed inset-0 z-30 bg-foreground
1/50 @container",children:(0,l.jsxs)(r.UC,{className:(0,n.$)("fixed inset-y-0 flex w-96 max-w-full flex-col bg-background","right"===o?"right-0 data-[state=open]:animate-slide-in-from-right data-[state=closed]:animate-slide-out-to-right":"left-0 data-[state=open]:animate-slide-in-from-left data-[state=closed]:animate-slide-out-to-left"),forceMount:!0,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 bg-background px-6 pb-4 pt-20 @md:px-8 @md:pt-7",children:[(0,l.jsx)(r.hE,{asChild:!0,children:(0,l.jsx)("div",{className:"text-2xl font-medium @lg:text-3xl font-heading",children:a})}),(0,l.jsx)(r.bm,{asChild:!0,children:(0,l.jsx)(i.$,{className:"translate-x-3",shape:"circle",size:"small",variant:"tertiary",children:(0,l.jsx)(s.A,{size:20,strokeWidth:1})})})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto px-6 pb-6 @md:px-8 @md:pb-8",children:t})]})})})}let c=r.bL,d=r.l9}}]);
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.