PageSourceSearch

https://protekauto.ru/_next/static/chunks/pages/best-price-06d3f242474b5d3f.js

js protekauto.ru collected 2026-10-07 18:13:02 UTC 27,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3802],{1871:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/best-price",function(){return i(5718)}])},2552:()=>{},4208:(e,t,i)=>{"use strict";e.exports=i(7643).style},5718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var r=i(7876),s=i(4232),n=i(4431),o=i(2166),l=i(6832),c=i(6610),a=i(8679),d=i(3269),u=i(7027),h=i(5455),p=i(159),f=i(7301),m=i(5552),x=i(6279),g=i(2711),y=i(7685);let b=e=>e||0===e?`${e.toLocaleString("ru-RU")} ₽`:"По запросу",v=e=>{let t=e.images?.[0]?.url;return t&&!(e=>{if(!e)return!0;let t=e.toLowerCase();return t.includes("image-10")||t.includes("162615")||t.includes("noimage")||t.includes("placeholder")||t.includes("mock")})(t)?t:"/images/no-photo.svg"},j=(e,t)=>e&&t?e*(1-t/100):e??null,w=[{key:"popular",label:"По популярности"},{key:"price_asc",label:"Сначала дешевле"},{key:"price_desc",label:"Сначала дороже"},{key:"discount",label:"По размеру скидки"}];function S(){let e=(0,s.useMemo)(()=>(0,x.K0)("/best-price"),[]),[t,i]=(0,s.useState)(0),[S,_]=(0,s.useState)({}),[C,N]=(0,s.useState)(""),{addItem:k,isInCart:F}=(0,g._)(),P=w[t].key,{data:I,loading:A,previousData:R,error:z}=(0,n.IT)(m.vP,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"});z&&console.error("Ошибка загрузки товаров с лучшими ценами:",z),I?.bestPriceProducts&&console.log("Загружено товаров:",I.bestPriceProducts.length,I.bestPriceProducts);let L=(I?.bestPriceProducts??R?.bestPriceProducts??[]).filter(e=>e.isActive),M=(0,s.useMemo)(()=>{let e=[...L];if(e=e.filter(e=>{let t=!!(e.product.retailPrice??e.product.wholesalePrice),i=(e.product.stock??0)>0,r=!!e.product.firstExternalOffer;return t&&i||r}),C.trim()){let t=C.toLowerCase();e=e.filter(e=>e.product.name?.toLowerCase().includes(t)||e.product.brand?.toLowerCase().includes(t)||e.product.article?.toLowerCase().includes(t))}if(S["Цена"]&&Array.isArray(S["Цена"])){let[t,i]=S["Цена"];e=e.filter(e=>{let r=e.product.retailPrice??e.product.wholesalePrice??0,s=j(r,e.discount)??r;return s>=t&&s<=i})}return S["Производитель"]&&S["Производитель"].length>0&&(e=e.filter(e=>S["Производитель"].includes(e.product.brand))),"price_asc"===P?e.sort((e,t)=>(j(e.product.retailPrice??e.product.wholesalePrice,e.discount)??0)-(j(t.product.retailPrice??t.product.wholesalePrice,t.discount)??0)):"price_desc"===P?e.sort((e,t)=>{let i=j(e.product.retailPrice??e.product.wholesalePrice,e.discount)??0;return(j(t.product.retailPrice??t.product.wholesalePrice,t.discount)??0)-i}):"discount"===P?e.sort((e,t)=>(t.discount??0)-(e.discount??0)):e.sort((e,t)=>e.sortOrder-t.sortOrder),e},[L,S,P,C]),T=(0,s.useMemo)(()=>{let e=new Set,t=1/0,i=0;L.forEach(r=>{r.product.brand&&e.add(r.product.brand);let s=r.product.retailPrice??r.product.wholesalePrice??0,n=j(s,r.discount)??s;n>0&&(n<t&&(t=n),n>i&&(i=n))});let r=[];return e.size>0&&r.push({type:"dropdown",title:"Производитель",options:Array.from(e).sort(),multi:!0,showAll:!0,defaultOpen:!0}),t!==1/0&&i>0&&r.push({type:"range",title:"Цена",min:Math.floor(t),max:Math.ceil(i)}),r},[L]),E=A&&!R;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{title:e.title,description:e.description,keywords:e.keywords,ogTitle:e.ogTitle,ogDescription:e.ogDescription}),(0,r.jsx)(l.A,{title:"Лучшие цены",breadcrumbs:[{label:"Главная",href:"/"},{label:"Лучшие цены"}],count:M.length}),(0,r.jsx)("section",{className:"main",children:(0,r.jsx)("div",{className:"w-layout-blockcontainer container w-container",children:(0,r.jsxs)("div",{className:"flex gap-6 items-start",children:[T.length>0&&(0,r.jsx)("div",{className:"w-[280px] flex-shrink-0 relative z-10",children:(0,r.jsx)(h.A,{filters:T,onFilterChange:(e,t)=>
1{_(i=>({...i,[e]:t}))},filterValues:S,searchQuery:C,onSearchChange:N,isLoading:E})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("div",{className:"mb-10",children:(0,r.jsx)(u.A,{active:t,onChange:i,options:w.map(e=>e.label)})}),(0,r.jsx)("div",{className:"grid gap-6 grid-cols-[repeat(auto-fill,minmax(200px,1fr))] mb-8",children:E?(0,r.jsx)("div",{className:"col-span-full",children:(0,r.jsx)(a.A,{text:"Загружаем лучшие цены",size:"large"})}):M.length?M.map(e=>{let t=e.product.retailPrice??e.product.wholesalePrice??null,i=null!=t,s=(e.product.stock??0)>0,n=e.product.firstExternalOffer,o=(!i||!s)&&n,l=t,a=s,d=e.product.article,u=e.product.brand||"Неизвестный бренд";o&&(l=n.price,a=n.quantity>0,d=n.code,u=n.brand);let h=j(l,e.discount),p=!!e.discount&&e.discount>0&&null!=l;return(0,r.jsx)(c.A,{image:v(e.product),discount:p?`-${e.discount}%`:"",price:b(p?h:l),oldPrice:p?b(l):"",title:e.product.name,brand:u,articleNumber:d,brandName:u,artId:e.product.id,productId:e.product.id,onAddToCart:a?t=>{t.preventDefault(),t.stopPropagation();try{let t=e.product.retailPrice??e.product.wholesalePrice??null,i=null!=t,r=(e.product.stock??0)>0,s=e.product.firstExternalOffer,n=(!i||!r)&&s,o=e.product.article,l=e.product.brand,c=t??0;if(n&&(o=s.code,l=s.brand,c=s.price),!o||!l)return void y.Ay.error("Недостаточно данных для добавления товара в корзину");let a=j(c,e.discount)??c;k({productId:n?void 0:e.product.id,offerKey:n?s.offerKey:void 0,name:e.product.name,brand:l,article:o,description:e.product.name,price:a,quantity:1,currency:"RUB",image:v(e.product),stock:n?s.quantity:e.product.stock,supplier:n?s.supplier:void 0,deliveryTime:n?String(s.deliveryTime):void 0,isExternal:!!n}),y.Ay.success("Товар добавлен в корзину")}catch(e){console.error("Ошибка добавления в корзину:",e),y.Ay.error("Ошибка добавления товара в корзину")}}:void 0,outOfStock:!a},e.id)}):(0,r.jsxs)("div",{className:"col-span-full py-20 px-10 text-center flex flex-col items-center gap-6",children:[(0,r.jsx)("div",{className:"w-[120px] h-[120px] rounded-full bg-gradient-to-br from-red-50 to-red-100 flex items-center justify-center",children:(0,r.jsx)("svg",{width:"60",height:"60",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"#DC1C24"})})}),(0,r.jsxs)("div",{className:"max-w-[480px]",children:[(0,r.jsx)("h2",{className:"font-onest font-bold text-2xl leading-[130%] text-[#000814] mb-3",children:S["Производитель"]?.length>0||C.trim()?"По заданным фильтрам ничего не найдено":"Скоро здесь появятся товары с лучшими ценами"}),(0,r.jsx)("p",{className:"font-onest font-normal text-base leading-[140%] text-slate-500",children:S["Производитель"]?.length>0||C.trim()?"Попробуйте изменить параметры фильтрации или поиска, чтобы найти нужные товары":"Мы активно работаем над пополнением ассортимента. Следите за обновлениями!"})]}),(S["Производитель"]?.length>0||C.trim())&&(0,r.jsx)("button",{type:"button",onClick:()=>{_({}),N("")},className:"mt-2 px-6 py-3 bg-[#DC1C24] hover:bg-[#C01820] rounded-lg border-none font-onest font-semibold text-base text-white cursor-pointer transition-colors duration-200",children:"Сбросить фильтры"})]})})]})]})})}),(0,r.jsx)("section",{className:"section-3",children:(0,r.jsx)(d.A,{})}),(0,r.jsx)(p.A,{}),(0,r.jsx)(f.A,{})]})}},6610:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var r=i(7876),s=i(4232),n=i(1588),o=i(4604);let l=({image:e,discount:t,price:i,oldPrice:l,title:c,brand:a,articleNumber:d,brandName:u,artId:h,productId:p,offerKey:f,currency:m="RUB",priceElement:x,onAddToCart:g,isInCart:y=!1,outOfStock:b=!1,pageUrl:v})=>{let{addToFavorites:j,removeFromFavorites:w,isFavorite:S,favorites:_}
1=(0,n.r)(),[C,N]=(0,s.useState)(!1),[k,F]=(0,s.useState)(!1),[P,I]=(0,s.useState)(!1),A=e||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEwIiBoZWlnaHQ9IjE5MCIgdmlld0JveD0iMCAwIDIxMCAxOTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMTAiIGhlaWdodD0iMTkwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik04NSA5NUw5NSA4NUwxMjUgMTE1TDE0MCA5NUwxNjUgMTIwSDE2NVY5MEg0NVY5MEw4NSA5NVoiIGZpbGw9IiNEMUQ1REIiLz4KPGNpcmNsZSBjeD0iNzUiIGN5PSI3NSIgcj0iMTAiIGZpbGw9IiNEMUQ1REIiLz4KPHRleHQgeD0iMTA1IiB5PSIxNTAiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMiIgZmlsbD0iIzlDQTNBRiIgdGV4dC1hbmNob3I9Im1pZGRsZSI+Tm8gaW1hZ2U8L3RleHQ+Cjwvc3ZnPgo=",R=v||(0,o.re)({article:d,brand:u,id:h})||"/catalog",z=S(p,f,d,u||a),L=()=>{window.location.href=R};return(0,r.jsxs)("div",{"data-article-card":"visible",itemScope:!0,itemType:"https://schema.org/Product",onClick:L,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),L())},onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),role:"link",tabIndex:0,style:{display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"20px",gap:"10px",width:"250px",height:"343px",background:"#FFFFFF",borderRadius:"12px",position:"relative",cursor:"pointer",boxSizing:"border-box",boxShadow:P?"0 30px 54px rgba(15, 23, 42, 0.14)":"0 0 0 rgba(15, 23, 42, 0)",transform:P?"translateY(-6px)":"translateY(0)",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[(0,r.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation();let r=parseFloat(i.replace(/[^\d.,]/g,"").replace(",","."))||0;if(z){let e=_.find(e=>!!p&&e.productId===p||!!f&&e.offerKey===f||e.article===d&&e.brand===(u||a));e&&w(e.id)}else j({productId:p,offerKey:f,name:c,brand:u||a,article:d||"",price:r,currency:m,image:e})},style:{position:"absolute",top:"20px",right:"20px",width:"36px",height:"36px",background:"#F5F8FB",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1},children:(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M13.5996 3.5C15.8107 3.5 17.5 5.1376 17.5 7.19629C17.5 8.46211 16.9057 9.65758 15.7451 11.0117C14.8712 12.0314 13.7092 13.1034 12.3096 14.3311L10.833 15.6143L10.832 15.6152L10 16.3369L9.16797 15.6152L9.16699 15.6143L7.69043 14.3311C6.29084 13.1034 5.12883 12.0314 4.25488 11.0117C3.09428 9.65758 2.50003 8.46211 2.5 7.19629C2.5 5.1376 4.18931 3.5 6.40039 3.5C7.6497 3.50012 8.85029 4.05779 9.62793 4.92188L10 5.33398L10.3721 4.92188C11.1497 4.05779 12.3503 3.50012 13.5996 3.5Z",fill:z?"#e53935":"#9CA3AF"})})}),(0,r.jsxs)("div",{style:{position:"relative",width:"210px",height:"190px",borderRadius:"12px",overflow:"hidden",flexShrink:0},children:[(0,r.jsx)("img",{src:A,loading:"lazy",alt:c,itemProp:"image",style:{width:"100%",height:"100%",objectFit:"contain"}}),t&&(0,r.jsx)("div",{style:{position:"absolute",top:"8px",left:"8px",padding:"4px 8px",background:"#4DB45E",borderRadius:"6px",fontFamily:"Onest",fontWeight:600,fontSize:"12px",lineHeight:"140%",color:"#FFFFFF"},children:t})]}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"15px",alignItems:"flex-end"},children:[x?(0,r.jsx)("div",{style:{fontFamily:"Onest",fontWeight:800,fontSize:"18px",lineHeight:"120%",color:"#000000"},children:x}):(0,r.jsxs)("div",{itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,r.jsx)("span",{itemProp:"price",style:{fontFamily:"Onest",fontWeight:800,fontSize:"18px",lineHeight:"120%",color:"#000000"},children:i}),(0,r.jsx)("meta",{itemProp:"priceCurrency",content:m})]}),l&&(0,r.jsx)("span",{style:{fontFamily:"Onest",fontWeight:500,fontSize:"14px",lineHeight:"120%",textDecoration:"line-through",color:"#8893A2"},children:l})]}),(0,r.jsx)("div",{itemProp:"name",style:{fontFamily:"Onest",fontWeight:400,fontSize:"14px",lineHeight:"140%",color:"#000814",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",width:"100%"},children:c}),(0,r.jsx)("div",{itemProp:"brand",itemScope:!0,itemType:"https://schema.org/Brand",style:{fontFamily:"Onest",fontWeight:700,fontSize:"14px",lineHeight:"140%",color:"#000814"},children:(0,r.jsx)("span",{itemProp:"name",children:a})}),(0,r.jsx)("div",{onClick:b?void 0:e=>{e.preventDefault(),e.stopPropagation(),b||(g?g(e):window.location.href=R)},onMouseEnter:()=>!b&&F(!0),onMouseLeave:()=>!b&&F(!1),style:{position:"absolute",bottom:"20px",right:"20px",width:"32px",height:"32px",background:b?"#94A3B8"
1:k?"#D81B21":"#DC1C24",border:`1px solid ${b?"#94A3B8":"#DC1C24"}`,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,transition:"background 0.2s ease, transform 0.2s ease",transform:"none"},role:"button",tabIndex:0,"aria-label":b?"Нет в наличии":"Купить",title:b?"Нет в наличии":"Добавить в корзину",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M10.1998 22.2C8.8798 22.2 7.81184 23.28 7.81184 24.6C7.81184 25.92 8.8798 27 10.1998 27C11.5197 27 12.5997 25.92 12.5997 24.6C12.5997 23.28 11.5197 22.2 10.1998 22.2ZM3 3V5.4H5.39992L9.71977 14.508L8.09982 17.448C7.90783 17.784 7.79984 18.18 7.79984 18.6C7.79984 19.92 8.8798 21 10.1998 21H24.5993V18.6H10.7037C10.5357 18.6 10.4037 18.468 10.4037 18.3L10.4397 18.156L11.5197 16.2H20.4594C21.3594 16.2 22.1513 15.708 22.5593 14.964L26.8552 7.176C26.9542 6.99286 27.004 6.78718 26.9997 6.57904C26.9955 6.37089 26.9373 6.16741 26.8309 5.98847C26.7245 5.80952 26.5736 5.66124 26.3927 5.55809C26.2119 5.45495 26.0074 5.40048 25.7992 5.4H8.05183L6.92387 3H3ZM22.1993 22.2C20.8794 22.2 19.8114 23.28 19.8114 24.6C19.8114 25.92 20.8794 27 22.1993 27C23.5193 27 24.5993 25.92 24.5993 24.6C24.5993 23.28 23.5193 22.2 22.1993 22.2Z",fill:"#FFFFFF"})})}),(0,r.jsx)("meta",{itemProp:"sku",content:d||""})]})}},6832:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var r=i(7876),s=i(4232);let n=({title:e,count:t,productName:i,breadcrumbs:n,showCount:o=!1,showProductHelp:l=!1})=>(0,r.jsx)("section",{className:"section-info",children:(0,r.jsx)("div",{className:"w-layout-blockcontainer container info w-container",children:(0,r.jsxs)("div",{className:"w-layout-vflex flex-block-9",children:[n&&n.length>0&&(0,r.jsx)("div",{className:"w-layout-hflex flex-block-7",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:n.map((e,t)=>(0,r.jsxs)(s.Fragment,{children:[t>0&&(0,r.jsx)("div",{className:"text-block-3",children:"→"}),e.href?(0,r.jsxs)("a",{href:e.href,className:"link-block w-inline-block",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,r.jsx)("div",{itemProp:"name",children:e.label}),(0,r.jsx)("meta",{itemProp:"position",content:String(t+1)}),(0,r.jsx)("meta",{itemProp:"item",content:e.href})]}):(0,r.jsxs)("span",{className:"link-block-2 w-inline-block",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,r.jsx)("div",{itemProp:"name",children:e.label}),(0,r.jsx)("meta",{itemProp:"position",content:String(t+1)})]})]},t))}),(0,r.jsxs)("div",{className:"w-layout-hflex flex-block-8",children:[(0,r.jsxs)("div",{className:"w-layout-hflex flex-block-10",children:[(0,r.jsx)("h1",{className:"heading",children:e}),o&&(0,r.jsx)("div",{className:"text-block-4",children:"number"==typeof t?`Найдено ${t} товаров`:(0,r.jsxs)("span",{className:"flex items-center gap-2",children:["Подсчитываем товары...",(0,r.jsxs)("svg",{className:"animate-spin w-4 h-4",width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})]})})]}),l&&i&&(0,r.jsxs)("div",{className:"w-layout-hflex flex-block-11",children:[(0,r.jsx)("img",{src:"/images/qwestions.svg",loading:"lazy",alt:"",className:"image-4"}),(0,r.jsxs)("div",{className:"text-block-5",children:["Как правильно выбрать ",i,"?"]})]})]})]})})})},7027:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var r=i(7876),s=i(4232);
1let n=({active:e,onChange:t,options:i=["Популярные","Сначала дешевле","Сначала дороже","Высокий рейтинг"]})=>{let[n,o]=(0,s.useState)(null);return(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"flex-start",padding:0,gap:"18px",height:"40px"},children:i.map((i,s)=>(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"flex-start",padding:0,height:"40px",cursor:"pointer"},onClick:()=>t(s),onMouseEnter:()=>o(s),onMouseLeave:()=>o(null),children:(0,r.jsx)("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"0px 20px 18px",gap:"10px",height:"40px",borderBottom:`3px solid ${e===s||n===s?"#DC1C24":"#D0D0D0"}`,borderRadius:"0px",transition:"border-bottom-color 0.2s"},children:(0,r.jsx)("span",{style:{fontFamily:"Onest",fontStyle:"normal",fontWeight:e===s?700:500,fontSize:"16px",lineHeight:"140%",textAlign:"center",color:e===s?"#000814":n===s?"#DC1C24":"#8893A2",whiteSpace:"nowrap",transition:"color 0.2s, font-weight 0.2s"},children:i})})},s))})}},7643:(e,t,i)=>{"use strict";var r=i(5364);i(2552);var s=i(4232),n=s&&"object"==typeof s&&"default"in s?s:{default:s},o=void 0!==r&&r.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,i=t.name,r=void 0===i?"stylesheet":i,s=t.optimizeForSpeed,n=void 0===s?o:s;a(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",a("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c=document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t,i=e.prototype;return i.setOptimizeForSpeed=function(e){a("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),a(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var e=this;if(a(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,i){return"number"==typeof i?e._serverSheet.cssRules[i]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),i},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},i.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(e,t){if(a(l(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof t&&(t=i.cssRules.length);try{i.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},i.replaceRule=function(e,t){if(this._optimizeForSpeed){var i=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!i.cssRules[e])return e;i.deleteRule(e);try{i.insertRule(t,e)}catch(r){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];a(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},i.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];a(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},i.cssRules=function(){var e=this;return this._tags.reduce(function(t,i){return i?t=t.concat(Array.prototype.map.call(e.getSheetForTag(i).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},i.makeStyleTag=function(e,t,i){t&&a(l(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return i?s.insertBefore(r,i):s.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function a(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var i=String(t),r=e+i;return u[r]||(u[r]="jsx-"+d(e+"-"+i)),u[r]}function p(e,t){var i=e+t;return u[i]||(u[i]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[i]}var f=function(){function e(e){var t=void 0===e?{}:e,i=t.styleSheet,r=void 0===i?null:i,s=t.optimizeForSpeed,n=void 0!==s&&s;this._sheet=r||new c({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),r&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var i=this.getIdAndRules(e),r=i.styleId,s=i.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var n=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=n,this._instancesCounts[r]=1},t.remove=function(e){var t=this,i=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var r=this._fromServer&&this._fromServer[i];r?(r.parentNode.removeChild(r),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(e){return t._sheet.deleteRule(e)}),delete this._indices[i]),delete this._instancesCounts[i]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],i=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return i[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,i;return t=this.cssRules(),void 0===(i=e)&&(i={}),t.map(function(e){var t=e[0],r=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,i=e.dynamic,r=e.id;if(i){var s=h(r,i);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return p(s,e)}):[p(s,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=s.createContext(null);m.displayName="StyleSheetContext";var x=n.default.useInsertionEffect||n.default.useLayoutEffect,g=new f;function y(e){var t=g||s.useContext(m);return t&&x(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=y},8679:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(7876),s=i(4208),n=i.n(s);i(4232);let o=({text:e="Загрузка...",fullScreen:t=!1,size:i="large"})=>{let s={small:{spinner:"h-12 w-12",text:"text-sm",logo:"h-8 w-8"},medium:{spinner:"h-20 w-20",text:"text-base",logo:"h-12 w-12"},large:{spinner:"h-32 w-32",text:"text-lg",logo:"h-16 w-16"}}[i],o=(0,r.jsxs)("div",{className:"jsx-f75ccb5fc5681b7e flex flex-col items-center justify-center gap-6",children:[(0,r.jsxs)("div",{className:"jsx-f75ccb5fc5681b7e relative",children:[(0,r.jsx)("div",{style:{borderTopColor:"#DC1C24",borderRightColor:"#DC1C24",animation:"spin 1s linear infinite"},className:`jsx-f75ccb5fc5681b7e ${s.spinner} rounded-full border-4 border-gray-200`}),(0,r.jsx)("div",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-f75ccb5fc5681b7e absolute inset-0 flex items-center justify-center",children:(0,r.jsx)("div",{className:`jsx-f75ccb5fc5681b7e ${s.logo} bg-gradient-to-br from-red-500 to-red-700 rounded-lg flex items-center justify-center shadow-lg`,children:(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-f75ccb5fc5681b7e w-2/3 h-2/3",children:[(0,r.jsx)("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",fill:"white",opacity:"0.9",className:"jsx-f75ccb5fc5681b7e"}),(0,r.jsx)("path",{d:"M2 17L12 22L22 17",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.9",className:"jsx-f75ccb5fc5681b7e"}),(0,r.jsx)("path",{d:"M2 12L12 17L22 12",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.9",className:"jsx-f75ccb5fc5681b7e"})]})})})]}),(0,r.jsxs)("div",{className:`jsx-f75ccb5fc5681b7e ${s.text} font-medium text-gray-700 flex items-center gap-1`,children:[(0,r.jsx)("span",{className:"jsx-f75ccb5fc5681b7e",children:e}),(0,r.jsxs)("span",{className:"jsx-f75ccb5fc5681b7e flex gap-1",children:[(0,r.jsx)("span",{style:{animation:"bounce 1.4s infinite 0s"},className:"jsx-f75ccb5fc5681b7e",children:"."}),(0,r.jsx)("span",{style:{animation:"bounce 1.4s infinite 0.2s"},className:"jsx-f75ccb5fc5681b7e",children:"."}),(0,r.jsx)("span",{style:{animation:"bounce 1.4s infinite 0.4s"},className:"jsx-f75ccb5fc5681b7e",children:"."})]})]}),(0,r.jsx)(n(),{id:"f75ccb5fc5681b7e",children:"@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}}@keyframes bounce{0%,80%,100%{transform:translatey(0);opacity:.5}40%{transform:translatey(-8px);opacity:1}}"})]});return t?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center min-h-screen",style:{background:"rgba(249, 250, 251, 0.95)",backdropFilter:"blur(8px)"},"aria-live":"polite",children:o}):(0,r.jsx)("div",{className:"flex items-center justify-center py-20","aria-live":"polite",children:o})}}},e=>{e.O(0,[3796,1787,5455,636,6593,8792],()=>e(e.s=1871)),_N_E=e.O()}]);

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.