PageSourceSearch

https://kobor.ru/_next/static/chunks/pages/commercial-offer-a0f7de201d71f2be3070.js

js kobor.ru collected 2026-10-02 06:58:26 UTC 10,631 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1037],{923:function(t,e,n){"use strict";n.d(e,{im:function(){return s},NV:function(){return d},W2:function(){return f},zx:function(){return p},o6:function(){return u},YD:function(){return m}});var o,r=n(52209),i=n(29163),c=n(18626),a=n(48803),l=n(88315),s=i.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-qr94ni-0"})(["margin:20px 0 50px;display:flex;row-gap:20px;flex-direction:column;align-items:flex-start;"]),d=i.ZP.p.withConfig({displayName:"styles__LabelText",componentId:"sc-qr94ni-1"})(["font-weight:bold;font-size:20px;margin-bottom:10px;"]),f=i.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-qr94ni-2"})(["width:100%;"]),p=i.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-qr94ni-3"})(["display:block;width:auto;padding:12px 20px;font-family:",";font-weight:500;line-height:1;border-radius:3px;color:",";background-color:",";cursor:pointer;border:none;outline:none;transition:.2s;"," &:hover{background-color:",";}&:disabled{background-color:",";cursor:default;}"],l.Rq.tt,l.O9.white,l.O9.red,(0,a.eq)("lg")(o||(o=(0,r.Z)(["\n            width: fit-content;\n            padding: 16px 2.6041vw;\n        "]))),l.O9.color11,l.O9.gray),u=i.ZP.button.withConfig({displayName:"styles__DownloadButton",componentId:"sc-qr94ni-4"})(["",";div{background-color:",";}"],c.Z,l.O9.gray),m=i.ZP.div.withConfig({displayName:"styles__ButtonsContainer",componentId:"sc-qr94ni-5"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;"])},61502:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return tt},default:function(){return et}});var o,r,i,c,a,l,s,d,f,p,u,m,g,h,w,y,b,x=n(83789),O=n(92809),C=n(36808),Z=n.n(C),v=n(11163),_=n(67294),j=n(28216),k=n(62350),P=n(10219),q=n(5152),T=n(29163),D=n(37487),L=n(52209),N=n(20317),I=n(923),E=n(74553),S=n(29399),B=n(48803),R=n(88315),A=n(35962),$=T.ZP.div.withConfig({displayName:"CommercialOfferLayoutContentstyled__CommercialOfferLayoutContentHero",componentId:"sc-w2kxwy-0"})([""]),z=T.ZP.div.withConfig({displayName:"CommercialOfferLayoutContentstyled__CommercialOfferLayoutContent",componentId:"sc-w2kxwy-1"})(["position:relative;margin:35px auto 0;width:",";"," "," & > "," > span{}","{display:flex;flex-direction:column;margin-bottom:30px;"," h2{",";font-family:",";font-weight:600;text-transform:uppercase;line-height:1.2;margin-bottom:30px;"," ","}}","{&:after{content:none;}","{& > span{&:nth-child(1){",";",";}&:nth-child(2){",";",";}&:nth-child(3){",";}}}}","{","{"," ","}","{",";",";}","{margin-left:auto;}}"],(0,B.T5)(22),(0,B.eq)("lg")(o||(o=(0,L.Z)(["\n      width: ",";\n      margin: 8.3vw auto 7.8125vw;\n  "])),(0,B.T5)(20)),(0,B.eq)("xxl")(r||(r=(0,L.Z)(["\n      width: ",";\n  "])),(0,B.T5)(14)),I.im,$,(0,B.eq)("lg")(i||(i=(0,L.Z)(["\n        flex-direction: row;\n        justify-content: space-between;\n        margin-bottom: 5.2vw;\n      "]))),(0,B.LZ)(24,24,24),R.Rq.tt,(0,B.eq)("lg")(c||(c=(0,L.Z)(["\n          margin-bottom: 0;\n          width: ",";\n          margin-right: ",";\n        "])),(0,B.T5)(12),(0,B.T5)()),(0,B.eq)("xxl")(a||(a=(0,L.Z)(["\n          width: ",";\n          margin-right: ",";\n        "])),(0,B.T5)(7),(0,B.T5)()),S.M5,S.wC,(0,B.eq)("lg")(l||(l=(0,L.Z)(["\n            width: 54%;\n          "]))),(0,B.eq)("xxxl")(s||(s=(0,L.Z)(["\n            width: 53%;\n          "]))),(0,B.eq)("lg")(d||(d=(0,L.Z)(["\n            width: 19%;\n          "]))),(0,B.eq)("xxxl")(f||(f=(0,L.Z)(["\n            width: 17%;\n          "]))),(0,B.eq)("lg")(p||(p=(0,L.Z)(["\n            width: auto\n          "]))),E.im,E.u5,(0,B.eq)("lg")(u||(u=(0,L.Z)(["\n        width: ",";\n      "])),(0,B.T5)(7.7)),(0,B.eq)("xxl")(m||(m=(0,L.Z)(["\n        width: ",";\n      "])),(0,B.T5)(4.9)),N.sp,(0,B.eq)("lg")(g||(g=(0,L.Z)(["\n          margin-right: ",";\n      "])),(0,B.T5)(2.6)),(0,B.eq)("xxl")(h||(h=(0,L.Z)(["\n          margin-right: ",";\n      "])),(0,B.T5)(1.5)),E.pg),M=T.ZP.div.withConfig({displayName:"CommercialOfferLayoutContentstyled__CommercialOfferLayoutContentPerson",componentId:"sc-w2kxwy-2"})(["display:flex;flex-direction:column;"," & > span{",";font-family:",";font-weight:600;text-transform:uppercase;line-height:1.2;color:",";margin-bottom:10px;","}& > p{",";font-family:",";font-weight:800;line-height:1;margin-bottom:15px;&:nth-child(3){",";font-weight:600;margin-bottom:0;}}"],(0,B.eq)("lg")(w||(w=(0,L.Z)(["\n      margin-right: auto;\n  "]))),(0,B.LZ)(13,13,13),R.Rq.tt,R.O9.color1,(0,B.eq)("lg")(y||(y=(0,L.Z)(["\n          margin-bottom: 28px;\n      "]))),(0,B.LZ)(13,15,15),R.Rq.mont,(0,B.LZ)(13,15,15)),W=T.ZP.span.withConfig({displayName:"CommercialOfferLayoutContentstyled__CommercialOfferLayoutContentClear",componentId:"sc-w2kxwy-3"})(["",";",";margin-top:30px;",""],A.Z,(0,B.LZ)(13,14,15),(0,B.eq)("xxl")(b||(b=(0,L.Z)(["\n        margin-bottom: 30px;\n    "])))),X=n(85893),G=["children","categoriesList","footerContent","headerContent","hero","callbackClearAll","descriptionTop","descriptionBottom","downloadTitle","callbackDownloadOffer"];function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?F(Object(n),!0).forEach((function(e){(0,O.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var K=(0,q.default)((function(){return Promise.all([n.e(2554),n.e(1933)]).then(n.bind(n,51933))}),{ssr:!1,loadableGenerated:{webpack:function(){return[51933]},modules:["../layouts/CommercialOfferLayout/index.tsx -> @/components/commercialOffer/CKEditorFields"]}}),Q=(0,T.ZP)(D.Z).withConfig({displayName:"CommercialOfferLayout__Wrapper",componentId:"sc-e2p92f-0"})([""]),V=function(t){var e=t.children,n=t.categoriesList,o=t.footerContent,r=t.headerContent,i=t.hero,c=t.callbackClearAll,a=t.descriptionTop,l=t.descriptionBottom,s=t.downloadTitle,d=t.callbackDownloadOffer,f=(0,P.Z)(t,G);return(0,X.jsx)(Q,H(H({footerContent:o,categoriesList:n,headerContent:r},f),{},{children:(0,X.jsxs)(z,{children:[(0,X.jsxs)($,{children:[(0,X.jsx)("h2",{children:"\u041a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435"}),i&&(0,X.jsxs)(M,{children:[(0,X.jsx)("span",{children:i.isManager?"\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440":""}),(0,X.jsx)("p",{children:"".concat(i.firstName," ").concat(i.middleName)}),(0,X.jsxs)("p",{children:["+",i.phone.replace(/(\d)(\d{3})(\d{3})(\d{4})/,"$1 $2 $3 $4")]})]})]}),(0,X.jsxs)(K,{descriptionTop:a,descriptionBottom:l,downloadTitle:s,callbackDownloadOffer:d,children:[(0,X.jsx)(W,{onClick:c,children:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0432\u0430\u0440\u043e\u0432"}),e]})]})}))},Y=n(85338);function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){(0,O.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tt=!0,et=function(t){var e=t.categoriesList,n=t.footerContent,o=t.header,r=(0,j.I0)(),i=(0,v.useRouter)(),c=(0,j.v9)((function(t){return t.offer.offer})).userState,a=(0,_.useState)({products:[]}),l=a[0],s=a[1],d=(0,_.useState)(0),f=d[0],p=d[1],u=(0,_.useState)(0),m=u[0],g=u[1];(0,_.useEffect)((function(){var t=Z().get("api_token");c.isManager||t||i.push("/")}),[c]),(0,_.useEffect)((function(){c&&c.items&&s({products:c.items.map((function(t){return Object.assign({},t.product,{price:1e3!==t.price?t.price:t.product.price,parentId:t.id,quantity:t.quantity,isDelete:!1})}))})}),[c]),(0,_.useEffect)((function(){l&&(g(l.products.filter((function(t){return!t.isDelete})).reduce((function(t,e){var n=e.price,o=e.profit;return t+n*e.quantity-o}),0)),p(l.products.filter((function(t){return!t.isDelete})).reduce((function(t,e){return t+e.quantity}),0)))}),[l.products]);var h=function(){var t=Z().get("api_token"),e=l.products.filter((function(t){return t.isDelete})).reduce((function(t,e){return t.push(e.parentId),t}),[]);t&&(e.length&&e.map((function(e){r((0,Y.ZS)({id:e,token:t,items:[]}))})),r((0,Y.Xz)({token:t}
1)))};return(0,_.useEffect)((function(){var t=Z().get("api_token");t&&r((0,Y.p8)({token:t}))}),[]),(0,X.jsx)(V,{contrast:!0,categoriesList:e,footerContent:n,headerContent:o,hero:c&&c.user,callbackClearAll:function(){var t=Z().get("api_token");t&&l.products.map((function(e){var n=e.parentId;r((0,Y.ZS)({id:n,token:t,items:[]}))}))},descriptionTop:c.descriptionTop,descriptionBottom:c.descriptionBottom,callbackDownloadOffer:h,downloadTitle:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u041a\u041f",children:(0,X.jsx)(k.Z,{title:"\u041a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435",downloadTitle:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u041a\u041f",callbackDownloadOffer:h,callbackDelProduct:function(t){s(U(U({},l),{},{products:(0,x.Z)(l.products.map((function(e){return e.id===t?Object.assign({},e,{isDelete:!e.isDelete}):e})))}))},callbackProductsState:s,productsState:l,totalQuantityAcc:f,totalPriceProfit:m,isCommercialOffer:!0})})}},35962:function(t,e,n){"use strict";var o=n(29163),r=n(48803),i=n(88315),c=(0,o.iv)(["position:relative;display:inline-block;color:",";opacity:.5;",";vertical-align:middle;transition:opacity .3s;cursor:pointer;padding-right:5px;&:hover{opacity:1;}&:before,&:after{position:absolute;right:-5px;content:'';height:12px;width:2px;background-color:",";border-radius:2px;}&:before{transform:rotate(45deg);}&:after{transform:rotate(-45deg);}"],i.O9.color3,(0,r.LZ)(15,15,15),i.O9.color3);e.Z=c},8121:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/commercial-offer",function(){return n(61502)}])}},function(t){t.O(0,[6788,7,7333,4570,7487,2350,9774,2888,179],(function(){return e=8121,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.