ode-explorer 1.4.8 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2937 -607
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +198 -199
- package/lib/DeleteModal.js +3 -3
- package/lib/FolderModal.js +22 -23
- package/lib/Library.js +1 -1
- package/lib/MoveModal.js +6 -6
- package/lib/ResourcesList.js +207 -71
- package/lib/features/ActionBar/useActionBar.d.ts +1 -4
- package/lib/index2.js +249 -250
- package/package.json +21 -7
- package/lib/ExportModal.js +0 -53
- package/lib/features/ActionBar/Export/ExportModal.d.ts +0 -11
- package/lib/features/ActionBar/Export/useExportModal.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -68,9 +68,9 @@ function _mergeNamespaces(n2, m2) {
|
|
|
68
68
|
if (mutation.type !== "childList") {
|
|
69
69
|
continue;
|
|
70
70
|
}
|
|
71
|
-
for (const
|
|
72
|
-
if (
|
|
73
|
-
processPreload(
|
|
71
|
+
for (const node2 of mutation.addedNodes) {
|
|
72
|
+
if (node2.tagName === "LINK" && node2.rel === "modulepreload")
|
|
73
|
+
processPreload(node2);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}).observe(document, { childList: true, subtree: true });
|
|
@@ -96,8 +96,8 @@ function _mergeNamespaces(n2, m2) {
|
|
|
96
96
|
fetch(link.href, fetchOpts);
|
|
97
97
|
}
|
|
98
98
|
})();
|
|
99
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
100
|
-
function getDefaultExportFromCjs(x2) {
|
|
99
|
+
var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
100
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
101
101
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
102
102
|
}
|
|
103
103
|
function getAugmentedNamespace(n2) {
|
|
@@ -415,10 +415,10 @@ react_production_min.version = "18.2.0";
|
|
|
415
415
|
react.exports = react_production_min;
|
|
416
416
|
}
|
|
417
417
|
var reactExports = react.exports;
|
|
418
|
-
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
419
|
-
const React$
|
|
418
|
+
const React$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
|
|
419
|
+
const React$3 = /* @__PURE__ */ _mergeNamespaces({
|
|
420
420
|
__proto__: null,
|
|
421
|
-
default: React
|
|
421
|
+
default: React$2
|
|
422
422
|
}, [reactExports]);
|
|
423
423
|
/**
|
|
424
424
|
* @license React
|
|
@@ -1344,7 +1344,7 @@ class Translator extends EventEmitter$1 {
|
|
|
1344
1344
|
return false;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
function capitalize(string) {
|
|
1347
|
+
function capitalize$2(string) {
|
|
1348
1348
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1349
1349
|
}
|
|
1350
1350
|
class LanguageUtil {
|
|
@@ -1382,7 +1382,7 @@ class LanguageUtil {
|
|
|
1382
1382
|
p2[0] = p2[0].toLowerCase();
|
|
1383
1383
|
p2[1] = p2[1].toUpperCase();
|
|
1384
1384
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1385
|
-
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1385
|
+
p2[1] = capitalize$2(p2[1].toLowerCase());
|
|
1386
1386
|
} else if (p2.length === 3) {
|
|
1387
1387
|
p2[0] = p2[0].toLowerCase();
|
|
1388
1388
|
if (p2[1].length === 2)
|
|
@@ -1390,9 +1390,9 @@ class LanguageUtil {
|
|
|
1390
1390
|
if (p2[0] !== "sgn" && p2[2].length === 2)
|
|
1391
1391
|
p2[2] = p2[2].toUpperCase();
|
|
1392
1392
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1393
|
-
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1393
|
+
p2[1] = capitalize$2(p2[1].toLowerCase());
|
|
1394
1394
|
if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
|
|
1395
|
-
p2[2] = capitalize(p2[2].toLowerCase());
|
|
1395
|
+
p2[2] = capitalize$2(p2[2].toLowerCase());
|
|
1396
1396
|
}
|
|
1397
1397
|
return p2.join("-");
|
|
1398
1398
|
}
|
|
@@ -2993,7 +2993,7 @@ function requireBrowserPonyfill() {
|
|
|
2993
2993
|
return browserPonyfill.exports;
|
|
2994
2994
|
hasRequiredBrowserPonyfill = 1;
|
|
2995
2995
|
(function(module, exports) {
|
|
2996
|
-
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;
|
|
2996
|
+
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal$1 !== "undefined" && commonjsGlobal$1;
|
|
2997
2997
|
var __globalThis__ = function() {
|
|
2998
2998
|
function F2() {
|
|
2999
2999
|
this.fetch = false;
|
|
@@ -3514,8 +3514,8 @@ function requireBrowserPonyfill() {
|
|
|
3514
3514
|
(function(module, exports) {
|
|
3515
3515
|
var fetchApi2;
|
|
3516
3516
|
if (typeof fetch === "function") {
|
|
3517
|
-
if (typeof commonjsGlobal !== "undefined" && commonjsGlobal.fetch) {
|
|
3518
|
-
fetchApi2 = commonjsGlobal.fetch;
|
|
3517
|
+
if (typeof commonjsGlobal$1 !== "undefined" && commonjsGlobal$1.fetch) {
|
|
3518
|
+
fetchApi2 = commonjsGlobal$1.fetch;
|
|
3519
3519
|
} else if (typeof window !== "undefined" && window.fetch) {
|
|
3520
3520
|
fetchApi2 = window.fetch;
|
|
3521
3521
|
} else {
|
|
@@ -3531,7 +3531,7 @@ function requireBrowserPonyfill() {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
})(getFetch$1, getFetch$1.exports);
|
|
3533
3533
|
var getFetchExports = getFetch$1.exports;
|
|
3534
|
-
const getFetch = /* @__PURE__ */ getDefaultExportFromCjs(getFetchExports);
|
|
3534
|
+
const getFetch = /* @__PURE__ */ getDefaultExportFromCjs$1(getFetchExports);
|
|
3535
3535
|
const fetchNode = /* @__PURE__ */ _mergeNamespaces({
|
|
3536
3536
|
__proto__: null,
|
|
3537
3537
|
default: getFetch
|
|
@@ -4239,10 +4239,7 @@ instance.use(Backend).use(initReactI18next).init({
|
|
|
4239
4239
|
prefix: "[[",
|
|
4240
4240
|
suffix: "]]"
|
|
4241
4241
|
},
|
|
4242
|
-
debug: false
|
|
4243
|
-
react: {
|
|
4244
|
-
useSuspense: false
|
|
4245
|
-
}
|
|
4242
|
+
debug: false
|
|
4246
4243
|
});
|
|
4247
4244
|
var Subscribable = class {
|
|
4248
4245
|
constructor() {
|
|
@@ -6661,7 +6658,7 @@ var dayjs_min = { exports: {} };
|
|
|
6661
6658
|
(function(module, exports) {
|
|
6662
6659
|
!function(t2, e2) {
|
|
6663
6660
|
module.exports = e2();
|
|
6664
|
-
}(commonjsGlobal, function() {
|
|
6661
|
+
}(commonjsGlobal$1, function() {
|
|
6665
6662
|
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c6 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
|
6666
6663
|
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
6667
6664
|
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
@@ -6948,12 +6945,12 @@ var dayjs_min = { exports: {} };
|
|
|
6948
6945
|
});
|
|
6949
6946
|
})(dayjs_min);
|
|
6950
6947
|
var dayjs_minExports = dayjs_min.exports;
|
|
6951
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
6948
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs$1(dayjs_minExports);
|
|
6952
6949
|
var customParseFormat$1 = { exports: {} };
|
|
6953
6950
|
(function(module, exports) {
|
|
6954
6951
|
!function(e2, t2) {
|
|
6955
6952
|
module.exports = t2();
|
|
6956
|
-
}(commonjsGlobal, function() {
|
|
6953
|
+
}(commonjsGlobal$1, function() {
|
|
6957
6954
|
var e2 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t2 = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n2 = /\d\d/, r2 = /\d\d?/, i2 = /\d*[^-_:/,()\s\d]+/, o2 = {}, s2 = function(e3) {
|
|
6958
6955
|
return (e3 = +e3) + (e3 > 68 ? 1900 : 2e3);
|
|
6959
6956
|
};
|
|
@@ -7083,12 +7080,12 @@ var customParseFormat$1 = { exports: {} };
|
|
|
7083
7080
|
});
|
|
7084
7081
|
})(customParseFormat$1);
|
|
7085
7082
|
var customParseFormatExports = customParseFormat$1.exports;
|
|
7086
|
-
const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
|
|
7083
|
+
const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs$1(customParseFormatExports);
|
|
7087
7084
|
var relativeTime$1 = { exports: {} };
|
|
7088
7085
|
(function(module, exports) {
|
|
7089
7086
|
!function(r2, e2) {
|
|
7090
7087
|
module.exports = e2();
|
|
7091
|
-
}(commonjsGlobal, function() {
|
|
7088
|
+
}(commonjsGlobal$1, function() {
|
|
7092
7089
|
return function(r2, e2, t2) {
|
|
7093
7090
|
r2 = r2 || {};
|
|
7094
7091
|
var n2 = e2.prototype, o2 = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
@@ -7128,12 +7125,12 @@ var relativeTime$1 = { exports: {} };
|
|
|
7128
7125
|
});
|
|
7129
7126
|
})(relativeTime$1);
|
|
7130
7127
|
var relativeTimeExports = relativeTime$1.exports;
|
|
7131
|
-
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
7128
|
+
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs$1(relativeTimeExports);
|
|
7132
7129
|
var de$2 = { exports: {} };
|
|
7133
7130
|
(function(module, exports) {
|
|
7134
7131
|
!function(e2, n2) {
|
|
7135
7132
|
module.exports = n2(dayjs_minExports);
|
|
7136
|
-
}(commonjsGlobal, function(e2) {
|
|
7133
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7137
7134
|
function n2(e3) {
|
|
7138
7135
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7139
7136
|
}
|
|
@@ -7152,7 +7149,7 @@ var es = { exports: {} };
|
|
|
7152
7149
|
(function(module, exports) {
|
|
7153
7150
|
!function(e2, o2) {
|
|
7154
7151
|
module.exports = o2(dayjs_minExports);
|
|
7155
|
-
}(commonjsGlobal, function(e2) {
|
|
7152
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7156
7153
|
function o2(e3) {
|
|
7157
7154
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7158
7155
|
}
|
|
@@ -7166,7 +7163,7 @@ var fr = { exports: {} };
|
|
|
7166
7163
|
(function(module, exports) {
|
|
7167
7164
|
!function(e2, n2) {
|
|
7168
7165
|
module.exports = n2(dayjs_minExports);
|
|
7169
|
-
}(commonjsGlobal, function(e2) {
|
|
7166
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7170
7167
|
function n2(e3) {
|
|
7171
7168
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7172
7169
|
}
|
|
@@ -7180,7 +7177,7 @@ var it = { exports: {} };
|
|
|
7180
7177
|
(function(module, exports) {
|
|
7181
7178
|
!function(e2, o2) {
|
|
7182
7179
|
module.exports = o2(dayjs_minExports);
|
|
7183
|
-
}(commonjsGlobal, function(e2) {
|
|
7180
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7184
7181
|
function o2(e3) {
|
|
7185
7182
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7186
7183
|
}
|
|
@@ -7194,7 +7191,7 @@ var pt = { exports: {} };
|
|
|
7194
7191
|
(function(module, exports) {
|
|
7195
7192
|
!function(e2, a2) {
|
|
7196
7193
|
module.exports = a2(dayjs_minExports);
|
|
7197
|
-
}(commonjsGlobal, function(e2) {
|
|
7194
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7198
7195
|
function a2(e3) {
|
|
7199
7196
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7200
7197
|
}
|
|
@@ -7231,7 +7228,7 @@ var uaParser = { exports: {} };
|
|
|
7231
7228
|
return str.toLowerCase();
|
|
7232
7229
|
}, majorize = function(version) {
|
|
7233
7230
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
7234
|
-
},
|
|
7231
|
+
}, trim2 = function(str, len) {
|
|
7235
7232
|
if (typeof str === STR_TYPE) {
|
|
7236
7233
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
7237
7234
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
@@ -8067,7 +8064,7 @@ var uaParser = { exports: {} };
|
|
|
8067
8064
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
8068
8065
|
// HbbTV devices
|
|
8069
8066
|
],
|
|
8070
|
-
[[VENDOR,
|
|
8067
|
+
[[VENDOR, trim2], [MODEL, trim2], [TYPE2, SMARTTV]],
|
|
8071
8068
|
[
|
|
8072
8069
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
8073
8070
|
// SmartTV from Unidentified Vendors
|
|
@@ -8411,7 +8408,7 @@ var uaParser = { exports: {} };
|
|
|
8411
8408
|
return _ua;
|
|
8412
8409
|
};
|
|
8413
8410
|
this.setUA = function(ua3) {
|
|
8414
|
-
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ?
|
|
8411
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim2(ua3, UA_MAX_LENGTH) : ua3;
|
|
8415
8412
|
return this;
|
|
8416
8413
|
};
|
|
8417
8414
|
this.setUA(_ua);
|
|
@@ -8443,7 +8440,7 @@ var uaParser = { exports: {} };
|
|
|
8443
8440
|
}
|
|
8444
8441
|
};
|
|
8445
8442
|
}
|
|
8446
|
-
})(typeof window === "object" ? window : commonjsGlobal);
|
|
8443
|
+
})(typeof window === "object" ? window : commonjsGlobal$1);
|
|
8447
8444
|
})(uaParser, uaParser.exports);
|
|
8448
8445
|
let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e$2, l$2 = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, a$1 = /\/\*[^]*?\*\/| +/g, n$4 = /\n+/g, o$1 = (e2, t2) => {
|
|
8449
8446
|
let r2 = "", l2 = "", a2 = "";
|
|
@@ -8460,7 +8457,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8460
8457
|
return t2;
|
|
8461
8458
|
}
|
|
8462
8459
|
return e2;
|
|
8463
|
-
}, i$
|
|
8460
|
+
}, i$2 = (e2, t2, r2, i2, p2) => {
|
|
8464
8461
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
8465
8462
|
let t3 = 0, r3 = 11;
|
|
8466
8463
|
for (; t3 < e3.length; )
|
|
@@ -8490,7 +8487,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8490
8487
|
}, "");
|
|
8491
8488
|
function u$4(e2) {
|
|
8492
8489
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
8493
|
-
return i$
|
|
8490
|
+
return i$2(l2.unshift ? l2.raw ? p$4(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t$3(r2.target), r2.g, r2.o, r2.k);
|
|
8494
8491
|
}
|
|
8495
8492
|
let d$1, f$1, g$1;
|
|
8496
8493
|
u$4.bind({ g: 1 });
|
|
@@ -8972,7 +8969,35 @@ const SvgAlertCircle = ({
|
|
|
8972
8969
|
)
|
|
8973
8970
|
]
|
|
8974
8971
|
}
|
|
8975
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
8972
|
+
), SvgBookmark$1 = SvgBookmark, SvgBurgerMenu = ({
|
|
8973
|
+
title,
|
|
8974
|
+
titleId,
|
|
8975
|
+
...props
|
|
8976
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8977
|
+
"svg",
|
|
8978
|
+
{
|
|
8979
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8980
|
+
width: "24",
|
|
8981
|
+
height: "24",
|
|
8982
|
+
fill: "none",
|
|
8983
|
+
viewBox: "0 0 24 24",
|
|
8984
|
+
"aria-hidden": "true",
|
|
8985
|
+
"aria-labelledby": titleId,
|
|
8986
|
+
...props,
|
|
8987
|
+
children: [
|
|
8988
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
8989
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8990
|
+
"path",
|
|
8991
|
+
{
|
|
8992
|
+
fill: "currentColor",
|
|
8993
|
+
fillRule: "evenodd",
|
|
8994
|
+
d: "M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",
|
|
8995
|
+
clipRule: "evenodd"
|
|
8996
|
+
}
|
|
8997
|
+
)
|
|
8998
|
+
]
|
|
8999
|
+
}
|
|
9000
|
+
), SvgBurgerMenu$1 = SvgBurgerMenu, SvgClose = ({
|
|
8976
9001
|
title,
|
|
8977
9002
|
titleId,
|
|
8978
9003
|
...props
|
|
@@ -16868,8 +16893,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16868
16893
|
required: "required",
|
|
16869
16894
|
validate: "validate"
|
|
16870
16895
|
};
|
|
16871
|
-
const HookFormContext = React.createContext(null);
|
|
16872
|
-
const useFormContext = () => React.useContext(HookFormContext);
|
|
16896
|
+
const HookFormContext = React$2.createContext(null);
|
|
16897
|
+
const useFormContext = () => React$2.useContext(HookFormContext);
|
|
16873
16898
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16874
16899
|
const result = {
|
|
16875
16900
|
defaultValues: control._defaultValues
|
|
@@ -16897,9 +16922,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16897
16922
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16898
16923
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16899
16924
|
function useSubscribe(props) {
|
|
16900
|
-
const _props = React.useRef(props);
|
|
16925
|
+
const _props = React$2.useRef(props);
|
|
16901
16926
|
_props.current = props;
|
|
16902
|
-
React.useEffect(() => {
|
|
16927
|
+
React$2.useEffect(() => {
|
|
16903
16928
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16904
16929
|
next: _props.current.next
|
|
16905
16930
|
});
|
|
@@ -16911,9 +16936,9 @@ function useSubscribe(props) {
|
|
|
16911
16936
|
function useFormState(props) {
|
|
16912
16937
|
const methods = useFormContext();
|
|
16913
16938
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16914
|
-
const [formState, updateFormState] = React.useState(control._formState);
|
|
16915
|
-
const _mounted = React.useRef(true);
|
|
16916
|
-
const _localProxyFormState = React.useRef({
|
|
16939
|
+
const [formState, updateFormState] = React$2.useState(control._formState);
|
|
16940
|
+
const _mounted = React$2.useRef(true);
|
|
16941
|
+
const _localProxyFormState = React$2.useRef({
|
|
16917
16942
|
isDirty: false,
|
|
16918
16943
|
isLoading: false,
|
|
16919
16944
|
dirtyFields: false,
|
|
@@ -16922,7 +16947,7 @@ function useFormState(props) {
|
|
|
16922
16947
|
isValid: false,
|
|
16923
16948
|
errors: false
|
|
16924
16949
|
});
|
|
16925
|
-
const _name = React.useRef(name);
|
|
16950
|
+
const _name = React$2.useRef(name);
|
|
16926
16951
|
_name.current = name;
|
|
16927
16952
|
useSubscribe({
|
|
16928
16953
|
disabled,
|
|
@@ -16932,7 +16957,7 @@ function useFormState(props) {
|
|
|
16932
16957
|
}),
|
|
16933
16958
|
subject: control._subjects.state
|
|
16934
16959
|
});
|
|
16935
|
-
React.useEffect(() => {
|
|
16960
|
+
React$2.useEffect(() => {
|
|
16936
16961
|
_mounted.current = true;
|
|
16937
16962
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16938
16963
|
return () => {
|
|
@@ -16956,7 +16981,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
|
|
|
16956
16981
|
function useWatch(props) {
|
|
16957
16982
|
const methods = useFormContext();
|
|
16958
16983
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
16959
|
-
const _name = React.useRef(name);
|
|
16984
|
+
const _name = React$2.useRef(name);
|
|
16960
16985
|
_name.current = name;
|
|
16961
16986
|
useSubscribe({
|
|
16962
16987
|
disabled,
|
|
@@ -16967,8 +16992,8 @@ function useWatch(props) {
|
|
|
16967
16992
|
}
|
|
16968
16993
|
}
|
|
16969
16994
|
});
|
|
16970
|
-
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
16971
|
-
React.useEffect(() => control._removeUnmounted());
|
|
16995
|
+
const [value, updateValue] = React$2.useState(control._getWatch(name, defaultValue2));
|
|
16996
|
+
React$2.useEffect(() => control._removeUnmounted());
|
|
16972
16997
|
return value;
|
|
16973
16998
|
}
|
|
16974
16999
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17004,12 +17029,12 @@ function useController(props) {
|
|
|
17004
17029
|
control,
|
|
17005
17030
|
name
|
|
17006
17031
|
});
|
|
17007
|
-
const _registerProps = React.useRef(control.register(name, {
|
|
17032
|
+
const _registerProps = React$2.useRef(control.register(name, {
|
|
17008
17033
|
...props.rules,
|
|
17009
17034
|
value,
|
|
17010
17035
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17011
17036
|
}));
|
|
17012
|
-
React.useEffect(() => {
|
|
17037
|
+
React$2.useEffect(() => {
|
|
17013
17038
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17014
17039
|
const updateMounted = (name2, value2) => {
|
|
17015
17040
|
const field = get(control._fields, name2);
|
|
@@ -17029,7 +17054,7 @@ function useController(props) {
|
|
|
17029
17054
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17030
17055
|
};
|
|
17031
17056
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17032
|
-
React.useEffect(() => {
|
|
17057
|
+
React$2.useEffect(() => {
|
|
17033
17058
|
if (get(control._fields, name)) {
|
|
17034
17059
|
control._updateDisabledField({
|
|
17035
17060
|
disabled,
|
|
@@ -17043,15 +17068,15 @@ function useController(props) {
|
|
|
17043
17068
|
field: {
|
|
17044
17069
|
name,
|
|
17045
17070
|
value,
|
|
17046
|
-
...isBoolean$1(disabled) ||
|
|
17047
|
-
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17071
|
+
...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
|
|
17072
|
+
onChange: React$2.useCallback((event) => _registerProps.current.onChange({
|
|
17048
17073
|
target: {
|
|
17049
17074
|
value: getEventValue(event),
|
|
17050
17075
|
name
|
|
17051
17076
|
},
|
|
17052
17077
|
type: EVENTS.CHANGE
|
|
17053
17078
|
}), [name]),
|
|
17054
|
-
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17079
|
+
onBlur: React$2.useCallback(() => _registerProps.current.onBlur({
|
|
17055
17080
|
target: {
|
|
17056
17081
|
value: get(control._formValues, name),
|
|
17057
17082
|
name
|
|
@@ -17557,7 +17582,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
17557
17582
|
touchedFields: {},
|
|
17558
17583
|
dirtyFields: {},
|
|
17559
17584
|
errors: _options.errors || {},
|
|
17560
|
-
disabled: false
|
|
17585
|
+
disabled: _options.disabled || false
|
|
17561
17586
|
};
|
|
17562
17587
|
let _fields = {};
|
|
17563
17588
|
let _defaultValues = isObject$3(_options.defaultValues) || isObject$3(_options.values) ? cloneObject(_options.defaultValues || _options.values) || {} : {};
|
|
@@ -17588,7 +17613,6 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
17588
17613
|
array: createSubject(),
|
|
17589
17614
|
state: createSubject()
|
|
17590
17615
|
};
|
|
17591
|
-
const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;
|
|
17592
17616
|
const validationModeBeforeSubmit = getValidationModes(_options.mode);
|
|
17593
17617
|
const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
|
|
17594
17618
|
const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;
|
|
@@ -18116,17 +18140,17 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18116
18140
|
const resetField = (name, options = {}) => {
|
|
18117
18141
|
if (get(_fields, name)) {
|
|
18118
18142
|
if (isUndefined(options.defaultValue)) {
|
|
18119
|
-
setValue(name, get(_defaultValues, name));
|
|
18143
|
+
setValue(name, cloneObject(get(_defaultValues, name)));
|
|
18120
18144
|
} else {
|
|
18121
18145
|
setValue(name, options.defaultValue);
|
|
18122
|
-
set(_defaultValues, name, options.defaultValue);
|
|
18146
|
+
set(_defaultValues, name, cloneObject(options.defaultValue));
|
|
18123
18147
|
}
|
|
18124
18148
|
if (!options.keepTouched) {
|
|
18125
18149
|
unset(_formState.touchedFields, name);
|
|
18126
18150
|
}
|
|
18127
18151
|
if (!options.keepDirty) {
|
|
18128
18152
|
unset(_formState.dirtyFields, name);
|
|
18129
|
-
_formState.isDirty = options.defaultValue ? _getDirty(name, get(_defaultValues, name)) : _getDirty();
|
|
18153
|
+
_formState.isDirty = options.defaultValue ? _getDirty(name, cloneObject(get(_defaultValues, name))) : _getDirty();
|
|
18130
18154
|
}
|
|
18131
18155
|
if (!options.keepError) {
|
|
18132
18156
|
unset(_formState.errors, name);
|
|
@@ -18143,7 +18167,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18143
18167
|
_defaultValues = updatedValues;
|
|
18144
18168
|
}
|
|
18145
18169
|
if (!keepStateOptions.keepValues) {
|
|
18146
|
-
if (keepStateOptions.keepDirtyValues
|
|
18170
|
+
if (keepStateOptions.keepDirtyValues) {
|
|
18147
18171
|
for (const fieldName of _names.mount) {
|
|
18148
18172
|
get(_formState.dirtyFields, fieldName) ? set(values, fieldName, get(_formValues, fieldName)) : setValue(fieldName, get(values, fieldName));
|
|
18149
18173
|
}
|
|
@@ -18294,9 +18318,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18294
18318
|
};
|
|
18295
18319
|
}
|
|
18296
18320
|
function useForm(props = {}) {
|
|
18297
|
-
const _formControl = React.useRef();
|
|
18298
|
-
const _values = React.useRef();
|
|
18299
|
-
const [formState, updateFormState] = React.useState({
|
|
18321
|
+
const _formControl = React$2.useRef();
|
|
18322
|
+
const _values = React$2.useRef();
|
|
18323
|
+
const [formState, updateFormState] = React$2.useState({
|
|
18300
18324
|
isDirty: false,
|
|
18301
18325
|
isValidating: false,
|
|
18302
18326
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18308,7 +18332,7 @@ function useForm(props = {}) {
|
|
|
18308
18332
|
dirtyFields: {},
|
|
18309
18333
|
touchedFields: {},
|
|
18310
18334
|
errors: props.errors || {},
|
|
18311
|
-
disabled: false,
|
|
18335
|
+
disabled: props.disabled || false,
|
|
18312
18336
|
defaultValues: isFunction(props.defaultValues) ? void 0 : props.defaultValues
|
|
18313
18337
|
});
|
|
18314
18338
|
if (!_formControl.current) {
|
|
@@ -18327,8 +18351,8 @@ function useForm(props = {}) {
|
|
|
18327
18351
|
}
|
|
18328
18352
|
}
|
|
18329
18353
|
});
|
|
18330
|
-
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18331
|
-
React.useEffect(() => {
|
|
18354
|
+
React$2.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18355
|
+
React$2.useEffect(() => {
|
|
18332
18356
|
if (control._proxyFormState.isDirty) {
|
|
18333
18357
|
const isDirty = control._getDirty();
|
|
18334
18358
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18338,7 +18362,7 @@ function useForm(props = {}) {
|
|
|
18338
18362
|
}
|
|
18339
18363
|
}
|
|
18340
18364
|
}, [control, formState.isDirty]);
|
|
18341
|
-
React.useEffect(() => {
|
|
18365
|
+
React$2.useEffect(() => {
|
|
18342
18366
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18343
18367
|
control._reset(props.values, control._options.resetOptions);
|
|
18344
18368
|
_values.current = props.values;
|
|
@@ -18347,12 +18371,12 @@ function useForm(props = {}) {
|
|
|
18347
18371
|
control._resetDefaultValues();
|
|
18348
18372
|
}
|
|
18349
18373
|
}, [props.values, control]);
|
|
18350
|
-
React.useEffect(() => {
|
|
18374
|
+
React$2.useEffect(() => {
|
|
18351
18375
|
if (props.errors) {
|
|
18352
18376
|
control._setErrors(props.errors);
|
|
18353
18377
|
}
|
|
18354
18378
|
}, [props.errors, control]);
|
|
18355
|
-
React.useEffect(() => {
|
|
18379
|
+
React$2.useEffect(() => {
|
|
18356
18380
|
if (!control._state.mount) {
|
|
18357
18381
|
control._updateValid();
|
|
18358
18382
|
control._state.mount = true;
|
|
@@ -18366,9 +18390,9 @@ function useForm(props = {}) {
|
|
|
18366
18390
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18367
18391
|
return _formControl.current;
|
|
18368
18392
|
}
|
|
18369
|
-
function getWindow$3(
|
|
18393
|
+
function getWindow$3(node2) {
|
|
18370
18394
|
var _node$ownerDocument;
|
|
18371
|
-
return (
|
|
18395
|
+
return (node2 == null ? void 0 : (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18372
18396
|
}
|
|
18373
18397
|
function isElement$3(value) {
|
|
18374
18398
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18931,19 +18955,19 @@ const size$2 = function(options) {
|
|
|
18931
18955
|
}
|
|
18932
18956
|
};
|
|
18933
18957
|
};
|
|
18934
|
-
function getNodeName$1(
|
|
18935
|
-
if (isNode$1(
|
|
18936
|
-
return (
|
|
18958
|
+
function getNodeName$1(node2) {
|
|
18959
|
+
if (isNode$1(node2)) {
|
|
18960
|
+
return (node2.nodeName || "").toLowerCase();
|
|
18937
18961
|
}
|
|
18938
18962
|
return "#document";
|
|
18939
18963
|
}
|
|
18940
|
-
function getWindow$2(
|
|
18964
|
+
function getWindow$2(node2) {
|
|
18941
18965
|
var _node$ownerDocument;
|
|
18942
|
-
return (
|
|
18966
|
+
return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18943
18967
|
}
|
|
18944
|
-
function getDocumentElement$1(
|
|
18968
|
+
function getDocumentElement$1(node2) {
|
|
18945
18969
|
var _ref;
|
|
18946
|
-
return (_ref = (isNode$1(
|
|
18970
|
+
return (_ref = (isNode$1(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
18947
18971
|
}
|
|
18948
18972
|
function isNode$1(value) {
|
|
18949
18973
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -18992,8 +19016,8 @@ function isWebKit() {
|
|
|
18992
19016
|
return false;
|
|
18993
19017
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
18994
19018
|
}
|
|
18995
|
-
function isLastTraversableNode(
|
|
18996
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
19019
|
+
function isLastTraversableNode(node2) {
|
|
19020
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node2));
|
|
18997
19021
|
}
|
|
18998
19022
|
function getComputedStyle$3(element) {
|
|
18999
19023
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19010,30 +19034,30 @@ function getNodeScroll$1(element) {
|
|
|
19010
19034
|
scrollTop: element.pageYOffset
|
|
19011
19035
|
};
|
|
19012
19036
|
}
|
|
19013
|
-
function getParentNode$1(
|
|
19014
|
-
if (getNodeName$1(
|
|
19015
|
-
return
|
|
19037
|
+
function getParentNode$1(node2) {
|
|
19038
|
+
if (getNodeName$1(node2) === "html") {
|
|
19039
|
+
return node2;
|
|
19016
19040
|
}
|
|
19017
19041
|
const result = (
|
|
19018
19042
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
isShadowRoot$1(
|
|
19022
|
-
getDocumentElement$1(
|
|
19043
|
+
node2.assignedSlot || // DOM Element detected.
|
|
19044
|
+
node2.parentNode || // ShadowRoot detected.
|
|
19045
|
+
isShadowRoot$1(node2) && node2.host || // Fallback.
|
|
19046
|
+
getDocumentElement$1(node2)
|
|
19023
19047
|
);
|
|
19024
19048
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19025
19049
|
}
|
|
19026
|
-
function getNearestOverflowAncestor(
|
|
19027
|
-
const parentNode = getParentNode$1(
|
|
19050
|
+
function getNearestOverflowAncestor(node2) {
|
|
19051
|
+
const parentNode = getParentNode$1(node2);
|
|
19028
19052
|
if (isLastTraversableNode(parentNode)) {
|
|
19029
|
-
return
|
|
19053
|
+
return node2.ownerDocument ? node2.ownerDocument.body : node2.body;
|
|
19030
19054
|
}
|
|
19031
19055
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19032
19056
|
return parentNode;
|
|
19033
19057
|
}
|
|
19034
19058
|
return getNearestOverflowAncestor(parentNode);
|
|
19035
19059
|
}
|
|
19036
|
-
function getOverflowAncestors(
|
|
19060
|
+
function getOverflowAncestors(node2, list, traverseIframes) {
|
|
19037
19061
|
var _node$ownerDocument2;
|
|
19038
19062
|
if (list === void 0) {
|
|
19039
19063
|
list = [];
|
|
@@ -19041,8 +19065,8 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
19041
19065
|
if (traverseIframes === void 0) {
|
|
19042
19066
|
traverseIframes = true;
|
|
19043
19067
|
}
|
|
19044
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19045
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19068
|
+
const scrollableAncestor = getNearestOverflowAncestor(node2);
|
|
19069
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19046
19070
|
const win = getWindow$2(scrollableAncestor);
|
|
19047
19071
|
if (isBody) {
|
|
19048
19072
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -19714,16 +19738,16 @@ function useFloating$1(options) {
|
|
|
19714
19738
|
}
|
|
19715
19739
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
19716
19740
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
19717
|
-
const setReference = reactExports.useCallback((
|
|
19718
|
-
if (
|
|
19719
|
-
referenceRef.current =
|
|
19720
|
-
_setReference(
|
|
19741
|
+
const setReference = reactExports.useCallback((node2) => {
|
|
19742
|
+
if (node2 !== referenceRef.current) {
|
|
19743
|
+
referenceRef.current = node2;
|
|
19744
|
+
_setReference(node2);
|
|
19721
19745
|
}
|
|
19722
19746
|
}, []);
|
|
19723
|
-
const setFloating = reactExports.useCallback((
|
|
19724
|
-
if (
|
|
19725
|
-
floatingRef.current =
|
|
19726
|
-
_setFloating(
|
|
19747
|
+
const setFloating = reactExports.useCallback((node2) => {
|
|
19748
|
+
if (node2 !== floatingRef.current) {
|
|
19749
|
+
floatingRef.current = node2;
|
|
19750
|
+
_setFloating(node2);
|
|
19727
19751
|
}
|
|
19728
19752
|
}, []);
|
|
19729
19753
|
const referenceEl = externalReference || _reference;
|
|
@@ -19861,7 +19885,7 @@ function useFloatingId() {
|
|
|
19861
19885
|
}, []);
|
|
19862
19886
|
return id2;
|
|
19863
19887
|
}
|
|
19864
|
-
const useReactId = React$
|
|
19888
|
+
const useReactId = React$3[/* @__PURE__ */ "useId".toString()];
|
|
19865
19889
|
const useId = useReactId || useFloatingId;
|
|
19866
19890
|
function createPubSub() {
|
|
19867
19891
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -19881,7 +19905,7 @@ function createPubSub() {
|
|
|
19881
19905
|
}
|
|
19882
19906
|
const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
19883
19907
|
const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
|
|
19884
|
-
const useInsertionEffect = React$
|
|
19908
|
+
const useInsertionEffect = React$3[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
19885
19909
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
19886
19910
|
function useEffectEvent(callback) {
|
|
19887
19911
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -19920,23 +19944,23 @@ function useFloating(options) {
|
|
|
19920
19944
|
const dataRef = reactExports.useRef({});
|
|
19921
19945
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
19922
19946
|
const floatingId = useId();
|
|
19923
|
-
const setPositionReference = reactExports.useCallback((
|
|
19924
|
-
const positionReference = isElement$3(
|
|
19925
|
-
getBoundingClientRect: () =>
|
|
19926
|
-
contextElement:
|
|
19927
|
-
} :
|
|
19947
|
+
const setPositionReference = reactExports.useCallback((node2) => {
|
|
19948
|
+
const positionReference = isElement$3(node2) ? {
|
|
19949
|
+
getBoundingClientRect: () => node2.getBoundingClientRect(),
|
|
19950
|
+
contextElement: node2
|
|
19951
|
+
} : node2;
|
|
19928
19952
|
position.refs.setReference(positionReference);
|
|
19929
19953
|
}, [position.refs]);
|
|
19930
|
-
const setReference = reactExports.useCallback((
|
|
19931
|
-
if (isElement$3(
|
|
19932
|
-
domReferenceRef.current =
|
|
19933
|
-
setDomReference(
|
|
19954
|
+
const setReference = reactExports.useCallback((node2) => {
|
|
19955
|
+
if (isElement$3(node2) || node2 === null) {
|
|
19956
|
+
domReferenceRef.current = node2;
|
|
19957
|
+
setDomReference(node2);
|
|
19934
19958
|
}
|
|
19935
19959
|
if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
19936
19960
|
// `null` to support `positionReference` + an unstable `reference`
|
|
19937
19961
|
// callback ref.
|
|
19938
|
-
|
|
19939
|
-
position.refs.setReference(
|
|
19962
|
+
node2 !== null && !isElement$3(node2)) {
|
|
19963
|
+
position.refs.setReference(node2);
|
|
19940
19964
|
}
|
|
19941
19965
|
}, [position.refs]);
|
|
19942
19966
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -19961,9 +19985,9 @@ function useFloating(options) {
|
|
|
19961
19985
|
onOpenChange
|
|
19962
19986
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
19963
19987
|
index(() => {
|
|
19964
|
-
const
|
|
19965
|
-
if (
|
|
19966
|
-
|
|
19988
|
+
const node2 = tree == null ? void 0 : tree.nodesRef.current.find((node22) => node22.id === nodeId);
|
|
19989
|
+
if (node2) {
|
|
19990
|
+
node2.context = context2;
|
|
19967
19991
|
}
|
|
19968
19992
|
});
|
|
19969
19993
|
return reactExports.useMemo(() => ({
|
|
@@ -20963,7 +20987,7 @@ function usePrev(value) {
|
|
|
20963
20987
|
var $node = Symbol.for("Animated:node");
|
|
20964
20988
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
20965
20989
|
var getAnimated = (owner) => owner && owner[$node];
|
|
20966
|
-
var setAnimated = (owner,
|
|
20990
|
+
var setAnimated = (owner, node2) => defineHidden(owner, $node, node2);
|
|
20967
20991
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
20968
20992
|
var Animated = class {
|
|
20969
20993
|
constructor() {
|
|
@@ -21090,7 +21114,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21090
21114
|
}
|
|
21091
21115
|
reset() {
|
|
21092
21116
|
if (this.payload) {
|
|
21093
|
-
each(this.payload, (
|
|
21117
|
+
each(this.payload, (node2) => node2.reset());
|
|
21094
21118
|
}
|
|
21095
21119
|
}
|
|
21096
21120
|
/** Create a payload set. */
|
|
@@ -21108,7 +21132,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21108
21132
|
}
|
|
21109
21133
|
const payload = getPayload(source);
|
|
21110
21134
|
if (payload) {
|
|
21111
|
-
each(payload, (
|
|
21135
|
+
each(payload, (node2) => this.add(node2));
|
|
21112
21136
|
}
|
|
21113
21137
|
}
|
|
21114
21138
|
};
|
|
@@ -21121,12 +21145,12 @@ var AnimatedArray = class extends AnimatedObject {
|
|
|
21121
21145
|
return new AnimatedArray(source);
|
|
21122
21146
|
}
|
|
21123
21147
|
getValue() {
|
|
21124
|
-
return this.source.map((
|
|
21148
|
+
return this.source.map((node2) => node2.getValue());
|
|
21125
21149
|
}
|
|
21126
21150
|
setValue(source) {
|
|
21127
21151
|
const payload = this.getPayload();
|
|
21128
21152
|
if (source.length == payload.length) {
|
|
21129
|
-
return payload.map((
|
|
21153
|
+
return payload.map((node2, i2) => node2.setValue(source[i2])).some(Boolean);
|
|
21130
21154
|
}
|
|
21131
21155
|
super.setValue(source.map(makeAnimated));
|
|
21132
21156
|
return true;
|
|
@@ -21661,8 +21685,8 @@ var FrameValue = class extends FluidValue {
|
|
|
21661
21685
|
}
|
|
21662
21686
|
/** Get the current value */
|
|
21663
21687
|
get() {
|
|
21664
|
-
const
|
|
21665
|
-
return
|
|
21688
|
+
const node2 = getAnimated(this);
|
|
21689
|
+
return node2 && node2.getValue();
|
|
21666
21690
|
}
|
|
21667
21691
|
/** Create a spring that maps our value to another value */
|
|
21668
21692
|
to(...args) {
|
|
@@ -21752,8 +21776,8 @@ var SpringValue = class extends FrameValue {
|
|
|
21752
21776
|
return getFluidValue(this.animation.to);
|
|
21753
21777
|
}
|
|
21754
21778
|
get velocity() {
|
|
21755
|
-
const
|
|
21756
|
-
return
|
|
21779
|
+
const node2 = getAnimated(this);
|
|
21780
|
+
return node2 instanceof AnimatedValue ? node2.lastVelocity || 0 : node2.getPayload().map((node22) => node22.lastVelocity || 0);
|
|
21757
21781
|
}
|
|
21758
21782
|
/**
|
|
21759
21783
|
* When true, this value has been animated at least once.
|
|
@@ -21792,24 +21816,24 @@ var SpringValue = class extends FrameValue {
|
|
|
21792
21816
|
if (!payload && hasFluidValue(anim.to)) {
|
|
21793
21817
|
toValues = toArray(getFluidValue(anim.to));
|
|
21794
21818
|
}
|
|
21795
|
-
anim.values.forEach((
|
|
21796
|
-
if (
|
|
21819
|
+
anim.values.forEach((node22, i2) => {
|
|
21820
|
+
if (node22.done)
|
|
21797
21821
|
return;
|
|
21798
21822
|
const to2 = (
|
|
21799
21823
|
// Animated strings always go from 0 to 1.
|
|
21800
|
-
|
|
21824
|
+
node22.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
21801
21825
|
);
|
|
21802
21826
|
let finished = anim.immediate;
|
|
21803
21827
|
let position = to2;
|
|
21804
21828
|
if (!finished) {
|
|
21805
|
-
position =
|
|
21829
|
+
position = node22.lastPosition;
|
|
21806
21830
|
if (config2.tension <= 0) {
|
|
21807
|
-
|
|
21831
|
+
node22.done = true;
|
|
21808
21832
|
return;
|
|
21809
21833
|
}
|
|
21810
|
-
let elapsed =
|
|
21834
|
+
let elapsed = node22.elapsedTime += dt;
|
|
21811
21835
|
const from = anim.fromValues[i2];
|
|
21812
|
-
const v0 =
|
|
21836
|
+
const v0 = node22.v0 != null ? node22.v0 : node22.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
21813
21837
|
let velocity;
|
|
21814
21838
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
21815
21839
|
if (!is.und(config2.duration)) {
|
|
@@ -21817,30 +21841,30 @@ var SpringValue = class extends FrameValue {
|
|
|
21817
21841
|
if (config2.duration > 0) {
|
|
21818
21842
|
if (this._memoizedDuration !== config2.duration) {
|
|
21819
21843
|
this._memoizedDuration = config2.duration;
|
|
21820
|
-
if (
|
|
21821
|
-
|
|
21822
|
-
elapsed =
|
|
21844
|
+
if (node22.durationProgress > 0) {
|
|
21845
|
+
node22.elapsedTime = config2.duration * node22.durationProgress;
|
|
21846
|
+
elapsed = node22.elapsedTime += dt;
|
|
21823
21847
|
}
|
|
21824
21848
|
}
|
|
21825
21849
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
21826
21850
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
21827
|
-
|
|
21851
|
+
node22.durationProgress = p2;
|
|
21828
21852
|
}
|
|
21829
21853
|
position = from + config2.easing(p2) * (to2 - from);
|
|
21830
|
-
velocity = (position -
|
|
21854
|
+
velocity = (position - node22.lastPosition) / dt;
|
|
21831
21855
|
finished = p2 == 1;
|
|
21832
21856
|
} else if (config2.decay) {
|
|
21833
21857
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
21834
21858
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
21835
21859
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
21836
|
-
finished = Math.abs(
|
|
21860
|
+
finished = Math.abs(node22.lastPosition - position) <= precision;
|
|
21837
21861
|
velocity = v0 * e2;
|
|
21838
21862
|
} else {
|
|
21839
|
-
velocity =
|
|
21863
|
+
velocity = node22.lastVelocity == null ? v0 : node22.lastVelocity;
|
|
21840
21864
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
21841
21865
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
21842
21866
|
const canBounce = !is.und(bounceFactor);
|
|
21843
|
-
const isGrowing = from == to2 ?
|
|
21867
|
+
const isGrowing = from == to2 ? node22.v0 > 0 : from < to2;
|
|
21844
21868
|
let isMoving;
|
|
21845
21869
|
let isBouncing = false;
|
|
21846
21870
|
const step = 1;
|
|
@@ -21867,7 +21891,7 @@ var SpringValue = class extends FrameValue {
|
|
|
21867
21891
|
position = position + velocity * step;
|
|
21868
21892
|
}
|
|
21869
21893
|
}
|
|
21870
|
-
|
|
21894
|
+
node22.lastVelocity = velocity;
|
|
21871
21895
|
if (Number.isNaN(position)) {
|
|
21872
21896
|
console.warn(`Got NaN while animating:`, this);
|
|
21873
21897
|
finished = true;
|
|
@@ -21877,20 +21901,20 @@ var SpringValue = class extends FrameValue {
|
|
|
21877
21901
|
finished = false;
|
|
21878
21902
|
}
|
|
21879
21903
|
if (finished) {
|
|
21880
|
-
|
|
21904
|
+
node22.done = true;
|
|
21881
21905
|
} else {
|
|
21882
21906
|
idle = false;
|
|
21883
21907
|
}
|
|
21884
|
-
if (
|
|
21908
|
+
if (node22.setValue(position, config2.round)) {
|
|
21885
21909
|
changed = true;
|
|
21886
21910
|
}
|
|
21887
21911
|
});
|
|
21888
|
-
const
|
|
21889
|
-
const currVal =
|
|
21912
|
+
const node2 = getAnimated(this);
|
|
21913
|
+
const currVal = node2.getValue();
|
|
21890
21914
|
if (idle) {
|
|
21891
21915
|
const finalVal = getFluidValue(anim.to);
|
|
21892
21916
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
21893
|
-
|
|
21917
|
+
node2.setValue(finalVal);
|
|
21894
21918
|
this._onChange(finalVal);
|
|
21895
21919
|
} else if (changed && config2.decay) {
|
|
21896
21920
|
this._onChange(currVal);
|
|
@@ -22120,8 +22144,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22120
22144
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
22121
22145
|
);
|
|
22122
22146
|
}
|
|
22123
|
-
let
|
|
22124
|
-
if (!
|
|
22147
|
+
let node2 = getAnimated(this);
|
|
22148
|
+
if (!node2 || is.und(to2)) {
|
|
22125
22149
|
return resolve(getFinishedResult(this, true));
|
|
22126
22150
|
}
|
|
22127
22151
|
const reset = (
|
|
@@ -22136,16 +22160,16 @@ var SpringValue = class extends FrameValue {
|
|
|
22136
22160
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
22137
22161
|
if (hasToChanged) {
|
|
22138
22162
|
const nodeType = getAnimatedType(to2);
|
|
22139
|
-
if (nodeType !==
|
|
22163
|
+
if (nodeType !== node2.constructor) {
|
|
22140
22164
|
if (immediate) {
|
|
22141
|
-
|
|
22165
|
+
node2 = this._set(goal);
|
|
22142
22166
|
} else
|
|
22143
22167
|
throw Error(
|
|
22144
|
-
`Cannot animate between ${
|
|
22168
|
+
`Cannot animate between ${node2.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
22145
22169
|
);
|
|
22146
22170
|
}
|
|
22147
22171
|
}
|
|
22148
|
-
const goalType =
|
|
22172
|
+
const goalType = node2.constructor;
|
|
22149
22173
|
let started = hasFluidValue(to2);
|
|
22150
22174
|
let finished = false;
|
|
22151
22175
|
if (!started) {
|
|
@@ -22167,7 +22191,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22167
22191
|
}
|
|
22168
22192
|
if (!hasAsyncTo) {
|
|
22169
22193
|
if (started || hasFluidValue(prevTo)) {
|
|
22170
|
-
anim.values =
|
|
22194
|
+
anim.values = node2.getPayload();
|
|
22171
22195
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
22172
22196
|
}
|
|
22173
22197
|
if (anim.immediate != immediate) {
|
|
@@ -22289,7 +22313,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22289
22313
|
const anim = this.animation;
|
|
22290
22314
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
22291
22315
|
if (!anim.immediate) {
|
|
22292
|
-
anim.fromValues = anim.values.map((
|
|
22316
|
+
anim.fromValues = anim.values.map((node2) => node2.lastPosition);
|
|
22293
22317
|
}
|
|
22294
22318
|
if (!isAnimating(this)) {
|
|
22295
22319
|
setActiveBit(this, true);
|
|
@@ -22314,8 +22338,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22314
22338
|
if (isAnimating(this)) {
|
|
22315
22339
|
setActiveBit(this, false);
|
|
22316
22340
|
const anim = this.animation;
|
|
22317
|
-
each(anim.values, (
|
|
22318
|
-
|
|
22341
|
+
each(anim.values, (node2) => {
|
|
22342
|
+
node2.done = true;
|
|
22319
22343
|
});
|
|
22320
22344
|
if (anim.toValues) {
|
|
22321
22345
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -23188,8 +23212,8 @@ var Interpolation = class extends FrameValue {
|
|
|
23188
23212
|
_start() {
|
|
23189
23213
|
if (this.idle && !checkIdle(this._active)) {
|
|
23190
23214
|
this.idle = false;
|
|
23191
|
-
each(getPayload(this), (
|
|
23192
|
-
|
|
23215
|
+
each(getPayload(this), (node2) => {
|
|
23216
|
+
node2.done = false;
|
|
23193
23217
|
});
|
|
23194
23218
|
if (globals_exports.skipAnimation) {
|
|
23195
23219
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -23254,8 +23278,8 @@ function checkIdle(active) {
|
|
|
23254
23278
|
function becomeIdle(self2) {
|
|
23255
23279
|
if (!self2.idle) {
|
|
23256
23280
|
self2.idle = true;
|
|
23257
|
-
each(getPayload(self2), (
|
|
23258
|
-
|
|
23281
|
+
each(getPayload(self2), (node2) => {
|
|
23282
|
+
node2.done = true;
|
|
23259
23283
|
});
|
|
23260
23284
|
callFluidObservers(self2, {
|
|
23261
23285
|
type: "idle",
|
|
@@ -23649,30 +23673,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
23649
23673
|
function getNodeName(element) {
|
|
23650
23674
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23651
23675
|
}
|
|
23652
|
-
function getWindow$1(
|
|
23653
|
-
if (
|
|
23676
|
+
function getWindow$1(node2) {
|
|
23677
|
+
if (node2 == null) {
|
|
23654
23678
|
return window;
|
|
23655
23679
|
}
|
|
23656
|
-
if (
|
|
23657
|
-
var ownerDocument =
|
|
23680
|
+
if (node2.toString() !== "[object Window]") {
|
|
23681
|
+
var ownerDocument = node2.ownerDocument;
|
|
23658
23682
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23659
23683
|
}
|
|
23660
|
-
return
|
|
23684
|
+
return node2;
|
|
23661
23685
|
}
|
|
23662
|
-
function isElement$1(
|
|
23663
|
-
var OwnElement = getWindow$1(
|
|
23664
|
-
return
|
|
23686
|
+
function isElement$1(node2) {
|
|
23687
|
+
var OwnElement = getWindow$1(node2).Element;
|
|
23688
|
+
return node2 instanceof OwnElement || node2 instanceof Element;
|
|
23665
23689
|
}
|
|
23666
|
-
function isHTMLElement(
|
|
23667
|
-
var OwnElement = getWindow$1(
|
|
23668
|
-
return
|
|
23690
|
+
function isHTMLElement(node2) {
|
|
23691
|
+
var OwnElement = getWindow$1(node2).HTMLElement;
|
|
23692
|
+
return node2 instanceof OwnElement || node2 instanceof HTMLElement;
|
|
23669
23693
|
}
|
|
23670
|
-
function isShadowRoot(
|
|
23694
|
+
function isShadowRoot(node2) {
|
|
23671
23695
|
if (typeof ShadowRoot === "undefined") {
|
|
23672
23696
|
return false;
|
|
23673
23697
|
}
|
|
23674
|
-
var OwnElement = getWindow$1(
|
|
23675
|
-
return
|
|
23698
|
+
var OwnElement = getWindow$1(node2).ShadowRoot;
|
|
23699
|
+
return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
|
|
23676
23700
|
}
|
|
23677
23701
|
function applyStyles(_ref) {
|
|
23678
23702
|
var state = _ref.state;
|
|
@@ -24154,8 +24178,8 @@ function getOppositeVariationPlacement(placement) {
|
|
|
24154
24178
|
return hash$1[matched];
|
|
24155
24179
|
});
|
|
24156
24180
|
}
|
|
24157
|
-
function getWindowScroll(
|
|
24158
|
-
var win = getWindow$1(
|
|
24181
|
+
function getWindowScroll(node2) {
|
|
24182
|
+
var win = getWindow$1(node2);
|
|
24159
24183
|
var scrollLeft = win.pageXOffset;
|
|
24160
24184
|
var scrollTop = win.pageYOffset;
|
|
24161
24185
|
return {
|
|
@@ -24213,14 +24237,14 @@ function isScrollParent(element) {
|
|
|
24213
24237
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24214
24238
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24215
24239
|
}
|
|
24216
|
-
function getScrollParent(
|
|
24217
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
24218
|
-
return
|
|
24240
|
+
function getScrollParent(node2) {
|
|
24241
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0) {
|
|
24242
|
+
return node2.ownerDocument.body;
|
|
24219
24243
|
}
|
|
24220
|
-
if (isHTMLElement(
|
|
24221
|
-
return
|
|
24244
|
+
if (isHTMLElement(node2) && isScrollParent(node2)) {
|
|
24245
|
+
return node2;
|
|
24222
24246
|
}
|
|
24223
|
-
return getScrollParent(getParentNode(
|
|
24247
|
+
return getScrollParent(getParentNode(node2));
|
|
24224
24248
|
}
|
|
24225
24249
|
function listScrollParents(element, list) {
|
|
24226
24250
|
var _element$ownerDocumen;
|
|
@@ -24714,11 +24738,11 @@ function getHTMLElementScroll(element) {
|
|
|
24714
24738
|
scrollTop: element.scrollTop
|
|
24715
24739
|
};
|
|
24716
24740
|
}
|
|
24717
|
-
function getNodeScroll(
|
|
24718
|
-
if (
|
|
24719
|
-
return getWindowScroll(
|
|
24741
|
+
function getNodeScroll(node2) {
|
|
24742
|
+
if (node2 === getWindow$1(node2) || !isHTMLElement(node2)) {
|
|
24743
|
+
return getWindowScroll(node2);
|
|
24720
24744
|
} else {
|
|
24721
|
-
return getHTMLElementScroll(
|
|
24745
|
+
return getHTMLElementScroll(node2);
|
|
24722
24746
|
}
|
|
24723
24747
|
}
|
|
24724
24748
|
function isElementScaled(element) {
|
|
@@ -25056,7 +25080,7 @@ var reactFastCompare = function isEqual(a2, b2) {
|
|
|
25056
25080
|
throw error;
|
|
25057
25081
|
}
|
|
25058
25082
|
};
|
|
25059
|
-
const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
|
|
25083
|
+
const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactFastCompare);
|
|
25060
25084
|
var EMPTY_MODIFIERS = [];
|
|
25061
25085
|
var usePopper = function usePopper2(referenceElement, popperElement, options) {
|
|
25062
25086
|
if (options === void 0) {
|
|
@@ -25251,7 +25275,35 @@ const SvgCommunity = ({
|
|
|
25251
25275
|
)
|
|
25252
25276
|
]
|
|
25253
25277
|
}
|
|
25254
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
25278
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoAssistance = ({
|
|
25279
|
+
title,
|
|
25280
|
+
titleId,
|
|
25281
|
+
...props
|
|
25282
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25283
|
+
"svg",
|
|
25284
|
+
{
|
|
25285
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25286
|
+
width: "24",
|
|
25287
|
+
height: "24",
|
|
25288
|
+
fill: "none",
|
|
25289
|
+
viewBox: "0 0 24 24",
|
|
25290
|
+
"aria-hidden": "true",
|
|
25291
|
+
"aria-labelledby": titleId,
|
|
25292
|
+
...props,
|
|
25293
|
+
children: [
|
|
25294
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25295
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25296
|
+
"path",
|
|
25297
|
+
{
|
|
25298
|
+
fill: "currentColor",
|
|
25299
|
+
fillRule: "evenodd",
|
|
25300
|
+
d: "M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.67.67 0 0 1-.945.121L7.27 8.63a.72.72 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03S12.814 20 11.73 20c-1.086 0-1.969-.91-1.969-2.03",
|
|
25301
|
+
clipRule: "evenodd"
|
|
25302
|
+
}
|
|
25303
|
+
)
|
|
25304
|
+
]
|
|
25305
|
+
}
|
|
25306
|
+
), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
|
|
25255
25307
|
title,
|
|
25256
25308
|
titleId,
|
|
25257
25309
|
...props
|
|
@@ -25302,7 +25354,33 @@ const SvgCommunity = ({
|
|
|
25302
25354
|
)
|
|
25303
25355
|
]
|
|
25304
25356
|
}
|
|
25305
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
25357
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneAssistance = ({
|
|
25358
|
+
title,
|
|
25359
|
+
titleId,
|
|
25360
|
+
...props
|
|
25361
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25362
|
+
"svg",
|
|
25363
|
+
{
|
|
25364
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25365
|
+
width: "24",
|
|
25366
|
+
height: "24",
|
|
25367
|
+
fill: "none",
|
|
25368
|
+
viewBox: "0 0 24 24",
|
|
25369
|
+
"aria-hidden": "true",
|
|
25370
|
+
"aria-labelledby": titleId,
|
|
25371
|
+
...props,
|
|
25372
|
+
children: [
|
|
25373
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25374
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25375
|
+
"path",
|
|
25376
|
+
{
|
|
25377
|
+
fill: "currentColor",
|
|
25378
|
+
d: "M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.96.96 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"
|
|
25379
|
+
}
|
|
25380
|
+
)
|
|
25381
|
+
]
|
|
25382
|
+
}
|
|
25383
|
+
), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
|
|
25306
25384
|
title,
|
|
25307
25385
|
titleId,
|
|
25308
25386
|
...props
|
|
@@ -25633,11 +25711,11 @@ function getTranslate(el2, axis) {
|
|
|
25633
25711
|
function isObject$1(o2) {
|
|
25634
25712
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
25635
25713
|
}
|
|
25636
|
-
function isNode(
|
|
25714
|
+
function isNode(node2) {
|
|
25637
25715
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
25638
|
-
return
|
|
25716
|
+
return node2 instanceof HTMLElement;
|
|
25639
25717
|
}
|
|
25640
|
-
return
|
|
25718
|
+
return node2 && (node2.nodeType === 1 || node2.nodeType === 11);
|
|
25641
25719
|
}
|
|
25642
25720
|
function extend$1() {
|
|
25643
25721
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -26665,8 +26743,8 @@ function updateSlides() {
|
|
|
26665
26743
|
"marginRight": "marginBottom"
|
|
26666
26744
|
}[property];
|
|
26667
26745
|
}
|
|
26668
|
-
function getDirectionPropertyValue(
|
|
26669
|
-
return parseFloat(
|
|
26746
|
+
function getDirectionPropertyValue(node2, label) {
|
|
26747
|
+
return parseFloat(node2.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
26670
26748
|
}
|
|
26671
26749
|
const params = swiper.params;
|
|
26672
26750
|
const {
|
|
@@ -30266,7 +30344,7 @@ function isChildSwiperSlide(child) {
|
|
|
30266
30344
|
}
|
|
30267
30345
|
function processChildren(c6) {
|
|
30268
30346
|
const slides = [];
|
|
30269
|
-
React.Children.toArray(c6).forEach((child) => {
|
|
30347
|
+
React$2.Children.toArray(c6).forEach((child) => {
|
|
30270
30348
|
if (isChildSwiperSlide(child)) {
|
|
30271
30349
|
slides.push(child);
|
|
30272
30350
|
} else if (child.props && child.props.children) {
|
|
@@ -30283,7 +30361,7 @@ function getChildren(c6) {
|
|
|
30283
30361
|
"wrapper-start": [],
|
|
30284
30362
|
"wrapper-end": []
|
|
30285
30363
|
};
|
|
30286
|
-
React.Children.toArray(c6).forEach((child) => {
|
|
30364
|
+
React$2.Children.toArray(c6).forEach((child) => {
|
|
30287
30365
|
if (isChildSwiperSlide(child)) {
|
|
30288
30366
|
slides.push(child);
|
|
30289
30367
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -30334,7 +30412,7 @@ function renderVirtual(swiper, slides, virtualData) {
|
|
|
30334
30412
|
}
|
|
30335
30413
|
}
|
|
30336
30414
|
return slidesToRender.map((child, index2) => {
|
|
30337
|
-
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30415
|
+
return /* @__PURE__ */ React$2.cloneElement(child, {
|
|
30338
30416
|
swiper,
|
|
30339
30417
|
style,
|
|
30340
30418
|
key: `slide-${index2}`
|
|
@@ -30494,29 +30572,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
|
|
|
30494
30572
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
30495
30573
|
}
|
|
30496
30574
|
return slides.map((child, index2) => {
|
|
30497
|
-
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30575
|
+
return /* @__PURE__ */ React$2.cloneElement(child, {
|
|
30498
30576
|
swiper: swiperRef.current,
|
|
30499
30577
|
swiperSlideIndex: index2
|
|
30500
30578
|
});
|
|
30501
30579
|
});
|
|
30502
30580
|
}
|
|
30503
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30581
|
+
return /* @__PURE__ */ React$2.createElement(Tag, _extends({
|
|
30504
30582
|
ref: swiperElRef,
|
|
30505
30583
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
30506
|
-
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
30584
|
+
}, restProps), /* @__PURE__ */ React$2.createElement(SwiperContext.Provider, {
|
|
30507
30585
|
value: swiperRef.current
|
|
30508
|
-
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
30586
|
+
}, slots["container-start"], /* @__PURE__ */ React$2.createElement(WrapperTag, {
|
|
30509
30587
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
30510
|
-
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
30588
|
+
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", {
|
|
30511
30589
|
ref: prevElRef,
|
|
30512
30590
|
className: "swiper-button-prev"
|
|
30513
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
30591
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
30514
30592
|
ref: nextElRef,
|
|
30515
30593
|
className: "swiper-button-next"
|
|
30516
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30594
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
|
|
30517
30595
|
ref: scrollbarElRef,
|
|
30518
30596
|
className: "swiper-scrollbar"
|
|
30519
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30597
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
|
|
30520
30598
|
ref: paginationElRef,
|
|
30521
30599
|
className: "swiper-pagination"
|
|
30522
30600
|
}), slots["container-end"]));
|
|
@@ -30582,25 +30660,2329 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
|
|
|
30582
30660
|
const onLoad2 = () => {
|
|
30583
30661
|
setLazyLoaded(true);
|
|
30584
30662
|
};
|
|
30585
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30663
|
+
return /* @__PURE__ */ React$2.createElement(Tag, _extends({
|
|
30586
30664
|
ref: slideElRef,
|
|
30587
30665
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
30588
30666
|
"data-swiper-slide-index": virtualIndex,
|
|
30589
30667
|
onLoad: onLoad2
|
|
30590
|
-
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30668
|
+
}, rest), zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
|
|
30591
30669
|
value: slideData
|
|
30592
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
30670
|
+
}, /* @__PURE__ */ React$2.createElement("div", {
|
|
30593
30671
|
className: "swiper-zoom-container",
|
|
30594
30672
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
30595
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30673
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
|
|
30596
30674
|
className: "swiper-lazy-preloader"
|
|
30597
|
-
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30675
|
+
}))), !zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
|
|
30598
30676
|
value: slideData
|
|
30599
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30677
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
|
|
30600
30678
|
className: "swiper-lazy-preloader"
|
|
30601
30679
|
})));
|
|
30602
30680
|
});
|
|
30603
30681
|
SwiperSlide.displayName = "SwiperSlide";
|
|
30682
|
+
var lib$3 = {};
|
|
30683
|
+
var lib$2 = {};
|
|
30684
|
+
(function(exports) {
|
|
30685
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30686
|
+
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
30687
|
+
var ElementType;
|
|
30688
|
+
(function(ElementType2) {
|
|
30689
|
+
ElementType2["Root"] = "root";
|
|
30690
|
+
ElementType2["Text"] = "text";
|
|
30691
|
+
ElementType2["Directive"] = "directive";
|
|
30692
|
+
ElementType2["Comment"] = "comment";
|
|
30693
|
+
ElementType2["Script"] = "script";
|
|
30694
|
+
ElementType2["Style"] = "style";
|
|
30695
|
+
ElementType2["Tag"] = "tag";
|
|
30696
|
+
ElementType2["CDATA"] = "cdata";
|
|
30697
|
+
ElementType2["Doctype"] = "doctype";
|
|
30698
|
+
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
|
30699
|
+
function isTag2(elem) {
|
|
30700
|
+
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
30701
|
+
}
|
|
30702
|
+
exports.isTag = isTag2;
|
|
30703
|
+
exports.Root = ElementType.Root;
|
|
30704
|
+
exports.Text = ElementType.Text;
|
|
30705
|
+
exports.Directive = ElementType.Directive;
|
|
30706
|
+
exports.Comment = ElementType.Comment;
|
|
30707
|
+
exports.Script = ElementType.Script;
|
|
30708
|
+
exports.Style = ElementType.Style;
|
|
30709
|
+
exports.Tag = ElementType.Tag;
|
|
30710
|
+
exports.CDATA = ElementType.CDATA;
|
|
30711
|
+
exports.Doctype = ElementType.Doctype;
|
|
30712
|
+
})(lib$2);
|
|
30713
|
+
var node = {};
|
|
30714
|
+
var __extends = commonjsGlobal$1 && commonjsGlobal$1.__extends || /* @__PURE__ */ function() {
|
|
30715
|
+
var extendStatics = function(d2, b2) {
|
|
30716
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
30717
|
+
d3.__proto__ = b3;
|
|
30718
|
+
} || function(d3, b3) {
|
|
30719
|
+
for (var p2 in b3)
|
|
30720
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
30721
|
+
d3[p2] = b3[p2];
|
|
30722
|
+
};
|
|
30723
|
+
return extendStatics(d2, b2);
|
|
30724
|
+
};
|
|
30725
|
+
return function(d2, b2) {
|
|
30726
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
30727
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
30728
|
+
extendStatics(d2, b2);
|
|
30729
|
+
function __() {
|
|
30730
|
+
this.constructor = d2;
|
|
30731
|
+
}
|
|
30732
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
30733
|
+
};
|
|
30734
|
+
}();
|
|
30735
|
+
var __assign = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
30736
|
+
__assign = Object.assign || function(t2) {
|
|
30737
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
30738
|
+
s2 = arguments[i2];
|
|
30739
|
+
for (var p2 in s2)
|
|
30740
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
30741
|
+
t2[p2] = s2[p2];
|
|
30742
|
+
}
|
|
30743
|
+
return t2;
|
|
30744
|
+
};
|
|
30745
|
+
return __assign.apply(this, arguments);
|
|
30746
|
+
};
|
|
30747
|
+
Object.defineProperty(node, "__esModule", { value: true });
|
|
30748
|
+
node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.CDATA = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
|
|
30749
|
+
var domelementtype_1 = lib$2;
|
|
30750
|
+
var Node$2 = (
|
|
30751
|
+
/** @class */
|
|
30752
|
+
function() {
|
|
30753
|
+
function Node2() {
|
|
30754
|
+
this.parent = null;
|
|
30755
|
+
this.prev = null;
|
|
30756
|
+
this.next = null;
|
|
30757
|
+
this.startIndex = null;
|
|
30758
|
+
this.endIndex = null;
|
|
30759
|
+
}
|
|
30760
|
+
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
30761
|
+
// Read-write aliases for properties
|
|
30762
|
+
/**
|
|
30763
|
+
* Same as {@link parent}.
|
|
30764
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30765
|
+
*/
|
|
30766
|
+
get: function() {
|
|
30767
|
+
return this.parent;
|
|
30768
|
+
},
|
|
30769
|
+
set: function(parent) {
|
|
30770
|
+
this.parent = parent;
|
|
30771
|
+
},
|
|
30772
|
+
enumerable: false,
|
|
30773
|
+
configurable: true
|
|
30774
|
+
});
|
|
30775
|
+
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
30776
|
+
/**
|
|
30777
|
+
* Same as {@link prev}.
|
|
30778
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30779
|
+
*/
|
|
30780
|
+
get: function() {
|
|
30781
|
+
return this.prev;
|
|
30782
|
+
},
|
|
30783
|
+
set: function(prev) {
|
|
30784
|
+
this.prev = prev;
|
|
30785
|
+
},
|
|
30786
|
+
enumerable: false,
|
|
30787
|
+
configurable: true
|
|
30788
|
+
});
|
|
30789
|
+
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
30790
|
+
/**
|
|
30791
|
+
* Same as {@link next}.
|
|
30792
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30793
|
+
*/
|
|
30794
|
+
get: function() {
|
|
30795
|
+
return this.next;
|
|
30796
|
+
},
|
|
30797
|
+
set: function(next) {
|
|
30798
|
+
this.next = next;
|
|
30799
|
+
},
|
|
30800
|
+
enumerable: false,
|
|
30801
|
+
configurable: true
|
|
30802
|
+
});
|
|
30803
|
+
Node2.prototype.cloneNode = function(recursive) {
|
|
30804
|
+
if (recursive === void 0) {
|
|
30805
|
+
recursive = false;
|
|
30806
|
+
}
|
|
30807
|
+
return cloneNode(this, recursive);
|
|
30808
|
+
};
|
|
30809
|
+
return Node2;
|
|
30810
|
+
}()
|
|
30811
|
+
);
|
|
30812
|
+
node.Node = Node$2;
|
|
30813
|
+
var DataNode = (
|
|
30814
|
+
/** @class */
|
|
30815
|
+
function(_super) {
|
|
30816
|
+
__extends(DataNode2, _super);
|
|
30817
|
+
function DataNode2(data) {
|
|
30818
|
+
var _this = _super.call(this) || this;
|
|
30819
|
+
_this.data = data;
|
|
30820
|
+
return _this;
|
|
30821
|
+
}
|
|
30822
|
+
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
30823
|
+
/**
|
|
30824
|
+
* Same as {@link data}.
|
|
30825
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30826
|
+
*/
|
|
30827
|
+
get: function() {
|
|
30828
|
+
return this.data;
|
|
30829
|
+
},
|
|
30830
|
+
set: function(data) {
|
|
30831
|
+
this.data = data;
|
|
30832
|
+
},
|
|
30833
|
+
enumerable: false,
|
|
30834
|
+
configurable: true
|
|
30835
|
+
});
|
|
30836
|
+
return DataNode2;
|
|
30837
|
+
}(Node$2)
|
|
30838
|
+
);
|
|
30839
|
+
node.DataNode = DataNode;
|
|
30840
|
+
var Text$2 = (
|
|
30841
|
+
/** @class */
|
|
30842
|
+
function(_super) {
|
|
30843
|
+
__extends(Text2, _super);
|
|
30844
|
+
function Text2() {
|
|
30845
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30846
|
+
_this.type = domelementtype_1.ElementType.Text;
|
|
30847
|
+
return _this;
|
|
30848
|
+
}
|
|
30849
|
+
Object.defineProperty(Text2.prototype, "nodeType", {
|
|
30850
|
+
get: function() {
|
|
30851
|
+
return 3;
|
|
30852
|
+
},
|
|
30853
|
+
enumerable: false,
|
|
30854
|
+
configurable: true
|
|
30855
|
+
});
|
|
30856
|
+
return Text2;
|
|
30857
|
+
}(DataNode)
|
|
30858
|
+
);
|
|
30859
|
+
node.Text = Text$2;
|
|
30860
|
+
var Comment$1 = (
|
|
30861
|
+
/** @class */
|
|
30862
|
+
function(_super) {
|
|
30863
|
+
__extends(Comment2, _super);
|
|
30864
|
+
function Comment2() {
|
|
30865
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30866
|
+
_this.type = domelementtype_1.ElementType.Comment;
|
|
30867
|
+
return _this;
|
|
30868
|
+
}
|
|
30869
|
+
Object.defineProperty(Comment2.prototype, "nodeType", {
|
|
30870
|
+
get: function() {
|
|
30871
|
+
return 8;
|
|
30872
|
+
},
|
|
30873
|
+
enumerable: false,
|
|
30874
|
+
configurable: true
|
|
30875
|
+
});
|
|
30876
|
+
return Comment2;
|
|
30877
|
+
}(DataNode)
|
|
30878
|
+
);
|
|
30879
|
+
node.Comment = Comment$1;
|
|
30880
|
+
var ProcessingInstruction$1 = (
|
|
30881
|
+
/** @class */
|
|
30882
|
+
function(_super) {
|
|
30883
|
+
__extends(ProcessingInstruction2, _super);
|
|
30884
|
+
function ProcessingInstruction2(name, data) {
|
|
30885
|
+
var _this = _super.call(this, data) || this;
|
|
30886
|
+
_this.name = name;
|
|
30887
|
+
_this.type = domelementtype_1.ElementType.Directive;
|
|
30888
|
+
return _this;
|
|
30889
|
+
}
|
|
30890
|
+
Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
|
|
30891
|
+
get: function() {
|
|
30892
|
+
return 1;
|
|
30893
|
+
},
|
|
30894
|
+
enumerable: false,
|
|
30895
|
+
configurable: true
|
|
30896
|
+
});
|
|
30897
|
+
return ProcessingInstruction2;
|
|
30898
|
+
}(DataNode)
|
|
30899
|
+
);
|
|
30900
|
+
node.ProcessingInstruction = ProcessingInstruction$1;
|
|
30901
|
+
var NodeWithChildren = (
|
|
30902
|
+
/** @class */
|
|
30903
|
+
function(_super) {
|
|
30904
|
+
__extends(NodeWithChildren2, _super);
|
|
30905
|
+
function NodeWithChildren2(children) {
|
|
30906
|
+
var _this = _super.call(this) || this;
|
|
30907
|
+
_this.children = children;
|
|
30908
|
+
return _this;
|
|
30909
|
+
}
|
|
30910
|
+
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
30911
|
+
// Aliases
|
|
30912
|
+
/** First child of the node. */
|
|
30913
|
+
get: function() {
|
|
30914
|
+
var _a2;
|
|
30915
|
+
return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
|
|
30916
|
+
},
|
|
30917
|
+
enumerable: false,
|
|
30918
|
+
configurable: true
|
|
30919
|
+
});
|
|
30920
|
+
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
30921
|
+
/** Last child of the node. */
|
|
30922
|
+
get: function() {
|
|
30923
|
+
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
30924
|
+
},
|
|
30925
|
+
enumerable: false,
|
|
30926
|
+
configurable: true
|
|
30927
|
+
});
|
|
30928
|
+
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
30929
|
+
/**
|
|
30930
|
+
* Same as {@link children}.
|
|
30931
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30932
|
+
*/
|
|
30933
|
+
get: function() {
|
|
30934
|
+
return this.children;
|
|
30935
|
+
},
|
|
30936
|
+
set: function(children) {
|
|
30937
|
+
this.children = children;
|
|
30938
|
+
},
|
|
30939
|
+
enumerable: false,
|
|
30940
|
+
configurable: true
|
|
30941
|
+
});
|
|
30942
|
+
return NodeWithChildren2;
|
|
30943
|
+
}(Node$2)
|
|
30944
|
+
);
|
|
30945
|
+
node.NodeWithChildren = NodeWithChildren;
|
|
30946
|
+
var CDATA = (
|
|
30947
|
+
/** @class */
|
|
30948
|
+
function(_super) {
|
|
30949
|
+
__extends(CDATA2, _super);
|
|
30950
|
+
function CDATA2() {
|
|
30951
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30952
|
+
_this.type = domelementtype_1.ElementType.CDATA;
|
|
30953
|
+
return _this;
|
|
30954
|
+
}
|
|
30955
|
+
Object.defineProperty(CDATA2.prototype, "nodeType", {
|
|
30956
|
+
get: function() {
|
|
30957
|
+
return 4;
|
|
30958
|
+
},
|
|
30959
|
+
enumerable: false,
|
|
30960
|
+
configurable: true
|
|
30961
|
+
});
|
|
30962
|
+
return CDATA2;
|
|
30963
|
+
}(NodeWithChildren)
|
|
30964
|
+
);
|
|
30965
|
+
node.CDATA = CDATA;
|
|
30966
|
+
var Document = (
|
|
30967
|
+
/** @class */
|
|
30968
|
+
function(_super) {
|
|
30969
|
+
__extends(Document2, _super);
|
|
30970
|
+
function Document2() {
|
|
30971
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30972
|
+
_this.type = domelementtype_1.ElementType.Root;
|
|
30973
|
+
return _this;
|
|
30974
|
+
}
|
|
30975
|
+
Object.defineProperty(Document2.prototype, "nodeType", {
|
|
30976
|
+
get: function() {
|
|
30977
|
+
return 9;
|
|
30978
|
+
},
|
|
30979
|
+
enumerable: false,
|
|
30980
|
+
configurable: true
|
|
30981
|
+
});
|
|
30982
|
+
return Document2;
|
|
30983
|
+
}(NodeWithChildren)
|
|
30984
|
+
);
|
|
30985
|
+
node.Document = Document;
|
|
30986
|
+
var Element$2 = (
|
|
30987
|
+
/** @class */
|
|
30988
|
+
function(_super) {
|
|
30989
|
+
__extends(Element2, _super);
|
|
30990
|
+
function Element2(name, attribs, children, type2) {
|
|
30991
|
+
if (children === void 0) {
|
|
30992
|
+
children = [];
|
|
30993
|
+
}
|
|
30994
|
+
if (type2 === void 0) {
|
|
30995
|
+
type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
30996
|
+
}
|
|
30997
|
+
var _this = _super.call(this, children) || this;
|
|
30998
|
+
_this.name = name;
|
|
30999
|
+
_this.attribs = attribs;
|
|
31000
|
+
_this.type = type2;
|
|
31001
|
+
return _this;
|
|
31002
|
+
}
|
|
31003
|
+
Object.defineProperty(Element2.prototype, "nodeType", {
|
|
31004
|
+
get: function() {
|
|
31005
|
+
return 1;
|
|
31006
|
+
},
|
|
31007
|
+
enumerable: false,
|
|
31008
|
+
configurable: true
|
|
31009
|
+
});
|
|
31010
|
+
Object.defineProperty(Element2.prototype, "tagName", {
|
|
31011
|
+
// DOM Level 1 aliases
|
|
31012
|
+
/**
|
|
31013
|
+
* Same as {@link name}.
|
|
31014
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
31015
|
+
*/
|
|
31016
|
+
get: function() {
|
|
31017
|
+
return this.name;
|
|
31018
|
+
},
|
|
31019
|
+
set: function(name) {
|
|
31020
|
+
this.name = name;
|
|
31021
|
+
},
|
|
31022
|
+
enumerable: false,
|
|
31023
|
+
configurable: true
|
|
31024
|
+
});
|
|
31025
|
+
Object.defineProperty(Element2.prototype, "attributes", {
|
|
31026
|
+
get: function() {
|
|
31027
|
+
var _this = this;
|
|
31028
|
+
return Object.keys(this.attribs).map(function(name) {
|
|
31029
|
+
var _a2, _b2;
|
|
31030
|
+
return {
|
|
31031
|
+
name,
|
|
31032
|
+
value: _this.attribs[name],
|
|
31033
|
+
namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
|
|
31034
|
+
prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
|
|
31035
|
+
};
|
|
31036
|
+
});
|
|
31037
|
+
},
|
|
31038
|
+
enumerable: false,
|
|
31039
|
+
configurable: true
|
|
31040
|
+
});
|
|
31041
|
+
return Element2;
|
|
31042
|
+
}(NodeWithChildren)
|
|
31043
|
+
);
|
|
31044
|
+
node.Element = Element$2;
|
|
31045
|
+
function isTag(node2) {
|
|
31046
|
+
return (0, domelementtype_1.isTag)(node2);
|
|
31047
|
+
}
|
|
31048
|
+
node.isTag = isTag;
|
|
31049
|
+
function isCDATA(node2) {
|
|
31050
|
+
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
31051
|
+
}
|
|
31052
|
+
node.isCDATA = isCDATA;
|
|
31053
|
+
function isText(node2) {
|
|
31054
|
+
return node2.type === domelementtype_1.ElementType.Text;
|
|
31055
|
+
}
|
|
31056
|
+
node.isText = isText;
|
|
31057
|
+
function isComment(node2) {
|
|
31058
|
+
return node2.type === domelementtype_1.ElementType.Comment;
|
|
31059
|
+
}
|
|
31060
|
+
node.isComment = isComment;
|
|
31061
|
+
function isDirective(node2) {
|
|
31062
|
+
return node2.type === domelementtype_1.ElementType.Directive;
|
|
31063
|
+
}
|
|
31064
|
+
node.isDirective = isDirective;
|
|
31065
|
+
function isDocument(node2) {
|
|
31066
|
+
return node2.type === domelementtype_1.ElementType.Root;
|
|
31067
|
+
}
|
|
31068
|
+
node.isDocument = isDocument;
|
|
31069
|
+
function hasChildren$1(node2) {
|
|
31070
|
+
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
31071
|
+
}
|
|
31072
|
+
node.hasChildren = hasChildren$1;
|
|
31073
|
+
function cloneNode(node2, recursive) {
|
|
31074
|
+
if (recursive === void 0) {
|
|
31075
|
+
recursive = false;
|
|
31076
|
+
}
|
|
31077
|
+
var result;
|
|
31078
|
+
if (isText(node2)) {
|
|
31079
|
+
result = new Text$2(node2.data);
|
|
31080
|
+
} else if (isComment(node2)) {
|
|
31081
|
+
result = new Comment$1(node2.data);
|
|
31082
|
+
} else if (isTag(node2)) {
|
|
31083
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31084
|
+
var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
|
|
31085
|
+
children.forEach(function(child) {
|
|
31086
|
+
return child.parent = clone_1;
|
|
31087
|
+
});
|
|
31088
|
+
if (node2.namespace != null) {
|
|
31089
|
+
clone_1.namespace = node2.namespace;
|
|
31090
|
+
}
|
|
31091
|
+
if (node2["x-attribsNamespace"]) {
|
|
31092
|
+
clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
|
|
31093
|
+
}
|
|
31094
|
+
if (node2["x-attribsPrefix"]) {
|
|
31095
|
+
clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
|
|
31096
|
+
}
|
|
31097
|
+
result = clone_1;
|
|
31098
|
+
} else if (isCDATA(node2)) {
|
|
31099
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31100
|
+
var clone_2 = new CDATA(children);
|
|
31101
|
+
children.forEach(function(child) {
|
|
31102
|
+
return child.parent = clone_2;
|
|
31103
|
+
});
|
|
31104
|
+
result = clone_2;
|
|
31105
|
+
} else if (isDocument(node2)) {
|
|
31106
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31107
|
+
var clone_3 = new Document(children);
|
|
31108
|
+
children.forEach(function(child) {
|
|
31109
|
+
return child.parent = clone_3;
|
|
31110
|
+
});
|
|
31111
|
+
if (node2["x-mode"]) {
|
|
31112
|
+
clone_3["x-mode"] = node2["x-mode"];
|
|
31113
|
+
}
|
|
31114
|
+
result = clone_3;
|
|
31115
|
+
} else if (isDirective(node2)) {
|
|
31116
|
+
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
31117
|
+
if (node2["x-name"] != null) {
|
|
31118
|
+
instruction["x-name"] = node2["x-name"];
|
|
31119
|
+
instruction["x-publicId"] = node2["x-publicId"];
|
|
31120
|
+
instruction["x-systemId"] = node2["x-systemId"];
|
|
31121
|
+
}
|
|
31122
|
+
result = instruction;
|
|
31123
|
+
} else {
|
|
31124
|
+
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
31125
|
+
}
|
|
31126
|
+
result.startIndex = node2.startIndex;
|
|
31127
|
+
result.endIndex = node2.endIndex;
|
|
31128
|
+
if (node2.sourceCodeLocation != null) {
|
|
31129
|
+
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
31130
|
+
}
|
|
31131
|
+
return result;
|
|
31132
|
+
}
|
|
31133
|
+
node.cloneNode = cloneNode;
|
|
31134
|
+
function cloneChildren(childs) {
|
|
31135
|
+
var children = childs.map(function(child) {
|
|
31136
|
+
return cloneNode(child, true);
|
|
31137
|
+
});
|
|
31138
|
+
for (var i2 = 1; i2 < children.length; i2++) {
|
|
31139
|
+
children[i2].prev = children[i2 - 1];
|
|
31140
|
+
children[i2 - 1].next = children[i2];
|
|
31141
|
+
}
|
|
31142
|
+
return children;
|
|
31143
|
+
}
|
|
31144
|
+
(function(exports) {
|
|
31145
|
+
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
31146
|
+
if (k22 === void 0)
|
|
31147
|
+
k22 = k2;
|
|
31148
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
31149
|
+
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
31150
|
+
desc = { enumerable: true, get: function() {
|
|
31151
|
+
return m2[k2];
|
|
31152
|
+
} };
|
|
31153
|
+
}
|
|
31154
|
+
Object.defineProperty(o2, k22, desc);
|
|
31155
|
+
} : function(o2, m2, k2, k22) {
|
|
31156
|
+
if (k22 === void 0)
|
|
31157
|
+
k22 = k2;
|
|
31158
|
+
o2[k22] = m2[k2];
|
|
31159
|
+
});
|
|
31160
|
+
var __exportStar = commonjsGlobal$1 && commonjsGlobal$1.__exportStar || function(m2, exports2) {
|
|
31161
|
+
for (var p2 in m2)
|
|
31162
|
+
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
|
|
31163
|
+
__createBinding(exports2, m2, p2);
|
|
31164
|
+
};
|
|
31165
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31166
|
+
exports.DomHandler = void 0;
|
|
31167
|
+
var domelementtype_12 = lib$2;
|
|
31168
|
+
var node_js_1 = node;
|
|
31169
|
+
__exportStar(node, exports);
|
|
31170
|
+
var defaultOpts = {
|
|
31171
|
+
withStartIndices: false,
|
|
31172
|
+
withEndIndices: false,
|
|
31173
|
+
xmlMode: false
|
|
31174
|
+
};
|
|
31175
|
+
var DomHandler = (
|
|
31176
|
+
/** @class */
|
|
31177
|
+
function() {
|
|
31178
|
+
function DomHandler2(callback, options, elementCB) {
|
|
31179
|
+
this.dom = [];
|
|
31180
|
+
this.root = new node_js_1.Document(this.dom);
|
|
31181
|
+
this.done = false;
|
|
31182
|
+
this.tagStack = [this.root];
|
|
31183
|
+
this.lastNode = null;
|
|
31184
|
+
this.parser = null;
|
|
31185
|
+
if (typeof options === "function") {
|
|
31186
|
+
elementCB = options;
|
|
31187
|
+
options = defaultOpts;
|
|
31188
|
+
}
|
|
31189
|
+
if (typeof callback === "object") {
|
|
31190
|
+
options = callback;
|
|
31191
|
+
callback = void 0;
|
|
31192
|
+
}
|
|
31193
|
+
this.callback = callback !== null && callback !== void 0 ? callback : null;
|
|
31194
|
+
this.options = options !== null && options !== void 0 ? options : defaultOpts;
|
|
31195
|
+
this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
|
|
31196
|
+
}
|
|
31197
|
+
DomHandler2.prototype.onparserinit = function(parser) {
|
|
31198
|
+
this.parser = parser;
|
|
31199
|
+
};
|
|
31200
|
+
DomHandler2.prototype.onreset = function() {
|
|
31201
|
+
this.dom = [];
|
|
31202
|
+
this.root = new node_js_1.Document(this.dom);
|
|
31203
|
+
this.done = false;
|
|
31204
|
+
this.tagStack = [this.root];
|
|
31205
|
+
this.lastNode = null;
|
|
31206
|
+
this.parser = null;
|
|
31207
|
+
};
|
|
31208
|
+
DomHandler2.prototype.onend = function() {
|
|
31209
|
+
if (this.done)
|
|
31210
|
+
return;
|
|
31211
|
+
this.done = true;
|
|
31212
|
+
this.parser = null;
|
|
31213
|
+
this.handleCallback(null);
|
|
31214
|
+
};
|
|
31215
|
+
DomHandler2.prototype.onerror = function(error) {
|
|
31216
|
+
this.handleCallback(error);
|
|
31217
|
+
};
|
|
31218
|
+
DomHandler2.prototype.onclosetag = function() {
|
|
31219
|
+
this.lastNode = null;
|
|
31220
|
+
var elem = this.tagStack.pop();
|
|
31221
|
+
if (this.options.withEndIndices) {
|
|
31222
|
+
elem.endIndex = this.parser.endIndex;
|
|
31223
|
+
}
|
|
31224
|
+
if (this.elementCB)
|
|
31225
|
+
this.elementCB(elem);
|
|
31226
|
+
};
|
|
31227
|
+
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
31228
|
+
var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
31229
|
+
var element = new node_js_1.Element(name, attribs, void 0, type2);
|
|
31230
|
+
this.addNode(element);
|
|
31231
|
+
this.tagStack.push(element);
|
|
31232
|
+
};
|
|
31233
|
+
DomHandler2.prototype.ontext = function(data) {
|
|
31234
|
+
var lastNode = this.lastNode;
|
|
31235
|
+
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
31236
|
+
lastNode.data += data;
|
|
31237
|
+
if (this.options.withEndIndices) {
|
|
31238
|
+
lastNode.endIndex = this.parser.endIndex;
|
|
31239
|
+
}
|
|
31240
|
+
} else {
|
|
31241
|
+
var node2 = new node_js_1.Text(data);
|
|
31242
|
+
this.addNode(node2);
|
|
31243
|
+
this.lastNode = node2;
|
|
31244
|
+
}
|
|
31245
|
+
};
|
|
31246
|
+
DomHandler2.prototype.oncomment = function(data) {
|
|
31247
|
+
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
31248
|
+
this.lastNode.data += data;
|
|
31249
|
+
return;
|
|
31250
|
+
}
|
|
31251
|
+
var node2 = new node_js_1.Comment(data);
|
|
31252
|
+
this.addNode(node2);
|
|
31253
|
+
this.lastNode = node2;
|
|
31254
|
+
};
|
|
31255
|
+
DomHandler2.prototype.oncommentend = function() {
|
|
31256
|
+
this.lastNode = null;
|
|
31257
|
+
};
|
|
31258
|
+
DomHandler2.prototype.oncdatastart = function() {
|
|
31259
|
+
var text = new node_js_1.Text("");
|
|
31260
|
+
var node2 = new node_js_1.CDATA([text]);
|
|
31261
|
+
this.addNode(node2);
|
|
31262
|
+
text.parent = node2;
|
|
31263
|
+
this.lastNode = text;
|
|
31264
|
+
};
|
|
31265
|
+
DomHandler2.prototype.oncdataend = function() {
|
|
31266
|
+
this.lastNode = null;
|
|
31267
|
+
};
|
|
31268
|
+
DomHandler2.prototype.onprocessinginstruction = function(name, data) {
|
|
31269
|
+
var node2 = new node_js_1.ProcessingInstruction(name, data);
|
|
31270
|
+
this.addNode(node2);
|
|
31271
|
+
};
|
|
31272
|
+
DomHandler2.prototype.handleCallback = function(error) {
|
|
31273
|
+
if (typeof this.callback === "function") {
|
|
31274
|
+
this.callback(error, this.dom);
|
|
31275
|
+
} else if (error) {
|
|
31276
|
+
throw error;
|
|
31277
|
+
}
|
|
31278
|
+
};
|
|
31279
|
+
DomHandler2.prototype.addNode = function(node2) {
|
|
31280
|
+
var parent = this.tagStack[this.tagStack.length - 1];
|
|
31281
|
+
var previousSibling = parent.children[parent.children.length - 1];
|
|
31282
|
+
if (this.options.withStartIndices) {
|
|
31283
|
+
node2.startIndex = this.parser.startIndex;
|
|
31284
|
+
}
|
|
31285
|
+
if (this.options.withEndIndices) {
|
|
31286
|
+
node2.endIndex = this.parser.endIndex;
|
|
31287
|
+
}
|
|
31288
|
+
parent.children.push(node2);
|
|
31289
|
+
if (previousSibling) {
|
|
31290
|
+
node2.prev = previousSibling;
|
|
31291
|
+
previousSibling.next = node2;
|
|
31292
|
+
}
|
|
31293
|
+
node2.parent = parent;
|
|
31294
|
+
this.lastNode = null;
|
|
31295
|
+
};
|
|
31296
|
+
return DomHandler2;
|
|
31297
|
+
}()
|
|
31298
|
+
);
|
|
31299
|
+
exports.DomHandler = DomHandler;
|
|
31300
|
+
exports.default = DomHandler;
|
|
31301
|
+
})(lib$3);
|
|
31302
|
+
var HTML = "html";
|
|
31303
|
+
var HEAD$1 = "head";
|
|
31304
|
+
var BODY = "body";
|
|
31305
|
+
var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
|
|
31306
|
+
var HEAD_TAG_REGEX = /<head[^]*>/i;
|
|
31307
|
+
var BODY_TAG_REGEX = /<body[^]*>/i;
|
|
31308
|
+
var parseFromDocument = function() {
|
|
31309
|
+
throw new Error(
|
|
31310
|
+
"This browser does not support `document.implementation.createHTMLDocument`"
|
|
31311
|
+
);
|
|
31312
|
+
};
|
|
31313
|
+
var parseFromString = function() {
|
|
31314
|
+
throw new Error(
|
|
31315
|
+
"This browser does not support `DOMParser.prototype.parseFromString`"
|
|
31316
|
+
);
|
|
31317
|
+
};
|
|
31318
|
+
var DOMParser$1 = typeof window === "object" && window.DOMParser;
|
|
31319
|
+
if (typeof DOMParser$1 === "function") {
|
|
31320
|
+
var domParser = new DOMParser$1();
|
|
31321
|
+
var mimeType = "text/html";
|
|
31322
|
+
parseFromString = function(html, tagName2) {
|
|
31323
|
+
if (tagName2) {
|
|
31324
|
+
html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
|
|
31325
|
+
}
|
|
31326
|
+
return domParser.parseFromString(html, mimeType);
|
|
31327
|
+
};
|
|
31328
|
+
parseFromDocument = parseFromString;
|
|
31329
|
+
}
|
|
31330
|
+
if (typeof document === "object" && document.implementation) {
|
|
31331
|
+
var doc = document.implementation.createHTMLDocument();
|
|
31332
|
+
parseFromDocument = function(html, tagName2) {
|
|
31333
|
+
if (tagName2) {
|
|
31334
|
+
var element = doc.documentElement.querySelector(tagName2);
|
|
31335
|
+
element.innerHTML = html;
|
|
31336
|
+
return doc;
|
|
31337
|
+
}
|
|
31338
|
+
doc.documentElement.innerHTML = html;
|
|
31339
|
+
return doc;
|
|
31340
|
+
};
|
|
31341
|
+
}
|
|
31342
|
+
var template = typeof document === "object" ? document.createElement("template") : {};
|
|
31343
|
+
var parseFromTemplate;
|
|
31344
|
+
if (template.content) {
|
|
31345
|
+
parseFromTemplate = function(html) {
|
|
31346
|
+
template.innerHTML = html;
|
|
31347
|
+
return template.content.childNodes;
|
|
31348
|
+
};
|
|
31349
|
+
}
|
|
31350
|
+
function domparser$1(html) {
|
|
31351
|
+
var firstTagName;
|
|
31352
|
+
var match = html.match(FIRST_TAG_REGEX);
|
|
31353
|
+
if (match && match[1]) {
|
|
31354
|
+
firstTagName = match[1].toLowerCase();
|
|
31355
|
+
}
|
|
31356
|
+
var doc;
|
|
31357
|
+
var element;
|
|
31358
|
+
var elements;
|
|
31359
|
+
switch (firstTagName) {
|
|
31360
|
+
case HTML:
|
|
31361
|
+
doc = parseFromString(html);
|
|
31362
|
+
if (!HEAD_TAG_REGEX.test(html)) {
|
|
31363
|
+
element = doc.querySelector(HEAD$1);
|
|
31364
|
+
if (element) {
|
|
31365
|
+
element.parentNode.removeChild(element);
|
|
31366
|
+
}
|
|
31367
|
+
}
|
|
31368
|
+
if (!BODY_TAG_REGEX.test(html)) {
|
|
31369
|
+
element = doc.querySelector(BODY);
|
|
31370
|
+
if (element) {
|
|
31371
|
+
element.parentNode.removeChild(element);
|
|
31372
|
+
}
|
|
31373
|
+
}
|
|
31374
|
+
return doc.querySelectorAll(HTML);
|
|
31375
|
+
case HEAD$1:
|
|
31376
|
+
case BODY:
|
|
31377
|
+
doc = parseFromDocument(html);
|
|
31378
|
+
elements = doc.querySelectorAll(firstTagName);
|
|
31379
|
+
if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
|
|
31380
|
+
return elements[0].parentNode.childNodes;
|
|
31381
|
+
}
|
|
31382
|
+
return elements;
|
|
31383
|
+
default:
|
|
31384
|
+
if (parseFromTemplate) {
|
|
31385
|
+
return parseFromTemplate(html);
|
|
31386
|
+
}
|
|
31387
|
+
element = parseFromDocument(html, BODY).querySelector(BODY);
|
|
31388
|
+
return element.childNodes;
|
|
31389
|
+
}
|
|
31390
|
+
}
|
|
31391
|
+
var domparser_1 = domparser$1;
|
|
31392
|
+
var utilities$5 = {};
|
|
31393
|
+
var constants$1 = {};
|
|
31394
|
+
constants$1.CASE_SENSITIVE_TAG_NAMES = [
|
|
31395
|
+
"animateMotion",
|
|
31396
|
+
"animateTransform",
|
|
31397
|
+
"clipPath",
|
|
31398
|
+
"feBlend",
|
|
31399
|
+
"feColorMatrix",
|
|
31400
|
+
"feComponentTransfer",
|
|
31401
|
+
"feComposite",
|
|
31402
|
+
"feConvolveMatrix",
|
|
31403
|
+
"feDiffuseLighting",
|
|
31404
|
+
"feDisplacementMap",
|
|
31405
|
+
"feDropShadow",
|
|
31406
|
+
"feFlood",
|
|
31407
|
+
"feFuncA",
|
|
31408
|
+
"feFuncB",
|
|
31409
|
+
"feFuncG",
|
|
31410
|
+
"feFuncR",
|
|
31411
|
+
"feGaussianBlur",
|
|
31412
|
+
"feImage",
|
|
31413
|
+
"feMerge",
|
|
31414
|
+
"feMergeNode",
|
|
31415
|
+
"feMorphology",
|
|
31416
|
+
"feOffset",
|
|
31417
|
+
"fePointLight",
|
|
31418
|
+
"feSpecularLighting",
|
|
31419
|
+
"feSpotLight",
|
|
31420
|
+
"feTile",
|
|
31421
|
+
"feTurbulence",
|
|
31422
|
+
"foreignObject",
|
|
31423
|
+
"linearGradient",
|
|
31424
|
+
"radialGradient",
|
|
31425
|
+
"textPath"
|
|
31426
|
+
];
|
|
31427
|
+
var domhandler$1 = lib$3;
|
|
31428
|
+
var constants = constants$1;
|
|
31429
|
+
var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
|
|
31430
|
+
var Comment = domhandler$1.Comment;
|
|
31431
|
+
var Element$1 = domhandler$1.Element;
|
|
31432
|
+
var ProcessingInstruction = domhandler$1.ProcessingInstruction;
|
|
31433
|
+
var Text$1 = domhandler$1.Text;
|
|
31434
|
+
var caseSensitiveTagNamesMap = {};
|
|
31435
|
+
var tagName;
|
|
31436
|
+
for (var i$1 = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i$1 < len; i$1++) {
|
|
31437
|
+
tagName = CASE_SENSITIVE_TAG_NAMES[i$1];
|
|
31438
|
+
caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
|
|
31439
|
+
}
|
|
31440
|
+
function getCaseSensitiveTagName(tagName2) {
|
|
31441
|
+
return caseSensitiveTagNamesMap[tagName2];
|
|
31442
|
+
}
|
|
31443
|
+
function formatAttributes(attributes) {
|
|
31444
|
+
var result = {};
|
|
31445
|
+
var attribute;
|
|
31446
|
+
for (var i2 = 0, len = attributes.length; i2 < len; i2++) {
|
|
31447
|
+
attribute = attributes[i2];
|
|
31448
|
+
result[attribute.name] = attribute.value;
|
|
31449
|
+
}
|
|
31450
|
+
return result;
|
|
31451
|
+
}
|
|
31452
|
+
function formatTagName(tagName2) {
|
|
31453
|
+
tagName2 = tagName2.toLowerCase();
|
|
31454
|
+
var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
|
|
31455
|
+
if (caseSensitiveTagName) {
|
|
31456
|
+
return caseSensitiveTagName;
|
|
31457
|
+
}
|
|
31458
|
+
return tagName2;
|
|
31459
|
+
}
|
|
31460
|
+
function formatDOM$1(nodes, parent, directive) {
|
|
31461
|
+
parent = parent || null;
|
|
31462
|
+
var result = [];
|
|
31463
|
+
var tagName2;
|
|
31464
|
+
for (var index2 = 0, len = nodes.length; index2 < len; index2++) {
|
|
31465
|
+
var node2 = nodes[index2];
|
|
31466
|
+
var current;
|
|
31467
|
+
switch (node2.nodeType) {
|
|
31468
|
+
case 1:
|
|
31469
|
+
tagName2 = formatTagName(node2.nodeName);
|
|
31470
|
+
current = new Element$1(tagName2, formatAttributes(node2.attributes));
|
|
31471
|
+
current.children = formatDOM$1(
|
|
31472
|
+
// template children are on content
|
|
31473
|
+
tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
|
|
31474
|
+
current
|
|
31475
|
+
);
|
|
31476
|
+
break;
|
|
31477
|
+
case 3:
|
|
31478
|
+
current = new Text$1(node2.nodeValue);
|
|
31479
|
+
break;
|
|
31480
|
+
case 8:
|
|
31481
|
+
current = new Comment(node2.nodeValue);
|
|
31482
|
+
break;
|
|
31483
|
+
default:
|
|
31484
|
+
continue;
|
|
31485
|
+
}
|
|
31486
|
+
var prev = result[index2 - 1] || null;
|
|
31487
|
+
if (prev) {
|
|
31488
|
+
prev.next = current;
|
|
31489
|
+
}
|
|
31490
|
+
current.parent = parent;
|
|
31491
|
+
current.prev = prev;
|
|
31492
|
+
current.next = null;
|
|
31493
|
+
result.push(current);
|
|
31494
|
+
}
|
|
31495
|
+
if (directive) {
|
|
31496
|
+
current = new ProcessingInstruction(
|
|
31497
|
+
directive.substring(0, directive.indexOf(" ")).toLowerCase(),
|
|
31498
|
+
directive
|
|
31499
|
+
);
|
|
31500
|
+
current.next = result[0] || null;
|
|
31501
|
+
current.parent = parent;
|
|
31502
|
+
result.unshift(current);
|
|
31503
|
+
if (result[1]) {
|
|
31504
|
+
result[1].prev = result[0];
|
|
31505
|
+
}
|
|
31506
|
+
}
|
|
31507
|
+
return result;
|
|
31508
|
+
}
|
|
31509
|
+
utilities$5.formatAttributes = formatAttributes;
|
|
31510
|
+
utilities$5.formatDOM = formatDOM$1;
|
|
31511
|
+
var domparser = domparser_1;
|
|
31512
|
+
var utilities$4 = utilities$5;
|
|
31513
|
+
var formatDOM = utilities$4.formatDOM;
|
|
31514
|
+
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
|
|
31515
|
+
function HTMLDOMParser(html) {
|
|
31516
|
+
if (typeof html !== "string") {
|
|
31517
|
+
throw new TypeError("First argument must be a string");
|
|
31518
|
+
}
|
|
31519
|
+
if (html === "") {
|
|
31520
|
+
return [];
|
|
31521
|
+
}
|
|
31522
|
+
var match = html.match(DIRECTIVE_REGEX);
|
|
31523
|
+
var directive;
|
|
31524
|
+
if (match && match[1]) {
|
|
31525
|
+
directive = match[1];
|
|
31526
|
+
}
|
|
31527
|
+
return formatDOM(domparser(html), null, directive);
|
|
31528
|
+
}
|
|
31529
|
+
var htmlToDom = HTMLDOMParser;
|
|
31530
|
+
var lib$1 = {};
|
|
31531
|
+
var possibleStandardNamesOptimized$1 = {};
|
|
31532
|
+
var SAME$1 = 0;
|
|
31533
|
+
possibleStandardNamesOptimized$1.SAME = SAME$1;
|
|
31534
|
+
var CAMELCASE$1 = 1;
|
|
31535
|
+
possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
|
|
31536
|
+
possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
31537
|
+
accept: 0,
|
|
31538
|
+
acceptCharset: 1,
|
|
31539
|
+
"accept-charset": "acceptCharset",
|
|
31540
|
+
accessKey: 1,
|
|
31541
|
+
action: 0,
|
|
31542
|
+
allowFullScreen: 1,
|
|
31543
|
+
alt: 0,
|
|
31544
|
+
as: 0,
|
|
31545
|
+
async: 0,
|
|
31546
|
+
autoCapitalize: 1,
|
|
31547
|
+
autoComplete: 1,
|
|
31548
|
+
autoCorrect: 1,
|
|
31549
|
+
autoFocus: 1,
|
|
31550
|
+
autoPlay: 1,
|
|
31551
|
+
autoSave: 1,
|
|
31552
|
+
capture: 0,
|
|
31553
|
+
cellPadding: 1,
|
|
31554
|
+
cellSpacing: 1,
|
|
31555
|
+
challenge: 0,
|
|
31556
|
+
charSet: 1,
|
|
31557
|
+
checked: 0,
|
|
31558
|
+
children: 0,
|
|
31559
|
+
cite: 0,
|
|
31560
|
+
class: "className",
|
|
31561
|
+
classID: 1,
|
|
31562
|
+
className: 1,
|
|
31563
|
+
cols: 0,
|
|
31564
|
+
colSpan: 1,
|
|
31565
|
+
content: 0,
|
|
31566
|
+
contentEditable: 1,
|
|
31567
|
+
contextMenu: 1,
|
|
31568
|
+
controls: 0,
|
|
31569
|
+
controlsList: 1,
|
|
31570
|
+
coords: 0,
|
|
31571
|
+
crossOrigin: 1,
|
|
31572
|
+
dangerouslySetInnerHTML: 1,
|
|
31573
|
+
data: 0,
|
|
31574
|
+
dateTime: 1,
|
|
31575
|
+
default: 0,
|
|
31576
|
+
defaultChecked: 1,
|
|
31577
|
+
defaultValue: 1,
|
|
31578
|
+
defer: 0,
|
|
31579
|
+
dir: 0,
|
|
31580
|
+
disabled: 0,
|
|
31581
|
+
disablePictureInPicture: 1,
|
|
31582
|
+
disableRemotePlayback: 1,
|
|
31583
|
+
download: 0,
|
|
31584
|
+
draggable: 0,
|
|
31585
|
+
encType: 1,
|
|
31586
|
+
enterKeyHint: 1,
|
|
31587
|
+
for: "htmlFor",
|
|
31588
|
+
form: 0,
|
|
31589
|
+
formMethod: 1,
|
|
31590
|
+
formAction: 1,
|
|
31591
|
+
formEncType: 1,
|
|
31592
|
+
formNoValidate: 1,
|
|
31593
|
+
formTarget: 1,
|
|
31594
|
+
frameBorder: 1,
|
|
31595
|
+
headers: 0,
|
|
31596
|
+
height: 0,
|
|
31597
|
+
hidden: 0,
|
|
31598
|
+
high: 0,
|
|
31599
|
+
href: 0,
|
|
31600
|
+
hrefLang: 1,
|
|
31601
|
+
htmlFor: 1,
|
|
31602
|
+
httpEquiv: 1,
|
|
31603
|
+
"http-equiv": "httpEquiv",
|
|
31604
|
+
icon: 0,
|
|
31605
|
+
id: 0,
|
|
31606
|
+
innerHTML: 1,
|
|
31607
|
+
inputMode: 1,
|
|
31608
|
+
integrity: 0,
|
|
31609
|
+
is: 0,
|
|
31610
|
+
itemID: 1,
|
|
31611
|
+
itemProp: 1,
|
|
31612
|
+
itemRef: 1,
|
|
31613
|
+
itemScope: 1,
|
|
31614
|
+
itemType: 1,
|
|
31615
|
+
keyParams: 1,
|
|
31616
|
+
keyType: 1,
|
|
31617
|
+
kind: 0,
|
|
31618
|
+
label: 0,
|
|
31619
|
+
lang: 0,
|
|
31620
|
+
list: 0,
|
|
31621
|
+
loop: 0,
|
|
31622
|
+
low: 0,
|
|
31623
|
+
manifest: 0,
|
|
31624
|
+
marginWidth: 1,
|
|
31625
|
+
marginHeight: 1,
|
|
31626
|
+
max: 0,
|
|
31627
|
+
maxLength: 1,
|
|
31628
|
+
media: 0,
|
|
31629
|
+
mediaGroup: 1,
|
|
31630
|
+
method: 0,
|
|
31631
|
+
min: 0,
|
|
31632
|
+
minLength: 1,
|
|
31633
|
+
multiple: 0,
|
|
31634
|
+
muted: 0,
|
|
31635
|
+
name: 0,
|
|
31636
|
+
noModule: 1,
|
|
31637
|
+
nonce: 0,
|
|
31638
|
+
noValidate: 1,
|
|
31639
|
+
open: 0,
|
|
31640
|
+
optimum: 0,
|
|
31641
|
+
pattern: 0,
|
|
31642
|
+
placeholder: 0,
|
|
31643
|
+
playsInline: 1,
|
|
31644
|
+
poster: 0,
|
|
31645
|
+
preload: 0,
|
|
31646
|
+
profile: 0,
|
|
31647
|
+
radioGroup: 1,
|
|
31648
|
+
readOnly: 1,
|
|
31649
|
+
referrerPolicy: 1,
|
|
31650
|
+
rel: 0,
|
|
31651
|
+
required: 0,
|
|
31652
|
+
reversed: 0,
|
|
31653
|
+
role: 0,
|
|
31654
|
+
rows: 0,
|
|
31655
|
+
rowSpan: 1,
|
|
31656
|
+
sandbox: 0,
|
|
31657
|
+
scope: 0,
|
|
31658
|
+
scoped: 0,
|
|
31659
|
+
scrolling: 0,
|
|
31660
|
+
seamless: 0,
|
|
31661
|
+
selected: 0,
|
|
31662
|
+
shape: 0,
|
|
31663
|
+
size: 0,
|
|
31664
|
+
sizes: 0,
|
|
31665
|
+
span: 0,
|
|
31666
|
+
spellCheck: 1,
|
|
31667
|
+
src: 0,
|
|
31668
|
+
srcDoc: 1,
|
|
31669
|
+
srcLang: 1,
|
|
31670
|
+
srcSet: 1,
|
|
31671
|
+
start: 0,
|
|
31672
|
+
step: 0,
|
|
31673
|
+
style: 0,
|
|
31674
|
+
summary: 0,
|
|
31675
|
+
tabIndex: 1,
|
|
31676
|
+
target: 0,
|
|
31677
|
+
title: 0,
|
|
31678
|
+
type: 0,
|
|
31679
|
+
useMap: 1,
|
|
31680
|
+
value: 0,
|
|
31681
|
+
width: 0,
|
|
31682
|
+
wmode: 0,
|
|
31683
|
+
wrap: 0,
|
|
31684
|
+
about: 0,
|
|
31685
|
+
accentHeight: 1,
|
|
31686
|
+
"accent-height": "accentHeight",
|
|
31687
|
+
accumulate: 0,
|
|
31688
|
+
additive: 0,
|
|
31689
|
+
alignmentBaseline: 1,
|
|
31690
|
+
"alignment-baseline": "alignmentBaseline",
|
|
31691
|
+
allowReorder: 1,
|
|
31692
|
+
alphabetic: 0,
|
|
31693
|
+
amplitude: 0,
|
|
31694
|
+
arabicForm: 1,
|
|
31695
|
+
"arabic-form": "arabicForm",
|
|
31696
|
+
ascent: 0,
|
|
31697
|
+
attributeName: 1,
|
|
31698
|
+
attributeType: 1,
|
|
31699
|
+
autoReverse: 1,
|
|
31700
|
+
azimuth: 0,
|
|
31701
|
+
baseFrequency: 1,
|
|
31702
|
+
baselineShift: 1,
|
|
31703
|
+
"baseline-shift": "baselineShift",
|
|
31704
|
+
baseProfile: 1,
|
|
31705
|
+
bbox: 0,
|
|
31706
|
+
begin: 0,
|
|
31707
|
+
bias: 0,
|
|
31708
|
+
by: 0,
|
|
31709
|
+
calcMode: 1,
|
|
31710
|
+
capHeight: 1,
|
|
31711
|
+
"cap-height": "capHeight",
|
|
31712
|
+
clip: 0,
|
|
31713
|
+
clipPath: 1,
|
|
31714
|
+
"clip-path": "clipPath",
|
|
31715
|
+
clipPathUnits: 1,
|
|
31716
|
+
clipRule: 1,
|
|
31717
|
+
"clip-rule": "clipRule",
|
|
31718
|
+
color: 0,
|
|
31719
|
+
colorInterpolation: 1,
|
|
31720
|
+
"color-interpolation": "colorInterpolation",
|
|
31721
|
+
colorInterpolationFilters: 1,
|
|
31722
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
31723
|
+
colorProfile: 1,
|
|
31724
|
+
"color-profile": "colorProfile",
|
|
31725
|
+
colorRendering: 1,
|
|
31726
|
+
"color-rendering": "colorRendering",
|
|
31727
|
+
contentScriptType: 1,
|
|
31728
|
+
contentStyleType: 1,
|
|
31729
|
+
cursor: 0,
|
|
31730
|
+
cx: 0,
|
|
31731
|
+
cy: 0,
|
|
31732
|
+
d: 0,
|
|
31733
|
+
datatype: 0,
|
|
31734
|
+
decelerate: 0,
|
|
31735
|
+
descent: 0,
|
|
31736
|
+
diffuseConstant: 1,
|
|
31737
|
+
direction: 0,
|
|
31738
|
+
display: 0,
|
|
31739
|
+
divisor: 0,
|
|
31740
|
+
dominantBaseline: 1,
|
|
31741
|
+
"dominant-baseline": "dominantBaseline",
|
|
31742
|
+
dur: 0,
|
|
31743
|
+
dx: 0,
|
|
31744
|
+
dy: 0,
|
|
31745
|
+
edgeMode: 1,
|
|
31746
|
+
elevation: 0,
|
|
31747
|
+
enableBackground: 1,
|
|
31748
|
+
"enable-background": "enableBackground",
|
|
31749
|
+
end: 0,
|
|
31750
|
+
exponent: 0,
|
|
31751
|
+
externalResourcesRequired: 1,
|
|
31752
|
+
fill: 0,
|
|
31753
|
+
fillOpacity: 1,
|
|
31754
|
+
"fill-opacity": "fillOpacity",
|
|
31755
|
+
fillRule: 1,
|
|
31756
|
+
"fill-rule": "fillRule",
|
|
31757
|
+
filter: 0,
|
|
31758
|
+
filterRes: 1,
|
|
31759
|
+
filterUnits: 1,
|
|
31760
|
+
floodOpacity: 1,
|
|
31761
|
+
"flood-opacity": "floodOpacity",
|
|
31762
|
+
floodColor: 1,
|
|
31763
|
+
"flood-color": "floodColor",
|
|
31764
|
+
focusable: 0,
|
|
31765
|
+
fontFamily: 1,
|
|
31766
|
+
"font-family": "fontFamily",
|
|
31767
|
+
fontSize: 1,
|
|
31768
|
+
"font-size": "fontSize",
|
|
31769
|
+
fontSizeAdjust: 1,
|
|
31770
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
31771
|
+
fontStretch: 1,
|
|
31772
|
+
"font-stretch": "fontStretch",
|
|
31773
|
+
fontStyle: 1,
|
|
31774
|
+
"font-style": "fontStyle",
|
|
31775
|
+
fontVariant: 1,
|
|
31776
|
+
"font-variant": "fontVariant",
|
|
31777
|
+
fontWeight: 1,
|
|
31778
|
+
"font-weight": "fontWeight",
|
|
31779
|
+
format: 0,
|
|
31780
|
+
from: 0,
|
|
31781
|
+
fx: 0,
|
|
31782
|
+
fy: 0,
|
|
31783
|
+
g1: 0,
|
|
31784
|
+
g2: 0,
|
|
31785
|
+
glyphName: 1,
|
|
31786
|
+
"glyph-name": "glyphName",
|
|
31787
|
+
glyphOrientationHorizontal: 1,
|
|
31788
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
31789
|
+
glyphOrientationVertical: 1,
|
|
31790
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
31791
|
+
glyphRef: 1,
|
|
31792
|
+
gradientTransform: 1,
|
|
31793
|
+
gradientUnits: 1,
|
|
31794
|
+
hanging: 0,
|
|
31795
|
+
horizAdvX: 1,
|
|
31796
|
+
"horiz-adv-x": "horizAdvX",
|
|
31797
|
+
horizOriginX: 1,
|
|
31798
|
+
"horiz-origin-x": "horizOriginX",
|
|
31799
|
+
ideographic: 0,
|
|
31800
|
+
imageRendering: 1,
|
|
31801
|
+
"image-rendering": "imageRendering",
|
|
31802
|
+
in2: 0,
|
|
31803
|
+
in: 0,
|
|
31804
|
+
inlist: 0,
|
|
31805
|
+
intercept: 0,
|
|
31806
|
+
k1: 0,
|
|
31807
|
+
k2: 0,
|
|
31808
|
+
k3: 0,
|
|
31809
|
+
k4: 0,
|
|
31810
|
+
k: 0,
|
|
31811
|
+
kernelMatrix: 1,
|
|
31812
|
+
kernelUnitLength: 1,
|
|
31813
|
+
kerning: 0,
|
|
31814
|
+
keyPoints: 1,
|
|
31815
|
+
keySplines: 1,
|
|
31816
|
+
keyTimes: 1,
|
|
31817
|
+
lengthAdjust: 1,
|
|
31818
|
+
letterSpacing: 1,
|
|
31819
|
+
"letter-spacing": "letterSpacing",
|
|
31820
|
+
lightingColor: 1,
|
|
31821
|
+
"lighting-color": "lightingColor",
|
|
31822
|
+
limitingConeAngle: 1,
|
|
31823
|
+
local: 0,
|
|
31824
|
+
markerEnd: 1,
|
|
31825
|
+
"marker-end": "markerEnd",
|
|
31826
|
+
markerHeight: 1,
|
|
31827
|
+
markerMid: 1,
|
|
31828
|
+
"marker-mid": "markerMid",
|
|
31829
|
+
markerStart: 1,
|
|
31830
|
+
"marker-start": "markerStart",
|
|
31831
|
+
markerUnits: 1,
|
|
31832
|
+
markerWidth: 1,
|
|
31833
|
+
mask: 0,
|
|
31834
|
+
maskContentUnits: 1,
|
|
31835
|
+
maskUnits: 1,
|
|
31836
|
+
mathematical: 0,
|
|
31837
|
+
mode: 0,
|
|
31838
|
+
numOctaves: 1,
|
|
31839
|
+
offset: 0,
|
|
31840
|
+
opacity: 0,
|
|
31841
|
+
operator: 0,
|
|
31842
|
+
order: 0,
|
|
31843
|
+
orient: 0,
|
|
31844
|
+
orientation: 0,
|
|
31845
|
+
origin: 0,
|
|
31846
|
+
overflow: 0,
|
|
31847
|
+
overlinePosition: 1,
|
|
31848
|
+
"overline-position": "overlinePosition",
|
|
31849
|
+
overlineThickness: 1,
|
|
31850
|
+
"overline-thickness": "overlineThickness",
|
|
31851
|
+
paintOrder: 1,
|
|
31852
|
+
"paint-order": "paintOrder",
|
|
31853
|
+
panose1: 0,
|
|
31854
|
+
"panose-1": "panose1",
|
|
31855
|
+
pathLength: 1,
|
|
31856
|
+
patternContentUnits: 1,
|
|
31857
|
+
patternTransform: 1,
|
|
31858
|
+
patternUnits: 1,
|
|
31859
|
+
pointerEvents: 1,
|
|
31860
|
+
"pointer-events": "pointerEvents",
|
|
31861
|
+
points: 0,
|
|
31862
|
+
pointsAtX: 1,
|
|
31863
|
+
pointsAtY: 1,
|
|
31864
|
+
pointsAtZ: 1,
|
|
31865
|
+
prefix: 0,
|
|
31866
|
+
preserveAlpha: 1,
|
|
31867
|
+
preserveAspectRatio: 1,
|
|
31868
|
+
primitiveUnits: 1,
|
|
31869
|
+
property: 0,
|
|
31870
|
+
r: 0,
|
|
31871
|
+
radius: 0,
|
|
31872
|
+
refX: 1,
|
|
31873
|
+
refY: 1,
|
|
31874
|
+
renderingIntent: 1,
|
|
31875
|
+
"rendering-intent": "renderingIntent",
|
|
31876
|
+
repeatCount: 1,
|
|
31877
|
+
repeatDur: 1,
|
|
31878
|
+
requiredExtensions: 1,
|
|
31879
|
+
requiredFeatures: 1,
|
|
31880
|
+
resource: 0,
|
|
31881
|
+
restart: 0,
|
|
31882
|
+
result: 0,
|
|
31883
|
+
results: 0,
|
|
31884
|
+
rotate: 0,
|
|
31885
|
+
rx: 0,
|
|
31886
|
+
ry: 0,
|
|
31887
|
+
scale: 0,
|
|
31888
|
+
security: 0,
|
|
31889
|
+
seed: 0,
|
|
31890
|
+
shapeRendering: 1,
|
|
31891
|
+
"shape-rendering": "shapeRendering",
|
|
31892
|
+
slope: 0,
|
|
31893
|
+
spacing: 0,
|
|
31894
|
+
specularConstant: 1,
|
|
31895
|
+
specularExponent: 1,
|
|
31896
|
+
speed: 0,
|
|
31897
|
+
spreadMethod: 1,
|
|
31898
|
+
startOffset: 1,
|
|
31899
|
+
stdDeviation: 1,
|
|
31900
|
+
stemh: 0,
|
|
31901
|
+
stemv: 0,
|
|
31902
|
+
stitchTiles: 1,
|
|
31903
|
+
stopColor: 1,
|
|
31904
|
+
"stop-color": "stopColor",
|
|
31905
|
+
stopOpacity: 1,
|
|
31906
|
+
"stop-opacity": "stopOpacity",
|
|
31907
|
+
strikethroughPosition: 1,
|
|
31908
|
+
"strikethrough-position": "strikethroughPosition",
|
|
31909
|
+
strikethroughThickness: 1,
|
|
31910
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
31911
|
+
string: 0,
|
|
31912
|
+
stroke: 0,
|
|
31913
|
+
strokeDasharray: 1,
|
|
31914
|
+
"stroke-dasharray": "strokeDasharray",
|
|
31915
|
+
strokeDashoffset: 1,
|
|
31916
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
31917
|
+
strokeLinecap: 1,
|
|
31918
|
+
"stroke-linecap": "strokeLinecap",
|
|
31919
|
+
strokeLinejoin: 1,
|
|
31920
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
31921
|
+
strokeMiterlimit: 1,
|
|
31922
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
31923
|
+
strokeWidth: 1,
|
|
31924
|
+
"stroke-width": "strokeWidth",
|
|
31925
|
+
strokeOpacity: 1,
|
|
31926
|
+
"stroke-opacity": "strokeOpacity",
|
|
31927
|
+
suppressContentEditableWarning: 1,
|
|
31928
|
+
suppressHydrationWarning: 1,
|
|
31929
|
+
surfaceScale: 1,
|
|
31930
|
+
systemLanguage: 1,
|
|
31931
|
+
tableValues: 1,
|
|
31932
|
+
targetX: 1,
|
|
31933
|
+
targetY: 1,
|
|
31934
|
+
textAnchor: 1,
|
|
31935
|
+
"text-anchor": "textAnchor",
|
|
31936
|
+
textDecoration: 1,
|
|
31937
|
+
"text-decoration": "textDecoration",
|
|
31938
|
+
textLength: 1,
|
|
31939
|
+
textRendering: 1,
|
|
31940
|
+
"text-rendering": "textRendering",
|
|
31941
|
+
to: 0,
|
|
31942
|
+
transform: 0,
|
|
31943
|
+
typeof: 0,
|
|
31944
|
+
u1: 0,
|
|
31945
|
+
u2: 0,
|
|
31946
|
+
underlinePosition: 1,
|
|
31947
|
+
"underline-position": "underlinePosition",
|
|
31948
|
+
underlineThickness: 1,
|
|
31949
|
+
"underline-thickness": "underlineThickness",
|
|
31950
|
+
unicode: 0,
|
|
31951
|
+
unicodeBidi: 1,
|
|
31952
|
+
"unicode-bidi": "unicodeBidi",
|
|
31953
|
+
unicodeRange: 1,
|
|
31954
|
+
"unicode-range": "unicodeRange",
|
|
31955
|
+
unitsPerEm: 1,
|
|
31956
|
+
"units-per-em": "unitsPerEm",
|
|
31957
|
+
unselectable: 0,
|
|
31958
|
+
vAlphabetic: 1,
|
|
31959
|
+
"v-alphabetic": "vAlphabetic",
|
|
31960
|
+
values: 0,
|
|
31961
|
+
vectorEffect: 1,
|
|
31962
|
+
"vector-effect": "vectorEffect",
|
|
31963
|
+
version: 0,
|
|
31964
|
+
vertAdvY: 1,
|
|
31965
|
+
"vert-adv-y": "vertAdvY",
|
|
31966
|
+
vertOriginX: 1,
|
|
31967
|
+
"vert-origin-x": "vertOriginX",
|
|
31968
|
+
vertOriginY: 1,
|
|
31969
|
+
"vert-origin-y": "vertOriginY",
|
|
31970
|
+
vHanging: 1,
|
|
31971
|
+
"v-hanging": "vHanging",
|
|
31972
|
+
vIdeographic: 1,
|
|
31973
|
+
"v-ideographic": "vIdeographic",
|
|
31974
|
+
viewBox: 1,
|
|
31975
|
+
viewTarget: 1,
|
|
31976
|
+
visibility: 0,
|
|
31977
|
+
vMathematical: 1,
|
|
31978
|
+
"v-mathematical": "vMathematical",
|
|
31979
|
+
vocab: 0,
|
|
31980
|
+
widths: 0,
|
|
31981
|
+
wordSpacing: 1,
|
|
31982
|
+
"word-spacing": "wordSpacing",
|
|
31983
|
+
writingMode: 1,
|
|
31984
|
+
"writing-mode": "writingMode",
|
|
31985
|
+
x1: 0,
|
|
31986
|
+
x2: 0,
|
|
31987
|
+
x: 0,
|
|
31988
|
+
xChannelSelector: 1,
|
|
31989
|
+
xHeight: 1,
|
|
31990
|
+
"x-height": "xHeight",
|
|
31991
|
+
xlinkActuate: 1,
|
|
31992
|
+
"xlink:actuate": "xlinkActuate",
|
|
31993
|
+
xlinkArcrole: 1,
|
|
31994
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
31995
|
+
xlinkHref: 1,
|
|
31996
|
+
"xlink:href": "xlinkHref",
|
|
31997
|
+
xlinkRole: 1,
|
|
31998
|
+
"xlink:role": "xlinkRole",
|
|
31999
|
+
xlinkShow: 1,
|
|
32000
|
+
"xlink:show": "xlinkShow",
|
|
32001
|
+
xlinkTitle: 1,
|
|
32002
|
+
"xlink:title": "xlinkTitle",
|
|
32003
|
+
xlinkType: 1,
|
|
32004
|
+
"xlink:type": "xlinkType",
|
|
32005
|
+
xmlBase: 1,
|
|
32006
|
+
"xml:base": "xmlBase",
|
|
32007
|
+
xmlLang: 1,
|
|
32008
|
+
"xml:lang": "xmlLang",
|
|
32009
|
+
xmlns: 0,
|
|
32010
|
+
"xml:space": "xmlSpace",
|
|
32011
|
+
xmlnsXlink: 1,
|
|
32012
|
+
"xmlns:xlink": "xmlnsXlink",
|
|
32013
|
+
xmlSpace: 1,
|
|
32014
|
+
y1: 0,
|
|
32015
|
+
y2: 0,
|
|
32016
|
+
y: 0,
|
|
32017
|
+
yChannelSelector: 1,
|
|
32018
|
+
z: 0,
|
|
32019
|
+
zoomAndPan: 1
|
|
32020
|
+
};
|
|
32021
|
+
Object.defineProperty(lib$1, "__esModule", { value: true });
|
|
32022
|
+
function _slicedToArray(arr2, i2) {
|
|
32023
|
+
return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
|
|
32024
|
+
}
|
|
32025
|
+
function _arrayWithHoles(arr2) {
|
|
32026
|
+
if (Array.isArray(arr2))
|
|
32027
|
+
return arr2;
|
|
32028
|
+
}
|
|
32029
|
+
function _iterableToArrayLimit(arr2, i2) {
|
|
32030
|
+
var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
|
|
32031
|
+
if (_i2 == null)
|
|
32032
|
+
return;
|
|
32033
|
+
var _arr = [];
|
|
32034
|
+
var _n = true;
|
|
32035
|
+
var _d2 = false;
|
|
32036
|
+
var _s, _e2;
|
|
32037
|
+
try {
|
|
32038
|
+
for (_i2 = _i2.call(arr2); !(_n = (_s = _i2.next()).done); _n = true) {
|
|
32039
|
+
_arr.push(_s.value);
|
|
32040
|
+
if (i2 && _arr.length === i2)
|
|
32041
|
+
break;
|
|
32042
|
+
}
|
|
32043
|
+
} catch (err2) {
|
|
32044
|
+
_d2 = true;
|
|
32045
|
+
_e2 = err2;
|
|
32046
|
+
} finally {
|
|
32047
|
+
try {
|
|
32048
|
+
if (!_n && _i2["return"] != null)
|
|
32049
|
+
_i2["return"]();
|
|
32050
|
+
} finally {
|
|
32051
|
+
if (_d2)
|
|
32052
|
+
throw _e2;
|
|
32053
|
+
}
|
|
32054
|
+
}
|
|
32055
|
+
return _arr;
|
|
32056
|
+
}
|
|
32057
|
+
function _unsupportedIterableToArray(o2, minLen) {
|
|
32058
|
+
if (!o2)
|
|
32059
|
+
return;
|
|
32060
|
+
if (typeof o2 === "string")
|
|
32061
|
+
return _arrayLikeToArray(o2, minLen);
|
|
32062
|
+
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
32063
|
+
if (n2 === "Object" && o2.constructor)
|
|
32064
|
+
n2 = o2.constructor.name;
|
|
32065
|
+
if (n2 === "Map" || n2 === "Set")
|
|
32066
|
+
return Array.from(o2);
|
|
32067
|
+
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
32068
|
+
return _arrayLikeToArray(o2, minLen);
|
|
32069
|
+
}
|
|
32070
|
+
function _arrayLikeToArray(arr2, len) {
|
|
32071
|
+
if (len == null || len > arr2.length)
|
|
32072
|
+
len = arr2.length;
|
|
32073
|
+
for (var i2 = 0, arr22 = new Array(len); i2 < len; i2++)
|
|
32074
|
+
arr22[i2] = arr2[i2];
|
|
32075
|
+
return arr22;
|
|
32076
|
+
}
|
|
32077
|
+
function _nonIterableRest() {
|
|
32078
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32079
|
+
}
|
|
32080
|
+
var RESERVED = 0;
|
|
32081
|
+
var STRING = 1;
|
|
32082
|
+
var BOOLEANISH_STRING = 2;
|
|
32083
|
+
var BOOLEAN = 3;
|
|
32084
|
+
var OVERLOADED_BOOLEAN = 4;
|
|
32085
|
+
var NUMERIC = 5;
|
|
32086
|
+
var POSITIVE_NUMERIC = 6;
|
|
32087
|
+
function getPropertyInfo(name) {
|
|
32088
|
+
return properties.hasOwnProperty(name) ? properties[name] : null;
|
|
32089
|
+
}
|
|
32090
|
+
function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
|
32091
|
+
this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
|
|
32092
|
+
this.attributeName = attributeName;
|
|
32093
|
+
this.attributeNamespace = attributeNamespace;
|
|
32094
|
+
this.mustUseProperty = mustUseProperty;
|
|
32095
|
+
this.propertyName = name;
|
|
32096
|
+
this.type = type2;
|
|
32097
|
+
this.sanitizeURL = sanitizeURL;
|
|
32098
|
+
this.removeEmptyString = removeEmptyString;
|
|
32099
|
+
}
|
|
32100
|
+
var properties = {};
|
|
32101
|
+
var reservedProps = [
|
|
32102
|
+
"children",
|
|
32103
|
+
"dangerouslySetInnerHTML",
|
|
32104
|
+
// TODO: This prevents the assignment of defaultValue to regular
|
|
32105
|
+
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
32106
|
+
// defaultValue property -- do we need this?
|
|
32107
|
+
"defaultValue",
|
|
32108
|
+
"defaultChecked",
|
|
32109
|
+
"innerHTML",
|
|
32110
|
+
"suppressContentEditableWarning",
|
|
32111
|
+
"suppressHydrationWarning",
|
|
32112
|
+
"style"
|
|
32113
|
+
];
|
|
32114
|
+
reservedProps.forEach(function(name) {
|
|
32115
|
+
properties[name] = new PropertyInfoRecord(
|
|
32116
|
+
name,
|
|
32117
|
+
RESERVED,
|
|
32118
|
+
false,
|
|
32119
|
+
// mustUseProperty
|
|
32120
|
+
name,
|
|
32121
|
+
// attributeName
|
|
32122
|
+
null,
|
|
32123
|
+
// attributeNamespace
|
|
32124
|
+
false,
|
|
32125
|
+
// sanitizeURL
|
|
32126
|
+
false
|
|
32127
|
+
);
|
|
32128
|
+
});
|
|
32129
|
+
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
|
|
32130
|
+
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
|
|
32131
|
+
properties[name] = new PropertyInfoRecord(
|
|
32132
|
+
name,
|
|
32133
|
+
STRING,
|
|
32134
|
+
false,
|
|
32135
|
+
// mustUseProperty
|
|
32136
|
+
attributeName,
|
|
32137
|
+
// attributeName
|
|
32138
|
+
null,
|
|
32139
|
+
// attributeNamespace
|
|
32140
|
+
false,
|
|
32141
|
+
// sanitizeURL
|
|
32142
|
+
false
|
|
32143
|
+
);
|
|
32144
|
+
});
|
|
32145
|
+
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
|
|
32146
|
+
properties[name] = new PropertyInfoRecord(
|
|
32147
|
+
name,
|
|
32148
|
+
BOOLEANISH_STRING,
|
|
32149
|
+
false,
|
|
32150
|
+
// mustUseProperty
|
|
32151
|
+
name.toLowerCase(),
|
|
32152
|
+
// attributeName
|
|
32153
|
+
null,
|
|
32154
|
+
// attributeNamespace
|
|
32155
|
+
false,
|
|
32156
|
+
// sanitizeURL
|
|
32157
|
+
false
|
|
32158
|
+
);
|
|
32159
|
+
});
|
|
32160
|
+
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
|
|
32161
|
+
properties[name] = new PropertyInfoRecord(
|
|
32162
|
+
name,
|
|
32163
|
+
BOOLEANISH_STRING,
|
|
32164
|
+
false,
|
|
32165
|
+
// mustUseProperty
|
|
32166
|
+
name,
|
|
32167
|
+
// attributeName
|
|
32168
|
+
null,
|
|
32169
|
+
// attributeNamespace
|
|
32170
|
+
false,
|
|
32171
|
+
// sanitizeURL
|
|
32172
|
+
false
|
|
32173
|
+
);
|
|
32174
|
+
});
|
|
32175
|
+
[
|
|
32176
|
+
"allowFullScreen",
|
|
32177
|
+
"async",
|
|
32178
|
+
// Note: there is a special case that prevents it from being written to the DOM
|
|
32179
|
+
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
32180
|
+
"autoFocus",
|
|
32181
|
+
"autoPlay",
|
|
32182
|
+
"controls",
|
|
32183
|
+
"default",
|
|
32184
|
+
"defer",
|
|
32185
|
+
"disabled",
|
|
32186
|
+
"disablePictureInPicture",
|
|
32187
|
+
"disableRemotePlayback",
|
|
32188
|
+
"formNoValidate",
|
|
32189
|
+
"hidden",
|
|
32190
|
+
"loop",
|
|
32191
|
+
"noModule",
|
|
32192
|
+
"noValidate",
|
|
32193
|
+
"open",
|
|
32194
|
+
"playsInline",
|
|
32195
|
+
"readOnly",
|
|
32196
|
+
"required",
|
|
32197
|
+
"reversed",
|
|
32198
|
+
"scoped",
|
|
32199
|
+
"seamless",
|
|
32200
|
+
// Microdata
|
|
32201
|
+
"itemScope"
|
|
32202
|
+
].forEach(function(name) {
|
|
32203
|
+
properties[name] = new PropertyInfoRecord(
|
|
32204
|
+
name,
|
|
32205
|
+
BOOLEAN,
|
|
32206
|
+
false,
|
|
32207
|
+
// mustUseProperty
|
|
32208
|
+
name.toLowerCase(),
|
|
32209
|
+
// attributeName
|
|
32210
|
+
null,
|
|
32211
|
+
// attributeNamespace
|
|
32212
|
+
false,
|
|
32213
|
+
// sanitizeURL
|
|
32214
|
+
false
|
|
32215
|
+
);
|
|
32216
|
+
});
|
|
32217
|
+
[
|
|
32218
|
+
"checked",
|
|
32219
|
+
// Note: `option.selected` is not updated if `select.multiple` is
|
|
32220
|
+
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
32221
|
+
"multiple",
|
|
32222
|
+
"muted",
|
|
32223
|
+
"selected"
|
|
32224
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32225
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32226
|
+
// instead in the assignment below.
|
|
32227
|
+
].forEach(function(name) {
|
|
32228
|
+
properties[name] = new PropertyInfoRecord(
|
|
32229
|
+
name,
|
|
32230
|
+
BOOLEAN,
|
|
32231
|
+
true,
|
|
32232
|
+
// mustUseProperty
|
|
32233
|
+
name,
|
|
32234
|
+
// attributeName
|
|
32235
|
+
null,
|
|
32236
|
+
// attributeNamespace
|
|
32237
|
+
false,
|
|
32238
|
+
// sanitizeURL
|
|
32239
|
+
false
|
|
32240
|
+
);
|
|
32241
|
+
});
|
|
32242
|
+
[
|
|
32243
|
+
"capture",
|
|
32244
|
+
"download"
|
|
32245
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32246
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32247
|
+
// instead in the assignment below.
|
|
32248
|
+
].forEach(function(name) {
|
|
32249
|
+
properties[name] = new PropertyInfoRecord(
|
|
32250
|
+
name,
|
|
32251
|
+
OVERLOADED_BOOLEAN,
|
|
32252
|
+
false,
|
|
32253
|
+
// mustUseProperty
|
|
32254
|
+
name,
|
|
32255
|
+
// attributeName
|
|
32256
|
+
null,
|
|
32257
|
+
// attributeNamespace
|
|
32258
|
+
false,
|
|
32259
|
+
// sanitizeURL
|
|
32260
|
+
false
|
|
32261
|
+
);
|
|
32262
|
+
});
|
|
32263
|
+
[
|
|
32264
|
+
"cols",
|
|
32265
|
+
"rows",
|
|
32266
|
+
"size",
|
|
32267
|
+
"span"
|
|
32268
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32269
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32270
|
+
// instead in the assignment below.
|
|
32271
|
+
].forEach(function(name) {
|
|
32272
|
+
properties[name] = new PropertyInfoRecord(
|
|
32273
|
+
name,
|
|
32274
|
+
POSITIVE_NUMERIC,
|
|
32275
|
+
false,
|
|
32276
|
+
// mustUseProperty
|
|
32277
|
+
name,
|
|
32278
|
+
// attributeName
|
|
32279
|
+
null,
|
|
32280
|
+
// attributeNamespace
|
|
32281
|
+
false,
|
|
32282
|
+
// sanitizeURL
|
|
32283
|
+
false
|
|
32284
|
+
);
|
|
32285
|
+
});
|
|
32286
|
+
["rowSpan", "start"].forEach(function(name) {
|
|
32287
|
+
properties[name] = new PropertyInfoRecord(
|
|
32288
|
+
name,
|
|
32289
|
+
NUMERIC,
|
|
32290
|
+
false,
|
|
32291
|
+
// mustUseProperty
|
|
32292
|
+
name.toLowerCase(),
|
|
32293
|
+
// attributeName
|
|
32294
|
+
null,
|
|
32295
|
+
// attributeNamespace
|
|
32296
|
+
false,
|
|
32297
|
+
// sanitizeURL
|
|
32298
|
+
false
|
|
32299
|
+
);
|
|
32300
|
+
});
|
|
32301
|
+
var CAMELIZE = /[\-\:]([a-z])/g;
|
|
32302
|
+
var capitalize$1 = function capitalize(token) {
|
|
32303
|
+
return token[1].toUpperCase();
|
|
32304
|
+
};
|
|
32305
|
+
[
|
|
32306
|
+
"accent-height",
|
|
32307
|
+
"alignment-baseline",
|
|
32308
|
+
"arabic-form",
|
|
32309
|
+
"baseline-shift",
|
|
32310
|
+
"cap-height",
|
|
32311
|
+
"clip-path",
|
|
32312
|
+
"clip-rule",
|
|
32313
|
+
"color-interpolation",
|
|
32314
|
+
"color-interpolation-filters",
|
|
32315
|
+
"color-profile",
|
|
32316
|
+
"color-rendering",
|
|
32317
|
+
"dominant-baseline",
|
|
32318
|
+
"enable-background",
|
|
32319
|
+
"fill-opacity",
|
|
32320
|
+
"fill-rule",
|
|
32321
|
+
"flood-color",
|
|
32322
|
+
"flood-opacity",
|
|
32323
|
+
"font-family",
|
|
32324
|
+
"font-size",
|
|
32325
|
+
"font-size-adjust",
|
|
32326
|
+
"font-stretch",
|
|
32327
|
+
"font-style",
|
|
32328
|
+
"font-variant",
|
|
32329
|
+
"font-weight",
|
|
32330
|
+
"glyph-name",
|
|
32331
|
+
"glyph-orientation-horizontal",
|
|
32332
|
+
"glyph-orientation-vertical",
|
|
32333
|
+
"horiz-adv-x",
|
|
32334
|
+
"horiz-origin-x",
|
|
32335
|
+
"image-rendering",
|
|
32336
|
+
"letter-spacing",
|
|
32337
|
+
"lighting-color",
|
|
32338
|
+
"marker-end",
|
|
32339
|
+
"marker-mid",
|
|
32340
|
+
"marker-start",
|
|
32341
|
+
"overline-position",
|
|
32342
|
+
"overline-thickness",
|
|
32343
|
+
"paint-order",
|
|
32344
|
+
"panose-1",
|
|
32345
|
+
"pointer-events",
|
|
32346
|
+
"rendering-intent",
|
|
32347
|
+
"shape-rendering",
|
|
32348
|
+
"stop-color",
|
|
32349
|
+
"stop-opacity",
|
|
32350
|
+
"strikethrough-position",
|
|
32351
|
+
"strikethrough-thickness",
|
|
32352
|
+
"stroke-dasharray",
|
|
32353
|
+
"stroke-dashoffset",
|
|
32354
|
+
"stroke-linecap",
|
|
32355
|
+
"stroke-linejoin",
|
|
32356
|
+
"stroke-miterlimit",
|
|
32357
|
+
"stroke-opacity",
|
|
32358
|
+
"stroke-width",
|
|
32359
|
+
"text-anchor",
|
|
32360
|
+
"text-decoration",
|
|
32361
|
+
"text-rendering",
|
|
32362
|
+
"underline-position",
|
|
32363
|
+
"underline-thickness",
|
|
32364
|
+
"unicode-bidi",
|
|
32365
|
+
"unicode-range",
|
|
32366
|
+
"units-per-em",
|
|
32367
|
+
"v-alphabetic",
|
|
32368
|
+
"v-hanging",
|
|
32369
|
+
"v-ideographic",
|
|
32370
|
+
"v-mathematical",
|
|
32371
|
+
"vector-effect",
|
|
32372
|
+
"vert-adv-y",
|
|
32373
|
+
"vert-origin-x",
|
|
32374
|
+
"vert-origin-y",
|
|
32375
|
+
"word-spacing",
|
|
32376
|
+
"writing-mode",
|
|
32377
|
+
"xmlns:xlink",
|
|
32378
|
+
"x-height"
|
|
32379
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32380
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32381
|
+
// instead in the assignment below.
|
|
32382
|
+
].forEach(function(attributeName) {
|
|
32383
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32384
|
+
properties[name] = new PropertyInfoRecord(
|
|
32385
|
+
name,
|
|
32386
|
+
STRING,
|
|
32387
|
+
false,
|
|
32388
|
+
// mustUseProperty
|
|
32389
|
+
attributeName,
|
|
32390
|
+
null,
|
|
32391
|
+
// attributeNamespace
|
|
32392
|
+
false,
|
|
32393
|
+
// sanitizeURL
|
|
32394
|
+
false
|
|
32395
|
+
);
|
|
32396
|
+
});
|
|
32397
|
+
[
|
|
32398
|
+
"xlink:actuate",
|
|
32399
|
+
"xlink:arcrole",
|
|
32400
|
+
"xlink:role",
|
|
32401
|
+
"xlink:show",
|
|
32402
|
+
"xlink:title",
|
|
32403
|
+
"xlink:type"
|
|
32404
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32405
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32406
|
+
// instead in the assignment below.
|
|
32407
|
+
].forEach(function(attributeName) {
|
|
32408
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32409
|
+
properties[name] = new PropertyInfoRecord(
|
|
32410
|
+
name,
|
|
32411
|
+
STRING,
|
|
32412
|
+
false,
|
|
32413
|
+
// mustUseProperty
|
|
32414
|
+
attributeName,
|
|
32415
|
+
"http://www.w3.org/1999/xlink",
|
|
32416
|
+
false,
|
|
32417
|
+
// sanitizeURL
|
|
32418
|
+
false
|
|
32419
|
+
);
|
|
32420
|
+
});
|
|
32421
|
+
[
|
|
32422
|
+
"xml:base",
|
|
32423
|
+
"xml:lang",
|
|
32424
|
+
"xml:space"
|
|
32425
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32426
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32427
|
+
// instead in the assignment below.
|
|
32428
|
+
].forEach(function(attributeName) {
|
|
32429
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32430
|
+
properties[name] = new PropertyInfoRecord(
|
|
32431
|
+
name,
|
|
32432
|
+
STRING,
|
|
32433
|
+
false,
|
|
32434
|
+
// mustUseProperty
|
|
32435
|
+
attributeName,
|
|
32436
|
+
"http://www.w3.org/XML/1998/namespace",
|
|
32437
|
+
false,
|
|
32438
|
+
// sanitizeURL
|
|
32439
|
+
false
|
|
32440
|
+
);
|
|
32441
|
+
});
|
|
32442
|
+
["tabIndex", "crossOrigin"].forEach(function(attributeName) {
|
|
32443
|
+
properties[attributeName] = new PropertyInfoRecord(
|
|
32444
|
+
attributeName,
|
|
32445
|
+
STRING,
|
|
32446
|
+
false,
|
|
32447
|
+
// mustUseProperty
|
|
32448
|
+
attributeName.toLowerCase(),
|
|
32449
|
+
// attributeName
|
|
32450
|
+
null,
|
|
32451
|
+
// attributeNamespace
|
|
32452
|
+
false,
|
|
32453
|
+
// sanitizeURL
|
|
32454
|
+
false
|
|
32455
|
+
);
|
|
32456
|
+
});
|
|
32457
|
+
var xlinkHref = "xlinkHref";
|
|
32458
|
+
properties[xlinkHref] = new PropertyInfoRecord(
|
|
32459
|
+
"xlinkHref",
|
|
32460
|
+
STRING,
|
|
32461
|
+
false,
|
|
32462
|
+
// mustUseProperty
|
|
32463
|
+
"xlink:href",
|
|
32464
|
+
"http://www.w3.org/1999/xlink",
|
|
32465
|
+
true,
|
|
32466
|
+
// sanitizeURL
|
|
32467
|
+
false
|
|
32468
|
+
);
|
|
32469
|
+
["src", "href", "action", "formAction"].forEach(function(attributeName) {
|
|
32470
|
+
properties[attributeName] = new PropertyInfoRecord(
|
|
32471
|
+
attributeName,
|
|
32472
|
+
STRING,
|
|
32473
|
+
false,
|
|
32474
|
+
// mustUseProperty
|
|
32475
|
+
attributeName.toLowerCase(),
|
|
32476
|
+
// attributeName
|
|
32477
|
+
null,
|
|
32478
|
+
// attributeNamespace
|
|
32479
|
+
true,
|
|
32480
|
+
// sanitizeURL
|
|
32481
|
+
true
|
|
32482
|
+
);
|
|
32483
|
+
});
|
|
32484
|
+
var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
|
|
32485
|
+
var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
32486
|
+
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
32487
|
+
var isCustomAttribute = RegExp.prototype.test.bind(
|
|
32488
|
+
// eslint-disable-next-line no-misleading-character-class
|
|
32489
|
+
new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
|
|
32490
|
+
);
|
|
32491
|
+
var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
|
|
32492
|
+
var propName = possibleStandardNamesOptimized[standardName];
|
|
32493
|
+
if (propName === SAME) {
|
|
32494
|
+
accumulator[standardName] = standardName;
|
|
32495
|
+
} else if (propName === CAMELCASE) {
|
|
32496
|
+
accumulator[standardName.toLowerCase()] = standardName;
|
|
32497
|
+
} else {
|
|
32498
|
+
accumulator[standardName] = propName;
|
|
32499
|
+
}
|
|
32500
|
+
return accumulator;
|
|
32501
|
+
}, {});
|
|
32502
|
+
lib$1.BOOLEAN = BOOLEAN;
|
|
32503
|
+
lib$1.BOOLEANISH_STRING = BOOLEANISH_STRING;
|
|
32504
|
+
lib$1.NUMERIC = NUMERIC;
|
|
32505
|
+
lib$1.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
|
|
32506
|
+
lib$1.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
|
|
32507
|
+
lib$1.RESERVED = RESERVED;
|
|
32508
|
+
lib$1.STRING = STRING;
|
|
32509
|
+
lib$1.getPropertyInfo = getPropertyInfo;
|
|
32510
|
+
lib$1.isCustomAttribute = isCustomAttribute;
|
|
32511
|
+
lib$1.possibleStandardNames = possibleStandardNames;
|
|
32512
|
+
var cjs = {};
|
|
32513
|
+
var styleToObject = { exports: {} };
|
|
32514
|
+
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
32515
|
+
var NEWLINE_REGEX = /\n/g;
|
|
32516
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
32517
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
32518
|
+
var COLON_REGEX = /^:\s*/;
|
|
32519
|
+
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
32520
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
32521
|
+
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
32522
|
+
var NEWLINE = "\n";
|
|
32523
|
+
var FORWARD_SLASH = "/";
|
|
32524
|
+
var ASTERISK = "*";
|
|
32525
|
+
var EMPTY_STRING = "";
|
|
32526
|
+
var TYPE_COMMENT = "comment";
|
|
32527
|
+
var TYPE_DECLARATION = "declaration";
|
|
32528
|
+
var inlineStyleParser = function(style, options) {
|
|
32529
|
+
if (typeof style !== "string") {
|
|
32530
|
+
throw new TypeError("First argument must be a string");
|
|
32531
|
+
}
|
|
32532
|
+
if (!style)
|
|
32533
|
+
return [];
|
|
32534
|
+
options = options || {};
|
|
32535
|
+
var lineno = 1;
|
|
32536
|
+
var column = 1;
|
|
32537
|
+
function updatePosition(str) {
|
|
32538
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
32539
|
+
if (lines)
|
|
32540
|
+
lineno += lines.length;
|
|
32541
|
+
var i2 = str.lastIndexOf(NEWLINE);
|
|
32542
|
+
column = ~i2 ? str.length - i2 : column + str.length;
|
|
32543
|
+
}
|
|
32544
|
+
function position() {
|
|
32545
|
+
var start2 = { line: lineno, column };
|
|
32546
|
+
return function(node2) {
|
|
32547
|
+
node2.position = new Position(start2);
|
|
32548
|
+
whitespace();
|
|
32549
|
+
return node2;
|
|
32550
|
+
};
|
|
32551
|
+
}
|
|
32552
|
+
function Position(start2) {
|
|
32553
|
+
this.start = start2;
|
|
32554
|
+
this.end = { line: lineno, column };
|
|
32555
|
+
this.source = options.source;
|
|
32556
|
+
}
|
|
32557
|
+
Position.prototype.content = style;
|
|
32558
|
+
function error(msg) {
|
|
32559
|
+
var err2 = new Error(
|
|
32560
|
+
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
32561
|
+
);
|
|
32562
|
+
err2.reason = msg;
|
|
32563
|
+
err2.filename = options.source;
|
|
32564
|
+
err2.line = lineno;
|
|
32565
|
+
err2.column = column;
|
|
32566
|
+
err2.source = style;
|
|
32567
|
+
if (options.silent)
|
|
32568
|
+
;
|
|
32569
|
+
else {
|
|
32570
|
+
throw err2;
|
|
32571
|
+
}
|
|
32572
|
+
}
|
|
32573
|
+
function match(re2) {
|
|
32574
|
+
var m2 = re2.exec(style);
|
|
32575
|
+
if (!m2)
|
|
32576
|
+
return;
|
|
32577
|
+
var str = m2[0];
|
|
32578
|
+
updatePosition(str);
|
|
32579
|
+
style = style.slice(str.length);
|
|
32580
|
+
return m2;
|
|
32581
|
+
}
|
|
32582
|
+
function whitespace() {
|
|
32583
|
+
match(WHITESPACE_REGEX);
|
|
32584
|
+
}
|
|
32585
|
+
function comments(rules) {
|
|
32586
|
+
var c6;
|
|
32587
|
+
rules = rules || [];
|
|
32588
|
+
while (c6 = comment()) {
|
|
32589
|
+
if (c6 !== false) {
|
|
32590
|
+
rules.push(c6);
|
|
32591
|
+
}
|
|
32592
|
+
}
|
|
32593
|
+
return rules;
|
|
32594
|
+
}
|
|
32595
|
+
function comment() {
|
|
32596
|
+
var pos = position();
|
|
32597
|
+
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
|
|
32598
|
+
return;
|
|
32599
|
+
var i2 = 2;
|
|
32600
|
+
while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
|
|
32601
|
+
++i2;
|
|
32602
|
+
}
|
|
32603
|
+
i2 += 2;
|
|
32604
|
+
if (EMPTY_STRING === style.charAt(i2 - 1)) {
|
|
32605
|
+
return error("End of comment missing");
|
|
32606
|
+
}
|
|
32607
|
+
var str = style.slice(2, i2 - 2);
|
|
32608
|
+
column += 2;
|
|
32609
|
+
updatePosition(str);
|
|
32610
|
+
style = style.slice(i2);
|
|
32611
|
+
column += 2;
|
|
32612
|
+
return pos({
|
|
32613
|
+
type: TYPE_COMMENT,
|
|
32614
|
+
comment: str
|
|
32615
|
+
});
|
|
32616
|
+
}
|
|
32617
|
+
function declaration() {
|
|
32618
|
+
var pos = position();
|
|
32619
|
+
var prop = match(PROPERTY_REGEX);
|
|
32620
|
+
if (!prop)
|
|
32621
|
+
return;
|
|
32622
|
+
comment();
|
|
32623
|
+
if (!match(COLON_REGEX))
|
|
32624
|
+
return error("property missing ':'");
|
|
32625
|
+
var val = match(VALUE_REGEX);
|
|
32626
|
+
var ret = pos({
|
|
32627
|
+
type: TYPE_DECLARATION,
|
|
32628
|
+
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
32629
|
+
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
32630
|
+
});
|
|
32631
|
+
match(SEMICOLON_REGEX);
|
|
32632
|
+
return ret;
|
|
32633
|
+
}
|
|
32634
|
+
function declarations() {
|
|
32635
|
+
var decls = [];
|
|
32636
|
+
comments(decls);
|
|
32637
|
+
var decl;
|
|
32638
|
+
while (decl = declaration()) {
|
|
32639
|
+
if (decl !== false) {
|
|
32640
|
+
decls.push(decl);
|
|
32641
|
+
comments(decls);
|
|
32642
|
+
}
|
|
32643
|
+
}
|
|
32644
|
+
return decls;
|
|
32645
|
+
}
|
|
32646
|
+
whitespace();
|
|
32647
|
+
return declarations();
|
|
32648
|
+
};
|
|
32649
|
+
function trim(str) {
|
|
32650
|
+
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
32651
|
+
}
|
|
32652
|
+
var parse$2 = inlineStyleParser;
|
|
32653
|
+
function StyleToObject(style, iterator) {
|
|
32654
|
+
var output = null;
|
|
32655
|
+
if (!style || typeof style !== "string") {
|
|
32656
|
+
return output;
|
|
32657
|
+
}
|
|
32658
|
+
var declaration;
|
|
32659
|
+
var declarations = parse$2(style);
|
|
32660
|
+
var hasIterator = typeof iterator === "function";
|
|
32661
|
+
var property;
|
|
32662
|
+
var value;
|
|
32663
|
+
for (var i2 = 0, len = declarations.length; i2 < len; i2++) {
|
|
32664
|
+
declaration = declarations[i2];
|
|
32665
|
+
property = declaration.property;
|
|
32666
|
+
value = declaration.value;
|
|
32667
|
+
if (hasIterator) {
|
|
32668
|
+
iterator(property, value, declaration);
|
|
32669
|
+
} else if (value) {
|
|
32670
|
+
output || (output = {});
|
|
32671
|
+
output[property] = value;
|
|
32672
|
+
}
|
|
32673
|
+
}
|
|
32674
|
+
return output;
|
|
32675
|
+
}
|
|
32676
|
+
styleToObject.exports = StyleToObject;
|
|
32677
|
+
styleToObject.exports.default = StyleToObject;
|
|
32678
|
+
var styleToObjectExports = styleToObject.exports;
|
|
32679
|
+
var utilities$3 = {};
|
|
32680
|
+
utilities$3.__esModule = true;
|
|
32681
|
+
utilities$3.camelCase = void 0;
|
|
32682
|
+
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
32683
|
+
var HYPHEN_REGEX = /-([a-z])/g;
|
|
32684
|
+
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
32685
|
+
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
32686
|
+
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
32687
|
+
var skipCamelCase = function(property) {
|
|
32688
|
+
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
32689
|
+
};
|
|
32690
|
+
var capitalize2 = function(match, character) {
|
|
32691
|
+
return character.toUpperCase();
|
|
32692
|
+
};
|
|
32693
|
+
var trimHyphen = function(match, prefix2) {
|
|
32694
|
+
return "".concat(prefix2, "-");
|
|
32695
|
+
};
|
|
32696
|
+
var camelCase = function(property, options) {
|
|
32697
|
+
if (options === void 0) {
|
|
32698
|
+
options = {};
|
|
32699
|
+
}
|
|
32700
|
+
if (skipCamelCase(property)) {
|
|
32701
|
+
return property;
|
|
32702
|
+
}
|
|
32703
|
+
property = property.toLowerCase();
|
|
32704
|
+
if (options.reactCompat) {
|
|
32705
|
+
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32706
|
+
} else {
|
|
32707
|
+
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32708
|
+
}
|
|
32709
|
+
return property.replace(HYPHEN_REGEX, capitalize2);
|
|
32710
|
+
};
|
|
32711
|
+
utilities$3.camelCase = camelCase;
|
|
32712
|
+
(function(exports) {
|
|
32713
|
+
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
|
|
32714
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32715
|
+
};
|
|
32716
|
+
exports.__esModule = true;
|
|
32717
|
+
var style_to_object_1 = __importDefault(styleToObjectExports);
|
|
32718
|
+
var utilities_1 = utilities$3;
|
|
32719
|
+
function StyleToJS(style, options) {
|
|
32720
|
+
var output = {};
|
|
32721
|
+
if (!style || typeof style !== "string") {
|
|
32722
|
+
return output;
|
|
32723
|
+
}
|
|
32724
|
+
(0, style_to_object_1["default"])(style, function(property, value) {
|
|
32725
|
+
if (property && value) {
|
|
32726
|
+
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
32727
|
+
}
|
|
32728
|
+
});
|
|
32729
|
+
return output;
|
|
32730
|
+
}
|
|
32731
|
+
exports["default"] = StyleToJS;
|
|
32732
|
+
})(cjs);
|
|
32733
|
+
var React$1 = reactExports;
|
|
32734
|
+
var styleToJS = cjs.default;
|
|
32735
|
+
function invertObject(obj, override) {
|
|
32736
|
+
if (!obj || typeof obj !== "object") {
|
|
32737
|
+
throw new TypeError("First argument must be an object");
|
|
32738
|
+
}
|
|
32739
|
+
var isOverridePresent = typeof override === "function";
|
|
32740
|
+
var overrides = {};
|
|
32741
|
+
var result = {};
|
|
32742
|
+
for (var key in obj) {
|
|
32743
|
+
var value = obj[key];
|
|
32744
|
+
if (isOverridePresent) {
|
|
32745
|
+
overrides = override(key, value);
|
|
32746
|
+
if (overrides && overrides.length === 2) {
|
|
32747
|
+
result[overrides[0]] = overrides[1];
|
|
32748
|
+
continue;
|
|
32749
|
+
}
|
|
32750
|
+
}
|
|
32751
|
+
if (typeof value === "string") {
|
|
32752
|
+
result[value] = key;
|
|
32753
|
+
}
|
|
32754
|
+
}
|
|
32755
|
+
return result;
|
|
32756
|
+
}
|
|
32757
|
+
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
32758
|
+
"annotation-xml",
|
|
32759
|
+
"color-profile",
|
|
32760
|
+
"font-face",
|
|
32761
|
+
"font-face-src",
|
|
32762
|
+
"font-face-uri",
|
|
32763
|
+
"font-face-format",
|
|
32764
|
+
"font-face-name",
|
|
32765
|
+
"missing-glyph"
|
|
32766
|
+
]);
|
|
32767
|
+
function isCustomComponent(tagName2, props) {
|
|
32768
|
+
if (tagName2.indexOf("-") === -1) {
|
|
32769
|
+
return props && typeof props.is === "string";
|
|
32770
|
+
}
|
|
32771
|
+
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
|
|
32772
|
+
return false;
|
|
32773
|
+
}
|
|
32774
|
+
return true;
|
|
32775
|
+
}
|
|
32776
|
+
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
32777
|
+
function setStyleProp$1(style, props) {
|
|
32778
|
+
if (style === null || style === void 0) {
|
|
32779
|
+
return;
|
|
32780
|
+
}
|
|
32781
|
+
try {
|
|
32782
|
+
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
32783
|
+
} catch (err2) {
|
|
32784
|
+
props.style = {};
|
|
32785
|
+
}
|
|
32786
|
+
}
|
|
32787
|
+
var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
|
|
32788
|
+
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
32789
|
+
"tr",
|
|
32790
|
+
"tbody",
|
|
32791
|
+
"thead",
|
|
32792
|
+
"tfoot",
|
|
32793
|
+
"colgroup",
|
|
32794
|
+
"table",
|
|
32795
|
+
"head",
|
|
32796
|
+
"html",
|
|
32797
|
+
"frameset"
|
|
32798
|
+
]);
|
|
32799
|
+
function canTextBeChildOfNode$1(node2) {
|
|
32800
|
+
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
|
|
32801
|
+
}
|
|
32802
|
+
function returnFirstArg(arg) {
|
|
32803
|
+
return arg;
|
|
32804
|
+
}
|
|
32805
|
+
var utilities$2 = {
|
|
32806
|
+
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
32807
|
+
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
32808
|
+
invertObject,
|
|
32809
|
+
isCustomComponent,
|
|
32810
|
+
setStyleProp: setStyleProp$1,
|
|
32811
|
+
canTextBeChildOfNode: canTextBeChildOfNode$1,
|
|
32812
|
+
returnFirstArg
|
|
32813
|
+
};
|
|
32814
|
+
var reactProperty = lib$1;
|
|
32815
|
+
var utilities$1 = utilities$2;
|
|
32816
|
+
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
|
|
32817
|
+
var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
|
|
32818
|
+
var VALUE_ONLY_INPUTS = {
|
|
32819
|
+
reset: true,
|
|
32820
|
+
submit: true
|
|
32821
|
+
};
|
|
32822
|
+
var attributesToProps$3 = function attributesToProps(attributes, nodeName) {
|
|
32823
|
+
attributes = attributes || {};
|
|
32824
|
+
var attributeName;
|
|
32825
|
+
var attributeNameLowerCased;
|
|
32826
|
+
var attributeValue;
|
|
32827
|
+
var propName;
|
|
32828
|
+
var propertyInfo;
|
|
32829
|
+
var props = {};
|
|
32830
|
+
var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
|
|
32831
|
+
for (attributeName in attributes) {
|
|
32832
|
+
attributeValue = attributes[attributeName];
|
|
32833
|
+
if (reactProperty.isCustomAttribute(attributeName)) {
|
|
32834
|
+
props[attributeName] = attributeValue;
|
|
32835
|
+
continue;
|
|
32836
|
+
}
|
|
32837
|
+
attributeNameLowerCased = attributeName.toLowerCase();
|
|
32838
|
+
propName = getPropName(attributeNameLowerCased);
|
|
32839
|
+
if (propName) {
|
|
32840
|
+
propertyInfo = reactProperty.getPropertyInfo(propName);
|
|
32841
|
+
if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
|
|
32842
|
+
propName = getPropName("default" + attributeNameLowerCased);
|
|
32843
|
+
}
|
|
32844
|
+
props[propName] = attributeValue;
|
|
32845
|
+
switch (propertyInfo && propertyInfo.type) {
|
|
32846
|
+
case reactProperty.BOOLEAN:
|
|
32847
|
+
props[propName] = true;
|
|
32848
|
+
break;
|
|
32849
|
+
case reactProperty.OVERLOADED_BOOLEAN:
|
|
32850
|
+
if (attributeValue === "") {
|
|
32851
|
+
props[propName] = true;
|
|
32852
|
+
}
|
|
32853
|
+
break;
|
|
32854
|
+
}
|
|
32855
|
+
continue;
|
|
32856
|
+
}
|
|
32857
|
+
if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
|
|
32858
|
+
props[attributeName] = attributeValue;
|
|
32859
|
+
}
|
|
32860
|
+
}
|
|
32861
|
+
utilities$1.setStyleProp(attributes.style, props);
|
|
32862
|
+
return props;
|
|
32863
|
+
};
|
|
32864
|
+
function getPropName(attributeName) {
|
|
32865
|
+
return reactProperty.possibleStandardNames[attributeName];
|
|
32866
|
+
}
|
|
32867
|
+
var React = reactExports;
|
|
32868
|
+
var attributesToProps$2 = attributesToProps$3;
|
|
32869
|
+
var utilities = utilities$2;
|
|
32870
|
+
var setStyleProp = utilities.setStyleProp;
|
|
32871
|
+
var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
|
|
32872
|
+
function domToReact$2(nodes, options) {
|
|
32873
|
+
options = options || {};
|
|
32874
|
+
var library = options.library || React;
|
|
32875
|
+
var cloneElement = library.cloneElement;
|
|
32876
|
+
var createElement2 = library.createElement;
|
|
32877
|
+
var isValidElement = library.isValidElement;
|
|
32878
|
+
var result = [];
|
|
32879
|
+
var node2;
|
|
32880
|
+
var isWhitespace;
|
|
32881
|
+
var hasReplace = typeof options.replace === "function";
|
|
32882
|
+
var transform = options.transform || utilities.returnFirstArg;
|
|
32883
|
+
var replaceElement;
|
|
32884
|
+
var props;
|
|
32885
|
+
var children;
|
|
32886
|
+
var trim2 = options.trim;
|
|
32887
|
+
for (var i2 = 0, len = nodes.length; i2 < len; i2++) {
|
|
32888
|
+
node2 = nodes[i2];
|
|
32889
|
+
if (hasReplace) {
|
|
32890
|
+
replaceElement = options.replace(node2);
|
|
32891
|
+
if (isValidElement(replaceElement)) {
|
|
32892
|
+
if (len > 1) {
|
|
32893
|
+
replaceElement = cloneElement(replaceElement, {
|
|
32894
|
+
key: replaceElement.key || i2
|
|
32895
|
+
});
|
|
32896
|
+
}
|
|
32897
|
+
result.push(transform(replaceElement, node2, i2));
|
|
32898
|
+
continue;
|
|
32899
|
+
}
|
|
32900
|
+
}
|
|
32901
|
+
if (node2.type === "text") {
|
|
32902
|
+
isWhitespace = !node2.data.trim().length;
|
|
32903
|
+
if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
|
|
32904
|
+
continue;
|
|
32905
|
+
}
|
|
32906
|
+
if (trim2 && isWhitespace) {
|
|
32907
|
+
continue;
|
|
32908
|
+
}
|
|
32909
|
+
result.push(transform(node2.data, node2, i2));
|
|
32910
|
+
continue;
|
|
32911
|
+
}
|
|
32912
|
+
props = node2.attribs;
|
|
32913
|
+
if (skipAttributesToProps(node2)) {
|
|
32914
|
+
setStyleProp(props.style, props);
|
|
32915
|
+
} else if (props) {
|
|
32916
|
+
props = attributesToProps$2(props, node2.name);
|
|
32917
|
+
}
|
|
32918
|
+
children = null;
|
|
32919
|
+
switch (node2.type) {
|
|
32920
|
+
case "script":
|
|
32921
|
+
case "style":
|
|
32922
|
+
if (node2.children[0]) {
|
|
32923
|
+
props.dangerouslySetInnerHTML = {
|
|
32924
|
+
__html: node2.children[0].data
|
|
32925
|
+
};
|
|
32926
|
+
}
|
|
32927
|
+
break;
|
|
32928
|
+
case "tag":
|
|
32929
|
+
if (node2.name === "textarea" && node2.children[0]) {
|
|
32930
|
+
props.defaultValue = node2.children[0].data;
|
|
32931
|
+
} else if (node2.children && node2.children.length) {
|
|
32932
|
+
children = domToReact$2(node2.children, options);
|
|
32933
|
+
}
|
|
32934
|
+
break;
|
|
32935
|
+
default:
|
|
32936
|
+
continue;
|
|
32937
|
+
}
|
|
32938
|
+
if (len > 1) {
|
|
32939
|
+
props.key = i2;
|
|
32940
|
+
}
|
|
32941
|
+
result.push(transform(createElement2(node2.name, props, children), node2, i2));
|
|
32942
|
+
}
|
|
32943
|
+
return result.length === 1 ? result[0] : result;
|
|
32944
|
+
}
|
|
32945
|
+
function skipAttributesToProps(node2) {
|
|
32946
|
+
return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
|
|
32947
|
+
}
|
|
32948
|
+
var domToReact_1 = domToReact$2;
|
|
32949
|
+
var domhandler = lib$3;
|
|
32950
|
+
var htmlToDOM = htmlToDom;
|
|
32951
|
+
var attributesToProps$1 = attributesToProps$3;
|
|
32952
|
+
var domToReact$1 = domToReact_1;
|
|
32953
|
+
htmlToDOM = /* istanbul ignore next */
|
|
32954
|
+
typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
|
|
32955
|
+
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
32956
|
+
function HTMLReactParser(html, options) {
|
|
32957
|
+
if (typeof html !== "string") {
|
|
32958
|
+
throw new TypeError("First argument must be a string");
|
|
32959
|
+
}
|
|
32960
|
+
if (html === "") {
|
|
32961
|
+
return [];
|
|
32962
|
+
}
|
|
32963
|
+
options = options || {};
|
|
32964
|
+
return domToReact$1(
|
|
32965
|
+
htmlToDOM(html, options.htmlparser2 || domParserOptions),
|
|
32966
|
+
options
|
|
32967
|
+
);
|
|
32968
|
+
}
|
|
32969
|
+
HTMLReactParser.domToReact = domToReact$1;
|
|
32970
|
+
HTMLReactParser.htmlToDOM = htmlToDOM;
|
|
32971
|
+
HTMLReactParser.attributesToProps = attributesToProps$1;
|
|
32972
|
+
HTMLReactParser.Comment = domhandler.Comment;
|
|
32973
|
+
HTMLReactParser.Element = domhandler.Element;
|
|
32974
|
+
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
|
|
32975
|
+
HTMLReactParser.Text = domhandler.Text;
|
|
32976
|
+
var htmlReactParser = HTMLReactParser;
|
|
32977
|
+
HTMLReactParser.default = HTMLReactParser;
|
|
32978
|
+
const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(htmlReactParser);
|
|
32979
|
+
var domToReact = HTMLReactParser$1.domToReact;
|
|
32980
|
+
HTMLReactParser$1.htmlToDOM;
|
|
32981
|
+
var attributesToProps2 = HTMLReactParser$1.attributesToProps;
|
|
32982
|
+
HTMLReactParser$1.Comment;
|
|
32983
|
+
HTMLReactParser$1.Element;
|
|
32984
|
+
HTMLReactParser$1.ProcessingInstruction;
|
|
32985
|
+
HTMLReactParser$1.Text;
|
|
30604
32986
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
30605
32987
|
const Z_FIXED$1 = 4;
|
|
30606
32988
|
const Z_BINARY = 0;
|
|
@@ -30951,7 +33333,7 @@ const build_tree = (s2, desc) => {
|
|
|
30951
33333
|
const elems = desc.stat_desc.elems;
|
|
30952
33334
|
let n2, m2;
|
|
30953
33335
|
let max_code = -1;
|
|
30954
|
-
let
|
|
33336
|
+
let node2;
|
|
30955
33337
|
s2.heap_len = 0;
|
|
30956
33338
|
s2.heap_max = HEAP_SIZE$1;
|
|
30957
33339
|
for (n2 = 0; n2 < elems; n2++) {
|
|
@@ -30963,19 +33345,19 @@ const build_tree = (s2, desc) => {
|
|
|
30963
33345
|
}
|
|
30964
33346
|
}
|
|
30965
33347
|
while (s2.heap_len < 2) {
|
|
30966
|
-
|
|
30967
|
-
tree[
|
|
30968
|
-
s2.depth[
|
|
33348
|
+
node2 = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
|
|
33349
|
+
tree[node2 * 2] = 1;
|
|
33350
|
+
s2.depth[node2] = 0;
|
|
30969
33351
|
s2.opt_len--;
|
|
30970
33352
|
if (has_stree) {
|
|
30971
|
-
s2.static_len -= stree[
|
|
33353
|
+
s2.static_len -= stree[node2 * 2 + 1];
|
|
30972
33354
|
}
|
|
30973
33355
|
}
|
|
30974
33356
|
desc.max_code = max_code;
|
|
30975
33357
|
for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
|
|
30976
33358
|
pqdownheap(s2, tree, n2);
|
|
30977
33359
|
}
|
|
30978
|
-
|
|
33360
|
+
node2 = elems;
|
|
30979
33361
|
do {
|
|
30980
33362
|
n2 = s2.heap[
|
|
30981
33363
|
1
|
|
@@ -30997,13 +33379,13 @@ const build_tree = (s2, desc) => {
|
|
|
30997
33379
|
];
|
|
30998
33380
|
s2.heap[--s2.heap_max] = n2;
|
|
30999
33381
|
s2.heap[--s2.heap_max] = m2;
|
|
31000
|
-
tree[
|
|
31001
|
-
s2.depth[
|
|
31002
|
-
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] =
|
|
33382
|
+
tree[node2 * 2] = tree[n2 * 2] + tree[m2 * 2];
|
|
33383
|
+
s2.depth[node2] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
|
|
33384
|
+
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node2;
|
|
31003
33385
|
s2.heap[
|
|
31004
33386
|
1
|
|
31005
33387
|
/*SMALLEST*/
|
|
31006
|
-
] =
|
|
33388
|
+
] = node2++;
|
|
31007
33389
|
pqdownheap(
|
|
31008
33390
|
s2,
|
|
31009
33391
|
tree,
|
|
@@ -35042,7 +37424,7 @@ var eventemitter3 = { exports: {} };
|
|
|
35042
37424
|
}
|
|
35043
37425
|
})(eventemitter3);
|
|
35044
37426
|
var eventemitter3Exports = eventemitter3.exports;
|
|
35045
|
-
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Exports);
|
|
37427
|
+
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$1(eventemitter3Exports);
|
|
35046
37428
|
var earcut$2 = { exports: {} };
|
|
35047
37429
|
earcut$2.exports = earcut;
|
|
35048
37430
|
earcut$2.exports.default = earcut;
|
|
@@ -35504,7 +37886,7 @@ earcut.flatten = function(data) {
|
|
|
35504
37886
|
return result;
|
|
35505
37887
|
};
|
|
35506
37888
|
var earcutExports = earcut$2.exports;
|
|
35507
|
-
const earcut$1 = /* @__PURE__ */ getDefaultExportFromCjs(earcutExports);
|
|
37889
|
+
const earcut$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(earcutExports);
|
|
35508
37890
|
var punycode$1 = { exports: {} };
|
|
35509
37891
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
35510
37892
|
punycode$1.exports;
|
|
@@ -35512,7 +37894,7 @@ punycode$1.exports;
|
|
|
35512
37894
|
(function(root2) {
|
|
35513
37895
|
var freeExports = exports && !exports.nodeType && exports;
|
|
35514
37896
|
var freeModule = module && !module.nodeType && module;
|
|
35515
|
-
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal;
|
|
37897
|
+
var freeGlobal = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1;
|
|
35516
37898
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {
|
|
35517
37899
|
root2 = freeGlobal;
|
|
35518
37900
|
}
|
|
@@ -35744,7 +38126,7 @@ punycode$1.exports;
|
|
|
35744
38126
|
} else {
|
|
35745
38127
|
root2.punycode = punycode2;
|
|
35746
38128
|
}
|
|
35747
|
-
})(commonjsGlobal);
|
|
38129
|
+
})(commonjsGlobal$1);
|
|
35748
38130
|
})(punycode$1, punycode$1.exports);
|
|
35749
38131
|
var punycodeExports = punycode$1.exports;
|
|
35750
38132
|
var esErrors = Error;
|
|
@@ -36599,7 +38981,7 @@ var objectInspect = function inspect_(obj, options, depth, seen2) {
|
|
|
36599
38981
|
if (typeof window !== "undefined" && obj === window) {
|
|
36600
38982
|
return "{ [object Window] }";
|
|
36601
38983
|
}
|
|
36602
|
-
if (obj === commonjsGlobal) {
|
|
38984
|
+
if (obj === commonjsGlobal$1) {
|
|
36603
38985
|
return "{ [object globalThis] }";
|
|
36604
38986
|
}
|
|
36605
38987
|
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
@@ -36918,13 +39300,13 @@ var listGetNode = function(list, key) {
|
|
|
36918
39300
|
}
|
|
36919
39301
|
};
|
|
36920
39302
|
var listGet = function(objects, key) {
|
|
36921
|
-
var
|
|
36922
|
-
return
|
|
39303
|
+
var node2 = listGetNode(objects, key);
|
|
39304
|
+
return node2 && node2.value;
|
|
36923
39305
|
};
|
|
36924
39306
|
var listSet = function(objects, key, value) {
|
|
36925
|
-
var
|
|
36926
|
-
if (
|
|
36927
|
-
|
|
39307
|
+
var node2 = listGetNode(objects, key);
|
|
39308
|
+
if (node2) {
|
|
39309
|
+
node2.value = value;
|
|
36928
39310
|
} else {
|
|
36929
39311
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
36930
39312
|
{
|
|
@@ -41736,12 +44118,12 @@ function generateUniformsSync(group, uniformData) {
|
|
|
41736
44118
|
break;
|
|
41737
44119
|
}
|
|
41738
44120
|
if (!parsed) {
|
|
41739
|
-
const
|
|
44121
|
+
const template2 = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
|
|
41740
44122
|
funcFragments.push(`
|
|
41741
44123
|
cu = ud["${i2}"];
|
|
41742
44124
|
cv = cu.value;
|
|
41743
44125
|
v = uv["${i2}"];
|
|
41744
|
-
${
|
|
44126
|
+
${template2};`);
|
|
41745
44127
|
}
|
|
41746
44128
|
}
|
|
41747
44129
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -43160,8 +45542,8 @@ class Texture extends EventEmitter2 {
|
|
|
43160
45542
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
43161
45543
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
43162
45544
|
*/
|
|
43163
|
-
constructor(baseTexture, frame, orig,
|
|
43164
|
-
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim =
|
|
45545
|
+
constructor(baseTexture, frame, orig, trim2, rotate, anchor, borders) {
|
|
45546
|
+
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim = trim2, this.valid = false, this.destroyed = false, this._uvs = DEFAULT_UVS, this.uvMatrix = null, this.orig = orig || frame, this._rotate = Number(rotate || 0), rotate === true)
|
|
43165
45547
|
this._rotate = 2;
|
|
43166
45548
|
else if (this._rotate % 2 !== 0)
|
|
43167
45549
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -44401,14 +46783,14 @@ class TextureMatrix {
|
|
|
44401
46783
|
this._textureID = tex._updateID, this._updateID++;
|
|
44402
46784
|
const uvs = tex._uvs;
|
|
44403
46785
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
44404
|
-
const orig = tex.orig,
|
|
44405
|
-
|
|
44406
|
-
orig.width /
|
|
46786
|
+
const orig = tex.orig, trim2 = tex.trim;
|
|
46787
|
+
trim2 && (tempMat$1.set(
|
|
46788
|
+
orig.width / trim2.width,
|
|
44407
46789
|
0,
|
|
44408
46790
|
0,
|
|
44409
|
-
orig.height /
|
|
44410
|
-
-
|
|
44411
|
-
-
|
|
46791
|
+
orig.height / trim2.height,
|
|
46792
|
+
-trim2.x / trim2.width,
|
|
46793
|
+
-trim2.y / trim2.height
|
|
44412
46794
|
), this.mapCoord.append(tempMat$1));
|
|
44413
46795
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
44414
46796
|
return frame[0] = (tex._frame.x + margin + offset2) / texBase.width, frame[1] = (tex._frame.y + margin + offset2) / texBase.height, frame[2] = (tex._frame.x + tex._frame.width - margin + offset2) / texBase.width, frame[3] = (tex._frame.y + tex._frame.height - margin + offset2) / texBase.height, this.uClampOffset[0] = offset2 / texBase.realWidth, this.uClampOffset[1] = offset2 / texBase.realHeight, this.isSimple = tex._frame.width === texBase.width && tex._frame.height === texBase.height && tex.rotate === 0, true;
|
|
@@ -45242,12 +47624,12 @@ function generateUniformBufferSync(group, uniformData) {
|
|
|
45242
47624
|
|
|
45243
47625
|
`);
|
|
45244
47626
|
} else {
|
|
45245
|
-
const
|
|
47627
|
+
const template2 = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
45246
47628
|
funcFragments.push(`
|
|
45247
47629
|
cv = ud.${name}.value;
|
|
45248
47630
|
v = uv.${name};
|
|
45249
47631
|
offset = ${uboElement.offset / 4};
|
|
45250
|
-
${
|
|
47632
|
+
${template2};
|
|
45251
47633
|
`);
|
|
45252
47634
|
}
|
|
45253
47635
|
}
|
|
@@ -48816,9 +51198,9 @@ class Sprite extends Container {
|
|
|
48816
51198
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
48817
51199
|
return;
|
|
48818
51200
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
48819
|
-
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData,
|
|
51201
|
+
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData, trim2 = texture.trim, orig = texture.orig, anchor = this._anchor;
|
|
48820
51202
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
48821
|
-
if (
|
|
51203
|
+
if (trim2 ? (w1 = trim2.x - anchor._x * orig.width, w0 = w1 + trim2.width, h1 = trim2.y - anchor._y * orig.height, h0 = h1 + trim2.height) : (w1 = -anchor._x * orig.width, w0 = w1 + orig.width, h1 = -anchor._y * orig.height, h0 = h1 + orig.height), vertexData[0] = a2 * w1 + c6 * h1 + tx, vertexData[1] = d2 * h1 + b2 * w1 + ty, vertexData[2] = a2 * w0 + c6 * h1 + tx, vertexData[3] = d2 * h1 + b2 * w0 + ty, vertexData[4] = a2 * w0 + c6 * h0 + tx, vertexData[5] = d2 * h0 + b2 * w0 + ty, vertexData[6] = a2 * w1 + c6 * h0 + tx, vertexData[7] = d2 * h0 + b2 * w1 + ty, this._roundPixels) {
|
|
48822
51204
|
const resolution = settings.RESOLUTION;
|
|
48823
51205
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
48824
51206
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -48852,8 +51234,8 @@ class Sprite extends Container {
|
|
|
48852
51234
|
}
|
|
48853
51235
|
/** Updates the bounds of the sprite. */
|
|
48854
51236
|
_calculateBounds() {
|
|
48855
|
-
const
|
|
48856
|
-
!
|
|
51237
|
+
const trim2 = this._texture.trim, orig = this._texture.orig;
|
|
51238
|
+
!trim2 || trim2.width === orig.width && trim2.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
|
|
48857
51239
|
}
|
|
48858
51240
|
/**
|
|
48859
51241
|
* Gets the local bounds of the sprite object.
|
|
@@ -49262,7 +51644,7 @@ const contextSettings = {
|
|
|
49262
51644
|
static measureFont(font) {
|
|
49263
51645
|
if (_TextMetrics2._fonts[font])
|
|
49264
51646
|
return _TextMetrics2._fonts[font];
|
|
49265
|
-
const
|
|
51647
|
+
const properties2 = {
|
|
49266
51648
|
ascent: 0,
|
|
49267
51649
|
descent: 0,
|
|
49268
51650
|
fontSize: 0
|
|
@@ -49272,7 +51654,7 @@ const contextSettings = {
|
|
|
49272
51654
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
49273
51655
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
49274
51656
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
49275
|
-
return _TextMetrics2._fonts[font] =
|
|
51657
|
+
return _TextMetrics2._fonts[font] = properties2, properties2;
|
|
49276
51658
|
canvas.width = width, canvas.height = height, context2.fillStyle = "#f00", context2.fillRect(0, 0, width, height), context2.font = font, context2.textBaseline = "alphabetic", context2.fillStyle = "#000", context2.fillText(metricsString, 0, baseline);
|
|
49277
51659
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
49278
51660
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -49287,7 +51669,7 @@ const contextSettings = {
|
|
|
49287
51669
|
else
|
|
49288
51670
|
break;
|
|
49289
51671
|
}
|
|
49290
|
-
for (
|
|
51672
|
+
for (properties2.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
49291
51673
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
49292
51674
|
if (imagedata[idx + j2] !== 255) {
|
|
49293
51675
|
stop2 = true;
|
|
@@ -49298,7 +51680,7 @@ const contextSettings = {
|
|
|
49298
51680
|
else
|
|
49299
51681
|
break;
|
|
49300
51682
|
}
|
|
49301
|
-
return
|
|
51683
|
+
return properties2.descent = i2 - baseline, properties2.fontSize = properties2.ascent + properties2.descent, _TextMetrics2._fonts[font] = properties2, properties2;
|
|
49302
51684
|
}
|
|
49303
51685
|
/**
|
|
49304
51686
|
* Clear font metrics in metrics cache.
|
|
@@ -49670,8 +52052,8 @@ const genericFontFamilies = [
|
|
|
49670
52052
|
get trim() {
|
|
49671
52053
|
return this._trim;
|
|
49672
52054
|
}
|
|
49673
|
-
set trim(
|
|
49674
|
-
this._trim !==
|
|
52055
|
+
set trim(trim2) {
|
|
52056
|
+
this._trim !== trim2 && (this._trim = trim2, this.styleID++);
|
|
49675
52057
|
}
|
|
49676
52058
|
/**
|
|
49677
52059
|
* How newlines and spaces should be handled.
|
|
@@ -54262,10 +56644,10 @@ class ParticleBuffer {
|
|
|
54262
56644
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
54263
56645
|
* @param {number} size - The size of the batch.
|
|
54264
56646
|
*/
|
|
54265
|
-
constructor(
|
|
56647
|
+
constructor(properties2, dynamicPropertyFlags, size2) {
|
|
54266
56648
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
54267
|
-
for (let i2 = 0; i2 <
|
|
54268
|
-
let property =
|
|
56649
|
+
for (let i2 = 0; i2 < properties2.length; ++i2) {
|
|
56650
|
+
let property = properties2[i2];
|
|
54269
56651
|
property = {
|
|
54270
56652
|
attributeName: property.attributeName,
|
|
54271
56653
|
size: property.size,
|
|
@@ -54502,8 +56884,8 @@ class ParticleRenderer extends ObjectRenderer {
|
|
|
54502
56884
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
54503
56885
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
54504
56886
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
54505
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
54506
|
-
|
|
56887
|
+
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim2 = texture.trim, orig = texture.orig;
|
|
56888
|
+
trim2 ? (w1 = trim2.x - sprite.anchor.x * orig.width, w0 = w1 + trim2.width, h1 = trim2.y - sprite.anchor.y * orig.height, h0 = h1 + trim2.height) : (w0 = orig.width * (1 - sprite.anchor.x), w1 = orig.width * -sprite.anchor.x, h0 = orig.height * (1 - sprite.anchor.y), h1 = orig.height * -sprite.anchor.y), array[offset2] = w1 * sx, array[offset2 + 1] = h1 * sy, array[offset2 + stride] = w0 * sx, array[offset2 + stride + 1] = h1 * sy, array[offset2 + stride * 2] = w0 * sx, array[offset2 + stride * 2 + 1] = h0 * sy, array[offset2 + stride * 3] = w1 * sx, array[offset2 + stride * 3 + 1] = h0 * sy, offset2 += stride * 4;
|
|
54507
56889
|
}
|
|
54508
56890
|
}
|
|
54509
56891
|
/**
|
|
@@ -55044,10 +57426,10 @@ const GAUSSIAN_VALUES = {
|
|
|
55044
57426
|
function generateBlurFragSource(kernelSize) {
|
|
55045
57427
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
55046
57428
|
let fragSource = fragTemplate, blurLoop = "";
|
|
55047
|
-
const
|
|
57429
|
+
const template2 = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
55048
57430
|
let value;
|
|
55049
57431
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
55050
|
-
let blur =
|
|
57432
|
+
let blur = template2.replace("%index%", i2.toString());
|
|
55051
57433
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
55052
57434
|
`;
|
|
55053
57435
|
}
|
|
@@ -55086,10 +57468,10 @@ const vertTemplate = `
|
|
|
55086
57468
|
}`;
|
|
55087
57469
|
function generateBlurVertSource(kernelSize, x2) {
|
|
55088
57470
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
55089
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
55090
|
-
x2 ?
|
|
57471
|
+
let vertSource = vertTemplate, blurLoop = "", template2;
|
|
57472
|
+
x2 ? template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
55091
57473
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
55092
|
-
let blur =
|
|
57474
|
+
let blur = template2.replace("%index%", i2.toString());
|
|
55093
57475
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
55094
57476
|
`;
|
|
55095
57477
|
}
|
|
@@ -59230,7 +61612,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
59230
61612
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
59231
61613
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
59232
61614
|
if (rect) {
|
|
59233
|
-
let frame = null,
|
|
61615
|
+
let frame = null, trim2 = null;
|
|
59234
61616
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
59235
61617
|
0,
|
|
59236
61618
|
0,
|
|
@@ -59247,7 +61629,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
59247
61629
|
Math.floor(rect.y) / this.resolution,
|
|
59248
61630
|
Math.floor(rect.w) / this.resolution,
|
|
59249
61631
|
Math.floor(rect.h) / this.resolution
|
|
59250
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
61632
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim2 = new Rectangle(
|
|
59251
61633
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
59252
61634
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
59253
61635
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -59256,7 +61638,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
59256
61638
|
this.baseTexture,
|
|
59257
61639
|
frame,
|
|
59258
61640
|
orig,
|
|
59259
|
-
|
|
61641
|
+
trim2,
|
|
59260
61642
|
data.rotated ? 2 : 0,
|
|
59261
61643
|
data.anchor,
|
|
59262
61644
|
data.borders
|
|
@@ -60156,7 +62538,18 @@ function useBookmark() {
|
|
|
60156
62538
|
return set2.add(el2.displayName), !duplicate;
|
|
60157
62539
|
});
|
|
60158
62540
|
}
|
|
60159
|
-
const
|
|
62541
|
+
const isActionAvailable = (workflow, actions) => {
|
|
62542
|
+
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
62543
|
+
return found && found.length > 0;
|
|
62544
|
+
}, libraryMaps = {
|
|
62545
|
+
blog: "Blog",
|
|
62546
|
+
mindmap: "MindMap",
|
|
62547
|
+
scrapbook: "ScrapBook",
|
|
62548
|
+
collaborativewall: "CollaborativeWall",
|
|
62549
|
+
timelinegenerator: "TimelineGenerator",
|
|
62550
|
+
wiki: "Wiki",
|
|
62551
|
+
exercizer: "Exercizer"
|
|
62552
|
+
}, MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
60160
62553
|
function useMockedData() {
|
|
60161
62554
|
return reactExports.useContext(MockedDataContext);
|
|
60162
62555
|
}
|
|
@@ -60170,18 +62563,6 @@ function setRef(val, ...refs) {
|
|
|
60170
62563
|
typeof ref2 == "function" ? ref2(val) : ref2 != null && (ref2.current = val);
|
|
60171
62564
|
});
|
|
60172
62565
|
}
|
|
60173
|
-
const isActionAvailable = (workflow, actions) => {
|
|
60174
|
-
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
60175
|
-
return found && found.length > 0;
|
|
60176
|
-
}, libraryMaps = {
|
|
60177
|
-
blog: "Blog",
|
|
60178
|
-
mindmap: "MindMap",
|
|
60179
|
-
scrapbook: "ScrapBook",
|
|
60180
|
-
collaborativewall: "CollaborativeWall",
|
|
60181
|
-
timelinegenerator: "TimelineGenerator",
|
|
60182
|
-
wiki: "Wiki",
|
|
60183
|
-
exercizer: "Exercizer"
|
|
60184
|
-
};
|
|
60185
62566
|
function useHasWorkflow(workflow) {
|
|
60186
62567
|
const mock = useMockedData(), [state, setState] = reactExports.useState();
|
|
60187
62568
|
return reactExports.useEffect(() => {
|
|
@@ -60235,40 +62616,38 @@ const useConversation = () => {
|
|
|
60235
62616
|
zimbraWorkflow
|
|
60236
62617
|
};
|
|
60237
62618
|
}, useConversation$1 = useConversation;
|
|
62619
|
+
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
62620
|
+
function getDefaultExportFromCjs(x2) {
|
|
62621
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2.default : x2;
|
|
62622
|
+
}
|
|
62623
|
+
var localizedFormat$1 = { exports: {} };
|
|
62624
|
+
(function(module, exports) {
|
|
62625
|
+
(function(e2, t2) {
|
|
62626
|
+
module.exports = t2();
|
|
62627
|
+
})(commonjsGlobal, function() {
|
|
62628
|
+
var e2 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
62629
|
+
return function(t2, o2, n2) {
|
|
62630
|
+
var r2 = o2.prototype, i2 = r2.format;
|
|
62631
|
+
n2.en.formats = e2, r2.format = function(t22) {
|
|
62632
|
+
t22 === void 0 && (t22 = "YYYY-MM-DDTHH:mm:ssZ");
|
|
62633
|
+
var o22 = this.$locale().formats, n22 = function(t3, o3) {
|
|
62634
|
+
return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r22) {
|
|
62635
|
+
var i22 = r22 && r22.toUpperCase();
|
|
62636
|
+
return n3 || o3[r22] || e2[r22] || o3[i22].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e22, t5, o4) {
|
|
62637
|
+
return t5 || o4.slice(1);
|
|
62638
|
+
});
|
|
62639
|
+
});
|
|
62640
|
+
}(t22, o22 === void 0 ? {} : o22);
|
|
62641
|
+
return i2.call(this, n22);
|
|
62642
|
+
};
|
|
62643
|
+
};
|
|
62644
|
+
});
|
|
62645
|
+
})(localizedFormat$1);
|
|
62646
|
+
var localizedFormatExports = localizedFormat$1.exports;
|
|
62647
|
+
const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
|
|
60238
62648
|
dayjs.extend(relativeTime);
|
|
60239
62649
|
dayjs.extend(customParseFormat);
|
|
60240
|
-
|
|
60241
|
-
const {
|
|
60242
|
-
currentLanguage
|
|
60243
|
-
} = useOdeClient(), parseDate = reactExports.useCallback((date, lang) => {
|
|
60244
|
-
if (date.length < 11)
|
|
60245
|
-
return dayjs(date, ["YYYY-MM-DD"], lang);
|
|
60246
|
-
if (date.split("").findIndex((char) => "0" > char || char > "9") < 0)
|
|
60247
|
-
return dayjs(Number.parseInt(date)).locale(currentLanguage);
|
|
60248
|
-
{
|
|
60249
|
-
let day = dayjs(date).locale(currentLanguage);
|
|
60250
|
-
return day.isValid() || (day = dayjs(date, ["YYYY-MM-DD HH:mm:ss.SSS"]).locale(currentLanguage)), day;
|
|
60251
|
-
}
|
|
60252
|
-
}, [currentLanguage]), fromNow = reactExports.useCallback((date) => {
|
|
60253
|
-
let computedDate = dayjs();
|
|
60254
|
-
try {
|
|
60255
|
-
return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date) : typeof date == "number" ? computedDate = dayjs(date).locale(currentLanguage) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date)), computedDate.isValid() ? computedDate.fromNow() : "");
|
|
60256
|
-
} catch {
|
|
60257
|
-
return "";
|
|
60258
|
-
}
|
|
60259
|
-
}, [currentLanguage, parseDate]), formatDate = reactExports.useCallback((date, format) => {
|
|
60260
|
-
let computedDate = dayjs();
|
|
60261
|
-
try {
|
|
60262
|
-
return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date)), computedDate.isValid() ? computedDate.locale(currentLanguage).format(format || "D MMMM YYYY HH:mm:ss") : "");
|
|
60263
|
-
} catch {
|
|
60264
|
-
return "";
|
|
60265
|
-
}
|
|
60266
|
-
}, [currentLanguage, parseDate]);
|
|
60267
|
-
return {
|
|
60268
|
-
fromNow,
|
|
60269
|
-
formatDate
|
|
60270
|
-
};
|
|
60271
|
-
}
|
|
62650
|
+
dayjs.extend(localizedFormat);
|
|
60272
62651
|
const DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
|
60273
62652
|
function useClickOutside(handler, events2, nodes) {
|
|
60274
62653
|
const ref2 = reactExports.useRef();
|
|
@@ -60279,7 +62658,7 @@ function useClickOutside(handler, events2, nodes) {
|
|
|
60279
62658
|
} = event ?? {};
|
|
60280
62659
|
if (Array.isArray(nodes)) {
|
|
60281
62660
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
60282
|
-
nodes.every((
|
|
62661
|
+
nodes.every((node2) => !!node2 && !event.composedPath().includes(node2)) && !shouldIgnore && handler();
|
|
60283
62662
|
} else
|
|
60284
62663
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
60285
62664
|
};
|
|
@@ -60516,10 +62895,10 @@ function useHover() {
|
|
|
60516
62895
|
};
|
|
60517
62896
|
return reactExports.useEffect(
|
|
60518
62897
|
() => {
|
|
60519
|
-
const
|
|
60520
|
-
if (
|
|
60521
|
-
return
|
|
60522
|
-
|
|
62898
|
+
const node2 = ref2.current;
|
|
62899
|
+
if (node2)
|
|
62900
|
+
return node2.addEventListener("mouseover", handleMouseOver), node2.addEventListener("mouseout", handleMouseOut), () => {
|
|
62901
|
+
node2.removeEventListener("mouseover", handleMouseOver), node2.removeEventListener("mouseout", handleMouseOut);
|
|
60523
62902
|
};
|
|
60524
62903
|
},
|
|
60525
62904
|
[ref2]
|
|
@@ -60565,12 +62944,12 @@ function useToggle(initialState2 = false) {
|
|
|
60565
62944
|
function useTrapFocus() {
|
|
60566
62945
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
60567
62946
|
return reactExports.useEffect(() => {
|
|
60568
|
-
const
|
|
62947
|
+
const node2 = ref2.current, firstFocusableElement = node2.querySelectorAll(focusableElements)[0], focusableContent = node2.querySelectorAll(focusableElements), lastFocusableElement = ref2 && (focusableContent == null ? void 0 : focusableContent[focusableContent.length - 1]), handleKeydown = (event) => {
|
|
60569
62948
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
60570
62949
|
};
|
|
60571
|
-
if (
|
|
60572
|
-
return
|
|
60573
|
-
|
|
62950
|
+
if (node2)
|
|
62951
|
+
return node2.addEventListener("keydown", handleKeydown), () => {
|
|
62952
|
+
node2.removeEventListener("keydown", handleKeydown);
|
|
60574
62953
|
};
|
|
60575
62954
|
}, []), ref2;
|
|
60576
62955
|
}
|
|
@@ -60771,98 +63150,6 @@ function useXitiTrackPageLoad() {
|
|
|
60771
63150
|
xitiStatus
|
|
60772
63151
|
};
|
|
60773
63152
|
}
|
|
60774
|
-
function useZendeskGuide() {
|
|
60775
|
-
const sessionQuery = useSession(), {
|
|
60776
|
-
isAdml
|
|
60777
|
-
} = useIsAdml(), {
|
|
60778
|
-
theme
|
|
60779
|
-
} = useOdeTheme(), isMobileView = window.innerWidth <= 768, hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = reactExports.useState(""), [dataModule, setDataModule] = reactExports.useState(void 0), setZendeskGuideLabels = () => {
|
|
60780
|
-
var _a2;
|
|
60781
|
-
const modulePathnameSplit = locationPathname.split("/");
|
|
60782
|
-
let moduleLabel = "", labels = "";
|
|
60783
|
-
if (dataModule != null && dataModule.labels && Object.keys(dataModule == null ? void 0 : dataModule.labels).length > 0 && modulePathnameSplit.length > 1) {
|
|
60784
|
-
for (let i2 = 1; i2 < modulePathnameSplit.length; i2++)
|
|
60785
|
-
modulePathnameSplit[i2].length > 0 && modulePathnameSplit[i2].match(/\d/) == null && (moduleLabel.length === 0 ? moduleLabel = modulePathnameSplit[i2] : moduleLabel = moduleLabel + "/" + modulePathnameSplit[i2]);
|
|
60786
|
-
dataModule != null && dataModule.labels && Object.prototype.hasOwnProperty.call(dataModule == null ? void 0 : dataModule.labels, moduleLabel) ? labels = dataModule == null ? void 0 : dataModule.labels[moduleLabel] : dataModule != null && dataModule.default && String(dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60787
|
-
} else
|
|
60788
|
-
dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60789
|
-
if (modulePathnameSplit.includes("collaborativewall") && modulePathnameSplit.includes("id") && isMobileView && window.zE("webWidget", "hide"), labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
|
|
60790
|
-
const userProfile = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.userProfile[0]) || "";
|
|
60791
|
-
labels = labels.replace("${profile}", userProfile.toLowerCase());
|
|
60792
|
-
}
|
|
60793
|
-
labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
|
|
60794
|
-
labels: [labels]
|
|
60795
|
-
});
|
|
60796
|
-
};
|
|
60797
|
-
return reactExports.useEffect(() => {
|
|
60798
|
-
window.location.pathname !== locationPathname && setLocationPathname(window.location.pathname), !(dataModule === void 0 || Object.keys(dataModule).length === 0) && setZendeskGuideLabels();
|
|
60799
|
-
}, [window.location.pathname, dataModule]), reactExports.useEffect(() => {
|
|
60800
|
-
document.getElementById("ze-snippet") || hasSupportWorkflow === void 0 || (async () => {
|
|
60801
|
-
var _a2;
|
|
60802
|
-
const zendeskGuideConfig = await odeServices.http().get("/zendeskGuide/config");
|
|
60803
|
-
if (zendeskGuideConfig && zendeskGuideConfig.key && zendeskGuideConfig.key !== "") {
|
|
60804
|
-
const scriptZendesk = document.createElement("script");
|
|
60805
|
-
scriptZendesk.id = "ze-snippet", scriptZendesk.src = `https://static.zdassets.com/ekr/snippet.js?key=${zendeskGuideConfig.key}`;
|
|
60806
|
-
const currentLanguage = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
|
|
60807
|
-
document.body.appendChild(scriptZendesk).onload = () => {
|
|
60808
|
-
currentLanguage === "es" ? window.zE(function() {
|
|
60809
|
-
window.zE.setLocale("es-419");
|
|
60810
|
-
}) : window.zE(function() {
|
|
60811
|
-
window.zE.setLocale("fr");
|
|
60812
|
-
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
60813
|
-
webWidget: {
|
|
60814
|
-
color: {
|
|
60815
|
-
theme: zendeskGuideConfig.color || "#ffc400"
|
|
60816
|
-
},
|
|
60817
|
-
zIndex: 3,
|
|
60818
|
-
launcher: {
|
|
60819
|
-
mobile: {
|
|
60820
|
-
labelVisible: true
|
|
60821
|
-
}
|
|
60822
|
-
},
|
|
60823
|
-
contactForm: {
|
|
60824
|
-
suppress: !hasSupportWorkflow
|
|
60825
|
-
},
|
|
60826
|
-
helpCenter: {
|
|
60827
|
-
messageButton: {
|
|
60828
|
-
"*": "Assistance ENT",
|
|
60829
|
-
"es-419": "Asistencia ENT"
|
|
60830
|
-
}
|
|
60831
|
-
}
|
|
60832
|
-
}
|
|
60833
|
-
}), window.addEventListener("scroll", () => {
|
|
60834
|
-
window.zE("webWidget", "updateSettings", {
|
|
60835
|
-
webWidget: {
|
|
60836
|
-
launcher: {
|
|
60837
|
-
mobile: {
|
|
60838
|
-
labelVisible: window.scrollY <= 5
|
|
60839
|
-
}
|
|
60840
|
-
}
|
|
60841
|
-
}
|
|
60842
|
-
});
|
|
60843
|
-
}), window.zE("webWidget:on", "open", function() {
|
|
60844
|
-
hasSupportWorkflow && window.zE("webWidget", "updateSettings", {
|
|
60845
|
-
webWidget: {
|
|
60846
|
-
contactForm: {
|
|
60847
|
-
suppress: false
|
|
60848
|
-
}
|
|
60849
|
-
}
|
|
60850
|
-
});
|
|
60851
|
-
}), window.zE("webWidget:on", "userEvent", function(ref2) {
|
|
60852
|
-
const category = ref2.category, action = ref2.action, properties = ref2.properties;
|
|
60853
|
-
action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties && properties.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
|
|
60854
|
-
webWidget: {
|
|
60855
|
-
contactForm: {
|
|
60856
|
-
suppress: true
|
|
60857
|
-
}
|
|
60858
|
-
}
|
|
60859
|
-
}), window.zE("webWidget", "close"), window.open("/support", "_blank"));
|
|
60860
|
-
});
|
|
60861
|
-
};
|
|
60862
|
-
}
|
|
60863
|
-
})();
|
|
60864
|
-
}, [hasSupportWorkflow]), null;
|
|
60865
|
-
}
|
|
60866
63153
|
const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
60867
63154
|
src,
|
|
60868
63155
|
alt,
|
|
@@ -61678,8 +63965,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
61678
63965
|
}
|
|
61679
63966
|
});
|
|
61680
63967
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
61681
|
-
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (
|
|
61682
|
-
modalRef.current =
|
|
63968
|
+
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (node2) => {
|
|
63969
|
+
modalRef.current = node2, isOpen2 && (trapRef.current = node2);
|
|
61683
63970
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
61684
63971
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
61685
63972
|
opacity: 0.65
|
|
@@ -61782,9 +64069,9 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
61782
64069
|
}), TextArea$1 = TextArea;
|
|
61783
64070
|
function useTreeItemEvents(nodeId, label, expanded, setExpanded, onItemSelect, onItemFold, onItemUnfold, onItemFocus, onItemBlur) {
|
|
61784
64071
|
const handleItemClick = (event) => {
|
|
61785
|
-
event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), event.stopPropagation();
|
|
64072
|
+
event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), itemFoldUnfold(), event.stopPropagation();
|
|
61786
64073
|
}, handleItemKeyDown = (event) => {
|
|
61787
|
-
(event.code === "Enter" || event.code === "Space") && (event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), event.stopPropagation());
|
|
64074
|
+
(event.code === "Enter" || event.code === "Space") && (event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), itemFoldUnfold(), event.stopPropagation());
|
|
61788
64075
|
}, itemFoldUnfold = () => {
|
|
61789
64076
|
setExpanded(!expanded), expanded ? onItemFold == null || onItemFold(nodeId) : onItemUnfold == null || onItemUnfold(nodeId);
|
|
61790
64077
|
};
|
|
@@ -61831,15 +64118,15 @@ const TreeItem = (props) => {
|
|
|
61831
64118
|
reactExports.useEffect(() => {
|
|
61832
64119
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
61833
64120
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
61834
|
-
selectedNodesIds.some((
|
|
64121
|
+
selectedNodesIds.some((node2) => node2 === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node2 === nodeId) : (setExpanded(false), false));
|
|
61835
64122
|
} else
|
|
61836
64123
|
setExpanded(false);
|
|
61837
64124
|
}, [nodeId, selectedNodesIds]);
|
|
61838
64125
|
const rafterSize = section ? 16 : 12, renderItem = () => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { id: `listitem_${nodeId}`, role: "treeitem", "aria-selected": selected, "aria-expanded": expanded, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
61839
64126
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "action-container d-flex align-items-center gap-8 px-2", children: [
|
|
61840
64127
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `py-8 ${Array.isArray(children) ? null : "invisible"}`, tabIndex: 0, role: "button", onClick: handleItemFoldUnfoldClick, onKeyDown: handleItemFoldUnfoldKeyDown, "aria-label": t2("foldUnfold"), children: [
|
|
61841
|
-
Array.isArray(children) && !expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
61842
|
-
Array.isArray(children) && expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
64128
|
+
Array.isArray(children) && !!children.length && !expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
64129
|
+
Array.isArray(children) && !!children.length && expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
61843
64130
|
!Array.isArray(children) && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize, "aria-hidden": "true" })
|
|
61844
64131
|
] }),
|
|
61845
64132
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { tabIndex: 0, role: "button", className: "flex-fill d-flex align-items-center text-truncate gap-8 py-8", onClick: handleItemClick, onKeyDown: handleItemKeyDown, onFocus: handleItemFocus, onBlur: handleItemBlur, children: [
|
|
@@ -61880,7 +64167,7 @@ const TreeItem = (props) => {
|
|
|
61880
64167
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
61881
64168
|
}, handleItemBlur = (nodeId) => {
|
|
61882
64169
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
61883
|
-
}, renderTree = (
|
|
64170
|
+
}, renderTree = (node2) => /* @__PURE__ */ jsxRuntimeExports.jsx(TreeItem$1, { nodeId: node2.id, label: node2.name, section: node2.section, selectedNodesIds, selected: selectedItem === node2.id, onItemSelect: handlers.select, onItemFold: handleItemFold, onItemUnfold: handleItemUnfold, onItemFocus: handleItemFocus, onItemBlur: handleItemBlur, children: Array.isArray(node2.children) ? node2.children.map((item) => renderTree(item)) : null }, node2.id);
|
|
61884
64171
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
61885
64172
|
}), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
|
|
61886
64173
|
children
|
|
@@ -63041,17 +65328,17 @@ const stripAccents = (input) => {
|
|
|
63041
65328
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
63042
65329
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
63043
65330
|
return ignoreInvalid ? harmonized.replace(/\s+/g, delimiter) : harmonized.replace(new RegExp(`[^a-z0-9${safeDelimiter}]+`, "g"), delimiter).replace(new RegExp(`${safeDelimiter}+`, "g"), delimiter).replace(new RegExp(`^${safeDelimiter}`, "g"), "").replace(new RegExp(`${safeDelimiter}$`, "g"), "");
|
|
63044
|
-
}, slugify = (
|
|
63045
|
-
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !
|
|
65331
|
+
}, slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
|
|
65332
|
+
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node2 || typeof node2 == "boolean")
|
|
63046
65333
|
return "";
|
|
63047
65334
|
const { delimiter, prefix: prefix2 } = options;
|
|
63048
|
-
if (typeof
|
|
65335
|
+
if (typeof node2 == "boolean")
|
|
63049
65336
|
return "";
|
|
63050
|
-
if (typeof
|
|
63051
|
-
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(
|
|
65337
|
+
if (typeof node2 == "string" || typeof node2 == "number") {
|
|
65338
|
+
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node2), delimiter);
|
|
63052
65339
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
63053
65340
|
}
|
|
63054
|
-
return "children" in
|
|
65341
|
+
return "children" in node2 ? slugify(node2.children) : "type" in node2 ? slugify(node2.props.children, options) : Symbol.iterator in node2 ? slugify(Array.from(node2).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
|
|
63055
65342
|
};
|
|
63056
65343
|
var _default = slugify$1.default = slugify;
|
|
63057
65344
|
const useSlug = ({
|
|
@@ -63736,52 +66023,11 @@ function useCookiesConsent() {
|
|
|
63736
66023
|
}
|
|
63737
66024
|
};
|
|
63738
66025
|
}
|
|
63739
|
-
const NavItem = /* @__PURE__ */ reactExports.forwardRef(({
|
|
63740
|
-
children,
|
|
63741
|
-
className,
|
|
63742
|
-
...restProps
|
|
63743
|
-
}, ref2) => {
|
|
63744
|
-
const classes2 = clsx("nav-item", className);
|
|
63745
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: ref2, className: classes2, ...restProps, children });
|
|
63746
|
-
}), SearchEngine = () => {
|
|
63747
|
-
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
63748
|
-
t: t2
|
|
63749
|
-
} = useTranslation();
|
|
63750
|
-
function redirectToSearch() {
|
|
63751
|
-
if (inputRef.current) {
|
|
63752
|
-
const value = inputRef.current.value;
|
|
63753
|
-
window.location.href = `/searchengine#/${value}`;
|
|
63754
|
-
}
|
|
63755
|
-
}
|
|
63756
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { id: popoverSearchId, ref: searchRef, className: "position-relative", "aria-haspopup": "true", "aria-expanded": isSearchHovered, children: [
|
|
63757
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: "/searchengine", className: "nav-link dropdown-item", children: [
|
|
63758
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgSearch$1, { className: "icon search" }),
|
|
63759
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: t2("navbar.search") })
|
|
63760
|
-
] }),
|
|
63761
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Popover, { id: popoverSearchId, isVisible: isSearchHovered, className: "d-none d-md-flex", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "my-search-input", className: "search-text input-group py-8 px-12", children: [
|
|
63762
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FormControl$1.Input, { ref: inputRef, size: "sm", type: "text", name: "my-search-input", placeholder: "Rechercher" }),
|
|
63763
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchButton$1, { type: "submit", size: "sm", onClick: redirectToSearch, "aria-label": t2("navbar.search") })
|
|
63764
|
-
] }) })
|
|
63765
|
-
] });
|
|
63766
|
-
}, SearchEngine$1 = SearchEngine;
|
|
63767
66026
|
function Badge({
|
|
63768
66027
|
children
|
|
63769
66028
|
}) {
|
|
63770
66029
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "position-absolute badge rounded-pill bg-warning", children });
|
|
63771
66030
|
}
|
|
63772
|
-
function NavLink({
|
|
63773
|
-
link,
|
|
63774
|
-
className,
|
|
63775
|
-
children,
|
|
63776
|
-
translate: translate2,
|
|
63777
|
-
...restProps
|
|
63778
|
-
}) {
|
|
63779
|
-
const classes2 = clsx("nav-link", className);
|
|
63780
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: link, className: classes2, ...restProps, children: [
|
|
63781
|
-
children,
|
|
63782
|
-
translate2 && /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: translate2 }) })
|
|
63783
|
-
] });
|
|
63784
|
-
}
|
|
63785
66031
|
function Navbar({
|
|
63786
66032
|
children,
|
|
63787
66033
|
className,
|
|
@@ -63798,6 +66044,27 @@ function NavBarNav({
|
|
|
63798
66044
|
const classes2 = clsx("navbar-nav", className);
|
|
63799
66045
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: classes2, ...restProps, children });
|
|
63800
66046
|
}
|
|
66047
|
+
const NavItem = /* @__PURE__ */ reactExports.forwardRef(({
|
|
66048
|
+
children,
|
|
66049
|
+
className,
|
|
66050
|
+
...restProps
|
|
66051
|
+
}, ref2) => {
|
|
66052
|
+
const classes2 = clsx("nav-item", className);
|
|
66053
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: ref2, className: classes2, ...restProps, children });
|
|
66054
|
+
});
|
|
66055
|
+
function NavLink({
|
|
66056
|
+
link,
|
|
66057
|
+
className,
|
|
66058
|
+
children,
|
|
66059
|
+
translate: translate2,
|
|
66060
|
+
...restProps
|
|
66061
|
+
}) {
|
|
66062
|
+
const classes2 = clsx("nav-link", className);
|
|
66063
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: link, className: classes2, ...restProps, children: [
|
|
66064
|
+
children,
|
|
66065
|
+
translate2 && /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: translate2 }) })
|
|
66066
|
+
] });
|
|
66067
|
+
}
|
|
63801
66068
|
const WidgetAppsFooter = () => {
|
|
63802
66069
|
const {
|
|
63803
66070
|
t: t2
|
|
@@ -63813,7 +66080,121 @@ const WidgetAppsFooter = () => {
|
|
|
63813
66080
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
63814
66081
|
bookmarkedApps.slice(0, 6).map((app, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppIcon$1, { app, size: "32" }) }, index2))
|
|
63815
66082
|
] });
|
|
63816
|
-
}
|
|
66083
|
+
};
|
|
66084
|
+
function Help({
|
|
66085
|
+
isHelpOpen,
|
|
66086
|
+
setIsHelpOpen,
|
|
66087
|
+
parsedHeadline,
|
|
66088
|
+
parsedContent,
|
|
66089
|
+
error
|
|
66090
|
+
}) {
|
|
66091
|
+
const {
|
|
66092
|
+
t: t2
|
|
66093
|
+
} = useTranslation(), handleHelpOpen = () => {
|
|
66094
|
+
setIsHelpOpen(false);
|
|
66095
|
+
};
|
|
66096
|
+
return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
|
|
66097
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
|
|
66098
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
|
|
66099
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
|
|
66100
|
+
] }), document.getElementById("portal")) : null;
|
|
66101
|
+
}
|
|
66102
|
+
function useHelp() {
|
|
66103
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
66104
|
+
const {
|
|
66105
|
+
appCode
|
|
66106
|
+
} = useOdeClient(), {
|
|
66107
|
+
theme
|
|
66108
|
+
} = useOdeTheme(), [html, setHtml] = reactExports.useState(""), [visibility, setVisibility] = reactExports.useState(true), [isModalOpen, setIsModalOpen] = reactExports.useState(false), [error, setError] = reactExports.useState(false), helpPath = theme != null && theme.is1d ? "/help-1d" : "/help-2d";
|
|
66109
|
+
reactExports.useEffect(() => {
|
|
66110
|
+
(async () => {
|
|
66111
|
+
let helpURL = "";
|
|
66112
|
+
helpURL = helpPath + "/application/" + appCode + "/", !appCode && window.location.pathname !== "/adapter" ? helpURL = helpPath + "/application/portal/" : window.location.pathname === "/adapter" ? helpURL = helpPath + "/application/" + window.location.search.split("eliot=")[1].split("&")[0] + "/" : window.location.pathname.includes("/directory/class-admin") ? helpURL = helpPath + "/application/parametrage-de-la-classe/" : (window.location.pathname.includes("/userbook/mon-compte") || window.location.pathname.includes("/timeline/preferencesView") || window.location.pathname.includes("/timeline/historyView")) && (helpURL = helpPath + "/application/userbook/");
|
|
66113
|
+
try {
|
|
66114
|
+
const res = await fetch(helpURL), html2 = await res.text();
|
|
66115
|
+
if (res.status === 404) {
|
|
66116
|
+
setError(true);
|
|
66117
|
+
return;
|
|
66118
|
+
}
|
|
66119
|
+
setHtml(html2), setError(false);
|
|
66120
|
+
} catch (error2) {
|
|
66121
|
+
setError(true), console.error(error2);
|
|
66122
|
+
}
|
|
66123
|
+
})();
|
|
66124
|
+
}, [appCode, helpPath]);
|
|
66125
|
+
const parsedHTML = HTMLReactParser$1(html, {
|
|
66126
|
+
replace: (domNode) => {
|
|
66127
|
+
const typedDomNode = domNode;
|
|
66128
|
+
if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
|
|
66129
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
|
|
66130
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
|
|
66131
|
+
setVisibility(!visibility);
|
|
66132
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
|
|
66133
|
+
domToReact(typedDomNode.children, {
|
|
66134
|
+
replace: (domNode2) => {
|
|
66135
|
+
const typedDomNode2 = domNode2;
|
|
66136
|
+
if (typedDomNode2.attribs && typedDomNode2.name === "ul")
|
|
66137
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
|
|
66138
|
+
display: visibility ? "block" : "none"
|
|
66139
|
+
}, children: domToReact(typedDomNode2.children, {
|
|
66140
|
+
replace: (domNode3) => {
|
|
66141
|
+
const typedDomNode3 = domNode3;
|
|
66142
|
+
if (typedDomNode3.attribs && typedDomNode3.name === "a")
|
|
66143
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps2(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
|
|
66144
|
+
setVisibility(false);
|
|
66145
|
+
}, children: domToReact(typedDomNode3.children) }) });
|
|
66146
|
+
}
|
|
66147
|
+
}) });
|
|
66148
|
+
}
|
|
66149
|
+
})
|
|
66150
|
+
] });
|
|
66151
|
+
if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
|
|
66152
|
+
const props = attributesToProps2(domNode.attribs);
|
|
66153
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
|
|
66154
|
+
display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
|
|
66155
|
+
}, children: domToReact(typedDomNode.children, {
|
|
66156
|
+
replace: (domNode2) => {
|
|
66157
|
+
const typedDomNode2 = domNode2;
|
|
66158
|
+
if (typedDomNode2.attribs && typedDomNode2.name === "img") {
|
|
66159
|
+
const attribs = domNode2.attribs.src;
|
|
66160
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps2(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
|
|
66161
|
+
}
|
|
66162
|
+
}
|
|
66163
|
+
}) });
|
|
66164
|
+
}
|
|
66165
|
+
}
|
|
66166
|
+
}), parsedContent = (_c2 = (_b2 = (_a2 = parsedHTML == null ? void 0 : parsedHTML.props) == null ? void 0 : _a2.children.find((child) => child.type === "body")) == null ? void 0 : _b2.props) == null ? void 0 : _c2.children, parsedHeadline = (_e2 = (_d2 = parsedContent == null ? void 0 : parsedContent.find((child) => child.type === "p")) == null ? void 0 : _d2.props) == null ? void 0 : _e2.children;
|
|
66167
|
+
return {
|
|
66168
|
+
html,
|
|
66169
|
+
visibility,
|
|
66170
|
+
isModalOpen,
|
|
66171
|
+
setIsModalOpen,
|
|
66172
|
+
parsedContent,
|
|
66173
|
+
parsedHeadline,
|
|
66174
|
+
error
|
|
66175
|
+
};
|
|
66176
|
+
}
|
|
66177
|
+
const SearchEngine = () => {
|
|
66178
|
+
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
66179
|
+
t: t2
|
|
66180
|
+
} = useTranslation();
|
|
66181
|
+
function redirectToSearch() {
|
|
66182
|
+
if (inputRef.current) {
|
|
66183
|
+
const value = inputRef.current.value;
|
|
66184
|
+
window.location.href = `/searchengine#/${value}`;
|
|
66185
|
+
}
|
|
66186
|
+
}
|
|
66187
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { id: popoverSearchId, ref: searchRef, className: "position-relative", "aria-haspopup": "true", "aria-expanded": isSearchHovered, children: [
|
|
66188
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: "/searchengine", className: "nav-link dropdown-item", children: [
|
|
66189
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgSearch$1, { className: "icon search" }),
|
|
66190
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: t2("navbar.search") })
|
|
66191
|
+
] }),
|
|
66192
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Popover, { id: popoverSearchId, isVisible: isSearchHovered, className: "d-none d-md-flex", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "my-search-input", className: "search-text input-group py-8 px-12", children: [
|
|
66193
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FormControl$1.Input, { ref: inputRef, size: "sm", type: "text", name: "my-search-input", placeholder: "Rechercher" }),
|
|
66194
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchButton$1, { type: "submit", size: "sm", onClick: redirectToSearch, "aria-label": t2("navbar.search") })
|
|
66195
|
+
] }) })
|
|
66196
|
+
] });
|
|
66197
|
+
}, SearchEngine$1 = SearchEngine, Header$1 = ({
|
|
63817
66198
|
is1d = false,
|
|
63818
66199
|
src = ""
|
|
63819
66200
|
}) => {
|
|
@@ -63827,8 +66208,15 @@ const WidgetAppsFooter = () => {
|
|
|
63827
66208
|
user,
|
|
63828
66209
|
avatar
|
|
63829
66210
|
} = useUser(), {
|
|
66211
|
+
currentLanguage,
|
|
63830
66212
|
currentApp
|
|
63831
|
-
} = useOdeClient(),
|
|
66213
|
+
} = useOdeClient(), {
|
|
66214
|
+
isModalOpen: isHelpOpen,
|
|
66215
|
+
setIsModalOpen: setIsHelpOpen,
|
|
66216
|
+
parsedContent,
|
|
66217
|
+
parsedHeadline,
|
|
66218
|
+
error
|
|
66219
|
+
} = useHelp(), classes2 = clsx("header", {
|
|
63832
66220
|
"no-2d": is1d,
|
|
63833
66221
|
"no-1d": !is1d
|
|
63834
66222
|
}), {
|
|
@@ -63864,6 +66252,15 @@ const WidgetAppsFooter = () => {
|
|
|
63864
66252
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
63865
66253
|
] }) }),
|
|
63866
66254
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { link: "/userbook/mon-compte", className: "dropdown-item", translate: t2("navbar.myaccount"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneProfile$1, { className: "icon user" }) }) }),
|
|
66255
|
+
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66256
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
|
|
66257
|
+
setIsHelpOpen(true);
|
|
66258
|
+
}, children: [
|
|
66259
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
|
|
66260
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
|
|
66261
|
+
] }),
|
|
66262
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66263
|
+
] }) : null,
|
|
63867
66264
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
63868
66265
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
63869
66266
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -63908,6 +66305,15 @@ const WidgetAppsFooter = () => {
|
|
|
63908
66305
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
63909
66306
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
|
|
63910
66307
|
] }) }),
|
|
66308
|
+
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66309
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
66310
|
+
setIsHelpOpen(true);
|
|
66311
|
+
}, children: [
|
|
66312
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
|
|
66313
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
|
|
66314
|
+
] }),
|
|
66315
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66316
|
+
] }) : null,
|
|
63911
66317
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
63912
66318
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t2("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
63913
66319
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -63942,13 +66348,11 @@ const WidgetAppsFooter = () => {
|
|
|
63942
66348
|
showCookiesConsent,
|
|
63943
66349
|
handleConsultCookies,
|
|
63944
66350
|
handleCloseCookiesConsent
|
|
63945
|
-
} = useCookiesConsent()
|
|
63946
|
-
useZendeskGuide();
|
|
63947
|
-
const classes2 = clsx("d-flex flex-column bg-white", {
|
|
66351
|
+
} = useCookiesConsent(), classes2 = clsx("d-flex flex-column bg-white", {
|
|
63948
66352
|
"container-fluid": !headless,
|
|
63949
66353
|
"rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
|
|
63950
66354
|
"mt-24": (theme == null ? void 0 : theme.is1d) && !headless
|
|
63951
|
-
}), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$1, { toastOptions: {
|
|
66355
|
+
}), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$1, { containerClassName: "toaster-container", toastOptions: {
|
|
63952
66356
|
position: "top-right"
|
|
63953
66357
|
} });
|
|
63954
66358
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -64181,9 +66585,9 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
|
|
|
64181
66585
|
withSelector.exports = withSelector_production_min;
|
|
64182
66586
|
}
|
|
64183
66587
|
var withSelectorExports = withSelector.exports;
|
|
64184
|
-
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
|
|
66588
|
+
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
|
|
64185
66589
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
64186
|
-
const { useDebugValue } = React;
|
|
66590
|
+
const { useDebugValue } = React$2;
|
|
64187
66591
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
64188
66592
|
let didWarnAboutEqualityFn = false;
|
|
64189
66593
|
const identity = (arg) => arg;
|
|
@@ -64430,11 +66834,11 @@ class TreeNodeFolderWrapper {
|
|
|
64430
66834
|
}
|
|
64431
66835
|
}
|
|
64432
66836
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
64433
|
-
return modifyNode(treeNode, (
|
|
64434
|
-
if (
|
|
64435
|
-
|
|
66837
|
+
return modifyNode(treeNode, (node2) => {
|
|
66838
|
+
if (node2.id === parentId) {
|
|
66839
|
+
node2.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
64436
66840
|
}
|
|
64437
|
-
return
|
|
66841
|
+
return node2;
|
|
64438
66842
|
});
|
|
64439
66843
|
};
|
|
64440
66844
|
const initialState = {
|
|
@@ -64778,7 +67182,7 @@ const useSearchForm = () => {
|
|
|
64778
67182
|
function ExplorerBreadcrumb() {
|
|
64779
67183
|
const { appCode } = useOdeClient();
|
|
64780
67184
|
const { gotoPreviousFolder } = useStoreActions();
|
|
64781
|
-
const { t: t2 } = useTranslation(
|
|
67185
|
+
const { t: t2 } = useTranslation();
|
|
64782
67186
|
const { inputSearch } = useSearchForm();
|
|
64783
67187
|
const selectedNodesIds = useSelectedNodesIds();
|
|
64784
67188
|
const isTrashFolder = useIsTrash();
|
|
@@ -64831,45 +67235,45 @@ const useTrashModal = () => {
|
|
|
64831
67235
|
};
|
|
64832
67236
|
};
|
|
64833
67237
|
function addNode(treeData, { parentId, newFolder }) {
|
|
64834
|
-
return modifyNode(treeData, (
|
|
67238
|
+
return modifyNode(treeData, (node2) => {
|
|
64835
67239
|
var _a2;
|
|
64836
|
-
if (
|
|
67240
|
+
if (node2.id === parentId) {
|
|
64837
67241
|
const parentAncestors = [
|
|
64838
|
-
...((_a2 =
|
|
67242
|
+
...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
|
|
64839
67243
|
];
|
|
64840
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
67244
|
+
const ancestors = arrayUnique([...parentAncestors, node2.id]);
|
|
64841
67245
|
const newNode = {
|
|
64842
|
-
...
|
|
67246
|
+
...node2,
|
|
64843
67247
|
children: [
|
|
64844
|
-
...
|
|
67248
|
+
...node2.children || [],
|
|
64845
67249
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
64846
67250
|
]
|
|
64847
67251
|
};
|
|
64848
67252
|
return newNode;
|
|
64849
67253
|
} else {
|
|
64850
|
-
return
|
|
67254
|
+
return node2;
|
|
64851
67255
|
}
|
|
64852
67256
|
});
|
|
64853
67257
|
}
|
|
64854
67258
|
function deleteNode(treeData, { folders }) {
|
|
64855
|
-
return modifyNode(treeData, (
|
|
64856
|
-
if (folders.includes(
|
|
67259
|
+
return modifyNode(treeData, (node2) => {
|
|
67260
|
+
if (folders.includes(node2.id)) {
|
|
64857
67261
|
return void 0;
|
|
64858
67262
|
} else {
|
|
64859
|
-
return
|
|
67263
|
+
return node2;
|
|
64860
67264
|
}
|
|
64861
67265
|
});
|
|
64862
67266
|
}
|
|
64863
67267
|
function moveNode(treeData, { destinationId, folders }) {
|
|
64864
|
-
return modifyNode(treeData, (
|
|
67268
|
+
return modifyNode(treeData, (node2, parent) => {
|
|
64865
67269
|
var _a2, _b2;
|
|
64866
|
-
if (destinationId ===
|
|
67270
|
+
if (destinationId === node2.id) {
|
|
64867
67271
|
const parentAncestors = [
|
|
64868
|
-
...((_a2 =
|
|
67272
|
+
...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
|
|
64869
67273
|
];
|
|
64870
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
64871
|
-
const newChildren = [...
|
|
64872
|
-
const childrenIds = ((_b2 =
|
|
67274
|
+
const ancestors = arrayUnique([...parentAncestors, node2.id]);
|
|
67275
|
+
const newChildren = [...node2.children || []];
|
|
67276
|
+
const childrenIds = ((_b2 = node2.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
|
|
64873
67277
|
for (const folder of folders) {
|
|
64874
67278
|
if (!childrenIds.includes(folder)) {
|
|
64875
67279
|
const item = findNodeById(folder, treeData);
|
|
@@ -64883,23 +67287,23 @@ function moveNode(treeData, { destinationId, folders }) {
|
|
|
64883
67287
|
}
|
|
64884
67288
|
}
|
|
64885
67289
|
const newNode = {
|
|
64886
|
-
...
|
|
67290
|
+
...node2,
|
|
64887
67291
|
children: newChildren
|
|
64888
67292
|
};
|
|
64889
67293
|
return newNode;
|
|
64890
|
-
} else if (folders.includes(
|
|
67294
|
+
} else if (folders.includes(node2.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
64891
67295
|
return void 0;
|
|
64892
67296
|
} else {
|
|
64893
|
-
return
|
|
67297
|
+
return node2;
|
|
64894
67298
|
}
|
|
64895
67299
|
});
|
|
64896
67300
|
}
|
|
64897
67301
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
64898
|
-
return modifyNode(treeData, (
|
|
64899
|
-
if (
|
|
67302
|
+
return modifyNode(treeData, (node2) => {
|
|
67303
|
+
if (node2.id === folderId) {
|
|
64900
67304
|
return new TreeNodeFolderWrapper(newFolder);
|
|
64901
67305
|
} else {
|
|
64902
|
-
return
|
|
67306
|
+
return node2;
|
|
64903
67307
|
}
|
|
64904
67308
|
});
|
|
64905
67309
|
}
|
|
@@ -65234,7 +67638,7 @@ const useCopyResource = () => {
|
|
|
65234
67638
|
}
|
|
65235
67639
|
);
|
|
65236
67640
|
}
|
|
65237
|
-
if (currentFolder.id && currentFolder.id !==
|
|
67641
|
+
if (currentFolder.id && currentFolder.id !== "default") {
|
|
65238
67642
|
moveToFolder({
|
|
65239
67643
|
searchParams,
|
|
65240
67644
|
resourceIds: [data.duplicateId],
|
|
@@ -65616,9 +68020,10 @@ const useCreateResource = () => {
|
|
|
65616
68020
|
var _a2, _b2, _c2;
|
|
65617
68021
|
await queryClient2.cancelQueries({ queryKey });
|
|
65618
68022
|
const previousData = queryClient2.getQueryData(queryKey);
|
|
68023
|
+
const { thumbnail } = variables;
|
|
65619
68024
|
const newResource = {
|
|
65620
68025
|
...variables,
|
|
65621
|
-
thumbnail:
|
|
68026
|
+
thumbnail: thumbnail ? URL.createObjectURL(thumbnail) : "",
|
|
65622
68027
|
application,
|
|
65623
68028
|
assetId: data._id || data.entId || "",
|
|
65624
68029
|
id: data._id || data.entId || "",
|
|
@@ -65682,7 +68087,7 @@ const List = () => {
|
|
|
65682
68087
|
const treeData = useTreeData();
|
|
65683
68088
|
const toast = useToast();
|
|
65684
68089
|
const { appCode } = useOdeClient();
|
|
65685
|
-
const { t: t2 } = useTranslation(
|
|
68090
|
+
const { t: t2 } = useTranslation();
|
|
65686
68091
|
const { setSearchParams, setSearchConfig, setTreeData } = useStoreActions();
|
|
65687
68092
|
const { data, isError: isError2, error, isLoading, isFetching, fetchNextPage } = useSearchContext();
|
|
65688
68093
|
const hasNoFolders = (data == null ? void 0 : data.pages[0].folders.length) === 0;
|
|
@@ -65817,7 +68222,7 @@ const SearchForm = () => {
|
|
|
65817
68222
|
"form",
|
|
65818
68223
|
{
|
|
65819
68224
|
noValidate: true,
|
|
65820
|
-
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8",
|
|
68225
|
+
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",
|
|
65821
68226
|
ref: formRef,
|
|
65822
68227
|
children: [
|
|
65823
68228
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "search", className: "input-group", children: [
|
|
@@ -65925,10 +68330,7 @@ const TreeViewContainer = () => {
|
|
|
65925
68330
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65926
68331
|
TreeView$1,
|
|
65927
68332
|
{
|
|
65928
|
-
data:
|
|
65929
|
-
...treeData,
|
|
65930
|
-
name: t2("explorer.filters.mine", { ns: appCode })
|
|
65931
|
-
},
|
|
68333
|
+
data: treeData,
|
|
65932
68334
|
selectedNodesIds,
|
|
65933
68335
|
onTreeItemSelect: selectTreeItem,
|
|
65934
68336
|
onTreeItemFold: foldTreeItem,
|
|
@@ -66346,7 +68748,7 @@ const ResourceCard = ({
|
|
|
66346
68748
|
Image$2,
|
|
66347
68749
|
{
|
|
66348
68750
|
alt: "",
|
|
66349
|
-
src:
|
|
68751
|
+
src: resource == null ? void 0 : resource.thumbnail,
|
|
66350
68752
|
objectFit: "cover",
|
|
66351
68753
|
className: "h-full w-100"
|
|
66352
68754
|
}
|
|
@@ -66403,13 +68805,13 @@ const ResourceCard = ({
|
|
|
66403
68805
|
);
|
|
66404
68806
|
};
|
|
66405
68807
|
ResourceCard.displayName = "ResourceCard";
|
|
68808
|
+
dayjs.extend(relativeTime);
|
|
66406
68809
|
const ResourcesList = ({
|
|
66407
68810
|
data,
|
|
66408
68811
|
fetchNextPage
|
|
66409
68812
|
}) => {
|
|
66410
|
-
const { currentApp } = useOdeClient();
|
|
68813
|
+
const { currentApp, currentLanguage } = useOdeClient();
|
|
66411
68814
|
const { t: t2 } = useTranslation();
|
|
66412
|
-
const { fromNow } = useDate();
|
|
66413
68815
|
const searchParams = useSearchParams();
|
|
66414
68816
|
const resourceIds = useResourceIds();
|
|
66415
68817
|
const selectedResources = useSelectedResources();
|
|
@@ -66456,12 +68858,12 @@ const ResourcesList = ({
|
|
|
66456
68858
|
setSelectedResources([...selectedResources, resource]);
|
|
66457
68859
|
}
|
|
66458
68860
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
66459
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
68861
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React$2.Fragment, { children: [
|
|
66460
68862
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
66461
68863
|
// eslint-disable-next-line react/no-array-index-key
|
|
66462
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
68864
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React$2.Fragment, { children: page.resources.map((resource) => {
|
|
66463
68865
|
const { id: id2, updatedAt } = resource;
|
|
66464
|
-
const time =
|
|
68866
|
+
const time = dayjs(updatedAt).locale(currentLanguage).fromNow();
|
|
66465
68867
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66466
68868
|
animated.li,
|
|
66467
68869
|
{
|
|
@@ -66603,7 +69005,6 @@ function FolderModal$1({
|
|
|
66603
69005
|
type: "text",
|
|
66604
69006
|
...register("name", {
|
|
66605
69007
|
required: true,
|
|
66606
|
-
maxLength: 60,
|
|
66607
69008
|
pattern: {
|
|
66608
69009
|
value: /[^ ]/,
|
|
66609
69010
|
message: "invalid title"
|
|
@@ -66611,8 +69012,7 @@ function FolderModal$1({
|
|
|
66611
69012
|
}),
|
|
66612
69013
|
placeholder: t2("explorer.create.folder.name"),
|
|
66613
69014
|
size: "md",
|
|
66614
|
-
"aria-required": true
|
|
66615
|
-
maxLength: 60
|
|
69015
|
+
"aria-required": true
|
|
66616
69016
|
}
|
|
66617
69017
|
)
|
|
66618
69018
|
] }) }) }),
|
|
@@ -66734,7 +69134,7 @@ const Library = () => {
|
|
|
66734
69134
|
href: libraryUrl,
|
|
66735
69135
|
target: "_blank",
|
|
66736
69136
|
rel: "noreferrer",
|
|
66737
|
-
className: "d-inline-flex
|
|
69137
|
+
className: "d-inline-flex gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
|
|
66738
69138
|
children: [
|
|
66739
69139
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t2("explorer.libray.btn") }),
|
|
66740
69140
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgArrowRight$1, {})
|
|
@@ -66876,10 +69276,14 @@ function useActionBar() {
|
|
|
66876
69276
|
case ACTION.UPD_PROPS:
|
|
66877
69277
|
case "edit":
|
|
66878
69278
|
return onEdit();
|
|
69279
|
+
case "export":
|
|
69280
|
+
if (resourceIds.length > 0) {
|
|
69281
|
+
return onExport();
|
|
69282
|
+
} else {
|
|
69283
|
+
return null;
|
|
69284
|
+
}
|
|
66879
69285
|
case ACTION.SHARE:
|
|
66880
69286
|
return setOpenedModalName("share");
|
|
66881
|
-
case ACTION.EXPORT:
|
|
66882
|
-
return setOpenedModalName("export");
|
|
66883
69287
|
default:
|
|
66884
69288
|
throw Error(`Unknown action: ${action.id}`);
|
|
66885
69289
|
}
|
|
@@ -66951,8 +69355,6 @@ function useActionBar() {
|
|
|
66951
69355
|
const onEditResourceCancel = onFinish("edit_resource");
|
|
66952
69356
|
const onShareResourceSuccess = onFinish("share");
|
|
66953
69357
|
const onShareResourceCancel = onFinish("share");
|
|
66954
|
-
const onExportCancel = onFinish("export");
|
|
66955
|
-
const onExportSuccess = onFinish("export");
|
|
66956
69358
|
async function onCopy() {
|
|
66957
69359
|
if (selectedResources && selectedResources.length > 0) {
|
|
66958
69360
|
const selectedResource = selectedResources[0];
|
|
@@ -66969,6 +69371,12 @@ function useActionBar() {
|
|
|
66969
69371
|
setOpenedModalName("edit_folder");
|
|
66970
69372
|
}
|
|
66971
69373
|
}
|
|
69374
|
+
function onExport() {
|
|
69375
|
+
if (resourceIds && resourceIds.length > 0) {
|
|
69376
|
+
const selectedResource = selectedResources[0].assetId;
|
|
69377
|
+
goToExport({ searchParams, assetId: selectedResource });
|
|
69378
|
+
}
|
|
69379
|
+
}
|
|
66972
69380
|
function overrideLabel(action) {
|
|
66973
69381
|
if (action.id === "edit" && folderIds.length > 0) {
|
|
66974
69382
|
return "explorer.rename";
|
|
@@ -67002,9 +69410,6 @@ function useActionBar() {
|
|
|
67002
69410
|
isShareResourceOpen: openedModalName === "share",
|
|
67003
69411
|
onShareResourceCancel,
|
|
67004
69412
|
onShareResourceSuccess,
|
|
67005
|
-
isExportModalOpen: openedModalName === "export",
|
|
67006
|
-
onExportCancel,
|
|
67007
|
-
onExportSuccess,
|
|
67008
69413
|
onClearActionBar
|
|
67009
69414
|
};
|
|
67010
69415
|
}
|
|
@@ -67054,7 +69459,6 @@ const UpdateModal = reactExports.lazy(
|
|
|
67054
69459
|
const DeleteModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => DeleteModal$1), true ? void 0 : void 0));
|
|
67055
69460
|
const MoveModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => MoveModal$1), true ? void 0 : void 0));
|
|
67056
69461
|
const FolderModal = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => FolderModal$2), true ? void 0 : void 0));
|
|
67057
|
-
const ExportModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => ExportModal$1), true ? void 0 : void 0));
|
|
67058
69462
|
function ActionBarContainer() {
|
|
67059
69463
|
const { appCode } = useOdeClient();
|
|
67060
69464
|
const { t: t2 } = useTranslation();
|
|
@@ -67075,9 +69479,6 @@ function ActionBarContainer() {
|
|
|
67075
69479
|
isShareResourceOpen,
|
|
67076
69480
|
onShareResourceCancel,
|
|
67077
69481
|
onShareResourceSuccess,
|
|
67078
|
-
isExportModalOpen,
|
|
67079
|
-
onExportCancel,
|
|
67080
|
-
onExportSuccess,
|
|
67081
69482
|
onMoveCancel,
|
|
67082
69483
|
onMoveSuccess,
|
|
67083
69484
|
onDeleteCancel,
|
|
@@ -67101,8 +69502,8 @@ function ActionBarContainer() {
|
|
|
67101
69502
|
return isActionBarOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67102
69503
|
animated.div,
|
|
67103
69504
|
{
|
|
67104
|
-
className: "position-fixed bottom-0 start-0 end-0",
|
|
67105
|
-
style
|
|
69505
|
+
className: "position-fixed bottom-0 start-0 end-0 z-3",
|
|
69506
|
+
style,
|
|
67106
69507
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionBar$1$1, { children: actions == null ? void 0 : actions.filter(
|
|
67107
69508
|
(action) => action.available && action.target === "actionbar"
|
|
67108
69509
|
).map((action) => {
|
|
@@ -67206,14 +69607,6 @@ function ActionBarContainer() {
|
|
|
67206
69607
|
}
|
|
67207
69608
|
) : null
|
|
67208
69609
|
}
|
|
67209
|
-
),
|
|
67210
|
-
isExportModalOpen && selectedResource && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67211
|
-
ExportModal$2,
|
|
67212
|
-
{
|
|
67213
|
-
isOpen: isExportModalOpen,
|
|
67214
|
-
onCancel: onExportCancel,
|
|
67215
|
-
onSuccess: onExportSuccess
|
|
67216
|
-
}
|
|
67217
69610
|
)
|
|
67218
69611
|
] })
|
|
67219
69612
|
] });
|
|
@@ -67467,69 +69860,6 @@ const MoveModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
67467
69860
|
__proto__: null,
|
|
67468
69861
|
default: MoveModal
|
|
67469
69862
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
67470
|
-
const useExportModal = (onSuccess) => {
|
|
67471
|
-
const selectedResources = useSelectedResources();
|
|
67472
|
-
const searchParams = useSearchParams();
|
|
67473
|
-
const toast = useToast();
|
|
67474
|
-
const { t: t2 } = useTranslation();
|
|
67475
|
-
const handleExportClick = () => {
|
|
67476
|
-
if (selectedResources.length) {
|
|
67477
|
-
goToExport({ searchParams, assetId: selectedResources[0].assetId });
|
|
67478
|
-
onSuccess();
|
|
67479
|
-
} else {
|
|
67480
|
-
toast.error(t2("explorer.error.noResourceSelected"));
|
|
67481
|
-
}
|
|
67482
|
-
};
|
|
67483
|
-
return { handleExportClick };
|
|
67484
|
-
};
|
|
67485
|
-
function ExportModal({
|
|
67486
|
-
isOpen,
|
|
67487
|
-
onSuccess,
|
|
67488
|
-
onCancel
|
|
67489
|
-
}) {
|
|
67490
|
-
const { handleExportClick } = useExportModal(onSuccess);
|
|
67491
|
-
const { t: t2 } = useTranslation();
|
|
67492
|
-
return reactDomExports.createPortal(
|
|
67493
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "exportModal", children: [
|
|
67494
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2("explorer.export.title") }),
|
|
67495
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
|
|
67496
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
|
|
67497
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.1") }),
|
|
67498
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.2") }),
|
|
67499
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.3") })
|
|
67500
|
-
] }),
|
|
67501
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "warning", children: t2("explorer.export.body.warning") })
|
|
67502
|
-
] }),
|
|
67503
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Footer, { children: [
|
|
67504
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67505
|
-
Button$1,
|
|
67506
|
-
{
|
|
67507
|
-
color: "tertiary",
|
|
67508
|
-
onClick: onCancel,
|
|
67509
|
-
type: "button",
|
|
67510
|
-
variant: "ghost",
|
|
67511
|
-
children: t2("explorer.cancel")
|
|
67512
|
-
}
|
|
67513
|
-
),
|
|
67514
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67515
|
-
Button$1,
|
|
67516
|
-
{
|
|
67517
|
-
color: "primary",
|
|
67518
|
-
onClick: handleExportClick,
|
|
67519
|
-
type: "button",
|
|
67520
|
-
variant: "filled",
|
|
67521
|
-
children: t2("explorer.actions.export")
|
|
67522
|
-
}
|
|
67523
|
-
)
|
|
67524
|
-
] })
|
|
67525
|
-
] }),
|
|
67526
|
-
document.getElementById("portal")
|
|
67527
|
-
);
|
|
67528
|
-
}
|
|
67529
|
-
const ExportModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67530
|
-
__proto__: null,
|
|
67531
|
-
default: ExportModal
|
|
67532
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
67533
69863
|
function __vite__mapDeps(indexes) {
|
|
67534
69864
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
67535
69865
|
__vite__mapDeps.viteFileDeps = []
|