@symbo.ls/create 2.11.453 → 2.11.455
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 +1066 -930
- package/package.json +4 -4
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -769,10 +769,10 @@ var require_object = __commonJS({
|
|
|
769
769
|
return o;
|
|
770
770
|
};
|
|
771
771
|
var deepStringify = (obj, stringified = {}) => {
|
|
772
|
-
var _a;
|
|
772
|
+
var _a, _b;
|
|
773
773
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
774
|
-
|
|
775
|
-
obj = (
|
|
774
|
+
(obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
|
|
775
|
+
obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
|
|
776
776
|
}
|
|
777
777
|
for (const prop in obj) {
|
|
778
778
|
const objProp = obj[prop];
|
|
@@ -1154,13 +1154,13 @@ var require_object = __commonJS({
|
|
|
1154
1154
|
}
|
|
1155
1155
|
return true;
|
|
1156
1156
|
};
|
|
1157
|
-
var removeFromObject = (obj,
|
|
1158
|
-
if (
|
|
1157
|
+
var removeFromObject = (obj, props5) => {
|
|
1158
|
+
if (props5 === void 0 || props5 === null)
|
|
1159
1159
|
return obj;
|
|
1160
|
-
if ((0, import_types.is)(
|
|
1161
|
-
delete obj[
|
|
1162
|
-
} else if ((0, import_types.isArray)(
|
|
1163
|
-
|
|
1160
|
+
if ((0, import_types.is)(props5)("string", "number")) {
|
|
1161
|
+
delete obj[props5];
|
|
1162
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
1163
|
+
props5.forEach((prop) => delete obj[prop]);
|
|
1164
1164
|
} else {
|
|
1165
1165
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
1166
1166
|
}
|
|
@@ -1412,9 +1412,11 @@ var require_cookie = __commonJS({
|
|
|
1412
1412
|
var cookie_exports = {};
|
|
1413
1413
|
__export2(cookie_exports, {
|
|
1414
1414
|
getCookie: () => getCookie,
|
|
1415
|
+
getLocalStorage: () => getLocalStorage,
|
|
1415
1416
|
isMobile: () => isMobile,
|
|
1416
1417
|
removeCookie: () => removeCookie,
|
|
1417
|
-
setCookie: () => setCookie
|
|
1418
|
+
setCookie: () => setCookie,
|
|
1419
|
+
setLocalStorage: () => setLocalStorage
|
|
1418
1420
|
});
|
|
1419
1421
|
module2.exports = __toCommonJS2(cookie_exports);
|
|
1420
1422
|
var import_types = require_types();
|
|
@@ -1448,6 +1450,27 @@ var require_cookie = __commonJS({
|
|
|
1448
1450
|
return;
|
|
1449
1451
|
import_utils32.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
1450
1452
|
};
|
|
1453
|
+
function getLocalStorage(key) {
|
|
1454
|
+
let savedJSON;
|
|
1455
|
+
if (window.localStorage) {
|
|
1456
|
+
try {
|
|
1457
|
+
savedJSON = JSON.parse(window.localStorage.getItem(key));
|
|
1458
|
+
} catch (e) {
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
if (typeof savedJSON !== "undefined") {
|
|
1462
|
+
return savedJSON;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
function setLocalStorage(key, data) {
|
|
1466
|
+
if (data && window.localStorage) {
|
|
1467
|
+
if (typeof data === "object") {
|
|
1468
|
+
window.localStorage.setItem(key, JSON.stringify(data));
|
|
1469
|
+
} else {
|
|
1470
|
+
window.localStorage.setItem(key, data);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1451
1474
|
}
|
|
1452
1475
|
});
|
|
1453
1476
|
|
|
@@ -1651,7 +1674,9 @@ var require_component = __commonJS({
|
|
|
1651
1674
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
1652
1675
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
1653
1676
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
1677
|
+
checkIfSugar: () => checkIfSugar,
|
|
1654
1678
|
extendizeByKey: () => extendizeByKey,
|
|
1679
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
1655
1680
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
1656
1681
|
getExtendsInElement: () => getExtendsInElement,
|
|
1657
1682
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -1685,12 +1710,13 @@ var require_component = __commonJS({
|
|
|
1685
1710
|
return { ...element, extend };
|
|
1686
1711
|
};
|
|
1687
1712
|
var checkIfSugar = (element, parent, key) => {
|
|
1713
|
+
var _a;
|
|
1688
1714
|
const {
|
|
1689
1715
|
extend,
|
|
1690
|
-
props:
|
|
1716
|
+
props: props5,
|
|
1691
1717
|
childExtend,
|
|
1692
1718
|
extends: extendProps,
|
|
1693
|
-
|
|
1719
|
+
childExtends,
|
|
1694
1720
|
childProps,
|
|
1695
1721
|
children,
|
|
1696
1722
|
on: on2,
|
|
@@ -1698,16 +1724,18 @@ var require_component = __commonJS({
|
|
|
1698
1724
|
$stateCollection,
|
|
1699
1725
|
$propsCollection
|
|
1700
1726
|
} = element;
|
|
1701
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
1702
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
1703
|
-
|
|
1727
|
+
const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
|
|
1728
|
+
if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
|
|
1729
|
+
const logErr = (_a = parent || element) == null ? void 0 : _a.error;
|
|
1730
|
+
if (logErr)
|
|
1731
|
+
logErr("Sugar component includes params for builtin components", { verbose: true });
|
|
1704
1732
|
}
|
|
1705
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
1733
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
1706
1734
|
};
|
|
1707
1735
|
var extendizeByKey = (element, parent, key) => {
|
|
1708
1736
|
const { context } = parent;
|
|
1709
|
-
const { tag, extend,
|
|
1710
|
-
const isSugar = checkIfSugar(element);
|
|
1737
|
+
const { tag, extend, childExtends } = element;
|
|
1738
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
1711
1739
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
1712
1740
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
1713
1741
|
if (element === isExtendKeyComponent)
|
|
@@ -1718,8 +1746,8 @@ var require_component = __commonJS({
|
|
|
1718
1746
|
tag,
|
|
1719
1747
|
props: { ...element }
|
|
1720
1748
|
});
|
|
1721
|
-
if (
|
|
1722
|
-
newElem.childExtend =
|
|
1749
|
+
if (childExtends)
|
|
1750
|
+
newElem.childExtend = childExtends;
|
|
1723
1751
|
return newElem;
|
|
1724
1752
|
} else if (!extend || extend === true) {
|
|
1725
1753
|
return {
|
|
@@ -1748,23 +1776,24 @@ var require_component = __commonJS({
|
|
|
1748
1776
|
const childKey = childElems[i];
|
|
1749
1777
|
const childElem = element[childKey];
|
|
1750
1778
|
const newChild = element.props[childKey];
|
|
1779
|
+
const assignChild = (val) => {
|
|
1780
|
+
element[childKey] = val;
|
|
1781
|
+
delete element.props[childKey];
|
|
1782
|
+
};
|
|
1751
1783
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
1752
1784
|
continue;
|
|
1753
|
-
if (
|
|
1754
|
-
|
|
1785
|
+
if (newChild === null)
|
|
1786
|
+
assignChild(null);
|
|
1787
|
+
else if (!childElem)
|
|
1788
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
1755
1789
|
else {
|
|
1756
|
-
const
|
|
1757
|
-
if (
|
|
1790
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
1791
|
+
if (isSugarChildElem)
|
|
1758
1792
|
continue;
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}
|
|
1763
|
-
element[childKey] = {
|
|
1764
|
-
extend: element[childKey],
|
|
1765
|
-
props: newChild
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1793
|
+
assignChild({
|
|
1794
|
+
extend: element[childKey],
|
|
1795
|
+
props: newChild
|
|
1796
|
+
});
|
|
1768
1797
|
}
|
|
1769
1798
|
}
|
|
1770
1799
|
};
|
|
@@ -1798,8 +1827,8 @@ var require_component = __commonJS({
|
|
|
1798
1827
|
return firstCharKey === ".";
|
|
1799
1828
|
};
|
|
1800
1829
|
var hasVariantProp = (element) => {
|
|
1801
|
-
const { props:
|
|
1802
|
-
if ((0, import__.isObject)(
|
|
1830
|
+
const { props: props5 } = element;
|
|
1831
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
1803
1832
|
return true;
|
|
1804
1833
|
};
|
|
1805
1834
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -2684,10 +2713,10 @@ var require_cjs2 = __commonJS({
|
|
|
2684
2713
|
return o;
|
|
2685
2714
|
};
|
|
2686
2715
|
var deepStringify = (obj, stringified = {}) => {
|
|
2687
|
-
var _a;
|
|
2716
|
+
var _a, _b;
|
|
2688
2717
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
2689
|
-
|
|
2690
|
-
obj = (
|
|
2718
|
+
(obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
|
|
2719
|
+
obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
|
|
2691
2720
|
}
|
|
2692
2721
|
for (const prop in obj) {
|
|
2693
2722
|
const objProp = obj[prop];
|
|
@@ -3069,13 +3098,13 @@ var require_cjs2 = __commonJS({
|
|
|
3069
3098
|
}
|
|
3070
3099
|
return true;
|
|
3071
3100
|
};
|
|
3072
|
-
var removeFromObject = (obj,
|
|
3073
|
-
if (
|
|
3101
|
+
var removeFromObject = (obj, props5) => {
|
|
3102
|
+
if (props5 === void 0 || props5 === null)
|
|
3074
3103
|
return obj;
|
|
3075
|
-
if ((0, import_types.is)(
|
|
3076
|
-
delete obj[
|
|
3077
|
-
} else if ((0, import_types.isArray)(
|
|
3078
|
-
|
|
3104
|
+
if ((0, import_types.is)(props5)("string", "number")) {
|
|
3105
|
+
delete obj[props5];
|
|
3106
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
3107
|
+
props5.forEach((prop) => delete obj[prop]);
|
|
3079
3108
|
} else {
|
|
3080
3109
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
3081
3110
|
}
|
|
@@ -3321,9 +3350,11 @@ var require_cjs2 = __commonJS({
|
|
|
3321
3350
|
var cookie_exports = {};
|
|
3322
3351
|
__export22(cookie_exports, {
|
|
3323
3352
|
getCookie: () => getCookie,
|
|
3353
|
+
getLocalStorage: () => getLocalStorage,
|
|
3324
3354
|
isMobile: () => isMobile,
|
|
3325
3355
|
removeCookie: () => removeCookie,
|
|
3326
|
-
setCookie: () => setCookie
|
|
3356
|
+
setCookie: () => setCookie,
|
|
3357
|
+
setLocalStorage: () => setLocalStorage
|
|
3327
3358
|
});
|
|
3328
3359
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
3329
3360
|
var import_types = require_types3();
|
|
@@ -3357,6 +3388,27 @@ var require_cjs2 = __commonJS({
|
|
|
3357
3388
|
return;
|
|
3358
3389
|
import_utils272.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
3359
3390
|
};
|
|
3391
|
+
function getLocalStorage(key) {
|
|
3392
|
+
let savedJSON;
|
|
3393
|
+
if (window.localStorage) {
|
|
3394
|
+
try {
|
|
3395
|
+
savedJSON = JSON.parse(window.localStorage.getItem(key));
|
|
3396
|
+
} catch (e) {
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
if (typeof savedJSON !== "undefined") {
|
|
3400
|
+
return savedJSON;
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
function setLocalStorage(key, data) {
|
|
3404
|
+
if (data && window.localStorage) {
|
|
3405
|
+
if (typeof data === "object") {
|
|
3406
|
+
window.localStorage.setItem(key, JSON.stringify(data));
|
|
3407
|
+
} else {
|
|
3408
|
+
window.localStorage.setItem(key, data);
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3360
3412
|
}
|
|
3361
3413
|
});
|
|
3362
3414
|
var require_tags3 = __commonJS2({
|
|
@@ -3556,7 +3608,9 @@ var require_cjs2 = __commonJS({
|
|
|
3556
3608
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
3557
3609
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
3558
3610
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
3611
|
+
checkIfSugar: () => checkIfSugar,
|
|
3559
3612
|
extendizeByKey: () => extendizeByKey,
|
|
3613
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
3560
3614
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
3561
3615
|
getExtendsInElement: () => getExtendsInElement,
|
|
3562
3616
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -3590,12 +3644,13 @@ var require_cjs2 = __commonJS({
|
|
|
3590
3644
|
return { ...element, extend };
|
|
3591
3645
|
};
|
|
3592
3646
|
var checkIfSugar = (element, parent, key) => {
|
|
3647
|
+
var _a;
|
|
3593
3648
|
const {
|
|
3594
3649
|
extend,
|
|
3595
|
-
props:
|
|
3650
|
+
props: props5,
|
|
3596
3651
|
childExtend,
|
|
3597
3652
|
extends: extendProps,
|
|
3598
|
-
|
|
3653
|
+
childExtends,
|
|
3599
3654
|
childProps,
|
|
3600
3655
|
children,
|
|
3601
3656
|
on: on2,
|
|
@@ -3603,16 +3658,18 @@ var require_cjs2 = __commonJS({
|
|
|
3603
3658
|
$stateCollection,
|
|
3604
3659
|
$propsCollection
|
|
3605
3660
|
} = element;
|
|
3606
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
3607
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
3608
|
-
|
|
3661
|
+
const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
|
|
3662
|
+
if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
|
|
3663
|
+
const logErr = (_a = parent || element) == null ? void 0 : _a.error;
|
|
3664
|
+
if (logErr)
|
|
3665
|
+
logErr("Sugar component includes params for builtin components", { verbose: true });
|
|
3609
3666
|
}
|
|
3610
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
3667
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
3611
3668
|
};
|
|
3612
3669
|
var extendizeByKey = (element, parent, key) => {
|
|
3613
3670
|
const { context } = parent;
|
|
3614
|
-
const { tag, extend,
|
|
3615
|
-
const isSugar = checkIfSugar(element);
|
|
3671
|
+
const { tag, extend, childExtends } = element;
|
|
3672
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
3616
3673
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
3617
3674
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
3618
3675
|
if (element === isExtendKeyComponent)
|
|
@@ -3623,8 +3680,8 @@ var require_cjs2 = __commonJS({
|
|
|
3623
3680
|
tag,
|
|
3624
3681
|
props: { ...element }
|
|
3625
3682
|
});
|
|
3626
|
-
if (
|
|
3627
|
-
newElem.childExtend =
|
|
3683
|
+
if (childExtends)
|
|
3684
|
+
newElem.childExtend = childExtends;
|
|
3628
3685
|
return newElem;
|
|
3629
3686
|
} else if (!extend || extend === true) {
|
|
3630
3687
|
return {
|
|
@@ -3653,23 +3710,24 @@ var require_cjs2 = __commonJS({
|
|
|
3653
3710
|
const childKey = childElems[i];
|
|
3654
3711
|
const childElem = element[childKey];
|
|
3655
3712
|
const newChild = element.props[childKey];
|
|
3713
|
+
const assignChild = (val) => {
|
|
3714
|
+
element[childKey] = val;
|
|
3715
|
+
delete element.props[childKey];
|
|
3716
|
+
};
|
|
3656
3717
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
3657
3718
|
continue;
|
|
3658
|
-
if (
|
|
3659
|
-
|
|
3719
|
+
if (newChild === null)
|
|
3720
|
+
assignChild(null);
|
|
3721
|
+
else if (!childElem)
|
|
3722
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
3660
3723
|
else {
|
|
3661
|
-
const
|
|
3662
|
-
if (
|
|
3724
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
3725
|
+
if (isSugarChildElem)
|
|
3663
3726
|
continue;
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
}
|
|
3668
|
-
element[childKey] = {
|
|
3669
|
-
extend: element[childKey],
|
|
3670
|
-
props: newChild
|
|
3671
|
-
};
|
|
3672
|
-
}
|
|
3727
|
+
assignChild({
|
|
3728
|
+
extend: element[childKey],
|
|
3729
|
+
props: newChild
|
|
3730
|
+
});
|
|
3673
3731
|
}
|
|
3674
3732
|
}
|
|
3675
3733
|
};
|
|
@@ -3703,8 +3761,8 @@ var require_cjs2 = __commonJS({
|
|
|
3703
3761
|
return firstCharKey === ".";
|
|
3704
3762
|
};
|
|
3705
3763
|
var hasVariantProp = (element) => {
|
|
3706
|
-
const { props:
|
|
3707
|
-
if ((0, import__.isObject)(
|
|
3764
|
+
const { props: props5 } = element;
|
|
3765
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
3708
3766
|
return true;
|
|
3709
3767
|
};
|
|
3710
3768
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -4551,10 +4609,10 @@ var require_cjs2 = __commonJS({
|
|
|
4551
4609
|
return o;
|
|
4552
4610
|
};
|
|
4553
4611
|
var deepStringify = (obj, stringified = {}) => {
|
|
4554
|
-
var _a;
|
|
4612
|
+
var _a, _b;
|
|
4555
4613
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
4556
|
-
|
|
4557
|
-
obj = (
|
|
4614
|
+
(obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
|
|
4615
|
+
obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
|
|
4558
4616
|
}
|
|
4559
4617
|
for (const prop in obj) {
|
|
4560
4618
|
const objProp = obj[prop];
|
|
@@ -4936,13 +4994,13 @@ var require_cjs2 = __commonJS({
|
|
|
4936
4994
|
}
|
|
4937
4995
|
return true;
|
|
4938
4996
|
};
|
|
4939
|
-
var removeFromObject = (obj,
|
|
4940
|
-
if (
|
|
4997
|
+
var removeFromObject = (obj, props5) => {
|
|
4998
|
+
if (props5 === void 0 || props5 === null)
|
|
4941
4999
|
return obj;
|
|
4942
|
-
if ((0, import_types.is)(
|
|
4943
|
-
delete obj[
|
|
4944
|
-
} else if ((0, import_types.isArray)(
|
|
4945
|
-
|
|
5000
|
+
if ((0, import_types.is)(props5)("string", "number")) {
|
|
5001
|
+
delete obj[props5];
|
|
5002
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
5003
|
+
props5.forEach((prop) => delete obj[prop]);
|
|
4946
5004
|
} else {
|
|
4947
5005
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
4948
5006
|
}
|
|
@@ -5188,9 +5246,11 @@ var require_cjs2 = __commonJS({
|
|
|
5188
5246
|
var cookie_exports = {};
|
|
5189
5247
|
__export222(cookie_exports, {
|
|
5190
5248
|
getCookie: () => getCookie,
|
|
5249
|
+
getLocalStorage: () => getLocalStorage,
|
|
5191
5250
|
isMobile: () => isMobile,
|
|
5192
5251
|
removeCookie: () => removeCookie,
|
|
5193
|
-
setCookie: () => setCookie
|
|
5252
|
+
setCookie: () => setCookie,
|
|
5253
|
+
setLocalStorage: () => setLocalStorage
|
|
5194
5254
|
});
|
|
5195
5255
|
module222.exports = __toCommonJS222(cookie_exports);
|
|
5196
5256
|
var import_types = require_types22();
|
|
@@ -5224,6 +5284,27 @@ var require_cjs2 = __commonJS({
|
|
|
5224
5284
|
return;
|
|
5225
5285
|
import_utils322.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
5226
5286
|
};
|
|
5287
|
+
function getLocalStorage(key) {
|
|
5288
|
+
let savedJSON;
|
|
5289
|
+
if (window.localStorage) {
|
|
5290
|
+
try {
|
|
5291
|
+
savedJSON = JSON.parse(window.localStorage.getItem(key));
|
|
5292
|
+
} catch (e) {
|
|
5293
|
+
}
|
|
5294
|
+
}
|
|
5295
|
+
if (typeof savedJSON !== "undefined") {
|
|
5296
|
+
return savedJSON;
|
|
5297
|
+
}
|
|
5298
|
+
}
|
|
5299
|
+
function setLocalStorage(key, data) {
|
|
5300
|
+
if (data && window.localStorage) {
|
|
5301
|
+
if (typeof data === "object") {
|
|
5302
|
+
window.localStorage.setItem(key, JSON.stringify(data));
|
|
5303
|
+
} else {
|
|
5304
|
+
window.localStorage.setItem(key, data);
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5227
5308
|
}
|
|
5228
5309
|
});
|
|
5229
5310
|
var require_tags22 = __commonJS22({
|
|
@@ -5423,7 +5504,9 @@ var require_cjs2 = __commonJS({
|
|
|
5423
5504
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
5424
5505
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
5425
5506
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
5507
|
+
checkIfSugar: () => checkIfSugar,
|
|
5426
5508
|
extendizeByKey: () => extendizeByKey,
|
|
5509
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
5427
5510
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
5428
5511
|
getExtendsInElement: () => getExtendsInElement,
|
|
5429
5512
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -5457,12 +5540,13 @@ var require_cjs2 = __commonJS({
|
|
|
5457
5540
|
return { ...element, extend };
|
|
5458
5541
|
};
|
|
5459
5542
|
var checkIfSugar = (element, parent, key) => {
|
|
5543
|
+
var _a;
|
|
5460
5544
|
const {
|
|
5461
5545
|
extend,
|
|
5462
|
-
props:
|
|
5546
|
+
props: props5,
|
|
5463
5547
|
childExtend,
|
|
5464
5548
|
extends: extendProps,
|
|
5465
|
-
|
|
5549
|
+
childExtends,
|
|
5466
5550
|
childProps,
|
|
5467
5551
|
children,
|
|
5468
5552
|
on: on2,
|
|
@@ -5470,16 +5554,18 @@ var require_cjs2 = __commonJS({
|
|
|
5470
5554
|
$stateCollection,
|
|
5471
5555
|
$propsCollection
|
|
5472
5556
|
} = element;
|
|
5473
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
5474
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
5475
|
-
|
|
5557
|
+
const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
|
|
5558
|
+
if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
|
|
5559
|
+
const logErr = (_a = parent || element) == null ? void 0 : _a.error;
|
|
5560
|
+
if (logErr)
|
|
5561
|
+
logErr("Sugar component includes params for builtin components", { verbose: true });
|
|
5476
5562
|
}
|
|
5477
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
5563
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
5478
5564
|
};
|
|
5479
5565
|
var extendizeByKey = (element, parent, key) => {
|
|
5480
5566
|
const { context } = parent;
|
|
5481
|
-
const { tag, extend,
|
|
5482
|
-
const isSugar = checkIfSugar(element);
|
|
5567
|
+
const { tag, extend, childExtends } = element;
|
|
5568
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
5483
5569
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
5484
5570
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
5485
5571
|
if (element === isExtendKeyComponent)
|
|
@@ -5490,8 +5576,8 @@ var require_cjs2 = __commonJS({
|
|
|
5490
5576
|
tag,
|
|
5491
5577
|
props: { ...element }
|
|
5492
5578
|
});
|
|
5493
|
-
if (
|
|
5494
|
-
newElem.childExtend =
|
|
5579
|
+
if (childExtends)
|
|
5580
|
+
newElem.childExtend = childExtends;
|
|
5495
5581
|
return newElem;
|
|
5496
5582
|
} else if (!extend || extend === true) {
|
|
5497
5583
|
return {
|
|
@@ -5520,23 +5606,24 @@ var require_cjs2 = __commonJS({
|
|
|
5520
5606
|
const childKey = childElems[i];
|
|
5521
5607
|
const childElem = element[childKey];
|
|
5522
5608
|
const newChild = element.props[childKey];
|
|
5609
|
+
const assignChild = (val) => {
|
|
5610
|
+
element[childKey] = val;
|
|
5611
|
+
delete element.props[childKey];
|
|
5612
|
+
};
|
|
5523
5613
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
5524
5614
|
continue;
|
|
5525
|
-
if (
|
|
5526
|
-
|
|
5615
|
+
if (newChild === null)
|
|
5616
|
+
assignChild(null);
|
|
5617
|
+
else if (!childElem)
|
|
5618
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
5527
5619
|
else {
|
|
5528
|
-
const
|
|
5529
|
-
if (
|
|
5620
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
5621
|
+
if (isSugarChildElem)
|
|
5530
5622
|
continue;
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
}
|
|
5535
|
-
element[childKey] = {
|
|
5536
|
-
extend: element[childKey],
|
|
5537
|
-
props: newChild
|
|
5538
|
-
};
|
|
5539
|
-
}
|
|
5623
|
+
assignChild({
|
|
5624
|
+
extend: element[childKey],
|
|
5625
|
+
props: newChild
|
|
5626
|
+
});
|
|
5540
5627
|
}
|
|
5541
5628
|
}
|
|
5542
5629
|
};
|
|
@@ -5570,8 +5657,8 @@ var require_cjs2 = __commonJS({
|
|
|
5570
5657
|
return firstCharKey === ".";
|
|
5571
5658
|
};
|
|
5572
5659
|
var hasVariantProp = (element) => {
|
|
5573
|
-
const { props:
|
|
5574
|
-
if ((0, import__.isObject)(
|
|
5660
|
+
const { props: props5 } = element;
|
|
5661
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
5575
5662
|
return true;
|
|
5576
5663
|
};
|
|
5577
5664
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -6463,8 +6550,8 @@ var require_cjs2 = __commonJS({
|
|
|
6463
6550
|
18: "S",
|
|
6464
6551
|
19: "T"
|
|
6465
6552
|
};
|
|
6466
|
-
var setSequenceValue = (
|
|
6467
|
-
const { key, variable, value: value2, scaling, index, scalingVariable } =
|
|
6553
|
+
var setSequenceValue = (props5, sequenceProps) => {
|
|
6554
|
+
const { key, variable, value: value2, scaling, index, scalingVariable } = props5;
|
|
6468
6555
|
sequenceProps.sequence[key] = {
|
|
6469
6556
|
key,
|
|
6470
6557
|
decimal: ~~(value2 * 100) / 100,
|
|
@@ -6512,8 +6599,8 @@ var require_cjs2 = __commonJS({
|
|
|
6512
6599
|
var getSubratio = (base, ratio) => {
|
|
6513
6600
|
return getSubratioDifference(base, ratio).map((v) => v / base);
|
|
6514
6601
|
};
|
|
6515
|
-
var generateSubSequence = (
|
|
6516
|
-
const { key, base, value: value2, ratio, variable, index } =
|
|
6602
|
+
var generateSubSequence = (props5, sequenceProps) => {
|
|
6603
|
+
const { key, base, value: value2, ratio, variable, index } = props5;
|
|
6517
6604
|
const next3 = value2 * ratio;
|
|
6518
6605
|
const diffRounded = ~~next3 - ~~value2;
|
|
6519
6606
|
let arr;
|
|
@@ -6552,7 +6639,7 @@ var require_cjs2 = __commonJS({
|
|
|
6552
6639
|
const scaling = ~~(value2 / base * 100) / 100;
|
|
6553
6640
|
const variable = prefix3 + letterKey;
|
|
6554
6641
|
const scalingVariable = setScalingVar(key, sequenceProps);
|
|
6555
|
-
const
|
|
6642
|
+
const props5 = {
|
|
6556
6643
|
key: letterKey,
|
|
6557
6644
|
variable,
|
|
6558
6645
|
value: value2,
|
|
@@ -6562,9 +6649,9 @@ var require_cjs2 = __commonJS({
|
|
|
6562
6649
|
ratio,
|
|
6563
6650
|
index: key
|
|
6564
6651
|
};
|
|
6565
|
-
setSequenceValue(
|
|
6652
|
+
setSequenceValue(props5, sequenceProps);
|
|
6566
6653
|
if (subSequence)
|
|
6567
|
-
generateSubSequence(
|
|
6654
|
+
generateSubSequence(props5, sequenceProps);
|
|
6568
6655
|
}
|
|
6569
6656
|
return sequenceProps;
|
|
6570
6657
|
};
|
|
@@ -7240,20 +7327,20 @@ var require_cjs2 = __commonJS({
|
|
|
7240
7327
|
applyMediaSequenceVars(FACTORY2, prop);
|
|
7241
7328
|
}
|
|
7242
7329
|
};
|
|
7243
|
-
var applyHeadings = (
|
|
7330
|
+
var applyHeadings = (props5) => {
|
|
7244
7331
|
const CONFIG22 = getActiveConfig3();
|
|
7245
|
-
if (
|
|
7246
|
-
const unit =
|
|
7247
|
-
const HEADINGS = findHeadings(
|
|
7248
|
-
const { templates } =
|
|
7332
|
+
if (props5.h1Matches) {
|
|
7333
|
+
const unit = props5.unit;
|
|
7334
|
+
const HEADINGS = findHeadings(props5);
|
|
7335
|
+
const { templates } = props5;
|
|
7249
7336
|
for (const k in HEADINGS) {
|
|
7250
7337
|
const headerName = `h${parseInt(k) + 1}`;
|
|
7251
7338
|
const headerStyle = templates[headerName];
|
|
7252
7339
|
templates[headerName] = {
|
|
7253
7340
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
7254
7341
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
7255
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
7256
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
7342
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props5.lineHeight,
|
|
7343
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.letterSpacing,
|
|
7257
7344
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
7258
7345
|
};
|
|
7259
7346
|
}
|
|
@@ -7357,11 +7444,11 @@ var require_cjs2 = __commonJS({
|
|
|
7357
7444
|
sequence
|
|
7358
7445
|
);
|
|
7359
7446
|
};
|
|
7360
|
-
var getSpacingBasedOnRatio4 = (
|
|
7447
|
+
var getSpacingBasedOnRatio4 = (props5, propertyName, val) => {
|
|
7361
7448
|
const CONFIG22 = getActiveConfig3();
|
|
7362
7449
|
const { SPACING: SPACING22 } = CONFIG22;
|
|
7363
|
-
const { spacingRatio, unit } =
|
|
7364
|
-
const value2 = val ||
|
|
7450
|
+
const { spacingRatio, unit } = props5;
|
|
7451
|
+
const value2 = val || props5[propertyName];
|
|
7365
7452
|
if (spacingRatio) {
|
|
7366
7453
|
let sequenceProps = SPACING22[spacingRatio];
|
|
7367
7454
|
if (!sequenceProps) {
|
|
@@ -7731,7 +7818,7 @@ var require_cjs2 = __commonJS({
|
|
|
7731
7818
|
return v;
|
|
7732
7819
|
}).join(" ");
|
|
7733
7820
|
};
|
|
7734
|
-
var transformDuration2 = (duration,
|
|
7821
|
+
var transformDuration2 = (duration, props5, propertyName) => {
|
|
7735
7822
|
if (!(0, import_utils252.isString)(duration))
|
|
7736
7823
|
return;
|
|
7737
7824
|
return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
|
|
@@ -7746,11 +7833,11 @@ var require_cjs2 = __commonJS({
|
|
|
7746
7833
|
const prop = propertyName.toLowerCase();
|
|
7747
7834
|
return (prop.includes("width") || prop.includes("height")) && !prop.includes("border");
|
|
7748
7835
|
};
|
|
7749
|
-
var transformSize2 = (propertyName, val,
|
|
7750
|
-
let value2 = val ||
|
|
7836
|
+
var transformSize2 = (propertyName, val, props5 = {}, opts = {}) => {
|
|
7837
|
+
let value2 = val || props5[propertyName];
|
|
7751
7838
|
if ((0, import_utils252.isUndefined)(value2) && (0, import_utils252.isNull)(value2))
|
|
7752
7839
|
return;
|
|
7753
|
-
const shouldScaleBoxSize =
|
|
7840
|
+
const shouldScaleBoxSize = props5.scaleBoxSize;
|
|
7754
7841
|
const isBoxSize = checkIfBoxSize(propertyName);
|
|
7755
7842
|
if (!shouldScaleBoxSize && isBoxSize && (0, import_utils252.isString)(value2)) {
|
|
7756
7843
|
value2 = value2.split(" ").map((v) => {
|
|
@@ -7762,13 +7849,13 @@ var require_cjs2 = __commonJS({
|
|
|
7762
7849
|
}).join(" ");
|
|
7763
7850
|
}
|
|
7764
7851
|
if (opts.ratio) {
|
|
7765
|
-
return getSpacingBasedOnRatio4(
|
|
7852
|
+
return getSpacingBasedOnRatio4(props5, propertyName, value2);
|
|
7766
7853
|
} else {
|
|
7767
7854
|
return getSpacingByKey3(value2, propertyName);
|
|
7768
7855
|
}
|
|
7769
7856
|
};
|
|
7770
|
-
var transformSizeRatio2 = (propertyName,
|
|
7771
|
-
return transformSize2(propertyName, null,
|
|
7857
|
+
var transformSizeRatio2 = (propertyName, props5) => {
|
|
7858
|
+
return transformSize2(propertyName, null, props5, {
|
|
7772
7859
|
ratio: true
|
|
7773
7860
|
});
|
|
7774
7861
|
};
|
|
@@ -7813,11 +7900,11 @@ var require_cjs2 = __commonJS({
|
|
|
7813
7900
|
if (CONFIG22.verbose)
|
|
7814
7901
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
7815
7902
|
};
|
|
7816
|
-
var setEach = (factoryName,
|
|
7903
|
+
var setEach = (factoryName, props5) => {
|
|
7817
7904
|
const CONFIG22 = getActiveConfig3();
|
|
7818
7905
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
7819
|
-
const keys = Object.keys(
|
|
7820
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
7906
|
+
const keys = Object.keys(props5);
|
|
7907
|
+
keys.map((key) => setValue(FACTORY_NAME, props5[key], key));
|
|
7821
7908
|
return CONFIG22[FACTORY_NAME];
|
|
7822
7909
|
};
|
|
7823
7910
|
var SET_OPTIONS2 = {};
|
|
@@ -8636,10 +8723,10 @@ var require_cjs3 = __commonJS({
|
|
|
8636
8723
|
return o;
|
|
8637
8724
|
};
|
|
8638
8725
|
var deepStringify = (obj, stringified = {}) => {
|
|
8639
|
-
var _a;
|
|
8726
|
+
var _a, _b;
|
|
8640
8727
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
8641
|
-
|
|
8642
|
-
obj = (
|
|
8728
|
+
(obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
|
|
8729
|
+
obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
|
|
8643
8730
|
}
|
|
8644
8731
|
for (const prop in obj) {
|
|
8645
8732
|
const objProp = obj[prop];
|
|
@@ -9021,13 +9108,13 @@ var require_cjs3 = __commonJS({
|
|
|
9021
9108
|
}
|
|
9022
9109
|
return true;
|
|
9023
9110
|
};
|
|
9024
|
-
var removeFromObject = (obj,
|
|
9025
|
-
if (
|
|
9111
|
+
var removeFromObject = (obj, props5) => {
|
|
9112
|
+
if (props5 === void 0 || props5 === null)
|
|
9026
9113
|
return obj;
|
|
9027
|
-
if ((0, import_types.is)(
|
|
9028
|
-
delete obj[
|
|
9029
|
-
} else if ((0, import_types.isArray)(
|
|
9030
|
-
|
|
9114
|
+
if ((0, import_types.is)(props5)("string", "number")) {
|
|
9115
|
+
delete obj[props5];
|
|
9116
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
9117
|
+
props5.forEach((prop) => delete obj[prop]);
|
|
9031
9118
|
} else {
|
|
9032
9119
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
9033
9120
|
}
|
|
@@ -9273,9 +9360,11 @@ var require_cjs3 = __commonJS({
|
|
|
9273
9360
|
var cookie_exports = {};
|
|
9274
9361
|
__export22(cookie_exports, {
|
|
9275
9362
|
getCookie: () => getCookie,
|
|
9363
|
+
getLocalStorage: () => getLocalStorage,
|
|
9276
9364
|
isMobile: () => isMobile,
|
|
9277
9365
|
removeCookie: () => removeCookie,
|
|
9278
|
-
setCookie: () => setCookie
|
|
9366
|
+
setCookie: () => setCookie,
|
|
9367
|
+
setLocalStorage: () => setLocalStorage
|
|
9279
9368
|
});
|
|
9280
9369
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
9281
9370
|
var import_types = require_types3();
|
|
@@ -9309,6 +9398,27 @@ var require_cjs3 = __commonJS({
|
|
|
9309
9398
|
return;
|
|
9310
9399
|
import_utils33.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
9311
9400
|
};
|
|
9401
|
+
function getLocalStorage(key) {
|
|
9402
|
+
let savedJSON;
|
|
9403
|
+
if (window.localStorage) {
|
|
9404
|
+
try {
|
|
9405
|
+
savedJSON = JSON.parse(window.localStorage.getItem(key));
|
|
9406
|
+
} catch (e) {
|
|
9407
|
+
}
|
|
9408
|
+
}
|
|
9409
|
+
if (typeof savedJSON !== "undefined") {
|
|
9410
|
+
return savedJSON;
|
|
9411
|
+
}
|
|
9412
|
+
}
|
|
9413
|
+
function setLocalStorage(key, data) {
|
|
9414
|
+
if (data && window.localStorage) {
|
|
9415
|
+
if (typeof data === "object") {
|
|
9416
|
+
window.localStorage.setItem(key, JSON.stringify(data));
|
|
9417
|
+
} else {
|
|
9418
|
+
window.localStorage.setItem(key, data);
|
|
9419
|
+
}
|
|
9420
|
+
}
|
|
9421
|
+
}
|
|
9312
9422
|
}
|
|
9313
9423
|
});
|
|
9314
9424
|
var require_tags3 = __commonJS2({
|
|
@@ -9508,7 +9618,9 @@ var require_cjs3 = __commonJS({
|
|
|
9508
9618
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
9509
9619
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
9510
9620
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
9621
|
+
checkIfSugar: () => checkIfSugar,
|
|
9511
9622
|
extendizeByKey: () => extendizeByKey,
|
|
9623
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
9512
9624
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
9513
9625
|
getExtendsInElement: () => getExtendsInElement,
|
|
9514
9626
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -9542,12 +9654,13 @@ var require_cjs3 = __commonJS({
|
|
|
9542
9654
|
return { ...element, extend };
|
|
9543
9655
|
};
|
|
9544
9656
|
var checkIfSugar = (element, parent, key) => {
|
|
9657
|
+
var _a;
|
|
9545
9658
|
const {
|
|
9546
9659
|
extend,
|
|
9547
|
-
props:
|
|
9660
|
+
props: props5,
|
|
9548
9661
|
childExtend,
|
|
9549
9662
|
extends: extendProps,
|
|
9550
|
-
|
|
9663
|
+
childExtends,
|
|
9551
9664
|
childProps,
|
|
9552
9665
|
children,
|
|
9553
9666
|
on: on2,
|
|
@@ -9555,16 +9668,18 @@ var require_cjs3 = __commonJS({
|
|
|
9555
9668
|
$stateCollection,
|
|
9556
9669
|
$propsCollection
|
|
9557
9670
|
} = element;
|
|
9558
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
9559
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
9560
|
-
|
|
9671
|
+
const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
|
|
9672
|
+
if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
|
|
9673
|
+
const logErr = (_a = parent || element) == null ? void 0 : _a.error;
|
|
9674
|
+
if (logErr)
|
|
9675
|
+
logErr("Sugar component includes params for builtin components", { verbose: true });
|
|
9561
9676
|
}
|
|
9562
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
9677
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
9563
9678
|
};
|
|
9564
9679
|
var extendizeByKey = (element, parent, key) => {
|
|
9565
9680
|
const { context } = parent;
|
|
9566
|
-
const { tag, extend,
|
|
9567
|
-
const isSugar = checkIfSugar(element);
|
|
9681
|
+
const { tag, extend, childExtends } = element;
|
|
9682
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
9568
9683
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
9569
9684
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
9570
9685
|
if (element === isExtendKeyComponent)
|
|
@@ -9575,8 +9690,8 @@ var require_cjs3 = __commonJS({
|
|
|
9575
9690
|
tag,
|
|
9576
9691
|
props: { ...element }
|
|
9577
9692
|
});
|
|
9578
|
-
if (
|
|
9579
|
-
newElem.childExtend =
|
|
9693
|
+
if (childExtends)
|
|
9694
|
+
newElem.childExtend = childExtends;
|
|
9580
9695
|
return newElem;
|
|
9581
9696
|
} else if (!extend || extend === true) {
|
|
9582
9697
|
return {
|
|
@@ -9605,23 +9720,24 @@ var require_cjs3 = __commonJS({
|
|
|
9605
9720
|
const childKey = childElems[i];
|
|
9606
9721
|
const childElem = element[childKey];
|
|
9607
9722
|
const newChild = element.props[childKey];
|
|
9723
|
+
const assignChild = (val) => {
|
|
9724
|
+
element[childKey] = val;
|
|
9725
|
+
delete element.props[childKey];
|
|
9726
|
+
};
|
|
9608
9727
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
9609
9728
|
continue;
|
|
9610
|
-
if (
|
|
9611
|
-
|
|
9729
|
+
if (newChild === null)
|
|
9730
|
+
assignChild(null);
|
|
9731
|
+
else if (!childElem)
|
|
9732
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
9612
9733
|
else {
|
|
9613
|
-
const
|
|
9614
|
-
if (
|
|
9734
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
9735
|
+
if (isSugarChildElem)
|
|
9615
9736
|
continue;
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
}
|
|
9620
|
-
element[childKey] = {
|
|
9621
|
-
extend: element[childKey],
|
|
9622
|
-
props: newChild
|
|
9623
|
-
};
|
|
9624
|
-
}
|
|
9737
|
+
assignChild({
|
|
9738
|
+
extend: element[childKey],
|
|
9739
|
+
props: newChild
|
|
9740
|
+
});
|
|
9625
9741
|
}
|
|
9626
9742
|
}
|
|
9627
9743
|
};
|
|
@@ -9655,8 +9771,8 @@ var require_cjs3 = __commonJS({
|
|
|
9655
9771
|
return firstCharKey === ".";
|
|
9656
9772
|
};
|
|
9657
9773
|
var hasVariantProp = (element) => {
|
|
9658
|
-
const { props:
|
|
9659
|
-
if ((0, import__.isObject)(
|
|
9774
|
+
const { props: props5 } = element;
|
|
9775
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
9660
9776
|
return true;
|
|
9661
9777
|
};
|
|
9662
9778
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -10108,9 +10224,9 @@ var require_on = __commonJS({
|
|
|
10108
10224
|
}
|
|
10109
10225
|
};
|
|
10110
10226
|
var applyAnimationFrame = (element, options) => {
|
|
10111
|
-
const { props:
|
|
10227
|
+
const { props: props5, on: on2, __ref: ref } = element;
|
|
10112
10228
|
const { frameListeners } = ref.root.data;
|
|
10113
|
-
if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (
|
|
10229
|
+
if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (props5 == null ? void 0 : props5.onFrame))) {
|
|
10114
10230
|
const { registerFrameListener } = element.context.utils;
|
|
10115
10231
|
if (registerFrameListener)
|
|
10116
10232
|
registerFrameListener(element);
|
|
@@ -11019,8 +11135,8 @@ var require_create = __commonJS({
|
|
|
11019
11135
|
return dependentState;
|
|
11020
11136
|
};
|
|
11021
11137
|
var checkForTypes = (element) => {
|
|
11022
|
-
const { state: orig, props:
|
|
11023
|
-
const state = (
|
|
11138
|
+
const { state: orig, props: props5, __ref: ref } = element;
|
|
11139
|
+
const state = (props5 == null ? void 0 : props5.state) || orig;
|
|
11024
11140
|
if ((0, import_utils32.isFunction)(state)) {
|
|
11025
11141
|
ref.__state = state;
|
|
11026
11142
|
return (0, import_utils32.exec)(state, element);
|
|
@@ -11379,14 +11495,14 @@ var require_cache = __commonJS({
|
|
|
11379
11495
|
}
|
|
11380
11496
|
};
|
|
11381
11497
|
var detectTag = (element) => {
|
|
11382
|
-
let { tag, key, props:
|
|
11498
|
+
let { tag, key, props: props5 } = element;
|
|
11383
11499
|
tag = (0, import_utils32.exec)(tag, element);
|
|
11384
11500
|
if (tag === true)
|
|
11385
11501
|
tag = key;
|
|
11386
|
-
if ((0, import_utils32.isObject)(
|
|
11387
|
-
const tagExists = (0, import_utils32.isValidHtmlTag)(
|
|
11502
|
+
if ((0, import_utils32.isObject)(props5) && (0, import_utils32.isString)(props5.tag)) {
|
|
11503
|
+
const tagExists = (0, import_utils32.isValidHtmlTag)(props5.tag);
|
|
11388
11504
|
if (tagExists)
|
|
11389
|
-
return
|
|
11505
|
+
return props5.tag;
|
|
11390
11506
|
}
|
|
11391
11507
|
if ((0, import_utils32.isString)(tag)) {
|
|
11392
11508
|
if ((0, import_utils32.isValidHtmlTag)(tag))
|
|
@@ -11573,6 +11689,7 @@ var require_inherit2 = __commonJS({
|
|
|
11573
11689
|
return propValue;
|
|
11574
11690
|
};
|
|
11575
11691
|
var inheritParentProps = (element, parent) => {
|
|
11692
|
+
var _a;
|
|
11576
11693
|
let propsStack = [];
|
|
11577
11694
|
const parentProps = (0, import_utils32.exec)(parent, parent.state).props;
|
|
11578
11695
|
const matchParent = parent.props && parentProps[element.key];
|
|
@@ -11590,7 +11707,7 @@ var require_inherit2 = __commonJS({
|
|
|
11590
11707
|
propsStack.push(objectizeStringProperty(matchParent));
|
|
11591
11708
|
}
|
|
11592
11709
|
}
|
|
11593
|
-
if (matchParentChildProps)
|
|
11710
|
+
if (matchParentChildProps && !((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.ignoreChildProps))
|
|
11594
11711
|
propsStack.push(matchParentChildProps);
|
|
11595
11712
|
return propsStack;
|
|
11596
11713
|
};
|
|
@@ -11628,27 +11745,27 @@ var require_create3 = __commonJS({
|
|
|
11628
11745
|
var import_ignore = require_ignore2();
|
|
11629
11746
|
var import_inherit = require_inherit2();
|
|
11630
11747
|
var createPropsStack = (element, parent) => {
|
|
11631
|
-
const { props:
|
|
11748
|
+
const { props: props5, __ref: ref } = element;
|
|
11632
11749
|
const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
11633
|
-
if ((0, import_utils32.isObject)(
|
|
11634
|
-
propsStack.push(
|
|
11635
|
-
else if (
|
|
11750
|
+
if ((0, import_utils32.isObject)(props5))
|
|
11751
|
+
propsStack.push(props5);
|
|
11752
|
+
else if (props5 === "inherit" && parent.props)
|
|
11636
11753
|
propsStack.push(parent.props);
|
|
11637
|
-
else if (
|
|
11638
|
-
propsStack.push(
|
|
11754
|
+
else if (props5)
|
|
11755
|
+
propsStack.push(props5);
|
|
11639
11756
|
if ((0, import_utils32.isArray)(ref.__extend)) {
|
|
11640
11757
|
ref.__extend.forEach((extend) => {
|
|
11641
|
-
if (extend.props && extend.props !==
|
|
11758
|
+
if (extend.props && extend.props !== props5)
|
|
11642
11759
|
propsStack.push(extend.props);
|
|
11643
11760
|
});
|
|
11644
11761
|
}
|
|
11645
11762
|
ref.__props = propsStack;
|
|
11646
11763
|
return propsStack;
|
|
11647
11764
|
};
|
|
11648
|
-
var syncProps = (
|
|
11765
|
+
var syncProps = (props5, element, opts) => {
|
|
11649
11766
|
element.props = {};
|
|
11650
11767
|
const mergedProps = {};
|
|
11651
|
-
|
|
11768
|
+
props5.forEach((v) => {
|
|
11652
11769
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
11653
11770
|
return;
|
|
11654
11771
|
let execProps;
|
|
@@ -11694,9 +11811,9 @@ var require_create3 = __commonJS({
|
|
|
11694
11811
|
Object.setPrototypeOf(element.props, methods);
|
|
11695
11812
|
return element;
|
|
11696
11813
|
};
|
|
11697
|
-
function update(
|
|
11814
|
+
function update(props5, options) {
|
|
11698
11815
|
const element = this.__element;
|
|
11699
|
-
element.update({ props:
|
|
11816
|
+
element.update({ props: props5 }, options);
|
|
11700
11817
|
}
|
|
11701
11818
|
}
|
|
11702
11819
|
});
|
|
@@ -11846,6 +11963,8 @@ var require_object2 = __commonJS({
|
|
|
11846
11963
|
"lookup",
|
|
11847
11964
|
"lookdown",
|
|
11848
11965
|
"lookdownAll",
|
|
11966
|
+
"getRef",
|
|
11967
|
+
"getPath",
|
|
11849
11968
|
"setNodeStyles",
|
|
11850
11969
|
"spotByPath",
|
|
11851
11970
|
"keys",
|
|
@@ -12156,8 +12275,8 @@ var require_extend = __commonJS({
|
|
|
12156
12275
|
var applyExtend = (element, parent, options = {}) => {
|
|
12157
12276
|
if ((0, import_utils32.isFunction)(element))
|
|
12158
12277
|
element = (0, import_utils32.exec)(element, parent);
|
|
12159
|
-
const { props:
|
|
12160
|
-
let extend = (
|
|
12278
|
+
const { props: props5, __ref } = element;
|
|
12279
|
+
let extend = (props5 == null ? void 0 : props5.extends) || element.extend;
|
|
12161
12280
|
const context = element.context || parent.context;
|
|
12162
12281
|
extend = (0, import_utils210.fallbackStringExtend)(extend, context, options);
|
|
12163
12282
|
const extendStack = (0, import_utils210.getExtendStack)(extend, context);
|
|
@@ -12166,9 +12285,9 @@ var require_extend = __commonJS({
|
|
|
12166
12285
|
let childExtendStack = [];
|
|
12167
12286
|
if (parent) {
|
|
12168
12287
|
element.parent = parent;
|
|
12169
|
-
if (!options.ignoreChildExtend && !(
|
|
12288
|
+
if (!options.ignoreChildExtend && !(props5 && props5.ignoreChildExtend)) {
|
|
12170
12289
|
childExtendStack = (0, import_utils210.getExtendStack)(parent.childExtend, context);
|
|
12171
|
-
const ignoreChildExtendRecursive =
|
|
12290
|
+
const ignoreChildExtendRecursive = props5 && props5.ignoreChildExtendRecursive;
|
|
12172
12291
|
if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
|
|
12173
12292
|
const canExtendRecursive = element.key !== "__text";
|
|
12174
12293
|
if (canExtendRecursive) {
|
|
@@ -12276,28 +12395,28 @@ var require_component2 = __commonJS({
|
|
|
12276
12395
|
let variantElement = element[variant];
|
|
12277
12396
|
if (!variantElement)
|
|
12278
12397
|
return;
|
|
12279
|
-
const
|
|
12398
|
+
const props5 = (0, import_utils32.isObject)(variantProps) ? variantProps : {};
|
|
12280
12399
|
if ((0, import_utils32.isString)(variantElement)) {
|
|
12281
12400
|
variantElement = {
|
|
12282
|
-
extend: [{ props:
|
|
12401
|
+
extend: [{ props: props5 }, variantElement]
|
|
12283
12402
|
};
|
|
12284
12403
|
} else if (variantElement.extend) {
|
|
12285
|
-
variantElement = (0, import_utils32.addAdditionalExtend)({ props:
|
|
12404
|
+
variantElement = (0, import_utils32.addAdditionalExtend)({ props: props5 }, variantElement);
|
|
12286
12405
|
}
|
|
12287
12406
|
const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
|
|
12288
12407
|
const { parent, ...rest } = extendedVariant;
|
|
12289
12408
|
return (0, import_utils32.overwriteDeep)(element, rest);
|
|
12290
12409
|
};
|
|
12291
12410
|
var applyVariant = (element) => {
|
|
12292
|
-
const { props:
|
|
12411
|
+
const { props: props5 } = element;
|
|
12293
12412
|
if (!(0, import_utils32.hasVariantProp)(element))
|
|
12294
12413
|
return element;
|
|
12295
|
-
const { variant } =
|
|
12414
|
+
const { variant } = props5;
|
|
12296
12415
|
overwriteVariant(element, `.${variant}`);
|
|
12297
12416
|
const elKeys = Object.keys(element).filter((key) => (0, import_utils32.isVariant)(key));
|
|
12298
12417
|
elKeys.forEach((variant2) => {
|
|
12299
12418
|
const slicedVariantElementKey = variant2.slice(1);
|
|
12300
|
-
const variantElementProps =
|
|
12419
|
+
const variantElementProps = props5[slicedVariantElementKey];
|
|
12301
12420
|
if (variantElementProps)
|
|
12302
12421
|
overwriteVariant(element, variant2, variantElementProps);
|
|
12303
12422
|
});
|
|
@@ -12562,26 +12681,28 @@ var require_set = __commonJS({
|
|
|
12562
12681
|
const content = (0, import_utils32.setContentKey)(element, options);
|
|
12563
12682
|
const __contentRef = content && content.__ref;
|
|
12564
12683
|
const lazyLoad = element.props && element.props.lazyLoad;
|
|
12565
|
-
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
12566
|
-
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
12567
|
-
if (beforeUpdateReturns === false)
|
|
12568
|
-
return element;
|
|
12569
|
-
}
|
|
12570
12684
|
const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
|
|
12571
12685
|
if (options.preventContentUpdate === true && !hasCollection)
|
|
12572
12686
|
return;
|
|
12573
12687
|
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils32.deepContains)(params, content)) {
|
|
12688
|
+
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
12689
|
+
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
12690
|
+
if (beforeUpdateReturns === false)
|
|
12691
|
+
return element;
|
|
12692
|
+
}
|
|
12574
12693
|
if (content == null ? void 0 : content.update)
|
|
12575
12694
|
content.update();
|
|
12695
|
+
if (!options.preventUpdateListener)
|
|
12696
|
+
(0, import_event.triggerEventOn)("update", element, options);
|
|
12576
12697
|
return;
|
|
12577
12698
|
}
|
|
12578
12699
|
if (params) {
|
|
12579
|
-
const { childExtend, childProps, props:
|
|
12700
|
+
const { childExtend, childProps, props: props5 } = params;
|
|
12580
12701
|
if (!childExtend && element.childExtend)
|
|
12581
12702
|
params.childExtend = element.childExtend;
|
|
12582
12703
|
if (!childProps && element.childProps)
|
|
12583
12704
|
params.childProps = element.childProps;
|
|
12584
|
-
if (!(
|
|
12705
|
+
if (!(props5 == null ? void 0 : props5.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
|
|
12585
12706
|
params.props.childProps = element.props.childProps;
|
|
12586
12707
|
}
|
|
12587
12708
|
if (lazyLoad) {
|
|
@@ -12589,8 +12710,6 @@ var require_set = __commonJS({
|
|
|
12589
12710
|
} else
|
|
12590
12711
|
resetElement(params, element, options);
|
|
12591
12712
|
}
|
|
12592
|
-
if (!options.preventUpdateListener)
|
|
12593
|
-
(0, import_event.triggerEventOn)("update", element, options);
|
|
12594
12713
|
return element;
|
|
12595
12714
|
};
|
|
12596
12715
|
var set_default = set3;
|
|
@@ -13019,6 +13138,8 @@ var require_registry = __commonJS({
|
|
|
13019
13138
|
variables: {},
|
|
13020
13139
|
lookup: {},
|
|
13021
13140
|
lookdown: {},
|
|
13141
|
+
getRef: {},
|
|
13142
|
+
getPath: {},
|
|
13022
13143
|
lookdownAll: {},
|
|
13023
13144
|
setNodeStyles: {},
|
|
13024
13145
|
spotByPath: {},
|
|
@@ -13153,6 +13274,8 @@ var require_methods2 = __commonJS({
|
|
|
13153
13274
|
defineSetter: () => defineSetter,
|
|
13154
13275
|
error: () => error,
|
|
13155
13276
|
get: () => get,
|
|
13277
|
+
getPath: () => getPath,
|
|
13278
|
+
getRef: () => getRef,
|
|
13156
13279
|
isMethod: () => isMethod,
|
|
13157
13280
|
keys: () => keys,
|
|
13158
13281
|
log: () => log,
|
|
@@ -13292,12 +13415,18 @@ var require_methods2 = __commonJS({
|
|
|
13292
13415
|
element.update({ props: param }, options);
|
|
13293
13416
|
return element;
|
|
13294
13417
|
}
|
|
13418
|
+
function getRef() {
|
|
13419
|
+
return this.__ref;
|
|
13420
|
+
}
|
|
13421
|
+
function getPath() {
|
|
13422
|
+
return this.getRef().path;
|
|
13423
|
+
}
|
|
13295
13424
|
var defineSetter = (element, key, get2, set3) => Object.defineProperty(element, key, { get: get2, set: set3 });
|
|
13296
13425
|
function keys() {
|
|
13297
13426
|
const element = this;
|
|
13298
13427
|
const keys2 = [];
|
|
13299
13428
|
for (const param in element) {
|
|
13300
|
-
if (import_mixins.registry[param] && !import_mixins.parseFilters.elementKeys.includes(param) || Object.hasOwnProperty.call(element, param)) {
|
|
13429
|
+
if (import_mixins.registry[param] && !import_mixins.parseFilters.elementKeys.includes(param) || !Object.hasOwnProperty.call(element, param)) {
|
|
13301
13430
|
continue;
|
|
13302
13431
|
}
|
|
13303
13432
|
keys2.push(param);
|
|
@@ -13322,8 +13451,8 @@ var require_methods2 = __commonJS({
|
|
|
13322
13451
|
return;
|
|
13323
13452
|
obj[v] = JSON.parse(JSON.stringify(val || {}));
|
|
13324
13453
|
} else if (v === "props") {
|
|
13325
|
-
const { __element, update, ...
|
|
13326
|
-
obj[v] =
|
|
13454
|
+
const { __element, update, ...props5 } = element[v];
|
|
13455
|
+
obj[v] = props5;
|
|
13327
13456
|
} else if ((0, import_utils32.isDefined)(val) && Object.hasOwnProperty.call(element, v))
|
|
13328
13457
|
obj[v] = val;
|
|
13329
13458
|
});
|
|
@@ -13353,9 +13482,9 @@ var require_methods2 = __commonJS({
|
|
|
13353
13482
|
} else {
|
|
13354
13483
|
console.log(ref.path);
|
|
13355
13484
|
const keys2 = element.keys();
|
|
13356
|
-
keys2.forEach((v) => console.log(`%c${v}:
|
|
13357
|
-
`, "font-weight: bold", element[v]));
|
|
13485
|
+
keys2.forEach((v) => console.log(`%c${v}:`, "font-weight: bold", element[v]));
|
|
13358
13486
|
}
|
|
13487
|
+
console.log(element);
|
|
13359
13488
|
console.groupEnd(element.key);
|
|
13360
13489
|
return element;
|
|
13361
13490
|
}
|
|
@@ -13370,11 +13499,13 @@ var require_methods2 = __commonJS({
|
|
|
13370
13499
|
}
|
|
13371
13500
|
}
|
|
13372
13501
|
function error(...params) {
|
|
13373
|
-
var _a;
|
|
13502
|
+
var _a, _b;
|
|
13374
13503
|
if (ENV3 === "test" || ENV3 === "development") {
|
|
13375
13504
|
if ((_a = params[params.length - 1]) == null ? void 0 : _a.debugger)
|
|
13376
13505
|
debugger;
|
|
13377
13506
|
console.error(...params);
|
|
13507
|
+
if ((_b = params[params.length - 1]) == null ? void 0 : _b.verbose)
|
|
13508
|
+
this.verbose();
|
|
13378
13509
|
}
|
|
13379
13510
|
}
|
|
13380
13511
|
function nextElement() {
|
|
@@ -13439,6 +13570,8 @@ var require_methods2 = __commonJS({
|
|
|
13439
13570
|
"lookup",
|
|
13440
13571
|
"lookdown",
|
|
13441
13572
|
"lookdownAll",
|
|
13573
|
+
"getRef",
|
|
13574
|
+
"getPath",
|
|
13442
13575
|
"setNodeStyles",
|
|
13443
13576
|
"spotByPath",
|
|
13444
13577
|
"keys",
|
|
@@ -13532,15 +13665,15 @@ var require_iterate = __commonJS({
|
|
|
13532
13665
|
};
|
|
13533
13666
|
var throughExecProps = (element) => {
|
|
13534
13667
|
const { __ref: ref } = element;
|
|
13535
|
-
const { props:
|
|
13536
|
-
for (const k in
|
|
13668
|
+
const { props: props5 } = element;
|
|
13669
|
+
for (const k in props5) {
|
|
13537
13670
|
const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
|
|
13538
13671
|
const cachedExecProp = ref.__execProps[k];
|
|
13539
13672
|
if ((0, import_utils32.isFunction)(cachedExecProp)) {
|
|
13540
|
-
|
|
13541
|
-
} else if (isDefine && (0, import_utils32.isFunction)(
|
|
13542
|
-
ref.__execProps[k] =
|
|
13543
|
-
|
|
13673
|
+
props5[k] = (0, import_utils32.exec)(cachedExecProp, element);
|
|
13674
|
+
} else if (isDefine && (0, import_utils32.isFunction)(props5[k])) {
|
|
13675
|
+
ref.__execProps[k] = props5[k];
|
|
13676
|
+
props5[k] = (0, import_utils32.exec)(props5[k], element);
|
|
13544
13677
|
}
|
|
13545
13678
|
}
|
|
13546
13679
|
};
|
|
@@ -13669,12 +13802,12 @@ var require_propEvents = __commonJS({
|
|
|
13669
13802
|
module2.exports = __toCommonJS2(propEvents_exports);
|
|
13670
13803
|
var import_utils32 = require_cjs();
|
|
13671
13804
|
var propagateEventsFromProps = (element) => {
|
|
13672
|
-
const { props:
|
|
13673
|
-
const eventKeysFromProps = Object.keys(
|
|
13805
|
+
const { props: props5, on: on2 } = element;
|
|
13806
|
+
const eventKeysFromProps = Object.keys(props5).filter((key) => key.startsWith("on"));
|
|
13674
13807
|
eventKeysFromProps.forEach((v) => {
|
|
13675
13808
|
const eventName = (0, import_utils32.lowercaseFirstLetter)(v.split("on")[1]);
|
|
13676
13809
|
const origEvent = on2[eventName];
|
|
13677
|
-
const funcFromProps =
|
|
13810
|
+
const funcFromProps = props5[v];
|
|
13678
13811
|
if ((0, import_utils32.isFunction)(origEvent)) {
|
|
13679
13812
|
on2[eventName] = (...args) => {
|
|
13680
13813
|
const originalEventRetunrs = origEvent(...args);
|
|
@@ -13878,9 +14011,9 @@ var require_update2 = __commonJS({
|
|
|
13878
14011
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
13879
14012
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
13880
14013
|
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils32.isFunction)(v));
|
|
13881
|
-
const
|
|
13882
|
-
if (
|
|
13883
|
-
(0, import_props.updateProps)(
|
|
14014
|
+
const props5 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
14015
|
+
if (props5)
|
|
14016
|
+
(0, import_props.updateProps)(props5, element, parent);
|
|
13884
14017
|
}
|
|
13885
14018
|
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
13886
14019
|
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
@@ -14119,6 +14252,8 @@ var require_set2 = __commonJS({
|
|
|
14119
14252
|
lookup: import__.lookup,
|
|
14120
14253
|
lookdown: import__.lookdown,
|
|
14121
14254
|
lookdownAll: import__.lookdownAll,
|
|
14255
|
+
getRef: import__.getRef,
|
|
14256
|
+
getPath: import__.getPath,
|
|
14122
14257
|
setNodeStyles: import__.setNodeStyles,
|
|
14123
14258
|
spotByPath: import__.spotByPath,
|
|
14124
14259
|
parse: import__.parse,
|
|
@@ -14435,6 +14570,7 @@ var require_create4 = __commonJS({
|
|
|
14435
14570
|
if (!element.props)
|
|
14436
14571
|
element.props = {};
|
|
14437
14572
|
(0, import_component.applyVariant)(element, parent);
|
|
14573
|
+
addElementIntoParentChildren(element, parent);
|
|
14438
14574
|
}
|
|
14439
14575
|
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
14440
14576
|
(0, import_iterate.throughInitialDefine)(element);
|
|
@@ -14463,13 +14599,13 @@ var require_create4 = __commonJS({
|
|
|
14463
14599
|
};
|
|
14464
14600
|
var checkIfMedia = (key) => key.slice(0, 1) === "@";
|
|
14465
14601
|
var applyMediaProps2 = (element, parent, key) => {
|
|
14466
|
-
const { props:
|
|
14467
|
-
if (
|
|
14468
|
-
|
|
14469
|
-
if (
|
|
14470
|
-
|
|
14602
|
+
const { props: props5 } = element;
|
|
14603
|
+
if (props5) {
|
|
14604
|
+
props5.display = "none";
|
|
14605
|
+
if (props5[key])
|
|
14606
|
+
props5[key].display = props5.display;
|
|
14471
14607
|
else
|
|
14472
|
-
|
|
14608
|
+
props5[key] = { display: props5.display || "block" };
|
|
14473
14609
|
return element;
|
|
14474
14610
|
} else {
|
|
14475
14611
|
return {
|
|
@@ -15555,13 +15691,13 @@ var require_object3 = __commonJS({
|
|
|
15555
15691
|
}
|
|
15556
15692
|
return true;
|
|
15557
15693
|
};
|
|
15558
|
-
var removeFromObject = (obj,
|
|
15559
|
-
if (
|
|
15694
|
+
var removeFromObject = (obj, props5) => {
|
|
15695
|
+
if (props5 === void 0 || props5 === null)
|
|
15560
15696
|
return obj;
|
|
15561
|
-
if ((0, import_types.is)(
|
|
15562
|
-
delete obj[
|
|
15563
|
-
} else if ((0, import_types.isArray)(
|
|
15564
|
-
|
|
15697
|
+
if ((0, import_types.is)(props5)("string", "number")) {
|
|
15698
|
+
delete obj[props5];
|
|
15699
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
15700
|
+
props5.forEach((prop) => delete obj[prop]);
|
|
15565
15701
|
} else {
|
|
15566
15702
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
15567
15703
|
}
|
|
@@ -16336,11 +16472,11 @@ var length = 0;
|
|
|
16336
16472
|
var position = 0;
|
|
16337
16473
|
var character = 0;
|
|
16338
16474
|
var characters = "";
|
|
16339
|
-
function node(value2, root, parent, type,
|
|
16340
|
-
return { value: value2, root, parent, type, props:
|
|
16475
|
+
function node(value2, root, parent, type, props5, children, length3) {
|
|
16476
|
+
return { value: value2, root, parent, type, props: props5, children, line, column, length: length3, return: "" };
|
|
16341
16477
|
}
|
|
16342
|
-
function copy(root,
|
|
16343
|
-
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length },
|
|
16478
|
+
function copy(root, props5) {
|
|
16479
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
|
|
16344
16480
|
}
|
|
16345
16481
|
function char() {
|
|
16346
16482
|
return character;
|
|
@@ -16471,7 +16607,7 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
16471
16607
|
var ampersand = 1;
|
|
16472
16608
|
var character3 = 0;
|
|
16473
16609
|
var type = "";
|
|
16474
|
-
var
|
|
16610
|
+
var props5 = rules;
|
|
16475
16611
|
var children = rulesets;
|
|
16476
16612
|
var reference = rule;
|
|
16477
16613
|
var characters3 = type;
|
|
@@ -16525,17 +16661,17 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
16525
16661
|
case 59:
|
|
16526
16662
|
characters3 += ";";
|
|
16527
16663
|
default:
|
|
16528
|
-
append(reference = ruleset(characters3, root, parent, index, offset, rules, points, type,
|
|
16664
|
+
append(reference = ruleset(characters3, root, parent, index, offset, rules, points, type, props5 = [], children = [], length3), rulesets);
|
|
16529
16665
|
if (character3 === 123)
|
|
16530
16666
|
if (offset === 0)
|
|
16531
|
-
parse(characters3, root, reference, reference,
|
|
16667
|
+
parse(characters3, root, reference, reference, props5, rulesets, length3, points, children);
|
|
16532
16668
|
else
|
|
16533
16669
|
switch (atrule === 99 && charat(characters3, 3) === 110 ? 100 : atrule) {
|
|
16534
16670
|
case 100:
|
|
16535
16671
|
case 108:
|
|
16536
16672
|
case 109:
|
|
16537
16673
|
case 115:
|
|
16538
|
-
parse(value2, reference, reference, rule && append(ruleset(value2, reference, reference, 0, 0, rules, points, type, rules,
|
|
16674
|
+
parse(value2, reference, reference, rule && append(ruleset(value2, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length3), children), rules, children, length3, points, rule ? props5 : children);
|
|
16539
16675
|
break;
|
|
16540
16676
|
default:
|
|
16541
16677
|
parse(characters3, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -16571,15 +16707,15 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
16571
16707
|
}
|
|
16572
16708
|
return rulesets;
|
|
16573
16709
|
}
|
|
16574
|
-
function ruleset(value2, root, parent, index, offset, rules, points, type,
|
|
16710
|
+
function ruleset(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
|
|
16575
16711
|
var post = offset - 1;
|
|
16576
16712
|
var rule = offset === 0 ? rules : [""];
|
|
16577
16713
|
var size = sizeof(rule);
|
|
16578
16714
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
16579
16715
|
for (var x = 0, y = substr(value2, post + 1, post = abs(j = points[i])), z = value2; x < size; ++x)
|
|
16580
16716
|
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
16581
|
-
|
|
16582
|
-
return node(value2, root, parent, offset === 0 ? RULESET : type,
|
|
16717
|
+
props5[k++] = z;
|
|
16718
|
+
return node(value2, root, parent, offset === 0 ? RULESET : type, props5, children, length3);
|
|
16583
16719
|
}
|
|
16584
16720
|
function comment(value2, root, parent) {
|
|
16585
16721
|
return node(value2, root, parent, COMMENT, from(char()), substr(value2, 2, -2), 0);
|
|
@@ -17641,6 +17777,162 @@ __export(uikit_exports, {
|
|
|
17641
17777
|
// ../uikit/Atoms/Block.js
|
|
17642
17778
|
var import_utils3 = __toESM(require_cjs());
|
|
17643
17779
|
var import_scratch3 = __toESM(require_cjs2());
|
|
17780
|
+
var props = {
|
|
17781
|
+
show: (el, s, ctx) => !!(ctx.utils.exec(el.props.show, el, s) === false) && {
|
|
17782
|
+
display: "none !important"
|
|
17783
|
+
},
|
|
17784
|
+
hide: (el, s, ctx) => !!ctx.utils.exec(el.props.hide, el, s) && {
|
|
17785
|
+
display: "none !important"
|
|
17786
|
+
},
|
|
17787
|
+
height: ({ props: props5, deps }) => deps.transformSizeRatio("height", props5),
|
|
17788
|
+
width: ({ props: props5, deps }) => deps.transformSizeRatio("width", props5),
|
|
17789
|
+
boxSizing: ({ props: props5, deps }) => !deps.isUndefined(props5.boxSizing) ? { boxSizing: props5.boxSizing } : { boxSizing: "border-box" },
|
|
17790
|
+
boxSize: ({ props: props5, deps }) => {
|
|
17791
|
+
if (!deps.isString(props5.boxSize))
|
|
17792
|
+
return;
|
|
17793
|
+
const [height, width] = props5.boxSize.split(" ");
|
|
17794
|
+
return {
|
|
17795
|
+
...deps.transformSize("height", height),
|
|
17796
|
+
...deps.transformSize("width", width || height)
|
|
17797
|
+
};
|
|
17798
|
+
},
|
|
17799
|
+
inlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("inlineSize", props5),
|
|
17800
|
+
blockSize: ({ props: props5, deps }) => deps.transformSizeRatio("blockSize", props5),
|
|
17801
|
+
minWidth: ({ props: props5, deps }) => deps.transformSizeRatio("minWidth", props5),
|
|
17802
|
+
maxWidth: ({ props: props5, deps }) => deps.transformSizeRatio("maxWidth", props5),
|
|
17803
|
+
widthRange: ({ props: props5, deps }) => {
|
|
17804
|
+
if (!deps.isString(props5.widthRange))
|
|
17805
|
+
return;
|
|
17806
|
+
const [minWidth, maxWidth] = props5.widthRange.split(" ");
|
|
17807
|
+
return {
|
|
17808
|
+
...deps.transformSize("minWidth", minWidth),
|
|
17809
|
+
...deps.transformSize("maxWidth", maxWidth || minWidth)
|
|
17810
|
+
};
|
|
17811
|
+
},
|
|
17812
|
+
minHeight: ({ props: props5, deps }) => deps.transformSizeRatio("minHeight", props5),
|
|
17813
|
+
maxHeight: ({ props: props5, deps }) => deps.transformSizeRatio("maxHeight", props5),
|
|
17814
|
+
heightRange: ({ props: props5, deps }) => {
|
|
17815
|
+
if (!deps.isString(props5.heightRange))
|
|
17816
|
+
return;
|
|
17817
|
+
const [minHeight, maxHeight] = props5.heightRange.split(" ");
|
|
17818
|
+
return {
|
|
17819
|
+
...deps.transformSize("minHeight", minHeight),
|
|
17820
|
+
...deps.transformSize("maxHeight", maxHeight || minHeight)
|
|
17821
|
+
};
|
|
17822
|
+
},
|
|
17823
|
+
size: ({ props: props5, deps }) => {
|
|
17824
|
+
if (!deps.isString(props5.size))
|
|
17825
|
+
return;
|
|
17826
|
+
const [inlineSize, blockSize] = props5.size.split(" ");
|
|
17827
|
+
return {
|
|
17828
|
+
...deps.transformSizeRatio("inlineSize", inlineSize),
|
|
17829
|
+
...deps.transformSizeRatio("blockSize", blockSize || inlineSize)
|
|
17830
|
+
};
|
|
17831
|
+
},
|
|
17832
|
+
minBlockSize: ({ props: props5, deps }) => deps.transformSizeRatio("minBlockSize", props5),
|
|
17833
|
+
minInlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("minInlineSize", props5),
|
|
17834
|
+
maxBlockSize: ({ props: props5, deps }) => deps.transformSizeRatio("maxBlockSize", props5),
|
|
17835
|
+
maxInlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("maxInlineSize", props5),
|
|
17836
|
+
minSize: ({ props: props5, deps }) => {
|
|
17837
|
+
if (!deps.isString(props5.minSize))
|
|
17838
|
+
return;
|
|
17839
|
+
const [minInlineSize, minBlockSize] = props5.minSize.split(" ");
|
|
17840
|
+
return {
|
|
17841
|
+
...deps.transformSize("minInlineSize", minInlineSize),
|
|
17842
|
+
...deps.transformSize("minBlockSize", minBlockSize || minInlineSize)
|
|
17843
|
+
};
|
|
17844
|
+
},
|
|
17845
|
+
maxSize: ({ props: props5, deps }) => {
|
|
17846
|
+
if (!deps.isString(props5.maxSize))
|
|
17847
|
+
return;
|
|
17848
|
+
const [maxInlineSize, maxBlockSize] = props5.maxSize.split(" ");
|
|
17849
|
+
return {
|
|
17850
|
+
...deps.transformSize("maxInlineSize", maxInlineSize),
|
|
17851
|
+
...deps.transformSize("maxBlockSize", maxBlockSize || maxInlineSize)
|
|
17852
|
+
};
|
|
17853
|
+
},
|
|
17854
|
+
borderWidth: ({ props: props5, deps }) => deps.transformSizeRatio("borderWidth", props5),
|
|
17855
|
+
padding: ({ props: props5, deps }) => deps.transformSizeRatio("padding", props5),
|
|
17856
|
+
scrollPadding: ({ props: props5, deps }) => deps.transformSizeRatio("scrollPadding", props5),
|
|
17857
|
+
paddingInline: ({ props: props5, deps }) => {
|
|
17858
|
+
if (!deps.isString(props5.paddingInline))
|
|
17859
|
+
return;
|
|
17860
|
+
const [paddingInlineStart, paddingInlineEnd] = props5.paddingInline.split(" ");
|
|
17861
|
+
return {
|
|
17862
|
+
...deps.transformSize("paddingInlineStart", paddingInlineStart),
|
|
17863
|
+
...deps.transformSize("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
|
|
17864
|
+
};
|
|
17865
|
+
},
|
|
17866
|
+
paddingBlock: ({ props: props5, deps }) => {
|
|
17867
|
+
if (!deps.isString(props5.paddingBlock))
|
|
17868
|
+
return;
|
|
17869
|
+
const [paddingBlockStart, paddingBlockEnd] = props5.paddingBlock.split(" ");
|
|
17870
|
+
return {
|
|
17871
|
+
...deps.transformSize("paddingBlockStart", paddingBlockStart),
|
|
17872
|
+
...deps.transformSize("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
|
|
17873
|
+
};
|
|
17874
|
+
},
|
|
17875
|
+
paddingInlineStart: ({ props: props5, deps }) => deps.transformSizeRatio("paddingInlineStart", props5),
|
|
17876
|
+
paddingInlineEnd: ({ props: props5, deps }) => deps.transformSizeRatio("paddingInlineEnd", props5),
|
|
17877
|
+
paddingBlockStart: ({ props: props5, deps }) => deps.transformSizeRatio("paddingBlockStart", props5),
|
|
17878
|
+
paddingBlockEnd: ({ props: props5, deps }) => deps.transformSizeRatio("paddingBlockEnd", props5),
|
|
17879
|
+
margin: ({ props: props5, deps }) => deps.transformSizeRatio("margin", props5),
|
|
17880
|
+
marginInline: ({ props: props5, deps }) => {
|
|
17881
|
+
if (!deps.isString(props5.marginInline))
|
|
17882
|
+
return;
|
|
17883
|
+
const [marginInlineStart, marginInlineEnd] = props5.marginInline.split(" ");
|
|
17884
|
+
return {
|
|
17885
|
+
...deps.transformSize("marginInlineStart", marginInlineStart),
|
|
17886
|
+
...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
|
|
17887
|
+
};
|
|
17888
|
+
},
|
|
17889
|
+
marginBlock: ({ props: props5, deps }) => {
|
|
17890
|
+
if (!deps.isString(props5.marginBlock))
|
|
17891
|
+
return;
|
|
17892
|
+
const [marginBlockStart, marginBlockEnd] = props5.marginBlock.split(" ");
|
|
17893
|
+
return {
|
|
17894
|
+
...deps.transformSize("marginBlockStart", marginBlockStart),
|
|
17895
|
+
...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
|
|
17896
|
+
};
|
|
17897
|
+
},
|
|
17898
|
+
marginInlineStart: ({ props: props5, deps }) => deps.transformSizeRatio("marginInlineStart", props5),
|
|
17899
|
+
marginInlineEnd: ({ props: props5, deps }) => deps.transformSizeRatio("marginInlineEnd", props5),
|
|
17900
|
+
marginBlockStart: ({ props: props5, deps }) => deps.transformSizeRatio("marginBlockStart", props5),
|
|
17901
|
+
marginBlockEnd: ({ props: props5, deps }) => deps.transformSizeRatio("marginBlockEnd", props5),
|
|
17902
|
+
gap: ({ props: props5, deps }) => !deps.isUndefined(props5.gap) && {
|
|
17903
|
+
gap: (0, import_scratch3.transfromGap)(props5.gap)
|
|
17904
|
+
},
|
|
17905
|
+
columnGap: ({ props: props5, deps }) => !deps.isUndefined(props5.columnGap) ? deps.getSpacingBasedOnRatio(props5, "columnGap") : null,
|
|
17906
|
+
rowGap: ({ props: props5, deps }) => !deps.isUndefined(props5.rowGap) ? deps.getSpacingBasedOnRatio(props5, "rowGap") : null,
|
|
17907
|
+
flexWrap: ({ props: props5, deps }) => !deps.isUndefined(props5.flexWrap) && {
|
|
17908
|
+
display: "flex",
|
|
17909
|
+
flexFlow: (props5.flexFlow || "row").split(" ")[0] + " " + props5.flexWrap
|
|
17910
|
+
},
|
|
17911
|
+
flexFlow: ({ props: props5, deps }) => {
|
|
17912
|
+
const { flexFlow, reverse } = props5;
|
|
17913
|
+
if (!deps.isString(flexFlow))
|
|
17914
|
+
return;
|
|
17915
|
+
let [direction, wrap] = (flexFlow || "row").split(" ");
|
|
17916
|
+
if (flexFlow.startsWith("x") || flexFlow === "row")
|
|
17917
|
+
direction = "row";
|
|
17918
|
+
if (flexFlow.startsWith("y") || flexFlow === "column")
|
|
17919
|
+
direction = "column";
|
|
17920
|
+
return {
|
|
17921
|
+
display: "flex",
|
|
17922
|
+
flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
|
|
17923
|
+
};
|
|
17924
|
+
},
|
|
17925
|
+
flexAlign: ({ props: props5, deps }) => {
|
|
17926
|
+
if (!deps.isString(props5.flexAlign))
|
|
17927
|
+
return;
|
|
17928
|
+
const [alignItems, justifyContent] = props5.flexAlign.split(" ");
|
|
17929
|
+
return {
|
|
17930
|
+
display: "flex",
|
|
17931
|
+
alignItems,
|
|
17932
|
+
justifyContent
|
|
17933
|
+
};
|
|
17934
|
+
}
|
|
17935
|
+
};
|
|
17644
17936
|
var Block = {
|
|
17645
17937
|
deps: {
|
|
17646
17938
|
getSpacingBasedOnRatio: import_scratch3.getSpacingBasedOnRatio,
|
|
@@ -17652,233 +17944,82 @@ var Block = {
|
|
|
17652
17944
|
isString: import_utils3.isString
|
|
17653
17945
|
},
|
|
17654
17946
|
class: {
|
|
17655
|
-
|
|
17656
|
-
display: ({ props:
|
|
17657
|
-
display:
|
|
17658
|
-
},
|
|
17659
|
-
show: (el, s, ctx) => !!(ctx.utils.exec(el.props.show, el, s) === false) && {
|
|
17660
|
-
display: "none !important"
|
|
17661
|
-
},
|
|
17662
|
-
hide: (el, s, ctx) => !!ctx.utils.exec(el.props.hide, el, s) && {
|
|
17663
|
-
display: "none !important"
|
|
17664
|
-
},
|
|
17665
|
-
height: ({ props: props2, deps }) => deps.transformSizeRatio("height", props2),
|
|
17666
|
-
width: ({ props: props2, deps }) => deps.transformSizeRatio("width", props2),
|
|
17667
|
-
boxSize: ({ props: props2, deps }) => {
|
|
17668
|
-
if (!deps.isString(props2.boxSize))
|
|
17669
|
-
return;
|
|
17670
|
-
const [height, width] = props2.boxSize.split(" ");
|
|
17671
|
-
return {
|
|
17672
|
-
...deps.transformSize("height", height),
|
|
17673
|
-
...deps.transformSize("width", width || height)
|
|
17674
|
-
};
|
|
17675
|
-
},
|
|
17676
|
-
inlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("inlineSize", props2),
|
|
17677
|
-
blockSize: ({ props: props2, deps }) => deps.transformSizeRatio("blockSize", props2),
|
|
17678
|
-
minWidth: ({ props: props2, deps }) => deps.transformSizeRatio("minWidth", props2),
|
|
17679
|
-
maxWidth: ({ props: props2, deps }) => deps.transformSizeRatio("maxWidth", props2),
|
|
17680
|
-
widthRange: ({ props: props2, deps }) => {
|
|
17681
|
-
if (!deps.isString(props2.widthRange))
|
|
17682
|
-
return;
|
|
17683
|
-
const [minWidth, maxWidth] = props2.widthRange.split(" ");
|
|
17684
|
-
return {
|
|
17685
|
-
...deps.transformSize("minWidth", minWidth),
|
|
17686
|
-
...deps.transformSize("maxWidth", maxWidth || minWidth)
|
|
17687
|
-
};
|
|
17688
|
-
},
|
|
17689
|
-
minHeight: ({ props: props2, deps }) => deps.transformSizeRatio("minHeight", props2),
|
|
17690
|
-
maxHeight: ({ props: props2, deps }) => deps.transformSizeRatio("maxHeight", props2),
|
|
17691
|
-
heightRange: ({ props: props2, deps }) => {
|
|
17692
|
-
if (!deps.isString(props2.heightRange))
|
|
17693
|
-
return;
|
|
17694
|
-
const [minHeight, maxHeight] = props2.heightRange.split(" ");
|
|
17695
|
-
return {
|
|
17696
|
-
...deps.transformSize("minHeight", minHeight),
|
|
17697
|
-
...deps.transformSize("maxHeight", maxHeight || minHeight)
|
|
17698
|
-
};
|
|
17699
|
-
},
|
|
17700
|
-
size: ({ props: props2, deps }) => {
|
|
17701
|
-
if (!deps.isString(props2.size))
|
|
17702
|
-
return;
|
|
17703
|
-
const [inlineSize, blockSize] = props2.size.split(" ");
|
|
17704
|
-
return {
|
|
17705
|
-
...deps.transformSizeRatio("inlineSize", inlineSize),
|
|
17706
|
-
...deps.transformSizeRatio("blockSize", blockSize || inlineSize)
|
|
17707
|
-
};
|
|
17708
|
-
},
|
|
17709
|
-
minBlockSize: ({ props: props2, deps }) => deps.transformSizeRatio("minBlockSize", props2),
|
|
17710
|
-
minInlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("minInlineSize", props2),
|
|
17711
|
-
maxBlockSize: ({ props: props2, deps }) => deps.transformSizeRatio("maxBlockSize", props2),
|
|
17712
|
-
maxInlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("maxInlineSize", props2),
|
|
17713
|
-
minSize: ({ props: props2, deps }) => {
|
|
17714
|
-
if (!deps.isString(props2.minSize))
|
|
17715
|
-
return;
|
|
17716
|
-
const [minInlineSize, minBlockSize] = props2.minSize.split(" ");
|
|
17717
|
-
return {
|
|
17718
|
-
...deps.transformSize("minInlineSize", minInlineSize),
|
|
17719
|
-
...deps.transformSize("minBlockSize", minBlockSize || minInlineSize)
|
|
17720
|
-
};
|
|
17721
|
-
},
|
|
17722
|
-
maxSize: ({ props: props2, deps }) => {
|
|
17723
|
-
if (!deps.isString(props2.maxSize))
|
|
17724
|
-
return;
|
|
17725
|
-
const [maxInlineSize, maxBlockSize] = props2.maxSize.split(" ");
|
|
17726
|
-
return {
|
|
17727
|
-
...deps.transformSize("maxInlineSize", maxInlineSize),
|
|
17728
|
-
...deps.transformSize("maxBlockSize", maxBlockSize || maxInlineSize)
|
|
17729
|
-
};
|
|
17947
|
+
...props,
|
|
17948
|
+
display: ({ props: props5, deps }) => !deps.isUndefined(props5.display) && {
|
|
17949
|
+
display: props5.display
|
|
17730
17950
|
},
|
|
17731
|
-
direction: ({ props:
|
|
17732
|
-
direction:
|
|
17951
|
+
direction: ({ props: props5, deps }) => !deps.isUndefined(props5.direction) && {
|
|
17952
|
+
direction: props5.direction
|
|
17733
17953
|
},
|
|
17734
|
-
objectFit: ({ props:
|
|
17735
|
-
objectFit:
|
|
17954
|
+
objectFit: ({ props: props5, deps }) => !deps.isUndefined(props5.objectFit) && {
|
|
17955
|
+
objectFit: props5.objectFit
|
|
17736
17956
|
},
|
|
17737
|
-
aspectRatio: ({ props:
|
|
17738
|
-
aspectRatio:
|
|
17957
|
+
aspectRatio: ({ props: props5, deps }) => !deps.isUndefined(props5.aspectRatio) && {
|
|
17958
|
+
aspectRatio: props5.aspectRatio
|
|
17739
17959
|
},
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
paddingInline: ({ props: props2, deps }) => {
|
|
17744
|
-
if (!deps.isString(props2.paddingInline))
|
|
17745
|
-
return;
|
|
17746
|
-
const [paddingInlineStart, paddingInlineEnd] = props2.paddingInline.split(" ");
|
|
17747
|
-
return {
|
|
17748
|
-
...deps.transformSize("paddingInlineStart", paddingInlineStart),
|
|
17749
|
-
...deps.transformSize("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
|
|
17750
|
-
};
|
|
17751
|
-
},
|
|
17752
|
-
paddingBlock: ({ props: props2, deps }) => {
|
|
17753
|
-
if (!deps.isString(props2.paddingBlock))
|
|
17754
|
-
return;
|
|
17755
|
-
const [paddingBlockStart, paddingBlockEnd] = props2.paddingBlock.split(" ");
|
|
17756
|
-
return {
|
|
17757
|
-
...deps.transformSize("paddingBlockStart", paddingBlockStart),
|
|
17758
|
-
...deps.transformSize("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
|
|
17759
|
-
};
|
|
17760
|
-
},
|
|
17761
|
-
paddingInlineStart: ({ props: props2, deps }) => deps.transformSizeRatio("paddingInlineStart", props2),
|
|
17762
|
-
paddingInlineEnd: ({ props: props2, deps }) => deps.transformSizeRatio("paddingInlineEnd", props2),
|
|
17763
|
-
paddingBlockStart: ({ props: props2, deps }) => deps.transformSizeRatio("paddingBlockStart", props2),
|
|
17764
|
-
paddingBlockEnd: ({ props: props2, deps }) => deps.transformSizeRatio("paddingBlockEnd", props2),
|
|
17765
|
-
margin: ({ props: props2, deps }) => deps.transformSizeRatio("margin", props2),
|
|
17766
|
-
marginInline: ({ props: props2, deps }) => {
|
|
17767
|
-
if (!deps.isString(props2.marginInline))
|
|
17768
|
-
return;
|
|
17769
|
-
const [marginInlineStart, marginInlineEnd] = props2.marginInline.split(" ");
|
|
17770
|
-
return {
|
|
17771
|
-
...deps.transformSize("marginInlineStart", marginInlineStart),
|
|
17772
|
-
...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
|
|
17773
|
-
};
|
|
17774
|
-
},
|
|
17775
|
-
marginBlock: ({ props: props2, deps }) => {
|
|
17776
|
-
if (!deps.isString(props2.marginBlock))
|
|
17777
|
-
return;
|
|
17778
|
-
const [marginBlockStart, marginBlockEnd] = props2.marginBlock.split(" ");
|
|
17779
|
-
return {
|
|
17780
|
-
...deps.transformSize("marginBlockStart", marginBlockStart),
|
|
17781
|
-
...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
|
|
17782
|
-
};
|
|
17783
|
-
},
|
|
17784
|
-
marginInlineStart: ({ props: props2, deps }) => deps.transformSizeRatio("marginInlineStart", props2),
|
|
17785
|
-
marginInlineEnd: ({ props: props2, deps }) => deps.transformSizeRatio("marginInlineEnd", props2),
|
|
17786
|
-
marginBlockStart: ({ props: props2, deps }) => deps.transformSizeRatio("marginBlockStart", props2),
|
|
17787
|
-
marginBlockEnd: ({ props: props2, deps }) => deps.transformSizeRatio("marginBlockEnd", props2),
|
|
17788
|
-
gap: ({ props: props2, deps }) => !deps.isUndefined(props2.gap) && {
|
|
17789
|
-
gap: (0, import_scratch3.transfromGap)(props2.gap)
|
|
17960
|
+
gridArea: ({ props: props5, deps }) => props5.gridArea && { gridArea: props5.gridArea },
|
|
17961
|
+
float: ({ props: props5, deps }) => !deps.isUndefined(props5.float) && {
|
|
17962
|
+
float: props5.float
|
|
17790
17963
|
},
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
gridArea: ({ props: props2, deps }) => props2.gridArea && { gridArea: props2.gridArea },
|
|
17794
|
-
float: ({ props: props2, deps }) => !deps.isUndefined(props2.float) && {
|
|
17795
|
-
float: props2.float
|
|
17964
|
+
flex: ({ props: props5, deps }) => !deps.isUndefined(props5.flex) && {
|
|
17965
|
+
flex: props5.flex
|
|
17796
17966
|
},
|
|
17797
|
-
|
|
17798
|
-
|
|
17967
|
+
flexDirection: ({ props: props5, deps }) => !deps.isUndefined(props5.flexDirection) && {
|
|
17968
|
+
flexDirection: props5.flexDirection
|
|
17799
17969
|
},
|
|
17800
|
-
|
|
17801
|
-
|
|
17970
|
+
alignItems: ({ props: props5, deps }) => !deps.isUndefined(props5.alignItems) && {
|
|
17971
|
+
alignItems: props5.alignItems
|
|
17802
17972
|
},
|
|
17803
|
-
|
|
17804
|
-
|
|
17973
|
+
alignContent: ({ props: props5, deps }) => !deps.isUndefined(props5.alignContent) && {
|
|
17974
|
+
alignContent: props5.alignContent
|
|
17805
17975
|
},
|
|
17806
|
-
|
|
17807
|
-
|
|
17976
|
+
justifyContent: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyContent) && {
|
|
17977
|
+
justifyContent: props5.justifyContent
|
|
17808
17978
|
},
|
|
17809
|
-
|
|
17810
|
-
|
|
17979
|
+
justifyItems: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyItems) && {
|
|
17980
|
+
justifyItems: props5.justifyItems
|
|
17811
17981
|
},
|
|
17812
|
-
|
|
17813
|
-
|
|
17982
|
+
alignSelf: ({ props: props5, deps }) => !deps.isUndefined(props5.alignSelf) && {
|
|
17983
|
+
alignSelf: props5.alignSelf
|
|
17814
17984
|
},
|
|
17815
|
-
|
|
17816
|
-
|
|
17985
|
+
order: ({ props: props5, deps }) => !deps.isUndefined(props5.order) && {
|
|
17986
|
+
order: props5.order
|
|
17817
17987
|
},
|
|
17818
|
-
|
|
17819
|
-
|
|
17988
|
+
gridColumn: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumn) && {
|
|
17989
|
+
gridColumn: props5.gridColumn
|
|
17820
17990
|
},
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
flexFlow: (props2.flexFlow || "row").split(" ")[0] + " " + props2.flexWrap
|
|
17824
|
-
},
|
|
17825
|
-
flexFlow: ({ props: props2, deps }) => {
|
|
17826
|
-
const { flexFlow, reverse } = props2;
|
|
17827
|
-
if (!deps.isString(flexFlow))
|
|
17828
|
-
return;
|
|
17829
|
-
let [direction, wrap] = (flexFlow || "row").split(" ");
|
|
17830
|
-
if (flexFlow.startsWith("x") || flexFlow === "row")
|
|
17831
|
-
direction = "row";
|
|
17832
|
-
if (flexFlow.startsWith("y") || flexFlow === "column")
|
|
17833
|
-
direction = "column";
|
|
17834
|
-
return {
|
|
17835
|
-
display: "flex",
|
|
17836
|
-
flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
|
|
17837
|
-
};
|
|
17991
|
+
gridColumnStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumnStart) && {
|
|
17992
|
+
gridColumnStart: props5.gridColumnStart
|
|
17838
17993
|
},
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
return;
|
|
17842
|
-
const [alignItems, justifyContent] = props2.flexAlign.split(" ");
|
|
17843
|
-
return {
|
|
17844
|
-
display: "flex",
|
|
17845
|
-
alignItems,
|
|
17846
|
-
justifyContent
|
|
17847
|
-
};
|
|
17848
|
-
},
|
|
17849
|
-
gridColumn: ({ props: props2, deps }) => !deps.isUndefined(props2.gridColumn) && {
|
|
17850
|
-
gridColumn: props2.gridColumn
|
|
17994
|
+
gridRow: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRow) && {
|
|
17995
|
+
gridRow: props5.gridRow
|
|
17851
17996
|
},
|
|
17852
|
-
|
|
17853
|
-
|
|
17997
|
+
gridRowStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRowStart) && {
|
|
17998
|
+
gridRowStart: props5.gridRowStart
|
|
17854
17999
|
},
|
|
17855
|
-
|
|
17856
|
-
|
|
18000
|
+
resize: ({ props: props5, deps }) => !deps.isUndefined(props5.resize) && {
|
|
18001
|
+
resize: props5.resize
|
|
17857
18002
|
},
|
|
17858
|
-
|
|
17859
|
-
|
|
18003
|
+
verticalAlign: ({ props: props5, deps }) => !deps.isUndefined(props5.verticalAlign) && {
|
|
18004
|
+
verticalAlign: props5.verticalAlign
|
|
17860
18005
|
},
|
|
17861
|
-
|
|
17862
|
-
|
|
18006
|
+
columns: ({ props: props5, deps }) => !deps.isUndefined(props5.columns) && {
|
|
18007
|
+
columns: props5.columns
|
|
17863
18008
|
},
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
columns: props2.columns
|
|
18009
|
+
columnRule: ({ props: props5, deps }) => !deps.isUndefined(props5.columnRule) && {
|
|
18010
|
+
columnRule: props5.columnRule
|
|
17867
18011
|
},
|
|
17868
|
-
|
|
17869
|
-
|
|
18012
|
+
columnWidth: ({ props: props5, deps }) => !deps.isUndefined(props5.columnWidth) && {
|
|
18013
|
+
columnWidth: props5.columnWidth
|
|
17870
18014
|
},
|
|
17871
|
-
|
|
17872
|
-
|
|
18015
|
+
columnSpan: ({ props: props5, deps }) => !deps.isUndefined(props5.columnSpan) && {
|
|
18016
|
+
columnSpan: props5.columnSpan
|
|
17873
18017
|
},
|
|
17874
|
-
|
|
17875
|
-
|
|
18018
|
+
columnFill: ({ props: props5, deps }) => !deps.isUndefined(props5.columnFill) && {
|
|
18019
|
+
columnFill: props5.columnFill
|
|
17876
18020
|
},
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
},
|
|
17880
|
-
columnCount: ({ props: props2, deps }) => !deps.isUndefined(props2.columnCount) && {
|
|
17881
|
-
columnCount: props2.columnCount
|
|
18021
|
+
columnCount: ({ props: props5, deps }) => !deps.isUndefined(props5.columnCount) && {
|
|
18022
|
+
columnCount: props5.columnCount
|
|
17882
18023
|
}
|
|
17883
18024
|
}
|
|
17884
18025
|
};
|
|
@@ -17899,20 +18040,8 @@ var Ol = {
|
|
|
17899
18040
|
childExtend: { extend: "Li" }
|
|
17900
18041
|
};
|
|
17901
18042
|
var Gutter = {
|
|
17902
|
-
deps: { getSpacingByKey: import_scratch3.getSpacingByKey },
|
|
17903
18043
|
props: {
|
|
17904
18044
|
size: "C1"
|
|
17905
|
-
},
|
|
17906
|
-
class: {
|
|
17907
|
-
size: ({ props: props2, deps }) => {
|
|
17908
|
-
if (!deps.isString(props2.size))
|
|
17909
|
-
return;
|
|
17910
|
-
const [height, width] = props2.size.split(" ");
|
|
17911
|
-
return {
|
|
17912
|
-
...deps.getSpacingByKey("height", height),
|
|
17913
|
-
...deps.getSpacingByKey("width", width || height)
|
|
17914
|
-
};
|
|
17915
|
-
}
|
|
17916
18045
|
}
|
|
17917
18046
|
};
|
|
17918
18047
|
|
|
@@ -17922,7 +18051,7 @@ var Direction = {
|
|
|
17922
18051
|
direction: "ltr"
|
|
17923
18052
|
},
|
|
17924
18053
|
class: {
|
|
17925
|
-
direction: ({ props:
|
|
18054
|
+
direction: ({ props: props5 }) => ({ direction: props5.direction })
|
|
17926
18055
|
}
|
|
17927
18056
|
};
|
|
17928
18057
|
|
|
@@ -17933,8 +18062,8 @@ var Flex = {
|
|
|
17933
18062
|
display: "flex"
|
|
17934
18063
|
},
|
|
17935
18064
|
class: {
|
|
17936
|
-
flow: ({ props:
|
|
17937
|
-
const { flow, reverse } =
|
|
18065
|
+
flow: ({ props: props5 }) => {
|
|
18066
|
+
const { flow, reverse } = props5;
|
|
17938
18067
|
if (!(0, import_utils4.isString)(flow))
|
|
17939
18068
|
return;
|
|
17940
18069
|
let [direction, wrap] = (flow || "row").split(" ");
|
|
@@ -17946,11 +18075,11 @@ var Flex = {
|
|
|
17946
18075
|
flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
|
|
17947
18076
|
};
|
|
17948
18077
|
},
|
|
17949
|
-
wrap: ({ props:
|
|
17950
|
-
align: ({ props:
|
|
17951
|
-
if (!(0, import_utils4.isString)(
|
|
18078
|
+
wrap: ({ props: props5 }) => props5.wrap && { flexWrap: props5.wrap },
|
|
18079
|
+
align: ({ props: props5 }) => {
|
|
18080
|
+
if (!(0, import_utils4.isString)(props5.align))
|
|
17952
18081
|
return;
|
|
17953
|
-
const [alignItems, justifyContent] =
|
|
18082
|
+
const [alignItems, justifyContent] = props5.align.split(" ");
|
|
17954
18083
|
return { alignItems, justifyContent };
|
|
17955
18084
|
}
|
|
17956
18085
|
}
|
|
@@ -17962,20 +18091,20 @@ var Grid = {
|
|
|
17962
18091
|
deps: { getSpacingBasedOnRatio: import_scratch4.getSpacingBasedOnRatio },
|
|
17963
18092
|
props: { display: "grid" },
|
|
17964
18093
|
class: {
|
|
17965
|
-
area: ({ props:
|
|
17966
|
-
template: ({ props:
|
|
17967
|
-
templateAreas: ({ props:
|
|
17968
|
-
column: ({ props:
|
|
17969
|
-
columns: ({ props:
|
|
17970
|
-
templateColumns: ({ props:
|
|
17971
|
-
autoColumns: ({ props:
|
|
17972
|
-
columnStart: ({ props:
|
|
17973
|
-
row: ({ props:
|
|
17974
|
-
rows: ({ props:
|
|
17975
|
-
templateRows: ({ props:
|
|
17976
|
-
autoRows: ({ props:
|
|
17977
|
-
rowStart: ({ props:
|
|
17978
|
-
autoFlow: ({ props:
|
|
18094
|
+
area: ({ props: props5 }) => props5.area ? { gridArea: props5.area } : null,
|
|
18095
|
+
template: ({ props: props5 }) => props5.template ? { gridTemplate: props5.template } : null,
|
|
18096
|
+
templateAreas: ({ props: props5 }) => props5.templateAreas ? { gridTemplateAreas: props5.templateAreas } : null,
|
|
18097
|
+
column: ({ props: props5 }) => props5.column ? { gridColumn: props5.column } : null,
|
|
18098
|
+
columns: ({ props: props5 }) => props5.columns ? { gridTemplateColumns: props5.columns } : null,
|
|
18099
|
+
templateColumns: ({ props: props5 }) => props5.templateColumns ? { gridTemplateColumns: props5.templateColumns } : null,
|
|
18100
|
+
autoColumns: ({ props: props5 }) => props5.autoColumns ? { gridAutoColumns: props5.autoColumns } : null,
|
|
18101
|
+
columnStart: ({ props: props5 }) => props5.columnStart ? { gridColumnStart: props5.columnStart } : null,
|
|
18102
|
+
row: ({ props: props5 }) => props5.row ? { gridRow: props5.row } : null,
|
|
18103
|
+
rows: ({ props: props5 }) => props5.rows ? { gridTemplateRows: props5.rows } : null,
|
|
18104
|
+
templateRows: ({ props: props5 }) => props5.templateRows ? { gridTemplateRows: props5.templateRows } : null,
|
|
18105
|
+
autoRows: ({ props: props5 }) => props5.autoRows ? { gridAutoRows: props5.autoRows } : null,
|
|
18106
|
+
rowStart: ({ props: props5 }) => props5.rowStart ? { gridRowStart: props5.rowStart } : null,
|
|
18107
|
+
autoFlow: ({ props: props5 }) => props5.autoFlow ? { gridAutoFlow: props5.autoFlow } : null
|
|
17979
18108
|
}
|
|
17980
18109
|
};
|
|
17981
18110
|
|
|
@@ -17984,9 +18113,9 @@ var Img = {
|
|
|
17984
18113
|
tag: "img",
|
|
17985
18114
|
attr: {
|
|
17986
18115
|
src: (el) => {
|
|
17987
|
-
const { props:
|
|
18116
|
+
const { props: props5, context } = el;
|
|
17988
18117
|
const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
|
|
17989
|
-
let src = (
|
|
18118
|
+
let src = (props5.preSrc || "") + exec7(props5.src, el);
|
|
17990
18119
|
if (isString13(src) && src.includes("{{")) {
|
|
17991
18120
|
src = replaceLiteralsWithObjectFields3(src, el.state);
|
|
17992
18121
|
}
|
|
@@ -18001,8 +18130,8 @@ var Img = {
|
|
|
18001
18130
|
if (file)
|
|
18002
18131
|
return file.content && file.content.src;
|
|
18003
18132
|
},
|
|
18004
|
-
alt: ({ props:
|
|
18005
|
-
title: ({ props:
|
|
18133
|
+
alt: ({ props: props5 }) => props5.alt,
|
|
18134
|
+
title: ({ props: props5 }) => props5.title || props5.alt
|
|
18006
18135
|
}
|
|
18007
18136
|
};
|
|
18008
18137
|
|
|
@@ -18010,9 +18139,9 @@ var Img = {
|
|
|
18010
18139
|
var Form = {
|
|
18011
18140
|
tag: "form",
|
|
18012
18141
|
attr: {
|
|
18013
|
-
action: ({ props:
|
|
18014
|
-
method: ({ props:
|
|
18015
|
-
enctype: ({ props:
|
|
18142
|
+
action: ({ props: props5 }) => props5.action,
|
|
18143
|
+
method: ({ props: props5 }) => props5.method,
|
|
18144
|
+
enctype: ({ props: props5 }) => props5.enctype
|
|
18016
18145
|
}
|
|
18017
18146
|
};
|
|
18018
18147
|
|
|
@@ -18035,24 +18164,24 @@ var Timing = {
|
|
|
18035
18164
|
transformDuration: import_scratch5.transformDuration
|
|
18036
18165
|
},
|
|
18037
18166
|
class: {
|
|
18038
|
-
transition: ({ props:
|
|
18039
|
-
transition: deps.splitTransition(
|
|
18167
|
+
transition: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transition) && {
|
|
18168
|
+
transition: deps.splitTransition(props5.transition)
|
|
18040
18169
|
},
|
|
18041
|
-
willChange: ({ props:
|
|
18042
|
-
willChange:
|
|
18170
|
+
willChange: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.willChange) && {
|
|
18171
|
+
willChange: props5.willChange
|
|
18043
18172
|
},
|
|
18044
|
-
transitionDuration: ({ props:
|
|
18045
|
-
transitionDuration: deps.transformDuration(
|
|
18173
|
+
transitionDuration: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDuration) && {
|
|
18174
|
+
transitionDuration: deps.transformDuration(props5.transitionDuration)
|
|
18046
18175
|
},
|
|
18047
|
-
transitionDelay: ({ props:
|
|
18048
|
-
transitionDelay: deps.transformDuration(
|
|
18176
|
+
transitionDelay: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDelay) && {
|
|
18177
|
+
transitionDelay: deps.transformDuration(props5.transitionDelay)
|
|
18049
18178
|
},
|
|
18050
|
-
transitionTimingFunction: ({ props:
|
|
18051
|
-
transitionTimingFunction: deps.getTimingFunction(
|
|
18179
|
+
transitionTimingFunction: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionTimingFunction) && {
|
|
18180
|
+
transitionTimingFunction: deps.getTimingFunction(props5.transitionTimingFunction)
|
|
18052
18181
|
},
|
|
18053
|
-
transitionProperty: ({ props:
|
|
18054
|
-
transitionProperty:
|
|
18055
|
-
willChange:
|
|
18182
|
+
transitionProperty: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.transitionProperty) && {
|
|
18183
|
+
transitionProperty: props5.transitionProperty,
|
|
18184
|
+
willChange: props5.transitionProperty
|
|
18056
18185
|
}
|
|
18057
18186
|
}
|
|
18058
18187
|
};
|
|
@@ -18067,11 +18196,11 @@ var depth = {
|
|
|
18067
18196
|
26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG2.UNIT.default} 26${CONFIG2.UNIT.default}` },
|
|
18068
18197
|
42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG2.UNIT.default} 42${CONFIG2.UNIT.default}` }
|
|
18069
18198
|
};
|
|
18070
|
-
var getComputedBackgroundColor = ({ props:
|
|
18071
|
-
return (0, import_scratch6.getColor)(
|
|
18199
|
+
var getComputedBackgroundColor = ({ props: props5 }) => {
|
|
18200
|
+
return (0, import_scratch6.getColor)(props5.shapeDirectionColor) || (0, import_scratch6.getColor)(props5.borderColor) || (0, import_scratch6.getColor)(props5.backgroundColor) || (0, import_scratch6.getColor)(props5.background);
|
|
18072
18201
|
};
|
|
18073
|
-
var inheritTransition = ({ props:
|
|
18074
|
-
const exec7 = Timing.class.transition({ props:
|
|
18202
|
+
var inheritTransition = ({ props: props5, deps }) => {
|
|
18203
|
+
const exec7 = Timing.class.transition({ props: props5, deps });
|
|
18075
18204
|
return exec7 && exec7.transition;
|
|
18076
18205
|
};
|
|
18077
18206
|
var SHAPES = {
|
|
@@ -18081,16 +18210,16 @@ var SHAPES = {
|
|
|
18081
18210
|
tv: {
|
|
18082
18211
|
borderRadius: "1.15em/2.5em"
|
|
18083
18212
|
},
|
|
18084
|
-
tooltip: ({ props:
|
|
18085
|
-
position:
|
|
18213
|
+
tooltip: ({ props: props5, deps }) => ({
|
|
18214
|
+
position: props5.position || "relative",
|
|
18086
18215
|
"&:before": {
|
|
18087
18216
|
content: '""',
|
|
18088
18217
|
display: "block",
|
|
18089
18218
|
width: "0px",
|
|
18090
18219
|
height: "0px",
|
|
18091
18220
|
border: ".35em solid",
|
|
18092
|
-
borderColor: getComputedBackgroundColor({ props:
|
|
18093
|
-
transition: inheritTransition({ props:
|
|
18221
|
+
borderColor: getComputedBackgroundColor({ props: props5, deps }),
|
|
18222
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18094
18223
|
transitionProperty: "border-color",
|
|
18095
18224
|
position: "absolute",
|
|
18096
18225
|
borderRadius: ".15em"
|
|
@@ -18126,13 +18255,13 @@ var SHAPES = {
|
|
|
18126
18255
|
}
|
|
18127
18256
|
}
|
|
18128
18257
|
},
|
|
18129
|
-
tag: ({ props:
|
|
18258
|
+
tag: ({ props: props5, deps }) => ({
|
|
18130
18259
|
position: "relative",
|
|
18131
18260
|
"&:before": {
|
|
18132
18261
|
content: '""',
|
|
18133
18262
|
display: "block",
|
|
18134
|
-
background: getComputedBackgroundColor({ props:
|
|
18135
|
-
transition: inheritTransition({ props:
|
|
18263
|
+
background: getComputedBackgroundColor({ props: props5, deps }),
|
|
18264
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18136
18265
|
transitionProperty: "background",
|
|
18137
18266
|
borderRadius: ".25em",
|
|
18138
18267
|
position: "absolute",
|
|
@@ -18173,7 +18302,7 @@ var SHAPES = {
|
|
|
18173
18302
|
}
|
|
18174
18303
|
}
|
|
18175
18304
|
},
|
|
18176
|
-
hexagon: ({ props:
|
|
18305
|
+
hexagon: ({ props: props5, deps }) => ({
|
|
18177
18306
|
position: "relative",
|
|
18178
18307
|
"&:before, &:after": {
|
|
18179
18308
|
content: '""',
|
|
@@ -18185,8 +18314,8 @@ var SHAPES = {
|
|
|
18185
18314
|
top: "50%",
|
|
18186
18315
|
transformOrigin: "50% 50%",
|
|
18187
18316
|
height: "73%",
|
|
18188
|
-
background: getComputedBackgroundColor({ props:
|
|
18189
|
-
transition: inheritTransition({ props:
|
|
18317
|
+
background: getComputedBackgroundColor({ props: props5, deps }),
|
|
18318
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18190
18319
|
transitionProperty: "background"
|
|
18191
18320
|
},
|
|
18192
18321
|
"&:before": {
|
|
@@ -18198,7 +18327,7 @@ var SHAPES = {
|
|
|
18198
18327
|
transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
|
|
18199
18328
|
}
|
|
18200
18329
|
}),
|
|
18201
|
-
chevron: ({ props:
|
|
18330
|
+
chevron: ({ props: props5, deps }) => ({
|
|
18202
18331
|
position: "relative",
|
|
18203
18332
|
"&:before, &:after": {
|
|
18204
18333
|
content: '""',
|
|
@@ -18208,14 +18337,14 @@ var SHAPES = {
|
|
|
18208
18337
|
aspectRatio: "1/1",
|
|
18209
18338
|
top: "50%",
|
|
18210
18339
|
transformOrigin: "50% 50%",
|
|
18211
|
-
transition: inheritTransition({ props:
|
|
18340
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18212
18341
|
transitionProperty: "background"
|
|
18213
18342
|
},
|
|
18214
18343
|
"&:before": {
|
|
18215
|
-
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props:
|
|
18344
|
+
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props5, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props5, deps })} 25%, transparent 25%)`
|
|
18216
18345
|
},
|
|
18217
18346
|
"&:after": {
|
|
18218
|
-
background: getComputedBackgroundColor({ props:
|
|
18347
|
+
background: getComputedBackgroundColor({ props: props5, deps }),
|
|
18219
18348
|
borderRadius: ".25em"
|
|
18220
18349
|
}
|
|
18221
18350
|
}),
|
|
@@ -18266,53 +18395,53 @@ var Theme = {
|
|
|
18266
18395
|
transformBackgroundImage: import_scratch7.transformBackgroundImage
|
|
18267
18396
|
},
|
|
18268
18397
|
class: {
|
|
18269
|
-
depth: ({ props:
|
|
18398
|
+
depth: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.depth) && deps.depth[props5.depth],
|
|
18270
18399
|
theme: (element) => {
|
|
18271
|
-
const { props:
|
|
18400
|
+
const { props: props5, deps } = element;
|
|
18272
18401
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18273
|
-
if (!
|
|
18402
|
+
if (!props5.theme)
|
|
18274
18403
|
return;
|
|
18275
|
-
const hasSubtheme =
|
|
18276
|
-
const globalThemeForced = `@${
|
|
18404
|
+
const hasSubtheme = props5.theme.includes(" ") && !props5.theme.includes("@");
|
|
18405
|
+
const globalThemeForced = `@${props5.themeModifier || globalTheme}`;
|
|
18277
18406
|
if (hasSubtheme) {
|
|
18278
|
-
const themeAppliedInVal =
|
|
18407
|
+
const themeAppliedInVal = props5.theme.split(" ");
|
|
18279
18408
|
themeAppliedInVal.splice(1, 0, globalThemeForced);
|
|
18280
18409
|
return deps.getMediaTheme(themeAppliedInVal);
|
|
18281
|
-
} else if (
|
|
18282
|
-
|
|
18283
|
-
return deps.getMediaTheme(
|
|
18410
|
+
} else if (props5.theme.includes("@{globalTheme}"))
|
|
18411
|
+
props5.theme.replace("@{globalTheme}", globalThemeForced);
|
|
18412
|
+
return deps.getMediaTheme(props5.theme, `@${props5.themeModifier || globalTheme}`);
|
|
18284
18413
|
},
|
|
18285
18414
|
color: (element) => {
|
|
18286
|
-
const { props:
|
|
18415
|
+
const { props: props5, deps } = element;
|
|
18287
18416
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18288
|
-
if (!
|
|
18417
|
+
if (!props5.color)
|
|
18289
18418
|
return;
|
|
18290
18419
|
return {
|
|
18291
|
-
color: deps.getMediaColor(
|
|
18420
|
+
color: deps.getMediaColor(props5.color, globalTheme)
|
|
18292
18421
|
};
|
|
18293
18422
|
},
|
|
18294
18423
|
background: (element) => {
|
|
18295
|
-
const { props:
|
|
18424
|
+
const { props: props5, deps } = element;
|
|
18296
18425
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18297
|
-
if (!
|
|
18426
|
+
if (!props5.background)
|
|
18298
18427
|
return;
|
|
18299
18428
|
return {
|
|
18300
|
-
background: deps.getMediaColor(
|
|
18429
|
+
background: deps.getMediaColor(props5.background, globalTheme)
|
|
18301
18430
|
};
|
|
18302
18431
|
},
|
|
18303
18432
|
backgroundColor: (element) => {
|
|
18304
|
-
const { props:
|
|
18433
|
+
const { props: props5, deps } = element;
|
|
18305
18434
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18306
|
-
if (!
|
|
18435
|
+
if (!props5.backgroundColor)
|
|
18307
18436
|
return;
|
|
18308
18437
|
return {
|
|
18309
|
-
backgroundColor: deps.getMediaColor(
|
|
18438
|
+
backgroundColor: deps.getMediaColor(props5.backgroundColor, globalTheme)
|
|
18310
18439
|
};
|
|
18311
18440
|
},
|
|
18312
18441
|
backgroundImage: (element, s, context) => {
|
|
18313
|
-
const { props:
|
|
18442
|
+
const { props: props5, deps } = element;
|
|
18314
18443
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18315
|
-
let val =
|
|
18444
|
+
let val = props5.backgroundImage;
|
|
18316
18445
|
if (!val)
|
|
18317
18446
|
return;
|
|
18318
18447
|
const file = context.files && context.files[val];
|
|
@@ -18322,184 +18451,184 @@ var Theme = {
|
|
|
18322
18451
|
backgroundImage: deps.transformBackgroundImage(val, globalTheme)
|
|
18323
18452
|
};
|
|
18324
18453
|
},
|
|
18325
|
-
backgroundSize: ({ props:
|
|
18326
|
-
backgroundSize:
|
|
18454
|
+
backgroundSize: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundSize) ? {
|
|
18455
|
+
backgroundSize: props5.backgroundSize
|
|
18327
18456
|
} : null,
|
|
18328
|
-
backgroundPosition: ({ props:
|
|
18329
|
-
backgroundPosition:
|
|
18457
|
+
backgroundPosition: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundPosition) ? {
|
|
18458
|
+
backgroundPosition: props5.backgroundPosition
|
|
18330
18459
|
} : null,
|
|
18331
|
-
backgroundRepeat: ({ props:
|
|
18332
|
-
backgroundRepeat:
|
|
18460
|
+
backgroundRepeat: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundRepeat) ? {
|
|
18461
|
+
backgroundRepeat: props5.backgroundRepeat
|
|
18333
18462
|
} : null,
|
|
18334
|
-
textStroke: ({ props:
|
|
18335
|
-
WebkitTextStroke: deps.transformTextStroke(
|
|
18463
|
+
textStroke: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.textStroke) ? {
|
|
18464
|
+
WebkitTextStroke: deps.transformTextStroke(props5.textStroke)
|
|
18336
18465
|
} : null,
|
|
18337
|
-
outline: ({ props:
|
|
18338
|
-
outline: deps.transformBorder(
|
|
18466
|
+
outline: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.outline) && {
|
|
18467
|
+
outline: deps.transformBorder(props5.outline)
|
|
18339
18468
|
},
|
|
18340
|
-
outlineOffset: ({ props:
|
|
18341
|
-
border: ({ props:
|
|
18342
|
-
border: deps.transformBorder(
|
|
18469
|
+
outlineOffset: ({ props: props5, deps }) => deps.transformSizeRatio("outlineOffset", props5),
|
|
18470
|
+
border: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.border) && {
|
|
18471
|
+
border: deps.transformBorder(props5.border)
|
|
18343
18472
|
},
|
|
18344
18473
|
borderColor: (element) => {
|
|
18345
|
-
const { props:
|
|
18474
|
+
const { props: props5, deps } = element;
|
|
18346
18475
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18347
|
-
if (!
|
|
18476
|
+
if (!props5.borderColor)
|
|
18348
18477
|
return;
|
|
18349
18478
|
return {
|
|
18350
|
-
borderColor: deps.getMediaColor(
|
|
18479
|
+
borderColor: deps.getMediaColor(props5.borderColor, globalTheme)
|
|
18351
18480
|
};
|
|
18352
18481
|
},
|
|
18353
|
-
borderStyle: ({ props:
|
|
18354
|
-
borderStyle:
|
|
18482
|
+
borderStyle: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.borderStyle) && {
|
|
18483
|
+
borderStyle: props5.borderStyle
|
|
18355
18484
|
},
|
|
18356
|
-
borderLeft: ({ props:
|
|
18357
|
-
borderLeft: deps.transformBorder(
|
|
18485
|
+
borderLeft: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderLeft) && {
|
|
18486
|
+
borderLeft: deps.transformBorder(props5.borderLeft)
|
|
18358
18487
|
},
|
|
18359
|
-
borderTop: ({ props:
|
|
18360
|
-
borderTop: deps.transformBorder(
|
|
18488
|
+
borderTop: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderTop) && {
|
|
18489
|
+
borderTop: deps.transformBorder(props5.borderTop)
|
|
18361
18490
|
},
|
|
18362
|
-
borderRight: ({ props:
|
|
18363
|
-
borderRight: deps.transformBorder(
|
|
18491
|
+
borderRight: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderRight) && {
|
|
18492
|
+
borderRight: deps.transformBorder(props5.borderRight)
|
|
18364
18493
|
},
|
|
18365
|
-
borderBottom: ({ props:
|
|
18366
|
-
borderBottom: deps.transformBorder(
|
|
18494
|
+
borderBottom: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderBottom) && {
|
|
18495
|
+
borderBottom: deps.transformBorder(props5.borderBottom)
|
|
18367
18496
|
},
|
|
18368
18497
|
shadow: (element) => {
|
|
18369
|
-
const { props:
|
|
18498
|
+
const { props: props5, deps } = element;
|
|
18370
18499
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18371
|
-
if (!
|
|
18500
|
+
if (!props5.backgroundImage)
|
|
18372
18501
|
return;
|
|
18373
18502
|
return {
|
|
18374
|
-
boxShadow: deps.transformShadow(
|
|
18503
|
+
boxShadow: deps.transformShadow(props5.shadow, globalTheme)
|
|
18375
18504
|
};
|
|
18376
18505
|
},
|
|
18377
18506
|
// boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
|
|
18378
18507
|
// boxShadow: deps.transformBoxShadow(props.boxShadow)
|
|
18379
18508
|
// }),
|
|
18380
18509
|
boxShadow: (element, state, context) => {
|
|
18381
|
-
const { props:
|
|
18382
|
-
if (!(0, import_utils6.isString)(
|
|
18510
|
+
const { props: props5, deps } = element;
|
|
18511
|
+
if (!(0, import_utils6.isString)(props5.boxShadow))
|
|
18383
18512
|
return;
|
|
18384
|
-
const [val, hasImportant] =
|
|
18513
|
+
const [val, hasImportant] = props5.boxShadow.split("!importan");
|
|
18385
18514
|
const globalTheme = getSystemGlobalTheme(element);
|
|
18386
18515
|
const important = hasImportant ? " !important" : "";
|
|
18387
18516
|
return {
|
|
18388
18517
|
boxShadow: deps.transformBoxShadow(val.trim(), globalTheme) + important
|
|
18389
18518
|
};
|
|
18390
18519
|
},
|
|
18391
|
-
textShadow: ({ props:
|
|
18392
|
-
textShadow: deps.transformBoxShadow(
|
|
18520
|
+
textShadow: ({ props: props5, deps, context }) => !(0, import_utils6.isUndefined)(props5.textShadow) && {
|
|
18521
|
+
textShadow: deps.transformBoxShadow(props5.textShadow, context.designSystem.globalTheme)
|
|
18393
18522
|
},
|
|
18394
|
-
backdropFilter: ({ props:
|
|
18395
|
-
backdropFilter:
|
|
18523
|
+
backdropFilter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.backdropFilter) && {
|
|
18524
|
+
backdropFilter: props5.backdropFilter
|
|
18396
18525
|
},
|
|
18397
|
-
caretColor: ({ props:
|
|
18398
|
-
caretColor:
|
|
18526
|
+
caretColor: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.caretColor) && {
|
|
18527
|
+
caretColor: props5.caretColor
|
|
18399
18528
|
},
|
|
18400
|
-
opacity: ({ props:
|
|
18401
|
-
opacity:
|
|
18529
|
+
opacity: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.opacity) && {
|
|
18530
|
+
opacity: props5.opacity
|
|
18402
18531
|
},
|
|
18403
|
-
visibility: ({ props:
|
|
18404
|
-
visibility:
|
|
18532
|
+
visibility: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.visibility) && {
|
|
18533
|
+
visibility: props5.visibility
|
|
18405
18534
|
},
|
|
18406
|
-
columnRule: ({ props:
|
|
18407
|
-
columnRule: deps.transformBorder(
|
|
18535
|
+
columnRule: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.columnRule) && {
|
|
18536
|
+
columnRule: deps.transformBorder(props5.columnRule)
|
|
18408
18537
|
},
|
|
18409
|
-
filter: ({ props:
|
|
18410
|
-
filter:
|
|
18538
|
+
filter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.filter) && {
|
|
18539
|
+
filter: props5.filter
|
|
18411
18540
|
},
|
|
18412
|
-
mixBlendMode: ({ props:
|
|
18413
|
-
mixBlendMode:
|
|
18541
|
+
mixBlendMode: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.mixBlendMode) && {
|
|
18542
|
+
mixBlendMode: props5.mixBlendMode
|
|
18414
18543
|
},
|
|
18415
|
-
appearance: ({ props:
|
|
18416
|
-
appearance:
|
|
18544
|
+
appearance: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.appearance) && {
|
|
18545
|
+
appearance: props5.appearance
|
|
18417
18546
|
}
|
|
18418
18547
|
}
|
|
18419
18548
|
};
|
|
18420
18549
|
|
|
18421
18550
|
// ../uikit/Atoms/Media.js
|
|
18422
18551
|
var keySetters = {
|
|
18423
|
-
"@": (key,
|
|
18552
|
+
"@": (key, props5, result, element, isSubtree) => applyMediaProps(
|
|
18424
18553
|
key,
|
|
18425
|
-
|
|
18554
|
+
props5,
|
|
18426
18555
|
isSubtree ? result : result && result.media,
|
|
18427
18556
|
element
|
|
18428
18557
|
),
|
|
18429
|
-
":": (key,
|
|
18558
|
+
":": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18430
18559
|
key,
|
|
18431
|
-
|
|
18560
|
+
props5,
|
|
18432
18561
|
isSubtree ? result : result && result.selector,
|
|
18433
18562
|
element
|
|
18434
18563
|
),
|
|
18435
|
-
"[": (key,
|
|
18564
|
+
"[": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18436
18565
|
key,
|
|
18437
|
-
|
|
18566
|
+
props5,
|
|
18438
18567
|
isSubtree ? result : result && result.selector,
|
|
18439
18568
|
element
|
|
18440
18569
|
),
|
|
18441
|
-
"*": (key,
|
|
18570
|
+
"*": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18442
18571
|
key,
|
|
18443
|
-
|
|
18572
|
+
props5,
|
|
18444
18573
|
isSubtree ? result : result && result.selector,
|
|
18445
18574
|
element
|
|
18446
18575
|
),
|
|
18447
|
-
"+": (key,
|
|
18576
|
+
"+": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18448
18577
|
key,
|
|
18449
|
-
|
|
18578
|
+
props5,
|
|
18450
18579
|
isSubtree ? result : result && result.selector,
|
|
18451
18580
|
element
|
|
18452
18581
|
),
|
|
18453
|
-
"~": (key,
|
|
18582
|
+
"~": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18454
18583
|
key,
|
|
18455
|
-
|
|
18584
|
+
props5,
|
|
18456
18585
|
isSubtree ? result : result && result.selector,
|
|
18457
18586
|
element
|
|
18458
18587
|
),
|
|
18459
|
-
"&": (key,
|
|
18588
|
+
"&": (key, props5, result, element, isSubtree) => applyAndProps(
|
|
18460
18589
|
key,
|
|
18461
|
-
|
|
18590
|
+
props5,
|
|
18462
18591
|
isSubtree ? result : result && result.selector,
|
|
18463
18592
|
element
|
|
18464
18593
|
),
|
|
18465
|
-
">": (key,
|
|
18594
|
+
">": (key, props5, result, element, isSubtree) => applyAndProps(
|
|
18466
18595
|
key,
|
|
18467
|
-
|
|
18596
|
+
props5,
|
|
18468
18597
|
isSubtree ? result : result && result.selector,
|
|
18469
18598
|
element
|
|
18470
18599
|
),
|
|
18471
|
-
$: (key,
|
|
18600
|
+
$: (key, props5, result, element, isSubtree) => applyCaseProps(
|
|
18472
18601
|
key,
|
|
18473
|
-
|
|
18602
|
+
props5,
|
|
18474
18603
|
isSubtree ? result : result && result.case,
|
|
18475
18604
|
element
|
|
18476
18605
|
),
|
|
18477
|
-
"-": (key,
|
|
18606
|
+
"-": (key, props5, result, element, isSubtree) => applyVariableProps(
|
|
18478
18607
|
key,
|
|
18479
|
-
|
|
18608
|
+
props5,
|
|
18480
18609
|
isSubtree ? result : result && result.variable,
|
|
18481
18610
|
element
|
|
18482
18611
|
),
|
|
18483
|
-
".": (key,
|
|
18612
|
+
".": (key, props5, result, element, isSubtree) => applyConditionalCaseProps(
|
|
18484
18613
|
key,
|
|
18485
|
-
|
|
18614
|
+
props5,
|
|
18486
18615
|
isSubtree ? result : result && result.case,
|
|
18487
18616
|
element
|
|
18488
18617
|
),
|
|
18489
|
-
"!": (key,
|
|
18618
|
+
"!": (key, props5, result, element, isSubtree) => applyConditionalFalsyProps(
|
|
18490
18619
|
key,
|
|
18491
|
-
|
|
18620
|
+
props5,
|
|
18492
18621
|
isSubtree ? result : result && result.case,
|
|
18493
18622
|
element
|
|
18494
18623
|
)
|
|
18495
18624
|
};
|
|
18496
|
-
var execClass = (key,
|
|
18625
|
+
var execClass = (key, props5, result, element) => {
|
|
18497
18626
|
const { class: className } = element;
|
|
18498
18627
|
const classnameExec = className[key];
|
|
18499
18628
|
if (typeof classnameExec !== "function")
|
|
18500
18629
|
return;
|
|
18501
18630
|
let classExec = classnameExec({
|
|
18502
|
-
props:
|
|
18631
|
+
props: props5,
|
|
18503
18632
|
context: element.context,
|
|
18504
18633
|
state: element.state,
|
|
18505
18634
|
deps: element.deps
|
|
@@ -18511,27 +18640,27 @@ var execClass = (key, props2, result, element) => {
|
|
|
18511
18640
|
}
|
|
18512
18641
|
return classExec;
|
|
18513
18642
|
};
|
|
18514
|
-
var convertPropsToClass = (
|
|
18643
|
+
var convertPropsToClass = (props5, result, element) => {
|
|
18515
18644
|
const propsClassObj = {};
|
|
18516
|
-
for (const key in
|
|
18645
|
+
for (const key in props5) {
|
|
18517
18646
|
const setter = keySetters[key.slice(0, 1)];
|
|
18518
18647
|
if (setter) {
|
|
18519
|
-
setter(key,
|
|
18648
|
+
setter(key, props5[key], propsClassObj, element, true);
|
|
18520
18649
|
continue;
|
|
18521
18650
|
} else {
|
|
18522
|
-
execClass(key,
|
|
18651
|
+
execClass(key, props5, propsClassObj, element);
|
|
18523
18652
|
}
|
|
18524
18653
|
}
|
|
18525
18654
|
return propsClassObj;
|
|
18526
18655
|
};
|
|
18527
|
-
var applyMediaProps = (key,
|
|
18656
|
+
var applyMediaProps = (key, props5, result, element) => {
|
|
18528
18657
|
const { context } = element;
|
|
18529
18658
|
if (!context.designSystem || !context.designSystem.MEDIA)
|
|
18530
18659
|
return;
|
|
18531
18660
|
const globalTheme = getSystemGlobalTheme(element);
|
|
18532
18661
|
const { MEDIA: MEDIA2 } = context.designSystem;
|
|
18533
18662
|
const mediaValue = MEDIA2[key.slice(1)];
|
|
18534
|
-
const generatedClass = convertPropsToClass(
|
|
18663
|
+
const generatedClass = convertPropsToClass(props5, result, element);
|
|
18535
18664
|
const name = key.slice(1);
|
|
18536
18665
|
const isTheme = ["dark", "light"].includes(name);
|
|
18537
18666
|
const matchesGlobal = name === globalTheme;
|
|
@@ -18545,43 +18674,43 @@ var applyMediaProps = (key, props2, result, element) => {
|
|
|
18545
18674
|
result[mediaKey] = generatedClass;
|
|
18546
18675
|
return result[mediaKey];
|
|
18547
18676
|
};
|
|
18548
|
-
var applyAndProps = (key,
|
|
18549
|
-
result[key] = convertPropsToClass(
|
|
18677
|
+
var applyAndProps = (key, props5, result, element) => {
|
|
18678
|
+
result[key] = convertPropsToClass(props5, result, element);
|
|
18550
18679
|
return result[key];
|
|
18551
18680
|
};
|
|
18552
|
-
var applySelectorProps = (key,
|
|
18681
|
+
var applySelectorProps = (key, props5, result, element) => {
|
|
18553
18682
|
const selectorKey = `&${key}`;
|
|
18554
|
-
result[selectorKey] = convertPropsToClass(
|
|
18683
|
+
result[selectorKey] = convertPropsToClass(props5, result, element);
|
|
18555
18684
|
return result[selectorKey];
|
|
18556
18685
|
};
|
|
18557
|
-
var applyCaseProps = (key,
|
|
18686
|
+
var applyCaseProps = (key, props5, result, element) => {
|
|
18558
18687
|
const { CASES } = element.context && element.context.designSystem;
|
|
18559
18688
|
const caseKey = key.slice(1);
|
|
18560
18689
|
const isPropTrue = element.props[caseKey];
|
|
18561
18690
|
if (!CASES[caseKey] && !isPropTrue)
|
|
18562
18691
|
return;
|
|
18563
|
-
return (0, import_utils7.merge)(result, convertPropsToClass(
|
|
18692
|
+
return (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
|
|
18564
18693
|
};
|
|
18565
|
-
var applyVariableProps = (key,
|
|
18566
|
-
result[key] =
|
|
18694
|
+
var applyVariableProps = (key, props5, result, element) => {
|
|
18695
|
+
result[key] = props5;
|
|
18567
18696
|
return result;
|
|
18568
18697
|
};
|
|
18569
|
-
var applyConditionalCaseProps = (key,
|
|
18698
|
+
var applyConditionalCaseProps = (key, props5, result, element) => {
|
|
18570
18699
|
const caseKey = key.slice(1);
|
|
18571
18700
|
const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
|
|
18572
18701
|
if (!isPropTrue)
|
|
18573
18702
|
return;
|
|
18574
|
-
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(
|
|
18703
|
+
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
|
|
18575
18704
|
};
|
|
18576
|
-
var applyConditionalFalsyProps = (key,
|
|
18705
|
+
var applyConditionalFalsyProps = (key, props5, result, element) => {
|
|
18577
18706
|
const caseKey = key.slice(1);
|
|
18578
18707
|
const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
|
|
18579
18708
|
if (!isPropTrue)
|
|
18580
|
-
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(
|
|
18709
|
+
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
|
|
18581
18710
|
};
|
|
18582
|
-
var applyTrueProps = (
|
|
18711
|
+
var applyTrueProps = (props5, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
|
|
18583
18712
|
var beforeClassAssign = (element, s) => {
|
|
18584
|
-
const { props:
|
|
18713
|
+
const { props: props5, class: className, context } = element;
|
|
18585
18714
|
const CLASS_NAMES = {
|
|
18586
18715
|
media: {},
|
|
18587
18716
|
selector: {},
|
|
@@ -18591,11 +18720,11 @@ var beforeClassAssign = (element, s) => {
|
|
|
18591
18720
|
if (!context)
|
|
18592
18721
|
return;
|
|
18593
18722
|
const globalTheme = context.designSystem.globalTheme;
|
|
18594
|
-
for (const key in
|
|
18723
|
+
for (const key in props5) {
|
|
18595
18724
|
const setter = keySetters[key.slice(0, 1)];
|
|
18596
18725
|
if (globalTheme) {
|
|
18597
|
-
if (key === "theme" && !
|
|
18598
|
-
|
|
18726
|
+
if (key === "theme" && !props5.themeModifier) {
|
|
18727
|
+
props5.update({
|
|
18599
18728
|
themeModifier: globalTheme
|
|
18600
18729
|
}, {
|
|
18601
18730
|
preventListeners: true,
|
|
@@ -18606,9 +18735,9 @@ var beforeClassAssign = (element, s) => {
|
|
|
18606
18735
|
}
|
|
18607
18736
|
}
|
|
18608
18737
|
if (setter)
|
|
18609
|
-
setter(key,
|
|
18738
|
+
setter(key, props5[key], CLASS_NAMES, element);
|
|
18610
18739
|
else if (key === "true")
|
|
18611
|
-
applyTrueProps(
|
|
18740
|
+
applyTrueProps(props5[key], CLASS_NAMES, element);
|
|
18612
18741
|
}
|
|
18613
18742
|
const parentProps = element.parent && element.parent.props;
|
|
18614
18743
|
if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
|
|
@@ -18644,23 +18773,23 @@ var Iframe = {
|
|
|
18644
18773
|
minHeight: "H"
|
|
18645
18774
|
},
|
|
18646
18775
|
attr: {
|
|
18647
|
-
src: ({ props:
|
|
18648
|
-
srcdoc: ({ props:
|
|
18649
|
-
sandbox: ({ props:
|
|
18650
|
-
seamless: ({ props:
|
|
18651
|
-
loading: ({ props:
|
|
18652
|
-
allowfullscreen: ({ props:
|
|
18653
|
-
frameborder: ({ props:
|
|
18654
|
-
allow: ({ props:
|
|
18655
|
-
referrerpolicy: ({ props:
|
|
18776
|
+
src: ({ props: props5 }) => props5.src,
|
|
18777
|
+
srcdoc: ({ props: props5 }) => props5.srcdoc,
|
|
18778
|
+
sandbox: ({ props: props5 }) => props5.sandbox,
|
|
18779
|
+
seamless: ({ props: props5 }) => props5.seamless,
|
|
18780
|
+
loading: ({ props: props5 }) => props5.loading,
|
|
18781
|
+
allowfullscreen: ({ props: props5 }) => props5.allowfullscreen,
|
|
18782
|
+
frameborder: ({ props: props5 }) => props5.frameborder,
|
|
18783
|
+
allow: ({ props: props5 }) => props5.allow,
|
|
18784
|
+
referrerpolicy: ({ props: props5 }) => props5.referrerpolicy
|
|
18656
18785
|
}
|
|
18657
18786
|
};
|
|
18658
18787
|
|
|
18659
18788
|
// ../uikit/Atoms/Interaction.js
|
|
18660
18789
|
var Interaction = {
|
|
18661
18790
|
class: {
|
|
18662
|
-
userSelect: ({ props:
|
|
18663
|
-
pointerEvents: ({ props:
|
|
18791
|
+
userSelect: ({ props: props5 }) => props5.userSelect && { userSelect: props5.userSelect },
|
|
18792
|
+
pointerEvents: ({ props: props5 }) => props5.pointerEvents && { pointerEvents: props5.pointerEvents },
|
|
18664
18793
|
cursor: (el, s, ctx) => {
|
|
18665
18794
|
let val = el.props.cursor;
|
|
18666
18795
|
if (!val)
|
|
@@ -18722,8 +18851,8 @@ var Focusable = {
|
|
|
18722
18851
|
}
|
|
18723
18852
|
},
|
|
18724
18853
|
attr: {
|
|
18725
|
-
placeholder: ({ props:
|
|
18726
|
-
tabIndex: ({ props:
|
|
18854
|
+
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
18855
|
+
tabIndex: ({ props: props5 }) => props5.tabIndex
|
|
18727
18856
|
}
|
|
18728
18857
|
};
|
|
18729
18858
|
var FocusableComponent = {
|
|
@@ -18740,25 +18869,25 @@ var FocusableComponent = {
|
|
|
18740
18869
|
style
|
|
18741
18870
|
},
|
|
18742
18871
|
attr: {
|
|
18743
|
-
type: ({ props:
|
|
18872
|
+
type: ({ props: props5 }) => props5.type
|
|
18744
18873
|
}
|
|
18745
18874
|
};
|
|
18746
18875
|
|
|
18747
18876
|
// ../uikit/Atoms/Overflow.js
|
|
18748
18877
|
var Overflow = {
|
|
18749
18878
|
class: {
|
|
18750
|
-
overflow: ({ props:
|
|
18751
|
-
overflow:
|
|
18879
|
+
overflow: ({ props: props5, deps }) => !deps.isUndefined(props5.overflow) && {
|
|
18880
|
+
overflow: props5.overflow,
|
|
18752
18881
|
scrollBehavior: "smooth"
|
|
18753
18882
|
},
|
|
18754
|
-
overflowX: ({ props:
|
|
18755
|
-
overflowX:
|
|
18883
|
+
overflowX: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowX) && {
|
|
18884
|
+
overflowX: props5.overflowX
|
|
18756
18885
|
},
|
|
18757
|
-
overflowY: ({ props:
|
|
18758
|
-
overflowY:
|
|
18886
|
+
overflowY: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowY) && {
|
|
18887
|
+
overflowY: props5.overflowY
|
|
18759
18888
|
},
|
|
18760
|
-
overscrollBehavior: ({ props:
|
|
18761
|
-
overscrollBehavior:
|
|
18889
|
+
overscrollBehavior: ({ props: props5, deps }) => !deps.isUndefined(props5.overscrollBehavior) && {
|
|
18890
|
+
overscrollBehavior: props5.overscrollBehavior
|
|
18762
18891
|
}
|
|
18763
18892
|
}
|
|
18764
18893
|
};
|
|
@@ -18770,12 +18899,12 @@ var Collection = {
|
|
|
18770
18899
|
define: {
|
|
18771
18900
|
$collection: (param, el, state) => {
|
|
18772
18901
|
const { __ref: ref } = el;
|
|
18773
|
-
const { children, childrenAs,
|
|
18902
|
+
const { children, childrenAs, childExtends } = el.props || {};
|
|
18774
18903
|
const childrenExec = children && (0, import_utils8.exec)(children, el, state);
|
|
18775
18904
|
if ((0, import_utils8.isArray)(childrenExec)) {
|
|
18776
18905
|
param = (0, import_utils8.deepCloneWithExtend)(childrenExec);
|
|
18777
18906
|
if (childrenAs)
|
|
18778
|
-
param = param.map((v) => ({ extend:
|
|
18907
|
+
param = param.map((v) => ({ extend: childExtends, [childrenAs]: v }));
|
|
18779
18908
|
} else if ((0, import_utils8.isObject)(childrenExec)) {
|
|
18780
18909
|
param = (0, import_utils8.deepCloneWithExtend)(childrenExec);
|
|
18781
18910
|
param = Object.keys(param).map((v) => {
|
|
@@ -18783,7 +18912,7 @@ var Collection = {
|
|
|
18783
18912
|
return (0, import_utils8.addAdditionalExtend)(v, val);
|
|
18784
18913
|
});
|
|
18785
18914
|
if (childrenAs)
|
|
18786
|
-
param = param.map((v) => ({ extend:
|
|
18915
|
+
param = param.map((v) => ({ extend: childExtends, [childrenAs]: v }));
|
|
18787
18916
|
}
|
|
18788
18917
|
if (!param)
|
|
18789
18918
|
return;
|
|
@@ -18935,21 +19064,21 @@ var import_scratch8 = __toESM(require_cjs2());
|
|
|
18935
19064
|
var Position = {
|
|
18936
19065
|
deps: { getSpacingByKey: import_scratch8.getSpacingByKey },
|
|
18937
19066
|
class: {
|
|
18938
|
-
position: ({ props:
|
|
18939
|
-
inset: ({ props:
|
|
18940
|
-
const { inset } =
|
|
19067
|
+
position: ({ props: props5 }) => props5.position && { position: props5.position },
|
|
19068
|
+
inset: ({ props: props5, deps, context }) => {
|
|
19069
|
+
const { inset } = props5;
|
|
18941
19070
|
if (context.utils.isNumber(inset))
|
|
18942
19071
|
return { inset };
|
|
18943
19072
|
if (!context.utils.isString(inset))
|
|
18944
19073
|
return;
|
|
18945
19074
|
return { inset: inset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k).join(" ") };
|
|
18946
19075
|
},
|
|
18947
|
-
left: ({ props:
|
|
18948
|
-
top: ({ props:
|
|
18949
|
-
right: ({ props:
|
|
18950
|
-
bottom: ({ props:
|
|
18951
|
-
verticalInset: ({ props:
|
|
18952
|
-
const { verticalInset } =
|
|
19076
|
+
left: ({ props: props5, deps }) => deps.getSpacingByKey(props5.left, "left"),
|
|
19077
|
+
top: ({ props: props5, deps }) => deps.getSpacingByKey(props5.top, "top"),
|
|
19078
|
+
right: ({ props: props5, deps }) => deps.getSpacingByKey(props5.right, "right"),
|
|
19079
|
+
bottom: ({ props: props5, deps }) => deps.getSpacingByKey(props5.bottom, "bottom"),
|
|
19080
|
+
verticalInset: ({ props: props5, deps }) => {
|
|
19081
|
+
const { verticalInset } = props5;
|
|
18953
19082
|
if (typeof verticalInset !== "string")
|
|
18954
19083
|
return;
|
|
18955
19084
|
const vi = verticalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
|
|
@@ -18958,8 +19087,8 @@ var Position = {
|
|
|
18958
19087
|
bottom: vi[1] || vi[0]
|
|
18959
19088
|
};
|
|
18960
19089
|
},
|
|
18961
|
-
horizontalInset: ({ props:
|
|
18962
|
-
const { horizontalInset } =
|
|
19090
|
+
horizontalInset: ({ props: props5, deps }) => {
|
|
19091
|
+
const { horizontalInset } = props5;
|
|
18963
19092
|
if (typeof horizontalInset !== "string")
|
|
18964
19093
|
return;
|
|
18965
19094
|
const vi = horizontalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
|
|
@@ -18979,31 +19108,31 @@ var Picture = {
|
|
|
18979
19108
|
tag: "source",
|
|
18980
19109
|
attr: {
|
|
18981
19110
|
media: (element) => {
|
|
18982
|
-
const { props:
|
|
19111
|
+
const { props: props5, key, context, deps } = element;
|
|
18983
19112
|
const { MEDIA: MEDIA2 } = context.designSystem;
|
|
18984
19113
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18985
|
-
const mediaName = (
|
|
19114
|
+
const mediaName = (props5.media || key).slice(1);
|
|
18986
19115
|
if (mediaName === globalTheme)
|
|
18987
19116
|
return "(min-width: 0px)";
|
|
18988
19117
|
else if (mediaName === "dark" || mediaName === "light")
|
|
18989
19118
|
return "(max-width: 0px)";
|
|
18990
19119
|
return MEDIA2[mediaName];
|
|
18991
19120
|
},
|
|
18992
|
-
srcset: ({ props:
|
|
19121
|
+
srcset: ({ props: props5 }) => props5.srcset
|
|
18993
19122
|
}
|
|
18994
19123
|
},
|
|
18995
|
-
Img: ({ props:
|
|
19124
|
+
Img: ({ props: props5 }) => ({
|
|
18996
19125
|
width: "inherit",
|
|
18997
19126
|
ignoreChildExtend: true,
|
|
18998
19127
|
height: "inherit",
|
|
18999
|
-
src:
|
|
19128
|
+
src: props5.src
|
|
19000
19129
|
})
|
|
19001
19130
|
};
|
|
19002
19131
|
|
|
19003
19132
|
// ../uikit/Atoms/Pseudo.js
|
|
19004
19133
|
var Pseudo = {
|
|
19005
19134
|
class: {
|
|
19006
|
-
content: ({ props:
|
|
19135
|
+
content: ({ props: props5 }) => props5.content && { content: props5.content }
|
|
19007
19136
|
}
|
|
19008
19137
|
};
|
|
19009
19138
|
|
|
@@ -19015,28 +19144,30 @@ var Svg = {
|
|
|
19015
19144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19016
19145
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
19017
19146
|
},
|
|
19018
|
-
html: (
|
|
19019
|
-
|
|
19147
|
+
html: (el) => {
|
|
19148
|
+
const { props: props5, context } = el;
|
|
19149
|
+
if (props5.semantic_symbols)
|
|
19020
19150
|
return;
|
|
19151
|
+
if (props5.html)
|
|
19152
|
+
return el.call("exec", props5.html, el);
|
|
19021
19153
|
const { designSystem, utils: utils2 } = context;
|
|
19022
19154
|
const SVG = designSystem && designSystem.SVG;
|
|
19023
|
-
const useSvgSprite =
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
return props2.src;
|
|
19155
|
+
const useSvgSprite = props5.spriteId || context.designSystem && context.designSystem.useSvgSprite;
|
|
19156
|
+
const src = el.call("exec", props5.src, el);
|
|
19157
|
+
if (!useSvgSprite && src)
|
|
19158
|
+
return src;
|
|
19028
19159
|
const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
|
|
19029
|
-
const spriteId =
|
|
19160
|
+
const spriteId = props5.spriteId;
|
|
19030
19161
|
if (spriteId)
|
|
19031
19162
|
return useSVGSymbol(spriteId);
|
|
19032
|
-
const symbolId = Symbol.for(
|
|
19163
|
+
const symbolId = Symbol.for(src);
|
|
19033
19164
|
let SVGKey = SVG[symbolId];
|
|
19034
19165
|
if (SVGKey && SVG[SVGKey])
|
|
19035
19166
|
return useSVGSymbol(SVGKey);
|
|
19036
19167
|
SVGKey = SVG[symbolId] = Math.random();
|
|
19037
|
-
if (
|
|
19168
|
+
if (src) {
|
|
19038
19169
|
utils2.init({
|
|
19039
|
-
svg: { [SVGKey]:
|
|
19170
|
+
svg: { [SVGKey]: src }
|
|
19040
19171
|
}, {
|
|
19041
19172
|
document: context.document,
|
|
19042
19173
|
emotion: context.emotion
|
|
@@ -19049,77 +19180,80 @@ var Svg = {
|
|
|
19049
19180
|
// ../uikit/Atoms/Shape/index.js
|
|
19050
19181
|
var import_utils9 = __toESM(require_cjs());
|
|
19051
19182
|
var import_scratch9 = __toESM(require_cjs2());
|
|
19052
|
-
var transformBorderRadius = (radius,
|
|
19183
|
+
var transformBorderRadius = (radius, props5, propertyName) => {
|
|
19053
19184
|
if (!(0, import_utils9.isString)(radius))
|
|
19054
19185
|
return;
|
|
19055
19186
|
return {
|
|
19056
|
-
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch9.getSpacingBasedOnRatio)(
|
|
19187
|
+
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch9.getSpacingBasedOnRatio)(props5, propertyName, v)[propertyName]).join(" ")
|
|
19057
19188
|
};
|
|
19058
19189
|
};
|
|
19059
19190
|
var Shape = {
|
|
19060
19191
|
extend: Pseudo,
|
|
19061
19192
|
deps: { exec: import_utils9.exec, getSpacingBasedOnRatio: import_scratch9.getSpacingBasedOnRatio, getMediaColor: import_scratch9.getMediaColor, transformBorderRadius },
|
|
19062
19193
|
class: {
|
|
19063
|
-
shape: ({ props:
|
|
19064
|
-
const { shape } =
|
|
19065
|
-
return deps.exec(SHAPES[shape], { props:
|
|
19194
|
+
shape: ({ props: props5, deps }) => {
|
|
19195
|
+
const { shape } = props5;
|
|
19196
|
+
return deps.exec(SHAPES[shape], { props: props5, deps });
|
|
19066
19197
|
},
|
|
19067
|
-
shapeDirection: ({ props:
|
|
19068
|
-
const { shape, shapeDirection } =
|
|
19198
|
+
shapeDirection: ({ props: props5 }) => {
|
|
19199
|
+
const { shape, shapeDirection } = props5;
|
|
19069
19200
|
if (!shape || !shapeDirection)
|
|
19070
19201
|
return;
|
|
19071
19202
|
const shapeDir = SHAPES[shape + "Direction"];
|
|
19072
19203
|
return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
|
|
19073
19204
|
},
|
|
19074
|
-
shapeDirectionColor: ({ props:
|
|
19075
|
-
const { background, backgroundColor } =
|
|
19205
|
+
shapeDirectionColor: ({ props: props5, deps }) => {
|
|
19206
|
+
const { background, backgroundColor } = props5;
|
|
19076
19207
|
const borderColor = {
|
|
19077
19208
|
borderColor: deps.getMediaColor(background || backgroundColor)
|
|
19078
19209
|
};
|
|
19079
|
-
return
|
|
19210
|
+
return props5.shapeDirection ? borderColor : null;
|
|
19080
19211
|
},
|
|
19081
|
-
round: ({ props:
|
|
19082
|
-
borderRadius: ({ props:
|
|
19212
|
+
round: ({ props: props5, key, deps, ...el }) => deps.transformBorderRadius(props5.round || props5.borderRadius, props5, "round"),
|
|
19213
|
+
borderRadius: ({ props: props5, key, deps, ...el }) => deps.transformBorderRadius(props5.borderRadius || props5.round, props5, "borderRadius")
|
|
19083
19214
|
}
|
|
19084
19215
|
};
|
|
19085
19216
|
|
|
19086
19217
|
// ../uikit/Atoms/Text.js
|
|
19087
19218
|
var import_utils10 = __toESM(require_cjs());
|
|
19088
19219
|
var import_scratch10 = __toESM(require_cjs2());
|
|
19220
|
+
var props2 = {
|
|
19221
|
+
fontSize: (el) => {
|
|
19222
|
+
const { props: props5, deps } = el;
|
|
19223
|
+
return props5.fontSize ? deps.getFontSizeByKey(props5.fontSize) : null;
|
|
19224
|
+
},
|
|
19225
|
+
fontFamily: ({ props: props5, deps }) => ({
|
|
19226
|
+
fontFamily: deps.getFontFamily(props5.fontFamily) || props5.fontFamily
|
|
19227
|
+
}),
|
|
19228
|
+
fontWeight: ({ props: props5 }) => ({
|
|
19229
|
+
fontWeight: props5.fontWeight,
|
|
19230
|
+
fontVariationSettings: '"wght" ' + props5.fontWeight
|
|
19231
|
+
})
|
|
19232
|
+
};
|
|
19089
19233
|
var Text = {
|
|
19090
19234
|
deps: { exec: import_utils10.exec, getFontSizeByKey: import_scratch10.getFontSizeByKey, getFontFamily: import_scratch10.getFontFamily },
|
|
19091
19235
|
text: (el) => {
|
|
19092
|
-
const { key, props:
|
|
19093
|
-
if (
|
|
19094
|
-
return state && state[key] ||
|
|
19095
|
-
return deps.exec(
|
|
19236
|
+
const { key, props: props5, state, deps } = el;
|
|
19237
|
+
if (props5.text === true)
|
|
19238
|
+
return state && state[key] || props5 && props5[key];
|
|
19239
|
+
return deps.exec(props5.text, el);
|
|
19096
19240
|
},
|
|
19097
19241
|
class: {
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
return props2.fontSize ? deps.getFontSizeByKey(props2.fontSize) : null;
|
|
19101
|
-
},
|
|
19102
|
-
font: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.font) && { font: props2.font },
|
|
19103
|
-
fontFamily: ({ props: props2, deps }) => !(0, import_utils10.isUndefined)(props2.fontFamily) && {
|
|
19104
|
-
fontFamily: deps.getFontFamily(props2.fontFamily) || props2.fontFamily
|
|
19105
|
-
},
|
|
19106
|
-
lineHeight: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.lineHeight) && { lineHeight: props2.lineHeight },
|
|
19242
|
+
font: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.font) && { font: props5.font },
|
|
19243
|
+
lineHeight: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.lineHeight) && { lineHeight: props5.lineHeight },
|
|
19107
19244
|
// lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
19108
|
-
textDecoration: ({ props:
|
|
19109
|
-
textTransform: ({ props:
|
|
19110
|
-
wordBreak: ({ props:
|
|
19111
|
-
whiteSpace: ({ props:
|
|
19112
|
-
wordWrap: ({ props:
|
|
19113
|
-
letterSpacing: ({ props:
|
|
19114
|
-
textOverflow: ({ props:
|
|
19115
|
-
textAlign: ({ props:
|
|
19116
|
-
writingMode: ({ props:
|
|
19117
|
-
textOrientation: ({ props:
|
|
19118
|
-
textIndent: ({ props:
|
|
19119
|
-
|
|
19120
|
-
fontWeight: props2.fontWeight,
|
|
19121
|
-
fontVariationSettings: '"wght" ' + props2.fontWeight
|
|
19122
|
-
}
|
|
19245
|
+
textDecoration: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textDecoration) && { textDecoration: props5.textDecoration },
|
|
19246
|
+
textTransform: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textTransform) && { textTransform: props5.textTransform },
|
|
19247
|
+
wordBreak: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.wordBreak) && { wordBreak: props5.wordBreak },
|
|
19248
|
+
whiteSpace: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.whiteSpace) && { whiteSpace: props5.whiteSpace },
|
|
19249
|
+
wordWrap: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.wordWrap) && { wordWrap: props5.wordWrap },
|
|
19250
|
+
letterSpacing: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.letterSpacing) && { letterSpacing: props5.letterSpacing },
|
|
19251
|
+
textOverflow: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textOverflow) && { textOverflow: props5.textOverflow },
|
|
19252
|
+
textAlign: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textAlign) && { textAlign: props5.textAlign },
|
|
19253
|
+
writingMode: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.writingMode) && { writingMode: props5.writingMode },
|
|
19254
|
+
textOrientation: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textOrientation) && { textOrientation: props5.textOrientation },
|
|
19255
|
+
textIndent: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textIndent) && { textIndent: props5.textIndent },
|
|
19256
|
+
...props2
|
|
19123
19257
|
}
|
|
19124
19258
|
};
|
|
19125
19259
|
var H1 = { tag: "h1" };
|
|
@@ -19157,10 +19291,10 @@ var Data = { tag: "data" };
|
|
|
19157
19291
|
var import_utils11 = __toESM(require_cjs());
|
|
19158
19292
|
var Transform = {
|
|
19159
19293
|
class: {
|
|
19160
|
-
zoom: ({ props:
|
|
19161
|
-
transform: ({ props:
|
|
19162
|
-
transformOrigin: ({ props:
|
|
19163
|
-
backfaceVisibility: ({ props:
|
|
19294
|
+
zoom: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.zoom) && { zoom: props5.zoom },
|
|
19295
|
+
transform: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.transform) && { transform: props5.transform },
|
|
19296
|
+
transformOrigin: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.transformOrigin) && { transformOrigin: props5.transformOrigin },
|
|
19297
|
+
backfaceVisibility: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.backfaceVisibility) && { backfaceVisibility: props5.backfaceVisibility }
|
|
19164
19298
|
}
|
|
19165
19299
|
};
|
|
19166
19300
|
|
|
@@ -19168,9 +19302,9 @@ var Transform = {
|
|
|
19168
19302
|
var import_utils12 = __toESM(require_cjs());
|
|
19169
19303
|
var XYZ = {
|
|
19170
19304
|
class: {
|
|
19171
|
-
zIndex: ({ props:
|
|
19172
|
-
perspective: ({ props:
|
|
19173
|
-
perspectiveOrigin: ({ props:
|
|
19305
|
+
zIndex: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.zIndex) && { zIndex: props5.zIndex },
|
|
19306
|
+
perspective: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.perspective) && { perspective: props5.perspective },
|
|
19307
|
+
perspectiveOrigin: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.perspectiveOrigin) && { perspectiveOrigin: props5.perspectiveOrigin }
|
|
19174
19308
|
}
|
|
19175
19309
|
};
|
|
19176
19310
|
|
|
@@ -19186,41 +19320,44 @@ var applyAnimationProps = (animation, element) => {
|
|
|
19186
19320
|
const record = ANIMATION[animation];
|
|
19187
19321
|
return keyframes(record);
|
|
19188
19322
|
};
|
|
19323
|
+
var props3 = {
|
|
19324
|
+
animation: (el) => el.props.animation && {
|
|
19325
|
+
animationName: el.deps.applyAnimationProps(el.props.animation, el),
|
|
19326
|
+
animationDuration: el.deps.getTimingByKey(el.props.animationDuration || "A").timing,
|
|
19327
|
+
animationDelay: el.deps.getTimingByKey(el.props.animationDelay || "0s").timing,
|
|
19328
|
+
animationTimingFunction: el.deps.getTimingFunction(el.props.animationTimingFunction || "ease"),
|
|
19329
|
+
animationFillMode: el.props.animationFillMode || "both",
|
|
19330
|
+
animationPlayState: el.props.animationPlayState,
|
|
19331
|
+
animationDirection: el.props.animationDirection
|
|
19332
|
+
},
|
|
19333
|
+
animationName: (el) => el.props.animationName && {
|
|
19334
|
+
animationName: el.deps.applyAnimationProps(el.props.animationName, el)
|
|
19335
|
+
},
|
|
19336
|
+
animationDuration: ({ props: props5, deps }) => props5.animationDuration && {
|
|
19337
|
+
animationDuration: deps.getTimingByKey(props5.animationDuration).timing
|
|
19338
|
+
},
|
|
19339
|
+
animationDelay: ({ props: props5, deps }) => props5.animationDelay && {
|
|
19340
|
+
animationDelay: deps.getTimingByKey(props5.animationDelay).timing
|
|
19341
|
+
},
|
|
19342
|
+
animationTimingFunction: ({ props: props5, deps }) => props5.animationTimingFunction && {
|
|
19343
|
+
animationTimingFunction: deps.getTimingFunction(props5.animationTimingFunction)
|
|
19344
|
+
}
|
|
19345
|
+
};
|
|
19189
19346
|
var Animation = {
|
|
19190
19347
|
deps: { isObject: import_utils13.isObject, getTimingByKey: import_scratch11.getTimingByKey, getTimingFunction: import_scratch11.getTimingFunction, applyAnimationProps },
|
|
19191
19348
|
class: {
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
animationDelay: el.deps.getTimingByKey(el.props.animationDelay || "0s").timing,
|
|
19196
|
-
animationTimingFunction: el.deps.getTimingFunction(el.props.animationTimingFunction || "ease"),
|
|
19197
|
-
animationFillMode: el.props.animationFillMode || "both",
|
|
19198
|
-
animationPlayState: el.props.animationPlayState,
|
|
19199
|
-
animationDirection: el.props.animationDirection
|
|
19349
|
+
...props3,
|
|
19350
|
+
animationFillMode: ({ props: props5 }) => props5.animationFillMode && {
|
|
19351
|
+
animationFillMode: props5.animationFillMode
|
|
19200
19352
|
},
|
|
19201
|
-
|
|
19202
|
-
|
|
19353
|
+
animationPlayState: ({ props: props5 }) => props5.animationPlayState && {
|
|
19354
|
+
animationPlayState: props5.animationPlayState
|
|
19203
19355
|
},
|
|
19204
|
-
|
|
19205
|
-
|
|
19356
|
+
animationIterationCount: ({ props: props5 }) => props5.animationIterationCount && {
|
|
19357
|
+
animationIterationCount: props5.animationIterationCount || 1
|
|
19206
19358
|
},
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
},
|
|
19210
|
-
animationTimingFunction: ({ props: props2, deps }) => props2.animationTimingFunction && {
|
|
19211
|
-
animationTimingFunction: deps.getTimingFunction(props2.animationTimingFunction)
|
|
19212
|
-
},
|
|
19213
|
-
animationFillMode: ({ props: props2 }) => props2.animationFillMode && {
|
|
19214
|
-
animationFillMode: props2.animationFillMode
|
|
19215
|
-
},
|
|
19216
|
-
animationPlayState: ({ props: props2 }) => props2.animationPlayState && {
|
|
19217
|
-
animationPlayState: props2.animationPlayState
|
|
19218
|
-
},
|
|
19219
|
-
animationIterationCount: ({ props: props2 }) => props2.animationIterationCount && {
|
|
19220
|
-
animationIterationCount: props2.animationIterationCount || 1
|
|
19221
|
-
},
|
|
19222
|
-
animationDirection: ({ props: props2 }) => props2.animationDirection && {
|
|
19223
|
-
animationDirection: props2.animationDirection
|
|
19359
|
+
animationDirection: ({ props: props5 }) => props5.animationDirection && {
|
|
19360
|
+
animationDirection: props5.animationDirection
|
|
19224
19361
|
}
|
|
19225
19362
|
}
|
|
19226
19363
|
};
|
|
@@ -19229,37 +19366,37 @@ var Animation = {
|
|
|
19229
19366
|
var import_utils14 = __toESM(require_cjs());
|
|
19230
19367
|
var PropsCSS = {
|
|
19231
19368
|
class: {
|
|
19232
|
-
style: ({ props:
|
|
19369
|
+
style: ({ props: props5 }) => props5 && props5.style
|
|
19233
19370
|
}
|
|
19234
19371
|
};
|
|
19235
19372
|
var Box = {
|
|
19236
19373
|
extend: [
|
|
19237
19374
|
PropsCSS,
|
|
19238
|
-
Shape,
|
|
19239
|
-
Position,
|
|
19240
|
-
Theme,
|
|
19241
|
-
Block,
|
|
19242
|
-
Text,
|
|
19243
|
-
Overflow,
|
|
19244
|
-
Timing,
|
|
19245
|
-
Transform,
|
|
19246
|
-
Media,
|
|
19247
|
-
Interaction,
|
|
19248
|
-
XYZ,
|
|
19249
|
-
Animation
|
|
19375
|
+
"Shape",
|
|
19376
|
+
"Position",
|
|
19377
|
+
"Theme",
|
|
19378
|
+
"Block",
|
|
19379
|
+
"Text",
|
|
19380
|
+
"Overflow",
|
|
19381
|
+
"Timing",
|
|
19382
|
+
"Transform",
|
|
19383
|
+
"Media",
|
|
19384
|
+
"Interaction",
|
|
19385
|
+
"XYZ",
|
|
19386
|
+
"Animation"
|
|
19250
19387
|
],
|
|
19251
19388
|
deps: { isString: import_utils14.isString, isUndefined: import_utils14.isUndefined },
|
|
19252
19389
|
attr: {
|
|
19253
|
-
id: ({ props:
|
|
19254
|
-
title: ({ props:
|
|
19255
|
-
contentEditable: ({ props:
|
|
19256
|
-
dir: ({ props:
|
|
19257
|
-
draggable: ({ props:
|
|
19258
|
-
hidden: ({ props:
|
|
19259
|
-
lang: ({ props:
|
|
19260
|
-
spellcheck: ({ props:
|
|
19261
|
-
tabindex: ({ props:
|
|
19262
|
-
translate: ({ props:
|
|
19390
|
+
id: ({ props: props5, deps }) => deps.isString(props5.id) && props5.id,
|
|
19391
|
+
title: ({ props: props5, deps }) => deps.isString(props5.title) && props5.title,
|
|
19392
|
+
contentEditable: ({ props: props5 }) => props5.contentEditable || props5.contenteditable,
|
|
19393
|
+
dir: ({ props: props5 }) => props5.dir,
|
|
19394
|
+
draggable: ({ props: props5 }) => props5.draggable,
|
|
19395
|
+
hidden: ({ props: props5 }) => props5.hidden,
|
|
19396
|
+
lang: ({ props: props5 }) => props5.lang,
|
|
19397
|
+
spellcheck: ({ props: props5 }) => props5.spellcheck,
|
|
19398
|
+
tabindex: ({ props: props5 }) => props5.tabindex,
|
|
19399
|
+
translate: ({ props: props5 }) => props5.translate
|
|
19263
19400
|
}
|
|
19264
19401
|
};
|
|
19265
19402
|
var Circle = {
|
|
@@ -19271,23 +19408,23 @@ var Circle = {
|
|
|
19271
19408
|
// ../uikit/Icon/index.js
|
|
19272
19409
|
var import_utils15 = __toESM(require_cjs());
|
|
19273
19410
|
var inheritFromIsActive = (el) => {
|
|
19274
|
-
const { props:
|
|
19275
|
-
const propsActive =
|
|
19411
|
+
const { props: props5 } = el;
|
|
19412
|
+
const propsActive = props5[".isActive"];
|
|
19276
19413
|
return el.call("exec", propsActive.name || propsActive.icon);
|
|
19277
19414
|
};
|
|
19278
19415
|
var getIconName = (el, s) => {
|
|
19279
|
-
const { key, props:
|
|
19280
|
-
let
|
|
19281
|
-
if ((0, import_utils15.isString)(
|
|
19282
|
-
|
|
19416
|
+
const { key, props: props5 } = el;
|
|
19417
|
+
let icon = el.call("exec", props5.name || props5.icon || key, el);
|
|
19418
|
+
if ((0, import_utils15.isString)(icon) && icon.includes("{{")) {
|
|
19419
|
+
icon = el.call("replaceLiteralsWithObjectFields", icon, s);
|
|
19283
19420
|
}
|
|
19284
|
-
return
|
|
19421
|
+
return el.call("isString", icon) ? icon : key;
|
|
19285
19422
|
};
|
|
19286
19423
|
var Icon = {
|
|
19287
19424
|
extend: "Svg",
|
|
19288
19425
|
deps: { isString: import_utils15.isString, replaceLiteralsWithObjectFields: import_utils15.replaceLiteralsWithObjectFields },
|
|
19289
19426
|
props: (el, s, ctx) => {
|
|
19290
|
-
const { props:
|
|
19427
|
+
const { props: props5, parent, deps } = el;
|
|
19291
19428
|
const { ICONS, useIconSprite, verbose } = ctx && ctx.designSystem;
|
|
19292
19429
|
const { toCamelCase } = ctx && ctx.utils;
|
|
19293
19430
|
const iconName = getIconName(el, s);
|
|
@@ -19297,7 +19434,7 @@ var Icon = {
|
|
|
19297
19434
|
if (semanticIcon)
|
|
19298
19435
|
return semanticIcon;
|
|
19299
19436
|
let activeIconName;
|
|
19300
|
-
if (
|
|
19437
|
+
if (props5.isActive)
|
|
19301
19438
|
activeIconName = inheritFromIsActive(el);
|
|
19302
19439
|
const parentProps = parent.props;
|
|
19303
19440
|
const parentPropsActive = parentProps[".isActive"];
|
|
@@ -19324,7 +19461,7 @@ var Icon = {
|
|
|
19324
19461
|
el.warn("Can't find icon:", iconName, iconInContext);
|
|
19325
19462
|
}
|
|
19326
19463
|
const iconFromLibrary = ICONS[iconInContext];
|
|
19327
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
19464
|
+
const directSrc = parent && parent.props && parent.props.src || props5.src;
|
|
19328
19465
|
return {
|
|
19329
19466
|
width: "A",
|
|
19330
19467
|
height: "A",
|
|
@@ -19340,21 +19477,26 @@ var IconText = {
|
|
|
19340
19477
|
extend: "Flex",
|
|
19341
19478
|
props: {
|
|
19342
19479
|
align: "center center",
|
|
19343
|
-
lineHeight: 1
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19480
|
+
lineHeight: 1,
|
|
19481
|
+
".reversed": {
|
|
19482
|
+
flow: "row-reverse"
|
|
19483
|
+
},
|
|
19484
|
+
".vertical": {
|
|
19485
|
+
flow: "column"
|
|
19349
19486
|
}
|
|
19350
19487
|
},
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19488
|
+
Icon: {
|
|
19489
|
+
if: (el) => {
|
|
19490
|
+
const { parent, props: props5 } = el;
|
|
19491
|
+
return el.call(
|
|
19492
|
+
"exec",
|
|
19493
|
+
parent.props.icon || parent.props.Icon || props5.name || props5.icon || props5.sfSymbols || parent.props.sfSymbols,
|
|
19494
|
+
el
|
|
19495
|
+
);
|
|
19496
|
+
},
|
|
19497
|
+
icon: (el) => el.call("exec", el.parent.props.icon, el.parent)
|
|
19354
19498
|
},
|
|
19355
|
-
|
|
19356
|
-
props: { flow: "column" }
|
|
19357
|
-
}
|
|
19499
|
+
text: ({ props: props5 }) => props5.text
|
|
19358
19500
|
};
|
|
19359
19501
|
var FileIcon = {
|
|
19360
19502
|
extend: "Flex",
|
|
@@ -19675,16 +19817,16 @@ var Link = {
|
|
|
19675
19817
|
}
|
|
19676
19818
|
return href;
|
|
19677
19819
|
},
|
|
19678
|
-
target: ({ props:
|
|
19679
|
-
"aria-label": ({ props:
|
|
19680
|
-
draggable: ({ props:
|
|
19820
|
+
target: ({ props: props5 }) => props5.target,
|
|
19821
|
+
"aria-label": ({ props: props5 }) => props5.aria ? props5.aria.label : props5.text,
|
|
19822
|
+
draggable: ({ props: props5 }) => props5.draggable
|
|
19681
19823
|
}
|
|
19682
19824
|
};
|
|
19683
19825
|
var RouterLink = {
|
|
19684
19826
|
on: {
|
|
19685
19827
|
click: (event, el, s) => {
|
|
19686
|
-
const { props:
|
|
19687
|
-
const { href: h, scrollToTop, stopPropagation } =
|
|
19828
|
+
const { props: props5, context: ctx } = el;
|
|
19829
|
+
const { href: h, scrollToTop, stopPropagation } = props5;
|
|
19688
19830
|
const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
|
|
19689
19831
|
let href = exec7(h, el, s);
|
|
19690
19832
|
if (isString13(href) && href.includes("{{")) {
|
|
@@ -19703,7 +19845,7 @@ var RouterLink = {
|
|
|
19703
19845
|
scrollToOptions: { behaviour: "instant" },
|
|
19704
19846
|
scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
|
|
19705
19847
|
...routerOptions,
|
|
19706
|
-
...
|
|
19848
|
+
...props5.routerOptions
|
|
19707
19849
|
});
|
|
19708
19850
|
event.preventDefault();
|
|
19709
19851
|
} catch (e) {
|
|
@@ -19723,23 +19865,23 @@ var Video = {
|
|
|
19723
19865
|
childExtend: {
|
|
19724
19866
|
tag: "source",
|
|
19725
19867
|
attr: {
|
|
19726
|
-
src: ({ props:
|
|
19727
|
-
type: ({ props:
|
|
19728
|
-
controls: ({ props:
|
|
19868
|
+
src: ({ props: props5 }) => props5.src,
|
|
19869
|
+
type: ({ props: props5 }) => props5.type,
|
|
19870
|
+
controls: ({ props: props5 }) => props5.controls
|
|
19729
19871
|
}
|
|
19730
19872
|
},
|
|
19731
19873
|
props: {
|
|
19732
19874
|
controls: true
|
|
19733
19875
|
},
|
|
19734
19876
|
attr: {
|
|
19735
|
-
src: ({ props:
|
|
19736
|
-
playsinline: ({ props:
|
|
19737
|
-
autoplay: ({ props:
|
|
19738
|
-
loop: ({ props:
|
|
19739
|
-
poster: ({ props:
|
|
19740
|
-
muted: ({ props:
|
|
19741
|
-
preload: ({ props:
|
|
19742
|
-
controls: ({ props:
|
|
19877
|
+
src: ({ props: props5 }) => props5.src,
|
|
19878
|
+
playsinline: ({ props: props5 }) => props5.playsinline,
|
|
19879
|
+
autoplay: ({ props: props5 }) => props5.autoplay,
|
|
19880
|
+
loop: ({ props: props5 }) => props5.loop,
|
|
19881
|
+
poster: ({ props: props5 }) => props5.poster,
|
|
19882
|
+
muted: ({ props: props5 }) => props5.muted,
|
|
19883
|
+
preload: ({ props: props5 }) => props5.preload,
|
|
19884
|
+
controls: ({ props: props5 }) => props5.controls
|
|
19743
19885
|
}
|
|
19744
19886
|
};
|
|
19745
19887
|
|
|
@@ -19783,23 +19925,25 @@ var Input = {
|
|
|
19783
19925
|
padding: "Z2 B"
|
|
19784
19926
|
},
|
|
19785
19927
|
attr: {
|
|
19786
|
-
pattern: ({ props:
|
|
19787
|
-
minLength: ({ props:
|
|
19788
|
-
maxLength: ({ props:
|
|
19789
|
-
name: ({ props:
|
|
19790
|
-
autocomplete: ({ props:
|
|
19791
|
-
placeholder: ({ props:
|
|
19792
|
-
value: (
|
|
19793
|
-
const {
|
|
19794
|
-
|
|
19795
|
-
|
|
19796
|
-
|
|
19797
|
-
|
|
19928
|
+
pattern: ({ props: props5 }) => props5.pattern,
|
|
19929
|
+
minLength: ({ props: props5 }) => props5.minlength,
|
|
19930
|
+
maxLength: ({ props: props5 }) => props5.maxlength,
|
|
19931
|
+
name: ({ props: props5 }) => props5.name,
|
|
19932
|
+
autocomplete: ({ props: props5 }) => props5.autocomplete,
|
|
19933
|
+
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
19934
|
+
value: (el, s) => {
|
|
19935
|
+
const { props: props5, state, deps } = el;
|
|
19936
|
+
const { isString: isString13, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = deps;
|
|
19937
|
+
const val = exec7(props5.value, el);
|
|
19938
|
+
if (isString13(val) && val.includes("{{")) {
|
|
19939
|
+
return replaceLiteralsWithObjectFields3(val, state);
|
|
19940
|
+
}
|
|
19941
|
+
return val;
|
|
19798
19942
|
},
|
|
19799
|
-
disabled: ({ props:
|
|
19800
|
-
readonly: ({ props:
|
|
19801
|
-
required: ({ props:
|
|
19802
|
-
type: ({ props:
|
|
19943
|
+
disabled: ({ props: props5 }) => props5.disabled || null,
|
|
19944
|
+
readonly: ({ props: props5 }) => props5.readonly,
|
|
19945
|
+
required: ({ props: props5 }) => props5.required,
|
|
19946
|
+
type: ({ props: props5 }) => props5.type
|
|
19803
19947
|
}
|
|
19804
19948
|
};
|
|
19805
19949
|
|
|
@@ -19822,9 +19966,9 @@ var NumberInput = {
|
|
|
19822
19966
|
}
|
|
19823
19967
|
},
|
|
19824
19968
|
attr: {
|
|
19825
|
-
step: ({ props:
|
|
19826
|
-
min: ({ props:
|
|
19827
|
-
max: ({ props:
|
|
19969
|
+
step: ({ props: props5 }) => props5.step,
|
|
19970
|
+
min: ({ props: props5 }) => props5.min,
|
|
19971
|
+
max: ({ props: props5 }) => props5.max
|
|
19828
19972
|
}
|
|
19829
19973
|
};
|
|
19830
19974
|
|
|
@@ -20029,14 +20173,14 @@ var Select = {
|
|
|
20029
20173
|
disabled: ""
|
|
20030
20174
|
},
|
|
20031
20175
|
attr: {
|
|
20032
|
-
value: ({ props:
|
|
20033
|
-
selected: ({ props:
|
|
20034
|
-
disabled: ({ props:
|
|
20176
|
+
value: ({ props: props5 }) => props5.value,
|
|
20177
|
+
selected: ({ props: props5 }) => props5.selected,
|
|
20178
|
+
disabled: ({ props: props5 }) => props5.disabled
|
|
20035
20179
|
}
|
|
20036
20180
|
},
|
|
20037
20181
|
attr: {
|
|
20038
|
-
name: ({ props:
|
|
20039
|
-
disabled: ({ props:
|
|
20182
|
+
name: ({ props: props5 }) => props5.name,
|
|
20183
|
+
disabled: ({ props: props5 }) => props5.disabled
|
|
20040
20184
|
}
|
|
20041
20185
|
};
|
|
20042
20186
|
|
|
@@ -20097,20 +20241,12 @@ var Field = {
|
|
|
20097
20241
|
align: "center flex-start",
|
|
20098
20242
|
gap: "Y",
|
|
20099
20243
|
boxSizing: "border-box",
|
|
20100
|
-
position: "relative"
|
|
20101
|
-
Input: {
|
|
20102
|
-
padding: "Z2 B2 Z2 B",
|
|
20103
|
-
flex: "1"
|
|
20104
|
-
},
|
|
20105
|
-
Button: {
|
|
20106
|
-
padding: "0",
|
|
20107
|
-
background: "transparent",
|
|
20108
|
-
margin: "- - - auto",
|
|
20109
|
-
fontSize: "Z2"
|
|
20110
|
-
}
|
|
20244
|
+
position: "relative"
|
|
20111
20245
|
},
|
|
20112
20246
|
Input: {
|
|
20113
|
-
placeholder: "Placeholder"
|
|
20247
|
+
placeholder: "Placeholder",
|
|
20248
|
+
padding: "Z2 B2 Z2 B",
|
|
20249
|
+
flex: "1"
|
|
20114
20250
|
},
|
|
20115
20251
|
Icon: {
|
|
20116
20252
|
props: ({ parent }) => ({
|
|
@@ -20119,6 +20255,12 @@ var Field = {
|
|
|
20119
20255
|
margin: "- Z1 - -C",
|
|
20120
20256
|
position: "relative"
|
|
20121
20257
|
})
|
|
20258
|
+
},
|
|
20259
|
+
Button: {
|
|
20260
|
+
padding: "0",
|
|
20261
|
+
background: "transparent",
|
|
20262
|
+
margin: "- - - auto",
|
|
20263
|
+
fontSize: "Z2"
|
|
20122
20264
|
}
|
|
20123
20265
|
};
|
|
20124
20266
|
var FieldTemplate = {
|
|
@@ -20291,7 +20433,7 @@ var Button = {
|
|
|
20291
20433
|
round: "C2"
|
|
20292
20434
|
},
|
|
20293
20435
|
attr: {
|
|
20294
|
-
type: ({ props:
|
|
20436
|
+
type: ({ props: props5 }) => props5.type
|
|
20295
20437
|
}
|
|
20296
20438
|
};
|
|
20297
20439
|
var SquareButton = {
|
|
@@ -20443,9 +20585,9 @@ var ProgressLine = {
|
|
|
20443
20585
|
}
|
|
20444
20586
|
},
|
|
20445
20587
|
attr: {
|
|
20446
|
-
max: ({ props:
|
|
20447
|
-
progress: ({ props:
|
|
20448
|
-
value: ({ props:
|
|
20588
|
+
max: ({ props: props5 }) => props5.max,
|
|
20589
|
+
progress: ({ props: props5 }) => props5.progress,
|
|
20590
|
+
value: ({ props: props5 }) => props5.value
|
|
20449
20591
|
}
|
|
20450
20592
|
};
|
|
20451
20593
|
var ProgressLineWithUnitValue = {
|
|
@@ -20491,9 +20633,9 @@ var ProgressCircle = {
|
|
|
20491
20633
|
}
|
|
20492
20634
|
},
|
|
20493
20635
|
attr: {
|
|
20494
|
-
max: ({ props:
|
|
20495
|
-
progress: ({ props:
|
|
20496
|
-
value: ({ props:
|
|
20636
|
+
max: ({ props: props5 }) => props5.max,
|
|
20637
|
+
progress: ({ props: props5 }) => props5.progress,
|
|
20638
|
+
value: ({ props: props5 }) => props5.value
|
|
20497
20639
|
}
|
|
20498
20640
|
}
|
|
20499
20641
|
};
|
|
@@ -20541,7 +20683,7 @@ var ProgressCircleWithSideUnitValue = {
|
|
|
20541
20683
|
// ../uikit/Range/index.js
|
|
20542
20684
|
var import_utils17 = __toESM(require_cjs());
|
|
20543
20685
|
var import_scratch12 = __toESM(require_cjs2());
|
|
20544
|
-
var
|
|
20686
|
+
var props4 = {
|
|
20545
20687
|
appearance: "none",
|
|
20546
20688
|
width: "100%",
|
|
20547
20689
|
height: "2px",
|
|
@@ -20606,7 +20748,7 @@ var returnPropertyValue = (el, property, def) => {
|
|
|
20606
20748
|
return r + "";
|
|
20607
20749
|
};
|
|
20608
20750
|
var Range = {
|
|
20609
|
-
props,
|
|
20751
|
+
props: props4,
|
|
20610
20752
|
tag: "input",
|
|
20611
20753
|
attr: {
|
|
20612
20754
|
type: "range",
|
|
@@ -20617,17 +20759,17 @@ var Range = {
|
|
|
20617
20759
|
},
|
|
20618
20760
|
on: {
|
|
20619
20761
|
input: (ev, el, s) => {
|
|
20620
|
-
const
|
|
20621
|
-
if ((0, import_utils17.isFunction)(
|
|
20622
|
-
|
|
20762
|
+
const props5 = el.props;
|
|
20763
|
+
if ((0, import_utils17.isFunction)(props5.onInput)) {
|
|
20764
|
+
props5.onInput(ev, el, s);
|
|
20623
20765
|
} else {
|
|
20624
20766
|
s.update({ value: parseFloat(el.node.value) });
|
|
20625
20767
|
}
|
|
20626
20768
|
},
|
|
20627
20769
|
change: (ev, el, s) => {
|
|
20628
|
-
const
|
|
20629
|
-
if ((0, import_utils17.isFunction)(
|
|
20630
|
-
|
|
20770
|
+
const props5 = el.props;
|
|
20771
|
+
if ((0, import_utils17.isFunction)(props5.onChange)) {
|
|
20772
|
+
props5.onChange(ev, el, s);
|
|
20631
20773
|
} else {
|
|
20632
20774
|
s.update({ value: parseFloat(el.node.value) });
|
|
20633
20775
|
}
|
|
@@ -20749,8 +20891,8 @@ var Slider = {
|
|
|
20749
20891
|
click: (ev, el, s) => {
|
|
20750
20892
|
el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
20751
20893
|
const input = el.parent.input;
|
|
20752
|
-
const
|
|
20753
|
-
const value2 = (0, import_utils18.isFunction)(
|
|
20894
|
+
const props5 = input.props;
|
|
20895
|
+
const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
|
|
20754
20896
|
input.node.value = value2;
|
|
20755
20897
|
}
|
|
20756
20898
|
}
|
|
@@ -20786,8 +20928,8 @@ var Slider = {
|
|
|
20786
20928
|
click: (ev, el, s) => {
|
|
20787
20929
|
el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
20788
20930
|
const input = el.parent.input;
|
|
20789
|
-
const
|
|
20790
|
-
const value2 = (0, import_utils18.isFunction)(
|
|
20931
|
+
const props5 = input.props;
|
|
20932
|
+
const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
|
|
20791
20933
|
input.node.value = value2;
|
|
20792
20934
|
}
|
|
20793
20935
|
}
|
|
@@ -20839,12 +20981,12 @@ var CardLabel = {
|
|
|
20839
20981
|
// ../uikit/Avatar/Avatar.js
|
|
20840
20982
|
var Avatar = {
|
|
20841
20983
|
extend: "Img",
|
|
20842
|
-
props: ({ key, props:
|
|
20984
|
+
props: ({ key, props: props5 }) => ({
|
|
20843
20985
|
display: "block",
|
|
20844
20986
|
avatarType: "adventurer-neutral",
|
|
20845
20987
|
borderRadius: "100%",
|
|
20846
20988
|
boxSize: "C+X C+X",
|
|
20847
|
-
src: `https://api.dicebear.com/7.x/${
|
|
20989
|
+
src: `https://api.dicebear.com/7.x/${props5.avatarType || "initials"}/svg?seed=${props5.key || key || "no-avatar"}`
|
|
20848
20990
|
})
|
|
20849
20991
|
};
|
|
20850
20992
|
|
|
@@ -20881,7 +21023,7 @@ var AvatarBundle = {
|
|
|
20881
21023
|
}
|
|
20882
21024
|
},
|
|
20883
21025
|
childExtend: Avatar,
|
|
20884
|
-
$propsCollection: ({ props:
|
|
21026
|
+
$propsCollection: ({ props: props5 }) => props5.options
|
|
20885
21027
|
};
|
|
20886
21028
|
|
|
20887
21029
|
// ../uikit/Avatar/AvatarChooser.js
|
|
@@ -20961,32 +21103,24 @@ var Notification = {
|
|
|
20961
21103
|
align: "flex-start center"
|
|
20962
21104
|
},
|
|
20963
21105
|
IconText: {
|
|
20964
|
-
|
|
20965
|
-
icon: "info outline"
|
|
20966
|
-
}
|
|
21106
|
+
icon: "info outline"
|
|
20967
21107
|
},
|
|
20968
21108
|
Flex: {
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
gap: "X2"
|
|
20973
|
-
},
|
|
21109
|
+
flow: "column",
|
|
21110
|
+
align: "flex-start",
|
|
21111
|
+
gap: "X2",
|
|
20974
21112
|
Title: {
|
|
20975
21113
|
tag: "h6",
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
text: "Notification"
|
|
20981
|
-
}
|
|
21114
|
+
margin: "0",
|
|
21115
|
+
fontWeight: "600",
|
|
21116
|
+
lineHeight: "1em",
|
|
21117
|
+
text: "Notification"
|
|
20982
21118
|
},
|
|
20983
21119
|
P: {
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
text: "is not always a distraction"
|
|
20989
|
-
}
|
|
21120
|
+
fontSize: "Z",
|
|
21121
|
+
margin: "0",
|
|
21122
|
+
text: "is not always a distraction",
|
|
21123
|
+
":empty": { hide: true }
|
|
20990
21124
|
}
|
|
20991
21125
|
}
|
|
20992
21126
|
};
|
|
@@ -21023,7 +21157,7 @@ var Tooltip = {
|
|
|
21023
21157
|
},
|
|
21024
21158
|
attr: { tooltip: true },
|
|
21025
21159
|
Title: {
|
|
21026
|
-
if: ({ parent, props:
|
|
21160
|
+
if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.title) || props5.text,
|
|
21027
21161
|
props: ({ parent }) => ({
|
|
21028
21162
|
width: "fit-content",
|
|
21029
21163
|
fontWeight: 500,
|
|
@@ -21032,7 +21166,7 @@ var Tooltip = {
|
|
|
21032
21166
|
})
|
|
21033
21167
|
},
|
|
21034
21168
|
P: {
|
|
21035
|
-
if: ({ parent, props:
|
|
21169
|
+
if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.description) || props5.text,
|
|
21036
21170
|
props: ({ parent }) => ({
|
|
21037
21171
|
width: "fit-content",
|
|
21038
21172
|
fontSize: "Z2",
|
|
@@ -21045,13 +21179,13 @@ var Tooltip = {
|
|
|
21045
21179
|
};
|
|
21046
21180
|
var TooltipHidden = {
|
|
21047
21181
|
extend: "Tooltip",
|
|
21048
|
-
props: ({ props:
|
|
21182
|
+
props: ({ props: props5 }) => ({
|
|
21049
21183
|
position: "absolute",
|
|
21050
21184
|
pointerEvents: "none",
|
|
21051
21185
|
opacity: "0",
|
|
21052
21186
|
visibility: "hidden",
|
|
21053
21187
|
transition: "C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",
|
|
21054
|
-
...
|
|
21188
|
+
...props5.shapeDirection === "top" ? {
|
|
21055
21189
|
top: "112%",
|
|
21056
21190
|
left: "50%",
|
|
21057
21191
|
transform: "translate3d(-50%,10%,0)",
|
|
@@ -21060,7 +21194,7 @@ var TooltipHidden = {
|
|
|
21060
21194
|
opacity: 1,
|
|
21061
21195
|
visibility: "visible"
|
|
21062
21196
|
}
|
|
21063
|
-
} :
|
|
21197
|
+
} : props5.shapeDirection === "right" ? {
|
|
21064
21198
|
transform: "translate3d(10%,-50%,0)",
|
|
21065
21199
|
right: "112%",
|
|
21066
21200
|
top: "50%",
|
|
@@ -21069,7 +21203,7 @@ var TooltipHidden = {
|
|
|
21069
21203
|
opacity: 1,
|
|
21070
21204
|
visibility: "visible"
|
|
21071
21205
|
}
|
|
21072
|
-
} :
|
|
21206
|
+
} : props5.shapeDirection === "bottom" ? {
|
|
21073
21207
|
transform: "translate3d(-50%,-10%,0)",
|
|
21074
21208
|
bottom: "112%",
|
|
21075
21209
|
left: "50%",
|
|
@@ -21134,7 +21268,7 @@ var Pills = {
|
|
|
21134
21268
|
}
|
|
21135
21269
|
}
|
|
21136
21270
|
},
|
|
21137
|
-
$propsCollection: ({ props:
|
|
21271
|
+
$propsCollection: ({ props: props5, state }) => new Array(props5.qty).fill({})
|
|
21138
21272
|
};
|
|
21139
21273
|
|
|
21140
21274
|
// ../uikit/Tab/index.js
|
|
@@ -21873,7 +22007,7 @@ var DropdownList = {
|
|
|
21873
22007
|
style: { listStyleType: "none" },
|
|
21874
22008
|
transition: "B defaultBezier",
|
|
21875
22009
|
transitionProperty: "transform, opacity, visibility",
|
|
21876
|
-
children: ({ props:
|
|
22010
|
+
children: ({ props: props5 }) => props5.options || [],
|
|
21877
22011
|
childrenAs: "props",
|
|
21878
22012
|
".hidden": {
|
|
21879
22013
|
transform: "translate3d(0,10%,0)",
|
|
@@ -23567,6 +23701,8 @@ var BaseWS = class extends Transport {
|
|
|
23567
23701
|
}
|
|
23568
23702
|
doClose() {
|
|
23569
23703
|
if (typeof this.ws !== "undefined") {
|
|
23704
|
+
this.ws.onerror = () => {
|
|
23705
|
+
};
|
|
23570
23706
|
this.ws.close();
|
|
23571
23707
|
this.ws = null;
|
|
23572
23708
|
}
|
|
@@ -26537,11 +26673,11 @@ var length2 = 0;
|
|
|
26537
26673
|
var position2 = 0;
|
|
26538
26674
|
var character2 = 0;
|
|
26539
26675
|
var characters2 = "";
|
|
26540
|
-
function node2(value2, root, parent, type,
|
|
26541
|
-
return { value: value2, root, parent, type, props:
|
|
26676
|
+
function node2(value2, root, parent, type, props5, children, length3) {
|
|
26677
|
+
return { value: value2, root, parent, type, props: props5, children, line: line2, column: column2, length: length3, return: "" };
|
|
26542
26678
|
}
|
|
26543
|
-
function copy2(root,
|
|
26544
|
-
return assign2(node2("", null, null, "", null, null, 0), root, { length: -root.length },
|
|
26679
|
+
function copy2(root, props5) {
|
|
26680
|
+
return assign2(node2("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
|
|
26545
26681
|
}
|
|
26546
26682
|
function char2() {
|
|
26547
26683
|
return character2;
|
|
@@ -26672,7 +26808,7 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
26672
26808
|
var ampersand = 1;
|
|
26673
26809
|
var character3 = 0;
|
|
26674
26810
|
var type = "";
|
|
26675
|
-
var
|
|
26811
|
+
var props5 = rules;
|
|
26676
26812
|
var children = rulesets;
|
|
26677
26813
|
var reference = rule;
|
|
26678
26814
|
var characters3 = type;
|
|
@@ -26726,17 +26862,17 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
26726
26862
|
case 59:
|
|
26727
26863
|
characters3 += ";";
|
|
26728
26864
|
default:
|
|
26729
|
-
append2(reference = ruleset2(characters3, root, parent, index, offset, rules, points, type,
|
|
26865
|
+
append2(reference = ruleset2(characters3, root, parent, index, offset, rules, points, type, props5 = [], children = [], length3), rulesets);
|
|
26730
26866
|
if (character3 === 123)
|
|
26731
26867
|
if (offset === 0)
|
|
26732
|
-
parse3(characters3, root, reference, reference,
|
|
26868
|
+
parse3(characters3, root, reference, reference, props5, rulesets, length3, points, children);
|
|
26733
26869
|
else
|
|
26734
26870
|
switch (atrule === 99 && charat2(characters3, 3) === 110 ? 100 : atrule) {
|
|
26735
26871
|
case 100:
|
|
26736
26872
|
case 108:
|
|
26737
26873
|
case 109:
|
|
26738
26874
|
case 115:
|
|
26739
|
-
parse3(value2, reference, reference, rule && append2(ruleset2(value2, reference, reference, 0, 0, rules, points, type, rules,
|
|
26875
|
+
parse3(value2, reference, reference, rule && append2(ruleset2(value2, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length3), children), rules, children, length3, points, rule ? props5 : children);
|
|
26740
26876
|
break;
|
|
26741
26877
|
default:
|
|
26742
26878
|
parse3(characters3, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -26772,15 +26908,15 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
26772
26908
|
}
|
|
26773
26909
|
return rulesets;
|
|
26774
26910
|
}
|
|
26775
|
-
function ruleset2(value2, root, parent, index, offset, rules, points, type,
|
|
26911
|
+
function ruleset2(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
|
|
26776
26912
|
var post = offset - 1;
|
|
26777
26913
|
var rule = offset === 0 ? rules : [""];
|
|
26778
26914
|
var size = sizeof2(rule);
|
|
26779
26915
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
26780
26916
|
for (var x = 0, y = substr2(value2, post + 1, post = abs2(j = points[i])), z = value2; x < size; ++x)
|
|
26781
26917
|
if (z = trim2(j > 0 ? rule[x] + " " + y : replace2(y, /&\f/g, rule[x])))
|
|
26782
|
-
|
|
26783
|
-
return node2(value2, root, parent, offset === 0 ? RULESET2 : type,
|
|
26918
|
+
props5[k++] = z;
|
|
26919
|
+
return node2(value2, root, parent, offset === 0 ? RULESET2 : type, props5, children, length3);
|
|
26784
26920
|
}
|
|
26785
26921
|
function comment2(value2, root, parent) {
|
|
26786
26922
|
return node2(value2, root, parent, COMMENT2, from2(char2()), substr2(value2, 2, -2), 0);
|