kwant-ui 3.46.1-dev.0 → 3.47.1-dev.0

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,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare namespace IAlert {
3
- type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise';
3
+ type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise' | 'alert';
4
4
  interface AlertStyled {
5
5
  type: AlertType;
6
6
  width?: string;
@@ -15,6 +15,7 @@ export declare const alertIcons: {
15
15
  error: import("react/jsx-runtime").JSX.Element;
16
16
  warning: import("react/jsx-runtime").JSX.Element;
17
17
  promise: import("react/jsx-runtime").JSX.Element;
18
+ alert: import("react/jsx-runtime").JSX.Element;
18
19
  };
19
20
  export declare const switchStyles: (type: IAlert.AlertType, theme: any) => {
20
21
  background: any;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export type GeneralToastType = 'success' | 'error' | 'warning' | 'info';
2
+ export type GeneralToastType = 'success' | 'error' | 'warning' | 'info' | 'alert';
3
3
  export type ToastType = GeneralToastType | 'promise';
4
4
  export type XAlign = 'left' | 'center' | 'right';
5
5
  export type YAlign = 'top' | 'bottom';
@@ -39,6 +39,7 @@ export interface IToastContext {
39
39
  warning: GeneralToastFn;
40
40
  info: GeneralToastFn;
41
41
  promise: PromiseToastFn;
42
+ alert: GeneralToastFn;
42
43
  };
43
44
  removeToast: (id: string) => void;
44
45
  setConfig: (config: Omit<IToastProviderConfig, 'children'>) => void;
@@ -6,5 +6,6 @@ declare const useToast: (hookConfig?: Omit<IToastProviderConfig, 'children'>) =>
6
6
  warning: import("../components/Toast/Toast.types").GeneralToastFn;
7
7
  info: import("../components/Toast/Toast.types").GeneralToastFn;
8
8
  promise: import("../components/Toast/Toast.types").PromiseToastFn;
9
+ alert: import("../components/Toast/Toast.types").GeneralToastFn;
9
10
  };
10
11
  export { useToast };
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as a,createGlobalStyle as c}from"styled-components";import*as i from"react";import o,{Fragment as s,useEffect as l,forwardRef as h,useId as v,useState as p,useRef as u,cloneElement as g,createContext as m,useContext as d,createElement as f,useMemo as _,useCallback as w,isValidElement as b,Children as y,PureComponent as x,useImperativeHandle as Z,Component as O}from"react";import M,{createPortal as E}from"react-dom";import{ViewportList as H}from"react-viewport-list";var P;!function(e){var t,r;(t=e.Variant||(e.Variant={})).outline="outline",t.filled="filled",t.filter="filter",t.ghost="ghost",t.ghostSecondary="ghostSecondary",(r=e.ButtonEnum||(e.ButtonEnum={}))[r.primary=0]="primary",r[r.secondary=1]="secondary",r[r.error=2]="error",r[r.success=3]="success"}(P||(P={}));const j={regular:400,medium:500,semiBold:600},V={subtitle1:"\n font-size: 1.5rem;\n font-style: normal;\n line-height: 2rem;\n",subtitle2:"\n font-size: 1.25rem;\n font-style: normal;\n line-height: 1.75rem;\n ",body1:"\n font-size: 1rem;\n font-style: normal;\n line-height: 1.5rem;\n",body2:"\n font-size: 0.875rem;\n font-style: normal;\n line-height: 1.25rem;\n ",prefix:"\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-transform: uppercase;\n",caption:"\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1re;\n",link:"\n font-size: 14px;\n line-height: 20px;\n text-decoration-line: underline;\n"},C=e=>{const{category:t,weight:r}=e;return t?`\n ${V[t]}\n font-weight:${(e=>e?j[e]:j.regular)(r)};\n `:V.body1},A={primary:{primary100:"#0B1B2A",primary90:"#1C2E40",primary80:"#2A4055",primary70:"#39526B",primary60:"#455F7B",primary50:"#5F758F",primary40:"#455F7B",primary30:"#9CACC0",primary20:"#C0CEDE",primary10:"#E4EBF8",primary5:"#F9FAFD"},secondary:{secondary100:"#103FE8",secondary90:"#2852EA",secondary80:"#4065ED",secondary70:"#5879EF",secondary60:"#708CF1",secondary50:"#889FF4",secondary40:"#9FB2F6",secondary30:"#B7C5F8",secondary20:"#CFD9FA",secondary10:"#E7ECFD",secondary5:"#F3F5FE"},tertiary:{tertiary100:"#174189",tertiary90:"#2E5495",tertiary80:"#4567A1",tertiary70:"#5D7AAC",tertiary60:"#748DB8",tertiary50:"#8BA0C4",tertiary40:"#A2B3D0",tertiary30:"#B9C6DC",tertiary20:"#D1D9E7",tertiary10:"#E8ECF3",tertiary5:"#F3F5F9"},accent:{accent500:"#BD9E2C",accent100:"#ECC537",accent75:"#FFC665",accent50:"#F4DC87",accent15:"#FFF4E0"},link:{linkHigh:"#002C99",linkMedium:"#0053CB",linkLow:"#5D7FFF"},error:{errorHigh:"#AB000D",errorMedium:"#E53935",errorLow:"#FF6F60",errorLow2:"#F8B4B4",errorLow3:"#FDE8E8",errorLower:"#FCF4F4"},success:{successDark:"#009624",successMedium:"#00C853",successLow:"#5EFC82"},black:{blackHigh:"#212121",blackMedium:"#666666",blackLow:"#757575",black:"#000000"},white:{white:"#FFFFFF"},grey:{grey5:"#F9FAFD",grey10:"#F2F5FA",grey20:"#C0CEDE",grey30:"#9CACC0",grey50:"#F9FAFD",grey90:"#1C2E40",grey100:"#F5F7FA",grey200:"#E4E9F2",grey250:"#e4e9f2",grey300:"#C8D2DE",grey400:"#A1AFC0",grey500:"#798CA4",grey600:"#5F758F",grey700:"#455F7B",grey800:"#2A4055",grey900:"#1C2E40",grey1000:"#0B1B2A",greyHigh:"#C2C2C2",greyMedium:"#E5E5E5",greyLow:"#F5F5F5"},warning:{warningHigh:"#C67100",warningMedium:"#FFA000",warningLow:"#FFD149",warningLower:"#FED7AA",warningLower2:"#FFEDD5"},disabled:{disabledHigh:"#B1B1B1",disabledMedium:"#CFCFCF",disabledLow:"#ECECEC"},text:{primary:"#24292E"},input:{focused:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",focusedShadow:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowFilter:"rgba(102, 130, 231, 0.30)",focusedShadowError:" 0px 0px 0px 4px rgba(239, 68, 68, 0.25)",focusedSecondary:"rgba(102, 130, 231, 0.30)"},button:{primaryButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",primaryOutlineButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",secondaryButton:"0px 0px 0px 4px rgba(28, 46, 64, 0.10)",errorButton:"0px 0px 0px 4px rgba(229, 57, 53, 0.20)",successButton:"0px 0px 0px 4px rgba(45, 161, 96, 0.20)",filterButton:"0px 0px 0px 4px rgba(102, 130, 231, 0.30)"},green:{green40:"#2DA170",green10:"#9FD4B5",green8:"#D8F0E0",green5:"#F1FAF4",green50:"#F1FAF4",green100:"#D8F0E0",green200:"#9FD4B5",green300:"#52B87A",green400:"#2DA170",green500:"#10855E",green600:"#21765A",green700:"#246650",green800:"#0D533C",green900:"#0A402E",green1000:"#072B1F"},blue:{blue5:"#F6F8FE",blue50:"#F6F8FE",blue100:"#E7ECFD",blue200:"#CFD9FA",blue300:"#B7C5F8",blue400:"#9FB2F6",blue500:"#889FF4",blue600:"#708CF1",blue700:"#5879EF",blue800:"#4065ED",blue900:"#2852EA",blue1000:"#103FE8"},yellow:{yellow50:"#FCF9DC",yellow100:"#FAF4B4",yellow200:"#FAEC88",yellow300:"#F9DD69",yellow400:"#FACC15",yellow500:"#EAB308",yellow600:"#CA8A04",yellow700:"#A16207",yellow800:"#854D0E",yellow900:"#713F12",yellow1000:"#713F12"},red:{red050:"#FDF2F2",red50:"#FDF2F2",red100:"#FDE8E8",red200:"#FBD5D5",red300:"#F8B4B4",red400:"#F98080",red500:"#F05252",red600:"#DF4242",red700:"#CE3434",red800:"#9B1C1C",red900:"#771D1D"},orange:{orange050:"#FFF7ED",orange50:"#FFF7ED",orange100:"#FFEDD5",orange200:"#FED7AA",orange300:"#FDBA74",orange400:"#FFA84C",orange500:"#F98016",orange600:"#EA580C",orange700:"#C2410C",orange800:"#9A3412",orange900:"#7C2D12"},scrollbar:{track:"#F2F5FA",thumb:"#9CACC0"},transparent:{blueHover:"rgba(16, 63, 232, 0.06)",transparent:"#ffffff78"}},L={...A},{blue:{blue1000:z,blue900:B,blue300:k,blue100:S,blue50:R},button:{primaryButton:D,primaryOutlineButton:I,secondaryButton:T,errorButton:N,successButton:F,filterButton:Q},white:{white:$},grey:{grey900:Y,grey800:U,grey400:W,grey300:X,grey100:K,grey50:q},red:{red700:G,red300:J,red50:ee},green:{green400:te,green5:re,green200:ne}}=L,ae={primary:{backgroundColor:z,textColor:$,borderColor:"transparent",hoverColor:B,focusColor:D,disabledBackgroundColor:k,disabledTextColor:$,disabledBorderColor:"transparent",disabledOutlineTextColor:k,disabledOutlineBorderColor:k,outlineHoverColor:R,outlineTextColor:z,outlineBorderColor:z,outlineFocusColor:I},secondary:{backgroundColor:"transparent",textColor:Y,borderColor:Y,hoverColor:R,focusColor:T,disabledBackgroundColor:R,disabledOutlineTextColor:W,disabledBorderColor:X,disabledOutlineBorderColor:X,disabledTextColor:W,outlineHoverColor:R,outlineTextColor:Y,outlineBorderColor:Y,outlineFocusColor:T},error:{backgroundColor:"transparent",textColor:G,borderColor:J,hoverColor:ee,focusColor:N,disabledBackgroundColor:"transparent",disabledBorderColor:J,disabledTextColor:J,disabledOutlineTextColor:J,disabledOutlineBorderColor:J,outlineHoverColor:ee,outlineTextColor:G,outlineBorderColor:J,outlineFocusColor:N},success:{backgroundColor:"transparent",textColor:te,borderColor:te,hoverColor:re,focusColor:F,disabledBackgroundColor:"transparent",disabledOutlineTextColor:te,disabledOutlineBorderColor:te,disabledTextColor:ne,disabledBorderColor:ne,outlineHoverColor:re,outlineTextColor:te,outlineBorderColor:te,outlineFocusColor:F},filter:{backgroundColor:q,textColor:U,borderColor:X,hoverColor:R,hoverTextColor:z,hoverBorderColor:z,focusColor:Q,disabledOutlineTextColor:W,disabledOutlineBorderColor:X,disabledBackgroundColor:"transparent",disabledTextColor:W,disabledBorderColor:X,outlineHoverColor:R,outlineTextColor:z,outlineBorderColor:z,outlineFocusColor:Q},ghost:{backgroundColor:"transparent",textColor:z,borderColor:"transparent",hoverColor:R,focusColor:S,disabledBackgroundColor:"transparent",disabledTextColor:k,disabledBorderColor:"transparent",disabledOutlineTextColor:k,disabledOutlineBorderColor:k,outlineHoverColor:R,outlineTextColor:z,outlineBorderColor:z,outlineFocusColor:I},ghostSecondary:{backgroundColor:$,textColor:Y,borderColor:"trasparent",hoverColor:q,focusColor:K,disabledBackgroundColor:$,disabledTextColor:W,disabledBorderColor:"transparent",disabledOutlineBorderColor:X,disabledOutlineTextColor:k,outlineHoverColor:R,outlineTextColor:Y,outlineBorderColor:Y,outlineFocusColor:T}},ce=(e,t)=>{if(e&&t===P.Variant.filter)return a`
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as a,createGlobalStyle as c}from"styled-components";import*as i from"react";import o,{Fragment as s,useEffect as l,forwardRef as h,useId as v,useState as p,useRef as u,cloneElement as g,createContext as m,useContext as d,createElement as f,useMemo as _,useCallback as w,isValidElement as b,Children as y,PureComponent as x,useImperativeHandle as Z,Component as O}from"react";import M,{createPortal as E}from"react-dom";import{ViewportList as H}from"react-viewport-list";var P;!function(e){var t,r;(t=e.Variant||(e.Variant={})).outline="outline",t.filled="filled",t.filter="filter",t.ghost="ghost",t.ghostSecondary="ghostSecondary",(r=e.ButtonEnum||(e.ButtonEnum={}))[r.primary=0]="primary",r[r.secondary=1]="secondary",r[r.error=2]="error",r[r.success=3]="success"}(P||(P={}));const j={regular:400,medium:500,semiBold:600},V={subtitle1:"\n font-size: 1.5rem;\n font-style: normal;\n line-height: 2rem;\n",subtitle2:"\n font-size: 1.25rem;\n font-style: normal;\n line-height: 1.75rem;\n ",body1:"\n font-size: 1rem;\n font-style: normal;\n line-height: 1.5rem;\n",body2:"\n font-size: 0.875rem;\n font-style: normal;\n line-height: 1.25rem;\n ",prefix:"\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-transform: uppercase;\n",caption:"\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1re;\n",link:"\n font-size: 14px;\n line-height: 20px;\n text-decoration-line: underline;\n"},C=e=>{const{category:t,weight:r}=e;return t?`\n ${V[t]}\n font-weight:${(e=>e?j[e]:j.regular)(r)};\n `:V.body1},A={primary:{primary100:"#0B1B2A",primary90:"#1C2E40",primary80:"#2A4055",primary70:"#39526B",primary60:"#455F7B",primary50:"#5F758F",primary40:"#455F7B",primary30:"#9CACC0",primary20:"#C0CEDE",primary10:"#E4EBF8",primary5:"#F9FAFD"},secondary:{secondary100:"#103FE8",secondary90:"#2852EA",secondary80:"#4065ED",secondary70:"#5879EF",secondary60:"#708CF1",secondary50:"#889FF4",secondary40:"#9FB2F6",secondary30:"#B7C5F8",secondary20:"#CFD9FA",secondary10:"#E7ECFD",secondary5:"#F3F5FE"},tertiary:{tertiary100:"#174189",tertiary90:"#2E5495",tertiary80:"#4567A1",tertiary70:"#5D7AAC",tertiary60:"#748DB8",tertiary50:"#8BA0C4",tertiary40:"#A2B3D0",tertiary30:"#B9C6DC",tertiary20:"#D1D9E7",tertiary10:"#E8ECF3",tertiary5:"#F3F5F9"},accent:{accent500:"#BD9E2C",accent100:"#ECC537",accent75:"#FFC665",accent50:"#F4DC87",accent15:"#FFF4E0"},link:{linkHigh:"#002C99",linkMedium:"#0053CB",linkLow:"#5D7FFF"},error:{errorHigh:"#AB000D",errorMedium:"#E53935",errorLow:"#FF6F60",errorLow2:"#F8B4B4",errorLow3:"#FDE8E8",errorLower:"#FCF4F4"},success:{successDark:"#009624",successMedium:"#00C853",successLow:"#5EFC82"},black:{blackHigh:"#212121",blackMedium:"#666666",blackLow:"#757575",black:"#000000"},white:{white:"#FFFFFF"},grey:{grey5:"#F9FAFD",grey10:"#F2F5FA",grey20:"#C0CEDE",grey30:"#9CACC0",grey50:"#F9FAFD",grey90:"#1C2E40",grey100:"#F5F7FA",grey200:"#E4E9F2",grey250:"#e4e9f2",grey300:"#C8D2DE",grey400:"#A1AFC0",grey500:"#798CA4",grey600:"#5F758F",grey700:"#455F7B",grey800:"#2A4055",grey900:"#1C2E40",grey1000:"#0B1B2A",greyHigh:"#C2C2C2",greyMedium:"#E5E5E5",greyLow:"#F5F5F5"},warning:{warningHigh:"#C67100",warningMedium:"#FFA000",warningLow:"#FFD149",warningLower:"#FED7AA",warningLower2:"#FFEDD5"},alert:{border:"#FAEC88",background:"#FCF9DC",icon:"#EAB308"},disabled:{disabledHigh:"#B1B1B1",disabledMedium:"#CFCFCF",disabledLow:"#ECECEC"},text:{primary:"#24292E"},input:{focused:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",focusedShadow:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowFilter:"rgba(102, 130, 231, 0.30)",focusedShadowError:" 0px 0px 0px 4px rgba(239, 68, 68, 0.25)",focusedSecondary:"rgba(102, 130, 231, 0.30)"},button:{primaryButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",primaryOutlineButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",secondaryButton:"0px 0px 0px 4px rgba(28, 46, 64, 0.10)",errorButton:"0px 0px 0px 4px rgba(229, 57, 53, 0.20)",successButton:"0px 0px 0px 4px rgba(45, 161, 96, 0.20)",filterButton:"0px 0px 0px 4px rgba(102, 130, 231, 0.30)"},green:{green40:"#2DA170",green10:"#9FD4B5",green8:"#D8F0E0",green5:"#F1FAF4",green50:"#F1FAF4",green100:"#D8F0E0",green200:"#9FD4B5",green300:"#52B87A",green400:"#2DA170",green500:"#10855E",green600:"#21765A",green700:"#246650",green800:"#0D533C",green900:"#0A402E",green1000:"#072B1F"},blue:{blue5:"#F6F8FE",blue50:"#F6F8FE",blue100:"#E7ECFD",blue200:"#CFD9FA",blue300:"#B7C5F8",blue400:"#9FB2F6",blue500:"#889FF4",blue600:"#708CF1",blue700:"#5879EF",blue800:"#4065ED",blue900:"#2852EA",blue1000:"#103FE8"},yellow:{yellow50:"#FCF9DC",yellow100:"#FAF4B4",yellow200:"#FAEC88",yellow300:"#F9DD69",yellow400:"#FACC15",yellow500:"#EAB308",yellow600:"#CA8A04",yellow700:"#A16207",yellow800:"#854D0E",yellow900:"#713F12",yellow1000:"#713F12"},red:{red050:"#FDF2F2",red50:"#FDF2F2",red100:"#FDE8E8",red200:"#FBD5D5",red300:"#F8B4B4",red400:"#F98080",red500:"#F05252",red600:"#DF4242",red700:"#CE3434",red800:"#9B1C1C",red900:"#771D1D"},orange:{orange050:"#FFF7ED",orange50:"#FFF7ED",orange100:"#FFEDD5",orange200:"#FED7AA",orange300:"#FDBA74",orange400:"#FFA84C",orange500:"#F98016",orange600:"#EA580C",orange700:"#C2410C",orange800:"#9A3412",orange900:"#7C2D12"},scrollbar:{track:"#F2F5FA",thumb:"#9CACC0"},transparent:{blueHover:"rgba(16, 63, 232, 0.06)",transparent:"#ffffff78"}},L={...A},{blue:{blue1000:z,blue900:B,blue300:k,blue100:S,blue50:R},button:{primaryButton:D,primaryOutlineButton:I,secondaryButton:T,errorButton:N,successButton:F,filterButton:Q},white:{white:$},grey:{grey900:Y,grey800:U,grey400:W,grey300:X,grey100:K,grey50:q},red:{red700:G,red300:J,red50:ee},green:{green400:te,green5:re,green200:ne}}=L,ae={primary:{backgroundColor:z,textColor:$,borderColor:"transparent",hoverColor:B,focusColor:D,disabledBackgroundColor:k,disabledTextColor:$,disabledBorderColor:"transparent",disabledOutlineTextColor:k,disabledOutlineBorderColor:k,outlineHoverColor:R,outlineTextColor:z,outlineBorderColor:z,outlineFocusColor:I},secondary:{backgroundColor:"transparent",textColor:Y,borderColor:Y,hoverColor:R,focusColor:T,disabledBackgroundColor:R,disabledOutlineTextColor:W,disabledBorderColor:X,disabledOutlineBorderColor:X,disabledTextColor:W,outlineHoverColor:R,outlineTextColor:Y,outlineBorderColor:Y,outlineFocusColor:T},error:{backgroundColor:"transparent",textColor:G,borderColor:J,hoverColor:ee,focusColor:N,disabledBackgroundColor:"transparent",disabledBorderColor:J,disabledTextColor:J,disabledOutlineTextColor:J,disabledOutlineBorderColor:J,outlineHoverColor:ee,outlineTextColor:G,outlineBorderColor:J,outlineFocusColor:N},success:{backgroundColor:"transparent",textColor:te,borderColor:te,hoverColor:re,focusColor:F,disabledBackgroundColor:"transparent",disabledOutlineTextColor:te,disabledOutlineBorderColor:te,disabledTextColor:ne,disabledBorderColor:ne,outlineHoverColor:re,outlineTextColor:te,outlineBorderColor:te,outlineFocusColor:F},filter:{backgroundColor:q,textColor:U,borderColor:X,hoverColor:R,hoverTextColor:z,hoverBorderColor:z,focusColor:Q,disabledOutlineTextColor:W,disabledOutlineBorderColor:X,disabledBackgroundColor:"transparent",disabledTextColor:W,disabledBorderColor:X,outlineHoverColor:R,outlineTextColor:z,outlineBorderColor:z,outlineFocusColor:Q},ghost:{backgroundColor:"transparent",textColor:z,borderColor:"transparent",hoverColor:R,focusColor:S,disabledBackgroundColor:"transparent",disabledTextColor:k,disabledBorderColor:"transparent",disabledOutlineTextColor:k,disabledOutlineBorderColor:k,outlineHoverColor:R,outlineTextColor:z,outlineBorderColor:z,outlineFocusColor:I},ghostSecondary:{backgroundColor:$,textColor:Y,borderColor:"trasparent",hoverColor:q,focusColor:K,disabledBackgroundColor:$,disabledTextColor:W,disabledBorderColor:"transparent",disabledOutlineBorderColor:X,disabledOutlineTextColor:k,outlineHoverColor:R,outlineTextColor:Y,outlineBorderColor:Y,outlineFocusColor:T}},ce=(e,t)=>{if(e&&t===P.Variant.filter)return a`
2
2
  padding: 0.75rem;
3
3
  border: 1px solid ${ae.filter.disabledBorderColor};
4
4
  background-color: 1px solid ${ae.filter.disabledBackgroundColor};
@@ -918,7 +918,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
918
918
  }
919
919
 
920
920
  ${(e=>{const t=Object.keys(e),r=Object.values(e);let n="";return r.forEach(((e,r)=>{const a=(e=>{const t=e?`-${e}`:"";let r="";for(let e=1;e<=12;e++)r+=`\n .col${t}-${e} {\n grid-column-end: span ${e};\n }\n\n .col-offset${t}-${e} {\n grid-column-start: ${e+1};\n }\n\n .row${t}-${e} {\n grid-row-end: span ${e};\n }\n\n .row-offset${t}-${e} {\n grid-row-start: ${e+1};\n }\n `;return r})(t[r]);n+=`\n @media (min-width: ${e}){\n ${a}\n }\n `})),n})({xxsm:"0px",xsm:"600px",sm:"720px",md:"840px",lg:"992px",xl:"1400px",xxl:"1920px"})}
921
- `;function it(t){return e(ct,{children:e("div",{className:"grid",children:t.children})})}const ot=e=>{const t=Object.keys(e)||[],r=Object.values(e)||[];let n="";return r.forEach(((e,r)=>{if(e&&"number"==typeof e){if(e>12||e<=0)return;return n+=`col-${t[r]}-${e} `}})),n};function st({xxsm:t,xsm:r,sm:n,md:a,lg:c,xl:i,xxl:o,...s}){return e("div",{...s,className:`${ot({xxsm:t,xsm:r,sm:n,md:a,lg:c,xl:i,xxl:o})}`,children:s.children})}const lt=m({toast:{success:()=>"",error:()=>"",warning:()=>"",info:()=>"",promise:()=>""},removeToast:()=>{},setConfig:()=>{}}),ht={"top-left":{top:"1.5rem",left:"1.5rem"},"top-center":{top:"1.5rem",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"1.5rem",right:"1.5rem"},"bottom-left":{bottom:"1.5rem",left:"1.5rem"},"bottom-center":{bottom:"1.5rem",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"1.5rem",right:"1.5rem"}},vt=n.div`
921
+ `;function it(t){return e(ct,{children:e("div",{className:"grid",children:t.children})})}const ot=e=>{const t=Object.keys(e)||[],r=Object.values(e)||[];let n="";return r.forEach(((e,r)=>{if(e&&"number"==typeof e){if(e>12||e<=0)return;return n+=`col-${t[r]}-${e} `}})),n};function st({xxsm:t,xsm:r,sm:n,md:a,lg:c,xl:i,xxl:o,...s}){return e("div",{...s,className:`${ot({xxsm:t,xsm:r,sm:n,md:a,lg:c,xl:i,xxl:o})}`,children:s.children})}const lt=m({toast:{success:()=>"",error:()=>"",warning:()=>"",info:()=>"",promise:()=>"",alert:()=>""},removeToast:()=>{},setConfig:()=>{}}),ht={"top-left":{top:"1.5rem",left:"1.5rem"},"top-center":{top:"1.5rem",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"1.5rem",right:"1.5rem"},"bottom-left":{bottom:"1.5rem",left:"1.5rem"},"bottom-center":{bottom:"1.5rem",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"1.5rem",right:"1.5rem"}},vt=n.div`
922
922
  position: fixed;
923
923
  display: flex;
924
924
  flex-direction: column;
@@ -1032,7 +1032,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1032
1032
  opacity: 1;
1033
1033
  }
1034
1034
  }
1035
- `,mt=`${A.grey.grey900}`,dt=({color:t=mt,size:r="2.8rem"})=>{const n=Array(8).fill(0).map(((e,t)=>t));return e(gt,{size:r,color:t,children:n.map(((t,r)=>e("div",{className:"dot-spinner__dot"},r)))})},ft={info:{border:{class:"secondary",member:"secondary40"},background:{class:"secondary",member:"secondary10"},icon:{class:"secondary",member:"secondary100"}},warning:{border:{class:"warning",member:"warningLower"},background:{class:"warning",member:"warningLower2"},icon:{class:"warning",member:"warningMedium"}},error:{border:{class:"error",member:"errorLow2"},background:{class:"error",member:"errorLow3"},icon:{class:"error",member:"errorMedium"}},success:{border:{class:"green",member:"green10"},background:{class:"green",member:"green8"},icon:{class:"green",member:"green40"}},promise:{border:{class:"green",member:"green10"},background:{class:"green",member:"green8"},icon:{class:"green",member:"green40"}}},_t={info:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z",fill:A.blue.blue1000})}),success:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:A.green.green600})}),error:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:A.red.red700})}),warning:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:A.orange.orange600})}),promise:e(dt,{color:((e,t)=>{const r=ft[e][t];return A[r.class][r.member]})("promise","icon"),size:"1.5rem"})},wt=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.8337 5.34199L14.6587 4.16699L10.0003 8.82533L5.34199 4.16699L4.16699 5.34199L8.82533 10.0003L4.16699 14.6587L5.34199 15.8337L10.0003 11.1753L14.6587 15.8337L15.8337 14.6587L11.1753 10.0003L15.8337 5.34199Z",fill:A.grey.grey700})}),bt=n.div`
1035
+ `,mt=`${A.grey.grey900}`,dt=({color:t=mt,size:r="2.8rem"})=>{const n=Array(8).fill(0).map(((e,t)=>t));return e(gt,{size:r,color:t,children:n.map(((t,r)=>e("div",{className:"dot-spinner__dot"},r)))})},ft={info:{border:{class:"secondary",member:"secondary40"},background:{class:"secondary",member:"secondary10"},icon:{class:"secondary",member:"secondary100"}},warning:{border:{class:"warning",member:"warningLower"},background:{class:"warning",member:"warningLower2"},icon:{class:"warning",member:"warningMedium"}},alert:{border:{class:"alert",member:"border"},background:{class:"alert",member:"background"},icon:{class:"alert",member:"icon"}},error:{border:{class:"error",member:"errorLow2"},background:{class:"error",member:"errorLow3"},icon:{class:"error",member:"errorMedium"}},success:{border:{class:"green",member:"green10"},background:{class:"green",member:"green8"},icon:{class:"green",member:"green40"}},promise:{border:{class:"green",member:"green10"},background:{class:"green",member:"green8"},icon:{class:"green",member:"green40"}}},_t={info:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z",fill:A.blue.blue1000})}),success:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:A.green.green600})}),error:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:A.red.red700})}),warning:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:A.orange.orange600})}),promise:e(dt,{color:((e,t)=>{const r=ft[e][t];return A[r.class][r.member]})("promise","icon"),size:"1.5rem"}),alert:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M9 21C9 21.55 9.45 22 10 22H14C14.55 22 15 21.55 15 21V20H9V21ZM12 2C8.14 2 5 5.14 5 9C5 11.38 6.19 13.47 8 14.74V17C8 17.55 8.45 18 9 18H15C15.55 18 16 17.55 16 17V14.74C17.81 13.47 19 11.38 19 9C19 5.14 15.86 2 12 2ZM14.85 13.1L14 13.7V16H10V13.7L9.15 13.1C7.8 12.16 7 10.63 7 9C7 6.24 9.24 4 12 4C14.76 4 17 6.24 17 9C17 10.63 16.2 12.16 14.85 13.1Z",fill:"#EAB308"})})},wt=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.8337 5.34199L14.6587 4.16699L10.0003 8.82533L5.34199 4.16699L4.16699 5.34199L8.82533 10.0003L4.16699 14.6587L5.34199 15.8337L10.0003 11.1753L14.6587 15.8337L15.8337 14.6587L11.1753 10.0003L15.8337 5.34199Z",fill:A.grey.grey700})}),bt=n.div`
1036
1036
  width: ${e=>e.width};
1037
1037
  min-height: ${e=>e.minHeight};
1038
1038
  border-radius: 4px;
@@ -1067,7 +1067,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1067
1067
  display: grid;
1068
1068
  place-items: center;
1069
1069
  cursor: pointer;
1070
- `,Mt=r=>{const{width:n="fit-content",minHeight:a="48px",message:c,type:i="info",showActionBtn:o,actionBtnLabel:s,showCloseBtn:l,onActionBtnClick:h,onClose:v}=r,p=(e=>_t[e])(i);return t(bt,{type:i,width:n,minHeight:a,onMouseDown:e=>e.stopPropagation(),children:[e(yt,{children:p}),t(xt,{children:[c," "]}),e(Zt,{role:"button",children:o&&e(he,{label:s,variant:"outline",secondary:!0,onClick:h})}),l&&e(Ot,{onClick:v,children:wt})]})},Et=({message:t,type:r,id:n,config:a})=>{const{removeToast:c}=d(lt);return e(pt,{children:e(Mt,{minHeight:"60px",width:"100%",type:r,message:t,actionBtnLabel:a?.actionBtnLabel,showActionBtn:a?.showActionBtn,showCloseBtn:!0,onActionBtnClick:a?.onActionBtnClick,onClose:(e=>()=>c(e))(n)})})},Ht=({children:r,position:n,timeout:a,offsetX:c,offsetY:i})=>{const[o,s]=p([]),[l,h]=p({position:n,timeout:a,offsetX:c,offsetY:i}),v=u([]),g=e=>{const t=v.current.find((t=>t.id===e));t&&(clearTimeout(t?.timeout),v.current=v.current.filter((t=>t.id!==e)))},m=(e,t)=>{s((r=>{const n=r.findIndex((t=>t.id===e)),a=[...r];return a[n]=t,a}))},d=e=>{const t=o.filter((t=>t.id!==e));s(t),g(e)},f=()=>{o.length>=5&&(()=>{const[e,...t]=o;s(t),g(v.current[0].id)})()},_=e=>{let t=setTimeout((()=>{s((t=>t.filter((t=>t.id!==e.id)))),g(e.id)}),e.config?.timeout??l.timeout??5e3);v.current.push({id:e.id,timeout:t})},w=e=>"promise"===e?(t,r)=>{f();const n={message:r.pendingMessage,id:Se(),type:e};return s((e=>[...e,n])),t.then((e=>{r.successMessage?m(n.id,{...n,message:r.successMessage,type:"success",config:{timeout:3e3}}):d(n.id),r.onSuccess?.(e)})).catch((e=>{r.errorMessage?m(n.id,{...n,message:r.errorMessage,type:"error",config:{timeout:3e3}}):d(n.id),r.onError?.(e)})).finally((()=>{_(n),r.onFinally?.()})),n.id}:(t,r)=>{f();const n={message:t,id:Se(),type:e,config:r};return s((e=>[...e,n])),_(n),n.id},b={success:w("success"),error:w("error"),warning:w("warning"),info:w("info"),promise:w("promise")};return t(lt.Provider,{value:{toast:b,removeToast:d,setConfig:h},children:[o.length>0&&E(e(vt,{position:l.position??"top-center",offsetX:l.offsetX??50,offsetY:l.offsetY??50,onClick:e=>e.stopPropagation(),children:o.map((t=>e(Et,{...t},t.id)))}),document.getElementById("toasts")),r]})},Pt=e=>{const{toast:t,setConfig:r,removeToast:n}=d(lt);return l((()=>{e&&r(e)}),[e]),{...t,removeToast:n}},jt=(e,t)=>{const{ignore:r,event:n="click"}=t||{},a=o.useRef();return o.useEffect((()=>{const t=t=>{if(r&&r.length)for(let e=0;e<r.length;e++)if(t.target.closest(r[e]))return;a.current&&!a.current.contains(t.target)&&e()};return document.addEventListener(n,t),()=>{document.removeEventListener(n,t)}}),[a]),a};function Vt(e,t=400){const[r,n]=p(e);return l((()=>{const r=setTimeout((()=>n(e)),t);return()=>clearTimeout(r)}),[e,t]),r}const Ct=e=>{const[t,r]=p(e);return l((()=>{r(!!e)}),[e]),{isActive:t,toggle:()=>{r(!t)},close:()=>{r(!1)},open:()=>{r(!0)},set:e=>{r(e)}}};var At="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Bt={exports:{}};Bt.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",c="minute",i="hour",o="day",s="week",l="month",h="quarter",v="year",p="date",u="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,d={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(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},_={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,l),c=r-a<0,i=t.clone().add(n+(c?-1:1),l);return+(-(n+(r-a)/(c?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:v,w:s,d:o,D:p,h:i,m:c,s:a,ms:n,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=d;var y="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[y])},Z=function e(t,r,n){var a;if(!t)return w;if("string"==typeof t){var c=t.toLowerCase();b[c]&&(a=c),r&&(b[c]=r,a=c);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var o=t.name;b[o]=t,a=o}return!n&&a&&(w=a),a||!n&&w},O=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},M=_;M.l=Z,M.i=x,M.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function d(e){this.$L=Z(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var f=d.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(g);if(n){var a=n[2]-1||0,c=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return M},f.isValid=function(){return!(this.$d.toString()===u)},f.isSame=function(e,t){var r=O(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return O(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<O(e)},f.$g=function(e,t,r){return M.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var r=this,n=!!M.u(t)||t,h=M.p(e),u=function(e,t){var a=M.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(o)},g=function(e,t){return M.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,d=this.$M,f=this.$D,_="set"+(this.$u?"UTC":"");switch(h){case v:return n?u(1,0):u(31,11);case l:return n?u(1,d):u(0,d+1);case s:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return u(n?f-b:f+(6-b),d);case o:case p:return g(_+"Hours",0);case i:return g(_+"Minutes",1);case c:return g(_+"Seconds",2);case a:return g(_+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var r,s=M.p(e),h="set"+(this.$u?"UTC":""),u=(r={},r[o]=h+"Date",r[p]=h+"Date",r[l]=h+"Month",r[v]=h+"FullYear",r[i]=h+"Hours",r[c]=h+"Minutes",r[a]=h+"Seconds",r[n]=h+"Milliseconds",r)[s],g=s===o?this.$D+(t-this.$W):t;if(s===l||s===v){var m=this.clone().set(p,1);m.$d[u](g),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else u&&this.$d[u](g);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[M.p(e)]()},f.add=function(n,h){var p,u=this;n=Number(n);var g=M.p(h),m=function(e){var t=O(u);return M.w(t.date(t.date()+Math.round(e*n)),u)};if(g===l)return this.set(l,this.$M+n);if(g===v)return this.set(v,this.$y+n);if(g===o)return m(1);if(g===s)return m(7);var d=(p={},p[c]=t,p[i]=r,p[a]=e,p)[g]||1,f=this.$d.getTime()+n*d;return M.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=M.z(this),c=this.$H,i=this.$m,o=this.$M,s=r.weekdays,l=r.months,h=r.meridiem,v=function(e,r,a,c){return e&&(e[r]||e(t,n))||a[r].slice(0,c)},p=function(e){return M.s(c%12||12,e,"0")},g=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return o+1;case"MM":return M.s(o+1,2,"0");case"MMM":return v(r.monthsShort,o,l,3);case"MMMM":return v(l,o);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return v(r.weekdaysMin,t.$W,s,2);case"ddd":return v(r.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(c);case"HH":return M.s(c,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(c,i,!0);case"A":return g(c,i,!1);case"m":return String(i);case"mm":return M.s(i,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(n,p,u){var g,m=this,d=M.p(p),f=O(n),_=(f.utcOffset()-this.utcOffset())*t,w=this-f,b=function(){return M.m(m,f)};switch(d){case v:g=b()/12;break;case l:g=b();break;case h:g=b()/3;break;case s:g=(w-_)/6048e5;break;case o:g=(w-_)/864e5;break;case i:g=w/r;break;case c:g=w/t;break;case a:g=w/e;break;default:g=w}return u?g:M.a(g)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return b[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=Z(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return M.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),H=E.prototype;return O.prototype=H,[["$ms",n],["$s",a],["$m",c],["$H",i],["$W",o],["$M",l],["$y",v],["$D",p]].forEach((function(e){H[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,E,O),e.$i=!0),O},O.locale=Z,O.isDayjs=x,O.unix=function(e){return O(1e3*e)},O.en=b[w],O.Ls=b,O.p={},O}();var kt=Lt(Bt.exports);const St=()=>{const[e,t]=p({from:{hour:kt().format("hh"),minute:kt().format("mm"),clockType:kt().format("a")},to:{hour:kt().format("hh"),minute:kt().format("mm"),clockType:kt().format("a")}});return{time:e,setTime:t}},Rt=n.div`
1070
+ `,Mt=r=>{const{width:n="fit-content",minHeight:a="48px",message:c,type:i="info",showActionBtn:o,actionBtnLabel:s,showCloseBtn:l,onActionBtnClick:h,onClose:v}=r,p=(e=>_t[e])(i);return t(bt,{type:i,width:n,minHeight:a,onMouseDown:e=>e.stopPropagation(),children:[e(yt,{children:p}),t(xt,{children:[c," "]}),e(Zt,{role:"button",children:o&&e(he,{label:s,variant:"outline",secondary:!0,onClick:h})}),l&&e(Ot,{onClick:v,children:wt})]})},Et=({message:t,type:r,id:n,config:a})=>{const{removeToast:c}=d(lt);return e(pt,{children:e(Mt,{minHeight:"60px",width:"100%",type:r,message:t,actionBtnLabel:a?.actionBtnLabel,showActionBtn:a?.showActionBtn,showCloseBtn:!0,onActionBtnClick:a?.onActionBtnClick,onClose:(e=>()=>c(e))(n)})})},Ht=({children:r,position:n,timeout:a,offsetX:c,offsetY:i})=>{const[o,s]=p([]),[l,h]=p({position:n,timeout:a,offsetX:c,offsetY:i}),v=u([]),g=e=>{const t=v.current.find((t=>t.id===e));t&&(clearTimeout(t?.timeout),v.current=v.current.filter((t=>t.id!==e)))},m=(e,t)=>{s((r=>{const n=r.findIndex((t=>t.id===e)),a=[...r];return a[n]=t,a}))},d=e=>{const t=o.filter((t=>t.id!==e));s(t),g(e)},f=()=>{o.length>=5&&(()=>{const[e,...t]=o;s(t),g(v.current[0].id)})()},_=e=>{let t=setTimeout((()=>{s((t=>t.filter((t=>t.id!==e.id)))),g(e.id)}),e.config?.timeout??l.timeout??5e3);v.current.push({id:e.id,timeout:t})},w=e=>"promise"===e?(t,r)=>{f();const n={message:r.pendingMessage,id:Se(),type:e};return s((e=>[...e,n])),t.then((e=>{r.successMessage?m(n.id,{...n,message:r.successMessage,type:"success",config:{timeout:3e3}}):d(n.id),r.onSuccess?.(e)})).catch((e=>{r.errorMessage?m(n.id,{...n,message:r.errorMessage,type:"error",config:{timeout:3e3}}):d(n.id),r.onError?.(e)})).finally((()=>{_(n),r.onFinally?.()})),n.id}:(t,r)=>{f();const n={message:t,id:Se(),type:e,config:r};return s((e=>[...e,n])),_(n),n.id},b={success:w("success"),error:w("error"),warning:w("warning"),info:w("info"),alert:w("alert"),promise:w("promise")};return t(lt.Provider,{value:{toast:b,removeToast:d,setConfig:h},children:[o.length>0&&E(e(vt,{position:l.position??"top-center",offsetX:l.offsetX??50,offsetY:l.offsetY??50,onClick:e=>e.stopPropagation(),children:o.map((t=>e(Et,{...t},t.id)))}),document.getElementById("toasts")),r]})},Pt=e=>{const{toast:t,setConfig:r,removeToast:n}=d(lt);return l((()=>{e&&r(e)}),[e]),{...t,removeToast:n}},jt=(e,t)=>{const{ignore:r,event:n="click"}=t||{},a=o.useRef();return o.useEffect((()=>{const t=t=>{if(r&&r.length)for(let e=0;e<r.length;e++)if(t.target.closest(r[e]))return;a.current&&!a.current.contains(t.target)&&e()};return document.addEventListener(n,t),()=>{document.removeEventListener(n,t)}}),[a]),a};function Vt(e,t=400){const[r,n]=p(e);return l((()=>{const r=setTimeout((()=>n(e)),t);return()=>clearTimeout(r)}),[e,t]),r}const Ct=e=>{const[t,r]=p(e);return l((()=>{r(!!e)}),[e]),{isActive:t,toggle:()=>{r(!t)},close:()=>{r(!1)},open:()=>{r(!0)},set:e=>{r(e)}}};var At="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Bt={exports:{}};Bt.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",c="minute",i="hour",o="day",s="week",l="month",h="quarter",v="year",p="date",u="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,d={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(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},_={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,l),c=r-a<0,i=t.clone().add(n+(c?-1:1),l);return+(-(n+(r-a)/(c?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:v,w:s,d:o,D:p,h:i,m:c,s:a,ms:n,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=d;var y="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[y])},Z=function e(t,r,n){var a;if(!t)return w;if("string"==typeof t){var c=t.toLowerCase();b[c]&&(a=c),r&&(b[c]=r,a=c);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var o=t.name;b[o]=t,a=o}return!n&&a&&(w=a),a||!n&&w},O=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},M=_;M.l=Z,M.i=x,M.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function d(e){this.$L=Z(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var f=d.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(g);if(n){var a=n[2]-1||0,c=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return M},f.isValid=function(){return!(this.$d.toString()===u)},f.isSame=function(e,t){var r=O(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return O(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<O(e)},f.$g=function(e,t,r){return M.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var r=this,n=!!M.u(t)||t,h=M.p(e),u=function(e,t){var a=M.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(o)},g=function(e,t){return M.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,d=this.$M,f=this.$D,_="set"+(this.$u?"UTC":"");switch(h){case v:return n?u(1,0):u(31,11);case l:return n?u(1,d):u(0,d+1);case s:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return u(n?f-b:f+(6-b),d);case o:case p:return g(_+"Hours",0);case i:return g(_+"Minutes",1);case c:return g(_+"Seconds",2);case a:return g(_+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var r,s=M.p(e),h="set"+(this.$u?"UTC":""),u=(r={},r[o]=h+"Date",r[p]=h+"Date",r[l]=h+"Month",r[v]=h+"FullYear",r[i]=h+"Hours",r[c]=h+"Minutes",r[a]=h+"Seconds",r[n]=h+"Milliseconds",r)[s],g=s===o?this.$D+(t-this.$W):t;if(s===l||s===v){var m=this.clone().set(p,1);m.$d[u](g),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else u&&this.$d[u](g);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[M.p(e)]()},f.add=function(n,h){var p,u=this;n=Number(n);var g=M.p(h),m=function(e){var t=O(u);return M.w(t.date(t.date()+Math.round(e*n)),u)};if(g===l)return this.set(l,this.$M+n);if(g===v)return this.set(v,this.$y+n);if(g===o)return m(1);if(g===s)return m(7);var d=(p={},p[c]=t,p[i]=r,p[a]=e,p)[g]||1,f=this.$d.getTime()+n*d;return M.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=M.z(this),c=this.$H,i=this.$m,o=this.$M,s=r.weekdays,l=r.months,h=r.meridiem,v=function(e,r,a,c){return e&&(e[r]||e(t,n))||a[r].slice(0,c)},p=function(e){return M.s(c%12||12,e,"0")},g=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return o+1;case"MM":return M.s(o+1,2,"0");case"MMM":return v(r.monthsShort,o,l,3);case"MMMM":return v(l,o);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return v(r.weekdaysMin,t.$W,s,2);case"ddd":return v(r.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(c);case"HH":return M.s(c,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(c,i,!0);case"A":return g(c,i,!1);case"m":return String(i);case"mm":return M.s(i,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(n,p,u){var g,m=this,d=M.p(p),f=O(n),_=(f.utcOffset()-this.utcOffset())*t,w=this-f,b=function(){return M.m(m,f)};switch(d){case v:g=b()/12;break;case l:g=b();break;case h:g=b()/3;break;case s:g=(w-_)/6048e5;break;case o:g=(w-_)/864e5;break;case i:g=w/r;break;case c:g=w/t;break;case a:g=w/e;break;default:g=w}return u?g:M.a(g)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return b[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=Z(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return M.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),H=E.prototype;return O.prototype=H,[["$ms",n],["$s",a],["$m",c],["$H",i],["$W",o],["$M",l],["$y",v],["$D",p]].forEach((function(e){H[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,E,O),e.$i=!0),O},O.locale=Z,O.isDayjs=x,O.unix=function(e){return O(1e3*e)},O.en=b[w],O.Ls=b,O.p={},O}();var kt=Lt(Bt.exports);const St=()=>{const[e,t]=p({from:{hour:kt().format("hh"),minute:kt().format("mm"),clockType:kt().format("a")},to:{hour:kt().format("hh"),minute:kt().format("mm"),clockType:kt().format("a")}});return{time:e,setTime:t}},Rt=n.div`
1071
1071
  display: flex;
1072
1072
  flex-direction: column;
1073
1073