@luminati-io/uikit 3.5.15 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -31557,12 +31557,12 @@ __webpack_require__.r(__webpack_exports__);
31557
31557
  /* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_19__.Table),
31558
31558
  /* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.TagGroup),
31559
31559
  /* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.Toast),
31560
- /* harmony export */ ToastProvider: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.ToastProvider),
31560
+ /* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.Toaster),
31561
31561
  /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
31562
31562
  /* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_9__),
31563
31563
  /* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_6__["default"]),
31564
31564
  /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_7__["default"]),
31565
- /* harmony export */ useToast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.useToast),
31565
+ /* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.useToaster),
31566
31566
  /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_14__.withPopover),
31567
31567
  /* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
31568
31568
  /* harmony export */ });
@@ -41747,6 +41747,32 @@ var theme = {
41747
41747
 
41748
41748
  /***/ }),
41749
41749
 
41750
+ /***/ "./src/toast/context.js":
41751
+ /*!******************************!*\
41752
+ !*** ./src/toast/context.js ***!
41753
+ \******************************/
41754
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
41755
+
41756
+ "use strict";
41757
+ __webpack_require__.r(__webpack_exports__);
41758
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41759
+ /* harmony export */ ToastContext: () => (/* binding */ ToastContext)
41760
+ /* harmony export */ });
41761
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
41762
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
41763
+ // LICENSE_CODE ZON
41764
+
41765
+
41766
+ /*jslint react:true*/
41767
+
41768
+ var defaultContextValue = {
41769
+ maxToasts: 2,
41770
+ position: 'bottom-left'
41771
+ };
41772
+ var ToastContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext(defaultContextValue);
41773
+
41774
+ /***/ }),
41775
+
41750
41776
  /***/ "./src/toast/index.js":
41751
41777
  /*!****************************!*\
41752
41778
  !*** ./src/toast/index.js ***!
@@ -41757,11 +41783,12 @@ var theme = {
41757
41783
  __webpack_require__.r(__webpack_exports__);
41758
41784
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41759
41785
  /* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_0__.Toast),
41760
- /* harmony export */ ToastProvider: () => (/* reexport safe */ _toast_provider__WEBPACK_IMPORTED_MODULE_1__.ToastProvider),
41761
- /* harmony export */ useToast: () => (/* reexport safe */ _toast_provider__WEBPACK_IMPORTED_MODULE_1__.useToast)
41786
+ /* harmony export */ Toaster: () => (/* reexport safe */ _toaster__WEBPACK_IMPORTED_MODULE_1__.Toaster),
41787
+ /* harmony export */ useToaster: () => (/* reexport safe */ _use_toaster__WEBPACK_IMPORTED_MODULE_2__.useToaster)
41762
41788
  /* harmony export */ });
41763
41789
  /* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toast */ "./src/toast/toast.js");
41764
- /* harmony import */ var _toast_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toast_provider */ "./src/toast/toast_provider.js");
41790
+ /* harmony import */ var _toaster__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toaster */ "./src/toast/toaster.js");
41791
+ /* harmony import */ var _use_toaster__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./use_toaster */ "./src/toast/use_toaster.js");
41765
41792
  // LICENSE_CODE ZON
41766
41793
 
41767
41794
 
@@ -41769,6 +41796,7 @@ __webpack_require__.r(__webpack_exports__);
41769
41796
 
41770
41797
 
41771
41798
 
41799
+
41772
41800
  /***/ }),
41773
41801
 
41774
41802
  /***/ "./src/toast/toast.js":
@@ -41797,7 +41825,7 @@ __webpack_require__.r(__webpack_exports__);
41797
41825
 
41798
41826
 
41799
41827
  /*jslint react:true*/
41800
- var _excluded = ["type", "children", "onClose"];
41828
+ var _excluded = ["type", "children", "onClose", "dismissible", "notDismissible"];
41801
41829
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
41802
41830
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
41803
41831
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -41814,7 +41842,11 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
41814
41842
  var type = props.type,
41815
41843
  children = props.children,
41816
41844
  onClose = props.onClose,
41845
+ dismissible = props.dismissible,
41846
+ notDismissible = props.notDismissible,
41817
41847
  rest = _objectWithoutProperties(props, _excluded);
41848
+ var _dismissible = dismissible || type == 'error' || type == 'warning';
41849
+ var _notDismissible = notDismissible;
41818
41850
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
41819
41851
  ref: ref,
41820
41852
  $type: type
@@ -41824,15 +41856,17 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
41824
41856
  variant: "sm",
41825
41857
  color: "gray_11_50"
41826
41858
  }, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RemoveButton, {
41827
- onClose: onClose,
41828
- type: type
41859
+ onClick: onClose,
41860
+ dismissible: _dismissible && !_notDismissible
41829
41861
  }));
41830
41862
  });
41831
41863
  Toast.displayName = 'Toast';
41832
41864
  Toast.defaultProps = {};
41833
41865
  Toast.propTypes = {
41834
41866
  type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['success', 'error', 'warning', 'info', 'generic']),
41835
- onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
41867
+ onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
41868
+ dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
41869
+ notDismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
41836
41870
  };
41837
41871
  var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
41838
41872
  displayName: "Wrapper",
@@ -41869,15 +41903,20 @@ var ToastIcon = function ToastIcon(props) {
41869
41903
  });
41870
41904
  };
41871
41905
  var RemoveButton = function RemoveButton(props) {
41872
- var type = props.type,
41873
- onClose = props.onClose;
41874
- if (type != 'error' & type != 'warning') return null;
41906
+ var onClick = props.onClick,
41907
+ dismissible = props.dismissible;
41908
+ if (!dismissible) return null;
41875
41909
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledRemoveButton, {
41876
41910
  variant: "icon",
41877
41911
  icon: "CloseSmall",
41878
- onClick: onClose
41912
+ onClick: onClick
41879
41913
  });
41880
41914
  };
41915
+ RemoveButton.defaultProps = {};
41916
+ RemoveButton.propTypes = {
41917
+ onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
41918
+ dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
41919
+ };
41881
41920
  var StyledRemoveButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton).withConfig({
41882
41921
  displayName: "StyledRemoveButton",
41883
41922
  componentId: "sc-tn2lqb-1"
@@ -41885,310 +41924,290 @@ var StyledRemoveButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default(
41885
41924
 
41886
41925
  /***/ }),
41887
41926
 
41888
- /***/ "./src/toast/toast_container.js":
41889
- /*!**************************************!*\
41890
- !*** ./src/toast/toast_container.js ***!
41891
- \**************************************/
41927
+ /***/ "./src/toast/toast_item.js":
41928
+ /*!*********************************!*\
41929
+ !*** ./src/toast/toast_item.js ***!
41930
+ \*********************************/
41892
41931
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
41893
41932
 
41894
41933
  "use strict";
41895
41934
  __webpack_require__.r(__webpack_exports__);
41896
41935
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41897
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
41936
+ /* harmony export */ ToastItem: () => (/* binding */ ToastItem)
41898
41937
  /* harmony export */ });
41899
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
41900
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
41901
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
41902
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
41938
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
41939
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
41940
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
41941
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
41942
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
41943
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
41944
+ /* harmony import */ var react_hot_toast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-hot-toast */ "./node_modules/react-hot-toast/dist/index.mjs");
41945
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! styled-components */ "styled-components");
41946
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_4__);
41947
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
41948
+ /* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./toast */ "./src/toast/toast.js");
41949
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/toast/context.js");
41903
41950
  // LICENSE_CODE ZON
41904
41951
 
41905
41952
 
41906
41953
  /*jslint react:true*/
41907
41954
 
41908
41955
 
41909
- var ToastContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
41910
- var children = props.children;
41911
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Wrapper, {
41912
- ref: ref
41913
- }, children);
41956
+
41957
+
41958
+
41959
+
41960
+
41961
+
41962
+ var enterAnimation = function enterAnimation(factor) {
41963
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.keyframes)(["0%{transform:translate3d(0,", "%,0) scale(.6);opacity:.5;}100%{transform:translate3d(0,0,0) scale(1);opacity:1;}"], factor * -200);
41964
+ };
41965
+ var exitAnimation = function exitAnimation(factor) {
41966
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.keyframes)(["0%{transform:translate3d(0,0,-1px) scale(1);opacity:1;}100%{transform:translate3d(0,", "%,-1px) scale(.6);opacity:0;}"], factor * -150);
41967
+ };
41968
+ var ToastAnimatedComp = styled_components__WEBPACK_IMPORTED_MODULE_4___default().div.withConfig({
41969
+ displayName: "ToastAnimatedComp",
41970
+ componentId: "sc-1whlqk5-0"
41971
+ })(["display:flex;align-items:center;will-change:transform;max-width:350px;", ";"], function (props) {
41972
+ var $position = props.$position,
41973
+ $visible = props.$visible;
41974
+ var top = $position.includes('top');
41975
+ var factor = top ? 1 : -1;
41976
+ return $visible ? (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.css)(["animation:", " 0.35s cubic-bezier(.21,1.02,.73,1) forwards;"], enterAnimation(factor)) : (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.css)(["animation:", " 0.4s forwards cubic-bezier(.06,.71,.55,1)"], exitAnimation(factor));
41914
41977
  });
41915
- ToastContainer.displayName = 'ToastContainer';
41916
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToastContainer);
41917
- var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
41918
- displayName: "Wrapper",
41919
- componentId: "sc-1ayfh0v-0"
41920
- })(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;"]);
41978
+ ToastAnimatedComp.defaultProps = {
41979
+ $position: 'bottom-left'
41980
+ };
41981
+ ToastAnimatedComp.propTypes = {
41982
+ $position: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.toastPositions),
41983
+ $visible: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
41984
+ };
41985
+ var ToastComp = function ToastComp(props) {
41986
+ var toast = props.toast;
41987
+ var id = toast.id,
41988
+ type = toast.type,
41989
+ onClose = toast.onClose,
41990
+ dismissToast = toast.dismissToast,
41991
+ message = toast.message,
41992
+ dismissible = toast.dismissible,
41993
+ notDismissible = toast.notDismissible;
41994
+ var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_context__WEBPACK_IMPORTED_MODULE_7__.ToastContext),
41995
+ position = _useContext.position;
41996
+ var onCloseHandler = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function () {
41997
+ dismissToast(id);
41998
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(onClose)) onClose(id);
41999
+ }, [id]);
42000
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ToastAnimatedComp, {
42001
+ $position: toast.position || position || 'bottom-left',
42002
+ $visible: toast.visible
42003
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_toast__WEBPACK_IMPORTED_MODULE_6__.Toast, {
42004
+ onClose: onCloseHandler,
42005
+ type: type,
42006
+ dismissible: dismissible,
42007
+ notDismissible: notDismissible
42008
+ }, (0,react_hot_toast__WEBPACK_IMPORTED_MODULE_3__.resolveValue)(message, toast)));
42009
+ };
42010
+ var ToastItem = function ToastItem() {
42011
+ var toast = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
42012
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ToastComp, {
42013
+ toast: toast
42014
+ });
42015
+ };
41921
42016
 
41922
42017
  /***/ }),
41923
42018
 
41924
- /***/ "./src/toast/toast_context.js":
41925
- /*!************************************!*\
41926
- !*** ./src/toast/toast_context.js ***!
41927
- \************************************/
42019
+ /***/ "./src/toast/toaster.js":
42020
+ /*!******************************!*\
42021
+ !*** ./src/toast/toaster.js ***!
42022
+ \******************************/
41928
42023
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
41929
42024
 
41930
42025
  "use strict";
41931
42026
  __webpack_require__.r(__webpack_exports__);
41932
42027
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41933
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
42028
+ /* harmony export */ Toaster: () => (/* binding */ Toaster)
41934
42029
  /* harmony export */ });
41935
- /* harmony import */ var lodash_noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js");
41936
- /* harmony import */ var lodash_noop__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_noop__WEBPACK_IMPORTED_MODULE_0__);
42030
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
42031
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
41937
42032
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
41938
42033
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
42034
+ /* harmony import */ var react_hot_toast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-hot-toast */ "./node_modules/react-hot-toast/dist/index.mjs");
42035
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
42036
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/toast/context.js");
42037
+ /* harmony import */ var _toast_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./toast_item */ "./src/toast/toast_item.js");
41939
42038
  // LICENSE_CODE ZON
41940
42039
 
41941
42040
 
41942
42041
  /*jslint react:true*/
41943
42042
 
41944
42043
 
41945
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext({
41946
- enqueueToast: (lodash_noop__WEBPACK_IMPORTED_MODULE_0___default()),
41947
- closeToast: (lodash_noop__WEBPACK_IMPORTED_MODULE_0___default())
41948
- }));
41949
-
41950
- /***/ }),
41951
-
41952
- /***/ "./src/toast/toast_item.js":
41953
- /*!*********************************!*\
41954
- !*** ./src/toast/toast_item.js ***!
41955
- \*********************************/
41956
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
41957
-
41958
- "use strict";
41959
- __webpack_require__.r(__webpack_exports__);
41960
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41961
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
41962
- /* harmony export */ });
41963
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
41964
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
41965
- /* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toast */ "./src/toast/toast.js");
41966
- // LICENSE_CODE ZON
41967
42044
 
41968
42045
 
41969
- /*jslint react:true*/
41970
42046
 
41971
42047
 
41972
- var ToastItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
41973
- var onClose = props.onClose,
41974
- onEntered = props.onEntered,
41975
- onExited = props.onExited,
41976
- toast = props.toast;
41977
- var onCloseHandler = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(function () {
41978
- onClose(toast.id);
41979
- onExited(toast.id);
41980
- }, [toast.id, onClose, onExited]);
41981
- react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
41982
- onEntered(toast.id);
41983
- }, [onEntered, toast.id]);
41984
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_toast__WEBPACK_IMPORTED_MODULE_1__.Toast, {
41985
- ref: ref,
41986
- onClose: onCloseHandler,
41987
- type: toast.type
41988
- }, toast.message);
41989
- });
41990
- ToastItem.displayName = 'ToastItem';
41991
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToastItem);
42048
+ var Toaster = function Toaster(props) {
42049
+ var position = props.position,
42050
+ gap = props.gap,
42051
+ maxToasts = props.maxToasts,
42052
+ children = props.children;
42053
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_context__WEBPACK_IMPORTED_MODULE_4__.ToastContext.Provider, {
42054
+ value: {
42055
+ maxToasts: maxToasts,
42056
+ position: position
42057
+ }
42058
+ }, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hot_toast__WEBPACK_IMPORTED_MODULE_2__.Toaster, {
42059
+ position: position,
42060
+ gutter: gap,
42061
+ toastOptions: {
42062
+ duration: 5000
42063
+ }
42064
+ }, _toast_item__WEBPACK_IMPORTED_MODULE_5__.ToastItem));
42065
+ };
42066
+ Toaster.defaultProps = {
42067
+ position: 'bottom-left',
42068
+ gap: 8,
42069
+ maxToasts: 2
42070
+ };
42071
+ Toaster.propTypes = {
42072
+ position: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.toastPositions),
42073
+ gap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
42074
+ maxToasts: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
42075
+ };
41992
42076
 
41993
42077
  /***/ }),
41994
42078
 
41995
- /***/ "./src/toast/toast_provider.js":
41996
- /*!*************************************!*\
41997
- !*** ./src/toast/toast_provider.js ***!
41998
- \*************************************/
42079
+ /***/ "./src/toast/use_toaster.js":
42080
+ /*!**********************************!*\
42081
+ !*** ./src/toast/use_toaster.js ***!
42082
+ \**********************************/
41999
42083
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
42000
42084
 
42001
42085
  "use strict";
42002
42086
  __webpack_require__.r(__webpack_exports__);
42003
42087
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42004
- /* harmony export */ ToastProvider: () => (/* binding */ ToastProvider),
42005
- /* harmony export */ useToast: () => (/* binding */ useToast)
42088
+ /* harmony export */ useToaster: () => (/* binding */ useToaster)
42006
42089
  /* harmony export */ });
42007
42090
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
42008
42091
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
42009
- /* harmony import */ var _toast_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toast_context */ "./src/toast/toast_context.js");
42010
- /* harmony import */ var _toast_container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./toast_container */ "./src/toast/toast_container.js");
42011
- /* harmony import */ var _toast_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toast_item */ "./src/toast/toast_item.js");
42092
+ /* harmony import */ var react_hot_toast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-hot-toast */ "./node_modules/react-hot-toast/dist/index.mjs");
42093
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ "./src/toast/context.js");
42012
42094
  // LICENSE_CODE ZON
42013
42095
 
42014
42096
 
42015
42097
  /*jslint react:true*/
42016
42098
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
42017
- var _excluded = ["key"];
42018
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
42019
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
42020
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
42021
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
42022
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
42023
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
42024
42099
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42025
42100
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42026
42101
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
42027
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
42028
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
42029
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
42030
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
42031
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
42032
42102
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
42033
42103
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
42034
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
42035
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
42036
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
42037
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42038
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
42039
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
42040
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
42041
-
42104
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
42105
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
42106
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
42107
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
42108
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
42109
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
42042
42110
 
42043
42111
 
42044
42112
 
42045
- var defaults = {
42046
- maxToasts: 2
42047
- };
42048
- var ToastProvider = /*#__PURE__*/function (_React$Component) {
42049
- _inherits(ToastProvider, _React$Component);
42050
- function ToastProvider(props) {
42051
- var _this;
42052
- _classCallCheck(this, ToastProvider);
42053
- _this = _callSuper(this, ToastProvider, [props]);
42054
- _this.state = {
42055
- toasts: [],
42056
- queue: [],
42057
- contextValue: {
42058
- enqueueToast: _this.enqueueToast.bind(_assertThisInitialized(_this)),
42059
- closeToast: _this.closeToast.bind(_assertThisInitialized(_this))
42060
- }
42061
- };
42062
- _this.handleCloseToast = _this.handleCloseToast.bind(_assertThisInitialized(_this));
42063
- _this.handleEnteredToast = _this.handleEnteredToast.bind(_assertThisInitialized(_this));
42064
- _this.handleExitedToast = _this.handleExitedToast.bind(_assertThisInitialized(_this));
42065
- return _this;
42066
- }
42067
- _createClass(ToastProvider, [{
42068
- key: "maxToasts",
42069
- get: function get() {
42070
- return this.props.maxToasts || defaults.maxToasts;
42071
- }
42072
- }, {
42073
- key: "enqueueToast",
42074
- value: function enqueueToast(message) {
42075
- var _this2 = this;
42076
- var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
42077
- var key = opts.key,
42078
- options = _objectWithoutProperties(opts, _excluded);
42079
- var id = key ? key : Date.now() + Math.random();
42080
- var toast = _objectSpread(_objectSpread({
42081
- id: id
42082
- }, options), {}, {
42083
- open: true,
42084
- entered: false,
42085
- requestClose: false,
42086
- message: message
42087
- });
42088
- this.setState(function (state) {
42089
- return _this2.processQueue(_objectSpread(_objectSpread({}, state), {}, {
42090
- queue: [].concat(_toConsumableArray(state.queue), [toast])
42113
+ var DEFAULT_TYPE_CONFIG = {
42114
+ 'error': {
42115
+ duration: Infinity
42116
+ },
42117
+ 'warning': {
42118
+ duration: Infinity
42119
+ },
42120
+ 'success': {
42121
+ duration: 5000
42122
+ },
42123
+ 'info': {
42124
+ duration: 5000
42125
+ },
42126
+ 'generic': {
42127
+ duration: 5000
42128
+ }
42129
+ };
42130
+ var queue = [];
42131
+ var dismissToast = function dismissToast(id) {
42132
+ if (!id) queue.length = 0;
42133
+ return react_hot_toast__WEBPACK_IMPORTED_MODULE_1__["default"].dismiss(id);
42134
+ };
42135
+ var _useToaster = function _useToaster() {
42136
+ var _useHotToaster = (0,react_hot_toast__WEBPACK_IMPORTED_MODULE_1__.useToaster)(),
42137
+ toasts = _useHotToaster.toasts;
42138
+ var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_2__.ToastContext);
42139
+ var processQueue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
42140
+ var visibleToasts = toasts.filter(function (t) {
42141
+ return t.visible;
42142
+ });
42143
+ if (visibleToasts.length >= context.maxToasts || queue.length == 0) return;
42144
+ var _queue$shift = queue.shift(),
42145
+ _queue$shift2 = _slicedToArray(_queue$shift, 2),
42146
+ message = _queue$shift2[0],
42147
+ opt = _queue$shift2[1];
42148
+ react_hot_toast__WEBPACK_IMPORTED_MODULE_1__["default"].custom(message, opt);
42149
+ }, [toasts]);
42150
+ var processQueueRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(processQueue);
42151
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
42152
+ processQueueRef.current = processQueue;
42153
+ }, [processQueue]);
42154
+ var enqueueToast = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (message, opt) {
42155
+ var id = Date.now() + Math.random();
42156
+ var type = opt.type || 'generic';
42157
+ var config = DEFAULT_TYPE_CONFIG[type] || DEFAULT_TYPE_CONFIG.generic;
42158
+ queue.push([message, _objectSpread(_objectSpread(_objectSpread({
42159
+ id: id,
42160
+ type: type
42161
+ }, config), opt), {}, {
42162
+ dismissToast: dismissToast
42163
+ })]);
42164
+ processQueueRef.current();
42165
+ return opt.id || id;
42166
+ }, []);
42167
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
42168
+ processQueue();
42169
+ }, [processQueue]);
42170
+ var _toast = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
42171
+ return {
42172
+ error: function error(message, opt) {
42173
+ return enqueueToast(message, _objectSpread(_objectSpread({}, opt), {}, {
42174
+ type: 'error'
42091
42175
  }));
42092
- });
42093
- return id;
42094
- }
42095
- }, {
42096
- key: "processQueue",
42097
- value: function processQueue(state) {
42098
- var queue = state.queue,
42099
- toasts = state.toasts;
42100
- if (toasts.length >= this.maxToasts) return state;
42101
- if (queue.length > 0) {
42102
- return _objectSpread(_objectSpread({}, state), {}, {
42103
- toasts: [].concat(_toConsumableArray(toasts), [queue[0]]),
42104
- queue: queue.slice(1, queue.length)
42105
- });
42106
- }
42107
- return state;
42108
- }
42109
- }, {
42110
- key: "handleCloseToast",
42111
- value: function handleCloseToast(id) {
42112
- if (this.props.onClose) this.props.onClose(id);
42113
- this.setState(function (_ref) {
42114
- var toasts = _ref.toasts,
42115
- queue = _ref.queue;
42116
- return {
42117
- toasts: toasts.map(function (t) {
42118
- if (t.id !== id) return _objectSpread({}, t);
42119
- return t.entered ? _objectSpread(_objectSpread({}, t), {}, {
42120
- open: false
42121
- }) : _objectSpread(_objectSpread({}, t), {}, {
42122
- requestClose: true
42123
- });
42124
- }),
42125
- queue: queue.filter(function (t) {
42126
- return t.id !== id;
42127
- })
42128
- };
42129
- });
42130
- }
42131
- }, {
42132
- key: "closeToast",
42133
- value: function closeToast(id) {
42134
- var toBeClosed = this.state.toasts.find(function (t) {
42135
- return t.id === id;
42136
- });
42137
- if (id && toBeClosed && toBeClosed.onClose) toBeClosed.onClose(id);
42138
- this.handleCloseToast(id);
42139
- }
42140
- }, {
42141
- key: "handleEnteredToast",
42142
- value: function handleEnteredToast(id) {
42143
- if (!id) return;
42144
- this.setState(function (_ref2) {
42145
- var toasts = _ref2.toasts;
42146
- return {
42147
- toasts: toasts.map(function (t) {
42148
- if (t.id !== id) return _objectSpread({}, t);
42149
- return _objectSpread(_objectSpread({}, t), {}, {
42150
- entered: true
42151
- });
42152
- })
42153
- };
42154
- });
42155
- }
42156
- }, {
42157
- key: "handleExitedToast",
42158
- value: function handleExitedToast(id) {
42159
- var _this3 = this;
42160
- if (!id) return;
42161
- this.setState(function (state) {
42162
- return _this3.processQueue(_objectSpread(_objectSpread({}, state), {}, {
42163
- toasts: state.toasts.filter(function (t) {
42164
- return t.id !== id;
42165
- })
42176
+ },
42177
+ warning: function warning(message, opt) {
42178
+ return enqueueToast(message, _objectSpread(_objectSpread({}, opt), {}, {
42179
+ type: 'warning'
42166
42180
  }));
42167
- });
42168
- }
42169
- }, {
42170
- key: "render",
42171
- value: function render() {
42172
- var _this4 = this;
42173
- var children = this.props.children;
42174
- var toasts = this.state.toasts;
42175
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_toast_context__WEBPACK_IMPORTED_MODULE_1__["default"].Provider, {
42176
- value: this.state.contextValue
42177
- }, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_toast_container__WEBPACK_IMPORTED_MODULE_2__["default"], null, toasts.map(function (t) {
42178
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_toast_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
42179
- key: t.id,
42180
- toast: t,
42181
- onClose: _this4.handleCloseToast,
42182
- onEntered: _this4.handleEnteredToast,
42183
- onExited: _this4.handleExitedToast
42184
- });
42185
- })));
42186
- }
42187
- }]);
42188
- return ToastProvider;
42189
- }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
42190
- var useToast = function useToast() {
42191
- return react__WEBPACK_IMPORTED_MODULE_0___default().useContext(_toast_context__WEBPACK_IMPORTED_MODULE_1__["default"]);
42181
+ },
42182
+ success: function success(message, opt) {
42183
+ return enqueueToast(message, _objectSpread(_objectSpread({}, opt), {}, {
42184
+ type: 'success'
42185
+ }));
42186
+ },
42187
+ info: function info(message, opt) {
42188
+ return enqueueToast(message, _objectSpread(_objectSpread({}, opt), {}, {
42189
+ type: 'info'
42190
+ }));
42191
+ },
42192
+ generic: function generic(message, opt) {
42193
+ return enqueueToast(message, _objectSpread(_objectSpread({}, opt), {}, {
42194
+ type: 'generic'
42195
+ }));
42196
+ }
42197
+ };
42198
+ }, [enqueueToast]);
42199
+ return {
42200
+ enqueueToast: enqueueToast,
42201
+ dismissToast: dismissToast,
42202
+ toast: _toast
42203
+ };
42204
+ };
42205
+ var useToaster = function useToaster() {
42206
+ var toasterHook = _useToaster();
42207
+ var memoizedHook = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
42208
+ return toasterHook;
42209
+ }, []);
42210
+ return memoizedHook;
42192
42211
  };
42193
42212
 
42194
42213
  /***/ }),
@@ -43767,7 +43786,8 @@ __webpack_require__.r(__webpack_exports__);
43767
43786
  /* harmony export */ iconNames: () => (/* binding */ iconNames),
43768
43787
  /* harmony export */ toIconSize: () => (/* binding */ toIconSize),
43769
43788
  /* harmony export */ toPixel: () => (/* binding */ toPixel),
43770
- /* harmony export */ toSize: () => (/* binding */ toSize)
43789
+ /* harmony export */ toSize: () => (/* binding */ toSize),
43790
+ /* harmony export */ toastPositions: () => (/* binding */ toastPositions)
43771
43791
  /* harmony export */ });
43772
43792
  /* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
43773
43793
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
@@ -43837,6 +43857,7 @@ var toIconSize = function toIconSize(size) {
43837
43857
  if (size == 'xxs') return toSize(12);
43838
43858
  return toSize(24);
43839
43859
  };
43860
+ var toastPositions = ['top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right'];
43840
43861
 
43841
43862
  /***/ }),
43842
43863
 
@@ -55849,33 +55870,6 @@ memoize.Cache = MapCache;
55849
55870
  module.exports = memoize;
55850
55871
 
55851
55872
 
55852
- /***/ }),
55853
-
55854
- /***/ "./node_modules/lodash/noop.js":
55855
- /*!*************************************!*\
55856
- !*** ./node_modules/lodash/noop.js ***!
55857
- \*************************************/
55858
- /***/ ((module) => {
55859
-
55860
- /**
55861
- * This method returns `undefined`.
55862
- *
55863
- * @static
55864
- * @memberOf _
55865
- * @since 2.3.0
55866
- * @category Util
55867
- * @example
55868
- *
55869
- * _.times(2, _.noop);
55870
- * // => [undefined, undefined]
55871
- */
55872
- function noop() {
55873
- // No operation performed.
55874
- }
55875
-
55876
- module.exports = noop;
55877
-
55878
-
55879
55873
  /***/ }),
55880
55874
 
55881
55875
  /***/ "./node_modules/lodash/now.js":
@@ -116743,6 +116737,27 @@ function transpose(fromDate, constructor) {
116743
116737
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (transpose);
116744
116738
 
116745
116739
 
116740
+ /***/ }),
116741
+
116742
+ /***/ "./node_modules/goober/dist/goober.modern.js":
116743
+ /*!***************************************************!*\
116744
+ !*** ./node_modules/goober/dist/goober.modern.js ***!
116745
+ \***************************************************/
116746
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
116747
+
116748
+ "use strict";
116749
+ __webpack_require__.r(__webpack_exports__);
116750
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
116751
+ /* harmony export */ css: () => (/* binding */ u),
116752
+ /* harmony export */ extractCss: () => (/* binding */ r),
116753
+ /* harmony export */ glob: () => (/* binding */ b),
116754
+ /* harmony export */ keyframes: () => (/* binding */ h),
116755
+ /* harmony export */ setup: () => (/* binding */ m),
116756
+ /* harmony export */ styled: () => (/* binding */ j)
116757
+ /* harmony export */ });
116758
+ let e={data:""},t=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,r=e=>{let r=t(e),l=r.data;return r.data="",l},l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n=/\n+/g,o=(e,t)=>{let r="",l="",a="";for(let n in e){let c=e[n];"@"==n[0]?"i"==n[1]?r=n+" "+c+";":l+="f"==n[1]?o(c,n):n+"{"+o(c,"k"==n[1]?"":t)+"}":"object"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=o.p?o.p(n,c):n+":"+c+";")}return r+(t&&a?t+"{"+a+"}":a)+l},c={},s=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,""));)t[4]?o.shift():t[3]?(r=t[3].replace(n," ").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n," ").trim();return o[0]})(e);c[d]=o(p?{["@keyframes "+d]:t}:t,r?"":"."+d)}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e}return e+l+(null==n?"":n)},"");function u(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g,b=u.bind({g:1}),h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l}function j(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\d+/.test(s),c.className=u.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}
116759
+
116760
+
116746
116761
  /***/ }),
116747
116762
 
116748
116763
  /***/ "./node_modules/internmap/src/index.js":
@@ -116820,6 +116835,211 @@ function keyof(value) {
116820
116835
  }
116821
116836
 
116822
116837
 
116838
+ /***/ }),
116839
+
116840
+ /***/ "./node_modules/react-hot-toast/dist/index.mjs":
116841
+ /*!*****************************************************!*\
116842
+ !*** ./node_modules/react-hot-toast/dist/index.mjs ***!
116843
+ \*****************************************************/
116844
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
116845
+
116846
+ "use strict";
116847
+ __webpack_require__.r(__webpack_exports__);
116848
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
116849
+ /* harmony export */ CheckmarkIcon: () => (/* binding */ w),
116850
+ /* harmony export */ ErrorIcon: () => (/* binding */ _),
116851
+ /* harmony export */ LoaderIcon: () => (/* binding */ V),
116852
+ /* harmony export */ ToastBar: () => (/* binding */ F),
116853
+ /* harmony export */ ToastIcon: () => (/* binding */ M),
116854
+ /* harmony export */ Toaster: () => (/* binding */ Ie),
116855
+ /* harmony export */ "default": () => (/* binding */ _t),
116856
+ /* harmony export */ resolveValue: () => (/* binding */ T),
116857
+ /* harmony export */ toast: () => (/* binding */ n),
116858
+ /* harmony export */ useToaster: () => (/* binding */ D),
116859
+ /* harmony export */ useToasterStore: () => (/* binding */ I)
116860
+ /* harmony export */ });
116861
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
116862
+ /* harmony import */ var goober__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! goober */ "./node_modules/goober/dist/goober.modern.js");
116863
+ "use client";
116864
+ var W=e=>typeof e=="function",T=(e,t)=>W(e)?e(t):e;var U=(()=>{let e=0;return()=>(++e).toString()})(),b=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})();var Q=20;var S=new Map,X=1e3,$=e=>{if(S.has(e))return;let t=setTimeout(()=>{S.delete(e),u({type:4,toastId:e})},X);S.set(e,t)},J=e=>{let t=S.get(e);t&&clearTimeout(t)},v=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Q)};case 1:return t.toast.id&&J(t.toast.id),{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case 2:let{toast:o}=t;return e.toasts.find(r=>r.id===o.id)?v(e,{type:1,toast:o}):v(e,{type:0,toast:o});case 3:let{toastId:s}=t;return s?$(s):e.toasts.forEach(r=>{$(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===s||s===void 0?{...r,visible:!1}:r)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(r=>({...r,pauseDuration:r.pauseDuration+a}))}}},A=[],P={toasts:[],pausedAt:void 0},u=e=>{P=v(P,e),A.forEach(t=>{t(P)})},Y={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},I=(e={})=>{let[t,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(P);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>(A.push(o),()=>{let a=A.indexOf(o);a>-1&&A.splice(a,1)}),[t]);let s=t.toasts.map(a=>{var r,c;return{...e,...e[a.type],...a,duration:a.duration||((r=e[a.type])==null?void 0:r.duration)||(e==null?void 0:e.duration)||Y[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...t,toasts:s}};var G=(e,t="blank",o)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...o,id:(o==null?void 0:o.id)||U()}),h=e=>(t,o)=>{let s=G(t,e,o);return u({type:2,toast:s}),s.id},n=(e,t)=>h("blank")(e,t);n.error=h("error");n.success=h("success");n.loading=h("loading");n.custom=h("custom");n.dismiss=e=>{u({type:3,toastId:e})};n.remove=e=>u({type:4,toastId:e});n.promise=(e,t,o)=>{let s=n.loading(t.loading,{...o,...o==null?void 0:o.loading});return e.then(a=>(n.success(T(t.success,a),{id:s,...o,...o==null?void 0:o.success}),a)).catch(a=>{n.error(T(t.error,a),{id:s,...o,...o==null?void 0:o.error})}),e};var Z=(e,t)=>{u({type:1,toast:{id:e,height:t}})},ee=()=>{u({type:5,time:Date.now()})},D=e=>{let{toasts:t,pausedAt:o}=I(e);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(o)return;let r=Date.now(),c=t.map(i=>{if(i.duration===1/0)return;let d=(i.duration||0)+i.pauseDuration-(r-i.createdAt);if(d<0){i.visible&&n.dismiss(i.id);return}return setTimeout(()=>n.dismiss(i.id),d)});return()=>{c.forEach(i=>i&&clearTimeout(i))}},[t,o]);let s=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(()=>{o&&u({type:6,time:Date.now()})},[o]),a=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((r,c)=>{let{reverseOrder:i=!1,gutter:d=8,defaultPosition:p}=c||{},g=t.filter(m=>(m.position||p)===(r.position||p)&&m.height),E=g.findIndex(m=>m.id===r.id),x=g.filter((m,R)=>R<E&&m.visible).length;return g.filter(m=>m.visible).slice(...i?[x+1]:[0,x]).reduce((m,R)=>m+(R.height||0)+d,0)},[t]);return{toasts:t,handlers:{updateHeight:Z,startPause:ee,endPause:s,calculateOffset:a}}};var oe=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116865
+ from {
116866
+ transform: scale(0) rotate(45deg);
116867
+ opacity: 0;
116868
+ }
116869
+ to {
116870
+ transform: scale(1) rotate(45deg);
116871
+ opacity: 1;
116872
+ }`,re=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116873
+ from {
116874
+ transform: scale(0);
116875
+ opacity: 0;
116876
+ }
116877
+ to {
116878
+ transform: scale(1);
116879
+ opacity: 1;
116880
+ }`,se=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116881
+ from {
116882
+ transform: scale(0) rotate(90deg);
116883
+ opacity: 0;
116884
+ }
116885
+ to {
116886
+ transform: scale(1) rotate(90deg);
116887
+ opacity: 1;
116888
+ }`,_=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
116889
+ width: 20px;
116890
+ opacity: 0;
116891
+ height: 20px;
116892
+ border-radius: 10px;
116893
+ background: ${e=>e.primary||"#ff4b4b"};
116894
+ position: relative;
116895
+ transform: rotate(45deg);
116896
+
116897
+ animation: ${oe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
116898
+ forwards;
116899
+ animation-delay: 100ms;
116900
+
116901
+ &:after,
116902
+ &:before {
116903
+ content: '';
116904
+ animation: ${re} 0.15s ease-out forwards;
116905
+ animation-delay: 150ms;
116906
+ position: absolute;
116907
+ border-radius: 3px;
116908
+ opacity: 0;
116909
+ background: ${e=>e.secondary||"#fff"};
116910
+ bottom: 9px;
116911
+ left: 4px;
116912
+ height: 2px;
116913
+ width: 12px;
116914
+ }
116915
+
116916
+ &:before {
116917
+ animation: ${se} 0.15s ease-out forwards;
116918
+ animation-delay: 180ms;
116919
+ transform: rotate(90deg);
116920
+ }
116921
+ `;var ne=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116922
+ from {
116923
+ transform: rotate(0deg);
116924
+ }
116925
+ to {
116926
+ transform: rotate(360deg);
116927
+ }
116928
+ `,V=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
116929
+ width: 12px;
116930
+ height: 12px;
116931
+ box-sizing: border-box;
116932
+ border: 2px solid;
116933
+ border-radius: 100%;
116934
+ border-color: ${e=>e.secondary||"#e0e0e0"};
116935
+ border-right-color: ${e=>e.primary||"#616161"};
116936
+ animation: ${ne} 1s linear infinite;
116937
+ `;var pe=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116938
+ from {
116939
+ transform: scale(0) rotate(45deg);
116940
+ opacity: 0;
116941
+ }
116942
+ to {
116943
+ transform: scale(1) rotate(45deg);
116944
+ opacity: 1;
116945
+ }`,de=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116946
+ 0% {
116947
+ height: 0;
116948
+ width: 0;
116949
+ opacity: 0;
116950
+ }
116951
+ 40% {
116952
+ height: 0;
116953
+ width: 6px;
116954
+ opacity: 1;
116955
+ }
116956
+ 100% {
116957
+ opacity: 1;
116958
+ height: 10px;
116959
+ }`,w=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
116960
+ width: 20px;
116961
+ opacity: 0;
116962
+ height: 20px;
116963
+ border-radius: 10px;
116964
+ background: ${e=>e.primary||"#61d345"};
116965
+ position: relative;
116966
+ transform: rotate(45deg);
116967
+
116968
+ animation: ${pe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
116969
+ forwards;
116970
+ animation-delay: 100ms;
116971
+ &:after {
116972
+ content: '';
116973
+ box-sizing: border-box;
116974
+ animation: ${de} 0.2s ease-out forwards;
116975
+ opacity: 0;
116976
+ animation-delay: 200ms;
116977
+ position: absolute;
116978
+ border-right: 2px solid;
116979
+ border-bottom: 2px solid;
116980
+ border-color: ${e=>e.secondary||"#fff"};
116981
+ bottom: 6px;
116982
+ left: 6px;
116983
+ height: 10px;
116984
+ width: 6px;
116985
+ }
116986
+ `;var ue=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
116987
+ position: absolute;
116988
+ `,le=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
116989
+ position: relative;
116990
+ display: flex;
116991
+ justify-content: center;
116992
+ align-items: center;
116993
+ min-width: 20px;
116994
+ min-height: 20px;
116995
+ `,Te=(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)`
116996
+ from {
116997
+ transform: scale(0.6);
116998
+ opacity: 0.4;
116999
+ }
117000
+ to {
117001
+ transform: scale(1);
117002
+ opacity: 1;
117003
+ }`,fe=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
117004
+ position: relative;
117005
+ transform: scale(0.6);
117006
+ opacity: 0.4;
117007
+ min-width: 20px;
117008
+ animation: ${Te} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
117009
+ forwards;
117010
+ `,M=({toast:e})=>{let{icon:t,type:o,iconTheme:s}=e;return t!==void 0?typeof t=="string"?react__WEBPACK_IMPORTED_MODULE_0__.createElement(fe,null,t):t:o==="blank"?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(le,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(V,{...s}),o!=="loading"&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(ue,null,o==="error"?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_,{...s}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(w,{...s})))};var ye=e=>`
117011
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
117012
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
117013
+ `,ge=e=>`
117014
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
117015
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
117016
+ `,he="0%{opacity:0;} 100%{opacity:1;}",xe="0%{opacity:1;} 100%{opacity:0;}",be=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
117017
+ display: flex;
117018
+ align-items: center;
117019
+ background: #fff;
117020
+ color: #363636;
117021
+ line-height: 1.3;
117022
+ will-change: transform;
117023
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
117024
+ max-width: 350px;
117025
+ pointer-events: auto;
117026
+ padding: 8px 10px;
117027
+ border-radius: 8px;
117028
+ `,Se=(0,goober__WEBPACK_IMPORTED_MODULE_1__.styled)("div")`
117029
+ display: flex;
117030
+ justify-content: center;
117031
+ margin: 4px 10px;
117032
+ color: inherit;
117033
+ flex: 1 1 auto;
117034
+ white-space: pre-line;
117035
+ `,Ae=(e,t)=>{let s=e.includes("top")?1:-1,[a,r]=b()?[he,xe]:[ye(s),ge(s)];return{animation:t?`${(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0,goober__WEBPACK_IMPORTED_MODULE_1__.keyframes)(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},F=react__WEBPACK_IMPORTED_MODULE_0__.memo(({toast:e,position:t,style:o,children:s})=>{let a=e.height?Ae(e.position||t||"top-center",e.visible):{opacity:0},r=react__WEBPACK_IMPORTED_MODULE_0__.createElement(M,{toast:e}),c=react__WEBPACK_IMPORTED_MODULE_0__.createElement(Se,{...e.ariaProps},T(e.message,e));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(be,{className:e.className,style:{...a,...o,...e.style}},typeof s=="function"?s({icon:r,message:c}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,r,c))});(0,goober__WEBPACK_IMPORTED_MODULE_1__.setup)(react__WEBPACK_IMPORTED_MODULE_0__.createElement);var Ee=({id:e,className:t,style:o,onHeightUpdate:s,children:a})=>{let r=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(c=>{if(c){let i=()=>{let d=c.getBoundingClientRect().height;s(e,d)};i(),new MutationObserver(i).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:r,className:t,style:o},a)},Re=(e,t)=>{let o=e.includes("top"),s=o?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:b()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(o?1:-1)}px)`,...s,...a}},ve=(0,goober__WEBPACK_IMPORTED_MODULE_1__.css)`
117036
+ z-index: 9999;
117037
+ > * {
117038
+ pointer-events: auto;
117039
+ }
117040
+ `,O=16,Ie=({reverseOrder:e,position:t="top-center",toastOptions:o,gutter:s,children:a,containerStyle:r,containerClassName:c})=>{let{toasts:i,handlers:d}=D(o);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{position:"fixed",zIndex:9999,top:O,left:O,right:O,bottom:O,pointerEvents:"none",...r},className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},i.map(p=>{let g=p.position||t,E=d.calculateOffset(p,{reverseOrder:e,gutter:s,defaultPosition:t}),x=Re(g,E);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ee,{id:p.id,key:p.id,onHeightUpdate:d.updateHeight,className:p.visible?ve:"",style:x},p.type==="custom"?T(p.message,p):a?a(p):react__WEBPACK_IMPORTED_MODULE_0__.createElement(F,{toast:p,position:g}))}))};var _t=n;
117041
+ //# sourceMappingURL=index.mjs.map
117042
+
116823
117043
  /***/ }),
116824
117044
 
116825
117045
  /***/ "./node_modules/stylis/src/Enum.js":
@@ -118021,13 +118241,13 @@ __webpack_require__.r(__webpack_exports__);
118021
118241
  /* harmony export */ Table: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Table),
118022
118242
  /* harmony export */ TagGroup: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.TagGroup),
118023
118243
  /* harmony export */ Toast: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Toast),
118024
- /* harmony export */ ToastProvider: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.ToastProvider),
118244
+ /* harmony export */ Toaster: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Toaster),
118025
118245
  /* harmony export */ Tooltip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Tooltip),
118026
118246
  /* harmony export */ Typography: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Typography),
118027
118247
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
118028
118248
  /* harmony export */ theme: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.theme),
118029
118249
  /* harmony export */ translation: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.translation),
118030
- /* harmony export */ useToast: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.useToast),
118250
+ /* harmony export */ useToaster: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.useToaster),
118031
118251
  /* harmony export */ withPopover: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withPopover),
118032
118252
  /* harmony export */ withTooltip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withTooltip)
118033
118253
  /* harmony export */ });