sweetalert2 11.6.1 → 11.6.3
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/README.md +6 -4
- package/dist/sweetalert2.all.js +178 -121
- package/dist/sweetalert2.all.min.js +6 -2
- package/dist/sweetalert2.css +2 -7
- package/dist/sweetalert2.js +177 -119
- package/dist/sweetalert2.min.css +1 -1
- package/dist/sweetalert2.min.js +5 -1
- package/package.json +10 -20
- package/src/SweetAlert.js +1 -1
- package/src/instanceMethods/getInput.js +2 -0
package/dist/sweetalert2.all.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sweetalert2 v11.6.
|
|
2
|
+
* sweetalert2 v11.6.3
|
|
3
3
|
* Released under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
7
7
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
8
|
-
(global = global || self, global.Sweetalert2 = factory());
|
|
9
|
-
}(this, function () { 'use strict';
|
|
8
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Sweetalert2 = factory());
|
|
9
|
+
})(this, (function () { 'use strict';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* This module contains `WeakMap`s for each effectively-"private property" that a `Swal` has.
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
* @param {string | Array} message
|
|
74
74
|
*/
|
|
75
75
|
const warn = message => {
|
|
76
|
-
console.warn(
|
|
76
|
+
console.warn(`${consolePrefix} ${typeof message === 'object' ? message.join(' ') : message}`);
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
* @param {string} message
|
|
83
83
|
*/
|
|
84
84
|
const error = message => {
|
|
85
|
-
console.error(
|
|
85
|
+
console.error(`${consolePrefix} ${message}`);
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
/**
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
* @param {string} useInstead
|
|
113
113
|
*/
|
|
114
114
|
const warnAboutDeprecation = (deprecatedParam, useInstead) => {
|
|
115
|
-
warnOnce("
|
|
115
|
+
warnOnce(`"${deprecatedParam}" is deprecated and will be removed in the next major release. Please use "${useInstead}" instead.`);
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
*
|
|
148
148
|
* @returns {HTMLElement | null}
|
|
149
149
|
*/
|
|
150
|
-
const getContainer = () => document.body.querySelector(
|
|
150
|
+
const getContainer = () => document.body.querySelector(`.${swalClasses.container}`);
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @param {string} selectorString
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
* @returns {HTMLElement | null}
|
|
164
164
|
*/
|
|
165
165
|
const elementByClass = className => {
|
|
166
|
-
return elementBySelector(
|
|
166
|
+
return elementBySelector(`.${className}`);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
/**
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
/**
|
|
200
200
|
* @returns {HTMLElement | null}
|
|
201
201
|
*/
|
|
202
|
-
const getProgressSteps = () => elementByClass(swalClasses['progress-steps']);
|
|
202
|
+
const getProgressSteps$1 = () => elementByClass(swalClasses['progress-steps']);
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* @returns {HTMLElement | null}
|
|
@@ -209,12 +209,12 @@
|
|
|
209
209
|
/**
|
|
210
210
|
* @returns {HTMLElement | null}
|
|
211
211
|
*/
|
|
212
|
-
const getConfirmButton = () => elementBySelector(
|
|
212
|
+
const getConfirmButton = () => elementBySelector(`.${swalClasses.actions} .${swalClasses.confirm}`);
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* @returns {HTMLElement | null}
|
|
216
216
|
*/
|
|
217
|
-
const getDenyButton = () => elementBySelector(
|
|
217
|
+
const getDenyButton = () => elementBySelector(`.${swalClasses.actions} .${swalClasses.deny}`);
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* @returns {HTMLElement | null}
|
|
@@ -224,12 +224,12 @@
|
|
|
224
224
|
/**
|
|
225
225
|
* @returns {HTMLElement | null}
|
|
226
226
|
*/
|
|
227
|
-
const getLoader = () => elementBySelector(
|
|
227
|
+
const getLoader = () => elementBySelector(`.${swalClasses.loader}`);
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* @returns {HTMLElement | null}
|
|
231
231
|
*/
|
|
232
|
-
const getCancelButton = () => elementBySelector(
|
|
232
|
+
const getCancelButton = () => elementBySelector(`.${swalClasses.actions} .${swalClasses.cancel}`);
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* @returns {HTMLElement | null}
|
|
@@ -252,7 +252,22 @@
|
|
|
252
252
|
const getCloseButton = () => elementByClass(swalClasses.close);
|
|
253
253
|
|
|
254
254
|
// https://github.com/jkup/focusable/blob/master/index.js
|
|
255
|
-
const focusable =
|
|
255
|
+
const focusable = `
|
|
256
|
+
a[href],
|
|
257
|
+
area[href],
|
|
258
|
+
input:not([disabled]),
|
|
259
|
+
select:not([disabled]),
|
|
260
|
+
textarea:not([disabled]),
|
|
261
|
+
button:not([disabled]),
|
|
262
|
+
iframe,
|
|
263
|
+
object,
|
|
264
|
+
embed,
|
|
265
|
+
[tabindex="0"],
|
|
266
|
+
[contenteditable],
|
|
267
|
+
audio[controls],
|
|
268
|
+
video[controls],
|
|
269
|
+
summary
|
|
270
|
+
`;
|
|
256
271
|
/**
|
|
257
272
|
* @returns {HTMLElement[]}
|
|
258
273
|
*/
|
|
@@ -270,7 +285,7 @@
|
|
|
270
285
|
return 0;
|
|
271
286
|
});
|
|
272
287
|
const otherFocusableElements = Array.from(getPopup().querySelectorAll(focusable)).filter(el => el.getAttribute('tabindex') !== '-1');
|
|
273
|
-
return uniqueArray(focusableElementsWithTabindex.concat(otherFocusableElements)).filter(el => isVisible(el));
|
|
288
|
+
return uniqueArray(focusableElementsWithTabindex.concat(otherFocusableElements)).filter(el => isVisible$1(el));
|
|
274
289
|
};
|
|
275
290
|
|
|
276
291
|
/**
|
|
@@ -310,7 +325,7 @@
|
|
|
310
325
|
elem.textContent = '';
|
|
311
326
|
if (html) {
|
|
312
327
|
const parser = new DOMParser();
|
|
313
|
-
const parsed = parser.parseFromString(html,
|
|
328
|
+
const parsed = parser.parseFromString(html, `text/html`);
|
|
314
329
|
Array.from(parsed.querySelector('head').childNodes).forEach(child => {
|
|
315
330
|
elem.appendChild(child);
|
|
316
331
|
});
|
|
@@ -363,7 +378,7 @@
|
|
|
363
378
|
removeCustomClasses(elem, params);
|
|
364
379
|
if (params.customClass && params.customClass[className]) {
|
|
365
380
|
if (typeof params.customClass[className] !== 'string' && !params.customClass[className].forEach) {
|
|
366
|
-
warn(
|
|
381
|
+
warn(`Invalid type of customClass.${className}! Expected string or iterable object, got "${typeof params.customClass[className]}"`);
|
|
367
382
|
return;
|
|
368
383
|
}
|
|
369
384
|
addClass(elem, params.customClass[className]);
|
|
@@ -375,7 +390,7 @@
|
|
|
375
390
|
* @param {import('./renderers/renderInput').InputClass} inputClass
|
|
376
391
|
* @returns {HTMLInputElement | null}
|
|
377
392
|
*/
|
|
378
|
-
const getInput = (popup, inputClass) => {
|
|
393
|
+
const getInput$1 = (popup, inputClass) => {
|
|
379
394
|
if (!inputClass) {
|
|
380
395
|
return null;
|
|
381
396
|
}
|
|
@@ -383,15 +398,15 @@
|
|
|
383
398
|
case 'select':
|
|
384
399
|
case 'textarea':
|
|
385
400
|
case 'file':
|
|
386
|
-
return popup.querySelector(
|
|
401
|
+
return popup.querySelector(`.${swalClasses.popup} > .${swalClasses[inputClass]}`);
|
|
387
402
|
case 'checkbox':
|
|
388
|
-
return popup.querySelector(
|
|
403
|
+
return popup.querySelector(`.${swalClasses.popup} > .${swalClasses.checkbox} input`);
|
|
389
404
|
case 'radio':
|
|
390
|
-
return popup.querySelector(
|
|
405
|
+
return popup.querySelector(`.${swalClasses.popup} > .${swalClasses.radio} input:checked`) || popup.querySelector(`.${swalClasses.popup} > .${swalClasses.radio} input:first-child`);
|
|
391
406
|
case 'range':
|
|
392
|
-
return popup.querySelector(
|
|
407
|
+
return popup.querySelector(`.${swalClasses.popup} > .${swalClasses.range} input`);
|
|
393
408
|
default:
|
|
394
|
-
return popup.querySelector(
|
|
409
|
+
return popup.querySelector(`.${swalClasses.popup} > .${swalClasses.input}`);
|
|
395
410
|
}
|
|
396
411
|
};
|
|
397
412
|
|
|
@@ -472,11 +487,11 @@
|
|
|
472
487
|
* @param {*} value
|
|
473
488
|
*/
|
|
474
489
|
const applyNumericalStyle = (elem, property, value) => {
|
|
475
|
-
if (value ===
|
|
490
|
+
if (value === `${parseInt(value)}`) {
|
|
476
491
|
value = parseInt(value);
|
|
477
492
|
}
|
|
478
493
|
if (value || parseInt(value) === 0) {
|
|
479
|
-
elem.style[property] = typeof value === 'number' ?
|
|
494
|
+
elem.style[property] = typeof value === 'number' ? `${value}px` : value;
|
|
480
495
|
} else {
|
|
481
496
|
elem.style.removeProperty(property);
|
|
482
497
|
}
|
|
@@ -528,12 +543,12 @@
|
|
|
528
543
|
* @param {HTMLElement} elem
|
|
529
544
|
* @returns {boolean}
|
|
530
545
|
*/
|
|
531
|
-
const isVisible = elem => !!(elem && (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));
|
|
546
|
+
const isVisible$1 = elem => !!(elem && (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));
|
|
532
547
|
|
|
533
548
|
/**
|
|
534
549
|
* @returns {boolean}
|
|
535
550
|
*/
|
|
536
|
-
const allButtonsAreHidden = () => !isVisible(getConfirmButton()) && !isVisible(getDenyButton()) && !isVisible(getCancelButton());
|
|
551
|
+
const allButtonsAreHidden = () => !isVisible$1(getConfirmButton()) && !isVisible$1(getDenyButton()) && !isVisible$1(getCancelButton());
|
|
537
552
|
|
|
538
553
|
/**
|
|
539
554
|
* @param {HTMLElement} elem
|
|
@@ -561,13 +576,13 @@
|
|
|
561
576
|
const animateTimerProgressBar = function (timer) {
|
|
562
577
|
let reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
563
578
|
const timerProgressBar = getTimerProgressBar();
|
|
564
|
-
if (isVisible(timerProgressBar)) {
|
|
579
|
+
if (isVisible$1(timerProgressBar)) {
|
|
565
580
|
if (reset) {
|
|
566
581
|
timerProgressBar.style.transition = 'none';
|
|
567
582
|
timerProgressBar.style.width = '100%';
|
|
568
583
|
}
|
|
569
584
|
setTimeout(() => {
|
|
570
|
-
timerProgressBar.style.transition =
|
|
585
|
+
timerProgressBar.style.transition = `width ${timer / 1000}s linear`;
|
|
571
586
|
timerProgressBar.style.width = '0%';
|
|
572
587
|
}, 10);
|
|
573
588
|
}
|
|
@@ -580,7 +595,7 @@
|
|
|
580
595
|
const timerProgressBarFullWidth = parseInt(window.getComputedStyle(timerProgressBar).width);
|
|
581
596
|
const timerProgressBarPercent = timerProgressBarWidth / timerProgressBarFullWidth * 100;
|
|
582
597
|
timerProgressBar.style.removeProperty('transition');
|
|
583
|
-
timerProgressBar.style.width =
|
|
598
|
+
timerProgressBar.style.width = `${timerProgressBarPercent}%`;
|
|
584
599
|
};
|
|
585
600
|
|
|
586
601
|
const RESTORE_FOCUS_TIMEOUT = 100;
|
|
@@ -625,7 +640,40 @@
|
|
|
625
640
|
*/
|
|
626
641
|
const isNodeEnv = () => typeof window === 'undefined' || typeof document === 'undefined';
|
|
627
642
|
|
|
628
|
-
const sweetHTML =
|
|
643
|
+
const sweetHTML = `
|
|
644
|
+
<div aria-labelledby="${swalClasses.title}" aria-describedby="${swalClasses['html-container']}" class="${swalClasses.popup}" tabindex="-1">
|
|
645
|
+
<button type="button" class="${swalClasses.close}"></button>
|
|
646
|
+
<ul class="${swalClasses['progress-steps']}"></ul>
|
|
647
|
+
<div class="${swalClasses.icon}"></div>
|
|
648
|
+
<img class="${swalClasses.image}" />
|
|
649
|
+
<h2 class="${swalClasses.title}" id="${swalClasses.title}"></h2>
|
|
650
|
+
<div class="${swalClasses['html-container']}" id="${swalClasses['html-container']}"></div>
|
|
651
|
+
<input class="${swalClasses.input}" />
|
|
652
|
+
<input type="file" class="${swalClasses.file}" />
|
|
653
|
+
<div class="${swalClasses.range}">
|
|
654
|
+
<input type="range" />
|
|
655
|
+
<output></output>
|
|
656
|
+
</div>
|
|
657
|
+
<select class="${swalClasses.select}"></select>
|
|
658
|
+
<div class="${swalClasses.radio}"></div>
|
|
659
|
+
<label for="${swalClasses.checkbox}" class="${swalClasses.checkbox}">
|
|
660
|
+
<input type="checkbox" />
|
|
661
|
+
<span class="${swalClasses.label}"></span>
|
|
662
|
+
</label>
|
|
663
|
+
<textarea class="${swalClasses.textarea}"></textarea>
|
|
664
|
+
<div class="${swalClasses['validation-message']}" id="${swalClasses['validation-message']}"></div>
|
|
665
|
+
<div class="${swalClasses.actions}">
|
|
666
|
+
<div class="${swalClasses.loader}"></div>
|
|
667
|
+
<button type="button" class="${swalClasses.confirm}"></button>
|
|
668
|
+
<button type="button" class="${swalClasses.deny}"></button>
|
|
669
|
+
<button type="button" class="${swalClasses.cancel}"></button>
|
|
670
|
+
</div>
|
|
671
|
+
<div class="${swalClasses.footer}"></div>
|
|
672
|
+
<div class="${swalClasses['timer-progress-bar-container']}">
|
|
673
|
+
<div class="${swalClasses['timer-progress-bar']}"></div>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
`.replace(/(^|\n)\s*/g, '');
|
|
629
677
|
|
|
630
678
|
/**
|
|
631
679
|
* @returns {boolean}
|
|
@@ -639,7 +687,7 @@
|
|
|
639
687
|
removeClass([document.documentElement, document.body], [swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['has-column']]);
|
|
640
688
|
return true;
|
|
641
689
|
};
|
|
642
|
-
const resetValidationMessage = () => {
|
|
690
|
+
const resetValidationMessage$1 = () => {
|
|
643
691
|
globalState.currentInstance.resetValidationMessage();
|
|
644
692
|
};
|
|
645
693
|
const addInputChangeListeners = () => {
|
|
@@ -647,24 +695,24 @@
|
|
|
647
695
|
const input = getDirectChildByClass(popup, swalClasses.input);
|
|
648
696
|
const file = getDirectChildByClass(popup, swalClasses.file);
|
|
649
697
|
/** @type {HTMLInputElement} */
|
|
650
|
-
const range = popup.querySelector(
|
|
698
|
+
const range = popup.querySelector(`.${swalClasses.range} input`);
|
|
651
699
|
/** @type {HTMLOutputElement} */
|
|
652
|
-
const rangeOutput = popup.querySelector(
|
|
700
|
+
const rangeOutput = popup.querySelector(`.${swalClasses.range} output`);
|
|
653
701
|
const select = getDirectChildByClass(popup, swalClasses.select);
|
|
654
702
|
/** @type {HTMLInputElement} */
|
|
655
|
-
const checkbox = popup.querySelector(
|
|
703
|
+
const checkbox = popup.querySelector(`.${swalClasses.checkbox} input`);
|
|
656
704
|
const textarea = getDirectChildByClass(popup, swalClasses.textarea);
|
|
657
|
-
input.oninput = resetValidationMessage;
|
|
658
|
-
file.onchange = resetValidationMessage;
|
|
659
|
-
select.onchange = resetValidationMessage;
|
|
660
|
-
checkbox.onchange = resetValidationMessage;
|
|
661
|
-
textarea.oninput = resetValidationMessage;
|
|
705
|
+
input.oninput = resetValidationMessage$1;
|
|
706
|
+
file.onchange = resetValidationMessage$1;
|
|
707
|
+
select.onchange = resetValidationMessage$1;
|
|
708
|
+
checkbox.onchange = resetValidationMessage$1;
|
|
709
|
+
textarea.oninput = resetValidationMessage$1;
|
|
662
710
|
range.oninput = () => {
|
|
663
|
-
resetValidationMessage();
|
|
711
|
+
resetValidationMessage$1();
|
|
664
712
|
rangeOutput.value = range.value;
|
|
665
713
|
};
|
|
666
714
|
range.onchange = () => {
|
|
667
|
-
resetValidationMessage();
|
|
715
|
+
resetValidationMessage$1();
|
|
668
716
|
rangeOutput.value = range.value;
|
|
669
717
|
};
|
|
670
718
|
};
|
|
@@ -901,14 +949,14 @@
|
|
|
901
949
|
* @param {SweetAlertOptions} params
|
|
902
950
|
*/
|
|
903
951
|
function renderButton(button, buttonType, params) {
|
|
904
|
-
toggle(button, params[
|
|
905
|
-
setInnerHtml(button, params[
|
|
906
|
-
button.setAttribute('aria-label', params[
|
|
952
|
+
toggle(button, params[`show${capitalizeFirstLetter(buttonType)}Button`], 'inline-block');
|
|
953
|
+
setInnerHtml(button, params[`${buttonType}ButtonText`]); // Set caption text
|
|
954
|
+
button.setAttribute('aria-label', params[`${buttonType}ButtonAriaLabel`]); // ARIA label
|
|
907
955
|
|
|
908
956
|
// Add buttons custom classes
|
|
909
957
|
button.className = swalClasses[buttonType];
|
|
910
|
-
applyCustomClass(button, params,
|
|
911
|
-
addClass(button, params[
|
|
958
|
+
applyCustomClass(button, params, `${buttonType}Button`);
|
|
959
|
+
addClass(button, params[`${buttonType}ButtonClass`]);
|
|
912
960
|
}
|
|
913
961
|
|
|
914
962
|
/**
|
|
@@ -973,7 +1021,7 @@
|
|
|
973
1021
|
*/
|
|
974
1022
|
function handleGrowParam(container, grow) {
|
|
975
1023
|
if (grow && typeof grow === 'string') {
|
|
976
|
-
const growClass =
|
|
1024
|
+
const growClass = `grow-${grow}`;
|
|
977
1025
|
if (growClass in swalClasses) {
|
|
978
1026
|
addClass(container, swalClasses[growClass]);
|
|
979
1027
|
}
|
|
@@ -1019,7 +1067,7 @@
|
|
|
1019
1067
|
*/
|
|
1020
1068
|
const showInput = params => {
|
|
1021
1069
|
if (!renderInputType[params.input]) {
|
|
1022
|
-
error(
|
|
1070
|
+
error(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${params.input}"`);
|
|
1023
1071
|
return;
|
|
1024
1072
|
}
|
|
1025
1073
|
const inputContainer = getInputContainer(params.input);
|
|
@@ -1049,7 +1097,7 @@
|
|
|
1049
1097
|
* @param {SweetAlertOptions['inputAttributes']} inputAttributes
|
|
1050
1098
|
*/
|
|
1051
1099
|
const setAttributes = (inputClass, inputAttributes) => {
|
|
1052
|
-
const input = getInput(getPopup(), inputClass);
|
|
1100
|
+
const input = getInput$1(getPopup(), inputClass);
|
|
1053
1101
|
if (!input) {
|
|
1054
1102
|
return;
|
|
1055
1103
|
}
|
|
@@ -1113,9 +1161,9 @@
|
|
|
1113
1161
|
*/
|
|
1114
1162
|
const checkAndSetInputValue = (input, inputValue) => {
|
|
1115
1163
|
if (['string', 'number'].includes(typeof inputValue)) {
|
|
1116
|
-
input.value =
|
|
1164
|
+
input.value = `${inputValue}`;
|
|
1117
1165
|
} else if (!isPromise(inputValue)) {
|
|
1118
|
-
warn(
|
|
1166
|
+
warn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof inputValue}"`);
|
|
1119
1167
|
}
|
|
1120
1168
|
};
|
|
1121
1169
|
|
|
@@ -1195,7 +1243,7 @@
|
|
|
1195
1243
|
* @returns {HTMLInputElement}
|
|
1196
1244
|
*/
|
|
1197
1245
|
renderInputType.checkbox = (checkboxContainer, params) => {
|
|
1198
|
-
const checkbox = getInput(getPopup(), 'checkbox');
|
|
1246
|
+
const checkbox = getInput$1(getPopup(), 'checkbox');
|
|
1199
1247
|
checkbox.value = '1';
|
|
1200
1248
|
checkbox.id = swalClasses.checkbox;
|
|
1201
1249
|
checkbox.checked = Boolean(params.inputValue);
|
|
@@ -1228,7 +1276,7 @@
|
|
|
1228
1276
|
const textareaResizeHandler = () => {
|
|
1229
1277
|
const textareaWidth = textarea.offsetWidth + getMargin(textarea);
|
|
1230
1278
|
if (textareaWidth > initialPopupWidth) {
|
|
1231
|
-
getPopup().style.width =
|
|
1279
|
+
getPopup().style.width = `${textareaWidth}px`;
|
|
1232
1280
|
} else {
|
|
1233
1281
|
getPopup().style.width = null;
|
|
1234
1282
|
}
|
|
@@ -1304,7 +1352,7 @@
|
|
|
1304
1352
|
return;
|
|
1305
1353
|
}
|
|
1306
1354
|
if (params.icon && Object.keys(iconTypes).indexOf(params.icon) === -1) {
|
|
1307
|
-
error(
|
|
1355
|
+
error(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${params.icon}"`);
|
|
1308
1356
|
hide(icon);
|
|
1309
1357
|
return;
|
|
1310
1358
|
}
|
|
@@ -1350,8 +1398,18 @@
|
|
|
1350
1398
|
successIconParts[i].style.backgroundColor = popupBackgroundColor;
|
|
1351
1399
|
}
|
|
1352
1400
|
};
|
|
1353
|
-
const successIconHtml =
|
|
1354
|
-
|
|
1401
|
+
const successIconHtml = `
|
|
1402
|
+
<div class="swal2-success-circular-line-left"></div>
|
|
1403
|
+
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
1404
|
+
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
1405
|
+
<div class="swal2-success-circular-line-right"></div>
|
|
1406
|
+
`;
|
|
1407
|
+
const errorIconHtml = `
|
|
1408
|
+
<span class="swal2-x-mark">
|
|
1409
|
+
<span class="swal2-x-mark-line-left"></span>
|
|
1410
|
+
<span class="swal2-x-mark-line-right"></span>
|
|
1411
|
+
</span>
|
|
1412
|
+
`;
|
|
1355
1413
|
|
|
1356
1414
|
/**
|
|
1357
1415
|
* @param {HTMLElement} icon
|
|
@@ -1400,7 +1458,7 @@
|
|
|
1400
1458
|
* @param {string} content
|
|
1401
1459
|
* @returns {string}
|
|
1402
1460
|
*/
|
|
1403
|
-
const iconContent = content =>
|
|
1461
|
+
const iconContent = content => `<div class="${swalClasses['icon-content']}">${content}</div>`;
|
|
1404
1462
|
|
|
1405
1463
|
/**
|
|
1406
1464
|
* @param {SweetAlert2} instance
|
|
@@ -1460,16 +1518,16 @@
|
|
|
1460
1518
|
hide(getValidationMessage());
|
|
1461
1519
|
|
|
1462
1520
|
// Classes
|
|
1463
|
-
addClasses(popup, params);
|
|
1521
|
+
addClasses$1(popup, params);
|
|
1464
1522
|
};
|
|
1465
1523
|
|
|
1466
1524
|
/**
|
|
1467
1525
|
* @param {HTMLElement} popup
|
|
1468
1526
|
* @param {SweetAlertOptions} params
|
|
1469
1527
|
*/
|
|
1470
|
-
const addClasses = (popup, params) => {
|
|
1528
|
+
const addClasses$1 = (popup, params) => {
|
|
1471
1529
|
// Default Class + showClass when updating Swal.update({})
|
|
1472
|
-
popup.className =
|
|
1530
|
+
popup.className = `${swalClasses.popup} ${isVisible$1(popup) ? params.showClass.popup : ''}`;
|
|
1473
1531
|
if (params.toast) {
|
|
1474
1532
|
addClass([document.documentElement, document.body], swalClasses['toast-shown']);
|
|
1475
1533
|
addClass(popup, swalClasses.toast);
|
|
@@ -1485,7 +1543,7 @@
|
|
|
1485
1543
|
|
|
1486
1544
|
// Icon class (#1842)
|
|
1487
1545
|
if (params.icon) {
|
|
1488
|
-
addClass(popup, swalClasses[
|
|
1546
|
+
addClass(popup, swalClasses[`icon-${params.icon}`]);
|
|
1489
1547
|
}
|
|
1490
1548
|
};
|
|
1491
1549
|
|
|
@@ -1494,7 +1552,7 @@
|
|
|
1494
1552
|
* @param {SweetAlertOptions} params
|
|
1495
1553
|
*/
|
|
1496
1554
|
const renderProgressSteps = (instance, params) => {
|
|
1497
|
-
const progressStepsContainer = getProgressSteps();
|
|
1555
|
+
const progressStepsContainer = getProgressSteps$1();
|
|
1498
1556
|
if (!params.progressSteps || params.progressSteps.length === 0) {
|
|
1499
1557
|
hide(progressStepsContainer);
|
|
1500
1558
|
return;
|
|
@@ -1615,22 +1673,24 @@
|
|
|
1615
1673
|
|
|
1616
1674
|
/**
|
|
1617
1675
|
* Gets the input DOM node, this method works with input parameter.
|
|
1676
|
+
*
|
|
1677
|
+
* @param {SweetAlert2} instance
|
|
1618
1678
|
* @returns {HTMLElement | null}
|
|
1619
1679
|
*/
|
|
1620
|
-
function getInput
|
|
1680
|
+
function getInput(instance) {
|
|
1621
1681
|
const innerParams = privateProps.innerParams.get(instance || this);
|
|
1622
1682
|
const domCache = privateProps.domCache.get(instance || this);
|
|
1623
1683
|
if (!domCache) {
|
|
1624
1684
|
return null;
|
|
1625
1685
|
}
|
|
1626
|
-
return getInput(domCache.popup, innerParams.input);
|
|
1686
|
+
return getInput$1(domCache.popup, innerParams.input);
|
|
1627
1687
|
}
|
|
1628
1688
|
|
|
1629
1689
|
/*
|
|
1630
1690
|
* Global function to determine if SweetAlert2 popup is shown
|
|
1631
1691
|
*/
|
|
1632
|
-
const isVisible
|
|
1633
|
-
return isVisible(getPopup());
|
|
1692
|
+
const isVisible = () => {
|
|
1693
|
+
return isVisible$1(getPopup());
|
|
1634
1694
|
};
|
|
1635
1695
|
|
|
1636
1696
|
/*
|
|
@@ -1822,7 +1882,7 @@
|
|
|
1822
1882
|
if (!buttonToFocus) {
|
|
1823
1883
|
return;
|
|
1824
1884
|
}
|
|
1825
|
-
if (buttonToFocus instanceof HTMLButtonElement && isVisible(buttonToFocus)) {
|
|
1885
|
+
if (buttonToFocus instanceof HTMLButtonElement && isVisible$1(buttonToFocus)) {
|
|
1826
1886
|
break;
|
|
1827
1887
|
}
|
|
1828
1888
|
}
|
|
@@ -1897,7 +1957,7 @@
|
|
|
1897
1957
|
/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1;
|
|
1898
1958
|
if (iOS && !hasClass(document.body, swalClasses.iosfix)) {
|
|
1899
1959
|
const offset = document.body.scrollTop;
|
|
1900
|
-
document.body.style.top =
|
|
1960
|
+
document.body.style.top = `${offset * -1}px`;
|
|
1901
1961
|
addClass(document.body, swalClasses.iosfix);
|
|
1902
1962
|
lockBodyScroll();
|
|
1903
1963
|
addBottomPaddingForTallPopups();
|
|
@@ -1915,7 +1975,7 @@
|
|
|
1915
1975
|
if (iOSSafari) {
|
|
1916
1976
|
const bottomPanelHeight = 44;
|
|
1917
1977
|
if (getPopup().scrollHeight > window.innerHeight - bottomPanelHeight) {
|
|
1918
|
-
getContainer().style.paddingBottom =
|
|
1978
|
+
getContainer().style.paddingBottom = `${bottomPanelHeight}px`;
|
|
1919
1979
|
}
|
|
1920
1980
|
}
|
|
1921
1981
|
};
|
|
@@ -2005,12 +2065,12 @@
|
|
|
2005
2065
|
if (document.body.scrollHeight > window.innerHeight) {
|
|
2006
2066
|
// add padding so the content doesn't shift after removal of scrollbar
|
|
2007
2067
|
states.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right'));
|
|
2008
|
-
document.body.style.paddingRight =
|
|
2068
|
+
document.body.style.paddingRight = `${states.previousBodyPadding + measureScrollbar()}px`;
|
|
2009
2069
|
}
|
|
2010
2070
|
};
|
|
2011
2071
|
const undoScrollbar = () => {
|
|
2012
2072
|
if (states.previousBodyPadding !== null) {
|
|
2013
|
-
document.body.style.paddingRight =
|
|
2073
|
+
document.body.style.paddingRight = `${states.previousBodyPadding}px`;
|
|
2014
2074
|
states.previousBodyPadding = null;
|
|
2015
2075
|
}
|
|
2016
2076
|
};
|
|
@@ -2208,7 +2268,7 @@
|
|
|
2208
2268
|
}
|
|
2209
2269
|
|
|
2210
2270
|
// Hide block with validation message
|
|
2211
|
-
function resetValidationMessage
|
|
2271
|
+
function resetValidationMessage() {
|
|
2212
2272
|
const domCache = privateProps.domCache.get(this);
|
|
2213
2273
|
if (domCache.validationMessage) {
|
|
2214
2274
|
hide(domCache.validationMessage);
|
|
@@ -2221,7 +2281,7 @@
|
|
|
2221
2281
|
}
|
|
2222
2282
|
}
|
|
2223
2283
|
|
|
2224
|
-
function getProgressSteps
|
|
2284
|
+
function getProgressSteps() {
|
|
2225
2285
|
const domCache = privateProps.domCache.get(this);
|
|
2226
2286
|
return domCache.progressSteps;
|
|
2227
2287
|
}
|
|
@@ -2354,7 +2414,7 @@
|
|
|
2354
2414
|
*/
|
|
2355
2415
|
const checkIfParamIsValid = param => {
|
|
2356
2416
|
if (!isValidParameter(param)) {
|
|
2357
|
-
warn(
|
|
2417
|
+
warn(`Unknown parameter "${param}"`);
|
|
2358
2418
|
}
|
|
2359
2419
|
};
|
|
2360
2420
|
|
|
@@ -2363,7 +2423,7 @@
|
|
|
2363
2423
|
*/
|
|
2364
2424
|
const checkIfToastParamIsValid = param => {
|
|
2365
2425
|
if (toastIncompatibleParams.includes(param)) {
|
|
2366
|
-
warn(
|
|
2426
|
+
warn(`The parameter "${param}" is incompatible with toasts`);
|
|
2367
2427
|
}
|
|
2368
2428
|
};
|
|
2369
2429
|
|
|
@@ -2401,7 +2461,7 @@
|
|
|
2401
2461
|
const popup = getPopup();
|
|
2402
2462
|
const innerParams = privateProps.innerParams.get(this);
|
|
2403
2463
|
if (!popup || hasClass(popup, innerParams.hideClass.popup)) {
|
|
2404
|
-
return warn(
|
|
2464
|
+
return warn(`You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.`);
|
|
2405
2465
|
}
|
|
2406
2466
|
const validUpdatableParams = filterValidParams(params);
|
|
2407
2467
|
const updatedParams = Object.assign({}, innerParams, validUpdatableParams);
|
|
@@ -2421,7 +2481,7 @@
|
|
|
2421
2481
|
if (isUpdatableParameter(param)) {
|
|
2422
2482
|
validUpdatableParams[param] = params[param];
|
|
2423
2483
|
} else {
|
|
2424
|
-
warn(
|
|
2484
|
+
warn(`Invalid parameter to update: ${param}`);
|
|
2425
2485
|
}
|
|
2426
2486
|
});
|
|
2427
2487
|
return validUpdatableParams;
|
|
@@ -2486,12 +2546,11 @@
|
|
|
2486
2546
|
}
|
|
2487
2547
|
};
|
|
2488
2548
|
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
2549
|
var instanceMethods = /*#__PURE__*/Object.freeze({
|
|
2550
|
+
__proto__: null,
|
|
2492
2551
|
hideLoading: hideLoading,
|
|
2493
2552
|
disableLoading: hideLoading,
|
|
2494
|
-
getInput: getInput
|
|
2553
|
+
getInput: getInput,
|
|
2495
2554
|
close: close,
|
|
2496
2555
|
isAwaitingPromise: isAwaitingPromise,
|
|
2497
2556
|
rejectPromise: rejectPromise,
|
|
@@ -2504,8 +2563,8 @@
|
|
|
2504
2563
|
enableInput: enableInput,
|
|
2505
2564
|
disableInput: disableInput,
|
|
2506
2565
|
showValidationMessage: showValidationMessage,
|
|
2507
|
-
resetValidationMessage: resetValidationMessage
|
|
2508
|
-
getProgressSteps: getProgressSteps
|
|
2566
|
+
resetValidationMessage: resetValidationMessage,
|
|
2567
|
+
getProgressSteps: getProgressSteps,
|
|
2509
2568
|
update: update,
|
|
2510
2569
|
_destroy: _destroy
|
|
2511
2570
|
});
|
|
@@ -2535,7 +2594,7 @@
|
|
|
2535
2594
|
const replaceButton = (popup, buttonToReplace) => {
|
|
2536
2595
|
const actions = getActions();
|
|
2537
2596
|
const loader = getLoader();
|
|
2538
|
-
if (!buttonToReplace && isVisible(getConfirmButton())) {
|
|
2597
|
+
if (!buttonToReplace && isVisible$1(getConfirmButton())) {
|
|
2539
2598
|
buttonToReplace = getConfirmButton();
|
|
2540
2599
|
}
|
|
2541
2600
|
show(actions);
|
|
@@ -2625,7 +2684,7 @@
|
|
|
2625
2684
|
} else if (typeof params.inputOptions === 'object') {
|
|
2626
2685
|
processInputOptions(params.inputOptions);
|
|
2627
2686
|
} else {
|
|
2628
|
-
error(
|
|
2687
|
+
error(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof params.inputOptions}`);
|
|
2629
2688
|
}
|
|
2630
2689
|
};
|
|
2631
2690
|
|
|
@@ -2637,12 +2696,12 @@
|
|
|
2637
2696
|
const input = instance.getInput();
|
|
2638
2697
|
hide(input);
|
|
2639
2698
|
asPromise(params.inputValue).then(inputValue => {
|
|
2640
|
-
input.value = params.input === 'number' ?
|
|
2699
|
+
input.value = params.input === 'number' ? `${parseFloat(inputValue) || 0}` : `${inputValue}`;
|
|
2641
2700
|
show(input);
|
|
2642
2701
|
input.focus();
|
|
2643
2702
|
instance.hideLoading();
|
|
2644
2703
|
}).catch(err => {
|
|
2645
|
-
error(
|
|
2704
|
+
error(`Error in inputValue promise: ${err}`);
|
|
2646
2705
|
input.value = '';
|
|
2647
2706
|
show(input);
|
|
2648
2707
|
input.focus();
|
|
@@ -2803,7 +2862,7 @@
|
|
|
2803
2862
|
const handleConfirmOrDenyWithInput = (instance, type) => {
|
|
2804
2863
|
const innerParams = privateProps.innerParams.get(instance);
|
|
2805
2864
|
if (!innerParams.input) {
|
|
2806
|
-
error(
|
|
2865
|
+
error(`The "input" parameter is needed to be set when using returnInputValueOn${capitalizeFirstLetter(type)}`);
|
|
2807
2866
|
return;
|
|
2808
2867
|
}
|
|
2809
2868
|
const inputValue = getInputValue(instance, innerParams);
|
|
@@ -2863,7 +2922,7 @@
|
|
|
2863
2922
|
value: typeof preDenyValue === 'undefined' ? value : preDenyValue
|
|
2864
2923
|
});
|
|
2865
2924
|
}
|
|
2866
|
-
}).catch(error
|
|
2925
|
+
}).catch(error => rejectWith(instance || undefined, error));
|
|
2867
2926
|
} else {
|
|
2868
2927
|
instance.close({
|
|
2869
2928
|
isDenied: true,
|
|
@@ -2888,9 +2947,9 @@
|
|
|
2888
2947
|
* @param {SweetAlert2} instance
|
|
2889
2948
|
* @param {string} error
|
|
2890
2949
|
*/
|
|
2891
|
-
const rejectWith = (instance, error
|
|
2950
|
+
const rejectWith = (instance, error) => {
|
|
2892
2951
|
// @ts-ignore
|
|
2893
|
-
instance.rejectPromise(error
|
|
2952
|
+
instance.rejectPromise(error);
|
|
2894
2953
|
};
|
|
2895
2954
|
|
|
2896
2955
|
/**
|
|
@@ -2908,13 +2967,13 @@
|
|
|
2908
2967
|
privateProps.awaitingPromise.set(instance || undefined, true); // Flagging the instance as awaiting a promise so it's own promise's reject/resolve methods doesn't get destroyed until the result from this preConfirm's promise is received
|
|
2909
2968
|
const preConfirmPromise = Promise.resolve().then(() => asPromise(innerParams.preConfirm(value, innerParams.validationMessage)));
|
|
2910
2969
|
preConfirmPromise.then(preConfirmValue => {
|
|
2911
|
-
if (isVisible(getValidationMessage()) || preConfirmValue === false) {
|
|
2970
|
+
if (isVisible$1(getValidationMessage()) || preConfirmValue === false) {
|
|
2912
2971
|
instance.hideLoading();
|
|
2913
2972
|
handleAwaitingPromise(instance);
|
|
2914
2973
|
} else {
|
|
2915
2974
|
succeedWith(instance, typeof preConfirmValue === 'undefined' ? value : preConfirmValue);
|
|
2916
2975
|
}
|
|
2917
|
-
}).catch(error
|
|
2976
|
+
}).catch(error => rejectWith(instance || undefined, error));
|
|
2918
2977
|
} else {
|
|
2919
2978
|
succeedWith(instance, value);
|
|
2920
2979
|
}
|
|
@@ -3001,7 +3060,7 @@
|
|
|
3001
3060
|
if (typeof arg === 'string' || isElement(arg)) {
|
|
3002
3061
|
params[name] = arg;
|
|
3003
3062
|
} else if (arg !== undefined) {
|
|
3004
|
-
error(
|
|
3063
|
+
error(`Unexpected type of ${name}! Expected "string" or "Element", got ${typeof arg}`);
|
|
3005
3064
|
}
|
|
3006
3065
|
});
|
|
3007
3066
|
}
|
|
@@ -3141,17 +3200,12 @@
|
|
|
3141
3200
|
}
|
|
3142
3201
|
};
|
|
3143
3202
|
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
3203
|
var staticMethods = /*#__PURE__*/Object.freeze({
|
|
3204
|
+
__proto__: null,
|
|
3147
3205
|
isValidParameter: isValidParameter,
|
|
3148
3206
|
isUpdatableParameter: isUpdatableParameter,
|
|
3149
3207
|
isDeprecatedParameter: isDeprecatedParameter,
|
|
3150
3208
|
argsToParams: argsToParams,
|
|
3151
|
-
isVisible: isVisible$1,
|
|
3152
|
-
clickConfirm: clickConfirm,
|
|
3153
|
-
clickDeny: clickDeny,
|
|
3154
|
-
clickCancel: clickCancel,
|
|
3155
3209
|
getContainer: getContainer,
|
|
3156
3210
|
getPopup: getPopup,
|
|
3157
3211
|
getTitle: getTitle,
|
|
@@ -3171,6 +3225,10 @@
|
|
|
3171
3225
|
getFocusableElements: getFocusableElements,
|
|
3172
3226
|
getValidationMessage: getValidationMessage,
|
|
3173
3227
|
isLoading: isLoading,
|
|
3228
|
+
isVisible: isVisible,
|
|
3229
|
+
clickConfirm: clickConfirm,
|
|
3230
|
+
clickDeny: clickDeny,
|
|
3231
|
+
clickCancel: clickCancel,
|
|
3174
3232
|
fire: fire,
|
|
3175
3233
|
mixin: mixin,
|
|
3176
3234
|
showLoading: showLoading,
|
|
@@ -3287,7 +3345,7 @@
|
|
|
3287
3345
|
swalFunctions.forEach(param => {
|
|
3288
3346
|
const paramName = param.getAttribute('name');
|
|
3289
3347
|
const value = param.getAttribute('value');
|
|
3290
|
-
result[paramName] = new Function(
|
|
3348
|
+
result[paramName] = new Function(`return ${value}`)();
|
|
3291
3349
|
});
|
|
3292
3350
|
return result;
|
|
3293
3351
|
};
|
|
@@ -3303,13 +3361,13 @@
|
|
|
3303
3361
|
swalButtons.forEach(button => {
|
|
3304
3362
|
showWarningsForAttributes(button, ['type', 'color', 'aria-label']);
|
|
3305
3363
|
const type = button.getAttribute('type');
|
|
3306
|
-
result[
|
|
3307
|
-
result[
|
|
3364
|
+
result[`${type}ButtonText`] = button.innerHTML;
|
|
3365
|
+
result[`show${capitalizeFirstLetter(type)}Button`] = true;
|
|
3308
3366
|
if (button.hasAttribute('color')) {
|
|
3309
|
-
result[
|
|
3367
|
+
result[`${type}ButtonColor`] = button.getAttribute('color');
|
|
3310
3368
|
}
|
|
3311
3369
|
if (button.hasAttribute('aria-label')) {
|
|
3312
|
-
result[
|
|
3370
|
+
result[`${type}ButtonAriaLabel`] = button.getAttribute('aria-label');
|
|
3313
3371
|
}
|
|
3314
3372
|
});
|
|
3315
3373
|
return result;
|
|
@@ -3428,7 +3486,7 @@
|
|
|
3428
3486
|
Array.from(templateContent.children).forEach(el => {
|
|
3429
3487
|
const tagName = el.tagName.toLowerCase();
|
|
3430
3488
|
if (!allowedElements.includes(tagName)) {
|
|
3431
|
-
warn(
|
|
3489
|
+
warn(`Unrecognized element <${tagName}>`);
|
|
3432
3490
|
}
|
|
3433
3491
|
});
|
|
3434
3492
|
};
|
|
@@ -3440,7 +3498,7 @@
|
|
|
3440
3498
|
const showWarningsForAttributes = (el, allowedAttributes) => {
|
|
3441
3499
|
Array.from(el.attributes).forEach(attribute => {
|
|
3442
3500
|
if (allowedAttributes.indexOf(attribute.name) === -1) {
|
|
3443
|
-
warn([
|
|
3501
|
+
warn([`Unrecognized attribute "${attribute.name}" on <${el.tagName.toLowerCase()}>.`, `${allowedAttributes.length ? `Allowed attributes are: ${allowedAttributes.join(', ')}` : 'To set the value, use HTML within the element.'}`]);
|
|
3444
3502
|
}
|
|
3445
3503
|
});
|
|
3446
3504
|
};
|
|
@@ -3460,7 +3518,7 @@
|
|
|
3460
3518
|
}
|
|
3461
3519
|
const bodyStyles = window.getComputedStyle(document.body);
|
|
3462
3520
|
const initialBodyOverflow = bodyStyles.overflowY;
|
|
3463
|
-
addClasses
|
|
3521
|
+
addClasses(container, popup, params);
|
|
3464
3522
|
|
|
3465
3523
|
// scrolling is 'hidden' until animation is done, after that 'auto'
|
|
3466
3524
|
setTimeout(() => {
|
|
@@ -3527,7 +3585,7 @@
|
|
|
3527
3585
|
* @param {HTMLElement} popup
|
|
3528
3586
|
* @param {SweetAlertOptions} params
|
|
3529
3587
|
*/
|
|
3530
|
-
const addClasses
|
|
3588
|
+
const addClasses = (container, popup, params) => {
|
|
3531
3589
|
addClass(container, params.showClass.backdrop);
|
|
3532
3590
|
// this workaround with opacity is needed for https://github.com/sweetalert2/sweetalert2/issues/2059
|
|
3533
3591
|
popup.style.setProperty('opacity', '0', 'important');
|
|
@@ -3754,7 +3812,7 @@
|
|
|
3754
3812
|
loader: getLoader(),
|
|
3755
3813
|
closeButton: getCloseButton(),
|
|
3756
3814
|
validationMessage: getValidationMessage(),
|
|
3757
|
-
progressSteps: getProgressSteps()
|
|
3815
|
+
progressSteps: getProgressSteps$1()
|
|
3758
3816
|
};
|
|
3759
3817
|
privateProps.domCache.set(instance, domCache);
|
|
3760
3818
|
return domCache;
|
|
@@ -3765,19 +3823,19 @@
|
|
|
3765
3823
|
* @param {SweetAlertOptions} innerParams
|
|
3766
3824
|
* @param {Function} dismissWith
|
|
3767
3825
|
*/
|
|
3768
|
-
const setupTimer = (globalState
|
|
3826
|
+
const setupTimer = (globalState, innerParams, dismissWith) => {
|
|
3769
3827
|
const timerProgressBar = getTimerProgressBar();
|
|
3770
3828
|
hide(timerProgressBar);
|
|
3771
3829
|
if (innerParams.timer) {
|
|
3772
|
-
globalState
|
|
3830
|
+
globalState.timeout = new Timer(() => {
|
|
3773
3831
|
dismissWith('timer');
|
|
3774
|
-
delete globalState
|
|
3832
|
+
delete globalState.timeout;
|
|
3775
3833
|
}, innerParams.timer);
|
|
3776
3834
|
if (innerParams.timerProgressBar) {
|
|
3777
3835
|
show(timerProgressBar);
|
|
3778
3836
|
applyCustomClass(timerProgressBar, innerParams, 'timerProgressBar');
|
|
3779
3837
|
setTimeout(() => {
|
|
3780
|
-
if (globalState
|
|
3838
|
+
if (globalState.timeout && globalState.timeout.running) {
|
|
3781
3839
|
// timer can be already stopped or unset at this point
|
|
3782
3840
|
animateTimerProgressBar(innerParams.timer);
|
|
3783
3841
|
}
|
|
@@ -3809,15 +3867,15 @@
|
|
|
3809
3867
|
* @returns {boolean}
|
|
3810
3868
|
*/
|
|
3811
3869
|
const focusButton = (domCache, innerParams) => {
|
|
3812
|
-
if (innerParams.focusDeny && isVisible(domCache.denyButton)) {
|
|
3870
|
+
if (innerParams.focusDeny && isVisible$1(domCache.denyButton)) {
|
|
3813
3871
|
domCache.denyButton.focus();
|
|
3814
3872
|
return true;
|
|
3815
3873
|
}
|
|
3816
|
-
if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
|
|
3874
|
+
if (innerParams.focusCancel && isVisible$1(domCache.cancelButton)) {
|
|
3817
3875
|
domCache.cancelButton.focus();
|
|
3818
3876
|
return true;
|
|
3819
3877
|
}
|
|
3820
|
-
if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
|
|
3878
|
+
if (innerParams.focusConfirm && isVisible$1(domCache.confirmButton)) {
|
|
3821
3879
|
domCache.confirmButton.focus();
|
|
3822
3880
|
return true;
|
|
3823
3881
|
}
|
|
@@ -3864,7 +3922,7 @@
|
|
|
3864
3922
|
};
|
|
3865
3923
|
});
|
|
3866
3924
|
SweetAlert.DismissReason = DismissReason;
|
|
3867
|
-
SweetAlert.version = '11.6.
|
|
3925
|
+
SweetAlert.version = '11.6.3';
|
|
3868
3926
|
|
|
3869
3927
|
const Swal = SweetAlert;
|
|
3870
3928
|
// @ts-ignore
|
|
@@ -3873,6 +3931,5 @@
|
|
|
3873
3931
|
return Swal;
|
|
3874
3932
|
|
|
3875
3933
|
}));
|
|
3876
|
-
if (typeof this !== 'undefined' && this.Sweetalert2){
|
|
3877
|
-
|
|
3878
|
-
"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,".swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.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-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left: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:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.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}.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}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.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 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{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:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.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}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.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}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.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)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:0 0;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.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}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.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}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@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:-.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}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.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:-.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(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.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(0);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}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}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!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 rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}");
|
|
3934
|
+
if (typeof this !== 'undefined' && this.Sweetalert2){this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2}
|
|
3935
|
+
"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,".swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;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-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.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-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.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-popup.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-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left: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:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.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}.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}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.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)}.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}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{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:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;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}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);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}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.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)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.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}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.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}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.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}.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}.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%}.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)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.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}.swal2-progress-steps li{display:inline-block;position:relative}.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}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.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}@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}}@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}}body.swal2-shown:not(.swal2-no-backdrop):not(.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 rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}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{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}");
|