"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[20],{99:(e,a,t)=>{t.d(a,{a:()=>g});var s=t(0);t(1),t(9),t(13);var n=t(100),i=t(205);const{wrapper:r,wrapperColor:l,wrapperColorActive:o,wrapperColorOutline:c}=n.a,g=({colors:e,selectedColor:a,setSelectedColor:t,isMobile:n})=>(0,s.jsx)("div",Object.assign({className:r},{children:e.map((({colorUrl:e,colorValue:r})=>(e=>{try{return new URL(e),!0}catch(e){return!1}})(e)?(0,s.jsx)("div",Object.assign({style:{position:"relative"},className:(0,i.a)(r===a&&o)},{children:(0,s.jsx)("img",{onMouseEnter:()=>!n&&t(r),onClick:()=>n&&t(r),className:(0,i.a)(l),src:e,alt:r})})):(0,s.jsx)("div",{onMouseEnter:()=>!n&&t(r),onClick:()=>n&&t(r),className:(0,i.a)(l,r===a&&c),style:`background: ${e}`})))}))},98:(e,a,t)=>{t.d(a,{a:()=>p});var s,n=t(2);!function(e){e.INIT="INIT",e.GO_TO_PAGE="GO_TO_PAGE",e.CHANGE_BY_ONE="CHANGE_BY_ONE"}(s||(s={}));const i=(e,{type:a,payload:t})=>{switch(a){case s.INIT:return l(e,t.overallEntriesNumber);case s.GO_TO_PAGE:return c(e,t.activePageNumber);case s.CHANGE_BY_ONE:return g(e,t.page);default:return e}},r=(Object.assign(Object.assign({},{label:"",isEllipsis:!1}),{label:"1"}),{siblingCount:1,visibleEntriesPerPage:10,paginationProgress:"start",pagesCount:0,activePageNumber:1}),l=(e,a)=>{const{visibleEntriesPerPage:t}=e,s=Math.ceil(a/t);return Object.assign(Object.assign({},e),{pagesCount:s})},o=(e,a)=>{const{pagesCount:t,siblingCount:s}=e;return(a-2*s<1?"start":"")||(t-(a+s)<=1?"end":"")},c=(e,a)=>{const t=o(e,a);return"undefined"!=typeof window&&window.scrollTo(0,0),Object.assign(Object.assign({},e),{activePageNumber:a,paginationProgress:t})},g=(e,a)=>{const t="next"===a?e.activePageNumber+1:e.activePageNumber-1,s=o(e,t);return"undefined"!=typeof window&&window.scrollTo({top:0,behavior:"smooth"}),Object.assign(Object.assign({},e),{activePageNumber:t,paginationProgress:s})},p=(e,a,t,l)=>{const[o,c]=(0,n.useState)(!1),[g,p]=(0,n.useReducer)(i,Object.assign(Object.assign({},r),{activePageNumber:e.activePageNumber,siblingCount:e.siblingCount,visibleEntriesPerPage:e.visibleEntriesPerPage})),[u,b]=(0,n.useState)([]),d=g.activePageNumber,h=g.pagesCount;(0,n.useEffect)((()=>{b((e=>{e=[];const a=a=>e.push({text:a.toString(),page:a,isCurrent:a===d});if(d>1&&e.push({text:' \n \n ',page:d-1}),d)if(h<=5)for(let e=1;e<=h;e++)a(e);else{let e=Math.max(1,d-Math.floor(2.5)),t=Math.min(h,e+5-1);for(let e=1;e<=t;e++)a(e)}return d\n \n ',page:d+1}),e.some((({page:e})=>1===e))||e.splice(1,0,{page:1,text:"1"}),e.some((({page:e})=>2===e))||e.splice(2,0,{isSpacer:!0,page:0,text:"⋯"}),e.some((({page:e})=>e===h-1))||e.splice(e.length-1,0,{isSpacer:!0,page:0,text:"⋯"}),e.some((({page:e})=>e===h))||e.splice(e.length-1,0,{page:h,text:h.toString()}),e}))}),[g.activePageNumber,g.pagesCount,a.length]),(0,n.useEffect)((()=>{const e=a.length;p({type:s.INIT,payload:{overallEntriesNumber:e}})}),[a.length,e.siblingCount,e.visibleEntriesPerPage]),(0,n.useEffect)((()=>{c(!0)}),[]),(0,n.useEffect)((()=>{o&&(e=>{const a=new URL(window.location.href);a.searchParams.set("page",`${e}`),window.history.replaceState({},"",a.toString())})(g.activePageNumber)}),[o,g.activePageNumber]);const v=(0,n.useMemo)((()=>{const{visibleEntriesPerPage:e,activePageNumber:t}=g;if(e>=a.length)return a;const s=e*t,n=s-e;return a.slice(n,s)}),[g.activePageNumber,a,t,l]);return{paginationLabels:u,activePageNumber:g.activePageNumber,pagesCount:g.pagesCount,itemsToDisplay:v,handleChangePageByOne:e=>{p({type:s.CHANGE_BY_ONE,payload:{page:e}})},handlePageChange:e=>{p({type:s.GO_TO_PAGE,payload:{activePageNumber:e}})}}}},96:(e,a,t)=>{t.d(a,{a:()=>p});var s=t(0),n=t(205),i=t(97);const{bar:r,barButton:l,barButtonUnderline:o,barEllipsis:c,barDots:g}=i.a,p=({items:e,handlePageChange:a})=>(0,s.jsx)("div",Object.assign({className:r},{children:e.map((({page:e,text:t,isCurrent:i,isSpacer:r})=>(0,s.jsx)("button",{dangerouslySetInnerHTML:{__html:t},onClick:()=>!r&&a(e),className:(0,n.a)(l,!i&&c,"⋯"===t&&g),disabled:i||r})))}))},101:(e,a,t)=>{t.d(a,{a:()=>N});var s=t(0),n=t(1),i=t(2),r=t(205),l=t(102),o=t(30),c=t(7);const{wrapper:g,wrapperActive:p,wrapperHeading:u,wrapperLabel:b,wrapperLabelActive:d,overlay:h,overlayActive:v,wrapperLabels:m,wrapperRight:w}=l.a,N=({activeSortBy:e,sortOptions:a,isSortOpened:t,handleAddSorting:l,right:N=!1,sortLabel:P,handleSortClose:C})=>{const[E,j]=(0,i.useState)(e||"price-ascending"),{width:O}=(0,c.a)(),x=O<700;(0,o.b)(x&&t),(0,i.useEffect)((()=>{j(e)}),[e]);const f=(0,i.useRef)(null);return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)("div",{onClick:C,className:(0,r.a)(h,t&&v)}),(0,s.jsxs)("div",Object.assign({className:(0,r.a)(g,t&&p,N&&w)},{children:[(0,s.jsxs)("div",Object.assign({className:u},{children:[(0,s.jsx)("p",{children:P}),(0,s.jsx)("svg",Object.assign({onClick:C,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:(0,s.jsx)("path",{d:"M0 0.742294L0.742294 0L9 8.25771L17.2577 0L18 0.742294L9.74229 9L18 17.2577L17.2577 18L9 9.74229L0.742294 18L0 17.2577L8.25771 9L0 0.742294Z",fill:"black"})}))]})),(0,s.jsx)("div",Object.assign({ref:f,className:m},{children:a.length>0&&a.map((({key:e,label:a})=>(0,s.jsx)("div",Object.assign({onClick:()=>(e=>{l(e),C()})(e),className:(0,r.a)(b,E===e&&d)},{children:(0,s.jsx)("p",{children:a})}))))}))]}))]})}}}]);