1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{5557:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(5748)}])},1683:function(e,t,r){"use strict";var n=r(5893);r(7294);var i=r(7670);t.Z=({item:e,size:t="item"})=>(0,n.jsx)("img",{src:(0,i.Z)(e.image[t]),className:"select-none max-h-full flex justify-center items-center"})},9400:function(e,t,r){"use strict";r.d(t,{o:function(){return n.Z}});var n=r(4635)},2587:function(e,t,r){"use strict";r.d(t,{CS:function(){return u},Ho:function(){return b},Iu:function(){return c},Tp:function(){return v},aH:function(){return f},er:function(){return j},gT:function(){return x},iQ:function(){return m},lb:function(){return l},mH:function(){return a},xF:function(){return h}});let n=new Intl.NumberFormat("ru-RU",{style:"currency",currency:"RUB",maximumFractionDigits:0}),i=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"long",year:"numeric",timeZone:"Asia/Vladivostok"}),s=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Asia/Vladivostok"}),a=e=>Number(e||0),l=e=>n.format(a(e)),d=e=>i.format(new Date(e)),o=e=>i.format(new Date(new Date(e).getTime()-864e5)),c=e=>`${d(e.startsAt)} â ${o(e.endsAt)}`,u=e=>s.format(new Date(e)),m=e=>`/rewards/${e.id}`,h=e=>"brand"===e.targetType?e.brand||"ÐÑенд":"ÐÑбÑаннÑе ÑоваÑÑ",f=e=>"amount"in e&&void 0!==e.amount&&null!==e.amount,x=e=>e.thresholds.reduce((e,t)=>Math.max(e,a(t.reward)),0),v=e=>e.thresholds.reduce((e,t)=>null===e?a(t.threshold):Math.min(e,a(t.threshold)),null);function b(e,t){let r=e%10,n=e%100;return 1===r&&11!==n?t[0]:r>=2&&r<=4&&(n<10||n>=20)?t[1]:t[2]}let j="ÐнÑоÑмаÑÐ¸Ñ ÑпÑавоÑнаÑ: ÑÑиÑÑваÑÑÑÑ Ð¿ÑоведÑннÑе пÑодажи поÑле Ñкидок, Ñ ÐÐС, за вÑÑеÑом возвÑаÑов, ÑеÑÑиÑÐ¸ÐºÐ°Ñ â один, по наиболÑÑÐµÐ¼Ñ Ð´Ð¾ÑÑигнÑÑÐ¾Ð¼Ñ Ð¿Ð¾ÑогÑ. ТоÑнÑе ÑÑÐ¼Ð¼Ñ Ð¸ ÑÑÐ»Ð¾Ð²Ð¸Ñ ÑÑоÑнÑйÑе Ñ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑа."},5748:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return D}});var n=r(5893),i=r(7294),s=r(9400),a=r(7866),l=r(8100),d=r(9008),o=r.n(d),c=r(5152),u=r.n(c);let m=(0,r(6745).oM)({name:"counter",initialState:{value:0,active:!1,hidePrice:!1},reducers:{tougleActiveDiscount:(e,t)=>{e.active=t.payload},tougleShowPrice:(e,t)=>{e.hidePrice=t.payload},increment:e=>{e.value+=1},decrement:e=>{e.value-=1},incrementByAmount:(e,t)=>{e.value=t.payload}}}),{increment:h,decrement:f,incrementByAmount:x,tougleActiveDiscount:v,tougleShowPrice:b}=m.actions;m.reducer;var j=r(4184),p=r.n(j),w=r(1664),g=r.n(w),y=r(1683);let N=({id:e})=>{let{data:t,mutate:r}=(0,l.ZP)(`/posts/${e}/thumbs`);return t?(0,n.jsxs)(n.Fragment,{children:[null==t?void 0:t.items.map(e=>(0,n.jsxs)("div",{className:"ArrivalItem w-40 h-52 bg-white p-1 overflow-hidden rounded-md",children:[(0,n.jsx)("div",{className:"w-36 h-36 overflow-hidden",children:(0,n.jsx)(y.Z,{item:e,size:"item"})}),(0,n.jsx)("div",{className:"text-xs h-12 overflow-hidden",children:e.title})]},e.id)),(null==t?void 0:t.count)>0&&(0,n.jsxs)("div",{className:"ArrivalMore w-40 ",children:[(0,n.jsxs)(g(),{href:`/news?id=${e}`,className:"h-36 text-sm rounded-md flex items-center justify-center border bg-slate-50 select-none cursor-pointer",children:["ÐÑÑ ",t.count," ÑоваÑа"]}),(0,n.jsx)(g(),{href:`/news?id=${e}`,className:"h-8 text-sm bg-gray-100 flex items-center justify-center rounded-md mt-2",children:"ÐоÑмоÑÑеÑÑ Ð²Ñе"})]})]}):(0,n.jsx)("div",{className:"ArrivalEmpty h-52"})};var A=()=>{let{data:e=[],mutate:t}=(0,l.ZP)("/posts"),[r,s]=i.useState("1");return i.useEffect(()=>{e[0]&&s(e[0].id)},[e]),(0,n.jsxs)("div",{className:"Arrivals p-4 bg-white rounded-md mt-4 shadow-planeta",children:[(0,n.jsx)("h2",{className:"Arrivals-title font-semibold text-sm mb-2",children:"ÐоÑледние поÑÑÑплениÑ"}),(0,n.jsxs)("div",{className:"Arrivals-body rounded-md space-y-4",children:[(0,n.jsx)("div",{className:"Arrivals-tabs flex space-x-8",children:e.map(e=>(0,n.jsx)("div",{className:p()("Arrivals-tab px-3 py-1 text-sm font-semibold hover:bg-gray-100 rounded-md cursor-pointer",{"bg-gray-50":e.id===r}),onClick:()=>s(e.id),children:(0,n.jsx)("div",{className:p()("border-dotted border-gray-500",{"border-b":e.id!==r}),children:e.title})},e.id))}),(0,n.jsx)("div",{className:"Arrivals-items flex justify-between",children:(0,n.jsx)(N,{id:r})})]})]})},k=r(6418);let _=({history:e})=>{let t=i.useRef(null);return i.useEffect(()=>{(0,k.cq)({banner:e})},[e,!0]),(0,n.jsx)(g(),{onClick:()=>{(0,k.I)({banner:e})},ref:t,href:e.href,className:"HistoryCard block aspect-[21/25] w-[185px] overflow-hidden rounded-lg drop-shadow-md duration-500 hover:drop-shadow-lg",children:(0,n.jsx)("img",{src:e.imageUrl,alt:e.name||"",className:"block h-full w-full object-cover"})})};var Z=({banners:e})=>{let{data:t}=(0,l.ZP)("/histories"),r=null==t?void 0:t.map(e=>(0,n.jsx)(_,{history:e},e.id));return(0,n.jsx)("div",{className:"HistoriesStrip flex space-x-3 justify-between",children:r})};r(7449),r(7532),r(6761),r(7555),r(6503);var P=r(2587),E=()=>{let{data:e}=(0,l.ZP)("reward_campaigns/featured",{shouldRetryOnError:!1}),t=((null==e?void 0:e.rewardCampaigns)||[]).filter(e=>!!e.bannerImageUrl);return 0===t.length?null:(0,n.jsx)("div",{className:"space-y-3",children:t.map(e=>(0,n.jsx)("section",{"aria-label":`ÐкÑÐ¸Ñ ${e.name}`,className:"pt-2",children:(0,n.jsx)(g(),{href:(0,P.iQ)(e),className:"block overflow-hidden rounded-[12px] outline-none transition-opacity hover:opacity-95 focus-visible:ring-4 focus-visible:ring-[#fec949]/60 motion-reduce:transition-none",children:(0,n.jsx)("img",{src:e.bannerImageUrl,alt:e.name,className:"block h-auto w-full"})})},e.id))})};u()(r.e(9262).then(r.bind(r,9262)),{loadableGenerated:{webpack:()=>[9262]},ssr:!1});var D=()=>{let{data:e,error:t}=(0,l.ZP)("items/newest");return(0,n.jsxs)(a.Z,{children:[(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:"ÐланеÑа-ÐвÑо - авÑоÑоваÑÑ, авÑозапÑаÑÑи в ÑозниÑÑ Ð¸ опÑом."}),(0,n.jsx)("meta",{name:"description",content:`Ðолее 50 000 позиÑий. ÐвÑоÑоваÑÑ, авÑомаÑла, авÑоÑ
имиÑ, аккÑмÑлÑÑоÑÑ, авÑоакÑеÑÑÑаÑÑ, запÑаÑÑи Ð´Ð»Ñ Ð»ÐµÐ³ÐºÐ¾Ð²ÑÑ
и гÑÑзовÑÑ
авÑо.`})]}),(0,n.jsxs)("div",{className:"HomePage space-y-7",children:[(0,n.jsx)(Z,{}),(0,n.jsx)(E,{}),(0,n.jsx)(A,{}),(0,n.jsxs)("div",{className:"HomeSection mt-6",children:[(0,n.jsx)("h2",{className:"HomeSection-title font-semibold text-lg mb-2 px-4",children:"ÐовÑе ÑоваÑÑ"}),e&&(0,n.jsx)(s.o,{items:e.items})]})]})]})}}},function(e){e.O(0,[7272,5886,8270,4635,2888,9774,179],function(){return e(e.s=5557)}),_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.