@symbo.ls/create 2.11.145 → 2.11.146
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 +437 -419
- package/dist/cjs/index.js +14 -4
- package/package.json +2 -2
- package/src/index.js +10 -2
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -213,14 +213,14 @@ var require_types = __commonJS({
|
|
|
213
213
|
isNot: () => isNot3,
|
|
214
214
|
isNull: () => isNull,
|
|
215
215
|
isNumber: () => isNumber2,
|
|
216
|
-
isObject: () =>
|
|
216
|
+
isObject: () => isObject15,
|
|
217
217
|
isObjectLike: () => isObjectLike4,
|
|
218
218
|
isString: () => isString10,
|
|
219
219
|
isUndefined: () => isUndefined3
|
|
220
220
|
});
|
|
221
221
|
module2.exports = __toCommonJS2(types_exports);
|
|
222
222
|
var import_node = require_node();
|
|
223
|
-
var
|
|
223
|
+
var isObject15 = (arg) => {
|
|
224
224
|
if (arg === null)
|
|
225
225
|
return false;
|
|
226
226
|
return typeof arg === "object" && arg.constructor === Object;
|
|
@@ -237,7 +237,7 @@ var require_types = __commonJS({
|
|
|
237
237
|
return typeof arg === "object";
|
|
238
238
|
};
|
|
239
239
|
var isDefined = (arg) => {
|
|
240
|
-
return
|
|
240
|
+
return isObject15(arg) || isObjectLike4(arg) || isString10(arg) || isNumber2(arg) || isFunction4(arg) || isArray8(arg) || isObjectLike4(arg) || isBoolean(arg) || isNull(arg);
|
|
241
241
|
};
|
|
242
242
|
var isUndefined3 = (arg) => {
|
|
243
243
|
return arg === void 0;
|
|
@@ -245,7 +245,7 @@ var require_types = __commonJS({
|
|
|
245
245
|
var TYPES = {
|
|
246
246
|
boolean: isBoolean,
|
|
247
247
|
array: isArray8,
|
|
248
|
-
object:
|
|
248
|
+
object: isObject15,
|
|
249
249
|
string: isString10,
|
|
250
250
|
number: isNumber2,
|
|
251
251
|
null: isNull,
|
|
@@ -1320,11 +1320,11 @@ var require_tree = __commonJS({
|
|
|
1320
1320
|
TREE: () => TREE
|
|
1321
1321
|
});
|
|
1322
1322
|
module2.exports = __toCommonJS2(tree_exports);
|
|
1323
|
-
var
|
|
1323
|
+
var import_utils26 = require_cjs();
|
|
1324
1324
|
var import_report = require_cjs2();
|
|
1325
1325
|
var ROOT = {
|
|
1326
1326
|
key: ":root",
|
|
1327
|
-
node:
|
|
1327
|
+
node: import_utils26.document ? import_utils26.document.body : (0, import_report.report)("DocumentNotDefined", import_utils26.document)
|
|
1328
1328
|
};
|
|
1329
1329
|
var TREE = ROOT;
|
|
1330
1330
|
}
|
|
@@ -1360,12 +1360,12 @@ var require_on = __commonJS({
|
|
|
1360
1360
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
1361
1361
|
});
|
|
1362
1362
|
module2.exports = __toCommonJS2(on_exports);
|
|
1363
|
-
var
|
|
1363
|
+
var import_utils26 = require_cjs();
|
|
1364
1364
|
var applyEvent = (param, element, state, context, options) => {
|
|
1365
1365
|
return param(element, state || element.state, context || element.context, options);
|
|
1366
1366
|
};
|
|
1367
1367
|
var triggerEventOn = (param, element, options) => {
|
|
1368
|
-
if (element.on && (0,
|
|
1368
|
+
if (element.on && (0, import_utils26.isFunction)(element.on[param])) {
|
|
1369
1369
|
const { state, context } = element;
|
|
1370
1370
|
return applyEvent(element.on[param], element, state, context, options);
|
|
1371
1371
|
}
|
|
@@ -1374,7 +1374,7 @@ var require_on = __commonJS({
|
|
|
1374
1374
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
1375
1375
|
};
|
|
1376
1376
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
1377
|
-
if (element.on && (0,
|
|
1377
|
+
if (element.on && (0, import_utils26.isFunction)(element.on[param])) {
|
|
1378
1378
|
const { state, context } = element;
|
|
1379
1379
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
1380
1380
|
}
|
|
@@ -1385,7 +1385,7 @@ var require_on = __commonJS({
|
|
|
1385
1385
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
1386
1386
|
continue;
|
|
1387
1387
|
const appliedFunction = element.on[param];
|
|
1388
|
-
if ((0,
|
|
1388
|
+
if ((0, import_utils26.isFunction)(appliedFunction)) {
|
|
1389
1389
|
const { state, context } = element;
|
|
1390
1390
|
node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
|
|
1391
1391
|
}
|
|
@@ -1421,10 +1421,10 @@ var require_can = __commonJS({
|
|
|
1421
1421
|
});
|
|
1422
1422
|
module2.exports = __toCommonJS2(can_exports);
|
|
1423
1423
|
var import_report = require_cjs2();
|
|
1424
|
-
var
|
|
1424
|
+
var import_utils26 = require_cjs();
|
|
1425
1425
|
var canRender = (element) => {
|
|
1426
1426
|
const tag = element.tag || "div";
|
|
1427
|
-
return (0,
|
|
1427
|
+
return (0, import_utils26.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
1430
|
});
|
|
@@ -1515,7 +1515,7 @@ var require_cache = __commonJS({
|
|
|
1515
1515
|
module2.exports = __toCommonJS2(cache_exports);
|
|
1516
1516
|
var import_report = require_cjs2();
|
|
1517
1517
|
var import_event = require_cjs3();
|
|
1518
|
-
var
|
|
1518
|
+
var import_utils26 = require_cjs();
|
|
1519
1519
|
var cache2 = {};
|
|
1520
1520
|
var createHTMLNode = (element) => {
|
|
1521
1521
|
const { tag } = element;
|
|
@@ -1534,15 +1534,15 @@ var require_cache = __commonJS({
|
|
|
1534
1534
|
};
|
|
1535
1535
|
var detectTag = (element) => {
|
|
1536
1536
|
let { tag, key } = element;
|
|
1537
|
-
tag = (0,
|
|
1537
|
+
tag = (0, import_utils26.exec)(tag, element);
|
|
1538
1538
|
if (tag === true)
|
|
1539
1539
|
tag = key;
|
|
1540
|
-
if ((0,
|
|
1541
|
-
const tagExists = (0,
|
|
1540
|
+
if ((0, import_utils26.isString)(tag)) {
|
|
1541
|
+
const tagExists = (0, import_utils26.isValidHtmlTag)(tag);
|
|
1542
1542
|
if (tagExists)
|
|
1543
1543
|
return tag;
|
|
1544
1544
|
} else {
|
|
1545
|
-
const isKeyATag = (0,
|
|
1545
|
+
const isKeyATag = (0, import_utils26.isValidHtmlTag)(key);
|
|
1546
1546
|
if (isKeyATag)
|
|
1547
1547
|
return key;
|
|
1548
1548
|
}
|
|
@@ -1661,16 +1661,16 @@ var require_attr = __commonJS({
|
|
|
1661
1661
|
default: () => attr_default
|
|
1662
1662
|
});
|
|
1663
1663
|
module2.exports = __toCommonJS2(attr_exports);
|
|
1664
|
-
var
|
|
1664
|
+
var import_utils26 = require_cjs();
|
|
1665
1665
|
var import_report = require_cjs2();
|
|
1666
1666
|
var attr_default = (params, element, node2) => {
|
|
1667
1667
|
const { __ref } = element;
|
|
1668
1668
|
const { __attr } = __ref;
|
|
1669
|
-
if ((0,
|
|
1669
|
+
if ((0, import_utils26.isNot)("object"))
|
|
1670
1670
|
(0, import_report.report)("HTMLInvalidAttr", params);
|
|
1671
1671
|
if (params) {
|
|
1672
1672
|
for (const attr in params) {
|
|
1673
|
-
const val = (0,
|
|
1673
|
+
const val = (0, import_utils26.exec)(params[attr], element);
|
|
1674
1674
|
if (val && node2.setAttribute)
|
|
1675
1675
|
node2.setAttribute(attr, val);
|
|
1676
1676
|
else if (node2.removeAttribute)
|
|
@@ -1713,7 +1713,7 @@ var require_classList = __commonJS({
|
|
|
1713
1713
|
default: () => classList_default
|
|
1714
1714
|
});
|
|
1715
1715
|
module2.exports = __toCommonJS2(classList_exports);
|
|
1716
|
-
var
|
|
1716
|
+
var import_utils26 = require_cjs();
|
|
1717
1717
|
var assignKeyAsClassname = (element) => {
|
|
1718
1718
|
const { key } = element;
|
|
1719
1719
|
if (element.class === true)
|
|
@@ -1731,7 +1731,7 @@ var require_classList = __commonJS({
|
|
|
1731
1731
|
else if (typeof param === "string")
|
|
1732
1732
|
className += ` ${param}`;
|
|
1733
1733
|
else if (typeof param === "function") {
|
|
1734
|
-
className += ` ${(0,
|
|
1734
|
+
className += ` ${(0, import_utils26.exec)(param, element)}`;
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
return className;
|
|
@@ -1742,9 +1742,9 @@ var require_classList = __commonJS({
|
|
|
1742
1742
|
const { key } = element;
|
|
1743
1743
|
if (params === true)
|
|
1744
1744
|
params = element.class = { key };
|
|
1745
|
-
if ((0,
|
|
1745
|
+
if ((0, import_utils26.isString)(params))
|
|
1746
1746
|
params = element.class = { default: params };
|
|
1747
|
-
if ((0,
|
|
1747
|
+
if ((0, import_utils26.isObject)(params))
|
|
1748
1748
|
params = classify2(params, element);
|
|
1749
1749
|
const className = params.replace(/\s+/g, " ").trim();
|
|
1750
1750
|
if (element.ref)
|
|
@@ -1828,7 +1828,7 @@ var require_set = __commonJS({
|
|
|
1828
1828
|
default: () => set_default
|
|
1829
1829
|
});
|
|
1830
1830
|
module2.exports = __toCommonJS2(set_exports);
|
|
1831
|
-
var
|
|
1831
|
+
var import_utils26 = require_cjs();
|
|
1832
1832
|
var import_create = __toESM2(require_create4(), 1);
|
|
1833
1833
|
var import_options3 = __toESM2(require_options(), 1);
|
|
1834
1834
|
var import_mixins = require_mixins();
|
|
@@ -1836,7 +1836,7 @@ var require_set = __commonJS({
|
|
|
1836
1836
|
var set5 = function(params, options = {}, el) {
|
|
1837
1837
|
const element = el || this;
|
|
1838
1838
|
const __contentRef = element.content && element.content.__ref;
|
|
1839
|
-
if (__contentRef && __contentRef.__cached && (0,
|
|
1839
|
+
if (__contentRef && __contentRef.__cached && (0, import_utils26.isEqualDeep)(params, element.content)) {
|
|
1840
1840
|
return element;
|
|
1841
1841
|
}
|
|
1842
1842
|
(0, import_content.removeContent)(element);
|
|
@@ -1896,7 +1896,7 @@ var require_content = __commonJS({
|
|
|
1896
1896
|
updateContent: () => updateContent
|
|
1897
1897
|
});
|
|
1898
1898
|
module2.exports = __toCommonJS2(content_exports);
|
|
1899
|
-
var
|
|
1899
|
+
var import_utils26 = require_cjs();
|
|
1900
1900
|
var import_set = __toESM2(require_set(), 1);
|
|
1901
1901
|
var updateContent = function(params, options) {
|
|
1902
1902
|
const element = this;
|
|
@@ -1919,7 +1919,7 @@ var require_content = __commonJS({
|
|
|
1919
1919
|
if (__cached && __cached.content) {
|
|
1920
1920
|
if (__cached.content.tag === "fragment")
|
|
1921
1921
|
__cached.content.parent.node.innerHTML = "";
|
|
1922
|
-
else if (__cached.content && (0,
|
|
1922
|
+
else if (__cached.content && (0, import_utils26.isFunction)(__cached.content.remove))
|
|
1923
1923
|
__cached.content.remove();
|
|
1924
1924
|
}
|
|
1925
1925
|
delete element.content;
|
|
@@ -1964,15 +1964,15 @@ var require_data = __commonJS({
|
|
|
1964
1964
|
default: () => data_default
|
|
1965
1965
|
});
|
|
1966
1966
|
module2.exports = __toCommonJS2(data_exports);
|
|
1967
|
-
var
|
|
1967
|
+
var import_utils26 = require_cjs();
|
|
1968
1968
|
var import_report = require_cjs2();
|
|
1969
1969
|
var data_default = (params, element, node2) => {
|
|
1970
1970
|
if (params && params.showOnNode) {
|
|
1971
|
-
if (!(0,
|
|
1971
|
+
if (!(0, import_utils26.isObject)(params))
|
|
1972
1972
|
(0, import_report.report)("HTMLInvalidData", params);
|
|
1973
1973
|
for (const dataset in params) {
|
|
1974
1974
|
if (dataset !== "showOnNode") {
|
|
1975
|
-
node2.dataset[dataset] = (0,
|
|
1975
|
+
node2.dataset[dataset] = (0, import_utils26.exec)(params[dataset], element);
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
@@ -2006,9 +2006,9 @@ var require_html = __commonJS({
|
|
|
2006
2006
|
default: () => html_default
|
|
2007
2007
|
});
|
|
2008
2008
|
module2.exports = __toCommonJS2(html_exports);
|
|
2009
|
-
var
|
|
2009
|
+
var import_utils26 = require_cjs();
|
|
2010
2010
|
var html_default = (param, element, node2) => {
|
|
2011
|
-
const prop = (0,
|
|
2011
|
+
const prop = (0, import_utils26.exec)(param, element);
|
|
2012
2012
|
const { __ref } = element;
|
|
2013
2013
|
if (prop !== __ref.__html) {
|
|
2014
2014
|
if (node2.nodeName === "SVG")
|
|
@@ -2047,12 +2047,12 @@ var require_style = __commonJS({
|
|
|
2047
2047
|
default: () => style_default2
|
|
2048
2048
|
});
|
|
2049
2049
|
module2.exports = __toCommonJS2(style_exports);
|
|
2050
|
-
var
|
|
2050
|
+
var import_utils26 = require_cjs();
|
|
2051
2051
|
var import_report = require_cjs2();
|
|
2052
2052
|
var style_default2 = (params, element, node2) => {
|
|
2053
2053
|
if (params) {
|
|
2054
|
-
if ((0,
|
|
2055
|
-
(0,
|
|
2054
|
+
if ((0, import_utils26.isObject)(params))
|
|
2055
|
+
(0, import_utils26.map)(node2.style, params, element);
|
|
2056
2056
|
else
|
|
2057
2057
|
(0, import_report.report)("HTMLInvalidStyles", params);
|
|
2058
2058
|
}
|
|
@@ -2088,9 +2088,9 @@ var require_text = __commonJS({
|
|
|
2088
2088
|
});
|
|
2089
2089
|
module2.exports = __toCommonJS2(text_exports);
|
|
2090
2090
|
var import__ = require_cjs7();
|
|
2091
|
-
var
|
|
2091
|
+
var import_utils26 = require_cjs();
|
|
2092
2092
|
var asd = (param, element, node2) => {
|
|
2093
|
-
const prop = (0,
|
|
2093
|
+
const prop = (0, import_utils26.exec)(param, element);
|
|
2094
2094
|
if (element.tag === "string") {
|
|
2095
2095
|
node2.nodeValue = prop;
|
|
2096
2096
|
} else if (param !== void 0 || param !== null) {
|
|
@@ -2104,9 +2104,9 @@ var require_text = __commonJS({
|
|
|
2104
2104
|
}
|
|
2105
2105
|
};
|
|
2106
2106
|
var text_default = (param, element, node2) => {
|
|
2107
|
-
let prop = (0,
|
|
2108
|
-
if ((0,
|
|
2109
|
-
prop = (0,
|
|
2107
|
+
let prop = (0, import_utils26.exec)(param, element);
|
|
2108
|
+
if ((0, import_utils26.isString)(prop) && prop.includes("{{")) {
|
|
2109
|
+
prop = (0, import_utils26.replaceLiteralsWithObjectFields)(prop, element.state);
|
|
2110
2110
|
}
|
|
2111
2111
|
if (element.tag === "string") {
|
|
2112
2112
|
if (element.text === prop)
|
|
@@ -2210,11 +2210,11 @@ var require_methods = __commonJS({
|
|
|
2210
2210
|
toggle: () => toggle
|
|
2211
2211
|
});
|
|
2212
2212
|
module2.exports = __toCommonJS2(methods_exports);
|
|
2213
|
-
var
|
|
2213
|
+
var import_utils26 = require_cjs();
|
|
2214
2214
|
var import_ignore = require_ignore();
|
|
2215
2215
|
var parse3 = function() {
|
|
2216
2216
|
const state = this;
|
|
2217
|
-
if ((0,
|
|
2217
|
+
if ((0, import_utils26.isObject)(state)) {
|
|
2218
2218
|
const obj = {};
|
|
2219
2219
|
for (const param in state) {
|
|
2220
2220
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -2222,7 +2222,7 @@ var require_methods = __commonJS({
|
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
2224
|
return obj;
|
|
2225
|
-
} else if ((0,
|
|
2225
|
+
} else if ((0, import_utils26.isArray)(state)) {
|
|
2226
2226
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
2227
2227
|
}
|
|
2228
2228
|
};
|
|
@@ -2242,7 +2242,7 @@ var require_methods = __commonJS({
|
|
|
2242
2242
|
const state = this;
|
|
2243
2243
|
const element = state.__element;
|
|
2244
2244
|
const stateKey = element.__ref.__state;
|
|
2245
|
-
if ((0,
|
|
2245
|
+
if ((0, import_utils26.isString)(stateKey)) {
|
|
2246
2246
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
2247
2247
|
return element.state;
|
|
2248
2248
|
}
|
|
@@ -2277,10 +2277,10 @@ var require_methods = __commonJS({
|
|
|
2277
2277
|
};
|
|
2278
2278
|
var add = function(value2, options = {}) {
|
|
2279
2279
|
const state = this;
|
|
2280
|
-
if ((0,
|
|
2280
|
+
if ((0, import_utils26.isArray)(state)) {
|
|
2281
2281
|
state.push(value2);
|
|
2282
2282
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
2283
|
-
} else if ((0,
|
|
2283
|
+
} else if ((0, import_utils26.isObject)(state)) {
|
|
2284
2284
|
const key = Object.keys(state).length;
|
|
2285
2285
|
state.update({ [key]: value2 }, options);
|
|
2286
2286
|
}
|
|
@@ -2291,10 +2291,10 @@ var require_methods = __commonJS({
|
|
|
2291
2291
|
};
|
|
2292
2292
|
var remove = function(key, options = {}) {
|
|
2293
2293
|
const state = this;
|
|
2294
|
-
if ((0,
|
|
2295
|
-
(0,
|
|
2296
|
-
if ((0,
|
|
2297
|
-
(0,
|
|
2294
|
+
if ((0, import_utils26.isArray)(state))
|
|
2295
|
+
(0, import_utils26.removeFromArray)(state, key);
|
|
2296
|
+
if ((0, import_utils26.isObject)(state))
|
|
2297
|
+
(0, import_utils26.removeFromObject)(state, key);
|
|
2298
2298
|
return state.update(state.parse(), { replace: true, ...options });
|
|
2299
2299
|
};
|
|
2300
2300
|
var set5 = function(value2, options = {}) {
|
|
@@ -2303,7 +2303,7 @@ var require_methods = __commonJS({
|
|
|
2303
2303
|
};
|
|
2304
2304
|
var apply = function(func, options = {}) {
|
|
2305
2305
|
const state = this;
|
|
2306
|
-
if ((0,
|
|
2306
|
+
if ((0, import_utils26.isFunction)(func)) {
|
|
2307
2307
|
func(state);
|
|
2308
2308
|
return state.update(state, { replace: true, ...options });
|
|
2309
2309
|
}
|
|
@@ -2343,7 +2343,7 @@ var require_inherit = __commonJS({
|
|
|
2343
2343
|
isState: () => isState3
|
|
2344
2344
|
});
|
|
2345
2345
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
2346
|
-
var
|
|
2346
|
+
var import_utils26 = require_cjs();
|
|
2347
2347
|
var import_ignore = require_ignore();
|
|
2348
2348
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
2349
2349
|
if (!stateKey.includes("../"))
|
|
@@ -2397,9 +2397,9 @@ var require_inherit = __commonJS({
|
|
|
2397
2397
|
const inheritedState = findInheritedState(element, parent);
|
|
2398
2398
|
if (!inheritedState)
|
|
2399
2399
|
return element.state;
|
|
2400
|
-
if ((0,
|
|
2401
|
-
return (0,
|
|
2402
|
-
} else if ((0,
|
|
2400
|
+
if ((0, import_utils26.is)(inheritedState)("object", "array")) {
|
|
2401
|
+
return (0, import_utils26.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
2402
|
+
} else if ((0, import_utils26.is)(inheritedState)("string", "number")) {
|
|
2403
2403
|
ref.__stateType = "string";
|
|
2404
2404
|
return { value: inheritedState };
|
|
2405
2405
|
}
|
|
@@ -2408,12 +2408,12 @@ var require_inherit = __commonJS({
|
|
|
2408
2408
|
var checkIfInherits = (element) => {
|
|
2409
2409
|
const ref = element.__ref;
|
|
2410
2410
|
const stateKey = ref.__state;
|
|
2411
|
-
if (!stateKey || (0,
|
|
2411
|
+
if (!stateKey || (0, import_utils26.isNot)(stateKey)("number", "string"))
|
|
2412
2412
|
return false;
|
|
2413
2413
|
return true;
|
|
2414
2414
|
};
|
|
2415
2415
|
var isState3 = function(state) {
|
|
2416
|
-
if (!(0,
|
|
2416
|
+
if (!(0, import_utils26.isObjectLike)(state))
|
|
2417
2417
|
return false;
|
|
2418
2418
|
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;
|
|
2419
2419
|
};
|
|
@@ -2462,7 +2462,7 @@ var require_updateState = __commonJS({
|
|
|
2462
2462
|
var import_report = require_cjs2();
|
|
2463
2463
|
var import_event = require_cjs3();
|
|
2464
2464
|
var import_ignore = require_ignore();
|
|
2465
|
-
var
|
|
2465
|
+
var import_utils26 = require_cjs();
|
|
2466
2466
|
var import_inherit = require_inherit();
|
|
2467
2467
|
var STATE_UPDATE_OPTIONS = {
|
|
2468
2468
|
overwrite: true,
|
|
@@ -2476,7 +2476,7 @@ var require_updateState = __commonJS({
|
|
|
2476
2476
|
const state = this;
|
|
2477
2477
|
const element = state.__element;
|
|
2478
2478
|
if (!options.updateByState)
|
|
2479
|
-
(0,
|
|
2479
|
+
(0, import_utils26.merge)(options, STATE_UPDATE_OPTIONS);
|
|
2480
2480
|
if (!state.__element)
|
|
2481
2481
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
2482
2482
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -2506,10 +2506,10 @@ var require_updateState = __commonJS({
|
|
|
2506
2506
|
const shallow = overwrite === "shallow";
|
|
2507
2507
|
const merge22 = overwrite === "merge";
|
|
2508
2508
|
if (merge22) {
|
|
2509
|
-
(0,
|
|
2509
|
+
(0, import_utils26.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
2510
2510
|
return;
|
|
2511
2511
|
}
|
|
2512
|
-
const overwriteFunc = shallow ?
|
|
2512
|
+
const overwriteFunc = shallow ? import_utils26.overwriteShallow : import_utils26.overwriteDeep;
|
|
2513
2513
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
2514
2514
|
};
|
|
2515
2515
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -2600,7 +2600,7 @@ var require_create2 = __commonJS({
|
|
|
2600
2600
|
});
|
|
2601
2601
|
module2.exports = __toCommonJS2(create_exports);
|
|
2602
2602
|
var import_event = require_cjs3();
|
|
2603
|
-
var
|
|
2603
|
+
var import_utils26 = require_cjs();
|
|
2604
2604
|
var import_ignore = require_ignore();
|
|
2605
2605
|
var import_methods = require_methods();
|
|
2606
2606
|
var import_updateState = require_updateState();
|
|
@@ -2614,7 +2614,7 @@ var require_create2 = __commonJS({
|
|
|
2614
2614
|
if (objectizeState === false)
|
|
2615
2615
|
return parent.state || {};
|
|
2616
2616
|
else
|
|
2617
|
-
element.state = (0,
|
|
2617
|
+
element.state = (0, import_utils26.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
2618
2618
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
2619
2619
|
if (whatInitReturns === false)
|
|
2620
2620
|
return element.state;
|
|
@@ -2633,17 +2633,17 @@ var require_create2 = __commonJS({
|
|
|
2633
2633
|
const { __ref: ref } = state;
|
|
2634
2634
|
if (!ref)
|
|
2635
2635
|
return;
|
|
2636
|
-
const dependentState = (0,
|
|
2636
|
+
const dependentState = (0, import_utils26.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
2637
2637
|
const newDepends = { [element.key]: dependentState };
|
|
2638
|
-
ref.__depends = (0,
|
|
2638
|
+
ref.__depends = (0, import_utils26.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
2639
2639
|
return dependentState;
|
|
2640
2640
|
};
|
|
2641
2641
|
var checkForTypes = (element) => {
|
|
2642
2642
|
const { state, __ref: ref } = element;
|
|
2643
|
-
if ((0,
|
|
2643
|
+
if ((0, import_utils26.isFunction)(state)) {
|
|
2644
2644
|
ref.__state = state;
|
|
2645
|
-
return (0,
|
|
2646
|
-
} else if ((0,
|
|
2645
|
+
return (0, import_utils26.exec)(state, element);
|
|
2646
|
+
} else if ((0, import_utils26.is)(state)("string", "number")) {
|
|
2647
2647
|
ref.__state = state;
|
|
2648
2648
|
return {};
|
|
2649
2649
|
} else if (state === true) {
|
|
@@ -2690,7 +2690,7 @@ var require_create2 = __commonJS({
|
|
|
2690
2690
|
__children: {},
|
|
2691
2691
|
__root: ref.__root ? ref.__root.state : state
|
|
2692
2692
|
};
|
|
2693
|
-
if ((0,
|
|
2693
|
+
if ((0, import_utils26.isArray)(state)) {
|
|
2694
2694
|
addProtoToArray(state, proto);
|
|
2695
2695
|
} else {
|
|
2696
2696
|
Object.setPrototypeOf(state, proto);
|
|
@@ -2758,16 +2758,16 @@ var require_state = __commonJS({
|
|
|
2758
2758
|
});
|
|
2759
2759
|
module2.exports = __toCommonJS2(state_exports);
|
|
2760
2760
|
var import_state3 = require_cjs5();
|
|
2761
|
-
var
|
|
2761
|
+
var import_utils26 = require_cjs();
|
|
2762
2762
|
var state = (params, element, node2) => {
|
|
2763
|
-
const state2 = (0,
|
|
2764
|
-
if ((0,
|
|
2763
|
+
const state2 = (0, import_utils26.exec)(params, element);
|
|
2764
|
+
if ((0, import_utils26.isObject)(state2)) {
|
|
2765
2765
|
for (const param in state2) {
|
|
2766
2766
|
if (import_state3.IGNORE_STATE_PARAMS.includes(param))
|
|
2767
2767
|
continue;
|
|
2768
2768
|
if (!Object.hasOwnProperty.call(state2, param))
|
|
2769
2769
|
continue;
|
|
2770
|
-
element.state[param] = (0,
|
|
2770
|
+
element.state[param] = (0, import_utils26.exec)(state2[param], element);
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
2773
|
return element;
|
|
@@ -2969,7 +2969,7 @@ var require_methods2 = __commonJS({
|
|
|
2969
2969
|
spotByPath: () => spotByPath
|
|
2970
2970
|
});
|
|
2971
2971
|
module2.exports = __toCommonJS2(methods_exports);
|
|
2972
|
-
var
|
|
2972
|
+
var import_utils26 = require_cjs();
|
|
2973
2973
|
var import_tree = require_tree();
|
|
2974
2974
|
var import_mixins = require_mixins();
|
|
2975
2975
|
var spotByPath = function(path) {
|
|
@@ -3002,9 +3002,9 @@ var require_methods2 = __commonJS({
|
|
|
3002
3002
|
};
|
|
3003
3003
|
var remove = function(params) {
|
|
3004
3004
|
const element = this;
|
|
3005
|
-
if ((0,
|
|
3005
|
+
if ((0, import_utils26.isFunction)(element.node.remove))
|
|
3006
3006
|
element.node.remove();
|
|
3007
|
-
else if (!(0,
|
|
3007
|
+
else if (!(0, import_utils26.isProduction)()) {
|
|
3008
3008
|
console.warn("This item cant be removed");
|
|
3009
3009
|
element.log();
|
|
3010
3010
|
}
|
|
@@ -3044,12 +3044,12 @@ var require_methods2 = __commonJS({
|
|
|
3044
3044
|
if (v === "state") {
|
|
3045
3045
|
if (element.__ref && element.__ref.__hasRootState)
|
|
3046
3046
|
return;
|
|
3047
|
-
if ((0,
|
|
3047
|
+
if ((0, import_utils26.isFunction)(val && val.parse))
|
|
3048
3048
|
val = val.parse();
|
|
3049
3049
|
} else if (v === "props") {
|
|
3050
3050
|
const { __element, update, ...props6 } = element[v];
|
|
3051
3051
|
obj[v] = props6;
|
|
3052
|
-
} else if ((0,
|
|
3052
|
+
} else if ((0, import_utils26.isDefined)(val))
|
|
3053
3053
|
obj[v] = val;
|
|
3054
3054
|
});
|
|
3055
3055
|
return obj;
|
|
@@ -3060,7 +3060,7 @@ var require_methods2 = __commonJS({
|
|
|
3060
3060
|
for (const v in obj) {
|
|
3061
3061
|
if (excl.includes(v))
|
|
3062
3062
|
return;
|
|
3063
|
-
if ((0,
|
|
3063
|
+
if ((0, import_utils26.isObjectLike)(obj[v])) {
|
|
3064
3064
|
obj[v] = parseDeep.call(obj[v], excl);
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
@@ -3178,18 +3178,18 @@ var require_inherit2 = __commonJS({
|
|
|
3178
3178
|
inheritParentProps: () => inheritParentProps
|
|
3179
3179
|
});
|
|
3180
3180
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
3181
|
-
var
|
|
3181
|
+
var import_utils26 = require_cjs();
|
|
3182
3182
|
var objectizeStringProperty = (propValue) => {
|
|
3183
|
-
if ((0,
|
|
3183
|
+
if ((0, import_utils26.is)(propValue)("string", "number")) {
|
|
3184
3184
|
return { inheritedString: propValue };
|
|
3185
3185
|
}
|
|
3186
3186
|
return propValue;
|
|
3187
3187
|
};
|
|
3188
3188
|
var inheritParentProps = (element, parent) => {
|
|
3189
3189
|
let propsStack = [];
|
|
3190
|
-
const parentProps = (0,
|
|
3190
|
+
const parentProps = (0, import_utils26.exec)(parent, parent.state).props;
|
|
3191
3191
|
const matchParent = parent.props && parentProps[element.key];
|
|
3192
|
-
const matchParentIsString = (0,
|
|
3192
|
+
const matchParentIsString = (0, import_utils26.isString)(matchParent);
|
|
3193
3193
|
const matchParentChildProps = parentProps && parentProps.childProps;
|
|
3194
3194
|
if (matchParent) {
|
|
3195
3195
|
if (matchParentIsString) {
|
|
@@ -3237,19 +3237,19 @@ var require_create3 = __commonJS({
|
|
|
3237
3237
|
syncProps: () => syncProps
|
|
3238
3238
|
});
|
|
3239
3239
|
module2.exports = __toCommonJS2(create_exports);
|
|
3240
|
-
var
|
|
3240
|
+
var import_utils26 = require_cjs();
|
|
3241
3241
|
var import_ignore = require_ignore2();
|
|
3242
3242
|
var import_inherit = require_inherit2();
|
|
3243
3243
|
var createPropsStack = (element, parent) => {
|
|
3244
3244
|
const { props: props6, __ref } = element;
|
|
3245
3245
|
const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
3246
|
-
if ((0,
|
|
3246
|
+
if ((0, import_utils26.isObject)(props6))
|
|
3247
3247
|
propsStack.push(props6);
|
|
3248
3248
|
else if (props6 === "inherit" && parent.props)
|
|
3249
3249
|
propsStack.push(parent.props);
|
|
3250
3250
|
else if (props6)
|
|
3251
3251
|
propsStack.push(props6);
|
|
3252
|
-
if ((0,
|
|
3252
|
+
if ((0, import_utils26.isArray)(__ref.__extend)) {
|
|
3253
3253
|
__ref.__extend.forEach((extend) => {
|
|
3254
3254
|
if (extend.props)
|
|
3255
3255
|
propsStack.push(extend.props);
|
|
@@ -3264,12 +3264,12 @@ var require_create3 = __commonJS({
|
|
|
3264
3264
|
props6.forEach((v) => {
|
|
3265
3265
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
3266
3266
|
return;
|
|
3267
|
-
const execProps = (0,
|
|
3268
|
-
if ((0,
|
|
3267
|
+
const execProps = (0, import_utils26.exec)(v, element);
|
|
3268
|
+
if ((0, import_utils26.isObject)(execProps) && execProps.__element)
|
|
3269
3269
|
return;
|
|
3270
|
-
element.props = (0,
|
|
3270
|
+
element.props = (0, import_utils26.deepMerge)(
|
|
3271
3271
|
mergedProps,
|
|
3272
|
-
(0,
|
|
3272
|
+
(0, import_utils26.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
|
|
3273
3273
|
import_ignore.IGNORE_PROPS_PARAMS
|
|
3274
3274
|
);
|
|
3275
3275
|
});
|
|
@@ -3401,11 +3401,11 @@ var require_object2 = __commonJS({
|
|
|
3401
3401
|
overwriteShallow: () => overwriteShallow3
|
|
3402
3402
|
});
|
|
3403
3403
|
module2.exports = __toCommonJS2(object_exports);
|
|
3404
|
-
var
|
|
3404
|
+
var import_utils26 = require_cjs();
|
|
3405
3405
|
var import_state3 = require_cjs5();
|
|
3406
3406
|
var import_props = require_props();
|
|
3407
3407
|
var import_methods = require_methods2();
|
|
3408
|
-
var METHODS_EXL = (0,
|
|
3408
|
+
var METHODS_EXL = (0, import_utils26.joinArrays)(
|
|
3409
3409
|
["node", "state", "context", "extend"],
|
|
3410
3410
|
import_methods.METHODS,
|
|
3411
3411
|
import_state3.IGNORE_STATE_PARAMS,
|
|
@@ -3419,7 +3419,7 @@ var require_object2 = __commonJS({
|
|
|
3419
3419
|
const extendProp = extend[e];
|
|
3420
3420
|
if (elementProp === void 0) {
|
|
3421
3421
|
element[e] = extendProp;
|
|
3422
|
-
} else if ((0,
|
|
3422
|
+
} else if ((0, import_utils26.isObjectLike)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
|
|
3423
3423
|
deepMerge4(elementProp, extendProp);
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
@@ -3435,15 +3435,15 @@ var require_object2 = __commonJS({
|
|
|
3435
3435
|
return o;
|
|
3436
3436
|
};
|
|
3437
3437
|
var deepClone3 = (obj, exclude = METHODS_EXL) => {
|
|
3438
|
-
const o = (0,
|
|
3438
|
+
const o = (0, import_utils26.isArray)(obj) ? [] : {};
|
|
3439
3439
|
for (const e in obj) {
|
|
3440
3440
|
if (exclude.includes(e))
|
|
3441
3441
|
continue;
|
|
3442
3442
|
let objProp = obj[e];
|
|
3443
|
-
if (e === "extend" && (0,
|
|
3443
|
+
if (e === "extend" && (0, import_utils26.isArray)(objProp)) {
|
|
3444
3444
|
objProp = mergeArray(objProp, exclude);
|
|
3445
3445
|
}
|
|
3446
|
-
if ((0,
|
|
3446
|
+
if ((0, import_utils26.isObjectLike)(objProp)) {
|
|
3447
3447
|
o[e] = deepClone3(objProp, exclude);
|
|
3448
3448
|
} else
|
|
3449
3449
|
o[e] = objProp;
|
|
@@ -3482,7 +3482,7 @@ var require_object2 = __commonJS({
|
|
|
3482
3482
|
continue;
|
|
3483
3483
|
const objProp = obj[e];
|
|
3484
3484
|
const paramsProp = params[e];
|
|
3485
|
-
if ((0,
|
|
3485
|
+
if ((0, import_utils26.isObjectLike)(objProp) && (0, import_utils26.isObjectLike)(paramsProp)) {
|
|
3486
3486
|
overwriteDeep(objProp, paramsProp);
|
|
3487
3487
|
} else if (paramsProp !== void 0) {
|
|
3488
3488
|
obj[e] = paramsProp;
|
|
@@ -3491,7 +3491,7 @@ var require_object2 = __commonJS({
|
|
|
3491
3491
|
return obj;
|
|
3492
3492
|
};
|
|
3493
3493
|
var mergeIfExisted = (a, b) => {
|
|
3494
|
-
if ((0,
|
|
3494
|
+
if ((0, import_utils26.isObjectLike)(a) && (0, import_utils26.isObjectLike)(b))
|
|
3495
3495
|
return deepMerge4(a, b);
|
|
3496
3496
|
return a || b;
|
|
3497
3497
|
};
|
|
@@ -3499,7 +3499,7 @@ var require_object2 = __commonJS({
|
|
|
3499
3499
|
return arr.reduce((a, c) => deepMerge4(a, deepClone3(c, exclude)), {});
|
|
3500
3500
|
};
|
|
3501
3501
|
var mergeAndCloneIfArray = (obj) => {
|
|
3502
|
-
return (0,
|
|
3502
|
+
return (0, import_utils26.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
|
|
3503
3503
|
};
|
|
3504
3504
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
3505
3505
|
const objectized = mergeAndCloneIfArray(param);
|
|
@@ -3554,7 +3554,7 @@ var require_extendUtils = __commonJS({
|
|
|
3554
3554
|
setHashedExtend: () => setHashedExtend
|
|
3555
3555
|
});
|
|
3556
3556
|
module2.exports = __toCommonJS2(extendUtils_exports);
|
|
3557
|
-
var
|
|
3557
|
+
var import_utils26 = require_cjs();
|
|
3558
3558
|
var generateHash = () => Math.random().toString(36).substring(2);
|
|
3559
3559
|
var extendStackRegistry = {};
|
|
3560
3560
|
var extendCachedRegistry = {};
|
|
@@ -3563,7 +3563,7 @@ var require_extendUtils = __commonJS({
|
|
|
3563
3563
|
};
|
|
3564
3564
|
var setHashedExtend = (extend, stack) => {
|
|
3565
3565
|
const hash2 = generateHash();
|
|
3566
|
-
if (!(0,
|
|
3566
|
+
if (!(0, import_utils26.isString)(extend)) {
|
|
3567
3567
|
extend.__hash = hash2;
|
|
3568
3568
|
}
|
|
3569
3569
|
extendStackRegistry[hash2] = stack;
|
|
@@ -3589,7 +3589,7 @@ var require_extendUtils = __commonJS({
|
|
|
3589
3589
|
var flattenExtend = (extend, stack) => {
|
|
3590
3590
|
if (!extend)
|
|
3591
3591
|
return stack;
|
|
3592
|
-
if ((0,
|
|
3592
|
+
if ((0, import_utils26.isArray)(extend))
|
|
3593
3593
|
return extractArrayExtend(extend, stack);
|
|
3594
3594
|
stack.push(extend);
|
|
3595
3595
|
if (extend.extend)
|
|
@@ -3602,9 +3602,9 @@ var require_extendUtils = __commonJS({
|
|
|
3602
3602
|
if (["parent", "node", "__element"].indexOf(prop) > -1)
|
|
3603
3603
|
continue;
|
|
3604
3604
|
const objProp = obj[prop];
|
|
3605
|
-
if ((0,
|
|
3605
|
+
if ((0, import_utils26.isObject)(objProp)) {
|
|
3606
3606
|
o[prop] = deepCloneExtend(objProp);
|
|
3607
|
-
} else if ((0,
|
|
3607
|
+
} else if ((0, import_utils26.isArray)(objProp)) {
|
|
3608
3608
|
o[prop] = objProp.map((x) => x);
|
|
3609
3609
|
} else
|
|
3610
3610
|
o[prop] = objProp;
|
|
@@ -3619,14 +3619,14 @@ var require_extendUtils = __commonJS({
|
|
|
3619
3619
|
const extendProp = extend[e];
|
|
3620
3620
|
if (elementProp === void 0) {
|
|
3621
3621
|
element[e] = extendProp;
|
|
3622
|
-
} else if ((0,
|
|
3622
|
+
} else if ((0, import_utils26.isObject)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
|
|
3623
3623
|
deepMergeExtend(elementProp, extendProp);
|
|
3624
|
-
} else if ((0,
|
|
3624
|
+
} else if ((0, import_utils26.isArray)(elementProp) && (0, import_utils26.isArray)(extendProp)) {
|
|
3625
3625
|
element[e] = elementProp.concat(extendProp);
|
|
3626
|
-
} else if ((0,
|
|
3626
|
+
} else if ((0, import_utils26.isArray)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
|
|
3627
3627
|
const obj = deepMergeExtend({}, elementProp);
|
|
3628
3628
|
element[e] = deepMergeExtend(obj, extendProp);
|
|
3629
|
-
} else if (elementProp === void 0 && (0,
|
|
3629
|
+
} else if (elementProp === void 0 && (0, import_utils26.isFunction)(extendProp)) {
|
|
3630
3630
|
element[e] = extendProp;
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
@@ -3639,7 +3639,7 @@ var require_extendUtils = __commonJS({
|
|
|
3639
3639
|
};
|
|
3640
3640
|
var replaceStringsWithComponents = (stack, components) => {
|
|
3641
3641
|
return stack.map((v) => {
|
|
3642
|
-
if ((0,
|
|
3642
|
+
if ((0, import_utils26.isString)(v))
|
|
3643
3643
|
return components[v];
|
|
3644
3644
|
else
|
|
3645
3645
|
return v;
|
|
@@ -3689,15 +3689,15 @@ var require_extend = __commonJS({
|
|
|
3689
3689
|
applyExtend: () => applyExtend
|
|
3690
3690
|
});
|
|
3691
3691
|
module2.exports = __toCommonJS2(extend_exports);
|
|
3692
|
-
var
|
|
3693
|
-
var
|
|
3692
|
+
var import_utils26 = require_cjs();
|
|
3693
|
+
var import_utils27 = require_utils();
|
|
3694
3694
|
var ENV2 = "development";
|
|
3695
3695
|
var applyExtend = (element, parent, options = {}) => {
|
|
3696
|
-
if ((0,
|
|
3697
|
-
element = (0,
|
|
3696
|
+
if ((0, import_utils26.isFunction)(element))
|
|
3697
|
+
element = (0, import_utils26.exec)(element, parent);
|
|
3698
3698
|
let { extend, props: props6, context, __ref } = element;
|
|
3699
3699
|
const COMPONENTS = context && context.components || options.components;
|
|
3700
|
-
if ((0,
|
|
3700
|
+
if ((0, import_utils26.isString)(extend)) {
|
|
3701
3701
|
if (COMPONENTS && COMPONENTS[extend]) {
|
|
3702
3702
|
extend = COMPONENTS[extend];
|
|
3703
3703
|
} else {
|
|
@@ -3707,7 +3707,7 @@ var require_extend = __commonJS({
|
|
|
3707
3707
|
extend = {};
|
|
3708
3708
|
}
|
|
3709
3709
|
}
|
|
3710
|
-
const extendStack = (0,
|
|
3710
|
+
const extendStack = (0, import_utils27.getExtendStack)(extend);
|
|
3711
3711
|
if (ENV2 !== "test" || ENV2 !== "development")
|
|
3712
3712
|
delete element.extend;
|
|
3713
3713
|
let childExtendStack = [];
|
|
@@ -3716,12 +3716,12 @@ var require_extend = __commonJS({
|
|
|
3716
3716
|
if (!options.ignoreChildExtend) {
|
|
3717
3717
|
if (props6 && props6.ignoreChildExtend)
|
|
3718
3718
|
return;
|
|
3719
|
-
childExtendStack = (0,
|
|
3719
|
+
childExtendStack = (0, import_utils27.getExtendStack)(parent.childExtend);
|
|
3720
3720
|
const ignoreChildExtendRecursive = props6 && props6.ignoreChildExtendRecursive;
|
|
3721
3721
|
if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
|
|
3722
3722
|
const canExtendRecursive = element.key !== "__text";
|
|
3723
3723
|
if (canExtendRecursive) {
|
|
3724
|
-
const childExtendRecursiveStack = (0,
|
|
3724
|
+
const childExtendRecursiveStack = (0, import_utils27.getExtendStack)(parent.childExtendRecursive);
|
|
3725
3725
|
childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
|
|
3726
3726
|
element.childExtendRecursive = parent.childExtendRecursive;
|
|
3727
3727
|
}
|
|
@@ -3732,7 +3732,7 @@ var require_extend = __commonJS({
|
|
|
3732
3732
|
const childExtendLength = childExtendStack.length;
|
|
3733
3733
|
let stack = [];
|
|
3734
3734
|
if (extendLength && childExtendLength) {
|
|
3735
|
-
stack = (0,
|
|
3735
|
+
stack = (0, import_utils27.jointStacks)(extendStack, childExtendStack);
|
|
3736
3736
|
} else if (extendLength) {
|
|
3737
3737
|
stack = extendStack;
|
|
3738
3738
|
} else if (childExtendLength) {
|
|
@@ -3740,19 +3740,19 @@ var require_extend = __commonJS({
|
|
|
3740
3740
|
} else if (!options.extend)
|
|
3741
3741
|
return element;
|
|
3742
3742
|
if (options.extend) {
|
|
3743
|
-
const defaultOptionsExtend = (0,
|
|
3743
|
+
const defaultOptionsExtend = (0, import_utils27.getExtendStack)(options.extend);
|
|
3744
3744
|
stack = [].concat(stack, defaultOptionsExtend);
|
|
3745
3745
|
}
|
|
3746
3746
|
if (__ref)
|
|
3747
3747
|
__ref.__extend = stack;
|
|
3748
|
-
const findAndReplaceStrings = (0,
|
|
3749
|
-
let mergedExtend = (0,
|
|
3750
|
-
const component = (0,
|
|
3748
|
+
const findAndReplaceStrings = (0, import_utils27.replaceStringsWithComponents)(stack, COMPONENTS);
|
|
3749
|
+
let mergedExtend = (0, import_utils27.cloneAndMergeArrayExtend)(findAndReplaceStrings);
|
|
3750
|
+
const component = (0, import_utils26.exec)(element.component || mergedExtend.component, element);
|
|
3751
3751
|
if (component && COMPONENTS && COMPONENTS[component]) {
|
|
3752
|
-
const componentExtend = (0,
|
|
3753
|
-
mergedExtend = (0,
|
|
3752
|
+
const componentExtend = (0, import_utils27.cloneAndMergeArrayExtend)((0, import_utils27.getExtendStack)(COMPONENTS[component]));
|
|
3753
|
+
mergedExtend = (0, import_utils27.deepMergeExtend)(componentExtend, mergedExtend);
|
|
3754
3754
|
}
|
|
3755
|
-
return (0,
|
|
3755
|
+
return (0, import_utils27.deepMergeExtend)(element, mergedExtend);
|
|
3756
3756
|
};
|
|
3757
3757
|
}
|
|
3758
3758
|
});
|
|
@@ -3791,11 +3791,11 @@ var require_component = __commonJS({
|
|
|
3791
3791
|
overwriteVariant: () => overwriteVariant
|
|
3792
3792
|
});
|
|
3793
3793
|
module2.exports = __toCommonJS2(component_exports);
|
|
3794
|
-
var
|
|
3794
|
+
var import_utils26 = require_cjs();
|
|
3795
3795
|
var import_extend = require_extend();
|
|
3796
3796
|
var ENV2 = "development";
|
|
3797
3797
|
var checkIfKeyIsComponent = (key) => {
|
|
3798
|
-
const isFirstKeyString = (0,
|
|
3798
|
+
const isFirstKeyString = (0, import_utils26.isString)(key);
|
|
3799
3799
|
if (!isFirstKeyString)
|
|
3800
3800
|
return;
|
|
3801
3801
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -3803,7 +3803,7 @@ var require_component = __commonJS({
|
|
|
3803
3803
|
};
|
|
3804
3804
|
var addAdditionalExtend = (newExtend, element) => {
|
|
3805
3805
|
const { extend } = element;
|
|
3806
|
-
const preserveExtend = (0,
|
|
3806
|
+
const preserveExtend = (0, import_utils26.isArray)(extend) ? extend : [extend];
|
|
3807
3807
|
return {
|
|
3808
3808
|
...element,
|
|
3809
3809
|
extend: [newExtend].concat(preserveExtend)
|
|
@@ -3826,10 +3826,10 @@ var require_component = __commonJS({
|
|
|
3826
3826
|
};
|
|
3827
3827
|
} else if (extend) {
|
|
3828
3828
|
addAdditionalExtend(extendKey, element);
|
|
3829
|
-
} else if ((0,
|
|
3829
|
+
} else if ((0, import_utils26.isFunction)(element)) {
|
|
3830
3830
|
return {
|
|
3831
3831
|
extend: extendKey,
|
|
3832
|
-
props: { ...(0,
|
|
3832
|
+
props: { ...(0, import_utils26.exec)(element, parent) }
|
|
3833
3833
|
};
|
|
3834
3834
|
}
|
|
3835
3835
|
};
|
|
@@ -3842,8 +3842,8 @@ var require_component = __commonJS({
|
|
|
3842
3842
|
return;
|
|
3843
3843
|
const { components } = context;
|
|
3844
3844
|
const { extend } = element;
|
|
3845
|
-
const execExtend = (0,
|
|
3846
|
-
if ((0,
|
|
3845
|
+
const execExtend = (0, import_utils26.exec)(extend, element);
|
|
3846
|
+
if ((0, import_utils26.isString)(execExtend)) {
|
|
3847
3847
|
if (components[execExtend])
|
|
3848
3848
|
element.extend = components[execExtend];
|
|
3849
3849
|
else {
|
|
@@ -3856,29 +3856,29 @@ var require_component = __commonJS({
|
|
|
3856
3856
|
}
|
|
3857
3857
|
};
|
|
3858
3858
|
var isVariant = (param) => {
|
|
3859
|
-
if (!(0,
|
|
3859
|
+
if (!(0, import_utils26.isString)(param))
|
|
3860
3860
|
return;
|
|
3861
3861
|
const firstCharKey = param.slice(0, 1);
|
|
3862
3862
|
return firstCharKey === ".";
|
|
3863
3863
|
};
|
|
3864
3864
|
var hasVariantProp = (element) => {
|
|
3865
3865
|
const { props: props6 } = element;
|
|
3866
|
-
if ((0,
|
|
3866
|
+
if ((0, import_utils26.isObject)(props6) && (0, import_utils26.isString)(props6.variant))
|
|
3867
3867
|
return true;
|
|
3868
3868
|
};
|
|
3869
3869
|
var overwriteVariant = (element, variant, variantProps) => {
|
|
3870
3870
|
let variantElement = element[variant];
|
|
3871
3871
|
if (!variantElement)
|
|
3872
3872
|
return;
|
|
3873
|
-
const props6 = (0,
|
|
3874
|
-
if ((0,
|
|
3873
|
+
const props6 = (0, import_utils26.isObject)(variantProps) ? variantProps : {};
|
|
3874
|
+
if ((0, import_utils26.isString)(variantElement)) {
|
|
3875
3875
|
variantElement = {
|
|
3876
3876
|
extend: [{ props: props6 }, variantElement]
|
|
3877
3877
|
};
|
|
3878
3878
|
} else if (variantElement.extend) {
|
|
3879
3879
|
variantElement = addAdditionalExtend({ props: props6 }, variantElement);
|
|
3880
3880
|
}
|
|
3881
|
-
return (0,
|
|
3881
|
+
return (0, import_utils26.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
|
|
3882
3882
|
};
|
|
3883
3883
|
var applyVariant = (element) => {
|
|
3884
3884
|
const { props: props6 } = element;
|
|
@@ -3953,8 +3953,8 @@ var require_iterate = __commonJS({
|
|
|
3953
3953
|
throughUpdatedExec: () => throughUpdatedExec
|
|
3954
3954
|
});
|
|
3955
3955
|
module2.exports = __toCommonJS2(iterate_exports);
|
|
3956
|
-
var
|
|
3957
|
-
var
|
|
3956
|
+
var import_utils26 = require_cjs();
|
|
3957
|
+
var import_utils27 = require_utils();
|
|
3958
3958
|
var import_methods = require_methods2();
|
|
3959
3959
|
var throughInitialExec = (element, exclude = {}) => {
|
|
3960
3960
|
const { __ref: ref } = element;
|
|
@@ -3962,13 +3962,13 @@ var require_iterate = __commonJS({
|
|
|
3962
3962
|
if (exclude[param])
|
|
3963
3963
|
continue;
|
|
3964
3964
|
const prop = element[param];
|
|
3965
|
-
if ((0,
|
|
3965
|
+
if ((0, import_utils26.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils27.isVariant)(param)) {
|
|
3966
3966
|
ref.__exec[param] = prop;
|
|
3967
3967
|
element[param] = prop(element, element.state);
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
3970
3970
|
};
|
|
3971
|
-
var throughUpdatedExec = (element, options = { excludes:
|
|
3971
|
+
var throughUpdatedExec = (element, options = { excludes: import_utils27.METHODS_EXL }) => {
|
|
3972
3972
|
const { __ref: ref } = element;
|
|
3973
3973
|
const changes = {};
|
|
3974
3974
|
for (const param in ref.__exec) {
|
|
@@ -3977,13 +3977,13 @@ var require_iterate = __commonJS({
|
|
|
3977
3977
|
if (isDefinedParam)
|
|
3978
3978
|
continue;
|
|
3979
3979
|
const newExec = ref.__exec[param](element, element.state, element.context);
|
|
3980
|
-
const execReturnsString = (0,
|
|
3980
|
+
const execReturnsString = (0, import_utils26.isString)(newExec) || (0, import_utils26.isNumber)(newExec);
|
|
3981
3981
|
if (prop && prop.node && execReturnsString) {
|
|
3982
|
-
(0,
|
|
3982
|
+
(0, import_utils27.overwrite)(prop, { text: newExec }, options);
|
|
3983
3983
|
} else if (newExec !== prop) {
|
|
3984
|
-
if ((0,
|
|
3985
|
-
const { extend, ...newElem } = (0,
|
|
3986
|
-
(0,
|
|
3984
|
+
if ((0, import_utils27.checkIfKeyIsComponent)(param)) {
|
|
3985
|
+
const { extend, ...newElem } = (0, import_utils27.extendizeByKey)(newExec, element, param);
|
|
3986
|
+
(0, import_utils27.overwrite)(prop, newElem, options);
|
|
3987
3987
|
} else {
|
|
3988
3988
|
ref.__cached[param] = changes[param] = prop;
|
|
3989
3989
|
element[param] = newExec;
|
|
@@ -3995,16 +3995,16 @@ var require_iterate = __commonJS({
|
|
|
3995
3995
|
var throughInitialDefine = (element) => {
|
|
3996
3996
|
const { define: define2, context, __ref: ref } = element;
|
|
3997
3997
|
let defineObj = {};
|
|
3998
|
-
const hasGlobalDefine = context && (0,
|
|
3999
|
-
if ((0,
|
|
3998
|
+
const hasGlobalDefine = context && (0, import_utils26.isObject)(context.define);
|
|
3999
|
+
if ((0, import_utils26.isObject)(define2))
|
|
4000
4000
|
defineObj = { ...define2 };
|
|
4001
4001
|
if (hasGlobalDefine)
|
|
4002
4002
|
defineObj = { ...defineObj, ...context.define };
|
|
4003
4003
|
for (const param in defineObj) {
|
|
4004
4004
|
let elementProp = element[param];
|
|
4005
|
-
if ((0,
|
|
4005
|
+
if ((0, import_utils26.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils27.isVariant)(param)) {
|
|
4006
4006
|
ref.__exec[param] = elementProp;
|
|
4007
|
-
const execParam2 = elementProp = (0,
|
|
4007
|
+
const execParam2 = elementProp = (0, import_utils26.exec)(elementProp, element);
|
|
4008
4008
|
if (execParam2) {
|
|
4009
4009
|
elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
|
|
4010
4010
|
ref.__defineCache[param] = elementProp;
|
|
@@ -4020,15 +4020,15 @@ var require_iterate = __commonJS({
|
|
|
4020
4020
|
const { context, define: define2, __ref: ref } = element;
|
|
4021
4021
|
const changes = {};
|
|
4022
4022
|
let obj = {};
|
|
4023
|
-
if ((0,
|
|
4023
|
+
if ((0, import_utils26.isObject)(define2))
|
|
4024
4024
|
obj = { ...define2 };
|
|
4025
|
-
if ((0,
|
|
4025
|
+
if ((0, import_utils26.isObject)(context && context.define))
|
|
4026
4026
|
obj = { ...obj, ...context.define };
|
|
4027
4027
|
for (const param in obj) {
|
|
4028
4028
|
const execParam = ref.__exec[param];
|
|
4029
4029
|
if (execParam)
|
|
4030
4030
|
ref.__defineCache[param] = execParam(element, element.state, element.context);
|
|
4031
|
-
const cached = (0,
|
|
4031
|
+
const cached = (0, import_utils26.exec)(ref.__defineCache[param], element);
|
|
4032
4032
|
const newExecParam = obj[param](cached, element, element.state, element.context);
|
|
4033
4033
|
if (newExecParam)
|
|
4034
4034
|
element[param] = newExecParam;
|
|
@@ -4064,7 +4064,7 @@ var require_applyParam = __commonJS({
|
|
|
4064
4064
|
applyParam: () => applyParam
|
|
4065
4065
|
});
|
|
4066
4066
|
module2.exports = __toCommonJS2(applyParam_exports);
|
|
4067
|
-
var
|
|
4067
|
+
var import_utils26 = require_cjs();
|
|
4068
4068
|
var import_mixins = require_mixins();
|
|
4069
4069
|
var applyParam = (param, element, options) => {
|
|
4070
4070
|
const { node: node2, context, __ref: ref } = element;
|
|
@@ -4077,7 +4077,7 @@ var require_applyParam = __commonJS({
|
|
|
4077
4077
|
if (!ref.__if)
|
|
4078
4078
|
return;
|
|
4079
4079
|
if (isGlobalTransformer && !hasContextDefine) {
|
|
4080
|
-
if ((0,
|
|
4080
|
+
if ((0, import_utils26.isFunction)(isGlobalTransformer)) {
|
|
4081
4081
|
isGlobalTransformer(prop, element, node2, options);
|
|
4082
4082
|
return;
|
|
4083
4083
|
}
|
|
@@ -4124,7 +4124,7 @@ var require_node2 = __commonJS({
|
|
|
4124
4124
|
default: () => node_default
|
|
4125
4125
|
});
|
|
4126
4126
|
module2.exports = __toCommonJS2(node_exports);
|
|
4127
|
-
var
|
|
4127
|
+
var import_utils26 = require_cjs();
|
|
4128
4128
|
var import_event = require_cjs3();
|
|
4129
4129
|
var import_render = require_cjs4();
|
|
4130
4130
|
var import_methods = require_methods2();
|
|
@@ -4132,7 +4132,7 @@ var require_node2 = __commonJS({
|
|
|
4132
4132
|
var import_iterate = require_iterate();
|
|
4133
4133
|
var import_mixins = require_mixins();
|
|
4134
4134
|
var import_applyParam = require_applyParam();
|
|
4135
|
-
var
|
|
4135
|
+
var import_utils27 = require_utils();
|
|
4136
4136
|
var ENV2 = "development";
|
|
4137
4137
|
var createNode = (element, options) => {
|
|
4138
4138
|
let { node: node2, tag, __ref: ref } = element;
|
|
@@ -4149,23 +4149,23 @@ var require_node2 = __commonJS({
|
|
|
4149
4149
|
}
|
|
4150
4150
|
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
4151
4151
|
node2.ref = element;
|
|
4152
|
-
if ((0,
|
|
4152
|
+
if ((0, import_utils26.isFunction)(node2.setAttribute))
|
|
4153
4153
|
node2.setAttribute("key", element.key);
|
|
4154
4154
|
}
|
|
4155
4155
|
if (element.tag !== "string" || element.tag !== "fragment") {
|
|
4156
4156
|
(0, import_iterate.throughInitialDefine)(element);
|
|
4157
4157
|
(0, import_iterate.throughInitialExec)(element);
|
|
4158
|
-
if (isNewNode && (0,
|
|
4158
|
+
if (isNewNode && (0, import_utils26.isObject)(element.on))
|
|
4159
4159
|
(0, import_event.applyEventsOnNode)(element);
|
|
4160
4160
|
for (const param in element) {
|
|
4161
4161
|
const prop = element[param];
|
|
4162
|
-
if ((0,
|
|
4162
|
+
if ((0, import_utils26.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils27.isVariant)(param) || (0, import_utils26.isObject)(import_mixins.registry[param]))
|
|
4163
4163
|
continue;
|
|
4164
4164
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
4165
4165
|
if (isElement) {
|
|
4166
4166
|
const { hasDefine, hasContextDefine } = isElement;
|
|
4167
4167
|
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
4168
|
-
(0, import_create.default)((0,
|
|
4168
|
+
(0, import_create.default)((0, import_utils26.exec)(prop, element), element, param, options);
|
|
4169
4169
|
}
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
@@ -4202,7 +4202,7 @@ var require_methods3 = __commonJS({
|
|
|
4202
4202
|
DEFAULT_METHODS: () => DEFAULT_METHODS
|
|
4203
4203
|
});
|
|
4204
4204
|
module2.exports = __toCommonJS2(methods_exports);
|
|
4205
|
-
var
|
|
4205
|
+
var import_utils26 = require_cjs();
|
|
4206
4206
|
var DEFAULT_METHODS = {
|
|
4207
4207
|
key: {},
|
|
4208
4208
|
tag: {},
|
|
@@ -4223,7 +4223,7 @@ var require_methods3 = __commonJS({
|
|
|
4223
4223
|
text: (element, state) => {
|
|
4224
4224
|
element.ref.text = {
|
|
4225
4225
|
tag: "text",
|
|
4226
|
-
text: (0,
|
|
4226
|
+
text: (0, import_utils26.exec)(element.text, element, state)
|
|
4227
4227
|
};
|
|
4228
4228
|
},
|
|
4229
4229
|
innerHTML: {},
|
|
@@ -4460,19 +4460,19 @@ var require_update2 = __commonJS({
|
|
|
4460
4460
|
default: () => update_default
|
|
4461
4461
|
});
|
|
4462
4462
|
module2.exports = __toCommonJS2(update_exports);
|
|
4463
|
-
var
|
|
4463
|
+
var import_utils26 = require_cjs();
|
|
4464
4464
|
var import_event = require_cjs3();
|
|
4465
4465
|
var import_methods = require_methods2();
|
|
4466
4466
|
var import_props = require_props();
|
|
4467
4467
|
var import_state3 = require_cjs5();
|
|
4468
|
-
var
|
|
4468
|
+
var import_utils27 = require_utils();
|
|
4469
4469
|
var import_create = __toESM2(require_create4(), 1);
|
|
4470
4470
|
var import_iterate = require_iterate();
|
|
4471
4471
|
var import_mixins = require_mixins();
|
|
4472
4472
|
var import_applyParam = require_applyParam();
|
|
4473
4473
|
var import_options3 = __toESM2(require_options(), 1);
|
|
4474
4474
|
var snapshot = {
|
|
4475
|
-
snapshotId:
|
|
4475
|
+
snapshotId: import_utils26.createSnapshotId
|
|
4476
4476
|
};
|
|
4477
4477
|
var UPDATE_DEFAULT_OPTIONS = {
|
|
4478
4478
|
stackChanges: false,
|
|
@@ -4480,7 +4480,7 @@ var require_update2 = __commonJS({
|
|
|
4480
4480
|
preventRecursive: false,
|
|
4481
4481
|
currentSnapshot: false,
|
|
4482
4482
|
calleeElement: false,
|
|
4483
|
-
excludes:
|
|
4483
|
+
excludes: import_utils27.METHODS_EXL
|
|
4484
4484
|
};
|
|
4485
4485
|
var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
|
|
4486
4486
|
const element = this;
|
|
@@ -4489,14 +4489,14 @@ var require_update2 = __commonJS({
|
|
|
4489
4489
|
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
4490
4490
|
return;
|
|
4491
4491
|
if (!excludes)
|
|
4492
|
-
(0,
|
|
4492
|
+
(0, import_utils26.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
4493
4493
|
let ref = element.__ref;
|
|
4494
4494
|
if (!ref)
|
|
4495
4495
|
ref = element.__ref = {};
|
|
4496
4496
|
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
4497
4497
|
if (snapshotHasUpdated)
|
|
4498
4498
|
return;
|
|
4499
|
-
if ((0,
|
|
4499
|
+
if ((0, import_utils26.isString)(params) || (0, import_utils26.isNumber)(params)) {
|
|
4500
4500
|
params = { text: params };
|
|
4501
4501
|
}
|
|
4502
4502
|
const ifFails = checkIfOnUpdate(element, parent, options);
|
|
@@ -4507,7 +4507,7 @@ var require_update2 = __commonJS({
|
|
|
4507
4507
|
return;
|
|
4508
4508
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
4509
4509
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
4510
|
-
const hasFunctionInProps = ref.__props.filter((v) => (0,
|
|
4510
|
+
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils26.isFunction)(v));
|
|
4511
4511
|
const props6 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
4512
4512
|
if (props6)
|
|
4513
4513
|
(0, import_props.updateProps)(props6, element, parent);
|
|
@@ -4520,11 +4520,11 @@ var require_update2 = __commonJS({
|
|
|
4520
4520
|
if (initUpdateReturns === false)
|
|
4521
4521
|
return element;
|
|
4522
4522
|
}
|
|
4523
|
-
const overwriteChanges = (0,
|
|
4523
|
+
const overwriteChanges = (0, import_utils26.overwriteDeep)(element, params, import_utils27.METHODS_EXL);
|
|
4524
4524
|
const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
|
|
4525
4525
|
const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
|
|
4526
4526
|
if (options.stackChanges && element.__stackChanges) {
|
|
4527
|
-
const stackChanges = (0,
|
|
4527
|
+
const stackChanges = (0, import_utils26.merge)(definedChanges, (0, import_utils26.merge)(execChanges, overwriteChanges));
|
|
4528
4528
|
element.__stackChanges.push(stackChanges);
|
|
4529
4529
|
}
|
|
4530
4530
|
if (!ref.__if)
|
|
@@ -4535,16 +4535,16 @@ var require_update2 = __commonJS({
|
|
|
4535
4535
|
for (const param in element) {
|
|
4536
4536
|
const prop = element[param];
|
|
4537
4537
|
const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
|
|
4538
|
-
const isInPreventUpdate = (0,
|
|
4539
|
-
const isInPreventDefineUpdate = (0,
|
|
4540
|
-
if ((0,
|
|
4538
|
+
const isInPreventUpdate = (0, import_utils26.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
|
|
4539
|
+
const isInPreventDefineUpdate = (0, import_utils26.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
|
|
4540
|
+
if ((0, import_utils26.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_utils26.isObject)(import_mixins.registry[param]) || (0, import_utils27.isVariant)(param))
|
|
4541
4541
|
continue;
|
|
4542
4542
|
if (options.preventStateUpdate === "once")
|
|
4543
4543
|
options.preventStateUpdate = false;
|
|
4544
4544
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
4545
4545
|
if (isElement) {
|
|
4546
4546
|
const { hasDefine, hasContextDefine } = isElement;
|
|
4547
|
-
const canUpdate = (0,
|
|
4547
|
+
const canUpdate = (0, import_utils26.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
|
|
4548
4548
|
if (!canUpdate)
|
|
4549
4549
|
continue;
|
|
4550
4550
|
const childUpdateCall = () => update.call(prop, params[prop], {
|
|
@@ -4553,7 +4553,7 @@ var require_update2 = __commonJS({
|
|
|
4553
4553
|
calleeElement
|
|
4554
4554
|
});
|
|
4555
4555
|
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
4556
|
-
|
|
4556
|
+
import_utils26.window.requestAnimationFrame(() => childUpdateCall());
|
|
4557
4557
|
} else
|
|
4558
4558
|
childUpdateCall();
|
|
4559
4559
|
}
|
|
@@ -4577,7 +4577,7 @@ var require_update2 = __commonJS({
|
|
|
4577
4577
|
return [snapshotOnCallee, calleeElement];
|
|
4578
4578
|
};
|
|
4579
4579
|
var checkIfOnUpdate = (element, parent, options) => {
|
|
4580
|
-
if (!(0,
|
|
4580
|
+
if (!(0, import_utils26.isFunction)(element.if) || !element.state || !parent)
|
|
4581
4581
|
return;
|
|
4582
4582
|
const ref = element.__ref;
|
|
4583
4583
|
const ifPassed = element.if(element, element.state, element.context, options);
|
|
@@ -4594,7 +4594,7 @@ var require_update2 = __commonJS({
|
|
|
4594
4594
|
element.state = ref.__state;
|
|
4595
4595
|
}
|
|
4596
4596
|
const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create);
|
|
4597
|
-
if (options.preventUpdate !== true && element.on && (0,
|
|
4597
|
+
if (options.preventUpdate !== true && element.on && (0, import_utils26.isFunction)(element.on.update)) {
|
|
4598
4598
|
(0, import_event.applyEvent)(element.on.update, created, created.state);
|
|
4599
4599
|
}
|
|
4600
4600
|
return created;
|
|
@@ -4615,9 +4615,9 @@ var require_update2 = __commonJS({
|
|
|
4615
4615
|
return;
|
|
4616
4616
|
}
|
|
4617
4617
|
const { isHoisted, execStateFunction, stateFunctionOverwrite } = options;
|
|
4618
|
-
const shouldForceStateUpdate = (0,
|
|
4618
|
+
const shouldForceStateUpdate = (0, import_utils26.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
|
|
4619
4619
|
if (shouldForceStateUpdate) {
|
|
4620
|
-
const execState = (0,
|
|
4620
|
+
const execState = (0, import_utils26.exec)(stateKey, element);
|
|
4621
4621
|
state.set(execState, {
|
|
4622
4622
|
...options,
|
|
4623
4623
|
preventUpdate: true
|
|
@@ -4689,7 +4689,7 @@ var require_set2 = __commonJS({
|
|
|
4689
4689
|
addMethods: () => addMethods
|
|
4690
4690
|
});
|
|
4691
4691
|
module2.exports = __toCommonJS2(set_exports);
|
|
4692
|
-
var
|
|
4692
|
+
var import_utils26 = require_cjs();
|
|
4693
4693
|
var import_set = __toESM2(require_set(), 1);
|
|
4694
4694
|
var import_update = __toESM2(require_update2(), 1);
|
|
4695
4695
|
var import__ = require_methods2();
|
|
@@ -4710,7 +4710,7 @@ var require_set2 = __commonJS({
|
|
|
4710
4710
|
nextElement: import__.nextElement.bind(element),
|
|
4711
4711
|
previousElement: import__.previousElement.bind(element)
|
|
4712
4712
|
};
|
|
4713
|
-
if ((0,
|
|
4713
|
+
if ((0, import_utils26.isDevelopment)())
|
|
4714
4714
|
proto.log = import__.log.bind(element);
|
|
4715
4715
|
Object.setPrototypeOf(element, proto);
|
|
4716
4716
|
};
|
|
@@ -4766,7 +4766,7 @@ var require_create4 = __commonJS({
|
|
|
4766
4766
|
var import_set = require_set2();
|
|
4767
4767
|
var import_classList = require_classList();
|
|
4768
4768
|
var import_iterate = require_iterate();
|
|
4769
|
-
var
|
|
4769
|
+
var import_utils26 = require_cjs();
|
|
4770
4770
|
var import_options3 = __toESM2(require_options(), 1);
|
|
4771
4771
|
var import_component = require_component();
|
|
4772
4772
|
var ENV2 = "development";
|
|
@@ -4779,7 +4779,7 @@ var require_create4 = __commonJS({
|
|
|
4779
4779
|
parent = redefineParent(element, parent, key);
|
|
4780
4780
|
key = createKey(element, parent, key);
|
|
4781
4781
|
const ref = addRef(element, parent, key);
|
|
4782
|
-
ref.__initialProps = (0,
|
|
4782
|
+
ref.__initialProps = (0, import_utils26.deepClone)(element.props, []);
|
|
4783
4783
|
applyContext(element, parent, options);
|
|
4784
4784
|
(0, import_component.applyComponentFromContext)(element, parent, options);
|
|
4785
4785
|
(0, import_extend.applyExtend)(element, parent, options);
|
|
@@ -4814,7 +4814,7 @@ var require_create4 = __commonJS({
|
|
|
4814
4814
|
}
|
|
4815
4815
|
return {};
|
|
4816
4816
|
}
|
|
4817
|
-
if ((0,
|
|
4817
|
+
if ((0, import_utils26.isString)(key) && key.slice(0, 2 === "__")) {
|
|
4818
4818
|
if (ENV2 === "test" || ENV2 === "development") {
|
|
4819
4819
|
console.warn(key, "seems like to be in __ref");
|
|
4820
4820
|
}
|
|
@@ -4841,7 +4841,7 @@ var require_create4 = __commonJS({
|
|
|
4841
4841
|
var redefineParent = (element, parent, key, options) => {
|
|
4842
4842
|
if (!parent)
|
|
4843
4843
|
return import_tree.ROOT;
|
|
4844
|
-
if ((0,
|
|
4844
|
+
if ((0, import_utils26.isNode)(parent)) {
|
|
4845
4845
|
const parentNodeWrapper = { key: ":root", node: parent };
|
|
4846
4846
|
import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
|
|
4847
4847
|
return parentNodeWrapper;
|
|
@@ -4855,7 +4855,7 @@ var require_create4 = __commonJS({
|
|
|
4855
4855
|
}
|
|
4856
4856
|
};
|
|
4857
4857
|
var createKey = (element, parent, key) => {
|
|
4858
|
-
return (key || element.key || (0,
|
|
4858
|
+
return (key || element.key || (0, import_utils26.generateKey)()).toString();
|
|
4859
4859
|
};
|
|
4860
4860
|
var addRef = (element, parent) => {
|
|
4861
4861
|
if (element.__ref)
|
|
@@ -4885,7 +4885,7 @@ var require_create4 = __commonJS({
|
|
|
4885
4885
|
(0, import_event.triggerEventOn)("render", element, options);
|
|
4886
4886
|
};
|
|
4887
4887
|
var checkIfPrimitive = (element) => {
|
|
4888
|
-
return (0,
|
|
4888
|
+
return (0, import_utils26.is)(element)("string", "number");
|
|
4889
4889
|
};
|
|
4890
4890
|
var applyValueAsText = (element, parent, key) => {
|
|
4891
4891
|
const extendTag = element.extend && element.extend.tag;
|
|
@@ -4904,7 +4904,7 @@ var require_create4 = __commonJS({
|
|
|
4904
4904
|
};
|
|
4905
4905
|
var createIfConditionFlag = (element, parent) => {
|
|
4906
4906
|
const { __ref: ref } = element;
|
|
4907
|
-
if ((0,
|
|
4907
|
+
if ((0, import_utils26.isFunction)(element.if)) {
|
|
4908
4908
|
const ifPassed = element.if(element, element.state);
|
|
4909
4909
|
if (!ifPassed) {
|
|
4910
4910
|
const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
|
|
@@ -4958,7 +4958,7 @@ var require_create4 = __commonJS({
|
|
|
4958
4958
|
element.props = {};
|
|
4959
4959
|
(0, import_state3.createState)(element, parent);
|
|
4960
4960
|
const ref = __ref;
|
|
4961
|
-
if ((0,
|
|
4961
|
+
if ((0, import_utils26.isFunction)(element.if)) {
|
|
4962
4962
|
const ifPassed = element.if(element, element.state);
|
|
4963
4963
|
if (!ifPassed) {
|
|
4964
4964
|
delete ref.__if;
|
|
@@ -4972,7 +4972,7 @@ var require_create4 = __commonJS({
|
|
|
4972
4972
|
(0, import_iterate.throughInitialExec)(element, options.propsExcludedFromExec);
|
|
4973
4973
|
for (const param in element) {
|
|
4974
4974
|
const prop = element[param];
|
|
4975
|
-
if ((0,
|
|
4975
|
+
if ((0, import_utils26.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils26.isObject)(import_mixins.registry[param]) || (0, import_component.isVariant)(param))
|
|
4976
4976
|
continue;
|
|
4977
4977
|
const hasDefine = element.define && element.define[param];
|
|
4978
4978
|
const contextHasDefine = element.context && element.context.define && element.context.define[param];
|
|
@@ -4980,7 +4980,7 @@ var require_create4 = __commonJS({
|
|
|
4980
4980
|
if (import_mixins.registry[param] && !optionsHasDefine) {
|
|
4981
4981
|
continue;
|
|
4982
4982
|
} else if (element[param] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
|
|
4983
|
-
create2((0,
|
|
4983
|
+
create2((0, import_utils26.exec)(prop, element), element, param, options);
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
4986
4986
|
}
|
|
@@ -6501,7 +6501,7 @@ var require_cjs9 = __commonJS({
|
|
|
6501
6501
|
setVariables: () => setVariables
|
|
6502
6502
|
});
|
|
6503
6503
|
var import_globals = __toESM2(require_cjs13(), 1);
|
|
6504
|
-
var
|
|
6504
|
+
var import_utils26 = __toESM2(require_cjs22(), 1);
|
|
6505
6505
|
var ENV2 = "development";
|
|
6506
6506
|
var colorStringToRgbaArray = (color) => {
|
|
6507
6507
|
if (color === "")
|
|
@@ -6629,9 +6629,9 @@ var require_cjs9 = __commonJS({
|
|
|
6629
6629
|
return `rgba(${arr})`;
|
|
6630
6630
|
};
|
|
6631
6631
|
var getRgbTone = (rgb, tone) => {
|
|
6632
|
-
if ((0,
|
|
6632
|
+
if ((0, import_utils26.isString)(rgb))
|
|
6633
6633
|
rgb = rgb.split(", ").map((v) => parseFloat(v));
|
|
6634
|
-
if ((0,
|
|
6634
|
+
if ((0, import_utils26.isNumber)(tone))
|
|
6635
6635
|
tone += "";
|
|
6636
6636
|
const toHex = rgbArrayToHex(rgb);
|
|
6637
6637
|
const abs2 = tone.slice(0, 1);
|
|
@@ -6696,7 +6696,7 @@ var require_cjs9 = __commonJS({
|
|
|
6696
6696
|
};
|
|
6697
6697
|
var import_utils52 = __toESM2(require_cjs22(), 1);
|
|
6698
6698
|
var import_utils32 = __toESM2(require_cjs22());
|
|
6699
|
-
var
|
|
6699
|
+
var import_utils27 = __toESM2(require_cjs22());
|
|
6700
6700
|
var toCamelCase2 = (str) => {
|
|
6701
6701
|
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
|
|
6702
6702
|
return index === 0 ? word.toLowerCase() : word.toUpperCase();
|
|
@@ -7997,9 +7997,9 @@ var require_cjs9 = __commonJS({
|
|
|
7997
7997
|
return;
|
|
7998
7998
|
return arr.map(transformTransition).join(",");
|
|
7999
7999
|
};
|
|
8000
|
-
var
|
|
8000
|
+
var import_utils272 = __toESM2(require_cjs22(), 1);
|
|
8001
8001
|
var setCases = (val, key) => {
|
|
8002
|
-
if ((0,
|
|
8002
|
+
if ((0, import_utils272.isFunction)(val))
|
|
8003
8003
|
return val();
|
|
8004
8004
|
return val;
|
|
8005
8005
|
};
|
|
@@ -8121,8 +8121,8 @@ var require_cjs10 = __commonJS({
|
|
|
8121
8121
|
router: () => router2
|
|
8122
8122
|
});
|
|
8123
8123
|
module2.exports = __toCommonJS2(router_exports);
|
|
8124
|
-
var
|
|
8125
|
-
var getActiveRoute = (level = 0, route =
|
|
8124
|
+
var import_utils26 = require_cjs();
|
|
8125
|
+
var getActiveRoute = (level = 0, route = import_utils26.window.location.pathname) => {
|
|
8126
8126
|
const routeArray = route.split("/");
|
|
8127
8127
|
const activeRoute = routeArray[level + 1];
|
|
8128
8128
|
if (activeRoute)
|
|
@@ -8136,7 +8136,7 @@ var require_cjs10 = __commonJS({
|
|
|
8136
8136
|
initialRender: false,
|
|
8137
8137
|
scrollToTop: true,
|
|
8138
8138
|
scrollToNode: false,
|
|
8139
|
-
scrollNode:
|
|
8139
|
+
scrollNode: import_utils26.document && import_utils26.document.documentElement,
|
|
8140
8140
|
scrollBody: false,
|
|
8141
8141
|
useFragment: false,
|
|
8142
8142
|
updateState: true,
|
|
@@ -8151,13 +8151,13 @@ var require_cjs10 = __commonJS({
|
|
|
8151
8151
|
const route = getActiveRoute(options.level, pathname);
|
|
8152
8152
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
8153
8153
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
8154
|
-
const hashChanged = hash2 && hash2 !==
|
|
8154
|
+
const hashChanged = hash2 && hash2 !== import_utils26.window.location.hash.slice(1);
|
|
8155
8155
|
const pathChanged = pathname !== lastPathname;
|
|
8156
8156
|
lastPathname = pathname;
|
|
8157
8157
|
if (!content)
|
|
8158
8158
|
return;
|
|
8159
8159
|
if (options.pushState) {
|
|
8160
|
-
|
|
8160
|
+
import_utils26.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
8161
8161
|
}
|
|
8162
8162
|
if (pathChanged || !hashChanged) {
|
|
8163
8163
|
if (options.updateState) {
|
|
@@ -8183,7 +8183,7 @@ var require_cjs10 = __commonJS({
|
|
|
8183
8183
|
});
|
|
8184
8184
|
}
|
|
8185
8185
|
if (hash2) {
|
|
8186
|
-
const activeNode =
|
|
8186
|
+
const activeNode = import_utils26.document.getElementById(hash2);
|
|
8187
8187
|
if (activeNode) {
|
|
8188
8188
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
8189
8189
|
scrollNode.scrollTo({
|
|
@@ -8215,7 +8215,7 @@ var require_moment = __commonJS({
|
|
|
8215
8215
|
function isArray8(input) {
|
|
8216
8216
|
return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]";
|
|
8217
8217
|
}
|
|
8218
|
-
function
|
|
8218
|
+
function isObject15(input) {
|
|
8219
8219
|
return input != null && Object.prototype.toString.call(input) === "[object Object]";
|
|
8220
8220
|
}
|
|
8221
8221
|
function hasOwnProp(a, b) {
|
|
@@ -8463,7 +8463,7 @@ var require_moment = __commonJS({
|
|
|
8463
8463
|
var res = extend({}, parentConfig), prop;
|
|
8464
8464
|
for (prop in childConfig) {
|
|
8465
8465
|
if (hasOwnProp(childConfig, prop)) {
|
|
8466
|
-
if (
|
|
8466
|
+
if (isObject15(parentConfig[prop]) && isObject15(childConfig[prop])) {
|
|
8467
8467
|
res[prop] = {};
|
|
8468
8468
|
extend(res[prop], parentConfig[prop]);
|
|
8469
8469
|
extend(res[prop], childConfig[prop]);
|
|
@@ -8475,7 +8475,7 @@ var require_moment = __commonJS({
|
|
|
8475
8475
|
}
|
|
8476
8476
|
}
|
|
8477
8477
|
for (prop in parentConfig) {
|
|
8478
|
-
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) &&
|
|
8478
|
+
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject15(parentConfig[prop])) {
|
|
8479
8479
|
res[prop] = extend({}, res[prop]);
|
|
8480
8480
|
}
|
|
8481
8481
|
}
|
|
@@ -10258,7 +10258,7 @@ var require_moment = __commonJS({
|
|
|
10258
10258
|
return parseInt(obj, 10);
|
|
10259
10259
|
});
|
|
10260
10260
|
configFromArray(config);
|
|
10261
|
-
} else if (
|
|
10261
|
+
} else if (isObject15(input)) {
|
|
10262
10262
|
configFromObject(config);
|
|
10263
10263
|
} else if (isNumber2(input)) {
|
|
10264
10264
|
config._d = new Date(input);
|
|
@@ -10276,7 +10276,7 @@ var require_moment = __commonJS({
|
|
|
10276
10276
|
strict = locale2;
|
|
10277
10277
|
locale2 = void 0;
|
|
10278
10278
|
}
|
|
10279
|
-
if (
|
|
10279
|
+
if (isObject15(input) && isObjectEmpty(input) || isArray8(input) && input.length === 0) {
|
|
10280
10280
|
input = void 0;
|
|
10281
10281
|
}
|
|
10282
10282
|
c._isAMomentObject = true;
|
|
@@ -10695,7 +10695,7 @@ var require_moment = __commonJS({
|
|
|
10695
10695
|
return isMoment(input) || isDate(input) || isString10(input) || isNumber2(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
|
10696
10696
|
}
|
|
10697
10697
|
function isMomentInputObject(input) {
|
|
10698
|
-
var objectTest =
|
|
10698
|
+
var objectTest = isObject15(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
|
10699
10699
|
"years",
|
|
10700
10700
|
"year",
|
|
10701
10701
|
"y",
|
|
@@ -10737,7 +10737,7 @@ var require_moment = __commonJS({
|
|
|
10737
10737
|
return arrayTest && dataTypeTest;
|
|
10738
10738
|
}
|
|
10739
10739
|
function isCalendarSpec(input) {
|
|
10740
|
-
var objectTest =
|
|
10740
|
+
var objectTest = isObject15(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
|
10741
10741
|
"sameDay",
|
|
10742
10742
|
"nextDay",
|
|
10743
10743
|
"lastDay",
|
|
@@ -12520,7 +12520,7 @@ __export(src_exports, {
|
|
|
12520
12520
|
});
|
|
12521
12521
|
module.exports = __toCommonJS(src_exports);
|
|
12522
12522
|
var import_domql = __toESM(require_cjs8(), 1);
|
|
12523
|
-
var
|
|
12523
|
+
var import_utils25 = __toESM(require_cjs(), 1);
|
|
12524
12524
|
|
|
12525
12525
|
// src/utilImports.js
|
|
12526
12526
|
var utilImports_exports = {};
|
|
@@ -14777,7 +14777,13 @@ var keySetters = {
|
|
|
14777
14777
|
isSubtree ? result : result && result.selector,
|
|
14778
14778
|
element
|
|
14779
14779
|
),
|
|
14780
|
-
"&": (key, props6, result, element, isSubtree) =>
|
|
14780
|
+
"&": (key, props6, result, element, isSubtree) => applyAndProps(
|
|
14781
|
+
key,
|
|
14782
|
+
props6,
|
|
14783
|
+
isSubtree ? result : result && result.selector,
|
|
14784
|
+
element
|
|
14785
|
+
),
|
|
14786
|
+
">": (key, props6, result, element, isSubtree) => applyAndProps(
|
|
14781
14787
|
key,
|
|
14782
14788
|
props6,
|
|
14783
14789
|
isSubtree ? result : result && result.selector,
|
|
@@ -14853,7 +14859,7 @@ var applyMediaProps = (key, props6, result, element) => {
|
|
|
14853
14859
|
result[mediaKey] = generatedClass;
|
|
14854
14860
|
return result[mediaKey];
|
|
14855
14861
|
};
|
|
14856
|
-
var
|
|
14862
|
+
var applyAndProps = (key, props6, result, element) => {
|
|
14857
14863
|
result[key] = convertPropsToClass(props6, result, element);
|
|
14858
14864
|
return result[key];
|
|
14859
14865
|
};
|
|
@@ -15243,16 +15249,18 @@ var Shape = {
|
|
|
15243
15249
|
};
|
|
15244
15250
|
|
|
15245
15251
|
// ../../uikit/domql/Atoms/Text.js
|
|
15252
|
+
var import_utils8 = __toESM(require_cjs());
|
|
15246
15253
|
var import_scratch10 = __toESM(require_cjs9());
|
|
15247
15254
|
var Text = {
|
|
15248
|
-
|
|
15249
|
-
|
|
15255
|
+
deps: { isObject: import_utils8.isObject, getFontSizeByKey: import_scratch10.getFontSizeByKey, getFontFamily: import_scratch10.getFontFamily },
|
|
15256
|
+
text: ({ key, props: props6, state, deps }) => {
|
|
15257
|
+
if (deps.isObject(props6) && props6.text === true)
|
|
15250
15258
|
return state && state[key] || props6 && props6[key];
|
|
15251
15259
|
return props6.text;
|
|
15252
15260
|
},
|
|
15253
15261
|
class: {
|
|
15254
|
-
fontSize: ({ props: props6 }) => props6.fontSize ?
|
|
15255
|
-
fontFamily: ({ props: props6 }) => props6.fontFamily && { fontFamily:
|
|
15262
|
+
fontSize: ({ props: props6, deps }) => props6.fontSize ? deps.getFontSizeByKey(props6.fontSize) : null,
|
|
15263
|
+
fontFamily: ({ props: props6, deps }) => props6.fontFamily && { fontFamily: deps.getFontFamily(props6.fontFamily) || props6.fontFamily },
|
|
15256
15264
|
lineHeight: ({ props: props6 }) => props6.lineHeight && { lineHeight: props6.lineHeight },
|
|
15257
15265
|
// lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
15258
15266
|
textDecoration: ({ props: props6 }) => props6.textDecoration && { textDecoration: props6.textDecoration },
|
|
@@ -15310,10 +15318,10 @@ var XYZ = {
|
|
|
15310
15318
|
|
|
15311
15319
|
// ../../uikit/domql/Atoms/Animation.js
|
|
15312
15320
|
var import_scratch11 = __toESM(require_cjs9());
|
|
15313
|
-
var
|
|
15321
|
+
var import_utils9 = __toESM(require_cjs());
|
|
15314
15322
|
var { keyframes } = emotion;
|
|
15315
15323
|
var applyAnimationProps = (animation, element) => {
|
|
15316
|
-
if ((0,
|
|
15324
|
+
if ((0, import_utils9.isObject)(animation))
|
|
15317
15325
|
return { animationName: keyframes(animation) };
|
|
15318
15326
|
const { ANIMATION: ANIMATION2 } = element.context && element.context.designSystem;
|
|
15319
15327
|
const record = ANIMATION2[animation];
|
|
@@ -15358,7 +15366,7 @@ var Animation = {
|
|
|
15358
15366
|
};
|
|
15359
15367
|
|
|
15360
15368
|
// ../../uikit/domql/Box/index.js
|
|
15361
|
-
var
|
|
15369
|
+
var import_utils10 = __toESM(require_cjs());
|
|
15362
15370
|
var PropsCSS = {
|
|
15363
15371
|
class: {
|
|
15364
15372
|
style: ({ props: props6 }) => props6 && props6.style
|
|
@@ -15381,8 +15389,8 @@ var Box = {
|
|
|
15381
15389
|
Animation
|
|
15382
15390
|
],
|
|
15383
15391
|
attr: {
|
|
15384
|
-
id: ({ props: props6 }) => (0,
|
|
15385
|
-
title: ({ props: props6 }) => (0,
|
|
15392
|
+
id: ({ props: props6 }) => (0, import_utils10.isString)(props6.id) && props6.id,
|
|
15393
|
+
title: ({ props: props6 }) => (0, import_utils10.isString)(props6.title) && props6.title,
|
|
15386
15394
|
contentEditable: ({ props: props6 }) => props6.contentEditable || props6.contenteditable,
|
|
15387
15395
|
dir: ({ props: props6 }) => props6.dir,
|
|
15388
15396
|
draggable: ({ props: props6 }) => props6.draggable,
|
|
@@ -15399,6 +15407,25 @@ var Circle = {
|
|
|
15399
15407
|
}
|
|
15400
15408
|
};
|
|
15401
15409
|
|
|
15410
|
+
// ../../uikit/domql/InfoSet/index.js
|
|
15411
|
+
var InfoSet = {
|
|
15412
|
+
extend: Flex,
|
|
15413
|
+
childExtend: Flex,
|
|
15414
|
+
props: {
|
|
15415
|
+
flow: "column",
|
|
15416
|
+
childProps: {
|
|
15417
|
+
title: {
|
|
15418
|
+
fontSize: "Z",
|
|
15419
|
+
fontWeight: "500"
|
|
15420
|
+
},
|
|
15421
|
+
subTitle: {
|
|
15422
|
+
fontSize: "Y",
|
|
15423
|
+
color: "#A3A3A8"
|
|
15424
|
+
}
|
|
15425
|
+
}
|
|
15426
|
+
}
|
|
15427
|
+
};
|
|
15428
|
+
|
|
15402
15429
|
// ../../uikit/domql/Icon/index.js
|
|
15403
15430
|
var Icon = {
|
|
15404
15431
|
extend: Svg,
|
|
@@ -15655,26 +15682,24 @@ var CheckMark = {
|
|
|
15655
15682
|
}
|
|
15656
15683
|
};
|
|
15657
15684
|
|
|
15658
|
-
// ../../uikit/domql/
|
|
15659
|
-
var
|
|
15660
|
-
extend:
|
|
15661
|
-
childExtend: Flex,
|
|
15685
|
+
// ../../uikit/domql/Label/index.js
|
|
15686
|
+
var Label = {
|
|
15687
|
+
extend: Button,
|
|
15662
15688
|
props: {
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
|
|
15671
|
-
|
|
15672
|
-
|
|
15673
|
-
|
|
15689
|
+
theme: "tertiary",
|
|
15690
|
+
fontSize: "Z2",
|
|
15691
|
+
emoji: "\u{1F44D}",
|
|
15692
|
+
text: "3",
|
|
15693
|
+
padding: "X2 Z",
|
|
15694
|
+
round: "C",
|
|
15695
|
+
lineHeight: 1,
|
|
15696
|
+
gap: "X2",
|
|
15697
|
+
fontWeight: "500"
|
|
15698
|
+
},
|
|
15699
|
+
emoji: {
|
|
15700
|
+
props: ({ parent }) => ({ text: parent.props.emoji })
|
|
15674
15701
|
}
|
|
15675
15702
|
};
|
|
15676
|
-
|
|
15677
|
-
// ../../uikit/domql/Card/index.js
|
|
15678
15703
|
var CardLabel = {
|
|
15679
15704
|
props: {
|
|
15680
15705
|
text: "-2.902x",
|
|
@@ -15685,6 +15710,21 @@ var CardLabel = {
|
|
|
15685
15710
|
round: "Y"
|
|
15686
15711
|
}
|
|
15687
15712
|
};
|
|
15713
|
+
|
|
15714
|
+
// ../../uikit/domql/Avatar/index.js
|
|
15715
|
+
var Avatar = {
|
|
15716
|
+
extend: Img,
|
|
15717
|
+
props: {
|
|
15718
|
+
display: "block",
|
|
15719
|
+
avatarType: "initials",
|
|
15720
|
+
borderRadius: "100%",
|
|
15721
|
+
boxSize: "A+A",
|
|
15722
|
+
cursor: "pointer"
|
|
15723
|
+
},
|
|
15724
|
+
attr: {
|
|
15725
|
+
src: ({ key, props: props6 }) => props6.src || `https://avatars.dicebear.com/api/${props6.avatarType || "adventurer-neutral"}/${props6.key || key}.svg`
|
|
15726
|
+
}
|
|
15727
|
+
};
|
|
15688
15728
|
var DropDownWithAvatar = {
|
|
15689
15729
|
extend: Flex,
|
|
15690
15730
|
avatar: { extend: Avatar },
|
|
@@ -15718,104 +15758,6 @@ var DropDownWithAvatar = {
|
|
|
15718
15758
|
}
|
|
15719
15759
|
}
|
|
15720
15760
|
};
|
|
15721
|
-
var AmountWithLabel = {
|
|
15722
|
-
extend: Flex,
|
|
15723
|
-
amount: { props: { text: "240.59" } },
|
|
15724
|
-
label: {
|
|
15725
|
-
extend: CardLabel,
|
|
15726
|
-
props: { text: "-0.25%" }
|
|
15727
|
-
},
|
|
15728
|
-
props: {
|
|
15729
|
-
align: "center flex-start",
|
|
15730
|
-
gap: "Y+V",
|
|
15731
|
-
amount: {
|
|
15732
|
-
fontSize: `${20 / 16}em`,
|
|
15733
|
-
fontWeight: "700"
|
|
15734
|
-
}
|
|
15735
|
-
}
|
|
15736
|
-
};
|
|
15737
|
-
var Card = {
|
|
15738
|
-
extend: InfoSet,
|
|
15739
|
-
heading: {
|
|
15740
|
-
title: { props: { text: "Total crypto assets" } },
|
|
15741
|
-
icon: { extend: Icon, props: { name: "arrowUpRight" } }
|
|
15742
|
-
},
|
|
15743
|
-
content: {
|
|
15744
|
-
extend: AmountWithLabel,
|
|
15745
|
-
amount: { props: { text: "$ 12,759" } },
|
|
15746
|
-
label: { props: { text: "+ 8.8%" } }
|
|
15747
|
-
},
|
|
15748
|
-
footer: {
|
|
15749
|
-
subTitle: {
|
|
15750
|
-
extend: Flex,
|
|
15751
|
-
caption: { props: { text: "Last update:" } },
|
|
15752
|
-
span: { props: { text: "an hour ago" } }
|
|
15753
|
-
}
|
|
15754
|
-
},
|
|
15755
|
-
props: {
|
|
15756
|
-
minWidth: "G",
|
|
15757
|
-
maxWidth: "G",
|
|
15758
|
-
padding: "A",
|
|
15759
|
-
round: "Z+V",
|
|
15760
|
-
gap: "Y",
|
|
15761
|
-
style: { background: "linear-gradient(to right, rgba(4, 116, 242, 1), rgba(0, 48, 103, 1))" },
|
|
15762
|
-
childProps: {
|
|
15763
|
-
alignItems: "center",
|
|
15764
|
-
title: { fontWeight: "700" },
|
|
15765
|
-
icon: { fontSize: "C", color: "#A3A3A8" },
|
|
15766
|
-
amount: { fontSize: `${24 / 16}em` },
|
|
15767
|
-
label: { padding: "Y Z", background: "#04040466" },
|
|
15768
|
-
subTitle: {
|
|
15769
|
-
gap: "Y",
|
|
15770
|
-
caption: { color: "rgba(224, 224, 226, 1)" },
|
|
15771
|
-
span: { color: "rgba(233, 233, 234, 1)" }
|
|
15772
|
-
}
|
|
15773
|
-
},
|
|
15774
|
-
heading: { justifyContent: "space-between" },
|
|
15775
|
-
content: { gap: "Y" }
|
|
15776
|
-
}
|
|
15777
|
-
};
|
|
15778
|
-
var ConvertCard = {
|
|
15779
|
-
extend: Card,
|
|
15780
|
-
heading: {
|
|
15781
|
-
title: { props: { text: "From" } },
|
|
15782
|
-
balance: { extend: BalancesIndicator },
|
|
15783
|
-
icon: null
|
|
15784
|
-
},
|
|
15785
|
-
content: {
|
|
15786
|
-
amount: { props: { text: "0.00" } },
|
|
15787
|
-
label: null,
|
|
15788
|
-
currency: { extend: DropDownWithAvatar },
|
|
15789
|
-
props: { align: "center space-between" }
|
|
15790
|
-
},
|
|
15791
|
-
footer: null,
|
|
15792
|
-
props: {
|
|
15793
|
-
background: "rgba(28, 28, 31, .5)",
|
|
15794
|
-
gap: "A",
|
|
15795
|
-
childProps: {
|
|
15796
|
-
title: {
|
|
15797
|
-
color: "rgba(163, 163, 168, 1)",
|
|
15798
|
-
fontWeight: "400"
|
|
15799
|
-
},
|
|
15800
|
-
amount: { color: "rgba(163, 163, 168, 1)" }
|
|
15801
|
-
}
|
|
15802
|
-
}
|
|
15803
|
-
};
|
|
15804
|
-
|
|
15805
|
-
// ../../uikit/domql/Avatar/index.js
|
|
15806
|
-
var Avatar = {
|
|
15807
|
-
extend: Img,
|
|
15808
|
-
props: {
|
|
15809
|
-
display: "block",
|
|
15810
|
-
avatarType: "initials",
|
|
15811
|
-
borderRadius: "100%",
|
|
15812
|
-
boxSize: "A+A",
|
|
15813
|
-
cursor: "pointer"
|
|
15814
|
-
},
|
|
15815
|
-
attr: {
|
|
15816
|
-
src: ({ key, props: props6 }) => props6.src || `https://avatars.dicebear.com/api/${props6.avatarType || "adventurer-neutral"}/${props6.key || key}.svg`
|
|
15817
|
-
}
|
|
15818
|
-
};
|
|
15819
15761
|
var AvatarWithIndicator = {
|
|
15820
15762
|
avatar: { extend: Avatar },
|
|
15821
15763
|
indicator: { extend: IndicatorDot },
|
|
@@ -17042,11 +16984,11 @@ var RouteLink = {
|
|
|
17042
16984
|
};
|
|
17043
16985
|
|
|
17044
16986
|
// ../../uikit/domql/Input/index.js
|
|
17045
|
-
var
|
|
16987
|
+
var import_utils11 = __toESM(require_cjs());
|
|
17046
16988
|
var Input2 = {
|
|
17047
16989
|
extend: [Focusable],
|
|
17048
16990
|
tag: "input",
|
|
17049
|
-
deps: { isString:
|
|
16991
|
+
deps: { isString: import_utils11.isString, replaceLiteralsWithObjectFields: import_utils11.replaceLiteralsWithObjectFields },
|
|
17050
16992
|
props: {
|
|
17051
16993
|
border: "none",
|
|
17052
16994
|
type: "input",
|
|
@@ -17112,7 +17054,7 @@ var Flex2 = {
|
|
|
17112
17054
|
var import_scratch13 = __toESM(require_cjs9());
|
|
17113
17055
|
|
|
17114
17056
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Media.js
|
|
17115
|
-
var
|
|
17057
|
+
var import_utils12 = __toESM(require_cjs());
|
|
17116
17058
|
|
|
17117
17059
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Theme.js
|
|
17118
17060
|
var import_scratch16 = __toESM(require_cjs9());
|
|
@@ -17152,13 +17094,13 @@ var Focusable2 = {
|
|
|
17152
17094
|
|
|
17153
17095
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Collection.js
|
|
17154
17096
|
var import_state2 = __toESM(require_cjs5());
|
|
17155
|
-
var
|
|
17097
|
+
var import_utils13 = __toESM(require_cjs());
|
|
17156
17098
|
|
|
17157
17099
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Position.js
|
|
17158
17100
|
var import_scratch17 = __toESM(require_cjs9());
|
|
17159
17101
|
|
|
17160
17102
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Shape/index.js
|
|
17161
|
-
var
|
|
17103
|
+
var import_utils14 = __toESM(require_cjs());
|
|
17162
17104
|
var import_scratch18 = __toESM(require_cjs9());
|
|
17163
17105
|
|
|
17164
17106
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Text.js
|
|
@@ -17166,7 +17108,7 @@ var import_scratch19 = __toESM(require_cjs9());
|
|
|
17166
17108
|
|
|
17167
17109
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/atoms/Animation.js
|
|
17168
17110
|
var import_scratch20 = __toESM(require_cjs9());
|
|
17169
|
-
var
|
|
17111
|
+
var import_utils15 = __toESM(require_cjs());
|
|
17170
17112
|
|
|
17171
17113
|
// ../../uikit/domql/Field/node_modules/@symbo.ls/emotion/index.js
|
|
17172
17114
|
var createEmotion4 = (key = "smbls", container) => {
|
|
@@ -17291,7 +17233,7 @@ var Video = {
|
|
|
17291
17233
|
};
|
|
17292
17234
|
|
|
17293
17235
|
// ../../uikit/domql/Range/index.js
|
|
17294
|
-
var
|
|
17236
|
+
var import_utils16 = __toESM(require_cjs());
|
|
17295
17237
|
var import_scratch21 = __toESM(require_cjs9());
|
|
17296
17238
|
var props4 = {
|
|
17297
17239
|
appearance: "none",
|
|
@@ -17359,7 +17301,7 @@ var Range = {
|
|
|
17359
17301
|
};
|
|
17360
17302
|
var listenProp = (el, prop, def) => {
|
|
17361
17303
|
const val = el.props && el.props[prop];
|
|
17362
|
-
const r = (0,
|
|
17304
|
+
const r = (0, import_utils16.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
|
|
17363
17305
|
return r + "";
|
|
17364
17306
|
};
|
|
17365
17307
|
var RangeWithButtons = {
|
|
@@ -17368,7 +17310,7 @@ var RangeWithButtons = {
|
|
|
17368
17310
|
props: { theme: "tertiary", icon: "minus" },
|
|
17369
17311
|
on: {
|
|
17370
17312
|
click: (ev, el, s) => {
|
|
17371
|
-
el.props && (0,
|
|
17313
|
+
el.props && (0, import_utils16.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
|
|
17372
17314
|
}
|
|
17373
17315
|
}
|
|
17374
17316
|
},
|
|
@@ -17389,8 +17331,8 @@ var RangeWithButtons = {
|
|
|
17389
17331
|
step: (el, s) => listenProp(el, "step", 1)
|
|
17390
17332
|
},
|
|
17391
17333
|
on: {
|
|
17392
|
-
input: (ev, el, s) => el.props && (0,
|
|
17393
|
-
change: (ev, el, s) => el.props && (0,
|
|
17334
|
+
input: (ev, el, s) => el.props && (0, import_utils16.isFunction)(el.props.onInput) && el.props.onInput(ev, el, el.state),
|
|
17335
|
+
change: (ev, el, s) => el.props && (0, import_utils16.isFunction)(el.props.onChange) && el.props.onChange(ev, el, el.state)
|
|
17394
17336
|
}
|
|
17395
17337
|
},
|
|
17396
17338
|
plus: {
|
|
@@ -17398,7 +17340,7 @@ var RangeWithButtons = {
|
|
|
17398
17340
|
props: { theme: "tertiary", icon: "plus" },
|
|
17399
17341
|
on: {
|
|
17400
17342
|
click: (ev, el, s) => {
|
|
17401
|
-
el.props && (0,
|
|
17343
|
+
el.props && (0, import_utils16.isFunction)(el.props.onClick) && el.props.onClick(ev, el, el.state);
|
|
17402
17344
|
}
|
|
17403
17345
|
}
|
|
17404
17346
|
}
|
|
@@ -17425,7 +17367,7 @@ var style_default = {
|
|
|
17425
17367
|
|
|
17426
17368
|
// ../../uikit/domql/Slider/index.js
|
|
17427
17369
|
var import_scratch22 = __toESM(require_cjs9());
|
|
17428
|
-
var
|
|
17370
|
+
var import_utils17 = __toESM(require_cjs());
|
|
17429
17371
|
(0, import_scratch22.set)({
|
|
17430
17372
|
theme: {
|
|
17431
17373
|
sliderThumb: {
|
|
@@ -17457,7 +17399,7 @@ var RangeSlider = {
|
|
|
17457
17399
|
};
|
|
17458
17400
|
var listenProp2 = (el, prop, def) => {
|
|
17459
17401
|
const val = el && el.props && el.props[prop];
|
|
17460
|
-
const r = ((0,
|
|
17402
|
+
const r = ((0, import_utils17.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
17461
17403
|
return r;
|
|
17462
17404
|
};
|
|
17463
17405
|
var Slider = {
|
|
@@ -17468,10 +17410,10 @@ var Slider = {
|
|
|
17468
17410
|
},
|
|
17469
17411
|
on: {
|
|
17470
17412
|
click: (ev, el, s) => {
|
|
17471
|
-
el.props && (0,
|
|
17413
|
+
el.props && (0, import_utils17.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
17472
17414
|
const input = el.parent.input;
|
|
17473
17415
|
const props6 = input.props;
|
|
17474
|
-
const value2 = (0,
|
|
17416
|
+
const value2 = (0, import_utils17.isFunction)(props6.value) ? props6.value() : props6.value;
|
|
17475
17417
|
input.node.value = value2;
|
|
17476
17418
|
}
|
|
17477
17419
|
}
|
|
@@ -17494,8 +17436,8 @@ var Slider = {
|
|
|
17494
17436
|
step: (el, s) => listenProp2(el, "step", 1)
|
|
17495
17437
|
},
|
|
17496
17438
|
on: {
|
|
17497
|
-
input: (ev, el, s) => el.props && (0,
|
|
17498
|
-
change: (ev, el, s) => el.props && (0,
|
|
17439
|
+
input: (ev, el, s) => el.props && (0, import_utils17.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
17440
|
+
change: (ev, el, s) => el.props && (0, import_utils17.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
17499
17441
|
}
|
|
17500
17442
|
},
|
|
17501
17443
|
button1: {
|
|
@@ -17505,10 +17447,10 @@ var Slider = {
|
|
|
17505
17447
|
},
|
|
17506
17448
|
on: {
|
|
17507
17449
|
click: (ev, el, s) => {
|
|
17508
|
-
el.props && (0,
|
|
17450
|
+
el.props && (0, import_utils17.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
17509
17451
|
const input = el.parent.input;
|
|
17510
17452
|
const props6 = input.props;
|
|
17511
|
-
const value2 = (0,
|
|
17453
|
+
const value2 = (0, import_utils17.isFunction)(props6.value) ? props6.value() : props6.value;
|
|
17512
17454
|
input.node.value = value2;
|
|
17513
17455
|
}
|
|
17514
17456
|
}
|
|
@@ -17880,25 +17822,6 @@ var UploadProgress = {
|
|
|
17880
17822
|
}
|
|
17881
17823
|
};
|
|
17882
17824
|
|
|
17883
|
-
// ../../uikit/domql/Label/index.js
|
|
17884
|
-
var Label = {
|
|
17885
|
-
extend: Button,
|
|
17886
|
-
props: {
|
|
17887
|
-
theme: "tertiary",
|
|
17888
|
-
fontSize: "Z2",
|
|
17889
|
-
emoji: "\u{1F44D}",
|
|
17890
|
-
text: "3",
|
|
17891
|
-
padding: "X2 Z",
|
|
17892
|
-
round: "C",
|
|
17893
|
-
lineHeight: 1,
|
|
17894
|
-
gap: "X2",
|
|
17895
|
-
fontWeight: "500"
|
|
17896
|
-
},
|
|
17897
|
-
emoji: {
|
|
17898
|
-
props: ({ parent }) => ({ text: parent.props.emoji })
|
|
17899
|
-
}
|
|
17900
|
-
};
|
|
17901
|
-
|
|
17902
17825
|
// ../../uikit/domql/Pills/index.js
|
|
17903
17826
|
var Pills = {
|
|
17904
17827
|
extend: Flex,
|
|
@@ -18278,6 +18201,91 @@ var ChatUserWithNotification = {
|
|
|
18278
18201
|
}
|
|
18279
18202
|
};
|
|
18280
18203
|
|
|
18204
|
+
// ../../uikit/domql/Card/index.js
|
|
18205
|
+
var AmountWithLabel = {
|
|
18206
|
+
extend: Flex,
|
|
18207
|
+
amount: { props: { text: "240.59" } },
|
|
18208
|
+
label: {
|
|
18209
|
+
extend: CardLabel,
|
|
18210
|
+
props: { text: "-0.25%" }
|
|
18211
|
+
},
|
|
18212
|
+
props: {
|
|
18213
|
+
align: "center flex-start",
|
|
18214
|
+
gap: "Y+V",
|
|
18215
|
+
amount: {
|
|
18216
|
+
fontSize: `${20 / 16}em`,
|
|
18217
|
+
fontWeight: "700"
|
|
18218
|
+
}
|
|
18219
|
+
}
|
|
18220
|
+
};
|
|
18221
|
+
var Card = {
|
|
18222
|
+
extend: InfoSet,
|
|
18223
|
+
heading: {
|
|
18224
|
+
title: { props: { text: "Total crypto assets" } },
|
|
18225
|
+
icon: { extend: Icon, props: { name: "arrowUpRight" } }
|
|
18226
|
+
},
|
|
18227
|
+
content: {
|
|
18228
|
+
extend: AmountWithLabel,
|
|
18229
|
+
amount: { props: { text: "$ 12,759" } },
|
|
18230
|
+
label: { props: { text: "+ 8.8%" } }
|
|
18231
|
+
},
|
|
18232
|
+
footer: {
|
|
18233
|
+
subTitle: {
|
|
18234
|
+
extend: Flex,
|
|
18235
|
+
caption: { props: { text: "Last update:" } },
|
|
18236
|
+
span: { props: { text: "an hour ago" } }
|
|
18237
|
+
}
|
|
18238
|
+
},
|
|
18239
|
+
props: {
|
|
18240
|
+
minWidth: "G",
|
|
18241
|
+
maxWidth: "G",
|
|
18242
|
+
padding: "A",
|
|
18243
|
+
round: "Z+V",
|
|
18244
|
+
gap: "Y",
|
|
18245
|
+
style: { background: "linear-gradient(to right, rgba(4, 116, 242, 1), rgba(0, 48, 103, 1))" },
|
|
18246
|
+
childProps: {
|
|
18247
|
+
alignItems: "center",
|
|
18248
|
+
title: { fontWeight: "700" },
|
|
18249
|
+
icon: { fontSize: "C", color: "#A3A3A8" },
|
|
18250
|
+
amount: { fontSize: `${24 / 16}em` },
|
|
18251
|
+
label: { padding: "Y Z", background: "#04040466" },
|
|
18252
|
+
subTitle: {
|
|
18253
|
+
gap: "Y",
|
|
18254
|
+
caption: { color: "rgba(224, 224, 226, 1)" },
|
|
18255
|
+
span: { color: "rgba(233, 233, 234, 1)" }
|
|
18256
|
+
}
|
|
18257
|
+
},
|
|
18258
|
+
heading: { justifyContent: "space-between" },
|
|
18259
|
+
content: { gap: "Y" }
|
|
18260
|
+
}
|
|
18261
|
+
};
|
|
18262
|
+
var ConvertCard = {
|
|
18263
|
+
extend: Card,
|
|
18264
|
+
heading: {
|
|
18265
|
+
title: { props: { text: "From" } },
|
|
18266
|
+
balance: { extend: BalancesIndicator },
|
|
18267
|
+
icon: null
|
|
18268
|
+
},
|
|
18269
|
+
content: {
|
|
18270
|
+
amount: { props: { text: "0.00" } },
|
|
18271
|
+
label: null,
|
|
18272
|
+
currency: { extend: DropDownWithAvatar },
|
|
18273
|
+
props: { align: "center space-between" }
|
|
18274
|
+
},
|
|
18275
|
+
footer: null,
|
|
18276
|
+
props: {
|
|
18277
|
+
background: "rgba(28, 28, 31, .5)",
|
|
18278
|
+
gap: "A",
|
|
18279
|
+
childProps: {
|
|
18280
|
+
title: {
|
|
18281
|
+
color: "rgba(163, 163, 168, 1)",
|
|
18282
|
+
fontWeight: "400"
|
|
18283
|
+
},
|
|
18284
|
+
amount: { color: "rgba(163, 163, 168, 1)" }
|
|
18285
|
+
}
|
|
18286
|
+
}
|
|
18287
|
+
};
|
|
18288
|
+
|
|
18281
18289
|
// ../../uikit/domql/IconTextWithNotification/index.js
|
|
18282
18290
|
var IconTextWithNotification = {
|
|
18283
18291
|
extend: Flex,
|
|
@@ -18533,26 +18541,26 @@ var defaultDefine = {
|
|
|
18533
18541
|
|
|
18534
18542
|
// src/router.js
|
|
18535
18543
|
var import_router2 = __toESM(require_cjs10(), 1);
|
|
18536
|
-
var
|
|
18544
|
+
var import_utils18 = __toESM(require_cjs(), 1);
|
|
18537
18545
|
var DEFAULT_ROUTING_OPTIONS = {
|
|
18538
18546
|
initRouter: true,
|
|
18539
18547
|
injectRouterInLinkComponent: true,
|
|
18540
18548
|
popState: true
|
|
18541
18549
|
};
|
|
18542
18550
|
var initRouter = (element, options) => {
|
|
18543
|
-
let routerOptions = (0,
|
|
18551
|
+
let routerOptions = (0, import_utils18.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS);
|
|
18544
18552
|
if (routerOptions === false)
|
|
18545
18553
|
return;
|
|
18546
18554
|
if (routerOptions === true)
|
|
18547
18555
|
routerOptions = DEFAULT_ROUTING_OPTIONS;
|
|
18548
18556
|
const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
|
|
18549
18557
|
const onRouterRenderDefault = (el, s) => {
|
|
18550
|
-
const { pathname, hash: hash2 } =
|
|
18558
|
+
const { pathname, hash: hash2 } = import_utils18.window.location;
|
|
18551
18559
|
const url2 = pathname + hash2;
|
|
18552
18560
|
if (el.routes)
|
|
18553
18561
|
router2(url2, el, {}, { initialRender: true });
|
|
18554
18562
|
};
|
|
18555
|
-
const hasRenderRouter = element.on && !(0,
|
|
18563
|
+
const hasRenderRouter = element.on && !(0, import_utils18.isUndefined)(element.on.renderRouter);
|
|
18556
18564
|
if (routerOptions.initRouter && !hasRenderRouter) {
|
|
18557
18565
|
if (element.on) {
|
|
18558
18566
|
element.on.renderRouter = onRouterRenderDefault;
|
|
@@ -18574,20 +18582,20 @@ var popStateRouter = (element, options) => {
|
|
|
18574
18582
|
if (!routerOptions.popState)
|
|
18575
18583
|
return;
|
|
18576
18584
|
const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
|
|
18577
|
-
|
|
18578
|
-
const { pathname, hash: hash2 } =
|
|
18585
|
+
import_utils18.window.onpopstate = (e) => {
|
|
18586
|
+
const { pathname, hash: hash2 } = import_utils18.window.location;
|
|
18579
18587
|
const url2 = pathname + hash2;
|
|
18580
18588
|
router2(url2, element, {}, { pushState: false, level: 0 });
|
|
18581
18589
|
};
|
|
18582
18590
|
};
|
|
18583
18591
|
var injectRouterInLinkComponent = (routerOptions) => {
|
|
18584
18592
|
if (routerOptions.injectRouterInLinkComponent) {
|
|
18585
|
-
return (0,
|
|
18593
|
+
return (0, import_utils18.deepMerge)(Link, RouterLink);
|
|
18586
18594
|
}
|
|
18587
18595
|
};
|
|
18588
18596
|
|
|
18589
18597
|
// src/ferchOnCreate.js
|
|
18590
|
-
var
|
|
18598
|
+
var import_utils19 = __toESM(require_cjs(), 1);
|
|
18591
18599
|
var import_fetch = __toESM(require_cjs12(), 1);
|
|
18592
18600
|
var fetchSync = async (key, options) => {
|
|
18593
18601
|
if (key && options.editor) {
|
|
@@ -18603,10 +18611,10 @@ var fetchAsync = (app, key, options, callback) => {
|
|
|
18603
18611
|
if (key && options.editor) {
|
|
18604
18612
|
try {
|
|
18605
18613
|
const defaultCallback = (data) => {
|
|
18606
|
-
if ((0,
|
|
18614
|
+
if ((0, import_utils19.isObject)(data.designsystem)) {
|
|
18607
18615
|
options.utils.init(data.designsystem);
|
|
18608
18616
|
}
|
|
18609
|
-
if ((0,
|
|
18617
|
+
if ((0, import_utils19.isObject)(data.state)) {
|
|
18610
18618
|
app.state.set(data.state);
|
|
18611
18619
|
}
|
|
18612
18620
|
};
|
|
@@ -18619,10 +18627,10 @@ var fetchAsync = (app, key, options, callback) => {
|
|
|
18619
18627
|
};
|
|
18620
18628
|
|
|
18621
18629
|
// ../../node_modules/@domql/emotion/index.js
|
|
18622
|
-
var
|
|
18630
|
+
var import_utils21 = __toESM(require_cjs());
|
|
18623
18631
|
|
|
18624
18632
|
// ../../node_modules/@domql/classlist/index.js
|
|
18625
|
-
var
|
|
18633
|
+
var import_utils20 = __toESM(require_cjs());
|
|
18626
18634
|
var classify = (obj, element) => {
|
|
18627
18635
|
let className = "";
|
|
18628
18636
|
for (const item in obj) {
|
|
@@ -18632,7 +18640,7 @@ var classify = (obj, element) => {
|
|
|
18632
18640
|
else if (typeof param === "string")
|
|
18633
18641
|
className += ` ${param}`;
|
|
18634
18642
|
else if (typeof param === "function") {
|
|
18635
|
-
className += ` ${(0,
|
|
18643
|
+
className += ` ${(0, import_utils20.exec)(param, element)}`;
|
|
18636
18644
|
}
|
|
18637
18645
|
}
|
|
18638
18646
|
return className;
|
|
@@ -18643,9 +18651,9 @@ var classList = (params, element) => {
|
|
|
18643
18651
|
const { key } = element;
|
|
18644
18652
|
if (params === true)
|
|
18645
18653
|
params = element.class = { key };
|
|
18646
|
-
if ((0,
|
|
18654
|
+
if ((0, import_utils20.isString)(params))
|
|
18647
18655
|
params = element.class = { default: params };
|
|
18648
|
-
if ((0,
|
|
18656
|
+
if ((0, import_utils20.isObject)(params))
|
|
18649
18657
|
params = classify(params, element);
|
|
18650
18658
|
const className = params.replace(/\s+/g, " ").trim();
|
|
18651
18659
|
if (element.ref)
|
|
@@ -18661,9 +18669,9 @@ var applyClassListOnNode = (params, element, node2) => {
|
|
|
18661
18669
|
// ../../node_modules/@domql/emotion/index.js
|
|
18662
18670
|
var transformEmotionStyle = (emotion4) => {
|
|
18663
18671
|
return (params, element, state) => {
|
|
18664
|
-
const execParams = (0,
|
|
18672
|
+
const execParams = (0, import_utils21.exec)(params, element);
|
|
18665
18673
|
if (params) {
|
|
18666
|
-
if ((0,
|
|
18674
|
+
if ((0, import_utils21.isObjectLike)(element.class))
|
|
18667
18675
|
element.class.elementStyle = execParams;
|
|
18668
18676
|
else
|
|
18669
18677
|
element.class = { elementStyle: execParams };
|
|
@@ -18677,18 +18685,18 @@ var transformEmotionClass = (emotion4) => {
|
|
|
18677
18685
|
return;
|
|
18678
18686
|
const { __ref } = element;
|
|
18679
18687
|
const { __class, __classNames } = __ref;
|
|
18680
|
-
if (!(0,
|
|
18688
|
+
if (!(0, import_utils21.isObjectLike)(params))
|
|
18681
18689
|
return;
|
|
18682
18690
|
for (const key in params) {
|
|
18683
|
-
const prop = (0,
|
|
18691
|
+
const prop = (0, import_utils21.exec)(params[key], element);
|
|
18684
18692
|
if (!prop) {
|
|
18685
18693
|
delete __class[key];
|
|
18686
18694
|
delete __classNames[key];
|
|
18687
18695
|
continue;
|
|
18688
18696
|
}
|
|
18689
|
-
const isEqual = (0,
|
|
18697
|
+
const isEqual = (0, import_utils21.isEqualDeep)(__class[key], prop);
|
|
18690
18698
|
if (!isEqual) {
|
|
18691
|
-
if (!(0,
|
|
18699
|
+
if (!(0, import_utils21.isProduction)() && (0, import_utils21.isObject)(prop))
|
|
18692
18700
|
prop.label = key || element.key;
|
|
18693
18701
|
const CSSed = emotion4.css(prop);
|
|
18694
18702
|
__class[key] = prop;
|
|
@@ -18759,7 +18767,7 @@ var initEmotion = (key, options = options_default) => {
|
|
|
18759
18767
|
};
|
|
18760
18768
|
|
|
18761
18769
|
// ../socket-ui/byld-socket.js
|
|
18762
|
-
var
|
|
18770
|
+
var import_utils23 = __toESM(require_cjs());
|
|
18763
18771
|
var import_router3 = __toESM(require_cjs10());
|
|
18764
18772
|
var import_scratch23 = __toESM(require_cjs9());
|
|
18765
18773
|
|
|
@@ -20742,7 +20750,7 @@ var Encoder = class {
|
|
|
20742
20750
|
return buffers;
|
|
20743
20751
|
}
|
|
20744
20752
|
};
|
|
20745
|
-
function
|
|
20753
|
+
function isObject12(value2) {
|
|
20746
20754
|
return Object.prototype.toString.call(value2) === "[object Object]";
|
|
20747
20755
|
}
|
|
20748
20756
|
var Decoder = class extends Emitter {
|
|
@@ -20862,11 +20870,11 @@ var Decoder = class extends Emitter {
|
|
|
20862
20870
|
static isPayloadValid(type, payload) {
|
|
20863
20871
|
switch (type) {
|
|
20864
20872
|
case PacketType.CONNECT:
|
|
20865
|
-
return
|
|
20873
|
+
return isObject12(payload);
|
|
20866
20874
|
case PacketType.DISCONNECT:
|
|
20867
20875
|
return payload === void 0;
|
|
20868
20876
|
case PacketType.CONNECT_ERROR:
|
|
20869
|
-
return typeof payload === "string" ||
|
|
20877
|
+
return typeof payload === "string" || isObject12(payload);
|
|
20870
20878
|
case PacketType.EVENT:
|
|
20871
20879
|
case PacketType.BINARY_EVENT:
|
|
20872
20880
|
return Array.isArray(payload) && (typeof payload[0] === "number" || typeof payload[0] === "string" && RESERVED_EVENTS.indexOf(payload[0]) === -1);
|
|
@@ -22157,7 +22165,7 @@ var send = (event = "change", changes, options) => {
|
|
|
22157
22165
|
};
|
|
22158
22166
|
|
|
22159
22167
|
// ../socket-ui/devFocus.js
|
|
22160
|
-
var
|
|
22168
|
+
var import_utils22 = __toESM(require_cjs());
|
|
22161
22169
|
var DevFocus = {
|
|
22162
22170
|
props: {
|
|
22163
22171
|
".preventSelect": {
|
|
@@ -22211,7 +22219,7 @@ var DevFocus = {
|
|
|
22211
22219
|
on: {
|
|
22212
22220
|
init: ({ context }) => {
|
|
22213
22221
|
const { components } = context;
|
|
22214
|
-
if ((0,
|
|
22222
|
+
if ((0, import_utils22.isObject)(components)) {
|
|
22215
22223
|
const { Content, ...rest } = components;
|
|
22216
22224
|
for (const key in rest) {
|
|
22217
22225
|
if (domql_exports[key])
|
|
@@ -22324,7 +22332,7 @@ var COLOR = {
|
|
|
22324
22332
|
ANIMATION
|
|
22325
22333
|
});
|
|
22326
22334
|
var connectedToSymbols = (clientsCount, element, state) => {
|
|
22327
|
-
if ((0,
|
|
22335
|
+
if ((0, import_utils23.isNumber)(clientsCount) && clientsCount > 1) {
|
|
22328
22336
|
if (!state.connected) {
|
|
22329
22337
|
state.notifications.connected = {
|
|
22330
22338
|
title: "Connected",
|
|
@@ -22432,13 +22440,13 @@ var Sync = {
|
|
|
22432
22440
|
};
|
|
22433
22441
|
|
|
22434
22442
|
// src/syncExtend.js
|
|
22435
|
-
var
|
|
22443
|
+
var import_utils24 = __toESM(require_cjs(), 1);
|
|
22436
22444
|
var applySyncDebug = (extend, options) => {
|
|
22437
22445
|
const { editor } = options;
|
|
22438
22446
|
if (!editor)
|
|
22439
22447
|
return extend;
|
|
22440
|
-
const inspect = (0,
|
|
22441
|
-
const liveSync = (0,
|
|
22448
|
+
const inspect = (0, import_utils24.isUndefined)(editor.inspect) ? (0, import_utils24.isDevelopment)() : editor.inspect;
|
|
22449
|
+
const liveSync = (0, import_utils24.isUndefined)(editor.liveSync) ? (0, import_utils24.isDevelopment)() : editor.liveSync;
|
|
22442
22450
|
if (inspect)
|
|
22443
22451
|
extend.push(DevFocus);
|
|
22444
22452
|
if (liveSync)
|
|
@@ -22449,7 +22457,7 @@ var applyInspectListener = (root, options) => {
|
|
|
22449
22457
|
const { editor } = options;
|
|
22450
22458
|
if (!editor)
|
|
22451
22459
|
return;
|
|
22452
|
-
const inspect = (0,
|
|
22460
|
+
const inspect = (0, import_utils24.isUndefined)(editor.inspect) ? (0, import_utils24.isDevelopment)() : editor.inspect;
|
|
22453
22461
|
if (inspect)
|
|
22454
22462
|
inspectOnKey(root);
|
|
22455
22463
|
};
|
|
@@ -22457,18 +22465,23 @@ var applyInspectListener = (root, options) => {
|
|
|
22457
22465
|
// src/index.js
|
|
22458
22466
|
var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
|
|
22459
22467
|
var mergeWithLocalFile2 = (options, optionsExternalFile) => {
|
|
22460
|
-
const rcfile = (0,
|
|
22461
|
-
return (0,
|
|
22468
|
+
const rcfile = (0, import_utils25.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
|
|
22469
|
+
return (0, import_utils25.deepMerge)(options, rcfile);
|
|
22462
22470
|
};
|
|
22463
22471
|
var create = async (App, options = options_default, optionsExternalFile) => {
|
|
22464
|
-
const appIsKey = (0,
|
|
22472
|
+
const appIsKey = (0, import_utils25.isString)(App);
|
|
22465
22473
|
options = mergeWithLocalFile2(options, optionsExternalFile);
|
|
22466
22474
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
22467
22475
|
if (appIsKey)
|
|
22468
22476
|
App = {};
|
|
22469
22477
|
await fetchSync(key, options);
|
|
22470
|
-
if (typeof document === "undefined")
|
|
22471
|
-
window
|
|
22478
|
+
if (typeof document === "undefined") {
|
|
22479
|
+
if (typeof window === "undefined")
|
|
22480
|
+
window = {};
|
|
22481
|
+
if (!window.document)
|
|
22482
|
+
window.document = { body: {} };
|
|
22483
|
+
document = window.document;
|
|
22484
|
+
}
|
|
22472
22485
|
const doc = options.parent || options.document || document;
|
|
22473
22486
|
const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
|
|
22474
22487
|
let state;
|
|
@@ -22519,13 +22532,18 @@ var create = async (App, options = options_default, optionsExternalFile) => {
|
|
|
22519
22532
|
return domqlApp;
|
|
22520
22533
|
};
|
|
22521
22534
|
var createSync = (App, options = options_default, optionsExternalFile) => {
|
|
22522
|
-
const appIsKey = (0,
|
|
22535
|
+
const appIsKey = (0, import_utils25.isString)(App);
|
|
22523
22536
|
options = mergeWithLocalFile2(options, optionsExternalFile);
|
|
22524
22537
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
22525
22538
|
if (appIsKey)
|
|
22526
22539
|
App = {};
|
|
22527
|
-
if (typeof document === "undefined")
|
|
22528
|
-
|
|
22540
|
+
if (typeof document === "undefined") {
|
|
22541
|
+
if (typeof window === "undefined")
|
|
22542
|
+
window = {};
|
|
22543
|
+
if (!window.document)
|
|
22544
|
+
window.document = { body: {} };
|
|
22545
|
+
document = window.document;
|
|
22546
|
+
}
|
|
22529
22547
|
let parent;
|
|
22530
22548
|
if (options.parent)
|
|
22531
22549
|
parent = options.parent;
|