@symbo.ls/create 2.11.204 → 2.11.209
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/cjs/bundle/index.js +828 -292
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/initEmotion.js +9 -6
- package/dist/cjs/options.js +13 -14
- package/package.json +3 -3
- package/src/index.js +1 -1
- package/src/initEmotion.js +11 -6
- package/src/options.js +13 -14
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -451,7 +451,7 @@ var require_object = __commonJS({
|
|
|
451
451
|
var object_exports = {};
|
|
452
452
|
__export2(object_exports, {
|
|
453
453
|
clone: () => clone,
|
|
454
|
-
deepClone: () =>
|
|
454
|
+
deepClone: () => deepClone4,
|
|
455
455
|
deepCloneExclude: () => deepCloneExclude,
|
|
456
456
|
deepDestringify: () => deepDestringify,
|
|
457
457
|
deepMerge: () => deepMerge4,
|
|
@@ -557,7 +557,7 @@ var require_object = __commonJS({
|
|
|
557
557
|
var mergeArrayExclude = (arr, excl = []) => {
|
|
558
558
|
return arr.reduce((acc, curr) => deepMerge4(acc, deepCloneExclude(curr, excl)), {});
|
|
559
559
|
};
|
|
560
|
-
var
|
|
560
|
+
var deepClone4 = (obj, excludeFrom = []) => {
|
|
561
561
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
562
562
|
for (const prop in obj) {
|
|
563
563
|
if (prop === "__proto__")
|
|
@@ -569,7 +569,7 @@ var require_object = __commonJS({
|
|
|
569
569
|
objProp = (0, import_array.mergeArray)(objProp);
|
|
570
570
|
}
|
|
571
571
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
572
|
-
o[prop] =
|
|
572
|
+
o[prop] = deepClone4(objProp, excludeFrom);
|
|
573
573
|
} else
|
|
574
574
|
o[prop] = objProp;
|
|
575
575
|
}
|
|
@@ -1331,11 +1331,11 @@ var require_tree = __commonJS({
|
|
|
1331
1331
|
TREE: () => TREE
|
|
1332
1332
|
});
|
|
1333
1333
|
module2.exports = __toCommonJS2(tree_exports);
|
|
1334
|
-
var
|
|
1334
|
+
var import_utils21 = require_cjs();
|
|
1335
1335
|
var import_report = require_cjs2();
|
|
1336
1336
|
var ROOT = {
|
|
1337
1337
|
key: ":root",
|
|
1338
|
-
node:
|
|
1338
|
+
node: import_utils21.document ? import_utils21.document.body : (0, import_report.report)("DocumentNotDefined", import_utils21.document)
|
|
1339
1339
|
};
|
|
1340
1340
|
var TREE = ROOT;
|
|
1341
1341
|
}
|
|
@@ -1371,12 +1371,12 @@ var require_on = __commonJS({
|
|
|
1371
1371
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
1372
1372
|
});
|
|
1373
1373
|
module2.exports = __toCommonJS2(on_exports);
|
|
1374
|
-
var
|
|
1374
|
+
var import_utils21 = require_cjs();
|
|
1375
1375
|
var applyEvent = (param, element, state, context, options) => {
|
|
1376
1376
|
return param(element, state || element.state, context || element.context, options);
|
|
1377
1377
|
};
|
|
1378
1378
|
var triggerEventOn = (param, element, options) => {
|
|
1379
|
-
if (element.on && (0,
|
|
1379
|
+
if (element.on && (0, import_utils21.isFunction)(element.on[param])) {
|
|
1380
1380
|
const { state, context } = element;
|
|
1381
1381
|
return applyEvent(element.on[param], element, state, context, options);
|
|
1382
1382
|
}
|
|
@@ -1385,7 +1385,7 @@ var require_on = __commonJS({
|
|
|
1385
1385
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
1386
1386
|
};
|
|
1387
1387
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
1388
|
-
if (element.on && (0,
|
|
1388
|
+
if (element.on && (0, import_utils21.isFunction)(element.on[param])) {
|
|
1389
1389
|
const { state, context } = element;
|
|
1390
1390
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
1391
1391
|
}
|
|
@@ -1396,7 +1396,7 @@ var require_on = __commonJS({
|
|
|
1396
1396
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
1397
1397
|
continue;
|
|
1398
1398
|
const appliedFunction = element.on[param];
|
|
1399
|
-
if ((0,
|
|
1399
|
+
if ((0, import_utils21.isFunction)(appliedFunction)) {
|
|
1400
1400
|
const { state, context } = element;
|
|
1401
1401
|
node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
|
|
1402
1402
|
}
|
|
@@ -1432,10 +1432,10 @@ var require_can = __commonJS({
|
|
|
1432
1432
|
});
|
|
1433
1433
|
module2.exports = __toCommonJS2(can_exports);
|
|
1434
1434
|
var import_report = require_cjs2();
|
|
1435
|
-
var
|
|
1435
|
+
var import_utils21 = require_cjs();
|
|
1436
1436
|
var canRender = (element) => {
|
|
1437
1437
|
const tag = element.tag || "div";
|
|
1438
|
-
return (0,
|
|
1438
|
+
return (0, import_utils21.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
1439
1439
|
};
|
|
1440
1440
|
}
|
|
1441
1441
|
});
|
|
@@ -1526,7 +1526,7 @@ var require_cache = __commonJS({
|
|
|
1526
1526
|
module2.exports = __toCommonJS2(cache_exports);
|
|
1527
1527
|
var import_report = require_cjs2();
|
|
1528
1528
|
var import_event = require_cjs3();
|
|
1529
|
-
var
|
|
1529
|
+
var import_utils21 = require_cjs();
|
|
1530
1530
|
var cache2 = {};
|
|
1531
1531
|
var createHTMLNode = (element) => {
|
|
1532
1532
|
const { tag } = element;
|
|
@@ -1545,15 +1545,15 @@ var require_cache = __commonJS({
|
|
|
1545
1545
|
};
|
|
1546
1546
|
var detectTag = (element) => {
|
|
1547
1547
|
let { tag, key } = element;
|
|
1548
|
-
tag = (0,
|
|
1548
|
+
tag = (0, import_utils21.exec)(tag, element);
|
|
1549
1549
|
if (tag === true)
|
|
1550
1550
|
tag = key;
|
|
1551
|
-
if ((0,
|
|
1552
|
-
const tagExists = (0,
|
|
1551
|
+
if ((0, import_utils21.isString)(tag)) {
|
|
1552
|
+
const tagExists = (0, import_utils21.isValidHtmlTag)(tag);
|
|
1553
1553
|
if (tagExists)
|
|
1554
1554
|
return tag;
|
|
1555
1555
|
} else {
|
|
1556
|
-
const isKeyATag = (0,
|
|
1556
|
+
const isKeyATag = (0, import_utils21.isValidHtmlTag)(key);
|
|
1557
1557
|
if (isKeyATag)
|
|
1558
1558
|
return key;
|
|
1559
1559
|
}
|
|
@@ -1672,16 +1672,16 @@ var require_attr = __commonJS({
|
|
|
1672
1672
|
default: () => attr_default
|
|
1673
1673
|
});
|
|
1674
1674
|
module2.exports = __toCommonJS2(attr_exports);
|
|
1675
|
-
var
|
|
1675
|
+
var import_utils21 = require_cjs();
|
|
1676
1676
|
var import_report = require_cjs2();
|
|
1677
1677
|
var attr_default = (params, element, node2) => {
|
|
1678
1678
|
const { __ref } = element;
|
|
1679
1679
|
const { __attr } = __ref;
|
|
1680
|
-
if ((0,
|
|
1680
|
+
if ((0, import_utils21.isNot)("object"))
|
|
1681
1681
|
(0, import_report.report)("HTMLInvalidAttr", params);
|
|
1682
1682
|
if (params) {
|
|
1683
1683
|
for (const attr in params) {
|
|
1684
|
-
const val = (0,
|
|
1684
|
+
const val = (0, import_utils21.exec)(params[attr], element);
|
|
1685
1685
|
if (val && node2.setAttribute)
|
|
1686
1686
|
node2.setAttribute(attr, val);
|
|
1687
1687
|
else if (node2.removeAttribute)
|
|
@@ -1724,7 +1724,7 @@ var require_classList = __commonJS({
|
|
|
1724
1724
|
default: () => classList_default
|
|
1725
1725
|
});
|
|
1726
1726
|
module2.exports = __toCommonJS2(classList_exports);
|
|
1727
|
-
var
|
|
1727
|
+
var import_utils21 = require_cjs();
|
|
1728
1728
|
var assignKeyAsClassname = (element) => {
|
|
1729
1729
|
const { key } = element;
|
|
1730
1730
|
if (element.class === true)
|
|
@@ -1742,7 +1742,7 @@ var require_classList = __commonJS({
|
|
|
1742
1742
|
else if (typeof param === "string")
|
|
1743
1743
|
className += ` ${param}`;
|
|
1744
1744
|
else if (typeof param === "function") {
|
|
1745
|
-
className += ` ${(0,
|
|
1745
|
+
className += ` ${(0, import_utils21.exec)(param, element)}`;
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
return className;
|
|
@@ -1753,9 +1753,9 @@ var require_classList = __commonJS({
|
|
|
1753
1753
|
const { key } = element;
|
|
1754
1754
|
if (params === true)
|
|
1755
1755
|
params = element.class = { key };
|
|
1756
|
-
if ((0,
|
|
1756
|
+
if ((0, import_utils21.isString)(params))
|
|
1757
1757
|
params = element.class = { default: params };
|
|
1758
|
-
if ((0,
|
|
1758
|
+
if ((0, import_utils21.isObject)(params))
|
|
1759
1759
|
params = classify2(params, element);
|
|
1760
1760
|
const className = params.replace(/\s+/g, " ").trim();
|
|
1761
1761
|
if (element.ref)
|
|
@@ -1839,7 +1839,7 @@ var require_set = __commonJS({
|
|
|
1839
1839
|
default: () => set_default
|
|
1840
1840
|
});
|
|
1841
1841
|
module2.exports = __toCommonJS2(set_exports);
|
|
1842
|
-
var
|
|
1842
|
+
var import_utils21 = require_cjs();
|
|
1843
1843
|
var import_create = __toESM2(require_create4(), 1);
|
|
1844
1844
|
var import_options3 = __toESM2(require_options(), 1);
|
|
1845
1845
|
var import_mixins = require_mixins();
|
|
@@ -1847,7 +1847,7 @@ var require_set = __commonJS({
|
|
|
1847
1847
|
var set5 = function(params, options = {}, el) {
|
|
1848
1848
|
const element = el || this;
|
|
1849
1849
|
const __contentRef = element.content && element.content.__ref;
|
|
1850
|
-
if (__contentRef && __contentRef.__cached && (0,
|
|
1850
|
+
if (__contentRef && __contentRef.__cached && (0, import_utils21.isEqualDeep)(params, element.content)) {
|
|
1851
1851
|
return element;
|
|
1852
1852
|
}
|
|
1853
1853
|
(0, import_content.removeContent)(element);
|
|
@@ -1907,7 +1907,7 @@ var require_content = __commonJS({
|
|
|
1907
1907
|
updateContent: () => updateContent
|
|
1908
1908
|
});
|
|
1909
1909
|
module2.exports = __toCommonJS2(content_exports);
|
|
1910
|
-
var
|
|
1910
|
+
var import_utils21 = require_cjs();
|
|
1911
1911
|
var import_set = __toESM2(require_set(), 1);
|
|
1912
1912
|
var updateContent = function(params, options) {
|
|
1913
1913
|
const element = this;
|
|
@@ -1930,7 +1930,7 @@ var require_content = __commonJS({
|
|
|
1930
1930
|
if (__cached && __cached.content) {
|
|
1931
1931
|
if (__cached.content.tag === "fragment")
|
|
1932
1932
|
__cached.content.parent.node.innerHTML = "";
|
|
1933
|
-
else if (__cached.content && (0,
|
|
1933
|
+
else if (__cached.content && (0, import_utils21.isFunction)(__cached.content.remove))
|
|
1934
1934
|
__cached.content.remove();
|
|
1935
1935
|
}
|
|
1936
1936
|
delete element.content;
|
|
@@ -1975,15 +1975,15 @@ var require_data = __commonJS({
|
|
|
1975
1975
|
default: () => data_default
|
|
1976
1976
|
});
|
|
1977
1977
|
module2.exports = __toCommonJS2(data_exports);
|
|
1978
|
-
var
|
|
1978
|
+
var import_utils21 = require_cjs();
|
|
1979
1979
|
var import_report = require_cjs2();
|
|
1980
1980
|
var data_default = (params, element, node2) => {
|
|
1981
1981
|
if (params && params.showOnNode) {
|
|
1982
|
-
if (!(0,
|
|
1982
|
+
if (!(0, import_utils21.isObject)(params))
|
|
1983
1983
|
(0, import_report.report)("HTMLInvalidData", params);
|
|
1984
1984
|
for (const dataset in params) {
|
|
1985
1985
|
if (dataset !== "showOnNode") {
|
|
1986
|
-
node2.dataset[dataset] = (0,
|
|
1986
|
+
node2.dataset[dataset] = (0, import_utils21.exec)(params[dataset], element);
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
@@ -2017,9 +2017,9 @@ var require_html = __commonJS({
|
|
|
2017
2017
|
default: () => html_default
|
|
2018
2018
|
});
|
|
2019
2019
|
module2.exports = __toCommonJS2(html_exports);
|
|
2020
|
-
var
|
|
2020
|
+
var import_utils21 = require_cjs();
|
|
2021
2021
|
var html_default = (param, element, node2) => {
|
|
2022
|
-
const prop = (0,
|
|
2022
|
+
const prop = (0, import_utils21.exec)(param, element);
|
|
2023
2023
|
const { __ref } = element;
|
|
2024
2024
|
if (prop !== __ref.__html) {
|
|
2025
2025
|
if (node2.nodeName === "SVG")
|
|
@@ -2058,12 +2058,12 @@ var require_style = __commonJS({
|
|
|
2058
2058
|
default: () => style_default2
|
|
2059
2059
|
});
|
|
2060
2060
|
module2.exports = __toCommonJS2(style_exports);
|
|
2061
|
-
var
|
|
2061
|
+
var import_utils21 = require_cjs();
|
|
2062
2062
|
var import_report = require_cjs2();
|
|
2063
2063
|
var style_default2 = (params, element, node2) => {
|
|
2064
2064
|
if (params) {
|
|
2065
|
-
if ((0,
|
|
2066
|
-
(0,
|
|
2065
|
+
if ((0, import_utils21.isObject)(params))
|
|
2066
|
+
(0, import_utils21.map)(node2.style, params, element);
|
|
2067
2067
|
else
|
|
2068
2068
|
(0, import_report.report)("HTMLInvalidStyles", params);
|
|
2069
2069
|
}
|
|
@@ -2099,9 +2099,9 @@ var require_text = __commonJS({
|
|
|
2099
2099
|
});
|
|
2100
2100
|
module2.exports = __toCommonJS2(text_exports);
|
|
2101
2101
|
var import__ = require_cjs7();
|
|
2102
|
-
var
|
|
2102
|
+
var import_utils21 = require_cjs();
|
|
2103
2103
|
var asd = (param, element, node2) => {
|
|
2104
|
-
const prop = (0,
|
|
2104
|
+
const prop = (0, import_utils21.exec)(param, element);
|
|
2105
2105
|
if (element.tag === "string") {
|
|
2106
2106
|
node2.nodeValue = prop;
|
|
2107
2107
|
} else if (param !== void 0 || param !== null) {
|
|
@@ -2115,9 +2115,9 @@ var require_text = __commonJS({
|
|
|
2115
2115
|
}
|
|
2116
2116
|
};
|
|
2117
2117
|
var text_default = (param, element, node2) => {
|
|
2118
|
-
let prop = (0,
|
|
2119
|
-
if ((0,
|
|
2120
|
-
prop = (0,
|
|
2118
|
+
let prop = (0, import_utils21.exec)(param, element);
|
|
2119
|
+
if ((0, import_utils21.isString)(prop) && prop.includes("{{")) {
|
|
2120
|
+
prop = (0, import_utils21.replaceLiteralsWithObjectFields)(prop, element.state);
|
|
2121
2121
|
}
|
|
2122
2122
|
if (element.tag === "string") {
|
|
2123
2123
|
if (element.text === prop)
|
|
@@ -2221,11 +2221,11 @@ var require_methods = __commonJS({
|
|
|
2221
2221
|
toggle: () => toggle
|
|
2222
2222
|
});
|
|
2223
2223
|
module2.exports = __toCommonJS2(methods_exports);
|
|
2224
|
-
var
|
|
2224
|
+
var import_utils21 = require_cjs();
|
|
2225
2225
|
var import_ignore = require_ignore();
|
|
2226
2226
|
var parse3 = function() {
|
|
2227
2227
|
const state = this;
|
|
2228
|
-
if ((0,
|
|
2228
|
+
if ((0, import_utils21.isObject)(state)) {
|
|
2229
2229
|
const obj = {};
|
|
2230
2230
|
for (const param in state) {
|
|
2231
2231
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -2233,7 +2233,7 @@ var require_methods = __commonJS({
|
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
2235
|
return obj;
|
|
2236
|
-
} else if ((0,
|
|
2236
|
+
} else if ((0, import_utils21.isArray)(state)) {
|
|
2237
2237
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
@@ -2253,7 +2253,7 @@ var require_methods = __commonJS({
|
|
|
2253
2253
|
const state = this;
|
|
2254
2254
|
const element = state.__element;
|
|
2255
2255
|
const stateKey = element.__ref.__state;
|
|
2256
|
-
if ((0,
|
|
2256
|
+
if ((0, import_utils21.isString)(stateKey)) {
|
|
2257
2257
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
2258
2258
|
return element.state;
|
|
2259
2259
|
}
|
|
@@ -2288,10 +2288,10 @@ var require_methods = __commonJS({
|
|
|
2288
2288
|
};
|
|
2289
2289
|
var add = function(value2, options = {}) {
|
|
2290
2290
|
const state = this;
|
|
2291
|
-
if ((0,
|
|
2291
|
+
if ((0, import_utils21.isArray)(state)) {
|
|
2292
2292
|
state.push(value2);
|
|
2293
2293
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
2294
|
-
} else if ((0,
|
|
2294
|
+
} else if ((0, import_utils21.isObject)(state)) {
|
|
2295
2295
|
const key = Object.keys(state).length;
|
|
2296
2296
|
state.update({ [key]: value2 }, options);
|
|
2297
2297
|
}
|
|
@@ -2302,10 +2302,10 @@ var require_methods = __commonJS({
|
|
|
2302
2302
|
};
|
|
2303
2303
|
var remove = function(key, options = {}) {
|
|
2304
2304
|
const state = this;
|
|
2305
|
-
if ((0,
|
|
2306
|
-
(0,
|
|
2307
|
-
if ((0,
|
|
2308
|
-
(0,
|
|
2305
|
+
if ((0, import_utils21.isArray)(state))
|
|
2306
|
+
(0, import_utils21.removeFromArray)(state, key);
|
|
2307
|
+
if ((0, import_utils21.isObject)(state))
|
|
2308
|
+
(0, import_utils21.removeFromObject)(state, key);
|
|
2309
2309
|
return state.update(state.parse(), { replace: true, ...options });
|
|
2310
2310
|
};
|
|
2311
2311
|
var set5 = function(value2, options = {}) {
|
|
@@ -2314,7 +2314,7 @@ var require_methods = __commonJS({
|
|
|
2314
2314
|
};
|
|
2315
2315
|
var apply = function(func, options = {}) {
|
|
2316
2316
|
const state = this;
|
|
2317
|
-
if ((0,
|
|
2317
|
+
if ((0, import_utils21.isFunction)(func)) {
|
|
2318
2318
|
func(state);
|
|
2319
2319
|
return state.update(state, { replace: true, ...options });
|
|
2320
2320
|
}
|
|
@@ -2354,7 +2354,7 @@ var require_inherit = __commonJS({
|
|
|
2354
2354
|
isState: () => isState2
|
|
2355
2355
|
});
|
|
2356
2356
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
2357
|
-
var
|
|
2357
|
+
var import_utils21 = require_cjs();
|
|
2358
2358
|
var import_ignore = require_ignore();
|
|
2359
2359
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
2360
2360
|
if (!stateKey.includes("../"))
|
|
@@ -2408,9 +2408,9 @@ var require_inherit = __commonJS({
|
|
|
2408
2408
|
const inheritedState = findInheritedState(element, parent);
|
|
2409
2409
|
if (!inheritedState)
|
|
2410
2410
|
return element.state;
|
|
2411
|
-
if ((0,
|
|
2412
|
-
return (0,
|
|
2413
|
-
} else if ((0,
|
|
2411
|
+
if ((0, import_utils21.is)(inheritedState)("object", "array")) {
|
|
2412
|
+
return (0, import_utils21.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
2413
|
+
} else if ((0, import_utils21.is)(inheritedState)("string", "number")) {
|
|
2414
2414
|
ref.__stateType = "string";
|
|
2415
2415
|
return { value: inheritedState };
|
|
2416
2416
|
}
|
|
@@ -2419,12 +2419,12 @@ var require_inherit = __commonJS({
|
|
|
2419
2419
|
var checkIfInherits = (element) => {
|
|
2420
2420
|
const ref = element.__ref;
|
|
2421
2421
|
const stateKey = ref.__state;
|
|
2422
|
-
if (!stateKey || (0,
|
|
2422
|
+
if (!stateKey || (0, import_utils21.isNot)(stateKey)("number", "string"))
|
|
2423
2423
|
return false;
|
|
2424
2424
|
return true;
|
|
2425
2425
|
};
|
|
2426
2426
|
var isState2 = function(state) {
|
|
2427
|
-
if (!(0,
|
|
2427
|
+
if (!(0, import_utils21.isObjectLike)(state))
|
|
2428
2428
|
return false;
|
|
2429
2429
|
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
|
|
2430
2430
|
};
|
|
@@ -2473,7 +2473,7 @@ var require_updateState = __commonJS({
|
|
|
2473
2473
|
var import_report = require_cjs2();
|
|
2474
2474
|
var import_event = require_cjs3();
|
|
2475
2475
|
var import_ignore = require_ignore();
|
|
2476
|
-
var
|
|
2476
|
+
var import_utils21 = require_cjs();
|
|
2477
2477
|
var import_inherit = require_inherit();
|
|
2478
2478
|
var STATE_UPDATE_OPTIONS = {
|
|
2479
2479
|
overwrite: true,
|
|
@@ -2487,7 +2487,7 @@ var require_updateState = __commonJS({
|
|
|
2487
2487
|
const state = this;
|
|
2488
2488
|
const element = state.__element;
|
|
2489
2489
|
if (!options.updateByState)
|
|
2490
|
-
(0,
|
|
2490
|
+
(0, import_utils21.merge)(options, STATE_UPDATE_OPTIONS);
|
|
2491
2491
|
if (!state.__element)
|
|
2492
2492
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
2493
2493
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -2517,10 +2517,10 @@ var require_updateState = __commonJS({
|
|
|
2517
2517
|
const shallow = overwrite === "shallow";
|
|
2518
2518
|
const merge22 = overwrite === "merge";
|
|
2519
2519
|
if (merge22) {
|
|
2520
|
-
(0,
|
|
2520
|
+
(0, import_utils21.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
2521
2521
|
return;
|
|
2522
2522
|
}
|
|
2523
|
-
const overwriteFunc = shallow ?
|
|
2523
|
+
const overwriteFunc = shallow ? import_utils21.overwriteShallow : import_utils21.overwriteDeep;
|
|
2524
2524
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
2525
2525
|
};
|
|
2526
2526
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -2611,7 +2611,7 @@ var require_create2 = __commonJS({
|
|
|
2611
2611
|
});
|
|
2612
2612
|
module2.exports = __toCommonJS2(create_exports);
|
|
2613
2613
|
var import_event = require_cjs3();
|
|
2614
|
-
var
|
|
2614
|
+
var import_utils21 = require_cjs();
|
|
2615
2615
|
var import_ignore = require_ignore();
|
|
2616
2616
|
var import_methods = require_methods();
|
|
2617
2617
|
var import_updateState = require_updateState();
|
|
@@ -2625,7 +2625,7 @@ var require_create2 = __commonJS({
|
|
|
2625
2625
|
if (objectizeState === false)
|
|
2626
2626
|
return parent.state || {};
|
|
2627
2627
|
else
|
|
2628
|
-
element.state = (0,
|
|
2628
|
+
element.state = (0, import_utils21.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
2629
2629
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
2630
2630
|
if (whatInitReturns === false)
|
|
2631
2631
|
return element.state;
|
|
@@ -2644,17 +2644,17 @@ var require_create2 = __commonJS({
|
|
|
2644
2644
|
const { __ref: ref } = state;
|
|
2645
2645
|
if (!ref)
|
|
2646
2646
|
return;
|
|
2647
|
-
const dependentState = (0,
|
|
2647
|
+
const dependentState = (0, import_utils21.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
2648
2648
|
const newDepends = { [element.key]: dependentState };
|
|
2649
|
-
ref.__depends = (0,
|
|
2649
|
+
ref.__depends = (0, import_utils21.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
2650
2650
|
return dependentState;
|
|
2651
2651
|
};
|
|
2652
2652
|
var checkForTypes = (element) => {
|
|
2653
2653
|
const { state, __ref: ref } = element;
|
|
2654
|
-
if ((0,
|
|
2654
|
+
if ((0, import_utils21.isFunction)(state)) {
|
|
2655
2655
|
ref.__state = state;
|
|
2656
|
-
return (0,
|
|
2657
|
-
} else if ((0,
|
|
2656
|
+
return (0, import_utils21.exec)(state, element);
|
|
2657
|
+
} else if ((0, import_utils21.is)(state)("string", "number")) {
|
|
2658
2658
|
ref.__state = state;
|
|
2659
2659
|
return {};
|
|
2660
2660
|
} else if (state === true) {
|
|
@@ -2701,7 +2701,7 @@ var require_create2 = __commonJS({
|
|
|
2701
2701
|
__children: {},
|
|
2702
2702
|
__root: ref.__root ? ref.__root.state : state
|
|
2703
2703
|
};
|
|
2704
|
-
if ((0,
|
|
2704
|
+
if ((0, import_utils21.isArray)(state)) {
|
|
2705
2705
|
addProtoToArray(state, proto);
|
|
2706
2706
|
} else {
|
|
2707
2707
|
Object.setPrototypeOf(state, proto);
|
|
@@ -2769,16 +2769,16 @@ var require_state = __commonJS({
|
|
|
2769
2769
|
});
|
|
2770
2770
|
module2.exports = __toCommonJS2(state_exports);
|
|
2771
2771
|
var import_state2 = require_cjs5();
|
|
2772
|
-
var
|
|
2772
|
+
var import_utils21 = require_cjs();
|
|
2773
2773
|
var state = (params, element, node2) => {
|
|
2774
|
-
const state2 = (0,
|
|
2775
|
-
if ((0,
|
|
2774
|
+
const state2 = (0, import_utils21.exec)(params, element);
|
|
2775
|
+
if ((0, import_utils21.isObject)(state2)) {
|
|
2776
2776
|
for (const param in state2) {
|
|
2777
2777
|
if (import_state2.IGNORE_STATE_PARAMS.includes(param))
|
|
2778
2778
|
continue;
|
|
2779
2779
|
if (!Object.hasOwnProperty.call(state2, param))
|
|
2780
2780
|
continue;
|
|
2781
|
-
element.state[param] = (0,
|
|
2781
|
+
element.state[param] = (0, import_utils21.exec)(state2[param], element);
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
2784
2784
|
return element;
|
|
@@ -2981,7 +2981,7 @@ var require_methods2 = __commonJS({
|
|
|
2981
2981
|
spotByPath: () => spotByPath
|
|
2982
2982
|
});
|
|
2983
2983
|
module2.exports = __toCommonJS2(methods_exports);
|
|
2984
|
-
var
|
|
2984
|
+
var import_utils21 = require_cjs();
|
|
2985
2985
|
var import_tree = require_tree();
|
|
2986
2986
|
var import_mixins = require_mixins();
|
|
2987
2987
|
var spotByPath = function(path) {
|
|
@@ -3014,9 +3014,9 @@ var require_methods2 = __commonJS({
|
|
|
3014
3014
|
};
|
|
3015
3015
|
var remove = function(params) {
|
|
3016
3016
|
const element = this;
|
|
3017
|
-
if ((0,
|
|
3017
|
+
if ((0, import_utils21.isFunction)(element.node.remove))
|
|
3018
3018
|
element.node.remove();
|
|
3019
|
-
else if (!(0,
|
|
3019
|
+
else if (!(0, import_utils21.isProduction)()) {
|
|
3020
3020
|
console.warn("This item cant be removed");
|
|
3021
3021
|
element.log();
|
|
3022
3022
|
}
|
|
@@ -3056,12 +3056,12 @@ var require_methods2 = __commonJS({
|
|
|
3056
3056
|
if (v === "state") {
|
|
3057
3057
|
if (element.__ref && element.__ref.__hasRootState)
|
|
3058
3058
|
return;
|
|
3059
|
-
if ((0,
|
|
3059
|
+
if ((0, import_utils21.isFunction)(val && val.parse))
|
|
3060
3060
|
val = val.parse();
|
|
3061
3061
|
} else if (v === "props") {
|
|
3062
3062
|
const { __element, update, ...props4 } = element[v];
|
|
3063
3063
|
obj[v] = props4;
|
|
3064
|
-
} else if ((0,
|
|
3064
|
+
} else if ((0, import_utils21.isDefined)(val))
|
|
3065
3065
|
obj[v] = val;
|
|
3066
3066
|
});
|
|
3067
3067
|
return obj;
|
|
@@ -3072,7 +3072,7 @@ var require_methods2 = __commonJS({
|
|
|
3072
3072
|
for (const v in obj) {
|
|
3073
3073
|
if (excl.includes(v))
|
|
3074
3074
|
return;
|
|
3075
|
-
if ((0,
|
|
3075
|
+
if ((0, import_utils21.isObjectLike)(obj[v])) {
|
|
3076
3076
|
obj[v] = parseDeep.call(obj[v], excl);
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
@@ -3190,18 +3190,18 @@ var require_inherit2 = __commonJS({
|
|
|
3190
3190
|
inheritParentProps: () => inheritParentProps
|
|
3191
3191
|
});
|
|
3192
3192
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
3193
|
-
var
|
|
3193
|
+
var import_utils21 = require_cjs();
|
|
3194
3194
|
var objectizeStringProperty = (propValue) => {
|
|
3195
|
-
if ((0,
|
|
3195
|
+
if ((0, import_utils21.is)(propValue)("string", "number")) {
|
|
3196
3196
|
return { inheritedString: propValue };
|
|
3197
3197
|
}
|
|
3198
3198
|
return propValue;
|
|
3199
3199
|
};
|
|
3200
3200
|
var inheritParentProps = (element, parent) => {
|
|
3201
3201
|
let propsStack = [];
|
|
3202
|
-
const parentProps = (0,
|
|
3202
|
+
const parentProps = (0, import_utils21.exec)(parent, parent.state).props;
|
|
3203
3203
|
const matchParent = parent.props && parentProps[element.key];
|
|
3204
|
-
const matchParentIsString = (0,
|
|
3204
|
+
const matchParentIsString = (0, import_utils21.isString)(matchParent);
|
|
3205
3205
|
const matchParentChildProps = parentProps && parentProps.childProps;
|
|
3206
3206
|
if (matchParent) {
|
|
3207
3207
|
if (matchParentIsString) {
|
|
@@ -3249,19 +3249,19 @@ var require_create3 = __commonJS({
|
|
|
3249
3249
|
syncProps: () => syncProps
|
|
3250
3250
|
});
|
|
3251
3251
|
module2.exports = __toCommonJS2(create_exports);
|
|
3252
|
-
var
|
|
3252
|
+
var import_utils21 = require_cjs();
|
|
3253
3253
|
var import_ignore = require_ignore2();
|
|
3254
3254
|
var import_inherit = require_inherit2();
|
|
3255
3255
|
var createPropsStack = (element, parent) => {
|
|
3256
3256
|
const { props: props4, __ref } = element;
|
|
3257
3257
|
const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
3258
|
-
if ((0,
|
|
3258
|
+
if ((0, import_utils21.isObject)(props4))
|
|
3259
3259
|
propsStack.push(props4);
|
|
3260
3260
|
else if (props4 === "inherit" && parent.props)
|
|
3261
3261
|
propsStack.push(parent.props);
|
|
3262
3262
|
else if (props4)
|
|
3263
3263
|
propsStack.push(props4);
|
|
3264
|
-
if ((0,
|
|
3264
|
+
if ((0, import_utils21.isArray)(__ref.__extend)) {
|
|
3265
3265
|
__ref.__extend.forEach((extend) => {
|
|
3266
3266
|
if (extend.props)
|
|
3267
3267
|
propsStack.push(extend.props);
|
|
@@ -3276,12 +3276,12 @@ var require_create3 = __commonJS({
|
|
|
3276
3276
|
props4.forEach((v) => {
|
|
3277
3277
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
3278
3278
|
return;
|
|
3279
|
-
const execProps = (0,
|
|
3280
|
-
if ((0,
|
|
3279
|
+
const execProps = (0, import_utils21.exec)(v, element);
|
|
3280
|
+
if ((0, import_utils21.isObject)(execProps) && execProps.__element)
|
|
3281
3281
|
return;
|
|
3282
|
-
element.props = (0,
|
|
3282
|
+
element.props = (0, import_utils21.deepMerge)(
|
|
3283
3283
|
mergedProps,
|
|
3284
|
-
(0,
|
|
3284
|
+
(0, import_utils21.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
|
|
3285
3285
|
import_ignore.IGNORE_PROPS_PARAMS
|
|
3286
3286
|
);
|
|
3287
3287
|
});
|
|
@@ -3402,7 +3402,7 @@ var require_object2 = __commonJS({
|
|
|
3402
3402
|
__export2(object_exports, {
|
|
3403
3403
|
METHODS_EXL: () => METHODS_EXL,
|
|
3404
3404
|
clone: () => clone,
|
|
3405
|
-
deepClone: () =>
|
|
3405
|
+
deepClone: () => deepClone4,
|
|
3406
3406
|
deepMerge: () => deepMerge4,
|
|
3407
3407
|
flattenRecursive: () => flattenRecursive,
|
|
3408
3408
|
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
@@ -3413,11 +3413,11 @@ var require_object2 = __commonJS({
|
|
|
3413
3413
|
overwriteShallow: () => overwriteShallow2
|
|
3414
3414
|
});
|
|
3415
3415
|
module2.exports = __toCommonJS2(object_exports);
|
|
3416
|
-
var
|
|
3416
|
+
var import_utils21 = require_cjs();
|
|
3417
3417
|
var import_state2 = require_cjs5();
|
|
3418
3418
|
var import_props = require_props();
|
|
3419
3419
|
var import_methods = require_methods2();
|
|
3420
|
-
var METHODS_EXL = (0,
|
|
3420
|
+
var METHODS_EXL = (0, import_utils21.joinArrays)(
|
|
3421
3421
|
["node", "state", "context", "extend"],
|
|
3422
3422
|
import_methods.METHODS,
|
|
3423
3423
|
import_state2.IGNORE_STATE_PARAMS,
|
|
@@ -3431,7 +3431,7 @@ var require_object2 = __commonJS({
|
|
|
3431
3431
|
const extendProp = extend[e];
|
|
3432
3432
|
if (elementProp === void 0) {
|
|
3433
3433
|
element[e] = extendProp;
|
|
3434
|
-
} else if ((0,
|
|
3434
|
+
} else if ((0, import_utils21.isObjectLike)(elementProp) && (0, import_utils21.isObject)(extendProp)) {
|
|
3435
3435
|
deepMerge4(elementProp, extendProp);
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
@@ -3446,17 +3446,17 @@ var require_object2 = __commonJS({
|
|
|
3446
3446
|
}
|
|
3447
3447
|
return o;
|
|
3448
3448
|
};
|
|
3449
|
-
var
|
|
3450
|
-
const o = (0,
|
|
3449
|
+
var deepClone4 = (obj, exclude = METHODS_EXL) => {
|
|
3450
|
+
const o = (0, import_utils21.isArray)(obj) ? [] : {};
|
|
3451
3451
|
for (const e in obj) {
|
|
3452
3452
|
if (exclude.includes(e))
|
|
3453
3453
|
continue;
|
|
3454
3454
|
let objProp = obj[e];
|
|
3455
|
-
if (e === "extend" && (0,
|
|
3455
|
+
if (e === "extend" && (0, import_utils21.isArray)(objProp)) {
|
|
3456
3456
|
objProp = mergeArray(objProp, exclude);
|
|
3457
3457
|
}
|
|
3458
|
-
if ((0,
|
|
3459
|
-
o[e] =
|
|
3458
|
+
if ((0, import_utils21.isObjectLike)(objProp)) {
|
|
3459
|
+
o[e] = deepClone4(objProp, exclude);
|
|
3460
3460
|
} else
|
|
3461
3461
|
o[e] = objProp;
|
|
3462
3462
|
}
|
|
@@ -3494,7 +3494,7 @@ var require_object2 = __commonJS({
|
|
|
3494
3494
|
continue;
|
|
3495
3495
|
const objProp = obj[e];
|
|
3496
3496
|
const paramsProp = params[e];
|
|
3497
|
-
if ((0,
|
|
3497
|
+
if ((0, import_utils21.isObjectLike)(objProp) && (0, import_utils21.isObjectLike)(paramsProp)) {
|
|
3498
3498
|
overwriteDeep(objProp, paramsProp);
|
|
3499
3499
|
} else if (paramsProp !== void 0) {
|
|
3500
3500
|
obj[e] = paramsProp;
|
|
@@ -3503,15 +3503,15 @@ var require_object2 = __commonJS({
|
|
|
3503
3503
|
return obj;
|
|
3504
3504
|
};
|
|
3505
3505
|
var mergeIfExisted = (a, b) => {
|
|
3506
|
-
if ((0,
|
|
3506
|
+
if ((0, import_utils21.isObjectLike)(a) && (0, import_utils21.isObjectLike)(b))
|
|
3507
3507
|
return deepMerge4(a, b);
|
|
3508
3508
|
return a || b;
|
|
3509
3509
|
};
|
|
3510
3510
|
var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
|
|
3511
|
-
return arr.reduce((a, c) => deepMerge4(a,
|
|
3511
|
+
return arr.reduce((a, c) => deepMerge4(a, deepClone4(c, exclude)), {});
|
|
3512
3512
|
};
|
|
3513
3513
|
var mergeAndCloneIfArray = (obj) => {
|
|
3514
|
-
return (0,
|
|
3514
|
+
return (0, import_utils21.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
|
|
3515
3515
|
};
|
|
3516
3516
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
3517
3517
|
const objectized = mergeAndCloneIfArray(param);
|
|
@@ -3567,7 +3567,7 @@ var require_extendUtils = __commonJS({
|
|
|
3567
3567
|
setHashedExtend: () => setHashedExtend
|
|
3568
3568
|
});
|
|
3569
3569
|
module2.exports = __toCommonJS2(extendUtils_exports);
|
|
3570
|
-
var
|
|
3570
|
+
var import_utils21 = require_cjs();
|
|
3571
3571
|
var ENV2 = "development";
|
|
3572
3572
|
var generateHash = () => Math.random().toString(36).substring(2);
|
|
3573
3573
|
var extendStackRegistry = {};
|
|
@@ -3577,7 +3577,7 @@ var require_extendUtils = __commonJS({
|
|
|
3577
3577
|
};
|
|
3578
3578
|
var setHashedExtend = (extend, stack) => {
|
|
3579
3579
|
const hash2 = generateHash();
|
|
3580
|
-
if (!(0,
|
|
3580
|
+
if (!(0, import_utils21.isString)(extend)) {
|
|
3581
3581
|
extend.__hash = hash2;
|
|
3582
3582
|
}
|
|
3583
3583
|
extendStackRegistry[hash2] = stack;
|
|
@@ -3603,7 +3603,7 @@ var require_extendUtils = __commonJS({
|
|
|
3603
3603
|
var flattenExtend = (extend, stack) => {
|
|
3604
3604
|
if (!extend)
|
|
3605
3605
|
return stack;
|
|
3606
|
-
if ((0,
|
|
3606
|
+
if ((0, import_utils21.isArray)(extend))
|
|
3607
3607
|
return extractArrayExtend(extend, stack);
|
|
3608
3608
|
stack.push(extend);
|
|
3609
3609
|
if (extend.extend)
|
|
@@ -3616,9 +3616,9 @@ var require_extendUtils = __commonJS({
|
|
|
3616
3616
|
if (["parent", "node", "__element"].indexOf(prop) > -1)
|
|
3617
3617
|
continue;
|
|
3618
3618
|
const objProp = obj[prop];
|
|
3619
|
-
if ((0,
|
|
3619
|
+
if ((0, import_utils21.isObject)(objProp)) {
|
|
3620
3620
|
o[prop] = deepCloneExtend(objProp);
|
|
3621
|
-
} else if ((0,
|
|
3621
|
+
} else if ((0, import_utils21.isArray)(objProp)) {
|
|
3622
3622
|
o[prop] = objProp.map((x) => x);
|
|
3623
3623
|
} else
|
|
3624
3624
|
o[prop] = objProp;
|
|
@@ -3633,14 +3633,14 @@ var require_extendUtils = __commonJS({
|
|
|
3633
3633
|
const extendProp = extend[e];
|
|
3634
3634
|
if (elementProp === void 0) {
|
|
3635
3635
|
element[e] = extendProp;
|
|
3636
|
-
} else if ((0,
|
|
3636
|
+
} else if ((0, import_utils21.isObject)(elementProp) && (0, import_utils21.isObject)(extendProp)) {
|
|
3637
3637
|
deepMergeExtend(elementProp, extendProp);
|
|
3638
|
-
} else if ((0,
|
|
3638
|
+
} else if ((0, import_utils21.isArray)(elementProp) && (0, import_utils21.isArray)(extendProp)) {
|
|
3639
3639
|
element[e] = elementProp.concat(extendProp);
|
|
3640
|
-
} else if ((0,
|
|
3640
|
+
} else if ((0, import_utils21.isArray)(elementProp) && (0, import_utils21.isObject)(extendProp)) {
|
|
3641
3641
|
const obj = deepMergeExtend({}, elementProp);
|
|
3642
3642
|
element[e] = deepMergeExtend(obj, extendProp);
|
|
3643
|
-
} else if (elementProp === void 0 && (0,
|
|
3643
|
+
} else if (elementProp === void 0 && (0, import_utils21.isFunction)(extendProp)) {
|
|
3644
3644
|
element[e] = extendProp;
|
|
3645
3645
|
}
|
|
3646
3646
|
}
|
|
@@ -3653,7 +3653,7 @@ var require_extendUtils = __commonJS({
|
|
|
3653
3653
|
};
|
|
3654
3654
|
var fallbackStringExtend = (extend, context, options) => {
|
|
3655
3655
|
const COMPONENTS = context && context.components || options.components;
|
|
3656
|
-
if ((0,
|
|
3656
|
+
if ((0, import_utils21.isString)(extend)) {
|
|
3657
3657
|
console.log("extend", extend);
|
|
3658
3658
|
console.log(COMPONENTS[extend]);
|
|
3659
3659
|
if (COMPONENTS && COMPONENTS[extend]) {
|
|
@@ -3685,11 +3685,11 @@ var require_extendUtils = __commonJS({
|
|
|
3685
3685
|
var replaceStringsWithComponents = (stack, context, options) => {
|
|
3686
3686
|
const COMPONENTS = context && context.components || options.components;
|
|
3687
3687
|
return stack.map((v) => {
|
|
3688
|
-
if ((0,
|
|
3688
|
+
if ((0, import_utils21.isString)(v)) {
|
|
3689
3689
|
const component = COMPONENTS[v];
|
|
3690
3690
|
return component;
|
|
3691
3691
|
}
|
|
3692
|
-
if ((0,
|
|
3692
|
+
if ((0, import_utils21.isString)(v.extend)) {
|
|
3693
3693
|
v.extend = COMPONENTS[v.extend];
|
|
3694
3694
|
return { ...getExtendMerged(v.extend), ...v };
|
|
3695
3695
|
}
|
|
@@ -3725,12 +3725,12 @@ var require_extend = __commonJS({
|
|
|
3725
3725
|
applyExtend: () => applyExtend
|
|
3726
3726
|
});
|
|
3727
3727
|
module2.exports = __toCommonJS2(extend_exports);
|
|
3728
|
-
var
|
|
3728
|
+
var import_utils21 = require_cjs();
|
|
3729
3729
|
var import_utils22 = require_utils();
|
|
3730
3730
|
var ENV2 = "development";
|
|
3731
3731
|
var applyExtend = (element, parent, options = {}) => {
|
|
3732
|
-
if ((0,
|
|
3733
|
-
element = (0,
|
|
3732
|
+
if ((0, import_utils21.isFunction)(element))
|
|
3733
|
+
element = (0, import_utils21.exec)(element, parent);
|
|
3734
3734
|
let { extend, props: props4, context, __ref } = element;
|
|
3735
3735
|
extend = (0, import_utils22.fallbackStringExtend)(extend, context, options);
|
|
3736
3736
|
const extendStack = (0, import_utils22.getExtendStack)(extend);
|
|
@@ -3774,7 +3774,7 @@ var require_extend = __commonJS({
|
|
|
3774
3774
|
const findAndReplaceStrings = (0, import_utils22.replaceStringsWithComponents)(stack, context, options);
|
|
3775
3775
|
let mergedExtend = (0, import_utils22.cloneAndMergeArrayExtend)(findAndReplaceStrings);
|
|
3776
3776
|
const COMPONENTS = context && context.components || options.components;
|
|
3777
|
-
const component = (0,
|
|
3777
|
+
const component = (0, import_utils21.exec)(element.component || mergedExtend.component, element);
|
|
3778
3778
|
if (component && COMPONENTS && COMPONENTS[component]) {
|
|
3779
3779
|
const componentExtend = (0, import_utils22.cloneAndMergeArrayExtend)((0, import_utils22.getExtendStack)(COMPONENTS[component]));
|
|
3780
3780
|
mergedExtend = (0, import_utils22.deepMergeExtend)(componentExtend, mergedExtend);
|
|
@@ -3818,11 +3818,11 @@ var require_component = __commonJS({
|
|
|
3818
3818
|
overwriteVariant: () => overwriteVariant
|
|
3819
3819
|
});
|
|
3820
3820
|
module2.exports = __toCommonJS2(component_exports);
|
|
3821
|
-
var
|
|
3821
|
+
var import_utils21 = require_cjs();
|
|
3822
3822
|
var import_extend = require_extend();
|
|
3823
3823
|
var ENV2 = "development";
|
|
3824
3824
|
var checkIfKeyIsComponent = (key) => {
|
|
3825
|
-
const isFirstKeyString = (0,
|
|
3825
|
+
const isFirstKeyString = (0, import_utils21.isString)(key);
|
|
3826
3826
|
if (!isFirstKeyString)
|
|
3827
3827
|
return;
|
|
3828
3828
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -3830,7 +3830,7 @@ var require_component = __commonJS({
|
|
|
3830
3830
|
};
|
|
3831
3831
|
var addAdditionalExtend = (newExtend, element) => {
|
|
3832
3832
|
const { extend } = element;
|
|
3833
|
-
const preserveExtend = (0,
|
|
3833
|
+
const preserveExtend = (0, import_utils21.isArray)(extend) ? extend : [extend];
|
|
3834
3834
|
return {
|
|
3835
3835
|
...element,
|
|
3836
3836
|
extend: [newExtend].concat(preserveExtend)
|
|
@@ -3853,10 +3853,10 @@ var require_component = __commonJS({
|
|
|
3853
3853
|
};
|
|
3854
3854
|
} else if (extend) {
|
|
3855
3855
|
addAdditionalExtend(extendKey, element);
|
|
3856
|
-
} else if ((0,
|
|
3856
|
+
} else if ((0, import_utils21.isFunction)(element)) {
|
|
3857
3857
|
return {
|
|
3858
3858
|
extend: extendKey,
|
|
3859
|
-
props: { ...(0,
|
|
3859
|
+
props: { ...(0, import_utils21.exec)(element, parent) }
|
|
3860
3860
|
};
|
|
3861
3861
|
}
|
|
3862
3862
|
};
|
|
@@ -3869,8 +3869,8 @@ var require_component = __commonJS({
|
|
|
3869
3869
|
return;
|
|
3870
3870
|
const { components } = context;
|
|
3871
3871
|
const { extend } = element;
|
|
3872
|
-
const execExtend = (0,
|
|
3873
|
-
if ((0,
|
|
3872
|
+
const execExtend = (0, import_utils21.exec)(extend, element);
|
|
3873
|
+
if ((0, import_utils21.isString)(execExtend)) {
|
|
3874
3874
|
if (components[execExtend])
|
|
3875
3875
|
element.extend = components[execExtend];
|
|
3876
3876
|
else {
|
|
@@ -3883,29 +3883,29 @@ var require_component = __commonJS({
|
|
|
3883
3883
|
}
|
|
3884
3884
|
};
|
|
3885
3885
|
var isVariant = (param) => {
|
|
3886
|
-
if (!(0,
|
|
3886
|
+
if (!(0, import_utils21.isString)(param))
|
|
3887
3887
|
return;
|
|
3888
3888
|
const firstCharKey = param.slice(0, 1);
|
|
3889
3889
|
return firstCharKey === ".";
|
|
3890
3890
|
};
|
|
3891
3891
|
var hasVariantProp = (element) => {
|
|
3892
3892
|
const { props: props4 } = element;
|
|
3893
|
-
if ((0,
|
|
3893
|
+
if ((0, import_utils21.isObject)(props4) && (0, import_utils21.isString)(props4.variant))
|
|
3894
3894
|
return true;
|
|
3895
3895
|
};
|
|
3896
3896
|
var overwriteVariant = (element, variant, variantProps) => {
|
|
3897
3897
|
let variantElement = element[variant];
|
|
3898
3898
|
if (!variantElement)
|
|
3899
3899
|
return;
|
|
3900
|
-
const props4 = (0,
|
|
3901
|
-
if ((0,
|
|
3900
|
+
const props4 = (0, import_utils21.isObject)(variantProps) ? variantProps : {};
|
|
3901
|
+
if ((0, import_utils21.isString)(variantElement)) {
|
|
3902
3902
|
variantElement = {
|
|
3903
3903
|
extend: [{ props: props4 }, variantElement]
|
|
3904
3904
|
};
|
|
3905
3905
|
} else if (variantElement.extend) {
|
|
3906
3906
|
variantElement = addAdditionalExtend({ props: props4 }, variantElement);
|
|
3907
3907
|
}
|
|
3908
|
-
return (0,
|
|
3908
|
+
return (0, import_utils21.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
|
|
3909
3909
|
};
|
|
3910
3910
|
var applyVariant = (element) => {
|
|
3911
3911
|
const { props: props4 } = element;
|
|
@@ -3980,7 +3980,7 @@ var require_iterate = __commonJS({
|
|
|
3980
3980
|
throughUpdatedExec: () => throughUpdatedExec
|
|
3981
3981
|
});
|
|
3982
3982
|
module2.exports = __toCommonJS2(iterate_exports);
|
|
3983
|
-
var
|
|
3983
|
+
var import_utils21 = require_cjs();
|
|
3984
3984
|
var import_utils22 = require_utils();
|
|
3985
3985
|
var import_methods = require_methods2();
|
|
3986
3986
|
var throughInitialExec = (element, exclude = {}) => {
|
|
@@ -3989,7 +3989,7 @@ var require_iterate = __commonJS({
|
|
|
3989
3989
|
if (exclude[param])
|
|
3990
3990
|
continue;
|
|
3991
3991
|
const prop = element[param];
|
|
3992
|
-
if ((0,
|
|
3992
|
+
if ((0, import_utils21.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
|
|
3993
3993
|
ref.__exec[param] = prop;
|
|
3994
3994
|
element[param] = prop(element, element.state);
|
|
3995
3995
|
}
|
|
@@ -4004,7 +4004,7 @@ var require_iterate = __commonJS({
|
|
|
4004
4004
|
if (isDefinedParam)
|
|
4005
4005
|
continue;
|
|
4006
4006
|
const newExec = ref.__exec[param](element, element.state, element.context);
|
|
4007
|
-
const execReturnsString = (0,
|
|
4007
|
+
const execReturnsString = (0, import_utils21.isString)(newExec) || (0, import_utils21.isNumber)(newExec);
|
|
4008
4008
|
if (prop && prop.node && execReturnsString) {
|
|
4009
4009
|
(0, import_utils22.overwrite)(prop, { text: newExec }, options);
|
|
4010
4010
|
} else if (newExec !== prop) {
|
|
@@ -4022,16 +4022,16 @@ var require_iterate = __commonJS({
|
|
|
4022
4022
|
var throughInitialDefine = (element) => {
|
|
4023
4023
|
const { define, context, __ref: ref } = element;
|
|
4024
4024
|
let defineObj = {};
|
|
4025
|
-
const hasGlobalDefine = context && (0,
|
|
4026
|
-
if ((0,
|
|
4025
|
+
const hasGlobalDefine = context && (0, import_utils21.isObject)(context.define);
|
|
4026
|
+
if ((0, import_utils21.isObject)(define))
|
|
4027
4027
|
defineObj = { ...define };
|
|
4028
4028
|
if (hasGlobalDefine)
|
|
4029
4029
|
defineObj = { ...defineObj, ...context.define };
|
|
4030
4030
|
for (const param in defineObj) {
|
|
4031
4031
|
let elementProp = element[param];
|
|
4032
|
-
if ((0,
|
|
4032
|
+
if ((0, import_utils21.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
|
|
4033
4033
|
ref.__exec[param] = elementProp;
|
|
4034
|
-
const execParam2 = elementProp = (0,
|
|
4034
|
+
const execParam2 = elementProp = (0, import_utils21.exec)(elementProp, element);
|
|
4035
4035
|
if (execParam2) {
|
|
4036
4036
|
elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
|
|
4037
4037
|
ref.__defineCache[param] = elementProp;
|
|
@@ -4047,15 +4047,15 @@ var require_iterate = __commonJS({
|
|
|
4047
4047
|
const { context, define, __ref: ref } = element;
|
|
4048
4048
|
const changes = {};
|
|
4049
4049
|
let obj = {};
|
|
4050
|
-
if ((0,
|
|
4050
|
+
if ((0, import_utils21.isObject)(define))
|
|
4051
4051
|
obj = { ...define };
|
|
4052
|
-
if ((0,
|
|
4052
|
+
if ((0, import_utils21.isObject)(context && context.define))
|
|
4053
4053
|
obj = { ...obj, ...context.define };
|
|
4054
4054
|
for (const param in obj) {
|
|
4055
4055
|
const execParam = ref.__exec[param];
|
|
4056
4056
|
if (execParam)
|
|
4057
4057
|
ref.__defineCache[param] = execParam(element, element.state, element.context);
|
|
4058
|
-
const cached = (0,
|
|
4058
|
+
const cached = (0, import_utils21.exec)(ref.__defineCache[param], element);
|
|
4059
4059
|
const newExecParam = obj[param](cached, element, element.state, element.context);
|
|
4060
4060
|
if (newExecParam)
|
|
4061
4061
|
element[param] = newExecParam;
|
|
@@ -4091,7 +4091,7 @@ var require_applyParam = __commonJS({
|
|
|
4091
4091
|
applyParam: () => applyParam
|
|
4092
4092
|
});
|
|
4093
4093
|
module2.exports = __toCommonJS2(applyParam_exports);
|
|
4094
|
-
var
|
|
4094
|
+
var import_utils21 = require_cjs();
|
|
4095
4095
|
var import_mixins = require_mixins();
|
|
4096
4096
|
var applyParam = (param, element, options) => {
|
|
4097
4097
|
const { node: node2, context, __ref: ref } = element;
|
|
@@ -4104,7 +4104,7 @@ var require_applyParam = __commonJS({
|
|
|
4104
4104
|
if (!ref.__if)
|
|
4105
4105
|
return;
|
|
4106
4106
|
if (isGlobalTransformer && !hasContextDefine) {
|
|
4107
|
-
if ((0,
|
|
4107
|
+
if ((0, import_utils21.isFunction)(isGlobalTransformer)) {
|
|
4108
4108
|
isGlobalTransformer(prop, element, node2, options);
|
|
4109
4109
|
return;
|
|
4110
4110
|
}
|
|
@@ -4151,7 +4151,7 @@ var require_node2 = __commonJS({
|
|
|
4151
4151
|
default: () => node_default
|
|
4152
4152
|
});
|
|
4153
4153
|
module2.exports = __toCommonJS2(node_exports);
|
|
4154
|
-
var
|
|
4154
|
+
var import_utils21 = require_cjs();
|
|
4155
4155
|
var import_event = require_cjs3();
|
|
4156
4156
|
var import_render = require_cjs4();
|
|
4157
4157
|
var import_methods = require_methods2();
|
|
@@ -4176,23 +4176,23 @@ var require_node2 = __commonJS({
|
|
|
4176
4176
|
}
|
|
4177
4177
|
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
4178
4178
|
node2.ref = element;
|
|
4179
|
-
if ((0,
|
|
4179
|
+
if ((0, import_utils21.isFunction)(node2.setAttribute))
|
|
4180
4180
|
node2.setAttribute("key", element.key);
|
|
4181
4181
|
}
|
|
4182
4182
|
if (element.tag !== "string" || element.tag !== "fragment") {
|
|
4183
4183
|
(0, import_iterate.throughInitialDefine)(element);
|
|
4184
4184
|
(0, import_iterate.throughInitialExec)(element);
|
|
4185
|
-
if (isNewNode && (0,
|
|
4185
|
+
if (isNewNode && (0, import_utils21.isObject)(element.on))
|
|
4186
4186
|
(0, import_event.applyEventsOnNode)(element);
|
|
4187
4187
|
for (const param in element) {
|
|
4188
4188
|
const prop = element[param];
|
|
4189
|
-
if ((0,
|
|
4189
|
+
if ((0, import_utils21.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils22.isVariant)(param) || (0, import_utils21.isObject)(import_mixins.registry[param]))
|
|
4190
4190
|
continue;
|
|
4191
4191
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
4192
4192
|
if (isElement) {
|
|
4193
4193
|
const { hasDefine, hasContextDefine } = isElement;
|
|
4194
4194
|
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
4195
|
-
const createAsync = () => (0, import_create.default)((0,
|
|
4195
|
+
const createAsync = () => (0, import_create.default)((0, import_utils21.exec)(prop, element), element, param, options);
|
|
4196
4196
|
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
4197
4197
|
window.requestAnimationFrame(() => createAsync());
|
|
4198
4198
|
} else
|
|
@@ -4233,7 +4233,7 @@ var require_methods3 = __commonJS({
|
|
|
4233
4233
|
DEFAULT_METHODS: () => DEFAULT_METHODS
|
|
4234
4234
|
});
|
|
4235
4235
|
module2.exports = __toCommonJS2(methods_exports);
|
|
4236
|
-
var
|
|
4236
|
+
var import_utils21 = require_cjs();
|
|
4237
4237
|
var DEFAULT_METHODS = {
|
|
4238
4238
|
key: {},
|
|
4239
4239
|
tag: {},
|
|
@@ -4254,7 +4254,7 @@ var require_methods3 = __commonJS({
|
|
|
4254
4254
|
text: (element, state) => {
|
|
4255
4255
|
element.ref.text = {
|
|
4256
4256
|
tag: "text",
|
|
4257
|
-
text: (0,
|
|
4257
|
+
text: (0, import_utils21.exec)(element.text, element, state)
|
|
4258
4258
|
};
|
|
4259
4259
|
},
|
|
4260
4260
|
innerHTML: {},
|
|
@@ -4491,7 +4491,7 @@ var require_update2 = __commonJS({
|
|
|
4491
4491
|
default: () => update_default
|
|
4492
4492
|
});
|
|
4493
4493
|
module2.exports = __toCommonJS2(update_exports);
|
|
4494
|
-
var
|
|
4494
|
+
var import_utils21 = require_cjs();
|
|
4495
4495
|
var import_event = require_cjs3();
|
|
4496
4496
|
var import_methods = require_methods2();
|
|
4497
4497
|
var import_props = require_props();
|
|
@@ -4503,7 +4503,7 @@ var require_update2 = __commonJS({
|
|
|
4503
4503
|
var import_applyParam = require_applyParam();
|
|
4504
4504
|
var import_options3 = __toESM2(require_options(), 1);
|
|
4505
4505
|
var snapshot = {
|
|
4506
|
-
snapshotId:
|
|
4506
|
+
snapshotId: import_utils21.createSnapshotId
|
|
4507
4507
|
};
|
|
4508
4508
|
var UPDATE_DEFAULT_OPTIONS = {
|
|
4509
4509
|
stackChanges: false,
|
|
@@ -4520,14 +4520,14 @@ var require_update2 = __commonJS({
|
|
|
4520
4520
|
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
4521
4521
|
return;
|
|
4522
4522
|
if (!excludes)
|
|
4523
|
-
(0,
|
|
4523
|
+
(0, import_utils21.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
4524
4524
|
let ref = element.__ref;
|
|
4525
4525
|
if (!ref)
|
|
4526
4526
|
ref = element.__ref = {};
|
|
4527
4527
|
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
4528
4528
|
if (snapshotHasUpdated)
|
|
4529
4529
|
return;
|
|
4530
|
-
if ((0,
|
|
4530
|
+
if ((0, import_utils21.isString)(params) || (0, import_utils21.isNumber)(params)) {
|
|
4531
4531
|
params = { text: params };
|
|
4532
4532
|
}
|
|
4533
4533
|
const ifFails = checkIfOnUpdate(element, parent, options);
|
|
@@ -4538,7 +4538,7 @@ var require_update2 = __commonJS({
|
|
|
4538
4538
|
return;
|
|
4539
4539
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
4540
4540
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
4541
|
-
const hasFunctionInProps = ref.__props.filter((v) => (0,
|
|
4541
|
+
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils21.isFunction)(v));
|
|
4542
4542
|
const props4 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
4543
4543
|
if (props4)
|
|
4544
4544
|
(0, import_props.updateProps)(props4, element, parent);
|
|
@@ -4551,11 +4551,11 @@ var require_update2 = __commonJS({
|
|
|
4551
4551
|
if (initUpdateReturns === false)
|
|
4552
4552
|
return element;
|
|
4553
4553
|
}
|
|
4554
|
-
const overwriteChanges = (0,
|
|
4554
|
+
const overwriteChanges = (0, import_utils21.overwriteDeep)(element, params, import_utils22.METHODS_EXL);
|
|
4555
4555
|
const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
|
|
4556
4556
|
const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
|
|
4557
4557
|
if (options.stackChanges && element.__stackChanges) {
|
|
4558
|
-
const stackChanges = (0,
|
|
4558
|
+
const stackChanges = (0, import_utils21.merge)(definedChanges, (0, import_utils21.merge)(execChanges, overwriteChanges));
|
|
4559
4559
|
element.__stackChanges.push(stackChanges);
|
|
4560
4560
|
}
|
|
4561
4561
|
if (!ref.__if)
|
|
@@ -4566,16 +4566,16 @@ var require_update2 = __commonJS({
|
|
|
4566
4566
|
for (const param in element) {
|
|
4567
4567
|
const prop = element[param];
|
|
4568
4568
|
const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
|
|
4569
|
-
const isInPreventUpdate = (0,
|
|
4570
|
-
const isInPreventDefineUpdate = (0,
|
|
4571
|
-
if ((0,
|
|
4569
|
+
const isInPreventUpdate = (0, import_utils21.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
|
|
4570
|
+
const isInPreventDefineUpdate = (0, import_utils21.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
|
|
4571
|
+
if ((0, import_utils21.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils21.isObject)(import_mixins.registry[param]) || (0, import_utils22.isVariant)(param))
|
|
4572
4572
|
continue;
|
|
4573
4573
|
if (options.preventStateUpdate === "once")
|
|
4574
4574
|
options.preventStateUpdate = false;
|
|
4575
4575
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
4576
4576
|
if (isElement) {
|
|
4577
4577
|
const { hasDefine, hasContextDefine } = isElement;
|
|
4578
|
-
const canUpdate = (0,
|
|
4578
|
+
const canUpdate = (0, import_utils21.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
|
|
4579
4579
|
if (!canUpdate)
|
|
4580
4580
|
continue;
|
|
4581
4581
|
const childUpdateCall = () => update.call(prop, params[prop], {
|
|
@@ -4584,7 +4584,7 @@ var require_update2 = __commonJS({
|
|
|
4584
4584
|
calleeElement
|
|
4585
4585
|
});
|
|
4586
4586
|
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
4587
|
-
|
|
4587
|
+
import_utils21.window.requestAnimationFrame(() => childUpdateCall());
|
|
4588
4588
|
} else
|
|
4589
4589
|
childUpdateCall();
|
|
4590
4590
|
}
|
|
@@ -4608,7 +4608,7 @@ var require_update2 = __commonJS({
|
|
|
4608
4608
|
return [snapshotOnCallee, calleeElement];
|
|
4609
4609
|
};
|
|
4610
4610
|
var checkIfOnUpdate = (element, parent, options) => {
|
|
4611
|
-
if (!(0,
|
|
4611
|
+
if (!(0, import_utils21.isFunction)(element.if) || !element.state || !parent)
|
|
4612
4612
|
return;
|
|
4613
4613
|
const ref = element.__ref;
|
|
4614
4614
|
const ifPassed = element.if(element, element.state, element.context, options);
|
|
@@ -4625,7 +4625,7 @@ var require_update2 = __commonJS({
|
|
|
4625
4625
|
element.state = ref.__state;
|
|
4626
4626
|
}
|
|
4627
4627
|
const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create);
|
|
4628
|
-
if (options.preventUpdate !== true && element.on && (0,
|
|
4628
|
+
if (options.preventUpdate !== true && element.on && (0, import_utils21.isFunction)(element.on.update)) {
|
|
4629
4629
|
(0, import_event.applyEvent)(element.on.update, created, created.state);
|
|
4630
4630
|
}
|
|
4631
4631
|
return created;
|
|
@@ -4646,9 +4646,9 @@ var require_update2 = __commonJS({
|
|
|
4646
4646
|
return;
|
|
4647
4647
|
}
|
|
4648
4648
|
const { isHoisted, execStateFunction, stateFunctionOverwrite } = options;
|
|
4649
|
-
const shouldForceStateUpdate = (0,
|
|
4649
|
+
const shouldForceStateUpdate = (0, import_utils21.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
|
|
4650
4650
|
if (shouldForceStateUpdate) {
|
|
4651
|
-
const execState = (0,
|
|
4651
|
+
const execState = (0, import_utils21.exec)(stateKey, element);
|
|
4652
4652
|
state.set(execState, {
|
|
4653
4653
|
...options,
|
|
4654
4654
|
preventUpdate: true
|
|
@@ -4720,7 +4720,7 @@ var require_set2 = __commonJS({
|
|
|
4720
4720
|
addMethods: () => addMethods
|
|
4721
4721
|
});
|
|
4722
4722
|
module2.exports = __toCommonJS2(set_exports);
|
|
4723
|
-
var
|
|
4723
|
+
var import_utils21 = require_cjs();
|
|
4724
4724
|
var import_set = __toESM2(require_set(), 1);
|
|
4725
4725
|
var import_update = __toESM2(require_update2(), 1);
|
|
4726
4726
|
var import__ = require_methods2();
|
|
@@ -4741,7 +4741,7 @@ var require_set2 = __commonJS({
|
|
|
4741
4741
|
nextElement: import__.nextElement.bind(element),
|
|
4742
4742
|
previousElement: import__.previousElement.bind(element)
|
|
4743
4743
|
};
|
|
4744
|
-
if ((0,
|
|
4744
|
+
if ((0, import_utils21.isDevelopment)())
|
|
4745
4745
|
proto.log = import__.log.bind(element);
|
|
4746
4746
|
Object.setPrototypeOf(element, proto);
|
|
4747
4747
|
};
|
|
@@ -4797,7 +4797,7 @@ var require_create4 = __commonJS({
|
|
|
4797
4797
|
var import_set = require_set2();
|
|
4798
4798
|
var import_classList = require_classList();
|
|
4799
4799
|
var import_iterate = require_iterate();
|
|
4800
|
-
var
|
|
4800
|
+
var import_utils21 = require_cjs();
|
|
4801
4801
|
var import_options3 = __toESM2(require_options(), 1);
|
|
4802
4802
|
var import_component = require_component();
|
|
4803
4803
|
var ENV2 = "development";
|
|
@@ -4810,7 +4810,7 @@ var require_create4 = __commonJS({
|
|
|
4810
4810
|
parent = redefineParent(element, parent, key);
|
|
4811
4811
|
key = createKey(element, parent, key);
|
|
4812
4812
|
const ref = addRef(element, parent, key);
|
|
4813
|
-
ref.__initialProps = (0,
|
|
4813
|
+
ref.__initialProps = (0, import_utils21.deepClone)(element.props, []);
|
|
4814
4814
|
applyContext(element, parent, options);
|
|
4815
4815
|
(0, import_component.applyComponentFromContext)(element, parent, options);
|
|
4816
4816
|
(0, import_extend.applyExtend)(element, parent, options);
|
|
@@ -4845,7 +4845,7 @@ var require_create4 = __commonJS({
|
|
|
4845
4845
|
}
|
|
4846
4846
|
return {};
|
|
4847
4847
|
}
|
|
4848
|
-
if ((0,
|
|
4848
|
+
if ((0, import_utils21.isString)(key) && key.slice(0, 2 === "__")) {
|
|
4849
4849
|
if (ENV2 === "test" || ENV2 === "development") {
|
|
4850
4850
|
console.warn(key, "seems like to be in __ref");
|
|
4851
4851
|
}
|
|
@@ -4872,7 +4872,7 @@ var require_create4 = __commonJS({
|
|
|
4872
4872
|
var redefineParent = (element, parent, key, options) => {
|
|
4873
4873
|
if (!parent)
|
|
4874
4874
|
return import_tree.ROOT;
|
|
4875
|
-
if ((0,
|
|
4875
|
+
if ((0, import_utils21.isNode)(parent)) {
|
|
4876
4876
|
const parentNodeWrapper = { key: ":root", node: parent };
|
|
4877
4877
|
import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
|
|
4878
4878
|
return parentNodeWrapper;
|
|
@@ -4886,7 +4886,7 @@ var require_create4 = __commonJS({
|
|
|
4886
4886
|
}
|
|
4887
4887
|
};
|
|
4888
4888
|
var createKey = (element, parent, key) => {
|
|
4889
|
-
return ((0,
|
|
4889
|
+
return ((0, import_utils21.exec)(key, element) || key || element.key || (0, import_utils21.generateKey)()).toString();
|
|
4890
4890
|
};
|
|
4891
4891
|
var addRef = (element, parent) => {
|
|
4892
4892
|
if (element.__ref)
|
|
@@ -4916,7 +4916,7 @@ var require_create4 = __commonJS({
|
|
|
4916
4916
|
(0, import_event.triggerEventOn)("render", element, options);
|
|
4917
4917
|
};
|
|
4918
4918
|
var checkIfPrimitive = (element) => {
|
|
4919
|
-
return (0,
|
|
4919
|
+
return (0, import_utils21.is)(element)("string", "number");
|
|
4920
4920
|
};
|
|
4921
4921
|
var applyValueAsText = (element, parent, key) => {
|
|
4922
4922
|
const extendTag = element.extend && element.extend.tag;
|
|
@@ -4935,7 +4935,7 @@ var require_create4 = __commonJS({
|
|
|
4935
4935
|
};
|
|
4936
4936
|
var createIfConditionFlag = (element, parent) => {
|
|
4937
4937
|
const { __ref: ref } = element;
|
|
4938
|
-
if ((0,
|
|
4938
|
+
if ((0, import_utils21.isFunction)(element.if)) {
|
|
4939
4939
|
const ifPassed = element.if(element, element.state);
|
|
4940
4940
|
if (!ifPassed) {
|
|
4941
4941
|
const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
|
|
@@ -5004,7 +5004,7 @@ var require_create4 = __commonJS({
|
|
|
5004
5004
|
(0, import_set.addMethods)(element, parent);
|
|
5005
5005
|
(0, import_state2.createState)(element, parent);
|
|
5006
5006
|
const ref = __ref;
|
|
5007
|
-
if ((0,
|
|
5007
|
+
if ((0, import_utils21.isFunction)(element.if)) {
|
|
5008
5008
|
const ifPassed = element.if(element, element.state);
|
|
5009
5009
|
if (!ifPassed) {
|
|
5010
5010
|
delete ref.__if;
|
|
@@ -5023,7 +5023,7 @@ var require_create4 = __commonJS({
|
|
|
5023
5023
|
(0, import_iterate.throughInitialDefine)(element);
|
|
5024
5024
|
(0, import_iterate.throughInitialExec)(element);
|
|
5025
5025
|
for (const k in element) {
|
|
5026
|
-
if ((0,
|
|
5026
|
+
if ((0, import_utils21.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils21.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
|
|
5027
5027
|
continue;
|
|
5028
5028
|
const hasDefine = element.define && element.define[k];
|
|
5029
5029
|
const contextHasDefine = element.context && element.context.define && element.context.define[k];
|
|
@@ -5031,7 +5031,7 @@ var require_create4 = __commonJS({
|
|
|
5031
5031
|
if (import_mixins.registry[k] && !optionsHasDefine) {
|
|
5032
5032
|
continue;
|
|
5033
5033
|
} else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
|
|
5034
|
-
create2((0,
|
|
5034
|
+
create2((0, import_utils21.exec)(element[k], element), element, k, options);
|
|
5035
5035
|
}
|
|
5036
5036
|
}
|
|
5037
5037
|
}
|
|
@@ -6418,28 +6418,28 @@ var require_cjs9 = __commonJS({
|
|
|
6418
6418
|
ANIMATION: () => ANIMATION2,
|
|
6419
6419
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
6420
6420
|
CASES: () => CASES,
|
|
6421
|
-
COLOR: () =>
|
|
6421
|
+
COLOR: () => COLOR3,
|
|
6422
6422
|
CONFIG: () => CONFIG3,
|
|
6423
6423
|
CSS_VARS: () => CSS_VARS,
|
|
6424
6424
|
DEVICES: () => DEVICES,
|
|
6425
6425
|
DOCUMENT: () => DOCUMENT,
|
|
6426
6426
|
FACTORY: () => FACTORY,
|
|
6427
|
-
FONT: () =>
|
|
6427
|
+
FONT: () => FONT2,
|
|
6428
6428
|
FONT_FACE: () => FONT_FACE,
|
|
6429
|
-
FONT_FAMILY: () =>
|
|
6429
|
+
FONT_FAMILY: () => FONT_FAMILY2,
|
|
6430
6430
|
FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
|
|
6431
|
-
GRADIENT: () =>
|
|
6431
|
+
GRADIENT: () => GRADIENT2,
|
|
6432
6432
|
ICONS: () => ICONS,
|
|
6433
6433
|
MEDIA: () => MEDIA,
|
|
6434
6434
|
RESET: () => RESET,
|
|
6435
6435
|
SEQUENCE: () => SEQUENCE,
|
|
6436
|
-
SPACING: () =>
|
|
6436
|
+
SPACING: () => SPACING2,
|
|
6437
6437
|
SVG: () => SVG,
|
|
6438
6438
|
SVG_DATA: () => SVG_DATA,
|
|
6439
6439
|
TEMPLATES: () => TEMPLATES,
|
|
6440
|
-
THEME: () =>
|
|
6440
|
+
THEME: () => THEME2,
|
|
6441
6441
|
TIMING: () => TIMING,
|
|
6442
|
-
TYPOGRAPHY: () =>
|
|
6442
|
+
TYPOGRAPHY: () => TYPOGRAPHY2,
|
|
6443
6443
|
UNIT: () => UNIT,
|
|
6444
6444
|
VALUE_TRANSFORMERS: () => VALUE_TRANSFORMERS,
|
|
6445
6445
|
activateConfig: () => activateConfig,
|
|
@@ -6563,7 +6563,7 @@ var require_cjs9 = __commonJS({
|
|
|
6563
6563
|
setVariables: () => setVariables
|
|
6564
6564
|
});
|
|
6565
6565
|
var import_globals2 = __toESM2(require_cjs13(), 1);
|
|
6566
|
-
var
|
|
6566
|
+
var import_utils21 = __toESM2(require_cjs22(), 1);
|
|
6567
6567
|
var ENV2 = "development";
|
|
6568
6568
|
var colorStringToRgbaArray = (color) => {
|
|
6569
6569
|
if (color === "")
|
|
@@ -6691,9 +6691,9 @@ var require_cjs9 = __commonJS({
|
|
|
6691
6691
|
return `rgba(${arr})`;
|
|
6692
6692
|
};
|
|
6693
6693
|
var getRgbTone = (rgb, tone) => {
|
|
6694
|
-
if ((0,
|
|
6694
|
+
if ((0, import_utils21.isString)(rgb))
|
|
6695
6695
|
rgb = rgb.split(", ").map((v) => parseFloat(v));
|
|
6696
|
-
if ((0,
|
|
6696
|
+
if ((0, import_utils21.isNumber)(tone))
|
|
6697
6697
|
tone += "";
|
|
6698
6698
|
const toHex = rgbArrayToHex(rgb);
|
|
6699
6699
|
const abs2 = tone.slice(0, 1);
|
|
@@ -6779,25 +6779,25 @@ var require_cjs9 = __commonJS({
|
|
|
6779
6779
|
ANIMATION: () => ANIMATION2,
|
|
6780
6780
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
6781
6781
|
CASES: () => CASES,
|
|
6782
|
-
COLOR: () =>
|
|
6782
|
+
COLOR: () => COLOR3,
|
|
6783
6783
|
DEVICES: () => DEVICES,
|
|
6784
6784
|
DOCUMENT: () => DOCUMENT,
|
|
6785
|
-
FONT: () =>
|
|
6785
|
+
FONT: () => FONT2,
|
|
6786
6786
|
FONT_FACE: () => FONT_FACE,
|
|
6787
|
-
FONT_FAMILY: () =>
|
|
6787
|
+
FONT_FAMILY: () => FONT_FAMILY2,
|
|
6788
6788
|
FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
|
|
6789
|
-
GRADIENT: () =>
|
|
6789
|
+
GRADIENT: () => GRADIENT2,
|
|
6790
6790
|
ICONS: () => ICONS,
|
|
6791
6791
|
MEDIA: () => MEDIA,
|
|
6792
6792
|
RESET: () => RESET,
|
|
6793
6793
|
SEQUENCE: () => SEQUENCE,
|
|
6794
|
-
SPACING: () =>
|
|
6794
|
+
SPACING: () => SPACING2,
|
|
6795
6795
|
SVG: () => SVG,
|
|
6796
6796
|
SVG_DATA: () => SVG_DATA,
|
|
6797
6797
|
TEMPLATES: () => TEMPLATES,
|
|
6798
|
-
THEME: () =>
|
|
6798
|
+
THEME: () => THEME2,
|
|
6799
6799
|
TIMING: () => TIMING,
|
|
6800
|
-
TYPOGRAPHY: () =>
|
|
6800
|
+
TYPOGRAPHY: () => TYPOGRAPHY2,
|
|
6801
6801
|
UNIT: () => UNIT
|
|
6802
6802
|
});
|
|
6803
6803
|
var SEQUENCE = {
|
|
@@ -6844,9 +6844,9 @@ var require_cjs9 = __commonJS({
|
|
|
6844
6844
|
scales: {},
|
|
6845
6845
|
vars: {}
|
|
6846
6846
|
};
|
|
6847
|
-
var
|
|
6848
|
-
var
|
|
6849
|
-
var
|
|
6847
|
+
var TYPOGRAPHY2 = defaultProps;
|
|
6848
|
+
var FONT2 = {};
|
|
6849
|
+
var FONT_FAMILY2 = {};
|
|
6850
6850
|
var FONT_FAMILY_TYPES = {
|
|
6851
6851
|
"sans-serif": "Helvetica, Arial, sans-serif, --system-default",
|
|
6852
6852
|
serif: "Times New Roman, Georgia, serif, --system-default",
|
|
@@ -6880,7 +6880,7 @@ var require_cjs9 = __commonJS({
|
|
|
6880
6880
|
print: "print"
|
|
6881
6881
|
};
|
|
6882
6882
|
var defaultProps2 = {
|
|
6883
|
-
base:
|
|
6883
|
+
base: TYPOGRAPHY2.base,
|
|
6884
6884
|
type: "spacing",
|
|
6885
6885
|
ratio: SEQUENCE.phi,
|
|
6886
6886
|
range: [-5, 15],
|
|
@@ -6890,10 +6890,10 @@ var require_cjs9 = __commonJS({
|
|
|
6890
6890
|
scales: {},
|
|
6891
6891
|
vars: {}
|
|
6892
6892
|
};
|
|
6893
|
-
var
|
|
6894
|
-
var
|
|
6895
|
-
var
|
|
6896
|
-
var
|
|
6893
|
+
var SPACING2 = defaultProps2;
|
|
6894
|
+
var COLOR3 = {};
|
|
6895
|
+
var GRADIENT2 = {};
|
|
6896
|
+
var THEME2 = {};
|
|
6897
6897
|
var ICONS = {};
|
|
6898
6898
|
var defaultProps3 = {
|
|
6899
6899
|
default: 150,
|
|
@@ -7272,8 +7272,8 @@ var require_cjs9 = __commonJS({
|
|
|
7272
7272
|
if (key && value2[key])
|
|
7273
7273
|
value2 = value2[key];
|
|
7274
7274
|
const [name, alpha, tone] = (0, import_utils92.isArray)(value2) ? value2 : value2.split(" ");
|
|
7275
|
-
const { COLOR: COLOR22, GRADIENT:
|
|
7276
|
-
let val = COLOR22[name] ||
|
|
7275
|
+
const { COLOR: COLOR22, GRADIENT: GRADIENT22 } = CONFIG22;
|
|
7276
|
+
let val = COLOR22[name] || GRADIENT22[name];
|
|
7277
7277
|
if (!val) {
|
|
7278
7278
|
if (CONFIG22.verbose)
|
|
7279
7279
|
console.warn("Can't find color ", name);
|
|
@@ -7311,8 +7311,8 @@ var require_cjs9 = __commonJS({
|
|
|
7311
7311
|
if (value2.slice(0, 2) === "--")
|
|
7312
7312
|
return `var(${value2})`;
|
|
7313
7313
|
const [name] = (0, import_utils92.isArray)(value2) ? value2 : value2.split(" ");
|
|
7314
|
-
const { COLOR: COLOR22, GRADIENT:
|
|
7315
|
-
const val = COLOR22[name] ||
|
|
7314
|
+
const { COLOR: COLOR22, GRADIENT: GRADIENT22 } = CONFIG22;
|
|
7315
|
+
const val = COLOR22[name] || GRADIENT22[name];
|
|
7316
7316
|
const isObj = (0, import_utils92.isObject)(val);
|
|
7317
7317
|
if (isObj && val.value)
|
|
7318
7318
|
return getColor2(value2, `@${globalTheme}`, config);
|
|
@@ -7412,10 +7412,10 @@ var require_cjs9 = __commonJS({
|
|
|
7412
7412
|
const CONFIG22 = getActiveConfig3();
|
|
7413
7413
|
if (CONFIG22.useVariable)
|
|
7414
7414
|
return getMediaTheme2(value2, modifier);
|
|
7415
|
-
const { THEME:
|
|
7415
|
+
const { THEME: THEME22 } = CONFIG22;
|
|
7416
7416
|
if ((0, import_utils112.isString)(value2)) {
|
|
7417
7417
|
const [theme, subtheme] = value2.split(" ");
|
|
7418
|
-
const isOurTheme =
|
|
7418
|
+
const isOurTheme = THEME22[theme];
|
|
7419
7419
|
if (isOurTheme) {
|
|
7420
7420
|
if (!subtheme && !modifier)
|
|
7421
7421
|
return getThemeValue(isOurTheme);
|
|
@@ -7425,7 +7425,7 @@ var require_cjs9 = __commonJS({
|
|
|
7425
7425
|
if ((0, import_utils112.isObjectLike)(value2) && value2[1]) {
|
|
7426
7426
|
const themeName = value2[0];
|
|
7427
7427
|
const subThemeName = value2[1];
|
|
7428
|
-
const { helpers, media, state } =
|
|
7428
|
+
const { helpers, media, state } = THEME22[themeName];
|
|
7429
7429
|
if (media && media[subThemeName])
|
|
7430
7430
|
return getThemeValue(media[subThemeName]);
|
|
7431
7431
|
if (helpers && helpers[subThemeName])
|
|
@@ -7548,8 +7548,8 @@ var require_cjs9 = __commonJS({
|
|
|
7548
7548
|
}
|
|
7549
7549
|
}
|
|
7550
7550
|
if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
|
|
7551
|
-
const { THEME:
|
|
7552
|
-
const value2 =
|
|
7551
|
+
const { THEME: THEME22 } = CONFIG22;
|
|
7552
|
+
const value2 = THEME22[val.slice(2)];
|
|
7553
7553
|
const getReferenced = getMediaTheme2(value2, prefers);
|
|
7554
7554
|
return getReferenced;
|
|
7555
7555
|
}
|
|
@@ -7612,15 +7612,15 @@ var require_cjs9 = __commonJS({
|
|
|
7612
7612
|
};
|
|
7613
7613
|
var getFontFamily2 = (key, factory) => {
|
|
7614
7614
|
const CONFIG22 = getActiveConfig3();
|
|
7615
|
-
const { FONT_FAMILY:
|
|
7616
|
-
return getDefaultOrFirstKey(factory ||
|
|
7615
|
+
const { FONT_FAMILY: FONT_FAMILY22 } = CONFIG22;
|
|
7616
|
+
return getDefaultOrFirstKey(factory || FONT_FAMILY22, key);
|
|
7617
7617
|
};
|
|
7618
7618
|
var setFontFamily = (val, key) => {
|
|
7619
7619
|
const CONFIG22 = getActiveConfig3();
|
|
7620
|
-
const { FONT_FAMILY:
|
|
7620
|
+
const { FONT_FAMILY: FONT_FAMILY22, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
|
|
7621
7621
|
let { value: value2, type } = val;
|
|
7622
7622
|
if (val.isDefault)
|
|
7623
|
-
|
|
7623
|
+
FONT_FAMILY22.default = key;
|
|
7624
7624
|
if ((0, import_utils122.isObject)(value2))
|
|
7625
7625
|
value2 = arrayzeValue2(value2);
|
|
7626
7626
|
const CSSvar = `--font-family-${key}`;
|
|
@@ -7630,7 +7630,7 @@ var require_cjs9 = __commonJS({
|
|
|
7630
7630
|
var import_utils152 = __toESM2(require_cjs22(), 1);
|
|
7631
7631
|
var runThroughMedia = (props4) => {
|
|
7632
7632
|
const CONFIG22 = getActiveConfig3();
|
|
7633
|
-
const { TYPOGRAPHY:
|
|
7633
|
+
const { TYPOGRAPHY: TYPOGRAPHY22, MEDIA: MEDIA2 } = CONFIG22;
|
|
7634
7634
|
for (const prop in props4) {
|
|
7635
7635
|
const mediaProps = props4[prop];
|
|
7636
7636
|
if (prop.slice(0, 1) === "@") {
|
|
@@ -7652,8 +7652,8 @@ var require_cjs9 = __commonJS({
|
|
|
7652
7652
|
const mediaName = prop.slice(1);
|
|
7653
7653
|
applySequenceVars(mediaProps, mediaName);
|
|
7654
7654
|
const query = MEDIA2[mediaName];
|
|
7655
|
-
|
|
7656
|
-
fontSize: mediaProps.base /
|
|
7655
|
+
TYPOGRAPHY22.templates[`@media screen and ${query}`] = {
|
|
7656
|
+
fontSize: mediaProps.base / TYPOGRAPHY22.browserDefault + unit
|
|
7657
7657
|
};
|
|
7658
7658
|
}
|
|
7659
7659
|
}
|
|
@@ -7679,19 +7679,19 @@ var require_cjs9 = __commonJS({
|
|
|
7679
7679
|
};
|
|
7680
7680
|
var applyTypographySequence = () => {
|
|
7681
7681
|
const CONFIG22 = getActiveConfig3();
|
|
7682
|
-
const { TYPOGRAPHY:
|
|
7683
|
-
generateSequence(
|
|
7684
|
-
applyHeadings(
|
|
7685
|
-
applySequenceVars(
|
|
7686
|
-
runThroughMedia(
|
|
7682
|
+
const { TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
|
|
7683
|
+
generateSequence(TYPOGRAPHY22);
|
|
7684
|
+
applyHeadings(TYPOGRAPHY22);
|
|
7685
|
+
applySequenceVars(TYPOGRAPHY22);
|
|
7686
|
+
runThroughMedia(TYPOGRAPHY22);
|
|
7687
7687
|
};
|
|
7688
7688
|
var getFontSizeByKey2 = (value2) => {
|
|
7689
7689
|
const CONFIG22 = getActiveConfig3();
|
|
7690
|
-
const { TYPOGRAPHY:
|
|
7690
|
+
const { TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
|
|
7691
7691
|
return getSequenceValuePropertyPair(
|
|
7692
7692
|
value2,
|
|
7693
7693
|
"fontSize",
|
|
7694
|
-
|
|
7694
|
+
TYPOGRAPHY22
|
|
7695
7695
|
);
|
|
7696
7696
|
};
|
|
7697
7697
|
var import_utils182 = __toESM2(require_cjs22(), 1);
|
|
@@ -7721,16 +7721,16 @@ var require_cjs9 = __commonJS({
|
|
|
7721
7721
|
};
|
|
7722
7722
|
var applySpacingSequence = () => {
|
|
7723
7723
|
const CONFIG22 = getActiveConfig3();
|
|
7724
|
-
const { SPACING:
|
|
7725
|
-
generateSequence(
|
|
7726
|
-
applySequenceVars(
|
|
7727
|
-
runThroughMedia2(
|
|
7724
|
+
const { SPACING: SPACING22 } = CONFIG22;
|
|
7725
|
+
generateSequence(SPACING22);
|
|
7726
|
+
applySequenceVars(SPACING22);
|
|
7727
|
+
runThroughMedia2(SPACING22);
|
|
7728
7728
|
};
|
|
7729
7729
|
var getSequence = (sequenceProps) => {
|
|
7730
7730
|
const CONFIG22 = getActiveConfig3();
|
|
7731
|
-
const { SPACING:
|
|
7731
|
+
const { SPACING: SPACING22 } = CONFIG22;
|
|
7732
7732
|
if (!sequenceProps)
|
|
7733
|
-
return
|
|
7733
|
+
return SPACING22;
|
|
7734
7734
|
const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
|
|
7735
7735
|
return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
|
|
7736
7736
|
};
|
|
@@ -7768,14 +7768,14 @@ var require_cjs9 = __commonJS({
|
|
|
7768
7768
|
};
|
|
7769
7769
|
var getSpacingBasedOnRatio4 = (props4, propertyName, val) => {
|
|
7770
7770
|
const CONFIG22 = getActiveConfig3();
|
|
7771
|
-
const { SPACING:
|
|
7771
|
+
const { SPACING: SPACING22 } = CONFIG22;
|
|
7772
7772
|
const { spacingRatio, unit } = props4;
|
|
7773
7773
|
const value2 = val || props4[propertyName];
|
|
7774
7774
|
if (spacingRatio) {
|
|
7775
|
-
let sequenceProps =
|
|
7775
|
+
let sequenceProps = SPACING22[spacingRatio];
|
|
7776
7776
|
if (!sequenceProps) {
|
|
7777
|
-
const { type, base, range, subSequence } =
|
|
7778
|
-
sequenceProps =
|
|
7777
|
+
const { type, base, range, subSequence } = SPACING22;
|
|
7778
|
+
sequenceProps = SPACING22[spacingRatio] = (0, import_utils182.merge)({
|
|
7779
7779
|
ratio: spacingRatio,
|
|
7780
7780
|
type: type + "-" + spacingRatio,
|
|
7781
7781
|
unit,
|
|
@@ -7787,8 +7787,8 @@ var require_cjs9 = __commonJS({
|
|
|
7787
7787
|
base,
|
|
7788
7788
|
range,
|
|
7789
7789
|
subSequence,
|
|
7790
|
-
ratio:
|
|
7791
|
-
unit:
|
|
7790
|
+
ratio: SPACING22.ratio,
|
|
7791
|
+
unit: SPACING22.unit
|
|
7792
7792
|
});
|
|
7793
7793
|
}
|
|
7794
7794
|
applySequenceVars(sequenceProps, null, { useDefault: false });
|
|
@@ -7819,12 +7819,12 @@ var require_cjs9 = __commonJS({
|
|
|
7819
7819
|
var import_utils222 = __toESM2(require_cjs22(), 1);
|
|
7820
7820
|
var applyDocument = () => {
|
|
7821
7821
|
const CONFIG22 = getActiveConfig3();
|
|
7822
|
-
const { DOCUMENT: DOCUMENT2, FONT_FAMILY:
|
|
7822
|
+
const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY22, THEME: THEME22, TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
|
|
7823
7823
|
return (0, import_utils222.merge)(DOCUMENT2, {
|
|
7824
|
-
theme:
|
|
7825
|
-
fontFamily: getDefaultOrFirstKey(
|
|
7826
|
-
fontSize:
|
|
7827
|
-
lineHeight:
|
|
7824
|
+
theme: THEME22.document,
|
|
7825
|
+
fontFamily: getDefaultOrFirstKey(FONT_FAMILY22),
|
|
7826
|
+
fontSize: TYPOGRAPHY22.base,
|
|
7827
|
+
lineHeight: TYPOGRAPHY22.lineHeight
|
|
7828
7828
|
});
|
|
7829
7829
|
};
|
|
7830
7830
|
var import_globals22 = __toESM2(require_cjs13(), 1);
|
|
@@ -7903,11 +7903,11 @@ var require_cjs9 = __commonJS({
|
|
|
7903
7903
|
var import_utils25 = __toESM2(require_cjs22(), 1);
|
|
7904
7904
|
var applyReset = (reset = {}) => {
|
|
7905
7905
|
const CONFIG22 = getActiveConfig3();
|
|
7906
|
-
const { RESET: RESET2, TYPOGRAPHY:
|
|
7906
|
+
const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY22, DOCUMENT: DOCUMENT2 } = CONFIG22;
|
|
7907
7907
|
if (RESET2) {
|
|
7908
7908
|
if (RESET2[":root"]) {
|
|
7909
7909
|
const configReset = RESET2;
|
|
7910
|
-
const configTemplates =
|
|
7910
|
+
const configTemplates = TYPOGRAPHY22.templates;
|
|
7911
7911
|
configReset.body = {
|
|
7912
7912
|
...CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {},
|
|
7913
7913
|
...configTemplates.body
|
|
@@ -7919,7 +7919,7 @@ var require_cjs9 = __commonJS({
|
|
|
7919
7919
|
configReset.h5 = configTemplates.h5;
|
|
7920
7920
|
configReset.h6 = configTemplates.h6;
|
|
7921
7921
|
}
|
|
7922
|
-
const { body, ...templates } =
|
|
7922
|
+
const { body, ...templates } = TYPOGRAPHY22.templates;
|
|
7923
7923
|
const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
|
|
7924
7924
|
if (RESET2.html)
|
|
7925
7925
|
(0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
|
|
@@ -7935,7 +7935,7 @@ var require_cjs9 = __commonJS({
|
|
|
7935
7935
|
WebkitFontSmoothing: "subpixel-antialiased",
|
|
7936
7936
|
scrollBehavior: "smooth",
|
|
7937
7937
|
...globalTheme,
|
|
7938
|
-
fontSize:
|
|
7938
|
+
fontSize: TYPOGRAPHY22.browserDefault + "px",
|
|
7939
7939
|
fontFamily: DOCUMENT2.fontFamily,
|
|
7940
7940
|
lineHeight: DOCUMENT2.lineHeight
|
|
7941
7941
|
},
|
|
@@ -7944,7 +7944,7 @@ var require_cjs9 = __commonJS({
|
|
|
7944
7944
|
height: "100%",
|
|
7945
7945
|
margin: 0,
|
|
7946
7946
|
fontFamily: DOCUMENT2.fontFamily,
|
|
7947
|
-
fontSize:
|
|
7947
|
+
fontSize: TYPOGRAPHY22.base / TYPOGRAPHY22.browserDefault + CONFIG22.UNIT.default,
|
|
7948
7948
|
...templates,
|
|
7949
7949
|
...body
|
|
7950
7950
|
},
|
|
@@ -8183,8 +8183,8 @@ var require_cjs10 = __commonJS({
|
|
|
8183
8183
|
router: () => router2
|
|
8184
8184
|
});
|
|
8185
8185
|
module2.exports = __toCommonJS2(router_exports);
|
|
8186
|
-
var
|
|
8187
|
-
var getActiveRoute = (level = 0, route =
|
|
8186
|
+
var import_utils21 = require_cjs();
|
|
8187
|
+
var getActiveRoute = (level = 0, route = import_utils21.window.location.pathname) => {
|
|
8188
8188
|
const routeArray = route.split("/");
|
|
8189
8189
|
const activeRoute = routeArray[level + 1];
|
|
8190
8190
|
if (activeRoute)
|
|
@@ -8198,7 +8198,7 @@ var require_cjs10 = __commonJS({
|
|
|
8198
8198
|
initialRender: false,
|
|
8199
8199
|
scrollToTop: true,
|
|
8200
8200
|
scrollToNode: false,
|
|
8201
|
-
scrollNode:
|
|
8201
|
+
scrollNode: import_utils21.document && import_utils21.document.documentElement,
|
|
8202
8202
|
scrollBody: false,
|
|
8203
8203
|
useFragment: false,
|
|
8204
8204
|
updateState: true,
|
|
@@ -8213,13 +8213,13 @@ var require_cjs10 = __commonJS({
|
|
|
8213
8213
|
const route = getActiveRoute(options.level, pathname);
|
|
8214
8214
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
8215
8215
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
8216
|
-
const hashChanged = hash2 && hash2 !==
|
|
8216
|
+
const hashChanged = hash2 && hash2 !== import_utils21.window.location.hash.slice(1);
|
|
8217
8217
|
const pathChanged = pathname !== lastPathname;
|
|
8218
8218
|
lastPathname = pathname;
|
|
8219
8219
|
if (!content)
|
|
8220
8220
|
return;
|
|
8221
8221
|
if (options.pushState) {
|
|
8222
|
-
|
|
8222
|
+
import_utils21.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
8223
8223
|
}
|
|
8224
8224
|
if (pathChanged || !hashChanged) {
|
|
8225
8225
|
if (options.updateState) {
|
|
@@ -8245,7 +8245,7 @@ var require_cjs10 = __commonJS({
|
|
|
8245
8245
|
});
|
|
8246
8246
|
}
|
|
8247
8247
|
if (hash2) {
|
|
8248
|
-
const activeNode =
|
|
8248
|
+
const activeNode = import_utils21.document.getElementById(hash2);
|
|
8249
8249
|
if (activeNode) {
|
|
8250
8250
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
8251
8251
|
scrollNode.scrollTo({
|
|
@@ -8397,16 +8397,250 @@ var require_cjs12 = __commonJS({
|
|
|
8397
8397
|
}
|
|
8398
8398
|
});
|
|
8399
8399
|
|
|
8400
|
+
// ../../uikit/icons/default-icons/src/logo.svg
|
|
8401
|
+
var require_logo = __commonJS({
|
|
8402
|
+
"../../uikit/icons/default-icons/src/logo.svg"() {
|
|
8403
|
+
}
|
|
8404
|
+
});
|
|
8405
|
+
|
|
8406
|
+
// ../../uikit/icons/default-icons/src/arrow-down-circle.svg
|
|
8407
|
+
var require_arrow_down_circle = __commonJS({
|
|
8408
|
+
"../../uikit/icons/default-icons/src/arrow-down-circle.svg"() {
|
|
8409
|
+
}
|
|
8410
|
+
});
|
|
8411
|
+
|
|
8412
|
+
// ../../uikit/icons/default-icons/src/arrow-down-left.svg
|
|
8413
|
+
var require_arrow_down_left = __commonJS({
|
|
8414
|
+
"../../uikit/icons/default-icons/src/arrow-down-left.svg"() {
|
|
8415
|
+
}
|
|
8416
|
+
});
|
|
8417
|
+
|
|
8418
|
+
// ../../uikit/icons/default-icons/src/arrow-down-right.svg
|
|
8419
|
+
var require_arrow_down_right = __commonJS({
|
|
8420
|
+
"../../uikit/icons/default-icons/src/arrow-down-right.svg"() {
|
|
8421
|
+
}
|
|
8422
|
+
});
|
|
8423
|
+
|
|
8424
|
+
// ../../uikit/icons/default-icons/src/arrow-down.svg
|
|
8425
|
+
var require_arrow_down = __commonJS({
|
|
8426
|
+
"../../uikit/icons/default-icons/src/arrow-down.svg"() {
|
|
8427
|
+
}
|
|
8428
|
+
});
|
|
8429
|
+
|
|
8430
|
+
// ../../uikit/icons/default-icons/src/arrow-left-circle.svg
|
|
8431
|
+
var require_arrow_left_circle = __commonJS({
|
|
8432
|
+
"../../uikit/icons/default-icons/src/arrow-left-circle.svg"() {
|
|
8433
|
+
}
|
|
8434
|
+
});
|
|
8435
|
+
|
|
8436
|
+
// ../../uikit/icons/default-icons/src/arrow-left.svg
|
|
8437
|
+
var require_arrow_left = __commonJS({
|
|
8438
|
+
"../../uikit/icons/default-icons/src/arrow-left.svg"() {
|
|
8439
|
+
}
|
|
8440
|
+
});
|
|
8441
|
+
|
|
8442
|
+
// ../../uikit/icons/default-icons/src/arrow-right.svg
|
|
8443
|
+
var require_arrow_right = __commonJS({
|
|
8444
|
+
"../../uikit/icons/default-icons/src/arrow-right.svg"() {
|
|
8445
|
+
}
|
|
8446
|
+
});
|
|
8447
|
+
|
|
8448
|
+
// ../../uikit/icons/default-icons/src/arrow-right-circle.svg
|
|
8449
|
+
var require_arrow_right_circle = __commonJS({
|
|
8450
|
+
"../../uikit/icons/default-icons/src/arrow-right-circle.svg"() {
|
|
8451
|
+
}
|
|
8452
|
+
});
|
|
8453
|
+
|
|
8454
|
+
// ../../uikit/icons/default-icons/src/arrow-up-circle.svg
|
|
8455
|
+
var require_arrow_up_circle = __commonJS({
|
|
8456
|
+
"../../uikit/icons/default-icons/src/arrow-up-circle.svg"() {
|
|
8457
|
+
}
|
|
8458
|
+
});
|
|
8459
|
+
|
|
8460
|
+
// ../../uikit/icons/default-icons/src/arrow-up-left.svg
|
|
8461
|
+
var require_arrow_up_left = __commonJS({
|
|
8462
|
+
"../../uikit/icons/default-icons/src/arrow-up-left.svg"() {
|
|
8463
|
+
}
|
|
8464
|
+
});
|
|
8465
|
+
|
|
8466
|
+
// ../../uikit/icons/default-icons/src/arrow-up-right.svg
|
|
8467
|
+
var require_arrow_up_right = __commonJS({
|
|
8468
|
+
"../../uikit/icons/default-icons/src/arrow-up-right.svg"() {
|
|
8469
|
+
}
|
|
8470
|
+
});
|
|
8471
|
+
|
|
8472
|
+
// ../../uikit/icons/default-icons/src/arrow-up.svg
|
|
8473
|
+
var require_arrow_up = __commonJS({
|
|
8474
|
+
"../../uikit/icons/default-icons/src/arrow-up.svg"() {
|
|
8475
|
+
}
|
|
8476
|
+
});
|
|
8477
|
+
|
|
8478
|
+
// ../../uikit/icons/default-icons/src/check-circle.svg
|
|
8479
|
+
var require_check_circle = __commonJS({
|
|
8480
|
+
"../../uikit/icons/default-icons/src/check-circle.svg"() {
|
|
8481
|
+
}
|
|
8482
|
+
});
|
|
8483
|
+
|
|
8484
|
+
// ../../uikit/icons/default-icons/src/check.svg
|
|
8485
|
+
var require_check = __commonJS({
|
|
8486
|
+
"../../uikit/icons/default-icons/src/check.svg"() {
|
|
8487
|
+
}
|
|
8488
|
+
});
|
|
8489
|
+
|
|
8490
|
+
// ../../uikit/icons/default-icons/src/chevron-down.svg
|
|
8491
|
+
var require_chevron_down = __commonJS({
|
|
8492
|
+
"../../uikit/icons/default-icons/src/chevron-down.svg"() {
|
|
8493
|
+
}
|
|
8494
|
+
});
|
|
8495
|
+
|
|
8496
|
+
// ../../uikit/icons/default-icons/src/chevron-left.svg
|
|
8497
|
+
var require_chevron_left = __commonJS({
|
|
8498
|
+
"../../uikit/icons/default-icons/src/chevron-left.svg"() {
|
|
8499
|
+
}
|
|
8500
|
+
});
|
|
8501
|
+
|
|
8502
|
+
// ../../uikit/icons/default-icons/src/chevron-right.svg
|
|
8503
|
+
var require_chevron_right = __commonJS({
|
|
8504
|
+
"../../uikit/icons/default-icons/src/chevron-right.svg"() {
|
|
8505
|
+
}
|
|
8506
|
+
});
|
|
8507
|
+
|
|
8508
|
+
// ../../uikit/icons/default-icons/src/chevron-up.svg
|
|
8509
|
+
var require_chevron_up = __commonJS({
|
|
8510
|
+
"../../uikit/icons/default-icons/src/chevron-up.svg"() {
|
|
8511
|
+
}
|
|
8512
|
+
});
|
|
8513
|
+
|
|
8514
|
+
// ../../uikit/icons/default-icons/src/copy.svg
|
|
8515
|
+
var require_copy = __commonJS({
|
|
8516
|
+
"../../uikit/icons/default-icons/src/copy.svg"() {
|
|
8517
|
+
}
|
|
8518
|
+
});
|
|
8519
|
+
|
|
8520
|
+
// ../../uikit/icons/default-icons/src/dribbble.svg
|
|
8521
|
+
var require_dribbble = __commonJS({
|
|
8522
|
+
"../../uikit/icons/default-icons/src/dribbble.svg"() {
|
|
8523
|
+
}
|
|
8524
|
+
});
|
|
8525
|
+
|
|
8526
|
+
// ../../uikit/icons/default-icons/src/eye-off.svg
|
|
8527
|
+
var require_eye_off = __commonJS({
|
|
8528
|
+
"../../uikit/icons/default-icons/src/eye-off.svg"() {
|
|
8529
|
+
}
|
|
8530
|
+
});
|
|
8531
|
+
|
|
8532
|
+
// ../../uikit/icons/default-icons/src/eye.svg
|
|
8533
|
+
var require_eye = __commonJS({
|
|
8534
|
+
"../../uikit/icons/default-icons/src/eye.svg"() {
|
|
8535
|
+
}
|
|
8536
|
+
});
|
|
8537
|
+
|
|
8538
|
+
// ../../uikit/icons/default-icons/src/file.svg
|
|
8539
|
+
var require_file = __commonJS({
|
|
8540
|
+
"../../uikit/icons/default-icons/src/file.svg"() {
|
|
8541
|
+
}
|
|
8542
|
+
});
|
|
8543
|
+
|
|
8544
|
+
// ../../uikit/icons/default-icons/src/info.svg
|
|
8545
|
+
var require_info = __commonJS({
|
|
8546
|
+
"../../uikit/icons/default-icons/src/info.svg"() {
|
|
8547
|
+
}
|
|
8548
|
+
});
|
|
8549
|
+
|
|
8550
|
+
// ../../uikit/icons/default-icons/src/minus.svg
|
|
8551
|
+
var require_minus = __commonJS({
|
|
8552
|
+
"../../uikit/icons/default-icons/src/minus.svg"() {
|
|
8553
|
+
}
|
|
8554
|
+
});
|
|
8555
|
+
|
|
8556
|
+
// ../../uikit/icons/default-icons/src/moon.svg
|
|
8557
|
+
var require_moon = __commonJS({
|
|
8558
|
+
"../../uikit/icons/default-icons/src/moon.svg"() {
|
|
8559
|
+
}
|
|
8560
|
+
});
|
|
8561
|
+
|
|
8562
|
+
// ../../uikit/icons/default-icons/src/more-horizontal.svg
|
|
8563
|
+
var require_more_horizontal = __commonJS({
|
|
8564
|
+
"../../uikit/icons/default-icons/src/more-horizontal.svg"() {
|
|
8565
|
+
}
|
|
8566
|
+
});
|
|
8567
|
+
|
|
8568
|
+
// ../../uikit/icons/default-icons/src/more-vertical.svg
|
|
8569
|
+
var require_more_vertical = __commonJS({
|
|
8570
|
+
"../../uikit/icons/default-icons/src/more-vertical.svg"() {
|
|
8571
|
+
}
|
|
8572
|
+
});
|
|
8573
|
+
|
|
8574
|
+
// ../../uikit/icons/default-icons/src/sun.svg
|
|
8575
|
+
var require_sun = __commonJS({
|
|
8576
|
+
"../../uikit/icons/default-icons/src/sun.svg"() {
|
|
8577
|
+
}
|
|
8578
|
+
});
|
|
8579
|
+
|
|
8580
|
+
// ../../uikit/icons/default-icons/src/send.svg
|
|
8581
|
+
var require_send = __commonJS({
|
|
8582
|
+
"../../uikit/icons/default-icons/src/send.svg"() {
|
|
8583
|
+
}
|
|
8584
|
+
});
|
|
8585
|
+
|
|
8586
|
+
// ../../uikit/icons/default-icons/src/smile.svg
|
|
8587
|
+
var require_smile = __commonJS({
|
|
8588
|
+
"../../uikit/icons/default-icons/src/smile.svg"() {
|
|
8589
|
+
}
|
|
8590
|
+
});
|
|
8591
|
+
|
|
8592
|
+
// ../../uikit/icons/default-icons/src/search.svg
|
|
8593
|
+
var require_search = __commonJS({
|
|
8594
|
+
"../../uikit/icons/default-icons/src/search.svg"() {
|
|
8595
|
+
}
|
|
8596
|
+
});
|
|
8597
|
+
|
|
8598
|
+
// ../../uikit/icons/default-icons/src/phone.svg
|
|
8599
|
+
var require_phone = __commonJS({
|
|
8600
|
+
"../../uikit/icons/default-icons/src/phone.svg"() {
|
|
8601
|
+
}
|
|
8602
|
+
});
|
|
8603
|
+
|
|
8604
|
+
// ../../uikit/icons/default-icons/src/twitch.svg
|
|
8605
|
+
var require_twitch = __commonJS({
|
|
8606
|
+
"../../uikit/icons/default-icons/src/twitch.svg"() {
|
|
8607
|
+
}
|
|
8608
|
+
});
|
|
8609
|
+
|
|
8610
|
+
// ../../uikit/icons/default-icons/src/upload.svg
|
|
8611
|
+
var require_upload = __commonJS({
|
|
8612
|
+
"../../uikit/icons/default-icons/src/upload.svg"() {
|
|
8613
|
+
}
|
|
8614
|
+
});
|
|
8615
|
+
|
|
8616
|
+
// ../../uikit/icons/default-icons/src/video.svg
|
|
8617
|
+
var require_video = __commonJS({
|
|
8618
|
+
"../../uikit/icons/default-icons/src/video.svg"() {
|
|
8619
|
+
}
|
|
8620
|
+
});
|
|
8621
|
+
|
|
8622
|
+
// ../../uikit/icons/default-icons/src/x.svg
|
|
8623
|
+
var require_x = __commonJS({
|
|
8624
|
+
"../../uikit/icons/default-icons/src/x.svg"() {
|
|
8625
|
+
}
|
|
8626
|
+
});
|
|
8627
|
+
|
|
8628
|
+
// ../../uikit/icons/default-icons/src/plus.svg
|
|
8629
|
+
var require_plus = __commonJS({
|
|
8630
|
+
"../../uikit/icons/default-icons/src/plus.svg"() {
|
|
8631
|
+
}
|
|
8632
|
+
});
|
|
8633
|
+
|
|
8400
8634
|
// src/index.js
|
|
8401
8635
|
var src_exports = {};
|
|
8402
8636
|
__export(src_exports, {
|
|
8403
8637
|
create: () => create,
|
|
8404
8638
|
createSync: () => createSync,
|
|
8405
|
-
default: () =>
|
|
8639
|
+
default: () => src_default2
|
|
8406
8640
|
});
|
|
8407
8641
|
module.exports = __toCommonJS(src_exports);
|
|
8408
8642
|
var import_domql = __toESM(require_cjs8(), 1);
|
|
8409
|
-
var
|
|
8643
|
+
var import_utils20 = __toESM(require_cjs(), 1);
|
|
8410
8644
|
|
|
8411
8645
|
// src/utilImports.js
|
|
8412
8646
|
var utilImports_exports = {};
|
|
@@ -10250,10 +10484,12 @@ var Block = {
|
|
|
10250
10484
|
};
|
|
10251
10485
|
},
|
|
10252
10486
|
columns: ({ props: props4 }) => props4.columns && { columns: props4.columns },
|
|
10487
|
+
columnRule: ({ props: props4 }) => props4.columnRule && { columnRule: props4.columnRule },
|
|
10488
|
+
columnWidth: ({ props: props4 }) => props4.columnWidth && { columnWidth: props4.columnWidth },
|
|
10253
10489
|
columnGap: ({ props: props4, deps }) => props4.columnGap ? deps.getSpacingBasedOnRatio(props4, "columnGap") : null,
|
|
10254
|
-
columnSpan: ({ props: props4 }) => props4.columnSpan && {
|
|
10255
|
-
columnFill: ({ props: props4 }) => props4.columnFill && {
|
|
10256
|
-
columnCount: ({ props: props4 }) => props4.columnCount && {
|
|
10490
|
+
columnSpan: ({ props: props4 }) => props4.columnSpan && { columnSpan: props4.columnSpan },
|
|
10491
|
+
columnFill: ({ props: props4 }) => props4.columnFill && { columnFill: props4.columnFill },
|
|
10492
|
+
columnCount: ({ props: props4 }) => props4.columnCount && { columnCount: props4.columnCount }
|
|
10257
10493
|
}
|
|
10258
10494
|
};
|
|
10259
10495
|
var Hr = {
|
|
@@ -10905,6 +11141,8 @@ var Iframe = {
|
|
|
10905
11141
|
src: ({ props: props4 }) => props4.src,
|
|
10906
11142
|
loading: ({ props: props4 }) => props4.loading,
|
|
10907
11143
|
allowfullscreen: ({ props: props4 }) => props4.allowfullscreen,
|
|
11144
|
+
frameborder: ({ props: props4 }) => props4.frameborder,
|
|
11145
|
+
allow: ({ props: props4 }) => props4.allow,
|
|
10908
11146
|
referrerpolicy: ({ props: props4 }) => props4.referrerpolicy
|
|
10909
11147
|
}
|
|
10910
11148
|
};
|
|
@@ -12768,7 +13006,7 @@ var AvatarBundle = {
|
|
|
12768
13006
|
...[{}, {}, {}, {}]
|
|
12769
13007
|
};
|
|
12770
13008
|
|
|
12771
|
-
// ../../uikit/domql/Avatar/
|
|
13009
|
+
// ../../uikit/domql/Avatar/AvatarChooser.js
|
|
12772
13010
|
var AvatarChooser = {
|
|
12773
13011
|
extend: Button,
|
|
12774
13012
|
tag: "label",
|
|
@@ -12807,6 +13045,8 @@ var AvatarChooser = {
|
|
|
12807
13045
|
},
|
|
12808
13046
|
childExtend: { tag: "option" },
|
|
12809
13047
|
$setPropsCollection: ({ parent, state }) => {
|
|
13048
|
+
if (!parent.props.options)
|
|
13049
|
+
return [];
|
|
12810
13050
|
return parent.props.options.map((v) => {
|
|
12811
13051
|
if (v.text === state.key)
|
|
12812
13052
|
return { ...v, selected: true };
|
|
@@ -15465,23 +15705,23 @@ var transformDOMQLEmotion = (emotion2, options) => {
|
|
|
15465
15705
|
};
|
|
15466
15706
|
};
|
|
15467
15707
|
|
|
15708
|
+
// src/initEmotion.js
|
|
15709
|
+
var import_utils17 = __toESM(require_cjs(), 1);
|
|
15710
|
+
|
|
15468
15711
|
// src/options.js
|
|
15469
|
-
var
|
|
15470
|
-
|
|
15712
|
+
var DESIGN_SYSTEM_OPTIONS = {
|
|
15713
|
+
useReset: true,
|
|
15714
|
+
useVariable: true,
|
|
15715
|
+
useIconSprite: true,
|
|
15716
|
+
useSvgSprite: true,
|
|
15717
|
+
useDocumentTheme: true,
|
|
15718
|
+
useFontImport: true
|
|
15719
|
+
};
|
|
15720
|
+
var CREATE_OPTIONS = {
|
|
15721
|
+
defaultConfig: true,
|
|
15471
15722
|
state: {},
|
|
15472
15723
|
pages: {},
|
|
15473
|
-
designSystem: {
|
|
15474
|
-
useReset: true,
|
|
15475
|
-
useVariable: true,
|
|
15476
|
-
useIconSprite: true,
|
|
15477
|
-
useSvgSprite: true,
|
|
15478
|
-
useDocumentTheme: true,
|
|
15479
|
-
useFontImport: true
|
|
15480
|
-
},
|
|
15481
15724
|
components: {},
|
|
15482
|
-
initOptions: {
|
|
15483
|
-
emotion
|
|
15484
|
-
},
|
|
15485
15725
|
router: {
|
|
15486
15726
|
initRouter: true,
|
|
15487
15727
|
popState: true,
|
|
@@ -15489,21 +15729,317 @@ var options_default = {
|
|
|
15489
15729
|
},
|
|
15490
15730
|
define: defaultDefine
|
|
15491
15731
|
};
|
|
15732
|
+
var options_default = CREATE_OPTIONS;
|
|
15733
|
+
|
|
15734
|
+
// ../../uikit/icons/default-icons/index.js
|
|
15735
|
+
var default_icons_default = {
|
|
15736
|
+
symbols: require_logo(),
|
|
15737
|
+
arrowDownCircle: require_arrow_down_circle(),
|
|
15738
|
+
arrowDownLeft: require_arrow_down_left(),
|
|
15739
|
+
arrowDownRight: require_arrow_down_right(),
|
|
15740
|
+
arrowDown: require_arrow_down(),
|
|
15741
|
+
arrowLeftCircle: require_arrow_left_circle(),
|
|
15742
|
+
arrowLeft: require_arrow_left(),
|
|
15743
|
+
arrowRight: require_arrow_right(),
|
|
15744
|
+
arrowRightCircle: require_arrow_right_circle(),
|
|
15745
|
+
arrowUpCircle: require_arrow_up_circle(),
|
|
15746
|
+
arrowUpLeft: require_arrow_up_left(),
|
|
15747
|
+
arrowUpRight: require_arrow_up_right(),
|
|
15748
|
+
arrowUp: require_arrow_up(),
|
|
15749
|
+
checkCircle: require_check_circle(),
|
|
15750
|
+
check: require_check(),
|
|
15751
|
+
chevronDown: require_chevron_down(),
|
|
15752
|
+
chevronLeft: require_chevron_left(),
|
|
15753
|
+
chevronRight: require_chevron_right(),
|
|
15754
|
+
chevronUp: require_chevron_up(),
|
|
15755
|
+
copy: require_copy(),
|
|
15756
|
+
dribbble: require_dribbble(),
|
|
15757
|
+
eyeOff: require_eye_off(),
|
|
15758
|
+
eye: require_eye(),
|
|
15759
|
+
file: require_file(),
|
|
15760
|
+
info: require_info(),
|
|
15761
|
+
logo: require_logo(),
|
|
15762
|
+
minus: require_minus(),
|
|
15763
|
+
moon: require_moon(),
|
|
15764
|
+
moreHorizontal: require_more_horizontal(),
|
|
15765
|
+
moreVertical: require_more_vertical(),
|
|
15766
|
+
sun: require_sun(),
|
|
15767
|
+
send: require_send(),
|
|
15768
|
+
smile: require_smile(),
|
|
15769
|
+
search: require_search(),
|
|
15770
|
+
phone: require_phone(),
|
|
15771
|
+
twitch: require_twitch(),
|
|
15772
|
+
upload: require_upload(),
|
|
15773
|
+
video: require_video(),
|
|
15774
|
+
x: require_x(),
|
|
15775
|
+
plus: require_plus()
|
|
15776
|
+
};
|
|
15777
|
+
|
|
15778
|
+
// ../default-config/src/color.js
|
|
15779
|
+
var COLOR = {
|
|
15780
|
+
transparent: "rgba(0, 0, 0, 0)",
|
|
15781
|
+
black: "black",
|
|
15782
|
+
gray: "#141416",
|
|
15783
|
+
blue: "#0e80fd",
|
|
15784
|
+
indigo: "#50E1FF",
|
|
15785
|
+
green: "#59AC56",
|
|
15786
|
+
red: "#FE5B47",
|
|
15787
|
+
yellow: "#EDCB38",
|
|
15788
|
+
orange: "#E2862F",
|
|
15789
|
+
brown: "#7D6755",
|
|
15790
|
+
pink: "#FD8ABF",
|
|
15791
|
+
purple: "#7345AF",
|
|
15792
|
+
white: "white",
|
|
15793
|
+
green2: "#04F214",
|
|
15794
|
+
blue2: "#0474F2",
|
|
15795
|
+
gray2: "#A3A3A8",
|
|
15796
|
+
gray3: "#1C1C1F",
|
|
15797
|
+
gray4: "#BDBDC1"
|
|
15798
|
+
};
|
|
15799
|
+
var GRADIENT = {
|
|
15800
|
+
"gradient-blue": `linear-gradient(to right,
|
|
15801
|
+
rgba(4, 116, 242, 1),
|
|
15802
|
+
rgba(0, 48, 103, 1)
|
|
15803
|
+
)`,
|
|
15804
|
+
"gradient-dark": `linear-gradient(0deg,
|
|
15805
|
+
rgba(0,0,0,0.06) 0%,
|
|
15806
|
+
rgba(0,0,0,0.07) 100%
|
|
15807
|
+
)`,
|
|
15808
|
+
"gradient-dark-active": `linear-gradient(0deg,
|
|
15809
|
+
rgba(0,0,0,0.09) 0%,
|
|
15810
|
+
rgba(0,0,0,0.1) 100%
|
|
15811
|
+
)`,
|
|
15812
|
+
"gradient-light": `linear-gradient(
|
|
15813
|
+
0deg,
|
|
15814
|
+
rgba(255,255,255,0.05) 0%,
|
|
15815
|
+
rgba(255,255,255,0.06) 100%
|
|
15816
|
+
)`,
|
|
15817
|
+
"gradient-light-active": `linear-gradient(
|
|
15818
|
+
0deg,
|
|
15819
|
+
rgba(255,255,255,0.09) 0%,
|
|
15820
|
+
rgba(255,255,255,0.10) 100%
|
|
15821
|
+
)`,
|
|
15822
|
+
"gradient-colorful": `linear-gradient(60deg,
|
|
15823
|
+
#00A2E7 0%,
|
|
15824
|
+
#185DF3 31%,
|
|
15825
|
+
#1E54F0 36%,
|
|
15826
|
+
#8B4CCA 69%,
|
|
15827
|
+
#C66894 100%
|
|
15828
|
+
)`
|
|
15829
|
+
};
|
|
15830
|
+
|
|
15831
|
+
// ../default-config/src/theme.js
|
|
15832
|
+
var PRIORITIES = {
|
|
15833
|
+
primary: {
|
|
15834
|
+
"@dark": {
|
|
15835
|
+
color: "white",
|
|
15836
|
+
background: "blue",
|
|
15837
|
+
".color-only": {
|
|
15838
|
+
color: "blue"
|
|
15839
|
+
},
|
|
15840
|
+
".inactive": {
|
|
15841
|
+
background: "gray 1 +16"
|
|
15842
|
+
},
|
|
15843
|
+
".gradient": {
|
|
15844
|
+
color: "white",
|
|
15845
|
+
background: "gradient-blue"
|
|
15846
|
+
}
|
|
15847
|
+
},
|
|
15848
|
+
"@light": {
|
|
15849
|
+
color: "white",
|
|
15850
|
+
background: "gradient-blue",
|
|
15851
|
+
".color-only": {
|
|
15852
|
+
color: "blue"
|
|
15853
|
+
},
|
|
15854
|
+
".gradient": {
|
|
15855
|
+
color: "white",
|
|
15856
|
+
background: "gradient-colorful"
|
|
15857
|
+
}
|
|
15858
|
+
}
|
|
15859
|
+
},
|
|
15860
|
+
secondary: {
|
|
15861
|
+
"@dark": {
|
|
15862
|
+
color: "white",
|
|
15863
|
+
background: "white .1"
|
|
15864
|
+
},
|
|
15865
|
+
"@light": {
|
|
15866
|
+
color: "white",
|
|
15867
|
+
background: "blue"
|
|
15868
|
+
},
|
|
15869
|
+
".child": "--primary"
|
|
15870
|
+
},
|
|
15871
|
+
tertiary: {
|
|
15872
|
+
"@dark": {
|
|
15873
|
+
color: "white",
|
|
15874
|
+
background: "gray .92 +8"
|
|
15875
|
+
},
|
|
15876
|
+
"@light": {
|
|
15877
|
+
background: "gray .1"
|
|
15878
|
+
}
|
|
15879
|
+
},
|
|
15880
|
+
quaternary: {
|
|
15881
|
+
"@light": {
|
|
15882
|
+
color: "white",
|
|
15883
|
+
background: "gradient-light"
|
|
15884
|
+
},
|
|
15885
|
+
"@dark": {
|
|
15886
|
+
color: "white",
|
|
15887
|
+
background: "gradient-dark-active"
|
|
15888
|
+
}
|
|
15889
|
+
},
|
|
15890
|
+
quinary: {
|
|
15891
|
+
"@dark": {
|
|
15892
|
+
color: "gray 1 90",
|
|
15893
|
+
background: "gradient-light",
|
|
15894
|
+
":hover": {
|
|
15895
|
+
color: "gray 1 95",
|
|
15896
|
+
background: "gradient-light-active"
|
|
15897
|
+
},
|
|
15898
|
+
":focus": {
|
|
15899
|
+
color: "gray 1 120",
|
|
15900
|
+
background: "gradient-light-active"
|
|
15901
|
+
},
|
|
15902
|
+
":active": {
|
|
15903
|
+
color: "gray 1 120",
|
|
15904
|
+
background: "gradient-light-active"
|
|
15905
|
+
},
|
|
15906
|
+
".active": {
|
|
15907
|
+
color: "gray 1 120",
|
|
15908
|
+
background: "gradient-light-active"
|
|
15909
|
+
}
|
|
15910
|
+
},
|
|
15911
|
+
"@light": {
|
|
15912
|
+
color: "gray3",
|
|
15913
|
+
background: "gradient-dark",
|
|
15914
|
+
":hover": {
|
|
15915
|
+
color: "gray1",
|
|
15916
|
+
background: "gradient-dark-active"
|
|
15917
|
+
},
|
|
15918
|
+
":active": {
|
|
15919
|
+
color: "gray1",
|
|
15920
|
+
background: "gradient-dark-active"
|
|
15921
|
+
},
|
|
15922
|
+
".active": {
|
|
15923
|
+
color: "gray1",
|
|
15924
|
+
background: "gradient-dark-active"
|
|
15925
|
+
}
|
|
15926
|
+
}
|
|
15927
|
+
},
|
|
15928
|
+
alert: {
|
|
15929
|
+
"@dark": {
|
|
15930
|
+
color: "white",
|
|
15931
|
+
background: "red"
|
|
15932
|
+
}
|
|
15933
|
+
},
|
|
15934
|
+
warning: {
|
|
15935
|
+
"@dark": {
|
|
15936
|
+
color: "black",
|
|
15937
|
+
background: "yellow"
|
|
15938
|
+
}
|
|
15939
|
+
},
|
|
15940
|
+
success: {
|
|
15941
|
+
background: "transparent",
|
|
15942
|
+
color: "green2",
|
|
15943
|
+
border: "2.8px solid #04F214"
|
|
15944
|
+
}
|
|
15945
|
+
};
|
|
15946
|
+
var THEME = {
|
|
15947
|
+
document: {
|
|
15948
|
+
"@light": {
|
|
15949
|
+
color: "black",
|
|
15950
|
+
background: "white"
|
|
15951
|
+
},
|
|
15952
|
+
"@dark": {
|
|
15953
|
+
color: "white",
|
|
15954
|
+
background: "black"
|
|
15955
|
+
}
|
|
15956
|
+
},
|
|
15957
|
+
...PRIORITIES,
|
|
15958
|
+
none: {
|
|
15959
|
+
color: "none",
|
|
15960
|
+
background: "none"
|
|
15961
|
+
},
|
|
15962
|
+
transparent: {
|
|
15963
|
+
color: "transparent",
|
|
15964
|
+
background: "transparent"
|
|
15965
|
+
}
|
|
15966
|
+
};
|
|
15967
|
+
|
|
15968
|
+
// ../default-config/src/typography.js
|
|
15969
|
+
var TYPOGRAPHY = {
|
|
15970
|
+
base: 16,
|
|
15971
|
+
ratio: 1.125,
|
|
15972
|
+
subSequence: true,
|
|
15973
|
+
templates: {}
|
|
15974
|
+
};
|
|
15975
|
+
|
|
15976
|
+
// ../default-config/src/spacing.js
|
|
15977
|
+
var SPACING = {
|
|
15978
|
+
base: 16,
|
|
15979
|
+
ratio: 1.618,
|
|
15980
|
+
subSequence: true
|
|
15981
|
+
};
|
|
15982
|
+
|
|
15983
|
+
// ../default-config/src/font.js
|
|
15984
|
+
var FONT = {};
|
|
15985
|
+
var FONT_FAMILY = {
|
|
15986
|
+
system: {
|
|
15987
|
+
isDefault: true,
|
|
15988
|
+
value: ['"Helvetica Neue"', "Helvetica", "Arial"],
|
|
15989
|
+
type: "sans-serif"
|
|
15990
|
+
}
|
|
15991
|
+
};
|
|
15992
|
+
|
|
15993
|
+
// ../default-config/src/index.js
|
|
15994
|
+
var DEFAULT_CONFIG = {
|
|
15995
|
+
version: "0.0.1",
|
|
15996
|
+
COLOR,
|
|
15997
|
+
GRADIENT,
|
|
15998
|
+
THEME,
|
|
15999
|
+
TYPOGRAPHY,
|
|
16000
|
+
SPACING,
|
|
16001
|
+
FONT,
|
|
16002
|
+
FONT_FAMILY,
|
|
16003
|
+
TIMING: {},
|
|
16004
|
+
ICONS: default_icons_default,
|
|
16005
|
+
MEDIA: {
|
|
16006
|
+
tv: "(min-width: 2780px)",
|
|
16007
|
+
screenL: "(max-width: 1920px)",
|
|
16008
|
+
screenM: "(max-width: 1680px)",
|
|
16009
|
+
screenS: "(max-width: 1440px)",
|
|
16010
|
+
tabletL: "(max-width: 1366px)",
|
|
16011
|
+
tabletM: "(max-width: 1280px)",
|
|
16012
|
+
tabletS: "(max-width: 1024px)",
|
|
16013
|
+
mobileL: "(max-width: 768px)",
|
|
16014
|
+
mobileM: "(max-width: 560px)",
|
|
16015
|
+
mobileS: "(max-width: 480px)",
|
|
16016
|
+
mobileXS: "(max-width: 375px)",
|
|
16017
|
+
light: "(prefers-color-scheme: light)",
|
|
16018
|
+
dark: "(prefers-color-scheme: dark)",
|
|
16019
|
+
print: "print"
|
|
16020
|
+
},
|
|
16021
|
+
DEVICES: {},
|
|
16022
|
+
CASES: {},
|
|
16023
|
+
SVG: {}
|
|
16024
|
+
// TODO: Check with @nikoloza on this
|
|
16025
|
+
};
|
|
16026
|
+
var src_default = DEFAULT_CONFIG;
|
|
15492
16027
|
|
|
15493
16028
|
// src/initEmotion.js
|
|
15494
|
-
var initEmotion = (key, options =
|
|
16029
|
+
var initEmotion = (key, options = DESIGN_SYSTEM_OPTIONS) => {
|
|
15495
16030
|
const doc = options.parent || options.document || document;
|
|
15496
16031
|
const initOptions = options.initOptions || {};
|
|
15497
|
-
const emotion2 = initOptions.emotion
|
|
16032
|
+
const emotion2 = initOptions.emotion;
|
|
15498
16033
|
if (!initOptions.emotion)
|
|
15499
|
-
initOptions.emotion =
|
|
16034
|
+
initOptions.emotion = emotion;
|
|
15500
16035
|
const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
|
|
15501
|
-
const
|
|
16036
|
+
const designSystem = options.designSystem || (options.defaultConfig ? (0, import_utils17.deepClone)(src_default) : {});
|
|
16037
|
+
const scratchSystem2 = init(designSystem, {
|
|
15502
16038
|
key,
|
|
15503
16039
|
emotion: emotion2,
|
|
15504
16040
|
verbose: options.verbose,
|
|
15505
16041
|
document: doc,
|
|
15506
|
-
...
|
|
16042
|
+
...DESIGN_SYSTEM_OPTIONS,
|
|
15507
16043
|
...initOptions
|
|
15508
16044
|
});
|
|
15509
16045
|
return [scratchSystem2, emotion2, registry];
|
|
@@ -18914,7 +19450,7 @@ function send(event = "change", changes, options) {
|
|
|
18914
19450
|
var import_globals = __toESM(require_cjs11());
|
|
18915
19451
|
|
|
18916
19452
|
// ../socket-ui/devFocus.js
|
|
18917
|
-
var
|
|
19453
|
+
var import_utils18 = __toESM(require_cjs());
|
|
18918
19454
|
var DevFocus = {
|
|
18919
19455
|
props: {
|
|
18920
19456
|
".preventSelect": {
|
|
@@ -18968,7 +19504,7 @@ var DevFocus = {
|
|
|
18968
19504
|
on: {
|
|
18969
19505
|
init: ({ context }) => {
|
|
18970
19506
|
const { components } = context;
|
|
18971
|
-
if ((0,
|
|
19507
|
+
if ((0, import_utils18.isObject)(components)) {
|
|
18972
19508
|
const { Content, ...rest } = components;
|
|
18973
19509
|
for (const key in rest) {
|
|
18974
19510
|
if (domql_exports[key])
|
|
@@ -19073,12 +19609,12 @@ var ANIMATION = {
|
|
|
19073
19609
|
}
|
|
19074
19610
|
}
|
|
19075
19611
|
};
|
|
19076
|
-
var
|
|
19612
|
+
var COLOR2 = {
|
|
19077
19613
|
black: "#000000",
|
|
19078
19614
|
blue: "#3686F7"
|
|
19079
19615
|
};
|
|
19080
19616
|
(0, import_scratch14.set)({
|
|
19081
|
-
COLOR,
|
|
19617
|
+
COLOR: COLOR2,
|
|
19082
19618
|
ANIMATION
|
|
19083
19619
|
});
|
|
19084
19620
|
var connectedToSymbols = (clients, element, state) => {
|
|
@@ -19190,13 +19726,13 @@ var Sync = {
|
|
|
19190
19726
|
};
|
|
19191
19727
|
|
|
19192
19728
|
// src/syncExtend.js
|
|
19193
|
-
var
|
|
19729
|
+
var import_utils19 = __toESM(require_cjs(), 1);
|
|
19194
19730
|
var applySyncDebug = (extend, options) => {
|
|
19195
19731
|
const { editor } = options;
|
|
19196
19732
|
if (!editor)
|
|
19197
19733
|
return extend;
|
|
19198
|
-
const inspect = (0,
|
|
19199
|
-
const liveSync = (0,
|
|
19734
|
+
const inspect = (0, import_utils19.isUndefined)(editor.inspect) ? (0, import_utils19.isDevelopment)() : editor.inspect;
|
|
19735
|
+
const liveSync = (0, import_utils19.isUndefined)(editor.liveSync) ? (0, import_utils19.isDevelopment)() : editor.liveSync;
|
|
19200
19736
|
if (inspect)
|
|
19201
19737
|
extend.push(DevFocus);
|
|
19202
19738
|
if (liveSync)
|
|
@@ -19207,7 +19743,7 @@ var applyInspectListener = (root, options) => {
|
|
|
19207
19743
|
const { editor } = options;
|
|
19208
19744
|
if (!editor)
|
|
19209
19745
|
return;
|
|
19210
|
-
const inspect = (0,
|
|
19746
|
+
const inspect = (0, import_utils19.isUndefined)(editor.inspect) ? (0, import_utils19.isDevelopment)() : editor.inspect;
|
|
19211
19747
|
if (inspect)
|
|
19212
19748
|
inspectOnKey(root);
|
|
19213
19749
|
};
|
|
@@ -19215,12 +19751,12 @@ var applyInspectListener = (root, options) => {
|
|
|
19215
19751
|
// src/index.js
|
|
19216
19752
|
var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
|
|
19217
19753
|
var mergeWithLocalFile2 = (options, optionsExternalFile) => {
|
|
19218
|
-
const rcfile = (0,
|
|
19219
|
-
return (0,
|
|
19754
|
+
const rcfile = (0, import_utils20.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
|
|
19755
|
+
return (0, import_utils20.deepMerge)(options, rcfile);
|
|
19220
19756
|
};
|
|
19221
19757
|
var create = async (App, options = options_default, optionsExternalFile) => {
|
|
19222
|
-
const appIsKey = (0,
|
|
19223
|
-
options = mergeWithLocalFile2(options, optionsExternalFile);
|
|
19758
|
+
const appIsKey = (0, import_utils20.isString)(App);
|
|
19759
|
+
options = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
|
|
19224
19760
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
19225
19761
|
if (appIsKey)
|
|
19226
19762
|
App = {};
|
|
@@ -19282,7 +19818,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
|
|
|
19282
19818
|
return domqlApp;
|
|
19283
19819
|
};
|
|
19284
19820
|
var createSync = (App, options = options_default, optionsExternalFile) => {
|
|
19285
|
-
const appIsKey = (0,
|
|
19821
|
+
const appIsKey = (0, import_utils20.isString)(App);
|
|
19286
19822
|
options = mergeWithLocalFile2(options, optionsExternalFile);
|
|
19287
19823
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
19288
19824
|
if (appIsKey)
|
|
@@ -19340,4 +19876,4 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
|
|
|
19340
19876
|
});
|
|
19341
19877
|
return domqlApp;
|
|
19342
19878
|
};
|
|
19343
|
-
var
|
|
19879
|
+
var src_default2 = create;
|