react-table-edit 1.4.31 → 1.4.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -10,21 +10,6 @@ import { useNavigate, Link } from 'react-router-dom';
10
10
 
11
11
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
12
12
 
13
- function getAugmentedNamespace(n) {
14
- if (n.__esModule) return n;
15
- var a = Object.defineProperty({}, '__esModule', {value: true});
16
- Object.keys(n).forEach(function (k) {
17
- var d = Object.getOwnPropertyDescriptor(n, k);
18
- Object.defineProperty(a, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () {
21
- return n[k];
22
- }
23
- });
24
- });
25
- return a;
26
- }
27
-
28
13
  var propTypes$1 = {exports: {}};
29
14
 
30
15
  var reactIs = {exports: {}};
@@ -39,12 +24,12 @@ var reactIs_production_min = {};
39
24
  * This source code is licensed under the MIT license found in the
40
25
  * LICENSE file in the root directory of this source tree.
41
26
  */
42
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e$1=b?Symbol.for("react.fragment"):60107,f$1=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
27
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e$2=b?Symbol.for("react.fragment"):60107,f$1=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
43
28
  Symbol.for("react.suspense_list"):60120,r$2=b?Symbol.for("react.memo"):60115,t$1=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
44
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e$1:case g:case f$1:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t$1:case r$2:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e$1;reactIs_production_min.Lazy=t$1;reactIs_production_min.Memo=r$2;reactIs_production_min.Portal=d;
45
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f$1;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e$1};reactIs_production_min.isLazy=function(a){return z(a)===t$1};
29
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e$2:case g:case f$1:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t$1:case r$2:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e$2;reactIs_production_min.Lazy=t$1;reactIs_production_min.Memo=r$2;reactIs_production_min.Portal=d;
30
+ reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f$1;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e$2};reactIs_production_min.isLazy=function(a){return z(a)===t$1};
46
31
  reactIs_production_min.isMemo=function(a){return z(a)===r$2};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f$1};reactIs_production_min.isSuspense=function(a){return z(a)===p};
47
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$1||a===m||a===g||a===f$1||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$2||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
32
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$2||a===m||a===g||a===f$1||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$2||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
48
33
 
49
34
  var reactIs_development = {};
50
35
 
@@ -4115,7 +4100,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
4115
4100
  onExited: PropTypes.func
4116
4101
  } : {}; // Name the function so it is clearer in the documentation
4117
4102
 
4118
- function noop$4() {}
4103
+ function noop$5() {}
4119
4104
 
4120
4105
  Transition.defaultProps = {
4121
4106
  in: false,
@@ -4124,12 +4109,12 @@ Transition.defaultProps = {
4124
4109
  appear: false,
4125
4110
  enter: true,
4126
4111
  exit: true,
4127
- onEnter: noop$4,
4128
- onEntering: noop$4,
4129
- onEntered: noop$4,
4130
- onExit: noop$4,
4131
- onExiting: noop$4,
4132
- onExited: noop$4
4112
+ onEnter: noop$5,
4113
+ onEntering: noop$5,
4114
+ onEntered: noop$5,
4115
+ onExit: noop$5,
4116
+ onExiting: noop$5,
4117
+ onExited: noop$5
4133
4118
  };
4134
4119
  Transition.UNMOUNTED = UNMOUNTED;
4135
4120
  Transition.EXITED = EXITED;
@@ -6608,7 +6593,7 @@ UncontrolledCarousel.defaultProps = {
6608
6593
 
6609
6594
  const _excluded$z = ["cssModule", "children", "isOpen", "flip", "target", "offset", "fallbackPlacements", "placementPrefix", "arrowClassName", "hideArrow", "popperClassName", "tag", "container", "modifiers", "strategy", "boundariesElement", "onClosed", "fade", "transition", "placement"];
6610
6595
 
6611
- function noop$2() {}
6596
+ function noop$2$1() {}
6612
6597
 
6613
6598
  const propTypes$F = {
6614
6599
  children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
@@ -6641,7 +6626,7 @@ const defaultProps$F = {
6641
6626
  flip: true,
6642
6627
  container: 'body',
6643
6628
  modifiers: [],
6644
- onClosed: noop$2,
6629
+ onClosed: noop$2$1,
6645
6630
  fade: true,
6646
6631
  transition: _objectSpread2({}, Fade.defaultProps)
6647
6632
  };
@@ -8177,7 +8162,7 @@ var Label$1 = Label;
8177
8162
  top: PropTypes.bool
8178
8163
  });
8179
8164
 
8180
- function noop$3() {}
8165
+ function noop$4() {}
8181
8166
 
8182
8167
  const FadePropTypes = PropTypes.shape(Fade.propTypes);
8183
8168
  const propTypes$k = {
@@ -8219,8 +8204,8 @@ const defaultProps$k = {
8219
8204
  keyboard: true,
8220
8205
  zIndex: 1050,
8221
8206
  fade: true,
8222
- onOpened: noop$3,
8223
- onClosed: noop$3,
8207
+ onOpened: noop$4,
8208
+ onClosed: noop$4,
8224
8209
  offcanvasTransition: {
8225
8210
  timeout: TransitionTimeouts.Offcanvas
8226
8211
  },
@@ -8348,7 +8333,7 @@ class Offcanvas extends React__default.Component {
8348
8333
 
8349
8334
  onOpened(node, isAppearing) {
8350
8335
  this.props.onOpened();
8351
- (this.props.offcanvasTransition.onEntered || noop$3)(node, isAppearing);
8336
+ (this.props.offcanvasTransition.onEntered || noop$4)(node, isAppearing);
8352
8337
  }
8353
8338
 
8354
8339
  onClosed(node) {
@@ -8357,7 +8342,7 @@ class Offcanvas extends React__default.Component {
8357
8342
  } = this.props; // so all methods get called before it is unmounted
8358
8343
 
8359
8344
  this.props.onClosed();
8360
- (this.props.offcanvasTransition.onExited || noop$3)(node);
8345
+ (this.props.offcanvasTransition.onExited || noop$4)(node);
8361
8346
 
8362
8347
  if (unmountOnClose) {
8363
8348
  this.destroy();
@@ -14263,7 +14248,7 @@ const ReactInput = (props) => {
14263
14248
  };
14264
14249
 
14265
14250
  /*!
14266
- * sweetalert2 v11.17.2
14251
+ * sweetalert2 v11.22.2
14267
14252
  * Released under the MIT License.
14268
14253
  */
14269
14254
  function _assertClassBrand(e, t, n) {
@@ -14330,7 +14315,7 @@ const swalPrefix = 'swal2-';
14330
14315
  */
14331
14316
 
14332
14317
  /** @type {SwalClass[]} */
14333
- const classNames = ['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'show', 'hide', 'close', 'title', 'html-container', 'actions', 'confirm', 'deny', 'cancel', 'default-outline', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'input-label', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loader', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error', 'draggable', 'dragging'];
14318
+ const classNames = ['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'show', 'hide', 'close', 'title', 'html-container', 'actions', 'confirm', 'deny', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'input-label', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loader', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error', 'draggable', 'dragging'];
14334
14319
  const swalClasses = classNames.reduce((acc, className) => {
14335
14320
  acc[className] = swalPrefix + className;
14336
14321
  return acc;
@@ -14397,8 +14382,7 @@ const warnOnce = message => {
14397
14382
  * @param {string} deprecatedParam
14398
14383
  * @param {string?} useInstead
14399
14384
  */
14400
- const warnAboutDeprecation = function (deprecatedParam) {
14401
- let useInstead = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
14385
+ const warnAboutDeprecation = (deprecatedParam, useInstead = null) => {
14402
14386
  warnOnce(`"${deprecatedParam}" is deprecated and will be removed in the next major release.${useInstead ? ` Use "${useInstead}" instead.` : ''}`);
14403
14387
  };
14404
14388
 
@@ -14819,8 +14803,7 @@ const applyNumericalStyle = (elem, property, value) => {
14819
14803
  * @param {HTMLElement | null} elem
14820
14804
  * @param {string} display
14821
14805
  */
14822
- const show = function (elem) {
14823
- let display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
14806
+ const show = (elem, display = 'flex') => {
14824
14807
  if (!elem) {
14825
14808
  return;
14826
14809
  }
@@ -14841,8 +14824,7 @@ const hide$1 = elem => {
14841
14824
  * @param {HTMLElement | null} elem
14842
14825
  * @param {string} display
14843
14826
  */
14844
- const showWhenInnerHtmlPresent = function (elem) {
14845
- let display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'block';
14827
+ const showWhenInnerHtmlPresent = (elem, display = 'block') => {
14846
14828
  if (!elem) {
14847
14829
  return;
14848
14830
  }
@@ -14873,8 +14855,7 @@ const setStyle = (parent, selector, property, value) => {
14873
14855
  * @param {any} condition
14874
14856
  * @param {string} display
14875
14857
  */
14876
- const toggle = function (elem, condition) {
14877
- let display = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'flex';
14858
+ const toggle = (elem, condition, display = 'flex') => {
14878
14859
  if (condition) {
14879
14860
  show(elem, display);
14880
14861
  } else {
@@ -14901,6 +14882,22 @@ const allButtonsAreHidden = () => !isVisible$1(getConfirmButton()) && !isVisible
14901
14882
  */
14902
14883
  const isScrollable = elem => !!(elem.scrollHeight > elem.clientHeight);
14903
14884
 
14885
+ /**
14886
+ * @param {HTMLElement} element
14887
+ * @param {HTMLElement} stopElement
14888
+ * @returns {boolean}
14889
+ */
14890
+ const selfOrParentIsScrollable = (element, stopElement) => {
14891
+ let parent = element;
14892
+ while (parent && parent !== stopElement) {
14893
+ if (isScrollable(parent)) {
14894
+ return true;
14895
+ }
14896
+ parent = parent.parentElement;
14897
+ }
14898
+ return false;
14899
+ };
14900
+
14904
14901
  /**
14905
14902
  * borrowed from https://stackoverflow.com/a/46352119
14906
14903
  *
@@ -14918,8 +14915,7 @@ const hasCssAnimation = elem => {
14918
14915
  * @param {number} timer
14919
14916
  * @param {boolean} reset
14920
14917
  */
14921
- const animateTimerProgressBar = function (timer) {
14922
- let reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
14918
+ const animateTimerProgressBar = (timer, reset = false) => {
14923
14919
  const timerProgressBar = getTimerProgressBar();
14924
14920
  if (!timerProgressBar) {
14925
14921
  return;
@@ -15080,6 +15076,10 @@ const init = params => {
15080
15076
  container.dataset['swal2Theme'] = params.theme;
15081
15077
  const targetElement = getTarget(params.target);
15082
15078
  targetElement.appendChild(container);
15079
+ if (params.topLayer) {
15080
+ container.setAttribute('popover', '');
15081
+ container.showPopover();
15082
+ }
15083
15083
  setupAccessibility(params);
15084
15084
  setupRTL(targetElement);
15085
15085
  addInputChangeListeners();
@@ -15209,19 +15209,34 @@ function handleButtonsStyling(confirmButton, denyButton, cancelButton, params) {
15209
15209
  }
15210
15210
  addClass([confirmButton, denyButton, cancelButton], swalClasses.styled);
15211
15211
 
15212
- // Buttons background colors
15212
+ // Apply custom background colors to action buttons
15213
15213
  if (params.confirmButtonColor) {
15214
- confirmButton.style.backgroundColor = params.confirmButtonColor;
15215
- addClass(confirmButton, swalClasses['default-outline']);
15214
+ confirmButton.style.setProperty('--swal2-confirm-button-background-color', params.confirmButtonColor);
15216
15215
  }
15217
15216
  if (params.denyButtonColor) {
15218
- denyButton.style.backgroundColor = params.denyButtonColor;
15219
- addClass(denyButton, swalClasses['default-outline']);
15217
+ denyButton.style.setProperty('--swal2-deny-button-background-color', params.denyButtonColor);
15220
15218
  }
15221
15219
  if (params.cancelButtonColor) {
15222
- cancelButton.style.backgroundColor = params.cancelButtonColor;
15223
- addClass(cancelButton, swalClasses['default-outline']);
15220
+ cancelButton.style.setProperty('--swal2-cancel-button-background-color', params.cancelButtonColor);
15221
+ }
15222
+
15223
+ // Apply the outline color to action buttons
15224
+ applyOutlineColor(confirmButton);
15225
+ applyOutlineColor(denyButton);
15226
+ applyOutlineColor(cancelButton);
15227
+ }
15228
+
15229
+ /**
15230
+ * @param {HTMLElement} button
15231
+ */
15232
+ function applyOutlineColor(button) {
15233
+ const buttonStyle = window.getComputedStyle(button);
15234
+ if (buttonStyle.getPropertyValue('--swal2-action-button-focus-box-shadow')) {
15235
+ // If the button already has a custom outline color, no need to change it
15236
+ return;
15224
15237
  }
15238
+ const outlineColor = buttonStyle.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, 'rgba($1, $2, $3, 0.5)');
15239
+ button.style.setProperty('--swal2-action-button-focus-box-shadow', buttonStyle.getPropertyValue('--swal2-outline').replace(/ rgba\(.*/, ` ${outlineColor}`));
15225
15240
  }
15226
15241
 
15227
15242
  /**
@@ -15745,11 +15760,18 @@ const adjustSuccessIconBackgroundColor = () => {
15745
15760
  successIconParts[i].style.backgroundColor = popupBackgroundColor;
15746
15761
  }
15747
15762
  };
15748
- const successIconHtml = `
15749
- <div class="swal2-success-circular-line-left"></div>
15763
+
15764
+ /**
15765
+ *
15766
+ * @param {SweetAlertOptions} params
15767
+ * @returns {string}
15768
+ */
15769
+ const successIconHtml = params => `
15770
+ ${params.animation ? '<div class="swal2-success-circular-line-left"></div>' : ''}
15750
15771
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
15751
- <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
15752
- <div class="swal2-success-circular-line-right"></div>
15772
+ <div class="swal2-success-ring"></div>
15773
+ ${params.animation ? '<div class="swal2-success-fix"></div>' : ''}
15774
+ ${params.animation ? '<div class="swal2-success-circular-line-right"></div>' : ''}
15753
15775
  `;
15754
15776
  const errorIconHtml = `
15755
15777
  <span class="swal2-x-mark">
@@ -15771,7 +15793,7 @@ const setContent = (icon, params) => {
15771
15793
  if (params.iconHtml) {
15772
15794
  newContent = iconContent(params.iconHtml);
15773
15795
  } else if (params.icon === 'success') {
15774
- newContent = successIconHtml;
15796
+ newContent = successIconHtml(params);
15775
15797
  oldContent = oldContent.replace(/ style=".*?"/g, ''); // undo adjustSuccessIconBackgroundColor()
15776
15798
  } else if (params.icon === 'error') {
15777
15799
  newContent = errorIconHtml;
@@ -16187,6 +16209,11 @@ const setFocus = (index, increment) => {
16187
16209
  if (focusableElements.length) {
16188
16210
  index = index + increment;
16189
16211
 
16212
+ // shift + tab when .swal2-popup is focused
16213
+ if (index === -2) {
16214
+ index = focusableElements.length - 1;
16215
+ }
16216
+
16190
16217
  // rollover to first item
16191
16218
  if (index === focusableElements.length) {
16192
16219
  index = 0;
@@ -16333,8 +16360,8 @@ const handleArrows = key => {
16333
16360
  * @param {Function} dismissWith
16334
16361
  */
16335
16362
  const handleEsc = (event, innerParams, dismissWith) => {
16363
+ event.preventDefault();
16336
16364
  if (callIfFunction(innerParams.allowEscapeKey)) {
16337
- event.preventDefault();
16338
16365
  dismissWith(DismissReason.esc);
16339
16366
  }
16340
16367
  };
@@ -16444,7 +16471,9 @@ const shouldPreventTouchMove = event => {
16444
16471
  if (target === container) {
16445
16472
  return true;
16446
16473
  }
16447
- if (!isScrollable(container) && target instanceof HTMLElement && target.tagName !== 'INPUT' &&
16474
+ if (!isScrollable(container) && target instanceof HTMLElement && !selfOrParentIsScrollable(target, htmlContainer) &&
16475
+ // #2823
16476
+ target.tagName !== 'INPUT' &&
16448
16477
  // #1603
16449
16478
  target.tagName !== 'TEXTAREA' &&
16450
16479
  // #2266
@@ -17395,7 +17424,8 @@ const defaultParams = {
17395
17424
  willClose: undefined,
17396
17425
  didClose: undefined,
17397
17426
  didDestroy: undefined,
17398
- scrollbarPadding: true
17427
+ scrollbarPadding: true,
17428
+ topLayer: false
17399
17429
  };
17400
17430
  const updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'background', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'color', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'denyButtonAriaLabel', 'denyButtonColor', 'denyButtonText', 'didClose', 'didDestroy', 'draggable', 'footer', 'hideClass', 'html', 'icon', 'iconColor', 'iconHtml', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'preConfirm', 'preDeny', 'progressSteps', 'returnFocus', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'showDenyButton', 'text', 'title', 'titleText', 'theme', 'willClose'];
17401
17431
 
@@ -17472,8 +17502,8 @@ const showWarningsForParams = params => {
17472
17502
  if (params.backdrop === false && params.allowOutsideClick) {
17473
17503
  warn$1('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
17474
17504
  }
17475
- if (params.theme && !['light', 'dark', 'auto', 'borderless'].includes(params.theme)) {
17476
- warn$1(`Invalid theme "${params.theme}". Expected "light", "dark", "auto", or "borderless"`);
17505
+ if (params.theme && !['light', 'dark', 'auto', 'minimal', 'borderless', 'embed-iframe', 'bulma', 'bulma-light', 'bulma-dark'].includes(params.theme)) {
17506
+ warn$1(`Invalid theme "${params.theme}"`);
17477
17507
  }
17478
17508
  for (const param in params) {
17479
17509
  checkIfParamIsValid(param);
@@ -17748,10 +17778,7 @@ const argsToParams = args => {
17748
17778
  * @param {...SweetAlertOptions} args
17749
17779
  * @returns {Promise<SweetAlertResult>}
17750
17780
  */
17751
- function fire() {
17752
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17753
- args[_key] = arguments[_key];
17754
- }
17781
+ function fire(...args) {
17755
17782
  return new this(...args);
17756
17783
  }
17757
17784
 
@@ -17864,8 +17891,7 @@ const clickHandlers = {};
17864
17891
  /**
17865
17892
  * @param {string} attr
17866
17893
  */
17867
- function bindClickHandler() {
17868
- let attr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-swal-template';
17894
+ function bindClickHandler(attr = 'data-swal-template') {
17869
17895
  clickHandlers[attr] = this;
17870
17896
  if (!bodyClickListenerAdded) {
17871
17897
  document.body.addEventListener('click', bodyClickListener);
@@ -17923,16 +17949,12 @@ class EventEmitter {
17923
17949
  * @param {EventHandler} eventHandler
17924
17950
  */
17925
17951
  once(eventName, eventHandler) {
17926
- var _this = this;
17927
17952
  /**
17928
17953
  * @param {Array} args
17929
17954
  */
17930
- const onceFn = function () {
17931
- _this.removeListener(eventName, onceFn);
17932
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17933
- args[_key] = arguments[_key];
17934
- }
17935
- eventHandler.apply(_this, args);
17955
+ const onceFn = (...args) => {
17956
+ this.removeListener(eventName, onceFn);
17957
+ eventHandler.apply(this, args);
17936
17958
  };
17937
17959
  this.on(eventName, onceFn);
17938
17960
  }
@@ -17941,10 +17963,7 @@ class EventEmitter {
17941
17963
  * @param {string} eventName
17942
17964
  * @param {Array} args
17943
17965
  */
17944
- emit(eventName) {
17945
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
17946
- args[_key2 - 1] = arguments[_key2];
17947
- }
17966
+ emit(eventName, ...args) {
17948
17967
  this._getHandlersByEventName(eventName).forEach(
17949
17968
  /**
17950
17969
  * @param {EventHandler} eventHandler
@@ -18544,7 +18563,7 @@ class SweetAlert {
18544
18563
  * @param {...any} args
18545
18564
  * @this {SweetAlert}
18546
18565
  */
18547
- constructor() {
18566
+ constructor(...args) {
18548
18567
  /**
18549
18568
  * @type {Promise<SweetAlertResult>}
18550
18569
  */
@@ -18556,9 +18575,6 @@ class SweetAlert {
18556
18575
  currentInstance = this;
18557
18576
 
18558
18577
  // @ts-ignore
18559
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18560
- args[_key] = arguments[_key];
18561
- }
18562
18578
  const outerParams = Object.freeze(this.constructor.argsToParams(args));
18563
18579
 
18564
18580
  /** @type {Readonly<SweetAlertOptions>} */
@@ -18568,8 +18584,7 @@ class SweetAlert {
18568
18584
  this.isAwaitingPromise = false;
18569
18585
  _classPrivateFieldSet2(_promise, this, this._main(currentInstance.params));
18570
18586
  }
18571
- _main(userParams) {
18572
- let mixinParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18587
+ _main(userParams, mixinParams = {}) {
18573
18588
  showWarningsForParams(Object.assign({}, mixinParams, userParams));
18574
18589
  if (globalState.currentInstance) {
18575
18590
  const swalPromiseResolve = privateMethods.swalPromiseResolve.get(globalState.currentInstance);
@@ -18848,20 +18863,20 @@ Object.keys(instanceMethods).forEach(key => {
18848
18863
  * @param {...any} args
18849
18864
  * @returns {any | undefined}
18850
18865
  */
18851
- SweetAlert[key] = function () {
18866
+ SweetAlert[key] = function (...args) {
18852
18867
  if (currentInstance && currentInstance[key]) {
18853
- return currentInstance[key](...arguments);
18868
+ return currentInstance[key](...args);
18854
18869
  }
18855
18870
  return null;
18856
18871
  };
18857
18872
  });
18858
18873
  SweetAlert.DismissReason = DismissReason;
18859
- SweetAlert.version = '11.17.2';
18874
+ SweetAlert.version = '11.22.2';
18860
18875
 
18861
18876
  const Swal = SweetAlert;
18862
18877
  // @ts-ignore
18863
18878
  Swal.default = Swal;
18864
- "undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t;}catch(e){n.innerText=t;}}(document,":root{--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:\"top-start top top-end\" \"center-start center center-end\" \"bottom-start bottom-center bottom-end\";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:var(--swal2-border-radius);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:var(--swal2-input-background);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:var(--swal2-background);box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}");
18879
+ "undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t;}catch(e){n.innerText=t;}}(document,":root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:\"top-start top top-end\" \"center-start center center-end\" \"bottom-start bottom-center bottom-end\";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}");
18865
18880
 
18866
18881
  // sweetalert2-react-content v5.1.0
18867
18882
 
@@ -18894,7 +18909,7 @@ const mounts = [{
18894
18909
  getter: swal => swal.getLoader()
18895
18910
  }];
18896
18911
 
18897
- const noop$1 = () => {};
18912
+ const noop$3 = () => {};
18898
18913
  function withReactContent(ParentSwal) {
18899
18914
  /* Returns `params` separated into a tuple of `reactParams` (the React params that need to be rendered)
18900
18915
  and`otherParams` (all the other parameters, with any React params replaced with a space ' ') */
@@ -18947,9 +18962,9 @@ function withReactContent(ParentSwal) {
18947
18962
  this.__roots = [];
18948
18963
  this.__params = Object.assign({}, mixinParams, params);
18949
18964
  const [reactParams, otherParams] = extractReactParams(this.__params);
18950
- const superWillOpen = otherParams.willOpen || noop$1;
18951
- const superDidOpen = otherParams.didOpen || noop$1;
18952
- const superDidDestroy = otherParams.didDestroy || noop$1;
18965
+ const superWillOpen = otherParams.willOpen || noop$3;
18966
+ const superDidOpen = otherParams.didOpen || noop$3;
18967
+ const superDidDestroy = otherParams.didDestroy || noop$3;
18953
18968
  return super._main(Object.assign({}, otherParams, {
18954
18969
  willOpen: popup => {
18955
18970
  render(this, reactParams);
@@ -21382,7 +21397,7 @@ function useForm(props = {}) {
21382
21397
  return _formControl.current;
21383
21398
  }
21384
21399
 
21385
- var e=function(i,e,t){if(i&&"reportValidity"in i){var f=get(t,e);i.setCustomValidity(f&&f.message||""),i.reportValidity();}},t=function(r,i){var t=function(t){var f=i.fields[t];f&&f.ref&&"reportValidity"in f.ref?e(f.ref,t,r):f.refs&&f.refs.forEach(function(i){return e(i,t,r)});};for(var f in i.fields)t(f);},f=function(e,f){f.shouldUseNativeValidation&&t(e,f);var o={};for(var a in e){var n=get(f.fields,a);set$2(o,a,Object.assign(e[a],{ref:n&&n.ref}));}return o};
21400
+ var e$1=function(i,e,t){if(i&&"reportValidity"in i){var f=get(t,e);i.setCustomValidity(f&&f.message||""),i.reportValidity();}},t=function(r,i){var t=function(t){var f=i.fields[t];f&&f.ref&&"reportValidity"in f.ref?e$1(f.ref,t,r):f.refs&&f.refs.forEach(function(i){return e$1(i,t,r)});};for(var f in i.fields)t(f);},f=function(e,f){f.shouldUseNativeValidation&&t(e,f);var o={};for(var a in e){var n=get(f.fields,a);set$2(o,a,Object.assign(e[a],{ref:n&&n.ref}));}return o};
21386
21401
 
21387
21402
  var o=function(o,n,a){return void 0===n&&(n={}),void 0===a&&(a={}),function(s,i,c){try{return Promise.resolve(function(t$1,r){try{var u=(n.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(o["sync"===a.mode?"validateSync":"validate"](s,Object.assign({abortEarly:!1},n,{context:i}))).then(function(t$1){return c.shouldUseNativeValidation&&t({},c),{values:a.rawValues?s:t$1,errors:{}}}));}catch(e){return r(e)}return u&&u.then?u.then(void 0,r):u}(0,function(e){if(!e.inner)throw e;return {values:{},errors:f((o=e,n=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(o.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var o=e[t.path].types,a=o&&o[t.type];e[t.path]=appendErrors(t.path,n,e,t.type,a?[].concat(a,t.message):t.message);}return e},{})),c)};var o,n;}))}catch(e){return Promise.reject(e)}}};
21388
21403
 
@@ -21426,9 +21441,9 @@ const TextInput = (props) => {
21426
21441
  };
21427
21442
 
21428
21443
  /**
21429
- * react-number-format - 5.4.3
21444
+ * react-number-format - 5.4.4
21430
21445
  * Author : Sudhanshu Yadav
21431
- * Copyright (c) 2016, 2024 to Sudhanshu Yadav, released under the MIT license.
21446
+ * Copyright (c) 2016, 2025 to Sudhanshu Yadav, released under the MIT license.
21432
21447
  * https://github.com/s-yadav/react-number-format
21433
21448
  */
21434
21449
 
@@ -21466,7 +21481,7 @@ var SourceType;
21466
21481
  })(SourceType || (SourceType = {}));
21467
21482
 
21468
21483
  // basic noop function
21469
- function noop() { }
21484
+ function noop$2() { }
21470
21485
  function memoizeOnce(cb) {
21471
21486
  var lastArgs;
21472
21487
  var lastValue = undefined;
@@ -21846,7 +21861,7 @@ function caretUnknownFormatBoundary(formattedValue) {
21846
21861
  return boundaryAry;
21847
21862
  }
21848
21863
  function useInternalValues(value, defaultValue, valueIsNumericString, format, removeFormatting, onValueChange) {
21849
- if ( onValueChange === void 0 ) onValueChange = noop;
21864
+ if ( onValueChange === void 0 ) onValueChange = noop$2;
21850
21865
 
21851
21866
  var getValues = usePersistentCallback(function (value, valueIsNumericString) {
21852
21867
  var formattedValue, numAsString;
@@ -21911,11 +21926,11 @@ function NumberFormatBase(props) {
21911
21926
  var valueIsNumericString = props.valueIsNumericString;
21912
21927
  var onValueChange = props.onValueChange;
21913
21928
  var isAllowed = props.isAllowed;
21914
- var onChange = props.onChange; if ( onChange === void 0 ) onChange = noop;
21915
- var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop;
21916
- var onMouseUp = props.onMouseUp; if ( onMouseUp === void 0 ) onMouseUp = noop;
21917
- var onFocus = props.onFocus; if ( onFocus === void 0 ) onFocus = noop;
21918
- var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop;
21929
+ var onChange = props.onChange; if ( onChange === void 0 ) onChange = noop$2;
21930
+ var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop$2;
21931
+ var onMouseUp = props.onMouseUp; if ( onMouseUp === void 0 ) onMouseUp = noop$2;
21932
+ var onFocus = props.onFocus; if ( onFocus === void 0 ) onFocus = noop$2;
21933
+ var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop$2;
21919
21934
  var propValue = props.value;
21920
21935
  var getCaretBoundary = props.getCaretBoundary; if ( getCaretBoundary === void 0 ) getCaretBoundary = caretUnknownFormatBoundary;
21921
21936
  var isValidInputCharacter = props.isValidInputCharacter; if ( isValidInputCharacter === void 0 ) isValidInputCharacter = charIsNumber;
@@ -22476,8 +22491,8 @@ function useNumericFormat(props) {
22476
22491
  var suffix = props.suffix;
22477
22492
  var allowNegative = props.allowNegative;
22478
22493
  var allowLeadingZeros = props.allowLeadingZeros;
22479
- var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop;
22480
- var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop;
22494
+ var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop$2;
22495
+ var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop$2;
22481
22496
  var thousandSeparator = props.thousandSeparator;
22482
22497
  var decimalScale = props.decimalScale;
22483
22498
  var fixedDecimalScale = props.fixedDecimalScale;
@@ -23535,7 +23550,7 @@ const SidebarSetColumn = (props) => {
23535
23550
  justifyContent: col.textAlign ?? 'left'
23536
23551
  }, className: "r-headercell-div", children: t(col.headerText ?? '') }) }) }, `header-${indexCol}`));
23537
23552
  };
23538
- return (jsxs(Sidebar, { open: openSidebar, toggleSidebar: handleCancel, width: 700, children: [jsx(ModalHeader, { typeModal: 'Edit', handleModal: handleCancel, title: 'Column setup' }), jsx("div", { className: "ms-2 react-table-edit", children: jsx("div", { className: 'r-grid', children: jsx("div", { className: "r-gridtable", style: { height: windowSize.innerHeight - 120 }, children: jsxs("table", { style: { width: '100%' }, children: [jsx("thead", { className: 'r-gridheader', children: jsx("tr", { className: "r-row", role: "row", children: columns.map((col, index) => {
23553
+ return (jsxs(Sidebar, { open: openSidebar, toggleSidebar: handleCancel, width: 700, children: [jsx(ModalHeader, { typeModal: 'Edit', handleModal: handleCancel, title: 'Column setup' }), jsx("div", { className: "ms-2 r-table-edit", children: jsx("div", { className: 'r-grid', children: jsx("div", { className: "r-gridtable", style: { height: windowSize.innerHeight - 120 }, children: jsxs("table", { style: { width: '100%' }, children: [jsx("thead", { className: 'r-gridheader', children: jsx("tr", { className: "r-row", role: "row", children: columns.map((col, index) => {
23539
23554
  return (renderHeaderCol(col, index));
23540
23555
  }) }) }), jsx("tbody", { className: 'r-gridcontent', children: dataSource?.map((row, indexRow) => {
23541
23556
  return (jsx("tr", { className: classNames$1('r-row', { 'last-row': indexRow === dataSource.length - 1 }, { 'fisrt-row': indexRow === 0 }), children: columns.map((col, indexCol) => {
@@ -30911,6 +30926,7 @@ function isShadowRoot(value) {
30911
30926
  }
30912
30927
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
30913
30928
  }
30929
+ const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
30914
30930
  function isOverflowElement(element) {
30915
30931
  const {
30916
30932
  overflow,
@@ -30918,27 +30934,32 @@ function isOverflowElement(element) {
30918
30934
  overflowY,
30919
30935
  display
30920
30936
  } = getComputedStyle$1(element);
30921
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
30937
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
30922
30938
  }
30939
+ const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
30923
30940
  function isTableElement(element) {
30924
- return ['table', 'td', 'th'].includes(getNodeName(element));
30941
+ return tableElements.has(getNodeName(element));
30925
30942
  }
30943
+ const topLayerSelectors = [':popover-open', ':modal'];
30926
30944
  function isTopLayer(element) {
30927
- return [':popover-open', ':modal'].some(selector => {
30945
+ return topLayerSelectors.some(selector => {
30928
30946
  try {
30929
30947
  return element.matches(selector);
30930
- } catch (e) {
30948
+ } catch (_e) {
30931
30949
  return false;
30932
30950
  }
30933
30951
  });
30934
30952
  }
30953
+ const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
30954
+ const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
30955
+ const containValues = ['paint', 'layout', 'strict', 'content'];
30935
30956
  function isContainingBlock(elementOrCss) {
30936
30957
  const webkit = isWebKit();
30937
30958
  const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
30938
30959
 
30939
30960
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
30940
30961
  // https://drafts.csswg.org/css-transforms-2/#individual-transforms
30941
- return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
30962
+ return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
30942
30963
  }
30943
30964
  function getContainingBlock(element) {
30944
30965
  let currentNode = getParentNode(element);
@@ -30956,8 +30977,9 @@ function isWebKit() {
30956
30977
  if (typeof CSS === 'undefined' || !CSS.supports) return false;
30957
30978
  return CSS.supports('-webkit-backdrop-filter', 'none');
30958
30979
  }
30980
+ const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
30959
30981
  function isLastTraversableNode(node) {
30960
- return ['html', 'body', '#document'].includes(getNodeName(node));
30982
+ return lastTraversableNodeNames.has(getNodeName(node));
30961
30983
  }
30962
30984
  function getComputedStyle$1(element) {
30963
30985
  return getWindow(element).getComputedStyle(element);
@@ -31064,8 +31086,9 @@ function getOppositeAxis(axis) {
31064
31086
  function getAxisLength(axis) {
31065
31087
  return axis === 'y' ? 'height' : 'width';
31066
31088
  }
31089
+ const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
31067
31090
  function getSideAxis(placement) {
31068
- return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
31091
+ return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
31069
31092
  }
31070
31093
  function getAlignmentAxis(placement) {
31071
31094
  return getOppositeAxis(getSideAxis(placement));
@@ -31090,19 +31113,19 @@ function getExpandedPlacements(placement) {
31090
31113
  function getOppositeAlignmentPlacement(placement) {
31091
31114
  return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
31092
31115
  }
31116
+ const lrPlacement = ['left', 'right'];
31117
+ const rlPlacement = ['right', 'left'];
31118
+ const tbPlacement = ['top', 'bottom'];
31119
+ const btPlacement = ['bottom', 'top'];
31093
31120
  function getSideList(side, isStart, rtl) {
31094
- const lr = ['left', 'right'];
31095
- const rl = ['right', 'left'];
31096
- const tb = ['top', 'bottom'];
31097
- const bt = ['bottom', 'top'];
31098
31121
  switch (side) {
31099
31122
  case 'top':
31100
31123
  case 'bottom':
31101
- if (rtl) return isStart ? rl : lr;
31102
- return isStart ? lr : rl;
31124
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
31125
+ return isStart ? lrPlacement : rlPlacement;
31103
31126
  case 'left':
31104
31127
  case 'right':
31105
- return isStart ? tb : bt;
31128
+ return isStart ? tbPlacement : btPlacement;
31106
31129
  default:
31107
31130
  return [];
31108
31131
  }
@@ -31157,6 +31180,34 @@ function rectToClientRect(rect) {
31157
31180
  };
31158
31181
  }
31159
31182
 
31183
+ var isClient$1 = typeof document !== 'undefined';
31184
+
31185
+ var noop$1 = function noop() {};
31186
+ var index$1 = isClient$1 ? useLayoutEffect : noop$1;
31187
+
31188
+ // https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379
31189
+ const SafeReact$1 = {
31190
+ ...React$5
31191
+ };
31192
+ const useInsertionEffect = SafeReact$1.useInsertionEffect;
31193
+ const useSafeInsertionEffect = useInsertionEffect || (fn => fn());
31194
+ function useEffectEvent(callback) {
31195
+ const ref = React$5.useRef(() => {
31196
+ if (process.env.NODE_ENV !== "production") {
31197
+ throw new Error('Cannot call an event handler while rendering.');
31198
+ }
31199
+ });
31200
+ useSafeInsertionEffect(() => {
31201
+ ref.current = callback;
31202
+ });
31203
+ return React$5.useCallback(function () {
31204
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
31205
+ args[_key] = arguments[_key];
31206
+ }
31207
+ return ref.current == null ? void 0 : ref.current(...args);
31208
+ }, []);
31209
+ }
31210
+
31160
31211
  function computeCoordsFromPlacement(_ref, placement, rtl) {
31161
31212
  let {
31162
31213
  reference,
@@ -31625,16 +31676,22 @@ const flip$2 = function (options) {
31625
31676
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
31626
31677
  const nextPlacement = placements[nextIndex];
31627
31678
  if (nextPlacement) {
31628
- // Try next placement and re-run the lifecycle.
31629
- return {
31630
- data: {
31631
- index: nextIndex,
31632
- overflows: overflowsData
31633
- },
31634
- reset: {
31635
- placement: nextPlacement
31636
- }
31637
- };
31679
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
31680
+ if (!ignoreCrossAxisOverflow ||
31681
+ // We leave the current main axis only if every placement on that axis
31682
+ // overflows the main axis.
31683
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
31684
+ // Try next placement and re-run the lifecycle.
31685
+ return {
31686
+ data: {
31687
+ index: nextIndex,
31688
+ overflows: overflowsData
31689
+ },
31690
+ reset: {
31691
+ placement: nextPlacement
31692
+ }
31693
+ };
31694
+ }
31638
31695
  }
31639
31696
 
31640
31697
  // First, find the candidates that fit on the mainAxis side of overflow,
@@ -31880,6 +31937,8 @@ const inline = function (options) {
31880
31937
  };
31881
31938
  };
31882
31939
 
31940
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
31941
+
31883
31942
  // For type backwards-compatibility, the `OffsetOptions` type was also
31884
31943
  // Derivable.
31885
31944
 
@@ -31893,7 +31952,7 @@ async function convertValueToCoords(state, options) {
31893
31952
  const side = getSide(placement);
31894
31953
  const alignment = getAlignment(placement);
31895
31954
  const isVertical = getSideAxis(placement) === 'y';
31896
- const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
31955
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
31897
31956
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
31898
31957
  const rawValue = evaluate(options, state);
31899
31958
 
@@ -32093,7 +32152,7 @@ const limitShift = function (options) {
32093
32152
  if (checkCrossAxis) {
32094
32153
  var _middlewareData$offse, _middlewareData$offse2;
32095
32154
  const len = mainAxis === 'y' ? 'width' : 'height';
32096
- const isOriginSide = ['top', 'left'].includes(getSide(placement));
32155
+ const isOriginSide = originSides.has(getSide(placement));
32097
32156
  const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
32098
32157
  const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
32099
32158
  if (crossAxisCoord < limitMin) {
@@ -32436,6 +32495,7 @@ function getViewportRect(element, strategy) {
32436
32495
  };
32437
32496
  }
32438
32497
 
32498
+ const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
32439
32499
  // Returns the inner client rect, subtracting scrollbars if present.
32440
32500
  function getInnerBoundingClientRect(element, strategy) {
32441
32501
  const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
@@ -32500,7 +32560,7 @@ function getClippingElementAncestors(element, cache) {
32500
32560
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
32501
32561
  currentContainingBlockComputedStyle = null;
32502
32562
  }
32503
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
32563
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
32504
32564
  if (shouldDropCurrentNode) {
32505
32565
  // Drop non-containing blocks.
32506
32566
  result = result.filter(ancestor => ancestor !== currentNode);
@@ -32563,6 +32623,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
32563
32623
  scrollTop: 0
32564
32624
  };
32565
32625
  const offsets = createCoords(0);
32626
+
32627
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
32628
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
32629
+ function setLeftRTLScrollbarOffset() {
32630
+ offsets.x = getWindowScrollBarX(documentElement);
32631
+ }
32566
32632
  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
32567
32633
  if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
32568
32634
  scroll = getNodeScroll(offsetParent);
@@ -32572,11 +32638,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
32572
32638
  offsets.x = offsetRect.x + offsetParent.clientLeft;
32573
32639
  offsets.y = offsetRect.y + offsetParent.clientTop;
32574
32640
  } else if (documentElement) {
32575
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
32576
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
32577
- offsets.x = getWindowScrollBarX(documentElement);
32641
+ setLeftRTLScrollbarOffset();
32578
32642
  }
32579
32643
  }
32644
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
32645
+ setLeftRTLScrollbarOffset();
32646
+ }
32580
32647
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
32581
32648
  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
32582
32649
  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
@@ -32753,7 +32820,7 @@ function observeMove(element, onMove) {
32753
32820
  // Handle <iframe>s
32754
32821
  root: root.ownerDocument
32755
32822
  });
32756
- } catch (e) {
32823
+ } catch (_e) {
32757
32824
  io = new IntersectionObserver(handleObserve, options);
32758
32825
  }
32759
32826
  io.observe(element);
@@ -32930,7 +32997,10 @@ const computePosition = (reference, floating, options) => {
32930
32997
  });
32931
32998
  };
32932
32999
 
32933
- var index$1 = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
33000
+ var isClient = typeof document !== 'undefined';
33001
+
33002
+ var noop = function noop() {};
33003
+ var index = isClient ? useLayoutEffect : noop;
32934
33004
 
32935
33005
  // Fork of `fast-deep-equal` that only does the comparisons we need and compares
32936
33006
  // functions
@@ -32997,7 +33067,7 @@ function roundByDPR(element, value) {
32997
33067
 
32998
33068
  function useLatestRef(value) {
32999
33069
  const ref = React$5.useRef(value);
33000
- index$1(() => {
33070
+ index(() => {
33001
33071
  ref.current = value;
33002
33072
  });
33003
33073
  return ref;
@@ -33088,7 +33158,7 @@ function useFloating$1(options) {
33088
33158
  }
33089
33159
  });
33090
33160
  }, [latestMiddleware, placement, strategy, platformRef, openRef]);
33091
- index$1(() => {
33161
+ index(() => {
33092
33162
  if (open === false && dataRef.current.isPositioned) {
33093
33163
  dataRef.current.isPositioned = false;
33094
33164
  setData(data => ({
@@ -33098,13 +33168,13 @@ function useFloating$1(options) {
33098
33168
  }
33099
33169
  }, [open]);
33100
33170
  const isMountedRef = React$5.useRef(false);
33101
- index$1(() => {
33171
+ index(() => {
33102
33172
  isMountedRef.current = true;
33103
33173
  return () => {
33104
33174
  isMountedRef.current = false;
33105
33175
  };
33106
33176
  }, []);
33107
- index$1(() => {
33177
+ index(() => {
33108
33178
  if (referenceEl) referenceRef.current = referenceEl;
33109
33179
  if (floatingEl) floatingRef.current = floatingEl;
33110
33180
  if (referenceEl && floatingEl) {
@@ -33236,27 +33306,6 @@ const SafeReact = {
33236
33306
  ...React$5
33237
33307
  };
33238
33308
 
33239
- const useInsertionEffect = SafeReact.useInsertionEffect;
33240
- const useSafeInsertionEffect = useInsertionEffect || (fn => fn());
33241
- function useEffectEvent(callback) {
33242
- const ref = React$5.useRef(() => {
33243
- if (process.env.NODE_ENV !== "production") {
33244
- throw new Error('Cannot call an event handler while rendering.');
33245
- }
33246
- });
33247
- useSafeInsertionEffect(() => {
33248
- ref.current = callback;
33249
- });
33250
- return React$5.useCallback(function () {
33251
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
33252
- args[_key] = arguments[_key];
33253
- }
33254
- return ref.current == null ? void 0 : ref.current(...args);
33255
- }, []);
33256
- }
33257
-
33258
- var index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
33259
-
33260
33309
  let serverHandoffComplete = false;
33261
33310
  let count = 0;
33262
33311
  const genId = () => // Ensure the id is unique with multiple independent versions of Floating UI
@@ -33264,7 +33313,7 @@ const genId = () => // Ensure the id is unique with multiple independent version
33264
33313
  "floating-ui-" + Math.random().toString(36).slice(2, 6) + count++;
33265
33314
  function useFloatingId() {
33266
33315
  const [id, setId] = React$5.useState(() => serverHandoffComplete ? genId() : undefined);
33267
- index(() => {
33316
+ index$1(() => {
33268
33317
  if (id == null) {
33269
33318
  setId(genId());
33270
33319
  }
@@ -33352,7 +33401,7 @@ const FloatingArrow = /*#__PURE__*/React$5.forwardRef(function FloatingArrow(pro
33352
33401
  const [isRTL, setIsRTL] = React$5.useState(false);
33353
33402
 
33354
33403
  // https://github.com/floating-ui/floating-ui/issues/2932
33355
- index(() => {
33404
+ index$1(() => {
33356
33405
  if (!floating) return;
33357
33406
  const isRTL = getComputedStyle$1(floating).direction === 'rtl';
33358
33407
  if (isRTL) {
@@ -33429,19 +33478,22 @@ const FloatingArrow = /*#__PURE__*/React$5.forwardRef(function FloatingArrow(pro
33429
33478
  });
33430
33479
  });
33431
33480
 
33432
- function createPubSub() {
33481
+ function createEventEmitter() {
33433
33482
  const map = new Map();
33434
33483
  return {
33435
33484
  emit(event, data) {
33436
33485
  var _map$get;
33437
- (_map$get = map.get(event)) == null || _map$get.forEach(handler => handler(data));
33486
+ (_map$get = map.get(event)) == null || _map$get.forEach(listener => listener(data));
33438
33487
  },
33439
33488
  on(event, listener) {
33440
- map.set(event, [...(map.get(event) || []), listener]);
33489
+ if (!map.has(event)) {
33490
+ map.set(event, new Set());
33491
+ }
33492
+ map.get(event).add(listener);
33441
33493
  },
33442
33494
  off(event, listener) {
33443
33495
  var _map$get2;
33444
- map.set(event, ((_map$get2 = map.get(event)) == null ? void 0 : _map$get2.filter(l => l !== listener)) || []);
33496
+ (_map$get2 = map.get(event)) == null || _map$get2.delete(listener);
33445
33497
  }
33446
33498
  };
33447
33499
  }
@@ -33471,7 +33523,7 @@ function useFloatingRootContext(options) {
33471
33523
  } = options;
33472
33524
  const floatingId = useId();
33473
33525
  const dataRef = React$5.useRef({});
33474
- const [events] = React$5.useState(() => createPubSub());
33526
+ const [events] = React$5.useState(() => createEventEmitter());
33475
33527
  const nested = useFloatingParentNodeId() != null;
33476
33528
  if (process.env.NODE_ENV !== "production") {
33477
33529
  const optionDomReference = elementsProp.reference;
@@ -33536,7 +33588,7 @@ function useFloating(options) {
33536
33588
  const domReference = optionDomReference || _domReference;
33537
33589
  const domReferenceRef = React$5.useRef(null);
33538
33590
  const tree = useFloatingTree();
33539
- index(() => {
33591
+ index$1(() => {
33540
33592
  if (domReference) {
33541
33593
  domReferenceRef.current = domReference;
33542
33594
  }
@@ -33553,6 +33605,7 @@ function useFloating(options) {
33553
33605
  const setPositionReference = React$5.useCallback(node => {
33554
33606
  const computedPositionReference = isElement(node) ? {
33555
33607
  getBoundingClientRect: () => node.getBoundingClientRect(),
33608
+ getClientRects: () => node.getClientRects(),
33556
33609
  contextElement: node
33557
33610
  } : node;
33558
33611
  // Store the positionReference in state if the DOM reference is specified externally via the
@@ -33593,7 +33646,7 @@ function useFloating(options) {
33593
33646
  elements,
33594
33647
  nodeId
33595
33648
  }), [position, refs, elements, nodeId, rootContext]);
33596
- index(() => {
33649
+ index$1(() => {
33597
33650
  rootContext.dataRef.current.floatingContext = context;
33598
33651
  const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId);
33599
33652
  if (node) {
@@ -39949,15 +40002,9 @@ var cjs = {exports: {}};
39949
40002
 
39950
40003
  var Draggable$1 = {};
39951
40004
 
39952
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
39953
-
39954
- var clsx_m = /*#__PURE__*/Object.freeze({
39955
- __proto__: null,
39956
- clsx: clsx,
39957
- 'default': clsx
39958
- });
40005
+ var clsx = {exports: {}};
39959
40006
 
39960
- var require$$3 = /*@__PURE__*/getAugmentedNamespace(clsx_m);
40007
+ function r(e){var o,t,f="";if("string"==typeof e||"number"==typeof e)f+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=r(e[o]))&&(f&&(f+=" "),f+=t);}else for(t in e)e[t]&&(f&&(f+=" "),f+=t);return f}function e(){for(var e,o,t=0,f="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=r(e))&&(f&&(f+=" "),f+=o);return f}clsx.exports=e,clsx.exports.clsx=e;
39961
40008
 
39962
40009
  var domFns = {};
39963
40010
 
@@ -39989,7 +40036,7 @@ function int(a /*: string*/) /*: number*/{
39989
40036
  }
39990
40037
  function dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) /*: ?Error*/{
39991
40038
  if (props[propName]) {
39992
- return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child."));
40039
+ return new Error(`Invalid prop ${propName} passed to ${componentName} - do not set this, set it on the child.`);
39993
40040
  }
39994
40041
  }
39995
40042
 
@@ -40004,7 +40051,6 @@ getPrefix$1.default = void 0;
40004
40051
  getPrefix$1.getPrefix = getPrefix;
40005
40052
  const prefixes$1 = ['Moz', 'Webkit', 'O', 'ms'];
40006
40053
  function getPrefix() /*: string*/{
40007
- var _window$document;
40008
40054
  let prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';
40009
40055
  // Ensure we're running in an environment where there is actually a global
40010
40056
  // `window` obj
@@ -40012,7 +40058,7 @@ function getPrefix() /*: string*/{
40012
40058
 
40013
40059
  // If we're in a pseudo-browser server-side environment, this access
40014
40060
  // path may not exist, so bail out if it doesn't.
40015
- const style = (_window$document = window.document) === null || _window$document === void 0 || (_window$document = _window$document.documentElement) === null || _window$document === void 0 ? void 0 : _window$document.style;
40061
+ const style = window.document?.documentElement?.style;
40016
40062
  if (!style) return '';
40017
40063
  if (prop in style) return '';
40018
40064
  for (let i = 0; i < prefixes$1.length; i++) {
@@ -40021,10 +40067,10 @@ function getPrefix() /*: string*/{
40021
40067
  return '';
40022
40068
  }
40023
40069
  function browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/{
40024
- return prefix ? "".concat(prefix).concat(kebabToTitleCase(prop)) : prop;
40070
+ return prefix ? `${prefix}${kebabToTitleCase(prop)}` : prop;
40025
40071
  }
40026
40072
  function browserPrefixToStyle(prop /*: string*/, prefix /*: string*/) /*: string*/{
40027
- return prefix ? "-".concat(prefix.toLowerCase(), "-").concat(prop) : prop;
40073
+ return prefix ? `-${prefix.toLowerCase()}-${prop}` : prop;
40028
40074
  }
40029
40075
  function kebabToTitleCase(str /*: string*/) /*: string*/{
40030
40076
  let out = '';
@@ -40067,11 +40113,10 @@ domFns.outerHeight = outerHeight;
40067
40113
  domFns.outerWidth = outerWidth;
40068
40114
  domFns.removeClassName = removeClassName;
40069
40115
  domFns.removeEvent = removeEvent;
40070
- domFns.removeUserSelectStyles = removeUserSelectStyles;
40116
+ domFns.scheduleRemoveUserSelectStyles = scheduleRemoveUserSelectStyles;
40071
40117
  var _shims$2 = shims;
40072
40118
  var _getPrefix = _interopRequireWildcard$3(getPrefix$1);
40073
- function _getRequireWildcardCache$3(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache$3 = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
40074
- function _interopRequireWildcard$3(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache$3(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
40119
+ function _interopRequireWildcard$3(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard$3 = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
40075
40120
  /*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/
40076
40121
  let matchesSelectorFunc = '';
40077
40122
  function matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/{
@@ -40197,11 +40242,11 @@ function getTranslation(_ref /*:: */, positionOffset /*: PositionOffsetControlPo
40197
40242
  x,
40198
40243
  y
40199
40244
  } /*: ControlPosition*/ = _ref /*: ControlPosition*/;
40200
- let translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")");
40245
+ let translation = `translate(${x}${unitSuffix},${y}${unitSuffix})`;
40201
40246
  if (positionOffset) {
40202
- const defaultX = "".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);
40203
- const defaultY = "".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);
40204
- translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation;
40247
+ const defaultX = `${typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix}`;
40248
+ const defaultY = `${typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix}`;
40249
+ translation = `translate(${defaultX}, ${defaultY})` + translation;
40205
40250
  }
40206
40251
  return translation;
40207
40252
  }
@@ -40231,6 +40276,16 @@ function addUserSelectStyles(doc /*: ?Document*/) {
40231
40276
  }
40232
40277
  if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');
40233
40278
  }
40279
+ function scheduleRemoveUserSelectStyles(doc /*: ?Document*/) {
40280
+ // Prevent a possible "forced reflow"
40281
+ if (window.requestAnimationFrame) {
40282
+ window.requestAnimationFrame(() => {
40283
+ removeUserSelectStyles(doc);
40284
+ });
40285
+ } else {
40286
+ removeUserSelectStyles(doc);
40287
+ }
40288
+ }
40234
40289
  function removeUserSelectStyles(doc /*: ?Document*/) {
40235
40290
  if (!doc) return;
40236
40291
  try {
@@ -40255,8 +40310,8 @@ function addClassName(el /*: HTMLElement*/, className /*: string*/) {
40255
40310
  if (el.classList) {
40256
40311
  el.classList.add(className);
40257
40312
  } else {
40258
- if (!el.className.match(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)")))) {
40259
- el.className += " ".concat(className);
40313
+ if (!el.className.match(new RegExp(`(?:^|\\s)${className}(?!\\S)`))) {
40314
+ el.className += ` ${className}`;
40260
40315
  }
40261
40316
  }
40262
40317
  }
@@ -40264,7 +40319,7 @@ function removeClassName(el /*: HTMLElement*/, className /*: string*/) {
40264
40319
  if (el.classList) {
40265
40320
  el.classList.remove(className);
40266
40321
  } else {
40267
- el.className = el.className.replace(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)"), 'g'), '');
40322
+ el.className = el.className.replace(new RegExp(`(?:^|\\s)${className}(?!\\S)`, 'g'), '');
40268
40323
  }
40269
40324
  }
40270
40325
 
@@ -40304,7 +40359,12 @@ function getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: numbe
40304
40359
  if (bounds === 'parent') {
40305
40360
  boundNode = node.parentNode;
40306
40361
  } else {
40307
- boundNode = ownerDocument.querySelector(bounds);
40362
+ // Flow assigns the wrong return type (Node) for getRootNode(),
40363
+ // so we cast it to one of the correct types (Element).
40364
+ // The others are Document and ShadowRoot.
40365
+ // All three implement querySelector() so it's safe to call.
40366
+ const rootNode = ((node.getRootNode() /*: any*/) /*: Element*/);
40367
+ boundNode = rootNode.querySelector(bounds);
40308
40368
  }
40309
40369
  if (!(boundNode instanceof ownerWindow.HTMLElement)) {
40310
40370
  throw new Error('Bounds selector "' + bounds + '" could not find an element.');
@@ -40436,12 +40496,11 @@ var _domFns = domFns;
40436
40496
  var _positionFns = positionFns;
40437
40497
  var _shims = shims;
40438
40498
  var _log = _interopRequireDefault$4(log$1);
40439
- function _interopRequireDefault$4(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40440
- function _getRequireWildcardCache$2(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache$2 = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
40441
- function _interopRequireWildcard$2(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache$2(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
40442
- function _defineProperty$3(obj, key, value) { key = _toPropertyKey$3(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40443
- function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return typeof key === "symbol" ? key : String(key); }
40444
- function _toPrimitive$3(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40499
+ function _interopRequireDefault$4(e) { return e && e.__esModule ? e : { default: e }; }
40500
+ function _interopRequireWildcard$2(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard$2 = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
40501
+ function _defineProperty$3(e, r, t) { return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
40502
+ function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == typeof i ? i : i + ""; }
40503
+ function _toPrimitive$3(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); }
40445
40504
  /*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/
40446
40505
  /*:: import type {Element as ReactElement} from 'react';*/
40447
40506
  // Simple abstraction for dragging events names.
@@ -40471,6 +40530,7 @@ let dragEventFor = eventsFor.mouse;
40471
40530
  /*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/
40472
40531
  /*:: export type DraggableCoreDefaultProps = {
40473
40532
  allowAnyClick: boolean,
40533
+ allowMobileScroll: boolean,
40474
40534
  disabled: boolean,
40475
40535
  enableUserSelectHack: boolean,
40476
40536
  onStart: DraggableEventHandler,
@@ -40527,7 +40587,7 @@ class DraggableCore$1 extends React$2.Component /*:: <DraggableCoreProps>*/{
40527
40587
 
40528
40588
  // Prevent scrolling on mobile devices, like ipad/iphone.
40529
40589
  // Important that this is after handle/cancel.
40530
- if (e.type === 'touchstart') e.preventDefault();
40590
+ if (e.type === 'touchstart' && !this.props.allowMobileScroll) e.preventDefault();
40531
40591
 
40532
40592
  // Set touch identifier in component state if this is a touch event. This allows us to
40533
40593
  // distinguish between individual touches on multitouch screens by identifying which
@@ -40632,7 +40692,7 @@ class DraggableCore$1 extends React$2.Component /*:: <DraggableCoreProps>*/{
40632
40692
  const thisNode = this.findDOMNode();
40633
40693
  if (thisNode) {
40634
40694
  // Remove user-select hack
40635
- if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);
40695
+ if (this.props.enableUserSelectHack) (0, _domFns.scheduleRemoveUserSelectStyles)(thisNode.ownerDocument);
40636
40696
  }
40637
40697
  (0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent);
40638
40698
 
@@ -40695,15 +40755,14 @@ class DraggableCore$1 extends React$2.Component /*:: <DraggableCoreProps>*/{
40695
40755
  (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
40696
40756
  passive: false
40697
40757
  });
40698
- if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);
40758
+ if (this.props.enableUserSelectHack) (0, _domFns.scheduleRemoveUserSelectStyles)(ownerDocument);
40699
40759
  }
40700
40760
  }
40701
40761
 
40702
40762
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
40703
40763
  // the underlying DOM node ourselves. See the README for more information.
40704
40764
  findDOMNode() /*: ?HTMLElement*/{
40705
- var _this$props, _this$props2;
40706
- return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.nodeRef) === null || _this$props2 === void 0 ? void 0 : _this$props2.current : _reactDom.default.findDOMNode(this);
40765
+ return this.props?.nodeRef ? this.props?.nodeRef?.current : _reactDom.default.findDOMNode(this);
40707
40766
  }
40708
40767
  render() /*: React.Element<any>*/{
40709
40768
  // Reuse the child provided
@@ -40730,6 +40789,14 @@ _defineProperty$3(DraggableCore$1, "propTypes", {
40730
40789
  * Defaults to `false`.
40731
40790
  */
40732
40791
  allowAnyClick: _propTypes$3.default.bool,
40792
+ /**
40793
+ * `allowMobileScroll` turns off cancellation of the 'touchstart' event
40794
+ * on mobile devices. Only enable this if you are having trouble with click
40795
+ * events. Prefer using 'handle' / 'cancel' instead.
40796
+ *
40797
+ * Defaults to `false`.
40798
+ */
40799
+ allowMobileScroll: _propTypes$3.default.bool,
40733
40800
  children: _propTypes$3.default.node.isRequired,
40734
40801
  /**
40735
40802
  * `disabled`, if true, stops the <Draggable> from dragging. All handlers,
@@ -40849,6 +40916,7 @@ _defineProperty$3(DraggableCore$1, "propTypes", {
40849
40916
  _defineProperty$3(DraggableCore$1, "defaultProps", {
40850
40917
  allowAnyClick: false,
40851
40918
  // by default only accept left click
40919
+ allowMobileScroll: false,
40852
40920
  disabled: false,
40853
40921
  enableUserSelectHack: true,
40854
40922
  onStart: function () {},
@@ -40873,19 +40941,18 @@ exports.default = void 0;
40873
40941
  var React = _interopRequireWildcard(React__default);
40874
40942
  var _propTypes = _interopRequireDefault(propTypes$1.exports);
40875
40943
  var _reactDom = _interopRequireDefault(ReactDOM__default);
40876
- var _clsx = _interopRequireDefault(require$$3);
40944
+ var _clsx = clsx.exports;
40877
40945
  var _domFns = domFns;
40878
40946
  var _positionFns = positionFns;
40879
40947
  var _shims = shims;
40880
40948
  var _DraggableCore = _interopRequireDefault(DraggableCore$2);
40881
40949
  var _log = _interopRequireDefault(log$1);
40882
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40883
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
40884
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
40885
- 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); }
40886
- 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; }
40887
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
40888
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*:: import type {ControlPosition, PositionOffsetControlPosition, DraggableCoreProps, DraggableCoreDefaultProps} from './DraggableCore';*/
40950
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
40951
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
40952
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
40953
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
40954
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
40955
+ 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); } /*:: import type {ControlPosition, PositionOffsetControlPosition, DraggableCoreProps, DraggableCoreDefaultProps} from './DraggableCore';*/
40889
40956
  /*:: import type {Bounds, DraggableEventHandler} from './utils/types';*/
40890
40957
  /*:: import type {Element as ReactElement} from 'react';*/
40891
40958
  /*:: type DraggableState = {
@@ -41058,16 +41125,17 @@ class Draggable extends React.Component /*:: <DraggableProps, DraggableState>*/{
41058
41125
  }
41059
41126
  }
41060
41127
  componentWillUnmount() {
41061
- this.setState({
41062
- dragging: false
41063
- }); // prevents invariant if unmounted while dragging
41128
+ if (this.state.dragging) {
41129
+ this.setState({
41130
+ dragging: false
41131
+ }); // prevents invariant if unmounted while dragging
41132
+ }
41064
41133
  }
41065
41134
 
41066
41135
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
41067
41136
  // the underlying DOM node ourselves. See the README for more information.
41068
41137
  findDOMNode() /*: ?HTMLElement*/{
41069
- var _this$props$nodeRef$c, _this$props;
41070
- return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 || (_this$props = _this$props.nodeRef) === null || _this$props === void 0 ? void 0 : _this$props.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);
41138
+ return this.props?.nodeRef?.current ?? _reactDom.default.findDOMNode(this);
41071
41139
  }
41072
41140
  render() /*: ReactElement<any>*/{
41073
41141
  const {
@@ -41109,7 +41177,7 @@ class Draggable extends React.Component /*:: <DraggableProps, DraggableState>*/{
41109
41177
  }
41110
41178
 
41111
41179
  // Mark with class while dragging
41112
- const className = (0, _clsx.default)(children.props.className || '', defaultClassName, {
41180
+ const className = (0, _clsx.clsx)(children.props.className || '', defaultClassName, {
41113
41181
  [defaultClassNameDragging]: this.state.dragging,
41114
41182
  [defaultClassNameDragged]: this.state.dragged
41115
41183
  });
@@ -43236,7 +43304,7 @@ const TableEdit = forwardRef((props, ref) => {
43236
43304
  const [datePart, timePart] = stringData.split(' ');
43237
43305
  const [day, month, year] = datePart.split('/');
43238
43306
  const [hour, minute] = timePart.split(':');
43239
- const date = new Date(year, month - 1, day, hour, minute);
43307
+ const date = new Date(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute));
43240
43308
  if (!isNaN(date.getTime())) {
43241
43309
  if (column.onPaste) {
43242
43310
  dataRow[column.field] = column.onPaste(dataRow, date);
@@ -43253,7 +43321,7 @@ const TableEdit = forwardRef((props, ref) => {
43253
43321
  }
43254
43322
  }
43255
43323
  else if (column.type === 'numeric') {
43256
- const number = Number(stringData);
43324
+ const number = Number(stringData.replaceAll(formatSetting?.thousandSeparator ?? '.', '').replaceAll(formatSetting?.decimalSeparator ?? ',', '.'));
43257
43325
  if (!isNaN(number)) {
43258
43326
  if (column.onPaste) {
43259
43327
  dataRow[column.field] = column.onPaste(dataRow, number);
@@ -65482,6 +65550,89 @@ const ImportExcelComponent = (props) => {
65482
65550
  ] }) }));
65483
65551
  };
65484
65552
 
65553
+ const RenderContentCol = (props) => {
65554
+ const { col, indexCol, indexRow, isSelected, row, formatSetting, idTable, fisrtObjWidthFixRight, lastObjWidthFixLeft, objWidthFixLeft, objWidthFixRight, selectedRows, selectEnable, setSelectedRows, handleCommandClick, fieldKey, isMulti } = props;
65555
+ const RenderElement = () => {
65556
+ if (col.type === 'command' && !col.field) {
65557
+ return jsx("div", { className: "r-rowcell-div command", children: jsx(CommandElement, { commandItems: col.commandItems ?? [], handleCommandClick: handleCommandClick, indexRow: indexRow, rowData: row }) });
65558
+ }
65559
+ else if (col.type === '#' && !col.field) {
65560
+ jsx("div", { className: "r-rowcell-div", children: indexRow + 1 });
65561
+ }
65562
+ else if (col.type === 'checkbox' && !col.field) {
65563
+ return (jsx("div", { className: "r-rowcell-div cursor-pointer", style: { alignItems: 'center' }, onClick: (e) => {
65564
+ if (selectEnable) {
65565
+ const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
65566
+ if (index > -1) {
65567
+ if (isMulti) {
65568
+ selectedRows?.splice(index, 1);
65569
+ setSelectedRows([...selectedRows]);
65570
+ }
65571
+ else {
65572
+ setSelectedRows([]);
65573
+ }
65574
+ }
65575
+ else {
65576
+ if (isMulti) {
65577
+ setSelectedRows([...selectedRows, row]);
65578
+ }
65579
+ else {
65580
+ setSelectedRows([row]);
65581
+ }
65582
+ }
65583
+ e.stopPropagation();
65584
+ }
65585
+ }, children: jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", style: { textAlign: col.textAlign ?? 'center' } }) }));
65586
+ }
65587
+ else {
65588
+ let value = row[col.field];
65589
+ if (col.type === 'numeric') {
65590
+ value = formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false) ?? 0;
65591
+ }
65592
+ else if (col.type === 'date') {
65593
+ value = value ? formatDateTime(value, formatSetting?.dateFormat) : '';
65594
+ }
65595
+ else if (col.type === 'datetime') {
65596
+ value = value ? formatDateTime(value, formatSetting?.dateFormat ?? 'DD/MM/yyyy HH:mm') : '';
65597
+ }
65598
+ if (col.template) {
65599
+ value = col.template(row, indexRow) ?? '';
65600
+ }
65601
+ return (jsx("div", { className: classNames$1('r-rowcell-div'), children: jsxs("div", { className: classNames$1('r-rowcell-content'), style: {
65602
+ textAlign: col.textAlign ? col.textAlign : 'left'
65603
+ }, children: [jsx("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) }), col.haveToolTip && jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) })] }) }));
65604
+ }
65605
+ };
65606
+ return (col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': isSelected }), style: {
65607
+ left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
65608
+ right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined
65609
+ }, onClick: (e) => {
65610
+ if (e.target.nodeName === 'DIV' || e.target.nodeName === 'TD') {
65611
+ if (selectEnable) {
65612
+ const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
65613
+ if (index > -1) {
65614
+ if (isMulti) {
65615
+ selectedRows?.splice(index, 1);
65616
+ setSelectedRows([...selectedRows]);
65617
+ }
65618
+ else {
65619
+ setSelectedRows([]);
65620
+ }
65621
+ }
65622
+ else {
65623
+ if (isMulti) {
65624
+ setSelectedRows([...selectedRows, row]);
65625
+ }
65626
+ else {
65627
+ setSelectedRows([row]);
65628
+ }
65629
+ }
65630
+ }
65631
+ e.stopPropagation();
65632
+ }
65633
+ }, children: RenderElement() }, `col-${indexRow}-${indexCol}`));
65634
+ };
65635
+
65485
65636
  const HeaderTableCol = (props) => {
65486
65637
  const { selectEnable, dataSource, setSelectedRows, col, indexCol, indexParent, objWidthFixLeft, objWidthFixRight, totalCount, selectedRows, columns, setColumns, orderBy, changeFilter, filterBy, changeOrder, allowFilter, allowOrder, container, fisrtObjWidthFixRight, lastObjWidthFixLeft, formatSetting, optionsFilter, idTable, isMulti } = props;
65487
65638
  const { t } = useTranslation();
@@ -65624,89 +65775,6 @@ const RenderFilterElement = ({ filter, optionsFilter, formatSetting, filterBy, s
65624
65775
  }, children: t('Clear') })] })] }));
65625
65776
  };
65626
65777
 
65627
- const RenderContentCol = (props) => {
65628
- const { col, indexCol, indexRow, isSelected, row, formatSetting, idTable, fisrtObjWidthFixRight, lastObjWidthFixLeft, objWidthFixLeft, objWidthFixRight, selectedRows, selectEnable, setSelectedRows, handleCommandClick, fieldKey, isMulti } = props;
65629
- const RenderElement = () => {
65630
- if (col.type === 'command' && !col.field) {
65631
- return jsx("div", { className: "r-rowcell-div command", children: jsx(CommandElement, { commandItems: col.commandItems ?? [], handleCommandClick: handleCommandClick, indexRow: indexRow, rowData: row }) });
65632
- }
65633
- else if (col.type === '#' && !col.field) {
65634
- jsx("div", { className: "r-rowcell-div", children: indexRow + 1 });
65635
- }
65636
- else if (col.type === 'checkbox' && !col.field) {
65637
- return (jsx("div", { className: "r-rowcell-div cursor-pointer", style: { alignItems: 'center' }, onClick: (e) => {
65638
- if (selectEnable) {
65639
- const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
65640
- if (index > -1) {
65641
- if (isMulti) {
65642
- selectedRows?.splice(index, 1);
65643
- setSelectedRows([...selectedRows]);
65644
- }
65645
- else {
65646
- setSelectedRows([]);
65647
- }
65648
- }
65649
- else {
65650
- if (isMulti) {
65651
- setSelectedRows([...selectedRows, row]);
65652
- }
65653
- else {
65654
- setSelectedRows([row]);
65655
- }
65656
- }
65657
- e.stopPropagation();
65658
- }
65659
- }, children: jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", style: { textAlign: col.textAlign ?? 'center' } }) }));
65660
- }
65661
- else {
65662
- let value = row[col.field];
65663
- if (col.type === 'numeric') {
65664
- value = formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false) ?? 0;
65665
- }
65666
- else if (col.type === 'date') {
65667
- value = value ? formatDateTime(value, formatSetting?.dateFormat) : '';
65668
- }
65669
- else if (col.type === 'datetime') {
65670
- value = value ? formatDateTime(value, formatSetting?.dateFormat ?? 'DD/MM/yyyy HH:mm') : '';
65671
- }
65672
- if (col.template) {
65673
- value = col.template(row, indexRow) ?? '';
65674
- }
65675
- return (jsx("div", { className: classNames$1('r-rowcell-div'), children: jsxs("div", { className: classNames$1('r-rowcell-content'), style: {
65676
- textAlign: col.textAlign ? col.textAlign : 'left'
65677
- }, children: [jsx("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) }), col.haveToolTip && jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) })] }) }));
65678
- }
65679
- };
65680
- return (col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': isSelected }), style: {
65681
- left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
65682
- right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined
65683
- }, onClick: (e) => {
65684
- if (e.target.nodeName === 'DIV' || e.target.nodeName === 'TD') {
65685
- if (selectEnable) {
65686
- const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
65687
- if (index > -1) {
65688
- if (isMulti) {
65689
- selectedRows?.splice(index, 1);
65690
- setSelectedRows([...selectedRows]);
65691
- }
65692
- else {
65693
- setSelectedRows([]);
65694
- }
65695
- }
65696
- else {
65697
- if (isMulti) {
65698
- setSelectedRows([...selectedRows, row]);
65699
- }
65700
- else {
65701
- setSelectedRows([row]);
65702
- }
65703
- }
65704
- }
65705
- e.stopPropagation();
65706
- }
65707
- }, children: RenderElement() }, `col-${indexRow}-${indexCol}`));
65708
- };
65709
-
65710
65778
  const TableView = ({ idTable, dataSource, rowHeight = 33, height = 400, columns, isMutil = false, isLoading, selectEnable, formatSetting, commandClick, allowFilter, allowOrder, setColumns, pagingSetting, changeFilter, changeOrder, searchSetting, columnsAggregate, toolbarSetting, optionsFilter, selectedItem, setSelectedItem, handleSelect, isVirtualList }) => {
65711
65779
  const { t } = useTranslation();
65712
65780
  const gridRef = useRef(null);
@@ -65932,7 +66000,7 @@ const TableView = ({ idTable, dataSource, rowHeight = 33, height = 400, columns,
65932
66000
  }
65933
66001
  }
65934
66002
  }, [selectedItem]);
65935
- return (jsxs("div", { className: "react-table-edit r-virtualized-table", children: [jsxs("div", { className: 'r-grid', children: [toolbarSetting?.showTopToolbar && jsx(RenderToolbarTop, { toolbarTopOption: toolbarTopOption }), jsxs("div", { ref: gridRef, className: "r-gridtable", onScroll: handleScroll, style: { height: `${height ? `${height}px` : 'auto'}` }, children: [jsxs("table", { role: "presentation", style: { width: '100%' }, children: [jsx(RenderColGroup, { contentColumns: flatVisble }), jsx("thead", { className: 'r-gridheader', role: "rowgroup", children: headerColumns.map((rowColumn, indexParent) => (jsx("tr", { className: "r-row", role: "row", children: rowColumn.map((column, indexColumn) => (jsx(HeaderTableCol, { idTable: idTable, col: column, dataSource: dataSource, indexCol: indexColumn, indexParent: indexParent, isMulti: isMutil ?? false, selectEnable: selectEnable ?? false, selectedRows: selectedRows, setSelectedRows: setSelectedRows, columns: contentColumns, setColumns: setColumns, objWidthFixLeft: objWidthFixLeft, objWidthFixRight: objWidthFixRight, fisrtObjWidthFixRight: fisrtObjWidthFixRight, lastObjWidthFixLeft: lastObjWidthFixLeft, orderBy: orderBy, allowFilter: allowFilter, allowOrder: allowOrder, filterBy: filterBy, optionsFilter: optionsFilter, changeFilter: (val) => {
66003
+ return (jsxs("div", { className: "r-table-edit r-virtualized-table", children: [jsxs("div", { className: 'r-grid', children: [toolbarSetting?.showTopToolbar && jsx(RenderToolbarTop, { toolbarTopOption: toolbarTopOption }), jsxs("div", { ref: gridRef, className: "r-gridtable", onScroll: handleScroll, style: { height: `${height ? `${height}px` : 'auto'}` }, children: [jsxs("table", { role: "presentation", style: { width: '100%' }, children: [jsx(RenderColGroup, { contentColumns: flatVisble }), jsx("thead", { className: 'r-gridheader', role: "rowgroup", children: headerColumns.map((rowColumn, indexParent) => (jsx("tr", { className: "r-row", role: "row", children: rowColumn.map((column, indexColumn) => (jsx(HeaderTableCol, { idTable: idTable, col: column, dataSource: dataSource, indexCol: indexColumn, indexParent: indexParent, isMulti: isMutil ?? false, selectEnable: selectEnable ?? false, selectedRows: selectedRows, setSelectedRows: setSelectedRows, columns: contentColumns, setColumns: setColumns, objWidthFixLeft: objWidthFixLeft, objWidthFixRight: objWidthFixRight, fisrtObjWidthFixRight: fisrtObjWidthFixRight, lastObjWidthFixLeft: lastObjWidthFixLeft, orderBy: orderBy, allowFilter: allowFilter, allowOrder: allowOrder, filterBy: filterBy, optionsFilter: optionsFilter, changeFilter: (val) => {
65936
66004
  setFilterBy([...val]);
65937
66005
  if (changeFilter) {
65938
66006
  changeFilter(val);