stp-ui-kit 0.0.5 → 0.0.6
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.
- package/dist/components/FormItem/FormItem.d.ts +13 -12
- package/dist/stp-ui-kit.cjs.js +15 -10
- package/dist/stp-ui-kit.es.js +600 -535
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
label?: ReactNode;
|
|
1
|
+
import { default as React, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
interface FormItemProps {
|
|
4
3
|
children: ReactNode;
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
error?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
readOnly?: boolean;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
children:
|
|
8
|
+
declare const FormItem: {
|
|
9
|
+
({ children, error, disabled, readOnly }: FormItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Label: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
Message: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
};
|
|
14
|
+
interface InputProps extends React.ComponentPropsWithoutRef<"input"> {
|
|
15
|
+
as?: React.ElementType;
|
|
10
16
|
className?: string;
|
|
11
17
|
}
|
|
12
|
-
declare const HelperText: ({ children, className }: FormItemHelperTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
interface FormItemType extends React.FC<FormItemProps> {
|
|
14
|
-
HelperText: typeof HelperText;
|
|
15
|
-
}
|
|
16
|
-
declare const FormItem: FormItemType;
|
|
17
18
|
export { FormItem };
|
package/dist/stp-ui-kit.cjs.js
CHANGED
|
@@ -1,45 +1,50 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),S=require("react");var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xe={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var s={}.hasOwnProperty;function a(){for(var i="",f=0;f<arguments.length;f++){var p=arguments[f];p&&(i=m(i,l(p)))}return i}function l(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return a.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var f="";for(var p in i)s.call(i,p)&&i[p]&&(f=m(f,p));return f}function m(i,f){return f?i?i+" "+f:i+f:i}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(ve);var Se=ve.exports;const C=ye(Se),De="_typography_18a99_29",pe={"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:De,"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"},j=({variant:e="body-md",className:s="",children:a})=>{const l=pe[e]||"";return t.jsx("div",{className:C(pe.typography,l,s),children:a})},ze="_container_cgftc_29",Oe="_content_cgftc_40",Ie="_title_cgftc_57",Be="_timer_cgftc_68",Le="_timerCell_cgftc_80",Ae="_timerCount_cgftc_87",Te="_pattern_cgftc_102",qe="_button_cgftc_129",A={container:ze,content:Oe,title:Ie,timer:Be,timerCell:Le,timerCount:Ae,pattern:Te,button:qe};var $e={exports:{}};(function(e,s){(function(a,l){e.exports=l()})(ke,function(){var a=1e3,l=6e4,m=36e5,i="millisecond",f="second",p="minute",$="hour",h="day",M="week",b="month",F="quarter",S="year",O="date",R="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ee=/\[([^\]]+)]|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(d){var o=["th","st","nd","rd"],n=d%100;return"["+d+(o[(n-20)%10]||o[n]||o[0])+"]"}},ce=function(d,o,n){var c=String(d);return!c||c.length>=o?d:""+Array(o+1-c.length).join(n)+d},Me={s:ce,z:function(d){var o=-d.utcOffset(),n=Math.abs(o),c=Math.floor(n/60),r=n%60;return(o<=0?"+":"-")+ce(c,2,"0")+":"+ce(r,2,"0")},m:function d(o,n){if(o.date()<n.date())return-d(n,o);var c=12*(n.year()-o.year())+(n.month()-o.month()),r=o.clone().add(c,b),_=n-r<0,u=o.clone().add(c+(_?-1:1),b);return+(-(c+(n-r)/(_?r-u:u-r))||0)},a:function(d){return d<0?Math.ceil(d)||0:Math.floor(d)},p:function(d){return{M:b,y:S,w:M,d:h,D:O,h:$,m:p,s:f,ms:i,Q:F}[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(d){return d===void 0}},J="en",H={};H[J]=Ne;var he="$isDayjsObject",le=function(d){return d instanceof ne||!(!d||!d[he])},te=function d(o,n,c){var r;if(!o)return J;if(typeof o=="string"){var _=o.toLowerCase();H[_]&&(r=_),n&&(H[_]=n,r=_);var u=o.split("-");if(!r&&u.length>1)return d(u[0])}else{var y=o.name;H[y]=o,r=y}return!c&&r&&(J=r),r||!c&&J},x=function(d,o){if(le(d))return d.clone();var n=typeof o=="object"?o:{};return n.date=d,n.args=arguments,new ne(n)},g=Me;g.l=te,g.i=le,g.w=function(d,o){return x(d,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var ne=function(){function d(n){this.$L=te(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[he]=!0}var o=d.prototype;return o.parse=function(n){this.$d=function(c){var r=c.date,_=c.utc;if(r===null)return new Date(NaN);if(g.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var u=r.match(B);if(u){var y=u[2]-1||0,v=(u[7]||"0").substring(0,3);return _?new Date(Date.UTC(u[1],y,u[3]||1,u[4]||0,u[5]||0,u[6]||0,v)):new Date(u[1],y,u[3]||1,u[4]||0,u[5]||0,u[6]||0,v)}}return new Date(r)}(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 g},o.isValid=function(){return this.$d.toString()!==R},o.isSame=function(n,c){var r=x(n);return this.startOf(c)<=r&&r<=this.endOf(c)},o.isAfter=function(n,c){return x(n)<this.startOf(c)},o.isBefore=function(n,c){return this.endOf(c)<x(n)},o.$g=function(n,c,r){return g.u(n)?this[c]:this.set(r,n)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(n,c){var r=this,_=!!g.u(c)||c,u=g.p(n),y=function(P,k){var L=g.w(r.$u?Date.UTC(r.$y,k,P):new Date(r.$y,k,P),r);return _?L:L.endOf(h)},v=function(P,k){return g.w(r.toDate()[P].apply(r.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(k)),r)},w=this.$W,N=this.$M,D=this.$D,Y="set"+(this.$u?"UTC":"");switch(u){case S:return _?y(1,0):y(31,11);case b:return _?y(1,N):y(0,N+1);case M:var E=this.$locale().weekStart||0,V=(w<E?w+7:w)-E;return y(_?D-V:D+(6-V),N);case h:case O:return v(Y+"Hours",0);case $:return v(Y+"Minutes",1);case p:return v(Y+"Seconds",2);case f:return v(Y+"Milliseconds",3);default:return this.clone()}},o.endOf=function(n){return this.startOf(n,!1)},o.$set=function(n,c){var r,_=g.p(n),u="set"+(this.$u?"UTC":""),y=(r={},r[h]=u+"Date",r[O]=u+"Date",r[b]=u+"Month",r[S]=u+"FullYear",r[$]=u+"Hours",r[p]=u+"Minutes",r[f]=u+"Seconds",r[i]=u+"Milliseconds",r)[_],v=_===h?this.$D+(c-this.$W):c;if(_===b||_===S){var w=this.clone().set(O,1);w.$d[y](v),w.init(),this.$d=w.set(O,Math.min(this.$D,w.daysInMonth())).$d}else y&&this.$d[y](v);return this.init(),this},o.set=function(n,c){return this.clone().$set(n,c)},o.get=function(n){return this[g.p(n)]()},o.add=function(n,c){var r,_=this;n=Number(n);var u=g.p(c),y=function(N){var D=x(_);return g.w(D.date(D.date()+Math.round(N*n)),_)};if(u===b)return this.set(b,this.$M+n);if(u===S)return this.set(S,this.$y+n);if(u===h)return y(1);if(u===M)return y(7);var v=(r={},r[p]=l,r[$]=m,r[f]=a,r)[u]||1,w=this.$d.getTime()+n*v;return g.w(w,this)},o.subtract=function(n,c){return this.add(-1*n,c)},o.format=function(n){var c=this,r=this.$locale();if(!this.isValid())return r.invalidDate||R;var _=n||"YYYY-MM-DDTHH:mm:ssZ",u=g.z(this),y=this.$H,v=this.$m,w=this.$M,N=r.weekdays,D=r.months,Y=r.meridiem,E=function(k,L,G,se){return k&&(k[L]||k(c,_))||G[L].slice(0,se)},V=function(k){return g.s(y%12||12,k,"0")},P=Y||function(k,L,G){var se=k<12?"AM":"PM";return G?se.toLowerCase():se};return _.replace(ee,function(k,L){return L||function(G){switch(G){case"YY":return String(c.$y).slice(-2);case"YYYY":return g.s(c.$y,4,"0");case"M":return w+1;case"MM":return g.s(w+1,2,"0");case"MMM":return E(r.monthsShort,w,D,3);case"MMMM":return E(D,w);case"D":return c.$D;case"DD":return g.s(c.$D,2,"0");case"d":return String(c.$W);case"dd":return E(r.weekdaysMin,c.$W,N,2);case"ddd":return E(r.weekdaysShort,c.$W,N,3);case"dddd":return N[c.$W];case"H":return String(y);case"HH":return g.s(y,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return P(y,v,!0);case"A":return P(y,v,!1);case"m":return String(v);case"mm":return g.s(v,2,"0");case"s":return String(c.$s);case"ss":return g.s(c.$s,2,"0");case"SSS":return g.s(c.$ms,3,"0");case"Z":return u}return null}(k)||u.replace(":","")})},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(n,c,r){var _,u=this,y=g.p(c),v=x(n),w=(v.utcOffset()-this.utcOffset())*l,N=this-v,D=function(){return g.m(u,v)};switch(y){case S:_=D()/12;break;case b:_=D();break;case F:_=D()/3;break;case M:_=(N-w)/6048e5;break;case h:_=(N-w)/864e5;break;case $:_=N/m;break;case p:_=N/l;break;case f:_=N/a;break;default:_=N}return r?_:g.a(_)},o.daysInMonth=function(){return this.endOf(b).$D},o.$locale=function(){return H[this.$L]},o.locale=function(n,c){if(!n)return this.$L;var r=this.clone(),_=te(n,c,!0);return _&&(r.$L=_),r},o.clone=function(){return g.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()},d}(),fe=ne.prototype;return x.prototype=fe,[["$ms",i],["$s",f],["$m",p],["$H",$],["$W",h],["$M",b],["$y",S],["$D",O]].forEach(function(d){fe[d[1]]=function(o){return this.$g(o,d[0],d[1])}}),x.extend=function(d,o){return d.$i||(d(o,ne,x),d.$i=!0),x},x.locale=te,x.isDayjs=le,x.unix=function(d){return x(1e3*d)},x.en=H[J],x.Ls=H,x.p={},x})})($e);var He=$e.exports;const Ee=ye(He),Pe=e=>{const s=Ee(e),a=s.date(),l=a===1||a===21||a===31?"st":a===2||a===22?"nd":a===3||a===23?"rd":"th";return`${s.format("MMMM D, HH:mm").replace(a.toString(),`${a}${l}`)} (UTC +5)`},Fe=({color:e,title:s,bgPattern:a,deadline:l,bgPatternFinished:m,buttonColor:i,onClick:f})=>{const[p,$]=z.useState(!1),[h,M]=z.useState({days:0,hours:0,minutes:0,seconds:0});z.useEffect(()=>{const F=new Date(l),S=B=>({days:Math.floor(B/(1e3*60*60*24)),hours:Math.floor(B/(1e3*60*60)%24),minutes:Math.floor(B/(1e3*60)%60),seconds:Math.floor(B/1e3%60)}),O=()=>{const B=Date.now(),ee=F.getTime()-B;ee<=0?($(!0),M({days:0,hours:0,minutes:0,seconds:0})):M(S(ee))};O();const R=setInterval(O,1e3);return()=>clearInterval(R)},[l]);const b=(F,S)=>t.jsxs("div",{className:A.timerCell,children:[t.jsx(j,{variant:"heading-lg",className:A.timerCount,children:F}),S]});return t.jsxs("div",{className:A.container,style:{backgroundColor:e},children:[t.jsxs("div",{className:A.content,children:[t.jsxs("div",{className:A.title,children:[t.jsx(j,{variant:"heading-md",children:s}),t.jsx(j,{variant:"body-md",children:Pe(l)})]}),t.jsxs("div",{className:A.timer,children:[b(h.days,"Days"),b(h.hours,"Hours"),b(h.minutes,"Minutes"),b(h.seconds,"Seconds")]})]}),t.jsx("div",{className:A.pattern,style:{"--pattern-color":e,"--pattern-url":`url(${p?m??a:a})`},children:p&&t.jsx("button",{className:A.button,style:{backgroundColor:i},onClick:f,children:t.jsx(j,{variant:"heading-md",children:"Start"})})})]})},Ye="_btn_12gio_29",We="_small_12gio_44",Ue="_medium_12gio_47",Ze="_large_12gio_50",Je="_primary_12gio_71",Ve="_tertiary_12gio_87",Ge="_plain_12gio_102",ae={"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:Ye,small:We,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"},me=({state:e="default",size:s="medium",selected:a=!1,disabled:l=!1,children:m,onClick:i=()=>{},className:f="",...p})=>{const $=C(ae.btn,ae[e],ae[s],{[ae[`${e}-selected`]]:a},f);return t.jsx("button",{className:$,onClick:i,disabled:l,...p,children:m})};/**
|
|
5
|
+
*/(function(e){(function(){var n={}.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)n.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})()})(xe);var ze=xe.exports;const j=$e(ze),Ie="_typography_18a99_29",ye={"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:Ie,"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"},C=({variant:e="body-md",className:n="",children:a})=>{const i=ye[e]||"";return t.jsx("div",{className:j(ye.typography,i,n),children:a})},Le="_container_cgftc_29",Ae="_content_cgftc_40",Be="_title_cgftc_57",qe="_timer_cgftc_68",Te="_timerCell_cgftc_80",He="_timerCount_cgftc_87",Pe="_pattern_cgftc_102",Ee="_button_cgftc_129",q={container:Le,content:Ae,title:Be,timer:qe,timerCell:Te,timerCount:He,pattern:Pe,button:Ee};var we={exports:{}};(function(e,n){(function(a,i){e.exports=i()})(De,function(){var a=1e3,i=6e4,d=36e5,c="millisecond",f="second",g="minute",$="hour",m="day",M="week",b="month",Y="quarter",O="year",I="date",ee="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,te=/\[([^\]]+)]|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,Se={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 o=["th","st","nd","rd"],s=_%100;return"["+_+(o[(s-20)%10]||o[s]||o[0])+"]"}},le=function(_,o,s){var l=String(_);return!l||l.length>=o?_:""+Array(o+1-l.length).join(s)+_},Oe={s:le,z:function(_){var o=-_.utcOffset(),s=Math.abs(o),l=Math.floor(s/60),r=s%60;return(o<=0?"+":"-")+le(l,2,"0")+":"+le(r,2,"0")},m:function _(o,s){if(o.date()<s.date())return-_(s,o);var l=12*(s.year()-o.year())+(s.month()-o.month()),r=o.clone().add(l,b),u=s-r<0,h=o.clone().add(l+(u?-1:1),b);return+(-(l+(s-r)/(u?r-h:h-r))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:b,y:O,w:M,d:m,D:I,h:$,m:g,s:f,ms:c,Q:Y}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},V="en",P={};P[V]=Se;var ge="$isDayjsObject",de=function(_){return _ instanceof se||!(!_||!_[ge])},ne=function _(o,s,l){var r;if(!o)return V;if(typeof o=="string"){var u=o.toLowerCase();P[u]&&(r=u),s&&(P[u]=s,r=u);var h=o.split("-");if(!r&&h.length>1)return _(h[0])}else{var y=o.name;P[y]=o,r=y}return!l&&r&&(V=r),r||!l&&V},x=function(_,o){if(de(_))return _.clone();var s=typeof o=="object"?o:{};return s.date=_,s.args=arguments,new se(s)},p=Oe;p.l=ne,p.i=de,p.w=function(_,o){return x(_,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var se=function(){function _(s){this.$L=ne(s.locale,null,!0),this.parse(s),this.$x=this.$x||s.x||{},this[ge]=!0}var o=_.prototype;return o.parse=function(s){this.$d=function(l){var r=l.date,u=l.utc;if(r===null)return new Date(NaN);if(p.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var h=r.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(r)}(s),this.init()},o.init=function(){var s=this.$d;this.$y=s.getFullYear(),this.$M=s.getMonth(),this.$D=s.getDate(),this.$W=s.getDay(),this.$H=s.getHours(),this.$m=s.getMinutes(),this.$s=s.getSeconds(),this.$ms=s.getMilliseconds()},o.$utils=function(){return p},o.isValid=function(){return this.$d.toString()!==ee},o.isSame=function(s,l){var r=x(s);return this.startOf(l)<=r&&r<=this.endOf(l)},o.isAfter=function(s,l){return x(s)<this.startOf(l)},o.isBefore=function(s,l){return this.endOf(l)<x(s)},o.$g=function(s,l,r){return p.u(s)?this[l]:this.set(r,s)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(s,l){var r=this,u=!!p.u(l)||l,h=p.p(s),y=function(F,k){var B=p.w(r.$u?Date.UTC(r.$y,k,F):new Date(r.$y,k,F),r);return u?B:B.endOf(m)},v=function(F,k){return p.w(r.toDate()[F].apply(r.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(k)),r)},w=this.$W,N=this.$M,D=this.$D,W="set"+(this.$u?"UTC":"");switch(h){case O:return u?y(1,0):y(31,11);case b:return u?y(1,N):y(0,N+1);case M:var E=this.$locale().weekStart||0,G=(w<E?w+7:w)-E;return y(u?D-G:D+(6-G),N);case m:case I:return v(W+"Hours",0);case $:return v(W+"Minutes",1);case g:return v(W+"Seconds",2);case f:return v(W+"Milliseconds",3);default:return this.clone()}},o.endOf=function(s){return this.startOf(s,!1)},o.$set=function(s,l){var r,u=p.p(s),h="set"+(this.$u?"UTC":""),y=(r={},r[m]=h+"Date",r[I]=h+"Date",r[b]=h+"Month",r[O]=h+"FullYear",r[$]=h+"Hours",r[g]=h+"Minutes",r[f]=h+"Seconds",r[c]=h+"Milliseconds",r)[u],v=u===m?this.$D+(l-this.$W):l;if(u===b||u===O){var w=this.clone().set(I,1);w.$d[y](v),w.init(),this.$d=w.set(I,Math.min(this.$D,w.daysInMonth())).$d}else y&&this.$d[y](v);return this.init(),this},o.set=function(s,l){return this.clone().$set(s,l)},o.get=function(s){return this[p.p(s)]()},o.add=function(s,l){var r,u=this;s=Number(s);var h=p.p(l),y=function(N){var D=x(u);return p.w(D.date(D.date()+Math.round(N*s)),u)};if(h===b)return this.set(b,this.$M+s);if(h===O)return this.set(O,this.$y+s);if(h===m)return y(1);if(h===M)return y(7);var v=(r={},r[g]=i,r[$]=d,r[f]=a,r)[h]||1,w=this.$d.getTime()+s*v;return p.w(w,this)},o.subtract=function(s,l){return this.add(-1*s,l)},o.format=function(s){var l=this,r=this.$locale();if(!this.isValid())return r.invalidDate||ee;var u=s||"YYYY-MM-DDTHH:mm:ssZ",h=p.z(this),y=this.$H,v=this.$m,w=this.$M,N=r.weekdays,D=r.months,W=r.meridiem,E=function(k,B,K,ae){return k&&(k[B]||k(l,u))||K[B].slice(0,ae)},G=function(k){return p.s(y%12||12,k,"0")},F=W||function(k,B,K){var ae=k<12?"AM":"PM";return K?ae.toLowerCase():ae};return u.replace(te,function(k,B){return B||function(K){switch(K){case"YY":return String(l.$y).slice(-2);case"YYYY":return p.s(l.$y,4,"0");case"M":return w+1;case"MM":return p.s(w+1,2,"0");case"MMM":return E(r.monthsShort,w,D,3);case"MMMM":return E(D,w);case"D":return l.$D;case"DD":return p.s(l.$D,2,"0");case"d":return String(l.$W);case"dd":return E(r.weekdaysMin,l.$W,N,2);case"ddd":return E(r.weekdaysShort,l.$W,N,3);case"dddd":return N[l.$W];case"H":return String(y);case"HH":return p.s(y,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return F(y,v,!0);case"A":return F(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}(k)||h.replace(":","")})},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(s,l,r){var u,h=this,y=p.p(l),v=x(s),w=(v.utcOffset()-this.utcOffset())*i,N=this-v,D=function(){return p.m(h,v)};switch(y){case O:u=D()/12;break;case b:u=D();break;case Y:u=D()/3;break;case M:u=(N-w)/6048e5;break;case m:u=(N-w)/864e5;break;case $:u=N/d;break;case g:u=N/i;break;case f:u=N/a;break;default:u=N}return r?u:p.a(u)},o.daysInMonth=function(){return this.endOf(b).$D},o.$locale=function(){return P[this.$L]},o.locale=function(s,l){if(!s)return this.$L;var r=this.clone(),u=ne(s,l,!0);return u&&(r.$L=u),r},o.clone=function(){return p.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()},_}(),pe=se.prototype;return x.prototype=pe,[["$ms",c],["$s",f],["$m",g],["$H",$],["$W",m],["$M",b],["$y",O],["$D",I]].forEach(function(_){pe[_[1]]=function(o){return this.$g(o,_[0],_[1])}}),x.extend=function(_,o){return _.$i||(_(o,se,x),_.$i=!0),x},x.locale=ne,x.isDayjs=de,x.unix=function(_){return x(1e3*_)},x.en=P[V],x.Ls=P,x.p={},x})})(we);var Fe=we.exports;const Ye=$e(Fe),We=e=>{const n=Ye(e),a=n.date(),i=a===1||a===21||a===31?"st":a===2||a===22?"nd":a===3||a===23?"rd":"th";return`${n.format("MMMM D, HH:mm").replace(a.toString(),`${a}${i}`)} (UTC +5)`},Ue=({color:e,title:n,bgPattern:a,deadline:i,bgPatternFinished:d,buttonColor:c,onClick:f})=>{const[g,$]=S.useState(!1),[m,M]=S.useState({days:0,hours:0,minutes:0,seconds:0});S.useEffect(()=>{const Y=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)}),I=()=>{const A=Date.now(),te=Y.getTime()-A;te<=0?($(!0),M({days:0,hours:0,minutes:0,seconds:0})):M(O(te))};I();const ee=setInterval(I,1e3);return()=>clearInterval(ee)},[i]);const b=(Y,O)=>t.jsxs("div",{className:q.timerCell,children:[t.jsx(C,{variant:"heading-lg",className:q.timerCount,children:Y}),O]});return t.jsxs("div",{className:q.container,style:{backgroundColor:e},children:[t.jsxs("div",{className:q.content,children:[t.jsxs("div",{className:q.title,children:[t.jsx(C,{variant:"heading-md",children:n}),t.jsx(C,{variant:"body-md",children:We(i)})]}),t.jsxs("div",{className:q.timer,children:[b(m.days,"Days"),b(m.hours,"Hours"),b(m.minutes,"Minutes"),b(m.seconds,"Seconds")]})]}),t.jsx("div",{className:q.pattern,style:{"--pattern-color":e,"--pattern-url":`url(${g?d??a:a})`},children:g&&t.jsx("button",{className:q.button,style:{backgroundColor:c},onClick:f,children:t.jsx(C,{variant:"heading-md",children:"Start"})})})]})},Ze="_btn_12gio_29",Je="_small_12gio_44",Ve="_medium_12gio_47",Ge="_large_12gio_50",Ke="_primary_12gio_71",Qe="_tertiary_12gio_87",Xe="_plain_12gio_102",re={"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:Ze,small:Je,medium:Ve,large:Ge,default:"_default_12gio_53","default-selected":"_default-selected_12gio_64",primary:Ke,"primary-selected":"_primary-selected_12gio_81",tertiary:Qe,"tertiary-selected":"_tertiary-selected_12gio_96",plain:Xe,"plain-selected":"_plain-selected_12gio_113"},me=({state:e="default",size:n="medium",selected:a=!1,disabled:i=!1,children:d,onClick:c=()=>{},className:f="",...g})=>{const $=j(re.btn,re[e],re[n],{[re[`${e}-selected`]]:a},f);return t.jsx("button",{className:$,onClick:c,disabled:i,...g,children:d})};/**
|
|
6
6
|
* @license lucide-react v0.511.0 - ISC
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/const
|
|
10
|
+
*/const Re=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),et=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,i)=>i?i.toUpperCase():a.toLowerCase()),ve=e=>{const n=et(e);return n.charAt(0).toUpperCase()+n.slice(1)},je=(...e)=>e.filter((n,a,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===a).join(" ").trim(),tt=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
11
11
|
* @license lucide-react v0.511.0 - ISC
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the ISC license.
|
|
14
14
|
* See the LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
15
|
+
*/var nt={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"};/**
|
|
16
16
|
* @license lucide-react v0.511.0 - ISC
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/const
|
|
20
|
+
*/const st=S.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:f,...g},$)=>S.createElement("svg",{ref:$,...nt,width:n,height:n,stroke:e,strokeWidth:i?Number(a)*24/Number(n):a,className:je("lucide",d),...!c&&!tt(g)&&{"aria-hidden":"true"},...g},[...f.map(([m,M])=>S.createElement(m,M)),...Array.isArray(c)?c:[c]]));/**
|
|
21
21
|
* @license lucide-react v0.511.0 - ISC
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/const
|
|
25
|
+
*/const R=(e,n)=>{const a=S.forwardRef(({className:i,...d},c)=>S.createElement(st,{ref:c,iconNode:n,className:je(`lucide-${Re(ve(e))}`,`lucide-${e}`,i),...d}));return a.displayName=ve(e),a};/**
|
|
26
26
|
* @license lucide-react v0.511.0 - ISC
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the ISC license.
|
|
29
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/const
|
|
30
|
+
*/const at=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],rt=R("check-check",at);/**
|
|
31
31
|
* @license lucide-react v0.511.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/const
|
|
35
|
+
*/const ot=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ce=R("chevron-down",ot);/**
|
|
36
36
|
* @license lucide-react v0.511.0 - ISC
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/const
|
|
40
|
+
*/const it=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],be=R("chevron-up",it);/**
|
|
41
41
|
* @license lucide-react v0.511.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const
|
|
45
|
+
*/const ct=[["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"}]],lt=R("circle-alert",ct);/**
|
|
46
|
+
* @license lucide-react v0.511.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const dt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_t=R("x",dt),ut="_navigationItem_1uz1o_29",ht="_container_1uz1o_45",mt="_IconContainer_1uz1o_51",ft="_ParentLine_1uz1o_57",gt="_secondaryIcon_1uz1o_69",pt="_active_1uz1o_80",yt="_collapsed_1uz1o_88",vt="_label_1uz1o_92",L={navigationItem:ut,container:ht,IconContainer:mt,ParentLine:ft,secondaryIcon:gt,active:pt,collapsed:yt,label:vt},X=({icon:e,label:n,secondaryIcon:a,collapsed:i=!1,active:d=!1,isParentNode:c=!1,onClick:f,className:g})=>t.jsxs("div",{className:j(L.navigationItem,d&&L.active,g),onClick:f,children:[t.jsxs("div",{className:L.container,children:[t.jsxs("div",{className:L.IconContainer,children:[e,c&&t.jsx("img",{src:"/assets/icons/ParentLine.svg",alt:"Arrow Indicator",className:L.ParentLine})]}),t.jsx(C,{variant:"body-md",className:j(i&&L.collapsed,L.label),children:n})]}),a&&t.jsx("div",{className:j(L.secondaryIcon,i&&L.collapsed),children:a})]}),$t="_ArrowContainer_i9cnp_29",xt="_active_i9cnp_44",wt="_arrowBlock_i9cnp_54",jt="_isOpen_i9cnp_58",Q={ArrowContainer:$t,active:xt,arrowBlock:wt,isOpen:jt},Ct=({activeItemId:e,onChange:n,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),n(a)};return t.jsxs("div",{children:[t.jsx(X,{icon:a.icon,label:a.name,secondaryIcon:d?t.jsx(be,{size:20}):t.jsx(Ce,{size:20}),onClick:f,isParentNode:d&&i!==-1,active:i!==-1&&!d,className:j(d&&i===-1&&Q.isOpen)}),t.jsx("div",{className:Q.childContainer,children:d&&(($=a.children)==null?void 0:$.map((m,M)=>t.jsxs("div",{className:j(Q.ArrowContainer,e===m.id?Q.active:""),onClick:()=>n(m),children:[t.jsxs("div",{className:Q.arrowBlock,children:[i===M&&t.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),M<(i??-1)&&t.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),t.jsx(X,{icon:m.icon,label:m.name,active:m.id===e})]},m.id)))})]})},bt="_ArrowContainer_17ds0_29",Nt="_iconCheck_17ds0_37",Mt="_active_17ds0_47",kt="_arrowBlock_17ds0_57",St="_isOpen_17ds0_61",U={ArrowContainer:bt,iconCheck:Nt,active:Mt,arrowBlock:kt,isOpen:St},Ot=({activeItemId:e,onChange:n,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),n(a)};return t.jsxs("div",{children:[t.jsx(X,{icon:a.icon,label:a.name,secondaryIcon:d?t.jsx(be,{size:20}):t.jsx(Ce,{size:20}),onClick:f,isParentNode:d&&i!==-1,active:i!==-1&&!d,className:j(d&&i===-1&&U.isOpen)}),t.jsx("div",{className:U.childContainer,children:d&&(($=a.children)==null?void 0:$.map((m,M)=>t.jsxs("div",{className:j(U.ArrowContainer,e===m.id?U.active:""),onClick:()=>n(m),children:[t.jsxs("div",{className:U.arrowBlock,children:[i===M&&t.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),M<(i??-1)&&t.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),t.jsx(X,{icon:m.icon,label:m.name,active:m.id===e,secondaryIcon:m.completed&&t.jsx(rt,{size:20,className:U.iconCheck})},m.id)]},m.id)))})]})},Dt="_emptyContainer_tmvlz_29",zt="_imageContent_tmvlz_55",It="_content_tmvlz_62",Lt="_buttonContent_tmvlz_69",At="_mobile_tmvlz_85",Bt="_desktop_tmvlz_86",T={emptyContainer:Dt,imageContent:zt,content:It,buttonContent:Lt,mobile:At,desktop:Bt},qt=({children:e,className:n=""})=>t.jsx("div",{className:`${T.emptyContainer} ${n}`,children:e}),Tt=({children:e,className:n=""})=>t.jsxs(t.Fragment,{children:[t.jsx(C,{className:j(n,T.desktop),variant:"heading-md",children:e}),t.jsx(C,{className:j(n,T.mobile),variant:"heading-sm",children:e})]}),Ht=({children:e,className:n=""})=>t.jsx("div",{className:j(n),children:e}),Pt=({children:e,className:n=""})=>t.jsx("div",{className:`${T.content} ${n}`,children:e}),Et=({children:e,className:n=""})=>t.jsx("div",{className:`${T.buttonContent} ${n}`,children:e}),Ft=({children:e,onClick:n,className:a=""})=>t.jsx(me,{state:"primary",size:"medium",className:`${T.buttons} ${a}`,onClick:n,children:e}),Yt=({children:e,onClick:n,className:a=""})=>t.jsx(me,{size:"medium",className:`${T.buttons} ${a}`,onClick:n,children:e}),Wt=({src:e,className:n="",alt:a="Empty state image"})=>t.jsx("img",{className:j(T.imageContent,n),src:e,alt:a}),H=qt;H.Title=Tt;H.Context=Ht;H.Content=Pt;H.ButtonContent=Et;H.PrimaryButton=Ft;H.SecondaryButton=Yt;H.Image=Wt;const Ut="_formItem_96xeh_29",Zt="_critical_96xeh_36",Jt="_message_96xeh_40",Vt="_error_96xeh_46",Gt="_label_96xeh_50",Kt="_disabled_96xeh_53",Qt="_readOnly_96xeh_56",Xt="_input_96xeh_60",z={"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:Ut,critical:Zt,message:Jt,error:Vt,label:Gt,disabled:Kt,readOnly:Qt,input:Xt},Ne=S.createContext({state:"default"}),fe=()=>S.useContext(Ne),ie=({children:e,error:n,disabled:a,readOnly:i})=>{let d="default";return n?d="error":a?d="disabled":i&&(d="readOnly"),t.jsx(Ne.Provider,{value:{state:d},children:t.jsx("div",{className:z.formItem,children:e})})},Rt=({children:e})=>{const{state:n}=fe();return t.jsx("label",{className:j(z.label,n==="disabled"&&z.disabled,n==="readOnly"&&z.readOnly),children:e})},Me=S.forwardRef(({as:e="input",className:n,...a},i)=>{const{state:d}=fe();return t.jsx(e,{ref:i,className:j(z.input,z[d],n),disabled:d==="disabled",readOnly:d==="readOnly",...a})});Me.displayName="FormItem.Input";const en=({children:e})=>{const{state:n}=fe();return e?t.jsxs("div",{className:j(z.message,n==="error"?z.error:z.default),children:[n==="error"&&t.jsx(lt,{className:z.critical}),e]}):null};ie.Label=Rt;ie.Input=Me;ie.Message=en;const tn="_btn_z8qng_29",nn="_small_z8qng_42",sn="_medium_z8qng_45",an="_large_z8qng_48",rn="_primary_z8qng_69",on="_tertiary_z8qng_85",cn="_plain_z8qng_100",oe={"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:tn,small:nn,medium:sn,large:an,default:"_default_z8qng_51","default-selected":"_default-selected_z8qng_62",primary:rn,"primary-selected":"_primary-selected_z8qng_79",tertiary:on,"tertiary-selected":"_tertiary-selected_z8qng_94",plain:cn,"plain-selected":"_plain-selected_z8qng_111"},ke=({state:e="default",size:n="medium",selected:a=!1,disabled:i=!1,children:d,onClick:c=()=>{},className:f="",...g})=>{const $=j(oe.btn,oe[e],oe[n],{[oe[`${e}-selected`]]:a},f);return t.jsx("button",{className:$,onClick:c,disabled:i,...g,children:d})},ln="_modalLayout_1jmpu_29",dn="_modalContainer_1jmpu_40",_n="_header_1jmpu_64",un="_close_1jmpu_73",hn="_content_1jmpu_83",mn="_footer_1jmpu_91",J={modalLayout:ln,modalContainer:dn,header:_n,close:un,content:hn,footer:mn},fn=({open:e,onClose:n,children:a})=>e?t.jsx("div",{className:J.modalLayout,onClick:n,children:t.jsx("div",{className:J.modalContainer,onClick:i=>i.stopPropagation(),children:a})}):null,gn=({children:e,onClose:n})=>t.jsxs("div",{className:J.header,children:[t.jsx(C,{variant:"heading-sm",children:e}),t.jsx(ke,{size:"small",state:"default",className:J.close,onClick:n,children:t.jsx(_t,{})})]}),pn=({children:e})=>t.jsx(C,{variant:"body-md",className:J.content,children:e}),yn=({children:e})=>t.jsx("div",{className:J.footer,children:e}),ce=fn;ce.Header=gn;ce.Content=pn;ce.Footer=yn;const vn="_pageHeader_1lrq1_29",$n="_mg_1lrq1_38",xn="_lg_1lrq1_39",_e={pageHeader:vn,mg:$n,lg:xn},wn=({children:e})=>t.jsxs("header",{className:_e.pageHeader,children:[t.jsx(C,{variant:"heading-xl",className:_e.lg,children:e}),t.jsx(C,{variant:"heading-md",className:_e.mg,children:e})]}),jn="_container_1g19z_29",Cn="_line_1g19z_35",bn="_progress_1g19z_41",ue={container:jn,line:Cn,progress:bn},Nn=({percent:e})=>t.jsx("div",{className:ue.container,children:t.jsx("div",{className:ue.line,children:t.jsx("div",{className:ue.progress,style:{width:`${e}%`}})})}),Mn="_container_1gn8d_29",kn="_notMobile_1gn8d_38",Sn="_mobile_1gn8d_47",he={container:Mn,notMobile:kn,mobile:Sn},On=({title:e,extra:n})=>t.jsxs("div",{className:he.container,children:[t.jsx(C,{variant:"heading-md",className:he.notMobile,children:e}),t.jsx(C,{variant:"heading-sm",className:he.mobile,children:e}),n]}),Dn="_topBar_xnlee_29",zn="_section_xnlee_66",In="_scretched_xnlee_73",Ln="_active_xnlee_90",An="_sm_xnlee_99",Bn="_md_xnlee_100",Z={topBar:Dn,section:zn,scretched:In,active:Ln,sm:An,md:Bn},qn=({sections:e,activeTab:n,onTabSelect:a,isStretched:i=!0})=>{var d;return t.jsxs("div",{children:[t.jsx("div",{className:Z.topBar,children:e.map(c=>t.jsxs("div",{className:j(Z.section,i&&Z.scretched,n===c.id&&Z.active),onClick:()=>a(c.id),children:[t.jsx(C,{variant:"heading-xs",className:Z.sm,children:c.title}),t.jsx(C,{variant:"heading-md",className:Z.md,children:c.title})]},c.id))}),((d=e.find(c=>c.id===n))==null?void 0:d.component)??t.jsx(C,{variant:"body-lg",children:"Not Found"})]})};exports.Banner=Ue;exports.Button=me;exports.Collapse=Ct;exports.CourseCollapse=Ot;exports.Empty=H;exports.FormItem=ie;exports.IconButton=ke;exports.Modal=ce;exports.NavigationItem=X;exports.PageHeader=wn;exports.ProgressLine=Nn;exports.SectionHeader=On;exports.TopBar=qn;exports.Typography=C;
|