asma-core-ui 0.0.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.
- package/CHANGELOG.md +687 -0
- package/Readme.md +76 -0
- package/dist/asma-ui-notistack.es.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/internal-1dc85b6b.js +19 -0
- package/dist/src/helpers/reflections.helper.d.ts +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/internal.d.ts +1 -0
- package/dist/src/snack-bar/CheckOutlineIcon.d.ts +2 -0
- package/dist/src/snack-bar/SnackbarProvider.d.ts +33 -0
- package/dist/src/snack-bar/StyledAlert.d.ts +3 -0
- package/dist/src/snack-bar/StyledAlertSnackbar.d.ts +11 -0
- package/dist/src/snack-bar/StyledSnackbar.d.ts +3 -0
- package/dist/src/snack-bar/components/StyledInfoSnackbar.d.ts +12 -0
- package/dist/src/snack-bar/components/processMessageError.d.ts +3 -0
- package/dist/src/snack-bar/components/processMessageInfo.d.ts +3 -0
- package/dist/src/snack-bar/components/types.d.ts +10 -0
- package/dist/src/snack-bar/index.d.ts +6 -0
- package/dist/src/snack-bar/message.d.ts +17 -0
- package/dist/src/snack-bar/processAlertSnackBar.d.ts +1 -0
- package/dist/src/snack-bar/processInfoSnackbar.d.ts +1 -0
- package/dist/tailwind.config.d.ts +142 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +123 -0
- package/tw-configs/twConfigs.json +111 -0
package/Readme.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# How to create and use the Design System
|
|
2
|
+
|
|
3
|
+
## Component composition.
|
|
4
|
+
|
|
5
|
+
- When creating components that consists of several components, each component should be styled.
|
|
6
|
+
- Each components that is used to create a "composed" component should be styled, and remember to check if the component alread is styled.
|
|
7
|
+
- When creating a "composed component" evalute if it's really needed to create a composed component, or just document how to use the styled components.
|
|
8
|
+
- MUI often has documentation on how to create composed components.
|
|
9
|
+
|
|
10
|
+
## Documentation and testing
|
|
11
|
+
|
|
12
|
+
- All components shall be documented and tested in Storybook before PR is created.
|
|
13
|
+
|
|
14
|
+
## Changelog
|
|
15
|
+
|
|
16
|
+
The project uses "changesets" to automatically bump version and create a changelog.
|
|
17
|
+
|
|
18
|
+
For each new feature or change run "npx changeset". Choose patch for a change or bug fix, minor for a new feature or major version for a breaking change. This creates a markdown file in .changeset folder. Commit to brach/PR as normal.
|
|
19
|
+
|
|
20
|
+
A PR can have several changesets.
|
|
21
|
+
|
|
22
|
+
The pipeline will automatically bump version and create changelog after merge to master.
|
|
23
|
+
|
|
24
|
+
## Index file
|
|
25
|
+
|
|
26
|
+
- Index files shall not be edited manually.
|
|
27
|
+
- ctix is used for automatically create index files for exporting componens. Run "npm run create-index"
|
|
28
|
+
- 'src/styles/index.ccss' is imported to 'src/theme/customMuiColors.ts' so exporting works with ctix.
|
|
29
|
+
|
|
30
|
+
## Using MUI theme in App
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
|
|
34
|
+
import { defaultTheme, customPalettes } from 'asma-core-ui';
|
|
35
|
+
|
|
36
|
+
const dataTheme = window.document.body.attributes.getNamedItem('data-theme');
|
|
37
|
+
|
|
38
|
+
const getTheme = () => {
|
|
39
|
+
switch (dataTheme?.value) {
|
|
40
|
+
case 'fretex':
|
|
41
|
+
return customPalettes.fretex.primary;
|
|
42
|
+
default:
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const theme = createTheme(defaultTheme, {
|
|
48
|
+
palette: {
|
|
49
|
+
...defaultTheme.palette,
|
|
50
|
+
primary: {
|
|
51
|
+
...getTheme(),
|
|
52
|
+
},
|
|
53
|
+
role: customPalettes.role,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
<React.Fragment>
|
|
58
|
+
<ThemeProvider theme={createMuiTheme(theme)}>
|
|
59
|
+
<... />
|
|
60
|
+
</ThemeProvider>
|
|
61
|
+
</React.Fragment>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Using Components in App
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import { StyledButton } from 'asma-core-ui';
|
|
68
|
+
|
|
69
|
+
...
|
|
70
|
+
|
|
71
|
+
<>
|
|
72
|
+
<StyledButton>
|
|
73
|
+
Text
|
|
74
|
+
</StyledButton>
|
|
75
|
+
</>
|
|
76
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=window.rawWindow||window;let r=a.__ASMA_CORE_UI__;r||(a.__ASMA_CORE_UI__=await import("./internal-1dc85b6b.js"),r=a.__ASMA_CORE_UI__);const{SnackbarProvider:e,StyledSnackbar:s,closeSnackbar:n,enqueueSnackbar:c,message:S,processAlertSnackBar:_,processInfoSnackbar:o,useSnackbar:k}=r;export{e as SnackbarProvider,s as StyledSnackbar,n as closeSnackbar,c as enqueueSnackbar,S as message,_ as processAlertSnackBar,o as processInfoSnackbar,k as useSnackbar};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/index'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import e,{useContext as t,forwardRef as n,useRef as r,useCallback as o,useEffect as i,createElement as a,cloneElement as s,Component as c,useMemo as l,useState as u,memo as f,isValidElement as p,useLayoutEffect as d}from"react";import{createPortal as h}from"react-dom";import{Alert as g,Snackbar as m}from"@mui/material";var y,v={exports:{}},b={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var x,k={};
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.development.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/"production"===process.env.NODE_ENV?v.exports=function(){if(y)return b;y=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===c[s]&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}return b.Fragment=r,b.jsx=s,b.jsxs=s,b}():v.exports=(x||(x=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,x=!1,w=!1,E=!1,S=!1,O=!1;function j(e){return e.displayName||"Context"}function C(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return j(e)+".Consumer";case s:return j(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:C(e.type)||"Memo";case d:var n=e,h=n._payload,g=n._init;try{return C(g(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var _,T,L,D,N,R,I,P=Object.assign,M=0;function F(){}F.__reactDisabledLog=!0;var A,q=y.ReactCurrentDispatcher;function z(e,t,n){if(void 0===A)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return"\n"+A+e}var H,$=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||$)return"";var n,r=H.get(e);if(void 0!==r)return r;$=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=q.current,q.current=null,function(){if(0===M){_=console.log,T=console.info,L=console.warn,D=console.error,N=console.group,R=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),c=n.stack.split("\n"),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(1!==l||1!==u)do{if(l--,--u<0||s[l]!==c[u]){var f="\n"+s[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&H.set(e,f),f}}while(l>=1&&u>=0);break}}}finally{$=!1,q.current=o,function(){if(0==--M){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:_}),info:P({},e,{value:T}),warn:P({},e,{value:L}),error:P({},e,{value:D}),group:P({},e,{value:N}),groupCollapsed:P({},e,{value:R}),groupEnd:P({},e,{value:I})})}M<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",d=p?z(p):"";return"function"==typeof e&&H.set(e,d),d}function B(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return z(e);switch(e){case u:return z("Suspense");case f:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return function(e,t,n){return W(e,!1)}(e.render);case p:return B(e.type,t,n);case d:var r=e,o=r._payload,i=r._init;try{return B(i(o),t,n)}catch{}}return""}H=new V;var U=Object.prototype.hasOwnProperty,Y={},Q=y.ReactDebugCurrentFrame;function X(e){if(e){var t=e._owner,n=B(e.type,e._source,t?t.type:null);Q.setExtraStackFrame(n)}else Q.setExtraStackFrame(null)}var Z=Array.isArray;function G(e){return Z(e)}function J(e){return""+e}function K(e){if(function(e){try{return J(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var ee,te,ne,re=y.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,s){var c={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},s=null,c=null;for(i in void 0!==n&&(K(n),s=""+n),function(e){if(U.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),s=""+t.key),function(e){if(U.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=C(re.current.type);ne[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)U.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var l=e.defaultProps;for(i in l)void 0===a[i]&&(a[i]=l[i])}if(s||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){ee||(ee=!0,v("%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://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,s,c,o,r,re.current,a)}var se,ce=y.ReactCurrentOwner,le=y.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=B(e.type,e._source,t?t.type:null);le.setExtraStackFrame(n)}else le.setExtraStackFrame(null)}function fe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function pe(){if(ce.current){var e=C(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var de={};function he(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=pe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!de[n]){de[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+C(e._owner.type)+"."),ue(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ge(e,t){if("object"==typeof e)if(G(e))for(var n=0;n<e.length;n++){var r=e[n];fe(r)&&he(r,t)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)fe(i.value)&&he(i.value,t)}}function me(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=C(n);!function(e,t,n,r,o){var i=Function.call.bind(U);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(X(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),X(null)),s instanceof Error&&!(s.message in Y)&&(Y[s.message]=!0,X(o),v("Failed %s type: %s",n,s.message),X(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||se||(se=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ye(e,t,r,g,m,y){var k=function(e){return!!("string"==typeof e||"function"==typeof e||e===o||e===a||O||e===i||e===u||e===f||S||e===h||x||w||E||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===s||e.$$typeof===c||e.$$typeof===l||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!k){var j="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _,T=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);j+=T||pe(),null===e?_="null":G(e)?_="array":void 0!==e&&e.$$typeof===n?(_="<"+(C(e.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,j)}var L=ae(e,t,r,m,y);if(null==L)return L;if(k){var D=t.children;if(void 0!==D)if(g)if(G(D)){for(var N=0;N<D.length;N++)ge(D[N],e);Object.freeze&&Object.freeze(D)}else v("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 ge(D,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(L):me(L),L}var ve=function(e,t,n){return ye(e,t,n,!1)},be=function(e,t,n){return ye(e,t,n,!0)};k.Fragment=o,k.jsx=ve,k.jsxs=be}()),k);var w=v.exports;function E(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function S(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E(e))&&(r&&(r+=" "),r+=t);return r}let O={data:""},j=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||O,C=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_=/\/\*[^]*?\*\/| +/g,T=/\n+/g,L=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?L(a,i):i+"{"+L(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=L(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=L.p?L.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},D={},N=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+N(e[n]);return t}return e},R=(e,t,n,r,o)=>{let i=N(e),a=D[i]||(D[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!D[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=C.exec(e.replace(_,""));)t[4]?r.shift():t[3]?(n=t[3].replace(T," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(T," ").trim();return r[0]})(e);D[a]=L(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&D.g?D.g:null;return n&&(D.g=D[a]),c=D[a],l=t,u=r,(f=s)?l.data=l.data.replace(f,c):-1===l.data.indexOf(c)&&(l.data=u?c+l.data:l.data+c),a;var c,l,u,f},I=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":L(e,""):!1===e?"":e}return e+r+(i??"")}),"");function P(e){let t=this||{},n=e.call?e(t.p):e;return R(n.unshift?n.raw?I(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,j(t.target),t.g,t.o,t.k)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function A(){return A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}function q(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function z(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}P.bind({g:1}),P.bind({k:1});var $=function(){return""},V=e.createContext({enqueueSnackbar:$,closeSnackbar:$}),W="@media (max-width:599.95px)",B="@media (min-width:600px)",U=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Y=function(e){return""+U(e.vertical)+U(e.horizontal)},Q=function(e){return!!e||0===e},X="unmounted",Z="exited",G="entering",J="entered",K="exiting",ee=function(e){function t(t){var n;n=e.call(this,t)||this;var r,o=t.appear;return n.appearStatus=null,t.in?o?(r=Z,n.appearStatus=G):r=J:r=t.unmountOnExit||t.mountOnEnter?X:Z,n.state={status:r},n.nextCallback=null,n}q(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===X?{status:Z}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==G&&n!==J&&(t=G):(n===G||n===J)&&(t=K)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===G?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Z&&this.setState({status:X})},n.performEnter=function(e){var t=this,n=this.props.enter,r=e,o=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:G},(function(){t.props.onEntering&&t.props.onEntering(t.node,r),t.onTransitionEnd(o.enter,(function(){t.safeSetState({status:J},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))}))}))):this.safeSetState({status:J},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:K},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Z},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:Z},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===X)return null;var t=this.props;return(0,t.children)(e,z(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},F(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(e.Component);function te(){}function ne(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function re(e,t){return l((function(){return null==e&&null==t?null:function(n){ne(e,n),ne(t,n)}}),[e,t])}function oe(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}ee.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:te,onEntering:te,onEntered:te,onExit:te,onExiting:te,onExited:te};var ie="cubic-bezier(0.4, 0, 0.2, 1)",ae="cubic-bezier(0.0, 0, 0.2, 1)",se="cubic-bezier(0.4, 0, 0.6, 1)",ce=function(e){e.scrollTop=e.scrollTop},le=function(e){return Math.round(e)+"ms"};function ue(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,o=void 0===r?300:r,i=n.easing,a=void 0===i?ie:i,s=n.delay,c=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof o?o:le(o),n="string"==typeof c?c:le(c);return e+" "+t+" "+a+" "+n})).join(",")}function fe(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function pe(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),o=fe(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=o.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),s=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var de=n((function(e,t){var n=e.children,c=e.direction,l=void 0===c?"down":c,u=e.in,f=e.style,p=e.timeout,d=void 0===p?0:p,h=e.onEnter,g=e.onEntered,m=e.onExit,y=e.onExited,v=z(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),b=r(null),x=re(n.ref,b),k=re(x,t),w=o((function(){b.current&&pe(l,b.current)}),[l]);return i((function(){if(!u&&"down"!==l&&"right"!==l){var e=function(e,t){var n;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}return void 0===t&&(t=166),r.clear=function(){clearTimeout(n)},r}((function(){b.current&&pe(l,b.current)})),t=fe(b.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,u]),i((function(){u||w()}),[u,w]),a(ee,Object.assign({appear:!0,nodeRef:b,onEnter:function(e,t){pe(l,e),ce(e),h&&h(e,t)},onEntered:g,onEntering:function(e){var t=oe({timeout:d,mode:"enter",style:A({},f,{transitionTimingFunction:f?.transitionTimingFunction||ae})});e.style.webkitTransition=ue("-webkit-transform",t),e.style.transition=ue("transform",t),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=oe({timeout:d,mode:"exit",style:A({},f,{transitionTimingFunction:f?.transitionTimingFunction||se})});e.style.webkitTransition=ue("-webkit-transform",t),e.style.transition=ue("transform",t),pe(l,e),m&&m(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",y&&y(e)},in:u,timeout:d},v),(function(e,t){return s(n,A({ref:k,style:A({visibility:"exited"!==e||u?void 0:"hidden"},f,{},n.props.style)},t))}))}));de.displayName="Slide";var he=function(t){return e.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},ge=function(){return e.createElement(he,null,e.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},me=function(){return e.createElement(he,null,e.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ye=function(){return e.createElement(he,null,e.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},ve=function(){return e.createElement(he,null,e.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},be={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:e.createElement(ge,null),warning:e.createElement(me,null),error:e.createElement(ye,null),info:e.createElement(ve,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:de,transitionDuration:{enter:225,exit:195}},xe=function(e,t){return function(n,r){return void 0===r&&(r=!1),r?A({},be[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:be.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?A({},be.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?A({},be.transitionDuration,{},t):be.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||be[n]}};function ke(e){return Object.entries(e).reduce((function(e,t){var n,r=t[0],o=t[1];return A({},e,((n={})[r]=P(o),n))}),{})}var we="notistack-SnackbarContainer",Ee="notistack-Snackbar",Se="notistack-CollapseWrapper",Oe="notistack-MuiContent",je=function(e){return"notistack-MuiContent-"+e},Ce=ke({root:{height:0},entered:{height:"auto"}}),_e="0px",Te=n((function(e,t){var n=e.children,o=e.in,i=e.onExited,s=r(null),c=r(null),l=re(t,c),u=function(){return s.current?s.current.clientHeight:0};return a(ee,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=_e},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=u(),n=oe({timeout:175,mode:"enter"}),r=n.duration,o=n.easing;e.style.transitionDuration="string"==typeof r?r:r+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=o||""},onExit:function(e){e.style.height=u()+"px"},onExited:i,onExiting:function(e){ce(e);var t=oe({timeout:175,mode:"exit"}),n=t.duration,r=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=_e,e.style.transitionTimingFunction=r||""},nodeRef:c,timeout:175},(function(e,t){return a("div",Object.assign({ref:l,className:S(Ce.root,"entered"===e&&Ce.entered),style:A({pointerEvents:"all",overflow:"hidden",minHeight:_e,transition:ue("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),a("div",{ref:s,className:Se,style:{display:"flex",width:"100%"}},n))}))}));Te.displayName="Collapse";var Le={right:"left",left:"right",bottom:"up",top:"down"},De=function(e){return"center"!==e.horizontal?Le[e.horizontal]:Le[e.vertical]},Ne=function(e){return"anchorOrigin"+Y(e)},Re=function(){};function Ie(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),Re)}var Pe=typeof window<"u"?d:i;function Me(e){var t=r(e);return Pe((function(){t.current=e})),o((function(){return t.current.apply(void 0,arguments)}),[])}var Fe=n((function(e,t){var n=e.children,s=e.className,c=e.autoHideDuration,l=e.disableWindowBlurListener,u=void 0!==l&&l,f=e.onClose,p=e.id,d=e.open,h=e.SnackbarProps,g=void 0===h?{}:h,m=r(),y=Me((function(){f&&f.apply(void 0,arguments)})),v=Me((function(e){!f||null==e||(m.current&&clearTimeout(m.current),m.current=setTimeout((function(){y(null,"timeout",p)}),e))}));i((function(){return d&&v(c),function(){m.current&&clearTimeout(m.current)}}),[d,c,v]);var b=function(){m.current&&clearTimeout(m.current)},x=o((function(){null!=c&&v(.5*c)}),[c,v]);return i((function(){if(!u&&d)return window.addEventListener("focus",x),window.addEventListener("blur",b),function(){window.removeEventListener("focus",x),window.removeEventListener("blur",b)}}),[u,x,d]),a("div",Object.assign({ref:t},g,{className:S(Ee,s),onMouseEnter:function(e){g.onMouseEnter&&g.onMouseEnter(e),b()},onMouseLeave:function(e){g.onMouseLeave&&g.onMouseLeave(e),x()}}),n)}));Fe.displayName="Snackbar";var Ae,qe=ke({root:(Ae={display:"flex",flexWrap:"wrap",flexGrow:1},Ae[B]={flexGrow:"initial",minWidth:"288px"},Ae)}),ze=n((function(t,n){var r=t.className,o=z(t,["className"]);return e.createElement("div",Object.assign({ref:n,className:S(qe.root,r)},o))}));ze.displayName="SnackbarContent";var He=ke({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),$e="notistack-snackbar",Ve=n((function(t,n){var r=t.id,o=t.message,i=t.action,a=t.iconVariant,s=t.variant,c=t.hideIconVariant,l=t.style,u=t.className,f=a[s],p=i;return"function"==typeof p&&(p=p(r)),e.createElement(ze,{ref:n,role:"alert","aria-describedby":$e,style:l,className:S(Oe,je(s),He.root,He[s],u,!c&&f&&He.lessPadding)},e.createElement("div",{id:$e,className:He.message},c?null:f,o),p&&e.createElement("div",{className:He.action},p))}));Ve.displayName="MaterialDesignContent";var We,Be,Ue,Ye,Qe,Xe,Ze,Ge=f(Ve),Je=ke({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Ke=function(t){var n=r(),a=u(!0),s=a[0],c=a[1],f=Ie([t.snack.onClose,t.onClose]),p=o((function(){n.current=setTimeout((function(){c((function(e){return!e}))}),125)}),[]);i((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var d=t.snack,h=t.classes,g=t.Component,m=void 0===g?Ge:g,y=l((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var r;return A({},t,((r={})[n]=e[n],r))}),{})}(h)}),[h]),v=d.open,b=d.SnackbarProps,x=d.TransitionComponent,k=d.TransitionProps,w=d.transitionDuration,E=d.disableWindowBlurListener,O=d.content,j=z(d,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),C=A({direction:De(j.anchorOrigin),timeout:w},k),_=O;"function"==typeof _&&(_=_(j.id,j.message));var T=["onEnter","onEntered","onExit","onExited"].reduce((function(e,n){var r;return A({},e,((r={})[n]=Ie([t.snack[n],t[n]],j.id),r))}),{});return e.createElement(Te,{in:s,onExited:T.onExited},e.createElement(Fe,{open:v,id:j.id,disableWindowBlurListener:E,autoHideDuration:j.autoHideDuration,className:S(Je.wrappedRoot,y.root,y[Ne(j.anchorOrigin)]),SnackbarProps:b,onClose:f},e.createElement(x,Object.assign({},C,{appear:!0,in:v,onExit:T.onExit,onExited:p,onEnter:T.onEnter,onEntered:Ie([T.onEntered,function(){t.snack.requestClose&&f(null,"instructed",t.snack.id)}],j.id)}),_||e.createElement(m,Object.assign({},j)))))},et={default:20,dense:4},tt={default:6,dense:2},nt="."+Se,rt=ke({root:(We={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:ue(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},We[nt]={padding:tt.default+"px 0px",transition:"padding 300ms ease 0ms"},We.maxWidth="calc(100% - "+2*et.default+"px)",We[W]={width:"100%",maxWidth:"calc(100% - 32px)"},We),rootDense:(Be={},Be[nt]={padding:tt.dense+"px 0px"},Be),top:{top:et.default-tt.default+"px",flexDirection:"column"},bottom:{bottom:et.default-tt.default+"px",flexDirection:"column-reverse"},left:(Ue={left:et.default+"px"},Ue[B]={alignItems:"flex-start"},Ue[W]={left:"16px"},Ue),right:(Ye={right:et.default+"px"},Ye[B]={alignItems:"flex-end"},Ye[W]={right:"16px"},Ye),center:(Qe={left:"50%",transform:"translateX(-50%)"},Qe[B]={alignItems:"center"},Qe)}),ot=function(t){var n=t.classes,r=void 0===n?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,s=S(we,rt[o.vertical],rt[o.horizontal],rt.root,r.containerRoot,r["containerAnchorOrigin"+Y(o)],i&&rt.rootDense);return e.createElement("div",{className:s},a)},it=f(ot),at="production"!==process.env.NODE_ENV,st={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},ct=function(e){return!("string"==typeof e||p(e))},lt=function(t){function n(e){var n;return(n=t.call(this,e)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var r=ct(e)?e:t,o=ct(e)?e.message:e,i=r.key,a=r.preventDuplicate,s=z(r,["key","preventDuplicate"]),c=Q(i),l=c?i:(new Date).getTime()+Math.random(),u=xe(s,n.props),f=A({id:l},s,{message:o,open:!0,entered:!1,requestClose:!1,persist:u("persist"),action:u("action"),content:u("content"),variant:u("variant"),anchorOrigin:u("anchorOrigin"),disableWindowBlurListener:u("disableWindowBlurListener"),autoHideDuration:u("autoHideDuration"),hideIconVariant:u("hideIconVariant"),TransitionComponent:u("TransitionComponent"),transitionDuration:u("transitionDuration"),TransitionProps:u("TransitionProps",!0),iconVariant:u("iconVariant",!0),style:u("style",!0),SnackbarProps:u("SnackbarProps",!0),className:S(n.props.className,s.className)});return f.persist&&(f.autoHideDuration=void 0),n.setState((function(e){if(void 0===a&&n.props.preventDuplicate||a){var t=function(e){return c?e.id===l:e.message===o},r=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(r||i)return e}return n.handleDisplaySnack(A({},e,{queue:[].concat(e.queue,[f])}))})),l},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?A({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(at){var t=st[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?A({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),A({},e,{open:!1})):A({},e,{requestClose:!0}))}));return A({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!Q(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===r?A({},e,{entered:!0}):A({},e)}))}}))},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.id===r?e.entered?A({},e,{open:!1}):A({},e,{requestClose:!0}):A({},e)})),queue:n.filter((function(e){return e.id!==r}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));Q(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!Q(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var r=n.processQueue(A({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===r.queue.length?r:n.handleDismissOldest(r)}))},Xe=n.enqueueSnackbar,Ze=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(H(n)),closeSnackbar:n.closeSnackbar.bind(H(n))}},n}return q(n,t),n.prototype.render=function(){var t=this,n=this.state.contextValue,r=this.props,o=r.domRoot,i=r.children,a=r.dense,s=void 0!==a&&a,c=r.Components,l=void 0===c?{}:c,u=r.classes,f=this.state.snacks.reduce((function(e,t){var n,r=Y(t.anchorOrigin),o=e[r]||[];return A({},e,((n={})[r]=[].concat(o,[t]),n))}),{}),p=Object.keys(f).map((function(n){var r=f[n],o=r[0];return e.createElement(it,{key:n,dense:s,anchorOrigin:o.anchorOrigin,classes:u},r.map((function(n){return e.createElement(Ke,{key:n.id,snack:n,classes:u,Component:l[n.variant],onClose:t.handleCloseSnack,onEnter:t.props.onEnter,onExit:t.props.onExit,onExited:Ie([t.handleExitedSnack,t.props.onExited],n.id),onEntered:Ie([t.handleEnteredSnack,t.props.onEntered],n.id)})})))}));return e.createElement(V.Provider,{value:n},i,o?h(p,o):p)},F(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||be.maxSnack}}]),n}(c),ut=function(){return t(V)};const ft=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function pt(e){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}const dt=e=>w.jsx(g,{iconMapping:{success:w.jsx(pt,{height:24,width:24,fontSize:"inherit"}),...e.iconMapping},...e}),ht=n(((e,t)=>{const{id:n,message:r,severity:o,alertClassName:i,alertVariant:a,closeButton:s,...c}=ft(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:l}=ut();return w.jsx(ze,{ref:t,role:"alert",...c,children:w.jsx(dt,{className:i,severity:o,variant:a,onClose:s?()=>l(n):void 0,children:r})})})),gt=/^[a-z0-9]+(-[a-z0-9]+)*$/,mt=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!yt(i)?null:i}const i=o[0],a=i.split("-");if(a.length>1){const e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!yt(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:i};return t&&!yt(e,n)?null:e}return null},yt=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(gt)||!(t&&""===e.prefix||e.prefix.match(gt))||!e.name.match(gt)),vt=Object.freeze({left:0,top:0,width:16,height:16}),bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xt=Object.freeze({...vt,...bt}),kt=Object.freeze({...xt,body:"",hidden:!1});function wt(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in kt)r in bt?r in e&&!(r in n)&&(n[r]=bt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Et(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(e){i=wt(r[e]||o[e],i)}return a(t),n.forEach(a),wt(e,i)}function St(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const r=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;const n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]})),o}(e);for(const o in r){const i=r[o];i&&(t(o,Et(e,o,i)),n.push(o))}return n}const Ot={provider:"",aliases:{},not_found:{},...vt};function jt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ct(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!jt(e,Ot))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(gt)||"string"!=typeof t.body||!jt(t,kt))return null}const r=t.aliases||Object.create(null);for(const e in r){const t=r[e],o=t.parent;if(!e.match(gt)||"string"!=typeof o||!n[o]&&!r[o]||!jt(t,kt))return null}return t}const _t=Object.create(null);function Tt(e,t){const n=_t[e]||(_t[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Lt(e,t){return Ct(t)?St(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Dt=!1;function Nt(e){return"boolean"==typeof e&&(Dt=e),Dt}function Rt(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Dt&&!t&&!e.prefix){let t=!1;return Ct(e)&&(e.prefix="",St(e,((e,n)=>{n&&function(e,t){const n=mt(e,!0,Dt);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Tt(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!yt({provider:t,prefix:n,name:"a"}))return!1;return!!Lt(Tt(t,n),e)}const It=Object.freeze({width:null,height:null}),Pt=Object.freeze({...It,...bt}),Mt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ft=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function At(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(Mt);if(null===r||!r.length)return e;const o=[];let i=r.shift(),a=Ft.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(i=r.shift(),void 0===i)return o.join("");a=!a}}const qt=/\sid="(\S+)"/g,zt="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Ht=0;function $t(e,t=zt){const n=[];let r;for(;r=qt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof t?t(n):t+(Ht++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")})),e=e.replace(new RegExp(o,"g"),"")}const Vt=Object.create(null);function Wt(e){return Vt[e]||Vt[""]}function Bt(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ut=Object.create(null),Yt=["https://api.simplesvg.com","https://api.unisvg.com"],Qt=[];for(;Yt.length>0;)1===Yt.length||Math.random()>.5?Qt.push(Yt.shift()):Qt.push(Yt.pop());function Xt(e,t){const n=Bt(t);return null!==n&&(Ut[e]=n,!0)}function Zt(e){return Ut[e]}Ut[""]=Bt({resources:["https://api.iconify.design"].concat(Qt)});let Gt=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const Jt={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=Zt(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,c)=>{s+=n.length+1,s>=o&&c>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),r.push(a),r},send:(e,t,n)=>{if(!Gt)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=Zt(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;Gt(e+r).then((e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",o)}))})).catch((()=>{n("next",o)}))}};function Kt(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let en=0;var tn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nn(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c,l="pending",u=0,f=null,p=[],d=[];function h(){f&&(clearTimeout(f),f=null)}function g(){"pending"===l&&(l="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function m(e,t){t&&(d=[]),"function"==typeof e&&d.push(e)}function y(){l="failed",d.forEach((e=>{e(void 0,c)}))}function v(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function b(){if("pending"!==l)return;h();const r=a.shift();if(void 0===r)return p.length?void(f=setTimeout((()=>{h(),"pending"===l&&(v(),y())}),e.timeout)):void y();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(p=p.filter((e=>e!==t)),l){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return c=r,void y();if(o)return c=r,void(p.length||(a.length?b():y()));if(h(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}l="completed",d.forEach((e=>{e(r)}))}(o,t,n)}};p.push(o),u++,f=setTimeout(b,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&d.push(r),setTimeout(b),function(){return{startTime:s,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:m,abort:g}}}function rn(e){const t={...tn,...e};let n=[];function r(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,o,i){const a=nn(t,e,o,((e,t)=>{r(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function on(){}const an=Object.create(null);function sn(e,t,n){let r,o;if("string"==typeof e){const t=Wt(e);if(!t)return n(void 0,424),on;o=t.send;const i=function(e){if(!an[e]){const t=Zt(e);if(!t)return;const n={config:t,redundancy:rn(t)};an[e]=n}return an[e]}(e);i&&(r=i.redundancy)}else{const t=Bt(e);if(t){r=rn(t);const n=Wt(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),on)}const cn="iconify2",ln="iconify",un=ln+"-count",fn=ln+"-version",pn=36e5,dn=168;function hn(e,t){try{return e.getItem(t)}catch{}}function gn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function mn(e,t){try{e.removeItem(t)}catch{}}function yn(e,t){return gn(e,un,t.toString())}function vn(e){return parseInt(hn(e,un))||0}const bn={local:!0,session:!0},xn={local:new Set,session:new Set};let kn=!1;let wn=typeof window>"u"?{}:window;function En(e){const t=e+"Storage";try{if(wn&&wn[t]&&"number"==typeof wn[t].length)return wn[t]}catch{}bn[e]=!1}function Sn(e,t){const n=En(e);if(!n)return;const r=hn(n,fn);if(r!==cn){if(r){const e=vn(n);for(let t=0;t<e;t++)mn(n,ln+t.toString())}return gn(n,fn,cn),void yn(n,0)}const o=Math.floor(Date.now()/pn)-dn,i=e=>{const r=ln+e.toString(),i=hn(n,r);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}mn(n,r)}};let a=vn(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,yn(n,a)):xn[e].add(t))}function On(){if(!kn){kn=!0;for(const e in bn)Sn(e,(e=>{const t=e.data,n=Tt(e.provider,t.prefix);if(!Lt(n,t).length)return!1;const r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}}function jn(e,t){function n(n){let r;if(!bn[n]||!(r=En(n)))return;const o=xn[n];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=vn(r),!yn(r,i+1))return;const a={cached:Math.floor(Date.now()/pn),provider:e.provider,data:t};return gn(r,ln+i.toString(),JSON.stringify(a))}kn||On(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in bn)Sn(n,(n=>{const r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Cn(){}function _n(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1})),i.pending.length!==a&&(n||Kt([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Tn=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach((e=>{const o="string"==typeof e?mt(e,t,n):e;o&&r.push(o)})),r}(e,!0,Nt()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,i=e.prefix,a=e.name,s=n[o]||(n[o]=Object.create(null)),c=s[i]||(s[i]=Tt(o,i));let l;l=a in c.icons?t.loaded:""===i||c.missing.has(a)?t.missing:t.pending;const u={provider:o,prefix:i,name:a};l.push(u)})),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,Cn)})),()=>{e=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(Tt(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:n,name:r}=e,i=Tt(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),o[t][n].push(r))})),i.forEach((e=>{const{provider:t,prefix:n}=e;o[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;let o;delete e.iconsToLoad,r&&(o=Wt(t))&&o.prepare(t,n,r).forEach((n=>{sn(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Lt(e,t);if(!n.length)return;const r=e.pendingIcons;r&&n.forEach((e=>{r.delete(e)})),jn(e,t)}catch(e){console.error(e)}_n(e)}))}))})))}(e,o[t][n])})),t?function(e,t,n){const r=en++,o=Kt.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),o}(t,r,i):Cn};const Ln=/[\s,]+/;function Dn(e,t){t.split(Ln).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Nn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}function Rn(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let In;function Pn(e){return void 0===In&&function(){try{In=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{In=null}}(),In?In.createHTML(e):e}const Mn={...Pt,inline:!1},Fn={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},An={display:"inline-block"},qn={backgroundColor:"currentColor"},zn={backgroundColor:"transparent"},Hn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},$n={WebkitMask:qn,mask:qn,background:zn};for(const e in $n){const t=$n[e];for(const n in Hn)t[e+n]=Hn[n]}const Vn={...Mn,inline:!0};function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Bn=(t,n,r,o)=>{const i=r?Vn:Mn,a=function(e,t){const n={...e};for(const e in t){const r=t[e],o=typeof r;e in It?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(i,n),s=n.mode||"svg",c={},l=n.style||{},u={..."svg"===s?Fn:{},ref:o};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Dn(a,t);break;case"color":c.color=t;break;case"rotate":"string"==typeof t?a[e]=Nn(t):"number"==typeof t&&(a[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete u["aria-hidden"];break;default:void 0===i[e]&&(u[e]=t)}}const f=function(e,t){const n={...xt,...e},r={...Pt,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach((e=>{const t=[],n=e.hFlip,r=e.vFlip;let a,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=r.width,s=r.height,c=o.width,l=o.height;let u,f;null===a?(f=null===s?"1em":"auto"===s?l:s,u=At(f,c/l)):(u="auto"===a?c:a,f=null===s?At(u,l/c):"auto"===s?l:s);const p={},d=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return d("width",u),d("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:i}}(t,a),p=f.attributes;if(a.inline&&(c.verticalAlign="-0.125em"),"svg"===s){u.style={...c,...l},Object.assign(u,p);let t=0,r=n.id;return"string"==typeof r&&(r=r.replace(/-/g,"_")),u.dangerouslySetInnerHTML={__html:Pn($t(f.body,r?()=>r+"ID"+t++:"iconifyReact"))},e.createElement("svg",u)}const{body:d,width:h,height:g}=t,m="mask"===s||"bg"!==s&&-1!==d.indexOf("currentColor"),y=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(d,{...p,width:h+"",height:g+""});return u.style={...c,"--svg":Rn(y),width:Wn(p.width),height:Wn(p.height),...An,...m?qn:zn,...l},e.createElement("span",u)};var Un;if(Nt(!0),Un=Jt,Vt[""]=Un,typeof document<"u"&&typeof window<"u"){On();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Rt(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;Xt(e,r)||console.error(n)}catch{console.error(n)}}}}class Yn extends e.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let r;if("string"!=typeof n||null===(r=mt(n,!1,!0)))return this._abortLoading(),void this._setData(null);const o=function(e){const t="string"==typeof e?mt(e,!0,Dt):e;if(t){const e=Tt(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(r);if(o){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==r.prefix&&e.push("iconify--"+r.prefix),""!==r.provider&&e.push("iconify--"+r.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:n,abort:Tn([r],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(null===n)return t.children?t.children:e.createElement("span",{});let r=t;return n.classes&&(r={...t,className:("string"==typeof t.className?t.className+" ":"")+n.classes.join(" ")}),Bn({...xt,...n.data},r,t._inline,t._ref)}}const Qn=e.forwardRef((function(t,n){const r={...t,_ref:n,_inline:!1};return e.createElement(Yn,r)}));e.forwardRef((function(t,n){const r={...t,_ref:n,_inline:!0};return e.createElement(Yn,r)}));const Xn=n(((e,t)=>{const{id:n,message:r,closeButton:o,type:i,...a}=ft(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:s}=ut(),c="loading"===i;return w.jsx(ze,{ref:t,role:"alert",...a,children:w.jsxs("div",{className:S("flex items-center justify-center w-full",c&&"pl-6",o&&"pr-6"),children:["loading"===i?w.jsx(Qn,{icon:"line-md:loading-twotone-loop",width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,w.jsx("div",{children:r}),o?w.jsx(Qn,{icon:"ic:baseline-close",onClick:()=>s(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),Zn=e=>w.jsx(lt,{...e,Components:{alert:ht,info:Xn},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),Gn=({children:e,...t})=>w.jsx(m,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&w.jsx("div",{children:e})});function Jn(e){Xe({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function Kn(e){Xe({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function er(e,t){return Xe({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Ze(t?.id)}const tr={info:(e,t)=>er(e,t),error:(e,t)=>function(e,t){return Xe({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Ze(t?.id)}(e,t),loading:(e,t)=>er(e,{...t,type:"loading"})};export{Zn as SnackbarProvider,Gn as StyledSnackbar,Ze as closeSnackbar,Xe as enqueueSnackbar,tr as message,Jn as processAlertSnackBar,Kn as processInfoSnackbar,ut as useSnackbar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const omit: <T extends object, K extends keyof T>(obj: T, keys: ReadonlyArray<K>) => Omit<T, K>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type * from './internal';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
__ASMA_CORE_UI__?: Awaited<typeof import('./internal')>;
|
|
6
|
+
rawWindow?: typeof window;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const SnackbarProvider: (props: import("notistack").SnackbarProviderProps) => JSX.Element, StyledSnackbar: ({ children, ...props }: import("@mui/material").SnackbarProps) => JSX.Element, closeSnackbar: (key?: import("notistack").SnackbarKey | undefined) => void, enqueueSnackbar: import("notistack").EnqueueSnackbar, message: {
|
|
10
|
+
info: (messageInfo: import("react").ReactNode, options?: import("./snack-bar/components/types").MessageProps | undefined) => () => void;
|
|
11
|
+
error: (messageInfo: import("react").ReactNode, options?: import("./snack-bar/components/types").MessageProps | undefined) => () => void;
|
|
12
|
+
loading: (messageInfo: import("react").ReactNode, options?: import("./snack-bar/components/types").MessageProps | undefined) => () => void;
|
|
13
|
+
}, processAlertSnackBar: typeof import("./internal").processAlertSnackBar, processInfoSnackbar: typeof import("./internal").processInfoSnackbar, useSnackbar: typeof import("notistack").useSnackbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './snack-bar';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AlertColor } from '@mui/material';
|
|
3
|
+
import { type SnackbarProviderProps } from 'notistack';
|
|
4
|
+
/**
|
|
5
|
+
* @ignore
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const SnackbarProvider: (props: SnackbarProviderProps) => JSX.Element;
|
|
9
|
+
declare module 'notistack' {
|
|
10
|
+
interface VariantOverrides {
|
|
11
|
+
alert: {
|
|
12
|
+
/**
|
|
13
|
+
* The className to apply to the alert.
|
|
14
|
+
*/
|
|
15
|
+
alertClassName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The variant to use.
|
|
18
|
+
* @default 'standard'
|
|
19
|
+
*/
|
|
20
|
+
alertVariant?: 'standard' | 'filled' | 'outlined';
|
|
21
|
+
/**
|
|
22
|
+
* The severity of the alert. This defines the color and icon used.
|
|
23
|
+
* @default 'success'
|
|
24
|
+
*/
|
|
25
|
+
severity?: AlertColor;
|
|
26
|
+
/**
|
|
27
|
+
* If true, the alert is closable.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
closeButton?: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AlertColor } from '@mui/material';
|
|
3
|
+
import { type CustomContentProps } from 'notistack';
|
|
4
|
+
interface StyledAlertSnackbarProps extends CustomContentProps {
|
|
5
|
+
severity?: AlertColor;
|
|
6
|
+
alertClassName?: string;
|
|
7
|
+
alertVariant?: 'standard' | 'filled' | 'outlined';
|
|
8
|
+
closeButton?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const StyledAlertSnackbar: import("react").ForwardRefExoticComponent<StyledAlertSnackbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AlertColor } from '@mui/material';
|
|
3
|
+
import { type CustomContentProps } from 'notistack';
|
|
4
|
+
interface StyledInfoSnackbarProps extends CustomContentProps {
|
|
5
|
+
severity?: AlertColor;
|
|
6
|
+
alertClassName?: string;
|
|
7
|
+
alertVariant?: 'standard' | 'filled' | 'outlined';
|
|
8
|
+
closeButton?: boolean;
|
|
9
|
+
type?: 'loading';
|
|
10
|
+
}
|
|
11
|
+
export declare const StyledInfoSnackbar: import("react").ForwardRefExoticComponent<StyledInfoSnackbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AlertColor } from '@mui/material';
|
|
2
|
+
import type { SnackbarProviderProps } from 'notistack';
|
|
3
|
+
export type MessageProps = SnackbarProviderProps & {
|
|
4
|
+
severity?: AlertColor;
|
|
5
|
+
persist?: boolean;
|
|
6
|
+
closeButton?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
type?: 'loading';
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { MessageProps } from './components/types';
|
|
3
|
+
/**
|
|
4
|
+
* Important props:
|
|
5
|
+
* @param id - string. To control the message
|
|
6
|
+
* @remarks use callBack function to close the message manually. Providing ID as a param is important in this case.
|
|
7
|
+
* Without ID, callback fil force close all active notifications
|
|
8
|
+
* @param closeButton - true | false
|
|
9
|
+
* @param persist - true | false
|
|
10
|
+
* @param autoHideDuration - number
|
|
11
|
+
* @moreProps https://notistack.com/api-reference#mutual-props
|
|
12
|
+
*/
|
|
13
|
+
export declare const message: {
|
|
14
|
+
info: (messageInfo: string | ReactNode, options?: MessageProps) => (() => void);
|
|
15
|
+
error: (messageInfo: string | ReactNode, options?: MessageProps) => (() => void);
|
|
16
|
+
loading: (messageInfo: string | ReactNode, options?: MessageProps) => (() => void);
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function processAlertSnackBar(message: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function processInfoSnackbar(message: string): void;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
mode: string;
|
|
3
|
+
important: true;
|
|
4
|
+
content: string[];
|
|
5
|
+
theme: {
|
|
6
|
+
fontFamily: {
|
|
7
|
+
sans: string[];
|
|
8
|
+
roboto: string[];
|
|
9
|
+
};
|
|
10
|
+
extend: {
|
|
11
|
+
colors: {
|
|
12
|
+
inherit: string;
|
|
13
|
+
"textcolor-component": string;
|
|
14
|
+
"color-active-component": string;
|
|
15
|
+
"alpha-100": string;
|
|
16
|
+
"alpha-500": string;
|
|
17
|
+
"alpha-600": string;
|
|
18
|
+
"alpha-700": string;
|
|
19
|
+
"beta-100": string;
|
|
20
|
+
"beta-500": string;
|
|
21
|
+
"beta-600": string;
|
|
22
|
+
"beta-700": string;
|
|
23
|
+
"gama-25": string;
|
|
24
|
+
"gama-50": string;
|
|
25
|
+
"gama-100": string;
|
|
26
|
+
"gama-200": string;
|
|
27
|
+
"gama-300": string;
|
|
28
|
+
"gama-400": string;
|
|
29
|
+
"gama-500": string;
|
|
30
|
+
"gama-600": string;
|
|
31
|
+
"gama-700": string;
|
|
32
|
+
"gama-800": string;
|
|
33
|
+
"delta-10": string;
|
|
34
|
+
"delta-50": string;
|
|
35
|
+
"delta-100": string;
|
|
36
|
+
"delta-200": string;
|
|
37
|
+
"delta-300": string;
|
|
38
|
+
"delta-400": string;
|
|
39
|
+
"delta-500": string;
|
|
40
|
+
"delta-600": string;
|
|
41
|
+
"delta-700": string;
|
|
42
|
+
"delta-800": string;
|
|
43
|
+
"delta-900": string;
|
|
44
|
+
"delta-9000": string;
|
|
45
|
+
"sigma-700": string;
|
|
46
|
+
"zeta-700": string;
|
|
47
|
+
"theta-100": string;
|
|
48
|
+
"theta-200": string;
|
|
49
|
+
"theta-300": string;
|
|
50
|
+
"theta-400": string;
|
|
51
|
+
"theta-500": string;
|
|
52
|
+
"theta-600": string;
|
|
53
|
+
"theta-700": string;
|
|
54
|
+
"theta-800": string;
|
|
55
|
+
"theta-hover": string;
|
|
56
|
+
"btn-bg": string;
|
|
57
|
+
"btn-bg-active": string;
|
|
58
|
+
"btn-bg-hover": string;
|
|
59
|
+
"btn-bg-disabled": string;
|
|
60
|
+
"btn-bg-danger": string;
|
|
61
|
+
"btn-bg-danger-active": string;
|
|
62
|
+
"btn-task-status-bg": string;
|
|
63
|
+
"btn-bg-mini-action": string;
|
|
64
|
+
"btn-bg-mini-action-hover": string;
|
|
65
|
+
"chat-ticket-message-bg": string;
|
|
66
|
+
"colors-topbar-text": string;
|
|
67
|
+
"custom-grey-01": string;
|
|
68
|
+
"custom-grey-02": string;
|
|
69
|
+
"custom-grey-03": string;
|
|
70
|
+
"custom-grey-04": string;
|
|
71
|
+
"custom-grey-06": string;
|
|
72
|
+
};
|
|
73
|
+
boxShadow: {
|
|
74
|
+
ash: string;
|
|
75
|
+
};
|
|
76
|
+
animation: {
|
|
77
|
+
"slide-in": string;
|
|
78
|
+
"slide-out": string;
|
|
79
|
+
"opacity-in": string;
|
|
80
|
+
"opacity-in-5": string;
|
|
81
|
+
"opacity-appear-3": string;
|
|
82
|
+
"opacity-out": string;
|
|
83
|
+
};
|
|
84
|
+
keyframes: {
|
|
85
|
+
"slide-in": {
|
|
86
|
+
"0%": {
|
|
87
|
+
margin: string;
|
|
88
|
+
};
|
|
89
|
+
"100%": {
|
|
90
|
+
margin: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
"slide-out": {
|
|
94
|
+
"0%": {
|
|
95
|
+
margin: string;
|
|
96
|
+
};
|
|
97
|
+
"100%": {
|
|
98
|
+
margin: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
"opacity-in": {
|
|
102
|
+
"0%": {
|
|
103
|
+
opacity: string;
|
|
104
|
+
height: string;
|
|
105
|
+
};
|
|
106
|
+
"100%": {
|
|
107
|
+
opacity: string;
|
|
108
|
+
height: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
"opacity-appear": {
|
|
112
|
+
"0%": {
|
|
113
|
+
opacity: string;
|
|
114
|
+
};
|
|
115
|
+
"100%": {
|
|
116
|
+
opacity: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
"opacity-out": {
|
|
120
|
+
"0%": {
|
|
121
|
+
opacity: string;
|
|
122
|
+
height: string;
|
|
123
|
+
};
|
|
124
|
+
"60%": {
|
|
125
|
+
opacity: string;
|
|
126
|
+
height: string;
|
|
127
|
+
};
|
|
128
|
+
"100%": {
|
|
129
|
+
opacity: string;
|
|
130
|
+
height: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
darkMode: "media";
|
|
137
|
+
corePlugins: {
|
|
138
|
+
preflight: false;
|
|
139
|
+
};
|
|
140
|
+
plugins: any[];
|
|
141
|
+
};
|
|
142
|
+
export default _default;
|