Files
Express_console_build/build/static/js/2142.8437472d.chunk.js
2026-05-25 16:32:21 +05:30

1 line
8.5 KiB
JavaScript

(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2142],{12897:(e,t,r)=>{var n=r(43693);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},35791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(14857),s=r(47223),o=r(93230),i=r(16491),c=r(82053),a=r(60899),u=r(29925),l=r(82223),m=r(62419);const d=r.p+"static/media/coming-soon.69b99428ab9e22eca0ba.png";var p=r(50027),x=r(44414);const f=e=>{let{count:t,label:r}=e;const a=(0,n.A)(),u=(0,s.A)(a.breakpoints.down("sm"));return(0,x.jsx)(p.A,{content:!1,sx:{width:{xs:60,sm:80}},children:(0,x.jsxs)(o.A,{justifyContent:"center",alignItems:"center",children:[(0,x.jsx)(i.A,{sx:{py:1.75},children:(0,x.jsx)(c.A,{variant:u?"h4":"h2",children:t})}),(0,x.jsx)(i.A,{sx:{p:.5,bgcolor:"secondary.lighter",width:"100%"},children:(0,x.jsx)(c.A,{align:"center",variant:"subtitle2",children:r})})]})})};const h=function(){const e=new Date;e.setSeconds(e.getSeconds()+172800-55800);const{seconds:t,minutes:r,hours:n,days:s}=(0,m.useTimer)({expiryTimestamp:e});return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(a.Ay,{container:!0,spacing:4,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",py:2},children:[(0,x.jsx)(a.Ay,{item:!0,xs:12,children:(0,x.jsx)(i.A,{sx:{height:{xs:310,sm:420},width:{xs:360,sm:"auto"}},children:(0,x.jsx)("img",{src:d,alt:"mantis",style:{height:"100%",width:"100%"}})})}),(0,x.jsx)(a.Ay,{item:!0,xs:12,children:(0,x.jsxs)(o.A,{spacing:1,justifyContent:"center",alignItems:"center",sx:{mt:-2},children:[(0,x.jsx)(c.A,{align:"center",variant:"h1",children:"Coming Soon"}),(0,x.jsx)(c.A,{align:"center",color:"textSecondary",children:"Something new is on its way"})]})}),(0,x.jsx)(a.Ay,{item:!0,xs:12,sx:{width:{xs:"95%",md:"40%"}},children:(0,x.jsxs)(o.A,{direction:"row",alignItems:"center",justifyContent:"center",spacing:{xs:1,sm:2},children:[(0,x.jsx)(f,{count:s,label:"day"}),(0,x.jsx)(c.A,{variant:"h1",children:" : "}),(0,x.jsx)(f,{count:n,label:"hour"}),(0,x.jsx)(c.A,{variant:"h1",children:" : "}),(0,x.jsx)(f,{count:r,label:"min"}),(0,x.jsx)(c.A,{variant:"h1",children:" : "}),(0,x.jsx)(f,{count:t,label:"sec"})]})}),(0,x.jsx)(a.Ay,{item:!0,xs:12,sx:{width:{xs:380,md:"40%",lg:"30%"}},children:(0,x.jsxs)(o.A,{spacing:2,sx:{mt:2},children:[(0,x.jsx)(c.A,{align:"center",color:"textSecondary",children:"Be the first to be notified when Mantis launches."}),(0,x.jsxs)(o.A,{direction:"row",spacing:1,children:[(0,x.jsx)(u.A,{fullWidth:!0,placeholder:"Email Address"}),(0,x.jsx)(l.A,{variant:"contained",sx:{width:"50%"},children:"Notify Me"})]})]})})]})})}},43693:(e,t,r)=>{var n=r(77736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},62419:function(e,t,r){var n,s=r(12897).default;"undefined"!=typeof self&&self,e.exports=(n=r(9950),(()=>{"use strict";var e={155:e=>{e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:()=>f,useStopwatch:()=>p,useTime:()=>x,useTimer:()=>d});var i=r(155);class c{static expiryTimestamp(e){const t=new Date(e).getTime()>0;return t||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",e),t}static onExpire(e){const t=e&&"function"==typeof e;return e&&!t&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",e),t}}class a{static getTimeFromSeconds(e){const t=Math.ceil(e),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),s=Math.floor(t%3600/60);return{totalSeconds:t,seconds:Math.floor(t%60),minutes:s,hours:n,days:r}}static getSecondsFromExpiry(e,t){const r=e-(new Date).getTime();if(r>0){const e=r/1e3;return t?Math.round(e):e}return 0}static getSecondsFromPrevTime(e,t){const r=(new Date).getTime()-e;if(r>0){const e=r/1e3;return t?Math.round(e):e}return 0}static getSecondsFromTimeNow(){const e=new Date;return e.getTime()/1e3-60*e.getTimezoneOffset()}static getFormattedTimeFromSeconds(e,t){const{seconds:r,minutes:n,hours:s}=a.getTimeFromSeconds(e);let o="",i=s;return"12-hour"===t&&(o=s>=12?"pm":"am",i=s%12),{seconds:r,minutes:n,hours:i,ampm:o}}}function u(e,t){const r=(0,i.useRef)();(0,i.useEffect)((()=>{r.current=e})),(0,i.useEffect)((()=>{if(!t)return()=>{};const e=setInterval((()=>{r.current&&r.current()}),t);return()=>clearInterval(e)}),[t])}const l=1e3;function m(e){if(!c.expiryTimestamp(e))return null;const t=a.getSecondsFromExpiry(e),r=Math.floor(1e3*(t-Math.floor(t)));return r>0?r:l}function d(){let{expiryTimestamp:e,onExpire:t,autoStart:r=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,o]=(0,i.useState)(e),[d,p]=(0,i.useState)(a.getSecondsFromExpiry(n)),[x,f]=(0,i.useState)(r),[h,g]=(0,i.useState)(r),[y,b]=(0,i.useState)(m(n)),S=(0,i.useCallback)((()=>{c.onExpire(t)&&t(),f(!1),b(null)}),[t]),j=(0,i.useCallback)((()=>{f(!1)}),[]),v=(0,i.useCallback)((function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];b(m(e)),g(t),f(t),o(e),p(a.getSecondsFromExpiry(e))}),[]),T=(0,i.useCallback)((()=>{const e=new Date;e.setMilliseconds(e.getMilliseconds()+1e3*d),v(e)}),[d,v]),w=(0,i.useCallback)((()=>{h?(p(a.getSecondsFromExpiry(n)),f(!0)):T()}),[n,h,T]);return u((()=>{y!==l&&b(l);const e=a.getSecondsFromExpiry(n);p(e),e<=0&&S()}),x?y:null),s(s({},a.getTimeFromSeconds(d)),{},{start:w,pause:j,resume:T,restart:v,isRunning:x})}function p(){let{autoStart:e,offsetTimestamp:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,n]=(0,i.useState)(a.getSecondsFromExpiry(t,!0)||0),[o,c]=(0,i.useState)(new Date),[l,m]=(0,i.useState)(r+a.getSecondsFromPrevTime(o||0,!0)),[d,p]=(0,i.useState)(e);u((()=>{m(r+a.getSecondsFromPrevTime(o,!0))}),d?1e3:null);const x=(0,i.useCallback)((()=>{const e=new Date;c(e),p(!0),m(r+a.getSecondsFromPrevTime(e,!0))}),[r]),f=(0,i.useCallback)((()=>{n(l),p(!1)}),[l]),h=(0,i.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=a.getSecondsFromExpiry(e,!0)||0,s=new Date;c(s),n(r),p(t),m(r+a.getSecondsFromPrevTime(s,!0))}),[]);return s(s({},a.getTimeFromSeconds(l)),{},{start:x,pause:f,reset:h,isRunning:d})}function x(){let{format:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,r]=(0,i.useState)(a.getSecondsFromTimeNow());return u((()=>{r(a.getSecondsFromTimeNow())}),1e3),s({},a.getFormattedTimeFromSeconds(t,e))}function f(e){if((0,i.useEffect)((()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")}),[]),e.expiryTimestamp){const t=d(e);return s(s({},t),{},{startTimer:t.start,stopTimer:t.pause,resetTimer:()=>{}})}const t=p(e);return s(s({},t),{},{startTimer:t.start,stopTimer:t.pause,resetTimer:t.reset})}return o})())},73738:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,r)=>{var n=r(73738).default,s=r(89045);e.exports=function(e){var t=s(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,r)=>{var n=r(73738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}}]);