PageSourceSearch

https://planeta-avtodv.ru/_next/static/chunks/pages/promotions/[id]-59fc2fa014bccc65.js

js planeta-avtodv.ru collected 2026-10-08 10:00:58 UTC 3,875 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4729],{1070:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/promotions/[id]",function(){return s(1119)}])},9400:function(e,t,s){"use strict";s.d(t,{o:function(){return n.Z}});var n=s(4635)},1119:function(e,t,s){"use strict";s.r(t);var n=s(5893),i=s(9008),r=s.n(i),a=s(1664),o=s.n(a),l=s(1163);s(7294);var d=s(8100),c=s(7866),m=s(9400),x=s(4335);let u=()=>{let e=(0,l.useRouter)(),t=e.query.id?`promotions/${e.query.id}`:null,{data:s,error:i}=(0,d.ZP)(t),a=null==s?void 0:s.promotion;if(i)return(0,n.jsx)(c.Z,{children:(0,n.jsxs)("div",{className:"PromotionPage py-6 text-sm text-gray-700",children:["Акция завершена или недоступна."," ",(0,n.jsx)(o(),{href:"/",className:"font-semibold text-gray-900 underline",children:"Перейти в каталог"})]})});if(!a)return(0,n.jsx)(c.Z,{children:(0,n.jsxs)("div",{className:"PromotionPage animate-pulse px-1 py-2",children:[(0,n.jsx)("div",{className:"h-8 w-4/5 rounded bg-gray-100"}),(0,n.jsx)("div",{className:"mt-3 h-8 w-2/5 rounded bg-gray-100"}),(0,n.jsx)("div",{className:"mt-6 h-4 w-3/5 rounded bg-gray-100"}),(0,n.jsx)("div",{className:"mt-2 h-4 w-2/5 rounded bg-gray-100"}),(0,n.jsx)("div",{className:"mt-10 h-6 w-56 rounded bg-gray-100"}),(0,n.jsx)("div",{className:"mt-4 h-4 w-2/3 rounded bg-gray-100"}
1),(0,n.jsx)("div",{className:"mt-2 h-4 w-1/2 rounded bg-gray-100"})]})});let x=a.items.length;return(0,n.jsxs)(c.Z,{children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:[a.name," | Планета Авто"]}),(0,n.jsx)("meta",{name:"description",content:a.description||h(a)})]}),(0,n.jsxs)("article",{className:"PromotionPage px-1 pt-2",children:[(0,n.jsx)("h1",{className:"PromotionPage-title max-w-4xl text-xl font-extrabold uppercase leading-tight tracking-tight text-gray-900 sm:text-3xl",children:a.name}),a.description?(0,n.jsx)("p",{className:"PromotionPage-lead mt-2.5 max-w-3xl text-sm leading-5 text-gray-700 sm:mt-3",children:a.description}):null,(0,n.jsxs)("p",{className:"PromotionPage-terms mt-5 text-xs leading-4 text-gray-600",children:[h(a)," ",(0,n.jsx)("span",{"aria-hidden":"true",children:"\xb7"})," ","Скидка ",a.percent,"% предоставляется на каждую подходящую единицу товара из списка ниже. ",(0,n.jsx)("span",{"aria-hidden":"true",children:"\xb7"})," ","Скидка применяется в корзине автоматически, как только условие выполнено."]}),(0,n.jsxs)("h2",{className:"PromotionPage-section mt-7 flex items-baseline justify-between gap-3 text-base font-bold text-gray-900 sm:mt-8 sm:text-lg",children:[(0,n.jsx)("span",{children:"Товары акции"}),(0,n.jsxs)("span",{className:"text-xs font-normal text-gray-500",children:[x," ",g(x,["позиция","позиции","позиций"])]})]})]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(m.o,{items:a.items})})]})};function h(e){let t=e.minimumQuantity;return"across_promotion"===e.quantityMode?`Соберите в корзине любые ${t} ${g(t,["товар","товара","товаров"])} из списка — количество суммируется по всем позициям акции.`:`Добавьте в корзину ${t} шт. одной позиции из списка.`}function g(e,t){let s=e%10,n=e%100;return 1===s&&11!==n?t[0]:s>=2&&s<=4&&(n<10||n>=20)?t[1]:t[2]}u.getInitialProps=async e=>{var t,s;let n=`promotions/${e.query.id}`,i={};(null===(s=e.req)||void 0===s?void 0:null===(t=s.cookies)||void 0===t?void 0:t.token)&&(i={Authorization:e.req.cookies.token});try{let e=await x.hi.get(n,{headers:i});return{[n]:e.data}}catch{return{}}},t.default=u}},function(e){e.O(0,[7272,5886,4635,2888,9774,179],function(){return e(e.s=1070)}),_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.