PageSourceSearch

https://nakorminastroenie.ru/_next/static/chunks/810-d74951e8f2da2b3d.js

js nakorminastroenie.ru collected 2026-10-04 16:26:45 UTC 12,097 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{41761:function(e,l,a){var s=a(85893),o=a(36491);a(67294);var n=a(16024);l.Z=e=>{let{text:l}=e;return(0,s.jsxs)("div",{className:"flex gap-1 w-fit items-center rounded-radius-lg bg-paleMainColor text-main px-3 py-2",children:[(0,s.jsx)(o.mL,{}),(0,s.jsx)(n.x,{variant:"descriptionAccent",children:l})]})}},22161:function(e,l,a){a.d(l,{f:function(){return A}});var s=a(85893),o=a(67294),n=a(69494),t=a(45007),r=a(54389),i=a(67173),d=a(45689),c=a(41761),u=a(16024),x=a(25675),m=a.n(x),p=a(27127),v=e=>{var l;let{src:a}=e,o=(0,t.v9)(r.rj.company),n=p.V.stock[(null==o?void 0:null===(l=o.template)||void 0===l?void 0:l.theme)||"light"];return a?(0,s.jsx)("div",{className:"relative w-full pb-[57%] rounded-radius-md overflow-hidden",children:(0,s.jsx)("img",{className:"absolute top-0 left-0 object-cover w-full h-full",src:a})}):(0,s.jsx)("div",{className:"relative w-full pb-[57%] rounded-radius-md overflow-hidden",children:(0,s.jsx)(m(),{className:"absolute top-0 left-0 w-full object-cover h-full",src:n,alt:""})})},g=e=>{let{description:l}=e;return l?(0,s.jsx)(u.x,{node:"div",variant:"mainText",className:"text-text-base editor",style:{overflowWrap:"break-word",whiteSpace:"pre-wrap"},dangerouslySetInnerHTML:{__html:l}}):null},h=a(87650),f=e=>{let{buttons:l}=e;return(null==l?void 0:l.length)?(0,s.jsx)("div",{className:"flex flex-col gap-2",children:l.map((e,l)=>(0,s.jsx)(h.zx,{asLink:!0,href:e.url,variant:"extra",size:"lg",children:e.title},l))}):null},j=a(36491),b=a(46066),w=e=>{let{goodsNumber:l,children:a,beforeChange:n,afterChange:t}=e,r=(0,o.useRef)(null),[i,d]=(0,o.useState)(0);return(0,s.jsxs)("div",{className:"relative flex flex-col ",children:[!(4>=l||0===i)&&(0,s.jsxs)("div",{className:"absolute z-[1] top-1/2 translate-y-[-50%] -translate-x-1/2 rounded-full hidden md:block",children:[" ",(0,s.jsx)(h.zx,{variant:"extra",size:"md",icon:(0,s.jsx)(j.wz,{}),onClick:()=>{(null==r?void 0:r.current)&&r.current.slickPrev()}})]}),(0,s.jsx)(b.Z,{dots:!1,infinite:!1,speed:500,className:"detail-stock-slider",arrows:!1,ref:r,draggable:!0,swipe:!0,centerPadding:"0px",swipeToSlide:!0,slidesToShow:4,beforeChange:n,afterChange:e=>{t(),d(e)},children:a}),!(4>=l||i+4-1==l-1)&&(0,s.jsx)("div",{className:"absolute z-[1] top-1/2 right-0  translate-y-[-50%] translate-x-1/2 rounded-full hidden md:block",children:(0,s.jsx)(h.zx,{variant:"extra",size:"md",icon:(0,s.jsx)(j.Js,{}),onClick:()=>{(null==r?void 0:r.current)&&r.current.slickNext()}})})]})},N=a(18202),C=a(81782);function k(e){var l;let{product:a,productCart:o,openDetails:n,price:i,addProduct:d,increaseProduct:c,decreaseProduct:x,showPaginator:v}=e,g=(0,t.v9)(r.rj.company),f=p.V.product[(null==g?void 0:null===(l=g.template)||void 0===l?void 0:l.theme)||"light"],b=a.stockBalance?a.stockBalance:null,w=!!o&&!!b&&o.count>=b;return(0,s.jsxs)("div",{onClick:()=>{n(a)},className:"flex flex-col gap-2 bg-background-card rounded-radius-md border-[1.5px] ".concat(o?"border-main":"border-transparent"," overflow-hidden"),children:[a.image?(0,s.jsx)("div",{className:"overflow-hidden w-full",children:(0,s.jsxs)("picture",{className:"w-full",children:[(0,s.jsx)("source",{className:"aspect-square w-full object-cover rounded-b-radius-md",type:"image/webp",srcSet:"".concat((0,C.t)(a.image,"125","webp")," 1x, ").concat((0,C.t)(a.image,"300","webp")," 2x, ").concat((0,C.t)(a.image,"400","webp"),"3x")}),(0,s.jsx)("source",{className:"aspect-square w-full object-cover rounded-b-radius-md",type:"image/jpeg",srcSet:"".concat((0,C.t)(a.image,"125","jpg")," 1x, ").concat((0,C.t)(a.image,"300","jpg")," 2x, ").concat((0,C.t)(a.image,"400","jpg")," 3x")}),(0,s.jsx)("img",{className:"aspect-square w-full object-cover rounded-b-radius-md",src:(0,C.t)(a.image,"125","jpg"),srcSet:"".concat((0,C.t)(a.image,"125","jpg")," 1x, ").concat((0,C.t)(a.image,"300","jpg")," 2x, ").concat((0,C.t)(a.image,"400","jpg")," 3x"),alt:""})]})}):(0,s.jsx)(m(),{className:"aspect-square w-full object-cover rounded-b-radius-md",src:f,alt:""}),(0,s.jsxs)("div",{className:"p-2 flex flex-col gap-2 items-center",children:[(0,s.jsx)("div",{className:"flex justify-center items-center h-[2.125rem] ",children:(0,s.jsx)(u.x,{variant:"descriptionAccentMd",node:"h4",className:"text-text-base line-clamp-2 text-center",style:{wordBreak:"break-word"},children:a.title})}),(0,s.jsx)("div",{className:"flex justify-center items-center h-[2.125rem] ",children:(0,s.jsx)(u.x,{variant:"mainTextAccent",className:"text-main text-center line-clamp-2 ",children:i})}),o&&v?(0,s.jsxs)(h.Uc,{variant:"primary",size:"md",withGap:!1,leftIcon:(0,s.jsx)(j.dM,{}),className:"w-full",rightIcon:(0,s.jsx)(j.qq,{}),onLeftIconClick:e=>x(e),onRightIconClick:e=>c(e),disabled:w,children:[" ",o.count," "]}):(0,s.jsx)(h.zx,{variant:"extra",size:"md",className:"w-full max-w-none",icon:(0,s.jsx)(j.qq,{}),onClick:e=>d(e)})]})]})}var y=e=>{let{goods:l,selectProduct:a,openProductDetails:o,beforeChangeSlider:i,afterChangeSlider:c}=e,x=(0,t.v9)(r.rj.allProducts),{updateProduct:m}=(0,n.iQ)(),{cart:p}=(0,n.iQ)(),v=(0,t.v9)(r.rj.branch),g=(0,d.Z)(),h=(e,l)=>{try{var s,n;e.stopPropagation(),(null===(s=x[l.id])||void 0===s?void 0:s.skuGroupsValues.length)||(null===(n=x[l.id])||void 0===n?void 0:n.optionsExists)?o(l):a(e,l)}catch(e){console.log(e)}},f=(e,l)=>{try{if(e.stopPropagation(),!l)return;m(l.uid,{count:(null==l?void 0:l.count)?--l.count:0})}catch(e){console.log(e)}},j=(e,l)=>{try{if(e.stopPropagation(),!l)return;m(l.uid,{count:(null==l?void 0:l.count)?++l.count:0})}catch(e){console.log(e)}},b=e=>{var l,a;let s=(null===(l=p.raw)||void 0===l?void 0:l.length)?null===(a=p.raw)||void 0===a?void 0:a.filter(l=>!l.isAdded&&!l.isChosenGift&&!l.isGift&&e===l.productId):[];return s.length?s[0]:void 0},C=e=>{let l=x[e];return l||(console.log("Товар ".concat(e," не найден в allProducts")),null)};if(!(null==l?void 0:l.length))return null;let y=l.reduce((e,l)=>{let a=C(l);return a?[...e,a]:e},[]);return(0,s.jsxs)("div",{className:"flex flex-col gap-2 bg-background-card",children:[(0,s.jsx)(u.x,{variant:"subHeadingMd",node:"h3",className:"text-text-base",children:"Товары, участвующие в акции"}),g?(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2",children:y.map(e=>{var l,a;let n=b(e.id),t=(0,N.x)(v.extended.currency.code,e.price);return(0,s.jsx)(k,{product:e,productCart:n,openDetails:o,price:t,showPaginator:!((null===(l=x[e.id])||void 0===l?void 0:l.skuGroupsValues.length)||(null===(a=x[e.id])||void 0===a?void 0:a.optionsExists)),addProduct:l=>h(l,e),decreaseProduct:e=>f(e,n),increaseProduct:e=>j(e,n)},e.id)})}):(0,s.jsx)("div",{className:"-mx-modal-padding-md lg:-mx-modal-padding-lg px-modal-padding-md lg:px-modal-padding-lg",children:(0,s.jsx)(w,{goodsNumber:l.length,beforeChange:i,afterChange:c,children:y.map(e=>{var l,a;let n=b(e.id),t=(0,N.x)(v.extended.currency.code,(null==n?void 0:n.count)?e.price*n.count:e.price);return(0,s.jsxs)("div",{children:[" ",(0,s.jsx)("div",{className:"mx-1",children:(0,s.jsx)(k,{product:e,productCart:n,openDetails:o,price:t,showPaginator:!((null===(l=x[e.id])||void 0===l?void 0:l.skuGroupsValues.length)||(null===(a=x[e.id])||void 0===a?void 0:a.optionsExists)),addProduct:l=>h(l,e),decreaseProduct:e=>f(e,n),increaseProduct:e=>j(e,n)})})]},e.id)})})})]})},P=e=>{let{showFooter:l,promoCode:a,promoCodeIsUsed:n,applyPromo:t}=e,r=(0,d.Z)(),[i,c]=(0,o.useState)(!1),x=async()=>{c(!0),await t(),c(!1)};return l?(0,s.jsxs)("div",{className:"absolute z-[10] bottom-0 left-0 w-full bg-background-card rounded-t-radius-lg shadow-up p-modal-padding-sm xs:p-modal-padding-md lg:p-modal-padding-lg 
1!pt-modal-padding-sm ".concat(r?"":"flex justify-between"),children:[r&&(0,s.jsx)(h.zx,{variant:"primary",size:"lg",disabled:n,icon:n?(0,s.jsx)(j.Jj,{className:"text-main"}):(0,s.jsx)(j.pL,{}),className:"w-full",onClick:x,loading:i,children:n?"Промокод применен":"Промокод: ".concat(a)}),!r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 text-main mr-1",children:[(0,s.jsx)("div",{className:"shrink-0",children:n?(0,s.jsx)(j.Jj,{}):(0,s.jsx)(j.pL,{})}),(0,s.jsx)(u.x,{variant:"mainTextAccent",node:"p",className:"line-clamp-1",children:"Промокод: ".concat(a)})]}),(0,s.jsx)(h.zx,{onClick:x,size:"lg",loading:i,disabled:n,children:n?"Промокод применен":"Применить"})]})]}):null},z=e=>{let{children:l}=e,a=(0,d.Z)();return a?(0,s.jsx)("div",{className:" h-full ",children:l}):(0,s.jsx)("div",{className:"h-full",children:l})},S=a(97362),Z=a(40849),I=e=>{let{isMobile:l,config:a,children:o}=e,{setRef:n}=(0,Z.Z)();return l?(0,s.jsx)(S.x,{panelInnerRef:n,...a.mobile,children:o}):(0,s.jsx)(S.q,{...a.desktop,children:o})},M=a(52818),q=a(48789),T=a(42207),L=a(49155);function A(e){var l,a,x,m,p;let{close:h,isActive:b,stock:w,onAnimationFinished:N}=e,C=(0,t.v9)(r.rj.branch),{cart:k,loading:S,updateCart:Z,addProduct:A}=(0,n.iQ)(),{openDetails:G}=(0,i.k)(),[_,B]=(0,o.useState)(null),{setIsOpenNoAddressModal:D}=(0,T.c)(),E=(0,t.v9)(r.rj.address),{setSuccessSelectCallback:V}=(0,q.Z)();(0,M.Z)(_,()=>{D(!0),B(null)});let[J,Q]=(0,o.useState)(!1),R=(0,d.Z)(),U=(null==w?void 0:w.endAt)?(0,L.Z)(w.endAt,"Осталось"):"",F=async(e,l)=>{var a;e.stopPropagation(),B(l.id),A(l.id,void 0,null!==(a=l.minCount)&&void 0!==a?a:void 0),E||V(()=>()=>{var e;A(l.id,void 0,null!==(e=l.minCount)&&void 0!==e?e:void 0,{},!1)})},H=async()=>{!S&&(null==w?void 0:w.promoCode)&&await Z({promoCode:w.promoCode,raw:k.raw})},W=!!(null==w?void 0:w.promoCode)&&!!(null===(a=C.order.fields)||void 0===a?void 0:null===(l=a.promoCode)||void 0===l?void 0:l.isUsed);return(0,s.jsx)(I,{isMobile:R,config:{mobile:{open:b,onClose:h,onSwipeClose:h,variant:"max-80",showSwipeBar:!0,canSwipe:!0,showCloseButton:!1,classNames:{panel:"flex flex-col ",panelInner:"overflow-y-auto overflow-x-hidden no-scroll-bar rounded-radius-lg !p-0 "},onAnimationFinished:N},desktop:{variant:"full-vertical",open:b,onClose:h,onSwipeClose:h,classNames:{panel:"flex flex-col overflow-hidden !p-0",panelInner:"overflow-y-auto overflow-x-hidden scroll-redesigned rounded-radius-lg !p-0 "},onAnimationFinished:N}},children:w?(0,s.jsxs)(z,{children:[(0,s.jsx)(v,{src:w.image}),(0,s.jsxs)("div",{className:"flex flex-col gap-8 common-spacing ".concat(W?"!pb-[calc(var(--spacing-sm)+80px)] xs:!pb-[calc(var(--spacing-md)+88px)] lg:!pb-[calc(var(--spacing-lg)+106px)]":"!pb-modal-padding-xs xs:!pb-modal-padding-md lg:!pb-modal-padding-lg"),children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 ",children:[U&&(0,s.jsx)(c.Z,{text:U}),(0,s.jsx)(u.x,{variant:"headingMd",node:"h2",className:"text-text-base",children:w.title}),(0,s.jsx)(g,{description:w.description}),(0,s.jsx)(f,{buttons:w.buttons})]}),(0,s.jsx)(y,{goods:w.goods,selectProduct:F,beforeChangeSlider:()=>Q(!0),afterChangeSlider:()=>setTimeout(()=>Q(!1),100),openProductDetails:e=>{J||G(e.id,e,"Акция / "+(null==w?void 0:w.title))}}),(0,s.jsx)(P,{showFooter:W,promoCodeIsUsed:(null===(x=w.promoCode)||void 0===x?void 0:x.toLowerCase())===(null===(p=k.cartPromoCode.promoCode)||void 0===p?void 0:null===(m=p.code)||void 0===m?void 0:m.toLowerCase()),promoCode:w.promoCode,applyPromo:H})]})]}):(0,s.jsx)("div",{className:"relative flex justify-center items-center pb-[57%] w-full",children:(0,s.jsx)("div",{className:"absolute top-0 left-0 flex justify-center items-center w-full h-full",children:(0,s.jsx)(j.$j,{size:R?"md":"lg"})})})})}},49155:function(e,l,a){a.d(l,{Z:function(){return o}});let s=e=>{let l=new Date,a=new Date(e),s=(a.getTime()-l.getTime())/1e3,o=Math.floor(s/86400),n=Math.floor(s/3600-24*o);return{days:o,hours:n,mins:Math.floor(s/60-60*n)}};var o=(e,l)=>{if(!e)return"";let a=s(e),o=a&&a.days?"".concat(a.days," д ").concat(a.hours," ч"):"",n=a&&!a.days&&a.hours?"".concat(a.hours," ч"):"",t=a&&!a.days&&!a.hours&&a.mins?"".concat(a.mins," мин"):"",r=!a||a.days||a.hours||a.mins||!a?"":"Меньше минуты";return"".concat(l,": ")+(r||"".concat(o," ").concat(n," ").concat(t))}}}]);

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.