1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1628],{68438:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/demands/[demandId]",function(){return t(64211)}])},75354:function(e,n,t){"use strict";t.d(n,{A:function(){return N}});var i=t(85893),r=t(67294),s=t(87536),o=t(95496),a=t(86010),l=t(10484),c=t(43987),u=t(92231),d=t(20061),p=t(54692),f=t(96793),h=t(85195),m=t(2297),v=t(36453),w=t(62213),b=t(84830),g=t(20279),x=t(12631),j=t(17695),P=t(16630),y=t.n(P);function _(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),i.forEach((function(n){_(e,n,t[n])}))}return e}var N=function(e){var n=e.className,t=e.isOpened,P=e.onClose,_=e.isOfferDemand,N=e.termOptions,O=e.offerId,k=e.loading,C=e.onSuccess,B=e.error,S=(0,r.useContext)(b.T).setOpenSubscribeOfferPopup,L=(0,s.cI)({resolver:(0,o.X)(g.EA)}),V=L.control,G=L.handleSubmit,M=L.reset,D=(0,x.TL)(),E=function(){_&&D((0,j.WC)()),P&&(B&&M(),P())};return(0,i.jsx)(v.I,{isOpened:t,onClose:E,children:(0,i.jsx)(m.G,{className:(0,a.Z)(y().popup,n),classNameTitle:y().title,onClose:E,title:_?"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441":"\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0437\u0430\u043a\u0430\u0437",children:(0,i.jsx)("form",{onSubmit:G((function(e){O&&_&&D((0,j.c7)({demandId:O,proposal:e,onSuccess:function(){C&&C(),P&&(P(),M())},onError:function(e){return function(e){"\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439"===e&&(setTimeout((function(){D((0,j.WC)())}),0),S(!0),M(),P&&P())}(e)}}))})),children:(0,i.jsxs)("div",{className:y().grid,children:[(0,i.jsx)(s.Qr,{control:V,name:"description",render:function(e){var n=e.field,t=e.fieldState.error;return(0,i.jsx)(c.x,{className:y().descInput,error:null===t||void 0===t?void 0:t.message,children:(0,i.jsx)(f.g,T({placeholder:_?"\u041e\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0412\u0430\u043c\u0438. \u0427\u0442\u043e \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u0434\u0440.":"\u041e\u043f\u0438\u0448\u0438\u0442\u0435 \u0437\u0430\u0434\u0430\u0447\u0443"},n))})}}),(0,i.jsx)(s.Qr,{control:V,name:"evaluation_price",render:function(e){var n=e.field,t=e.fieldState.error;return(0,i.jsx)(c.x,{error:null===t||void 0===t?void 0:t.message,label:_?"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430, \u0440\u0443\u0431":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u044e\u0434\u0436\u0435\u0442",children:(0,i.jsx)(u.I,T({htmlType:"number",placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443"},n))})}}),(0,i.jsx)(s.Qr,{control:V,name:"time_limit_id",render:function(e){var n=e.field,t=e.fieldState.error;return(0,i.jsx)(c.x,{error:null===t||void 0===t?void 0:t.message,label:"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0439 \u0441\u0440\u043e\u043a",children:(0,i.jsx)(d.P,T({placeholder:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430"},n,{children:null===N||void 0===N?void 0:N.map((function(e){return(0,i.jsx)(p.W,{value:e.id,children:e.name},e.id)}))}))})}}),(0,i.jsx)(c.x,{className:y().media,error:B,children:_?(0,i.jsx)(l.zx,{className:y().buttonSend,htmlType:"submit",loading:k,size:l.Ph.Large,children:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"}):(0,i.jsx)(h.p,{accept:w.r4,buttonSize:l.Ph.Large,classNameButton:y().mediaButton,classNameCont:y().mediaCont,classNameDesc:y().bottom,clipIco:!0,label:"\u041f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0444\u0430\u0439\u043b",maxLength:10,maxSize:w._x["5Mb"],children:(0,i.jsx)(l.zx,{className:y().buttonSend,htmlType:"submit",loading:k,size:l.Ph.Large,children:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"})})})]})})})})}},84451:function(e,n,t){"use strict";t.d(n,{M:function(){return u}});var i=t(85893),r=t(86010),s=t(10484),o=t(2297),a=t(36453),l=t(31613),c=t.n(l),u=function(e){var n=e.className,t=e.isOpened,l=e.onClose,u=e.danger,d=e.okText,p=void 0===d?"OK":d,f=e.onOk,h=e.children,m=e.closeOnOk;return(0,i.jsx)(a.I,{isOpened:t,onClose:l,children:(0,i.jsxs)(o.G,{className:(0,r.Z)(c().popup,n),onClose:l,children:[(0,i.jsx)("div",{className:c().text,children:h}),(0,i.jsx)("div",{className:c().wrapButton,children:(0,i.jsx)(s.zx,{className:c().button,color:u?s.Tt.Red:s.Tt.Blue,onClick:function(){f&&f(),m&&l&&l()},size:s.Ph.Large,children:p})})]})})}},35761:function(e,n,t){"use strict";t.d(n,{u:function(){return i}});var i={Default:{500:{slidesPerView:1.7,spaceBetween:20,slidesPerGroup:1},992:{slidesPerView:3,spaceBetween:20,allowTouchMove:!0,slidesPerGroup:3},1450:{slidesPerView:3,spaceBetween:20,allowTouchMove:!1,slidesPerGroup:3}},Mini:{0:{slidesPerView:2.05,spaceBetween:10,pagination:!1,slidesPerGroup:2},500:{slidesPerView:3.05,spaceBetween:10,slidesPerGroup:3},721:{slidesPerView:1.7,spaceBetween:20,slidesPerGroup:1},992:{slidesPerView:3,spaceBetween:20,allowTouchMove:!0,slidesPerGroup:1},1450:{slidesPerView:3,spaceBetween:20,allowTouchMove:!1,slidesPerGroup:3}},Full:{0:{slidesPerView:1,spaceBetween:20}},Suppliers:{0:{slidesPerView:1.3,spaceBetween:10,slidesPerGroup:1},721:{slidesPerView:1.7,spaceBetween:20,slidesPerGroup:1},1201:{slidesPerView:3,spaceBetween:20,slidesPerGroup:3,allowTouchMove:!0},1450:{slidesPerView:3,spaceBetween:20,slidesPerGroup:3,allowTouchMove:!1}},Products:{0:{slidesPerView:1,spaceBetween:20,slidesPerGroup:1},360:{slidesPerView:2,spaceBetween:10,slidesPerGroup:1},992:{slidesPerView:3,spaceBetween:20,allowTouchMove:!0,slidesPerGroup:1},1200:{slidesPerView:4,spaceBetween:20,allowTouchMove:!1,slidesPerGroup:4}},Demands:{500:{slidesPerView:1.7,spaceBetween:20,slidesPerGroup:1},992:{slidesPerView:3,spaceBetween:20,allowTouchMove:!0,slidesPerGroup:1},1200:{slidesPerView:4,spaceBetween:20,allowTouchMove:!1,slidesPerGroup:4}},DemandsDetail:{500:{slidesPerView:1.7,spaceBetween:20,slidesPerGroup:1},992:{slidesPerView:3,spaceBetween:20,allowTouchMove:!0,slidesPerGroup:1}},Blog:{500:{slidesPerView:1.7,spaceBetween:20,slidesPerGroup:1},870:{slidesPerView:3,spaceBetween:20,slidesPerGroup:3},992:{slidesPerView:2,spaceBetween:20,allowTouchMove:!0,slidesPerGroup:2},1250:{slidesPerView:3,spaceBetween:20,allowTouchMove:!1,slidesPerGroup:3}}}},98917:function(e,n,t){"use strict";t.d(n,{i:function(){return v}});var i=t(85893),r=t(67294),s=(t(21082),t(21669),t(36797),t(86010)),o=t(35761),a=t(71911),l=t(88494),c=t(50443),u=t.n(c),d=t(27251),p=t.n(d);function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var h=r.forwardRef((function(e,n){var t,r=e.className,o=e.next,a=e.prev;return(0,i.jsx)("div",{className:(0,s.Z)(p().button,r,(t={},f(t,p().next,o),f(t,p().prev,a),t)),ref:n})}));function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var v=function(e){var n,t=e.children,c=e.className,d=e.classNameSlider,p=e.classNameButtons,f=e.classNamePagination,v=e.breakpoints,w=void 0===v?o.u.Default:v,b=e.onSlideChange,g=e.setSwiper,x=e.speed,j=void 0===x?500:x,P=e.enabled,y=void 0===P||P,_=(0,r.useRef)(null),T=(0,r.useRef)(null),N=(0,r.useRef)(null),O=(0,r.useState)(!1),k=O[0],C=O[1];return(0,r.useEffect)((function(){(null===_||void 0===_?void 0:_.current)&&(null===T||void 0===T?void 0:T.current)&&(null===N||void 0===N?void 0:N.current)&&C(!0)}),[_.current,T.current,N.current]),(0,i.jsxs)("div",{className:(0,s.Z)(u().slider,c,(n={},m(n,u().mini,w===o.u.Mini),m(n,u().full,w===o.u.Full),m(n,u().suppliers,w===o.u.Suppliers),n)),children:[(0,i.jsx)(h,{className:p,prev:!0,ref:_}),(0,i.jsx)(h,{className:p,next:!0,ref:T}),(0,i.jsx)(l.tq,{breakpoints:w,className:(0,s.Z)(u().swiper,d),enabled:y,modules:[a.W_,a.tl],navigation:!!k&&{prevEl:null===_||void 0===_?void 0:_.current,nextEl:null===T||void 0===T?void 0:T.current,disabledClass:u().disabled},onSlideChange:function(e){b&&b(e.realIndex)},onSwiper:g,pagination:!!k&&{el:null===N||void 0===N?void 0:N.current,clickable:!0,bulletClass:u().paginationItem,bulletActiveClass:u().active},slidesPerView:1,spaceBetween:20,speed:j,children:t},k.toString()),y&&(0,i.jsx)("div",{className:(0,s.Z)(u().pagination,f),ref:N})]})}},41009:function(e,n,t){"use strict";t.d(n,{Vp:function(){return d},e7:function(){return i},z8:function(){return r}});var i,r,s=t(85893),o=t(85168),a=t(86010),l=t(52135),c=t.n(l);function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}!function(e){e.Default="default",e.White="white",e.Green="green",e.GreenFull="greenFull",e.Dark="dark",e.DarkFull="darkFull"}(i||(i={})),function(e){e.Default="default",e.Large="large"}(r||(r={}));var d=function(e){var n,t=e.className,l=e.type,d=void 0===l?i.Default:l,p=e.size,f=void 0===p?r.Default:p,h=e.children,m=e.disabled,v=e.onClick,w=e.link,b=e.active;return(0,s.jsx)(o.rU,{className:(0,a.Z)(c().tag,t,c()[d],c()[f],(n={},u(n,c().disabled,m),u(n,c().active,b),n)),href:w,onClick:function(){v&&v()},children:h})}},26900:function(e,n,t){"use strict";t.d(n,{B:function(){return p}});var i=t(85893),r=t(67294),s=t(86010),o=t(20468),a=t(65037),l=t(78475),c=t(83470),u=t(6119),d=t.n(u),p=function(e){var n=e.className,t=e.date,u=e.whenNull,p=e.disabled,f=e.isBack,h=(0,r.useState)(""),m=h[0],v=h[1],w=(0,r.useState)(null),b=w[0],g=w[1],x=(0,r.useMemo)((function(){return(0,l.L0)(t)}),[t]).date;return(0,r.useEffect)((function(){if(v((0,c.UL)(0)),x){var e=(0,o.H)(0,1e3).pipe((0,a.o)((function(){return(0,c.Qu)(x)>=0||!!f}))).subscribe((function(){var e=(0,c.Qu)(x);g(e),v((0,c.UL)(e,f))}));return function(){e.unsubscribe()}}}),[t,f]),null===b||p?(0,i.jsx)("span",{className:n,children:"\xa0"}):u&&0===b?u:(0,i.jsx)("span",{className:(0,s.Z)(d().timer,n),children:m})}},48499:function(e,n,t){"use strict";t.d(n,{c6:function(){return i},y9:function(){return r}});var i={secondsGenitive:["\u0441\u0435\u043a\u0443\u043d\u0434\u0443","\u0441\u0435\u043a\u0443\u043d\u0434\u044b","\u0441\u0435\u043a\u0443\u043d\u0434"],minutes:["\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u044b","\u043c\u0438\u043d\u0443\u0442"],minutesGenitive:["\u043c\u0438\u043d\u0443\u0442\u0443","\u043c\u0438\u043d\u0443\u0442\u044b","\u043c\u0438\u043d\u0443\u0442"],hours:["\u0447\u0430\u0441","\u0447\u0430\u0441\u0430","\u0447\u0430\u0441\u043e\u0432"],days:["\u0434\u0435\u043d\u044c","\u0434\u043d\u044f","\u0434\u043d\u0435\u0439"],months:["\u043c\u0435\u0441\u044f\u0446","\u043c\u0435\u0441\u044f\u0446\u0430","\u043c\u0435\u0441\u044f\u0446\u0435\u0432"],years:["\u0433\u043e\u0434","\u0433\u043e\u0434\u0430","\u043b\u0435\u0442"]},r=["\u0440\u0435\u0433\u0438\u043e\u043d","\u0440\u0435\u0433\u0438\u043e\u043d\u0430","\u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432"]},63059:function(e,n,t){"use strict";t.d(n,{L:function(){return o}});var i=t(67294),r=t(12631),s=t(5339),o=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];var a=(0,r.TL)(),l=(0,s.tm)();(0,i.useEffect)((function(){setTimeout((function(){l()&&a(e(t))}),1500)}),[l])}},64211:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return z},default:function(){return Z}});var i=t(85893),r=t(67294),s=t(19970),o=t(75354),a=t(77079),l=t(84451),c=t(86010),u=t(46094),d=t(85168),p=t(56465),f=t(41009),h=t(26900),m=t(78475),v=t
1(42174),w=t.n(v),b=function(e){var n=e.className,t=e.title,r=e.demandType,s=e.dateCreated,o=e.dateFinished,a=e.region,l=e.offers,v=void 0===l?0:l,b=e.link,g=(0,m.L0)(s).date,x=(0,m.L0)(o).formatMonth;return(0,i.jsxs)(p.g,{className:(0,c.Z)(w().wrap,n),children:[(0,i.jsx)(d.rU,{className:w().title,href:b,children:t}),(0,i.jsx)(f.Vp,{className:w().tag,size:f.z8.Large,type:f.e7.Dark,children:r}),(0,i.jsxs)("div",{className:w().date,children:[(0,i.jsx)(h.B,{className:w().timer,date:g,isBack:!0}),", \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043e ",x]}),(0,i.jsxs)("div",{className:w().region,children:["\u0420\u0435\u0433\u0438\u043e\u043d: ",(0,i.jsx)("span",{children:a})]}),(0,i.jsxs)("div",{children:[v," ",(0,u.Vp)(v,["\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435","\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f","\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439"])]})]})},g=t(98917),x=t(35761),j=t(36516),P=t(88494),y=t(38582),_=t.n(y),T=function(e){var n=e.className,t=e.locationPrepositional,r=e.relatedDemands;return(0,i.jsxs)("div",{className:(0,c.Z)(_().wrap,n),children:[(0,i.jsxs)("h3",{children:["\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432 ",t]}),(0,i.jsx)(g.i,{breakpoints:x.u.DemandsDetail,children:r&&r.map((function(e){var n;return(0,i.jsx)(P.o5,{children:(0,i.jsx)(b,{dateCreated:new Date(String(e.createdAt)),dateFinished:new Date(String(e.dateClose)),demandType:e.typeTitle,link:{pathname:j.Z5.Demand,query:{demandId:e.id}},offers:e.proposalsCount,region:null===e||void 0===e||null===(n=e.location)||void 0===n?void 0:n.name,title:e.title})},e.id)}))})]})},N=t(64652),O=t(63059),k=t(12631),C=t(17695),B=t(13887),S=t(12026),L=t(53558),V=t.n(L);function G(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var M=function(e){var n,t=e.className,c=e.demand,u=e.relatedDemands,d=e.relatedLocations,p=(0,r.useState)(!1),f=p[0],h=p[1],m=(0,r.useState)(!1),v=m[0],w=m[1],b=(0,r.useState)(!1),g=b[0],x=b[1],P=(0,r.useState)([]),y=P[0],_=P[1],L=(0,k.TL)(),M=(0,k.CG)(S.Mb),D=(0,k.CG)(B.IC),E=(0,k.CG)(B.An),W=E.error,z=E.loading;return(0,O.L)(C.Ly,null===c||void 0===c?void 0:c.id),(0,r.useEffect)((function(){L((0,C.w3)())}),[]),(0,r.useEffect)((function(){(null===d||void 0===d?void 0:d.length)&&_(d.map((function(e){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),i.forEach((function(n){G(e,n,t[n])}))}return e}({},e,{link:{pathname:j.Z5.DemandsLocation,query:{locationCode:e.code,category_id:null===c||void 0===c?void 0:c.categoryId}}})})))}),[d]),(0,i.jsxs)("div",{className:t,children:[(0,i.jsx)(s.l,{demand:c,onClickOffer:function(){M?w(!0):x(!0)}}),!!(null===u||void 0===u?void 0:u.length)&&(0,i.jsx)(T,{locationPrepositional:null===c||void 0===c||null===(n=c.location)||void 0===n?void 0:n.prepositional,relatedDemands:u}),!!(null===d||void 0===d?void 0:d.length)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{children:"\u0417\u0430\u043f\u0440\u043e\u0441\u044b \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445"}),(0,i.jsx)(N.m,{classNameTab:V().tab,lines:1,tabs:y})]}),(0,i.jsx)(o.A,{error:null!==W&&void 0!==W?W:"",isOfferDemand:!0,isOpened:v,loading:z,offerId:null===c||void 0===c?void 0:c.id,onClose:function(){return w(!1)},onSuccess:function(){return h(!0)},termOptions:D.items}),(0,i.jsx)(l.M,{isOpened:f,okText:"\u041e\u041a",onClose:function(){return h(!1)},onOk:function(){return h(!1)},children:"\u0412\u0430\u0448\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e"}),(0,i.jsx)(a.r,{isOpened:g,onClose:function(){return x(!1)},title:"\u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u043e\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u0438\u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f."})]})},D=t(62213),E=t(9008),W=t.n(E),z=!0,Z=function(e){var n=e.h1,t=e.demand,r=e.relatedDemands,s=e.relatedLocations;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W(),{children:(0,i.jsxs)("title",{children:["\u0417\u0430\u043f\u0440\u043e\u0441: ",n," | ",D.lW]})}),(0,i.jsx)(M,{demand:t,relatedDemands:r,relatedLocations:s})]})}},83470:function(e,n,t){"use strict";t.d(n,{Qu:function(){return p},UL:function(){return d},pW:function(){return f}});var i=t(46094),r=t(48499),s=t(61973),o=t(73959),a=t(70008),l=t(7993),c=t(70722),u=t(96486),d=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\u043d\u0430\u0437\u0430\u0434",u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e<=0&&!n)return"00:00";var d=Math.abs(e),p=(0,s.Z)((0,c.utcToZonedTime)(new Date(0),"UTC"),d);if(d<3600&&!n)return(0,c.format)(p,"mm:ss");if(d<60&&n)return"".concat(d," ").concat((0,i.Vp)(d,r.c6.secondsGenitive)," ").concat(t);if(d<3600&&n&&u){var f=(0,o.Z)(d),h=d-60*f;return"".concat(f," ").concat((0,i.Vp)(f,r.c6.minutesGenitive)," ").concat(h," ").concat((0,i.Vp)(h,r.c6.secondsGenitive)," ").concat(t)}if(d<3600&&n&&!u){var m=(0,o.Z)(d);return"".concat(m," ").concat((0,i.Vp)(m,r.c6.minutesGenitive)," ").concat(t)}if(d<86400){var v=(0,a.Z)(d),w=(0,o.Z)(d)-(0,l.Z)(v);return"".concat(v," ").concat((0,i.Vp)(v,r.c6.hours)," ").concat(w," ").concat((0,i.Vp)(w,n?r.c6.minutesGenitive:r.c6.minutes)).concat(n?" "+t:"")}if(d<2678400){var b=(0,a.Z)(d),g=Math.floor(b/24);return"".concat(g," ").concat((0,i.Vp)(g,r.c6.days)).concat(n?" "+t:"")}if(d<31536e3){var x=(0,a.Z)(d),j=Math.floor(x/24/31);return"".concat(j," ").concat((0,i.Vp)(j,r.c6.months)).concat(n?" "+t:"")}var P=(0,a.Z)(d),y=Math.floor(P/24/365);return"".concat(y," ").concat((0,i.Vp)(y,r.c6.years)).concat(n?" "+t:"")},p=function(e){return(0,u.round)((e.getTime()-Date.now())/1e3)},f=function(e){if(e){var n=e?p(e):void 0;return n?d(n,!0,void 0,!1):void 0}}},53558:function(e){e.exports={tab:"tab_-VM1S7"}},42174:function(e){e.exports={wrap:"wrap_EObX1J",title:"title_kMZ1i1",tag:"tag_lnmxkR",date:"date_LPiv-R",timer:"timer_2HYlnc",region:"region_Onf9z5"}},16630:function(e){e.exports={popup:"popup_zS6xcL",title:"title_gNIkRd",grid:"grid_Y5ZRFw",descInput:"descInput_6cGIBJ",media:"media_wycjK-",bottom:"bottom_ajFJbb",mediaCont:"mediaCont_PT9t15",buttonSend:"buttonSend_5pQD-M",mediaButton:"mediaButton_glIY-i"}},31613:function(e){e.exports={popup:"popup_9iQZPt",text:"text_cP0nyf",wrapButton:"wrapButton_QfOK85",button:"button_4uT3XT"}},50443:function(e){e.exports={slider:"slider_VpF-Dj",disabled:"disabled_IF635J",pagination:"pagination_DXNXut",paginationItem:"paginationItem_cdf22S",active:"active_1AK1ak",full:"full_5m7fko",swiper:"swiper_ns5qRJ",mini:"mini_xaU0ni",suppliers:"suppliers_QusFaz"}},27251:function(e){e.exports={button:"button_jiRoxc",next:"next_RWUTNt",prev:"prev_hx5nIU"}},52135:function(e){e.exports={tag:"tag_WKEJcd",disabled:"disabled_qBTSm-",active:"active_48-B1B",default:"default_TjrVPL",large:"large_8zg-rT",white:"white_EfGQf5",green:"green_u8RKNN",greenFull:"greenFull_sGaPqw",dark:"dark_eCgVXq",darkFull:"darkFull_DDTIag"}},6119:function(e){e.exports={timer:"timer_HjPQr8"}},38582:function(e){e.exports={wrap:"wrap_q8sh9Z",header:"header_zhp78L",buttons:"buttons_C4Lk-r",button:"button_-tn0u9",buttonAll:"buttonAll_zgmdz3"}},50500:function(e,n,t){"use strict";var i=t(67294),r=t(45697),s=t.n(r),o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a=function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}}();function l(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?e:n}var u=function(e){function n(){var e;l(this,n);for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];var s=c(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i)));return s.state={},s.styles={ellipsis:{position:"fixed",visibility:"hidden",top:0,left:0}},s.elements={},s.onResize=s.onResize.bind(s),s.onTruncate=s.onTruncate.bind(s),s.calcTargetWidth=s.calcTargetWidth.bind(s),s.measureWidth=s.measureWidth.bind(s),s.getLines=s.getLines.bind(s),s.renderLine=s.renderLine.bind(s),s}return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}
1(n,e),a(n,[{key:"componentDidMount",value:function(){var e=this.elements.text,n=this.calcTargetWidth,t=this.onResize,i=document.createElement("canvas");this.canvasContext=i.getContext("2d"),n((function(){e&&e.parentNode.removeChild(e)})),window.addEventListener("resize",t)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&this.forceUpdate(),this.props.width!==e.width&&this.calcTargetWidth()}},{key:"componentWillUnmount",value:function(){var e=this.elements.ellipsis,n=this.onResize,t=this.timeout;e.parentNode.removeChild(e),window.removeEventListener("resize",n),window.cancelAnimationFrame(t)}},{key:"innerText",value:function(e){var n=document.createElement("div"),t="innerText"in window.HTMLElement.prototype?"innerText":"textContent";n.innerHTML=e.innerHTML.replace(/\r\n|\r|\n/g," ");var i=n[t],r=document.createElement("div");return r.innerHTML="foo<br/>bar","foo\nbar"!==r[t].replace(/\r\n|\r/g,"\n")&&(n.innerHTML=n.innerHTML.replace(/<br.*?[\/]?>/gi,"\n"),i=n[t]),i}},{key:"onResize",value:function(){this.calcTargetWidth()}},{key:"onTruncate",value:function(e){var n=this.props.onTruncate;"function"===typeof n&&(this.timeout=window.requestAnimationFrame((function(){n(e)})))}},{key:"calcTargetWidth",value:function(e){var n=this.elements.target,t=this.calcTargetWidth,i=this.canvasContext,r=this.props.width;if(n){var s=r||Math.floor(n.parentNode.getBoundingClientRect().width);if(!s)return window.requestAnimationFrame((function(){return t(e)}));var o=window.getComputedStyle(n),a=[o["font-weight"],o["font-style"],o["font-size"],o["font-family"]].join(" ");i.font=a,this.setState({targetWidth:s},e)}}},{key:"measureWidth",value:function(e){return this.canvasContext.measureText(e).width}},{key:"ellipsisWidth",value:function(e){return e.offsetWidth}},{key:"trimRight",value:function(e){return e.replace(/\s+$/,"")}},{key:"getLines",value:function(){for(var e=this.elements,n=this.props,t=n.lines,r=n.ellipsis,s=n.trimWhitespace,o=this.state.targetWidth,a=this.innerText,l=this.measureWidth,c=this.onTruncate,u=this.trimRight,d=[],p=a(e.text).split("\n").map((function(e){return e.split(" ")})),f=!0,h=this.ellipsisWidth(this.elements.ellipsis),m=1;m<=t;m++){var v=p[0];if(0!==v.length){var w=v.join(" ");if(l(w)<=o&&1===p.length){f=!1,d.push(w);break}if(m===t){for(var b=v.join(" "),g=0,x=b.length-1;g<=x;){var j=Math.floor((g+x)/2);l(b.slice(0,j+1))+h<=o?g=j+1:x=j-1}var P=b.slice(0,g);if(s)for(P=u(P);!P.length&&d.length;){P=u(d.pop())}w=i.createElement("span",null,P,r)}else{for(var y=0,_=v.length-1;y<=_;){var T=Math.floor((y+_)/2);l(v.slice(0,T+1).join(" "))<=o?y=T+1:_=T-1}if(0===y){m=t-1;continue}w=v.slice(0,y).join(" "),p[0].splice(0,y)}d.push(w)}else d.push(),p.shift(),m--}return c(f),d}},{key:"renderLine",value:function(e,n,t){if(n===t.length-1)return i.createElement("span",{key:n},e);var r=i.createElement("br",{key:n+"br"});return e?[i.createElement("span",{key:n},e),r]:r}},{key:"render",value:function(){var e=this,n=this.elements.target,t=this.props,r=t.children,s=t.ellipsis,a=t.lines,l=function(e,n){var t={};for(var i in e)n.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}(t,["children","ellipsis","lines"]),c=this.state.targetWidth,u=this.getLines,d=this.renderLine,p=this.onTruncate,f=void 0;return"undefined"!==typeof window&&!(!n||!c)&&(a>0?f=u().map(d):(f=r,p(!1))),delete l.onTruncate,delete l.trimWhitespace,i.createElement("span",o({},l,{ref:function(n){e.elements.target=n}}),i.createElement("span",null,f),i.createElement("span",{ref:function(n){e.elements.text=n}},r),i.createElement("span",{ref:function(n){e.elements.ellipsis=n},style:this.styles.ellipsis},s))}}]),n}(i.Component);u.propTypes={children:s().node,ellipsis:s().node,lines:s().oneOfType([s().oneOf([!1]),s().number]),trimWhitespace:s().bool,width:s().number,onTruncate:s().func},u.defaultProps={children:"",ellipsis:"\u2026",lines:1,trimWhitespace:!1,width:0},n.Z=u}},function(e){e.O(0,[1914,5344,5406,7772,2786,5195,4098,1367,107,7204,9774,2888,179],(function(){return n=68438,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.