stp-ui-kit 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,71 +1,50 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react");var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ye={exports:{}},te={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var we;function De(){if(we)return te;we=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(d,u,l){var p=null;if(l!==void 0&&(p=""+l),u.key!==void 0&&(p=""+u.key),"key"in u){l={};for(var g in u)g!=="key"&&(l[g]=u[g])}else l=u;return u=l.ref,{$$typeof:t,type:d,key:p,ref:u!==void 0?u:null,props:l}}return te.Fragment=i,te.jsx=s,te.jsxs=s,te}var ne={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var xe;function Ie(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===C?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case V:return"Profiler";case R:return"StrictMode";case W:return"Suspense";case Y:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case I:return"Portal";case K:return(e.displayName||"Context")+".Provider";case fe:return(e._context.displayName||"Context")+".Consumer";case he:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oe:return c=e.displayName||null,c!==null?c:t(e.type)||"Memo";case J:c=e._payload,e=e._init;try{return t(e(c))}catch{}}return null}function i(e){return""+e}function s(e){try{i(e);var c=!1}catch{c=!0}if(c){c=console;var h=c.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return h.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),i(e)}}function d(e){if(e===H)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===J)return"<...>";try{var c=t(e);return c?"<"+c+">":"<...>"}catch{return"<...>"}}function u(){var e=w.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function p(e){if(U.call(e,"key")){var c=Object.getOwnPropertyDescriptor(e,"key").get;if(c&&c.isReactWarning)return!1}return e.key!==void 0}function g(e,c){function h(){o||(o=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",c))}h.isReactWarning=!0,Object.defineProperty(e,"key",{get:h,configurable:!0})}function $(){var e=t(this.type);return n[e]||(n[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function y(e,c,h,v,x,b,z,P){return h=b.ref,e={$$typeof:S,type:e,key:c,props:b,_owner:x},(h!==void 0?h:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:$}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,c,h,v,x,b,z,P){var j=c.children;if(j!==void 0)if(v)if(ie(j)){for(v=0;v<j.length;v++)k(j[v]);Object.freeze&&Object.freeze(j)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else k(j);if(U.call(c,"key")){j=t(e);var T=Object.keys(c).filter(function(L){return L!=="key"});v=0<T.length?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}",m[j+v]||(T=0<T.length?"{"+T.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,v,j,T,j),m[j+v]=!0)}if(j=null,h!==void 0&&(s(h),j=""+h),p(c)&&(s(c.key),j=""+c.key),"key"in c){h={};for(var O in c)O!=="key"&&(h[O]=c[O])}else h=c;return j&&g(h,typeof e=="function"?e.displayName||e.name||"Unknown":e),y(e,j,b,x,u(),h,z,P)}function k(e){typeof e=="object"&&e!==null&&e.$$typeof===S&&e._store&&(e._store.validated=1)}var D=M,S=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),K=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),w=D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,ie=Array.isArray,f=console.createTask?console.createTask:function(){return null};D={"react-stack-bottom-frame":function(e){return e()}};var o,n={},_=D["react-stack-bottom-frame"].bind(D,l)(),a=f(d(l)),m={};ne.Fragment=H,ne.jsx=function(e,c,h,v,x){var b=1e4>w.recentlyCreatedOwnerStacks++;return N(e,c,h,!1,v,x,b?Error("react-stack-top-frame"):_,b?f(d(e)):a)},ne.jsxs=function(e,c,h,v,x){var b=1e4>w.recentlyCreatedOwnerStacks++;return N(e,c,h,!0,v,x,b?Error("react-stack-top-frame"):_,b?f(d(e)):a)}}()),ne}process.env.NODE_ENV==="production"?ye.exports=De():ye.exports=Ie();var r=ye.exports,Ce={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),S=require("react");var ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye={exports:{}};/*!
23
2
  Copyright (c) 2018 Jed Watson.
24
3
  Licensed under the MIT License (MIT), see
25
4
  http://jedwatson.github.io/classnames
26
- */(function(t){(function(){var i={}.hasOwnProperty;function s(){for(var l="",p=0;p<arguments.length;p++){var g=arguments[p];g&&(l=u(l,d(g)))}return l}function d(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return s.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var p="";for(var g in l)i.call(l,g)&&l[g]&&(p=u(p,g));return p}function u(l,p){return p?l?l+" "+p:l+p:l}t.exports?(s.default=s,t.exports=s):window.classNames=s})()})(Ce);var Pe=Ce.exports;const A=je(Pe),Re="_typography_18a99_29",be={"shadow-0":"_shadow-0_18a99_1","shadow-100":"_shadow-100_18a99_5","shadow-200":"_shadow-200_18a99_9","shadow-300":"_shadow-300_18a99_13","shadow-400":"_shadow-400_18a99_17","shadow-500":"_shadow-500_18a99_21","shadow-600":"_shadow-600_18a99_25",typography:Re,"heading-xl":"_heading-xl_18a99_34","heading-lg":"_heading-lg_18a99_43","heading-md":"_heading-md_18a99_52","heading-sm":"_heading-sm_18a99_61","heading-xs":"_heading-xs_18a99_70","body-lg":"_body-lg_18a99_79","body-md":"_body-md_18a99_88","body-sm":"_body-sm_18a99_97"},E=({variant:t="body-md",className:i="",children:s})=>{const d=be[t]||"";return r.jsx("div",{className:A(be.typography,d,i),children:s})},ze="_container_cgftc_29",Le="_content_cgftc_40",qe="_title_cgftc_57",Ye="_timer_cgftc_68",Fe="_timerCell_cgftc_80",He="_timerCount_cgftc_87",Be="_pattern_cgftc_102",We="_button_cgftc_129",B={container:ze,content:Le,title:qe,timer:Ye,timerCell:Fe,timerCount:He,pattern:Be,button:We};var ke={exports:{}};(function(t,i){(function(s,d){t.exports=d()})(Ae,function(){var s=1e3,d=6e4,u=36e5,l="millisecond",p="second",g="minute",$="hour",y="day",N="week",k="month",D="quarter",S="year",I="date",H="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(f){var o=["th","st","nd","rd"],n=f%100;return"["+f+(o[(n-20)%10]||o[n]||o[0])+"]"}},K=function(f,o,n){var _=String(f);return!_||_.length>=o?f:""+Array(o+1-_.length).join(n)+f},he={s:K,z:function(f){var o=-f.utcOffset(),n=Math.abs(o),_=Math.floor(n/60),a=n%60;return(o<=0?"+":"-")+K(_,2,"0")+":"+K(a,2,"0")},m:function f(o,n){if(o.date()<n.date())return-f(n,o);var _=12*(n.year()-o.year())+(n.month()-o.month()),a=o.clone().add(_,k),m=n-a<0,e=o.clone().add(_+(m?-1:1),k);return+(-(_+(n-a)/(m?a-e:e-a))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:k,y:S,w:N,d:y,D:I,h:$,m:g,s:p,ms:l,Q:D}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},W="en",Y={};Y[W]=fe;var oe="$isDayjsObject",J=function(f){return f instanceof U||!(!f||!f[oe])},Z=function f(o,n,_){var a;if(!o)return W;if(typeof o=="string"){var m=o.toLowerCase();Y[m]&&(a=m),n&&(Y[m]=n,a=m);var e=o.split("-");if(!a&&e.length>1)return f(e[0])}else{var c=o.name;Y[c]=o,a=c}return!_&&a&&(W=a),a||!_&&W},C=function(f,o){if(J(f))return f.clone();var n=typeof o=="object"?o:{};return n.date=f,n.args=arguments,new U(n)},w=he;w.l=Z,w.i=J,w.w=function(f,o){return C(f,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var U=function(){function f(n){this.$L=Z(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[oe]=!0}var o=f.prototype;return o.parse=function(n){this.$d=function(_){var a=_.date,m=_.utc;if(a===null)return new Date(NaN);if(w.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var e=a.match(R);if(e){var c=e[2]-1||0,h=(e[7]||"0").substring(0,3);return m?new Date(Date.UTC(e[1],c,e[3]||1,e[4]||0,e[5]||0,e[6]||0,h)):new Date(e[1],c,e[3]||1,e[4]||0,e[5]||0,e[6]||0,h)}}return new Date(a)}(n),this.init()},o.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},o.$utils=function(){return w},o.isValid=function(){return this.$d.toString()!==H},o.isSame=function(n,_){var a=C(n);return this.startOf(_)<=a&&a<=this.endOf(_)},o.isAfter=function(n,_){return C(n)<this.startOf(_)},o.isBefore=function(n,_){return this.endOf(_)<C(n)},o.$g=function(n,_,a){return w.u(n)?this[_]:this.set(a,n)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(n,_){var a=this,m=!!w.u(_)||_,e=w.p(n),c=function(T,O){var L=w.w(a.$u?Date.UTC(a.$y,O,T):new Date(a.$y,O,T),a);return m?L:L.endOf(y)},h=function(T,O){return w.w(a.toDate()[T].apply(a.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(O)),a)},v=this.$W,x=this.$M,b=this.$D,z="set"+(this.$u?"UTC":"");switch(e){case S:return m?c(1,0):c(31,11);case k:return m?c(1,x):c(0,x+1);case N:var P=this.$locale().weekStart||0,j=(v<P?v+7:v)-P;return c(m?b-j:b+(6-j),x);case y:case I:return h(z+"Hours",0);case $:return h(z+"Minutes",1);case g:return h(z+"Seconds",2);case p:return h(z+"Milliseconds",3);default:return this.clone()}},o.endOf=function(n){return this.startOf(n,!1)},o.$set=function(n,_){var a,m=w.p(n),e="set"+(this.$u?"UTC":""),c=(a={},a[y]=e+"Date",a[I]=e+"Date",a[k]=e+"Month",a[S]=e+"FullYear",a[$]=e+"Hours",a[g]=e+"Minutes",a[p]=e+"Seconds",a[l]=e+"Milliseconds",a)[m],h=m===y?this.$D+(_-this.$W):_;if(m===k||m===S){var v=this.clone().set(I,1);v.$d[c](h),v.init(),this.$d=v.set(I,Math.min(this.$D,v.daysInMonth())).$d}else c&&this.$d[c](h);return this.init(),this},o.set=function(n,_){return this.clone().$set(n,_)},o.get=function(n){return this[w.p(n)]()},o.add=function(n,_){var a,m=this;n=Number(n);var e=w.p(_),c=function(x){var b=C(m);return w.w(b.date(b.date()+Math.round(x*n)),m)};if(e===k)return this.set(k,this.$M+n);if(e===S)return this.set(S,this.$y+n);if(e===y)return c(1);if(e===N)return c(7);var h=(a={},a[g]=d,a[$]=u,a[p]=s,a)[e]||1,v=this.$d.getTime()+n*h;return w.w(v,this)},o.subtract=function(n,_){return this.add(-1*n,_)},o.format=function(n){var _=this,a=this.$locale();if(!this.isValid())return a.invalidDate||H;var m=n||"YYYY-MM-DDTHH:mm:ssZ",e=w.z(this),c=this.$H,h=this.$m,v=this.$M,x=a.weekdays,b=a.months,z=a.meridiem,P=function(O,L,ee,ce){return O&&(O[L]||O(_,m))||ee[L].slice(0,ce)},j=function(O){return w.s(c%12||12,O,"0")},T=z||function(O,L,ee){var ce=O<12?"AM":"PM";return ee?ce.toLowerCase():ce};return m.replace(V,function(O,L){return L||function(ee){switch(ee){case"YY":return String(_.$y).slice(-2);case"YYYY":return w.s(_.$y,4,"0");case"M":return v+1;case"MM":return w.s(v+1,2,"0");case"MMM":return P(a.monthsShort,v,b,3);case"MMMM":return P(b,v);case"D":return _.$D;case"DD":return w.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return P(a.weekdaysMin,_.$W,x,2);case"ddd":return P(a.weekdaysShort,_.$W,x,3);case"dddd":return x[_.$W];case"H":return String(c);case"HH":return w.s(c,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return T(c,h,!0);case"A":return T(c,h,!1);case"m":return String(h);case"mm":return w.s(h,2,"0");case"s":return String(_.$s);case"ss":return w.s(_.$s,2,"0");case"SSS":return w.s(_.$ms,3,"0");case"Z":return e}return null}(O)||e.replace(":","")})},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(n,_,a){var m,e=this,c=w.p(_),h=C(n),v=(h.utcOffset()-this.utcOffset())*d,x=this-h,b=function(){return w.m(e,h)};switch(c){case S:m=b()/12;break;case k:m=b();break;case D:m=b()/3;break;case N:m=(x-v)/6048e5;break;case y:m=(x-v)/864e5;break;case $:m=x/u;break;case g:m=x/d;break;case p:m=x/s;break;default:m=x}return a?m:w.a(m)},o.daysInMonth=function(){return this.endOf(k).$D},o.$locale=function(){return Y[this.$L]},o.locale=function(n,_){if(!n)return this.$L;var a=this.clone(),m=Z(n,_,!0);return m&&(a.$L=m),a},o.clone=function(){return w.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},f}(),ie=U.prototype;return C.prototype=ie,[["$ms",l],["$s",p],["$m",g],["$H",$],["$W",y],["$M",k],["$y",S],["$D",I]].forEach(function(f){ie[f[1]]=function(o){return this.$g(o,f[0],f[1])}}),C.extend=function(f,o){return f.$i||(f(o,U,C),f.$i=!0),C},C.locale=Z,C.isDayjs=J,C.unix=function(f){return C(1e3*f)},C.en=Y[W],C.Ls=Y,C.p={},C})})(ke);var Ue=ke.exports;const Ve=je(Ue),Je=t=>{const i=Ve(t),s=i.date(),d=s===1||s===21||s===31?"st":s===2||s===22?"nd":s===3||s===23?"rd":"th";return`${i.format("MMMM D, HH:mm").replace(s.toString(),`${s}${d}`)} (UTC +5)`},Ze=({color:t,title:i,bgPattern:s,deadline:d,bgPatternFinished:u,buttonColor:l,onClick:p})=>{const[g,$]=M.useState(!1),[y,N]=M.useState({days:0,hours:0,minutes:0,seconds:0});M.useEffect(()=>{const D=new Date(d),S=R=>({days:Math.floor(R/(1e3*60*60*24)),hours:Math.floor(R/(1e3*60*60)%24),minutes:Math.floor(R/(1e3*60)%60),seconds:Math.floor(R/1e3%60)}),I=()=>{const R=Date.now(),V=D.getTime()-R;V<=0?($(!0),N({days:0,hours:0,minutes:0,seconds:0})):N(S(V))};I();const H=setInterval(I,1e3);return()=>clearInterval(H)},[d]);const k=(D,S)=>r.jsxs("div",{className:B.timerCell,children:[r.jsx(E,{variant:"heading-lg",className:B.timerCount,children:D}),S]});return r.jsxs("div",{className:B.container,style:{backgroundColor:t},children:[r.jsxs("div",{className:B.content,children:[r.jsxs("div",{className:B.title,children:[r.jsx(E,{variant:"heading-md",children:i}),r.jsx(E,{variant:"body-md",children:Je(d)})]}),r.jsxs("div",{className:B.timer,children:[k(y.days,"Days"),k(y.hours,"Hours"),k(y.minutes,"Minutes"),k(y.seconds,"Seconds")]})]}),r.jsx("div",{className:B.pattern,style:{"--pattern-color":t,"--pattern-url":`url(${g?u??s:s})`},children:g&&r.jsx("button",{className:B.button,style:{backgroundColor:l},onClick:p,children:r.jsx(E,{variant:"heading-md",children:"Start"})})})]})},Ge="_btn_12gio_29",Xe="_small_12gio_44",Qe="_medium_12gio_47",Ke="_large_12gio_50",et="_primary_12gio_71",tt="_tertiary_12gio_87",nt="_plain_12gio_102",le={"shadow-0":"_shadow-0_12gio_1","shadow-100":"_shadow-100_12gio_5","shadow-200":"_shadow-200_12gio_9","shadow-300":"_shadow-300_12gio_13","shadow-400":"_shadow-400_12gio_17","shadow-500":"_shadow-500_12gio_21","shadow-600":"_shadow-600_12gio_25",btn:Ge,small:Xe,medium:Qe,large:Ke,default:"_default_12gio_53","default-selected":"_default-selected_12gio_64",primary:et,"primary-selected":"_primary-selected_12gio_81",tertiary:tt,"tertiary-selected":"_tertiary-selected_12gio_96",plain:nt,"plain-selected":"_plain-selected_12gio_113"},rt=({state:t="default",size:i="medium",selected:s=!1,disabled:d=!1,children:u,onClick:l=()=>{},className:p="",...g})=>{const $=A(le.btn,le[t],le[i],{[le[`${t}-selected`]]:s},p);return r.jsx("button",{className:$,onClick:l,disabled:d,...g,children:u})};/**
5
+ */(function(e){(function(){var o={}.hasOwnProperty;function a(){for(var c="",f=0;f<arguments.length;f++){var g=arguments[f];g&&(c=d(c,i(g)))}return c}function i(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return a.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var f="";for(var g in c)o.call(c,g)&&c[g]&&(f=d(f,g));return f}function d(c,f){return f?c?c+" "+f:c+f:c}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(ye);var Se=ye.exports;const k=pe(Se),Oe="_typography_18a99_29",fe={"shadow-0":"_shadow-0_18a99_1","shadow-100":"_shadow-100_18a99_5","shadow-200":"_shadow-200_18a99_9","shadow-300":"_shadow-300_18a99_13","shadow-400":"_shadow-400_18a99_17","shadow-500":"_shadow-500_18a99_21","shadow-600":"_shadow-600_18a99_25",typography:Oe,"heading-xl":"_heading-xl_18a99_34","heading-lg":"_heading-lg_18a99_43","heading-md":"_heading-md_18a99_52","heading-sm":"_heading-sm_18a99_61","heading-xs":"_heading-xs_18a99_70","body-lg":"_body-lg_18a99_79","body-md":"_body-md_18a99_88","body-sm":"_body-sm_18a99_97"},N=({variant:e="body-md",className:o="",children:a})=>{const i=fe[e]||"";return n.jsx("div",{className:k(fe.typography,i,o),children:a})},De="_container_cgftc_29",Ie="_content_cgftc_40",ze="_title_cgftc_57",Le="_timer_cgftc_68",Ae="_timerCell_cgftc_80",qe="_timerCount_cgftc_87",He="_pattern_cgftc_102",Te="_button_cgftc_129",H={container:De,content:Ie,title:ze,timer:Le,timerCell:Ae,timerCount:qe,pattern:He,button:Te};var ve={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(ke,function(){var a=1e3,i=6e4,d=36e5,c="millisecond",f="second",g="minute",$="hour",m="day",b="week",j="month",F="quarter",O="year",z="date",X="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ne={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var r=["th","st","nd","rd"],t=_%100;return"["+_+(r[(t-20)%10]||r[t]||r[0])+"]"}},ie=function(_,r,t){var l=String(_);return!l||l.length>=r?_:""+Array(r+1-l.length).join(t)+_},Me={s:ie,z:function(_){var r=-_.utcOffset(),t=Math.abs(r),l=Math.floor(t/60),s=t%60;return(r<=0?"+":"-")+ie(l,2,"0")+":"+ie(s,2,"0")},m:function _(r,t){if(r.date()<t.date())return-_(t,r);var l=12*(t.year()-r.year())+(t.month()-r.month()),s=r.clone().add(l,j),u=t-s<0,h=r.clone().add(l+(u?-1:1),j);return+(-(l+(t-s)/(u?s-h:h-s))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:j,y:O,w:b,d:m,D:z,h:$,m:g,s:f,ms:c,Q:F}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},Z="en",T={};T[Z]=Ne;var he="$isDayjsObject",ce=function(_){return _ instanceof te||!(!_||!_[he])},ee=function _(r,t,l){var s;if(!r)return Z;if(typeof r=="string"){var u=r.toLowerCase();T[u]&&(s=u),t&&(T[u]=t,s=u);var h=r.split("-");if(!s&&h.length>1)return _(h[0])}else{var y=r.name;T[y]=r,s=y}return!l&&s&&(Z=s),s||!l&&Z},w=function(_,r){if(ce(_))return _.clone();var t=typeof r=="object"?r:{};return t.date=_,t.args=arguments,new te(t)},p=Me;p.l=ee,p.i=ce,p.w=function(_,r){return w(_,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var te=function(){function _(t){this.$L=ee(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[he]=!0}var r=_.prototype;return r.parse=function(t){this.$d=function(l){var s=l.date,u=l.utc;if(s===null)return new Date(NaN);if(p.u(s))return new Date;if(s instanceof Date)return new Date(s);if(typeof s=="string"&&!/Z$/i.test(s)){var h=s.match(A);if(h){var y=h[2]-1||0,v=(h[7]||"0").substring(0,3);return u?new Date(Date.UTC(h[1],y,h[3]||1,h[4]||0,h[5]||0,h[6]||0,v)):new Date(h[1],y,h[3]||1,h[4]||0,h[5]||0,h[6]||0,v)}}return new Date(s)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return p},r.isValid=function(){return this.$d.toString()!==X},r.isSame=function(t,l){var s=w(t);return this.startOf(l)<=s&&s<=this.endOf(l)},r.isAfter=function(t,l){return w(t)<this.startOf(l)},r.isBefore=function(t,l){return this.endOf(l)<w(t)},r.$g=function(t,l,s){return p.u(t)?this[l]:this.set(s,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,l){var s=this,u=!!p.u(l)||l,h=p.p(t),y=function(P,M){var q=p.w(s.$u?Date.UTC(s.$y,M,P):new Date(s.$y,M,P),s);return u?q:q.endOf(m)},v=function(P,M){return p.w(s.toDate()[P].apply(s.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(M)),s)},x=this.$W,C=this.$M,D=this.$D,Y="set"+(this.$u?"UTC":"");switch(h){case O:return u?y(1,0):y(31,11);case j:return u?y(1,C):y(0,C+1);case b:var B=this.$locale().weekStart||0,J=(x<B?x+7:x)-B;return y(u?D-J:D+(6-J),C);case m:case z:return v(Y+"Hours",0);case $:return v(Y+"Minutes",1);case g:return v(Y+"Seconds",2);case f:return v(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,l){var s,u=p.p(t),h="set"+(this.$u?"UTC":""),y=(s={},s[m]=h+"Date",s[z]=h+"Date",s[j]=h+"Month",s[O]=h+"FullYear",s[$]=h+"Hours",s[g]=h+"Minutes",s[f]=h+"Seconds",s[c]=h+"Milliseconds",s)[u],v=u===m?this.$D+(l-this.$W):l;if(u===j||u===O){var x=this.clone().set(z,1);x.$d[y](v),x.init(),this.$d=x.set(z,Math.min(this.$D,x.daysInMonth())).$d}else y&&this.$d[y](v);return this.init(),this},r.set=function(t,l){return this.clone().$set(t,l)},r.get=function(t){return this[p.p(t)]()},r.add=function(t,l){var s,u=this;t=Number(t);var h=p.p(l),y=function(C){var D=w(u);return p.w(D.date(D.date()+Math.round(C*t)),u)};if(h===j)return this.set(j,this.$M+t);if(h===O)return this.set(O,this.$y+t);if(h===m)return y(1);if(h===b)return y(7);var v=(s={},s[g]=i,s[$]=d,s[f]=a,s)[h]||1,x=this.$d.getTime()+t*v;return p.w(x,this)},r.subtract=function(t,l){return this.add(-1*t,l)},r.format=function(t){var l=this,s=this.$locale();if(!this.isValid())return s.invalidDate||X;var u=t||"YYYY-MM-DDTHH:mm:ssZ",h=p.z(this),y=this.$H,v=this.$m,x=this.$M,C=s.weekdays,D=s.months,Y=s.meridiem,B=function(M,q,V,ne){return M&&(M[q]||M(l,u))||V[q].slice(0,ne)},J=function(M){return p.s(y%12||12,M,"0")},P=Y||function(M,q,V){var ne=M<12?"AM":"PM";return V?ne.toLowerCase():ne};return u.replace(R,function(M,q){return q||function(V){switch(V){case"YY":return String(l.$y).slice(-2);case"YYYY":return p.s(l.$y,4,"0");case"M":return x+1;case"MM":return p.s(x+1,2,"0");case"MMM":return B(s.monthsShort,x,D,3);case"MMMM":return B(D,x);case"D":return l.$D;case"DD":return p.s(l.$D,2,"0");case"d":return String(l.$W);case"dd":return B(s.weekdaysMin,l.$W,C,2);case"ddd":return B(s.weekdaysShort,l.$W,C,3);case"dddd":return C[l.$W];case"H":return String(y);case"HH":return p.s(y,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return P(y,v,!0);case"A":return P(y,v,!1);case"m":return String(v);case"mm":return p.s(v,2,"0");case"s":return String(l.$s);case"ss":return p.s(l.$s,2,"0");case"SSS":return p.s(l.$ms,3,"0");case"Z":return h}return null}(M)||h.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,l,s){var u,h=this,y=p.p(l),v=w(t),x=(v.utcOffset()-this.utcOffset())*i,C=this-v,D=function(){return p.m(h,v)};switch(y){case O:u=D()/12;break;case j:u=D();break;case F:u=D()/3;break;case b:u=(C-x)/6048e5;break;case m:u=(C-x)/864e5;break;case $:u=C/d;break;case g:u=C/i;break;case f:u=C/a;break;default:u=C}return s?u:p.a(u)},r.daysInMonth=function(){return this.endOf(j).$D},r.$locale=function(){return T[this.$L]},r.locale=function(t,l){if(!t)return this.$L;var s=this.clone(),u=ee(t,l,!0);return u&&(s.$L=u),s},r.clone=function(){return p.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},_}(),me=te.prototype;return w.prototype=me,[["$ms",c],["$s",f],["$m",g],["$H",$],["$W",m],["$M",j],["$y",O],["$D",z]].forEach(function(_){me[_[1]]=function(r){return this.$g(r,_[0],_[1])}}),w.extend=function(_,r){return _.$i||(_(r,te,w),_.$i=!0),w},w.locale=ee,w.isDayjs=ce,w.unix=function(_){return w(1e3*_)},w.en=T[Z],w.Ls=T,w.p={},w})})(ve);var Be=ve.exports;const Pe=pe(Be),Fe=e=>{const o=Pe(e),a=o.date(),i=a===1||a===21||a===31?"st":a===2||a===22?"nd":a===3||a===23?"rd":"th";return`${o.format("MMMM D, HH:mm").replace(a.toString(),`${a}${i}`)} (UTC +5)`},Ye=({color:e,title:o,bgPattern:a,deadline:i,bgPatternFinished:d,buttonColor:c,onClick:f})=>{const[g,$]=S.useState(!1),[m,b]=S.useState({days:0,hours:0,minutes:0,seconds:0});S.useEffect(()=>{const F=new Date(i),O=A=>({days:Math.floor(A/(1e3*60*60*24)),hours:Math.floor(A/(1e3*60*60)%24),minutes:Math.floor(A/(1e3*60)%60),seconds:Math.floor(A/1e3%60)}),z=()=>{const A=Date.now(),R=F.getTime()-A;R<=0?($(!0),b({days:0,hours:0,minutes:0,seconds:0})):b(O(R))};z();const X=setInterval(z,1e3);return()=>clearInterval(X)},[i]);const j=(F,O)=>n.jsxs("div",{className:H.timerCell,children:[n.jsx(N,{variant:"heading-lg",className:H.timerCount,children:F}),O]});return n.jsxs("div",{className:H.container,style:{backgroundColor:e},children:[n.jsxs("div",{className:H.content,children:[n.jsxs("div",{className:H.title,children:[n.jsx(N,{variant:"heading-md",children:o}),n.jsx(N,{variant:"body-md",children:Fe(i)})]}),n.jsxs("div",{className:H.timer,children:[j(m.days,"Days"),j(m.hours,"Hours"),j(m.minutes,"Minutes"),j(m.seconds,"Seconds")]})]}),n.jsx("div",{className:H.pattern,style:{"--pattern-color":e,"--pattern-url":`url(${g?d??a:a})`},children:g&&n.jsx("button",{className:H.button,style:{backgroundColor:c},onClick:f,children:n.jsx(N,{variant:"heading-md",children:"Start"})})})]})},We="_btn_12gio_29",Ee="_small_12gio_44",Ue="_medium_12gio_47",Ze="_large_12gio_50",Je="_primary_12gio_71",Ve="_tertiary_12gio_87",Ge="_plain_12gio_102",se={"shadow-0":"_shadow-0_12gio_1","shadow-100":"_shadow-100_12gio_5","shadow-200":"_shadow-200_12gio_9","shadow-300":"_shadow-300_12gio_13","shadow-400":"_shadow-400_12gio_17","shadow-500":"_shadow-500_12gio_21","shadow-600":"_shadow-600_12gio_25",btn:We,small:Ee,medium:Ue,large:Ze,default:"_default_12gio_53","default-selected":"_default-selected_12gio_64",primary:Je,"primary-selected":"_primary-selected_12gio_81",tertiary:Ve,"tertiary-selected":"_tertiary-selected_12gio_96",plain:Ge,"plain-selected":"_plain-selected_12gio_113"},Ke=({state:e="default",size:o="medium",selected:a=!1,disabled:i=!1,children:d,onClick:c=()=>{},className:f="",...g})=>{const $=k(se.btn,se[e],se[o],{[se[`${e}-selected`]]:a},f);return n.jsx("button",{className:$,onClick:c,disabled:i,...g,children:d})};/**
27
6
  * @license lucide-react v0.511.0 - ISC
28
7
  *
29
8
  * This source code is licensed under the ISC license.
30
9
  * See the LICENSE file in the root directory of this source tree.
31
- */const st=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),at=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,d)=>d?d.toUpperCase():s.toLowerCase()),$e=t=>{const i=at(t);return i.charAt(0).toUpperCase()+i.slice(1)},Ne=(...t)=>t.filter((i,s,d)=>!!i&&i.trim()!==""&&d.indexOf(i)===s).join(" ").trim(),ot=t=>{for(const i in t)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
10
+ */const Qe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,a,i)=>i?i.toUpperCase():a.toLowerCase()),ge=e=>{const o=Xe(e);return o.charAt(0).toUpperCase()+o.slice(1)},$e=(...e)=>e.filter((o,a,i)=>!!o&&o.trim()!==""&&i.indexOf(o)===a).join(" ").trim(),Re=e=>{for(const o in e)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};/**
32
11
  * @license lucide-react v0.511.0 - ISC
33
12
  *
34
13
  * This source code is licensed under the ISC license.
35
14
  * See the LICENSE file in the root directory of this source tree.
36
- */var it={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
15
+ */var et={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
37
16
  * @license lucide-react v0.511.0 - ISC
38
17
  *
39
18
  * This source code is licensed under the ISC license.
40
19
  * See the LICENSE file in the root directory of this source tree.
41
- */const ct=M.forwardRef(({color:t="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:d,className:u="",children:l,iconNode:p,...g},$)=>M.createElement("svg",{ref:$,...it,width:i,height:i,stroke:t,strokeWidth:d?Number(s)*24/Number(i):s,className:Ne("lucide",u),...!l&&!ot(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,N])=>M.createElement(y,N)),...Array.isArray(l)?l:[l]]));/**
20
+ */const tt=S.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:f,...g},$)=>S.createElement("svg",{ref:$,...et,width:o,height:o,stroke:e,strokeWidth:i?Number(a)*24/Number(o):a,className:$e("lucide",d),...!c&&!Re(g)&&{"aria-hidden":"true"},...g},[...f.map(([m,b])=>S.createElement(m,b)),...Array.isArray(c)?c:[c]]));/**
42
21
  * @license lucide-react v0.511.0 - ISC
43
22
  *
44
23
  * This source code is licensed under the ISC license.
45
24
  * See the LICENSE file in the root directory of this source tree.
46
- */const ae=(t,i)=>{const s=M.forwardRef(({className:d,...u},l)=>M.createElement(ct,{ref:l,iconNode:i,className:Ne(`lucide-${st($e(t))}`,`lucide-${t}`,d),...u}));return s.displayName=$e(t),s};/**
25
+ */const Q=(e,o)=>{const a=S.forwardRef(({className:i,...d},c)=>S.createElement(tt,{ref:c,iconNode:o,className:$e(`lucide-${Qe(ge(e))}`,`lucide-${e}`,i),...d}));return a.displayName=ge(e),a};/**
47
26
  * @license lucide-react v0.511.0 - ISC
48
27
  *
49
28
  * This source code is licensed under the ISC license.
50
29
  * See the LICENSE file in the root directory of this source tree.
51
- */const lt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],dt=ae("check-check",lt);/**
30
+ */const nt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],st=Q("check-check",nt);/**
52
31
  * @license lucide-react v0.511.0 - ISC
53
32
  *
54
33
  * This source code is licensed under the ISC license.
55
34
  * See the LICENSE file in the root directory of this source tree.
56
- */const ut=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Oe=ae("chevron-down",ut);/**
35
+ */const rt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],we=Q("chevron-down",rt);/**
57
36
  * @license lucide-react v0.511.0 - ISC
58
37
  *
59
38
  * This source code is licensed under the ISC license.
60
39
  * See the LICENSE file in the root directory of this source tree.
61
- */const _t=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Se=ae("chevron-up",_t);/**
40
+ */const at=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xe=Q("chevron-up",at);/**
62
41
  * @license lucide-react v0.511.0 - ISC
63
42
  *
64
43
  * This source code is licensed under the ISC license.
65
44
  * See the LICENSE file in the root directory of this source tree.
66
- */const ft=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ht=ae("circle-alert",ft);/**
45
+ */const ot=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],it=Q("circle-alert",ot);/**
67
46
  * @license lucide-react v0.511.0 - ISC
68
47
  *
69
48
  * This source code is licensed under the ISC license.
70
49
  * See the LICENSE file in the root directory of this source tree.
71
- */const mt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pt=ae("x",mt),gt="_navigationItem_1uz1o_29",yt="_container_1uz1o_45",vt="_IconContainer_1uz1o_51",wt="_ParentLine_1uz1o_57",xt="_secondaryIcon_1uz1o_69",bt="_active_1uz1o_80",$t="_collapsed_1uz1o_88",jt="_label_1uz1o_92",F={navigationItem:gt,container:yt,IconContainer:vt,ParentLine:wt,secondaryIcon:xt,active:bt,collapsed:$t,label:jt},se=({icon:t,label:i,secondaryIcon:s,collapsed:d=!1,active:u=!1,isParentNode:l=!1,onClick:p,className:g})=>r.jsxs("div",{className:A(F.navigationItem,u&&F.active,g),onClick:p,children:[r.jsxs("div",{className:F.container,children:[r.jsxs("div",{className:F.IconContainer,children:[t,l&&r.jsx("img",{src:"/assets/icons/ParentLine.svg",alt:"Arrow Indicator",className:F.ParentLine})]}),r.jsx(E,{variant:"body-md",className:A(d&&F.collapsed,F.label),children:i})]}),s&&r.jsx("div",{className:A(F.secondaryIcon,d&&F.collapsed),children:s})]}),Ct="_ArrowContainer_i9cnp_29",kt="_active_i9cnp_44",Nt="_arrowBlock_i9cnp_54",Ot="_isOpen_i9cnp_58",re={ArrowContainer:Ct,active:kt,arrowBlock:Nt,isOpen:Ot},St=({activeItemId:t,onChange:i,item:s})=>{var g,$;const d=(g=s.children)==null?void 0:g.findIndex(y=>y.id===t),[u,l]=M.useState(d!==-1),p=()=>{s.children&&l(!u),i(s)};return r.jsxs("div",{children:[r.jsx(se,{icon:s.icon,label:s.name,secondaryIcon:u?r.jsx(Se,{size:20}):r.jsx(Oe,{size:20}),onClick:p,isParentNode:u&&d!==-1,active:d!==-1&&!u,className:A(u&&d===-1&&re.isOpen)}),r.jsx("div",{className:re.childContainer,children:u&&(($=s.children)==null?void 0:$.map((y,N)=>r.jsxs("div",{className:A(re.ArrowContainer,t===y.id?re.active:""),onClick:()=>i(y),children:[r.jsxs("div",{className:re.arrowBlock,children:[d===N&&r.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),N<(d??-1)&&r.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),r.jsx(se,{icon:y.icon,label:y.name,active:y.id===t})]},y.id)))})]})},Et="_ArrowContainer_17ds0_29",Tt="_iconCheck_17ds0_37",Mt="_active_17ds0_47",At="_arrowBlock_17ds0_57",Dt="_isOpen_17ds0_61",G={ArrowContainer:Et,iconCheck:Tt,active:Mt,arrowBlock:At,isOpen:Dt},It=({activeItemId:t,onChange:i,item:s})=>{var g,$;const d=(g=s.children)==null?void 0:g.findIndex(y=>y.id===t),[u,l]=M.useState(d!==-1),p=()=>{s.children&&l(!u),i(s)};return r.jsxs("div",{children:[r.jsx(se,{icon:s.icon,label:s.name,secondaryIcon:u?r.jsx(Se,{size:20}):r.jsx(Oe,{size:20}),onClick:p,isParentNode:u&&d!==-1,active:d!==-1&&!u,className:A(u&&d===-1&&G.isOpen)}),r.jsx("div",{className:G.childContainer,children:u&&(($=s.children)==null?void 0:$.map((y,N)=>r.jsxs("div",{className:A(G.ArrowContainer,t===y.id?G.active:""),onClick:()=>i(y),children:[r.jsxs("div",{className:G.arrowBlock,children:[d===N&&r.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),N<(d??-1)&&r.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),r.jsx(se,{icon:y.icon,label:y.name,active:y.id===t,secondaryIcon:y.completed&&r.jsx(dt,{size:20,className:G.iconCheck})},y.id)]},y.id)))})]})},Pt="_emptyContainer_tmvlz_29",Rt={emptyContainer:Pt},zt=({children:t,className:i=""})=>r.jsx("div",{className:`${Rt.emptyContainer} ${i}`,children:t}),Lt="_formItem_96xeh_29",qt="_critical_96xeh_36",Yt="_message_96xeh_40",Ft="_error_96xeh_46",Ht="_label_96xeh_50",Bt="_disabled_96xeh_53",Wt="_readOnly_96xeh_56",Ut="_input_96xeh_60",q={"shadow-0":"_shadow-0_96xeh_1","shadow-100":"_shadow-100_96xeh_5","shadow-200":"_shadow-200_96xeh_9","shadow-300":"_shadow-300_96xeh_13","shadow-400":"_shadow-400_96xeh_17","shadow-500":"_shadow-500_96xeh_21","shadow-600":"_shadow-600_96xeh_25",formItem:Lt,critical:qt,message:Yt,error:Ft,label:Ht,disabled:Bt,readOnly:Wt,input:Ut},Ee=M.createContext({state:"default"}),ve=()=>M.useContext(Ee),ue=({children:t,error:i,disabled:s,readOnly:d})=>{let u="default";return i?u="error":s?u="disabled":d&&(u="readOnly"),r.jsx(Ee.Provider,{value:{state:u},children:r.jsx("div",{className:q.formItem,children:t})})},Vt=({children:t})=>{const{state:i}=ve();return r.jsx("label",{className:A(q.label,i==="disabled"&&q.disabled,i==="readOnly"&&q.readOnly),children:t})},Te=M.forwardRef(({as:t="input",className:i,...s},d)=>{const{state:u}=ve();return r.jsx(t,{ref:d,className:A(q.input,q[u],i),disabled:u==="disabled",readOnly:u==="readOnly",...s})});Te.displayName="FormItem.Input";const Jt=({children:t})=>{const{state:i}=ve();return t?r.jsxs("div",{className:A(q.message,i==="error"?q.error:q.default),children:[i==="error"&&r.jsx(ht,{className:q.critical}),t]}):null};ue.Label=Vt;ue.Input=Te;ue.Message=Jt;const Zt="_btn_z8qng_29",Gt="_small_z8qng_42",Xt="_medium_z8qng_45",Qt="_large_z8qng_48",Kt="_primary_z8qng_69",en="_tertiary_z8qng_85",tn="_plain_z8qng_100",de={"shadow-0":"_shadow-0_z8qng_1","shadow-100":"_shadow-100_z8qng_5","shadow-200":"_shadow-200_z8qng_9","shadow-300":"_shadow-300_z8qng_13","shadow-400":"_shadow-400_z8qng_17","shadow-500":"_shadow-500_z8qng_21","shadow-600":"_shadow-600_z8qng_25",btn:Zt,small:Gt,medium:Xt,large:Qt,default:"_default_z8qng_51","default-selected":"_default-selected_z8qng_62",primary:Kt,"primary-selected":"_primary-selected_z8qng_79",tertiary:en,"tertiary-selected":"_tertiary-selected_z8qng_94",plain:tn,"plain-selected":"_plain-selected_z8qng_111"},Me=({state:t="default",size:i="medium",selected:s=!1,disabled:d=!1,children:u,onClick:l=()=>{},className:p="",...g})=>{const $=A(de.btn,de[t],de[i],{[de[`${t}-selected`]]:s},p);return r.jsx("button",{className:$,onClick:l,disabled:d,...g,children:u})},nn="_modalLayout_1jmpu_29",rn="_modalContainer_1jmpu_40",sn="_header_1jmpu_64",an="_close_1jmpu_73",on="_content_1jmpu_83",cn="_footer_1jmpu_91",Q={modalLayout:nn,modalContainer:rn,header:sn,close:an,content:on,footer:cn},_e=({open:t,onClose:i,children:s})=>t?r.jsx("div",{className:Q.modalLayout,onClick:i,children:r.jsx("div",{className:Q.modalContainer,onClick:d=>d.stopPropagation(),children:s})}):null,ln=({children:t,onClose:i})=>r.jsxs("div",{className:Q.header,children:[r.jsx(E,{variant:"heading-sm",children:t}),r.jsx(Me,{size:"small",state:"default",className:Q.close,onClick:i,children:r.jsx(pt,{})})]}),dn=({children:t})=>r.jsx(E,{variant:"body-md",className:Q.content,children:t}),un=({children:t})=>r.jsx("div",{className:Q.footer,children:t});_e.Header=ln;_e.Content=dn;_e.Footer=un;const _n="_pageHeader_1lrq1_29",fn="_mg_1lrq1_38",hn="_lg_1lrq1_39",me={pageHeader:_n,mg:fn,lg:hn},mn=({children:t})=>r.jsxs("header",{className:me.pageHeader,children:[r.jsx(E,{variant:"heading-xl",className:me.lg,children:t}),r.jsx(E,{variant:"heading-md",className:me.mg,children:t})]}),pn="_container_1g19z_29",gn="_line_1g19z_35",yn="_progress_1g19z_41",pe={container:pn,line:gn,progress:yn},vn=({percent:t})=>r.jsx("div",{className:pe.container,children:r.jsx("div",{className:pe.line,children:r.jsx("div",{className:pe.progress,style:{width:`${t}%`}})})}),wn="_container_1gn8d_29",xn="_notMobile_1gn8d_38",bn="_mobile_1gn8d_47",ge={container:wn,notMobile:xn,mobile:bn},$n=({title:t,extra:i})=>r.jsxs("div",{className:ge.container,children:[r.jsx(E,{variant:"heading-md",className:ge.notMobile,children:t}),r.jsx(E,{variant:"heading-sm",className:ge.mobile,children:t}),i]}),jn="_topBar_xnlee_29",Cn="_section_xnlee_66",kn="_scretched_xnlee_73",Nn="_active_xnlee_90",On="_sm_xnlee_99",Sn="_md_xnlee_100",X={topBar:jn,section:Cn,scretched:kn,active:Nn,sm:On,md:Sn},En=({sections:t,activeTab:i,onTabSelect:s,isStretched:d=!0})=>{var u;return r.jsxs("div",{children:[r.jsx("div",{className:X.topBar,children:t.map(l=>r.jsxs("div",{className:A(X.section,d&&X.scretched,i===l.id&&X.active),onClick:()=>s(l.id),children:[r.jsx(E,{variant:"heading-xs",className:X.sm,children:l.title}),r.jsx(E,{variant:"heading-md",className:X.md,children:l.title})]},l.id))}),((u=t.find(l=>l.id===i))==null?void 0:u.component)??r.jsx(E,{variant:"body-lg",children:"Not Found"})]})};exports.Banner=Ze;exports.Button=rt;exports.Collapse=St;exports.CourseCollapse=It;exports.Empty=zt;exports.FormItem=ue;exports.IconButton=Me;exports.Modal=_e;exports.NavigationItem=se;exports.PageHeader=mn;exports.ProgressLine=vn;exports.SectionHeader=$n;exports.TopBar=En;exports.Typography=E;
50
+ */const ct=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lt=Q("x",ct),dt="_navigationItem_1uz1o_29",_t="_container_1uz1o_45",ut="_IconContainer_1uz1o_51",ht="_ParentLine_1uz1o_57",mt="_secondaryIcon_1uz1o_69",ft="_active_1uz1o_80",gt="_collapsed_1uz1o_88",pt="_label_1uz1o_92",L={navigationItem:dt,container:_t,IconContainer:ut,ParentLine:ht,secondaryIcon:mt,active:ft,collapsed:gt,label:pt},K=({icon:e,label:o,secondaryIcon:a,collapsed:i=!1,active:d=!1,isParentNode:c=!1,onClick:f,className:g})=>n.jsxs("div",{className:k(L.navigationItem,d&&L.active,g),onClick:f,children:[n.jsxs("div",{className:L.container,children:[n.jsxs("div",{className:L.IconContainer,children:[e,c&&n.jsx("img",{src:"/assets/icons/ParentLine.svg",alt:"Arrow Indicator",className:L.ParentLine})]}),n.jsx(N,{variant:"body-md",className:k(i&&L.collapsed,L.label),children:o})]}),a&&n.jsx("div",{className:k(L.secondaryIcon,i&&L.collapsed),children:a})]}),yt="_ArrowContainer_i9cnp_29",vt="_active_i9cnp_44",$t="_arrowBlock_i9cnp_54",wt="_isOpen_i9cnp_58",G={ArrowContainer:yt,active:vt,arrowBlock:$t,isOpen:wt},xt=({activeItemId:e,onChange:o,item:a})=>{var g,$;const i=(g=a.children)==null?void 0:g.findIndex(m=>m.id===e),[d,c]=S.useState(i!==-1),f=()=>{a.children&&c(!d),o(a)};return n.jsxs("div",{children:[n.jsx(K,{icon:a.icon,label:a.name,secondaryIcon:d?n.jsx(xe,{size:20}):n.jsx(we,{size:20}),onClick:f,isParentNode:d&&i!==-1,active:i!==-1&&!d,className:k(d&&i===-1&&G.isOpen)}),n.jsx("div",{className:G.childContainer,children:d&&(($=a.children)==null?void 0:$.map((m,b)=>n.jsxs("div",{className:k(G.ArrowContainer,e===m.id?G.active:""),onClick:()=>o(m),children:[n.jsxs("div",{className:G.arrowBlock,children:[i===b&&n.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),b<(i??-1)&&n.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),n.jsx(K,{icon:m.icon,label:m.name,active:m.id===e})]},m.id)))})]})},jt="_ArrowContainer_17ds0_29",Ct="_iconCheck_17ds0_37",bt="_active_17ds0_47",Nt="_arrowBlock_17ds0_57",Mt="_isOpen_17ds0_61",W={ArrowContainer:jt,iconCheck:Ct,active:bt,arrowBlock:Nt,isOpen:Mt},kt=({activeItemId:e,onChange:o,item:a})=>{var g,$;const i=(g=a.children)==null?void 0:g.findIndex(m=>m.id===e),[d,c]=S.useState(i!==-1),f=()=>{a.children&&c(!d),o(a)};return n.jsxs("div",{children:[n.jsx(K,{icon:a.icon,label:a.name,secondaryIcon:d?n.jsx(xe,{size:20}):n.jsx(we,{size:20}),onClick:f,isParentNode:d&&i!==-1,active:i!==-1&&!d,className:k(d&&i===-1&&W.isOpen)}),n.jsx("div",{className:W.childContainer,children:d&&(($=a.children)==null?void 0:$.map((m,b)=>n.jsxs("div",{className:k(W.ArrowContainer,e===m.id?W.active:""),onClick:()=>o(m),children:[n.jsxs("div",{className:W.arrowBlock,children:[i===b&&n.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),b<(i??-1)&&n.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),n.jsx(K,{icon:m.icon,label:m.name,active:m.id===e,secondaryIcon:m.completed&&n.jsx(st,{size:20,className:W.iconCheck})},m.id)]},m.id)))})]})},St="_emptyContainer_tmvlz_29",Ot={emptyContainer:St},Dt=({children:e,className:o=""})=>n.jsx("div",{className:`${Ot.emptyContainer} ${o}`,children:e}),It="_formItem_96xeh_29",zt="_critical_96xeh_36",Lt="_message_96xeh_40",At="_error_96xeh_46",qt="_label_96xeh_50",Ht="_disabled_96xeh_53",Tt="_readOnly_96xeh_56",Bt="_input_96xeh_60",I={"shadow-0":"_shadow-0_96xeh_1","shadow-100":"_shadow-100_96xeh_5","shadow-200":"_shadow-200_96xeh_9","shadow-300":"_shadow-300_96xeh_13","shadow-400":"_shadow-400_96xeh_17","shadow-500":"_shadow-500_96xeh_21","shadow-600":"_shadow-600_96xeh_25",formItem:It,critical:zt,message:Lt,error:At,label:qt,disabled:Ht,readOnly:Tt,input:Bt},je=S.createContext({state:"default"}),ue=()=>S.useContext(je),ae=({children:e,error:o,disabled:a,readOnly:i})=>{let d="default";return o?d="error":a?d="disabled":i&&(d="readOnly"),n.jsx(je.Provider,{value:{state:d},children:n.jsx("div",{className:I.formItem,children:e})})},Pt=({children:e})=>{const{state:o}=ue();return n.jsx("label",{className:k(I.label,o==="disabled"&&I.disabled,o==="readOnly"&&I.readOnly),children:e})},Ce=S.forwardRef(({as:e="input",className:o,...a},i)=>{const{state:d}=ue();return n.jsx(e,{ref:i,className:k(I.input,I[d],o),disabled:d==="disabled",readOnly:d==="readOnly",...a})});Ce.displayName="FormItem.Input";const Ft=({children:e})=>{const{state:o}=ue();return e?n.jsxs("div",{className:k(I.message,o==="error"?I.error:I.default),children:[o==="error"&&n.jsx(it,{className:I.critical}),e]}):null};ae.Label=Pt;ae.Input=Ce;ae.Message=Ft;const Yt="_btn_z8qng_29",Wt="_small_z8qng_42",Et="_medium_z8qng_45",Ut="_large_z8qng_48",Zt="_primary_z8qng_69",Jt="_tertiary_z8qng_85",Vt="_plain_z8qng_100",re={"shadow-0":"_shadow-0_z8qng_1","shadow-100":"_shadow-100_z8qng_5","shadow-200":"_shadow-200_z8qng_9","shadow-300":"_shadow-300_z8qng_13","shadow-400":"_shadow-400_z8qng_17","shadow-500":"_shadow-500_z8qng_21","shadow-600":"_shadow-600_z8qng_25",btn:Yt,small:Wt,medium:Et,large:Ut,default:"_default_z8qng_51","default-selected":"_default-selected_z8qng_62",primary:Zt,"primary-selected":"_primary-selected_z8qng_79",tertiary:Jt,"tertiary-selected":"_tertiary-selected_z8qng_94",plain:Vt,"plain-selected":"_plain-selected_z8qng_111"},be=({state:e="default",size:o="medium",selected:a=!1,disabled:i=!1,children:d,onClick:c=()=>{},className:f="",...g})=>{const $=k(re.btn,re[e],re[o],{[re[`${e}-selected`]]:a},f);return n.jsx("button",{className:$,onClick:c,disabled:i,...g,children:d})},Gt="_modalLayout_1jmpu_29",Kt="_modalContainer_1jmpu_40",Qt="_header_1jmpu_64",Xt="_close_1jmpu_73",Rt="_content_1jmpu_83",en="_footer_1jmpu_91",U={modalLayout:Gt,modalContainer:Kt,header:Qt,close:Xt,content:Rt,footer:en},oe=({open:e,onClose:o,children:a})=>e?n.jsx("div",{className:U.modalLayout,onClick:o,children:n.jsx("div",{className:U.modalContainer,onClick:i=>i.stopPropagation(),children:a})}):null,tn=({children:e,onClose:o})=>n.jsxs("div",{className:U.header,children:[n.jsx(N,{variant:"heading-sm",children:e}),n.jsx(be,{size:"small",state:"default",className:U.close,onClick:o,children:n.jsx(lt,{})})]}),nn=({children:e})=>n.jsx(N,{variant:"body-md",className:U.content,children:e}),sn=({children:e})=>n.jsx("div",{className:U.footer,children:e});oe.Header=tn;oe.Content=nn;oe.Footer=sn;const rn="_pageHeader_1lrq1_29",an="_mg_1lrq1_38",on="_lg_1lrq1_39",le={pageHeader:rn,mg:an,lg:on},cn=({children:e})=>n.jsxs("header",{className:le.pageHeader,children:[n.jsx(N,{variant:"heading-xl",className:le.lg,children:e}),n.jsx(N,{variant:"heading-md",className:le.mg,children:e})]}),ln="_container_1g19z_29",dn="_line_1g19z_35",_n="_progress_1g19z_41",de={container:ln,line:dn,progress:_n},un=({percent:e})=>n.jsx("div",{className:de.container,children:n.jsx("div",{className:de.line,children:n.jsx("div",{className:de.progress,style:{width:`${e}%`}})})}),hn="_container_1gn8d_29",mn="_notMobile_1gn8d_38",fn="_mobile_1gn8d_47",_e={container:hn,notMobile:mn,mobile:fn},gn=({title:e,extra:o})=>n.jsxs("div",{className:_e.container,children:[n.jsx(N,{variant:"heading-md",className:_e.notMobile,children:e}),n.jsx(N,{variant:"heading-sm",className:_e.mobile,children:e}),o]}),pn="_topBar_xnlee_29",yn="_section_xnlee_66",vn="_scretched_xnlee_73",$n="_active_xnlee_90",wn="_sm_xnlee_99",xn="_md_xnlee_100",E={topBar:pn,section:yn,scretched:vn,active:$n,sm:wn,md:xn},jn=({sections:e,activeTab:o,onTabSelect:a,isStretched:i=!0})=>{var d;return n.jsxs("div",{children:[n.jsx("div",{className:E.topBar,children:e.map(c=>n.jsxs("div",{className:k(E.section,i&&E.scretched,o===c.id&&E.active),onClick:()=>a(c.id),children:[n.jsx(N,{variant:"heading-xs",className:E.sm,children:c.title}),n.jsx(N,{variant:"heading-md",className:E.md,children:c.title})]},c.id))}),((d=e.find(c=>c.id===o))==null?void 0:d.component)??n.jsx(N,{variant:"body-lg",children:"Not Found"})]})};exports.Banner=Ye;exports.Button=Ke;exports.Collapse=xt;exports.CourseCollapse=kt;exports.Empty=Dt;exports.FormItem=ae;exports.IconButton=be;exports.Modal=oe;exports.NavigationItem=K;exports.PageHeader=cn;exports.ProgressLine=un;exports.SectionHeader=gn;exports.TopBar=jn;exports.Typography=N;