sweetalert2 11.11.0 → 11.11.1
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 +15 -24
- package/dist/sweetalert2.all.js +107 -144
- package/dist/sweetalert2.all.min.js +2 -2
- package/dist/sweetalert2.js +107 -144
- package/dist/sweetalert2.min.js +2 -2
- package/package.json +1 -1
- package/src/SweetAlert.js +1 -1
- package/src/utils/getTemplateParams.js +6 -6
package/README.md
CHANGED
|
@@ -8,21 +8,7 @@ A beautiful, responsive, customizable, accessible (WAI-ARIA) replacement <br> fo
|
|
|
8
8
|
|
|
9
9
|
### [Installation](https://sweetalert2.github.io/#download) | [Usage](https://sweetalert2.github.io/#usage) | [Examples](https://sweetalert2.github.io/#examples) | [Recipe gallery](https://sweetalert2.github.io/recipe-gallery/) | [Themes](https://github.com/sweetalert2/sweetalert2-themes) | [React](https://github.com/sweetalert2/sweetalert2-react-content) | [Angular](https://github.com/sweetalert2/ngx-sweetalert2)
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:moneybag: [Get $200 in free credits with DigitalOcean!](https://m.do.co/c/12907f2ba0bf)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
> [!IMPORTANT]
|
|
18
|
-
> As a consequence of the illegal war in Ukraine, the behavior of this repository and related npm package [sweetalert2](https://www.npmjs.com/package/sweetalert2) is different for `.ru`, `.su`, `.by`, and `.рф` domain zones.
|
|
19
|
-
>
|
|
20
|
-
> Including this software in any domain in `.ru`, `.su`, `.by`, and `.рф` domain zones will block the website navigation and play the national anthem of Ukraine.
|
|
21
|
-
>
|
|
22
|
-
> This behavior is classified as [protestware](https://snyk.io/blog/protestware-open-source-types-impact/) and this project is listed in [GitHub Advisory Database](https://github.com/advisories/GHSA-mrr8-v49w-3333) and [Snyk Vulnerability DB](https://security.snyk.io/package/npm/sweetalert2/11.5.2).
|
|
23
|
-
|
|
24
|
-
Sponsors
|
|
25
|
-
--------
|
|
11
|
+
# Sponsors
|
|
26
12
|
|
|
27
13
|
For all questions related to sponsorship please get in touch with me via email sweetalert2@gmail.com
|
|
28
14
|
|
|
@@ -37,7 +23,6 @@ For all questions related to sponsorship please get in touch with me via email s
|
|
|
37
23
|
</table>
|
|
38
24
|
<table>
|
|
39
25
|
<tr>
|
|
40
|
-
<td align="center"><a href="https://refermate.com/"><img src="https://sweetalert2.github.io/images/sponsors/refermate.png" width="80"><br>Refermate</a>
|
|
41
26
|
<td align="center"><a href="https://roboflow.com/"><img src="https://sweetalert2.github.io/images/sponsors/roboflow.png" width="80"><br>Roboflow</a>
|
|
42
27
|
<td align="center"><a href="https://www.zezelife.com/"><img src="https://sweetalert2.github.io/images/sponsors/zezelife.png" width="80"><br>ZezeLife</a>
|
|
43
28
|
<td align="center"><a href="https://www.serpempire.com/"><img src="https://sweetalert2.github.io/images/sponsors/serpempire.png" width="80"><br>SERP Empire</a>
|
|
@@ -51,29 +36,30 @@ For all questions related to sponsorship please get in touch with me via email s
|
|
|
51
36
|
</tr>
|
|
52
37
|
</table>
|
|
53
38
|
|
|
54
|
-
NSFW Sponsors
|
|
55
|
-
-------------
|
|
39
|
+
# NSFW Sponsors
|
|
56
40
|
|
|
57
41
|
<table>
|
|
58
42
|
<tr>
|
|
59
43
|
<td align="center"><a href="SPONSORS.md#sponsors"><img src="https://sweetalert2.github.io/images/plus.png" width="80"><br>Become a NSFW sponsor</a></td>
|
|
44
|
+
<td align="center"><a href="https://www.hismith.co.uk/"><img src="https://sweetalert2.github.io/images/sponsors/hismith.png" width="80"><br>Hismith</a></td>
|
|
45
|
+
<td align="center"><a href="https://dollauthority.com/"><img src="https://sweetalert2.github.io/images/sponsors/dollauthority.png" width="80"><br>Doll Authority</a></td>
|
|
60
46
|
<td align="center"><a href="https://dreamlovedoll.com/"><img src="https://sweetalert2.github.io/images/sponsors/dreamlovedoll.jpg" width="80"><br>DreamLoveDoll</a></td>
|
|
61
47
|
<td align="center"><a href="https://thepinkrabbits.com/"><img src="https://sweetalert2.github.io/images/sponsors/thepinkrabbits.png" width="80"><br>The Pink Rabbits</a></td>
|
|
62
|
-
<td align="center"><a href="https://www.sexdollpartner.com/"><img src="https://sweetalert2.github.io/images/sponsors/sexdollpartner.jpg" width="80"><br>SexDollPartner</a></td>
|
|
63
|
-
<td align="center"><a href="https://nexromance.com/playstore/index.php?sweetalert"><img src="https://sweetalert2.github.io/images/sponsors/chatforsex.jpg" width="80"><br>ChatGPT for Sex</a></td>
|
|
64
48
|
</tr>
|
|
65
49
|
</table>
|
|
66
50
|
<table>
|
|
67
51
|
<tr>
|
|
52
|
+
<td align="center"><a href="https://www.sexdollpartner.com/"><img src="https://sweetalert2.github.io/images/sponsors/sexdollpartner.jpg" width="80"><br>SexDollPartner</a></td>
|
|
53
|
+
<td align="center"><a href="https://nexromance.com/playstore/index.php?sweetalert"><img src="https://sweetalert2.github.io/images/sponsors/chatforsex.jpg" width="80"><br>ChatGPT for Sex</a></td>
|
|
68
54
|
<td align="center"><a href="https://www.xspacecup.com/"><img src="https://sweetalert2.github.io/images/sponsors/xspacecup.png" width="80"><br>XspaceCup</a></td>
|
|
69
55
|
<td align="center"><a href="https://vlixa.com/"><img src="https://sweetalert2.github.io/images/sponsors/vlixa.png" width="80"><br>Vlixa</a></td>
|
|
70
56
|
<td align="center"><a href="https://sexsitoys.com/lovense-games/"><img src="https://sweetalert2.github.io/images/sponsors/sexsitoys.jpg" width="80"><br>Sexsi Toys</a></td>
|
|
71
57
|
<td align="center"><a href="https://www.cheapestsexdolls.com"><img src="https://sweetalert2.github.io/images/sponsors/cheapestsexdolls.png" width="80"><br>CheapestSexDolls</a></td>
|
|
72
|
-
<td align="center"><a href="https://www.bestblowjobmachines.com/"><img src="https://sweetalert2.github.io/images/sponsors/best-blowjob-machines.jpg" width="80"><br>Best Blowjob Machines</a></td>
|
|
73
58
|
</tr>
|
|
74
59
|
</table>
|
|
75
60
|
<table>
|
|
76
61
|
<tr>
|
|
62
|
+
<td align="center"><a href="https://www.bestblowjobmachines.com/"><img src="https://sweetalert2.github.io/images/sponsors/best-blowjob-machines.jpg" width="80"><br>Best Blowjob Machines</a></td>
|
|
77
63
|
<td align="center"><a href="https://nakedoll.com/"><img src="https://sweetalert2.github.io/images/sponsors/nakedoll.png" width="80"><br>NakeDoll</a></td>
|
|
78
64
|
<td align="center"><a href="https://www.onahole.com/"><img src="https://sweetalert2.github.io/images/sponsors/onahole.png" width="80"><br>hentai sex toys</a></td>
|
|
79
65
|
<td align="center"><a href="https://blowupdollshop.com/inflatable-sex-doll/"><img src="https://sweetalert2.github.io/images/sponsors/blowupdollshop.png" width="80"><br>Inflatable sex doll</a></td>
|
|
@@ -125,7 +111,12 @@ NSFW Sponsors
|
|
|
125
111
|
</tr>
|
|
126
112
|
</table>
|
|
127
113
|
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
# Important notice about the usage of this software for `.ru`, `.su`, `.by`, and `.рф` domain zones
|
|
117
|
+
|
|
118
|
+
As a consequence of the illegal war in Ukraine, the behavior of this repository and related npm package [sweetalert2](https://www.npmjs.com/package/sweetalert2) is different for `.ru`, `.su`, `.by`, and `.рф` domain zones.
|
|
119
|
+
|
|
120
|
+
Including this software in any domain in `.ru`, `.su`, `.by`, and `.рф` domain zones will block the website navigation and play the national anthem of Ukraine.
|
|
130
121
|
|
|
131
|
-
|
|
122
|
+
This behavior is classified as [protestware](https://snyk.io/blog/protestware-open-source-types-impact/) and this project is listed in [GitHub Advisory Database](https://github.com/advisories/GHSA-mrr8-v49w-3333) and [Snyk Vulnerability DB](https://security.snyk.io/package/npm/sweetalert2/11.5.2).
|
package/dist/sweetalert2.all.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sweetalert2 v11.11.
|
|
2
|
+
* sweetalert2 v11.11.1
|
|
3
3
|
* Released under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -8,16 +8,40 @@
|
|
|
8
8
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Sweetalert2 = factory());
|
|
9
9
|
})(this, (function () { 'use strict';
|
|
10
10
|
|
|
11
|
+
function _arrayLikeToArray(r, a) {
|
|
12
|
+
(null == a || a > r.length) && (a = r.length);
|
|
13
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
function _arrayWithHoles(r) {
|
|
17
|
+
if (Array.isArray(r)) return r;
|
|
18
|
+
}
|
|
19
|
+
function _arrayWithoutHoles(r) {
|
|
20
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
21
|
+
}
|
|
11
22
|
function _assertClassBrand(e, t, n) {
|
|
12
23
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
13
24
|
throw new TypeError("Private element is not present on this object");
|
|
14
25
|
}
|
|
26
|
+
function _assertThisInitialized(e) {
|
|
27
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
15
30
|
function _callSuper(t, o, e) {
|
|
16
31
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
17
32
|
}
|
|
33
|
+
function _checkPrivateRedeclaration(e, t) {
|
|
34
|
+
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
35
|
+
}
|
|
36
|
+
function _classCallCheck(a, n) {
|
|
37
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
38
|
+
}
|
|
18
39
|
function _classPrivateFieldGet2(s, a) {
|
|
19
40
|
return s.get(_assertClassBrand(s, a));
|
|
20
41
|
}
|
|
42
|
+
function _classPrivateFieldInitSpec(e, t, a) {
|
|
43
|
+
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
44
|
+
}
|
|
21
45
|
function _classPrivateFieldSet2(s, a, r) {
|
|
22
46
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
23
47
|
}
|
|
@@ -26,7 +50,44 @@
|
|
|
26
50
|
var o = [null];
|
|
27
51
|
o.push.apply(o, e);
|
|
28
52
|
var p = new (t.bind.apply(t, o))();
|
|
29
|
-
return
|
|
53
|
+
return p;
|
|
54
|
+
}
|
|
55
|
+
function _defineProperties(e, r) {
|
|
56
|
+
for (var t = 0; t < r.length; t++) {
|
|
57
|
+
var o = r[t];
|
|
58
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function _createClass(e, r, t) {
|
|
62
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
63
|
+
writable: !1
|
|
64
|
+
}), e;
|
|
65
|
+
}
|
|
66
|
+
function _get() {
|
|
67
|
+
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
|
|
68
|
+
var p = _superPropBase(e, t);
|
|
69
|
+
if (p) {
|
|
70
|
+
var n = Object.getOwnPropertyDescriptor(p, t);
|
|
71
|
+
return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
|
|
72
|
+
}
|
|
73
|
+
}, _get.apply(null, arguments);
|
|
74
|
+
}
|
|
75
|
+
function _getPrototypeOf(t) {
|
|
76
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
77
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
78
|
+
}, _getPrototypeOf(t);
|
|
79
|
+
}
|
|
80
|
+
function _inherits(t, e) {
|
|
81
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
82
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
83
|
+
constructor: {
|
|
84
|
+
value: t,
|
|
85
|
+
writable: !0,
|
|
86
|
+
configurable: !0
|
|
87
|
+
}
|
|
88
|
+
}), Object.defineProperty(t, "prototype", {
|
|
89
|
+
writable: !1
|
|
90
|
+
}), e && _setPrototypeOf(t, e);
|
|
30
91
|
}
|
|
31
92
|
function _isNativeReflectConstruct() {
|
|
32
93
|
try {
|
|
@@ -36,6 +97,9 @@
|
|
|
36
97
|
return !!t;
|
|
37
98
|
})();
|
|
38
99
|
}
|
|
100
|
+
function _iterableToArray(r) {
|
|
101
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
102
|
+
}
|
|
39
103
|
function _iterableToArrayLimit(r, l) {
|
|
40
104
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
41
105
|
if (null != t) {
|
|
@@ -47,10 +111,7 @@
|
|
|
47
111
|
f = !0,
|
|
48
112
|
o = !1;
|
|
49
113
|
try {
|
|
50
|
-
if (i = (t = t.call(r)).next, 0 === l)
|
|
51
|
-
if (Object(t) !== t) return;
|
|
52
|
-
f = !1;
|
|
53
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
114
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
54
115
|
} catch (r) {
|
|
55
116
|
o = !0, n = r;
|
|
56
117
|
} finally {
|
|
@@ -63,15 +124,41 @@
|
|
|
63
124
|
return a;
|
|
64
125
|
}
|
|
65
126
|
}
|
|
127
|
+
function _nonIterableRest() {
|
|
128
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
129
|
+
}
|
|
130
|
+
function _nonIterableSpread() {
|
|
131
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
132
|
+
}
|
|
133
|
+
function _possibleConstructorReturn(t, e) {
|
|
134
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
135
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
136
|
+
return _assertThisInitialized(t);
|
|
137
|
+
}
|
|
138
|
+
function _setPrototypeOf(t, e) {
|
|
139
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
140
|
+
return t.__proto__ = e, t;
|
|
141
|
+
}, _setPrototypeOf(t, e);
|
|
142
|
+
}
|
|
143
|
+
function _slicedToArray(r, e) {
|
|
144
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
145
|
+
}
|
|
146
|
+
function _superPropBase(t, o) {
|
|
147
|
+
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
148
|
+
return t;
|
|
149
|
+
}
|
|
150
|
+
function _toConsumableArray(r) {
|
|
151
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
152
|
+
}
|
|
66
153
|
function _toPrimitive(t, r) {
|
|
67
154
|
if ("object" != typeof t || !t) return t;
|
|
68
155
|
var e = t[Symbol.toPrimitive];
|
|
69
156
|
if (void 0 !== e) {
|
|
70
|
-
var i = e.call(t, r
|
|
157
|
+
var i = e.call(t, r );
|
|
71
158
|
if ("object" != typeof i) return i;
|
|
72
159
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
73
160
|
}
|
|
74
|
-
return (
|
|
161
|
+
return (String )(t);
|
|
75
162
|
}
|
|
76
163
|
function _toPropertyKey(t) {
|
|
77
164
|
var i = _toPrimitive(t, "string");
|
|
@@ -86,136 +173,12 @@
|
|
|
86
173
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
87
174
|
}, _typeof(o);
|
|
88
175
|
}
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
function _defineProperties(target, props) {
|
|
95
|
-
for (var i = 0; i < props.length; i++) {
|
|
96
|
-
var descriptor = props[i];
|
|
97
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
98
|
-
descriptor.configurable = true;
|
|
99
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
100
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
104
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
105
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
106
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
107
|
-
writable: false
|
|
108
|
-
});
|
|
109
|
-
return Constructor;
|
|
110
|
-
}
|
|
111
|
-
function _inherits(subClass, superClass) {
|
|
112
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
113
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
114
|
-
}
|
|
115
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
116
|
-
constructor: {
|
|
117
|
-
value: subClass,
|
|
118
|
-
writable: true,
|
|
119
|
-
configurable: true
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
Object.defineProperty(subClass, "prototype", {
|
|
123
|
-
writable: false
|
|
124
|
-
});
|
|
125
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
126
|
-
}
|
|
127
|
-
function _getPrototypeOf(o) {
|
|
128
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
129
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
130
|
-
};
|
|
131
|
-
return _getPrototypeOf(o);
|
|
132
|
-
}
|
|
133
|
-
function _setPrototypeOf(o, p) {
|
|
134
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
135
|
-
o.__proto__ = p;
|
|
136
|
-
return o;
|
|
137
|
-
};
|
|
138
|
-
return _setPrototypeOf(o, p);
|
|
139
|
-
}
|
|
140
|
-
function _assertThisInitialized(self) {
|
|
141
|
-
if (self === void 0) {
|
|
142
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
143
|
-
}
|
|
144
|
-
return self;
|
|
145
|
-
}
|
|
146
|
-
function _possibleConstructorReturn(self, call) {
|
|
147
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
148
|
-
return call;
|
|
149
|
-
} else if (call !== void 0) {
|
|
150
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
176
|
+
function _unsupportedIterableToArray(r, a) {
|
|
177
|
+
if (r) {
|
|
178
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
179
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
180
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
151
181
|
}
|
|
152
|
-
return _assertThisInitialized(self);
|
|
153
|
-
}
|
|
154
|
-
function _superPropBase(object, property) {
|
|
155
|
-
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
156
|
-
object = _getPrototypeOf(object);
|
|
157
|
-
if (object === null) break;
|
|
158
|
-
}
|
|
159
|
-
return object;
|
|
160
|
-
}
|
|
161
|
-
function _get() {
|
|
162
|
-
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
163
|
-
_get = Reflect.get.bind();
|
|
164
|
-
} else {
|
|
165
|
-
_get = function _get(target, property, receiver) {
|
|
166
|
-
var base = _superPropBase(target, property);
|
|
167
|
-
if (!base) return;
|
|
168
|
-
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
169
|
-
if (desc.get) {
|
|
170
|
-
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
171
|
-
}
|
|
172
|
-
return desc.value;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
return _get.apply(this, arguments);
|
|
176
|
-
}
|
|
177
|
-
function _slicedToArray(arr, i) {
|
|
178
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
179
|
-
}
|
|
180
|
-
function _toConsumableArray(arr) {
|
|
181
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
182
|
-
}
|
|
183
|
-
function _arrayWithoutHoles(arr) {
|
|
184
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
185
|
-
}
|
|
186
|
-
function _arrayWithHoles(arr) {
|
|
187
|
-
if (Array.isArray(arr)) return arr;
|
|
188
|
-
}
|
|
189
|
-
function _iterableToArray(iter) {
|
|
190
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
191
|
-
}
|
|
192
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
193
|
-
if (!o) return;
|
|
194
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
195
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
196
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
197
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
198
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
199
|
-
}
|
|
200
|
-
function _arrayLikeToArray(arr, len) {
|
|
201
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
202
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
203
|
-
return arr2;
|
|
204
|
-
}
|
|
205
|
-
function _nonIterableSpread() {
|
|
206
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
207
|
-
}
|
|
208
|
-
function _nonIterableRest() {
|
|
209
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
210
|
-
}
|
|
211
|
-
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
212
|
-
if (privateCollection.has(obj)) {
|
|
213
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
217
|
-
_checkPrivateRedeclaration(obj, privateMap);
|
|
218
|
-
privateMap.set(obj, value);
|
|
219
182
|
}
|
|
220
183
|
|
|
221
184
|
var RESTORE_FOCUS_TIMEOUT = 100;
|
|
@@ -4001,25 +3964,25 @@
|
|
|
4001
3964
|
|
|
4002
3965
|
/**
|
|
4003
3966
|
* @param {DocumentFragment} templateContent
|
|
4004
|
-
* @returns {SweetAlertOptions}
|
|
3967
|
+
* @returns {Pick<SweetAlertOptions, 'imageUrl' | 'imageWidth' | 'imageHeight' | 'imageAlt'>}
|
|
4005
3968
|
*/
|
|
4006
3969
|
var getSwalImage = function getSwalImage(templateContent) {
|
|
4007
3970
|
var result = {};
|
|
4008
|
-
/** @type {HTMLElement} */
|
|
3971
|
+
/** @type {HTMLElement | null} */
|
|
4009
3972
|
var image = templateContent.querySelector('swal-image');
|
|
4010
3973
|
if (image) {
|
|
4011
3974
|
showWarningsForAttributes(image, ['src', 'width', 'height', 'alt']);
|
|
4012
3975
|
if (image.hasAttribute('src')) {
|
|
4013
|
-
result.imageUrl = image.getAttribute('src');
|
|
3976
|
+
result.imageUrl = image.getAttribute('src') || undefined;
|
|
4014
3977
|
}
|
|
4015
3978
|
if (image.hasAttribute('width')) {
|
|
4016
|
-
result.imageWidth = image.getAttribute('width');
|
|
3979
|
+
result.imageWidth = image.getAttribute('width') || undefined;
|
|
4017
3980
|
}
|
|
4018
3981
|
if (image.hasAttribute('height')) {
|
|
4019
|
-
result.imageHeight = image.getAttribute('height');
|
|
3982
|
+
result.imageHeight = image.getAttribute('height') || undefined;
|
|
4020
3983
|
}
|
|
4021
3984
|
if (image.hasAttribute('alt')) {
|
|
4022
|
-
result.imageAlt = image.getAttribute('alt');
|
|
3985
|
+
result.imageAlt = image.getAttribute('alt') || undefined;
|
|
4023
3986
|
}
|
|
4024
3987
|
}
|
|
4025
3988
|
return result;
|
|
@@ -4599,7 +4562,7 @@
|
|
|
4599
4562
|
};
|
|
4600
4563
|
});
|
|
4601
4564
|
SweetAlert.DismissReason = DismissReason;
|
|
4602
|
-
SweetAlert.version = '11.11.
|
|
4565
|
+
SweetAlert.version = '11.11.1';
|
|
4603
4566
|
|
|
4604
4567
|
var Swal = SweetAlert;
|
|
4605
4568
|
// @ts-ignore
|