!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="90278e4e-caf5-4a2f-bb55-c184c69607d7",e._sentryDebugIdIdentifier="sentry-dbid-90278e4e-caf5-4a2f-bb55-c184c69607d7")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:tba-fe-titan-vavato":!0}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[924],{123:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(49204),i=n(22402),l=n.n(i),a=n(78014),o=n(97185),s=n(89377),c=n(55451),u=n(70074);let d="body-s-regular text-c-text-neutral-default no-underline transition-colors duration-150 ease-in";function f(e){let{crumbs:t,className:n}=e,i=(0,a.useTranslations)(),f=(0,u.Z)(),m=(e,t)=>{e&&f.track(e,{label:t})},{isBreakpoint:h}=(0,o.k)(),p=h("md");return(0,r.jsx)("nav",{className:(0,s.cn)("my-3",n),children:(0,r.jsxs)("ul",{className:(0,s.cn)("flex items-center",!p&&"[&>li:nth-last-child(2):not(.home)]:flex-shrink [&>li:nth-last-child(2):not(.home)]:overflow-hidden [&>li:nth-last-child(2):not(.home)]:text-ellipsis [&>li:nth-last-child(2):not(.home)]:whitespace-nowrap"),children:[(0,r.jsx)("li",{className:"home flex-shrink-0",children:(0,r.jsx)(l(),{href:"/",className:(0,s.cn)(d,"hover:text-c-text-neutral-obvious-default"),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"srOnly",children:i("homePage")}),(0,r.jsx)(c.J,{name:"home-2-line",className:"w-[1rem] align-middle"})]})})}),t.map(e=>e&&(0,r.jsx)("li",{className:(0,s.cn)('before:mx-2 before:text-c-text-neutral-default before:content-["/"]',1===t.length?"flex-shrink overflow-hidden text-ellipsis whitespace-nowrap":"flex-shrink-0",e.active&&1!==t.length&&"hidden md:list-item",p&&"last:flex-shrink last:overflow-hidden last:text-ellipsis last:whitespace-nowrap"),children:e.href?(0,r.jsx)(l(),{href:e.href,className:(0,s.cn)(d,"hover:text-c-text-neutral-obvious-default"),onClick:()=>m(e.eventName,e.label),children:e.label}):(0,r.jsx)("span",{className:(0,s.cn)(d,e.active&&"text-c-text-neutral-obvious-default"),children:e.label})},e.label))]})})}},20462:function(e,t,n){"use strict";n.d(t,{Z:function(){return d},x:function(){return i}});var r,i,l=n(49204),a=n(86074),o=n(89377),s=n(97118),c=n(53331),u=n.n(c);function d(e){let{title:t,body:n,actions:r,align:i="center",className:c,homePageLabel:d}=e,{locale:f,defaultLocale:m}=(0,a.useRouter)();return(0,l.jsxs)("div",{className:(0,o.cn)(u().emptyState,u()[i],c),children:["string"==typeof t?(0,l.jsx)("p",{className:(0,o.cn)("heading-4",u().title),children:t}):t,"string"==typeof n?(0,l.jsx)("p",{className:u().emptyStateContent,children:n}):n,r?(0,l.jsx)("div",{className:u().actions,children:r}):null,d&&(0,l.jsx)(s.Z,{component:"a",href:"".concat(f===m?"":"/".concat(f)),className:u().homepageBtn,children:d})]})}(r=i||(i={})).CENTER="center",r.LEFT="left"},63894:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(49204),i=n(63955),l=n(55451),a=n(14455),o=n(27789),s=n(15779);function c(e){let{children:t,className:n,onClick:i}=e;return(0,r.jsx)(s.zx,{onClick:i,variant:"ghost",className:"flex h-8 items-center gap-0 text-nowrap bg-c-background-neutral-default text-label-default font-semibold text-c-text-neutral-default ".concat(n),children:t})}function u(e){let{filter:t}=e,{setValue:n}=(0,i.Gc)(),s=(0,o.Z)(a.xz);return(0,r.jsxs)(c,{className:"px-2.5 py-3",onClick:()=>{n(t.identifier,[t.min/100,t.max/100])},children:[t.currentMin," - ",t.currentMax," ",s,(0,r.jsx)(l.J,{color:"neutral",name:"close",className:"!ml-2 !h-4 !w-4 !text-c-icon-neutral-default"})]})}var d=n(78014);function f(e){let{className:t}=e,{reset:n}=(0,i.Gc)(),a=(0,d.useTranslations)();return(0,r.jsxs)(c,{className:"border border-solid border-c-stroke-neutral-obvious-default bg-c-surface-default px-2.5 py-3 hover:bg-c-background-brand-primary-x-subtle-default ".concat(t),onClick:n,children:[(0,r.jsx)("span",{children:a("filtersBarClearFilters")}),(0,r.jsx)(l.J,{color:"neutral",name:"delete-bin-6-line",className:"!ml-2 !h-4 !w-4 !text-c-icon-neutral-default"})]})}function m(e){let{filter:t}=e,{setValue:n}=(0,i.Gc)();return(0,r.jsxs)(c,{className:"px-2.5 py-3",onClick:()=>{n("".concat(t.identifier,".").concat(t.id),!1)},children:[t.name,(0,r.jsx)(l.J,{color:"neutral",name:"close",className:"!ml-2 !h-4 !w-4 !text-c-icon-neutral-default"})]})}function h(e){var t;let{mappedFilters:n,controls:i}=e;return(null==n?void 0:n.selectionFilters.length)!==0||0!==n.rangeFilters.length||i?(0,r.jsxs)("div",{className:"mb-4 mt-4 flex flex-row items-center gap-4 overflow-x-auto md:mb-0 md:w-full md:flex-wrap md:overflow-x-visible",children:[null==n?void 0:null===(t=n.selectionFilters)||void 0===t?void 0:t.map(e=>(0,r.jsx)(m,{filter:e},e.id)),null==n?void 0:n.rangeFilters.map(e=>(0,r.jsx)(u,{filter:e},e.identifier)),!!((null==n?void 0:n.rangeFilters.length)||(null==n?void 0:n.selectionFilters.length))&&(0,r.jsx)(f,{className:"order-first md:order-none"}),i&&(0,r.jsx)("div",{className:"ml-auto overflow-x-visible overflow-y-visible",children:i})]}):null}var p=n(74561),b=n(21155);function x(e){let{filters:t,controls:n}=e,l=(0,i.qo)(),[a,o]=(0,p.useState)([]),[s,c]=(0,p.useState)([]);return((0,p.useEffect)(()=>{let e=(0,b.t)(l,t);o(e.selectionFilters),c(e.rangeFilters)},[t,l]),0!==a.length||0!==s.length||n)?(0,r.jsxs)("div",{className:"mb-4 mt-4 flex flex-row items-center gap-4 overflow-x-auto md:mb-0 md:w-full md:flex-wrap md:overflow-x-visible",children:[a.map(e=>(0,r.jsx)(m,{filter:e},e.id)),s.map(e=>(0,r.jsx)(u,{filter:e},e.identifier)),!!(a.length||s.length)&&(0,r.jsx)(f,{className:"md:order-0 order-1"}),n&&(0,r.jsx)("div",{className:"ml-auto overflow-x-visible overflow-y-visible",children:n})]}):null}function v(e){let{filters:t,mappedFilters:n,controls:i}=e;return n?(0,r.jsx)(h,{mappedFilters:n,controls:i}):(0,r.jsx)(x,{filters:t,controls:i})}},21155:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(45639);function i(e,t){let n=[],i=[];for(let l in e){let a=null==t?void 0:t.find(e=>e.identifier===l);a&&(0,r.Xg)(l)&&"categoryLevel1"!==l&&"categoryLevel2"!==l&&function(e,t,n,r){Object.entries(e[t]).forEach(e=>{let[i,l]=e;if(l){var a;let e=null===(a=n.filters.find(e=>e.value===i))||void 0===a?void 0:a.name;e&&r.push({identifier:t,id:i,name:e})}})}(e,l,a,n),a&&(0,r.xX)(a)&&function(e,t,n,r){let i=r[t];i&&(i[1]!==e.max/100||i[0]!==e.min/100)&&("currentMin"in e?i[0]===e.currentMin/100&&i[1]===e.currentMax/100&&e.currentMin>=e.min&&e.currentMax<=e.max&&n.push({identifier:t,currentMax:e.currentMax/100,currentMin:e.currentMin/100,max:e.max,min:e.min}):n.push({identifier:t,currentMax:i[1],currentMin:i[0],max:e.max,min:e.min}))}(a,l,i,e)}return{selectionFilters:n,rangeFilters:i}}},5606:function(e,t,n){"use strict";n.d(t,{Z:function(){return ea}});var r=n(49204),i=n(74561),l=n(78014),a=n(89377),o=n(63955),s=n(86074),c=n(97185),u=n(15779),d=n(92968);function f(e){let{className:t,classNames:n,showOutsideDays:i=!0,...l}=e,{locale:o}=(0,s.useRouter)();function c(e,t){return new Intl.DateTimeFormat(o,t).format(e)}return(0,r.jsx)(d._W,{showOutsideDays:i,className:(0,a.cn)("bg-c-surface-overlay-default p-3",t),formatters:{formatCaption:e=>c(e,{month:"long",year:"numeric"}),formatWeekdayName:e=>c(e,{weekday:"short"})},classNames:{months:"flex flex-col sm:flex-row space-y-4 md:space-x-4 md:space-y-0 md:gap-4 md:ml-[-15px]",month:"!ml-0 !mt-0",month_caption:"flex justify-center pt-1 relative items-center mb-3",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",button_previous:"z-10 absolute left-3 top-6 bg-transparent h-7 w-7 p-0 opacity-50 hover:opacity-100",button_next:"z-10 absolute right-3 top-6 bg-transparent h-7 w-7 p-0 opacity-50 hover:opacity-100",month_grid:"w-full  space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"text-sm [&:has([aria-selected])]:bg-c-text-brand-primary-default [&:has([aria-selected].day-outside)]:bg-accent/50 relative p-0 text-center focus-within:relative focus-within:z-20 [&:has([aria-selected].day-range-end)]:rounded-r-md",day_button:"font-normal h-8 w-8 border-none p-0 aria-selected:opacity-100 ",range_start:"!bg-c-background-neutral-default rounded-none rounded-l-lg [&>button]:bg-c-text-brand-primary-default [&>button]:rounded-lg overflow-hidden",range_middle:"rounded-none !bg-c-background-brand-primary-x-subtle-default !text-c-text-neutral-obvious-default",range_end:"!bg-c-background-neutral-default rounded-none rounded-r-lg [&>button]:bg-c-text-brand-primary-default [&>button]:rounded-lg overflow-hidden",selected:"text-c-text-inverse-default bg-c-text-brand-primary-default rounded-lg",today:"bg-accent text-accent-foreground",outside:"day-outside text-muted-foreground opacity-50  aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",disabled:"text-muted-foreground opacity-50",hidden:"invisible",...n},...l})}var m=n(55451),h=n(51503);let p=(0,i.forwardRef)((e,t)=>{let{children:n,content:l,trigger:o="click",showMobileOverlay:s}=e,[c,u]=(0,i.useState)(!1),[d,f]=(0,i.useState)(!0),m=(0,i.useRef)(null),p=(0,i.useRef)(null);return(0,i.useEffect)(()=>{function e(e){m.current&&!m.current.contains(e.target)&&u(!1)}return c&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c]),(0,i.useEffect)(()=>{let e=()=>{if(m.current&&p.current){let e=m.current.getBoundingClientRect(),t=e.top,n=window.innerHeight-e.bottom;f(n>p.current.offsetHeight||n>t)}};return c&&(e(),window.addEventListener("resize",e)),()=>{window.removeEventListener("resize",e)}},[c]),(0,i.useImperativeHandle)(t,()=>({close(){u(!1)}})),(0,r.jsxs)("div",{ref:m,onMouseEnter:()=>{"hover"===o&&u(!0)},onMouseLeave:()=>{"hover"===o&&u(!1)},className:"relative flex h-fit w-full justify-center",children:[(0,r.jsx)(h.g7,{onClick:()=>u(e=>!e),children:n}),s&&(0,r.jsx)("div",{className:(0,a.cn)("fixed inset-0 z-20 hidden bg-c-text-neutral-obvious-default opacity-50",c&&"block md:hidden")}),(0,r.jsx)("div",{hidden:!c,ref:p,className:"".concat(s?"fixed top-[10%] md:absolute md:top-[100%]":"absolute"," left-[50%] z-50 h-fit min-w-fit translate-x-[-50%] transition-all xl:left-0 xl:translate-x-0 ").concat(d?"md:top-[100%]":"md:bottom-[100%]"),children:(0,r.jsx)("div",{className:"mt-3 rounded shadow",children:l})})]})}),b=e=>{if(e)return e instanceof Date?e:new Date(1e3*e)},x=(e,t)=>({from:b(e),to:b(t)}),v=e=>{if(!e)return e;let t=new Date(e);return t.setHours(23,59,59,999),t},g=e=>{if(!e)return e;let t=new Date(e);return t.setHours(0,0,0,0),t},y=(e,t)=>{if(e)return new Date(e).toLocaleDateString("en"===t?"en-GB":t,{year:"numeric",month:"short",day:"numeric"})};function j(e){var t,n,d,h;let{name:b}=e,j=new Date;j.setHours(0,0,0,0);let{isBreakpoint:w}=(0,c.k)(),N=w("md"),{setValue:_,watch:S}=(0,o.Gc)(),{locale:k}=(0,s.useRouter)(),C=(0,l.useTranslations)(),[M,E]=null!==(t=S(b))&&void 0!==t?t:[],[L,A]=(0,i.useState)(x(M,E)),[T,D]=(0,i.useState)(1),B=(0,i.useRef)(null);(0,i.useEffect)(()=>{D(N?2:1)},[N]),(0,i.useEffect)(()=>{A(x(M,E))},[M,E]);let O=()=>{B.current&&B.current.close()};return(0,r.jsx)(p,{ref:B,showMobileOverlay:!0,content:(0,r.jsx)(f,{mode:"range",numberOfMonths:T,defaultMonth:null!==(n=null==L?void 0:L.from)&&void 0!==n?n:new Date,selected:L,onSelect:e=>{let t=(null==e?void 0:e.to)?v(e.to):v(null==e?void 0:e.from);A({from:g(null==e?void 0:e.from),to:t})},className:"rounded-md border",disabled:e=>{let t=new Date(e);return t.setHours(0,0,0,0),t<j},footer:(0,r.jsxs)("div",{className:"mt-4 flex gap-3",children:[(0,r.jsx)(u.zx,{type:"button",className:"mr-auto flex justify-center !rounded-lg !py-1",variant:"ghost",onClick:O,size:"small",children:C("filterCategoryCloseDate")}),(0,r.jsx)(u.zx,{variant:"outline",className:"flex justify-center !rounded-lg !py-1",onClick:()=>{_(b,[],{shouldValidate:!1}),A(void 0),O()},type:"button",size:"small",children:C("filterCategoryClearDate")}),(0,r.jsx)(u.zx,{className:"flex justify-center !rounded-lg !py-1",onClick:()=>{if(!(null==L?void 0:L.from)){_(b,[],{shouldValidate:!1}),O();return}_(b,[null==L?void 0:L.from,null==L?void 0:L.to],{shouldValidate:!1}),O()},type:"button",size:"small",children:C("filterCategoryApplyDate")})]})}),children:(0,r.jsxs)(u.zx,{type:"button",className:(0,a.cn)("font-normal mb-4 w-full justify-start gap-2 bg-c-background-brand-primary-x-subtle-default px-4 py-1 text-left text-c-text-neutral-obvious-default hover:bg-c-background-brand-primary-x-subtle-default hover:text-c-text-neutral-obvious-default"),children:[(0,r.jsx)(m.J,{name:"calendar",className:"!text-c-icon-brand-primary-default"}),(null==L?void 0:L.from)?(d=L.from,(h=L.to)&&d.getFullYear()===h.getFullYear()&&d.getMonth()===h.getMonth()&&d.getDate()===h.getDate())?y(L.from,k):(0,r.jsxs)(r.Fragment,{children:[y(L.from,k)," - ",y(null==L?void 0:L.to,k)]}):(0,r.jsxs)("span",{children:[" ",C("filterCategorySelectClosingTime")]})]})})}var w=n(9494),N=n(14455),_=n(27375),S=n(17536),k=n(70074),C=n(97118),M=n(18251),E=n(90336),L=n.n(E);function A(e){let{name:t,options:n,parentId:s,multiSelect:c,initiallyVisibleCount:u,accordionEventName:d,nestedEventName:f}=e,m=(0,k.Z)(),[h,p]=(0,i.useState)(!1),b=(0,l.useTranslations)(),{control:x,unregister:v,watch:g}=(0,o.Gc)(),y=g(t),j=e=>s?"".concat(s,":").concat(e):e,w=s?n.map(e=>{var t;return{...e,selected:null!==(t=y&&y[j(e.value)])&&void 0!==t&&t}}).sort((e,t)=>e.selected&&!t.selected?-1:!e.selected&&t.selected?1:e.name.localeCompare(t.name)):n,N=(0,i.useMemo)(()=>h?w:w.slice(0,u),[h,u,w]),_=(e,t,n)=>{n?m.track(n,{label:t,value:e}):d&&m.track(d,{label:t,value:e})},E=(e,t,n,r,i)=>l=>{_(!t,n,i),e(l),t&&r&&v(r.filters.map(e=>"".concat(r.identifier,"[").concat((0,S.Eo)("".concat(r.parent,":").concat(e.value)),"]")),{keepValue:!1,keepDefaultValue:!1})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:L().filterList,children:N.map(e=>{let{name:n,value:i,nestedFilters:l,eventName:s}=e;return(0,r.jsx)(o.Qr,{control:x,name:"".concat(t,"[").concat(j(i),"]"),render:e=>{let{field:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M.Z,{id:j(i),label:n,value:j(i),name:t.name,checked:t.value,onChange:E(t.onChange,t.value,n,l,s),className:(0,a.cn)(!c&&L().filterCheckboxMulti)}),c&&l&&t.value?(0,r.jsx)("div",{className:L().nestedFilterList,children:(0,r.jsx)(A,{name:l.identifier,options:l.filters,parentId:l.parent,multiSelect:c,initiallyVisibleCount:u,accordionEventName:f})}):null]})}},j(i))})}),n.length>u&&(0,r.jsx)(C.Z,{onClick:()=>{p(e=>!e)},buttonStyle:"ghost",className:L().showMore,children:b(h?"filterCategoryShowLess":"filterCategoryShowMore")})]})}function T(e){let{title:t,options:n,name:i,initiallyVisibleCount:l,multiSelect:o,className:s,accordionEventName:c,nestedEventName:u,accordionSummaryClassName:d}=e;return(0,r.jsx)(_.Z,{initiallyOpen:!0,className:(0,a.cn)(L().filterAccordion,s),title:(0,r.jsx)("p",{className:L().filterListTitle,children:t}),accordionSummaryClassName:d,children:(0,r.jsx)(A,{name:i,options:n,multiSelect:o,initiallyVisibleCount:l,accordionEventName:c,nestedEventName:u})})}var D=n(75448),B=n(40605);let O="text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",F="pointer-events-none absolute bottom-0 left-0 top-0 me-0 ms-0 h-5 w-full appearance-none bg-c-transparent outline-none",I="absolute top-2 h-1 rounded",R="".concat("[&::-webkit-slider-thumb]:box-border [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-4 [&::-webkit-slider-thumb]:border-solid [&::-webkit-slider-thumb]:border-c-icon-brand-primary-default [&::-webkit-slider-thumb]:bg-c-surface-default [&::-webkit-slider-thumb]:shadow-[0_2px_4px_rgba(0,0,0,0.2)]"," ").concat("[&::-moz-range-thumb]:box-border [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-4 [&::-moz-range-thumb]:border-solid [&::-moz-range-thumb]:border-c-icon-brand-primary-default [&::-moz-range-thumb]:bg-c-surface-default [&::-moz-range-thumb]:shadow-[0_2px_4px_rgba(0,0,0,0.2)]"," ").concat("[&::-ms-thumb]:box-border [&::-ms-thumb]:pointer-events-auto [&::-ms-thumb]:h-5 [&::-ms-thumb]:w-5 [&::-ms-thumb]:appearance-none [&::-ms-thumb]:rounded-full [&::-ms-thumb]:border-4 [&::-ms-thumb]:border-solid [&::-ms-thumb]:border-c-icon-brand-primary-default [&::-ms-thumb]:bg-c-surface-default [&::-ms-thumb]:shadow-[0_2px_4px_rgba(0,0,0,0.2)]");function z(e){var t;let{min:n,currentMin:l,max:s,currentMax:c,step:u=1,name:d,segmentEventName:f}=e,m=(0,k.Z)(),{setValue:h,watch:p,getValues:b}=(0,o.Gc)(),[x,v]=null!==(t=p(d))&&void 0!==t?t:[],[g,y]=(0,i.useState)(x&&x>=n?x:n),[j,w]=(0,i.useState)(v&&v<=s?v:s),[N]=(0,D.Nr)(g,250,{leading:!1,trailing:!0}),[_]=(0,D.Nr)(j,250,{leading:!1,trailing:!0}),S=((null!=g?g:n)-n)/(s-n)*100,C=((null!=j?j:s)-n)/(s-n)*100,M=(0,D.y1)(()=>{f&&m.track(f,{minValue:N,maxValue:_})},250,{leading:!1,trailing:!0}),E=e=>{e.stopPropagation();let{value:t}=e.target;if(+t>j){y(j);return}y(A(Math.max(+t,n)))},L=e=>{e.stopPropagation();let{value:t}=e.target;if(+t<g){w(g);return}w(A(Math.min(s,+t)))},A=e=>Math.round(e/u)*u;return(0,i.useEffect)(()=>{y(n)},[n]),(0,i.useEffect)(()=>{w(s)},[s]),(0,i.useEffect)(()=>{l&&y(l)},[l]),(0,i.useEffect)(()=>{c&&w(c)},[c]),(0,i.useEffect)(()=>{let e=b(d);(!e||Math.min(...e)!==N||Math.max(...e)!==_)&&(h(d,[N,_],{shouldValidate:!1}),e&&M())},[N,_,d,h,b,M]),(0,i.useEffect)(()=>{(void 0===x||g<n)&&y(n),(void 0===v||j>s)&&w(s)},[v,x,s,j,n,g]),(0,r.jsxs)("div",{className:"relative flex min-w-[180px] flex-col overflow-hidden text-center",children:[(0,r.jsxs)("div",{className:"mb-10",children:[(0,r.jsx)("div",{className:(0,a.cn)(I,"left-0 right-0 bg-c-background-neutral-obvious-default")}),(0,r.jsx)("div",{className:(0,a.cn)(I,"bg-c-background-brand-primary-default"),style:{left:"".concat(s===n?0:Math.max(Math.round(S),0),"%"),right:"".concat(s===n?100:100-Math.min(Math.round(C),100),"%")}}),(0,r.jsx)("input",{id:"min",className:(0,a.cn)("min",F,R),type:"range",step:u,min:n,max:s,value:g,onChange:E}),(0,r.jsx)("input",{form:"random-test",id:"max",className:(0,a.cn)("max",F,R),type:"range",step:u,min:n,max:s,value:j,onChange:L})]}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,r.jsx)(B.Z,{id:"minValue",type:"number",name:"minValue",hasCustomLabel:!0,value:g,onInput:E,inputClassName:O}),(0,r.jsx)("span",{className:"block h-0.5 w-8 bg-c-background-neutral-obvious-default"}),(0,r.jsx)(B.Z,{id:"maxValue",type:"number",hasCustomLabel:!0,name:"maxValue",value:j,onInput:L,inputClassName:O})]})]})}var Z=n(45639),G=n(4555),V=n.n(G);function H(e){let{filters:t,className:n,pending:o,eventNamesMap:s,isSticky:c}=e,u=(0,l.useTranslations)(),d=function(e){let t=e.reduce((e,t)=>{if((0,Z.rc)(t.identifier)&&t.parent){let n=t.parent;if(n)return{...e,[n]:t}}return{...e}},{});return e.filter(e=>!e.parent).map(e=>{if((0,Z.vC)(e.identifier)){let n=e.filters;return{...e,filters:n.map(e=>{let n=t[e.value];return n?{...e,nestedFilters:n}:e})}}return e})}(Y(t)),f=e=>u("filterCategory".concat((0,w.Oo)(e.identifier))),m=(e,t)=>{let n=null==s?void 0:s.get(e.identifier),i=function(e,t){if("categoryLevel2"===e.identifier&&t)return t.get("categoryLevel3")}(e,s);switch(e.identifier){case"categoryLevel1":case"categoryLevel2":case"categoryLevel3":case"brands":case"countries":case"lotBiddingStatuses":case"auctionBiddingStatuses":case"auctions":return(0,r.jsx)(T,{options:e.filters,name:e.identifier,title:f(e),multiSelect:!0,className:V().filter,initiallyVisibleCount:5,accordionEventName:n,nestedEventName:i,accordionSummaryClassName:0===t?"!pt-0":void 0});case"amounts":{let{max:t,min:i}=e;return(0,r.jsx)(_.Z,{title:(0,r.jsx)("p",{className:V().filterListTitle,children:f(e)}),className:(0,a.cn)(V().sliderAccordion,V().filter),initiallyOpen:!0,children:(0,r.jsx)(z,{name:e.identifier,max:t/100,min:i/100,segmentEventName:n})})}case"yearsBuilt":{let{max:t,min:n}=e;return(0,r.jsx)(_.Z,{title:(0,r.jsx)("p",{className:V().filterListTitle,children:f(e)}),className:(0,a.cn)(V().sliderAccordion,V().filter),initiallyOpen:!0,children:(0,r.jsx)(z,{name:e.identifier,max:t,min:n})})}case"endDates":return(0,r.jsx)(_.Z,{title:(0,r.jsx)("p",{className:V().filterListTitle,children:f(e)}),className:(0,a.cn)(V().sliderAccordion,V().filter),accordionSummaryClassName:"!mb-3 !py-0",initiallyOpen:!0,children:(0,r.jsx)(j,{name:"endDates"})});default:return null}};return(0,r.jsxs)("div",{className:(0,a.cn)(V().filterList,n,c&&V().sticky),children:[!!(null==d?void 0:d.length)&&d.map((e,t)=>(0,r.jsx)(i.Fragment,{children:m(e,t)},e.identifier)),o&&(0,r.jsx)("div",{className:V().overlay})]})}let Y=e=>e.filter(e=>(!N.WE||"auctions"!==e.identifier)&&(!N.z1||"countries"!==e.identifier)&&(!N.E6||"brands"!==e.identifier));var U=n(28606),W=n(27789),J=n(96048),P=n(23491),q=n.n(P);let X=[J.YB.CATEGORY_L1,J.YB.CATEGORY_L2];function Q(e){let{name:t,options:n,multiSelect:s,initiallyVisibleCount:c,accordionEventName:u,nestedEventName:d}=e,f=(0,k.Z)(),[m,h]=(0,i.useState)(c),p=(0,l.useTranslations)(),{control:b,unregister:x}=(0,o.Gc)(),v=(0,o.qo)({name:t}),g=(0,i.useMemo)(()=>X.includes(t),[t]),y=(0,i.useMemo)(()=>n.slice(0,m),[m,n]),j=(e,t,n)=>{n?f.track(n,{label:t,value:e}):u&&f.track(u,{label:t,value:e})},w=(e,t,n,r,i)=>l=>{j(!t,n,i),e(l),t&&r&&x(r.filters.map(e=>"".concat(r.identifier,"[").concat((0,S.Eo)(e.value),"]")),{keepValue:!1,keepDefaultValue:!1})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:q().filterList,children:y.map(e=>{let{name:n,value:i,nestedFilters:l,eventName:u,count:f}=e;return(0,r.jsx)(o.Qr,{control:b,name:"".concat(t,"[").concat(i,"]"),render:e=>{var t,o,m;let{field:h}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M.Z,{id:i,label:n,value:null!==(t=null==v?void 0:v[i])&&void 0!==t&&t,name:h.name,checked:null!==(o=null==v?void 0:v[i])&&void 0!==o&&o,onChange:w(h.onChange,null!==(m=null==v?void 0:v[i])&&void 0!==m&&m,n,l,u),className:(0,a.cn)(!s&&q().filterCheckboxMulti),icon:l?"chevron-left":void 0,nestedCheckboxSetup:{shouldDisplayWithoutCheckbox:g,shouldDisplayIcon:!!l},additionalInfo:f&&(0,r.jsx)("span",{className:q().countInfo,children:"(".concat(f,")")})}),s&&l&&h.value?(0,r.jsx)("div",{className:q().nestedFilterList,children:(0,r.jsx)(Q,{name:l.identifier,options:l.filters,multiSelect:s,initiallyVisibleCount:c,accordionEventName:d})}):null]})}},i)})}),n.length>m&&(0,r.jsx)(C.Z,{onClick:()=>{h(e=>e+c)},buttonStyle:"ghost",className:q().showMore,children:p("filterCategoryShowMore")}),n.length<=m&&m!==c&&(0,r.jsx)(C.Z,{onClick:()=>h(c),buttonStyle:"ghost",className:q().showMore,children:p("filterCategoryShowLess")})]})}function K(e){let{title:t,options:n,name:i,initiallyVisibleCount:l,multiSelect:o,className:s,accordionEventName:c,nestedEventName:u,accordionSummaryClassName:d}=e;return(0,r.jsx)(_.Z,{initiallyOpen:!0,className:(0,a.cn)(q().filterAccordion,s),title:(0,r.jsx)("p",{className:q().filterListTitle,children:t}),accordionSummaryClassName:d,children:(0,r.jsx)(Q,{name:i,options:n,multiSelect:o,initiallyVisibleCount:l,accordionEventName:c,nestedEventName:u})})}function $(e){var t;let{min:n,currentMin:l,max:s,currentMax:c,step:d=1,name:f,segmentEventName:h,submitTrackingEvent:p}=e,b=(0,k.Z)(),{setValue:x,watch:v,getValues:g}=(0,o.Gc)(),[y,j]=null!==(t=v(f))&&void 0!==t?t:[],[w,N]=(0,i.useState)(y&&y>=n?y:n),[_,S]=(0,i.useState)(j&&j<=s?j:s),[C,M]=(0,i.useState)(y&&y>=n?y:n),[E,L]=(0,i.useState)(j&&j<=s?j:s),[A]=(0,D.Nr)(w,0,{leading:!1,trailing:!0}),[T]=(0,D.Nr)(_,0,{leading:!1,trailing:!0}),z=((null!=C?C:n)-n)/(s-n)*100,Z=((null!=E?E:s)-n)/(s-n)*100,G=()=>{h&&b.track(h,{minValue:C,maxValue:E})},V=e=>Math.round(e/d)*d,H=()=>{let e=g(f);(w<n||w>s)&&(N(n),M(n)),(_>s||_<n)&&(S(s),L(s)),e&&Math.min(...e)===A&&Math.max(...e)===T||(L(T),M(A),x(f,[A,T],{shouldValidate:!1})),p&&b.track(p),G()},Y=e=>{"Enter"===e.key&&H()};return(0,i.useEffect)(()=>{l&&N(l)},[l]),(0,i.useEffect)(()=>{c&&S(c)},[c]),(0,r.jsxs)("div",{className:"relative flex min-w-[180px] flex-col overflow-hidden text-center",children:[(0,r.jsxs)("div",{className:"mb-10",children:[(0,r.jsx)("div",{className:(0,a.cn)(I,"left-0 right-0 bg-c-background-neutral-obvious-default")}),(0,r.jsx)("div",{className:(0,a.cn)(I,"bg-c-background-brand-primary-default"),style:{left:"".concat(s===n?0:Math.max(Math.round(z),0),"%"),right:"".concat(s===n?100:100-Math.min(Math.round(Z),100),"%")}}),(0,r.jsx)("input",{id:"min",className:(0,a.cn)("min",F,R),type:"range",step:d,min:n,max:s,value:C,onChange:e=>{let{value:t}=e.target;if(+t>_){M(_);return}M(V(+t)),N(V(+t))},onMouseUp:e=>{let{value:t}=e.target;N(V(+t)),H()}}),(0,r.jsx)("input",{id:"max",className:(0,a.cn)("max",F,R),type:"range",step:d,min:n,max:s,value:E,onChange:e=>{let{value:t}=e.target;L(V(+t)),S(V(+t))},onMouseUp:e=>{let{value:t}=e.target;S(V(+t)),H()}})]}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,r.jsx)(B.Z,{id:"minValue",type:"number",name:"minValue",hasCustomLabel:!0,value:w,onInput:e=>{let{value:t}=e.target;if(+t>_){N(_);return}N(V(+t))},onKeyDown:Y,inputClassName:O,min:n}),(0,r.jsx)("span",{className:"block h-0.5 w-8 bg-c-background-neutral-obvious-default"}),(0,r.jsx)(B.Z,{id:"maxValue",type:"number",hasCustomLabel:!0,name:"maxValue",value:_,onInput:e=>{let{value:t}=e.target;S(V(+t))},onKeyDown:Y,inputClassName:O}),(0,r.jsx)(u.zx,{className:"px-4 py-2",color:"primary",variant:"outline",size:"small",type:"button",onClick:H,children:(0,r.jsx)(m.J,{name:"arrow-right-s-line"})})]})]})}var ee=n(40767),et=n(37248),en=n.n(et);function er(e){let{filters:t,className:n,pending:o,eventNamesMap:s,isSticky:c,allowIndividualCategoryFilter:u}=e,d=(0,l.useTranslations)(),f=(0,W.Z)(N.xz),m=ei(null!=t?t:[]),h=u?m:function(e){let t=e.filter(e=>e.identifier===J.YB.CATEGORY_L1);if(1===t.length&&t[0].filters.length<=1){let t=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=t.filter(e=>e.identifier==="".concat(ee.B).concat(n));return 0===r.length||4===n?void 0:1===r.length?{identifier:"".concat(ee.B).concat(n),filters:r[0].filters.map(r=>({...r,nestedFilters:e(t,n+1)}))}:r[0]}(e);return t?[t,...e.filter(e=>!e.identifier.includes(ee.B))]:e}return e.filter(e=>e.identifier===J.YB.CATEGORY_L1||!e.identifier.startsWith(ee.B))}(m),p=e=>{let t="status"===e.identifier?"lotBiddingStatuses":e.identifier;return d("filterCategory".concat((0,w.Oo)(t)))},b=(e,t)=>{let n=null==s?void 0:s.get(e.identifier),i=function(e,t){if("categoryLevel2"===e.identifier&&t)return t.get("categoryLevel3")}(e,s);switch(e.identifier){case"categoryLevel1":case"categoryLevel2":case"categoryLevel3":case"brands":case"countries":case"lotBiddingStatuses":case"auctionBiddingStatuses":case"status":case"auctions":return(0,r.jsx)(K,{options:e.filters,name:e.identifier,title:p(e),multiSelect:!0,className:en().filter,initiallyVisibleCount:5,accordionEventName:n,nestedEventName:i,accordionSummaryClassName:0===t?"!pt-0":void 0});case"amounts":{let{max:t,min:i,currentMin:l,currentMax:o}=e;return(0,r.jsx)(_.Z,{title:(0,r.jsx)("p",{className:en().filterListTitle,children:"".concat(p(e)," (").concat(f,")")}),className:(0,a.cn)(en().sliderAccordion,en().filter),initiallyOpen:!0,children:(0,r.jsxs)(U.Treatment,{name:"Titan - Filters section - Filter on submit",children:[(0,r.jsx)(U.TreatmentVariant,{variant:"A",children:(0,r.jsx)(z,{name:e.identifier,max:t/100,min:i/100,currentMin:l/100,currentMax:o/100,segmentEventName:n})}),(0,r.jsx)(U.TreatmentVariant,{variant:"B",children:(0,r.jsx)($,{name:e.identifier,max:t/100,min:i/100,currentMin:l/100,currentMax:o/100,segmentEventName:n,submitTrackingEvent:"Price filter submit"})})]})})}case"yearsBuilt":{let{max:t,min:n,currentMin:i,currentMax:l}=e;return(0,r.jsx)(_.Z,{title:(0,r.jsx)("p",{className:en().filterListTitle,children:p(e)}),className:(0,a.cn)(en().sliderAccordion,en().filter),initiallyOpen:!0,children:(0,r.jsx)(z,{name:e.identifier,max:t,min:n,currentMin:i,currentMax:l})})}case"endDates":return(0,r.jsx)(_.Z,{title:(0,r.jsx)("p",{className:en().filterListTitle,children:p(e)}),className:(0,a.cn)(en().sliderAccordion,en().filter),accordionSummaryClassName:"!mb-3 !py-0",initiallyOpen:!0,children:(0,r.jsx)(j,{name:"endDates"})});default:return null}},x=el(h);return(0,r.jsxs)("div",{className:(0,a.cn)(en().filterList,n,c&&en().sticky,!t&&en().filter),children:[!!(null==x?void 0:x.length)&&x.map((e,t)=>(0,r.jsx)(i.Fragment,{children:b(e,t)},e.identifier)),o&&(0,r.jsx)("div",{className:en().overlay})]})}let ei=e=>e.filter(e=>(!N.WE||"auctions"!==e.identifier)&&(!N.z1||"countries"!==e.identifier)&&(!N.E6||"brands"!==e.identifier)),el=e=>{if(!e)return e;let t=e.findIndex(e=>"status"===e.identifier),n=e.findIndex(e=>"endDates"===e.identifier);if(-1!==t){let[n]=e.splice(t,1);e.unshift(n)}if(-1!==n){let[t]=e.splice(n,1);e.unshift(t)}return e};function ea(e){let{filters:t,className:n,pending:i,eventNamesMap:l,isSticky:a,useNewVariant:o=!1,allowIndividualCategoryFilter:s=!1}=e;return o?(0,r.jsx)(er,{filters:t,className:n,pending:i,eventNamesMap:l,isSticky:a,allowIndividualCategoryFilter:s}):(0,r.jsx)(H,{filters:t,className:n,pending:i,eventNamesMap:l,isSticky:a})}},18251:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(49204),i=n(74561),l=n(89377),a=n(55451);let o={checkboxHiddenWrapper:{root:"hover:cursor-pointer",label:"ml-0 before:hidden"},checkboxHiddenWrapperBolded:{root:"hover:cursor-pointer",label:"ml-0 before:hidden font-semibold pl-1.5"},checkboxHiddenWrapperWithIcon:{root:"hover:cursor-pointer",label:"font-semibold ml-5 pl-0 before:border-none peer-checked:before:bg-c-surface-default",icon:"text-c-text-neutral-obvious-default group-hover/label:text-c-text-neutral-obvious-hover"}},s=(0,i.forwardRef)((e,t)=>{let{className:n,id:s,label:c,name:u,value:d,labelHidden:f,checked:m,required:h,requiredHidden:p,icon:b="check-line",disabled:x,errorMessage:v,helpText:g,onChange:y,nestedCheckboxSetup:j,additionalInfo:w,testId:N}=e,_=(0,i.useMemo)(()=>(null==j?void 0:j.shouldDisplayWithoutCheckbox)?j.shouldDisplayIcon?"checkboxHiddenWrapperWithIcon":m?"checkboxHiddenWrapperBolded":"checkboxHiddenWrapper":void 0,[m,j]);return(0,r.jsxs)("div",{className:(0,l.cn)("body-s-regular group relative my-2 flex flex-col py-1",_&&o[_].root,n),children:[(0,r.jsx)("input",{id:s,name:u,type:"checkbox",className:(0,l.cn)("peer sr-only"),value:d,checked:m,required:h,disabled:x,onChange:y,ref:t,"data-cy":null!=N?N:s}),(0,r.jsxs)("label",{htmlFor:s,className:(0,l.cn)('group/label body-s-regular relative ml-7 box-border inline-flex items-center text-c-text-neutral-obvious-default before:absolute before:-left-7 before:inline-flex before:h-[calc(theme(spacing.9)/2)] before:w-[calc(theme(spacing.9)/2)] before:rounded before:border before:border-solid before:border-c-stroke-neutral-default before:bg-c-surface-default before:transition-colors before:content-[""] hover:cursor-pointer peer-checked:before:border-c-background-brand-primary-default peer-checked:before:bg-c-background-brand-primary-default peer-checked:[&_svg]:opacity-100',!x&&"hover:before:border-c-stroke-neutral-hover [@media(hover:hover)]:hover:text-c-text-neutral-obvious-hover",x&&"pointer-events-none text-c-text-neutral-subtle-default before:bg-c-stroke-neutral-x-subtle-default peer-checked:before:border-c-stroke-neutral-default peer-checked:before:bg-c-background-neutral-obvious-focus",_&&o[_].label),children:[(0,r.jsx)(a.J,{name:b,size:"small",className:(0,l.cn)("absolute -left-[calc(theme(spacing.7)-(theme(spacing.9)/2)+theme(spacing.4)+1px)] text-c-icon-inverse-default opacity-0 transition-opacity",_&&o[_].icon)}),(0,r.jsxs)("span",{className:f?"sr-only":"",children:[c,h&&!p&&" *",w]})]}),g&&!p&&(0,r.jsx)("p",{className:"h- ml-7 mr-auto text-c-text-neutral-default",children:g}),v&&!p&&(0,r.jsx)("p",{className:"mr-auto text-c-text-danger-default",children:v})]})});s.displayName="Checkbox";var c=s},47797:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(49204),i=n(78014),l=n(89377),a=n(55451),o=n(68262),s=n(39290),c=n(97118),u=n(17438),d=n(65569),f=n.n(d);function m(e){let{onSortingChange:t,sortByOptions:n,activeSorting:d,onFilterClick:m,showSort:h=!0,className:p,filterClassName:b,testId:x,filterWrapperRef:v={current:null}}=e,g=(0,i.useTranslations)(),y=(0,s.Z)(300,30),{isSticky:j,filterPosition:w,offsetTop:N,variant:_}=(0,o.A)();return 1===_?(0,r.jsx)("div",{ref:v,className:(0,l.cn)("flex w-full justify-between gap-1 xl:w-auto xl:justify-start min-[1400px]:ml-auto",p),style:j?{paddingBottom:"".concat(null==w?void 0:w.height,"px")}:void 0,children:(0,r.jsxs)("div",{className:(0,l.cn)("flex w-full justify-between gap-1 will-change-scroll",p,j&&"fixed z-[3] bg-c-surface-default px-4 py-2 shadow-sm transition-transform duration-500"),style:j?"up"===y?{top:"calc(0px + env(safe-area-inset-top))",left:0,transform:"translateY(".concat(Math.round(N-1),"px)")}:"down"===y?{top:"calc(-1px + env(safe-area-inset-top))",left:0,transform:"translateY(0)"}:void 0:void 0,children:[h&&(0,r.jsx)(u.Z,{buttonClassName:"!p-2 !pl-0 !text-c-text-brand-primary-default !font-bold",dropdownClassName:"!bg-[transparent] !border-none",optionsClassName:"min-w-max",labelClassName:"!mr-2",label:"".concat(g("sortLabel"),":"),labelId:"sort-lots-list",labelPosition:"left",placeholder:g("sortLabel"),onChange:e=>t(e),options:n,value:d,hideLabelOnMobile:!0,testId:x}),(0,r.jsxs)(c.Z,{className:(0,l.cn)(f().filterButton,"!rounded min-[1400px]:ml-auto"),onClick:()=>m(),variant:"neutral",buttonStyle:"default",children:[g("filterCategoryFilterButton"),(0,r.jsx)(a.J,{className:"!ml-2",name:"equalizer-line"})]})]})}):(0,r.jsxs)("div",{className:(0,l.cn)("flex w-full justify-between gap-1 xl:w-auto xl:gap-1 min-[1400px]:ml-auto",p),children:[h&&(0,r.jsx)(u.Z,{buttonClassName:"!p-2 !pl-0 !text-c-text-brand-primary-default !font-bold",dropdownClassName:"!bg-[transparent] !border-none",optionsClassName:"min-w-max",labelClassName:"!mr-2",label:"".concat(g("sortLabel"),":"),labelId:"sort-lots-list",labelPosition:"left",placeholder:g("sortLabel"),onChange:e=>t(e),options:n,value:d,hideLabelOnMobile:!0,testId:x}),(0,r.jsxs)(c.Z,{className:(0,l.cn)(f().filterButton,"!rounded min-[1400px]:ml-auto"),onClick:()=>m(),variant:"neutral",buttonStyle:"default",children:[g("filterCategoryFilterButton"),(0,r.jsx)(a.J,{className:"!ml-2",name:"equalizer-line"})]})]})}},68262:function(e,t,n){"use strict";n.d(t,{B:function(){return p},A:function(){return b}});var r=n(49204),i=n(74561),l=n(28606),a=n(14455),o=n(20944),s=n(59257),c=n(39290),u=n(62152),d=n(12713),f=n(46048),m=n.n(f);let h=(0,i.createContext)({isSticky:!1,filterPosition:null,isMobileHeader:!1,offsetTop:0,variant:null});function p(e){var t;let{children:n,filterWrapperRef:f}=e,[p,b]=(0,i.useState)(!1),x=(0,u.R)(20),v=(0,c.Z)(300,30),[g,y]=function(e){let[t,n]=(0,i.useState)(null),r=(0,i.useCallback)(()=>{if(null==e?void 0:e.current){let t=e.current.getBoundingClientRect(),r=document.documentElement.scrollTop,i=document.documentElement.scrollLeft;n({top:t.top+r,bottom:t.bottom+r,left:t.left+i,right:t.right+i,height:t.height,width:t.width})}},[e]);return(0,i.useEffect)(()=>{if(!(null==e?void 0:e.current)){let t=new MutationObserver(()=>{(null==e?void 0:e.current)&&(r(),t.disconnect())});return t.observe(document.body,{childList:!0,subtree:!0}),()=>t.disconnect()}return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e,r]),[t,r]}(f),j=(0,i.useRef)(0),{context:w}=(0,l.useABSmartly)(),[N,_]=(0,i.useState)(null),{headerRef:S}=(0,o.r)(),k=(0,s.Z)((()=>{switch(a.Bs){case d.z.HEADER_BARS_MULTIPLE:return"(min-width: ".concat(m().mediaMobileAppHeaderBarsMultiple,")");case d.z.HEADER_BARS_MULTIPLE_V2:return"(min-width: ".concat(m().mediaMobileAppHeaderBarsMultipleV2,")");case d.z.HEADER_BARS_SINGLE:default:return"(min-width: ".concat(m().mediaMobileAppHeaderBarsSingle,")")}})()),C=null===k?k:!k;(0,i.useEffect)(()=>{C&&w.ready().then(()=>{_(w.treatment("Titan - Sticky filters"))})},[w,C,N]),(0,i.useEffect)(()=>{if(1===N){if((null==S?void 0:S.current)&&j){var e;j.current=null!==(e=S.current.clientHeight)&&void 0!==e?e:0}f&&C&&y()}},[S,C,null==S?void 0:null===(t=S.current)||void 0===t?void 0:t.clientHeight,f,y,N]),(0,i.useEffect)(()=>{if(1===N){if(!(null==f?void 0:f.current)&&C){let e=new MutationObserver(()=>{(null==f?void 0:f.current)&&(y(),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0}),e.disconnect()}C&&y()}},[f,C,N]),(0,i.useEffect)(()=>{var e,t;if(1===N){if(!g||!C){p&&b(!1);return}b("down"===v&&x>=(null!==(e=null==g?void 0:g.top)&&void 0!==e?e:0)||"up"===v&&x>=(null!==(t=null==g?void 0:g.top)&&void 0!==t?t:0)-j.current)}},[x,v,C,p,g,N]);let M=(0,i.useMemo)(()=>({isSticky:p,filterPosition:g,offsetTop:j.current,isMobileHeader:C,variant:N}),[p,g,C,N]);return(0,r.jsx)(h.Provider,{value:M,children:n})}function b(){let e=(0,i.useContext)(h);if(!e)throw Error("useSticky must be used within a StickyProvider");return e}},45639:function(e,t,n){"use strict";n.d(t,{Cn:function(){return p},W7:function(){return w},WN:function(){return j},Xg:function(){return s},YX:function(){return g},cl:function(){return b},dm:function(){return v},fZ:function(){return h},m0:function(){return y},oL:function(){return m},rc:function(){return c},sX:function(){return N},vC:function(){return o},xX:function(){return l},xh:function(){return x}});var r=n(40767),i=n(33372);function l(e){return Object.hasOwn(e,"min")}function a(e){return Object.values(i.cd).includes(e)}function o(e){return Object.values(i.YB).includes(e)}function s(e){return Object.values(i.aA).includes(e)}function c(e){return Object.values(i.JW).includes(e)}function u(e){return Object.values(i.Lv).includes(e)}let d=e=>Object.entries(e).filter(e=>{let[,t]=e;return t}).map(e=>{let[t]=e;return t}),f=e=>e.reduce((e,t)=>({...e,[t]:!0}),{}),m=e=>Object.entries(e).reduce((e,t)=>{let[n,r]=t;if(a(n)&&r){let[t,i]=r;return"amounts"===n?{...e,[n]:[+t/100,+i/100]}:{...e,[n]:[+t,+i]}}return(o(n)||c(n))&&r?"string"==typeof r?{...e,[n]:f([r])}:{...e,[n]:f(r)}:{...e}},{}),h=e=>Object.entries(e).reduce((e,t)=>{let[n,r]=t;return a(n)?"amounts"===n?{...e,[n]:r.map(e=>100*+e)}:"endDates"===n?{...e,[n]:r.map(e=>{let t=new Date(e).getTime();return Math.floor(13===t.toString().length?t/1e3:t)})}:{...e,[n]:r}:o(n)||c(n)?{...e,[n]:d(r)}:{...e}},{});function p(e){let t=[],n=[],r=[];return Object.keys(e).forEach(i=>{if(a(i)){let n=e[i];if(n&&Array.isArray(n)&&2===n.length){let[e,r]=n;t.push({identifier:i,min:e,max:r})}}else if(c(i)){let t=e[i];if(t&&t.length>0){let e=t.map(e=>e.split(":")),l=e.every(e=>1===e.length),a=[...new Set(e.filter(e=>e.length>1).map(e=>e[0]))];if(l)n.push({identifier:i,values:t});else if(a.length>0){let t=a.map(t=>({parent:t,filters:e.filter(e=>e[0]===t).map(e=>e[1])}));r.push({identifier:i,values:t})}}}else if(o(i)){let t=e[i];t&&t.length>0&&n.push({identifier:i,values:t})}}),{rangeFacets:t,valueFacets:n,nestedValueFacets:r}}function b(e){let t=[],n=[];return Object.keys(e).forEach(r=>{if(a(r)){let n=e[r];if(n&&Array.isArray(n)&&2===n.length){let[e,i]=n;t.push({identifier:r,min:e,max:i})}}else if(s(r)){let t=e[r];t&&t.length>0&&n.push({identifier:r,filters:t})}}),{rangeFacets:t,valueFacets:n}}function x(e){return Object.entries(e).reduce((e,t)=>{let[n,r]=t;if(!u(n))return{...e};if("string"==typeof r&&r.includes(",")){let t=r.split(",").map(e=>Number(e)).filter(e=>!Number.isNaN(e));return{...e,[n]:t.length?t:r.split(",")}}return Array.isArray(r)?{...e,[n]:r}:{...e,[n]:[r]}},{})}function v(e){return Object.entries(e).filter(e=>{let[t,n]=e;return!!u(t)&&!!Array.isArray(n)&&n.length>0}).map(e=>{let[t,n]=e;return Array.isArray(n)?[t,n.join(",")]:[t,n]})}function g(e){return Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return n.length>0}))}function y(e){let t=[r.B],n=[],i={...e};return t.forEach(e=>{(function e(t,n,i,l){if(i>r.$)return;let a=t["".concat(n).concat(i)];if(a){if(a.length>0)e(t,n,i+1,l);else for(let e=i+1;e<=r.$;e++){var o;let r="".concat(n).concat(e);(null===(o=t[r])||void 0===o?void 0:o.length)&&l.push(r)}}})(i,e,1,n)}),n}function j(e,t){let n={};return Object.entries(t).forEach(t=>{let[r,i]=t;a(r)&&2===i.length&&function(e,t,n){let r=e.find(e=>e.identifier===t);return!!r&&r.min===Math.min(...n)&&r.max===Math.max(...n)}(e,r,i)&&(n[r]=[])}),{...t,...n}}function w(e){return Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return!(!u(t)||""===n||Array.isArray(n)&&0===n.length)}).map(e=>{let[t,n]=e;return"number"==typeof n?[t,n.toString()]:Array.isArray(n)?[t,n.join(",")]:[t,n]}))}function N(e){let t=[];return e.rangeFacets.forEach(n=>{var r,i;let l=e.appliedRangeFacets.find(e=>e.identifier===n.identifier);t.push({...n,currentMin:null!==(r=null==l?void 0:l.min)&&void 0!==r?r:n.min,currentMax:null!==(i=null==l?void 0:l.max)&&void 0!==i?i:n.max})}),t}},8850:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var r=n(87244);let i={frontDoorCacheAge:60,useSFCache:!1};async function l(e){return(await (0,r.d)("tba-fe-titan-cache-controller")).routes.map(e=>{var t;return{...e,depth:(t=e.route).split("/").filter(Boolean).length+(t.split("/").length-1)}}).sort((e,t)=>t.depth-e.depth).find(t=>t.exact?e===t.route:e.startsWith(t.route))||i}},33372:function(e,t,n){"use strict";n.d(t,{JW:function(){return a},Lv:function(){return o},YB:function(){return i},aA:function(){return l},cd:function(){return r}});let r={YEARS_BUILT:"yearsBuilt",AMOUNTS:"amounts",END_DATES:"endDates"},i={CATEGORY_L1:"categoryLevel1",CATEGORY_L2:"categoryLevel2",CATEGORY_L3:"categoryLevel3",COUNTRIES:"countries",BRANDS:"brands",AUCTIONS:"auctions",LOT_BIDDING_STATUSES:"lotBiddingStatuses",AUCTION_BIDDING_STATUSES:"auctionBiddingStatuses",STATUS:"status"},l={CATEGORY_L1:"categoryLevel1",CATEGORY_L2:"categoryLevel2",CATEGORY_L3:"categoryLevel3",COUNTRIES:"countries",BRANDS:"brands",AUCTIONS:"auctions",STATUS:"status"},a={CATEGORY_L3:"categoryLevel3"},o={...r,...i,...a}},96048:function(e,t,n){"use strict";n.d(t,{YB:function(){return i},cd:function(){return r}});let r={YEARS_BUILT:"yearsBuilt",AMOUNTS:"amounts",END_DATES:"endDates"},i={CATEGORY_L1:"categoryLevel1",CATEGORY_L2:"categoryLevel2",CATEGORY_L3:"categoryLevel3",COUNTRIES:"countries",BRANDS:"brands",AUCTIONS:"auctions",LOT_BIDDING_STATUSES:"lotBiddingStatuses",AUCTION_BIDDING_STATUSES:"auctionBiddingStatuses",STATUS:"status"};({...r,...i})},97185:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(74561);let i={"2xl":"1536px",xl:"1280px",lg:"1024px",md:"768px",sm:"480px"};function l(e){let[t,n]=(0,r.useState)(window.innerWidth),l=null!=e?e:i;(0,r.useEffect)(()=>{let e=()=>{n(window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let a=(0,r.useCallback)(e=>{if(l[e]){var n;return t>=parseInt(null===(n=l[e])||void 0===n?void 0:n.replace("px",""),10)}return!1},[l,t]);return{breakpoints:l,isBreakpoint:a}}},53331:function(e){e.exports={emptyState:"EmptyState_emptyState__Jtxx2",center:"EmptyState_center__7AF_8",left:"EmptyState_left__UtjTU",title:"EmptyState_title__MqNS_",emptyStateContent:"EmptyState_emptyStateContent__j7C6M",actions:"EmptyState_actions__Mx8wr",homepageBtn:"EmptyState_homepageBtn__i9uqB"}},4555:function(e){e.exports={filterList:"FiltersSection_filterList__qyC_j",sticky:"FiltersSection_sticky__EQelc",filterListTitle:"FiltersSection_filterListTitle__cZopb",sliderAccordion:"FiltersSection_sliderAccordion__XJDAE",filter:"FiltersSection_filter___O1dA",overlay:"FiltersSection_overlay___eQFn"}},90336:function(e){e.exports={showMore:"SelectionFilterDropdown_showMore__Pjolv",filterListTitle:"SelectionFilterDropdown_filterListTitle__bFQhe",filterAccordion:"SelectionFilterDropdown_filterAccordion__wjN7p",filterCheckboxMulti:"SelectionFilterDropdown_filterCheckboxMulti__n9II4",nestedFilterList:"SelectionFilterDropdown_nestedFilterList__tShOv"}},37248:function(e){e.exports={filterList:"FiltersSection_filterList__BnppJ",sticky:"FiltersSection_sticky__ZNlyR",filterListTitle:"FiltersSection_filterListTitle__BKNZq",sliderAccordion:"FiltersSection_sliderAccordion__KD6jN",filter:"FiltersSection_filter__I6Gkn",overlay:"FiltersSection_overlay__N1HXI"}},23491:function(e){e.exports={showMore:"SelectionFilterDropdown_showMore__f_qlN",filterListTitle:"SelectionFilterDropdown_filterListTitle__QpHi1",filterAccordion:"SelectionFilterDropdown_filterAccordion__qH3P0",filterCheckboxMulti:"SelectionFilterDropdown_filterCheckboxMulti__IWR6k",nestedFilterList:"SelectionFilterDropdown_nestedFilterList__mS6MA",countInfo:"SelectionFilterDropdown_countInfo__Dtnls"}},65569:function(e){e.exports={filterButton:"ItemsOverviewControls_filterButton__bb471"}},46048:function(e){e.exports={mediaMobileAppHeaderBarsSingle:"1080px",mediaMobileAppHeaderBarsMultiple:"1080px",mediaMobileAppHeaderBarsMultipleV2:"768px"}}}]);