ode-explorer 1.4.10 → 1.4.11-develop.202406111044
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.html +12 -18
- package/dist/index.js +547 -2833
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +199 -198
- package/lib/DeleteModal.js +3 -3
- package/lib/ExportModal.js +53 -0
- package/lib/FolderModal.js +23 -22
- package/lib/Library.js +1 -1
- package/lib/MoveModal.js +6 -6
- package/lib/ResourcesList.js +70 -206
- package/lib/features/ActionBar/Export/ExportModal.d.ts +11 -0
- package/lib/features/ActionBar/Export/useExportModal.d.ts +3 -0
- package/lib/features/ActionBar/useActionBar.d.ts +4 -1
- package/lib/index2.js +250 -249
- package/package.json +7 -21
- package/lib/config/index.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 node of mutation.addedNodes) {
|
|
72
|
+
if (node.tagName === "LINK" && node.rel === "modulepreload")
|
|
73
|
+
processPreload(node);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}).observe(document, { childList: true, subtree: true });
|
|
@@ -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
|
|
419
|
-
const React$
|
|
418
|
+
const React = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
|
|
419
|
+
const React$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
420
420
|
__proto__: null,
|
|
421
|
-
default: React
|
|
421
|
+
default: React
|
|
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
|
|
1347
|
+
function capitalize(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
|
|
1385
|
+
p2[1] = capitalize(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
|
|
1393
|
+
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1394
1394
|
if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
|
|
1395
|
-
p2[2] = capitalize
|
|
1395
|
+
p2[2] = capitalize(p2[2].toLowerCase());
|
|
1396
1396
|
}
|
|
1397
1397
|
return p2.join("-");
|
|
1398
1398
|
}
|
|
@@ -4239,7 +4239,10 @@ instance.use(Backend).use(initReactI18next).init({
|
|
|
4239
4239
|
prefix: "[[",
|
|
4240
4240
|
suffix: "]]"
|
|
4241
4241
|
},
|
|
4242
|
-
debug: false
|
|
4242
|
+
debug: false,
|
|
4243
|
+
react: {
|
|
4244
|
+
useSuspense: false
|
|
4245
|
+
}
|
|
4243
4246
|
});
|
|
4244
4247
|
var Subscribable = class {
|
|
4245
4248
|
constructor() {
|
|
@@ -7228,7 +7231,7 @@ var uaParser = { exports: {} };
|
|
|
7228
7231
|
return str.toLowerCase();
|
|
7229
7232
|
}, majorize = function(version) {
|
|
7230
7233
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
7231
|
-
},
|
|
7234
|
+
}, trim = function(str, len) {
|
|
7232
7235
|
if (typeof str === STR_TYPE) {
|
|
7233
7236
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
7234
7237
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
@@ -8064,7 +8067,7 @@ var uaParser = { exports: {} };
|
|
|
8064
8067
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
8065
8068
|
// HbbTV devices
|
|
8066
8069
|
],
|
|
8067
|
-
[[VENDOR,
|
|
8070
|
+
[[VENDOR, trim], [MODEL, trim], [TYPE2, SMARTTV]],
|
|
8068
8071
|
[
|
|
8069
8072
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
8070
8073
|
// SmartTV from Unidentified Vendors
|
|
@@ -8408,7 +8411,7 @@ var uaParser = { exports: {} };
|
|
|
8408
8411
|
return _ua;
|
|
8409
8412
|
};
|
|
8410
8413
|
this.setUA = function(ua3) {
|
|
8411
|
-
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ?
|
|
8414
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
|
8412
8415
|
return this;
|
|
8413
8416
|
};
|
|
8414
8417
|
this.setUA(_ua);
|
|
@@ -8457,7 +8460,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8457
8460
|
return t2;
|
|
8458
8461
|
}
|
|
8459
8462
|
return e2;
|
|
8460
|
-
}, i$
|
|
8463
|
+
}, i$1 = (e2, t2, r2, i2, p2) => {
|
|
8461
8464
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
8462
8465
|
let t3 = 0, r3 = 11;
|
|
8463
8466
|
for (; t3 < e3.length; )
|
|
@@ -8487,7 +8490,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8487
8490
|
}, "");
|
|
8488
8491
|
function u$4(e2) {
|
|
8489
8492
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
8490
|
-
return i$
|
|
8493
|
+
return i$1(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);
|
|
8491
8494
|
}
|
|
8492
8495
|
let d$1, f$1, g$1;
|
|
8493
8496
|
u$4.bind({ g: 1 });
|
|
@@ -8969,35 +8972,7 @@ const SvgAlertCircle = ({
|
|
|
8969
8972
|
)
|
|
8970
8973
|
]
|
|
8971
8974
|
}
|
|
8972
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
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 = ({
|
|
8975
|
+
), SvgBookmark$1 = SvgBookmark, SvgClose = ({
|
|
9001
8976
|
title,
|
|
9002
8977
|
titleId,
|
|
9003
8978
|
...props
|
|
@@ -16893,8 +16868,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16893
16868
|
required: "required",
|
|
16894
16869
|
validate: "validate"
|
|
16895
16870
|
};
|
|
16896
|
-
const HookFormContext = React
|
|
16897
|
-
const useFormContext = () => React
|
|
16871
|
+
const HookFormContext = React.createContext(null);
|
|
16872
|
+
const useFormContext = () => React.useContext(HookFormContext);
|
|
16898
16873
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16899
16874
|
const result = {
|
|
16900
16875
|
defaultValues: control._defaultValues
|
|
@@ -16922,9 +16897,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16922
16897
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16923
16898
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16924
16899
|
function useSubscribe(props) {
|
|
16925
|
-
const _props = React
|
|
16900
|
+
const _props = React.useRef(props);
|
|
16926
16901
|
_props.current = props;
|
|
16927
|
-
React
|
|
16902
|
+
React.useEffect(() => {
|
|
16928
16903
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16929
16904
|
next: _props.current.next
|
|
16930
16905
|
});
|
|
@@ -16936,9 +16911,9 @@ function useSubscribe(props) {
|
|
|
16936
16911
|
function useFormState(props) {
|
|
16937
16912
|
const methods = useFormContext();
|
|
16938
16913
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16939
|
-
const [formState, updateFormState] = React
|
|
16940
|
-
const _mounted = React
|
|
16941
|
-
const _localProxyFormState = React
|
|
16914
|
+
const [formState, updateFormState] = React.useState(control._formState);
|
|
16915
|
+
const _mounted = React.useRef(true);
|
|
16916
|
+
const _localProxyFormState = React.useRef({
|
|
16942
16917
|
isDirty: false,
|
|
16943
16918
|
isLoading: false,
|
|
16944
16919
|
dirtyFields: false,
|
|
@@ -16947,7 +16922,7 @@ function useFormState(props) {
|
|
|
16947
16922
|
isValid: false,
|
|
16948
16923
|
errors: false
|
|
16949
16924
|
});
|
|
16950
|
-
const _name = React
|
|
16925
|
+
const _name = React.useRef(name);
|
|
16951
16926
|
_name.current = name;
|
|
16952
16927
|
useSubscribe({
|
|
16953
16928
|
disabled,
|
|
@@ -16957,7 +16932,7 @@ function useFormState(props) {
|
|
|
16957
16932
|
}),
|
|
16958
16933
|
subject: control._subjects.state
|
|
16959
16934
|
});
|
|
16960
|
-
React
|
|
16935
|
+
React.useEffect(() => {
|
|
16961
16936
|
_mounted.current = true;
|
|
16962
16937
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16963
16938
|
return () => {
|
|
@@ -16981,7 +16956,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
|
|
|
16981
16956
|
function useWatch(props) {
|
|
16982
16957
|
const methods = useFormContext();
|
|
16983
16958
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
16984
|
-
const _name = React
|
|
16959
|
+
const _name = React.useRef(name);
|
|
16985
16960
|
_name.current = name;
|
|
16986
16961
|
useSubscribe({
|
|
16987
16962
|
disabled,
|
|
@@ -16992,8 +16967,8 @@ function useWatch(props) {
|
|
|
16992
16967
|
}
|
|
16993
16968
|
}
|
|
16994
16969
|
});
|
|
16995
|
-
const [value, updateValue] = React
|
|
16996
|
-
React
|
|
16970
|
+
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
16971
|
+
React.useEffect(() => control._removeUnmounted());
|
|
16997
16972
|
return value;
|
|
16998
16973
|
}
|
|
16999
16974
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17029,12 +17004,12 @@ function useController(props) {
|
|
|
17029
17004
|
control,
|
|
17030
17005
|
name
|
|
17031
17006
|
});
|
|
17032
|
-
const _registerProps = React
|
|
17007
|
+
const _registerProps = React.useRef(control.register(name, {
|
|
17033
17008
|
...props.rules,
|
|
17034
17009
|
value,
|
|
17035
17010
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17036
17011
|
}));
|
|
17037
|
-
React
|
|
17012
|
+
React.useEffect(() => {
|
|
17038
17013
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17039
17014
|
const updateMounted = (name2, value2) => {
|
|
17040
17015
|
const field = get(control._fields, name2);
|
|
@@ -17054,7 +17029,7 @@ function useController(props) {
|
|
|
17054
17029
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17055
17030
|
};
|
|
17056
17031
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17057
|
-
React
|
|
17032
|
+
React.useEffect(() => {
|
|
17058
17033
|
if (get(control._fields, name)) {
|
|
17059
17034
|
control._updateDisabledField({
|
|
17060
17035
|
disabled,
|
|
@@ -17069,14 +17044,14 @@ function useController(props) {
|
|
|
17069
17044
|
name,
|
|
17070
17045
|
value,
|
|
17071
17046
|
...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
|
|
17072
|
-
onChange: React
|
|
17047
|
+
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17073
17048
|
target: {
|
|
17074
17049
|
value: getEventValue(event),
|
|
17075
17050
|
name
|
|
17076
17051
|
},
|
|
17077
17052
|
type: EVENTS.CHANGE
|
|
17078
17053
|
}), [name]),
|
|
17079
|
-
onBlur: React
|
|
17054
|
+
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17080
17055
|
target: {
|
|
17081
17056
|
value: get(control._formValues, name),
|
|
17082
17057
|
name
|
|
@@ -18318,9 +18293,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18318
18293
|
};
|
|
18319
18294
|
}
|
|
18320
18295
|
function useForm(props = {}) {
|
|
18321
|
-
const _formControl = React
|
|
18322
|
-
const _values = React
|
|
18323
|
-
const [formState, updateFormState] = React
|
|
18296
|
+
const _formControl = React.useRef();
|
|
18297
|
+
const _values = React.useRef();
|
|
18298
|
+
const [formState, updateFormState] = React.useState({
|
|
18324
18299
|
isDirty: false,
|
|
18325
18300
|
isValidating: false,
|
|
18326
18301
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18351,8 +18326,8 @@ function useForm(props = {}) {
|
|
|
18351
18326
|
}
|
|
18352
18327
|
}
|
|
18353
18328
|
});
|
|
18354
|
-
React
|
|
18355
|
-
React
|
|
18329
|
+
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18330
|
+
React.useEffect(() => {
|
|
18356
18331
|
if (control._proxyFormState.isDirty) {
|
|
18357
18332
|
const isDirty = control._getDirty();
|
|
18358
18333
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18362,7 +18337,7 @@ function useForm(props = {}) {
|
|
|
18362
18337
|
}
|
|
18363
18338
|
}
|
|
18364
18339
|
}, [control, formState.isDirty]);
|
|
18365
|
-
React
|
|
18340
|
+
React.useEffect(() => {
|
|
18366
18341
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18367
18342
|
control._reset(props.values, control._options.resetOptions);
|
|
18368
18343
|
_values.current = props.values;
|
|
@@ -18371,12 +18346,12 @@ function useForm(props = {}) {
|
|
|
18371
18346
|
control._resetDefaultValues();
|
|
18372
18347
|
}
|
|
18373
18348
|
}, [props.values, control]);
|
|
18374
|
-
React
|
|
18349
|
+
React.useEffect(() => {
|
|
18375
18350
|
if (props.errors) {
|
|
18376
18351
|
control._setErrors(props.errors);
|
|
18377
18352
|
}
|
|
18378
18353
|
}, [props.errors, control]);
|
|
18379
|
-
React
|
|
18354
|
+
React.useEffect(() => {
|
|
18380
18355
|
if (!control._state.mount) {
|
|
18381
18356
|
control._updateValid();
|
|
18382
18357
|
control._state.mount = true;
|
|
@@ -18390,9 +18365,9 @@ function useForm(props = {}) {
|
|
|
18390
18365
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18391
18366
|
return _formControl.current;
|
|
18392
18367
|
}
|
|
18393
|
-
function getWindow$3(
|
|
18368
|
+
function getWindow$3(node) {
|
|
18394
18369
|
var _node$ownerDocument;
|
|
18395
|
-
return (
|
|
18370
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18396
18371
|
}
|
|
18397
18372
|
function isElement$3(value) {
|
|
18398
18373
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18955,19 +18930,19 @@ const size$2 = function(options) {
|
|
|
18955
18930
|
}
|
|
18956
18931
|
};
|
|
18957
18932
|
};
|
|
18958
|
-
function getNodeName$1(
|
|
18959
|
-
if (isNode$1(
|
|
18960
|
-
return (
|
|
18933
|
+
function getNodeName$1(node) {
|
|
18934
|
+
if (isNode$1(node)) {
|
|
18935
|
+
return (node.nodeName || "").toLowerCase();
|
|
18961
18936
|
}
|
|
18962
18937
|
return "#document";
|
|
18963
18938
|
}
|
|
18964
|
-
function getWindow$2(
|
|
18939
|
+
function getWindow$2(node) {
|
|
18965
18940
|
var _node$ownerDocument;
|
|
18966
|
-
return (
|
|
18941
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18967
18942
|
}
|
|
18968
|
-
function getDocumentElement$1(
|
|
18943
|
+
function getDocumentElement$1(node) {
|
|
18969
18944
|
var _ref;
|
|
18970
|
-
return (_ref = (isNode$1(
|
|
18945
|
+
return (_ref = (isNode$1(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
18971
18946
|
}
|
|
18972
18947
|
function isNode$1(value) {
|
|
18973
18948
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -19016,8 +18991,8 @@ function isWebKit() {
|
|
|
19016
18991
|
return false;
|
|
19017
18992
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
19018
18993
|
}
|
|
19019
|
-
function isLastTraversableNode(
|
|
19020
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
18994
|
+
function isLastTraversableNode(node) {
|
|
18995
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node));
|
|
19021
18996
|
}
|
|
19022
18997
|
function getComputedStyle$3(element) {
|
|
19023
18998
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19034,30 +19009,30 @@ function getNodeScroll$1(element) {
|
|
|
19034
19009
|
scrollTop: element.pageYOffset
|
|
19035
19010
|
};
|
|
19036
19011
|
}
|
|
19037
|
-
function getParentNode$1(
|
|
19038
|
-
if (getNodeName$1(
|
|
19039
|
-
return
|
|
19012
|
+
function getParentNode$1(node) {
|
|
19013
|
+
if (getNodeName$1(node) === "html") {
|
|
19014
|
+
return node;
|
|
19040
19015
|
}
|
|
19041
19016
|
const result = (
|
|
19042
19017
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
isShadowRoot$1(
|
|
19046
|
-
getDocumentElement$1(
|
|
19018
|
+
node.assignedSlot || // DOM Element detected.
|
|
19019
|
+
node.parentNode || // ShadowRoot detected.
|
|
19020
|
+
isShadowRoot$1(node) && node.host || // Fallback.
|
|
19021
|
+
getDocumentElement$1(node)
|
|
19047
19022
|
);
|
|
19048
19023
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19049
19024
|
}
|
|
19050
|
-
function getNearestOverflowAncestor(
|
|
19051
|
-
const parentNode = getParentNode$1(
|
|
19025
|
+
function getNearestOverflowAncestor(node) {
|
|
19026
|
+
const parentNode = getParentNode$1(node);
|
|
19052
19027
|
if (isLastTraversableNode(parentNode)) {
|
|
19053
|
-
return
|
|
19028
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
19054
19029
|
}
|
|
19055
19030
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19056
19031
|
return parentNode;
|
|
19057
19032
|
}
|
|
19058
19033
|
return getNearestOverflowAncestor(parentNode);
|
|
19059
19034
|
}
|
|
19060
|
-
function getOverflowAncestors(
|
|
19035
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
19061
19036
|
var _node$ownerDocument2;
|
|
19062
19037
|
if (list === void 0) {
|
|
19063
19038
|
list = [];
|
|
@@ -19065,8 +19040,8 @@ function getOverflowAncestors(node2, list, traverseIframes) {
|
|
|
19065
19040
|
if (traverseIframes === void 0) {
|
|
19066
19041
|
traverseIframes = true;
|
|
19067
19042
|
}
|
|
19068
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19069
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19043
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
19044
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19070
19045
|
const win = getWindow$2(scrollableAncestor);
|
|
19071
19046
|
if (isBody) {
|
|
19072
19047
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -19738,16 +19713,16 @@ function useFloating$1(options) {
|
|
|
19738
19713
|
}
|
|
19739
19714
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
19740
19715
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
19741
|
-
const setReference = reactExports.useCallback((
|
|
19742
|
-
if (
|
|
19743
|
-
referenceRef.current =
|
|
19744
|
-
_setReference(
|
|
19716
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19717
|
+
if (node !== referenceRef.current) {
|
|
19718
|
+
referenceRef.current = node;
|
|
19719
|
+
_setReference(node);
|
|
19745
19720
|
}
|
|
19746
19721
|
}, []);
|
|
19747
|
-
const setFloating = reactExports.useCallback((
|
|
19748
|
-
if (
|
|
19749
|
-
floatingRef.current =
|
|
19750
|
-
_setFloating(
|
|
19722
|
+
const setFloating = reactExports.useCallback((node) => {
|
|
19723
|
+
if (node !== floatingRef.current) {
|
|
19724
|
+
floatingRef.current = node;
|
|
19725
|
+
_setFloating(node);
|
|
19751
19726
|
}
|
|
19752
19727
|
}, []);
|
|
19753
19728
|
const referenceEl = externalReference || _reference;
|
|
@@ -19885,7 +19860,7 @@ function useFloatingId() {
|
|
|
19885
19860
|
}, []);
|
|
19886
19861
|
return id2;
|
|
19887
19862
|
}
|
|
19888
|
-
const useReactId = React$
|
|
19863
|
+
const useReactId = React$1[/* @__PURE__ */ "useId".toString()];
|
|
19889
19864
|
const useId = useReactId || useFloatingId;
|
|
19890
19865
|
function createPubSub() {
|
|
19891
19866
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -19905,7 +19880,7 @@ function createPubSub() {
|
|
|
19905
19880
|
}
|
|
19906
19881
|
const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
19907
19882
|
const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
|
|
19908
|
-
const useInsertionEffect = React$
|
|
19883
|
+
const useInsertionEffect = React$1[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
19909
19884
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
19910
19885
|
function useEffectEvent(callback) {
|
|
19911
19886
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -19944,23 +19919,23 @@ function useFloating(options) {
|
|
|
19944
19919
|
const dataRef = reactExports.useRef({});
|
|
19945
19920
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
19946
19921
|
const floatingId = useId();
|
|
19947
|
-
const setPositionReference = reactExports.useCallback((
|
|
19948
|
-
const positionReference = isElement$3(
|
|
19949
|
-
getBoundingClientRect: () =>
|
|
19950
|
-
contextElement:
|
|
19951
|
-
} :
|
|
19922
|
+
const setPositionReference = reactExports.useCallback((node) => {
|
|
19923
|
+
const positionReference = isElement$3(node) ? {
|
|
19924
|
+
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
19925
|
+
contextElement: node
|
|
19926
|
+
} : node;
|
|
19952
19927
|
position.refs.setReference(positionReference);
|
|
19953
19928
|
}, [position.refs]);
|
|
19954
|
-
const setReference = reactExports.useCallback((
|
|
19955
|
-
if (isElement$3(
|
|
19956
|
-
domReferenceRef.current =
|
|
19957
|
-
setDomReference(
|
|
19929
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19930
|
+
if (isElement$3(node) || node === null) {
|
|
19931
|
+
domReferenceRef.current = node;
|
|
19932
|
+
setDomReference(node);
|
|
19958
19933
|
}
|
|
19959
19934
|
if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
19960
19935
|
// `null` to support `positionReference` + an unstable `reference`
|
|
19961
19936
|
// callback ref.
|
|
19962
|
-
|
|
19963
|
-
position.refs.setReference(
|
|
19937
|
+
node !== null && !isElement$3(node)) {
|
|
19938
|
+
position.refs.setReference(node);
|
|
19964
19939
|
}
|
|
19965
19940
|
}, [position.refs]);
|
|
19966
19941
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -19985,9 +19960,9 @@ function useFloating(options) {
|
|
|
19985
19960
|
onOpenChange
|
|
19986
19961
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
19987
19962
|
index(() => {
|
|
19988
|
-
const
|
|
19989
|
-
if (
|
|
19990
|
-
|
|
19963
|
+
const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
|
|
19964
|
+
if (node) {
|
|
19965
|
+
node.context = context2;
|
|
19991
19966
|
}
|
|
19992
19967
|
});
|
|
19993
19968
|
return reactExports.useMemo(() => ({
|
|
@@ -20987,7 +20962,7 @@ function usePrev(value) {
|
|
|
20987
20962
|
var $node = Symbol.for("Animated:node");
|
|
20988
20963
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
20989
20964
|
var getAnimated = (owner) => owner && owner[$node];
|
|
20990
|
-
var setAnimated = (owner,
|
|
20965
|
+
var setAnimated = (owner, node) => defineHidden(owner, $node, node);
|
|
20991
20966
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
20992
20967
|
var Animated = class {
|
|
20993
20968
|
constructor() {
|
|
@@ -21114,7 +21089,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21114
21089
|
}
|
|
21115
21090
|
reset() {
|
|
21116
21091
|
if (this.payload) {
|
|
21117
|
-
each(this.payload, (
|
|
21092
|
+
each(this.payload, (node) => node.reset());
|
|
21118
21093
|
}
|
|
21119
21094
|
}
|
|
21120
21095
|
/** Create a payload set. */
|
|
@@ -21132,7 +21107,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21132
21107
|
}
|
|
21133
21108
|
const payload = getPayload(source);
|
|
21134
21109
|
if (payload) {
|
|
21135
|
-
each(payload, (
|
|
21110
|
+
each(payload, (node) => this.add(node));
|
|
21136
21111
|
}
|
|
21137
21112
|
}
|
|
21138
21113
|
};
|
|
@@ -21145,12 +21120,12 @@ var AnimatedArray = class extends AnimatedObject {
|
|
|
21145
21120
|
return new AnimatedArray(source);
|
|
21146
21121
|
}
|
|
21147
21122
|
getValue() {
|
|
21148
|
-
return this.source.map((
|
|
21123
|
+
return this.source.map((node) => node.getValue());
|
|
21149
21124
|
}
|
|
21150
21125
|
setValue(source) {
|
|
21151
21126
|
const payload = this.getPayload();
|
|
21152
21127
|
if (source.length == payload.length) {
|
|
21153
|
-
return payload.map((
|
|
21128
|
+
return payload.map((node, i2) => node.setValue(source[i2])).some(Boolean);
|
|
21154
21129
|
}
|
|
21155
21130
|
super.setValue(source.map(makeAnimated));
|
|
21156
21131
|
return true;
|
|
@@ -21685,8 +21660,8 @@ var FrameValue = class extends FluidValue {
|
|
|
21685
21660
|
}
|
|
21686
21661
|
/** Get the current value */
|
|
21687
21662
|
get() {
|
|
21688
|
-
const
|
|
21689
|
-
return
|
|
21663
|
+
const node = getAnimated(this);
|
|
21664
|
+
return node && node.getValue();
|
|
21690
21665
|
}
|
|
21691
21666
|
/** Create a spring that maps our value to another value */
|
|
21692
21667
|
to(...args) {
|
|
@@ -21776,8 +21751,8 @@ var SpringValue = class extends FrameValue {
|
|
|
21776
21751
|
return getFluidValue(this.animation.to);
|
|
21777
21752
|
}
|
|
21778
21753
|
get velocity() {
|
|
21779
|
-
const
|
|
21780
|
-
return
|
|
21754
|
+
const node = getAnimated(this);
|
|
21755
|
+
return node instanceof AnimatedValue ? node.lastVelocity || 0 : node.getPayload().map((node2) => node2.lastVelocity || 0);
|
|
21781
21756
|
}
|
|
21782
21757
|
/**
|
|
21783
21758
|
* When true, this value has been animated at least once.
|
|
@@ -21816,24 +21791,24 @@ var SpringValue = class extends FrameValue {
|
|
|
21816
21791
|
if (!payload && hasFluidValue(anim.to)) {
|
|
21817
21792
|
toValues = toArray(getFluidValue(anim.to));
|
|
21818
21793
|
}
|
|
21819
|
-
anim.values.forEach((
|
|
21820
|
-
if (
|
|
21794
|
+
anim.values.forEach((node2, i2) => {
|
|
21795
|
+
if (node2.done)
|
|
21821
21796
|
return;
|
|
21822
21797
|
const to2 = (
|
|
21823
21798
|
// Animated strings always go from 0 to 1.
|
|
21824
|
-
|
|
21799
|
+
node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
21825
21800
|
);
|
|
21826
21801
|
let finished = anim.immediate;
|
|
21827
21802
|
let position = to2;
|
|
21828
21803
|
if (!finished) {
|
|
21829
|
-
position =
|
|
21804
|
+
position = node2.lastPosition;
|
|
21830
21805
|
if (config2.tension <= 0) {
|
|
21831
|
-
|
|
21806
|
+
node2.done = true;
|
|
21832
21807
|
return;
|
|
21833
21808
|
}
|
|
21834
|
-
let elapsed =
|
|
21809
|
+
let elapsed = node2.elapsedTime += dt;
|
|
21835
21810
|
const from = anim.fromValues[i2];
|
|
21836
|
-
const v0 =
|
|
21811
|
+
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
21837
21812
|
let velocity;
|
|
21838
21813
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
21839
21814
|
if (!is.und(config2.duration)) {
|
|
@@ -21841,30 +21816,30 @@ var SpringValue = class extends FrameValue {
|
|
|
21841
21816
|
if (config2.duration > 0) {
|
|
21842
21817
|
if (this._memoizedDuration !== config2.duration) {
|
|
21843
21818
|
this._memoizedDuration = config2.duration;
|
|
21844
|
-
if (
|
|
21845
|
-
|
|
21846
|
-
elapsed =
|
|
21819
|
+
if (node2.durationProgress > 0) {
|
|
21820
|
+
node2.elapsedTime = config2.duration * node2.durationProgress;
|
|
21821
|
+
elapsed = node2.elapsedTime += dt;
|
|
21847
21822
|
}
|
|
21848
21823
|
}
|
|
21849
21824
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
21850
21825
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
21851
|
-
|
|
21826
|
+
node2.durationProgress = p2;
|
|
21852
21827
|
}
|
|
21853
21828
|
position = from + config2.easing(p2) * (to2 - from);
|
|
21854
|
-
velocity = (position -
|
|
21829
|
+
velocity = (position - node2.lastPosition) / dt;
|
|
21855
21830
|
finished = p2 == 1;
|
|
21856
21831
|
} else if (config2.decay) {
|
|
21857
21832
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
21858
21833
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
21859
21834
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
21860
|
-
finished = Math.abs(
|
|
21835
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
21861
21836
|
velocity = v0 * e2;
|
|
21862
21837
|
} else {
|
|
21863
|
-
velocity =
|
|
21838
|
+
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
21864
21839
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
21865
21840
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
21866
21841
|
const canBounce = !is.und(bounceFactor);
|
|
21867
|
-
const isGrowing = from == to2 ?
|
|
21842
|
+
const isGrowing = from == to2 ? node2.v0 > 0 : from < to2;
|
|
21868
21843
|
let isMoving;
|
|
21869
21844
|
let isBouncing = false;
|
|
21870
21845
|
const step = 1;
|
|
@@ -21891,7 +21866,7 @@ var SpringValue = class extends FrameValue {
|
|
|
21891
21866
|
position = position + velocity * step;
|
|
21892
21867
|
}
|
|
21893
21868
|
}
|
|
21894
|
-
|
|
21869
|
+
node2.lastVelocity = velocity;
|
|
21895
21870
|
if (Number.isNaN(position)) {
|
|
21896
21871
|
console.warn(`Got NaN while animating:`, this);
|
|
21897
21872
|
finished = true;
|
|
@@ -21901,20 +21876,20 @@ var SpringValue = class extends FrameValue {
|
|
|
21901
21876
|
finished = false;
|
|
21902
21877
|
}
|
|
21903
21878
|
if (finished) {
|
|
21904
|
-
|
|
21879
|
+
node2.done = true;
|
|
21905
21880
|
} else {
|
|
21906
21881
|
idle = false;
|
|
21907
21882
|
}
|
|
21908
|
-
if (
|
|
21883
|
+
if (node2.setValue(position, config2.round)) {
|
|
21909
21884
|
changed = true;
|
|
21910
21885
|
}
|
|
21911
21886
|
});
|
|
21912
|
-
const
|
|
21913
|
-
const currVal =
|
|
21887
|
+
const node = getAnimated(this);
|
|
21888
|
+
const currVal = node.getValue();
|
|
21914
21889
|
if (idle) {
|
|
21915
21890
|
const finalVal = getFluidValue(anim.to);
|
|
21916
21891
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
21917
|
-
|
|
21892
|
+
node.setValue(finalVal);
|
|
21918
21893
|
this._onChange(finalVal);
|
|
21919
21894
|
} else if (changed && config2.decay) {
|
|
21920
21895
|
this._onChange(currVal);
|
|
@@ -22144,8 +22119,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22144
22119
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
22145
22120
|
);
|
|
22146
22121
|
}
|
|
22147
|
-
let
|
|
22148
|
-
if (!
|
|
22122
|
+
let node = getAnimated(this);
|
|
22123
|
+
if (!node || is.und(to2)) {
|
|
22149
22124
|
return resolve(getFinishedResult(this, true));
|
|
22150
22125
|
}
|
|
22151
22126
|
const reset = (
|
|
@@ -22160,16 +22135,16 @@ var SpringValue = class extends FrameValue {
|
|
|
22160
22135
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
22161
22136
|
if (hasToChanged) {
|
|
22162
22137
|
const nodeType = getAnimatedType(to2);
|
|
22163
|
-
if (nodeType !==
|
|
22138
|
+
if (nodeType !== node.constructor) {
|
|
22164
22139
|
if (immediate) {
|
|
22165
|
-
|
|
22140
|
+
node = this._set(goal);
|
|
22166
22141
|
} else
|
|
22167
22142
|
throw Error(
|
|
22168
|
-
`Cannot animate between ${
|
|
22143
|
+
`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
22169
22144
|
);
|
|
22170
22145
|
}
|
|
22171
22146
|
}
|
|
22172
|
-
const goalType =
|
|
22147
|
+
const goalType = node.constructor;
|
|
22173
22148
|
let started = hasFluidValue(to2);
|
|
22174
22149
|
let finished = false;
|
|
22175
22150
|
if (!started) {
|
|
@@ -22191,7 +22166,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22191
22166
|
}
|
|
22192
22167
|
if (!hasAsyncTo) {
|
|
22193
22168
|
if (started || hasFluidValue(prevTo)) {
|
|
22194
|
-
anim.values =
|
|
22169
|
+
anim.values = node.getPayload();
|
|
22195
22170
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
22196
22171
|
}
|
|
22197
22172
|
if (anim.immediate != immediate) {
|
|
@@ -22313,7 +22288,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22313
22288
|
const anim = this.animation;
|
|
22314
22289
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
22315
22290
|
if (!anim.immediate) {
|
|
22316
|
-
anim.fromValues = anim.values.map((
|
|
22291
|
+
anim.fromValues = anim.values.map((node) => node.lastPosition);
|
|
22317
22292
|
}
|
|
22318
22293
|
if (!isAnimating(this)) {
|
|
22319
22294
|
setActiveBit(this, true);
|
|
@@ -22338,8 +22313,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22338
22313
|
if (isAnimating(this)) {
|
|
22339
22314
|
setActiveBit(this, false);
|
|
22340
22315
|
const anim = this.animation;
|
|
22341
|
-
each(anim.values, (
|
|
22342
|
-
|
|
22316
|
+
each(anim.values, (node) => {
|
|
22317
|
+
node.done = true;
|
|
22343
22318
|
});
|
|
22344
22319
|
if (anim.toValues) {
|
|
22345
22320
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -23212,8 +23187,8 @@ var Interpolation = class extends FrameValue {
|
|
|
23212
23187
|
_start() {
|
|
23213
23188
|
if (this.idle && !checkIdle(this._active)) {
|
|
23214
23189
|
this.idle = false;
|
|
23215
|
-
each(getPayload(this), (
|
|
23216
|
-
|
|
23190
|
+
each(getPayload(this), (node) => {
|
|
23191
|
+
node.done = false;
|
|
23217
23192
|
});
|
|
23218
23193
|
if (globals_exports.skipAnimation) {
|
|
23219
23194
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -23278,8 +23253,8 @@ function checkIdle(active) {
|
|
|
23278
23253
|
function becomeIdle(self2) {
|
|
23279
23254
|
if (!self2.idle) {
|
|
23280
23255
|
self2.idle = true;
|
|
23281
|
-
each(getPayload(self2), (
|
|
23282
|
-
|
|
23256
|
+
each(getPayload(self2), (node) => {
|
|
23257
|
+
node.done = true;
|
|
23283
23258
|
});
|
|
23284
23259
|
callFluidObservers(self2, {
|
|
23285
23260
|
type: "idle",
|
|
@@ -23673,30 +23648,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
23673
23648
|
function getNodeName(element) {
|
|
23674
23649
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23675
23650
|
}
|
|
23676
|
-
function getWindow$1(
|
|
23677
|
-
if (
|
|
23651
|
+
function getWindow$1(node) {
|
|
23652
|
+
if (node == null) {
|
|
23678
23653
|
return window;
|
|
23679
23654
|
}
|
|
23680
|
-
if (
|
|
23681
|
-
var ownerDocument =
|
|
23655
|
+
if (node.toString() !== "[object Window]") {
|
|
23656
|
+
var ownerDocument = node.ownerDocument;
|
|
23682
23657
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23683
23658
|
}
|
|
23684
|
-
return
|
|
23659
|
+
return node;
|
|
23685
23660
|
}
|
|
23686
|
-
function isElement$1(
|
|
23687
|
-
var OwnElement = getWindow$1(
|
|
23688
|
-
return
|
|
23661
|
+
function isElement$1(node) {
|
|
23662
|
+
var OwnElement = getWindow$1(node).Element;
|
|
23663
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
23689
23664
|
}
|
|
23690
|
-
function isHTMLElement(
|
|
23691
|
-
var OwnElement = getWindow$1(
|
|
23692
|
-
return
|
|
23665
|
+
function isHTMLElement(node) {
|
|
23666
|
+
var OwnElement = getWindow$1(node).HTMLElement;
|
|
23667
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
23693
23668
|
}
|
|
23694
|
-
function isShadowRoot(
|
|
23669
|
+
function isShadowRoot(node) {
|
|
23695
23670
|
if (typeof ShadowRoot === "undefined") {
|
|
23696
23671
|
return false;
|
|
23697
23672
|
}
|
|
23698
|
-
var OwnElement = getWindow$1(
|
|
23699
|
-
return
|
|
23673
|
+
var OwnElement = getWindow$1(node).ShadowRoot;
|
|
23674
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
23700
23675
|
}
|
|
23701
23676
|
function applyStyles(_ref) {
|
|
23702
23677
|
var state = _ref.state;
|
|
@@ -24178,8 +24153,8 @@ function getOppositeVariationPlacement(placement) {
|
|
|
24178
24153
|
return hash$1[matched];
|
|
24179
24154
|
});
|
|
24180
24155
|
}
|
|
24181
|
-
function getWindowScroll(
|
|
24182
|
-
var win = getWindow$1(
|
|
24156
|
+
function getWindowScroll(node) {
|
|
24157
|
+
var win = getWindow$1(node);
|
|
24183
24158
|
var scrollLeft = win.pageXOffset;
|
|
24184
24159
|
var scrollTop = win.pageYOffset;
|
|
24185
24160
|
return {
|
|
@@ -24237,14 +24212,14 @@ function isScrollParent(element) {
|
|
|
24237
24212
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24238
24213
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24239
24214
|
}
|
|
24240
|
-
function getScrollParent(
|
|
24241
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
24242
|
-
return
|
|
24215
|
+
function getScrollParent(node) {
|
|
24216
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
|
|
24217
|
+
return node.ownerDocument.body;
|
|
24243
24218
|
}
|
|
24244
|
-
if (isHTMLElement(
|
|
24245
|
-
return
|
|
24219
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
24220
|
+
return node;
|
|
24246
24221
|
}
|
|
24247
|
-
return getScrollParent(getParentNode(
|
|
24222
|
+
return getScrollParent(getParentNode(node));
|
|
24248
24223
|
}
|
|
24249
24224
|
function listScrollParents(element, list) {
|
|
24250
24225
|
var _element$ownerDocumen;
|
|
@@ -24738,11 +24713,11 @@ function getHTMLElementScroll(element) {
|
|
|
24738
24713
|
scrollTop: element.scrollTop
|
|
24739
24714
|
};
|
|
24740
24715
|
}
|
|
24741
|
-
function getNodeScroll(
|
|
24742
|
-
if (
|
|
24743
|
-
return getWindowScroll(
|
|
24716
|
+
function getNodeScroll(node) {
|
|
24717
|
+
if (node === getWindow$1(node) || !isHTMLElement(node)) {
|
|
24718
|
+
return getWindowScroll(node);
|
|
24744
24719
|
} else {
|
|
24745
|
-
return getHTMLElementScroll(
|
|
24720
|
+
return getHTMLElementScroll(node);
|
|
24746
24721
|
}
|
|
24747
24722
|
}
|
|
24748
24723
|
function isElementScaled(element) {
|
|
@@ -25275,35 +25250,7 @@ const SvgCommunity = ({
|
|
|
25275
25250
|
)
|
|
25276
25251
|
]
|
|
25277
25252
|
}
|
|
25278
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
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 = ({
|
|
25253
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoMessaging = ({
|
|
25307
25254
|
title,
|
|
25308
25255
|
titleId,
|
|
25309
25256
|
...props
|
|
@@ -25354,33 +25301,7 @@ const SvgCommunity = ({
|
|
|
25354
25301
|
)
|
|
25355
25302
|
]
|
|
25356
25303
|
}
|
|
25357
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
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 = ({
|
|
25304
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneMessaging = ({
|
|
25384
25305
|
title,
|
|
25385
25306
|
titleId,
|
|
25386
25307
|
...props
|
|
@@ -25711,11 +25632,11 @@ function getTranslate(el2, axis) {
|
|
|
25711
25632
|
function isObject$1(o2) {
|
|
25712
25633
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
25713
25634
|
}
|
|
25714
|
-
function isNode(
|
|
25635
|
+
function isNode(node) {
|
|
25715
25636
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
25716
|
-
return
|
|
25637
|
+
return node instanceof HTMLElement;
|
|
25717
25638
|
}
|
|
25718
|
-
return
|
|
25639
|
+
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
25719
25640
|
}
|
|
25720
25641
|
function extend$1() {
|
|
25721
25642
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -26743,8 +26664,8 @@ function updateSlides() {
|
|
|
26743
26664
|
"marginRight": "marginBottom"
|
|
26744
26665
|
}[property];
|
|
26745
26666
|
}
|
|
26746
|
-
function getDirectionPropertyValue(
|
|
26747
|
-
return parseFloat(
|
|
26667
|
+
function getDirectionPropertyValue(node, label) {
|
|
26668
|
+
return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
26748
26669
|
}
|
|
26749
26670
|
const params = swiper.params;
|
|
26750
26671
|
const {
|
|
@@ -30344,7 +30265,7 @@ function isChildSwiperSlide(child) {
|
|
|
30344
30265
|
}
|
|
30345
30266
|
function processChildren(c6) {
|
|
30346
30267
|
const slides = [];
|
|
30347
|
-
React
|
|
30268
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30348
30269
|
if (isChildSwiperSlide(child)) {
|
|
30349
30270
|
slides.push(child);
|
|
30350
30271
|
} else if (child.props && child.props.children) {
|
|
@@ -30361,7 +30282,7 @@ function getChildren(c6) {
|
|
|
30361
30282
|
"wrapper-start": [],
|
|
30362
30283
|
"wrapper-end": []
|
|
30363
30284
|
};
|
|
30364
|
-
React
|
|
30285
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30365
30286
|
if (isChildSwiperSlide(child)) {
|
|
30366
30287
|
slides.push(child);
|
|
30367
30288
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -30412,7 +30333,7 @@ function renderVirtual(swiper, slides, virtualData) {
|
|
|
30412
30333
|
}
|
|
30413
30334
|
}
|
|
30414
30335
|
return slidesToRender.map((child, index2) => {
|
|
30415
|
-
return /* @__PURE__ */ React
|
|
30336
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30416
30337
|
swiper,
|
|
30417
30338
|
style,
|
|
30418
30339
|
key: `slide-${index2}`
|
|
@@ -30572,29 +30493,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
|
|
|
30572
30493
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
30573
30494
|
}
|
|
30574
30495
|
return slides.map((child, index2) => {
|
|
30575
|
-
return /* @__PURE__ */ React
|
|
30496
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30576
30497
|
swiper: swiperRef.current,
|
|
30577
30498
|
swiperSlideIndex: index2
|
|
30578
30499
|
});
|
|
30579
30500
|
});
|
|
30580
30501
|
}
|
|
30581
|
-
return /* @__PURE__ */ React
|
|
30502
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30582
30503
|
ref: swiperElRef,
|
|
30583
30504
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
30584
|
-
}, restProps), /* @__PURE__ */ React
|
|
30505
|
+
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
30585
30506
|
value: swiperRef.current
|
|
30586
|
-
}, slots["container-start"], /* @__PURE__ */ React
|
|
30507
|
+
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
30587
30508
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
30588
|
-
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React
|
|
30509
|
+
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
30589
30510
|
ref: prevElRef,
|
|
30590
30511
|
className: "swiper-button-prev"
|
|
30591
|
-
}), /* @__PURE__ */ React
|
|
30512
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
30592
30513
|
ref: nextElRef,
|
|
30593
30514
|
className: "swiper-button-next"
|
|
30594
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React
|
|
30515
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30595
30516
|
ref: scrollbarElRef,
|
|
30596
30517
|
className: "swiper-scrollbar"
|
|
30597
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React
|
|
30518
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30598
30519
|
ref: paginationElRef,
|
|
30599
30520
|
className: "swiper-pagination"
|
|
30600
30521
|
}), slots["container-end"]));
|
|
@@ -30660,2329 +30581,25 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
|
|
|
30660
30581
|
const onLoad2 = () => {
|
|
30661
30582
|
setLazyLoaded(true);
|
|
30662
30583
|
};
|
|
30663
|
-
return /* @__PURE__ */ React
|
|
30584
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30664
30585
|
ref: slideElRef,
|
|
30665
30586
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
30666
30587
|
"data-swiper-slide-index": virtualIndex,
|
|
30667
30588
|
onLoad: onLoad2
|
|
30668
|
-
}, rest), zoom && /* @__PURE__ */ React
|
|
30589
|
+
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30669
30590
|
value: slideData
|
|
30670
|
-
}, /* @__PURE__ */ React
|
|
30591
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
30671
30592
|
className: "swiper-zoom-container",
|
|
30672
30593
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
30673
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30594
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30674
30595
|
className: "swiper-lazy-preloader"
|
|
30675
|
-
}))), !zoom && /* @__PURE__ */ React
|
|
30596
|
+
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30676
30597
|
value: slideData
|
|
30677
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30598
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30678
30599
|
className: "swiper-lazy-preloader"
|
|
30679
30600
|
})));
|
|
30680
30601
|
});
|
|
30681
30602
|
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;
|
|
32986
30603
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
32987
30604
|
const Z_FIXED$1 = 4;
|
|
32988
30605
|
const Z_BINARY = 0;
|
|
@@ -33333,7 +30950,7 @@ const build_tree = (s2, desc) => {
|
|
|
33333
30950
|
const elems = desc.stat_desc.elems;
|
|
33334
30951
|
let n2, m2;
|
|
33335
30952
|
let max_code = -1;
|
|
33336
|
-
let
|
|
30953
|
+
let node;
|
|
33337
30954
|
s2.heap_len = 0;
|
|
33338
30955
|
s2.heap_max = HEAP_SIZE$1;
|
|
33339
30956
|
for (n2 = 0; n2 < elems; n2++) {
|
|
@@ -33345,19 +30962,19 @@ const build_tree = (s2, desc) => {
|
|
|
33345
30962
|
}
|
|
33346
30963
|
}
|
|
33347
30964
|
while (s2.heap_len < 2) {
|
|
33348
|
-
|
|
33349
|
-
tree[
|
|
33350
|
-
s2.depth[
|
|
30965
|
+
node = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
|
|
30966
|
+
tree[node * 2] = 1;
|
|
30967
|
+
s2.depth[node] = 0;
|
|
33351
30968
|
s2.opt_len--;
|
|
33352
30969
|
if (has_stree) {
|
|
33353
|
-
s2.static_len -= stree[
|
|
30970
|
+
s2.static_len -= stree[node * 2 + 1];
|
|
33354
30971
|
}
|
|
33355
30972
|
}
|
|
33356
30973
|
desc.max_code = max_code;
|
|
33357
30974
|
for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
|
|
33358
30975
|
pqdownheap(s2, tree, n2);
|
|
33359
30976
|
}
|
|
33360
|
-
|
|
30977
|
+
node = elems;
|
|
33361
30978
|
do {
|
|
33362
30979
|
n2 = s2.heap[
|
|
33363
30980
|
1
|
|
@@ -33379,13 +30996,13 @@ const build_tree = (s2, desc) => {
|
|
|
33379
30996
|
];
|
|
33380
30997
|
s2.heap[--s2.heap_max] = n2;
|
|
33381
30998
|
s2.heap[--s2.heap_max] = m2;
|
|
33382
|
-
tree[
|
|
33383
|
-
s2.depth[
|
|
33384
|
-
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] =
|
|
30999
|
+
tree[node * 2] = tree[n2 * 2] + tree[m2 * 2];
|
|
31000
|
+
s2.depth[node] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
|
|
31001
|
+
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node;
|
|
33385
31002
|
s2.heap[
|
|
33386
31003
|
1
|
|
33387
31004
|
/*SMALLEST*/
|
|
33388
|
-
] =
|
|
31005
|
+
] = node++;
|
|
33389
31006
|
pqdownheap(
|
|
33390
31007
|
s2,
|
|
33391
31008
|
tree,
|
|
@@ -39300,13 +36917,13 @@ var listGetNode = function(list, key) {
|
|
|
39300
36917
|
}
|
|
39301
36918
|
};
|
|
39302
36919
|
var listGet = function(objects, key) {
|
|
39303
|
-
var
|
|
39304
|
-
return
|
|
36920
|
+
var node = listGetNode(objects, key);
|
|
36921
|
+
return node && node.value;
|
|
39305
36922
|
};
|
|
39306
36923
|
var listSet = function(objects, key, value) {
|
|
39307
|
-
var
|
|
39308
|
-
if (
|
|
39309
|
-
|
|
36924
|
+
var node = listGetNode(objects, key);
|
|
36925
|
+
if (node) {
|
|
36926
|
+
node.value = value;
|
|
39310
36927
|
} else {
|
|
39311
36928
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
39312
36929
|
{
|
|
@@ -44118,12 +41735,12 @@ function generateUniformsSync(group, uniformData) {
|
|
|
44118
41735
|
break;
|
|
44119
41736
|
}
|
|
44120
41737
|
if (!parsed) {
|
|
44121
|
-
const
|
|
41738
|
+
const template = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
|
|
44122
41739
|
funcFragments.push(`
|
|
44123
41740
|
cu = ud["${i2}"];
|
|
44124
41741
|
cv = cu.value;
|
|
44125
41742
|
v = uv["${i2}"];
|
|
44126
|
-
${
|
|
41743
|
+
${template};`);
|
|
44127
41744
|
}
|
|
44128
41745
|
}
|
|
44129
41746
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -45542,8 +43159,8 @@ class Texture extends EventEmitter2 {
|
|
|
45542
43159
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
45543
43160
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
45544
43161
|
*/
|
|
45545
|
-
constructor(baseTexture, frame, orig,
|
|
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 =
|
|
43162
|
+
constructor(baseTexture, frame, orig, trim, rotate, anchor, borders) {
|
|
43163
|
+
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 = trim, this.valid = false, this.destroyed = false, this._uvs = DEFAULT_UVS, this.uvMatrix = null, this.orig = orig || frame, this._rotate = Number(rotate || 0), rotate === true)
|
|
45547
43164
|
this._rotate = 2;
|
|
45548
43165
|
else if (this._rotate % 2 !== 0)
|
|
45549
43166
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -46783,14 +44400,14 @@ class TextureMatrix {
|
|
|
46783
44400
|
this._textureID = tex._updateID, this._updateID++;
|
|
46784
44401
|
const uvs = tex._uvs;
|
|
46785
44402
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
46786
|
-
const orig = tex.orig,
|
|
46787
|
-
|
|
46788
|
-
orig.width /
|
|
44403
|
+
const orig = tex.orig, trim = tex.trim;
|
|
44404
|
+
trim && (tempMat$1.set(
|
|
44405
|
+
orig.width / trim.width,
|
|
46789
44406
|
0,
|
|
46790
44407
|
0,
|
|
46791
|
-
orig.height /
|
|
46792
|
-
-
|
|
46793
|
-
-
|
|
44408
|
+
orig.height / trim.height,
|
|
44409
|
+
-trim.x / trim.width,
|
|
44410
|
+
-trim.y / trim.height
|
|
46794
44411
|
), this.mapCoord.append(tempMat$1));
|
|
46795
44412
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
46796
44413
|
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;
|
|
@@ -47624,12 +45241,12 @@ function generateUniformBufferSync(group, uniformData) {
|
|
|
47624
45241
|
|
|
47625
45242
|
`);
|
|
47626
45243
|
} else {
|
|
47627
|
-
const
|
|
45244
|
+
const template = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
47628
45245
|
funcFragments.push(`
|
|
47629
45246
|
cv = ud.${name}.value;
|
|
47630
45247
|
v = uv.${name};
|
|
47631
45248
|
offset = ${uboElement.offset / 4};
|
|
47632
|
-
${
|
|
45249
|
+
${template};
|
|
47633
45250
|
`);
|
|
47634
45251
|
}
|
|
47635
45252
|
}
|
|
@@ -51198,9 +48815,9 @@ class Sprite extends Container {
|
|
|
51198
48815
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
51199
48816
|
return;
|
|
51200
48817
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
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,
|
|
48818
|
+
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, trim = texture.trim, orig = texture.orig, anchor = this._anchor;
|
|
51202
48819
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
51203
|
-
if (
|
|
48820
|
+
if (trim ? (w1 = trim.x - anchor._x * orig.width, w0 = w1 + trim.width, h1 = trim.y - anchor._y * orig.height, h0 = h1 + trim.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) {
|
|
51204
48821
|
const resolution = settings.RESOLUTION;
|
|
51205
48822
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
51206
48823
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -51234,8 +48851,8 @@ class Sprite extends Container {
|
|
|
51234
48851
|
}
|
|
51235
48852
|
/** Updates the bounds of the sprite. */
|
|
51236
48853
|
_calculateBounds() {
|
|
51237
|
-
const
|
|
51238
|
-
!
|
|
48854
|
+
const trim = this._texture.trim, orig = this._texture.orig;
|
|
48855
|
+
!trim || trim.width === orig.width && trim.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
|
|
51239
48856
|
}
|
|
51240
48857
|
/**
|
|
51241
48858
|
* Gets the local bounds of the sprite object.
|
|
@@ -51644,7 +49261,7 @@ const contextSettings = {
|
|
|
51644
49261
|
static measureFont(font) {
|
|
51645
49262
|
if (_TextMetrics2._fonts[font])
|
|
51646
49263
|
return _TextMetrics2._fonts[font];
|
|
51647
|
-
const
|
|
49264
|
+
const properties = {
|
|
51648
49265
|
ascent: 0,
|
|
51649
49266
|
descent: 0,
|
|
51650
49267
|
fontSize: 0
|
|
@@ -51654,7 +49271,7 @@ const contextSettings = {
|
|
|
51654
49271
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
51655
49272
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
51656
49273
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
51657
|
-
return _TextMetrics2._fonts[font] =
|
|
49274
|
+
return _TextMetrics2._fonts[font] = properties, properties;
|
|
51658
49275
|
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);
|
|
51659
49276
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
51660
49277
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -51669,7 +49286,7 @@ const contextSettings = {
|
|
|
51669
49286
|
else
|
|
51670
49287
|
break;
|
|
51671
49288
|
}
|
|
51672
|
-
for (
|
|
49289
|
+
for (properties.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
51673
49290
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
51674
49291
|
if (imagedata[idx + j2] !== 255) {
|
|
51675
49292
|
stop2 = true;
|
|
@@ -51680,7 +49297,7 @@ const contextSettings = {
|
|
|
51680
49297
|
else
|
|
51681
49298
|
break;
|
|
51682
49299
|
}
|
|
51683
|
-
return
|
|
49300
|
+
return properties.descent = i2 - baseline, properties.fontSize = properties.ascent + properties.descent, _TextMetrics2._fonts[font] = properties, properties;
|
|
51684
49301
|
}
|
|
51685
49302
|
/**
|
|
51686
49303
|
* Clear font metrics in metrics cache.
|
|
@@ -52052,8 +49669,8 @@ const genericFontFamilies = [
|
|
|
52052
49669
|
get trim() {
|
|
52053
49670
|
return this._trim;
|
|
52054
49671
|
}
|
|
52055
|
-
set trim(
|
|
52056
|
-
this._trim !==
|
|
49672
|
+
set trim(trim) {
|
|
49673
|
+
this._trim !== trim && (this._trim = trim, this.styleID++);
|
|
52057
49674
|
}
|
|
52058
49675
|
/**
|
|
52059
49676
|
* How newlines and spaces should be handled.
|
|
@@ -56644,10 +54261,10 @@ class ParticleBuffer {
|
|
|
56644
54261
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
56645
54262
|
* @param {number} size - The size of the batch.
|
|
56646
54263
|
*/
|
|
56647
|
-
constructor(
|
|
54264
|
+
constructor(properties, dynamicPropertyFlags, size2) {
|
|
56648
54265
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
56649
|
-
for (let i2 = 0; i2 <
|
|
56650
|
-
let property =
|
|
54266
|
+
for (let i2 = 0; i2 < properties.length; ++i2) {
|
|
54267
|
+
let property = properties[i2];
|
|
56651
54268
|
property = {
|
|
56652
54269
|
attributeName: property.attributeName,
|
|
56653
54270
|
size: property.size,
|
|
@@ -56884,8 +54501,8 @@ class ParticleRenderer extends ObjectRenderer {
|
|
|
56884
54501
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
56885
54502
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
56886
54503
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
56887
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
56888
|
-
|
|
54504
|
+
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim = texture.trim, orig = texture.orig;
|
|
54505
|
+
trim ? (w1 = trim.x - sprite.anchor.x * orig.width, w0 = w1 + trim.width, h1 = trim.y - sprite.anchor.y * orig.height, h0 = h1 + trim.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;
|
|
56889
54506
|
}
|
|
56890
54507
|
}
|
|
56891
54508
|
/**
|
|
@@ -57426,10 +55043,10 @@ const GAUSSIAN_VALUES = {
|
|
|
57426
55043
|
function generateBlurFragSource(kernelSize) {
|
|
57427
55044
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
57428
55045
|
let fragSource = fragTemplate, blurLoop = "";
|
|
57429
|
-
const
|
|
55046
|
+
const template = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
57430
55047
|
let value;
|
|
57431
55048
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57432
|
-
let blur =
|
|
55049
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57433
55050
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
57434
55051
|
`;
|
|
57435
55052
|
}
|
|
@@ -57468,10 +55085,10 @@ const vertTemplate = `
|
|
|
57468
55085
|
}`;
|
|
57469
55086
|
function generateBlurVertSource(kernelSize, x2) {
|
|
57470
55087
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
57471
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
57472
|
-
x2 ?
|
|
55088
|
+
let vertSource = vertTemplate, blurLoop = "", template;
|
|
55089
|
+
x2 ? template = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
57473
55090
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57474
|
-
let blur =
|
|
55091
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57475
55092
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
57476
55093
|
`;
|
|
57477
55094
|
}
|
|
@@ -61612,7 +59229,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61612
59229
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
61613
59230
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
61614
59231
|
if (rect) {
|
|
61615
|
-
let frame = null,
|
|
59232
|
+
let frame = null, trim = null;
|
|
61616
59233
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
61617
59234
|
0,
|
|
61618
59235
|
0,
|
|
@@ -61629,7 +59246,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61629
59246
|
Math.floor(rect.y) / this.resolution,
|
|
61630
59247
|
Math.floor(rect.w) / this.resolution,
|
|
61631
59248
|
Math.floor(rect.h) / this.resolution
|
|
61632
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
59249
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim = new Rectangle(
|
|
61633
59250
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
61634
59251
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
61635
59252
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -61638,7 +59255,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61638
59255
|
this.baseTexture,
|
|
61639
59256
|
frame,
|
|
61640
59257
|
orig,
|
|
61641
|
-
|
|
59258
|
+
trim,
|
|
61642
59259
|
data.rotated ? 2 : 0,
|
|
61643
59260
|
data.anchor,
|
|
61644
59261
|
data.borders
|
|
@@ -62435,15 +60052,13 @@ function useConf({
|
|
|
62435
60052
|
}) {
|
|
62436
60053
|
return useQuery({
|
|
62437
60054
|
queryKey: ["conf"],
|
|
62438
|
-
queryFn: async () => await odeServices.conf().getConf(appCode)
|
|
62439
|
-
suspense: true
|
|
60055
|
+
queryFn: async () => await odeServices.conf().getConf(appCode)
|
|
62440
60056
|
});
|
|
62441
60057
|
}
|
|
62442
60058
|
function useSession() {
|
|
62443
60059
|
return useQuery({
|
|
62444
60060
|
queryKey: ["session"],
|
|
62445
|
-
queryFn: async () => await odeServices.session().getSession()
|
|
62446
|
-
suspense: true
|
|
60061
|
+
queryFn: async () => await odeServices.session().getSession()
|
|
62447
60062
|
});
|
|
62448
60063
|
}
|
|
62449
60064
|
const OdeClientContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
@@ -62538,6 +60153,10 @@ function useBookmark() {
|
|
|
62538
60153
|
return set2.add(el2.displayName), !duplicate;
|
|
62539
60154
|
});
|
|
62540
60155
|
}
|
|
60156
|
+
const MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
60157
|
+
function useMockedData() {
|
|
60158
|
+
return reactExports.useContext(MockedDataContext);
|
|
60159
|
+
}
|
|
62541
60160
|
const isActionAvailable = (workflow, actions) => {
|
|
62542
60161
|
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
62543
60162
|
return found && found.length > 0;
|
|
@@ -62549,10 +60168,7 @@ const isActionAvailable = (workflow, actions) => {
|
|
|
62549
60168
|
timelinegenerator: "TimelineGenerator",
|
|
62550
60169
|
wiki: "Wiki",
|
|
62551
60170
|
exercizer: "Exercizer"
|
|
62552
|
-
}
|
|
62553
|
-
function useMockedData() {
|
|
62554
|
-
return reactExports.useContext(MockedDataContext);
|
|
62555
|
-
}
|
|
60171
|
+
};
|
|
62556
60172
|
function mergeRefs(...refs) {
|
|
62557
60173
|
return (val) => {
|
|
62558
60174
|
setRef(val, ...refs);
|
|
@@ -62648,6 +60264,55 @@ const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatE
|
|
|
62648
60264
|
dayjs.extend(relativeTime);
|
|
62649
60265
|
dayjs.extend(customParseFormat);
|
|
62650
60266
|
dayjs.extend(localizedFormat);
|
|
60267
|
+
function useDate() {
|
|
60268
|
+
const {
|
|
60269
|
+
currentLanguage
|
|
60270
|
+
} = useOdeClient(), parseDate = reactExports.useCallback((date, lang) => {
|
|
60271
|
+
if (date.length < 11)
|
|
60272
|
+
return dayjs(date, ["YYYY-MM-DD"], lang);
|
|
60273
|
+
if (date.split("").findIndex((char) => "0" > char || char > "9") < 0)
|
|
60274
|
+
return dayjs(Number.parseInt(date)).locale(currentLanguage);
|
|
60275
|
+
{
|
|
60276
|
+
let day = dayjs(date).locale(currentLanguage);
|
|
60277
|
+
return day.isValid() || (day = dayjs(date, ["YYYY-MM-DD HH:mm:ss.SSS"]).locale(currentLanguage)), day;
|
|
60278
|
+
}
|
|
60279
|
+
}, [currentLanguage]), fromNow = reactExports.useCallback((date) => {
|
|
60280
|
+
let computedDate = dayjs();
|
|
60281
|
+
try {
|
|
60282
|
+
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() : "");
|
|
60283
|
+
} catch {
|
|
60284
|
+
return "";
|
|
60285
|
+
}
|
|
60286
|
+
}, [currentLanguage, parseDate]), formatDate = reactExports.useCallback((date, format = "short") => {
|
|
60287
|
+
let computedDate = dayjs();
|
|
60288
|
+
try {
|
|
60289
|
+
if (typeof date > "u")
|
|
60290
|
+
return "";
|
|
60291
|
+
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));
|
|
60292
|
+
let dayjsFormat = "";
|
|
60293
|
+
switch (format) {
|
|
60294
|
+
case "short":
|
|
60295
|
+
dayjsFormat = "L";
|
|
60296
|
+
break;
|
|
60297
|
+
case "long":
|
|
60298
|
+
dayjsFormat = "LL";
|
|
60299
|
+
break;
|
|
60300
|
+
case "abbr":
|
|
60301
|
+
dayjsFormat = "ll";
|
|
60302
|
+
break;
|
|
60303
|
+
default:
|
|
60304
|
+
dayjsFormat = format;
|
|
60305
|
+
}
|
|
60306
|
+
return computedDate.isValid() ? computedDate.locale(currentLanguage).format(dayjsFormat) : "";
|
|
60307
|
+
} catch {
|
|
60308
|
+
return "";
|
|
60309
|
+
}
|
|
60310
|
+
}, [currentLanguage, parseDate]);
|
|
60311
|
+
return {
|
|
60312
|
+
fromNow,
|
|
60313
|
+
formatDate
|
|
60314
|
+
};
|
|
60315
|
+
}
|
|
62651
60316
|
const DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
|
62652
60317
|
function useClickOutside(handler, events2, nodes) {
|
|
62653
60318
|
const ref2 = reactExports.useRef();
|
|
@@ -62658,7 +60323,7 @@ function useClickOutside(handler, events2, nodes) {
|
|
|
62658
60323
|
} = event ?? {};
|
|
62659
60324
|
if (Array.isArray(nodes)) {
|
|
62660
60325
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
62661
|
-
nodes.every((
|
|
60326
|
+
nodes.every((node) => !!node && !event.composedPath().includes(node)) && !shouldIgnore && handler();
|
|
62662
60327
|
} else
|
|
62663
60328
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
62664
60329
|
};
|
|
@@ -62895,10 +60560,10 @@ function useHover() {
|
|
|
62895
60560
|
};
|
|
62896
60561
|
return reactExports.useEffect(
|
|
62897
60562
|
() => {
|
|
62898
|
-
const
|
|
62899
|
-
if (
|
|
62900
|
-
return
|
|
62901
|
-
|
|
60563
|
+
const node = ref2.current;
|
|
60564
|
+
if (node)
|
|
60565
|
+
return node.addEventListener("mouseover", handleMouseOver), node.addEventListener("mouseout", handleMouseOut), () => {
|
|
60566
|
+
node.removeEventListener("mouseover", handleMouseOver), node.removeEventListener("mouseout", handleMouseOut);
|
|
62902
60567
|
};
|
|
62903
60568
|
},
|
|
62904
60569
|
[ref2]
|
|
@@ -62944,12 +60609,12 @@ function useToggle(initialState2 = false) {
|
|
|
62944
60609
|
function useTrapFocus() {
|
|
62945
60610
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
62946
60611
|
return reactExports.useEffect(() => {
|
|
62947
|
-
const
|
|
60612
|
+
const node = ref2.current, firstFocusableElement = node.querySelectorAll(focusableElements)[0], focusableContent = node.querySelectorAll(focusableElements), lastFocusableElement = ref2 && (focusableContent == null ? void 0 : focusableContent[focusableContent.length - 1]), handleKeydown = (event) => {
|
|
62948
60613
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
62949
60614
|
};
|
|
62950
|
-
if (
|
|
62951
|
-
return
|
|
62952
|
-
|
|
60615
|
+
if (node)
|
|
60616
|
+
return node.addEventListener("keydown", handleKeydown), () => {
|
|
60617
|
+
node.removeEventListener("keydown", handleKeydown);
|
|
62953
60618
|
};
|
|
62954
60619
|
}, []), ref2;
|
|
62955
60620
|
}
|
|
@@ -63150,6 +60815,98 @@ function useXitiTrackPageLoad() {
|
|
|
63150
60815
|
xitiStatus
|
|
63151
60816
|
};
|
|
63152
60817
|
}
|
|
60818
|
+
function useZendeskGuide() {
|
|
60819
|
+
const sessionQuery = useSession(), {
|
|
60820
|
+
isAdml
|
|
60821
|
+
} = useIsAdml(), {
|
|
60822
|
+
theme
|
|
60823
|
+
} = 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 = () => {
|
|
60824
|
+
var _a2;
|
|
60825
|
+
const modulePathnameSplit = locationPathname.split("/");
|
|
60826
|
+
let moduleLabel = "", labels = "";
|
|
60827
|
+
if (dataModule != null && dataModule.labels && Object.keys(dataModule == null ? void 0 : dataModule.labels).length > 0 && modulePathnameSplit.length > 1) {
|
|
60828
|
+
for (let i2 = 1; i2 < modulePathnameSplit.length; i2++)
|
|
60829
|
+
modulePathnameSplit[i2].length > 0 && modulePathnameSplit[i2].match(/\d/) == null && (moduleLabel.length === 0 ? moduleLabel = modulePathnameSplit[i2] : moduleLabel = moduleLabel + "/" + modulePathnameSplit[i2]);
|
|
60830
|
+
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);
|
|
60831
|
+
} else
|
|
60832
|
+
dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60833
|
+
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}")) {
|
|
60834
|
+
const userProfile = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.userProfile[0]) || "";
|
|
60835
|
+
labels = labels.replace("${profile}", userProfile.toLowerCase());
|
|
60836
|
+
}
|
|
60837
|
+
labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
|
|
60838
|
+
labels: [labels]
|
|
60839
|
+
});
|
|
60840
|
+
};
|
|
60841
|
+
return reactExports.useEffect(() => {
|
|
60842
|
+
window.location.pathname !== locationPathname && setLocationPathname(window.location.pathname), !(dataModule === void 0 || Object.keys(dataModule).length === 0) && setZendeskGuideLabels();
|
|
60843
|
+
}, [window.location.pathname, dataModule]), reactExports.useEffect(() => {
|
|
60844
|
+
document.getElementById("ze-snippet") || hasSupportWorkflow === void 0 || (async () => {
|
|
60845
|
+
var _a2;
|
|
60846
|
+
const zendeskGuideConfig = await odeServices.http().get("/zendeskGuide/config");
|
|
60847
|
+
if (zendeskGuideConfig && zendeskGuideConfig.key && zendeskGuideConfig.key !== "") {
|
|
60848
|
+
const scriptZendesk = document.createElement("script");
|
|
60849
|
+
scriptZendesk.id = "ze-snippet", scriptZendesk.src = `https://static.zdassets.com/ekr/snippet.js?key=${zendeskGuideConfig.key}`;
|
|
60850
|
+
const currentLanguage = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
|
|
60851
|
+
document.body.appendChild(scriptZendesk).onload = () => {
|
|
60852
|
+
currentLanguage === "es" ? window.zE(function() {
|
|
60853
|
+
window.zE.setLocale("es-419");
|
|
60854
|
+
}) : window.zE(function() {
|
|
60855
|
+
window.zE.setLocale("fr");
|
|
60856
|
+
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
60857
|
+
webWidget: {
|
|
60858
|
+
color: {
|
|
60859
|
+
theme: zendeskGuideConfig.color || "#ffc400"
|
|
60860
|
+
},
|
|
60861
|
+
zIndex: 3,
|
|
60862
|
+
launcher: {
|
|
60863
|
+
mobile: {
|
|
60864
|
+
labelVisible: true
|
|
60865
|
+
}
|
|
60866
|
+
},
|
|
60867
|
+
contactForm: {
|
|
60868
|
+
suppress: !hasSupportWorkflow
|
|
60869
|
+
},
|
|
60870
|
+
helpCenter: {
|
|
60871
|
+
messageButton: {
|
|
60872
|
+
"*": "Assistance ENT",
|
|
60873
|
+
"es-419": "Asistencia ENT"
|
|
60874
|
+
}
|
|
60875
|
+
}
|
|
60876
|
+
}
|
|
60877
|
+
}), window.addEventListener("scroll", () => {
|
|
60878
|
+
window.zE("webWidget", "updateSettings", {
|
|
60879
|
+
webWidget: {
|
|
60880
|
+
launcher: {
|
|
60881
|
+
mobile: {
|
|
60882
|
+
labelVisible: window.scrollY <= 5
|
|
60883
|
+
}
|
|
60884
|
+
}
|
|
60885
|
+
}
|
|
60886
|
+
});
|
|
60887
|
+
}), window.zE("webWidget:on", "open", function() {
|
|
60888
|
+
hasSupportWorkflow && window.zE("webWidget", "updateSettings", {
|
|
60889
|
+
webWidget: {
|
|
60890
|
+
contactForm: {
|
|
60891
|
+
suppress: false
|
|
60892
|
+
}
|
|
60893
|
+
}
|
|
60894
|
+
});
|
|
60895
|
+
}), window.zE("webWidget:on", "userEvent", function(ref2) {
|
|
60896
|
+
const category = ref2.category, action = ref2.action, properties = ref2.properties;
|
|
60897
|
+
action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties && properties.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
|
|
60898
|
+
webWidget: {
|
|
60899
|
+
contactForm: {
|
|
60900
|
+
suppress: true
|
|
60901
|
+
}
|
|
60902
|
+
}
|
|
60903
|
+
}), window.zE("webWidget", "close"), window.open("/support", "_blank"));
|
|
60904
|
+
});
|
|
60905
|
+
};
|
|
60906
|
+
}
|
|
60907
|
+
})();
|
|
60908
|
+
}, [hasSupportWorkflow]), null;
|
|
60909
|
+
}
|
|
63153
60910
|
const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
63154
60911
|
src,
|
|
63155
60912
|
alt,
|
|
@@ -63965,8 +61722,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
63965
61722
|
}
|
|
63966
61723
|
});
|
|
63967
61724
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
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: (
|
|
63969
|
-
modalRef.current =
|
|
61725
|
+
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: (node) => {
|
|
61726
|
+
modalRef.current = node, isOpen2 && (trapRef.current = node);
|
|
63970
61727
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
63971
61728
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
63972
61729
|
opacity: 0.65
|
|
@@ -64118,7 +61875,7 @@ const TreeItem = (props) => {
|
|
|
64118
61875
|
reactExports.useEffect(() => {
|
|
64119
61876
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
64120
61877
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
64121
|
-
selectedNodesIds.some((
|
|
61878
|
+
selectedNodesIds.some((node) => node === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node === nodeId) : (setExpanded(false), false));
|
|
64122
61879
|
} else
|
|
64123
61880
|
setExpanded(false);
|
|
64124
61881
|
}, [nodeId, selectedNodesIds]);
|
|
@@ -64167,30 +61924,30 @@ const TreeItem = (props) => {
|
|
|
64167
61924
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
64168
61925
|
}, handleItemBlur = (nodeId) => {
|
|
64169
61926
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
64170
|
-
}, renderTree = (
|
|
61927
|
+
}, renderTree = (node) => /* @__PURE__ */ jsxRuntimeExports.jsx(TreeItem$1, { nodeId: node.id, label: node.name, section: node.section, selectedNodesIds, selected: selectedItem === node.id, onItemSelect: handlers.select, onItemFold: handleItemFold, onItemUnfold: handleItemUnfold, onItemFocus: handleItemFocus, onItemBlur: handleItemBlur, children: Array.isArray(node.children) ? node.children.map((item) => renderTree(item)) : null }, node.id);
|
|
64171
61928
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
64172
61929
|
}), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
|
|
64173
61930
|
children
|
|
64174
61931
|
}, ref2) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "visually-hidden", ref: ref2, children })), VisuallyHidden$1 = VisuallyHidden, getOnboardingTrash = async (key) => await odeServices.conf().getPreference(key), saveOnboardingTrash = async (key) => await odeServices.conf().savePreference(key, JSON.stringify({
|
|
64175
|
-
|
|
61932
|
+
key: false
|
|
64176
61933
|
})), useOnboardingModal = (id2) => {
|
|
64177
|
-
const [isOpen, setIsOpen] = reactExports.useState(true), [
|
|
61934
|
+
const [isOpen, setIsOpen] = reactExports.useState(true), [isOnboarding, setIsOnboarding] = reactExports.useState(false);
|
|
64178
61935
|
return reactExports.useEffect(() => {
|
|
64179
61936
|
(async () => {
|
|
64180
61937
|
const response = await getOnboardingTrash(id2);
|
|
64181
61938
|
if (response) {
|
|
64182
61939
|
const {
|
|
64183
|
-
|
|
61940
|
+
key
|
|
64184
61941
|
} = response;
|
|
64185
|
-
|
|
61942
|
+
setIsOnboarding(key);
|
|
64186
61943
|
return;
|
|
64187
61944
|
}
|
|
64188
|
-
|
|
61945
|
+
setIsOnboarding(true);
|
|
64189
61946
|
})();
|
|
64190
61947
|
}, [id2]), {
|
|
64191
61948
|
isOpen,
|
|
64192
61949
|
setIsOpen,
|
|
64193
|
-
|
|
61950
|
+
isOnboarding,
|
|
64194
61951
|
handleSavePreference: async () => {
|
|
64195
61952
|
await saveOnboardingTrash(id2), setIsOpen(false);
|
|
64196
61953
|
}
|
|
@@ -64202,7 +61959,7 @@ const TreeItem = (props) => {
|
|
|
64202
61959
|
}) => {
|
|
64203
61960
|
const [imagePath] = usePaths(), [swiperInstance, setSwiperInstance] = reactExports.useState(), [swiperProgress, setSwiperprogress] = reactExports.useState(0), {
|
|
64204
61961
|
isOpen,
|
|
64205
|
-
|
|
61962
|
+
isOnboarding,
|
|
64206
61963
|
setIsOpen,
|
|
64207
61964
|
handleSavePreference
|
|
64208
61965
|
} = useOnboardingModal(id2);
|
|
@@ -64220,7 +61977,7 @@ const TreeItem = (props) => {
|
|
|
64220
61977
|
closeText,
|
|
64221
61978
|
nextText
|
|
64222
61979
|
} = modalOptions;
|
|
64223
|
-
return
|
|
61980
|
+
return isOnboarding ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), children: [
|
|
64224
61981
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: () => setIsOpen(false), children: t2(title || "explorer.modal.onboarding.trash.title") }),
|
|
64225
61982
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Swiper2, { modules: [Pagination], onSwiper: (swiper) => {
|
|
64226
61983
|
setSwiperInstance(swiper);
|
|
@@ -65328,17 +63085,17 @@ const stripAccents = (input) => {
|
|
|
65328
63085
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
65329
63086
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
65330
63087
|
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"), "");
|
|
65331
|
-
}, slugify = (
|
|
65332
|
-
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !
|
|
63088
|
+
}, slugify = (node, options = { delimiter: "-", prefix: "" }) => {
|
|
63089
|
+
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node || typeof node == "boolean")
|
|
65333
63090
|
return "";
|
|
65334
63091
|
const { delimiter, prefix: prefix2 } = options;
|
|
65335
|
-
if (typeof
|
|
63092
|
+
if (typeof node == "boolean")
|
|
65336
63093
|
return "";
|
|
65337
|
-
if (typeof
|
|
65338
|
-
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(
|
|
63094
|
+
if (typeof node == "string" || typeof node == "number") {
|
|
63095
|
+
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node), delimiter);
|
|
65339
63096
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
65340
63097
|
}
|
|
65341
|
-
return "children" in
|
|
63098
|
+
return "children" in node ? slugify(node.children) : "type" in node ? slugify(node.props.children, options) : Symbol.iterator in node ? slugify(Array.from(node).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
|
|
65342
63099
|
};
|
|
65343
63100
|
var _default = slugify$1.default = slugify;
|
|
65344
63101
|
const useSlug = ({
|
|
@@ -66080,101 +63837,7 @@ const WidgetAppsFooter = () => {
|
|
|
66080
63837
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
66081
63838
|
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))
|
|
66082
63839
|
] });
|
|
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 = () => {
|
|
63840
|
+
}, SearchEngine = () => {
|
|
66178
63841
|
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
66179
63842
|
t: t2
|
|
66180
63843
|
} = useTranslation();
|
|
@@ -66208,15 +63871,8 @@ const SearchEngine = () => {
|
|
|
66208
63871
|
user,
|
|
66209
63872
|
avatar
|
|
66210
63873
|
} = useUser(), {
|
|
66211
|
-
currentLanguage,
|
|
66212
63874
|
currentApp
|
|
66213
|
-
} = useOdeClient(), {
|
|
66214
|
-
isModalOpen: isHelpOpen,
|
|
66215
|
-
setIsModalOpen: setIsHelpOpen,
|
|
66216
|
-
parsedContent,
|
|
66217
|
-
parsedHeadline,
|
|
66218
|
-
error
|
|
66219
|
-
} = useHelp(), classes2 = clsx("header", {
|
|
63875
|
+
} = useOdeClient(), classes2 = clsx("header", {
|
|
66220
63876
|
"no-2d": is1d,
|
|
66221
63877
|
"no-1d": !is1d
|
|
66222
63878
|
}), {
|
|
@@ -66252,15 +63908,6 @@ const SearchEngine = () => {
|
|
|
66252
63908
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
66253
63909
|
] }) }),
|
|
66254
63910
|
/* @__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,
|
|
66264
63911
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
66265
63912
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
66266
63913
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -66305,15 +63952,6 @@ const SearchEngine = () => {
|
|
|
66305
63952
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
66306
63953
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
|
|
66307
63954
|
] }) }),
|
|
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,
|
|
66317
63955
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
66318
63956
|
/* @__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" }) }),
|
|
66319
63957
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -66348,7 +63986,9 @@ const SearchEngine = () => {
|
|
|
66348
63986
|
showCookiesConsent,
|
|
66349
63987
|
handleConsultCookies,
|
|
66350
63988
|
handleCloseCookiesConsent
|
|
66351
|
-
} = useCookiesConsent()
|
|
63989
|
+
} = useCookiesConsent();
|
|
63990
|
+
useZendeskGuide();
|
|
63991
|
+
const classes2 = clsx("d-flex flex-column bg-white", {
|
|
66352
63992
|
"container-fluid": !headless,
|
|
66353
63993
|
"rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
|
|
66354
63994
|
"mt-24": (theme == null ? void 0 : theme.is1d) && !headless
|
|
@@ -66587,7 +64227,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
|
|
|
66587
64227
|
var withSelectorExports = withSelector.exports;
|
|
66588
64228
|
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
|
|
66589
64229
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
66590
|
-
const { useDebugValue } = React
|
|
64230
|
+
const { useDebugValue } = React;
|
|
66591
64231
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
66592
64232
|
let didWarnAboutEqualityFn = false;
|
|
66593
64233
|
const identity = (arg) => arg;
|
|
@@ -66834,11 +64474,11 @@ class TreeNodeFolderWrapper {
|
|
|
66834
64474
|
}
|
|
66835
64475
|
}
|
|
66836
64476
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
66837
|
-
return modifyNode(treeNode, (
|
|
66838
|
-
if (
|
|
66839
|
-
|
|
64477
|
+
return modifyNode(treeNode, (node) => {
|
|
64478
|
+
if (node.id === parentId) {
|
|
64479
|
+
node.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
66840
64480
|
}
|
|
66841
|
-
return
|
|
64481
|
+
return node;
|
|
66842
64482
|
});
|
|
66843
64483
|
};
|
|
66844
64484
|
const initialState = {
|
|
@@ -67182,7 +64822,7 @@ const useSearchForm = () => {
|
|
|
67182
64822
|
function ExplorerBreadcrumb() {
|
|
67183
64823
|
const { appCode } = useOdeClient();
|
|
67184
64824
|
const { gotoPreviousFolder } = useStoreActions();
|
|
67185
|
-
const { t: t2 } = useTranslation();
|
|
64825
|
+
const { t: t2 } = useTranslation(["common", appCode]);
|
|
67186
64826
|
const { inputSearch } = useSearchForm();
|
|
67187
64827
|
const selectedNodesIds = useSelectedNodesIds();
|
|
67188
64828
|
const isTrashFolder = useIsTrash();
|
|
@@ -67235,45 +64875,45 @@ const useTrashModal = () => {
|
|
|
67235
64875
|
};
|
|
67236
64876
|
};
|
|
67237
64877
|
function addNode(treeData, { parentId, newFolder }) {
|
|
67238
|
-
return modifyNode(treeData, (
|
|
64878
|
+
return modifyNode(treeData, (node) => {
|
|
67239
64879
|
var _a2;
|
|
67240
|
-
if (
|
|
64880
|
+
if (node.id === parentId) {
|
|
67241
64881
|
const parentAncestors = [
|
|
67242
|
-
...((_a2 =
|
|
64882
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67243
64883
|
];
|
|
67244
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
64884
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
67245
64885
|
const newNode = {
|
|
67246
|
-
...
|
|
64886
|
+
...node,
|
|
67247
64887
|
children: [
|
|
67248
|
-
...
|
|
64888
|
+
...node.children || [],
|
|
67249
64889
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
67250
64890
|
]
|
|
67251
64891
|
};
|
|
67252
64892
|
return newNode;
|
|
67253
64893
|
} else {
|
|
67254
|
-
return
|
|
64894
|
+
return node;
|
|
67255
64895
|
}
|
|
67256
64896
|
});
|
|
67257
64897
|
}
|
|
67258
64898
|
function deleteNode(treeData, { folders }) {
|
|
67259
|
-
return modifyNode(treeData, (
|
|
67260
|
-
if (folders.includes(
|
|
64899
|
+
return modifyNode(treeData, (node) => {
|
|
64900
|
+
if (folders.includes(node.id)) {
|
|
67261
64901
|
return void 0;
|
|
67262
64902
|
} else {
|
|
67263
|
-
return
|
|
64903
|
+
return node;
|
|
67264
64904
|
}
|
|
67265
64905
|
});
|
|
67266
64906
|
}
|
|
67267
64907
|
function moveNode(treeData, { destinationId, folders }) {
|
|
67268
|
-
return modifyNode(treeData, (
|
|
64908
|
+
return modifyNode(treeData, (node, parent) => {
|
|
67269
64909
|
var _a2, _b2;
|
|
67270
|
-
if (destinationId ===
|
|
64910
|
+
if (destinationId === node.id) {
|
|
67271
64911
|
const parentAncestors = [
|
|
67272
|
-
...((_a2 =
|
|
64912
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67273
64913
|
];
|
|
67274
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
67275
|
-
const newChildren = [...
|
|
67276
|
-
const childrenIds = ((_b2 =
|
|
64914
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
64915
|
+
const newChildren = [...node.children || []];
|
|
64916
|
+
const childrenIds = ((_b2 = node.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
|
|
67277
64917
|
for (const folder of folders) {
|
|
67278
64918
|
if (!childrenIds.includes(folder)) {
|
|
67279
64919
|
const item = findNodeById(folder, treeData);
|
|
@@ -67287,23 +64927,23 @@ function moveNode(treeData, { destinationId, folders }) {
|
|
|
67287
64927
|
}
|
|
67288
64928
|
}
|
|
67289
64929
|
const newNode = {
|
|
67290
|
-
...
|
|
64930
|
+
...node,
|
|
67291
64931
|
children: newChildren
|
|
67292
64932
|
};
|
|
67293
64933
|
return newNode;
|
|
67294
|
-
} else if (folders.includes(
|
|
64934
|
+
} else if (folders.includes(node.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
67295
64935
|
return void 0;
|
|
67296
64936
|
} else {
|
|
67297
|
-
return
|
|
64937
|
+
return node;
|
|
67298
64938
|
}
|
|
67299
64939
|
});
|
|
67300
64940
|
}
|
|
67301
64941
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
67302
|
-
return modifyNode(treeData, (
|
|
67303
|
-
if (
|
|
64942
|
+
return modifyNode(treeData, (node) => {
|
|
64943
|
+
if (node.id === folderId) {
|
|
67304
64944
|
return new TreeNodeFolderWrapper(newFolder);
|
|
67305
64945
|
} else {
|
|
67306
|
-
return
|
|
64946
|
+
return node;
|
|
67307
64947
|
}
|
|
67308
64948
|
});
|
|
67309
64949
|
}
|
|
@@ -67638,7 +65278,7 @@ const useCopyResource = () => {
|
|
|
67638
65278
|
}
|
|
67639
65279
|
);
|
|
67640
65280
|
}
|
|
67641
|
-
if (currentFolder.id && currentFolder.id !==
|
|
65281
|
+
if (currentFolder.id && currentFolder.id !== FOLDER.DEFAULT) {
|
|
67642
65282
|
moveToFolder({
|
|
67643
65283
|
searchParams,
|
|
67644
65284
|
resourceIds: [data.duplicateId],
|
|
@@ -68020,10 +65660,9 @@ const useCreateResource = () => {
|
|
|
68020
65660
|
var _a2, _b2, _c2;
|
|
68021
65661
|
await queryClient2.cancelQueries({ queryKey });
|
|
68022
65662
|
const previousData = queryClient2.getQueryData(queryKey);
|
|
68023
|
-
const { thumbnail } = variables;
|
|
68024
65663
|
const newResource = {
|
|
68025
65664
|
...variables,
|
|
68026
|
-
thumbnail:
|
|
65665
|
+
thumbnail: data.thumbnail || "",
|
|
68027
65666
|
application,
|
|
68028
65667
|
assetId: data._id || data.entId || "",
|
|
68029
65668
|
id: data._id || data.entId || "",
|
|
@@ -68087,7 +65726,7 @@ const List = () => {
|
|
|
68087
65726
|
const treeData = useTreeData();
|
|
68088
65727
|
const toast = useToast();
|
|
68089
65728
|
const { appCode } = useOdeClient();
|
|
68090
|
-
const { t: t2 } = useTranslation();
|
|
65729
|
+
const { t: t2 } = useTranslation([appCode]);
|
|
68091
65730
|
const { setSearchParams, setSearchConfig, setTreeData } = useStoreActions();
|
|
68092
65731
|
const { data, isError: isError2, error, isLoading, isFetching, fetchNextPage } = useSearchContext();
|
|
68093
65732
|
const hasNoFolders = (data == null ? void 0 : data.pages[0].folders.length) === 0;
|
|
@@ -68222,7 +65861,7 @@ const SearchForm = () => {
|
|
|
68222
65861
|
"form",
|
|
68223
65862
|
{
|
|
68224
65863
|
noValidate: true,
|
|
68225
|
-
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative
|
|
65864
|
+
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8",
|
|
68226
65865
|
ref: formRef,
|
|
68227
65866
|
children: [
|
|
68228
65867
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "search", className: "input-group", children: [
|
|
@@ -68330,7 +65969,10 @@ const TreeViewContainer = () => {
|
|
|
68330
65969
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68331
65970
|
TreeView$1,
|
|
68332
65971
|
{
|
|
68333
|
-
data:
|
|
65972
|
+
data: {
|
|
65973
|
+
...treeData,
|
|
65974
|
+
name: t2("explorer.filters.mine", { ns: appCode })
|
|
65975
|
+
},
|
|
68334
65976
|
selectedNodesIds,
|
|
68335
65977
|
onTreeItemSelect: selectTreeItem,
|
|
68336
65978
|
onTreeItemFold: foldTreeItem,
|
|
@@ -68748,7 +66390,7 @@ const ResourceCard = ({
|
|
|
68748
66390
|
Image$2,
|
|
68749
66391
|
{
|
|
68750
66392
|
alt: "",
|
|
68751
|
-
src: resource == null ? void 0 : resource.thumbnail
|
|
66393
|
+
src: `${resource == null ? void 0 : resource.thumbnail}?thumbnail=80x80`,
|
|
68752
66394
|
objectFit: "cover",
|
|
68753
66395
|
className: "h-full w-100"
|
|
68754
66396
|
}
|
|
@@ -68805,13 +66447,13 @@ const ResourceCard = ({
|
|
|
68805
66447
|
);
|
|
68806
66448
|
};
|
|
68807
66449
|
ResourceCard.displayName = "ResourceCard";
|
|
68808
|
-
dayjs.extend(relativeTime);
|
|
68809
66450
|
const ResourcesList = ({
|
|
68810
66451
|
data,
|
|
68811
66452
|
fetchNextPage
|
|
68812
66453
|
}) => {
|
|
68813
|
-
const { currentApp
|
|
66454
|
+
const { currentApp } = useOdeClient();
|
|
68814
66455
|
const { t: t2 } = useTranslation();
|
|
66456
|
+
const { fromNow } = useDate();
|
|
68815
66457
|
const searchParams = useSearchParams();
|
|
68816
66458
|
const resourceIds = useResourceIds();
|
|
68817
66459
|
const selectedResources = useSelectedResources();
|
|
@@ -68858,12 +66500,12 @@ const ResourcesList = ({
|
|
|
68858
66500
|
setSelectedResources([...selectedResources, resource]);
|
|
68859
66501
|
}
|
|
68860
66502
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
68861
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React
|
|
66503
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
68862
66504
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
68863
66505
|
// eslint-disable-next-line react/no-array-index-key
|
|
68864
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React
|
|
66506
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
68865
66507
|
const { id: id2, updatedAt } = resource;
|
|
68866
|
-
const time =
|
|
66508
|
+
const time = fromNow(updatedAt);
|
|
68867
66509
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68868
66510
|
animated.li,
|
|
68869
66511
|
{
|
|
@@ -69005,6 +66647,7 @@ function FolderModal$1({
|
|
|
69005
66647
|
type: "text",
|
|
69006
66648
|
...register("name", {
|
|
69007
66649
|
required: true,
|
|
66650
|
+
maxLength: 60,
|
|
69008
66651
|
pattern: {
|
|
69009
66652
|
value: /[^ ]/,
|
|
69010
66653
|
message: "invalid title"
|
|
@@ -69012,7 +66655,8 @@ function FolderModal$1({
|
|
|
69012
66655
|
}),
|
|
69013
66656
|
placeholder: t2("explorer.create.folder.name"),
|
|
69014
66657
|
size: "md",
|
|
69015
|
-
"aria-required": true
|
|
66658
|
+
"aria-required": true,
|
|
66659
|
+
maxLength: 60
|
|
69016
66660
|
}
|
|
69017
66661
|
)
|
|
69018
66662
|
] }) }) }),
|
|
@@ -69134,7 +66778,7 @@ const Library = () => {
|
|
|
69134
66778
|
href: libraryUrl,
|
|
69135
66779
|
target: "_blank",
|
|
69136
66780
|
rel: "noreferrer",
|
|
69137
|
-
className: "d-inline-flex gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
|
|
66781
|
+
className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
|
|
69138
66782
|
children: [
|
|
69139
66783
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t2("explorer.libray.btn") }),
|
|
69140
66784
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgArrowRight$1, {})
|
|
@@ -69276,14 +66920,10 @@ function useActionBar() {
|
|
|
69276
66920
|
case ACTION.UPD_PROPS:
|
|
69277
66921
|
case "edit":
|
|
69278
66922
|
return onEdit();
|
|
69279
|
-
case "export":
|
|
69280
|
-
if (resourceIds.length > 0) {
|
|
69281
|
-
return onExport();
|
|
69282
|
-
} else {
|
|
69283
|
-
return null;
|
|
69284
|
-
}
|
|
69285
66923
|
case ACTION.SHARE:
|
|
69286
66924
|
return setOpenedModalName("share");
|
|
66925
|
+
case ACTION.EXPORT:
|
|
66926
|
+
return setOpenedModalName("export");
|
|
69287
66927
|
default:
|
|
69288
66928
|
throw Error(`Unknown action: ${action.id}`);
|
|
69289
66929
|
}
|
|
@@ -69355,6 +66995,8 @@ function useActionBar() {
|
|
|
69355
66995
|
const onEditResourceCancel = onFinish("edit_resource");
|
|
69356
66996
|
const onShareResourceSuccess = onFinish("share");
|
|
69357
66997
|
const onShareResourceCancel = onFinish("share");
|
|
66998
|
+
const onExportCancel = onFinish("export");
|
|
66999
|
+
const onExportSuccess = onFinish("export");
|
|
69358
67000
|
async function onCopy() {
|
|
69359
67001
|
if (selectedResources && selectedResources.length > 0) {
|
|
69360
67002
|
const selectedResource = selectedResources[0];
|
|
@@ -69371,12 +67013,6 @@ function useActionBar() {
|
|
|
69371
67013
|
setOpenedModalName("edit_folder");
|
|
69372
67014
|
}
|
|
69373
67015
|
}
|
|
69374
|
-
function onExport() {
|
|
69375
|
-
if (resourceIds && resourceIds.length > 0) {
|
|
69376
|
-
const selectedResource = selectedResources[0].assetId;
|
|
69377
|
-
goToExport({ searchParams, assetId: selectedResource });
|
|
69378
|
-
}
|
|
69379
|
-
}
|
|
69380
67016
|
function overrideLabel(action) {
|
|
69381
67017
|
if (action.id === "edit" && folderIds.length > 0) {
|
|
69382
67018
|
return "explorer.rename";
|
|
@@ -69410,6 +67046,9 @@ function useActionBar() {
|
|
|
69410
67046
|
isShareResourceOpen: openedModalName === "share",
|
|
69411
67047
|
onShareResourceCancel,
|
|
69412
67048
|
onShareResourceSuccess,
|
|
67049
|
+
isExportModalOpen: openedModalName === "export",
|
|
67050
|
+
onExportCancel,
|
|
67051
|
+
onExportSuccess,
|
|
69413
67052
|
onClearActionBar
|
|
69414
67053
|
};
|
|
69415
67054
|
}
|
|
@@ -69459,6 +67098,7 @@ const UpdateModal = reactExports.lazy(
|
|
|
69459
67098
|
const DeleteModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => DeleteModal$1), true ? void 0 : void 0));
|
|
69460
67099
|
const MoveModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => MoveModal$1), true ? void 0 : void 0));
|
|
69461
67100
|
const FolderModal = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => FolderModal$2), true ? void 0 : void 0));
|
|
67101
|
+
const ExportModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => ExportModal$1), true ? void 0 : void 0));
|
|
69462
67102
|
function ActionBarContainer() {
|
|
69463
67103
|
const { appCode } = useOdeClient();
|
|
69464
67104
|
const { t: t2 } = useTranslation();
|
|
@@ -69479,6 +67119,9 @@ function ActionBarContainer() {
|
|
|
69479
67119
|
isShareResourceOpen,
|
|
69480
67120
|
onShareResourceCancel,
|
|
69481
67121
|
onShareResourceSuccess,
|
|
67122
|
+
isExportModalOpen,
|
|
67123
|
+
onExportCancel,
|
|
67124
|
+
onExportSuccess,
|
|
69482
67125
|
onMoveCancel,
|
|
69483
67126
|
onMoveSuccess,
|
|
69484
67127
|
onDeleteCancel,
|
|
@@ -69502,8 +67145,8 @@ function ActionBarContainer() {
|
|
|
69502
67145
|
return isActionBarOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69503
67146
|
animated.div,
|
|
69504
67147
|
{
|
|
69505
|
-
className: "position-fixed bottom-0 start-0 end-0
|
|
69506
|
-
style,
|
|
67148
|
+
className: "position-fixed bottom-0 start-0 end-0",
|
|
67149
|
+
style: { ...style, zIndex: 4 },
|
|
69507
67150
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionBar$1$1, { children: actions == null ? void 0 : actions.filter(
|
|
69508
67151
|
(action) => action.available && action.target === "actionbar"
|
|
69509
67152
|
).map((action) => {
|
|
@@ -69607,6 +67250,14 @@ function ActionBarContainer() {
|
|
|
69607
67250
|
}
|
|
69608
67251
|
) : null
|
|
69609
67252
|
}
|
|
67253
|
+
),
|
|
67254
|
+
isExportModalOpen && selectedResource && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67255
|
+
ExportModal$2,
|
|
67256
|
+
{
|
|
67257
|
+
isOpen: isExportModalOpen,
|
|
67258
|
+
onCancel: onExportCancel,
|
|
67259
|
+
onSuccess: onExportSuccess
|
|
67260
|
+
}
|
|
69610
67261
|
)
|
|
69611
67262
|
] })
|
|
69612
67263
|
] });
|
|
@@ -69860,6 +67511,69 @@ const MoveModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
69860
67511
|
__proto__: null,
|
|
69861
67512
|
default: MoveModal
|
|
69862
67513
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
67514
|
+
const useExportModal = (onSuccess) => {
|
|
67515
|
+
const selectedResources = useSelectedResources();
|
|
67516
|
+
const searchParams = useSearchParams();
|
|
67517
|
+
const toast = useToast();
|
|
67518
|
+
const { t: t2 } = useTranslation();
|
|
67519
|
+
const handleExportClick = () => {
|
|
67520
|
+
if (selectedResources.length) {
|
|
67521
|
+
goToExport({ searchParams, assetId: selectedResources[0].assetId });
|
|
67522
|
+
onSuccess();
|
|
67523
|
+
} else {
|
|
67524
|
+
toast.error(t2("explorer.error.noResourceSelected"));
|
|
67525
|
+
}
|
|
67526
|
+
};
|
|
67527
|
+
return { handleExportClick };
|
|
67528
|
+
};
|
|
67529
|
+
function ExportModal({
|
|
67530
|
+
isOpen,
|
|
67531
|
+
onSuccess,
|
|
67532
|
+
onCancel
|
|
67533
|
+
}) {
|
|
67534
|
+
const { handleExportClick } = useExportModal(onSuccess);
|
|
67535
|
+
const { t: t2 } = useTranslation();
|
|
67536
|
+
return reactDomExports.createPortal(
|
|
67537
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "exportModal", children: [
|
|
67538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2("explorer.export.title") }),
|
|
67539
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
|
|
67540
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
|
|
67541
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.1") }),
|
|
67542
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.2") }),
|
|
67543
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.3") })
|
|
67544
|
+
] }),
|
|
67545
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "warning", children: t2("explorer.export.body.warning") })
|
|
67546
|
+
] }),
|
|
67547
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Footer, { children: [
|
|
67548
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67549
|
+
Button$1,
|
|
67550
|
+
{
|
|
67551
|
+
color: "tertiary",
|
|
67552
|
+
onClick: onCancel,
|
|
67553
|
+
type: "button",
|
|
67554
|
+
variant: "ghost",
|
|
67555
|
+
children: t2("explorer.cancel")
|
|
67556
|
+
}
|
|
67557
|
+
),
|
|
67558
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67559
|
+
Button$1,
|
|
67560
|
+
{
|
|
67561
|
+
color: "primary",
|
|
67562
|
+
onClick: handleExportClick,
|
|
67563
|
+
type: "button",
|
|
67564
|
+
variant: "filled",
|
|
67565
|
+
children: t2("explorer.actions.export")
|
|
67566
|
+
}
|
|
67567
|
+
)
|
|
67568
|
+
] })
|
|
67569
|
+
] }),
|
|
67570
|
+
document.getElementById("portal")
|
|
67571
|
+
);
|
|
67572
|
+
}
|
|
67573
|
+
const ExportModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67574
|
+
__proto__: null,
|
|
67575
|
+
default: ExportModal
|
|
67576
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
69863
67577
|
function __vite__mapDeps(indexes) {
|
|
69864
67578
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
69865
67579
|
__vite__mapDeps.viteFileDeps = []
|