@invoice-sdk/widget 1.41.1 → 1.44.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as R } from "./index-
|
|
2
|
-
function
|
|
1
|
+
import { c as R, g as z } from "./index-D_ButmVg.js";
|
|
2
|
+
function $(w, d) {
|
|
3
3
|
for (var b = 0; b < d.length; b++) {
|
|
4
4
|
const y = d[b];
|
|
5
5
|
if (typeof y != "string" && !Array.isArray(y)) {
|
|
@@ -16,7 +16,7 @@ function V(w, d) {
|
|
|
16
16
|
return Object.freeze(Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }));
|
|
17
17
|
}
|
|
18
18
|
var A = { exports: {} }, U;
|
|
19
|
-
function
|
|
19
|
+
function X() {
|
|
20
20
|
return U || (U = 1, function(w, d) {
|
|
21
21
|
var b = typeof globalThis != "undefined" && globalThis || typeof self != "undefined" && self || typeof R != "undefined" && R, y = function() {
|
|
22
22
|
function p() {
|
|
@@ -39,11 +39,11 @@ function z() {
|
|
|
39
39
|
formData: "FormData" in a,
|
|
40
40
|
arrayBuffer: "ArrayBuffer" in a
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function S(e) {
|
|
43
43
|
return e && DataView.prototype.isPrototypeOf(e);
|
|
44
44
|
}
|
|
45
45
|
if (f.arrayBuffer)
|
|
46
|
-
var
|
|
46
|
+
var F = [
|
|
47
47
|
"[object Int8Array]",
|
|
48
48
|
"[object Uint8Array]",
|
|
49
49
|
"[object Uint8ClampedArray]",
|
|
@@ -53,8 +53,8 @@ function z() {
|
|
|
53
53
|
"[object Uint32Array]",
|
|
54
54
|
"[object Float32Array]",
|
|
55
55
|
"[object Float64Array]"
|
|
56
|
-
],
|
|
57
|
-
return e &&
|
|
56
|
+
], I = ArrayBuffer.isView || function(e) {
|
|
57
|
+
return e && F.indexOf(Object.prototype.toString.call(e)) > -1;
|
|
58
58
|
};
|
|
59
59
|
function v(e) {
|
|
60
60
|
if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "")
|
|
@@ -129,15 +129,15 @@ function z() {
|
|
|
129
129
|
};
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function M(e) {
|
|
133
133
|
var t = new FileReader(), r = P(t);
|
|
134
134
|
return t.readAsArrayBuffer(e), r;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function q(e) {
|
|
137
137
|
var t = new FileReader(), r = P(t);
|
|
138
138
|
return t.readAsText(e), r;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function H(e) {
|
|
141
141
|
for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++)
|
|
142
142
|
r[n] = String.fromCharCode(t[n]);
|
|
143
143
|
return r.join("");
|
|
@@ -150,7 +150,7 @@ function z() {
|
|
|
150
150
|
}
|
|
151
151
|
function x() {
|
|
152
152
|
return this.bodyUsed = !1, this._initBody = function(e) {
|
|
153
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob &&
|
|
153
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob && S(e) ? (this._bodyArrayBuffer = D(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : f.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || I(e)) ? this._bodyArrayBuffer = D(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
154
154
|
}, f.blob && (this.blob = function() {
|
|
155
155
|
var e = B(this);
|
|
156
156
|
if (e)
|
|
@@ -172,28 +172,28 @@ function z() {
|
|
|
172
172
|
)
|
|
173
173
|
) : Promise.resolve(this._bodyArrayBuffer));
|
|
174
174
|
} else
|
|
175
|
-
return this.blob().then(
|
|
175
|
+
return this.blob().then(M);
|
|
176
176
|
}), this.text = function() {
|
|
177
177
|
var e = B(this);
|
|
178
178
|
if (e)
|
|
179
179
|
return e;
|
|
180
180
|
if (this._bodyBlob)
|
|
181
|
-
return
|
|
181
|
+
return q(this._bodyBlob);
|
|
182
182
|
if (this._bodyArrayBuffer)
|
|
183
|
-
return Promise.resolve(
|
|
183
|
+
return Promise.resolve(H(this._bodyArrayBuffer));
|
|
184
184
|
if (this._bodyFormData)
|
|
185
185
|
throw new Error("could not read FormData body as text");
|
|
186
186
|
return Promise.resolve(this._bodyText);
|
|
187
187
|
}, f.formData && (this.formData = function() {
|
|
188
|
-
return this.text().then(
|
|
188
|
+
return this.text().then(k);
|
|
189
189
|
}), this.json = function() {
|
|
190
190
|
return this.text().then(JSON.parse);
|
|
191
191
|
}, this;
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
193
|
+
var L = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
194
|
+
function C(e) {
|
|
195
195
|
var t = e.toUpperCase();
|
|
196
|
-
return
|
|
196
|
+
return L.indexOf(t) > -1 ? t : e;
|
|
197
197
|
}
|
|
198
198
|
function m(e, t) {
|
|
199
199
|
if (!(this instanceof m))
|
|
@@ -206,7 +206,7 @@ function z() {
|
|
|
206
206
|
this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new s(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !r && e._bodyInit != null && (r = e._bodyInit, e.bodyUsed = !0);
|
|
207
207
|
} else
|
|
208
208
|
this.url = String(e);
|
|
209
|
-
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method =
|
|
209
|
+
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method = C(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && r)
|
|
210
210
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
211
211
|
if (this._initBody(r), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
|
|
212
212
|
var n = /([?&])_=[^&]*/;
|
|
@@ -221,7 +221,7 @@ function z() {
|
|
|
221
221
|
m.prototype.clone = function() {
|
|
222
222
|
return new m(this, { body: this._bodyInit });
|
|
223
223
|
};
|
|
224
|
-
function
|
|
224
|
+
function k(e) {
|
|
225
225
|
var t = new FormData();
|
|
226
226
|
return e.trim().split("&").forEach(function(r) {
|
|
227
227
|
if (r) {
|
|
@@ -230,7 +230,7 @@ function z() {
|
|
|
230
230
|
}
|
|
231
231
|
}), t;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function N(e) {
|
|
234
234
|
var t = new s(), r = e.replace(/\r?\n[\t ]+/g, " ");
|
|
235
235
|
return r.split("\r").map(function(n) {
|
|
236
236
|
return n.indexOf(`
|
|
@@ -244,27 +244,27 @@ function z() {
|
|
|
244
244
|
}), t;
|
|
245
245
|
}
|
|
246
246
|
x.call(m.prototype);
|
|
247
|
-
function
|
|
248
|
-
if (!(this instanceof
|
|
247
|
+
function c(e, t) {
|
|
248
|
+
if (!(this instanceof c))
|
|
249
249
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
250
250
|
t || (t = {}), this.type = "default", this.status = t.status === void 0 ? 200 : t.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new s(t.headers), this.url = t.url || "", this._initBody(e);
|
|
251
251
|
}
|
|
252
|
-
x.call(
|
|
253
|
-
return new
|
|
252
|
+
x.call(c.prototype), c.prototype.clone = function() {
|
|
253
|
+
return new c(this._bodyInit, {
|
|
254
254
|
status: this.status,
|
|
255
255
|
statusText: this.statusText,
|
|
256
256
|
headers: new s(this.headers),
|
|
257
257
|
url: this.url
|
|
258
258
|
});
|
|
259
|
-
},
|
|
260
|
-
var e = new
|
|
259
|
+
}, c.error = function() {
|
|
260
|
+
var e = new c(null, { status: 0, statusText: "" });
|
|
261
261
|
return e.type = "error", e;
|
|
262
262
|
};
|
|
263
|
-
var
|
|
264
|
-
|
|
265
|
-
if (
|
|
263
|
+
var G = [301, 302, 303, 307, 308];
|
|
264
|
+
c.redirect = function(e, t) {
|
|
265
|
+
if (G.indexOf(t) === -1)
|
|
266
266
|
throw new RangeError("Invalid status code");
|
|
267
|
-
return new
|
|
267
|
+
return new c(null, { status: t, headers: { location: e } });
|
|
268
268
|
}, u.DOMException = a.DOMException;
|
|
269
269
|
try {
|
|
270
270
|
new u.DOMException();
|
|
@@ -285,15 +285,15 @@ function z() {
|
|
|
285
285
|
o.abort();
|
|
286
286
|
}
|
|
287
287
|
o.onload = function() {
|
|
288
|
-
var
|
|
288
|
+
var l = {
|
|
289
289
|
status: o.status,
|
|
290
290
|
statusText: o.statusText,
|
|
291
|
-
headers:
|
|
291
|
+
headers: N(o.getAllResponseHeaders() || "")
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
l.url = "responseURL" in o ? o.responseURL : l.headers.get("X-Request-URL");
|
|
294
294
|
var g = "response" in o ? o.response : o.responseText;
|
|
295
295
|
setTimeout(function() {
|
|
296
|
-
r(new
|
|
296
|
+
r(new c(g, l));
|
|
297
297
|
}, 0);
|
|
298
298
|
}, o.onerror = function() {
|
|
299
299
|
setTimeout(function() {
|
|
@@ -308,33 +308,34 @@ function z() {
|
|
|
308
308
|
n(new u.DOMException("Aborted", "AbortError"));
|
|
309
309
|
}, 0);
|
|
310
310
|
};
|
|
311
|
-
function
|
|
311
|
+
function V(l) {
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return l === "" && a.location.href ? a.location.href : l;
|
|
314
314
|
} catch (g) {
|
|
315
|
-
return
|
|
315
|
+
return l;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
o.open(i.method,
|
|
319
|
-
o.setRequestHeader(
|
|
320
|
-
}) : i.headers.forEach(function(
|
|
321
|
-
o.setRequestHeader(g,
|
|
318
|
+
o.open(i.method, V(i.url), !0), i.credentials === "include" ? o.withCredentials = !0 : i.credentials === "omit" && (o.withCredentials = !1), "responseType" in o && (f.blob ? o.responseType = "blob" : f.arrayBuffer && i.headers.get("Content-Type") && i.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (o.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof s) ? Object.getOwnPropertyNames(t.headers).forEach(function(l) {
|
|
319
|
+
o.setRequestHeader(l, E(t.headers[l]));
|
|
320
|
+
}) : i.headers.forEach(function(l, g) {
|
|
321
|
+
o.setRequestHeader(g, l);
|
|
322
322
|
}), i.signal && (i.signal.addEventListener("abort", _), o.onreadystatechange = function() {
|
|
323
323
|
o.readyState === 4 && i.signal.removeEventListener("abort", _);
|
|
324
324
|
}), o.send(typeof i._bodyInit == "undefined" ? null : i._bodyInit);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = s, a.Request = m, a.Response =
|
|
327
|
+
return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = s, a.Request = m, a.Response = c), u.Headers = s, u.Request = m, u.Response = c, u.fetch = O, u;
|
|
328
328
|
})({});
|
|
329
329
|
})(y), y.fetch.ponyfill = !0, delete y.fetch.polyfill;
|
|
330
330
|
var h = b.fetch ? b : y;
|
|
331
331
|
d = h.fetch, d.default = h.fetch, d.fetch = h.fetch, d.Headers = h.Headers, d.Request = h.Request, d.Response = h.Response, w.exports = d;
|
|
332
332
|
}(A, A.exports)), A.exports;
|
|
333
333
|
}
|
|
334
|
-
var
|
|
335
|
-
const J = /* @__PURE__ */
|
|
336
|
-
__proto__: null
|
|
337
|
-
|
|
334
|
+
var j = X();
|
|
335
|
+
const J = /* @__PURE__ */ z(j), Q = /* @__PURE__ */ $({
|
|
336
|
+
__proto__: null,
|
|
337
|
+
default: J
|
|
338
|
+
}, [j]);
|
|
338
339
|
export {
|
|
339
|
-
|
|
340
|
+
Q as b
|
|
340
341
|
};
|
|
@@ -852,13 +852,9 @@ class Wn {
|
|
|
852
852
|
for (; Q = this.nestingRegexp.exec(A); ) {
|
|
853
853
|
let t = [];
|
|
854
854
|
E = q({}, B), E = E.replace && !S(E.replace) ? E.replace : E, E.applyPostProcessor = !1, delete E.defaultValue;
|
|
855
|
-
|
|
856
|
-
if (Q[
|
|
857
|
-
|
|
858
|
-
Q[1] = i.shift(), t = i, e = !0;
|
|
859
|
-
}
|
|
860
|
-
if (I = C(n.call(this, Q[1].trim(), E), E), I && Q[0] === A && !S(I)) return I;
|
|
861
|
-
S(I) || (I = zQ(I)), I || (this.logger.warn(`missed to resolve ${Q[1]} for nesting ${A}`), I = ""), e && (I = t.reduce((i, w) => this.format(i, w, B.lng, eA(q({}, B), {
|
|
855
|
+
const e = /{.*}/.test(Q[1]) ? Q[1].lastIndexOf("}") + 1 : Q[1].indexOf(this.formatSeparator);
|
|
856
|
+
if (e !== -1 && (t = Q[1].slice(e).split(this.formatSeparator).map((i) => i.trim()).filter(Boolean), Q[1] = Q[1].slice(0, e)), I = C(n.call(this, Q[1].trim(), E), E), I && Q[0] === A && !S(I)) return I;
|
|
857
|
+
S(I) || (I = zQ(I)), I || (this.logger.warn(`missed to resolve ${Q[1]} for nesting ${A}`), I = ""), t.length && (I = t.reduce((i, w) => this.format(i, w, B.lng, eA(q({}, B), {
|
|
862
858
|
interpolationkey: Q[1].trim()
|
|
863
859
|
})), I.trim())), A = A.replace(Q[0], I), this.regexp.lastIndex = 0;
|
|
864
860
|
}
|
|
@@ -1189,14 +1185,14 @@ class Fg extends IC {
|
|
|
1189
1185
|
w.logger = KA, w.resourceStore = this.store, w.languageUtils = i, w.pluralResolver = new Vn(i, {
|
|
1190
1186
|
prepend: this.options.pluralSeparator,
|
|
1191
1187
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1192
|
-
}), e && (!this.options.interpolation.format || this.options.interpolation.format === B.interpolation.format) && (w.formatter = Q(e), w.formatter.init(w, this.options), this.options.interpolation.format = w.formatter.format.bind(w.formatter)), w.interpolator = new Wn(this.options), w.utils = {
|
|
1188
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== B.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === B.interpolation.format) && (w.formatter = Q(e), w.formatter.init && w.formatter.init(w, this.options), this.options.interpolation.format = w.formatter.format.bind(w.formatter)), w.interpolator = new Wn(this.options), w.utils = {
|
|
1193
1189
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1194
|
-
}, w.backendConnector = new Ct(Q(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", (
|
|
1195
|
-
this.emit(
|
|
1196
|
-
}), this.modules.languageDetector && (w.languageDetector = Q(this.modules.languageDetector), w.languageDetector.init && w.languageDetector.init(w, this.options.detection, this.options)), this.modules.i18nFormat && (w.i18nFormat = Q(this.modules.i18nFormat), w.i18nFormat.init && w.i18nFormat.init(this)), this.translator = new Wg(this.services, this.options), this.translator.on("*", (
|
|
1197
|
-
this.emit(
|
|
1198
|
-
}), this.modules.external.forEach((
|
|
1199
|
-
|
|
1190
|
+
}, w.backendConnector = new Ct(Q(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", (r, ...c) => {
|
|
1191
|
+
this.emit(r, ...c);
|
|
1192
|
+
}), this.modules.languageDetector && (w.languageDetector = Q(this.modules.languageDetector), w.languageDetector.init && w.languageDetector.init(w, this.options.detection, this.options)), this.modules.i18nFormat && (w.i18nFormat = Q(this.modules.i18nFormat), w.i18nFormat.init && w.i18nFormat.init(this)), this.translator = new Wg(this.services, this.options), this.translator.on("*", (r, ...c) => {
|
|
1193
|
+
this.emit(r, ...c);
|
|
1194
|
+
}), this.modules.external.forEach((r) => {
|
|
1195
|
+
r.init && r.init(this);
|
|
1200
1196
|
});
|
|
1201
1197
|
}
|
|
1202
1198
|
if (this.format = this.options.interpolation.format, C || (C = Kg), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -1333,8 +1329,15 @@ class Fg extends IC {
|
|
|
1333
1329
|
dir(A) {
|
|
1334
1330
|
var Q, I;
|
|
1335
1331
|
if (A || (A = this.resolvedLanguage || (((Q = this.languages) == null ? void 0 : Q.length) > 0 ? this.languages[0] : this.language)), !A) return "rtl";
|
|
1332
|
+
if (Intl.Locale) {
|
|
1333
|
+
const E = new Intl.Locale(A);
|
|
1334
|
+
if (E && E.getTextInfo) {
|
|
1335
|
+
const n = E.getTextInfo();
|
|
1336
|
+
if (n && n.direction) return n.direction;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1336
1339
|
const C = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], B = ((I = this.services) == null ? void 0 : I.languageUtils) || new LQ(XQ());
|
|
1337
|
-
return C.indexOf(B.getLanguagePartFromCode(A)) > -1 || A.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1340
|
+
return A.toLowerCase().indexOf("-latn") > 1 ? "ltr" : C.indexOf(B.getLanguagePartFromCode(A)) > -1 || A.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1338
1341
|
}
|
|
1339
1342
|
static createInstance(A = {}, C) {
|
|
1340
1343
|
return new Fg(A, C);
|
|
@@ -2105,7 +2108,7 @@ typeof ActiveXObject == "function" && (typeof global != "undefined" && global.Ac
|
|
|
2105
2108
|
typeof Ag != "function" && (Ag = void 0);
|
|
2106
2109
|
if (!Ag && !yg && !$g)
|
|
2107
2110
|
try {
|
|
2108
|
-
import("./browser-ponyfill-
|
|
2111
|
+
import("./browser-ponyfill-CqQYqdsf.js").then((g) => g.b).then(function(g) {
|
|
2109
2112
|
Ag = g.default;
|
|
2110
2113
|
}).catch(function() {
|
|
2111
2114
|
});
|
|
@@ -2619,7 +2622,7 @@ function xc({
|
|
|
2619
2622
|
const B = document.createElement("div");
|
|
2620
2623
|
B.className = "wgt:max-w-[1072px] wgt:mx-auto wgt:w-full wgt:flex wgt:flex-col wgt:gap-2";
|
|
2621
2624
|
const Q = document.createElement("h2");
|
|
2622
|
-
Q.className = "
|
|
2625
|
+
Q.className = "wgt:text-sm wgt:font-semibold wgt:text-black", Q.innerText = v("selectProvider"), B.appendChild(Q);
|
|
2623
2626
|
const I = document.createElement("div");
|
|
2624
2627
|
I.className = "wgt:grid wgt:grid-cols-3 wgt:gap-4", B.appendChild(I);
|
|
2625
2628
|
function E() {
|
|
@@ -2712,7 +2715,7 @@ function JA({
|
|
|
2712
2715
|
i.appendChild(r);
|
|
2713
2716
|
}
|
|
2714
2717
|
const w = document.createElement("input");
|
|
2715
|
-
w.type = C, w.name = g, w.id = g, w.value = A, w.placeholder = B, w.readOnly = t, w.className = [
|
|
2718
|
+
w.type = C, w.name = g, w.id = g, w.value = A, w.placeholder = B, w.readOnly = t, w.autocomplete = "off", w.autocapitalize = "off", w.spellcheck = !1, w.className = [
|
|
2716
2719
|
"wgt:col-span-4",
|
|
2717
2720
|
"wgt:w-full",
|
|
2718
2721
|
"wgt:border",
|
|
@@ -3509,6 +3512,8 @@ function wC(g, A, C) {
|
|
|
3509
3512
|
if (c === null) return "";
|
|
3510
3513
|
if (k.isDate(c))
|
|
3511
3514
|
return c.toISOString();
|
|
3515
|
+
if (k.isBoolean(c))
|
|
3516
|
+
return c.toString();
|
|
3512
3517
|
if (!t && k.isBlob(c))
|
|
3513
3518
|
throw new x("Blob is not supported. Use a Buffer instead.");
|
|
3514
3519
|
return k.isArrayBuffer(c) || k.isTypedArray(c) ? t && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
|
|
@@ -4446,7 +4451,7 @@ const PD = (g) => K(null, null, function* () {
|
|
|
4446
4451
|
duplex: "half",
|
|
4447
4452
|
credentials: J ? w : void 0
|
|
4448
4453
|
}));
|
|
4449
|
-
let a = yield fetch(c);
|
|
4454
|
+
let a = yield fetch(c, o);
|
|
4450
4455
|
const f = hB && (e === "stream" || e === "response");
|
|
4451
4456
|
if (hB && (n || f && s)) {
|
|
4452
4457
|
const d = {};
|
|
@@ -4551,7 +4556,7 @@ function cI(g) {
|
|
|
4551
4556
|
), B.response.headers = HA.from(B.response.headers))), Promise.reject(B);
|
|
4552
4557
|
});
|
|
4553
4558
|
}
|
|
4554
|
-
const gn = "1.
|
|
4559
|
+
const gn = "1.10.0", rC = {};
|
|
4555
4560
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((g, A) => {
|
|
4556
4561
|
rC[g] = function(B) {
|
|
4557
4562
|
return typeof B === g || "a" + (A < 1 ? "n " : " ") + g;
|
|
@@ -8427,7 +8432,7 @@ function HB({
|
|
|
8427
8432
|
const t = document.createElement("h2");
|
|
8428
8433
|
t.id = "success-popup-title", t.className = "wgt:mt-4 wgt:text-center wgt:text-xl wgt:font-semibold wgt:text-gray-800", t.innerText = g, I.appendChild(t);
|
|
8429
8434
|
const e = document.createElement("button");
|
|
8430
|
-
e.type = "button", e.innerText = A, e.className = `wgt:mt-6 wgt:w-full wgt:rounded wgt:px-4 wgt:py-2 wgt:text-white wgt:focus:outline-none${B ? "wgt:bg-primary" : " wgt:bg-red-500"}`, e.addEventListener("click", () => {
|
|
8435
|
+
e.type = "button", e.innerText = A, e.className = `wgt:mt-6 wgt:w-full wgt:rounded wgt:px-4 wgt:py-2 wgt:text-white wgt:focus:outline-none${B ? " wgt:bg-primary" : " wgt:bg-red-500"}`, e.addEventListener("click", () => {
|
|
8431
8436
|
w();
|
|
8432
8437
|
}), I.appendChild(e);
|
|
8433
8438
|
function i() {
|
|
@@ -10705,6 +10710,7 @@ function Yn(g) {
|
|
|
10705
10710
|
export {
|
|
10706
10711
|
Ga as a,
|
|
10707
10712
|
za as c,
|
|
10713
|
+
Qn as g,
|
|
10708
10714
|
Oa as i,
|
|
10709
10715
|
ln as r,
|
|
10710
10716
|
kn as s,
|
package/dist/index.esm.js
CHANGED