PageSourceSearch

https://planeta-avtodv.ru/_next/static/chunks/pages/catalog/%5Bslug%5D-94e5fc343fb088d8.js

js planeta-avtodv.ru collected 2026-10-08 10:00:36 UTC 4,698 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5417],{5700:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/catalog/[slug]",function(){return l(9728)}])},9728:function(e,s,l){"use strict";l.r(s);var t=l(5893),i=l(7294),a=l(1163),r=l(4635),n=l(223),d=l(7866),o=l(1655),c=l(8100),u=l(979),h=l(6418),x=l(9008),j=l.n(x),g=l(1705),p=l(1414),P=l(5677);let m=e=>{let s=(0,a.useRouter)(),{data:l,error:x,mutate:g}=(0,c.ZP)(`groups/${s.query.slug}?page=${s.query.page||1}`,{revalidateOnFocus:!1,fallbackData:e.datas});i.useEffect(()=>{console.log(l),l&&l.redirect&&s.replace(`/catalog/${l.slug}`),l&&l.id&&(0,h.s6)({category_id:l.id,category_title:l.siteTitle,page:l.page})},[l]);let m=(null==l?void 0:l.totalPages)>1?`Страница ${null==l?void 0:l.page} из ${null==l?void 0:l.totalPages} `:"",b=`${null==l?void 0:l.siteTitle} купить в интернет магазине Планета-Авто. ${null==l?void 0:l.siteTitle} цены, оптом и в розницу.`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j(),{children:(null==l?void 0:l.siteTitle)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:b}),(0,t.jsx)("meta",{name:"description",content:`
2              Купить ${null==l?void 0:l.siteTitle} по самым выгодным ценам в интернет магазине Планета-Авто. Купить ${null==l?void 0:l.siteTitle} оптом и в розницу. ${m}`}),(0,t.jsx)("meta",{name:"keywords",content:null==l?void 0:l.seoKeywords})]})}),(0,t.jsxs)(d.Z,{children:[(null==l?void 0:l.breadcrumbs)&&(0,t.jsx)(u.Z,{routes:l.breadcrumbs}),(0,t.jsx)("h1",{children:l&&l.siteTitle||(0,t.jsx)(o.ZP,{})}),l&&l.seoHeader&&(0,t.jsx)("div",{children:(0,t.jsx)(P.Z,{blocks:l.seoHeader})}),l&&l.hasChildren&&l.children&&(0,t.jsx)(p.Z,{child:l.children}),!l&&(0,t.jsxs)(t.Fragment,{children:[s.query.has_chilren&&(0,t.jsxs)("div",{children:[(0,t.jsx)(o.ZP,{height:60,style:{width:"31%",margin:10}}),(0,t.jsx)(o.ZP,{height:60,style:{width:"31%",margin:10}}),(0,t.jsx)(o.ZP,{height:60,style:{width:"31%",margin:10}}),(0,t.jsx)(o.ZP,{height:60,style:{width:"31%",margin:10}}),(0,t.jsx)(o.ZP,{height:60,style:{width:"31%",margin:10}}),(0,t.jsx)(o.ZP,{height:60,style:{width:"31%",margin:10}})]}),!s.query.has_chilren&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{}),(0,t.jsx)(v,{}),(0,t.jsx)(v,{}),(0,t.jsx)(v,{}),(0,t.jsx)(v,{}),(0,t.jsx)(v,{}),(0,t.jsx)(v,{}),(0,t.jsx)(v,{})]})]}),l&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.Z,{items:l.items})}),(0,t.jsx)(n.Z,{totalPages:(null==l?void 0:l.totalPages)||0,currentPage:null==l?void 0:l.page,ariaLabel:"Пагинация каталога"}),l&&l.seoFooter&&(0,t.jsx)("div",{className:"SeoFooter mt-8 rounded-md bg-[#f9f9f9] px-4 py-3 text-xs leading-relaxed text-gray-700",children:(0,t.jsx)(P.Z,{blocks:l.seoFooter})})]})]})},v=()=>(0,t.jsxs)("div",{className:"ProductTable-row",children:[(0,t.jsx)("div",{className:"ProductTable-cell-image",children:(0,t.jsx)(o.ZP,{height:60})}),(0,t.jsxs)("div",{className:"ProductTable-content",children:[(0,t.jsxs)("div",{className:"ProductTable-content-props ProductTable-cell",children:[(0,t.jsx)("span",{className:"ProductTable-content-props-title",children:(0,t.jsx)(o.ZP,{})}),(0,t.jsx)("span",{className:"ProductTable-content-props-value",children:(0,t.jsx)(o.ZP,{})}),(0,t.jsx)("span",{className:"ProductTable-content-props-title",children:(0,t.jsx)(o.ZP,{})}),(0,t.jsx)("span",{className:"ProductTable-content-props-value",children:(0,t.jsx)(o.ZP,{})})]}),(0,t.jsx)("div",{className:"ProductTable-content-body ProductTable-cell",style:{marginTop:"5px",marginRight:10,borderRight:"1px solid #d9d9d9"},children:(0,t.jsx)("div",{className:"ProductTable-cell-title",children:(0,t.jsx)(o.ZP,{})})}),(0,t.jsx)("div",{className:"ProductTable-cell-price ProductTable-cell",style:{marginTop:"5px"},children:(0,t.jsx)(o.ZP,{})}),(0,t.jsx)("div",{className:"ProductTable-cell ProductTable-cell-qty",style:{marginTop:"6px"},children:(0,t.jsx)("div",{style:{fontSize:13},children:(0,t.jsx)(o.ZP,{})})}),(0,t.jsx)("div",{className:"ProductTable-cell-form ProductTable-cell",children:(0,t.jsx)(o.ZP,{height:30})})]})]});m.getInitialProps=async e=>{var s,l;let t;let i=`groups/${e.query.slug}?page=${e.query.page||1}`,a={};(null===(s=e.req.cookies)||void 0===s?void 0:s.token)&&(a={Authorization:e.req.cookies.token});try{t=await g.hi.get(`groups/${e.query.slug}`,{headers:a})}catch(s){return(null===(l=s.response)||void 0===l?void 0:l.status)===404&&(e.res.statusCode=404),{notFound:!0}}return{[i]:null==t?void 0:t.data}},s.default=m}},function(e){e.O(0,[7272,5886,9921,4635,1882,2888,9774,179],function(){return e(e.s=5700)}),_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.