1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3043,5697],{53043:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return $}});var i=n(26042),r=n(69396),o=n(85893),a=n(5152),s=n.n(a),c=n(70637),u=n(67294),l=n(29567),p=n(39527),d=n(80425),f=n(45697);function m(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function y(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i,r,o=x(t);if(e){var a=x(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return(i=r)&&("object"==typeof i||"function"==typeof i)?i:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(t);if(0===e)return n;var i,r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",a=r?r[3]:"",s=r?r[2]:n,c=s.length>=e?s:(((function(t){if(Array.isArray(t))return S(t)})(i=Array(e))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(t,e)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(){return"0"}).join("")+s).slice(-1*e);return"".concat(o).concat(c).concat(a)}var w={daysInHours:!1,zeroPadTime:2},D=function(t){v(n,t);var e=g(n);function n(){var t;return m(this,n),t=e.apply(this,arguments),t.state={count:t.props.count||3},t.startCountdown=function(){t.interval=window.setInterval(function(){0==t.state.count-1?(t.stopCountdown(),t.props.onComplete&&t.props.onComplete()):t.setState(function(t){return{count:t.count-1}})},1e3)},t.stopCountdown=function(){clearInterval(t.interval)},t.addTime=function(e){t.stopCountdown(),t.setState(function(t){return{count:t.count+e}},t.startCountdown)},t}return y(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,u.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(u.Component);D.propTypes={count:f.number,children:f.element,onComplete:f.func};var P=function(t){v(n,t);var e=g(n);function n(t){var i;if(m(this,n),(i=e.call(this,t)).mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=(0,u.createRef)(),i.tick=function(){var t=i.calcTimeDelta(),e=t.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(t,void 0,e)},i.start=function(){if(!i.isStarted()){var t=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=t?i.calcOffsetStartTimestamp()-t:0;var e=i.calcTimeDelta();i.setTimeDeltaState(e,"STARTED",i.props.onStart),i.props.controlled||e.completed&&!i.props.overt
1ime||(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},t.date){var r=i.calcTimeDelta();i.state={timeDelta:r,status:r.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}return y(n,[{key:"componentDidMount",value:function(){!this.legacyMode&&(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(t){!this.legacyMode&&this.props.date!==t.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){!this.legacyMode&&(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var t=this.props,e=t.date,n=t.now,i=t.precision,r=t.controlled,o=t.overtime;return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.now,r=void 0===i?Date.now:i,o=n.precision,a=n.controlled,s=n.offsetTime,c=n.overtime;e="string"==typeof t?new Date(t).getTime():t instanceof Date?t.getTime():t,a||(e+=void 0===s?0:s);var u=a?e:e-r(),l=Math.round(1e3*parseFloat(((c?u:Math.max(0,u))/1e3).toFixed(Math.min(20,Math.max(0,void 0===o?0:o))))),p=Math.abs(l)/1e3;return{total:l,days:Math.floor(p/86400),hours:Math.floor(p/3600%24),minutes:Math.floor(p/60%60),seconds:Math.floor(p%60),milliseconds:Number((p%1*1e3).toFixed()),completed:l<=0}}(e,{now:n,precision:i,controlled:r,offsetTime:this.offsetTime,overtime:o})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(t){this.legacyCountdownRef.current.addTime(t)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(t){return this.state.status===t}},{key:"setTimeDeltaState",value:function(t,e,n){var i=this;if(this.mounted){var r=t.completed&&!this.state.timeDelta.completed,o=t.completed&&"STARTED"===e;r&&!this.props.overtime&&this.clearTimer();var a=function(){n&&n(i.state.timeDelta),i.props.onComplete&&(r||o)&&i.props.onComplete(t,o)};return this.setState(function(n){var r=e||n.status;return t.completed&&!i.props.overtime?r="COMPLETED":e||"COMPLETED"!==r||(r="STOPPED"),{timeDelta:t,status:r}},a)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var t,e,n,i,r,o,a,s,c,u,l,p,d=this.props,f=d.daysInHours,m=d.zeroPadTime,h=d.zeroPadDays,y=this.state.timeDelta;return Object.assign(Object.assign({},y),{api:this.getApi(),props:this.props,formatted:(n=y.days,i=y.hours,r=y.minutes,o=y.seconds,s=(a=Object.assign(Object.assign({},w),{daysInHours:f,zeroPadTime:m,zeroPadDays:h})).daysInHours,c=a.zeroPadTime,u=a.zeroPadDays,l=Math.min(2,c),p=s?b(i+24*n,c):b(i,l),{days:s?"":b(n,void 0===u?c:u),hours:p,minutes:b(r,l),seconds:b(o,l)})})}},{key:"render",value:function(){if(this.legacyMode){var t=this.props,e=t.count,n=t.children,i=t.onComplete;return(0,u.createElement)(D,{ref:this.legacyCountdownRef,count:e,onComplete:i},n)}var r=this.props,o=r.className,a=r.overtime,s=r.children,c=r.renderer,l=this.getRenderProps();if(c)return c(l);if(s&&this.state.timeDelta.completed&&!a)return(0,u.cloneElement)(s,{countdown:l});var p=l.formatted,d=p.days,f=p.hours,m=p.minutes,h=p.seconds;return(0,u.createElement)("span",{className:o},l.total<0?"-":"",d,d?":":"",f,":",m,":",h)}}]),n}(u.Component);P.defaultProps=Object.assign(Object.assign({},w),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}
1),P.propTypes={date:(0,f.oneOfType)([(0,f.instanceOf)(Date),f.string,f.number]),daysInHours:f.bool,zeroPadTime:f.number,zeroPadDays:f.number,controlled:f.bool,intervalDelay:f.number,precision:f.number,autoStart:f.bool,overtime:f.bool,className:f.string,children:f.element,renderer:f.func,now:f.func,onMount:f.func,onStart:f.func,onPause:f.func,onStop:f.func,onTick:f.func,onComplete:f.func};var j=n(7297),C=n(50445),O=n(83902);function _(){var t=(0,j.Z)(["\n background: #fff;\n *:not(h1):not(h2) {\n font-size: 24px !important;\n line-height: 1.5;\n }\n "]);return _=function(){return t},t}function k(){var t=(0,j.Z)(["\n ",";\n"]);return k=function(){return t},t}function E(){var t=(0,j.Z)([""]);return E=function(){return t},t}function M(){var t=(0,j.Z)(["\n border-radius: 15px;\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 0.1fr 1fr;\n overflow: hidden;\n position: relative;\n background-color: ",";\n padding-left: 40px;\n padding-right: 40px;\n\n @media (max-width: 550px) {\n grid-template-rows: 75px 100px;\n padding-left: 20px;\n padding-right: 20px;\n }\n @media (max-width: 360px) {\n grid-template-rows: 0.5fr 1fr;\n }\n"]);return M=function(){return t},t}function I(){var t=(0,j.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 70px;\n height: 65px;\n // box-shadow: 2px 2px 2px 2px #d5d5e7;\n border-radius: 12px;\n font-weight: 600;\n font-size: 45px;\n color: white;\n background: -webkit-linear-gradient(#0157b5 0%, #51b0ef 60%);\n @media (max-width: 420px) {\n width: 55px;\n font-size: 42px;\n }\n @media (max-width: 360px) {\n width: 47px;\n font-size: 33px;\n height: 60px;\n }\n"]);return I=function(){return t},t}function Z(){var t=(0,j.Z)(["\n justify-self: center;\n display: flex;\n flex-direction: row;\n align-items: center;\n"]);return Z=function(){return t},t}function z(){var t=(0,j.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]);return z=function(){return t},t}function R(){var t=(0,j.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 35px;\n font-weight: 600;\n padding-bottom: 25px;\n padding-right: 2px;\n padding-left: 2px;\n color: #0157b5;\n @media (max-width: 420px) {\n padding-right: 1px;\n padding-left: 1px;\n font-size: 30px;\n padding-bottom: 20px;\n }\n"]);return R=function(){return t},t}function N(){var t=(0,j.Z)(["\n color: #0157b5;\n text-align: center;\n @media (max-width: 420px) {\n font-size: 13px;\n }\n"]);return N=function(){return t},t}function W(){var t=(0,j.Z)(["\n justify-self: center;\n align-self: flex-end;\n font-size: 36px;\n line-height: 44px;\n color: rgb(45, 54, 70);\n font-weight: 700;\n padding-top: 15px;\n padding-bottom: 8px;\n text-align: center;\n @media (max-width: 750px) {\n font-weight: 500;\n font-size: 18px;\n line-height: 20px;\n }\n @media (max-width: 550px) {\n font-weight: 500;\n font-size: 18px;\n line-height: 20px;\n }\n @media (max-width: 360px) {\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n }\n"]);return W=function(){return t},t}var A=C.ZP.div.withConfig({displayName:"TimerWithDays.styles__StyledSection",componentId:"sc-7fd935e8-0"})(k(),function(t){return t.specialVersion&&(0,C.iv)(_())}),L=(0,C.ZP)(O.W2).withConfig({displayName:"TimerWithDays.styles__StyledContainer",componentId:"sc-7fd935e8-1"})(E()),H=C.ZP.div.withConfig({displayName:"TimerWithDays.styles__StyledSectionWrapper",componentId:"sc-7fd935e8-2"})(M(),O.DG.secondary),U=C.ZP.div.withConfig({displayName:"TimerWithDays.styles__StyledWrapper",componentId:"sc-7fd935e8-3"})(I()),V=C.ZP.div.withConfig({displayName:"TimerWithDays.styles__StyledTimer",componentId:"sc-7fd935e8-4"})(Z()),F=C.ZP.div.withConfig({displayName:"TimerWithDays.styles__StyledSectionHourMin",componentId:"sc-7fd935e8-5"})(z()),G=C.ZP.p.withConfig({displayName:"TimerWithDays.styles__StyledTwo",componentId:"sc-7fd935e8-6"})(R()),q=C.ZP.span.withConfig({displayName:"TimerWithDays.styles__StyledName",componentId:"sc-7fd935e8-7"})(N()),B=C.ZP.div.withConfig({displayName:"TimerWithDays.styles__StyledTitle",componentId:"sc-7fd935e8-8"})(W()),Y=s()(function(){return n.e(3733).then(n.bind(n,63733))},{loadableGenerated:{webpack:function(){return[63733]}}});function $(t){var e=t.module,n=t.insideLayout,a=t.first,s=function(t,e){return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]},f=e.stopDate,m=e.moduleOffsets,h=e.modalContent,y=e.minToOpenModal,v=e.IncludeModal,x=e.title,T=function(t){var e=t.days,a=t.hours,c=t.minutes,u=t.seconds;return t.completed?(0,o.jsx)("div",{}):(0,o.jsx)(A,{specialVersion:g,children:(0,o.jsx)(Y,(0,r.Z)((0,i.Z)({},b),{children:(0,o.jsx)(L,{insideLayout:n,children:(0,o.jsxs)(H,{children:[(0,o.jsx)(B,{dangerouslySetInnerHTML:{__html:x}}),(0,o.jsxs)(V,{children:[(0,o.jsxs)(F,{children:[(0,o.jsx)(U,{children:e}),(0,o.jsx)(q,{children:s(e,["денÑ","днÑ","дней"])})]}),(0,o.jsx)(G,{children:":"}),(0,o.jsxs)(F,{children:[(0,o.jsx)(U,{children:a}),(0,o.jsx)(q,{children:s(a,["ÑаÑ","ÑаÑа","ÑаÑов"])})]}),(0,o.jsx)(G,{children:":"}),(0,o.jsxs)(F,{children:[(0,o.jsx)(U,{children:c}),(0,o.jsx)(q,{children:s(c,["минÑÑа","минÑÑÑ","минÑÑ"])})]}),(0,o.jsx)(G,{children:":"}),(0,o.jsxs)(F,{children:[(0,o.jsx)(U,{children:u}),(0,o.jsx)(q,{children:s(u,["ÑекÑнда","ÑекÑндÑ","ÑекÑнд"])})]})]})]})})}))})},g=(0,u.useContext)(l.SpecialVersion).specialVersion,S=(0,u.useContext)(d.tC).showModal,b={first:a,insideLayout:n,moduleOffsets:m},w=(0,u.useContext)(c.V).city,D=function(){v&&S({component:(0,o.jsx)(c.V.Provider,{value:{city:w},children:(0,o.jsx)(p.jv,{modules:h})})})};return(0,u.useEffect)(function(){var t=setTimeout(function(){return D()},5e4*y);return function(){return clearTimeout(t)}},[]),(0,o.jsx)(P,{date:f,renderer:T})}},92703:function(t,e,n){"use strict";var i=n(50414);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},45697:function(t,e,n){t.exports=n(92703)()},50414:function(t){"use strict";
1t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
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.