@symbo.ls/create 2.11.454 → 2.11.458
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 +1030 -921
- package/package.json +5 -5
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -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
|
}
|
|
@@ -1674,7 +1674,9 @@ var require_component = __commonJS({
|
|
|
1674
1674
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
1675
1675
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
1676
1676
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
1677
|
+
checkIfSugar: () => checkIfSugar,
|
|
1677
1678
|
extendizeByKey: () => extendizeByKey,
|
|
1679
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
1678
1680
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
1679
1681
|
getExtendsInElement: () => getExtendsInElement,
|
|
1680
1682
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -1708,12 +1710,13 @@ var require_component = __commonJS({
|
|
|
1708
1710
|
return { ...element, extend };
|
|
1709
1711
|
};
|
|
1710
1712
|
var checkIfSugar = (element, parent, key) => {
|
|
1713
|
+
var _a;
|
|
1711
1714
|
const {
|
|
1712
1715
|
extend,
|
|
1713
|
-
props:
|
|
1716
|
+
props: props5,
|
|
1714
1717
|
childExtend,
|
|
1715
1718
|
extends: extendProps,
|
|
1716
|
-
|
|
1719
|
+
childExtends,
|
|
1717
1720
|
childProps,
|
|
1718
1721
|
children,
|
|
1719
1722
|
on: on2,
|
|
@@ -1721,15 +1724,17 @@ var require_component = __commonJS({
|
|
|
1721
1724
|
$stateCollection,
|
|
1722
1725
|
$propsCollection
|
|
1723
1726
|
} = element;
|
|
1724
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
1725
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
1726
|
-
|
|
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.call(element, "Sugar component includes params for builtin components", { verbose: true });
|
|
1727
1732
|
}
|
|
1728
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
1733
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
1729
1734
|
};
|
|
1730
1735
|
var extendizeByKey = (element, parent, key) => {
|
|
1731
1736
|
const { context } = parent;
|
|
1732
|
-
const { tag, extend,
|
|
1737
|
+
const { tag, extend, childExtends } = element;
|
|
1733
1738
|
const isSugar = checkIfSugar(element, parent, key);
|
|
1734
1739
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
1735
1740
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
@@ -1741,8 +1746,8 @@ var require_component = __commonJS({
|
|
|
1741
1746
|
tag,
|
|
1742
1747
|
props: { ...element }
|
|
1743
1748
|
});
|
|
1744
|
-
if (
|
|
1745
|
-
newElem.childExtend =
|
|
1749
|
+
if (childExtends)
|
|
1750
|
+
newElem.childExtend = childExtends;
|
|
1746
1751
|
return newElem;
|
|
1747
1752
|
} else if (!extend || extend === true) {
|
|
1748
1753
|
return {
|
|
@@ -1771,23 +1776,24 @@ var require_component = __commonJS({
|
|
|
1771
1776
|
const childKey = childElems[i];
|
|
1772
1777
|
const childElem = element[childKey];
|
|
1773
1778
|
const newChild = element.props[childKey];
|
|
1779
|
+
const assignChild = (val) => {
|
|
1780
|
+
element[childKey] = val;
|
|
1781
|
+
delete element.props[childKey];
|
|
1782
|
+
};
|
|
1774
1783
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
1775
1784
|
continue;
|
|
1776
|
-
if (
|
|
1777
|
-
|
|
1785
|
+
if (newChild === null)
|
|
1786
|
+
assignChild(null);
|
|
1787
|
+
else if (!childElem)
|
|
1788
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
1778
1789
|
else {
|
|
1779
|
-
const
|
|
1780
|
-
if (
|
|
1790
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
1791
|
+
if (isSugarChildElem)
|
|
1781
1792
|
continue;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
}
|
|
1786
|
-
element[childKey] = {
|
|
1787
|
-
extend: element[childKey],
|
|
1788
|
-
props: newChild
|
|
1789
|
-
};
|
|
1790
|
-
}
|
|
1793
|
+
assignChild({
|
|
1794
|
+
extend: element[childKey],
|
|
1795
|
+
props: newChild
|
|
1796
|
+
});
|
|
1791
1797
|
}
|
|
1792
1798
|
}
|
|
1793
1799
|
};
|
|
@@ -1821,8 +1827,8 @@ var require_component = __commonJS({
|
|
|
1821
1827
|
return firstCharKey === ".";
|
|
1822
1828
|
};
|
|
1823
1829
|
var hasVariantProp = (element) => {
|
|
1824
|
-
const { props:
|
|
1825
|
-
if ((0, import__.isObject)(
|
|
1830
|
+
const { props: props5 } = element;
|
|
1831
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
1826
1832
|
return true;
|
|
1827
1833
|
};
|
|
1828
1834
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -2707,10 +2713,10 @@ var require_cjs2 = __commonJS({
|
|
|
2707
2713
|
return o;
|
|
2708
2714
|
};
|
|
2709
2715
|
var deepStringify = (obj, stringified = {}) => {
|
|
2710
|
-
var _a;
|
|
2716
|
+
var _a, _b;
|
|
2711
2717
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
2712
|
-
|
|
2713
|
-
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);
|
|
2714
2720
|
}
|
|
2715
2721
|
for (const prop in obj) {
|
|
2716
2722
|
const objProp = obj[prop];
|
|
@@ -3092,13 +3098,13 @@ var require_cjs2 = __commonJS({
|
|
|
3092
3098
|
}
|
|
3093
3099
|
return true;
|
|
3094
3100
|
};
|
|
3095
|
-
var removeFromObject = (obj,
|
|
3096
|
-
if (
|
|
3101
|
+
var removeFromObject = (obj, props5) => {
|
|
3102
|
+
if (props5 === void 0 || props5 === null)
|
|
3097
3103
|
return obj;
|
|
3098
|
-
if ((0, import_types.is)(
|
|
3099
|
-
delete obj[
|
|
3100
|
-
} else if ((0, import_types.isArray)(
|
|
3101
|
-
|
|
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]);
|
|
3102
3108
|
} else {
|
|
3103
3109
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
3104
3110
|
}
|
|
@@ -3344,9 +3350,11 @@ var require_cjs2 = __commonJS({
|
|
|
3344
3350
|
var cookie_exports = {};
|
|
3345
3351
|
__export22(cookie_exports, {
|
|
3346
3352
|
getCookie: () => getCookie,
|
|
3353
|
+
getLocalStorage: () => getLocalStorage,
|
|
3347
3354
|
isMobile: () => isMobile,
|
|
3348
3355
|
removeCookie: () => removeCookie,
|
|
3349
|
-
setCookie: () => setCookie
|
|
3356
|
+
setCookie: () => setCookie,
|
|
3357
|
+
setLocalStorage: () => setLocalStorage
|
|
3350
3358
|
});
|
|
3351
3359
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
3352
3360
|
var import_types = require_types3();
|
|
@@ -3380,6 +3388,27 @@ var require_cjs2 = __commonJS({
|
|
|
3380
3388
|
return;
|
|
3381
3389
|
import_utils272.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
3382
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
|
+
}
|
|
3383
3412
|
}
|
|
3384
3413
|
});
|
|
3385
3414
|
var require_tags3 = __commonJS2({
|
|
@@ -3579,7 +3608,9 @@ var require_cjs2 = __commonJS({
|
|
|
3579
3608
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
3580
3609
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
3581
3610
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
3611
|
+
checkIfSugar: () => checkIfSugar,
|
|
3582
3612
|
extendizeByKey: () => extendizeByKey,
|
|
3613
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
3583
3614
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
3584
3615
|
getExtendsInElement: () => getExtendsInElement,
|
|
3585
3616
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -3613,12 +3644,13 @@ var require_cjs2 = __commonJS({
|
|
|
3613
3644
|
return { ...element, extend };
|
|
3614
3645
|
};
|
|
3615
3646
|
var checkIfSugar = (element, parent, key) => {
|
|
3647
|
+
var _a;
|
|
3616
3648
|
const {
|
|
3617
3649
|
extend,
|
|
3618
|
-
props:
|
|
3650
|
+
props: props5,
|
|
3619
3651
|
childExtend,
|
|
3620
3652
|
extends: extendProps,
|
|
3621
|
-
|
|
3653
|
+
childExtends,
|
|
3622
3654
|
childProps,
|
|
3623
3655
|
children,
|
|
3624
3656
|
on: on2,
|
|
@@ -3626,16 +3658,18 @@ var require_cjs2 = __commonJS({
|
|
|
3626
3658
|
$stateCollection,
|
|
3627
3659
|
$propsCollection
|
|
3628
3660
|
} = element;
|
|
3629
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
3630
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
3631
|
-
|
|
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.call(element, "Sugar component includes params for builtin components", { verbose: true });
|
|
3632
3666
|
}
|
|
3633
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
3667
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
3634
3668
|
};
|
|
3635
3669
|
var extendizeByKey = (element, parent, key) => {
|
|
3636
3670
|
const { context } = parent;
|
|
3637
|
-
const { tag, extend,
|
|
3638
|
-
const isSugar = checkIfSugar(element);
|
|
3671
|
+
const { tag, extend, childExtends } = element;
|
|
3672
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
3639
3673
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
3640
3674
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
3641
3675
|
if (element === isExtendKeyComponent)
|
|
@@ -3646,8 +3680,8 @@ var require_cjs2 = __commonJS({
|
|
|
3646
3680
|
tag,
|
|
3647
3681
|
props: { ...element }
|
|
3648
3682
|
});
|
|
3649
|
-
if (
|
|
3650
|
-
newElem.childExtend =
|
|
3683
|
+
if (childExtends)
|
|
3684
|
+
newElem.childExtend = childExtends;
|
|
3651
3685
|
return newElem;
|
|
3652
3686
|
} else if (!extend || extend === true) {
|
|
3653
3687
|
return {
|
|
@@ -3676,23 +3710,24 @@ var require_cjs2 = __commonJS({
|
|
|
3676
3710
|
const childKey = childElems[i];
|
|
3677
3711
|
const childElem = element[childKey];
|
|
3678
3712
|
const newChild = element.props[childKey];
|
|
3713
|
+
const assignChild = (val) => {
|
|
3714
|
+
element[childKey] = val;
|
|
3715
|
+
delete element.props[childKey];
|
|
3716
|
+
};
|
|
3679
3717
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
3680
3718
|
continue;
|
|
3681
|
-
if (
|
|
3682
|
-
|
|
3719
|
+
if (newChild === null)
|
|
3720
|
+
assignChild(null);
|
|
3721
|
+
else if (!childElem)
|
|
3722
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
3683
3723
|
else {
|
|
3684
|
-
const
|
|
3685
|
-
if (
|
|
3724
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
3725
|
+
if (isSugarChildElem)
|
|
3686
3726
|
continue;
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
}
|
|
3691
|
-
element[childKey] = {
|
|
3692
|
-
extend: element[childKey],
|
|
3693
|
-
props: newChild
|
|
3694
|
-
};
|
|
3695
|
-
}
|
|
3727
|
+
assignChild({
|
|
3728
|
+
extend: element[childKey],
|
|
3729
|
+
props: newChild
|
|
3730
|
+
});
|
|
3696
3731
|
}
|
|
3697
3732
|
}
|
|
3698
3733
|
};
|
|
@@ -3726,8 +3761,8 @@ var require_cjs2 = __commonJS({
|
|
|
3726
3761
|
return firstCharKey === ".";
|
|
3727
3762
|
};
|
|
3728
3763
|
var hasVariantProp = (element) => {
|
|
3729
|
-
const { props:
|
|
3730
|
-
if ((0, import__.isObject)(
|
|
3764
|
+
const { props: props5 } = element;
|
|
3765
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
3731
3766
|
return true;
|
|
3732
3767
|
};
|
|
3733
3768
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -4574,10 +4609,10 @@ var require_cjs2 = __commonJS({
|
|
|
4574
4609
|
return o;
|
|
4575
4610
|
};
|
|
4576
4611
|
var deepStringify = (obj, stringified = {}) => {
|
|
4577
|
-
var _a;
|
|
4612
|
+
var _a, _b;
|
|
4578
4613
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
4579
|
-
|
|
4580
|
-
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);
|
|
4581
4616
|
}
|
|
4582
4617
|
for (const prop in obj) {
|
|
4583
4618
|
const objProp = obj[prop];
|
|
@@ -4959,13 +4994,13 @@ var require_cjs2 = __commonJS({
|
|
|
4959
4994
|
}
|
|
4960
4995
|
return true;
|
|
4961
4996
|
};
|
|
4962
|
-
var removeFromObject = (obj,
|
|
4963
|
-
if (
|
|
4997
|
+
var removeFromObject = (obj, props5) => {
|
|
4998
|
+
if (props5 === void 0 || props5 === null)
|
|
4964
4999
|
return obj;
|
|
4965
|
-
if ((0, import_types.is)(
|
|
4966
|
-
delete obj[
|
|
4967
|
-
} else if ((0, import_types.isArray)(
|
|
4968
|
-
|
|
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]);
|
|
4969
5004
|
} else {
|
|
4970
5005
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
4971
5006
|
}
|
|
@@ -5211,9 +5246,11 @@ var require_cjs2 = __commonJS({
|
|
|
5211
5246
|
var cookie_exports = {};
|
|
5212
5247
|
__export222(cookie_exports, {
|
|
5213
5248
|
getCookie: () => getCookie,
|
|
5249
|
+
getLocalStorage: () => getLocalStorage,
|
|
5214
5250
|
isMobile: () => isMobile,
|
|
5215
5251
|
removeCookie: () => removeCookie,
|
|
5216
|
-
setCookie: () => setCookie
|
|
5252
|
+
setCookie: () => setCookie,
|
|
5253
|
+
setLocalStorage: () => setLocalStorage
|
|
5217
5254
|
});
|
|
5218
5255
|
module222.exports = __toCommonJS222(cookie_exports);
|
|
5219
5256
|
var import_types = require_types22();
|
|
@@ -5247,6 +5284,27 @@ var require_cjs2 = __commonJS({
|
|
|
5247
5284
|
return;
|
|
5248
5285
|
import_utils322.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
5249
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
|
+
}
|
|
5250
5308
|
}
|
|
5251
5309
|
});
|
|
5252
5310
|
var require_tags22 = __commonJS22({
|
|
@@ -5446,7 +5504,9 @@ var require_cjs2 = __commonJS({
|
|
|
5446
5504
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
5447
5505
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
5448
5506
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
5507
|
+
checkIfSugar: () => checkIfSugar,
|
|
5449
5508
|
extendizeByKey: () => extendizeByKey,
|
|
5509
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
5450
5510
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
5451
5511
|
getExtendsInElement: () => getExtendsInElement,
|
|
5452
5512
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -5480,12 +5540,13 @@ var require_cjs2 = __commonJS({
|
|
|
5480
5540
|
return { ...element, extend };
|
|
5481
5541
|
};
|
|
5482
5542
|
var checkIfSugar = (element, parent, key) => {
|
|
5543
|
+
var _a;
|
|
5483
5544
|
const {
|
|
5484
5545
|
extend,
|
|
5485
|
-
props:
|
|
5546
|
+
props: props5,
|
|
5486
5547
|
childExtend,
|
|
5487
5548
|
extends: extendProps,
|
|
5488
|
-
|
|
5549
|
+
childExtends,
|
|
5489
5550
|
childProps,
|
|
5490
5551
|
children,
|
|
5491
5552
|
on: on2,
|
|
@@ -5493,16 +5554,18 @@ var require_cjs2 = __commonJS({
|
|
|
5493
5554
|
$stateCollection,
|
|
5494
5555
|
$propsCollection
|
|
5495
5556
|
} = element;
|
|
5496
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
5497
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
5498
|
-
|
|
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.call(element, "Sugar component includes params for builtin components", { verbose: true });
|
|
5499
5562
|
}
|
|
5500
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
5563
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
5501
5564
|
};
|
|
5502
5565
|
var extendizeByKey = (element, parent, key) => {
|
|
5503
5566
|
const { context } = parent;
|
|
5504
|
-
const { tag, extend,
|
|
5505
|
-
const isSugar = checkIfSugar(element);
|
|
5567
|
+
const { tag, extend, childExtends } = element;
|
|
5568
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
5506
5569
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
5507
5570
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
5508
5571
|
if (element === isExtendKeyComponent)
|
|
@@ -5513,8 +5576,8 @@ var require_cjs2 = __commonJS({
|
|
|
5513
5576
|
tag,
|
|
5514
5577
|
props: { ...element }
|
|
5515
5578
|
});
|
|
5516
|
-
if (
|
|
5517
|
-
newElem.childExtend =
|
|
5579
|
+
if (childExtends)
|
|
5580
|
+
newElem.childExtend = childExtends;
|
|
5518
5581
|
return newElem;
|
|
5519
5582
|
} else if (!extend || extend === true) {
|
|
5520
5583
|
return {
|
|
@@ -5543,23 +5606,24 @@ var require_cjs2 = __commonJS({
|
|
|
5543
5606
|
const childKey = childElems[i];
|
|
5544
5607
|
const childElem = element[childKey];
|
|
5545
5608
|
const newChild = element.props[childKey];
|
|
5609
|
+
const assignChild = (val) => {
|
|
5610
|
+
element[childKey] = val;
|
|
5611
|
+
delete element.props[childKey];
|
|
5612
|
+
};
|
|
5546
5613
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
5547
5614
|
continue;
|
|
5548
|
-
if (
|
|
5549
|
-
|
|
5615
|
+
if (newChild === null)
|
|
5616
|
+
assignChild(null);
|
|
5617
|
+
else if (!childElem)
|
|
5618
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
5550
5619
|
else {
|
|
5551
|
-
const
|
|
5552
|
-
if (
|
|
5620
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
5621
|
+
if (isSugarChildElem)
|
|
5553
5622
|
continue;
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
}
|
|
5558
|
-
element[childKey] = {
|
|
5559
|
-
extend: element[childKey],
|
|
5560
|
-
props: newChild
|
|
5561
|
-
};
|
|
5562
|
-
}
|
|
5623
|
+
assignChild({
|
|
5624
|
+
extend: element[childKey],
|
|
5625
|
+
props: newChild
|
|
5626
|
+
});
|
|
5563
5627
|
}
|
|
5564
5628
|
}
|
|
5565
5629
|
};
|
|
@@ -5593,8 +5657,8 @@ var require_cjs2 = __commonJS({
|
|
|
5593
5657
|
return firstCharKey === ".";
|
|
5594
5658
|
};
|
|
5595
5659
|
var hasVariantProp = (element) => {
|
|
5596
|
-
const { props:
|
|
5597
|
-
if ((0, import__.isObject)(
|
|
5660
|
+
const { props: props5 } = element;
|
|
5661
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
5598
5662
|
return true;
|
|
5599
5663
|
};
|
|
5600
5664
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -6486,8 +6550,8 @@ var require_cjs2 = __commonJS({
|
|
|
6486
6550
|
18: "S",
|
|
6487
6551
|
19: "T"
|
|
6488
6552
|
};
|
|
6489
|
-
var setSequenceValue = (
|
|
6490
|
-
const { key, variable, value: value2, scaling, index, scalingVariable } =
|
|
6553
|
+
var setSequenceValue = (props5, sequenceProps) => {
|
|
6554
|
+
const { key, variable, value: value2, scaling, index, scalingVariable } = props5;
|
|
6491
6555
|
sequenceProps.sequence[key] = {
|
|
6492
6556
|
key,
|
|
6493
6557
|
decimal: ~~(value2 * 100) / 100,
|
|
@@ -6535,8 +6599,8 @@ var require_cjs2 = __commonJS({
|
|
|
6535
6599
|
var getSubratio = (base, ratio) => {
|
|
6536
6600
|
return getSubratioDifference(base, ratio).map((v) => v / base);
|
|
6537
6601
|
};
|
|
6538
|
-
var generateSubSequence = (
|
|
6539
|
-
const { key, base, value: value2, ratio, variable, index } =
|
|
6602
|
+
var generateSubSequence = (props5, sequenceProps) => {
|
|
6603
|
+
const { key, base, value: value2, ratio, variable, index } = props5;
|
|
6540
6604
|
const next3 = value2 * ratio;
|
|
6541
6605
|
const diffRounded = ~~next3 - ~~value2;
|
|
6542
6606
|
let arr;
|
|
@@ -6575,7 +6639,7 @@ var require_cjs2 = __commonJS({
|
|
|
6575
6639
|
const scaling = ~~(value2 / base * 100) / 100;
|
|
6576
6640
|
const variable = prefix3 + letterKey;
|
|
6577
6641
|
const scalingVariable = setScalingVar(key, sequenceProps);
|
|
6578
|
-
const
|
|
6642
|
+
const props5 = {
|
|
6579
6643
|
key: letterKey,
|
|
6580
6644
|
variable,
|
|
6581
6645
|
value: value2,
|
|
@@ -6585,9 +6649,9 @@ var require_cjs2 = __commonJS({
|
|
|
6585
6649
|
ratio,
|
|
6586
6650
|
index: key
|
|
6587
6651
|
};
|
|
6588
|
-
setSequenceValue(
|
|
6652
|
+
setSequenceValue(props5, sequenceProps);
|
|
6589
6653
|
if (subSequence)
|
|
6590
|
-
generateSubSequence(
|
|
6654
|
+
generateSubSequence(props5, sequenceProps);
|
|
6591
6655
|
}
|
|
6592
6656
|
return sequenceProps;
|
|
6593
6657
|
};
|
|
@@ -7263,20 +7327,20 @@ var require_cjs2 = __commonJS({
|
|
|
7263
7327
|
applyMediaSequenceVars(FACTORY2, prop);
|
|
7264
7328
|
}
|
|
7265
7329
|
};
|
|
7266
|
-
var applyHeadings = (
|
|
7330
|
+
var applyHeadings = (props5) => {
|
|
7267
7331
|
const CONFIG22 = getActiveConfig3();
|
|
7268
|
-
if (
|
|
7269
|
-
const unit =
|
|
7270
|
-
const HEADINGS = findHeadings(
|
|
7271
|
-
const { templates } =
|
|
7332
|
+
if (props5.h1Matches) {
|
|
7333
|
+
const unit = props5.unit;
|
|
7334
|
+
const HEADINGS = findHeadings(props5);
|
|
7335
|
+
const { templates } = props5;
|
|
7272
7336
|
for (const k in HEADINGS) {
|
|
7273
7337
|
const headerName = `h${parseInt(k) + 1}`;
|
|
7274
7338
|
const headerStyle = templates[headerName];
|
|
7275
7339
|
templates[headerName] = {
|
|
7276
7340
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
7277
7341
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
7278
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
7279
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
7342
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props5.lineHeight,
|
|
7343
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.letterSpacing,
|
|
7280
7344
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
7281
7345
|
};
|
|
7282
7346
|
}
|
|
@@ -7380,11 +7444,11 @@ var require_cjs2 = __commonJS({
|
|
|
7380
7444
|
sequence
|
|
7381
7445
|
);
|
|
7382
7446
|
};
|
|
7383
|
-
var getSpacingBasedOnRatio4 = (
|
|
7447
|
+
var getSpacingBasedOnRatio4 = (props5, propertyName, val) => {
|
|
7384
7448
|
const CONFIG22 = getActiveConfig3();
|
|
7385
7449
|
const { SPACING: SPACING22 } = CONFIG22;
|
|
7386
|
-
const { spacingRatio, unit } =
|
|
7387
|
-
const value2 = val ||
|
|
7450
|
+
const { spacingRatio, unit } = props5;
|
|
7451
|
+
const value2 = val || props5[propertyName];
|
|
7388
7452
|
if (spacingRatio) {
|
|
7389
7453
|
let sequenceProps = SPACING22[spacingRatio];
|
|
7390
7454
|
if (!sequenceProps) {
|
|
@@ -7754,7 +7818,7 @@ var require_cjs2 = __commonJS({
|
|
|
7754
7818
|
return v;
|
|
7755
7819
|
}).join(" ");
|
|
7756
7820
|
};
|
|
7757
|
-
var transformDuration2 = (duration,
|
|
7821
|
+
var transformDuration2 = (duration, props5, propertyName) => {
|
|
7758
7822
|
if (!(0, import_utils252.isString)(duration))
|
|
7759
7823
|
return;
|
|
7760
7824
|
return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
|
|
@@ -7769,11 +7833,11 @@ var require_cjs2 = __commonJS({
|
|
|
7769
7833
|
const prop = propertyName.toLowerCase();
|
|
7770
7834
|
return (prop.includes("width") || prop.includes("height")) && !prop.includes("border");
|
|
7771
7835
|
};
|
|
7772
|
-
var transformSize2 = (propertyName, val,
|
|
7773
|
-
let value2 = val ||
|
|
7836
|
+
var transformSize2 = (propertyName, val, props5 = {}, opts = {}) => {
|
|
7837
|
+
let value2 = val || props5[propertyName];
|
|
7774
7838
|
if ((0, import_utils252.isUndefined)(value2) && (0, import_utils252.isNull)(value2))
|
|
7775
7839
|
return;
|
|
7776
|
-
const shouldScaleBoxSize =
|
|
7840
|
+
const shouldScaleBoxSize = props5.scaleBoxSize;
|
|
7777
7841
|
const isBoxSize = checkIfBoxSize(propertyName);
|
|
7778
7842
|
if (!shouldScaleBoxSize && isBoxSize && (0, import_utils252.isString)(value2)) {
|
|
7779
7843
|
value2 = value2.split(" ").map((v) => {
|
|
@@ -7785,13 +7849,13 @@ var require_cjs2 = __commonJS({
|
|
|
7785
7849
|
}).join(" ");
|
|
7786
7850
|
}
|
|
7787
7851
|
if (opts.ratio) {
|
|
7788
|
-
return getSpacingBasedOnRatio4(
|
|
7852
|
+
return getSpacingBasedOnRatio4(props5, propertyName, value2);
|
|
7789
7853
|
} else {
|
|
7790
7854
|
return getSpacingByKey3(value2, propertyName);
|
|
7791
7855
|
}
|
|
7792
7856
|
};
|
|
7793
|
-
var transformSizeRatio2 = (propertyName,
|
|
7794
|
-
return transformSize2(propertyName, null,
|
|
7857
|
+
var transformSizeRatio2 = (propertyName, props5) => {
|
|
7858
|
+
return transformSize2(propertyName, null, props5, {
|
|
7795
7859
|
ratio: true
|
|
7796
7860
|
});
|
|
7797
7861
|
};
|
|
@@ -7836,11 +7900,11 @@ var require_cjs2 = __commonJS({
|
|
|
7836
7900
|
if (CONFIG22.verbose)
|
|
7837
7901
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
7838
7902
|
};
|
|
7839
|
-
var setEach = (factoryName,
|
|
7903
|
+
var setEach = (factoryName, props5) => {
|
|
7840
7904
|
const CONFIG22 = getActiveConfig3();
|
|
7841
7905
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
7842
|
-
const keys = Object.keys(
|
|
7843
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
7906
|
+
const keys = Object.keys(props5);
|
|
7907
|
+
keys.map((key) => setValue(FACTORY_NAME, props5[key], key));
|
|
7844
7908
|
return CONFIG22[FACTORY_NAME];
|
|
7845
7909
|
};
|
|
7846
7910
|
var SET_OPTIONS2 = {};
|
|
@@ -8659,10 +8723,10 @@ var require_cjs3 = __commonJS({
|
|
|
8659
8723
|
return o;
|
|
8660
8724
|
};
|
|
8661
8725
|
var deepStringify = (obj, stringified = {}) => {
|
|
8662
|
-
var _a;
|
|
8726
|
+
var _a, _b;
|
|
8663
8727
|
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
8664
|
-
|
|
8665
|
-
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);
|
|
8666
8730
|
}
|
|
8667
8731
|
for (const prop in obj) {
|
|
8668
8732
|
const objProp = obj[prop];
|
|
@@ -9044,13 +9108,13 @@ var require_cjs3 = __commonJS({
|
|
|
9044
9108
|
}
|
|
9045
9109
|
return true;
|
|
9046
9110
|
};
|
|
9047
|
-
var removeFromObject = (obj,
|
|
9048
|
-
if (
|
|
9111
|
+
var removeFromObject = (obj, props5) => {
|
|
9112
|
+
if (props5 === void 0 || props5 === null)
|
|
9049
9113
|
return obj;
|
|
9050
|
-
if ((0, import_types.is)(
|
|
9051
|
-
delete obj[
|
|
9052
|
-
} else if ((0, import_types.isArray)(
|
|
9053
|
-
|
|
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]);
|
|
9054
9118
|
} else {
|
|
9055
9119
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
9056
9120
|
}
|
|
@@ -9296,9 +9360,11 @@ var require_cjs3 = __commonJS({
|
|
|
9296
9360
|
var cookie_exports = {};
|
|
9297
9361
|
__export22(cookie_exports, {
|
|
9298
9362
|
getCookie: () => getCookie,
|
|
9363
|
+
getLocalStorage: () => getLocalStorage,
|
|
9299
9364
|
isMobile: () => isMobile,
|
|
9300
9365
|
removeCookie: () => removeCookie,
|
|
9301
|
-
setCookie: () => setCookie
|
|
9366
|
+
setCookie: () => setCookie,
|
|
9367
|
+
setLocalStorage: () => setLocalStorage
|
|
9302
9368
|
});
|
|
9303
9369
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
9304
9370
|
var import_types = require_types3();
|
|
@@ -9332,6 +9398,27 @@ var require_cjs3 = __commonJS({
|
|
|
9332
9398
|
return;
|
|
9333
9399
|
import_utils33.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
9334
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
|
+
}
|
|
9335
9422
|
}
|
|
9336
9423
|
});
|
|
9337
9424
|
var require_tags3 = __commonJS2({
|
|
@@ -9531,7 +9618,9 @@ var require_cjs3 = __commonJS({
|
|
|
9531
9618
|
applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
|
|
9532
9619
|
checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
|
|
9533
9620
|
checkIfKeyIsProperty: () => checkIfKeyIsProperty,
|
|
9621
|
+
checkIfSugar: () => checkIfSugar,
|
|
9534
9622
|
extendizeByKey: () => extendizeByKey,
|
|
9623
|
+
getCapitalCaseKeys: () => getCapitalCaseKeys,
|
|
9535
9624
|
getChildrenComponentsByKey: () => getChildrenComponentsByKey,
|
|
9536
9625
|
getExtendsInElement: () => getExtendsInElement,
|
|
9537
9626
|
hasVariantProp: () => hasVariantProp,
|
|
@@ -9565,12 +9654,13 @@ var require_cjs3 = __commonJS({
|
|
|
9565
9654
|
return { ...element, extend };
|
|
9566
9655
|
};
|
|
9567
9656
|
var checkIfSugar = (element, parent, key) => {
|
|
9657
|
+
var _a;
|
|
9568
9658
|
const {
|
|
9569
9659
|
extend,
|
|
9570
|
-
props:
|
|
9660
|
+
props: props5,
|
|
9571
9661
|
childExtend,
|
|
9572
9662
|
extends: extendProps,
|
|
9573
|
-
|
|
9663
|
+
childExtends,
|
|
9574
9664
|
childProps,
|
|
9575
9665
|
children,
|
|
9576
9666
|
on: on2,
|
|
@@ -9578,16 +9668,18 @@ var require_cjs3 = __commonJS({
|
|
|
9578
9668
|
$stateCollection,
|
|
9579
9669
|
$propsCollection
|
|
9580
9670
|
} = element;
|
|
9581
|
-
const hasComponentAttrs = extend || childExtend ||
|
|
9582
|
-
if (hasComponentAttrs && (childProps || extendProps || children ||
|
|
9583
|
-
|
|
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.call(element, "Sugar component includes params for builtin components", { verbose: true });
|
|
9584
9676
|
}
|
|
9585
|
-
return !hasComponentAttrs || childProps || extendProps || children ||
|
|
9677
|
+
return !hasComponentAttrs || childProps || extendProps || children || childExtends;
|
|
9586
9678
|
};
|
|
9587
9679
|
var extendizeByKey = (element, parent, key) => {
|
|
9588
9680
|
const { context } = parent;
|
|
9589
|
-
const { tag, extend,
|
|
9590
|
-
const isSugar = checkIfSugar(element);
|
|
9681
|
+
const { tag, extend, childExtends } = element;
|
|
9682
|
+
const isSugar = checkIfSugar(element, parent, key);
|
|
9591
9683
|
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
|
|
9592
9684
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
9593
9685
|
if (element === isExtendKeyComponent)
|
|
@@ -9598,8 +9690,8 @@ var require_cjs3 = __commonJS({
|
|
|
9598
9690
|
tag,
|
|
9599
9691
|
props: { ...element }
|
|
9600
9692
|
});
|
|
9601
|
-
if (
|
|
9602
|
-
newElem.childExtend =
|
|
9693
|
+
if (childExtends)
|
|
9694
|
+
newElem.childExtend = childExtends;
|
|
9603
9695
|
return newElem;
|
|
9604
9696
|
} else if (!extend || extend === true) {
|
|
9605
9697
|
return {
|
|
@@ -9628,23 +9720,24 @@ var require_cjs3 = __commonJS({
|
|
|
9628
9720
|
const childKey = childElems[i];
|
|
9629
9721
|
const childElem = element[childKey];
|
|
9630
9722
|
const newChild = element.props[childKey];
|
|
9723
|
+
const assignChild = (val) => {
|
|
9724
|
+
element[childKey] = val;
|
|
9725
|
+
delete element.props[childKey];
|
|
9726
|
+
};
|
|
9631
9727
|
if (newChild == null ? void 0 : newChild.ignoreExtend)
|
|
9632
9728
|
continue;
|
|
9633
|
-
if (
|
|
9634
|
-
|
|
9729
|
+
if (newChild === null)
|
|
9730
|
+
assignChild(null);
|
|
9731
|
+
else if (!childElem)
|
|
9732
|
+
assignChild((0, import__.deepCloneWithExtend)(newChild));
|
|
9635
9733
|
else {
|
|
9636
|
-
const
|
|
9637
|
-
if (
|
|
9734
|
+
const isSugarChildElem = checkIfSugar(childElem, parent, key);
|
|
9735
|
+
if (isSugarChildElem)
|
|
9638
9736
|
continue;
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
}
|
|
9643
|
-
element[childKey] = {
|
|
9644
|
-
extend: element[childKey],
|
|
9645
|
-
props: newChild
|
|
9646
|
-
};
|
|
9647
|
-
}
|
|
9737
|
+
assignChild({
|
|
9738
|
+
extend: element[childKey],
|
|
9739
|
+
props: newChild
|
|
9740
|
+
});
|
|
9648
9741
|
}
|
|
9649
9742
|
}
|
|
9650
9743
|
};
|
|
@@ -9678,8 +9771,8 @@ var require_cjs3 = __commonJS({
|
|
|
9678
9771
|
return firstCharKey === ".";
|
|
9679
9772
|
};
|
|
9680
9773
|
var hasVariantProp = (element) => {
|
|
9681
|
-
const { props:
|
|
9682
|
-
if ((0, import__.isObject)(
|
|
9774
|
+
const { props: props5 } = element;
|
|
9775
|
+
if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
|
|
9683
9776
|
return true;
|
|
9684
9777
|
};
|
|
9685
9778
|
var getChildrenComponentsByKey = (key, el) => {
|
|
@@ -10131,9 +10224,9 @@ var require_on = __commonJS({
|
|
|
10131
10224
|
}
|
|
10132
10225
|
};
|
|
10133
10226
|
var applyAnimationFrame = (element, options) => {
|
|
10134
|
-
const { props:
|
|
10227
|
+
const { props: props5, on: on2, __ref: ref } = element;
|
|
10135
10228
|
const { frameListeners } = ref.root.data;
|
|
10136
|
-
if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (
|
|
10229
|
+
if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (props5 == null ? void 0 : props5.onFrame))) {
|
|
10137
10230
|
const { registerFrameListener } = element.context.utils;
|
|
10138
10231
|
if (registerFrameListener)
|
|
10139
10232
|
registerFrameListener(element);
|
|
@@ -11042,8 +11135,8 @@ var require_create = __commonJS({
|
|
|
11042
11135
|
return dependentState;
|
|
11043
11136
|
};
|
|
11044
11137
|
var checkForTypes = (element) => {
|
|
11045
|
-
const { state: orig, props:
|
|
11046
|
-
const state = (
|
|
11138
|
+
const { state: orig, props: props5, __ref: ref } = element;
|
|
11139
|
+
const state = (props5 == null ? void 0 : props5.state) || orig;
|
|
11047
11140
|
if ((0, import_utils32.isFunction)(state)) {
|
|
11048
11141
|
ref.__state = state;
|
|
11049
11142
|
return (0, import_utils32.exec)(state, element);
|
|
@@ -11402,14 +11495,14 @@ var require_cache = __commonJS({
|
|
|
11402
11495
|
}
|
|
11403
11496
|
};
|
|
11404
11497
|
var detectTag = (element) => {
|
|
11405
|
-
let { tag, key, props:
|
|
11498
|
+
let { tag, key, props: props5 } = element;
|
|
11406
11499
|
tag = (0, import_utils32.exec)(tag, element);
|
|
11407
11500
|
if (tag === true)
|
|
11408
11501
|
tag = key;
|
|
11409
|
-
if ((0, import_utils32.isObject)(
|
|
11410
|
-
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);
|
|
11411
11504
|
if (tagExists)
|
|
11412
|
-
return
|
|
11505
|
+
return props5.tag;
|
|
11413
11506
|
}
|
|
11414
11507
|
if ((0, import_utils32.isString)(tag)) {
|
|
11415
11508
|
if ((0, import_utils32.isValidHtmlTag)(tag))
|
|
@@ -11596,6 +11689,7 @@ var require_inherit2 = __commonJS({
|
|
|
11596
11689
|
return propValue;
|
|
11597
11690
|
};
|
|
11598
11691
|
var inheritParentProps = (element, parent) => {
|
|
11692
|
+
var _a;
|
|
11599
11693
|
let propsStack = [];
|
|
11600
11694
|
const parentProps = (0, import_utils32.exec)(parent, parent.state).props;
|
|
11601
11695
|
const matchParent = parent.props && parentProps[element.key];
|
|
@@ -11613,7 +11707,7 @@ var require_inherit2 = __commonJS({
|
|
|
11613
11707
|
propsStack.push(objectizeStringProperty(matchParent));
|
|
11614
11708
|
}
|
|
11615
11709
|
}
|
|
11616
|
-
if (matchParentChildProps)
|
|
11710
|
+
if (matchParentChildProps && !((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.ignoreChildProps))
|
|
11617
11711
|
propsStack.push(matchParentChildProps);
|
|
11618
11712
|
return propsStack;
|
|
11619
11713
|
};
|
|
@@ -11651,27 +11745,27 @@ var require_create3 = __commonJS({
|
|
|
11651
11745
|
var import_ignore = require_ignore2();
|
|
11652
11746
|
var import_inherit = require_inherit2();
|
|
11653
11747
|
var createPropsStack = (element, parent) => {
|
|
11654
|
-
const { props:
|
|
11748
|
+
const { props: props5, __ref: ref } = element;
|
|
11655
11749
|
const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
11656
|
-
if ((0, import_utils32.isObject)(
|
|
11657
|
-
propsStack.push(
|
|
11658
|
-
else if (
|
|
11750
|
+
if ((0, import_utils32.isObject)(props5))
|
|
11751
|
+
propsStack.push(props5);
|
|
11752
|
+
else if (props5 === "inherit" && parent.props)
|
|
11659
11753
|
propsStack.push(parent.props);
|
|
11660
|
-
else if (
|
|
11661
|
-
propsStack.push(
|
|
11754
|
+
else if (props5)
|
|
11755
|
+
propsStack.push(props5);
|
|
11662
11756
|
if ((0, import_utils32.isArray)(ref.__extend)) {
|
|
11663
11757
|
ref.__extend.forEach((extend) => {
|
|
11664
|
-
if (extend.props && extend.props !==
|
|
11758
|
+
if (extend.props && extend.props !== props5)
|
|
11665
11759
|
propsStack.push(extend.props);
|
|
11666
11760
|
});
|
|
11667
11761
|
}
|
|
11668
11762
|
ref.__props = propsStack;
|
|
11669
11763
|
return propsStack;
|
|
11670
11764
|
};
|
|
11671
|
-
var syncProps = (
|
|
11765
|
+
var syncProps = (props5, element, opts) => {
|
|
11672
11766
|
element.props = {};
|
|
11673
11767
|
const mergedProps = {};
|
|
11674
|
-
|
|
11768
|
+
props5.forEach((v) => {
|
|
11675
11769
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
11676
11770
|
return;
|
|
11677
11771
|
let execProps;
|
|
@@ -11717,9 +11811,9 @@ var require_create3 = __commonJS({
|
|
|
11717
11811
|
Object.setPrototypeOf(element.props, methods);
|
|
11718
11812
|
return element;
|
|
11719
11813
|
};
|
|
11720
|
-
function update(
|
|
11814
|
+
function update(props5, options) {
|
|
11721
11815
|
const element = this.__element;
|
|
11722
|
-
element.update({ props:
|
|
11816
|
+
element.update({ props: props5 }, options);
|
|
11723
11817
|
}
|
|
11724
11818
|
}
|
|
11725
11819
|
});
|
|
@@ -11869,6 +11963,8 @@ var require_object2 = __commonJS({
|
|
|
11869
11963
|
"lookup",
|
|
11870
11964
|
"lookdown",
|
|
11871
11965
|
"lookdownAll",
|
|
11966
|
+
"getRef",
|
|
11967
|
+
"getPath",
|
|
11872
11968
|
"setNodeStyles",
|
|
11873
11969
|
"spotByPath",
|
|
11874
11970
|
"keys",
|
|
@@ -12179,8 +12275,8 @@ var require_extend = __commonJS({
|
|
|
12179
12275
|
var applyExtend = (element, parent, options = {}) => {
|
|
12180
12276
|
if ((0, import_utils32.isFunction)(element))
|
|
12181
12277
|
element = (0, import_utils32.exec)(element, parent);
|
|
12182
|
-
const { props:
|
|
12183
|
-
let extend = (
|
|
12278
|
+
const { props: props5, __ref } = element;
|
|
12279
|
+
let extend = (props5 == null ? void 0 : props5.extends) || element.extends || element.extend;
|
|
12184
12280
|
const context = element.context || parent.context;
|
|
12185
12281
|
extend = (0, import_utils210.fallbackStringExtend)(extend, context, options);
|
|
12186
12282
|
const extendStack = (0, import_utils210.getExtendStack)(extend, context);
|
|
@@ -12189,9 +12285,9 @@ var require_extend = __commonJS({
|
|
|
12189
12285
|
let childExtendStack = [];
|
|
12190
12286
|
if (parent) {
|
|
12191
12287
|
element.parent = parent;
|
|
12192
|
-
if (!options.ignoreChildExtend && !(
|
|
12288
|
+
if (!options.ignoreChildExtend && !(props5 && props5.ignoreChildExtend)) {
|
|
12193
12289
|
childExtendStack = (0, import_utils210.getExtendStack)(parent.childExtend, context);
|
|
12194
|
-
const ignoreChildExtendRecursive =
|
|
12290
|
+
const ignoreChildExtendRecursive = props5 && props5.ignoreChildExtendRecursive;
|
|
12195
12291
|
if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
|
|
12196
12292
|
const canExtendRecursive = element.key !== "__text";
|
|
12197
12293
|
if (canExtendRecursive) {
|
|
@@ -12299,28 +12395,28 @@ var require_component2 = __commonJS({
|
|
|
12299
12395
|
let variantElement = element[variant];
|
|
12300
12396
|
if (!variantElement)
|
|
12301
12397
|
return;
|
|
12302
|
-
const
|
|
12398
|
+
const props5 = (0, import_utils32.isObject)(variantProps) ? variantProps : {};
|
|
12303
12399
|
if ((0, import_utils32.isString)(variantElement)) {
|
|
12304
12400
|
variantElement = {
|
|
12305
|
-
extend: [{ props:
|
|
12401
|
+
extend: [{ props: props5 }, variantElement]
|
|
12306
12402
|
};
|
|
12307
12403
|
} else if (variantElement.extend) {
|
|
12308
|
-
variantElement = (0, import_utils32.addAdditionalExtend)({ props:
|
|
12404
|
+
variantElement = (0, import_utils32.addAdditionalExtend)({ props: props5 }, variantElement);
|
|
12309
12405
|
}
|
|
12310
12406
|
const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
|
|
12311
12407
|
const { parent, ...rest } = extendedVariant;
|
|
12312
12408
|
return (0, import_utils32.overwriteDeep)(element, rest);
|
|
12313
12409
|
};
|
|
12314
12410
|
var applyVariant = (element) => {
|
|
12315
|
-
const { props:
|
|
12411
|
+
const { props: props5 } = element;
|
|
12316
12412
|
if (!(0, import_utils32.hasVariantProp)(element))
|
|
12317
12413
|
return element;
|
|
12318
|
-
const { variant } =
|
|
12414
|
+
const { variant } = props5;
|
|
12319
12415
|
overwriteVariant(element, `.${variant}`);
|
|
12320
12416
|
const elKeys = Object.keys(element).filter((key) => (0, import_utils32.isVariant)(key));
|
|
12321
12417
|
elKeys.forEach((variant2) => {
|
|
12322
12418
|
const slicedVariantElementKey = variant2.slice(1);
|
|
12323
|
-
const variantElementProps =
|
|
12419
|
+
const variantElementProps = props5[slicedVariantElementKey];
|
|
12324
12420
|
if (variantElementProps)
|
|
12325
12421
|
overwriteVariant(element, variant2, variantElementProps);
|
|
12326
12422
|
});
|
|
@@ -12585,26 +12681,28 @@ var require_set = __commonJS({
|
|
|
12585
12681
|
const content = (0, import_utils32.setContentKey)(element, options);
|
|
12586
12682
|
const __contentRef = content && content.__ref;
|
|
12587
12683
|
const lazyLoad = element.props && element.props.lazyLoad;
|
|
12588
|
-
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
12589
|
-
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
12590
|
-
if (beforeUpdateReturns === false)
|
|
12591
|
-
return element;
|
|
12592
|
-
}
|
|
12593
12684
|
const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
|
|
12594
12685
|
if (options.preventContentUpdate === true && !hasCollection)
|
|
12595
12686
|
return;
|
|
12596
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
|
+
}
|
|
12597
12693
|
if (content == null ? void 0 : content.update)
|
|
12598
12694
|
content.update();
|
|
12695
|
+
if (!options.preventUpdateListener)
|
|
12696
|
+
(0, import_event.triggerEventOn)("update", element, options);
|
|
12599
12697
|
return;
|
|
12600
12698
|
}
|
|
12601
12699
|
if (params) {
|
|
12602
|
-
const { childExtend, childProps, props:
|
|
12700
|
+
const { childExtend, childProps, props: props5 } = params;
|
|
12603
12701
|
if (!childExtend && element.childExtend)
|
|
12604
12702
|
params.childExtend = element.childExtend;
|
|
12605
12703
|
if (!childProps && element.childProps)
|
|
12606
12704
|
params.childProps = element.childProps;
|
|
12607
|
-
if (!(
|
|
12705
|
+
if (!(props5 == null ? void 0 : props5.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
|
|
12608
12706
|
params.props.childProps = element.props.childProps;
|
|
12609
12707
|
}
|
|
12610
12708
|
if (lazyLoad) {
|
|
@@ -12612,8 +12710,6 @@ var require_set = __commonJS({
|
|
|
12612
12710
|
} else
|
|
12613
12711
|
resetElement(params, element, options);
|
|
12614
12712
|
}
|
|
12615
|
-
if (!options.preventUpdateListener)
|
|
12616
|
-
(0, import_event.triggerEventOn)("update", element, options);
|
|
12617
12713
|
return element;
|
|
12618
12714
|
};
|
|
12619
12715
|
var set_default = set3;
|
|
@@ -13042,6 +13138,8 @@ var require_registry = __commonJS({
|
|
|
13042
13138
|
variables: {},
|
|
13043
13139
|
lookup: {},
|
|
13044
13140
|
lookdown: {},
|
|
13141
|
+
getRef: {},
|
|
13142
|
+
getPath: {},
|
|
13045
13143
|
lookdownAll: {},
|
|
13046
13144
|
setNodeStyles: {},
|
|
13047
13145
|
spotByPath: {},
|
|
@@ -13176,6 +13274,8 @@ var require_methods2 = __commonJS({
|
|
|
13176
13274
|
defineSetter: () => defineSetter,
|
|
13177
13275
|
error: () => error,
|
|
13178
13276
|
get: () => get,
|
|
13277
|
+
getPath: () => getPath,
|
|
13278
|
+
getRef: () => getRef,
|
|
13179
13279
|
isMethod: () => isMethod,
|
|
13180
13280
|
keys: () => keys,
|
|
13181
13281
|
log: () => log,
|
|
@@ -13315,12 +13415,18 @@ var require_methods2 = __commonJS({
|
|
|
13315
13415
|
element.update({ props: param }, options);
|
|
13316
13416
|
return element;
|
|
13317
13417
|
}
|
|
13418
|
+
function getRef() {
|
|
13419
|
+
return this.__ref;
|
|
13420
|
+
}
|
|
13421
|
+
function getPath() {
|
|
13422
|
+
return this.getRef().path;
|
|
13423
|
+
}
|
|
13318
13424
|
var defineSetter = (element, key, get2, set3) => Object.defineProperty(element, key, { get: get2, set: set3 });
|
|
13319
13425
|
function keys() {
|
|
13320
13426
|
const element = this;
|
|
13321
13427
|
const keys2 = [];
|
|
13322
13428
|
for (const param in element) {
|
|
13323
|
-
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)) {
|
|
13324
13430
|
continue;
|
|
13325
13431
|
}
|
|
13326
13432
|
keys2.push(param);
|
|
@@ -13345,8 +13451,8 @@ var require_methods2 = __commonJS({
|
|
|
13345
13451
|
return;
|
|
13346
13452
|
obj[v] = JSON.parse(JSON.stringify(val || {}));
|
|
13347
13453
|
} else if (v === "props") {
|
|
13348
|
-
const { __element, update, ...
|
|
13349
|
-
obj[v] =
|
|
13454
|
+
const { __element, update, ...props5 } = element[v];
|
|
13455
|
+
obj[v] = props5;
|
|
13350
13456
|
} else if ((0, import_utils32.isDefined)(val) && Object.hasOwnProperty.call(element, v))
|
|
13351
13457
|
obj[v] = val;
|
|
13352
13458
|
});
|
|
@@ -13376,9 +13482,9 @@ var require_methods2 = __commonJS({
|
|
|
13376
13482
|
} else {
|
|
13377
13483
|
console.log(ref.path);
|
|
13378
13484
|
const keys2 = element.keys();
|
|
13379
|
-
keys2.forEach((v) => console.log(`%c${v}:
|
|
13380
|
-
`, "font-weight: bold", element[v]));
|
|
13485
|
+
keys2.forEach((v) => console.log(`%c${v}:`, "font-weight: bold", element[v]));
|
|
13381
13486
|
}
|
|
13487
|
+
console.log(element);
|
|
13382
13488
|
console.groupEnd(element.key);
|
|
13383
13489
|
return element;
|
|
13384
13490
|
}
|
|
@@ -13464,6 +13570,8 @@ var require_methods2 = __commonJS({
|
|
|
13464
13570
|
"lookup",
|
|
13465
13571
|
"lookdown",
|
|
13466
13572
|
"lookdownAll",
|
|
13573
|
+
"getRef",
|
|
13574
|
+
"getPath",
|
|
13467
13575
|
"setNodeStyles",
|
|
13468
13576
|
"spotByPath",
|
|
13469
13577
|
"keys",
|
|
@@ -13557,15 +13665,15 @@ var require_iterate = __commonJS({
|
|
|
13557
13665
|
};
|
|
13558
13666
|
var throughExecProps = (element) => {
|
|
13559
13667
|
const { __ref: ref } = element;
|
|
13560
|
-
const { props:
|
|
13561
|
-
for (const k in
|
|
13668
|
+
const { props: props5 } = element;
|
|
13669
|
+
for (const k in props5) {
|
|
13562
13670
|
const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
|
|
13563
13671
|
const cachedExecProp = ref.__execProps[k];
|
|
13564
13672
|
if ((0, import_utils32.isFunction)(cachedExecProp)) {
|
|
13565
|
-
|
|
13566
|
-
} else if (isDefine && (0, import_utils32.isFunction)(
|
|
13567
|
-
ref.__execProps[k] =
|
|
13568
|
-
|
|
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);
|
|
13569
13677
|
}
|
|
13570
13678
|
}
|
|
13571
13679
|
};
|
|
@@ -13694,12 +13802,12 @@ var require_propEvents = __commonJS({
|
|
|
13694
13802
|
module2.exports = __toCommonJS2(propEvents_exports);
|
|
13695
13803
|
var import_utils32 = require_cjs();
|
|
13696
13804
|
var propagateEventsFromProps = (element) => {
|
|
13697
|
-
const { props:
|
|
13698
|
-
const eventKeysFromProps = Object.keys(
|
|
13805
|
+
const { props: props5, on: on2 } = element;
|
|
13806
|
+
const eventKeysFromProps = Object.keys(props5).filter((key) => key.startsWith("on"));
|
|
13699
13807
|
eventKeysFromProps.forEach((v) => {
|
|
13700
13808
|
const eventName = (0, import_utils32.lowercaseFirstLetter)(v.split("on")[1]);
|
|
13701
13809
|
const origEvent = on2[eventName];
|
|
13702
|
-
const funcFromProps =
|
|
13810
|
+
const funcFromProps = props5[v];
|
|
13703
13811
|
if ((0, import_utils32.isFunction)(origEvent)) {
|
|
13704
13812
|
on2[eventName] = (...args) => {
|
|
13705
13813
|
const originalEventRetunrs = origEvent(...args);
|
|
@@ -13903,9 +14011,9 @@ var require_update2 = __commonJS({
|
|
|
13903
14011
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
13904
14012
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
13905
14013
|
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils32.isFunction)(v));
|
|
13906
|
-
const
|
|
13907
|
-
if (
|
|
13908
|
-
(0, import_props.updateProps)(
|
|
14014
|
+
const props5 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
14015
|
+
if (props5)
|
|
14016
|
+
(0, import_props.updateProps)(props5, element, parent);
|
|
13909
14017
|
}
|
|
13910
14018
|
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
13911
14019
|
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
@@ -14144,6 +14252,8 @@ var require_set2 = __commonJS({
|
|
|
14144
14252
|
lookup: import__.lookup,
|
|
14145
14253
|
lookdown: import__.lookdown,
|
|
14146
14254
|
lookdownAll: import__.lookdownAll,
|
|
14255
|
+
getRef: import__.getRef,
|
|
14256
|
+
getPath: import__.getPath,
|
|
14147
14257
|
setNodeStyles: import__.setNodeStyles,
|
|
14148
14258
|
spotByPath: import__.spotByPath,
|
|
14149
14259
|
parse: import__.parse,
|
|
@@ -14460,6 +14570,7 @@ var require_create4 = __commonJS({
|
|
|
14460
14570
|
if (!element.props)
|
|
14461
14571
|
element.props = {};
|
|
14462
14572
|
(0, import_component.applyVariant)(element, parent);
|
|
14573
|
+
addElementIntoParentChildren(element, parent);
|
|
14463
14574
|
}
|
|
14464
14575
|
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
14465
14576
|
(0, import_iterate.throughInitialDefine)(element);
|
|
@@ -14488,13 +14599,13 @@ var require_create4 = __commonJS({
|
|
|
14488
14599
|
};
|
|
14489
14600
|
var checkIfMedia = (key) => key.slice(0, 1) === "@";
|
|
14490
14601
|
var applyMediaProps2 = (element, parent, key) => {
|
|
14491
|
-
const { props:
|
|
14492
|
-
if (
|
|
14493
|
-
|
|
14494
|
-
if (
|
|
14495
|
-
|
|
14602
|
+
const { props: props5 } = element;
|
|
14603
|
+
if (props5) {
|
|
14604
|
+
props5.display = "none";
|
|
14605
|
+
if (props5[key])
|
|
14606
|
+
props5[key].display = props5.display;
|
|
14496
14607
|
else
|
|
14497
|
-
|
|
14608
|
+
props5[key] = { display: props5.display || "block" };
|
|
14498
14609
|
return element;
|
|
14499
14610
|
} else {
|
|
14500
14611
|
return {
|
|
@@ -14629,7 +14740,7 @@ var require_cjs13 = __commonJS({
|
|
|
14629
14740
|
var import_element = require_cjs12();
|
|
14630
14741
|
var create2 = (element, parent, key, options) => {
|
|
14631
14742
|
var _a, _b, _c, _d, _e;
|
|
14632
|
-
const domqlElement = (
|
|
14743
|
+
const domqlElement = (import_element.create.default || import_element.create)(element, parent, key, options);
|
|
14633
14744
|
const complete = (_a = domqlElement.on) == null ? void 0 : _a.complete;
|
|
14634
14745
|
if (complete)
|
|
14635
14746
|
domqlElement.on.complete(element, element.state, element.context, options);
|
|
@@ -15580,13 +15691,13 @@ var require_object3 = __commonJS({
|
|
|
15580
15691
|
}
|
|
15581
15692
|
return true;
|
|
15582
15693
|
};
|
|
15583
|
-
var removeFromObject = (obj,
|
|
15584
|
-
if (
|
|
15694
|
+
var removeFromObject = (obj, props5) => {
|
|
15695
|
+
if (props5 === void 0 || props5 === null)
|
|
15585
15696
|
return obj;
|
|
15586
|
-
if ((0, import_types.is)(
|
|
15587
|
-
delete obj[
|
|
15588
|
-
} else if ((0, import_types.isArray)(
|
|
15589
|
-
|
|
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]);
|
|
15590
15701
|
} else {
|
|
15591
15702
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
15592
15703
|
}
|
|
@@ -16361,11 +16472,11 @@ var length = 0;
|
|
|
16361
16472
|
var position = 0;
|
|
16362
16473
|
var character = 0;
|
|
16363
16474
|
var characters = "";
|
|
16364
|
-
function node(value2, root, parent, type,
|
|
16365
|
-
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: "" };
|
|
16366
16477
|
}
|
|
16367
|
-
function copy(root,
|
|
16368
|
-
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);
|
|
16369
16480
|
}
|
|
16370
16481
|
function char() {
|
|
16371
16482
|
return character;
|
|
@@ -16496,7 +16607,7 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
16496
16607
|
var ampersand = 1;
|
|
16497
16608
|
var character3 = 0;
|
|
16498
16609
|
var type = "";
|
|
16499
|
-
var
|
|
16610
|
+
var props5 = rules;
|
|
16500
16611
|
var children = rulesets;
|
|
16501
16612
|
var reference = rule;
|
|
16502
16613
|
var characters3 = type;
|
|
@@ -16550,17 +16661,17 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
16550
16661
|
case 59:
|
|
16551
16662
|
characters3 += ";";
|
|
16552
16663
|
default:
|
|
16553
|
-
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);
|
|
16554
16665
|
if (character3 === 123)
|
|
16555
16666
|
if (offset === 0)
|
|
16556
|
-
parse(characters3, root, reference, reference,
|
|
16667
|
+
parse(characters3, root, reference, reference, props5, rulesets, length3, points, children);
|
|
16557
16668
|
else
|
|
16558
16669
|
switch (atrule === 99 && charat(characters3, 3) === 110 ? 100 : atrule) {
|
|
16559
16670
|
case 100:
|
|
16560
16671
|
case 108:
|
|
16561
16672
|
case 109:
|
|
16562
16673
|
case 115:
|
|
16563
|
-
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);
|
|
16564
16675
|
break;
|
|
16565
16676
|
default:
|
|
16566
16677
|
parse(characters3, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -16596,15 +16707,15 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
16596
16707
|
}
|
|
16597
16708
|
return rulesets;
|
|
16598
16709
|
}
|
|
16599
|
-
function ruleset(value2, root, parent, index, offset, rules, points, type,
|
|
16710
|
+
function ruleset(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
|
|
16600
16711
|
var post = offset - 1;
|
|
16601
16712
|
var rule = offset === 0 ? rules : [""];
|
|
16602
16713
|
var size = sizeof(rule);
|
|
16603
16714
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
16604
16715
|
for (var x = 0, y = substr(value2, post + 1, post = abs(j = points[i])), z = value2; x < size; ++x)
|
|
16605
16716
|
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
16606
|
-
|
|
16607
|
-
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);
|
|
16608
16719
|
}
|
|
16609
16720
|
function comment(value2, root, parent) {
|
|
16610
16721
|
return node(value2, root, parent, COMMENT, from(char()), substr(value2, 2, -2), 0);
|
|
@@ -17666,6 +17777,162 @@ __export(uikit_exports, {
|
|
|
17666
17777
|
// ../uikit/Atoms/Block.js
|
|
17667
17778
|
var import_utils3 = __toESM(require_cjs());
|
|
17668
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
|
+
};
|
|
17669
17936
|
var Block = {
|
|
17670
17937
|
deps: {
|
|
17671
17938
|
getSpacingBasedOnRatio: import_scratch3.getSpacingBasedOnRatio,
|
|
@@ -17677,233 +17944,82 @@ var Block = {
|
|
|
17677
17944
|
isString: import_utils3.isString
|
|
17678
17945
|
},
|
|
17679
17946
|
class: {
|
|
17680
|
-
|
|
17681
|
-
display: ({ props:
|
|
17682
|
-
display:
|
|
17947
|
+
...props,
|
|
17948
|
+
display: ({ props: props5, deps }) => !deps.isUndefined(props5.display) && {
|
|
17949
|
+
display: props5.display
|
|
17683
17950
|
},
|
|
17684
|
-
|
|
17685
|
-
|
|
17951
|
+
direction: ({ props: props5, deps }) => !deps.isUndefined(props5.direction) && {
|
|
17952
|
+
direction: props5.direction
|
|
17686
17953
|
},
|
|
17687
|
-
|
|
17688
|
-
|
|
17954
|
+
objectFit: ({ props: props5, deps }) => !deps.isUndefined(props5.objectFit) && {
|
|
17955
|
+
objectFit: props5.objectFit
|
|
17689
17956
|
},
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
boxSize: ({ props: props2, deps }) => {
|
|
17693
|
-
if (!deps.isString(props2.boxSize))
|
|
17694
|
-
return;
|
|
17695
|
-
const [height, width] = props2.boxSize.split(" ");
|
|
17696
|
-
return {
|
|
17697
|
-
...deps.transformSize("height", height),
|
|
17698
|
-
...deps.transformSize("width", width || height)
|
|
17699
|
-
};
|
|
17700
|
-
},
|
|
17701
|
-
inlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("inlineSize", props2),
|
|
17702
|
-
blockSize: ({ props: props2, deps }) => deps.transformSizeRatio("blockSize", props2),
|
|
17703
|
-
minWidth: ({ props: props2, deps }) => deps.transformSizeRatio("minWidth", props2),
|
|
17704
|
-
maxWidth: ({ props: props2, deps }) => deps.transformSizeRatio("maxWidth", props2),
|
|
17705
|
-
widthRange: ({ props: props2, deps }) => {
|
|
17706
|
-
if (!deps.isString(props2.widthRange))
|
|
17707
|
-
return;
|
|
17708
|
-
const [minWidth, maxWidth] = props2.widthRange.split(" ");
|
|
17709
|
-
return {
|
|
17710
|
-
...deps.transformSize("minWidth", minWidth),
|
|
17711
|
-
...deps.transformSize("maxWidth", maxWidth || minWidth)
|
|
17712
|
-
};
|
|
17713
|
-
},
|
|
17714
|
-
minHeight: ({ props: props2, deps }) => deps.transformSizeRatio("minHeight", props2),
|
|
17715
|
-
maxHeight: ({ props: props2, deps }) => deps.transformSizeRatio("maxHeight", props2),
|
|
17716
|
-
heightRange: ({ props: props2, deps }) => {
|
|
17717
|
-
if (!deps.isString(props2.heightRange))
|
|
17718
|
-
return;
|
|
17719
|
-
const [minHeight, maxHeight] = props2.heightRange.split(" ");
|
|
17720
|
-
return {
|
|
17721
|
-
...deps.transformSize("minHeight", minHeight),
|
|
17722
|
-
...deps.transformSize("maxHeight", maxHeight || minHeight)
|
|
17723
|
-
};
|
|
17724
|
-
},
|
|
17725
|
-
size: ({ props: props2, deps }) => {
|
|
17726
|
-
if (!deps.isString(props2.size))
|
|
17727
|
-
return;
|
|
17728
|
-
const [inlineSize, blockSize] = props2.size.split(" ");
|
|
17729
|
-
return {
|
|
17730
|
-
...deps.transformSizeRatio("inlineSize", inlineSize),
|
|
17731
|
-
...deps.transformSizeRatio("blockSize", blockSize || inlineSize)
|
|
17732
|
-
};
|
|
17733
|
-
},
|
|
17734
|
-
minBlockSize: ({ props: props2, deps }) => deps.transformSizeRatio("minBlockSize", props2),
|
|
17735
|
-
minInlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("minInlineSize", props2),
|
|
17736
|
-
maxBlockSize: ({ props: props2, deps }) => deps.transformSizeRatio("maxBlockSize", props2),
|
|
17737
|
-
maxInlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("maxInlineSize", props2),
|
|
17738
|
-
minSize: ({ props: props2, deps }) => {
|
|
17739
|
-
if (!deps.isString(props2.minSize))
|
|
17740
|
-
return;
|
|
17741
|
-
const [minInlineSize, minBlockSize] = props2.minSize.split(" ");
|
|
17742
|
-
return {
|
|
17743
|
-
...deps.transformSize("minInlineSize", minInlineSize),
|
|
17744
|
-
...deps.transformSize("minBlockSize", minBlockSize || minInlineSize)
|
|
17745
|
-
};
|
|
17746
|
-
},
|
|
17747
|
-
maxSize: ({ props: props2, deps }) => {
|
|
17748
|
-
if (!deps.isString(props2.maxSize))
|
|
17749
|
-
return;
|
|
17750
|
-
const [maxInlineSize, maxBlockSize] = props2.maxSize.split(" ");
|
|
17751
|
-
return {
|
|
17752
|
-
...deps.transformSize("maxInlineSize", maxInlineSize),
|
|
17753
|
-
...deps.transformSize("maxBlockSize", maxBlockSize || maxInlineSize)
|
|
17754
|
-
};
|
|
17755
|
-
},
|
|
17756
|
-
direction: ({ props: props2, deps }) => !deps.isUndefined(props2.direction) && {
|
|
17757
|
-
direction: props2.direction
|
|
17758
|
-
},
|
|
17759
|
-
objectFit: ({ props: props2, deps }) => !deps.isUndefined(props2.objectFit) && {
|
|
17760
|
-
objectFit: props2.objectFit
|
|
17761
|
-
},
|
|
17762
|
-
aspectRatio: ({ props: props2, deps }) => !deps.isUndefined(props2.aspectRatio) && {
|
|
17763
|
-
aspectRatio: props2.aspectRatio
|
|
17764
|
-
},
|
|
17765
|
-
borderWidth: ({ props: props2, deps }) => deps.transformSizeRatio("borderWidth", props2),
|
|
17766
|
-
padding: ({ props: props2, deps }) => deps.transformSizeRatio("padding", props2),
|
|
17767
|
-
scrollPadding: ({ props: props2, deps }) => deps.transformSizeRatio("scrollPadding", props2),
|
|
17768
|
-
paddingInline: ({ props: props2, deps }) => {
|
|
17769
|
-
if (!deps.isString(props2.paddingInline))
|
|
17770
|
-
return;
|
|
17771
|
-
const [paddingInlineStart, paddingInlineEnd] = props2.paddingInline.split(" ");
|
|
17772
|
-
return {
|
|
17773
|
-
...deps.transformSize("paddingInlineStart", paddingInlineStart),
|
|
17774
|
-
...deps.transformSize("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
|
|
17775
|
-
};
|
|
17957
|
+
aspectRatio: ({ props: props5, deps }) => !deps.isUndefined(props5.aspectRatio) && {
|
|
17958
|
+
aspectRatio: props5.aspectRatio
|
|
17776
17959
|
},
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
const [paddingBlockStart, paddingBlockEnd] = props2.paddingBlock.split(" ");
|
|
17781
|
-
return {
|
|
17782
|
-
...deps.transformSize("paddingBlockStart", paddingBlockStart),
|
|
17783
|
-
...deps.transformSize("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
|
|
17784
|
-
};
|
|
17785
|
-
},
|
|
17786
|
-
paddingInlineStart: ({ props: props2, deps }) => deps.transformSizeRatio("paddingInlineStart", props2),
|
|
17787
|
-
paddingInlineEnd: ({ props: props2, deps }) => deps.transformSizeRatio("paddingInlineEnd", props2),
|
|
17788
|
-
paddingBlockStart: ({ props: props2, deps }) => deps.transformSizeRatio("paddingBlockStart", props2),
|
|
17789
|
-
paddingBlockEnd: ({ props: props2, deps }) => deps.transformSizeRatio("paddingBlockEnd", props2),
|
|
17790
|
-
margin: ({ props: props2, deps }) => deps.transformSizeRatio("margin", props2),
|
|
17791
|
-
marginInline: ({ props: props2, deps }) => {
|
|
17792
|
-
if (!deps.isString(props2.marginInline))
|
|
17793
|
-
return;
|
|
17794
|
-
const [marginInlineStart, marginInlineEnd] = props2.marginInline.split(" ");
|
|
17795
|
-
return {
|
|
17796
|
-
...deps.transformSize("marginInlineStart", marginInlineStart),
|
|
17797
|
-
...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
|
|
17798
|
-
};
|
|
17799
|
-
},
|
|
17800
|
-
marginBlock: ({ props: props2, deps }) => {
|
|
17801
|
-
if (!deps.isString(props2.marginBlock))
|
|
17802
|
-
return;
|
|
17803
|
-
const [marginBlockStart, marginBlockEnd] = props2.marginBlock.split(" ");
|
|
17804
|
-
return {
|
|
17805
|
-
...deps.transformSize("marginBlockStart", marginBlockStart),
|
|
17806
|
-
...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
|
|
17807
|
-
};
|
|
17808
|
-
},
|
|
17809
|
-
marginInlineStart: ({ props: props2, deps }) => deps.transformSizeRatio("marginInlineStart", props2),
|
|
17810
|
-
marginInlineEnd: ({ props: props2, deps }) => deps.transformSizeRatio("marginInlineEnd", props2),
|
|
17811
|
-
marginBlockStart: ({ props: props2, deps }) => deps.transformSizeRatio("marginBlockStart", props2),
|
|
17812
|
-
marginBlockEnd: ({ props: props2, deps }) => deps.transformSizeRatio("marginBlockEnd", props2),
|
|
17813
|
-
gap: ({ props: props2, deps }) => !deps.isUndefined(props2.gap) && {
|
|
17814
|
-
gap: (0, import_scratch3.transfromGap)(props2.gap)
|
|
17815
|
-
},
|
|
17816
|
-
columnGap: ({ props: props2, deps }) => props2.columnGap ? deps.getSpacingBasedOnRatio(props2, "columnGap") : null,
|
|
17817
|
-
rowGap: ({ props: props2, deps }) => props2.rowGap ? deps.getSpacingBasedOnRatio(props2, "rowGap") : null,
|
|
17818
|
-
gridArea: ({ props: props2, deps }) => props2.gridArea && { gridArea: props2.gridArea },
|
|
17819
|
-
float: ({ props: props2, deps }) => !deps.isUndefined(props2.float) && {
|
|
17820
|
-
float: props2.float
|
|
17821
|
-
},
|
|
17822
|
-
flex: ({ props: props2, deps }) => !deps.isUndefined(props2.flex) && {
|
|
17823
|
-
flex: props2.flex
|
|
17824
|
-
},
|
|
17825
|
-
flexDirection: ({ props: props2, deps }) => !deps.isUndefined(props2.flexDirection) && {
|
|
17826
|
-
flexDirection: props2.flexDirection
|
|
17960
|
+
gridArea: ({ props: props5, deps }) => props5.gridArea && { gridArea: props5.gridArea },
|
|
17961
|
+
float: ({ props: props5, deps }) => !deps.isUndefined(props5.float) && {
|
|
17962
|
+
float: props5.float
|
|
17827
17963
|
},
|
|
17828
|
-
|
|
17829
|
-
|
|
17964
|
+
flex: ({ props: props5, deps }) => !deps.isUndefined(props5.flex) && {
|
|
17965
|
+
flex: props5.flex
|
|
17830
17966
|
},
|
|
17831
|
-
|
|
17832
|
-
|
|
17967
|
+
flexDirection: ({ props: props5, deps }) => !deps.isUndefined(props5.flexDirection) && {
|
|
17968
|
+
flexDirection: props5.flexDirection
|
|
17833
17969
|
},
|
|
17834
|
-
|
|
17835
|
-
|
|
17970
|
+
alignItems: ({ props: props5, deps }) => !deps.isUndefined(props5.alignItems) && {
|
|
17971
|
+
alignItems: props5.alignItems
|
|
17836
17972
|
},
|
|
17837
|
-
|
|
17838
|
-
|
|
17973
|
+
alignContent: ({ props: props5, deps }) => !deps.isUndefined(props5.alignContent) && {
|
|
17974
|
+
alignContent: props5.alignContent
|
|
17839
17975
|
},
|
|
17840
|
-
|
|
17841
|
-
|
|
17976
|
+
justifyContent: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyContent) && {
|
|
17977
|
+
justifyContent: props5.justifyContent
|
|
17842
17978
|
},
|
|
17843
|
-
|
|
17844
|
-
|
|
17979
|
+
justifyItems: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyItems) && {
|
|
17980
|
+
justifyItems: props5.justifyItems
|
|
17845
17981
|
},
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
flexFlow: (props2.flexFlow || "row").split(" ")[0] + " " + props2.flexWrap
|
|
17982
|
+
alignSelf: ({ props: props5, deps }) => !deps.isUndefined(props5.alignSelf) && {
|
|
17983
|
+
alignSelf: props5.alignSelf
|
|
17849
17984
|
},
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
if (!deps.isString(flexFlow))
|
|
17853
|
-
return;
|
|
17854
|
-
let [direction, wrap] = (flexFlow || "row").split(" ");
|
|
17855
|
-
if (flexFlow.startsWith("x") || flexFlow === "row")
|
|
17856
|
-
direction = "row";
|
|
17857
|
-
if (flexFlow.startsWith("y") || flexFlow === "column")
|
|
17858
|
-
direction = "column";
|
|
17859
|
-
return {
|
|
17860
|
-
display: "flex",
|
|
17861
|
-
flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
|
|
17862
|
-
};
|
|
17985
|
+
order: ({ props: props5, deps }) => !deps.isUndefined(props5.order) && {
|
|
17986
|
+
order: props5.order
|
|
17863
17987
|
},
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
return;
|
|
17867
|
-
const [alignItems, justifyContent] = props2.flexAlign.split(" ");
|
|
17868
|
-
return {
|
|
17869
|
-
display: "flex",
|
|
17870
|
-
alignItems,
|
|
17871
|
-
justifyContent
|
|
17872
|
-
};
|
|
17988
|
+
gridColumn: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumn) && {
|
|
17989
|
+
gridColumn: props5.gridColumn
|
|
17873
17990
|
},
|
|
17874
|
-
|
|
17875
|
-
|
|
17991
|
+
gridColumnStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumnStart) && {
|
|
17992
|
+
gridColumnStart: props5.gridColumnStart
|
|
17876
17993
|
},
|
|
17877
|
-
|
|
17878
|
-
|
|
17994
|
+
gridRow: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRow) && {
|
|
17995
|
+
gridRow: props5.gridRow
|
|
17879
17996
|
},
|
|
17880
|
-
|
|
17881
|
-
|
|
17997
|
+
gridRowStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRowStart) && {
|
|
17998
|
+
gridRowStart: props5.gridRowStart
|
|
17882
17999
|
},
|
|
17883
|
-
|
|
17884
|
-
|
|
18000
|
+
resize: ({ props: props5, deps }) => !deps.isUndefined(props5.resize) && {
|
|
18001
|
+
resize: props5.resize
|
|
17885
18002
|
},
|
|
17886
|
-
|
|
17887
|
-
|
|
18003
|
+
verticalAlign: ({ props: props5, deps }) => !deps.isUndefined(props5.verticalAlign) && {
|
|
18004
|
+
verticalAlign: props5.verticalAlign
|
|
17888
18005
|
},
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
columns: props2.columns
|
|
18006
|
+
columns: ({ props: props5, deps }) => !deps.isUndefined(props5.columns) && {
|
|
18007
|
+
columns: props5.columns
|
|
17892
18008
|
},
|
|
17893
|
-
columnRule: ({ props:
|
|
17894
|
-
columnRule:
|
|
18009
|
+
columnRule: ({ props: props5, deps }) => !deps.isUndefined(props5.columnRule) && {
|
|
18010
|
+
columnRule: props5.columnRule
|
|
17895
18011
|
},
|
|
17896
|
-
columnWidth: ({ props:
|
|
17897
|
-
columnWidth:
|
|
18012
|
+
columnWidth: ({ props: props5, deps }) => !deps.isUndefined(props5.columnWidth) && {
|
|
18013
|
+
columnWidth: props5.columnWidth
|
|
17898
18014
|
},
|
|
17899
|
-
columnSpan: ({ props:
|
|
17900
|
-
columnSpan:
|
|
18015
|
+
columnSpan: ({ props: props5, deps }) => !deps.isUndefined(props5.columnSpan) && {
|
|
18016
|
+
columnSpan: props5.columnSpan
|
|
17901
18017
|
},
|
|
17902
|
-
columnFill: ({ props:
|
|
17903
|
-
columnFill:
|
|
18018
|
+
columnFill: ({ props: props5, deps }) => !deps.isUndefined(props5.columnFill) && {
|
|
18019
|
+
columnFill: props5.columnFill
|
|
17904
18020
|
},
|
|
17905
|
-
columnCount: ({ props:
|
|
17906
|
-
columnCount:
|
|
18021
|
+
columnCount: ({ props: props5, deps }) => !deps.isUndefined(props5.columnCount) && {
|
|
18022
|
+
columnCount: props5.columnCount
|
|
17907
18023
|
}
|
|
17908
18024
|
}
|
|
17909
18025
|
};
|
|
@@ -17924,20 +18040,8 @@ var Ol = {
|
|
|
17924
18040
|
childExtend: { extend: "Li" }
|
|
17925
18041
|
};
|
|
17926
18042
|
var Gutter = {
|
|
17927
|
-
deps: { getSpacingByKey: import_scratch3.getSpacingByKey },
|
|
17928
18043
|
props: {
|
|
17929
18044
|
size: "C1"
|
|
17930
|
-
},
|
|
17931
|
-
class: {
|
|
17932
|
-
size: ({ props: props2, deps }) => {
|
|
17933
|
-
if (!deps.isString(props2.size))
|
|
17934
|
-
return;
|
|
17935
|
-
const [height, width] = props2.size.split(" ");
|
|
17936
|
-
return {
|
|
17937
|
-
...deps.getSpacingByKey("height", height),
|
|
17938
|
-
...deps.getSpacingByKey("width", width || height)
|
|
17939
|
-
};
|
|
17940
|
-
}
|
|
17941
18045
|
}
|
|
17942
18046
|
};
|
|
17943
18047
|
|
|
@@ -17947,7 +18051,7 @@ var Direction = {
|
|
|
17947
18051
|
direction: "ltr"
|
|
17948
18052
|
},
|
|
17949
18053
|
class: {
|
|
17950
|
-
direction: ({ props:
|
|
18054
|
+
direction: ({ props: props5 }) => ({ direction: props5.direction })
|
|
17951
18055
|
}
|
|
17952
18056
|
};
|
|
17953
18057
|
|
|
@@ -17958,8 +18062,8 @@ var Flex = {
|
|
|
17958
18062
|
display: "flex"
|
|
17959
18063
|
},
|
|
17960
18064
|
class: {
|
|
17961
|
-
flow: ({ props:
|
|
17962
|
-
const { flow, reverse } =
|
|
18065
|
+
flow: ({ props: props5 }) => {
|
|
18066
|
+
const { flow, reverse } = props5;
|
|
17963
18067
|
if (!(0, import_utils4.isString)(flow))
|
|
17964
18068
|
return;
|
|
17965
18069
|
let [direction, wrap] = (flow || "row").split(" ");
|
|
@@ -17971,11 +18075,11 @@ var Flex = {
|
|
|
17971
18075
|
flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
|
|
17972
18076
|
};
|
|
17973
18077
|
},
|
|
17974
|
-
wrap: ({ props:
|
|
17975
|
-
align: ({ props:
|
|
17976
|
-
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))
|
|
17977
18081
|
return;
|
|
17978
|
-
const [alignItems, justifyContent] =
|
|
18082
|
+
const [alignItems, justifyContent] = props5.align.split(" ");
|
|
17979
18083
|
return { alignItems, justifyContent };
|
|
17980
18084
|
}
|
|
17981
18085
|
}
|
|
@@ -17987,20 +18091,20 @@ var Grid = {
|
|
|
17987
18091
|
deps: { getSpacingBasedOnRatio: import_scratch4.getSpacingBasedOnRatio },
|
|
17988
18092
|
props: { display: "grid" },
|
|
17989
18093
|
class: {
|
|
17990
|
-
area: ({ props:
|
|
17991
|
-
template: ({ props:
|
|
17992
|
-
templateAreas: ({ props:
|
|
17993
|
-
column: ({ props:
|
|
17994
|
-
columns: ({ props:
|
|
17995
|
-
templateColumns: ({ props:
|
|
17996
|
-
autoColumns: ({ props:
|
|
17997
|
-
columnStart: ({ props:
|
|
17998
|
-
row: ({ props:
|
|
17999
|
-
rows: ({ props:
|
|
18000
|
-
templateRows: ({ props:
|
|
18001
|
-
autoRows: ({ props:
|
|
18002
|
-
rowStart: ({ props:
|
|
18003
|
-
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
|
|
18004
18108
|
}
|
|
18005
18109
|
};
|
|
18006
18110
|
|
|
@@ -18009,9 +18113,9 @@ var Img = {
|
|
|
18009
18113
|
tag: "img",
|
|
18010
18114
|
attr: {
|
|
18011
18115
|
src: (el) => {
|
|
18012
|
-
const { props:
|
|
18116
|
+
const { props: props5, context } = el;
|
|
18013
18117
|
const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
|
|
18014
|
-
let src = (
|
|
18118
|
+
let src = (props5.preSrc || "") + exec7(props5.src, el);
|
|
18015
18119
|
if (isString13(src) && src.includes("{{")) {
|
|
18016
18120
|
src = replaceLiteralsWithObjectFields3(src, el.state);
|
|
18017
18121
|
}
|
|
@@ -18026,8 +18130,8 @@ var Img = {
|
|
|
18026
18130
|
if (file)
|
|
18027
18131
|
return file.content && file.content.src;
|
|
18028
18132
|
},
|
|
18029
|
-
alt: ({ props:
|
|
18030
|
-
title: ({ props:
|
|
18133
|
+
alt: ({ props: props5 }) => props5.alt,
|
|
18134
|
+
title: ({ props: props5 }) => props5.title || props5.alt
|
|
18031
18135
|
}
|
|
18032
18136
|
};
|
|
18033
18137
|
|
|
@@ -18035,9 +18139,9 @@ var Img = {
|
|
|
18035
18139
|
var Form = {
|
|
18036
18140
|
tag: "form",
|
|
18037
18141
|
attr: {
|
|
18038
|
-
action: ({ props:
|
|
18039
|
-
method: ({ props:
|
|
18040
|
-
enctype: ({ props:
|
|
18142
|
+
action: ({ props: props5 }) => props5.action,
|
|
18143
|
+
method: ({ props: props5 }) => props5.method,
|
|
18144
|
+
enctype: ({ props: props5 }) => props5.enctype
|
|
18041
18145
|
}
|
|
18042
18146
|
};
|
|
18043
18147
|
|
|
@@ -18060,24 +18164,24 @@ var Timing = {
|
|
|
18060
18164
|
transformDuration: import_scratch5.transformDuration
|
|
18061
18165
|
},
|
|
18062
18166
|
class: {
|
|
18063
|
-
transition: ({ props:
|
|
18064
|
-
transition: deps.splitTransition(
|
|
18167
|
+
transition: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transition) && {
|
|
18168
|
+
transition: deps.splitTransition(props5.transition)
|
|
18065
18169
|
},
|
|
18066
|
-
willChange: ({ props:
|
|
18067
|
-
willChange:
|
|
18170
|
+
willChange: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.willChange) && {
|
|
18171
|
+
willChange: props5.willChange
|
|
18068
18172
|
},
|
|
18069
|
-
transitionDuration: ({ props:
|
|
18070
|
-
transitionDuration: deps.transformDuration(
|
|
18173
|
+
transitionDuration: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDuration) && {
|
|
18174
|
+
transitionDuration: deps.transformDuration(props5.transitionDuration)
|
|
18071
18175
|
},
|
|
18072
|
-
transitionDelay: ({ props:
|
|
18073
|
-
transitionDelay: deps.transformDuration(
|
|
18176
|
+
transitionDelay: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDelay) && {
|
|
18177
|
+
transitionDelay: deps.transformDuration(props5.transitionDelay)
|
|
18074
18178
|
},
|
|
18075
|
-
transitionTimingFunction: ({ props:
|
|
18076
|
-
transitionTimingFunction: deps.getTimingFunction(
|
|
18179
|
+
transitionTimingFunction: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionTimingFunction) && {
|
|
18180
|
+
transitionTimingFunction: deps.getTimingFunction(props5.transitionTimingFunction)
|
|
18077
18181
|
},
|
|
18078
|
-
transitionProperty: ({ props:
|
|
18079
|
-
transitionProperty:
|
|
18080
|
-
willChange:
|
|
18182
|
+
transitionProperty: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.transitionProperty) && {
|
|
18183
|
+
transitionProperty: props5.transitionProperty,
|
|
18184
|
+
willChange: props5.transitionProperty
|
|
18081
18185
|
}
|
|
18082
18186
|
}
|
|
18083
18187
|
};
|
|
@@ -18092,11 +18196,11 @@ var depth = {
|
|
|
18092
18196
|
26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG2.UNIT.default} 26${CONFIG2.UNIT.default}` },
|
|
18093
18197
|
42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG2.UNIT.default} 42${CONFIG2.UNIT.default}` }
|
|
18094
18198
|
};
|
|
18095
|
-
var getComputedBackgroundColor = ({ props:
|
|
18096
|
-
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);
|
|
18097
18201
|
};
|
|
18098
|
-
var inheritTransition = ({ props:
|
|
18099
|
-
const exec7 = Timing.class.transition({ props:
|
|
18202
|
+
var inheritTransition = ({ props: props5, deps }) => {
|
|
18203
|
+
const exec7 = Timing.class.transition({ props: props5, deps });
|
|
18100
18204
|
return exec7 && exec7.transition;
|
|
18101
18205
|
};
|
|
18102
18206
|
var SHAPES = {
|
|
@@ -18106,16 +18210,16 @@ var SHAPES = {
|
|
|
18106
18210
|
tv: {
|
|
18107
18211
|
borderRadius: "1.15em/2.5em"
|
|
18108
18212
|
},
|
|
18109
|
-
tooltip: ({ props:
|
|
18110
|
-
position:
|
|
18213
|
+
tooltip: ({ props: props5, deps }) => ({
|
|
18214
|
+
position: props5.position || "relative",
|
|
18111
18215
|
"&:before": {
|
|
18112
18216
|
content: '""',
|
|
18113
18217
|
display: "block",
|
|
18114
18218
|
width: "0px",
|
|
18115
18219
|
height: "0px",
|
|
18116
18220
|
border: ".35em solid",
|
|
18117
|
-
borderColor: getComputedBackgroundColor({ props:
|
|
18118
|
-
transition: inheritTransition({ props:
|
|
18221
|
+
borderColor: getComputedBackgroundColor({ props: props5, deps }),
|
|
18222
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18119
18223
|
transitionProperty: "border-color",
|
|
18120
18224
|
position: "absolute",
|
|
18121
18225
|
borderRadius: ".15em"
|
|
@@ -18151,13 +18255,13 @@ var SHAPES = {
|
|
|
18151
18255
|
}
|
|
18152
18256
|
}
|
|
18153
18257
|
},
|
|
18154
|
-
tag: ({ props:
|
|
18258
|
+
tag: ({ props: props5, deps }) => ({
|
|
18155
18259
|
position: "relative",
|
|
18156
18260
|
"&:before": {
|
|
18157
18261
|
content: '""',
|
|
18158
18262
|
display: "block",
|
|
18159
|
-
background: getComputedBackgroundColor({ props:
|
|
18160
|
-
transition: inheritTransition({ props:
|
|
18263
|
+
background: getComputedBackgroundColor({ props: props5, deps }),
|
|
18264
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18161
18265
|
transitionProperty: "background",
|
|
18162
18266
|
borderRadius: ".25em",
|
|
18163
18267
|
position: "absolute",
|
|
@@ -18198,7 +18302,7 @@ var SHAPES = {
|
|
|
18198
18302
|
}
|
|
18199
18303
|
}
|
|
18200
18304
|
},
|
|
18201
|
-
hexagon: ({ props:
|
|
18305
|
+
hexagon: ({ props: props5, deps }) => ({
|
|
18202
18306
|
position: "relative",
|
|
18203
18307
|
"&:before, &:after": {
|
|
18204
18308
|
content: '""',
|
|
@@ -18210,8 +18314,8 @@ var SHAPES = {
|
|
|
18210
18314
|
top: "50%",
|
|
18211
18315
|
transformOrigin: "50% 50%",
|
|
18212
18316
|
height: "73%",
|
|
18213
|
-
background: getComputedBackgroundColor({ props:
|
|
18214
|
-
transition: inheritTransition({ props:
|
|
18317
|
+
background: getComputedBackgroundColor({ props: props5, deps }),
|
|
18318
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18215
18319
|
transitionProperty: "background"
|
|
18216
18320
|
},
|
|
18217
18321
|
"&:before": {
|
|
@@ -18223,7 +18327,7 @@ var SHAPES = {
|
|
|
18223
18327
|
transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
|
|
18224
18328
|
}
|
|
18225
18329
|
}),
|
|
18226
|
-
chevron: ({ props:
|
|
18330
|
+
chevron: ({ props: props5, deps }) => ({
|
|
18227
18331
|
position: "relative",
|
|
18228
18332
|
"&:before, &:after": {
|
|
18229
18333
|
content: '""',
|
|
@@ -18233,14 +18337,14 @@ var SHAPES = {
|
|
|
18233
18337
|
aspectRatio: "1/1",
|
|
18234
18338
|
top: "50%",
|
|
18235
18339
|
transformOrigin: "50% 50%",
|
|
18236
|
-
transition: inheritTransition({ props:
|
|
18340
|
+
transition: inheritTransition({ props: props5, deps }),
|
|
18237
18341
|
transitionProperty: "background"
|
|
18238
18342
|
},
|
|
18239
18343
|
"&:before": {
|
|
18240
|
-
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%)`
|
|
18241
18345
|
},
|
|
18242
18346
|
"&:after": {
|
|
18243
|
-
background: getComputedBackgroundColor({ props:
|
|
18347
|
+
background: getComputedBackgroundColor({ props: props5, deps }),
|
|
18244
18348
|
borderRadius: ".25em"
|
|
18245
18349
|
}
|
|
18246
18350
|
}),
|
|
@@ -18291,53 +18395,53 @@ var Theme = {
|
|
|
18291
18395
|
transformBackgroundImage: import_scratch7.transformBackgroundImage
|
|
18292
18396
|
},
|
|
18293
18397
|
class: {
|
|
18294
|
-
depth: ({ props:
|
|
18398
|
+
depth: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.depth) && deps.depth[props5.depth],
|
|
18295
18399
|
theme: (element) => {
|
|
18296
|
-
const { props:
|
|
18400
|
+
const { props: props5, deps } = element;
|
|
18297
18401
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18298
|
-
if (!
|
|
18402
|
+
if (!props5.theme)
|
|
18299
18403
|
return;
|
|
18300
|
-
const hasSubtheme =
|
|
18301
|
-
const globalThemeForced = `@${
|
|
18404
|
+
const hasSubtheme = props5.theme.includes(" ") && !props5.theme.includes("@");
|
|
18405
|
+
const globalThemeForced = `@${props5.themeModifier || globalTheme}`;
|
|
18302
18406
|
if (hasSubtheme) {
|
|
18303
|
-
const themeAppliedInVal =
|
|
18407
|
+
const themeAppliedInVal = props5.theme.split(" ");
|
|
18304
18408
|
themeAppliedInVal.splice(1, 0, globalThemeForced);
|
|
18305
18409
|
return deps.getMediaTheme(themeAppliedInVal);
|
|
18306
|
-
} else if (
|
|
18307
|
-
|
|
18308
|
-
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}`);
|
|
18309
18413
|
},
|
|
18310
18414
|
color: (element) => {
|
|
18311
|
-
const { props:
|
|
18415
|
+
const { props: props5, deps } = element;
|
|
18312
18416
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18313
|
-
if (!
|
|
18417
|
+
if (!props5.color)
|
|
18314
18418
|
return;
|
|
18315
18419
|
return {
|
|
18316
|
-
color: deps.getMediaColor(
|
|
18420
|
+
color: deps.getMediaColor(props5.color, globalTheme)
|
|
18317
18421
|
};
|
|
18318
18422
|
},
|
|
18319
18423
|
background: (element) => {
|
|
18320
|
-
const { props:
|
|
18424
|
+
const { props: props5, deps } = element;
|
|
18321
18425
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18322
|
-
if (!
|
|
18426
|
+
if (!props5.background)
|
|
18323
18427
|
return;
|
|
18324
18428
|
return {
|
|
18325
|
-
background: deps.getMediaColor(
|
|
18429
|
+
background: deps.getMediaColor(props5.background, globalTheme)
|
|
18326
18430
|
};
|
|
18327
18431
|
},
|
|
18328
18432
|
backgroundColor: (element) => {
|
|
18329
|
-
const { props:
|
|
18433
|
+
const { props: props5, deps } = element;
|
|
18330
18434
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18331
|
-
if (!
|
|
18435
|
+
if (!props5.backgroundColor)
|
|
18332
18436
|
return;
|
|
18333
18437
|
return {
|
|
18334
|
-
backgroundColor: deps.getMediaColor(
|
|
18438
|
+
backgroundColor: deps.getMediaColor(props5.backgroundColor, globalTheme)
|
|
18335
18439
|
};
|
|
18336
18440
|
},
|
|
18337
18441
|
backgroundImage: (element, s, context) => {
|
|
18338
|
-
const { props:
|
|
18442
|
+
const { props: props5, deps } = element;
|
|
18339
18443
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18340
|
-
let val =
|
|
18444
|
+
let val = props5.backgroundImage;
|
|
18341
18445
|
if (!val)
|
|
18342
18446
|
return;
|
|
18343
18447
|
const file = context.files && context.files[val];
|
|
@@ -18347,184 +18451,184 @@ var Theme = {
|
|
|
18347
18451
|
backgroundImage: deps.transformBackgroundImage(val, globalTheme)
|
|
18348
18452
|
};
|
|
18349
18453
|
},
|
|
18350
|
-
backgroundSize: ({ props:
|
|
18351
|
-
backgroundSize:
|
|
18454
|
+
backgroundSize: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundSize) ? {
|
|
18455
|
+
backgroundSize: props5.backgroundSize
|
|
18352
18456
|
} : null,
|
|
18353
|
-
backgroundPosition: ({ props:
|
|
18354
|
-
backgroundPosition:
|
|
18457
|
+
backgroundPosition: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundPosition) ? {
|
|
18458
|
+
backgroundPosition: props5.backgroundPosition
|
|
18355
18459
|
} : null,
|
|
18356
|
-
backgroundRepeat: ({ props:
|
|
18357
|
-
backgroundRepeat:
|
|
18460
|
+
backgroundRepeat: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundRepeat) ? {
|
|
18461
|
+
backgroundRepeat: props5.backgroundRepeat
|
|
18358
18462
|
} : null,
|
|
18359
|
-
textStroke: ({ props:
|
|
18360
|
-
WebkitTextStroke: deps.transformTextStroke(
|
|
18463
|
+
textStroke: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.textStroke) ? {
|
|
18464
|
+
WebkitTextStroke: deps.transformTextStroke(props5.textStroke)
|
|
18361
18465
|
} : null,
|
|
18362
|
-
outline: ({ props:
|
|
18363
|
-
outline: deps.transformBorder(
|
|
18466
|
+
outline: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.outline) && {
|
|
18467
|
+
outline: deps.transformBorder(props5.outline)
|
|
18364
18468
|
},
|
|
18365
|
-
outlineOffset: ({ props:
|
|
18366
|
-
border: ({ props:
|
|
18367
|
-
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)
|
|
18368
18472
|
},
|
|
18369
18473
|
borderColor: (element) => {
|
|
18370
|
-
const { props:
|
|
18474
|
+
const { props: props5, deps } = element;
|
|
18371
18475
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18372
|
-
if (!
|
|
18476
|
+
if (!props5.borderColor)
|
|
18373
18477
|
return;
|
|
18374
18478
|
return {
|
|
18375
|
-
borderColor: deps.getMediaColor(
|
|
18479
|
+
borderColor: deps.getMediaColor(props5.borderColor, globalTheme)
|
|
18376
18480
|
};
|
|
18377
18481
|
},
|
|
18378
|
-
borderStyle: ({ props:
|
|
18379
|
-
borderStyle:
|
|
18482
|
+
borderStyle: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.borderStyle) && {
|
|
18483
|
+
borderStyle: props5.borderStyle
|
|
18380
18484
|
},
|
|
18381
|
-
borderLeft: ({ props:
|
|
18382
|
-
borderLeft: deps.transformBorder(
|
|
18485
|
+
borderLeft: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderLeft) && {
|
|
18486
|
+
borderLeft: deps.transformBorder(props5.borderLeft)
|
|
18383
18487
|
},
|
|
18384
|
-
borderTop: ({ props:
|
|
18385
|
-
borderTop: deps.transformBorder(
|
|
18488
|
+
borderTop: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderTop) && {
|
|
18489
|
+
borderTop: deps.transformBorder(props5.borderTop)
|
|
18386
18490
|
},
|
|
18387
|
-
borderRight: ({ props:
|
|
18388
|
-
borderRight: deps.transformBorder(
|
|
18491
|
+
borderRight: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderRight) && {
|
|
18492
|
+
borderRight: deps.transformBorder(props5.borderRight)
|
|
18389
18493
|
},
|
|
18390
|
-
borderBottom: ({ props:
|
|
18391
|
-
borderBottom: deps.transformBorder(
|
|
18494
|
+
borderBottom: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderBottom) && {
|
|
18495
|
+
borderBottom: deps.transformBorder(props5.borderBottom)
|
|
18392
18496
|
},
|
|
18393
18497
|
shadow: (element) => {
|
|
18394
|
-
const { props:
|
|
18498
|
+
const { props: props5, deps } = element;
|
|
18395
18499
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
18396
|
-
if (!
|
|
18500
|
+
if (!props5.backgroundImage)
|
|
18397
18501
|
return;
|
|
18398
18502
|
return {
|
|
18399
|
-
boxShadow: deps.transformShadow(
|
|
18503
|
+
boxShadow: deps.transformShadow(props5.shadow, globalTheme)
|
|
18400
18504
|
};
|
|
18401
18505
|
},
|
|
18402
18506
|
// boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
|
|
18403
18507
|
// boxShadow: deps.transformBoxShadow(props.boxShadow)
|
|
18404
18508
|
// }),
|
|
18405
18509
|
boxShadow: (element, state, context) => {
|
|
18406
|
-
const { props:
|
|
18407
|
-
if (!(0, import_utils6.isString)(
|
|
18510
|
+
const { props: props5, deps } = element;
|
|
18511
|
+
if (!(0, import_utils6.isString)(props5.boxShadow))
|
|
18408
18512
|
return;
|
|
18409
|
-
const [val, hasImportant] =
|
|
18513
|
+
const [val, hasImportant] = props5.boxShadow.split("!importan");
|
|
18410
18514
|
const globalTheme = getSystemGlobalTheme(element);
|
|
18411
18515
|
const important = hasImportant ? " !important" : "";
|
|
18412
18516
|
return {
|
|
18413
18517
|
boxShadow: deps.transformBoxShadow(val.trim(), globalTheme) + important
|
|
18414
18518
|
};
|
|
18415
18519
|
},
|
|
18416
|
-
textShadow: ({ props:
|
|
18417
|
-
textShadow: deps.transformBoxShadow(
|
|
18520
|
+
textShadow: ({ props: props5, deps, context }) => !(0, import_utils6.isUndefined)(props5.textShadow) && {
|
|
18521
|
+
textShadow: deps.transformBoxShadow(props5.textShadow, context.designSystem.globalTheme)
|
|
18418
18522
|
},
|
|
18419
|
-
backdropFilter: ({ props:
|
|
18420
|
-
backdropFilter:
|
|
18523
|
+
backdropFilter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.backdropFilter) && {
|
|
18524
|
+
backdropFilter: props5.backdropFilter
|
|
18421
18525
|
},
|
|
18422
|
-
caretColor: ({ props:
|
|
18423
|
-
caretColor:
|
|
18526
|
+
caretColor: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.caretColor) && {
|
|
18527
|
+
caretColor: props5.caretColor
|
|
18424
18528
|
},
|
|
18425
|
-
opacity: ({ props:
|
|
18426
|
-
opacity:
|
|
18529
|
+
opacity: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.opacity) && {
|
|
18530
|
+
opacity: props5.opacity
|
|
18427
18531
|
},
|
|
18428
|
-
visibility: ({ props:
|
|
18429
|
-
visibility:
|
|
18532
|
+
visibility: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.visibility) && {
|
|
18533
|
+
visibility: props5.visibility
|
|
18430
18534
|
},
|
|
18431
|
-
columnRule: ({ props:
|
|
18432
|
-
columnRule: deps.transformBorder(
|
|
18535
|
+
columnRule: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.columnRule) && {
|
|
18536
|
+
columnRule: deps.transformBorder(props5.columnRule)
|
|
18433
18537
|
},
|
|
18434
|
-
filter: ({ props:
|
|
18435
|
-
filter:
|
|
18538
|
+
filter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.filter) && {
|
|
18539
|
+
filter: props5.filter
|
|
18436
18540
|
},
|
|
18437
|
-
mixBlendMode: ({ props:
|
|
18438
|
-
mixBlendMode:
|
|
18541
|
+
mixBlendMode: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.mixBlendMode) && {
|
|
18542
|
+
mixBlendMode: props5.mixBlendMode
|
|
18439
18543
|
},
|
|
18440
|
-
appearance: ({ props:
|
|
18441
|
-
appearance:
|
|
18544
|
+
appearance: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.appearance) && {
|
|
18545
|
+
appearance: props5.appearance
|
|
18442
18546
|
}
|
|
18443
18547
|
}
|
|
18444
18548
|
};
|
|
18445
18549
|
|
|
18446
18550
|
// ../uikit/Atoms/Media.js
|
|
18447
18551
|
var keySetters = {
|
|
18448
|
-
"@": (key,
|
|
18552
|
+
"@": (key, props5, result, element, isSubtree) => applyMediaProps(
|
|
18449
18553
|
key,
|
|
18450
|
-
|
|
18554
|
+
props5,
|
|
18451
18555
|
isSubtree ? result : result && result.media,
|
|
18452
18556
|
element
|
|
18453
18557
|
),
|
|
18454
|
-
":": (key,
|
|
18558
|
+
":": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18455
18559
|
key,
|
|
18456
|
-
|
|
18560
|
+
props5,
|
|
18457
18561
|
isSubtree ? result : result && result.selector,
|
|
18458
18562
|
element
|
|
18459
18563
|
),
|
|
18460
|
-
"[": (key,
|
|
18564
|
+
"[": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18461
18565
|
key,
|
|
18462
|
-
|
|
18566
|
+
props5,
|
|
18463
18567
|
isSubtree ? result : result && result.selector,
|
|
18464
18568
|
element
|
|
18465
18569
|
),
|
|
18466
|
-
"*": (key,
|
|
18570
|
+
"*": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18467
18571
|
key,
|
|
18468
|
-
|
|
18572
|
+
props5,
|
|
18469
18573
|
isSubtree ? result : result && result.selector,
|
|
18470
18574
|
element
|
|
18471
18575
|
),
|
|
18472
|
-
"+": (key,
|
|
18576
|
+
"+": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18473
18577
|
key,
|
|
18474
|
-
|
|
18578
|
+
props5,
|
|
18475
18579
|
isSubtree ? result : result && result.selector,
|
|
18476
18580
|
element
|
|
18477
18581
|
),
|
|
18478
|
-
"~": (key,
|
|
18582
|
+
"~": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
18479
18583
|
key,
|
|
18480
|
-
|
|
18584
|
+
props5,
|
|
18481
18585
|
isSubtree ? result : result && result.selector,
|
|
18482
18586
|
element
|
|
18483
18587
|
),
|
|
18484
|
-
"&": (key,
|
|
18588
|
+
"&": (key, props5, result, element, isSubtree) => applyAndProps(
|
|
18485
18589
|
key,
|
|
18486
|
-
|
|
18590
|
+
props5,
|
|
18487
18591
|
isSubtree ? result : result && result.selector,
|
|
18488
18592
|
element
|
|
18489
18593
|
),
|
|
18490
|
-
">": (key,
|
|
18594
|
+
">": (key, props5, result, element, isSubtree) => applyAndProps(
|
|
18491
18595
|
key,
|
|
18492
|
-
|
|
18596
|
+
props5,
|
|
18493
18597
|
isSubtree ? result : result && result.selector,
|
|
18494
18598
|
element
|
|
18495
18599
|
),
|
|
18496
|
-
$: (key,
|
|
18600
|
+
$: (key, props5, result, element, isSubtree) => applyCaseProps(
|
|
18497
18601
|
key,
|
|
18498
|
-
|
|
18602
|
+
props5,
|
|
18499
18603
|
isSubtree ? result : result && result.case,
|
|
18500
18604
|
element
|
|
18501
18605
|
),
|
|
18502
|
-
"-": (key,
|
|
18606
|
+
"-": (key, props5, result, element, isSubtree) => applyVariableProps(
|
|
18503
18607
|
key,
|
|
18504
|
-
|
|
18608
|
+
props5,
|
|
18505
18609
|
isSubtree ? result : result && result.variable,
|
|
18506
18610
|
element
|
|
18507
18611
|
),
|
|
18508
|
-
".": (key,
|
|
18612
|
+
".": (key, props5, result, element, isSubtree) => applyConditionalCaseProps(
|
|
18509
18613
|
key,
|
|
18510
|
-
|
|
18614
|
+
props5,
|
|
18511
18615
|
isSubtree ? result : result && result.case,
|
|
18512
18616
|
element
|
|
18513
18617
|
),
|
|
18514
|
-
"!": (key,
|
|
18618
|
+
"!": (key, props5, result, element, isSubtree) => applyConditionalFalsyProps(
|
|
18515
18619
|
key,
|
|
18516
|
-
|
|
18620
|
+
props5,
|
|
18517
18621
|
isSubtree ? result : result && result.case,
|
|
18518
18622
|
element
|
|
18519
18623
|
)
|
|
18520
18624
|
};
|
|
18521
|
-
var execClass = (key,
|
|
18625
|
+
var execClass = (key, props5, result, element) => {
|
|
18522
18626
|
const { class: className } = element;
|
|
18523
18627
|
const classnameExec = className[key];
|
|
18524
18628
|
if (typeof classnameExec !== "function")
|
|
18525
18629
|
return;
|
|
18526
18630
|
let classExec = classnameExec({
|
|
18527
|
-
props:
|
|
18631
|
+
props: props5,
|
|
18528
18632
|
context: element.context,
|
|
18529
18633
|
state: element.state,
|
|
18530
18634
|
deps: element.deps
|
|
@@ -18536,27 +18640,27 @@ var execClass = (key, props2, result, element) => {
|
|
|
18536
18640
|
}
|
|
18537
18641
|
return classExec;
|
|
18538
18642
|
};
|
|
18539
|
-
var convertPropsToClass = (
|
|
18643
|
+
var convertPropsToClass = (props5, result, element) => {
|
|
18540
18644
|
const propsClassObj = {};
|
|
18541
|
-
for (const key in
|
|
18645
|
+
for (const key in props5) {
|
|
18542
18646
|
const setter = keySetters[key.slice(0, 1)];
|
|
18543
18647
|
if (setter) {
|
|
18544
|
-
setter(key,
|
|
18648
|
+
setter(key, props5[key], propsClassObj, element, true);
|
|
18545
18649
|
continue;
|
|
18546
18650
|
} else {
|
|
18547
|
-
execClass(key,
|
|
18651
|
+
execClass(key, props5, propsClassObj, element);
|
|
18548
18652
|
}
|
|
18549
18653
|
}
|
|
18550
18654
|
return propsClassObj;
|
|
18551
18655
|
};
|
|
18552
|
-
var applyMediaProps = (key,
|
|
18656
|
+
var applyMediaProps = (key, props5, result, element) => {
|
|
18553
18657
|
const { context } = element;
|
|
18554
18658
|
if (!context.designSystem || !context.designSystem.MEDIA)
|
|
18555
18659
|
return;
|
|
18556
18660
|
const globalTheme = getSystemGlobalTheme(element);
|
|
18557
18661
|
const { MEDIA: MEDIA2 } = context.designSystem;
|
|
18558
18662
|
const mediaValue = MEDIA2[key.slice(1)];
|
|
18559
|
-
const generatedClass = convertPropsToClass(
|
|
18663
|
+
const generatedClass = convertPropsToClass(props5, result, element);
|
|
18560
18664
|
const name = key.slice(1);
|
|
18561
18665
|
const isTheme = ["dark", "light"].includes(name);
|
|
18562
18666
|
const matchesGlobal = name === globalTheme;
|
|
@@ -18570,43 +18674,43 @@ var applyMediaProps = (key, props2, result, element) => {
|
|
|
18570
18674
|
result[mediaKey] = generatedClass;
|
|
18571
18675
|
return result[mediaKey];
|
|
18572
18676
|
};
|
|
18573
|
-
var applyAndProps = (key,
|
|
18574
|
-
result[key] = convertPropsToClass(
|
|
18677
|
+
var applyAndProps = (key, props5, result, element) => {
|
|
18678
|
+
result[key] = convertPropsToClass(props5, result, element);
|
|
18575
18679
|
return result[key];
|
|
18576
18680
|
};
|
|
18577
|
-
var applySelectorProps = (key,
|
|
18681
|
+
var applySelectorProps = (key, props5, result, element) => {
|
|
18578
18682
|
const selectorKey = `&${key}`;
|
|
18579
|
-
result[selectorKey] = convertPropsToClass(
|
|
18683
|
+
result[selectorKey] = convertPropsToClass(props5, result, element);
|
|
18580
18684
|
return result[selectorKey];
|
|
18581
18685
|
};
|
|
18582
|
-
var applyCaseProps = (key,
|
|
18686
|
+
var applyCaseProps = (key, props5, result, element) => {
|
|
18583
18687
|
const { CASES } = element.context && element.context.designSystem;
|
|
18584
18688
|
const caseKey = key.slice(1);
|
|
18585
18689
|
const isPropTrue = element.props[caseKey];
|
|
18586
18690
|
if (!CASES[caseKey] && !isPropTrue)
|
|
18587
18691
|
return;
|
|
18588
|
-
return (0, import_utils7.merge)(result, convertPropsToClass(
|
|
18692
|
+
return (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
|
|
18589
18693
|
};
|
|
18590
|
-
var applyVariableProps = (key,
|
|
18591
|
-
result[key] =
|
|
18694
|
+
var applyVariableProps = (key, props5, result, element) => {
|
|
18695
|
+
result[key] = props5;
|
|
18592
18696
|
return result;
|
|
18593
18697
|
};
|
|
18594
|
-
var applyConditionalCaseProps = (key,
|
|
18698
|
+
var applyConditionalCaseProps = (key, props5, result, element) => {
|
|
18595
18699
|
const caseKey = key.slice(1);
|
|
18596
18700
|
const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
|
|
18597
18701
|
if (!isPropTrue)
|
|
18598
18702
|
return;
|
|
18599
|
-
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(
|
|
18703
|
+
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
|
|
18600
18704
|
};
|
|
18601
|
-
var applyConditionalFalsyProps = (key,
|
|
18705
|
+
var applyConditionalFalsyProps = (key, props5, result, element) => {
|
|
18602
18706
|
const caseKey = key.slice(1);
|
|
18603
18707
|
const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
|
|
18604
18708
|
if (!isPropTrue)
|
|
18605
|
-
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(
|
|
18709
|
+
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
|
|
18606
18710
|
};
|
|
18607
|
-
var applyTrueProps = (
|
|
18711
|
+
var applyTrueProps = (props5, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
|
|
18608
18712
|
var beforeClassAssign = (element, s) => {
|
|
18609
|
-
const { props:
|
|
18713
|
+
const { props: props5, class: className, context } = element;
|
|
18610
18714
|
const CLASS_NAMES = {
|
|
18611
18715
|
media: {},
|
|
18612
18716
|
selector: {},
|
|
@@ -18616,11 +18720,11 @@ var beforeClassAssign = (element, s) => {
|
|
|
18616
18720
|
if (!context)
|
|
18617
18721
|
return;
|
|
18618
18722
|
const globalTheme = context.designSystem.globalTheme;
|
|
18619
|
-
for (const key in
|
|
18723
|
+
for (const key in props5) {
|
|
18620
18724
|
const setter = keySetters[key.slice(0, 1)];
|
|
18621
18725
|
if (globalTheme) {
|
|
18622
|
-
if (key === "theme" && !
|
|
18623
|
-
|
|
18726
|
+
if (key === "theme" && !props5.themeModifier) {
|
|
18727
|
+
props5.update({
|
|
18624
18728
|
themeModifier: globalTheme
|
|
18625
18729
|
}, {
|
|
18626
18730
|
preventListeners: true,
|
|
@@ -18631,9 +18735,9 @@ var beforeClassAssign = (element, s) => {
|
|
|
18631
18735
|
}
|
|
18632
18736
|
}
|
|
18633
18737
|
if (setter)
|
|
18634
|
-
setter(key,
|
|
18738
|
+
setter(key, props5[key], CLASS_NAMES, element);
|
|
18635
18739
|
else if (key === "true")
|
|
18636
|
-
applyTrueProps(
|
|
18740
|
+
applyTrueProps(props5[key], CLASS_NAMES, element);
|
|
18637
18741
|
}
|
|
18638
18742
|
const parentProps = element.parent && element.parent.props;
|
|
18639
18743
|
if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
|
|
@@ -18669,23 +18773,23 @@ var Iframe = {
|
|
|
18669
18773
|
minHeight: "H"
|
|
18670
18774
|
},
|
|
18671
18775
|
attr: {
|
|
18672
|
-
src: ({ props:
|
|
18673
|
-
srcdoc: ({ props:
|
|
18674
|
-
sandbox: ({ props:
|
|
18675
|
-
seamless: ({ props:
|
|
18676
|
-
loading: ({ props:
|
|
18677
|
-
allowfullscreen: ({ props:
|
|
18678
|
-
frameborder: ({ props:
|
|
18679
|
-
allow: ({ props:
|
|
18680
|
-
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
|
|
18681
18785
|
}
|
|
18682
18786
|
};
|
|
18683
18787
|
|
|
18684
18788
|
// ../uikit/Atoms/Interaction.js
|
|
18685
18789
|
var Interaction = {
|
|
18686
18790
|
class: {
|
|
18687
|
-
userSelect: ({ props:
|
|
18688
|
-
pointerEvents: ({ props:
|
|
18791
|
+
userSelect: ({ props: props5 }) => props5.userSelect && { userSelect: props5.userSelect },
|
|
18792
|
+
pointerEvents: ({ props: props5 }) => props5.pointerEvents && { pointerEvents: props5.pointerEvents },
|
|
18689
18793
|
cursor: (el, s, ctx) => {
|
|
18690
18794
|
let val = el.props.cursor;
|
|
18691
18795
|
if (!val)
|
|
@@ -18747,8 +18851,8 @@ var Focusable = {
|
|
|
18747
18851
|
}
|
|
18748
18852
|
},
|
|
18749
18853
|
attr: {
|
|
18750
|
-
placeholder: ({ props:
|
|
18751
|
-
tabIndex: ({ props:
|
|
18854
|
+
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
18855
|
+
tabIndex: ({ props: props5 }) => props5.tabIndex
|
|
18752
18856
|
}
|
|
18753
18857
|
};
|
|
18754
18858
|
var FocusableComponent = {
|
|
@@ -18765,25 +18869,25 @@ var FocusableComponent = {
|
|
|
18765
18869
|
style
|
|
18766
18870
|
},
|
|
18767
18871
|
attr: {
|
|
18768
|
-
type: ({ props:
|
|
18872
|
+
type: ({ props: props5 }) => props5.type
|
|
18769
18873
|
}
|
|
18770
18874
|
};
|
|
18771
18875
|
|
|
18772
18876
|
// ../uikit/Atoms/Overflow.js
|
|
18773
18877
|
var Overflow = {
|
|
18774
18878
|
class: {
|
|
18775
|
-
overflow: ({ props:
|
|
18776
|
-
overflow:
|
|
18879
|
+
overflow: ({ props: props5, deps }) => !deps.isUndefined(props5.overflow) && {
|
|
18880
|
+
overflow: props5.overflow,
|
|
18777
18881
|
scrollBehavior: "smooth"
|
|
18778
18882
|
},
|
|
18779
|
-
overflowX: ({ props:
|
|
18780
|
-
overflowX:
|
|
18883
|
+
overflowX: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowX) && {
|
|
18884
|
+
overflowX: props5.overflowX
|
|
18781
18885
|
},
|
|
18782
|
-
overflowY: ({ props:
|
|
18783
|
-
overflowY:
|
|
18886
|
+
overflowY: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowY) && {
|
|
18887
|
+
overflowY: props5.overflowY
|
|
18784
18888
|
},
|
|
18785
|
-
overscrollBehavior: ({ props:
|
|
18786
|
-
overscrollBehavior:
|
|
18889
|
+
overscrollBehavior: ({ props: props5, deps }) => !deps.isUndefined(props5.overscrollBehavior) && {
|
|
18890
|
+
overscrollBehavior: props5.overscrollBehavior
|
|
18787
18891
|
}
|
|
18788
18892
|
}
|
|
18789
18893
|
};
|
|
@@ -18795,12 +18899,12 @@ var Collection = {
|
|
|
18795
18899
|
define: {
|
|
18796
18900
|
$collection: (param, el, state) => {
|
|
18797
18901
|
const { __ref: ref } = el;
|
|
18798
|
-
const { children, childrenAs,
|
|
18902
|
+
const { children, childrenAs, childExtends } = el.props || {};
|
|
18799
18903
|
const childrenExec = children && (0, import_utils8.exec)(children, el, state);
|
|
18800
18904
|
if ((0, import_utils8.isArray)(childrenExec)) {
|
|
18801
18905
|
param = (0, import_utils8.deepCloneWithExtend)(childrenExec);
|
|
18802
18906
|
if (childrenAs)
|
|
18803
|
-
param = param.map((v) => ({ extend:
|
|
18907
|
+
param = param.map((v) => ({ extend: childExtends, [childrenAs]: v }));
|
|
18804
18908
|
} else if ((0, import_utils8.isObject)(childrenExec)) {
|
|
18805
18909
|
param = (0, import_utils8.deepCloneWithExtend)(childrenExec);
|
|
18806
18910
|
param = Object.keys(param).map((v) => {
|
|
@@ -18808,7 +18912,7 @@ var Collection = {
|
|
|
18808
18912
|
return (0, import_utils8.addAdditionalExtend)(v, val);
|
|
18809
18913
|
});
|
|
18810
18914
|
if (childrenAs)
|
|
18811
|
-
param = param.map((v) => ({ extend:
|
|
18915
|
+
param = param.map((v) => ({ extend: childExtends, [childrenAs]: v }));
|
|
18812
18916
|
}
|
|
18813
18917
|
if (!param)
|
|
18814
18918
|
return;
|
|
@@ -18960,21 +19064,21 @@ var import_scratch8 = __toESM(require_cjs2());
|
|
|
18960
19064
|
var Position = {
|
|
18961
19065
|
deps: { getSpacingByKey: import_scratch8.getSpacingByKey },
|
|
18962
19066
|
class: {
|
|
18963
|
-
position: ({ props:
|
|
18964
|
-
inset: ({ props:
|
|
18965
|
-
const { inset } =
|
|
19067
|
+
position: ({ props: props5 }) => props5.position && { position: props5.position },
|
|
19068
|
+
inset: ({ props: props5, deps, context }) => {
|
|
19069
|
+
const { inset } = props5;
|
|
18966
19070
|
if (context.utils.isNumber(inset))
|
|
18967
19071
|
return { inset };
|
|
18968
19072
|
if (!context.utils.isString(inset))
|
|
18969
19073
|
return;
|
|
18970
19074
|
return { inset: inset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k).join(" ") };
|
|
18971
19075
|
},
|
|
18972
|
-
left: ({ props:
|
|
18973
|
-
top: ({ props:
|
|
18974
|
-
right: ({ props:
|
|
18975
|
-
bottom: ({ props:
|
|
18976
|
-
verticalInset: ({ props:
|
|
18977
|
-
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;
|
|
18978
19082
|
if (typeof verticalInset !== "string")
|
|
18979
19083
|
return;
|
|
18980
19084
|
const vi = verticalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
|
|
@@ -18983,8 +19087,8 @@ var Position = {
|
|
|
18983
19087
|
bottom: vi[1] || vi[0]
|
|
18984
19088
|
};
|
|
18985
19089
|
},
|
|
18986
|
-
horizontalInset: ({ props:
|
|
18987
|
-
const { horizontalInset } =
|
|
19090
|
+
horizontalInset: ({ props: props5, deps }) => {
|
|
19091
|
+
const { horizontalInset } = props5;
|
|
18988
19092
|
if (typeof horizontalInset !== "string")
|
|
18989
19093
|
return;
|
|
18990
19094
|
const vi = horizontalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
|
|
@@ -19004,31 +19108,31 @@ var Picture = {
|
|
|
19004
19108
|
tag: "source",
|
|
19005
19109
|
attr: {
|
|
19006
19110
|
media: (element) => {
|
|
19007
|
-
const { props:
|
|
19111
|
+
const { props: props5, key, context, deps } = element;
|
|
19008
19112
|
const { MEDIA: MEDIA2 } = context.designSystem;
|
|
19009
19113
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
19010
|
-
const mediaName = (
|
|
19114
|
+
const mediaName = (props5.media || key).slice(1);
|
|
19011
19115
|
if (mediaName === globalTheme)
|
|
19012
19116
|
return "(min-width: 0px)";
|
|
19013
19117
|
else if (mediaName === "dark" || mediaName === "light")
|
|
19014
19118
|
return "(max-width: 0px)";
|
|
19015
19119
|
return MEDIA2[mediaName];
|
|
19016
19120
|
},
|
|
19017
|
-
srcset: ({ props:
|
|
19121
|
+
srcset: ({ props: props5 }) => props5.srcset
|
|
19018
19122
|
}
|
|
19019
19123
|
},
|
|
19020
|
-
Img: ({ props:
|
|
19124
|
+
Img: ({ props: props5 }) => ({
|
|
19021
19125
|
width: "inherit",
|
|
19022
19126
|
ignoreChildExtend: true,
|
|
19023
19127
|
height: "inherit",
|
|
19024
|
-
src:
|
|
19128
|
+
src: props5.src
|
|
19025
19129
|
})
|
|
19026
19130
|
};
|
|
19027
19131
|
|
|
19028
19132
|
// ../uikit/Atoms/Pseudo.js
|
|
19029
19133
|
var Pseudo = {
|
|
19030
19134
|
class: {
|
|
19031
|
-
content: ({ props:
|
|
19135
|
+
content: ({ props: props5 }) => props5.content && { content: props5.content }
|
|
19032
19136
|
}
|
|
19033
19137
|
};
|
|
19034
19138
|
|
|
@@ -19040,28 +19144,30 @@ var Svg = {
|
|
|
19040
19144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19041
19145
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
19042
19146
|
},
|
|
19043
|
-
html: (
|
|
19044
|
-
|
|
19147
|
+
html: (el) => {
|
|
19148
|
+
const { props: props5, context } = el;
|
|
19149
|
+
if (props5.semantic_symbols)
|
|
19045
19150
|
return;
|
|
19151
|
+
if (props5.html)
|
|
19152
|
+
return el.call("exec", props5.html, el);
|
|
19046
19153
|
const { designSystem, utils: utils2 } = context;
|
|
19047
19154
|
const SVG = designSystem && designSystem.SVG;
|
|
19048
|
-
const useSvgSprite =
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
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;
|
|
19053
19159
|
const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
|
|
19054
|
-
const spriteId =
|
|
19160
|
+
const spriteId = props5.spriteId;
|
|
19055
19161
|
if (spriteId)
|
|
19056
19162
|
return useSVGSymbol(spriteId);
|
|
19057
|
-
const symbolId = Symbol.for(
|
|
19163
|
+
const symbolId = Symbol.for(src);
|
|
19058
19164
|
let SVGKey = SVG[symbolId];
|
|
19059
19165
|
if (SVGKey && SVG[SVGKey])
|
|
19060
19166
|
return useSVGSymbol(SVGKey);
|
|
19061
19167
|
SVGKey = SVG[symbolId] = Math.random();
|
|
19062
|
-
if (
|
|
19168
|
+
if (src) {
|
|
19063
19169
|
utils2.init({
|
|
19064
|
-
svg: { [SVGKey]:
|
|
19170
|
+
svg: { [SVGKey]: src }
|
|
19065
19171
|
}, {
|
|
19066
19172
|
document: context.document,
|
|
19067
19173
|
emotion: context.emotion
|
|
@@ -19074,77 +19180,80 @@ var Svg = {
|
|
|
19074
19180
|
// ../uikit/Atoms/Shape/index.js
|
|
19075
19181
|
var import_utils9 = __toESM(require_cjs());
|
|
19076
19182
|
var import_scratch9 = __toESM(require_cjs2());
|
|
19077
|
-
var transformBorderRadius = (radius,
|
|
19183
|
+
var transformBorderRadius = (radius, props5, propertyName) => {
|
|
19078
19184
|
if (!(0, import_utils9.isString)(radius))
|
|
19079
19185
|
return;
|
|
19080
19186
|
return {
|
|
19081
|
-
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(" ")
|
|
19082
19188
|
};
|
|
19083
19189
|
};
|
|
19084
19190
|
var Shape = {
|
|
19085
19191
|
extend: Pseudo,
|
|
19086
19192
|
deps: { exec: import_utils9.exec, getSpacingBasedOnRatio: import_scratch9.getSpacingBasedOnRatio, getMediaColor: import_scratch9.getMediaColor, transformBorderRadius },
|
|
19087
19193
|
class: {
|
|
19088
|
-
shape: ({ props:
|
|
19089
|
-
const { shape } =
|
|
19090
|
-
return deps.exec(SHAPES[shape], { props:
|
|
19194
|
+
shape: ({ props: props5, deps }) => {
|
|
19195
|
+
const { shape } = props5;
|
|
19196
|
+
return deps.exec(SHAPES[shape], { props: props5, deps });
|
|
19091
19197
|
},
|
|
19092
|
-
shapeDirection: ({ props:
|
|
19093
|
-
const { shape, shapeDirection } =
|
|
19198
|
+
shapeDirection: ({ props: props5 }) => {
|
|
19199
|
+
const { shape, shapeDirection } = props5;
|
|
19094
19200
|
if (!shape || !shapeDirection)
|
|
19095
19201
|
return;
|
|
19096
19202
|
const shapeDir = SHAPES[shape + "Direction"];
|
|
19097
19203
|
return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
|
|
19098
19204
|
},
|
|
19099
|
-
shapeDirectionColor: ({ props:
|
|
19100
|
-
const { background, backgroundColor } =
|
|
19205
|
+
shapeDirectionColor: ({ props: props5, deps }) => {
|
|
19206
|
+
const { background, backgroundColor } = props5;
|
|
19101
19207
|
const borderColor = {
|
|
19102
19208
|
borderColor: deps.getMediaColor(background || backgroundColor)
|
|
19103
19209
|
};
|
|
19104
|
-
return
|
|
19210
|
+
return props5.shapeDirection ? borderColor : null;
|
|
19105
19211
|
},
|
|
19106
|
-
round: ({ props:
|
|
19107
|
-
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")
|
|
19108
19214
|
}
|
|
19109
19215
|
};
|
|
19110
19216
|
|
|
19111
19217
|
// ../uikit/Atoms/Text.js
|
|
19112
19218
|
var import_utils10 = __toESM(require_cjs());
|
|
19113
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
|
+
};
|
|
19114
19233
|
var Text = {
|
|
19115
19234
|
deps: { exec: import_utils10.exec, getFontSizeByKey: import_scratch10.getFontSizeByKey, getFontFamily: import_scratch10.getFontFamily },
|
|
19116
19235
|
text: (el) => {
|
|
19117
|
-
const { key, props:
|
|
19118
|
-
if (
|
|
19119
|
-
return state && state[key] ||
|
|
19120
|
-
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);
|
|
19121
19240
|
},
|
|
19122
19241
|
class: {
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
return props2.fontSize ? deps.getFontSizeByKey(props2.fontSize) : null;
|
|
19126
|
-
},
|
|
19127
|
-
font: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.font) && { font: props2.font },
|
|
19128
|
-
fontFamily: ({ props: props2, deps }) => !(0, import_utils10.isUndefined)(props2.fontFamily) && {
|
|
19129
|
-
fontFamily: deps.getFontFamily(props2.fontFamily) || props2.fontFamily
|
|
19130
|
-
},
|
|
19131
|
-
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 },
|
|
19132
19244
|
// lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
19133
|
-
textDecoration: ({ props:
|
|
19134
|
-
textTransform: ({ props:
|
|
19135
|
-
wordBreak: ({ props:
|
|
19136
|
-
whiteSpace: ({ props:
|
|
19137
|
-
wordWrap: ({ props:
|
|
19138
|
-
letterSpacing: ({ props:
|
|
19139
|
-
textOverflow: ({ props:
|
|
19140
|
-
textAlign: ({ props:
|
|
19141
|
-
writingMode: ({ props:
|
|
19142
|
-
textOrientation: ({ props:
|
|
19143
|
-
textIndent: ({ props:
|
|
19144
|
-
|
|
19145
|
-
fontWeight: props2.fontWeight,
|
|
19146
|
-
fontVariationSettings: '"wght" ' + props2.fontWeight
|
|
19147
|
-
}
|
|
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
|
|
19148
19257
|
}
|
|
19149
19258
|
};
|
|
19150
19259
|
var H1 = { tag: "h1" };
|
|
@@ -19182,10 +19291,10 @@ var Data = { tag: "data" };
|
|
|
19182
19291
|
var import_utils11 = __toESM(require_cjs());
|
|
19183
19292
|
var Transform = {
|
|
19184
19293
|
class: {
|
|
19185
|
-
zoom: ({ props:
|
|
19186
|
-
transform: ({ props:
|
|
19187
|
-
transformOrigin: ({ props:
|
|
19188
|
-
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 }
|
|
19189
19298
|
}
|
|
19190
19299
|
};
|
|
19191
19300
|
|
|
@@ -19193,9 +19302,9 @@ var Transform = {
|
|
|
19193
19302
|
var import_utils12 = __toESM(require_cjs());
|
|
19194
19303
|
var XYZ = {
|
|
19195
19304
|
class: {
|
|
19196
|
-
zIndex: ({ props:
|
|
19197
|
-
perspective: ({ props:
|
|
19198
|
-
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 }
|
|
19199
19308
|
}
|
|
19200
19309
|
};
|
|
19201
19310
|
|
|
@@ -19211,41 +19320,44 @@ var applyAnimationProps = (animation, element) => {
|
|
|
19211
19320
|
const record = ANIMATION[animation];
|
|
19212
19321
|
return keyframes(record);
|
|
19213
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
|
+
};
|
|
19214
19346
|
var Animation = {
|
|
19215
19347
|
deps: { isObject: import_utils13.isObject, getTimingByKey: import_scratch11.getTimingByKey, getTimingFunction: import_scratch11.getTimingFunction, applyAnimationProps },
|
|
19216
19348
|
class: {
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
animationDelay: el.deps.getTimingByKey(el.props.animationDelay || "0s").timing,
|
|
19221
|
-
animationTimingFunction: el.deps.getTimingFunction(el.props.animationTimingFunction || "ease"),
|
|
19222
|
-
animationFillMode: el.props.animationFillMode || "both",
|
|
19223
|
-
animationPlayState: el.props.animationPlayState,
|
|
19224
|
-
animationDirection: el.props.animationDirection
|
|
19225
|
-
},
|
|
19226
|
-
animationName: (el) => el.props.animationName && {
|
|
19227
|
-
animationName: el.deps.applyAnimationProps(el.props.animationName, el)
|
|
19349
|
+
...props3,
|
|
19350
|
+
animationFillMode: ({ props: props5 }) => props5.animationFillMode && {
|
|
19351
|
+
animationFillMode: props5.animationFillMode
|
|
19228
19352
|
},
|
|
19229
|
-
|
|
19230
|
-
|
|
19353
|
+
animationPlayState: ({ props: props5 }) => props5.animationPlayState && {
|
|
19354
|
+
animationPlayState: props5.animationPlayState
|
|
19231
19355
|
},
|
|
19232
|
-
|
|
19233
|
-
|
|
19356
|
+
animationIterationCount: ({ props: props5 }) => props5.animationIterationCount && {
|
|
19357
|
+
animationIterationCount: props5.animationIterationCount || 1
|
|
19234
19358
|
},
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
},
|
|
19238
|
-
animationFillMode: ({ props: props2 }) => props2.animationFillMode && {
|
|
19239
|
-
animationFillMode: props2.animationFillMode
|
|
19240
|
-
},
|
|
19241
|
-
animationPlayState: ({ props: props2 }) => props2.animationPlayState && {
|
|
19242
|
-
animationPlayState: props2.animationPlayState
|
|
19243
|
-
},
|
|
19244
|
-
animationIterationCount: ({ props: props2 }) => props2.animationIterationCount && {
|
|
19245
|
-
animationIterationCount: props2.animationIterationCount || 1
|
|
19246
|
-
},
|
|
19247
|
-
animationDirection: ({ props: props2 }) => props2.animationDirection && {
|
|
19248
|
-
animationDirection: props2.animationDirection
|
|
19359
|
+
animationDirection: ({ props: props5 }) => props5.animationDirection && {
|
|
19360
|
+
animationDirection: props5.animationDirection
|
|
19249
19361
|
}
|
|
19250
19362
|
}
|
|
19251
19363
|
};
|
|
@@ -19254,37 +19366,37 @@ var Animation = {
|
|
|
19254
19366
|
var import_utils14 = __toESM(require_cjs());
|
|
19255
19367
|
var PropsCSS = {
|
|
19256
19368
|
class: {
|
|
19257
|
-
style: ({ props:
|
|
19369
|
+
style: ({ props: props5 }) => props5 && props5.style
|
|
19258
19370
|
}
|
|
19259
19371
|
};
|
|
19260
19372
|
var Box = {
|
|
19261
19373
|
extend: [
|
|
19262
19374
|
PropsCSS,
|
|
19263
|
-
Shape,
|
|
19264
|
-
Position,
|
|
19265
|
-
Theme,
|
|
19266
|
-
Block,
|
|
19267
|
-
Text,
|
|
19268
|
-
Overflow,
|
|
19269
|
-
Timing,
|
|
19270
|
-
Transform,
|
|
19271
|
-
Media,
|
|
19272
|
-
Interaction,
|
|
19273
|
-
XYZ,
|
|
19274
|
-
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"
|
|
19275
19387
|
],
|
|
19276
19388
|
deps: { isString: import_utils14.isString, isUndefined: import_utils14.isUndefined },
|
|
19277
19389
|
attr: {
|
|
19278
|
-
id: ({ props:
|
|
19279
|
-
title: ({ props:
|
|
19280
|
-
contentEditable: ({ props:
|
|
19281
|
-
dir: ({ props:
|
|
19282
|
-
draggable: ({ props:
|
|
19283
|
-
hidden: ({ props:
|
|
19284
|
-
lang: ({ props:
|
|
19285
|
-
spellcheck: ({ props:
|
|
19286
|
-
tabindex: ({ props:
|
|
19287
|
-
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
|
|
19288
19400
|
}
|
|
19289
19401
|
};
|
|
19290
19402
|
var Circle = {
|
|
@@ -19296,23 +19408,23 @@ var Circle = {
|
|
|
19296
19408
|
// ../uikit/Icon/index.js
|
|
19297
19409
|
var import_utils15 = __toESM(require_cjs());
|
|
19298
19410
|
var inheritFromIsActive = (el) => {
|
|
19299
|
-
const { props:
|
|
19300
|
-
const propsActive =
|
|
19411
|
+
const { props: props5 } = el;
|
|
19412
|
+
const propsActive = props5[".isActive"];
|
|
19301
19413
|
return el.call("exec", propsActive.name || propsActive.icon);
|
|
19302
19414
|
};
|
|
19303
19415
|
var getIconName = (el, s) => {
|
|
19304
|
-
const { key, props:
|
|
19305
|
-
let
|
|
19306
|
-
if ((0, import_utils15.isString)(
|
|
19307
|
-
|
|
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);
|
|
19308
19420
|
}
|
|
19309
|
-
return
|
|
19421
|
+
return el.call("isString", icon) ? icon : key;
|
|
19310
19422
|
};
|
|
19311
19423
|
var Icon = {
|
|
19312
19424
|
extend: "Svg",
|
|
19313
19425
|
deps: { isString: import_utils15.isString, replaceLiteralsWithObjectFields: import_utils15.replaceLiteralsWithObjectFields },
|
|
19314
19426
|
props: (el, s, ctx) => {
|
|
19315
|
-
const { props:
|
|
19427
|
+
const { props: props5, parent, deps } = el;
|
|
19316
19428
|
const { ICONS, useIconSprite, verbose } = ctx && ctx.designSystem;
|
|
19317
19429
|
const { toCamelCase } = ctx && ctx.utils;
|
|
19318
19430
|
const iconName = getIconName(el, s);
|
|
@@ -19322,7 +19434,7 @@ var Icon = {
|
|
|
19322
19434
|
if (semanticIcon)
|
|
19323
19435
|
return semanticIcon;
|
|
19324
19436
|
let activeIconName;
|
|
19325
|
-
if (
|
|
19437
|
+
if (props5.isActive)
|
|
19326
19438
|
activeIconName = inheritFromIsActive(el);
|
|
19327
19439
|
const parentProps = parent.props;
|
|
19328
19440
|
const parentPropsActive = parentProps[".isActive"];
|
|
@@ -19349,7 +19461,7 @@ var Icon = {
|
|
|
19349
19461
|
el.warn("Can't find icon:", iconName, iconInContext);
|
|
19350
19462
|
}
|
|
19351
19463
|
const iconFromLibrary = ICONS[iconInContext];
|
|
19352
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
19464
|
+
const directSrc = parent && parent.props && parent.props.src || props5.src;
|
|
19353
19465
|
return {
|
|
19354
19466
|
width: "A",
|
|
19355
19467
|
height: "A",
|
|
@@ -19365,21 +19477,26 @@ var IconText = {
|
|
|
19365
19477
|
extend: "Flex",
|
|
19366
19478
|
props: {
|
|
19367
19479
|
align: "center center",
|
|
19368
|
-
lineHeight: 1
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19480
|
+
lineHeight: 1,
|
|
19481
|
+
".reversed": {
|
|
19482
|
+
flow: "row-reverse"
|
|
19483
|
+
},
|
|
19484
|
+
".vertical": {
|
|
19485
|
+
flow: "column"
|
|
19374
19486
|
}
|
|
19375
19487
|
},
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
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)
|
|
19379
19498
|
},
|
|
19380
|
-
|
|
19381
|
-
props: { flow: "column" }
|
|
19382
|
-
}
|
|
19499
|
+
text: ({ props: props5 }) => props5.text
|
|
19383
19500
|
};
|
|
19384
19501
|
var FileIcon = {
|
|
19385
19502
|
extend: "Flex",
|
|
@@ -19700,16 +19817,16 @@ var Link = {
|
|
|
19700
19817
|
}
|
|
19701
19818
|
return href;
|
|
19702
19819
|
},
|
|
19703
|
-
target: ({ props:
|
|
19704
|
-
"aria-label": ({ props:
|
|
19705
|
-
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
|
|
19706
19823
|
}
|
|
19707
19824
|
};
|
|
19708
19825
|
var RouterLink = {
|
|
19709
19826
|
on: {
|
|
19710
19827
|
click: (event, el, s) => {
|
|
19711
|
-
const { props:
|
|
19712
|
-
const { href: h, scrollToTop, stopPropagation } =
|
|
19828
|
+
const { props: props5, context: ctx } = el;
|
|
19829
|
+
const { href: h, scrollToTop, stopPropagation } = props5;
|
|
19713
19830
|
const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
|
|
19714
19831
|
let href = exec7(h, el, s);
|
|
19715
19832
|
if (isString13(href) && href.includes("{{")) {
|
|
@@ -19728,7 +19845,7 @@ var RouterLink = {
|
|
|
19728
19845
|
scrollToOptions: { behaviour: "instant" },
|
|
19729
19846
|
scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
|
|
19730
19847
|
...routerOptions,
|
|
19731
|
-
...
|
|
19848
|
+
...props5.routerOptions
|
|
19732
19849
|
});
|
|
19733
19850
|
event.preventDefault();
|
|
19734
19851
|
} catch (e) {
|
|
@@ -19748,23 +19865,23 @@ var Video = {
|
|
|
19748
19865
|
childExtend: {
|
|
19749
19866
|
tag: "source",
|
|
19750
19867
|
attr: {
|
|
19751
|
-
src: ({ props:
|
|
19752
|
-
type: ({ props:
|
|
19753
|
-
controls: ({ props:
|
|
19868
|
+
src: ({ props: props5 }) => props5.src,
|
|
19869
|
+
type: ({ props: props5 }) => props5.type,
|
|
19870
|
+
controls: ({ props: props5 }) => props5.controls
|
|
19754
19871
|
}
|
|
19755
19872
|
},
|
|
19756
19873
|
props: {
|
|
19757
19874
|
controls: true
|
|
19758
19875
|
},
|
|
19759
19876
|
attr: {
|
|
19760
|
-
src: ({ props:
|
|
19761
|
-
playsinline: ({ props:
|
|
19762
|
-
autoplay: ({ props:
|
|
19763
|
-
loop: ({ props:
|
|
19764
|
-
poster: ({ props:
|
|
19765
|
-
muted: ({ props:
|
|
19766
|
-
preload: ({ props:
|
|
19767
|
-
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
|
|
19768
19885
|
}
|
|
19769
19886
|
};
|
|
19770
19887
|
|
|
@@ -19808,25 +19925,25 @@ var Input = {
|
|
|
19808
19925
|
padding: "Z2 B"
|
|
19809
19926
|
},
|
|
19810
19927
|
attr: {
|
|
19811
|
-
pattern: ({ props:
|
|
19812
|
-
minLength: ({ props:
|
|
19813
|
-
maxLength: ({ props:
|
|
19814
|
-
name: ({ props:
|
|
19815
|
-
autocomplete: ({ props:
|
|
19816
|
-
placeholder: ({ props:
|
|
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,
|
|
19817
19934
|
value: (el, s) => {
|
|
19818
|
-
const { props:
|
|
19935
|
+
const { props: props5, state, deps } = el;
|
|
19819
19936
|
const { isString: isString13, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = deps;
|
|
19820
|
-
const val = exec7(
|
|
19937
|
+
const val = exec7(props5.value, el);
|
|
19821
19938
|
if (isString13(val) && val.includes("{{")) {
|
|
19822
19939
|
return replaceLiteralsWithObjectFields3(val, state);
|
|
19823
19940
|
}
|
|
19824
19941
|
return val;
|
|
19825
19942
|
},
|
|
19826
|
-
disabled: ({ props:
|
|
19827
|
-
readonly: ({ props:
|
|
19828
|
-
required: ({ props:
|
|
19829
|
-
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
|
|
19830
19947
|
}
|
|
19831
19948
|
};
|
|
19832
19949
|
|
|
@@ -19849,9 +19966,9 @@ var NumberInput = {
|
|
|
19849
19966
|
}
|
|
19850
19967
|
},
|
|
19851
19968
|
attr: {
|
|
19852
|
-
step: ({ props:
|
|
19853
|
-
min: ({ props:
|
|
19854
|
-
max: ({ props:
|
|
19969
|
+
step: ({ props: props5 }) => props5.step,
|
|
19970
|
+
min: ({ props: props5 }) => props5.min,
|
|
19971
|
+
max: ({ props: props5 }) => props5.max
|
|
19855
19972
|
}
|
|
19856
19973
|
};
|
|
19857
19974
|
|
|
@@ -20056,14 +20173,14 @@ var Select = {
|
|
|
20056
20173
|
disabled: ""
|
|
20057
20174
|
},
|
|
20058
20175
|
attr: {
|
|
20059
|
-
value: ({ props:
|
|
20060
|
-
selected: ({ props:
|
|
20061
|
-
disabled: ({ props:
|
|
20176
|
+
value: ({ props: props5 }) => props5.value,
|
|
20177
|
+
selected: ({ props: props5 }) => props5.selected,
|
|
20178
|
+
disabled: ({ props: props5 }) => props5.disabled
|
|
20062
20179
|
}
|
|
20063
20180
|
},
|
|
20064
20181
|
attr: {
|
|
20065
|
-
name: ({ props:
|
|
20066
|
-
disabled: ({ props:
|
|
20182
|
+
name: ({ props: props5 }) => props5.name,
|
|
20183
|
+
disabled: ({ props: props5 }) => props5.disabled
|
|
20067
20184
|
}
|
|
20068
20185
|
};
|
|
20069
20186
|
|
|
@@ -20124,20 +20241,12 @@ var Field = {
|
|
|
20124
20241
|
align: "center flex-start",
|
|
20125
20242
|
gap: "Y",
|
|
20126
20243
|
boxSizing: "border-box",
|
|
20127
|
-
position: "relative"
|
|
20128
|
-
Input: {
|
|
20129
|
-
padding: "Z2 B2 Z2 B",
|
|
20130
|
-
flex: "1"
|
|
20131
|
-
},
|
|
20132
|
-
Button: {
|
|
20133
|
-
padding: "0",
|
|
20134
|
-
background: "transparent",
|
|
20135
|
-
margin: "- - - auto",
|
|
20136
|
-
fontSize: "Z2"
|
|
20137
|
-
}
|
|
20244
|
+
position: "relative"
|
|
20138
20245
|
},
|
|
20139
20246
|
Input: {
|
|
20140
|
-
placeholder: "Placeholder"
|
|
20247
|
+
placeholder: "Placeholder",
|
|
20248
|
+
padding: "Z2 B2 Z2 B",
|
|
20249
|
+
flex: "1"
|
|
20141
20250
|
},
|
|
20142
20251
|
Icon: {
|
|
20143
20252
|
props: ({ parent }) => ({
|
|
@@ -20146,6 +20255,12 @@ var Field = {
|
|
|
20146
20255
|
margin: "- Z1 - -C",
|
|
20147
20256
|
position: "relative"
|
|
20148
20257
|
})
|
|
20258
|
+
},
|
|
20259
|
+
Button: {
|
|
20260
|
+
padding: "0",
|
|
20261
|
+
background: "transparent",
|
|
20262
|
+
margin: "- - - auto",
|
|
20263
|
+
fontSize: "Z2"
|
|
20149
20264
|
}
|
|
20150
20265
|
};
|
|
20151
20266
|
var FieldTemplate = {
|
|
@@ -20318,7 +20433,7 @@ var Button = {
|
|
|
20318
20433
|
round: "C2"
|
|
20319
20434
|
},
|
|
20320
20435
|
attr: {
|
|
20321
|
-
type: ({ props:
|
|
20436
|
+
type: ({ props: props5 }) => props5.type
|
|
20322
20437
|
}
|
|
20323
20438
|
};
|
|
20324
20439
|
var SquareButton = {
|
|
@@ -20470,9 +20585,9 @@ var ProgressLine = {
|
|
|
20470
20585
|
}
|
|
20471
20586
|
},
|
|
20472
20587
|
attr: {
|
|
20473
|
-
max: ({ props:
|
|
20474
|
-
progress: ({ props:
|
|
20475
|
-
value: ({ props:
|
|
20588
|
+
max: ({ props: props5 }) => props5.max,
|
|
20589
|
+
progress: ({ props: props5 }) => props5.progress,
|
|
20590
|
+
value: ({ props: props5 }) => props5.value
|
|
20476
20591
|
}
|
|
20477
20592
|
};
|
|
20478
20593
|
var ProgressLineWithUnitValue = {
|
|
@@ -20518,9 +20633,9 @@ var ProgressCircle = {
|
|
|
20518
20633
|
}
|
|
20519
20634
|
},
|
|
20520
20635
|
attr: {
|
|
20521
|
-
max: ({ props:
|
|
20522
|
-
progress: ({ props:
|
|
20523
|
-
value: ({ props:
|
|
20636
|
+
max: ({ props: props5 }) => props5.max,
|
|
20637
|
+
progress: ({ props: props5 }) => props5.progress,
|
|
20638
|
+
value: ({ props: props5 }) => props5.value
|
|
20524
20639
|
}
|
|
20525
20640
|
}
|
|
20526
20641
|
};
|
|
@@ -20568,7 +20683,7 @@ var ProgressCircleWithSideUnitValue = {
|
|
|
20568
20683
|
// ../uikit/Range/index.js
|
|
20569
20684
|
var import_utils17 = __toESM(require_cjs());
|
|
20570
20685
|
var import_scratch12 = __toESM(require_cjs2());
|
|
20571
|
-
var
|
|
20686
|
+
var props4 = {
|
|
20572
20687
|
appearance: "none",
|
|
20573
20688
|
width: "100%",
|
|
20574
20689
|
height: "2px",
|
|
@@ -20633,7 +20748,7 @@ var returnPropertyValue = (el, property, def) => {
|
|
|
20633
20748
|
return r + "";
|
|
20634
20749
|
};
|
|
20635
20750
|
var Range = {
|
|
20636
|
-
props,
|
|
20751
|
+
props: props4,
|
|
20637
20752
|
tag: "input",
|
|
20638
20753
|
attr: {
|
|
20639
20754
|
type: "range",
|
|
@@ -20644,17 +20759,17 @@ var Range = {
|
|
|
20644
20759
|
},
|
|
20645
20760
|
on: {
|
|
20646
20761
|
input: (ev, el, s) => {
|
|
20647
|
-
const
|
|
20648
|
-
if ((0, import_utils17.isFunction)(
|
|
20649
|
-
|
|
20762
|
+
const props5 = el.props;
|
|
20763
|
+
if ((0, import_utils17.isFunction)(props5.onInput)) {
|
|
20764
|
+
props5.onInput(ev, el, s);
|
|
20650
20765
|
} else {
|
|
20651
20766
|
s.update({ value: parseFloat(el.node.value) });
|
|
20652
20767
|
}
|
|
20653
20768
|
},
|
|
20654
20769
|
change: (ev, el, s) => {
|
|
20655
|
-
const
|
|
20656
|
-
if ((0, import_utils17.isFunction)(
|
|
20657
|
-
|
|
20770
|
+
const props5 = el.props;
|
|
20771
|
+
if ((0, import_utils17.isFunction)(props5.onChange)) {
|
|
20772
|
+
props5.onChange(ev, el, s);
|
|
20658
20773
|
} else {
|
|
20659
20774
|
s.update({ value: parseFloat(el.node.value) });
|
|
20660
20775
|
}
|
|
@@ -20776,8 +20891,8 @@ var Slider = {
|
|
|
20776
20891
|
click: (ev, el, s) => {
|
|
20777
20892
|
el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
20778
20893
|
const input = el.parent.input;
|
|
20779
|
-
const
|
|
20780
|
-
const value2 = (0, import_utils18.isFunction)(
|
|
20894
|
+
const props5 = input.props;
|
|
20895
|
+
const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
|
|
20781
20896
|
input.node.value = value2;
|
|
20782
20897
|
}
|
|
20783
20898
|
}
|
|
@@ -20813,8 +20928,8 @@ var Slider = {
|
|
|
20813
20928
|
click: (ev, el, s) => {
|
|
20814
20929
|
el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
20815
20930
|
const input = el.parent.input;
|
|
20816
|
-
const
|
|
20817
|
-
const value2 = (0, import_utils18.isFunction)(
|
|
20931
|
+
const props5 = input.props;
|
|
20932
|
+
const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
|
|
20818
20933
|
input.node.value = value2;
|
|
20819
20934
|
}
|
|
20820
20935
|
}
|
|
@@ -20866,12 +20981,12 @@ var CardLabel = {
|
|
|
20866
20981
|
// ../uikit/Avatar/Avatar.js
|
|
20867
20982
|
var Avatar = {
|
|
20868
20983
|
extend: "Img",
|
|
20869
|
-
props: ({ key, props:
|
|
20984
|
+
props: ({ key, props: props5 }) => ({
|
|
20870
20985
|
display: "block",
|
|
20871
20986
|
avatarType: "adventurer-neutral",
|
|
20872
20987
|
borderRadius: "100%",
|
|
20873
20988
|
boxSize: "C+X C+X",
|
|
20874
|
-
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"}`
|
|
20875
20990
|
})
|
|
20876
20991
|
};
|
|
20877
20992
|
|
|
@@ -20908,7 +21023,7 @@ var AvatarBundle = {
|
|
|
20908
21023
|
}
|
|
20909
21024
|
},
|
|
20910
21025
|
childExtend: Avatar,
|
|
20911
|
-
$propsCollection: ({ props:
|
|
21026
|
+
$propsCollection: ({ props: props5 }) => props5.options
|
|
20912
21027
|
};
|
|
20913
21028
|
|
|
20914
21029
|
// ../uikit/Avatar/AvatarChooser.js
|
|
@@ -20988,32 +21103,24 @@ var Notification = {
|
|
|
20988
21103
|
align: "flex-start center"
|
|
20989
21104
|
},
|
|
20990
21105
|
IconText: {
|
|
20991
|
-
|
|
20992
|
-
icon: "info outline"
|
|
20993
|
-
}
|
|
21106
|
+
icon: "info outline"
|
|
20994
21107
|
},
|
|
20995
21108
|
Flex: {
|
|
20996
|
-
|
|
20997
|
-
|
|
20998
|
-
|
|
20999
|
-
gap: "X2"
|
|
21000
|
-
},
|
|
21109
|
+
flow: "column",
|
|
21110
|
+
align: "flex-start",
|
|
21111
|
+
gap: "X2",
|
|
21001
21112
|
Title: {
|
|
21002
21113
|
tag: "h6",
|
|
21003
|
-
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
|
|
21007
|
-
text: "Notification"
|
|
21008
|
-
}
|
|
21114
|
+
margin: "0",
|
|
21115
|
+
fontWeight: "600",
|
|
21116
|
+
lineHeight: "1em",
|
|
21117
|
+
text: "Notification"
|
|
21009
21118
|
},
|
|
21010
21119
|
P: {
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
21014
|
-
|
|
21015
|
-
text: "is not always a distraction"
|
|
21016
|
-
}
|
|
21120
|
+
fontSize: "Z",
|
|
21121
|
+
margin: "0",
|
|
21122
|
+
text: "is not always a distraction",
|
|
21123
|
+
":empty": { hide: true }
|
|
21017
21124
|
}
|
|
21018
21125
|
}
|
|
21019
21126
|
};
|
|
@@ -21050,7 +21157,7 @@ var Tooltip = {
|
|
|
21050
21157
|
},
|
|
21051
21158
|
attr: { tooltip: true },
|
|
21052
21159
|
Title: {
|
|
21053
|
-
if: ({ parent, props:
|
|
21160
|
+
if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.title) || props5.text,
|
|
21054
21161
|
props: ({ parent }) => ({
|
|
21055
21162
|
width: "fit-content",
|
|
21056
21163
|
fontWeight: 500,
|
|
@@ -21059,7 +21166,7 @@ var Tooltip = {
|
|
|
21059
21166
|
})
|
|
21060
21167
|
},
|
|
21061
21168
|
P: {
|
|
21062
|
-
if: ({ parent, props:
|
|
21169
|
+
if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.description) || props5.text,
|
|
21063
21170
|
props: ({ parent }) => ({
|
|
21064
21171
|
width: "fit-content",
|
|
21065
21172
|
fontSize: "Z2",
|
|
@@ -21072,13 +21179,13 @@ var Tooltip = {
|
|
|
21072
21179
|
};
|
|
21073
21180
|
var TooltipHidden = {
|
|
21074
21181
|
extend: "Tooltip",
|
|
21075
|
-
props: ({ props:
|
|
21182
|
+
props: ({ props: props5 }) => ({
|
|
21076
21183
|
position: "absolute",
|
|
21077
21184
|
pointerEvents: "none",
|
|
21078
21185
|
opacity: "0",
|
|
21079
21186
|
visibility: "hidden",
|
|
21080
21187
|
transition: "C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",
|
|
21081
|
-
...
|
|
21188
|
+
...props5.shapeDirection === "top" ? {
|
|
21082
21189
|
top: "112%",
|
|
21083
21190
|
left: "50%",
|
|
21084
21191
|
transform: "translate3d(-50%,10%,0)",
|
|
@@ -21087,7 +21194,7 @@ var TooltipHidden = {
|
|
|
21087
21194
|
opacity: 1,
|
|
21088
21195
|
visibility: "visible"
|
|
21089
21196
|
}
|
|
21090
|
-
} :
|
|
21197
|
+
} : props5.shapeDirection === "right" ? {
|
|
21091
21198
|
transform: "translate3d(10%,-50%,0)",
|
|
21092
21199
|
right: "112%",
|
|
21093
21200
|
top: "50%",
|
|
@@ -21096,7 +21203,7 @@ var TooltipHidden = {
|
|
|
21096
21203
|
opacity: 1,
|
|
21097
21204
|
visibility: "visible"
|
|
21098
21205
|
}
|
|
21099
|
-
} :
|
|
21206
|
+
} : props5.shapeDirection === "bottom" ? {
|
|
21100
21207
|
transform: "translate3d(-50%,-10%,0)",
|
|
21101
21208
|
bottom: "112%",
|
|
21102
21209
|
left: "50%",
|
|
@@ -21161,7 +21268,7 @@ var Pills = {
|
|
|
21161
21268
|
}
|
|
21162
21269
|
}
|
|
21163
21270
|
},
|
|
21164
|
-
$propsCollection: ({ props:
|
|
21271
|
+
$propsCollection: ({ props: props5, state }) => new Array(props5.qty).fill({})
|
|
21165
21272
|
};
|
|
21166
21273
|
|
|
21167
21274
|
// ../uikit/Tab/index.js
|
|
@@ -21900,7 +22007,7 @@ var DropdownList = {
|
|
|
21900
22007
|
style: { listStyleType: "none" },
|
|
21901
22008
|
transition: "B defaultBezier",
|
|
21902
22009
|
transitionProperty: "transform, opacity, visibility",
|
|
21903
|
-
children: ({ props:
|
|
22010
|
+
children: ({ props: props5 }) => props5.options || [],
|
|
21904
22011
|
childrenAs: "props",
|
|
21905
22012
|
".hidden": {
|
|
21906
22013
|
transform: "translate3d(0,10%,0)",
|
|
@@ -23594,6 +23701,8 @@ var BaseWS = class extends Transport {
|
|
|
23594
23701
|
}
|
|
23595
23702
|
doClose() {
|
|
23596
23703
|
if (typeof this.ws !== "undefined") {
|
|
23704
|
+
this.ws.onerror = () => {
|
|
23705
|
+
};
|
|
23597
23706
|
this.ws.close();
|
|
23598
23707
|
this.ws = null;
|
|
23599
23708
|
}
|
|
@@ -26564,11 +26673,11 @@ var length2 = 0;
|
|
|
26564
26673
|
var position2 = 0;
|
|
26565
26674
|
var character2 = 0;
|
|
26566
26675
|
var characters2 = "";
|
|
26567
|
-
function node2(value2, root, parent, type,
|
|
26568
|
-
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: "" };
|
|
26569
26678
|
}
|
|
26570
|
-
function copy2(root,
|
|
26571
|
-
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);
|
|
26572
26681
|
}
|
|
26573
26682
|
function char2() {
|
|
26574
26683
|
return character2;
|
|
@@ -26699,7 +26808,7 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
26699
26808
|
var ampersand = 1;
|
|
26700
26809
|
var character3 = 0;
|
|
26701
26810
|
var type = "";
|
|
26702
|
-
var
|
|
26811
|
+
var props5 = rules;
|
|
26703
26812
|
var children = rulesets;
|
|
26704
26813
|
var reference = rule;
|
|
26705
26814
|
var characters3 = type;
|
|
@@ -26753,17 +26862,17 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
26753
26862
|
case 59:
|
|
26754
26863
|
characters3 += ";";
|
|
26755
26864
|
default:
|
|
26756
|
-
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);
|
|
26757
26866
|
if (character3 === 123)
|
|
26758
26867
|
if (offset === 0)
|
|
26759
|
-
parse3(characters3, root, reference, reference,
|
|
26868
|
+
parse3(characters3, root, reference, reference, props5, rulesets, length3, points, children);
|
|
26760
26869
|
else
|
|
26761
26870
|
switch (atrule === 99 && charat2(characters3, 3) === 110 ? 100 : atrule) {
|
|
26762
26871
|
case 100:
|
|
26763
26872
|
case 108:
|
|
26764
26873
|
case 109:
|
|
26765
26874
|
case 115:
|
|
26766
|
-
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);
|
|
26767
26876
|
break;
|
|
26768
26877
|
default:
|
|
26769
26878
|
parse3(characters3, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -26799,15 +26908,15 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
26799
26908
|
}
|
|
26800
26909
|
return rulesets;
|
|
26801
26910
|
}
|
|
26802
|
-
function ruleset2(value2, root, parent, index, offset, rules, points, type,
|
|
26911
|
+
function ruleset2(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
|
|
26803
26912
|
var post = offset - 1;
|
|
26804
26913
|
var rule = offset === 0 ? rules : [""];
|
|
26805
26914
|
var size = sizeof2(rule);
|
|
26806
26915
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
26807
26916
|
for (var x = 0, y = substr2(value2, post + 1, post = abs2(j = points[i])), z = value2; x < size; ++x)
|
|
26808
26917
|
if (z = trim2(j > 0 ? rule[x] + " " + y : replace2(y, /&\f/g, rule[x])))
|
|
26809
|
-
|
|
26810
|
-
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);
|
|
26811
26920
|
}
|
|
26812
26921
|
function comment2(value2, root, parent) {
|
|
26813
26922
|
return node2(value2, root, parent, COMMENT2, from2(char2()), substr2(value2, 2, -2), 0);
|