import{j as t,e as X,k as ve,an as lt,W as ct,ao as dt,V as ut,a1 as xt,S as ht,b as pe,g as ge,c as J}from"./main-ac2fa4b1.js";import{r as g,R as mt}from"./chunk-react-162a731f.js";import{c as $}from"./chunk-index-89b7ba38.js";import{S as Se}from"./chunk-index-c479aaf2.js";import{m as S,aa as pt,ad as gt,s as we,ak as bt,G as c,a6 as ft,a7 as jt,B,ab as _e,i as kt,al as Ct,am as yt,o as T,e as E,f as W,q as V,an as Re,ao as vt,I as Fe,a4 as Te,t as St,E as wt,ap as _t,u as Rt,af as Ft,aq as Ie,ar as Tt,as as It,at as Pt,au as Pe,av as Bt,aw as At,ax as zt,H as be,ay as Et,l as Wt,J as Lt,M as Mt,az as $t}from"./chunk-material-ui-42c43899.js";import{i as Ot}from"./chunk-styled-bfd8e494.js";import{r as Xt}from"./chunk-createSvgIcon-288b305d.js";import{T as Ht}from"./chunk-index-9bb58e99.js";import{D as Be}from"./chunk-index-52e322f4.js";import{P as Nt,a as Ut,b as Gt}from"./chunk-index-e94d2725.js";import{_ as qt}from"./chunk-index-4b8e5f08.js";import{S as Zt,N as Dt}from"./chunk-effect-fade-17bfa8f3.js";import{B as Kt}from"./chunk-index-ba13af53.js";import{s as Qt,T as Jt}from"./chunk-pagination-4aa3111e.js";const Yt=g.createContext(void 0),Vt=({items:e,children:s})=>{const[n,o]=g.useState(e);return g.useEffect(()=>{e&&o(e)},[e]),t.jsx(Yt.Provider,{value:n,children:s})},es=S(e=>({selectRoot:{lineHeight:e.typography.pxToRem(24)},inputRoot:{color:e.color.black100},inputInput:{paddingTop:0,paddingBottom:0},icon:{fontSize:e.typography.pxToRem(22),color:e.color.black100},selectMenu:{border:"0.5px solid #F0F3F6",boxShadow:"0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)",borderRadius:4}}),{name:"Select"});function ts(e){const s=es();return t.jsx(pt,{...e,classes:{icon:s.icon,root:s.selectRoot},input:e.variant==="standard"?t.jsx(gt,{classes:{root:s.inputRoot,input:s.inputInput}}):t.jsx(we,{}),MenuProps:{PopoverClasses:{paper:$([e.variant==="standard"&&s.selectMenu])},classes:{}},IconComponent:bt,children:e.children})}const Ae=S(e=>({tabPanelRoot:{height:200,minWidth:395,"@media (max-width: 1280px)":{minWidth:"100%"},"@media (max-width: 960px)":{height:"100%"},"@media (min-width: 375px) and (max-width: 768px)":{height:"94%"},"@media (max-width: 375px)":{height:"92%"}},tabSizesWrapper:{position:"relative","@media (max-width: 960px)":{height:"100%",paddingBlock:20,paddingInlineStart:20},"@media (min-width: 375px) and (max-width: 768px)":{height:"96%"},"@media (max-width: 375px)":{height:"92%"}},tabsRoot:{minHeight:24,paddingBottom:16,"margin-inline-end":16},tabBtn:{color:e.color.black100,maxWidth:"unset",minWidth:40,padding:0,minHeight:24,lineHeight:"14px",textTransform:"unset","&:not(:last-child)":{paddingRight:16}},sizeBtn:{minWidth:71,minHeight:32,color:e.color.black100,borderRadius:10,"@media (max-width: 1280px)":{minWidth:65}},sizeBtnOutlined:{borderColor:e.color.black40,"&:hover":{borderColor:e.color.black100}},sizeBtnChecked:{borderColor:e.color.black100},sizeBtnDisabled:{opacity:.5},selectMenuItem:{backgroundColor:"#F0F3F6"},selectBtn:{textTransform:"uppercase",padding:0,minWidth:"max-content",lineHeight:"24px"},filterSizeContainer:{padding:2},scrollVerticalTrack:{borderRadius:100,backgroundColor:"#8F9BA4"},tabPanel:{display:"flex","flex-wrap":"wrap","justify-content":"space-between"}}),{name:"FilterSizes"}),ss=({children:e,value:s,index:n})=>{const o=Ae();return s!==n?null:t.jsx(B,{className:o.tabPanelRoot,children:e})},ns=({values:e,onChange:s})=>{const n=Ae(),[o,a]=g.useState(0),[i,m]=g.useState(""),r=l=>{l.target.value&&m(l.target.value)};g.useEffect(()=>{var l,p,x;Array.isArray(e)&&e.length&&Array.isArray((l=e[0])==null?void 0:l.sections)&&(p=e[0])!=null&&p.sections.length&&m((x=e[0])==null?void 0:x.sections[0].title)},[]);const d=l=>{const p=e[o],x={...p,sections:p.sections.map(u=>u.code===l.code?{...l}:{...u})};s(o,x)};return t.jsx(c,{container:!0,classes:{root:n.tabSizesWrapper},children:t.jsxs(c,{item:!0,xs:12,children:[t.jsxs("div",{className:n.tabPanel,children:[t.jsx(ft,{value:o,onChange:(l,p)=>a(p),TabIndicatorProps:{style:{display:"none"}},classes:{root:n.tabsRoot},"aria-label":"sizes-tabs",children:e&&Object.values(e).map((l,p)=>t.jsx(jt,{classes:{root:n.tabBtn},onClick:()=>{m(Object.values(e)[p].sections[0].title)},label:l.tab_title},l.tab_title))}),Object.values(e)[o].sections.length>1&&t.jsx(B,{children:t.jsx(ts,{labelId:`select-${i}`,id:`select-${i}`,value:i,variant:"standard",onChange:r,children:Object.values(e)[o].sections.map((l,p)=>t.jsx(_e,{value:l.title,children:l.title},p))})})]}),Object.values(e)[o].sections.filter(l=>l.title===i).map((l,p)=>{const x=(u,j)=>{const f={...l,items:l.items.map((P,v)=>v===u?{...j}:{...P})};d(f)};return t.jsx(ss,{value:p,index:p,children:t.jsx(Se,{customStyles:{thumbVertical:n.scrollVerticalTrack},children:t.jsx(c,{container:!0,item:!0,style:{paddingRight:10},children:l.items.map((u,j)=>t.jsx(c,{item:!0,xs:"auto",classes:{root:n.filterSizeContainer},children:t.jsx(kt,{classes:{root:$(n.sizeBtn,{[n.sizeBtnDisabled]:u.is_disabled}),outlined:$(n.sizeBtnOutlined,{[n.sizeBtnChecked]:u.is_checked})},clickable:!u.is_disabled,onClick:()=>{u.is_disabled||x(j,{...u,is_checked:!u.is_checked})},label:u.title,variant:"outlined"})},u.value))})})},p)})]})})};var ee={},os=Ot;Object.defineProperty(ee,"__esModule",{value:!0});var ze=ee.default=void 0,is=os(Xt()),as=t;ze=ee.default=(0,is.default)((0,as.jsx)("path",{d:"M13.5 3H7v9H5v2h2v2H5v2h2v3h2v-3h4v-2H9v-2h4.5c3.04 0 5.5-2.46 5.5-5.5S16.54 3 13.5 3m0 9H9V5h4.5C15.43 5 17 6.57 17 8.5S15.43 12 13.5 12"}),"CurrencyRuble");const rs=S(e=>({formRoot:{"& > *":{margin:e.spacing(1)}},inputRoot:{fontFamily:"TTFirsNeue-Light, sans-serif",width:156,height:40,border:"1px solid #E0E3E6",color:e.color.black100,borderRadius:"8px","&:first-child":{marginRight:"6px"},"&:last-child":{marginLeft:"6px"},"& ::-webkit-clear-button, & ::-webkit-outer-spin-button, & ::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},"& input[type=number]":{"-webkit-appearance":"textfield"},"& svg":{fontSize:14,height:15,paddingBlockStart:"10px",paddingBlockEnd:"11px",paddingInlineEnd:"2px"},"& :nth-last-child(1):nth-child(2)":{paddingRight:10}},inputUnderline:{"&:after":{display:"none"},"&:before":{display:"none"}},inputBase:{textAlign:"right",paddingRight:"2px",padding:"10px 0px","&::placeholder":{fontSize:"14px",color:"#3A474E"}},inputAdornment:{marginLeft:"12px","& > .MuiTypography-colorTextSecondary":{color:"#8F9BA4",fontSize:"14px",textTransform:"lowercase"}},sliderRoot:{width:320,"@media (min-width: 390px) and (max-width: 960px)":{width:"80%;"}},sliderThumb:{"&:hover, &:active":{boxShadow:"none"},width:"16px",height:"16px",border:"1.25px solid #3A474E",backgroundColor:"#fff",marginTop:"-8px",marginLeft:"-8px"},sliderRail:{height:"1px",opacity:"unset",backgroundColor:"#D8DBE3"},sliderTrack:{height:"1px"},boxSlider:{display:"flex",justifyContent:"center",paddingBottom:"32px",height:"100%"},inputBox:{display:"flex",justifyContent:"center",marginBlockStart:36}})),ls=({title:e,values:s,onChange:n})=>{const o=rs(),a=(i,m)=>{const r=s.findIndex(d=>!m.includes(d.value));n(r,{...s[r],value:m[r]})};return t.jsxs(t.Fragment,{children:[t.jsx(B,{paddingBottom:3,classes:{root:o.inputBox},children:s.map((i,m)=>t.jsx(we,{classes:{root:o.inputRoot,input:o.inputBase,underline:o.inputUnderline},onChange:r=>{n(m,{...i,value:Number(r.target.value)})},value:i.value,startAdornment:t.jsx(Ct,{classes:{root:o.inputAdornment},position:"start",children:i.title}),endAdornment:e==="Цена"&&t.jsx(ze,{}),inputProps:{"aria-label":i.title,type:"string"}},i.alias))}),t.jsx(B,{className:o.boxSlider,children:t.jsx(yt,{value:s.map(({value:i})=>i),classes:{thumb:o.sliderThumb,rail:o.sliderRail,track:o.sliderTrack,root:o.sliderRoot},min:s[0]["min-value"],max:s[1]["max-value"],onChange:a,valueLabelDisplay:"off","aria-labelledby":"price-slider"})})]})},cs=S(e=>({skeletonRoot:{backgroundColor:"#F0F3F6",width:120,height:"32px"},skeletonText:{transform:"scale(1, 1)"},skeletonWave:{"&:after":{background:"#E0E3E6"}}}));function ds(){const e=cs();return t.jsxs(c,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"flex-start",spacing:1,children:[t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:"auto",children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:"auto",children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:"auto",children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:6,children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:6,children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:6,children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:6,children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})}),t.jsx(c,{item:!0,lg:"auto",xl:"auto",md:"auto",xs:6,children:t.jsx(T,{classes:{root:e.skeletonRoot,text:e.skeletonText,wave:e.skeletonWave},animation:"wave"})})]})}const us=S(e=>({headerContainer:{paddingBottom:16},selectFilters:{color:e.color.black60,fontSize:e.typography.pxToRem(14),lineHeight:e.typography.pxToRem(24)},clearFilters:{fontSize:"14px",padding:0,alignItems:"flex-end",textTransform:"none","&:hover, &:active":{backgroundColor:"unset"}}})),xs=({filtersCheckedCount:e,filterCode:s,onClearFilter:n})=>{const o=us();return t.jsxs(c,{container:!0,spacing:2,alignItems:"center",justifyContent:"space-between",classes:{root:o.headerContainer},children:[t.jsx(c,{item:!0,xl:"auto",lg:"auto",md:"auto",sm:"auto",xs:"auto",children:t.jsx(B,{children:t.jsxs(E,{variant:"body1",classes:{root:o.selectFilters},children:["фильтры: ",e]})})}),t.jsx(c,{item:!0,xs:"auto",children:t.jsx(W,{fullWidth:!0,color:"primary",classes:{root:o.clearFilters},onClick:n,children:"очистить"})})]})},hs=S(e=>({buttonApply:{boxShadow:"none",width:"100%",borderTopRightRadius:0,borderTopLeftRadius:0,borderRadius:6,height:"48px",textTransform:"none","&:hover, &:active":{boxShadow:"none"},"@media (max-width: 1280px)":{borderRadius:16},"@media (hover: none)":{"&:hover":{"background-color":"#5D6871"}}}}),{name:"FilterApply"}),te=e=>{const s=hs();return t.jsx(W,{...e,fullWidth:!0,variant:"contained",color:"default",classes:{root:s.buttonApply},children:e.children})},ms=S(e=>({buttonRoot:{borderRadius:10,height:32,paddingRight:25,paddingLeft:0,paddingTop:5,paddingBottom:5},buttonRootChecked:{position:"relative",backgroundColor:"#F0F3F6",borderRadius:10,marginRight:25,height:32,padding:"4px 11px","&:hover":{backgroundColor:"#F0F3F6"}},iconSizeMedium:{"& > *:first-child":{fontSize:16}},popoverPaper:{color:"#3A474E",boxShadow:"0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)",borderRadius:6,border:"0.5px solid #F0F3F6",minWidth:250,maxWidth:420},iconButton:{padding:0,"&:hover":{background:"none"}},iconSvgRoot:{color:"#3A474E",fontSize:"0.750em"},countText:{paddingLeft:5}}),{name:"FilterContent"}),fe={default:e=>Object.values(e.values).filter(({is_checked:s})=>s).length,SIZE:e=>e.values.map(({sections:s})=>s).flat().map(({items:s})=>s).flat().filter(({is_checked:s})=>s).length},ps=({buttonText:e,disabled:s,filterChecked:n,filterHeaderText:o,onClick:a,filterCode:i,children:m,headerContent:r,page:d,onApply:l,onClear:p,props:x})=>{const u=ms(),[j,f]=g.useState(null),P=g.useRef(null),v=()=>{f(P.current),a(i)},w=()=>{f(null)},y=(...A)=>{l(...A),w()};return s?t.jsx(W,{disabled:s,classes:{root:u.buttonRoot},variant:"text",color:"default",children:e}):t.jsxs(t.Fragment,{children:[t.jsx(W,{ref:P,classes:{root:n?u.buttonRootChecked:u.buttonRoot,iconSizeMedium:u.iconSizeMedium},variant:"text",onClick:()=>{v()},color:"default",endIcon:n?t.jsx(V,{onClick:A=>{A.stopPropagation(),p()}}):t.jsx(Re,{}),children:t.jsx(E,{children:e})}),t.jsxs(vt,{id:i,open:!!j,anchorEl:j,onClose:w,anchorOrigin:{vertical:n?"top":0,horizontal:n?"left":-12},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:u.popoverPaper},children:[t.jsxs(B,{paddingLeft:"11px",paddingRight:"11px",height:30,display:"flex",alignItems:"center",justifyContent:"space-between",children:[t.jsx(E,{variant:"body2",color:"primary",children:o||"Фильтр"}),t.jsx(Fe,{"aria-label":"closeFilter",size:"small",onClick:w,classes:{root:u.iconButton},children:t.jsx(V,{classes:{root:u.iconSvgRoot}})})]}),t.jsx(Te,{}),t.jsxs(B,{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:0,children:[t.jsx(xs,{filtersCheckedCount:(fe[x.code]||fe.default)(x),filterCode:i,onClearFilter:p}),m]}),t.jsx(te,{onClick:y,children:"Применить"})]})]})},gs=S(e=>({controlLabelRoot:{margin:0,alignItems:"start","&:not(:last-child)":{paddingBottom:"8px"}},disabled:{opacity:.5}}),{name:"FilterItem"}),je=({title:e,value:s,checked:n,onClick:o,image:a,isDisabled:i})=>{const m=gs();return t.jsx(St,{classes:{root:$(m.controlLabelRoot,{[m.disabled]:i})},control:t.jsxs(t.Fragment,{children:[t.jsx(wt,{name:s,checked:n,onChange:o,color:"primary",disabled:i}),a&&t.jsx(B,{style:{width:20,height:20,background:`url(${a}) no-repeat #F0F3F6`,marginRight:5,borderRadius:5}})]}),label:e,labelPlacement:"end"})},bs=S(e=>({container:{height:200,"@media (max-width: 960px)":{height:"100%","padding-inline-start":18,"padding-block":"10px 0"}},scrollVerticalTrack:{borderRadius:100,backgroundColor:"#8F9BA4"},childsBlock:{"@media(min-width: 281px) and (max-width: 960px)":{paddingInlineStart:12}},childsList:{marginBlock:10,paddingInlineStart:3,paddingInlineEnd:9}}),{name:"DefaultFilterContent"}),fs=e=>{const s=bs();return t.jsx(B,{className:$([s.containerALl,s.container]),children:t.jsx(Se,{customStyles:{thumbVertical:s.scrollVerticalTrack},children:t.jsx(_t,{"aria-label":"position",children:e&&Object.values(e.values).map((n,o)=>n.childs?t.jsxs("div",{className:s.childsBlock,children:[t.jsx(E,{children:n.title}),t.jsx("ul",{className:s.childsList,children:n.childs.map(a=>t.jsx("li",{children:t.jsx(je,{title:a.title,image:a.image,checked:a.is_checked,isDisabled:a.is_disabled,onClick:()=>{e.onChange(o,{...n,childs:n.childs.map(i=>i.value===a.value?{...i,is_checked:!i.is_checked}:i)})},value:a.value.toString()},a.value)}))})]},n.value):t.jsx(je,{title:n.title,image:n.image,checked:n.is_checked,isDisabled:n.is_disabled,onClick:()=>{e.onChange(o,{...n,is_checked:!n.is_checked})},value:n.value.toString()},n.value))})})})},Ee=({filterCode:e,props:s,onChange:n})=>s.type==="slider"?t.jsx(ls,{...s,onChange:n}):e==="SIZE"?t.jsx(ns,{...s,onChange:n}):t.jsx(fs,{...s,onChange:n}),js=({headerContent:e,page:s,actualFilters:n,onChange:o,onClearFilter:a,onApply:i})=>{const[m,r]=g.useState(void 0);return n?t.jsx(t.Fragment,{children:n.map(d=>t.jsx(c,{item:!0,xs:"auto",children:t.jsx(ps,{buttonText:d.title,filterChecked:d.is_filtred,disabled:d.is_disabled,filterHeaderText:d.title,filterCode:d.code,onClick:l=>r(l),headerContent:e,page:s,onApply:i,onClear:()=>a(d.code),props:d,children:m&&t.jsx(Ee,{filterCode:m,props:d,onChange:(l,p)=>o(d.code,l,p)})})},d.code))}):t.jsx(ds,{})},ks=S(e=>({menuItemRoot:{borderRadius:12,"&:hover":{backgroundColor:"#F0F3F6"},"&:focus":{backgroundColor:"#F0F3F6"}},menuItemRootMobile:{"&:hover":{backgroundColor:"unset"},"&:focus":{backgroundColor:"unset"}},menuItemGutters:{paddingLeft:8,paddingRight:8},listItemText:{display:"flex",alignItems:"center",justifyContent:"space-between",margin:0}}),{name:"SortItem"});function We({title:e,...s}){const n=ks(),o=Rt("(max-width: 1280px)");return t.jsx(_e,{...s,classes:{root:$([n.menuItemRoot,o&&n.menuItemRootMobile]),gutters:n.menuItemGutters},children:t.jsx(Ft,{classes:{root:n.listItemText},disableTypography:!0,children:e})})}const Cs=S(e=>({popperRoot:{zIndex:e.zIndex.modal},menuBtnRoot:{padding:0,"&:hover":{backgroundColor:"unset"},"& .MuiButton-startIcon":{marginLeft:-1}},paperRoot:{minWidth:210,border:"1px solid rgba(0, 16, 61, 0.16)"},menuListPadding:{padding:8},endIcon:{transform:"rotate(0deg)",transition:e.transitions.create("all",{duration:150,easing:"cubic-bezier(0.4, 0, 0.2, 1)",delay:0})},endIconOpen:{transform:"rotate(180deg)"}}),{name:"Dropdown"}),ys=({items:e})=>{const s=Cs(),[n,o]=g.useState(!1),a=mt.useRef(null),i=X(),m=()=>{o(x=>!x)},r=x=>{a.current&&a.current.contains(x.target)||o(!1)};function d(x){x.key==="Tab"&&(x.preventDefault(),o(!1))}const l=(x,u)=>{r(x);const j=new URL(location.href);j.searchParams.set("sort",u.code),i(j.pathname+j.search)};if(!e)return null;const p=Object.values(e).filter(x=>x.is_active)[0];return t.jsxs(t.Fragment,{children:[t.jsx(W,{ref:a,"aria-controls":n?"menu-list-sort":void 0,"aria-haspopup":"true",onClick:m,classes:{root:s.menuBtnRoot,endIcon:$([s.endIcon,n&&s.endIconOpen])},endIcon:t.jsx(Re,{}),startIcon:t.jsx(Ie,{}),children:t.jsx(E,{color:"primary",variant:"body1",children:p.title})}),t.jsx(Tt,{modifiers:{offset:{enabled:!0,offset:"0, 8px"}},open:n,anchorEl:a.current,role:void 0,transition:!0,placement:"bottom-start",className:s.popperRoot,disablePortal:!0,children:({TransitionProps:x,placement:u})=>t.jsx(It,{...x,style:{transformOrigin:"left top"},children:t.jsx(Ht,{classes:{root:s.paperRoot},children:t.jsx(Pt,{onClickAway:r,children:t.jsx(Pe,{id:"menu-list-sort",classes:{padding:s.menuListPadding},onKeyDown:d,children:Object.values(e).map(j=>t.jsx(We,{...j,button:!0,onClick:f=>l(f,j)},j.code))})})})})})]})},vs=S(e=>({buttonRoot:{justifyContent:"flex-start",border:"1px solid #E0E0E0",borderRadius:"10px",fontSize:"0.875rem",lineHeight:"20px",padding:"10px 16px"},sortHeader:{minHeight:64,backgroundColor:"#F0F3F6"},sortHeaderText:{fontSize:e.typography.pxToRem(18)},menuItemRoot:{padding:16,borderBottom:"1px solid #EFF2F4"},listSvgRoot:{minWidth:"unset"},sortItem:{padding:9}}),{name:"SortMobile"});function Ss({items:e}){const s=vs(),[n,o]=g.useState(!1),a=X(),i=ve(r=>{var d;return(d=r.catalogPageSlice)==null?void 0:d.selectedFilters});if(!e)return null;const m=(r,d)=>{o(!1),a(lt({...i,sort:{values:[d.code]}}))};return t.jsxs(c,{item:!0,xs:6,children:[t.jsx(W,{fullWidth:!0,startIcon:t.jsx(Ie,{}),onClick:()=>o(r=>!r),variant:"outlined",color:"default",classes:{root:s.buttonRoot},children:"Сортировка"}),t.jsxs(Be,{isWrapped:!1,open:n,onClose:()=>o(r=>!r),handlerCloseIcon:()=>o(r=>!r),showCloseIcon:!0,closeIconPosition:"left",anchor:"right",children:[t.jsx(c,{container:!0,item:!0,alignItems:"center",justifyContent:"center",classes:{root:s.sortHeader},children:t.jsx(c,{item:!0,xs:"auto",children:t.jsx(E,{classes:{root:s.sortHeaderText},children:"Сортировка"})})}),t.jsx(c,{item:!0,xs:12,classes:{root:s.sortItem},children:t.jsx(Pe,{disablePadding:!0,children:Object.values(e).map((r,d)=>t.jsx(We,{isActive:r.is_active,button:!0,onClick:l=>m(l,r),title:r.title},d))})})]})]})}const ws=S(e=>({menuItem:{padding:"0 16px",display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:56,height:"100%"},menuItemIcon:{fontSize:e.typography.pxToRem(12),"& > *:first-child":{fontSize:e.typography.pxToRem(12)}},sortHeader:{minHeight:64,backgroundColor:"#F0F3F6"},sortHeaderText:{textAlign:"center",fontSize:e.typography.pxToRem(18)},clearContainer:{position:"absolute",right:20,top:23,zIndex:e.zIndex.modal},clearFilters:{fontSize:e.typography.pxToRem(14),lineHeight:e.typography.pxToRem(20),padding:0,textTransform:"none","&:hover, &:active":{backgroundColor:"unset"}},filterApplyBox:{display:"flex",justifyContent:"start",flexDirection:"column",position:"relative",height:"100%",padding:0,"@media (max-width: 280px)":{marginInline:15}},filterApplyButtonWrapper:{padding:"16px"}}),{name:"FilterContentMobile"}),_s=({buttonText:e,disabled:s,filterHeaderText:n,onClick:o,filterCode:a,children:i,onClear:m})=>{const r=ws(),[d,l]=g.useState(!1),p=()=>{l(x=>!x),o(a)};return t.jsxs(t.Fragment,{children:[t.jsx(W,{disabled:s,classes:{root:r.menuItem,iconSizeMedium:r.menuItemIcon},color:"default",variant:"text",fullWidth:!0,endIcon:t.jsx(Bt,{}),onClick:p,children:t.jsx(E,{children:e})}),t.jsxs(Be,{isWrapped:!1,open:d,onClose:()=>l(x=>!x),handlerCloseIcon:()=>l(x=>!x),closeIconPosition:"left",anchor:"right",IconComponent:t.jsx(At,{}),showCloseIcon:!0,children:[t.jsxs(c,{container:!0,item:!0,alignItems:"center",justifyContent:"center",classes:{root:r.sortHeader},children:[t.jsx(c,{item:!0,sm:"auto",xs:"auto",children:t.jsx(E,{classes:{root:r.sortHeaderText},children:n||"Фильтр"})}),t.jsx(c,{item:!0,classes:{root:r.clearContainer},children:t.jsx(W,{fullWidth:!0,color:"primary",classes:{root:r.clearFilters},onClick:m,children:"очистить"})})]}),t.jsx(Te,{}),t.jsxs(B,{paddingTop:2,className:r.filterApplyBox,children:[i,t.jsx("div",{className:r.filterApplyButtonWrapper,children:t.jsx(te,{onClick:()=>{l(!1)},children:"Готово"})})]})]})]})},Rs=S(e=>({headerContainer:{minHeight:64,backgroundColor:"#F0F3F6"},headerText:{fontSize:e.typography.pxToRem(18),lineHeight:e.typography.pxToRem(18)}}),{name:"DrawerHeader"});function Fs({title:e}){const s=Rs();return t.jsx(c,{container:!0,item:!0,alignItems:"center",justifyContent:"center",classes:{root:s.headerContainer},children:t.jsx(c,{item:!0,xs:"auto",children:t.jsx(E,{classes:{root:s.headerText},children:e})})})}const Ts=S(e=>({buttonRoot:{justifyContent:"flex-start",border:"1px solid #E0E0E0",borderRadius:"10px",fontSize:"0.875rem",lineHeight:"20px",padding:"10px 16px"},filterContainer:{"flex-grow":1,overflow:"auto","@media (max-width: 390px)":{overflow:"scroll"}},filterItem:{borderBottom:"1px solid #E0E0E0"},filterApplyBox:{padding:"16px",position:"sticky",bottom:0,background:"white"},filterDrawer:{},mobileModalDrawer:{position:"fixed",top:0,left:0,right:0,bottom:0,"z-index":1300,display:"flex","flex-direction":"column",background:"white"},closeButton:{position:"absolute",top:24,left:24,padding:0}}),{name:"MobileFilter"}),Is=({actualFilters:e=[],onChange:s,onClearFilter:n,onApply:o})=>{const a=Ts(),[i,m]=g.useState(),[r,d]=g.useState(!1),l=()=>{document.body.style.overflow="",d(!1)},p=()=>{document.body.style.overflow="hidden",d(!0)},x=()=>{l(),o()};return t.jsxs(c,{item:!0,xs:6,children:[t.jsx(W,{startIcon:t.jsx(zt,{}),onClick:p,fullWidth:!0,classes:{root:a.buttonRoot},children:"Фильтр"}),r&&t.jsxs("div",{className:a.mobileModalDrawer,children:[t.jsx(Fe,{classes:{root:a.closeButton},onClick:l,children:t.jsx(V,{})}),t.jsx(Fs,{title:"Фильтр"}),t.jsx(c,{container:!0,classes:{root:a.filterContainer},children:e.map(u=>t.jsx(c,{item:!0,xs:12,classes:{root:a.filterItem},children:t.jsx(_s,{buttonText:u.title,filterChecked:u.is_filtred,disabled:u.is_disabled,filterHeaderText:u.title,filterCode:u.code,onClick:j=>m(j),onClear:()=>n(u.code),children:i&&t.jsx(Ee,{filterCode:i,props:u,onChange:(j,f)=>s(u.code,j,f)})})},u.code))}),t.jsx(B,{padding:"0 16px",className:a.filterApplyBox,children:t.jsx(te,{onClick:x,children:"Применить"})})]})]})},Y=["ONE SIZE","XXS","XXS/XS","XS","XS/S","S","S/M","M","M/L","L","L/XL","XL","XL/XXL","XXL","XXL/XXXL","XXXL","XXXXL","XXXXXL","3XS","2XS","2XL","3XL","4XL","5XL","WS","WM"],ke=[{test:({title:e})=>Y.includes(e),sort:(e,s)=>Y.indexOf(e.title)-Y.indexOf(s.title)},{test:({title:e})=>e.startsWith("l"),sort:(e,s)=>e.title.replace("l","")-s.title.replace("l","")},{test:({title:e})=>!isNaN(+e),sort:(e,s)=>+e.title-+s.title},{test:({title:e})=>/^\d+\/\d+$/.test(e),sort:(e,s)=>parseInt(e.title)-parseInt(s.title)}];function Ps(e){try{const s=ke.flatMap(o=>e.filter(a=>o.test(a)).sort(o.sort)),n=e.filter(o=>!ke.find(a=>a.test(o)));return[...s,...n]}catch{return e}}function Ce(e=[]){return e.map(s=>s.code==="SIZE"?{...s,values:s.values.map(n=>({...n,sections:n.sections.map(o=>({...o,items:Ps(o.items).sort((a,i)=>Number(a.is_disabled)-Number(i.is_disabled))}))}))}:{...s,values:Object.values(s.values).sort((n,o)=>Number(n.is_disabled)-Number(o.is_disabled))})}const Bs=S(e=>({containerFilter:{paddingBlock:e.spacing(4)}}),{name:"filter"}),ye=({code:e,values:s})=>e==="SECTIONS"||e==="GENDER_PUB"&&s.filter(({is_checked:n})=>n).length>1,en=({headerContent:e,filterData:s,page:n})=>{var u,j;const o=Bs(),a=X(),[i,m]=g.useState(Ce((u=s==null?void 0:s.filter)==null?void 0:u.items)),r=s==null?void 0:s.url;g.useEffect(()=>{var f;m(Ce((f=s==null?void 0:s.filter)==null?void 0:f.items))},[s]);const d=f=>{const P=Object.entries(f.filter(({code:h})=>h==="SIZE").map(({values:h})=>h.map(({sections:b})=>b)).flat(2).map(h=>({...h,items:h.items.filter(({is_checked:b})=>b).map(b=>b["alias-value"]||b.title)})).filter(({items:h})=>h.length).reduce((h,b)=>(b.code in h?h[b.code]=[...h[b.code],...b.items]:h[b.code]=b.items,h),{})).map(([h,b])=>`${h.toLowerCase()}-${[...new Set(b)].join("~")}`),v=f.filter(({type:h})=>h==="slider").map(({values:h})=>h).flat().filter(h=>h.value!==h["min-value"]&&h.value!==h["max-value"]).map(({alias:h,value:b})=>`${h}-${b}`),y=[...f.filter(({alias:h,values:b,code:R})=>!ye({code:R,values:b})&&h&&Object.values(b).some(_=>_.is_checked&&_["alias-value"])).map(({alias:h,values:b})=>{const R=b.filter(_=>_.is_checked&&_["alias-value"]);return`${h}-${R.map(_=>_["alias-value"]).join("~")}`}),...P,...v].join("/"),O=f.filter(({values:h,code:b})=>ye({code:b,values:h})&&Object.values(h).some(({is_checked:R,childs:_})=>R||(_==null?void 0:_.some(({is_checked:L})=>L)))).map(({code:h,values:b})=>`${h}=${b.filter(R=>R.childs?R.childs.some(({is_checked:_})=>_):R.is_checked).map(R=>R.childs?R.childs.filter(({is_checked:_})=>_).map(({value:_})=>_).join("~"):R.value).join("~")}`).join("&"),G=`${r}${y}${y.length?"/":""}?${O}`,q=location.search.includes("sort="),Z=location.search.replace(/^.*?(?=sort=)/,"");if(location.search&&q)return a(G+`${O?"&":""}`+Z);a(G)},l=(f,P,v)=>{const w=i.map(y=>y.code===f?{...y,values:Object.values(y.values).map((A,O)=>O===P?{...v}:A)}:y);m(w)},p=f=>{const P=i.map(v=>v.code===f?v.type==="slider"?{...v,values:v.values.map(w=>({...w,value:w["max-value"]||w["min-value"]}))}:f==="SIZE"?{...v,values:v.values.map(w=>({...w,sections:w.sections.map(y=>({...y,items:y.items.map(A=>({...A,is_checked:!1}))}))}))}:{...v,values:Object.values(v.values).map(w=>w.childs?{...w.childs,is_checked:!1}:{...w,is_checked:!1})}:v);d(P)},x=()=>d(i);return t.jsx("noindex",{children:t.jsxs(c,{container:!0,spacing:3,classes:{root:o.containerFilter},children:[t.jsxs(be,{smDown:!0,children:[t.jsx(c,{container:!0,item:!0,children:t.jsx(Vt,{items:(j=s==null?void 0:s.filter)==null?void 0:j.items,children:t.jsx(js,{headerContent:e,page:n,actualFilters:i,onChange:l,onClearFilter:p,onApply:x})})}),t.jsx(c,{container:!0,item:!0,justifyContent:"flex-start",children:t.jsx(c,{item:!0,xl:4,lg:4,children:t.jsx(ys,{items:s==null?void 0:s.sorts})})})]}),t.jsx(be,{mdUp:!0,children:t.jsx(c,{container:!0,item:!0,children:t.jsxs(c,{container:!0,item:!0,spacing:3,alignItems:"center",justifyContent:"center",children:[t.jsx(Ss,{items:s==null?void 0:s.sorts}),t.jsx(Is,{headerContent:e,page:n,actualFilters:i,onChange:l,onClearFilter:p,onApply:x})]})})})]})})},As=S(e=>({productActions:{"& .swiper-container":{padding:"0 15px",overflow:"hidden",position:"relative",width:"100%","& .swiper-wrapper":{display:"flex","transition-property":"transform","box-sizing":"content-box"},"& .swiper-button-next, & .swiper-button-prev":{position:"absolute",top:"50%",transform:"translateY(-50%)",width:"20px",cursor:"pointer",height:"100%",display:"flex","align-items":"center",background:"white","justify-content":"center",marginTop:0,"&:after":{content:'" "',transform:"rotate(45deg)",width:"10px",height:"10px",display:"block"},"&.swiper-button-disabled":{display:"none"}},"& .swiper-button-next":{right:"0","&:after":{border:"1px solid","border-color":"#c6c6c6 #c6c6c6 transparent transparent"}},"& .swiper-button-prev":{left:"0","&:after":{border:"1px solid","border-color":"transparent transparent #c6c6c6 #c6c6c6"}},"& .swiper-slide":{width:56,"@media (max-width: 640px)":{width:40}}}},productThumb:{"box-sizing":"border-box",cursor:"pointer",padding:"3px",borderRadius:"3px",border:"2px solid transparent","&:hover":{border:"2px solid #3A474E",borderRadius:"6px"}}}),{name:"ProductThumbnails"});Zt.use([Dt]);const zs={slidesPerView:"auto",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},Es=({colorList:e=[],onClick:s,colorRef:n,thingType:o})=>{const a=As(),i=X(),m=o==="Ювелирное изделие";return Array.isArray(e)?t.jsx(Et,{classes:{root:a.productActions},ref:n,children:t.jsx(qt,{...zs,children:e.map((r,d)=>t.jsx(Wt,{onClick:()=>{if(m)return i(r.url);s(r.color_code,d,r.color_title)},classes:{media:a.productThumb},component:"img",src:r.gallery?r.gallery[0]:"",alt:r.color_title,title:r.color_title},d))})}):null},Ws=S(e=>({gridItem:{"& > *":{paddingBottom:20,"@media (min-width: 768px) and (max-width: 960px)":{paddingInline:10}}},loader:{zIndex:e.zIndex.drawer,position:"absolute",backgroundColor:"rgba(255, 255, 255, 0.5)"}}),{name:"CatalogProductPreview"}),tn=({product:e,type:s,productPosition:n,setShowDisplayProductSizes:o,showDisplayProductSiazes:a,pageName:i,catalogName:m,observer:r})=>{var ce,de,ue,xe,he,me;const d=Ws(),l=ve(C=>C.userAuth.isAuth),p=g.useRef(null),x=g.useRef(null),u=X(),[j,{data:f,isLoading:P,isSuccess:v}]=ct(),[w,{data:y,isFetching:A}]=dt(),[O,{data:G,isFetching:q}]=ut(),[Z,{data:h,isLoading:b}]=xt(),[R,_]=g.useState(""),[L,Le]=g.useState(""),[se,Me]=g.useState(0),[$e,Oe]=g.useState(0),[Xe,D]=g.useState(!1),[He,Ne]=g.useState(!1),[Ue,ne]=g.useState(!1),Ge=(ce=e==null?void 0:e.colors_list[se])==null?void 0:ce.sku_ids[0],k=e==null?void 0:e.colors_list[se],K=(y==null?void 0:y.data)&&((xe=(ue=(de=y==null?void 0:y.data)==null?void 0:de.MAIN)==null?void 0:ue.content)==null?void 0:xe.colors_list),qe=e==null?void 0:e.technologies,Ze=(he=y==null?void 0:y.data)==null?void 0:he.MAIN,De=e.thing_type,Ke=e==null?void 0:e.is_soon,Qe=e==null?void 0:e.product_id,[Je,oe]=g.useState(!1),[Ye,Ve]=g.useState(e==null?void 0:e.url),ie=Ye||(k==null?void 0:k.url),ae=/Новинки|Распродажа/.test(m),et=e==null?void 0:e.is_offline_sale,tt=()=>s==="search"?4:3,st=(C,F)=>{F!=="clickaway"&&D(!1)},nt=C=>{j({sku:C}).then(F=>{var I,z,H,N,U;F.data.status==="success"&&!Array.isArray(F.data.data)&&J("add_to_cart",{currency:"RUB",item_list_name:i,value:(z=(I=e==null?void 0:e.colors_list)==null?void 0:I.find(M=>M.color_title===L))==null?void 0:z.retail_price,items:[{item_name:e==null?void 0:e.name,item_id:C,price:(N=(H=e==null?void 0:e.colors_list)==null?void 0:H.find(M=>M.color_title===L))==null?void 0:N.retail_price,item_brand:(U=e==null?void 0:e.brand)==null?void 0:U.name,item_category2:e==null?void 0:e.thing_type,item_category3:ae&&m,item_variant:L,index:n,is_peak:e==null?void 0:e.is_peak,quantity:1,offer_id:C}]})})},re=C=>{Z({url:pe.user.wishlist.add,...ge({SITE_ID:"lid",bitrix_sessid:"bitrix_sessid"}),id:C}).then(F=>{var I,z,H,N,U;F.data.status==="success"&&!Array.isArray(F.data.data)&&J("add_to_wishlist",{currency:"RUB",item_list_name:i,value:(z=(I=e==null?void 0:e.colors_list)==null?void 0:I.find(M=>M.color_title===L))==null?void 0:z.retail_price,items:[{item_name:e==null?void 0:e.name,item_id:C,price:(N=(H=e==null?void 0:e.colors_list)==null?void 0:H.find(M=>M.color_title===L))==null?void 0:N.retail_price,item_brand:(U=e==null?void 0:e.brand)==null?void 0:U.name,item_category2:e==null?void 0:e.thing_type,item_category3:ae&&m,is_peak:e==null?void 0:e.is_peak,item_variant:L,index:n,quantity:1,offer_id:F.data.SKU_ID}]})})},ot=(C,F)=>et?u(e.url):Ue?(ne(!1),re(C)):nt(C),it=(C,F,I,z)=>{if(Ke)return oe(!0);Ve(""),o(C),Me(z),Oe(C),_(I),Le(F),$e!==C&&w({url:`${pe.product.getProduct}${C}/color_sizes/${I}/`,productId:C,color:I,...ge({SITE_ID:"lid",bitrix_sessid:"bitrix_sessid"})})},le=g.useMemo(()=>K==null?void 0:K.filter(C=>C.color_code===R),[Ze,R]);g.useEffect(()=>{v&&D(v)},[v]);const[at]=ht(),rt=async C=>{var F,I,z;C.preventDefault(),at({type:"clickItem",sku_id:e.product_id,price:k==null?void 0:k.retail_price}),J("select_item",{currency:"RUB",item_list_name:i,value:(F=e==null?void 0:e.colors_list[0])==null?void 0:F.retail_price,items:[{item_name:e==null?void 0:e.name,item_id:e==null?void 0:e.product_id,price:(I=e==null?void 0:e.colors_list[0])==null?void 0:I.retail_price,item_brand:(z=e==null?void 0:e.brand)==null?void 0:z.name,item_category2:e==null?void 0:e.thing_type,is_peak:e==null?void 0:e.is_peak,quantity:1,index:n}]})},Q=g.useRef(null);return g.useEffect(()=>{try{return r.observe(Q.current),()=>{r.disconnect()}}catch{}},[Q,r]),t.jsxs(t.Fragment,{children:[t.jsx(c,{item:!0,md:tt(),xs:6,classes:{item:d.gridItem},ref:Q,"data-id":e.product_id,itemProp:"itemListElement",itemScope:!0,itemType:"http://schema.org/Product",children:t.jsxs(Nt,{children:[t.jsx(Ut,{containerSize:"big",url:ie,imgUrl:k==null?void 0:k.gallery,imgTitle:k==null?void 0:k.gallery_image_alt,imgAlt:k==null?void 0:k.gallery_image_alt,technologies:qe[0],badge:e.badges,sizes:le&&le[0].size_list,onClickSize:ot,productSku:Ge,handleAddWishlist:re,inWishlist:e==null?void 0:e.in_wishlist,setClickOnWishListIcon:ne,isUserAuth:l,colorRef:x,addWishList:b,wishListItem:h,parentRef:p,selectColor:L,showDisplayProductSiazes:a,setShowDisplayProductSizes:o,onCardClick:rt,productId:Qe,isComingSoon:Je,setIsComingSoon:oe,advertBadge:e.advert_badge}),t.jsx(Gt,{title:e.thing_type,brandName:e.brand.name,name:e.model_name,price:k==null?void 0:k.retail_price,oldPrice:k==null?void 0:k.base_price,percent:(me=k==null?void 0:k.discount)==null?void 0:me.percent_format,url:ie,metaDesk:e.metaItemprop.description}),t.jsx(Es,{onClick:(C,F,I)=>{it(e.product_id,I,C,F)},colorList:e==null?void 0:e.colors_list,colorRef:x,thingType:De}),t.jsx(Lt,{classes:{root:d.loader},open:A||P,children:t.jsx(Mt,{color:"primary"})})]})}),(f==null?void 0:f.data)&&t.jsx(Kt,{cartItem:f,open:Xe,handleClose:st,getBasket:O,setOpenCart:Ne,setOpenInfo:D,openCart:He,basketLoading:q,basketData:G})]})},Ls=S(e=>({skeletProductImg:{marginBottom:e.spacing(3),backgroundColor:e.color.black20,"@media (min-width: 1656px)":{height:498},"@media (max-width: 1440px)":{height:390},"@media (max-width: 1280px)":{height:353},"@media (max-width: 479px)":{height:"auto"}},skeletProductCatRoot:{transform:"scale(1, 1)",backgroundColor:e.color.black20,marginBottom:e.spacing(1)},skeletProductCatText:{width:"148px",height:"14px","@media (max-width: 479px)":{width:"auto"}},skeletProductBrandText:{width:"208px",height:"20px","@media (max-width: 479px)":{width:"auto"}},skeletProductNameText:{width:"208px",height:"20px","@media (max-width: 479px)":{width:"auto"}},skeletProductThumb:{display:"inline-flex",width:24,height:24,marginRight:e.spacing(1)}}));function sn({count:e}){const s=Ls(),[n,o]=g.useState(new Array(3).fill(1));return g.useEffect(()=>{e&&o(new Array(e).fill(1))},[e]),t.jsx(t.Fragment,{children:n.map((a,i)=>t.jsxs(c,{item:!0,xl:3,lg:3,md:6,sm:6,xs:6,children:[t.jsx(T,{variant:"rect",classes:{root:s.skeletProductImg},animation:"wave"}),t.jsx(T,{variant:"text",classes:{root:s.skeletProductCatRoot,text:s.skeletProductCatText},animation:"wave"}),t.jsx(T,{variant:"text",classes:{root:s.skeletProductCatRoot,text:s.skeletProductBrandText},animation:"wave"}),t.jsx(T,{variant:"text",classes:{root:s.skeletProductCatRoot,text:s.skeletProductNameText},animation:"wave"}),t.jsx(T,{variant:"rect",classes:{root:s.skeletProductCatRoot,rect:s.skeletProductThumb},animation:"wave"}),t.jsx(T,{variant:"rect",classes:{root:s.skeletProductCatRoot,rect:s.skeletProductThumb},animation:"wave"}),t.jsx(T,{variant:"rect",classes:{root:s.skeletProductCatRoot,rect:s.skeletProductThumb},animation:"wave"}),t.jsx(T,{variant:"rect",classes:{root:s.skeletProductCatRoot,rect:s.skeletProductThumb},animation:"wave"})]},i))})}const Ms=S(e=>({itemPositionCenter:{marginInline:"auto"},endPageText:{color:e.color.black100,fontSize:e.typography.pxToRem(20),fontWeight:"bold"},buttonMore:{color:e.color.black100,fontSize:e.typography.pxToRem(20),padding:"20px 36px",border:`2px solid ${e.color.black40}`,borderRadius:"16px","&:hover":{backgroundColor:"unset"},"@media (max-width: 960px)":{width:"350px"}},productCount:{color:e.color.black60},activePageCountElement:{color:e.color.blue},inactivePageCountElement:{cursor:"pointer",color:e.color.black60,"&:hover":{color:e.color.blue}},productCountPosition:{justifyContent:"flex-start",columnGap:"0.5em","@media (max-width: 479px)":{justifyContent:"center"}},catalogPriceFooter:{paddingBottom:80,"@media (max-width: 960px)":{flexDirection:"column"}}}),{name:"CatalogFooter"});function $s({location:e,pageNum:s}){const n=new URLSearchParams(e.search);return n.set("PAGEN_1",s),`${e.pathname}?${n}`}const nn=({items:e,sumProducs:s})=>{var p,x;if(!e)return null;const n=Ms(),o=X(),a=(p=e==null?void 0:e.data)==null?void 0:p.page_count,i=(x=e==null?void 0:e.data)==null?void 0:x.current_page,m=e==null?void 0:e.data,r=(u,j)=>{o($s({location,pageNum:j}))},{items:d}=$t({count:a,siblingCount:Qt(a,i),onChange:r,page:i}),l=u=>{d==null||d.at(-1).onClick(u)};return t.jsxs(c,{container:!0,spacing:3,alignItems:"center",justifyContent:"space-between",classes:{root:n.catalogPriceFooter},children:[m&&t.jsx(c,{item:!0,md:"auto",xs:12,children:t.jsx(c,{container:!0,className:n.productCountPosition,children:t.jsxs(E,{variant:"body1",classes:{root:n.productCount},children:["Показано ",s," из ",e.data.record_count," товаров"]})})}),t.jsx(c,{item:!0,md:"auto",xs:12,classes:{root:n.itemPositionCenter},children:t.jsx(c,{container:!0,justifyContent:"center",children:a!==i&&t.jsx(W,{fullWidth:!0,color:"primary",id:"show-more",classes:{root:n.buttonMore},onClick:l,children:"Следующая страница"})})}),t.jsx(c,{item:!0,md:"auto",xs:12,children:t.jsx(c,{container:!0,item:!0,children:t.jsx(Jt,{data:d})})})]})};export{sn as C,en as F,tn as a,nn as b};