PageSourceSearch

https://avtobamper.by/_next/static/chunks/0nzy7f~.rvemx.js

js avtobamper.by collected 2026-10-08 06:56:58 UTC 46,120 bytes, 475 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53278,e=>{"use strict";let t={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"ts",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},i=e=>e.replace(/[\u0400-\u04FF]/g,e=>{let i=e.toLowerCase(),o=t[i];return o?e!==i?o.charAt(0).toUpperCase()+o.slice(1):o:""}).normalize("NFKD").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),o=e=>e.toLowerCase().replace(/_/g,"-");e.s(["expandCategoryIdsForSearchApi",0,function(e,t){let i=new Set;for(let o of t){let t=function(e,t){return function e(i,o){for(let r of i){let i=[...o,r];if(r.id===t)return i;let a=e(r.children??[],i);if(a)return a}return null}(e,[])}(e,o);if(t&&t.length>0)(0===t.length?[]:1===t.length?[t[0].id]:t.slice(1).map(e=>e.id)).forEach(e=>i.add(e));else i.add(o)}return Array.from(i)},"findSectionIdBySlug",0,function(e,t){let r=o(t);for(let t of e)for(let e of t.subCategory)for(let t of e.section)if((t.slug&&t.slug.trim().length>0?o(t.slug):i(t.sectionName))===r)return t.id},"findSectionSlugById",0,(e,t)=>{for(let r of e)for(let e of r.subCategory)for(let r of e.section)if(r.id===t){if(r.slug&&r.slug.trim().length>0)return o(r.slug);return i(r.sectionName)}},"getNormalizedSlug",0,o,"sanitizeReactId",0,e=>e.replace(/[^a-z0-9-]/gi,"").toLowerCase(),"slugifyAscii",0,i])},93427,e=>{"use strict";e.s(["ceilToStep",0,function(e,t){return Math.ceil(e/t)*t},"clampNumber",0,function(e,t,i){return Math.min(Math.max(e,t),i)},"floorToStep",0,function(e,t){return Math.floor(e/t)*t},"parseNumberFromText",0,function(e){let t=e.replace(/\s+/g,"");if(""===t)return null;let i=Number(t);return Number.isFinite(i)?i:null},"roundRatingToTenths",0,function(e){return Math.round((e??0)*10)/10}])},82842,e=>{"use strict";var t=e.i(53278);function i(e,t){if(!t||!e)return e;let i=e.toLowerCase().indexOf(t.toLowerCase());return i>0?e.substring(0,i).trim():e}function o(e,o){let r=e||"",a=o?i(r,o):r;return(0,t.slugifyAscii)(a||r)}e.s(["buildProductPathname",0,function(e){let t=encodeURIComponent(String(e.productId)),i=o(e.category||e.title||"",e.mark)||`art-${String(e.productId)}`,r=e.mark?encodeURIComponent(e.mark):void 0,a=e.model?encodeURIComponent(e.model):void 0,n=e.generation?encodeURIComponent(e.generation):void 0,l=`/product/${i}`;return r&&(l+=`/mark/${r}`,a&&(l+=`/model/${a}`),n&&(l+=`/modification/${n}`)),l+=`/art/${t}`},"extractCategoryFromProductFullName",0,i,"getCategorySlugForProductUrl",0,o])},10654,70764,e=>{"use strict";var t=e.i(97053),i=e.i(38478);let o=t.default.div.withConfig({componentId:"sc-90bfbb52-0"})`
2  display: flex;
3  justify-content: space-between;
4  align-items: center;
5  flex-direction: row-reverse;
6  padding: 0;
7`,r=t.default.button.withConfig({componentId:"sc-90bfbb52-1"})`
8  z-index: 2;
9  display: inline-flex;
10  justify-content: center;
11  align-items: center;
12  position: relative;
13  cursor: pointer;
14  overflow: hidden;
15  isolation: isolate;
16  width: fit-content;
17
18  border: none;
19  background-color: transparent;
20  padding: 0;
21
22  flex: 0 0 auto;
23
24  svg {
25    path {
26      fill: ${({$active:e})=>e?i.theme.color.orange:"transparent"};
27      stroke: ${({$active:e})=>e?i.theme.color.orange:i.theme.color.paleGray};
28      transition:
29        stroke 0.2s ease-in-out,
30        fill 0.2s ease-in-out;
31    }
32  }
33
34  @media (max-width: ${i.theme.breakpoints.laptop}) {
35    svg {
36      width: ${i.theme.methods.rem(40)};
37      height: ${i.theme.methods.rem(40)};
38    }
39  }
40
41  @media (max-width: ${i.theme.breakpoints.tablet}) {
42    svg {
43      width: ${i.theme.methods.rem(30)};
44      height: ${i.theme.methods.rem(30)};
45    }
46  }
47
48  @media (hover: hover) {
49    &:hover {
50      svg {
51        path {
52          stroke: ${({$active:e})=>e?i.theme.color.paleOrange:i.theme.color.orange};
53          fill: ${({$active:e})=>e?i.theme.color.paleOrange:"transparent"};
54        }
55      }
56    }
57  }
58
59  @media (hover: none) {
60    &:active {
61      svg {
62        path {
63          stroke: ${({$active:e})=>e?i.theme.color.paleOrange:i.theme.color.orange};
64          fill: ${({$active:e})=>e?i.theme.color.paleOrange:"transparent"};
65        }
66      }
67    }
68  }
69`,a=t.default.strong.withConfig({componentId:"sc-90bfbb52-2"})`
70  padding: ${i.theme.methods.rem(9)} ${i.theme.methods.rem(24)};
71  ${i.theme.methods.borderRadius(100)};
72  background-color: ${i.theme.color.birch};
73
74  font-family: 'SF Pro Display', sans-serif;
75  color: ${i.theme.color.paleWhite};
76  ${i.theme.typography.fontSize.fs20};
77  ${i.theme.typography.fontWeight.medium};
78
79  @media (max-width: ${i.theme.breakpoints.laptop}) {
80    ${i.theme.typography.fontSize.fs18};
81  }
82
83  @media (max-width: ${i.theme.breakpoints.tablet}) {
84    padding: ${i.theme.methods.rem(6)} ${i.theme.methods.rem(20)};
85    ${i.theme.typography.fontSize.fs12};
86  }
87`,n=t.default.button.withConfig({componentId:"sc-90bfbb52-3"})`
88  z-index: 2;
89  display: inline-flex;
90  justify-content: center;
91  align-items: center;
92  position: relative;
93  cursor: pointer;
94  overflow: hidden;
95  isolation: isolate;
96  width: fit-content;
97
98  border: none;
99  background-color: transparent;
100  padding: 0;
101
102  flex: 0 0 auto;
103
104  svg {
105    path {
106      fill: ${({$active:e})=>e?i.theme.color.orange:"transparent"};
107      stroke: ${({$active:e})=>e?i.theme.color.orange:i.theme.color.paleGray};
108      transition:
109        stroke 0.2s ease-in-out,
110        fill 0.2s ease-in-out;
111    }
112  }
113
114  @media (max-width: ${i.theme.breakpoints.pc}) {
115    svg {
116      width: ${i.theme.methods.rem(30)};
117      height: ${i.theme.methods.rem(30)};
118    }
119  }
120
121  @media (hover: hover) {
122    &:hover {
123      svg {
124        path {
125          stroke: ${({$active:e})=>e?i.theme.color.paleOrange:i.theme.color.orange};
126          fill: ${({$active:e})=>e?i.theme.color.paleOrange:"transparent"};
127        }
128      }
129    }
130  }
131
132  @media (hover: none) {
133    &:active {
134      svg {
135        path {
136          stroke: ${({$active:e})=>e?i.theme.color.paleOrange:i.theme.color.orange};
137          fill: ${({$active:e})=>e?i.theme.color.paleOrange:"transparent"};
138        }
139      }
140    }
141  }
142`;e.s(["ItemFavoriteProductStyled",0,n,"ItemFavoriteStyled",0,r,"ItemStatusContainerStyled",0,o,"ItemStatusStyled",0,a],10654);var l=e.i(43476);e.s(["FavoriteIconComponent",0,()=>(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M27.8263 5C24.4197 5 21.478 6.995 19.9997 9.905C18.5213 6.995 15.5797 5 12.173 5C7.28967 5 3.33301 9.095 3.33301 14.135C3.33301 19.175 6.36134 23.795 10.2747 27.59C14.188 31.385 19.9997 35 19.9997 35C19.9997 35 25.623 31.445 29.7247 27.59C34.0997 23.48 36.6663 19.19 36.6663 14.135C36.6663 9.08 32.7097 5 27.8263 5Z",strokeLinecap:"round",strokeLinejoin:"round"})})],70764)},36220,58493,e=>{"use strict";var t=e.i(83599),i=e.i(71645),o=e.i(2550),r=e.i(65089);let a=`${r.API_PREFIX}user-favorite`;async function n(e){let t=void 0!==e?{skip:e.skip??0,take:e.take??9}:null;return(await o.ClientRequestService.get(t,a)).data}async function l(e,t){return(await o.ClientRequestService.post({productId:e,genId:t??null},a)).data}async function s(e,t){let i={};t&&(i.genId=t);let r=Object.keys(i).length>0?"?"+new URLSearchParams(i).toString():"";return(await o.ClientRequestService.delete(`${a}/${e}${r}`)).data}e.s(["addToFavorites",0,l,"getFavorites",0,n,"removeFromFavorites",0,s],58493);let d="favorites";e.s(["useFavorites",0,e=>{let{data:i,isLoading:o,error:r,mutate:a}=(0,t.default)(e?[d,e.skip,e.take]:d,async()=>await n(e));return{favorites:i,loading:o,error:r,refetch:a}},"useFavoritesPaginated",0,()=>{let[e,t]=(0,i.useState)([]),[o,r]=(0,i.useState)(0),[a,l]=(0,i.useState)(!1),[s,d]=(0,i.useState)(null),[c,h]=(0,i.useState)(0),[p,m]=(0,i.useState)(0),u=(0,i.useCallback)(async(e,i)=>{l(!0),d(null);try{let o=await n(e),a=e.skip??0,l=e.take??9;i?t(e=>{let t=new Set(e.map(e=>`${e.productId}-${e.generationId}`)),i=o.items.filter(e=>!t.has(`${e.productId}-${e.generationId}`));return[...e,...i]}):t(o.items),r(o.total),h(a+l),i||m(a)}catch(e){d(e instanceof Error?e.message:"Ошибка загрузки избранного"),i||(t([]),r(0))}finally{l(!1)}},[]),g=(0,i.useCallback)(()=>{u({take:e.length>0?e.length:9,skip:e.length>9?0:p},!1)},[p,u,e.length]);return{items:e,total:o,isLoading:a,error:s,fetchFavorites:u,refetch:g,pageSize:9,currentSkip:c}}],36220)},78497,42402,e=>{"use strict";var t=e.i(97053),i=e.i(38478),o=e.i(22016);let r=(0,t.default)(o.default).withConfig({componentId:"sc-be24f764-0"})`
143  display: flex;
144  align-items: center;
145  gap: ${i.theme.methods.rem(6)};
146  z-index: 2;
147
148  meter {
149    position: absolute;
150    width: 1px;
151    height: 1px;
152    margin: -1px;
153    padding: 0;
154    overflow: hidden;
155    clip: rect(0 0 0 0);
156    clip-path: inset(50%);
157    border: 0;
158  }
159
160  span {
161    transition: color 0.2s ease-in-out;
162  }
163
164  @media (hover: hover) {
165    &:hover {
166      span {
167        color: ${i.theme.color.orange};
168      }
169    }
170  }
171
172  @media (hover: none) {
173    &:active {
174      span {
175        color: ${i.theme.color.orange};
176      }
177    }
178  }
179`,a=t.default.span.withConfig({componentId:"sc-be24f764-1"})`
180  ${i.theme.typography.fontSize.fs20};
181
182  @media (max-width: ${i.theme.breakpoints.laptop}) {
183    ${i.theme.typography.fontSize.fs18};
184  }
185
186  @media (max-width: ${i.theme.breakpoints.tablet}) {
187    ${i.theme.typography.fontSize.fs12};
188  }
189`,n=t.default.span.withConfig({componentId:"sc-be24f764-2"})`
190  color: ${i.theme.color.paleGray};
191  ${i.theme.typography.fontSize.fs20};
192
193  @media (max-width: ${i.theme.breakpoints.laptop}) {
194    ${i.theme.typography.fontSize.fs18};
195  }
196
197  @media (max-width: ${i.theme.breakpoints.tablet}) {
198    ${i.theme.typography.fontSize.fs12};
199  }
200`;e.s(["ItemRatingNumberStyled",0,a,"ItemRatingStyled",0,r,"ReviewsStyled",0,n],78497),e.s(["getReviewsWord",0,e=>{let t=e%10,i=e%100;return i>=11&&i<=19?"отзывов":1===t?"отзыв":t>=2&&t<=4?"отзыва":"отзывов"}],42402)},14553,e=>{"use strict";var t=e.i(43476),i=e.i(18566),o=e.i(78497),r=e.i(28966),a=e.i(42402),n=e.i(93427);e.s(["ItemRatingComponent",0,({rating:e,reviews:l,link:s,name:d,productId:c,categoryId:h,brandId:p,modelId:m})=>
200{let u=(0,i.useRouter)(),g=(0,n.roundRatingToTenths)(e??0),f=g.toFixed(1).replace(".",","),x=l>0;return(0,t.jsxs)(o.ItemRatingStyled,{href:c?"#":`${s}#reviews`,onClick:e=>{if(c){e.preventDefault();let t=new URLSearchParams;t.set("productId",c.toString()),h&&t.set("categoryId",h.toString()),p&&t.set("brandId",p.toString()),m&&t.set("modelId",m),u.push(`/reviews?${t.toString()}`)}},...x&&{itemProp:"aggregateRating",itemScope:!0,itemType:"https://schema.org/AggregateRating"},"aria-label":`Рейтинг \xab${d}\xbb: ${f} из 5, ${l} отзывов. Перейти к отзывам товара`,children:[(0,t.jsx)("meter",{value:g,min:0,max:5,optimum:5}),(0,t.jsx)(o.ItemRatingNumberStyled,{"aria-hidden":"true",children:f}),(0,t.jsx)(r.StarIconComponent,{filled:g>0}),(0,t.jsxs)(o.ReviewsStyled,{children:[l," ",(0,a.getReviewsWord)(l)]}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{itemProp:"ratingValue",content:g.toFixed(1)}),(0,t.jsx)("meta",{itemProp:"bestRating",content:"5"}),(0,t.jsx)("meta",{itemProp:"worstRating",content:"0"}),(0,t.jsx)("meta",{itemProp:"reviewCount",content:l.toString()})]})]})}])},37828,59991,e=>{"use strict";var t=e.i(88762);e.s(["CircularProgress",()=>t.default],37828),e.i(47167);var i=e.i(71645),o=e.i(7670),r=e.i(19130),a=e.i(26863),n=e.i(40799),l=e.i(94425),s=e.i(22883),d=e.i(71364),c=e.i(43476);let h=(0,n.styled)(a.default,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),p=i.forwardRef(function(e,t){let a=(0,l.useDefaultProps)({props:e,name:"MuiDialogTitle"}),{className:n,id:p,...m}=a,u=(e=>{let{classes:t}=e;return(0,r.default)({root:["root"]},s.getDialogTitleUtilityClass,t)})(a),{titleId:g=p}=i.useContext(d.default);return(0,c.jsx)(h,{component:"h2",className:(0,o.default)(u.root,n),ownerState:a,ref:t,variant:"h6",id:p??g,...m})});e.s(["DialogTitle",0,p],59991)},80646,13892,4052,8187,e=>{"use strict";e.i(47167);var t=e.i(71645),i=e.i(7670),o=e.i(19130);let r=t.createContext();e.s(["default",0,r],13892);var a=e.i(40799),n=e.i(75149),l=e.i(94425),s=e.i(40672),d=e.i(19727);function c(e){return(0,d.default)("MuiTable",e)}(0,s.default)("MuiTable",["root","stickyHeader"]);var h=e.i(43476);let p=(0,a.styled)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.stickyHeader&&t.stickyHeader]}})((0,n.default)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),m="table",u=t.forwardRef(function(e,a){let n=(0,l.useDefaultProps)({props:e,name:"MuiTable"}),{className:s,component:d=m,padding:u="normal",size:g="medium",stickyHeader:f=!1,...x}=n,y={...n,component:d,padding:u,size:g,stickyHeader:f},b=(e=>{let{classes:t,stickyHeader:i}=e;return(0,o.default)({root:["root",i&&"stickyHeader"]},c,t)})(y),v=t.useMemo(()=>({padding:u,size:g,stickyHeader:f}),[u,g,f]);return(0,h.jsx)(r.Provider,{value:v,children:(0,h.jsx)(p,{as:d,role:d===m?null:"table",ref:a,className:(0,i.default)(b.root,s),ownerState:y,...x})})});e.s(["Table",0,u],80646);let g=t.createContext();function f(e){return(0,d.default)("MuiTableBody",e)}e.s(["default",0,g],4052),(0,s.default)("MuiTableBody",["root"]);let x=(0,a.styled)("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),y={variant:"body"},b="tbody",v=t.forwardRef(function(e,t){let r=(0,l.useDefaultProps)({props:e,name:"MuiTableBody"}),{className:a,component:n=b,...s}=r,d={...r,component:n},c=(e=>{let{classes:t}=e;return(0,o.default)({root:["root"]},f,t)})(d);return(0,h.jsx)(g.Provider,{value:y,children:(0,h.jsx)(x,{className:(0,i.default)(c.root,a),as:n,ref:t,role:n===b?null:"rowgroup",ownerState:d,...s})})});e.s(["TableBody",0,v],8187)},80132,e=>{"use strict";e.i(47167);var t=e.i(71645),i=e.i(7670),o=e.i(19130),r=e.i(42196),a=e.i(13892),n=e.i(4052),l=e.i(40799),s=e.i(75149),d=e.i(94425),c=e.i(40672),h=e.i(19727);function p(e){return(0,h.default)("MuiTableCell",e)}let m=(0,c.default)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var u=e.i(43476);let g=(0,l.styled)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t[i.variant],t[`size${(0,r.default)(i.size)}`],"normal"!==i.padding&&t[`padding${(0,r.default)(i.padding)}`],"inherit"!==i.align&&t[`align${(0,r.default)(i.align)}`],i.stickyHeader&&t.stickyHeader]}})((0,s.default)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
201    ${"light"===e.palette.mode?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${m.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),f=t.forwardRef(function(e,l){let s,c=(0,d.useDefaultProps)({props:e,name:"MuiTableCell"}),{align:h="inherit",className:m,component:f,padding:x,scope:y,size:b,sortDirection:v,variant:w,...$}=c,C=t.useContext(a.default),k=t.useContext(n.default),S=k&&"head"===k.variant,j=y;"td"===(s=f||(S?"th":"td"))?j=void 0:!j&&S&&(j="col");let I=w||k&&k.variant,T={...c,align:h,component:s,padding:x||(C&&C.padding?C.padding:"normal"),size:b||(C&&C.size?C.size:"medium"),sortDirection:v,stickyHeader:"head"===I&&C&&C.stickyHeader,variant:I},P=(e=>{let{classes:t,variant:i,align:a,padding:n,size:l,stickyHeader:s}=e,d={root:["root",i,s&&"stickyHeader","inherit"!==a&&`align${(0,r.default)(a)}`,"normal"!==n&&`padding${(0,r.default)(n)}`,`size${(0,r.default)(l)}`]};return(0,o.default)(d,p,t)})(T),R=null;return v&&(R="asc"===v?"ascending":"descending"),(0,u.jsx)(g,{as:s,ref:l,className:(0,i.default)(P.root,m),"aria-sort":
201R,scope:j,ownerState:T,...$})});e.s(["TableCell",0,f],80132)},97579,e=>{"use strict";e.i(47167);var t=e.i(71645),i=e.i(7670),o=e.i(19130),r=e.i(40799),a=e.i(94425),n=e.i(40672),l=e.i(19727);function s(e){return(0,l.default)("MuiTableContainer",e)}(0,n.default)("MuiTableContainer",["root"]);var d=e.i(43476);let c=(0,r.styled)("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),h=t.forwardRef(function(e,t){let r=(0,a.useDefaultProps)({props:e,name:"MuiTableContainer"}),{className:n,component:l="div",...h}=r,p={...r,component:l},m=(e=>{let{classes:t}=e;return(0,o.default)({root:["root"]},s,t)})(p);return(0,d.jsx)(c,{ref:t,as:l,className:(0,i.default)(m.root,n),ownerState:p,...h})});e.s(["TableContainer",0,h],97579)},55711,e=>{"use strict";e.i(47167);var t=e.i(71645),i=e.i(7670),o=e.i(19130),r=e.i(4052),a=e.i(40799),n=e.i(94425),l=e.i(40672),s=e.i(19727);function d(e){return(0,s.default)("MuiTableHead",e)}(0,l.default)("MuiTableHead",["root"]);var c=e.i(43476);let h=(0,a.styled)("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),p={variant:"head"},m="thead",u=t.forwardRef(function(e,t){let a=(0,n.useDefaultProps)({props:e,name:"MuiTableHead"}),{className:l,component:s=m,...u}=a,g={...a,component:s},f=(e=>{let{classes:t}=e;return(0,o.default)({root:["root"]},d,t)})(g);return(0,c.jsx)(r.default.Provider,{value:p,children:(0,c.jsx)(h,{as:s,className:(0,i.default)(f.root,l),ref:t,role:s===m?null:"rowgroup",ownerState:g,...u})})});e.s(["TableHead",0,u],55711)},52835,e=>{"use strict";e.i(47167);var t=e.i(71645),i=e.i(7670),o=e.i(19130),r=e.i(4052),a=e.i(40799),n=e.i(75149),l=e.i(94425),s=e.i(40672),d=e.i(19727);function c(e){return(0,d.default)("MuiTableRow",e)}let h=(0,s.default)("MuiTableRow",["root","selected","hover","head","footer"]);var p=e.i(43476);let m=(0,a.styled)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.head&&t.head,i.footer&&t.footer]}})((0,n.default)(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),u=t.forwardRef(function(e,a){let n=(0,l.useDefaultProps)({props:e,name:"MuiTableRow"}),{className:s,component:d="tr",hover:h=!1,selected:u=!1,...g}=n,f=t.useContext(r.default),x={...n,component:d,hover:h,selected:u,head:f&&"head"===f.variant,footer:f&&"footer"===f.variant},y=(e=>{let{classes:t,selected:i,hover:r,head:a,footer:n}=e;return(0,o.default)({root:["root",i&&"selected",r&&"hover",a&&"head",n&&"footer"]},c,t)})(x);return(0,p.jsx)(m,{as:d,ref:a,className:(0,i.default)(y.root,s),role:"tr"===d?null:"row",ownerState:x,...g})});e.s(["TableRow",0,u],52835)},31224,e=>{"use strict";var t=e.i(43476);e.s(["CloseIcon",0,()=>(0,t.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})])},76296,65561,e=>{"use strict";var t=e.i(83599),i=e.i(65089),o=e.i(2550);let r=async(e,t=!1)=>{let{take:r,markId:a,modelId:n,generationId:l,genId:s,categoryIds:d,category:c,productIds:h,pgPairs:p}=e,m={};return void 0!==r&&(m.take=r),null!=a&&(m.markId=a),null!=n&&(m.modelId=n),null!=l&&(m.generationId=l),null!=s&&(m.genId=s),null!=d&&(m.categoryIds=d),null!=c&&(m.category=c),null!=h&&(m.productIds=h),null!=p&&p.length>0&&(m.pgPairs=`[${p.join(",")}]`),await o.ClientRequestService.get(m,`${i.API_PREFIX}${o.ClientRequestService.PATH.AUTO_PART}/search`,t)},a=async e=>{let{productId:t,mark:r,model:a,generation:n}=e;return await o.ClientRequestService.get({mark:r,model:a,generation:n},`${i.API_PREFIX}${o.ClientRequestService.PATH.PRODUCT_ID}${t}`)},n=async e=>await o.ClientRequestService.get({},`${i.API_PREFIX}${o.ClientRequestService.PATH.AUTO_PART}/generation/${e}/category/list`),l=async(e,t,r)=>{let a={search:e};return void 0!==t&&(a.take=t),void 0!==r&&(a.skip=r),await o.ClientRequestService.get(a,`${i.API_PREFIX}${o.ClientRequestService.PATH.AUTO_PART}/search`)},s=async e=>await o.ClientRequestService.get({},`${i.API_PREFIX}${o.ClientRequestService.PATH.AUTO_PART}/api/product/${e}`);e.s(["getCategoryListByGenIdReq",0,n,"getProductsFromExternalApiReq",0,s,"searchAutoPartsClientReq",0,r,"searchByTextClientReq",0,l,"searchProductIdReq",0,a],65561);let d="avto_parts";e.s(["useGetProductsFromExternalApi",0,e=>{let{data:i,isLoading:o,error:r}=(0,t.default)(e?["avto-part/api/product/",e]:null,async()=>(await s(e)).data);return{products:i,loading:o,error:r}},"useSearchAutoParts",0,e=>{let i=e?.markId,o=e?.modelId,a=e?.genId,n=e?.categoryIds,l=e?.generationId,s=e?.category,c=e?.productIds,h=e?.take,{data:p,isLoading:m,error:u}=(0,t.default)(e?[d,i,o,l,a,n,s,c,h]:null,async()=>(await r(e)).data);return{parts:p?.items,loading:m,error:u}},"useSearchViewedProducts",0,(e,i)=>{let o=e?.productIds,a=e?.pgPairs,n=i?.skipAuthRetry??!1,{data:l,isLoading:s,error:c}=(0,t.default)(e?[d,"viewed",o,a,n]:null,async()=>(await r(e,n)).data);return{parts:l?.items,loading:s,error:c}}],76296)},1412,e=>{"use strict";e.s(["getPluralForm",0,({count:e,one:t,few:i,many:o})=>{let r=Math.abs(e),a=r%10,n=r%100;return 1===a&&11!==n?t:a>=2&&a<=4&&(n<10||n>=20)?i:o}])},44925,e=>{"use strict";var t=e.i(43476),i=e.i(76552),o=e.i(69120),r=e.i(66796),a=e.i(38478),n=e.i(1985),l=e.i(71645);e.s(["QuantitySelector",0,({onChange:e,initialValue:s=1,maxQuantity:d,sx:c})=>{let[h,p]=(0,l.useState)(s);return(0,l.useEffect)(()=>{p(s)},[s]),(0,t.jsxs)(i.Box,{sx:{width:{xs:"78px",md:"162px"},ml:{xs:"-134px",md:0},padding:{xs:"6px 14px",xl:"22px 24px"},display:"flex",justifyContent:"space-between",alignItems:"center",border:`1px solid ${a.theme.color.paleGray}`,borderRadius:"100px",overflow:"hidden",...c},children:[(0,t.jsx)(o.IconButton,{onClick:()=>
201{if(h>1){let t=h-1;p(t),e(t)}else 1===h&&e(0)},sx:{padding:{xs:"0",md:"auto"},borderRadius:0,borderRight:`1px solid ${a.theme.color.grayLight}`,color:a.theme.color.mainColor,"&:hover":{backgroundColor:"transparent"}},children:(0,t.jsx)(r.Typography,{sx:{...n.textStyles.sfD24r,fontSize:{xs:"16px",md:"24px"}},children:"—"})}),(0,t.jsx)(i.Box,{sx:{minWidth:"40px",padding:{xs:"8px 6px",xl:"16px 8px"},textAlign:"center",borderRight:`1px solid ${a.theme.color.grayLight}`},children:(0,t.jsx)(r.Typography,{sx:{...n.textStyles.sfD20r,fontSize:{xs:"12px",md:"20px"},color:a.theme.color.mainColor},children:h})}),(0,t.jsx)(o.IconButton,{onClick:()=>{if(void 0!==d&&h>=d)return;let t=h+1;p(t),e(t)},disabled:void 0!==d&&h>=d,sx:{padding:{xs:"0",md:"auto"},borderRadius:0,color:a.theme.color.mainColor,"&:hover":{backgroundColor:"transparent"},"&.Mui-disabled":{color:a.theme.color.paleGray,"& .MuiTypography-root":{color:a.theme.color.paleGray}}},children:(0,t.jsx)(r.Typography,{sx:{...n.textStyles.sfD24r,fontSize:{xs:"16px",md:"24px"},fontWeight:"bold",color:"inherit"},children:"+"})})]})}])},6956,59783,e=>{"use strict";var t=e.i(43476),i=e.i(71645),o=e.i(76552),r=e.i(34251),a=e.i(37828),n=e.i(3566),l=e.i(33329),s=e.i(59991),d=e.i(69120),c=e.i(32963),h=e.i(80646),p=e.i(8187),m=e.i(80132),u=e.i(97579),g=e.i(55711),f=e.i(52835),x=e.i(66796),y=e.i(31224),b=e.i(76296),v=e.i(1412),w=e.i(44925),$=e.i(75144);e.s(["ExternalApiProductsDialog",0,({open:e,onClose:C,productId:k,productGenId:S,onAddToCart:j})=>{let{getProductQuantity:I}=(0,$.useCartContext)(),{products:T,loading:P}=(0,b.useGetProductsFromExternalApi)(e&&k?k:null),[R,F]=(0,i.useState)({}),z=T&&T.length>0?`Все цены: ${T[0].article} ${T[0].brand} - ${T[0].name}`:"Все цены";return(0,t.jsxs)(n.Dialog,{open:e,onClose:C,maxWidth:"md",fullWidth:!0,slotProps:{paper:{sx:{borderRadius:"12px"}}},children:[(0,t.jsxs)(s.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:"8px"},children:[(0,t.jsx)(x.Typography,{variant:"h6",component:"span",children:z}),(0,t.jsx)(d.IconButton,{onClick:C,sx:{color:"grey.500","&:hover":{backgroundColor:"action.hover"}},size:"small",children:(0,t.jsx)(y.CloseIcon,{})})]}),(0,t.jsx)(l.DialogContent,{dividers:!0,sx:{padding:0},children:P?(0,t.jsx)(o.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px"},children:(0,t.jsx)(a.CircularProgress,{})}):T&&T.length>0?(0,t.jsx)(u.TableContainer,{component:c.Paper,elevation:0,children:(0,t.jsxs)(h.Table,{sx:{minWidth:600,"& .MuiTableCell-head":{backgroundColor:"#f5f5f5",fontWeight:600,fontSize:"0.875rem"},"& .MuiTableRow-root:hover":{backgroundColor:"action.hover"}},children:[(0,t.jsx)(g.TableHead,{children:(0,t.jsxs)(f.TableRow,{children:[(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px",width:"12%"},children:"Количество"}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px",width:"18%",lineHeight:1.2},children:"Срок поставки"}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px",width:"15%"},children:"Вероятность"}),(0,t.jsx)(m.TableCell,{align:"right",sx:{padding:"12px 8px",width:"15%"},children:"Цена"}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px",width:"25%"}}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px",width:"15%"},children:"Действие"})]})}),(0,t.jsx)(p.TableBody,{children:T.map(e=>{let i=(null!=k?I(k,S??null,e.id):0)>=e.stock;return(0,t.jsxs)(f.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px"},children:(0,t.jsx)(x.Typography,{variant:"body2",children:e.stock})}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px"},children:(0,t.jsxs)(x.Typography,{variant:"body2",children:[e.deliveryMin," ",(0,v.getPluralForm)({count:e.deliveryMin,one:"день",few:"дня",many:"дней"})]})}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px"},children:(0,t.jsxs)(x.Typography,{variant:"body2",sx:{color:100===e.percent?"#4caf50":"#ff9800"},children:[e.percent,"%"]})}),(0,t.jsx)(m.TableCell,{align:"right",sx:{padding:"12px 8px"},children:(0,t.jsxs)(x.Typography,{variant:"body2",sx:{fontWeight:600},children:[e.price.toFixed(2)," BYN"]})}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px"},children:(0,t.jsx)(w.QuantitySelector,{initialValue:R[e.id]||1,maxQuantity:e.stock,onChange:t=>{var i;return i=e.id,void F(e=>({...e,[i]:t}))},sx:{ml:"auto",mr:"auto",width:"80px",maxHeight:"28px",borderRadius:"4px"}})}),(0,t.jsx)(m.TableCell,{align:"center",sx:{padding:"12px 8px"},children:(0,t.jsx)(r.Button,{variant:"contained",size:"small",disabled:i,onClick:()=>{k&&j&&!i&&j(k,R[e.id]||1,e.id,{price:e.price,stock:e.stock,deliveryMin:e.deliveryMin,percent:e.percent})},sx:{backgroundColor:"#ff9800",color:"#fff",textTransform:"none",fontSize:"0.75rem",padding:"4px 12px","&:hover":{backgroundColor:"#f57c00"}},children:"Купить"})})]},e.id)})})]})}):(0,t.jsx)(o.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px"},children:(0,t.jsxs)(x.Typography,{textAlign:"center",children:["По вашему запросу нет доступных товаров.",(0,t.jsx)("br",{})," Оставьте заявку в форме обратной связи на сайте."]})})})]})}],59783),e.s([],6956)},97060,50926,e=>{"use strict";var t=e.i(43476);e.s(["ItemCartIconComponent",0,()=>(0,t.jsxs)("svg",{"aria-hidden":"true",focusable:"false",width:"37",height:"36",viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M6 5.95238H36L32.25 22.0476H9.75M32.25 27H11L4.75 1H1",stroke:"#FAFAFA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M29.5 35C30.8807 35 32 33.8807 32 32.5C32 31.1193 30.8807 30 29.5 30C28.1193 30 27 31.1193 27 32.5C27 33.8807 28.1193 35 29.5 35Z",stroke:"#FAFAFA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M13.5 35C14.8807 35 16 33.8807 16 32.5C16 31.1193 14.8807 30 13.5 30C12.1193 30 11 31.1193 11 32.5C11 33.8807 12.1193 35 13.5 35Z",stroke:"#FAFAFA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})],97060),e.s(["getProductPriceDisplayState",0,function(e,t){let i=Number(e??0);if(i>0)return{mode:"price",price:i};if(t){let e=Number(t.minPrice??0);return 0===e?{mode:"unavailable",buttonText:"Оставить заявку"}:{mode:"externalMinPrice",minPrice:e,totalStock:t.totalStock,deliveryTerm:t.deliveryTerm,updated:t.updated,buttonText:"Показать все цены"}}return{mode:"unknown",buttonText:"Узнать цену"}}],50926)},94516,e=>{"use strict";var t=e.i(43476),i=e.i(97053),o=e.i(38478),r=e.i(22016);let a=i.default.article.withConfig({componentId:"sc-bd24d9c4-0"})`
202  position: relative;
203  width: 100%;
204  max-width: ${o.theme.methods.rem(324)};
205  gap: ${o.theme.methods.rem(30)};
206  display: flex;
207  overflow: hidden;
208  flex-direction: column;
209  box-sizing: border-box;
210  background-color: ${o.theme.color.white};
211
212  @media (max-width: ${o.theme.breakpoints.laptop}) {
213    max-width: ${o.theme.methods.rem(335)};
214    gap: ${o.theme.methods.rem(20)};
215  }
216
217  @media (min-width: ${o.theme.methods.em(768)}) and (max-width: ${o.theme.methods.em(784)}) {
218    gap: ${o.theme.methods.rem(10)};
219  }
220
221  @media (max-width: ${o.theme.breakpoints.tablet}) {
222    max-width: ${o.theme.methods.rem(220)};
223    gap: ${o.theme.methods.rem(12)};
224  }
225
226  @media (max-width: ${o.theme.breakpoints.mobile}) {
227    max-width: ${o.theme.methods.rem(168)};
228    gap: ${o.theme.methods.rem(10)};
229  }
230`,n=(0,i.default)(r.default).withConfig({componentId:"sc-bd24d9c4-1"})`
231  position: absolute;
232  inset: 0;
233  z-index: 1;
234  text-decoration: none;
235`,l=i.default.div.withConfig({componentId:"sc-bd24d9c4-2"})`
236  display: flex;
237  flex-direction: column;
238  flex: 1;
239  align-self: stretch;
240  min-height: 0;
241  gap: ${o.theme.methods.rem(16)};
242
243  @media (max-width: ${o.theme.breakpoints.laptop}) {
244    gap: ${o.theme.methods.rem(10)};
245  }
246
247  @media (min-width: ${o.theme.methods.em(768)}) and (max-width: ${o.theme.methods.em(784)}) {
248    gap: ${o.theme.methods.rem(6)};
249  }
250`,s=i.default.h3.withConfig({componentId:"sc-bd24d9c4-3"})`
251  font-family: 'SF Pro Display', sans-serif;
252  ${o.theme.typography.fontSize.fs28};
253  ${o.theme.typography.fontWeight.medium};
254  line-height: normal;
255
256  height: calc(4lh);
257
258  @supports not (height: 1lh) {
259    --lh-fallback: 1.2;
260    line-height: var(--lh-fallback);
261    height: calc(4 * var(--lh-fallback) * 1em);
262  }
263
264  @media (max-width: ${o.theme.breakpoints.pc}) {
265    ${o.theme.typography.fontSize.fs22};
266  }
267
268  @media (max-width: ${o.theme.breakpoints.laptop}) {
269    height: calc(3lh);
270
271    @supports not (height: 1lh) {
272      height: calc(3 * var(--lh-fallback) * 1em);
273    }
274  }
275
276  @media (min-width: ${o.theme.methods.em(768)}) and (max-width: ${o.theme.methods.em(784)}) {
277    ${o.theme.typography.fontSize.fs20};
278    height: calc(3lh);
279
280    @supports not (height: 1lh) {
281      height: calc(3 * var(--lh-fallback) * 1em);
282    }
283
284    -webkit-line-clamp: 3;
285  }
286
287  @media (max-width: ${o.theme.breakpoints.tablet}) {
288    ${o.theme.typography.fontSize.fs16};
289  }
290
291  overflow: hidden;
292  display: -webkit-box;
293  -webkit-line-clamp: 4;
294
295  @media (max-width: ${o.theme.breakpoints.laptop}) {
296    -webkit-line-clamp: 3;
297  }
298  -webkit-box-orient: vertical;
299  text-overflow: ellipsis;
300`,d=i.default.div.withConfig({componentId:"sc-bd24d9c4-4"})`
301  display: flex;
302  align-items: center;
303  justify-content: space-between;
304  gap: ${o.theme.methods.rem(16)};
305`,c=i.default.div.withConfig({componentId:"sc-bd24d9c4-5"})`
306  position: relative;
307  z-index: 2;
308  width: fit-content;
309  display: flex;
310  align-items: center;
311  gap: ${o.theme.methods.rem(8)};
312  background-color: ${o.theme.color.lightGray};
313  ${o.theme.methods.borderRadius(8)};
314  padding: ${o.theme.methods.rem(4)} ${o.theme.methods.rem(8)};
315`,h=i.default.button.withConfig({componentId:"sc-bd24d9c4-6"})`
316  position: relative;
317  z-index: 2;
318  display: flex;
319  align-items: center;
320  justify-content: center;
321  width: ${o.theme.methods.rem(28)};
322  height: ${o.theme.methods.rem(28)};
323  background-color: ${o.theme.color.orange};
324  color: ${o.theme.color.white};
325  border: none;
326  ${o.theme.methods.borderRadius(4)};
327  ${o.theme.typography.fontSize.fs20};
328  ${o.theme.typography.fontWeight.semiBold};
329  cursor: pointer;
330  transition: background-color 0.2s ease;
331
332  &:hover {
333    background-color: ${o.theme.color.activeOrange};
334  }
335
336  &:disabled {
337    background-color: ${o.theme.color.paleGray};
338    cursor: not-allowed;
339  }
340`,p=i.default.span.withConfig({componentId:"sc-bd24d9c4-7"})`
341  ${o.theme.typography.fontSize.fs18};
342  ${o.theme.typography.fontWeight.medium};
343  color: ${o.theme.color.mainColor};
344  min-width: ${o.theme.methods.rem(24)};
345  text-align: center;
346`;var m=e.i(90027),u=e.i(97060),g=e.i(71645),f=e.i(10654),x=e.i(70764),y=e.i(58493),b=e.i(98348),v=e.i(36220);let w=({productId:e,genId:i,isNew:o,isHit:r,initialIsFavorite:a=!1,onFavoriteChange:n,onFavoriteNotification:l})=>{let[s,d]=(0,g.useState)(a),{isAuthenticated:c}=(0,b.useAuth)(),{favorites:h,loading:p,refetch:m}=(0,v.useFavorites)();(0,g.useEffect)(()=>{if(!p&&h&&c){let t=h.items.some(t=>t.productId===e&&t.generationId===i);t!==s&&(d(t),n?.(t))}else!c&&s&&(d(!1),n?.(!1))},[h,p,e,c]);let u=async()=>{if(!c)return void l?.("Избранное доступно только авторизованным пользователям","info");try{s?(await (0,y.removeFromFavorites)(e,i),d(!1),l?.("Товар удален из избранного","success"),n?.(!1)):(await (0,y.addToFavorites)(e,i),d(!0),l?.("Товар добавлен в избранное","success"),n?.(!0)),m()}catch(i){let e=i?.response?.status||i?.response?.data?.statusCode;if(409===e){d(!0),n?.(!0),m();return}if(404===e&&s){d(!1),n?.(!1),m();return}let t=i?.response?.data?.message||"Произошла ошибка при работе с избранным";l?.(t,"error")}},w=r?"Хит":o?"Новинка":null;return(0,t.jsxs)(f.ItemStatusContainerStyled,{children:[(0,t.jsx)(f.ItemFavoriteStyled,{type:"button","aria-label":s?"Убрать из избранного":"Добавить в избранное","aria-pressed":s,onClick:u,$active:s,children:(0,t.jsx)(x.FavoriteIconComponent,{})}),w&&(0,t.jsx)(f.ItemStatusStyled,{children:w})]})},$=i.default.figure.withConfig({componentId:"sc-99822d76-0"})`
347  position: relative;
348  width: ${o.theme.methods.rem(335)};
349  height: ${o.theme.methods.rem(115)};
350  flex-shrink: 0;
351  margin: 0 auto;
352  align-self: center;
353
354  figcaption {
355    position: absolute;
356    width: 1px;
357    height: 1px;
358    margin: -1px;
359    padding: 0;
360    overflow: hidden;
361    clip: rect(0 0 0 0);
362    clip-path: inset(50%);
363    white-space: nowrap;
364    border: 0;
365  }
366
367  @media (min-width: ${o.theme.breakpoints.tablet}) and (max-width: ${o.theme.breakpoints.laptop}) {
368    width: ${o.theme.methods.rem(130)};
369    height: ${o.theme.methods.rem(95)};
370  }
371  @media (max-width: ${o.theme.breakpoints.tablet}) {
372    width: ${o.theme.methods.rem(95)};
373    height: ${o.theme.methods.rem(69)};
374  }
375`;var C=e.i(77701);let k=({src:e,alt:i,name:r})=>(0,t.jsxs)($,{children:[(0,t.jsx)(C.ImageWithFallback,{src:e,alt:i,fill:!0,sizes:`${o.theme.methods.rem(335)}`,style:{objectFit:"contain"},itemProp:"image"}),(0,t.jsx)("figcaption",{itemProp:"name",children:r})]});var S=e.i(14553);let j=i.default.div.withConfig({componentId:"sc-cb3eb8bd-0"})`
376  display: flex;
377  flex-direction: column;
378  gap: ${o.theme.methods.rem(10)};
379  min-width: 0;
380  flex: 1 1 auto;
381`,I=i.default.data.withConfig({componentId:"sc-cb3eb8bd-1"})`
382  font-family: 'SF Pro Display', sans-serif;
383  color: ${o.theme.color.paleGray};
384  ${o.theme.typography.fontSize.fs20};
385
386  @media (max-width: ${o.theme.breakpoints.laptop}) {
387    ${o.theme.typography.fontSize.fs18};
388  }
389
390  @media (max-width: ${o.theme.breakpoints.tablet}) {
391    ${o.theme.typography.fontSize.fs12};
392  }
393`,T=i.default.div.withConfig({componentId:"sc-cb3eb8bd-2"})`
394  display: flex;
395  flex-direction: column;
396  align-items: flex-start;
397  gap: ${o.theme.methods.rem(4)};
398  min-width: 0;
399`;i.default.data.withConfig({componentId:"sc-cb3eb8bd-3"})`
400  font-family: 'SF Pro Display', sans-serif;
401  font-size: clamp(${o.theme.methods.rem(20)}, 4vw, ${o.theme.methods.rem(26)});
402  ${o.theme.typography.fontWeight.bold};
403  overflow: hidden;
404  text-overflow: ellipsis;
405  white-space: nowrap;
406
407  @media (max-width: ${o.theme.breakpoints.laptop}) {
408    ${o.theme.typography.fontSize.fs26};
409  }
410
411  @media (max-width: ${o.theme.breakpoints.tablet}) {
412    ${o.theme.typography.fontSize.fs20};
413  }
414`;let P=i.default.data.withConfig({componentId:"sc-cb3eb8bd-4"})`
415  font-family: 'SF Pro Display', sans-serif;
416  font-size: clamp(${o.theme.methods.rem(16)}, 4vw, ${o.theme.methods.rem(22)});
417  ${o.theme.typography.fontWeight.medium};
418  overflow: hidden;
419  text-overflow: ellipsis;
420  white-space: nowrap;
421`;i.default.span.withConfig({componentId:"sc-cb3eb8bd-5"})`
422  font-family: 'SF Pro Display', sans-serif;
423  text-decoration-line: line-through;
424  color: ${o.theme.color.paleGray};
425  ${o.theme.typography.fontSize.fs18};
426
427  @media (max-width: ${o.theme.breakpoints.laptop}) {
428    ${o.theme.typography.fontSize.fs16};
429  }
430
431  @media (max-width: ${o.theme.breakpoints.tablet}) {
432    ${o.theme.typography.fontSize.fs12};
433  }
434`;let R=i.default.button.withConfig({componentId:"sc-cb3eb8bd-6"})`
435  position: relative;
436  z-index: 2;
437  display: inline-flex;
438  justify-content: center;
439  align-items: center;
440  width: 100%;
441  padding: ${o.theme.methods.rem(22)} ${o.theme.methods.rem(44)};
442  margin-top: ${o.theme.methods.rem(50)};
443  border: none;
444  border-radius: ${o.theme.methods.rem(100)};
445  background-color: ${o.theme.color.lightBlue};
446  color: ${o.theme.color.mainColor};
447  cursor: pointer;
448  font-family: 'SF Pro Display', sans-serif;
449  ${o.theme.typography.fontSize.fs20};
450  ${o.theme.typography.fontWeight.medium};
451  text-align: center;
452  transition: background-color 0.2s ease-in-out;
453
454  @media (max-width: ${o.theme.breakpoints.laptop}) {
455    ${o.theme.typography.fontSize.fs18};
456  }
457
458  @media (max-width: ${o.theme.breakpoints.tablet}) {
459    ${o.theme.typography.fontSize.fs12};
460    padding: ${o.theme.methods.rem(14)} ${o.theme.methods.rem(24)};
461    margin-top: ${o.theme.methods.rem(30)};
462  }
463
464  @media (hover: hover) {
465    &:hover {
466      background-color: #b3e4fa;
467    }
468  }
469
470  @media (hover: none) {
471    &:active {
472      background-color: #b3e4fa;
473    }
474  }
475`;var F=e.i(74330);let z=({quantity:e,price:i,oldPrice:r,isInCart:a,cartQuantity:n,onIncrement:l,onDecrement:s,maxQuantity:d})=>{let m=a&&n&&n>0;return(0,t.jsxs)(j,{itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,t.jsxs)(I,{value:e,itemProp:"inventoryLevel",children:["В наличии: ",e," шт"]}),m&&l&&s?(0,t.jsxs)(c,{children:[(0,t.jsx)(h,{type:"button","aria-label":"Уменьшить количество",onClick:s,children:"−"}),"x",(0,t.jsx)(p,{children:n}),(0,t.jsx)(h,{type:"button","aria-label":"Увеличить количество",onClick:l,disabled:void 0!==d&&void 0!==n&&n>=d,children:"+"})]}):null,(0,t.jsxs)(T,{children:[r&&i&&r>i?(0,t.jsx)(F.PriceFormatter,{"aria-hidden":"true",value:r,sx:{fontFamily:"SF Pro Display, sans-serif",fontSize:{xs:"12px",md:"16px",lg:"18px"},fontWeight:400,textDecoration:"line-through",color:o.theme.color.paleGray}}):null,(0,t.jsx)(F.PriceFormatter,{value:i||0,schemaPrice:i||0,sx:{fontFamily:"SF Pro Display, sans-serif",fontSize:{xs:"20px",md:"26px"},fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),(0,t.jsx)("meta",{itemProp:"priceCurrency",content:"BYN"})]})]})};var A=e.i(76552);e.i(6956);var M=e.i(59783),D=e.i(50926),H=e.i(80321),B=e.i(26089),N=e.i(95038);let W=(0,g.memo)(function(e){let{src:i,alt:r,name:c,productFullName:h,rating:p,reviews:f,quantity:x,price:y,oldPrice:b,link:v,isNew:$,isHit:C,isSmall:j=!1,product:I,genId:T,externalApiSummary:W,onAddToCart:L,onAddExternalToCart:O,isInCart:q=!1,cartQuantity:G=0,onUpdateQuantity:E,isFavorite:U=!1,onFavoriteChange:_,onFavoriteNotification:Q}=e,X=(0,D.getProductPriceDisplayState)(y,W),V="price"===X.mode,K=(x??0)>0,[Z,Y]=(0,g.useState)(!1),[J,ee]=(0,g.useState)(!1),et=(0,g.useCallback)((e,t,i,o)=>{O&&O(e,t,T??null,i,o)},[O,T]),ei=(0,g.useCallback)(()=>{I&&L&&K&&L(I)},[I,L,K]),eo=(0,g.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),I&&E&&x&&G<x&&E(I.id,G+1,T)},[I,E,G,x,T]),er=(0,g.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),I&&E&&G>0&&E(I.id,G-1,T)},[I,E,G,T]),ea=(0,g.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),"unavailable"===X.mode?ee(!0):Y(!0)},[X.mode]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a,{itemScope:!0,itemType:"https://schema.org/Product",$isSmall:j,children:[(0,t.jsx)(n,{href:v,"aria-label":`${c} — перейти`,itemProp:"url",title:c}),(0,t.jsx)(w,{productId:I?.id||0,genId:T,initialIsFavorite:U,onFavoriteChange:_,onFavoriteNotification:Q,isNew:$,isHit:C}),(0,t.jsx)(k,{src:i,alt:r,name:c}
475),(0,t.jsxs)(l,{children:[(0,t.jsx)(s,{itemProp:"name",children:h||c}),(0,t.jsx)(S.ItemRatingComponent,{rating:p,reviews:f,link:v,name:c}),V?(0,t.jsxs)(d,{children:[(0,t.jsx)(z,{quantity:x,price:y,oldPrice:b,isInCart:q,cartQuantity:G,onIncrement:eo,onDecrement:er,maxQuantity:x}),q&&0!==G?null:(0,t.jsx)(m.CartButtonStyled,{type:"button","aria-label":"Добавить товар в корзину",onClick:ei,disabled:!K,style:{opacity:K?1:.5,cursor:K?"pointer":"not-allowed"},children:(0,t.jsx)(u.ItemCartIconComponent,{})})]}):"externalMinPrice"===X.mode?(0,t.jsxs)(A.Box,{sx:{display:"flex",flexDirection:"column",flex:1,alignItems:"stretch",gap:o.theme.methods.rem(16),minWidth:0},children:[(0,t.jsxs)(A.Box,{component:"div",sx:{display:"flex",flexDirection:"column",gap:.5},children:[(0,t.jsxs)(A.Box,{component:"span",sx:{display:"flex",alignItems:"baseline",gap:.5},children:[(0,t.jsx)("span",{children:"от"}),(0,t.jsx)(F.PriceFormatter,{value:X.minPrice,sx:{fontWeight:700}})]}),null!=X.totalStock&&X.totalStock>0&&(0,t.jsxs)(A.Box,{component:"span",sx:{fontSize:"12px",color:o.theme.color.paleGray},children:["В наличии ",X.totalStock," шт."]}),X.deliveryTerm&&(0,t.jsxs)(A.Box,{component:"span",sx:{fontSize:"12px",color:o.theme.color.paleGray},children:["Срок доставки: ",X.deliveryTerm]}),X.updated&&(0,t.jsxs)(A.Box,{component:"span",sx:{fontSize:"12px",color:o.theme.color.paleGray},children:["Обновлено ",(0,N.formatDate)(X.updated)]})]}),I?.id&&O&&(0,t.jsx)(R,{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),Y(!0)},style:{marginTop:"auto"},children:X.buttonText})]}):"unavailable"===X.mode?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P,{children:"Цена недоступна"}),(0,t.jsx)(R,{type:"button",onClick:ea,children:X.buttonText})]}):"unknown"===X.mode&&I?.id&&O?(0,t.jsx)(R,{type:"button",onClick:ea,children:X.buttonText}):(0,t.jsx)("div",{style:{marginTop:"50px"},children:(0,t.jsx)(P,{children:"Цена по запросу"})})]})]}),I?.id&&O&&(0,t.jsx)(M.ExternalApiProductsDialog,{open:Z,onClose:()=>Y(!1),productId:I.id,productGenId:T,onAddToCart:et}),"unavailable"===X.mode&&(0,t.jsx)(H.Popup,{isOpen:J,onCloseAction:()=>ee(!1),$padding:`${o.theme.methods.rem(30)} ${o.theme.methods.rem(70)}`,childrenAction:e=>(0,t.jsx)(B.WriteUsPopupComponent,{handleClose:()=>{e(),ee(!1)}})})]})},(e,t)=>e.link===t.link&&e.price===t.price&&e.oldPrice===t.oldPrice&&e.quantity===t.quantity&&e.rating===t.rating&&e.reviews===t.reviews&&e.name===t.name&&e.productFullName===t.productFullName&&e.genId===t.genId&&e.src===t.src&&e.isSmall===t.isSmall&&e.priceValidityDate===t.priceValidityDate&&e.isInCart===t.isInCart&&e.cartQuantity===t.cartQuantity&&e.isFavorite===t.isFavorite&&e.onFavoriteChange===t.onFavoriteChange&&e.onFavoriteNotification===t.onFavoriteNotification&&e.isHit===t.isHit&&e.isNew===t.isNew&&e.onAddExternalToCart===t.onAddExternalToCart&&e.product?.id===t.product?.id&&e.externalApiSummary===t.externalApiSummary);e.s(["ItemComponent",0,W],94516)},18961,e=>{"use strict";var t=e.i(71645);e.s(["useCartNotification",0,()=>{let[e,i]=(0,t.useState)(!1),[o,r]=(0,t.useState)(""),[a,n]=(0,t.useState)(0);return{showSuccessMessage:e,addedProductName:o,notificationKey:a,triggerNotification:(0,t.useCallback)(e=>{r(e.length>50?e.substring(0,50)+"...":e),n(e=>e+1),i(!1),setTimeout(()=>i(!0),10)},[]),closeNotification:(0,t.useCallback)(()=>{i(!1)},[])}}])}]);

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.