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/component/table/index.d.ts +1 -1
- package/dist/component/tree-table/index.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +375 -307
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +375 -307
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/component/modal-import-excel/IType.d.ts +0 -24
- package/dist/component/table/paging/index.d.ts +0 -10
- package/dist/component/table/render-edit.d.ts +0 -20
- package/dist/component/table/type.d.ts +0 -158
- package/dist/component/table-old/command.d.ts +0 -12
- package/dist/component/virtualized-table/content.d.ts +0 -22
- package/dist/component/virtualized-table/group-col.d.ts +0 -6
- package/dist/component/virtualized-table/header.d.ts +0 -32
- package/dist/component/virtualized-table/index.d.ts +0 -26
- package/dist/component/virtualized-table/loading-item.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -38,21 +38,6 @@ var toast__default = /*#__PURE__*/_interopDefaultLegacy(toast);
|
|
|
38
38
|
|
|
39
39
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
40
40
|
|
|
41
|
-
function getAugmentedNamespace(n) {
|
|
42
|
-
if (n.__esModule) return n;
|
|
43
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
44
|
-
Object.keys(n).forEach(function (k) {
|
|
45
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
46
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () {
|
|
49
|
-
return n[k];
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
return a;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
41
|
var propTypes$1 = {exports: {}};
|
|
57
42
|
|
|
58
43
|
var reactIs = {exports: {}};
|
|
@@ -67,12 +52,12 @@ var reactIs_production_min = {};
|
|
|
67
52
|
* This source code is licensed under the MIT license found in the
|
|
68
53
|
* LICENSE file in the root directory of this source tree.
|
|
69
54
|
*/
|
|
70
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e$
|
|
55
|
+
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?
|
|
71
56
|
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;
|
|
72
|
-
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$
|
|
73
|
-
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$
|
|
57
|
+
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;
|
|
58
|
+
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};
|
|
74
59
|
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};
|
|
75
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
60
|
+
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;
|
|
76
61
|
|
|
77
62
|
var reactIs_development = {};
|
|
78
63
|
|
|
@@ -4143,7 +4128,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4143
4128
|
onExited: PropTypes.func
|
|
4144
4129
|
} : {}; // Name the function so it is clearer in the documentation
|
|
4145
4130
|
|
|
4146
|
-
function noop$
|
|
4131
|
+
function noop$5() {}
|
|
4147
4132
|
|
|
4148
4133
|
Transition.defaultProps = {
|
|
4149
4134
|
in: false,
|
|
@@ -4152,12 +4137,12 @@ Transition.defaultProps = {
|
|
|
4152
4137
|
appear: false,
|
|
4153
4138
|
enter: true,
|
|
4154
4139
|
exit: true,
|
|
4155
|
-
onEnter: noop$
|
|
4156
|
-
onEntering: noop$
|
|
4157
|
-
onEntered: noop$
|
|
4158
|
-
onExit: noop$
|
|
4159
|
-
onExiting: noop$
|
|
4160
|
-
onExited: noop$
|
|
4140
|
+
onEnter: noop$5,
|
|
4141
|
+
onEntering: noop$5,
|
|
4142
|
+
onEntered: noop$5,
|
|
4143
|
+
onExit: noop$5,
|
|
4144
|
+
onExiting: noop$5,
|
|
4145
|
+
onExited: noop$5
|
|
4161
4146
|
};
|
|
4162
4147
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
4163
4148
|
Transition.EXITED = EXITED;
|
|
@@ -6636,7 +6621,7 @@ UncontrolledCarousel.defaultProps = {
|
|
|
6636
6621
|
|
|
6637
6622
|
const _excluded$z = ["cssModule", "children", "isOpen", "flip", "target", "offset", "fallbackPlacements", "placementPrefix", "arrowClassName", "hideArrow", "popperClassName", "tag", "container", "modifiers", "strategy", "boundariesElement", "onClosed", "fade", "transition", "placement"];
|
|
6638
6623
|
|
|
6639
|
-
function noop$2() {}
|
|
6624
|
+
function noop$2$1() {}
|
|
6640
6625
|
|
|
6641
6626
|
const propTypes$F = {
|
|
6642
6627
|
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
|
@@ -6669,7 +6654,7 @@ const defaultProps$F = {
|
|
|
6669
6654
|
flip: true,
|
|
6670
6655
|
container: 'body',
|
|
6671
6656
|
modifiers: [],
|
|
6672
|
-
onClosed: noop$2,
|
|
6657
|
+
onClosed: noop$2$1,
|
|
6673
6658
|
fade: true,
|
|
6674
6659
|
transition: _objectSpread2({}, Fade.defaultProps)
|
|
6675
6660
|
};
|
|
@@ -8205,7 +8190,7 @@ var Label$1 = Label;
|
|
|
8205
8190
|
top: PropTypes.bool
|
|
8206
8191
|
});
|
|
8207
8192
|
|
|
8208
|
-
function noop$
|
|
8193
|
+
function noop$4() {}
|
|
8209
8194
|
|
|
8210
8195
|
const FadePropTypes = PropTypes.shape(Fade.propTypes);
|
|
8211
8196
|
const propTypes$k = {
|
|
@@ -8247,8 +8232,8 @@ const defaultProps$k = {
|
|
|
8247
8232
|
keyboard: true,
|
|
8248
8233
|
zIndex: 1050,
|
|
8249
8234
|
fade: true,
|
|
8250
|
-
onOpened: noop$
|
|
8251
|
-
onClosed: noop$
|
|
8235
|
+
onOpened: noop$4,
|
|
8236
|
+
onClosed: noop$4,
|
|
8252
8237
|
offcanvasTransition: {
|
|
8253
8238
|
timeout: TransitionTimeouts.Offcanvas
|
|
8254
8239
|
},
|
|
@@ -8376,7 +8361,7 @@ class Offcanvas extends React__default["default"].Component {
|
|
|
8376
8361
|
|
|
8377
8362
|
onOpened(node, isAppearing) {
|
|
8378
8363
|
this.props.onOpened();
|
|
8379
|
-
(this.props.offcanvasTransition.onEntered || noop$
|
|
8364
|
+
(this.props.offcanvasTransition.onEntered || noop$4)(node, isAppearing);
|
|
8380
8365
|
}
|
|
8381
8366
|
|
|
8382
8367
|
onClosed(node) {
|
|
@@ -8385,7 +8370,7 @@ class Offcanvas extends React__default["default"].Component {
|
|
|
8385
8370
|
} = this.props; // so all methods get called before it is unmounted
|
|
8386
8371
|
|
|
8387
8372
|
this.props.onClosed();
|
|
8388
|
-
(this.props.offcanvasTransition.onExited || noop$
|
|
8373
|
+
(this.props.offcanvasTransition.onExited || noop$4)(node);
|
|
8389
8374
|
|
|
8390
8375
|
if (unmountOnClose) {
|
|
8391
8376
|
this.destroy();
|
|
@@ -14291,7 +14276,7 @@ const ReactInput = (props) => {
|
|
|
14291
14276
|
};
|
|
14292
14277
|
|
|
14293
14278
|
/*!
|
|
14294
|
-
* sweetalert2 v11.
|
|
14279
|
+
* sweetalert2 v11.22.2
|
|
14295
14280
|
* Released under the MIT License.
|
|
14296
14281
|
*/
|
|
14297
14282
|
function _assertClassBrand(e, t, n) {
|
|
@@ -14358,7 +14343,7 @@ const swalPrefix = 'swal2-';
|
|
|
14358
14343
|
*/
|
|
14359
14344
|
|
|
14360
14345
|
/** @type {SwalClass[]} */
|
|
14361
|
-
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', '
|
|
14346
|
+
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'];
|
|
14362
14347
|
const swalClasses = classNames.reduce((acc, className) => {
|
|
14363
14348
|
acc[className] = swalPrefix + className;
|
|
14364
14349
|
return acc;
|
|
@@ -14425,8 +14410,7 @@ const warnOnce = message => {
|
|
|
14425
14410
|
* @param {string} deprecatedParam
|
|
14426
14411
|
* @param {string?} useInstead
|
|
14427
14412
|
*/
|
|
14428
|
-
const warnAboutDeprecation =
|
|
14429
|
-
let useInstead = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
14413
|
+
const warnAboutDeprecation = (deprecatedParam, useInstead = null) => {
|
|
14430
14414
|
warnOnce(`"${deprecatedParam}" is deprecated and will be removed in the next major release.${useInstead ? ` Use "${useInstead}" instead.` : ''}`);
|
|
14431
14415
|
};
|
|
14432
14416
|
|
|
@@ -14847,8 +14831,7 @@ const applyNumericalStyle = (elem, property, value) => {
|
|
|
14847
14831
|
* @param {HTMLElement | null} elem
|
|
14848
14832
|
* @param {string} display
|
|
14849
14833
|
*/
|
|
14850
|
-
const show =
|
|
14851
|
-
let display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
|
|
14834
|
+
const show = (elem, display = 'flex') => {
|
|
14852
14835
|
if (!elem) {
|
|
14853
14836
|
return;
|
|
14854
14837
|
}
|
|
@@ -14869,8 +14852,7 @@ const hide$1 = elem => {
|
|
|
14869
14852
|
* @param {HTMLElement | null} elem
|
|
14870
14853
|
* @param {string} display
|
|
14871
14854
|
*/
|
|
14872
|
-
const showWhenInnerHtmlPresent =
|
|
14873
|
-
let display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'block';
|
|
14855
|
+
const showWhenInnerHtmlPresent = (elem, display = 'block') => {
|
|
14874
14856
|
if (!elem) {
|
|
14875
14857
|
return;
|
|
14876
14858
|
}
|
|
@@ -14901,8 +14883,7 @@ const setStyle = (parent, selector, property, value) => {
|
|
|
14901
14883
|
* @param {any} condition
|
|
14902
14884
|
* @param {string} display
|
|
14903
14885
|
*/
|
|
14904
|
-
const toggle =
|
|
14905
|
-
let display = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'flex';
|
|
14886
|
+
const toggle = (elem, condition, display = 'flex') => {
|
|
14906
14887
|
if (condition) {
|
|
14907
14888
|
show(elem, display);
|
|
14908
14889
|
} else {
|
|
@@ -14929,6 +14910,22 @@ const allButtonsAreHidden = () => !isVisible$1(getConfirmButton()) && !isVisible
|
|
|
14929
14910
|
*/
|
|
14930
14911
|
const isScrollable = elem => !!(elem.scrollHeight > elem.clientHeight);
|
|
14931
14912
|
|
|
14913
|
+
/**
|
|
14914
|
+
* @param {HTMLElement} element
|
|
14915
|
+
* @param {HTMLElement} stopElement
|
|
14916
|
+
* @returns {boolean}
|
|
14917
|
+
*/
|
|
14918
|
+
const selfOrParentIsScrollable = (element, stopElement) => {
|
|
14919
|
+
let parent = element;
|
|
14920
|
+
while (parent && parent !== stopElement) {
|
|
14921
|
+
if (isScrollable(parent)) {
|
|
14922
|
+
return true;
|
|
14923
|
+
}
|
|
14924
|
+
parent = parent.parentElement;
|
|
14925
|
+
}
|
|
14926
|
+
return false;
|
|
14927
|
+
};
|
|
14928
|
+
|
|
14932
14929
|
/**
|
|
14933
14930
|
* borrowed from https://stackoverflow.com/a/46352119
|
|
14934
14931
|
*
|
|
@@ -14946,8 +14943,7 @@ const hasCssAnimation = elem => {
|
|
|
14946
14943
|
* @param {number} timer
|
|
14947
14944
|
* @param {boolean} reset
|
|
14948
14945
|
*/
|
|
14949
|
-
const animateTimerProgressBar =
|
|
14950
|
-
let reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
14946
|
+
const animateTimerProgressBar = (timer, reset = false) => {
|
|
14951
14947
|
const timerProgressBar = getTimerProgressBar();
|
|
14952
14948
|
if (!timerProgressBar) {
|
|
14953
14949
|
return;
|
|
@@ -15108,6 +15104,10 @@ const init = params => {
|
|
|
15108
15104
|
container.dataset['swal2Theme'] = params.theme;
|
|
15109
15105
|
const targetElement = getTarget(params.target);
|
|
15110
15106
|
targetElement.appendChild(container);
|
|
15107
|
+
if (params.topLayer) {
|
|
15108
|
+
container.setAttribute('popover', '');
|
|
15109
|
+
container.showPopover();
|
|
15110
|
+
}
|
|
15111
15111
|
setupAccessibility(params);
|
|
15112
15112
|
setupRTL(targetElement);
|
|
15113
15113
|
addInputChangeListeners();
|
|
@@ -15237,19 +15237,34 @@ function handleButtonsStyling(confirmButton, denyButton, cancelButton, params) {
|
|
|
15237
15237
|
}
|
|
15238
15238
|
addClass([confirmButton, denyButton, cancelButton], swalClasses.styled);
|
|
15239
15239
|
|
|
15240
|
-
//
|
|
15240
|
+
// Apply custom background colors to action buttons
|
|
15241
15241
|
if (params.confirmButtonColor) {
|
|
15242
|
-
confirmButton.style.
|
|
15243
|
-
addClass(confirmButton, swalClasses['default-outline']);
|
|
15242
|
+
confirmButton.style.setProperty('--swal2-confirm-button-background-color', params.confirmButtonColor);
|
|
15244
15243
|
}
|
|
15245
15244
|
if (params.denyButtonColor) {
|
|
15246
|
-
denyButton.style.
|
|
15247
|
-
addClass(denyButton, swalClasses['default-outline']);
|
|
15245
|
+
denyButton.style.setProperty('--swal2-deny-button-background-color', params.denyButtonColor);
|
|
15248
15246
|
}
|
|
15249
15247
|
if (params.cancelButtonColor) {
|
|
15250
|
-
cancelButton.style.
|
|
15251
|
-
|
|
15248
|
+
cancelButton.style.setProperty('--swal2-cancel-button-background-color', params.cancelButtonColor);
|
|
15249
|
+
}
|
|
15250
|
+
|
|
15251
|
+
// Apply the outline color to action buttons
|
|
15252
|
+
applyOutlineColor(confirmButton);
|
|
15253
|
+
applyOutlineColor(denyButton);
|
|
15254
|
+
applyOutlineColor(cancelButton);
|
|
15255
|
+
}
|
|
15256
|
+
|
|
15257
|
+
/**
|
|
15258
|
+
* @param {HTMLElement} button
|
|
15259
|
+
*/
|
|
15260
|
+
function applyOutlineColor(button) {
|
|
15261
|
+
const buttonStyle = window.getComputedStyle(button);
|
|
15262
|
+
if (buttonStyle.getPropertyValue('--swal2-action-button-focus-box-shadow')) {
|
|
15263
|
+
// If the button already has a custom outline color, no need to change it
|
|
15264
|
+
return;
|
|
15252
15265
|
}
|
|
15266
|
+
const outlineColor = buttonStyle.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, 'rgba($1, $2, $3, 0.5)');
|
|
15267
|
+
button.style.setProperty('--swal2-action-button-focus-box-shadow', buttonStyle.getPropertyValue('--swal2-outline').replace(/ rgba\(.*/, ` ${outlineColor}`));
|
|
15253
15268
|
}
|
|
15254
15269
|
|
|
15255
15270
|
/**
|
|
@@ -15773,11 +15788,18 @@ const adjustSuccessIconBackgroundColor = () => {
|
|
|
15773
15788
|
successIconParts[i].style.backgroundColor = popupBackgroundColor;
|
|
15774
15789
|
}
|
|
15775
15790
|
};
|
|
15776
|
-
|
|
15777
|
-
|
|
15791
|
+
|
|
15792
|
+
/**
|
|
15793
|
+
*
|
|
15794
|
+
* @param {SweetAlertOptions} params
|
|
15795
|
+
* @returns {string}
|
|
15796
|
+
*/
|
|
15797
|
+
const successIconHtml = params => `
|
|
15798
|
+
${params.animation ? '<div class="swal2-success-circular-line-left"></div>' : ''}
|
|
15778
15799
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
15779
|
-
<div class="swal2-success-ring"></div>
|
|
15780
|
-
<div class="swal2-success-
|
|
15800
|
+
<div class="swal2-success-ring"></div>
|
|
15801
|
+
${params.animation ? '<div class="swal2-success-fix"></div>' : ''}
|
|
15802
|
+
${params.animation ? '<div class="swal2-success-circular-line-right"></div>' : ''}
|
|
15781
15803
|
`;
|
|
15782
15804
|
const errorIconHtml = `
|
|
15783
15805
|
<span class="swal2-x-mark">
|
|
@@ -15799,7 +15821,7 @@ const setContent = (icon, params) => {
|
|
|
15799
15821
|
if (params.iconHtml) {
|
|
15800
15822
|
newContent = iconContent(params.iconHtml);
|
|
15801
15823
|
} else if (params.icon === 'success') {
|
|
15802
|
-
newContent = successIconHtml;
|
|
15824
|
+
newContent = successIconHtml(params);
|
|
15803
15825
|
oldContent = oldContent.replace(/ style=".*?"/g, ''); // undo adjustSuccessIconBackgroundColor()
|
|
15804
15826
|
} else if (params.icon === 'error') {
|
|
15805
15827
|
newContent = errorIconHtml;
|
|
@@ -16215,6 +16237,11 @@ const setFocus = (index, increment) => {
|
|
|
16215
16237
|
if (focusableElements.length) {
|
|
16216
16238
|
index = index + increment;
|
|
16217
16239
|
|
|
16240
|
+
// shift + tab when .swal2-popup is focused
|
|
16241
|
+
if (index === -2) {
|
|
16242
|
+
index = focusableElements.length - 1;
|
|
16243
|
+
}
|
|
16244
|
+
|
|
16218
16245
|
// rollover to first item
|
|
16219
16246
|
if (index === focusableElements.length) {
|
|
16220
16247
|
index = 0;
|
|
@@ -16361,8 +16388,8 @@ const handleArrows = key => {
|
|
|
16361
16388
|
* @param {Function} dismissWith
|
|
16362
16389
|
*/
|
|
16363
16390
|
const handleEsc = (event, innerParams, dismissWith) => {
|
|
16391
|
+
event.preventDefault();
|
|
16364
16392
|
if (callIfFunction(innerParams.allowEscapeKey)) {
|
|
16365
|
-
event.preventDefault();
|
|
16366
16393
|
dismissWith(DismissReason.esc);
|
|
16367
16394
|
}
|
|
16368
16395
|
};
|
|
@@ -16472,7 +16499,9 @@ const shouldPreventTouchMove = event => {
|
|
|
16472
16499
|
if (target === container) {
|
|
16473
16500
|
return true;
|
|
16474
16501
|
}
|
|
16475
|
-
if (!isScrollable(container) && target instanceof HTMLElement && target
|
|
16502
|
+
if (!isScrollable(container) && target instanceof HTMLElement && !selfOrParentIsScrollable(target, htmlContainer) &&
|
|
16503
|
+
// #2823
|
|
16504
|
+
target.tagName !== 'INPUT' &&
|
|
16476
16505
|
// #1603
|
|
16477
16506
|
target.tagName !== 'TEXTAREA' &&
|
|
16478
16507
|
// #2266
|
|
@@ -17423,7 +17452,8 @@ const defaultParams = {
|
|
|
17423
17452
|
willClose: undefined,
|
|
17424
17453
|
didClose: undefined,
|
|
17425
17454
|
didDestroy: undefined,
|
|
17426
|
-
scrollbarPadding: true
|
|
17455
|
+
scrollbarPadding: true,
|
|
17456
|
+
topLayer: false
|
|
17427
17457
|
};
|
|
17428
17458
|
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'];
|
|
17429
17459
|
|
|
@@ -17500,8 +17530,8 @@ const showWarningsForParams = params => {
|
|
|
17500
17530
|
if (params.backdrop === false && params.allowOutsideClick) {
|
|
17501
17531
|
warn$1('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
17502
17532
|
}
|
|
17503
|
-
if (params.theme && !['light', 'dark', 'auto', 'borderless'].includes(params.theme)) {
|
|
17504
|
-
warn$1(`Invalid theme "${params.theme}"
|
|
17533
|
+
if (params.theme && !['light', 'dark', 'auto', 'minimal', 'borderless', 'embed-iframe', 'bulma', 'bulma-light', 'bulma-dark'].includes(params.theme)) {
|
|
17534
|
+
warn$1(`Invalid theme "${params.theme}"`);
|
|
17505
17535
|
}
|
|
17506
17536
|
for (const param in params) {
|
|
17507
17537
|
checkIfParamIsValid(param);
|
|
@@ -17776,10 +17806,7 @@ const argsToParams = args => {
|
|
|
17776
17806
|
* @param {...SweetAlertOptions} args
|
|
17777
17807
|
* @returns {Promise<SweetAlertResult>}
|
|
17778
17808
|
*/
|
|
17779
|
-
function fire() {
|
|
17780
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17781
|
-
args[_key] = arguments[_key];
|
|
17782
|
-
}
|
|
17809
|
+
function fire(...args) {
|
|
17783
17810
|
return new this(...args);
|
|
17784
17811
|
}
|
|
17785
17812
|
|
|
@@ -17892,8 +17919,7 @@ const clickHandlers = {};
|
|
|
17892
17919
|
/**
|
|
17893
17920
|
* @param {string} attr
|
|
17894
17921
|
*/
|
|
17895
|
-
function bindClickHandler() {
|
|
17896
|
-
let attr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-swal-template';
|
|
17922
|
+
function bindClickHandler(attr = 'data-swal-template') {
|
|
17897
17923
|
clickHandlers[attr] = this;
|
|
17898
17924
|
if (!bodyClickListenerAdded) {
|
|
17899
17925
|
document.body.addEventListener('click', bodyClickListener);
|
|
@@ -17951,16 +17977,12 @@ class EventEmitter {
|
|
|
17951
17977
|
* @param {EventHandler} eventHandler
|
|
17952
17978
|
*/
|
|
17953
17979
|
once(eventName, eventHandler) {
|
|
17954
|
-
var _this = this;
|
|
17955
17980
|
/**
|
|
17956
17981
|
* @param {Array} args
|
|
17957
17982
|
*/
|
|
17958
|
-
const onceFn =
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
args[_key] = arguments[_key];
|
|
17962
|
-
}
|
|
17963
|
-
eventHandler.apply(_this, args);
|
|
17983
|
+
const onceFn = (...args) => {
|
|
17984
|
+
this.removeListener(eventName, onceFn);
|
|
17985
|
+
eventHandler.apply(this, args);
|
|
17964
17986
|
};
|
|
17965
17987
|
this.on(eventName, onceFn);
|
|
17966
17988
|
}
|
|
@@ -17969,10 +17991,7 @@ class EventEmitter {
|
|
|
17969
17991
|
* @param {string} eventName
|
|
17970
17992
|
* @param {Array} args
|
|
17971
17993
|
*/
|
|
17972
|
-
emit(eventName) {
|
|
17973
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
17974
|
-
args[_key2 - 1] = arguments[_key2];
|
|
17975
|
-
}
|
|
17994
|
+
emit(eventName, ...args) {
|
|
17976
17995
|
this._getHandlersByEventName(eventName).forEach(
|
|
17977
17996
|
/**
|
|
17978
17997
|
* @param {EventHandler} eventHandler
|
|
@@ -18572,7 +18591,7 @@ class SweetAlert {
|
|
|
18572
18591
|
* @param {...any} args
|
|
18573
18592
|
* @this {SweetAlert}
|
|
18574
18593
|
*/
|
|
18575
|
-
constructor() {
|
|
18594
|
+
constructor(...args) {
|
|
18576
18595
|
/**
|
|
18577
18596
|
* @type {Promise<SweetAlertResult>}
|
|
18578
18597
|
*/
|
|
@@ -18584,9 +18603,6 @@ class SweetAlert {
|
|
|
18584
18603
|
currentInstance = this;
|
|
18585
18604
|
|
|
18586
18605
|
// @ts-ignore
|
|
18587
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18588
|
-
args[_key] = arguments[_key];
|
|
18589
|
-
}
|
|
18590
18606
|
const outerParams = Object.freeze(this.constructor.argsToParams(args));
|
|
18591
18607
|
|
|
18592
18608
|
/** @type {Readonly<SweetAlertOptions>} */
|
|
@@ -18596,8 +18612,7 @@ class SweetAlert {
|
|
|
18596
18612
|
this.isAwaitingPromise = false;
|
|
18597
18613
|
_classPrivateFieldSet2(_promise, this, this._main(currentInstance.params));
|
|
18598
18614
|
}
|
|
18599
|
-
_main(userParams) {
|
|
18600
|
-
let mixinParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18615
|
+
_main(userParams, mixinParams = {}) {
|
|
18601
18616
|
showWarningsForParams(Object.assign({}, mixinParams, userParams));
|
|
18602
18617
|
if (globalState.currentInstance) {
|
|
18603
18618
|
const swalPromiseResolve = privateMethods.swalPromiseResolve.get(globalState.currentInstance);
|
|
@@ -18876,20 +18891,20 @@ Object.keys(instanceMethods).forEach(key => {
|
|
|
18876
18891
|
* @param {...any} args
|
|
18877
18892
|
* @returns {any | undefined}
|
|
18878
18893
|
*/
|
|
18879
|
-
SweetAlert[key] = function () {
|
|
18894
|
+
SweetAlert[key] = function (...args) {
|
|
18880
18895
|
if (currentInstance && currentInstance[key]) {
|
|
18881
|
-
return currentInstance[key](...
|
|
18896
|
+
return currentInstance[key](...args);
|
|
18882
18897
|
}
|
|
18883
18898
|
return null;
|
|
18884
18899
|
};
|
|
18885
18900
|
});
|
|
18886
18901
|
SweetAlert.DismissReason = DismissReason;
|
|
18887
|
-
SweetAlert.version = '11.
|
|
18902
|
+
SweetAlert.version = '11.22.2';
|
|
18888
18903
|
|
|
18889
18904
|
const Swal = SweetAlert;
|
|
18890
18905
|
// @ts-ignore
|
|
18891
18906
|
Swal.default = Swal;
|
|
18892
|
-
"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}}");
|
|
18907
|
+
"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}}");
|
|
18893
18908
|
|
|
18894
18909
|
// sweetalert2-react-content v5.1.0
|
|
18895
18910
|
|
|
@@ -18922,7 +18937,7 @@ const mounts = [{
|
|
|
18922
18937
|
getter: swal => swal.getLoader()
|
|
18923
18938
|
}];
|
|
18924
18939
|
|
|
18925
|
-
const noop$
|
|
18940
|
+
const noop$3 = () => {};
|
|
18926
18941
|
function withReactContent(ParentSwal) {
|
|
18927
18942
|
/* Returns `params` separated into a tuple of `reactParams` (the React params that need to be rendered)
|
|
18928
18943
|
and`otherParams` (all the other parameters, with any React params replaced with a space ' ') */
|
|
@@ -18975,9 +18990,9 @@ function withReactContent(ParentSwal) {
|
|
|
18975
18990
|
this.__roots = [];
|
|
18976
18991
|
this.__params = Object.assign({}, mixinParams, params);
|
|
18977
18992
|
const [reactParams, otherParams] = extractReactParams(this.__params);
|
|
18978
|
-
const superWillOpen = otherParams.willOpen || noop$
|
|
18979
|
-
const superDidOpen = otherParams.didOpen || noop$
|
|
18980
|
-
const superDidDestroy = otherParams.didDestroy || noop$
|
|
18993
|
+
const superWillOpen = otherParams.willOpen || noop$3;
|
|
18994
|
+
const superDidOpen = otherParams.didOpen || noop$3;
|
|
18995
|
+
const superDidDestroy = otherParams.didDestroy || noop$3;
|
|
18981
18996
|
return super._main(Object.assign({}, otherParams, {
|
|
18982
18997
|
willOpen: popup => {
|
|
18983
18998
|
render(this, reactParams);
|
|
@@ -21410,7 +21425,7 @@ function useForm(props = {}) {
|
|
|
21410
21425
|
return _formControl.current;
|
|
21411
21426
|
}
|
|
21412
21427
|
|
|
21413
|
-
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};
|
|
21428
|
+
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};
|
|
21414
21429
|
|
|
21415
21430
|
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)}}};
|
|
21416
21431
|
|
|
@@ -21454,9 +21469,9 @@ const TextInput = (props) => {
|
|
|
21454
21469
|
};
|
|
21455
21470
|
|
|
21456
21471
|
/**
|
|
21457
|
-
* react-number-format - 5.4.
|
|
21472
|
+
* react-number-format - 5.4.4
|
|
21458
21473
|
* Author : Sudhanshu Yadav
|
|
21459
|
-
* Copyright (c) 2016,
|
|
21474
|
+
* Copyright (c) 2016, 2025 to Sudhanshu Yadav, released under the MIT license.
|
|
21460
21475
|
* https://github.com/s-yadav/react-number-format
|
|
21461
21476
|
*/
|
|
21462
21477
|
|
|
@@ -21494,7 +21509,7 @@ var SourceType;
|
|
|
21494
21509
|
})(SourceType || (SourceType = {}));
|
|
21495
21510
|
|
|
21496
21511
|
// basic noop function
|
|
21497
|
-
function noop() { }
|
|
21512
|
+
function noop$2() { }
|
|
21498
21513
|
function memoizeOnce(cb) {
|
|
21499
21514
|
var lastArgs;
|
|
21500
21515
|
var lastValue = undefined;
|
|
@@ -21874,7 +21889,7 @@ function caretUnknownFormatBoundary(formattedValue) {
|
|
|
21874
21889
|
return boundaryAry;
|
|
21875
21890
|
}
|
|
21876
21891
|
function useInternalValues(value, defaultValue, valueIsNumericString, format, removeFormatting, onValueChange) {
|
|
21877
|
-
if ( onValueChange === void 0 ) onValueChange = noop;
|
|
21892
|
+
if ( onValueChange === void 0 ) onValueChange = noop$2;
|
|
21878
21893
|
|
|
21879
21894
|
var getValues = usePersistentCallback(function (value, valueIsNumericString) {
|
|
21880
21895
|
var formattedValue, numAsString;
|
|
@@ -21939,11 +21954,11 @@ function NumberFormatBase(props) {
|
|
|
21939
21954
|
var valueIsNumericString = props.valueIsNumericString;
|
|
21940
21955
|
var onValueChange = props.onValueChange;
|
|
21941
21956
|
var isAllowed = props.isAllowed;
|
|
21942
|
-
var onChange = props.onChange; if ( onChange === void 0 ) onChange = noop;
|
|
21943
|
-
var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop;
|
|
21944
|
-
var onMouseUp = props.onMouseUp; if ( onMouseUp === void 0 ) onMouseUp = noop;
|
|
21945
|
-
var onFocus = props.onFocus; if ( onFocus === void 0 ) onFocus = noop;
|
|
21946
|
-
var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop;
|
|
21957
|
+
var onChange = props.onChange; if ( onChange === void 0 ) onChange = noop$2;
|
|
21958
|
+
var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop$2;
|
|
21959
|
+
var onMouseUp = props.onMouseUp; if ( onMouseUp === void 0 ) onMouseUp = noop$2;
|
|
21960
|
+
var onFocus = props.onFocus; if ( onFocus === void 0 ) onFocus = noop$2;
|
|
21961
|
+
var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop$2;
|
|
21947
21962
|
var propValue = props.value;
|
|
21948
21963
|
var getCaretBoundary = props.getCaretBoundary; if ( getCaretBoundary === void 0 ) getCaretBoundary = caretUnknownFormatBoundary;
|
|
21949
21964
|
var isValidInputCharacter = props.isValidInputCharacter; if ( isValidInputCharacter === void 0 ) isValidInputCharacter = charIsNumber;
|
|
@@ -22504,8 +22519,8 @@ function useNumericFormat(props) {
|
|
|
22504
22519
|
var suffix = props.suffix;
|
|
22505
22520
|
var allowNegative = props.allowNegative;
|
|
22506
22521
|
var allowLeadingZeros = props.allowLeadingZeros;
|
|
22507
|
-
var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop;
|
|
22508
|
-
var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop;
|
|
22522
|
+
var onKeyDown = props.onKeyDown; if ( onKeyDown === void 0 ) onKeyDown = noop$2;
|
|
22523
|
+
var onBlur = props.onBlur; if ( onBlur === void 0 ) onBlur = noop$2;
|
|
22509
22524
|
var thousandSeparator = props.thousandSeparator;
|
|
22510
22525
|
var decimalScale = props.decimalScale;
|
|
22511
22526
|
var fixedDecimalScale = props.fixedDecimalScale;
|
|
@@ -23563,7 +23578,7 @@ const SidebarSetColumn = (props) => {
|
|
|
23563
23578
|
justifyContent: col.textAlign ?? 'left'
|
|
23564
23579
|
}, className: "r-headercell-div", children: t(col.headerText ?? '') }) }) }, `header-${indexCol}`));
|
|
23565
23580
|
};
|
|
23566
|
-
return (jsxRuntime.jsxs(Sidebar, { open: openSidebar, toggleSidebar: handleCancel, width: 700, children: [jsxRuntime.jsx(ModalHeader, { typeModal: 'Edit', handleModal: handleCancel, title: 'Column setup' }), jsxRuntime.jsx("div", { className: "ms-2
|
|
23581
|
+
return (jsxRuntime.jsxs(Sidebar, { open: openSidebar, toggleSidebar: handleCancel, width: 700, children: [jsxRuntime.jsx(ModalHeader, { typeModal: 'Edit', handleModal: handleCancel, title: 'Column setup' }), jsxRuntime.jsx("div", { className: "ms-2 r-table-edit", children: jsxRuntime.jsx("div", { className: 'r-grid', children: jsxRuntime.jsx("div", { className: "r-gridtable", style: { height: windowSize.innerHeight - 120 }, children: jsxRuntime.jsxs("table", { style: { width: '100%' }, children: [jsxRuntime.jsx("thead", { className: 'r-gridheader', children: jsxRuntime.jsx("tr", { className: "r-row", role: "row", children: columns.map((col, index) => {
|
|
23567
23582
|
return (renderHeaderCol(col, index));
|
|
23568
23583
|
}) }) }), jsxRuntime.jsx("tbody", { className: 'r-gridcontent', children: dataSource?.map((row, indexRow) => {
|
|
23569
23584
|
return (jsxRuntime.jsx("tr", { className: classNames$1('r-row', { 'last-row': indexRow === dataSource.length - 1 }, { 'fisrt-row': indexRow === 0 }), children: columns.map((col, indexCol) => {
|
|
@@ -30939,6 +30954,7 @@ function isShadowRoot(value) {
|
|
|
30939
30954
|
}
|
|
30940
30955
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
30941
30956
|
}
|
|
30957
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
30942
30958
|
function isOverflowElement(element) {
|
|
30943
30959
|
const {
|
|
30944
30960
|
overflow,
|
|
@@ -30946,27 +30962,32 @@ function isOverflowElement(element) {
|
|
|
30946
30962
|
overflowY,
|
|
30947
30963
|
display
|
|
30948
30964
|
} = getComputedStyle$1(element);
|
|
30949
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
30965
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
30950
30966
|
}
|
|
30967
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
30951
30968
|
function isTableElement(element) {
|
|
30952
|
-
return
|
|
30969
|
+
return tableElements.has(getNodeName(element));
|
|
30953
30970
|
}
|
|
30971
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
30954
30972
|
function isTopLayer(element) {
|
|
30955
|
-
return
|
|
30973
|
+
return topLayerSelectors.some(selector => {
|
|
30956
30974
|
try {
|
|
30957
30975
|
return element.matches(selector);
|
|
30958
|
-
} catch (
|
|
30976
|
+
} catch (_e) {
|
|
30959
30977
|
return false;
|
|
30960
30978
|
}
|
|
30961
30979
|
});
|
|
30962
30980
|
}
|
|
30981
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
30982
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
30983
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
30963
30984
|
function isContainingBlock(elementOrCss) {
|
|
30964
30985
|
const webkit = isWebKit();
|
|
30965
30986
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
30966
30987
|
|
|
30967
30988
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
30968
30989
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
30969
|
-
return
|
|
30990
|
+
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));
|
|
30970
30991
|
}
|
|
30971
30992
|
function getContainingBlock(element) {
|
|
30972
30993
|
let currentNode = getParentNode(element);
|
|
@@ -30984,8 +31005,9 @@ function isWebKit() {
|
|
|
30984
31005
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
30985
31006
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
30986
31007
|
}
|
|
31008
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
30987
31009
|
function isLastTraversableNode(node) {
|
|
30988
|
-
return
|
|
31010
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
30989
31011
|
}
|
|
30990
31012
|
function getComputedStyle$1(element) {
|
|
30991
31013
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -31092,8 +31114,9 @@ function getOppositeAxis(axis) {
|
|
|
31092
31114
|
function getAxisLength(axis) {
|
|
31093
31115
|
return axis === 'y' ? 'height' : 'width';
|
|
31094
31116
|
}
|
|
31117
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
31095
31118
|
function getSideAxis(placement) {
|
|
31096
|
-
return
|
|
31119
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
31097
31120
|
}
|
|
31098
31121
|
function getAlignmentAxis(placement) {
|
|
31099
31122
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -31118,19 +31141,19 @@ function getExpandedPlacements(placement) {
|
|
|
31118
31141
|
function getOppositeAlignmentPlacement(placement) {
|
|
31119
31142
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
31120
31143
|
}
|
|
31144
|
+
const lrPlacement = ['left', 'right'];
|
|
31145
|
+
const rlPlacement = ['right', 'left'];
|
|
31146
|
+
const tbPlacement = ['top', 'bottom'];
|
|
31147
|
+
const btPlacement = ['bottom', 'top'];
|
|
31121
31148
|
function getSideList(side, isStart, rtl) {
|
|
31122
|
-
const lr = ['left', 'right'];
|
|
31123
|
-
const rl = ['right', 'left'];
|
|
31124
|
-
const tb = ['top', 'bottom'];
|
|
31125
|
-
const bt = ['bottom', 'top'];
|
|
31126
31149
|
switch (side) {
|
|
31127
31150
|
case 'top':
|
|
31128
31151
|
case 'bottom':
|
|
31129
|
-
if (rtl) return isStart ?
|
|
31130
|
-
return isStart ?
|
|
31152
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
31153
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
31131
31154
|
case 'left':
|
|
31132
31155
|
case 'right':
|
|
31133
|
-
return isStart ?
|
|
31156
|
+
return isStart ? tbPlacement : btPlacement;
|
|
31134
31157
|
default:
|
|
31135
31158
|
return [];
|
|
31136
31159
|
}
|
|
@@ -31185,6 +31208,34 @@ function rectToClientRect(rect) {
|
|
|
31185
31208
|
};
|
|
31186
31209
|
}
|
|
31187
31210
|
|
|
31211
|
+
var isClient$1 = typeof document !== 'undefined';
|
|
31212
|
+
|
|
31213
|
+
var noop$1 = function noop() {};
|
|
31214
|
+
var index$1 = isClient$1 ? React$5.useLayoutEffect : noop$1;
|
|
31215
|
+
|
|
31216
|
+
// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379
|
|
31217
|
+
const SafeReact$1 = {
|
|
31218
|
+
...React__namespace
|
|
31219
|
+
};
|
|
31220
|
+
const useInsertionEffect = SafeReact$1.useInsertionEffect;
|
|
31221
|
+
const useSafeInsertionEffect = useInsertionEffect || (fn => fn());
|
|
31222
|
+
function useEffectEvent(callback) {
|
|
31223
|
+
const ref = React__namespace.useRef(() => {
|
|
31224
|
+
if (process.env.NODE_ENV !== "production") {
|
|
31225
|
+
throw new Error('Cannot call an event handler while rendering.');
|
|
31226
|
+
}
|
|
31227
|
+
});
|
|
31228
|
+
useSafeInsertionEffect(() => {
|
|
31229
|
+
ref.current = callback;
|
|
31230
|
+
});
|
|
31231
|
+
return React__namespace.useCallback(function () {
|
|
31232
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31233
|
+
args[_key] = arguments[_key];
|
|
31234
|
+
}
|
|
31235
|
+
return ref.current == null ? void 0 : ref.current(...args);
|
|
31236
|
+
}, []);
|
|
31237
|
+
}
|
|
31238
|
+
|
|
31188
31239
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
31189
31240
|
let {
|
|
31190
31241
|
reference,
|
|
@@ -31653,16 +31704,22 @@ const flip$2 = function (options) {
|
|
|
31653
31704
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
31654
31705
|
const nextPlacement = placements[nextIndex];
|
|
31655
31706
|
if (nextPlacement) {
|
|
31656
|
-
|
|
31657
|
-
|
|
31658
|
-
|
|
31659
|
-
|
|
31660
|
-
|
|
31661
|
-
|
|
31662
|
-
|
|
31663
|
-
|
|
31664
|
-
|
|
31665
|
-
|
|
31707
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
31708
|
+
if (!ignoreCrossAxisOverflow ||
|
|
31709
|
+
// We leave the current main axis only if every placement on that axis
|
|
31710
|
+
// overflows the main axis.
|
|
31711
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
31712
|
+
// Try next placement and re-run the lifecycle.
|
|
31713
|
+
return {
|
|
31714
|
+
data: {
|
|
31715
|
+
index: nextIndex,
|
|
31716
|
+
overflows: overflowsData
|
|
31717
|
+
},
|
|
31718
|
+
reset: {
|
|
31719
|
+
placement: nextPlacement
|
|
31720
|
+
}
|
|
31721
|
+
};
|
|
31722
|
+
}
|
|
31666
31723
|
}
|
|
31667
31724
|
|
|
31668
31725
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -31908,6 +31965,8 @@ const inline = function (options) {
|
|
|
31908
31965
|
};
|
|
31909
31966
|
};
|
|
31910
31967
|
|
|
31968
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
31969
|
+
|
|
31911
31970
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
31912
31971
|
// Derivable.
|
|
31913
31972
|
|
|
@@ -31921,7 +31980,7 @@ async function convertValueToCoords(state, options) {
|
|
|
31921
31980
|
const side = getSide(placement);
|
|
31922
31981
|
const alignment = getAlignment(placement);
|
|
31923
31982
|
const isVertical = getSideAxis(placement) === 'y';
|
|
31924
|
-
const mainAxisMulti =
|
|
31983
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
31925
31984
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
31926
31985
|
const rawValue = evaluate(options, state);
|
|
31927
31986
|
|
|
@@ -32121,7 +32180,7 @@ const limitShift = function (options) {
|
|
|
32121
32180
|
if (checkCrossAxis) {
|
|
32122
32181
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
32123
32182
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
32124
|
-
const isOriginSide =
|
|
32183
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
32125
32184
|
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);
|
|
32126
32185
|
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);
|
|
32127
32186
|
if (crossAxisCoord < limitMin) {
|
|
@@ -32464,6 +32523,7 @@ function getViewportRect(element, strategy) {
|
|
|
32464
32523
|
};
|
|
32465
32524
|
}
|
|
32466
32525
|
|
|
32526
|
+
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
32467
32527
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
32468
32528
|
function getInnerBoundingClientRect(element, strategy) {
|
|
32469
32529
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -32528,7 +32588,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
32528
32588
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
32529
32589
|
currentContainingBlockComputedStyle = null;
|
|
32530
32590
|
}
|
|
32531
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
32591
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
32532
32592
|
if (shouldDropCurrentNode) {
|
|
32533
32593
|
// Drop non-containing blocks.
|
|
32534
32594
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -32591,6 +32651,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
32591
32651
|
scrollTop: 0
|
|
32592
32652
|
};
|
|
32593
32653
|
const offsets = createCoords(0);
|
|
32654
|
+
|
|
32655
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
32656
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
32657
|
+
function setLeftRTLScrollbarOffset() {
|
|
32658
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
32659
|
+
}
|
|
32594
32660
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
32595
32661
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
32596
32662
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -32600,11 +32666,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
32600
32666
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
32601
32667
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
32602
32668
|
} else if (documentElement) {
|
|
32603
|
-
|
|
32604
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
32605
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
32669
|
+
setLeftRTLScrollbarOffset();
|
|
32606
32670
|
}
|
|
32607
32671
|
}
|
|
32672
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
32673
|
+
setLeftRTLScrollbarOffset();
|
|
32674
|
+
}
|
|
32608
32675
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
32609
32676
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
32610
32677
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -32781,7 +32848,7 @@ function observeMove(element, onMove) {
|
|
|
32781
32848
|
// Handle <iframe>s
|
|
32782
32849
|
root: root.ownerDocument
|
|
32783
32850
|
});
|
|
32784
|
-
} catch (
|
|
32851
|
+
} catch (_e) {
|
|
32785
32852
|
io = new IntersectionObserver(handleObserve, options);
|
|
32786
32853
|
}
|
|
32787
32854
|
io.observe(element);
|
|
@@ -32958,7 +33025,10 @@ const computePosition = (reference, floating, options) => {
|
|
|
32958
33025
|
});
|
|
32959
33026
|
};
|
|
32960
33027
|
|
|
32961
|
-
var
|
|
33028
|
+
var isClient = typeof document !== 'undefined';
|
|
33029
|
+
|
|
33030
|
+
var noop = function noop() {};
|
|
33031
|
+
var index = isClient ? React$5.useLayoutEffect : noop;
|
|
32962
33032
|
|
|
32963
33033
|
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
32964
33034
|
// functions
|
|
@@ -33025,7 +33095,7 @@ function roundByDPR(element, value) {
|
|
|
33025
33095
|
|
|
33026
33096
|
function useLatestRef(value) {
|
|
33027
33097
|
const ref = React__namespace.useRef(value);
|
|
33028
|
-
index
|
|
33098
|
+
index(() => {
|
|
33029
33099
|
ref.current = value;
|
|
33030
33100
|
});
|
|
33031
33101
|
return ref;
|
|
@@ -33116,7 +33186,7 @@ function useFloating$1(options) {
|
|
|
33116
33186
|
}
|
|
33117
33187
|
});
|
|
33118
33188
|
}, [latestMiddleware, placement, strategy, platformRef, openRef]);
|
|
33119
|
-
index
|
|
33189
|
+
index(() => {
|
|
33120
33190
|
if (open === false && dataRef.current.isPositioned) {
|
|
33121
33191
|
dataRef.current.isPositioned = false;
|
|
33122
33192
|
setData(data => ({
|
|
@@ -33126,13 +33196,13 @@ function useFloating$1(options) {
|
|
|
33126
33196
|
}
|
|
33127
33197
|
}, [open]);
|
|
33128
33198
|
const isMountedRef = React__namespace.useRef(false);
|
|
33129
|
-
index
|
|
33199
|
+
index(() => {
|
|
33130
33200
|
isMountedRef.current = true;
|
|
33131
33201
|
return () => {
|
|
33132
33202
|
isMountedRef.current = false;
|
|
33133
33203
|
};
|
|
33134
33204
|
}, []);
|
|
33135
|
-
index
|
|
33205
|
+
index(() => {
|
|
33136
33206
|
if (referenceEl) referenceRef.current = referenceEl;
|
|
33137
33207
|
if (floatingEl) floatingRef.current = floatingEl;
|
|
33138
33208
|
if (referenceEl && floatingEl) {
|
|
@@ -33264,27 +33334,6 @@ const SafeReact = {
|
|
|
33264
33334
|
...React__namespace
|
|
33265
33335
|
};
|
|
33266
33336
|
|
|
33267
|
-
const useInsertionEffect = SafeReact.useInsertionEffect;
|
|
33268
|
-
const useSafeInsertionEffect = useInsertionEffect || (fn => fn());
|
|
33269
|
-
function useEffectEvent(callback) {
|
|
33270
|
-
const ref = React__namespace.useRef(() => {
|
|
33271
|
-
if (process.env.NODE_ENV !== "production") {
|
|
33272
|
-
throw new Error('Cannot call an event handler while rendering.');
|
|
33273
|
-
}
|
|
33274
|
-
});
|
|
33275
|
-
useSafeInsertionEffect(() => {
|
|
33276
|
-
ref.current = callback;
|
|
33277
|
-
});
|
|
33278
|
-
return React__namespace.useCallback(function () {
|
|
33279
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33280
|
-
args[_key] = arguments[_key];
|
|
33281
|
-
}
|
|
33282
|
-
return ref.current == null ? void 0 : ref.current(...args);
|
|
33283
|
-
}, []);
|
|
33284
|
-
}
|
|
33285
|
-
|
|
33286
|
-
var index = typeof document !== 'undefined' ? React$5.useLayoutEffect : React$5.useEffect;
|
|
33287
|
-
|
|
33288
33337
|
let serverHandoffComplete = false;
|
|
33289
33338
|
let count = 0;
|
|
33290
33339
|
const genId = () => // Ensure the id is unique with multiple independent versions of Floating UI
|
|
@@ -33292,7 +33341,7 @@ const genId = () => // Ensure the id is unique with multiple independent version
|
|
|
33292
33341
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + count++;
|
|
33293
33342
|
function useFloatingId() {
|
|
33294
33343
|
const [id, setId] = React__namespace.useState(() => serverHandoffComplete ? genId() : undefined);
|
|
33295
|
-
index(() => {
|
|
33344
|
+
index$1(() => {
|
|
33296
33345
|
if (id == null) {
|
|
33297
33346
|
setId(genId());
|
|
33298
33347
|
}
|
|
@@ -33380,7 +33429,7 @@ const FloatingArrow = /*#__PURE__*/React__namespace.forwardRef(function Floating
|
|
|
33380
33429
|
const [isRTL, setIsRTL] = React__namespace.useState(false);
|
|
33381
33430
|
|
|
33382
33431
|
// https://github.com/floating-ui/floating-ui/issues/2932
|
|
33383
|
-
index(() => {
|
|
33432
|
+
index$1(() => {
|
|
33384
33433
|
if (!floating) return;
|
|
33385
33434
|
const isRTL = getComputedStyle$1(floating).direction === 'rtl';
|
|
33386
33435
|
if (isRTL) {
|
|
@@ -33457,19 +33506,22 @@ const FloatingArrow = /*#__PURE__*/React__namespace.forwardRef(function Floating
|
|
|
33457
33506
|
});
|
|
33458
33507
|
});
|
|
33459
33508
|
|
|
33460
|
-
function
|
|
33509
|
+
function createEventEmitter() {
|
|
33461
33510
|
const map = new Map();
|
|
33462
33511
|
return {
|
|
33463
33512
|
emit(event, data) {
|
|
33464
33513
|
var _map$get;
|
|
33465
|
-
(_map$get = map.get(event)) == null || _map$get.forEach(
|
|
33514
|
+
(_map$get = map.get(event)) == null || _map$get.forEach(listener => listener(data));
|
|
33466
33515
|
},
|
|
33467
33516
|
on(event, listener) {
|
|
33468
|
-
|
|
33517
|
+
if (!map.has(event)) {
|
|
33518
|
+
map.set(event, new Set());
|
|
33519
|
+
}
|
|
33520
|
+
map.get(event).add(listener);
|
|
33469
33521
|
},
|
|
33470
33522
|
off(event, listener) {
|
|
33471
33523
|
var _map$get2;
|
|
33472
|
-
|
|
33524
|
+
(_map$get2 = map.get(event)) == null || _map$get2.delete(listener);
|
|
33473
33525
|
}
|
|
33474
33526
|
};
|
|
33475
33527
|
}
|
|
@@ -33499,7 +33551,7 @@ function useFloatingRootContext(options) {
|
|
|
33499
33551
|
} = options;
|
|
33500
33552
|
const floatingId = useId();
|
|
33501
33553
|
const dataRef = React__namespace.useRef({});
|
|
33502
|
-
const [events] = React__namespace.useState(() =>
|
|
33554
|
+
const [events] = React__namespace.useState(() => createEventEmitter());
|
|
33503
33555
|
const nested = useFloatingParentNodeId() != null;
|
|
33504
33556
|
if (process.env.NODE_ENV !== "production") {
|
|
33505
33557
|
const optionDomReference = elementsProp.reference;
|
|
@@ -33564,7 +33616,7 @@ function useFloating(options) {
|
|
|
33564
33616
|
const domReference = optionDomReference || _domReference;
|
|
33565
33617
|
const domReferenceRef = React__namespace.useRef(null);
|
|
33566
33618
|
const tree = useFloatingTree();
|
|
33567
|
-
index(() => {
|
|
33619
|
+
index$1(() => {
|
|
33568
33620
|
if (domReference) {
|
|
33569
33621
|
domReferenceRef.current = domReference;
|
|
33570
33622
|
}
|
|
@@ -33581,6 +33633,7 @@ function useFloating(options) {
|
|
|
33581
33633
|
const setPositionReference = React__namespace.useCallback(node => {
|
|
33582
33634
|
const computedPositionReference = isElement(node) ? {
|
|
33583
33635
|
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
33636
|
+
getClientRects: () => node.getClientRects(),
|
|
33584
33637
|
contextElement: node
|
|
33585
33638
|
} : node;
|
|
33586
33639
|
// Store the positionReference in state if the DOM reference is specified externally via the
|
|
@@ -33621,7 +33674,7 @@ function useFloating(options) {
|
|
|
33621
33674
|
elements,
|
|
33622
33675
|
nodeId
|
|
33623
33676
|
}), [position, refs, elements, nodeId, rootContext]);
|
|
33624
|
-
index(() => {
|
|
33677
|
+
index$1(() => {
|
|
33625
33678
|
rootContext.dataRef.current.floatingContext = context;
|
|
33626
33679
|
const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId);
|
|
33627
33680
|
if (node) {
|
|
@@ -39977,15 +40030,9 @@ var cjs = {exports: {}};
|
|
|
39977
40030
|
|
|
39978
40031
|
var Draggable$1 = {};
|
|
39979
40032
|
|
|
39980
|
-
|
|
39981
|
-
|
|
39982
|
-
var clsx_m = /*#__PURE__*/Object.freeze({
|
|
39983
|
-
__proto__: null,
|
|
39984
|
-
clsx: clsx,
|
|
39985
|
-
'default': clsx
|
|
39986
|
-
});
|
|
40033
|
+
var clsx = {exports: {}};
|
|
39987
40034
|
|
|
39988
|
-
var
|
|
40035
|
+
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;
|
|
39989
40036
|
|
|
39990
40037
|
var domFns = {};
|
|
39991
40038
|
|
|
@@ -40017,7 +40064,7 @@ function int(a /*: string*/) /*: number*/{
|
|
|
40017
40064
|
}
|
|
40018
40065
|
function dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) /*: ?Error*/{
|
|
40019
40066
|
if (props[propName]) {
|
|
40020
|
-
return new Error(
|
|
40067
|
+
return new Error(`Invalid prop ${propName} passed to ${componentName} - do not set this, set it on the child.`);
|
|
40021
40068
|
}
|
|
40022
40069
|
}
|
|
40023
40070
|
|
|
@@ -40032,7 +40079,6 @@ getPrefix$1.default = void 0;
|
|
|
40032
40079
|
getPrefix$1.getPrefix = getPrefix;
|
|
40033
40080
|
const prefixes$1 = ['Moz', 'Webkit', 'O', 'ms'];
|
|
40034
40081
|
function getPrefix() /*: string*/{
|
|
40035
|
-
var _window$document;
|
|
40036
40082
|
let prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';
|
|
40037
40083
|
// Ensure we're running in an environment where there is actually a global
|
|
40038
40084
|
// `window` obj
|
|
@@ -40040,7 +40086,7 @@ function getPrefix() /*: string*/{
|
|
|
40040
40086
|
|
|
40041
40087
|
// If we're in a pseudo-browser server-side environment, this access
|
|
40042
40088
|
// path may not exist, so bail out if it doesn't.
|
|
40043
|
-
const style =
|
|
40089
|
+
const style = window.document?.documentElement?.style;
|
|
40044
40090
|
if (!style) return '';
|
|
40045
40091
|
if (prop in style) return '';
|
|
40046
40092
|
for (let i = 0; i < prefixes$1.length; i++) {
|
|
@@ -40049,10 +40095,10 @@ function getPrefix() /*: string*/{
|
|
|
40049
40095
|
return '';
|
|
40050
40096
|
}
|
|
40051
40097
|
function browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/{
|
|
40052
|
-
return prefix ?
|
|
40098
|
+
return prefix ? `${prefix}${kebabToTitleCase(prop)}` : prop;
|
|
40053
40099
|
}
|
|
40054
40100
|
function browserPrefixToStyle(prop /*: string*/, prefix /*: string*/) /*: string*/{
|
|
40055
|
-
return prefix ?
|
|
40101
|
+
return prefix ? `-${prefix.toLowerCase()}-${prop}` : prop;
|
|
40056
40102
|
}
|
|
40057
40103
|
function kebabToTitleCase(str /*: string*/) /*: string*/{
|
|
40058
40104
|
let out = '';
|
|
@@ -40095,11 +40141,10 @@ domFns.outerHeight = outerHeight;
|
|
|
40095
40141
|
domFns.outerWidth = outerWidth;
|
|
40096
40142
|
domFns.removeClassName = removeClassName;
|
|
40097
40143
|
domFns.removeEvent = removeEvent;
|
|
40098
|
-
domFns.
|
|
40144
|
+
domFns.scheduleRemoveUserSelectStyles = scheduleRemoveUserSelectStyles;
|
|
40099
40145
|
var _shims$2 = shims;
|
|
40100
40146
|
var _getPrefix = _interopRequireWildcard$3(getPrefix$1);
|
|
40101
|
-
function
|
|
40102
|
-
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; }
|
|
40147
|
+
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); }
|
|
40103
40148
|
/*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/
|
|
40104
40149
|
let matchesSelectorFunc = '';
|
|
40105
40150
|
function matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/{
|
|
@@ -40225,11 +40270,11 @@ function getTranslation(_ref /*:: */, positionOffset /*: PositionOffsetControlPo
|
|
|
40225
40270
|
x,
|
|
40226
40271
|
y
|
|
40227
40272
|
} /*: ControlPosition*/ = _ref /*: ControlPosition*/;
|
|
40228
|
-
let translation =
|
|
40273
|
+
let translation = `translate(${x}${unitSuffix},${y}${unitSuffix})`;
|
|
40229
40274
|
if (positionOffset) {
|
|
40230
|
-
const defaultX =
|
|
40231
|
-
const defaultY =
|
|
40232
|
-
translation =
|
|
40275
|
+
const defaultX = `${typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix}`;
|
|
40276
|
+
const defaultY = `${typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix}`;
|
|
40277
|
+
translation = `translate(${defaultX}, ${defaultY})` + translation;
|
|
40233
40278
|
}
|
|
40234
40279
|
return translation;
|
|
40235
40280
|
}
|
|
@@ -40259,6 +40304,16 @@ function addUserSelectStyles(doc /*: ?Document*/) {
|
|
|
40259
40304
|
}
|
|
40260
40305
|
if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');
|
|
40261
40306
|
}
|
|
40307
|
+
function scheduleRemoveUserSelectStyles(doc /*: ?Document*/) {
|
|
40308
|
+
// Prevent a possible "forced reflow"
|
|
40309
|
+
if (window.requestAnimationFrame) {
|
|
40310
|
+
window.requestAnimationFrame(() => {
|
|
40311
|
+
removeUserSelectStyles(doc);
|
|
40312
|
+
});
|
|
40313
|
+
} else {
|
|
40314
|
+
removeUserSelectStyles(doc);
|
|
40315
|
+
}
|
|
40316
|
+
}
|
|
40262
40317
|
function removeUserSelectStyles(doc /*: ?Document*/) {
|
|
40263
40318
|
if (!doc) return;
|
|
40264
40319
|
try {
|
|
@@ -40283,8 +40338,8 @@ function addClassName(el /*: HTMLElement*/, className /*: string*/) {
|
|
|
40283
40338
|
if (el.classList) {
|
|
40284
40339
|
el.classList.add(className);
|
|
40285
40340
|
} else {
|
|
40286
|
-
if (!el.className.match(new RegExp(
|
|
40287
|
-
el.className +=
|
|
40341
|
+
if (!el.className.match(new RegExp(`(?:^|\\s)${className}(?!\\S)`))) {
|
|
40342
|
+
el.className += ` ${className}`;
|
|
40288
40343
|
}
|
|
40289
40344
|
}
|
|
40290
40345
|
}
|
|
@@ -40292,7 +40347,7 @@ function removeClassName(el /*: HTMLElement*/, className /*: string*/) {
|
|
|
40292
40347
|
if (el.classList) {
|
|
40293
40348
|
el.classList.remove(className);
|
|
40294
40349
|
} else {
|
|
40295
|
-
el.className = el.className.replace(new RegExp(
|
|
40350
|
+
el.className = el.className.replace(new RegExp(`(?:^|\\s)${className}(?!\\S)`, 'g'), '');
|
|
40296
40351
|
}
|
|
40297
40352
|
}
|
|
40298
40353
|
|
|
@@ -40332,7 +40387,12 @@ function getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: numbe
|
|
|
40332
40387
|
if (bounds === 'parent') {
|
|
40333
40388
|
boundNode = node.parentNode;
|
|
40334
40389
|
} else {
|
|
40335
|
-
|
|
40390
|
+
// Flow assigns the wrong return type (Node) for getRootNode(),
|
|
40391
|
+
// so we cast it to one of the correct types (Element).
|
|
40392
|
+
// The others are Document and ShadowRoot.
|
|
40393
|
+
// All three implement querySelector() so it's safe to call.
|
|
40394
|
+
const rootNode = ((node.getRootNode() /*: any*/) /*: Element*/);
|
|
40395
|
+
boundNode = rootNode.querySelector(bounds);
|
|
40336
40396
|
}
|
|
40337
40397
|
if (!(boundNode instanceof ownerWindow.HTMLElement)) {
|
|
40338
40398
|
throw new Error('Bounds selector "' + bounds + '" could not find an element.');
|
|
@@ -40464,12 +40524,11 @@ var _domFns = domFns;
|
|
|
40464
40524
|
var _positionFns = positionFns;
|
|
40465
40525
|
var _shims = shims;
|
|
40466
40526
|
var _log = _interopRequireDefault$4(log$1);
|
|
40467
|
-
function _interopRequireDefault$4(
|
|
40468
|
-
function
|
|
40469
|
-
function
|
|
40470
|
-
function
|
|
40471
|
-
function
|
|
40472
|
-
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); }
|
|
40527
|
+
function _interopRequireDefault$4(e) { return e && e.__esModule ? e : { default: e }; }
|
|
40528
|
+
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); }
|
|
40529
|
+
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; }
|
|
40530
|
+
function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
40531
|
+
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); }
|
|
40473
40532
|
/*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/
|
|
40474
40533
|
/*:: import type {Element as ReactElement} from 'react';*/
|
|
40475
40534
|
// Simple abstraction for dragging events names.
|
|
@@ -40499,6 +40558,7 @@ let dragEventFor = eventsFor.mouse;
|
|
|
40499
40558
|
/*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/
|
|
40500
40559
|
/*:: export type DraggableCoreDefaultProps = {
|
|
40501
40560
|
allowAnyClick: boolean,
|
|
40561
|
+
allowMobileScroll: boolean,
|
|
40502
40562
|
disabled: boolean,
|
|
40503
40563
|
enableUserSelectHack: boolean,
|
|
40504
40564
|
onStart: DraggableEventHandler,
|
|
@@ -40555,7 +40615,7 @@ class DraggableCore$1 extends React$2.Component /*:: <DraggableCoreProps>*/{
|
|
|
40555
40615
|
|
|
40556
40616
|
// Prevent scrolling on mobile devices, like ipad/iphone.
|
|
40557
40617
|
// Important that this is after handle/cancel.
|
|
40558
|
-
if (e.type === 'touchstart') e.preventDefault();
|
|
40618
|
+
if (e.type === 'touchstart' && !this.props.allowMobileScroll) e.preventDefault();
|
|
40559
40619
|
|
|
40560
40620
|
// Set touch identifier in component state if this is a touch event. This allows us to
|
|
40561
40621
|
// distinguish between individual touches on multitouch screens by identifying which
|
|
@@ -40660,7 +40720,7 @@ class DraggableCore$1 extends React$2.Component /*:: <DraggableCoreProps>*/{
|
|
|
40660
40720
|
const thisNode = this.findDOMNode();
|
|
40661
40721
|
if (thisNode) {
|
|
40662
40722
|
// Remove user-select hack
|
|
40663
|
-
if (this.props.enableUserSelectHack) (0, _domFns.
|
|
40723
|
+
if (this.props.enableUserSelectHack) (0, _domFns.scheduleRemoveUserSelectStyles)(thisNode.ownerDocument);
|
|
40664
40724
|
}
|
|
40665
40725
|
(0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent);
|
|
40666
40726
|
|
|
@@ -40723,15 +40783,14 @@ class DraggableCore$1 extends React$2.Component /*:: <DraggableCoreProps>*/{
|
|
|
40723
40783
|
(0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
|
|
40724
40784
|
passive: false
|
|
40725
40785
|
});
|
|
40726
|
-
if (this.props.enableUserSelectHack) (0, _domFns.
|
|
40786
|
+
if (this.props.enableUserSelectHack) (0, _domFns.scheduleRemoveUserSelectStyles)(ownerDocument);
|
|
40727
40787
|
}
|
|
40728
40788
|
}
|
|
40729
40789
|
|
|
40730
40790
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
40731
40791
|
// the underlying DOM node ourselves. See the README for more information.
|
|
40732
40792
|
findDOMNode() /*: ?HTMLElement*/{
|
|
40733
|
-
|
|
40734
|
-
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);
|
|
40793
|
+
return this.props?.nodeRef ? this.props?.nodeRef?.current : _reactDom.default.findDOMNode(this);
|
|
40735
40794
|
}
|
|
40736
40795
|
render() /*: React.Element<any>*/{
|
|
40737
40796
|
// Reuse the child provided
|
|
@@ -40758,6 +40817,14 @@ _defineProperty$3(DraggableCore$1, "propTypes", {
|
|
|
40758
40817
|
* Defaults to `false`.
|
|
40759
40818
|
*/
|
|
40760
40819
|
allowAnyClick: _propTypes$3.default.bool,
|
|
40820
|
+
/**
|
|
40821
|
+
* `allowMobileScroll` turns off cancellation of the 'touchstart' event
|
|
40822
|
+
* on mobile devices. Only enable this if you are having trouble with click
|
|
40823
|
+
* events. Prefer using 'handle' / 'cancel' instead.
|
|
40824
|
+
*
|
|
40825
|
+
* Defaults to `false`.
|
|
40826
|
+
*/
|
|
40827
|
+
allowMobileScroll: _propTypes$3.default.bool,
|
|
40761
40828
|
children: _propTypes$3.default.node.isRequired,
|
|
40762
40829
|
/**
|
|
40763
40830
|
* `disabled`, if true, stops the <Draggable> from dragging. All handlers,
|
|
@@ -40877,6 +40944,7 @@ _defineProperty$3(DraggableCore$1, "propTypes", {
|
|
|
40877
40944
|
_defineProperty$3(DraggableCore$1, "defaultProps", {
|
|
40878
40945
|
allowAnyClick: false,
|
|
40879
40946
|
// by default only accept left click
|
|
40947
|
+
allowMobileScroll: false,
|
|
40880
40948
|
disabled: false,
|
|
40881
40949
|
enableUserSelectHack: true,
|
|
40882
40950
|
onStart: function () {},
|
|
@@ -40901,19 +40969,18 @@ exports.default = void 0;
|
|
|
40901
40969
|
var React = _interopRequireWildcard(React__default["default"]);
|
|
40902
40970
|
var _propTypes = _interopRequireDefault(propTypes$1.exports);
|
|
40903
40971
|
var _reactDom = _interopRequireDefault(ReactDOM__default["default"]);
|
|
40904
|
-
var _clsx =
|
|
40972
|
+
var _clsx = clsx.exports;
|
|
40905
40973
|
var _domFns = domFns;
|
|
40906
40974
|
var _positionFns = positionFns;
|
|
40907
40975
|
var _shims = shims;
|
|
40908
40976
|
var _DraggableCore = _interopRequireDefault(DraggableCore$2);
|
|
40909
40977
|
var _log = _interopRequireDefault(log$1);
|
|
40910
|
-
function _interopRequireDefault(
|
|
40911
|
-
function
|
|
40912
|
-
function
|
|
40913
|
-
function
|
|
40914
|
-
function
|
|
40915
|
-
function
|
|
40916
|
-
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';*/
|
|
40978
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
40979
|
+
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); }
|
|
40980
|
+
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); }
|
|
40981
|
+
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; }
|
|
40982
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
40983
|
+
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';*/
|
|
40917
40984
|
/*:: import type {Bounds, DraggableEventHandler} from './utils/types';*/
|
|
40918
40985
|
/*:: import type {Element as ReactElement} from 'react';*/
|
|
40919
40986
|
/*:: type DraggableState = {
|
|
@@ -41086,16 +41153,17 @@ class Draggable extends React.Component /*:: <DraggableProps, DraggableState>*/{
|
|
|
41086
41153
|
}
|
|
41087
41154
|
}
|
|
41088
41155
|
componentWillUnmount() {
|
|
41089
|
-
this.
|
|
41090
|
-
|
|
41091
|
-
|
|
41156
|
+
if (this.state.dragging) {
|
|
41157
|
+
this.setState({
|
|
41158
|
+
dragging: false
|
|
41159
|
+
}); // prevents invariant if unmounted while dragging
|
|
41160
|
+
}
|
|
41092
41161
|
}
|
|
41093
41162
|
|
|
41094
41163
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
41095
41164
|
// the underlying DOM node ourselves. See the README for more information.
|
|
41096
41165
|
findDOMNode() /*: ?HTMLElement*/{
|
|
41097
|
-
|
|
41098
|
-
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);
|
|
41166
|
+
return this.props?.nodeRef?.current ?? _reactDom.default.findDOMNode(this);
|
|
41099
41167
|
}
|
|
41100
41168
|
render() /*: ReactElement<any>*/{
|
|
41101
41169
|
const {
|
|
@@ -41137,7 +41205,7 @@ class Draggable extends React.Component /*:: <DraggableProps, DraggableState>*/{
|
|
|
41137
41205
|
}
|
|
41138
41206
|
|
|
41139
41207
|
// Mark with class while dragging
|
|
41140
|
-
const className = (0, _clsx.
|
|
41208
|
+
const className = (0, _clsx.clsx)(children.props.className || '', defaultClassName, {
|
|
41141
41209
|
[defaultClassNameDragging]: this.state.dragging,
|
|
41142
41210
|
[defaultClassNameDragged]: this.state.dragged
|
|
41143
41211
|
});
|
|
@@ -43264,7 +43332,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
|
|
|
43264
43332
|
const [datePart, timePart] = stringData.split(' ');
|
|
43265
43333
|
const [day, month, year] = datePart.split('/');
|
|
43266
43334
|
const [hour, minute] = timePart.split(':');
|
|
43267
|
-
const date = new Date(year, month - 1, day, hour, minute);
|
|
43335
|
+
const date = new Date(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute));
|
|
43268
43336
|
if (!isNaN(date.getTime())) {
|
|
43269
43337
|
if (column.onPaste) {
|
|
43270
43338
|
dataRow[column.field] = column.onPaste(dataRow, date);
|
|
@@ -43281,7 +43349,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
|
|
|
43281
43349
|
}
|
|
43282
43350
|
}
|
|
43283
43351
|
else if (column.type === 'numeric') {
|
|
43284
|
-
const number = Number(stringData);
|
|
43352
|
+
const number = Number(stringData.replaceAll(formatSetting?.thousandSeparator ?? '.', '').replaceAll(formatSetting?.decimalSeparator ?? ',', '.'));
|
|
43285
43353
|
if (!isNaN(number)) {
|
|
43286
43354
|
if (column.onPaste) {
|
|
43287
43355
|
dataRow[column.field] = column.onPaste(dataRow, number);
|
|
@@ -65510,6 +65578,89 @@ const ImportExcelComponent = (props) => {
|
|
|
65510
65578
|
] }) }));
|
|
65511
65579
|
};
|
|
65512
65580
|
|
|
65581
|
+
const RenderContentCol = (props) => {
|
|
65582
|
+
const { col, indexCol, indexRow, isSelected, row, formatSetting, idTable, fisrtObjWidthFixRight, lastObjWidthFixLeft, objWidthFixLeft, objWidthFixRight, selectedRows, selectEnable, setSelectedRows, handleCommandClick, fieldKey, isMulti } = props;
|
|
65583
|
+
const RenderElement = () => {
|
|
65584
|
+
if (col.type === 'command' && !col.field) {
|
|
65585
|
+
return jsxRuntime.jsx("div", { className: "r-rowcell-div command", children: jsxRuntime.jsx(CommandElement, { commandItems: col.commandItems ?? [], handleCommandClick: handleCommandClick, indexRow: indexRow, rowData: row }) });
|
|
65586
|
+
}
|
|
65587
|
+
else if (col.type === '#' && !col.field) {
|
|
65588
|
+
jsxRuntime.jsx("div", { className: "r-rowcell-div", children: indexRow + 1 });
|
|
65589
|
+
}
|
|
65590
|
+
else if (col.type === 'checkbox' && !col.field) {
|
|
65591
|
+
return (jsxRuntime.jsx("div", { className: "r-rowcell-div cursor-pointer", style: { alignItems: 'center' }, onClick: (e) => {
|
|
65592
|
+
if (selectEnable) {
|
|
65593
|
+
const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
|
|
65594
|
+
if (index > -1) {
|
|
65595
|
+
if (isMulti) {
|
|
65596
|
+
selectedRows?.splice(index, 1);
|
|
65597
|
+
setSelectedRows([...selectedRows]);
|
|
65598
|
+
}
|
|
65599
|
+
else {
|
|
65600
|
+
setSelectedRows([]);
|
|
65601
|
+
}
|
|
65602
|
+
}
|
|
65603
|
+
else {
|
|
65604
|
+
if (isMulti) {
|
|
65605
|
+
setSelectedRows([...selectedRows, row]);
|
|
65606
|
+
}
|
|
65607
|
+
else {
|
|
65608
|
+
setSelectedRows([row]);
|
|
65609
|
+
}
|
|
65610
|
+
}
|
|
65611
|
+
e.stopPropagation();
|
|
65612
|
+
}
|
|
65613
|
+
}, children: jsxRuntime.jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", style: { textAlign: col.textAlign ?? 'center' } }) }));
|
|
65614
|
+
}
|
|
65615
|
+
else {
|
|
65616
|
+
let value = row[col.field];
|
|
65617
|
+
if (col.type === 'numeric') {
|
|
65618
|
+
value = formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false) ?? 0;
|
|
65619
|
+
}
|
|
65620
|
+
else if (col.type === 'date') {
|
|
65621
|
+
value = value ? formatDateTime(value, formatSetting?.dateFormat) : '';
|
|
65622
|
+
}
|
|
65623
|
+
else if (col.type === 'datetime') {
|
|
65624
|
+
value = value ? formatDateTime(value, formatSetting?.dateFormat ?? 'DD/MM/yyyy HH:mm') : '';
|
|
65625
|
+
}
|
|
65626
|
+
if (col.template) {
|
|
65627
|
+
value = col.template(row, indexRow) ?? '';
|
|
65628
|
+
}
|
|
65629
|
+
return (jsxRuntime.jsx("div", { className: classNames$1('r-rowcell-div'), children: jsxRuntime.jsxs("div", { className: classNames$1('r-rowcell-content'), style: {
|
|
65630
|
+
textAlign: col.textAlign ? col.textAlign : 'left'
|
|
65631
|
+
}, children: [jsxRuntime.jsx("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxRuntime.jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) }), col.haveToolTip && jsxRuntime.jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxRuntime.jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) })] }) }));
|
|
65632
|
+
}
|
|
65633
|
+
};
|
|
65634
|
+
return (col.visible !== false && jsxRuntime.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: {
|
|
65635
|
+
left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
|
|
65636
|
+
right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined
|
|
65637
|
+
}, onClick: (e) => {
|
|
65638
|
+
if (e.target.nodeName === 'DIV' || e.target.nodeName === 'TD') {
|
|
65639
|
+
if (selectEnable) {
|
|
65640
|
+
const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
|
|
65641
|
+
if (index > -1) {
|
|
65642
|
+
if (isMulti) {
|
|
65643
|
+
selectedRows?.splice(index, 1);
|
|
65644
|
+
setSelectedRows([...selectedRows]);
|
|
65645
|
+
}
|
|
65646
|
+
else {
|
|
65647
|
+
setSelectedRows([]);
|
|
65648
|
+
}
|
|
65649
|
+
}
|
|
65650
|
+
else {
|
|
65651
|
+
if (isMulti) {
|
|
65652
|
+
setSelectedRows([...selectedRows, row]);
|
|
65653
|
+
}
|
|
65654
|
+
else {
|
|
65655
|
+
setSelectedRows([row]);
|
|
65656
|
+
}
|
|
65657
|
+
}
|
|
65658
|
+
}
|
|
65659
|
+
e.stopPropagation();
|
|
65660
|
+
}
|
|
65661
|
+
}, children: RenderElement() }, `col-${indexRow}-${indexCol}`));
|
|
65662
|
+
};
|
|
65663
|
+
|
|
65513
65664
|
const HeaderTableCol = (props) => {
|
|
65514
65665
|
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;
|
|
65515
65666
|
const { t } = reactI18next.useTranslation();
|
|
@@ -65652,89 +65803,6 @@ const RenderFilterElement = ({ filter, optionsFilter, formatSetting, filterBy, s
|
|
|
65652
65803
|
}, children: t('Clear') })] })] }));
|
|
65653
65804
|
};
|
|
65654
65805
|
|
|
65655
|
-
const RenderContentCol = (props) => {
|
|
65656
|
-
const { col, indexCol, indexRow, isSelected, row, formatSetting, idTable, fisrtObjWidthFixRight, lastObjWidthFixLeft, objWidthFixLeft, objWidthFixRight, selectedRows, selectEnable, setSelectedRows, handleCommandClick, fieldKey, isMulti } = props;
|
|
65657
|
-
const RenderElement = () => {
|
|
65658
|
-
if (col.type === 'command' && !col.field) {
|
|
65659
|
-
return jsxRuntime.jsx("div", { className: "r-rowcell-div command", children: jsxRuntime.jsx(CommandElement, { commandItems: col.commandItems ?? [], handleCommandClick: handleCommandClick, indexRow: indexRow, rowData: row }) });
|
|
65660
|
-
}
|
|
65661
|
-
else if (col.type === '#' && !col.field) {
|
|
65662
|
-
jsxRuntime.jsx("div", { className: "r-rowcell-div", children: indexRow + 1 });
|
|
65663
|
-
}
|
|
65664
|
-
else if (col.type === 'checkbox' && !col.field) {
|
|
65665
|
-
return (jsxRuntime.jsx("div", { className: "r-rowcell-div cursor-pointer", style: { alignItems: 'center' }, onClick: (e) => {
|
|
65666
|
-
if (selectEnable) {
|
|
65667
|
-
const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
|
|
65668
|
-
if (index > -1) {
|
|
65669
|
-
if (isMulti) {
|
|
65670
|
-
selectedRows?.splice(index, 1);
|
|
65671
|
-
setSelectedRows([...selectedRows]);
|
|
65672
|
-
}
|
|
65673
|
-
else {
|
|
65674
|
-
setSelectedRows([]);
|
|
65675
|
-
}
|
|
65676
|
-
}
|
|
65677
|
-
else {
|
|
65678
|
-
if (isMulti) {
|
|
65679
|
-
setSelectedRows([...selectedRows, row]);
|
|
65680
|
-
}
|
|
65681
|
-
else {
|
|
65682
|
-
setSelectedRows([row]);
|
|
65683
|
-
}
|
|
65684
|
-
}
|
|
65685
|
-
e.stopPropagation();
|
|
65686
|
-
}
|
|
65687
|
-
}, children: jsxRuntime.jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", style: { textAlign: col.textAlign ?? 'center' } }) }));
|
|
65688
|
-
}
|
|
65689
|
-
else {
|
|
65690
|
-
let value = row[col.field];
|
|
65691
|
-
if (col.type === 'numeric') {
|
|
65692
|
-
value = formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false) ?? 0;
|
|
65693
|
-
}
|
|
65694
|
-
else if (col.type === 'date') {
|
|
65695
|
-
value = value ? formatDateTime(value, formatSetting?.dateFormat) : '';
|
|
65696
|
-
}
|
|
65697
|
-
else if (col.type === 'datetime') {
|
|
65698
|
-
value = value ? formatDateTime(value, formatSetting?.dateFormat ?? 'DD/MM/yyyy HH:mm') : '';
|
|
65699
|
-
}
|
|
65700
|
-
if (col.template) {
|
|
65701
|
-
value = col.template(row, indexRow) ?? '';
|
|
65702
|
-
}
|
|
65703
|
-
return (jsxRuntime.jsx("div", { className: classNames$1('r-rowcell-div'), children: jsxRuntime.jsxs("div", { className: classNames$1('r-rowcell-content'), style: {
|
|
65704
|
-
textAlign: col.textAlign ? col.textAlign : 'left'
|
|
65705
|
-
}, children: [jsxRuntime.jsx("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxRuntime.jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) }), col.haveToolTip && jsxRuntime.jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxRuntime.jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) })] }) }));
|
|
65706
|
-
}
|
|
65707
|
-
};
|
|
65708
|
-
return (col.visible !== false && jsxRuntime.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: {
|
|
65709
|
-
left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
|
|
65710
|
-
right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined
|
|
65711
|
-
}, onClick: (e) => {
|
|
65712
|
-
if (e.target.nodeName === 'DIV' || e.target.nodeName === 'TD') {
|
|
65713
|
-
if (selectEnable) {
|
|
65714
|
-
const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
|
|
65715
|
-
if (index > -1) {
|
|
65716
|
-
if (isMulti) {
|
|
65717
|
-
selectedRows?.splice(index, 1);
|
|
65718
|
-
setSelectedRows([...selectedRows]);
|
|
65719
|
-
}
|
|
65720
|
-
else {
|
|
65721
|
-
setSelectedRows([]);
|
|
65722
|
-
}
|
|
65723
|
-
}
|
|
65724
|
-
else {
|
|
65725
|
-
if (isMulti) {
|
|
65726
|
-
setSelectedRows([...selectedRows, row]);
|
|
65727
|
-
}
|
|
65728
|
-
else {
|
|
65729
|
-
setSelectedRows([row]);
|
|
65730
|
-
}
|
|
65731
|
-
}
|
|
65732
|
-
}
|
|
65733
|
-
e.stopPropagation();
|
|
65734
|
-
}
|
|
65735
|
-
}, children: RenderElement() }, `col-${indexRow}-${indexCol}`));
|
|
65736
|
-
};
|
|
65737
|
-
|
|
65738
65806
|
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 }) => {
|
|
65739
65807
|
const { t } = reactI18next.useTranslation();
|
|
65740
65808
|
const gridRef = React$5.useRef(null);
|
|
@@ -65960,7 +66028,7 @@ const TableView = ({ idTable, dataSource, rowHeight = 33, height = 400, columns,
|
|
|
65960
66028
|
}
|
|
65961
66029
|
}
|
|
65962
66030
|
}, [selectedItem]);
|
|
65963
|
-
return (jsxRuntime.jsxs("div", { className: "
|
|
66031
|
+
return (jsxRuntime.jsxs("div", { className: "r-table-edit r-virtualized-table", children: [jsxRuntime.jsxs("div", { className: 'r-grid', children: [toolbarSetting?.showTopToolbar && jsxRuntime.jsx(RenderToolbarTop, { toolbarTopOption: toolbarTopOption }), jsxRuntime.jsxs("div", { ref: gridRef, className: "r-gridtable", onScroll: handleScroll, style: { height: `${height ? `${height}px` : 'auto'}` }, children: [jsxRuntime.jsxs("table", { role: "presentation", style: { width: '100%' }, children: [jsxRuntime.jsx(RenderColGroup, { contentColumns: flatVisble }), jsxRuntime.jsx("thead", { className: 'r-gridheader', role: "rowgroup", children: headerColumns.map((rowColumn, indexParent) => (jsxRuntime.jsx("tr", { className: "r-row", role: "row", children: rowColumn.map((column, indexColumn) => (jsxRuntime.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) => {
|
|
65964
66032
|
setFilterBy([...val]);
|
|
65965
66033
|
if (changeFilter) {
|
|
65966
66034
|
changeFilter(val);
|