1(self.webpackChunklitho=self.webpackChunklitho||[]).push([[9702],{5245:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var s=n(4519),r=n(54126),o=n(51159),a=n(2556);const i=e=>(0,a.jsx)(r.m.div,{className:"".concat(e.theme," countdown flex flex-wrap ").concat(e.className),...e.animation,children:(0,a.jsx)(o.ZP,{date:e.date,renderer:c})}),c=e=>{let{days:t,hours:n,minutes:s,seconds:r,completed:i}=e;return i?(0,a.jsx)("span",{children:"You are good to go!"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"number",children:(0,o.Bu)(t)}),(0,a.jsx)("span",{className:"unit",children:"Days"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"number",children:(0,o.Bu)(n)}),(0,a.jsx)("span",{className:"unit",children:"Hours"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"number",children:(0,o.Bu)(s)}),(0,a.jsx)("span",{className:"unit",children:"Minutes"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"number",children:(0,o.Bu)(r)}),(0,a.jsx)("span",{className:"unit",children:"Seconds"})]})]})};i.defaultProps={theme:"countdown-style-01"};const l=(0,s.memo)(i)},79702:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});n(4519);var s=n(70192),r=n(16089),o=n(65537),a=n(51843),i=n(5245),c=n(15698),l=n(2556);const u=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("section",{className:"bg-darkgray py-[25px]",children:(0,l.jsx)(s.Z,{children:(0,l.jsxs)(r.Z,{className:"items-center justify-center mb-0",children:[(0,l.jsx)(o.Z,{xl:8,lg:6,children:(0,l.jsx)("h1",{className:"font-serif text-white font-medium mb-0 md:text-center text-lg",children:"Countdown"})}),(0,l.jsx)(o.Z,{xl:4,lg:6,className:"breadcrumb justify-end text-xs font-serif md:mt-[10px] mb-0 md:justify-center",children:(0,l.jsxs)("ul",{className:"xs-text-center",children:[(0,l.jsx)("li",{children:(0,l.jsx)(a.rU,{to:"/","aria-label":"breadcrumb",className:"hover:text-white",children:"Home"})}),(0,l.jsx)("li",{children:(0,l.jsx)(a.rU,{to:"#","aria-label":"breadcrumb",onClick:e=>e.preventDefault(),className:"hover:text-white",children:"Elements"})}),(0,l.jsx)("li",{children:"Countdown"})]})})]})})}),(0,l.jsx)("section",{className:"bg-darkgray py-[160px] lg:py-[120px] md:py-[95px] sm:py-[80px] xs:py-[50px]",children:(0,l.jsxs)(s.Z,{children:[(0,l.jsx)(r.Z,{children:(0,l.jsx)(o.Z,{className:"mb-[6%]",children:(0,l.jsx)("h6",{className:"font-serif text-white text-center font-medium mb-[25px] lg:mb-[15px]",children:"Countdown style 01"})})}),(0,l.jsx)(r.Z,{className:"justify-center mb-[40px]",children:(0,l.jsx)(o.Z,{xs:12,lg:6,md:9,xl:5,children:(0,l.jsx)(i.Z,{theme:"countdown-style-01",className:"text-white font-semibold font-serif justify-between",date:"2023-04-29T15:02:03",animation:c.Ji})})})]})}),(0,l.jsx)("section",{className:"py-[160px] lg:py-[120px] md:py-[95px] sm:py-[80px] xs:py-[50px]",children:(0,l.jsxs)(s.Z,{children:[(0,l.jsx)(r.Z,{children:(0,l.jsx)(o.Z,{className:"mb-[6%]",children:(0,l.jsx)("h6",{className:"font-serif text-darkgray text-center font-medium mb-[25px] lg:mb-[15px]",children:"Countdown style 02"})})}),(0,l.jsx)(i.Z,{theme:"countdown-style-02",className:"text-darkgray font-serif justify-center mb-[40px] xs:mb-0",date:"2023-04-18T04:30:40",animation:c.Ji})]})}),(0,l.jsx)("section",{className:"bg-darkslateblue py-[160px] lg:py-[120px] md:py-[95px] sm:py-[80px] xs:py-[50px]",children:(0,l.jsxs)(s.Z,{children:[(0,l.jsx)(r.Z,{children:(0,l.jsx)(o.Z,{className:"mb-[6%]",children:(0,l.jsx)("h6",{className:"font-serif text-white text-center font-medium mb-[25px] lg:mb-[15px]",children:"Countdown style 03"})})}),(0,l.jsx)(r.Z,{className:"justify-center",children:(0,l.jsx)(o.Z,{xs:12,lg:6,md:9,xl:5,children:(0,l.jsx)(i.Z,{theme:"countdown-style-03",className:"text-white justify-between font-serif font-semibold",date:"2023-04-29T15:02:03",animation:c.Ji})})})]})})]})},75583:(e,t,n)=>{"use strict";var s=n(89489);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==s){var i=new 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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},91386:(e,t,n)=>{e.exports=n(75583)()},89489:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},70192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var s=n(43270),r=n.n(s),o=n(4519),a=n(57059),i=n(2556);const c=o.forwardRef(((e,t)=>{let{bsPrefix:n,fluid:s=!1,as:o="div",className:c,...l}=e;const u=(0,a.vE)(n,"container"),m="string"===typeof s?"-".concat(s):"-fluid";return(0,i.jsx)(o,{ref:t,...l,className:r()(c,s?"".concat(u).concat(m):u)})}));c.displayName="Container";const l=c},16089:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var s=n(43270),r=n.n(s),o=n(4519),a=n(57059),i=n(2556);const c=o.forwardRef(((e,t)=>{let{bsPrefix:n,className:s,as:o="div",...c}=e;const l=(0,a.vE)(n,"row"),u=(0,a.pi)(),m=(0,a.zG)(),p="".concat(l,"-cols"),d=[];return u.forEach((e=>{const t=c[e];let n;delete c[e],null!=t&&"object"===typeof t?({cols:n}=t):n=t;const s=e!==m?"-".concat(e):"";null!=n&&d.push("".concat(p).concat(s,"-").concat(n))})),(0,i.jsx)(o,{ref:t,...c,className:r()(s,l,...d)})}));c.displayName="Row";const l=c},51159:(e,t,n)=>{"use strict";n.d(t,{Bu:()=>h,ZP:()=>T});var s=n(4519),r=n(91386);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function m(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return m(this,n)}}function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);if(0===t)return n;var s=n.match(/(.*?)([0-9]+)(.*)/),r=s?s[1]:"",o=s?s[3]:"",a=s?s[2]:n,i=a.length>=t?a:(d(Array(t)).map((function(){return"0"})).join("")+a).slice(-1*t);return"".concat(r).concat(i).concat(o)}var y={daysInHours:!1,zeroPadTime:2};function x(e,t){var n=e.days,s=e.hours,r=e.minutes,o=e.seconds,a=Object.assign(Object.assign({},y),t),i=a.daysInHours,c=a.zeroPadTime,l=a.zeroPadDays,u=void 0===l?c:l,m=Math.min(2,c),p=i?h(s+24*n,c):h(s,m);return{days:i?"":h(n,u),hours:p,minutes:h(r,m),seconds:h(o,m)}}var v=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).state={count:e.props.count||3},e.startCountdown=function(){e.interval=window.setInterval((function(){0===e.state.count-1?(e.stopCountdown(),e.props.onComplete&&e.props.onComplete()):e.setState((function(e){return{count:e.count-1}}))}),1e3)},e.stopCountdown=function(){clearInterval(e.interval)},e.addTime=function(t){e.stopCountdown(),e.setState((function(e){return{count:e.count+t}}),e.startCountdown)},e}
1return i(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,s.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(s.Component);v.propTypes={count:r.number,children:r.element,onComplete:r.func};var b=function(e){c(n,e);var t=p(n);function n(e){var r;if(o(this,n),(r=t.call(this,e)).mounted=!1,r.initialTimestamp=r.calcOffsetStartTimestamp(),r.offsetStartTimestamp=r.props.autoStart?0:r.initialTimestamp,r.offsetTime=0,r.legacyMode=!1,r.legacyCountdownRef=(0,s.createRef)(),r.tick=function(){var e=r.calcTimeDelta(),t=e.completed&&!r.props.overtime?void 0:r.props.onTick;r.setTimeDeltaState(e,void 0,t)},r.start=function(){if(!r.isStarted()){var e=r.offsetStartTimestamp;r.offsetStartTimestamp=0,r.offsetTime+=e?r.calcOffsetStartTimestamp()-e:0;var t=r.calcTimeDelta();r.setTimeDeltaState(t,"STARTED",r.props.onStart),r.props.controlled||t.completed&&!r.props.overtime||(r.clearTimer(),r.interval=window.setInterval(r.tick,r.props.intervalDelay))}},r.pause=function(){r.isPaused()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.setTimeDeltaState(r.state.timeDelta,"PAUSED",r.props.onPause))},r.stop=function(){r.isStopped()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.offsetTime=r.offsetStartTimestamp-r.initialTimestamp,r.setTimeDeltaState(r.calcTimeDelta(),"STOPPED",r.props.onStop))},r.isStarted=function(){return r.isStatus("STARTED")},r.isPaused=function(){return r.isStatus("PAUSED")},r.isStopped=function(){return r.isStatus("STOPPED")},r.isCompleted=function(){return r.isStatus("COMPLETED")},e.date){var a=r.calcTimeDelta();r.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else r.legacyMode=!0;return r}return i(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(e){this.legacyMode||this.props.date!==e.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 e=this.props,t=e.date,n=e.now,s=e.precision,r=e.controlled,o=e.overtime;return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=n.now,r=void 0===s?Date.now:s,o=n.precision,a=void 0===o?0:o,i=n.controlled,c=n.offsetTime,l=void 0===c?0:c,u=n.overtime;t="string"===typeof e?new Date(e).getTime():e instanceof Date?e.getTime():e,i||(t+=l);var m=i?t:t-r(),p=Math.min(20,Math.max(0,a)),d=Math.round(1e3*parseFloat(((u?m:Math.max(0,m))/1e3).toFixed(p))),f=Math.abs(d)/1e3;return{total:d,days:Math.floor(f/86400),hours:Math.floor(f/3600%24),minutes:Math.floor(f/60%60),seconds:Math.floor(f%60),milliseconds:Number((f%1*1e3).toFixed()),completed:d<=0}}(t,{now:n,precision:s,controlled:r,offsetTime:this.offsetTime,overtime:o})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(e){this.legacyCountdownRef.current.addTime(e)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(e){return this.state.status===e}},{key:"setTimeDeltaState",value:function(e,t,n){var s=this;if(this.mounted){var r=e.completed&&!this.state.timeDelta.completed,o=e.completed&&"STARTED"===t;r&&!this.props.overtime&&this.clearTimer();return this.setState((function(n){var r=t||n.status;return e.completed&&!s.props.overtime?r="COMPLETED":t||"COMPLETED"!==r||(r="STOPPED"),{timeDelta:e,status:r}}),(function(){n&&n(s.state.timeDelta),s.props.onComplete&&(r||o)&&s.props.onComplete(e,o)}))}}},{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 e=this.props,t=e.daysInHours,n=e.zeroPadTime,s=e.zeroPadDays,r=this.state.timeDelta;return Object.assign(Object.assign({},r),{api:this.getApi(),props:this.props,formatted:x(r,{daysInHours:t,zeroPadTime:n,zeroPadDays:s})})}},{key:"render",value:function(){if(this.legacyMode){var e=this.props,t=e.count,n=e.children,r=e.onComplete;return(0,s.createElement)(v,{ref:this.legacyCountdownRef,count:t,onComplete:r},n)}var o=this.props,a=o.className,i=o.overtime,c=o.children,l=o.renderer,u=this.getRenderProps();if(l)return l(u);
1if(c&&this.state.timeDelta.completed&&!i)return(0,s.cloneElement)(c,{countdown:u});var m=u.formatted,p=m.days,d=m.hours,f=m.minutes,h=m.seconds;return(0,s.createElement)("span",{className:a},u.total<0?"-":"",p,p?":":"",d,":",f,":",h)}}]),n}(s.Component);b.defaultProps=Object.assign(Object.assign({},y),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),b.propTypes={date:(0,r.oneOfType)([(0,r.instanceOf)(Date),r.string,r.number]),daysInHours:r.bool,zeroPadTime:r.number,zeroPadDays:r.number,controlled:r.bool,intervalDelay:r.number,precision:r.number,autoStart:r.bool,overtime:r.bool,className:r.string,children:r.element,renderer:r.func,now:r.func,onMount:r.func,onStart:r.func,onPause:r.func,onStop:r.func,onTick:r.func,onComplete:r.func};const T=b}}]); 2//# sourceMappingURL=9702.a07802d5.chunk.js.map
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.