@symbo.ls/uikit 2.11.36 → 2.11.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1311 -995
- package/dist/index.cjs.js.map +4 -4
- package/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -465,8 +465,8 @@ var require_cjs = __commonJS({
|
|
|
465
465
|
__export22(array_exports, {
|
|
466
466
|
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
467
467
|
joinArrays: () => joinArrays,
|
|
468
|
-
mergeAndCloneIfArray: () =>
|
|
469
|
-
mergeArray: () =>
|
|
468
|
+
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
469
|
+
mergeArray: () => mergeArray,
|
|
470
470
|
removeFromArray: () => removeFromArray,
|
|
471
471
|
swapItemsInArray: () => swapItemsInArray
|
|
472
472
|
});
|
|
@@ -497,11 +497,11 @@ var require_cjs = __commonJS({
|
|
|
497
497
|
var joinArrays = (...arrays) => {
|
|
498
498
|
return [].concat(...arrays);
|
|
499
499
|
};
|
|
500
|
-
var
|
|
500
|
+
var mergeArray = (arr, excludeFrom = []) => {
|
|
501
501
|
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
502
502
|
};
|
|
503
|
-
var
|
|
504
|
-
return (0, import_types.isArray)(obj) ?
|
|
503
|
+
var mergeAndCloneIfArray = (obj) => {
|
|
504
|
+
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
@@ -542,7 +542,7 @@ var require_cjs = __commonJS({
|
|
|
542
542
|
isEqualDeep: () => isEqualDeep,
|
|
543
543
|
map: () => map,
|
|
544
544
|
merge: () => merge52,
|
|
545
|
-
mergeArrayExclude: () =>
|
|
545
|
+
mergeArrayExclude: () => mergeArrayExclude,
|
|
546
546
|
mergeIfExisted: () => mergeIfExisted,
|
|
547
547
|
overwrite: () => overwrite,
|
|
548
548
|
overwriteDeep: () => overwriteDeep,
|
|
@@ -564,32 +564,32 @@ var require_cjs = __commonJS({
|
|
|
564
564
|
return param;
|
|
565
565
|
};
|
|
566
566
|
var map = (obj, extention, element) => {
|
|
567
|
-
for (const
|
|
568
|
-
obj[
|
|
567
|
+
for (const e in extention) {
|
|
568
|
+
obj[e] = exec5(extention[e], element);
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
571
|
var merge52 = (element, obj, excludeFrom = []) => {
|
|
572
|
-
for (const
|
|
573
|
-
if (excludeFrom.includes(
|
|
572
|
+
for (const e in obj) {
|
|
573
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
574
574
|
continue;
|
|
575
|
-
const elementProp = element[
|
|
576
|
-
const objProp = obj[
|
|
575
|
+
const elementProp = element[e];
|
|
576
|
+
const objProp = obj[e];
|
|
577
577
|
if (elementProp === void 0) {
|
|
578
|
-
element[
|
|
578
|
+
element[e] = objProp;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
return element;
|
|
582
582
|
};
|
|
583
583
|
var deepMerge3 = (element, extend, excludeFrom = []) => {
|
|
584
|
-
for (const
|
|
585
|
-
if (excludeFrom.includes(
|
|
584
|
+
for (const e in extend) {
|
|
585
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
586
586
|
continue;
|
|
587
|
-
const elementProp = element[
|
|
588
|
-
const extendProp = extend[
|
|
587
|
+
const elementProp = element[e];
|
|
588
|
+
const extendProp = extend[e];
|
|
589
589
|
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
590
590
|
deepMerge3(elementProp, extendProp);
|
|
591
591
|
} else if (elementProp === void 0) {
|
|
592
|
-
element[
|
|
592
|
+
element[e] = extendProp;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
return element;
|
|
@@ -613,7 +613,7 @@ var require_cjs = __commonJS({
|
|
|
613
613
|
continue;
|
|
614
614
|
let v = obj[k];
|
|
615
615
|
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
616
|
-
v =
|
|
616
|
+
v = mergeArrayExclude(v, excludeFrom);
|
|
617
617
|
}
|
|
618
618
|
if ((0, import_types.isArray)(v)) {
|
|
619
619
|
o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
|
|
@@ -624,7 +624,7 @@ var require_cjs = __commonJS({
|
|
|
624
624
|
}
|
|
625
625
|
return o;
|
|
626
626
|
};
|
|
627
|
-
var
|
|
627
|
+
var mergeArrayExclude = (arr, excl = []) => {
|
|
628
628
|
return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
|
|
629
629
|
};
|
|
630
630
|
var deepClone22 = (obj, excludeFrom = []) => {
|
|
@@ -703,8 +703,8 @@ var require_cjs = __commonJS({
|
|
|
703
703
|
try {
|
|
704
704
|
const evalProp = import_globals3.window.eval(`(${objProp})`);
|
|
705
705
|
stringified[prop] = evalProp;
|
|
706
|
-
} catch (
|
|
707
|
-
if (
|
|
706
|
+
} catch (e) {
|
|
707
|
+
if (e)
|
|
708
708
|
stringified[prop] = objProp;
|
|
709
709
|
}
|
|
710
710
|
} else {
|
|
@@ -718,8 +718,8 @@ var require_cjs = __commonJS({
|
|
|
718
718
|
try {
|
|
719
719
|
const evalProp = import_globals3.window.eval(`(${arrProp})`);
|
|
720
720
|
stringified[prop].push(evalProp);
|
|
721
|
-
} catch (
|
|
722
|
-
if (
|
|
721
|
+
} catch (e) {
|
|
722
|
+
if (e)
|
|
723
723
|
stringified[prop].push(arrProp);
|
|
724
724
|
}
|
|
725
725
|
} else {
|
|
@@ -740,16 +740,16 @@ var require_cjs = __commonJS({
|
|
|
740
740
|
return stringified;
|
|
741
741
|
};
|
|
742
742
|
var diffObjects = (original, objToDiff, cache) => {
|
|
743
|
-
for (const
|
|
744
|
-
if (
|
|
743
|
+
for (const e in objToDiff) {
|
|
744
|
+
if (e === "ref")
|
|
745
745
|
continue;
|
|
746
|
-
const originalProp = original[
|
|
747
|
-
const objToDiffProp = objToDiff[
|
|
746
|
+
const originalProp = original[e];
|
|
747
|
+
const objToDiffProp = objToDiff[e];
|
|
748
748
|
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
749
|
-
cache[
|
|
750
|
-
diff5(originalProp, objToDiffProp, cache[
|
|
749
|
+
cache[e] = {};
|
|
750
|
+
diff5(originalProp, objToDiffProp, cache[e]);
|
|
751
751
|
} else if (objToDiffProp !== void 0) {
|
|
752
|
-
cache[
|
|
752
|
+
cache[e] = objToDiffProp;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
return cache;
|
|
@@ -783,36 +783,36 @@ var require_cjs = __commonJS({
|
|
|
783
783
|
var overwrite = (element, params, excludeFrom = []) => {
|
|
784
784
|
const { ref } = element;
|
|
785
785
|
const changes = {};
|
|
786
|
-
for (const
|
|
787
|
-
if (excludeFrom.includes(
|
|
786
|
+
for (const e in params) {
|
|
787
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
788
788
|
continue;
|
|
789
|
-
const elementProp = element[
|
|
790
|
-
const paramsProp = params[
|
|
789
|
+
const elementProp = element[e];
|
|
790
|
+
const paramsProp = params[e];
|
|
791
791
|
if (paramsProp) {
|
|
792
|
-
ref.__cache[
|
|
793
|
-
ref[
|
|
792
|
+
ref.__cache[e] = changes[e] = elementProp;
|
|
793
|
+
ref[e] = paramsProp;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
return changes;
|
|
797
797
|
};
|
|
798
798
|
var overwriteShallow5 = (obj, params, excludeFrom = []) => {
|
|
799
|
-
for (const
|
|
800
|
-
if (excludeFrom.includes(
|
|
799
|
+
for (const e in params) {
|
|
800
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
801
801
|
continue;
|
|
802
|
-
obj[
|
|
802
|
+
obj[e] = params[e];
|
|
803
803
|
}
|
|
804
804
|
return obj;
|
|
805
805
|
};
|
|
806
806
|
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
807
|
-
for (const
|
|
808
|
-
if (excludeFrom.includes(
|
|
807
|
+
for (const e in params) {
|
|
808
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
809
809
|
continue;
|
|
810
|
-
const objProp = obj[
|
|
811
|
-
const paramsProp = params[
|
|
810
|
+
const objProp = obj[e];
|
|
811
|
+
const paramsProp = params[e];
|
|
812
812
|
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
813
813
|
overwriteDeep(objProp, paramsProp);
|
|
814
814
|
} else if (paramsProp !== void 0) {
|
|
815
|
-
obj[
|
|
815
|
+
obj[e] = paramsProp;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
818
|
return obj;
|
|
@@ -851,13 +851,13 @@ var require_cjs = __commonJS({
|
|
|
851
851
|
}
|
|
852
852
|
return true;
|
|
853
853
|
};
|
|
854
|
-
var removeFromObject = (obj,
|
|
855
|
-
if (
|
|
854
|
+
var removeFromObject = (obj, props7) => {
|
|
855
|
+
if (props7 === void 0 || props7 === null)
|
|
856
856
|
return obj;
|
|
857
|
-
if ((0, import_types.is)(
|
|
858
|
-
delete obj[
|
|
859
|
-
} else if ((0, import_types.isArray)(
|
|
860
|
-
|
|
857
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
858
|
+
delete obj[props7];
|
|
859
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
860
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
861
861
|
} else {
|
|
862
862
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
863
863
|
}
|
|
@@ -1540,8 +1540,8 @@ var require_cjs = __commonJS({
|
|
|
1540
1540
|
18: "S",
|
|
1541
1541
|
19: "T"
|
|
1542
1542
|
};
|
|
1543
|
-
var setSequenceValue = (
|
|
1544
|
-
const { key, variable, value, scaling, index } =
|
|
1543
|
+
var setSequenceValue = (props7, sequenceProps) => {
|
|
1544
|
+
const { key, variable, value, scaling, index } = props7;
|
|
1545
1545
|
sequenceProps.sequence[key] = {
|
|
1546
1546
|
key,
|
|
1547
1547
|
decimal: ~~(value * 100) / 100,
|
|
@@ -1553,8 +1553,8 @@ var require_cjs = __commonJS({
|
|
|
1553
1553
|
sequenceProps.scales[key] = scaling;
|
|
1554
1554
|
sequenceProps.vars[variable] = scaling + sequenceProps.unit;
|
|
1555
1555
|
};
|
|
1556
|
-
var generateSubSequence = (
|
|
1557
|
-
const { key, base, value, ratio, variable, index } =
|
|
1556
|
+
var generateSubSequence = (props7, sequenceProps) => {
|
|
1557
|
+
const { key, base, value, ratio, variable, index } = props7;
|
|
1558
1558
|
const next2 = value * ratio;
|
|
1559
1559
|
const diff5 = next2 - value;
|
|
1560
1560
|
const smallscale = diff5 / 1.618;
|
|
@@ -1595,7 +1595,7 @@ var require_cjs = __commonJS({
|
|
|
1595
1595
|
const value = switchSequenceOnNegative(key, base, ratio);
|
|
1596
1596
|
const scaling = ~~(value / base * 100) / 100;
|
|
1597
1597
|
const variable = prefix2 + letterKey;
|
|
1598
|
-
const
|
|
1598
|
+
const props7 = {
|
|
1599
1599
|
key: letterKey,
|
|
1600
1600
|
variable,
|
|
1601
1601
|
value,
|
|
@@ -1604,9 +1604,9 @@ var require_cjs = __commonJS({
|
|
|
1604
1604
|
ratio,
|
|
1605
1605
|
index: key
|
|
1606
1606
|
};
|
|
1607
|
-
setSequenceValue(
|
|
1607
|
+
setSequenceValue(props7, sequenceProps);
|
|
1608
1608
|
if (subSequence)
|
|
1609
|
-
generateSubSequence(
|
|
1609
|
+
generateSubSequence(props7, sequenceProps);
|
|
1610
1610
|
}
|
|
1611
1611
|
return sequenceProps;
|
|
1612
1612
|
};
|
|
@@ -1688,14 +1688,14 @@ var require_cjs = __commonJS({
|
|
|
1688
1688
|
CSS_VARS2[result.var] = result.value;
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
|
-
var applySequenceVars = (
|
|
1691
|
+
var applySequenceVars = (props7, mediaName, options = {}) => {
|
|
1692
1692
|
const CONFIG22 = getActiveConfig5();
|
|
1693
1693
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
1694
|
-
const unit =
|
|
1695
|
-
const { sequence, scales } =
|
|
1694
|
+
const unit = props7.unit || UNIT2.default;
|
|
1695
|
+
const { sequence, scales } = props7;
|
|
1696
1696
|
for (const key in sequence) {
|
|
1697
1697
|
const item = sequence[key];
|
|
1698
|
-
const value = (
|
|
1698
|
+
const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
|
|
1699
1699
|
if (mediaName) {
|
|
1700
1700
|
const query = MEDIA2[mediaName];
|
|
1701
1701
|
if (!query) {
|
|
@@ -2184,13 +2184,13 @@ var require_cjs = __commonJS({
|
|
|
2184
2184
|
return { var: CSSvar, value: str, arr: value, type };
|
|
2185
2185
|
};
|
|
2186
2186
|
var import_utils142 = __toESM2(require_cjs42(), 1);
|
|
2187
|
-
var runThroughMedia = (
|
|
2187
|
+
var runThroughMedia = (props7) => {
|
|
2188
2188
|
const CONFIG22 = getActiveConfig5();
|
|
2189
2189
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
2190
|
-
for (const prop in
|
|
2191
|
-
const mediaProps =
|
|
2190
|
+
for (const prop in props7) {
|
|
2191
|
+
const mediaProps = props7[prop];
|
|
2192
2192
|
if (prop.slice(0, 1) === "@") {
|
|
2193
|
-
const { type, base, ratio, range, subSequence, h1Matches, unit } =
|
|
2193
|
+
const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
|
|
2194
2194
|
(0, import_utils142.merge)(mediaProps, {
|
|
2195
2195
|
type,
|
|
2196
2196
|
base,
|
|
@@ -2214,20 +2214,20 @@ var require_cjs = __commonJS({
|
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
};
|
|
2217
|
-
var applyHeadings = (
|
|
2217
|
+
var applyHeadings = (props7) => {
|
|
2218
2218
|
const CONFIG22 = getActiveConfig5();
|
|
2219
|
-
if (
|
|
2220
|
-
const unit =
|
|
2221
|
-
const HEADINGS = findHeadings(
|
|
2222
|
-
const { templates } =
|
|
2219
|
+
if (props7.h1Matches) {
|
|
2220
|
+
const unit = props7.unit;
|
|
2221
|
+
const HEADINGS = findHeadings(props7);
|
|
2222
|
+
const { templates } = props7;
|
|
2223
2223
|
for (const k in HEADINGS) {
|
|
2224
2224
|
const headerName = `h${parseInt(k) + 1}`;
|
|
2225
2225
|
const headerStyle = templates[headerName];
|
|
2226
2226
|
templates[headerName] = {
|
|
2227
2227
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
2228
2228
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
2229
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
2230
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
2229
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
|
|
2230
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
|
|
2231
2231
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
@@ -2322,11 +2322,11 @@ var require_cjs = __commonJS({
|
|
|
2322
2322
|
sequence
|
|
2323
2323
|
);
|
|
2324
2324
|
};
|
|
2325
|
-
var getSpacingBasedOnRatio13 = (
|
|
2325
|
+
var getSpacingBasedOnRatio13 = (props7, propertyName, val) => {
|
|
2326
2326
|
const CONFIG22 = getActiveConfig5();
|
|
2327
2327
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
2328
|
-
const { spacingRatio, unit } =
|
|
2329
|
-
const value = val ||
|
|
2328
|
+
const { spacingRatio, unit } = props7;
|
|
2329
|
+
const value = val || props7[propertyName];
|
|
2330
2330
|
if (spacingRatio) {
|
|
2331
2331
|
let sequenceProps = SPACING2[spacingRatio];
|
|
2332
2332
|
if (!sequenceProps) {
|
|
@@ -2601,7 +2601,7 @@ var require_cjs = __commonJS({
|
|
|
2601
2601
|
return v;
|
|
2602
2602
|
}).join(" ");
|
|
2603
2603
|
};
|
|
2604
|
-
var transformDuration5 = (duration,
|
|
2604
|
+
var transformDuration5 = (duration, props7, propertyName) => {
|
|
2605
2605
|
if (!(0, import_utils25.isString)(duration))
|
|
2606
2606
|
return;
|
|
2607
2607
|
return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
|
|
@@ -2649,11 +2649,11 @@ var require_cjs = __commonJS({
|
|
|
2649
2649
|
if (CONFIG22.verbose)
|
|
2650
2650
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
2651
2651
|
};
|
|
2652
|
-
var setEach = (factoryName,
|
|
2652
|
+
var setEach = (factoryName, props7) => {
|
|
2653
2653
|
const CONFIG22 = getActiveConfig5();
|
|
2654
2654
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
2655
|
-
const keys = Object.keys(
|
|
2656
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
2655
|
+
const keys = Object.keys(props7);
|
|
2656
|
+
keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
|
|
2657
2657
|
return CONFIG22[FACTORY_NAME];
|
|
2658
2658
|
};
|
|
2659
2659
|
var SET_OPTIONS = {};
|
|
@@ -2958,13 +2958,13 @@ var require_cjs4 = __commonJS({
|
|
|
2958
2958
|
document: () => document2,
|
|
2959
2959
|
global: () => global,
|
|
2960
2960
|
self: () => self,
|
|
2961
|
-
window: () =>
|
|
2961
|
+
window: () => window2
|
|
2962
2962
|
});
|
|
2963
2963
|
module2.exports = __toCommonJS2(globals_exports);
|
|
2964
2964
|
var global = globalThis;
|
|
2965
2965
|
var self = globalThis;
|
|
2966
|
-
var
|
|
2967
|
-
var document2 =
|
|
2966
|
+
var window2 = globalThis;
|
|
2967
|
+
var document2 = window2.document;
|
|
2968
2968
|
}
|
|
2969
2969
|
});
|
|
2970
2970
|
|
|
@@ -3120,8 +3120,8 @@ var require_array = __commonJS({
|
|
|
3120
3120
|
__export2(array_exports, {
|
|
3121
3121
|
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
3122
3122
|
joinArrays: () => joinArrays,
|
|
3123
|
-
mergeAndCloneIfArray: () =>
|
|
3124
|
-
mergeArray: () =>
|
|
3123
|
+
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
3124
|
+
mergeArray: () => mergeArray,
|
|
3125
3125
|
removeFromArray: () => removeFromArray,
|
|
3126
3126
|
swapItemsInArray: () => swapItemsInArray
|
|
3127
3127
|
});
|
|
@@ -3152,11 +3152,11 @@ var require_array = __commonJS({
|
|
|
3152
3152
|
var joinArrays = (...arrays) => {
|
|
3153
3153
|
return [].concat(...arrays);
|
|
3154
3154
|
};
|
|
3155
|
-
var
|
|
3155
|
+
var mergeArray = (arr, excludeFrom = []) => {
|
|
3156
3156
|
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
3157
3157
|
};
|
|
3158
|
-
var
|
|
3159
|
-
return (0, import_types.isArray)(obj) ?
|
|
3158
|
+
var mergeAndCloneIfArray = (obj) => {
|
|
3159
|
+
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
3160
3160
|
};
|
|
3161
3161
|
}
|
|
3162
3162
|
});
|
|
@@ -3199,7 +3199,7 @@ var require_object = __commonJS({
|
|
|
3199
3199
|
isEqualDeep: () => isEqualDeep,
|
|
3200
3200
|
map: () => map,
|
|
3201
3201
|
merge: () => merge6,
|
|
3202
|
-
mergeArrayExclude: () =>
|
|
3202
|
+
mergeArrayExclude: () => mergeArrayExclude,
|
|
3203
3203
|
mergeIfExisted: () => mergeIfExisted,
|
|
3204
3204
|
overwrite: () => overwrite,
|
|
3205
3205
|
overwriteDeep: () => overwriteDeep,
|
|
@@ -3221,32 +3221,32 @@ var require_object = __commonJS({
|
|
|
3221
3221
|
return param;
|
|
3222
3222
|
};
|
|
3223
3223
|
var map = (obj, extention, element) => {
|
|
3224
|
-
for (const
|
|
3225
|
-
obj[
|
|
3224
|
+
for (const e in extention) {
|
|
3225
|
+
obj[e] = exec5(extention[e], element);
|
|
3226
3226
|
}
|
|
3227
3227
|
};
|
|
3228
3228
|
var merge6 = (element, obj, excludeFrom = []) => {
|
|
3229
|
-
for (const
|
|
3230
|
-
if (excludeFrom.includes(
|
|
3229
|
+
for (const e in obj) {
|
|
3230
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
3231
3231
|
continue;
|
|
3232
|
-
const elementProp = element[
|
|
3233
|
-
const objProp = obj[
|
|
3232
|
+
const elementProp = element[e];
|
|
3233
|
+
const objProp = obj[e];
|
|
3234
3234
|
if (elementProp === void 0) {
|
|
3235
|
-
element[
|
|
3235
|
+
element[e] = objProp;
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
3238
|
return element;
|
|
3239
3239
|
};
|
|
3240
3240
|
var deepMerge = (element, extend, excludeFrom = []) => {
|
|
3241
|
-
for (const
|
|
3242
|
-
if (excludeFrom.includes(
|
|
3241
|
+
for (const e in extend) {
|
|
3242
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
3243
3243
|
continue;
|
|
3244
|
-
const elementProp = element[
|
|
3245
|
-
const extendProp = extend[
|
|
3244
|
+
const elementProp = element[e];
|
|
3245
|
+
const extendProp = extend[e];
|
|
3246
3246
|
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
3247
3247
|
deepMerge(elementProp, extendProp);
|
|
3248
3248
|
} else if (elementProp === void 0) {
|
|
3249
|
-
element[
|
|
3249
|
+
element[e] = extendProp;
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
3252
|
return element;
|
|
@@ -3270,7 +3270,7 @@ var require_object = __commonJS({
|
|
|
3270
3270
|
continue;
|
|
3271
3271
|
let v = obj[k];
|
|
3272
3272
|
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
3273
|
-
v =
|
|
3273
|
+
v = mergeArrayExclude(v, excludeFrom);
|
|
3274
3274
|
}
|
|
3275
3275
|
if ((0, import_types.isArray)(v)) {
|
|
3276
3276
|
o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
|
|
@@ -3281,7 +3281,7 @@ var require_object = __commonJS({
|
|
|
3281
3281
|
}
|
|
3282
3282
|
return o;
|
|
3283
3283
|
};
|
|
3284
|
-
var
|
|
3284
|
+
var mergeArrayExclude = (arr, excl = []) => {
|
|
3285
3285
|
return arr.reduce((acc, curr) => deepMerge(acc, deepCloneExclude(curr, excl)), {});
|
|
3286
3286
|
};
|
|
3287
3287
|
var deepClone5 = (obj, excludeFrom = []) => {
|
|
@@ -3360,8 +3360,8 @@ var require_object = __commonJS({
|
|
|
3360
3360
|
try {
|
|
3361
3361
|
const evalProp = import_globals.window.eval(`(${objProp})`);
|
|
3362
3362
|
stringified[prop] = evalProp;
|
|
3363
|
-
} catch (
|
|
3364
|
-
if (
|
|
3363
|
+
} catch (e) {
|
|
3364
|
+
if (e)
|
|
3365
3365
|
stringified[prop] = objProp;
|
|
3366
3366
|
}
|
|
3367
3367
|
} else {
|
|
@@ -3375,8 +3375,8 @@ var require_object = __commonJS({
|
|
|
3375
3375
|
try {
|
|
3376
3376
|
const evalProp = import_globals.window.eval(`(${arrProp})`);
|
|
3377
3377
|
stringified[prop].push(evalProp);
|
|
3378
|
-
} catch (
|
|
3379
|
-
if (
|
|
3378
|
+
} catch (e) {
|
|
3379
|
+
if (e)
|
|
3380
3380
|
stringified[prop].push(arrProp);
|
|
3381
3381
|
}
|
|
3382
3382
|
} else {
|
|
@@ -3397,16 +3397,16 @@ var require_object = __commonJS({
|
|
|
3397
3397
|
return stringified;
|
|
3398
3398
|
};
|
|
3399
3399
|
var diffObjects = (original, objToDiff, cache) => {
|
|
3400
|
-
for (const
|
|
3401
|
-
if (
|
|
3400
|
+
for (const e in objToDiff) {
|
|
3401
|
+
if (e === "ref")
|
|
3402
3402
|
continue;
|
|
3403
|
-
const originalProp = original[
|
|
3404
|
-
const objToDiffProp = objToDiff[
|
|
3403
|
+
const originalProp = original[e];
|
|
3404
|
+
const objToDiffProp = objToDiff[e];
|
|
3405
3405
|
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
3406
|
-
cache[
|
|
3407
|
-
diff5(originalProp, objToDiffProp, cache[
|
|
3406
|
+
cache[e] = {};
|
|
3407
|
+
diff5(originalProp, objToDiffProp, cache[e]);
|
|
3408
3408
|
} else if (objToDiffProp !== void 0) {
|
|
3409
|
-
cache[
|
|
3409
|
+
cache[e] = objToDiffProp;
|
|
3410
3410
|
}
|
|
3411
3411
|
}
|
|
3412
3412
|
return cache;
|
|
@@ -3440,36 +3440,36 @@ var require_object = __commonJS({
|
|
|
3440
3440
|
var overwrite = (element, params, excludeFrom = []) => {
|
|
3441
3441
|
const { ref } = element;
|
|
3442
3442
|
const changes = {};
|
|
3443
|
-
for (const
|
|
3444
|
-
if (excludeFrom.includes(
|
|
3443
|
+
for (const e in params) {
|
|
3444
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
3445
3445
|
continue;
|
|
3446
|
-
const elementProp = element[
|
|
3447
|
-
const paramsProp = params[
|
|
3446
|
+
const elementProp = element[e];
|
|
3447
|
+
const paramsProp = params[e];
|
|
3448
3448
|
if (paramsProp) {
|
|
3449
|
-
ref.__cache[
|
|
3450
|
-
ref[
|
|
3449
|
+
ref.__cache[e] = changes[e] = elementProp;
|
|
3450
|
+
ref[e] = paramsProp;
|
|
3451
3451
|
}
|
|
3452
3452
|
}
|
|
3453
3453
|
return changes;
|
|
3454
3454
|
};
|
|
3455
3455
|
var overwriteShallow5 = (obj, params, excludeFrom = []) => {
|
|
3456
|
-
for (const
|
|
3457
|
-
if (excludeFrom.includes(
|
|
3456
|
+
for (const e in params) {
|
|
3457
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
3458
3458
|
continue;
|
|
3459
|
-
obj[
|
|
3459
|
+
obj[e] = params[e];
|
|
3460
3460
|
}
|
|
3461
3461
|
return obj;
|
|
3462
3462
|
};
|
|
3463
3463
|
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
3464
|
-
for (const
|
|
3465
|
-
if (excludeFrom.includes(
|
|
3464
|
+
for (const e in params) {
|
|
3465
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
3466
3466
|
continue;
|
|
3467
|
-
const objProp = obj[
|
|
3468
|
-
const paramsProp = params[
|
|
3467
|
+
const objProp = obj[e];
|
|
3468
|
+
const paramsProp = params[e];
|
|
3469
3469
|
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
3470
3470
|
overwriteDeep(objProp, paramsProp);
|
|
3471
3471
|
} else if (paramsProp !== void 0) {
|
|
3472
|
-
obj[
|
|
3472
|
+
obj[e] = paramsProp;
|
|
3473
3473
|
}
|
|
3474
3474
|
}
|
|
3475
3475
|
return obj;
|
|
@@ -3508,13 +3508,13 @@ var require_object = __commonJS({
|
|
|
3508
3508
|
}
|
|
3509
3509
|
return true;
|
|
3510
3510
|
};
|
|
3511
|
-
var removeFromObject = (obj,
|
|
3512
|
-
if (
|
|
3511
|
+
var removeFromObject = (obj, props7) => {
|
|
3512
|
+
if (props7 === void 0 || props7 === null)
|
|
3513
3513
|
return obj;
|
|
3514
|
-
if ((0, import_types.is)(
|
|
3515
|
-
delete obj[
|
|
3516
|
-
} else if ((0, import_types.isArray)(
|
|
3517
|
-
|
|
3514
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
3515
|
+
delete obj[props7];
|
|
3516
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
3517
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
3518
3518
|
} else {
|
|
3519
3519
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
3520
3520
|
}
|
|
@@ -4859,6 +4859,70 @@ var require_cjs9 = __commonJS({
|
|
|
4859
4859
|
};
|
|
4860
4860
|
}
|
|
4861
4861
|
});
|
|
4862
|
+
var require_array2 = __commonJS2({
|
|
4863
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
|
|
4864
|
+
"use strict";
|
|
4865
|
+
var __defProp22 = Object.defineProperty;
|
|
4866
|
+
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
4867
|
+
var __getOwnPropNames22 = Object.getOwnPropertyNames;
|
|
4868
|
+
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
4869
|
+
var __export22 = (target, all) => {
|
|
4870
|
+
for (var name in all)
|
|
4871
|
+
__defProp22(target, name, { get: all[name], enumerable: true });
|
|
4872
|
+
};
|
|
4873
|
+
var __copyProps22 = (to, from2, except, desc) => {
|
|
4874
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4875
|
+
for (let key of __getOwnPropNames22(from2))
|
|
4876
|
+
if (!__hasOwnProp22.call(to, key) && key !== except)
|
|
4877
|
+
__defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
|
|
4878
|
+
}
|
|
4879
|
+
return to;
|
|
4880
|
+
};
|
|
4881
|
+
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
4882
|
+
var array_exports = {};
|
|
4883
|
+
__export22(array_exports, {
|
|
4884
|
+
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
4885
|
+
joinArrays: () => joinArrays,
|
|
4886
|
+
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
4887
|
+
mergeArray: () => mergeArray,
|
|
4888
|
+
removeFromArray: () => removeFromArray,
|
|
4889
|
+
swapItemsInArray: () => swapItemsInArray
|
|
4890
|
+
});
|
|
4891
|
+
module22.exports = __toCommonJS22(array_exports);
|
|
4892
|
+
var import_object = require_object2();
|
|
4893
|
+
var import_types = require_types2();
|
|
4894
|
+
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
4895
|
+
return arr2.every((val) => arr1.includes(val));
|
|
4896
|
+
};
|
|
4897
|
+
var removeFromArray = (arr, index) => {
|
|
4898
|
+
if ((0, import_types.isString)(index))
|
|
4899
|
+
index = parseInt(index);
|
|
4900
|
+
if ((0, import_types.isNumber)(index)) {
|
|
4901
|
+
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
4902
|
+
throw new Error("Invalid index");
|
|
4903
|
+
}
|
|
4904
|
+
arr.splice(index, 1);
|
|
4905
|
+
} else if ((0, import_types.isArray)(index)) {
|
|
4906
|
+
index.forEach((idx) => removeFromArray(arr, idx));
|
|
4907
|
+
} else {
|
|
4908
|
+
throw new Error("Invalid index");
|
|
4909
|
+
}
|
|
4910
|
+
return arr;
|
|
4911
|
+
};
|
|
4912
|
+
var swapItemsInArray = (arr, i, j) => {
|
|
4913
|
+
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
4914
|
+
};
|
|
4915
|
+
var joinArrays = (...arrays) => {
|
|
4916
|
+
return [].concat(...arrays);
|
|
4917
|
+
};
|
|
4918
|
+
var mergeArray = (arr, excludeFrom = []) => {
|
|
4919
|
+
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
4920
|
+
};
|
|
4921
|
+
var mergeAndCloneIfArray = (obj) => {
|
|
4922
|
+
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
4923
|
+
};
|
|
4924
|
+
}
|
|
4925
|
+
});
|
|
4862
4926
|
var require_object2 = __commonJS2({
|
|
4863
4927
|
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
|
|
4864
4928
|
"use strict";
|
|
@@ -4896,16 +4960,17 @@ var require_cjs9 = __commonJS({
|
|
|
4896
4960
|
isEqualDeep: () => isEqualDeep,
|
|
4897
4961
|
map: () => map,
|
|
4898
4962
|
merge: () => merge52,
|
|
4963
|
+
mergeArrayExclude: () => mergeArrayExclude,
|
|
4899
4964
|
mergeIfExisted: () => mergeIfExisted,
|
|
4900
4965
|
overwrite: () => overwrite,
|
|
4901
4966
|
overwriteDeep: () => overwriteDeep,
|
|
4902
|
-
overwriteObj: () => overwriteObj,
|
|
4903
4967
|
overwriteShallow: () => overwriteShallow5,
|
|
4904
4968
|
removeFromObject: () => removeFromObject
|
|
4905
4969
|
});
|
|
4906
4970
|
module22.exports = __toCommonJS22(object_exports);
|
|
4907
4971
|
var import_globals3 = require_cjs12();
|
|
4908
4972
|
var import_types = require_types2();
|
|
4973
|
+
var import_array = require_array2();
|
|
4909
4974
|
var exec5 = (param, element, state, context) => {
|
|
4910
4975
|
if ((0, import_types.isFunction)(param)) {
|
|
4911
4976
|
return param(
|
|
@@ -4917,30 +4982,32 @@ var require_cjs9 = __commonJS({
|
|
|
4917
4982
|
return param;
|
|
4918
4983
|
};
|
|
4919
4984
|
var map = (obj, extention, element) => {
|
|
4920
|
-
for (const
|
|
4921
|
-
obj[
|
|
4985
|
+
for (const e in extention) {
|
|
4986
|
+
obj[e] = exec5(extention[e], element);
|
|
4922
4987
|
}
|
|
4923
4988
|
};
|
|
4924
|
-
var merge52 = (element, obj) => {
|
|
4925
|
-
for (const
|
|
4926
|
-
|
|
4927
|
-
|
|
4989
|
+
var merge52 = (element, obj, excludeFrom = []) => {
|
|
4990
|
+
for (const e in obj) {
|
|
4991
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
4992
|
+
continue;
|
|
4993
|
+
const elementProp = element[e];
|
|
4994
|
+
const objProp = obj[e];
|
|
4928
4995
|
if (elementProp === void 0) {
|
|
4929
|
-
element[
|
|
4996
|
+
element[e] = objProp;
|
|
4930
4997
|
}
|
|
4931
4998
|
}
|
|
4932
4999
|
return element;
|
|
4933
5000
|
};
|
|
4934
5001
|
var deepMerge3 = (element, extend, excludeFrom = []) => {
|
|
4935
|
-
for (const
|
|
4936
|
-
if (excludeFrom.includes(
|
|
5002
|
+
for (const e in extend) {
|
|
5003
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
4937
5004
|
continue;
|
|
4938
|
-
const elementProp = element[
|
|
4939
|
-
const extendProp = extend[
|
|
5005
|
+
const elementProp = element[e];
|
|
5006
|
+
const extendProp = extend[e];
|
|
4940
5007
|
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
4941
5008
|
deepMerge3(elementProp, extendProp);
|
|
4942
5009
|
} else if (elementProp === void 0) {
|
|
4943
|
-
element[
|
|
5010
|
+
element[e] = extendProp;
|
|
4944
5011
|
}
|
|
4945
5012
|
}
|
|
4946
5013
|
return element;
|
|
@@ -4948,7 +5015,7 @@ var require_cjs9 = __commonJS({
|
|
|
4948
5015
|
var clone = (obj, excludeFrom = []) => {
|
|
4949
5016
|
const o = {};
|
|
4950
5017
|
for (const prop in obj) {
|
|
4951
|
-
if (excludeFrom.includes(
|
|
5018
|
+
if (excludeFrom.includes(prop) || prop.includes("__"))
|
|
4952
5019
|
continue;
|
|
4953
5020
|
o[prop] = obj[prop];
|
|
4954
5021
|
}
|
|
@@ -4975,6 +5042,9 @@ var require_cjs9 = __commonJS({
|
|
|
4975
5042
|
}
|
|
4976
5043
|
return o;
|
|
4977
5044
|
};
|
|
5045
|
+
var mergeArrayExclude = (arr, excl = []) => {
|
|
5046
|
+
return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
|
|
5047
|
+
};
|
|
4978
5048
|
var deepClone22 = (obj, excludeFrom = []) => {
|
|
4979
5049
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
4980
5050
|
for (const prop in obj) {
|
|
@@ -4982,7 +5052,7 @@ var require_cjs9 = __commonJS({
|
|
|
4982
5052
|
continue;
|
|
4983
5053
|
let objProp = obj[prop];
|
|
4984
5054
|
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
4985
|
-
objProp = mergeArray(objProp);
|
|
5055
|
+
objProp = (0, import_array.mergeArray)(objProp);
|
|
4986
5056
|
}
|
|
4987
5057
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
4988
5058
|
o[prop] = deepClone22(objProp, excludeFrom);
|
|
@@ -5051,8 +5121,8 @@ var require_cjs9 = __commonJS({
|
|
|
5051
5121
|
try {
|
|
5052
5122
|
const evalProp = import_globals3.window.eval(`(${objProp})`);
|
|
5053
5123
|
stringified[prop] = evalProp;
|
|
5054
|
-
} catch (
|
|
5055
|
-
if (
|
|
5124
|
+
} catch (e) {
|
|
5125
|
+
if (e)
|
|
5056
5126
|
stringified[prop] = objProp;
|
|
5057
5127
|
}
|
|
5058
5128
|
} else {
|
|
@@ -5066,8 +5136,8 @@ var require_cjs9 = __commonJS({
|
|
|
5066
5136
|
try {
|
|
5067
5137
|
const evalProp = import_globals3.window.eval(`(${arrProp})`);
|
|
5068
5138
|
stringified[prop].push(evalProp);
|
|
5069
|
-
} catch (
|
|
5070
|
-
if (
|
|
5139
|
+
} catch (e) {
|
|
5140
|
+
if (e)
|
|
5071
5141
|
stringified[prop].push(arrProp);
|
|
5072
5142
|
}
|
|
5073
5143
|
} else {
|
|
@@ -5087,32 +5157,17 @@ var require_cjs9 = __commonJS({
|
|
|
5087
5157
|
}
|
|
5088
5158
|
return stringified;
|
|
5089
5159
|
};
|
|
5090
|
-
var overwrite = (element, params, excludeFrom = []) => {
|
|
5091
|
-
const { ref } = element;
|
|
5092
|
-
const changes = {};
|
|
5093
|
-
for (const e2 in params) {
|
|
5094
|
-
if (excludeFrom.includes(e2) || e2.includes("__"))
|
|
5095
|
-
continue;
|
|
5096
|
-
const elementProp = element[e2];
|
|
5097
|
-
const paramsProp = params[e2];
|
|
5098
|
-
if (paramsProp) {
|
|
5099
|
-
ref.__cache[e2] = changes[e2] = elementProp;
|
|
5100
|
-
ref[e2] = paramsProp;
|
|
5101
|
-
}
|
|
5102
|
-
}
|
|
5103
|
-
return changes;
|
|
5104
|
-
};
|
|
5105
5160
|
var diffObjects = (original, objToDiff, cache) => {
|
|
5106
|
-
for (const
|
|
5107
|
-
if (
|
|
5161
|
+
for (const e in objToDiff) {
|
|
5162
|
+
if (e === "ref")
|
|
5108
5163
|
continue;
|
|
5109
|
-
const originalProp = original[
|
|
5110
|
-
const objToDiffProp = objToDiff[
|
|
5164
|
+
const originalProp = original[e];
|
|
5165
|
+
const objToDiffProp = objToDiff[e];
|
|
5111
5166
|
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
5112
|
-
cache[
|
|
5113
|
-
diff5(originalProp, objToDiffProp, cache[
|
|
5167
|
+
cache[e] = {};
|
|
5168
|
+
diff5(originalProp, objToDiffProp, cache[e]);
|
|
5114
5169
|
} else if (objToDiffProp !== void 0) {
|
|
5115
|
-
cache[
|
|
5170
|
+
cache[e] = objToDiffProp;
|
|
5116
5171
|
}
|
|
5117
5172
|
}
|
|
5118
5173
|
return cache;
|
|
@@ -5143,35 +5198,39 @@ var require_cjs9 = __commonJS({
|
|
|
5143
5198
|
}
|
|
5144
5199
|
return cache;
|
|
5145
5200
|
};
|
|
5146
|
-
var
|
|
5201
|
+
var overwrite = (element, params, excludeFrom = []) => {
|
|
5202
|
+
const { ref } = element;
|
|
5147
5203
|
const changes = {};
|
|
5148
|
-
for (const
|
|
5149
|
-
|
|
5150
|
-
|
|
5204
|
+
for (const e in params) {
|
|
5205
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
5206
|
+
continue;
|
|
5207
|
+
const elementProp = element[e];
|
|
5208
|
+
const paramsProp = params[e];
|
|
5151
5209
|
if (paramsProp) {
|
|
5152
|
-
|
|
5210
|
+
ref.__cache[e] = changes[e] = elementProp;
|
|
5211
|
+
ref[e] = paramsProp;
|
|
5153
5212
|
}
|
|
5154
5213
|
}
|
|
5155
5214
|
return changes;
|
|
5156
5215
|
};
|
|
5157
5216
|
var overwriteShallow5 = (obj, params, excludeFrom = []) => {
|
|
5158
|
-
for (const
|
|
5159
|
-
if (excludeFrom.includes(
|
|
5217
|
+
for (const e in params) {
|
|
5218
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
5160
5219
|
continue;
|
|
5161
|
-
obj[
|
|
5220
|
+
obj[e] = params[e];
|
|
5162
5221
|
}
|
|
5163
5222
|
return obj;
|
|
5164
5223
|
};
|
|
5165
|
-
var overwriteDeep = (
|
|
5166
|
-
for (const
|
|
5167
|
-
if (excludeFrom.includes(
|
|
5224
|
+
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
5225
|
+
for (const e in params) {
|
|
5226
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
5168
5227
|
continue;
|
|
5169
|
-
const objProp = obj[
|
|
5170
|
-
const paramsProp = params[
|
|
5228
|
+
const objProp = obj[e];
|
|
5229
|
+
const paramsProp = params[e];
|
|
5171
5230
|
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
5172
|
-
overwriteDeep(
|
|
5231
|
+
overwriteDeep(objProp, paramsProp);
|
|
5173
5232
|
} else if (paramsProp !== void 0) {
|
|
5174
|
-
obj[
|
|
5233
|
+
obj[e] = paramsProp;
|
|
5175
5234
|
}
|
|
5176
5235
|
}
|
|
5177
5236
|
return obj;
|
|
@@ -5182,7 +5241,7 @@ var require_cjs9 = __commonJS({
|
|
|
5182
5241
|
return a || b;
|
|
5183
5242
|
};
|
|
5184
5243
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
5185
|
-
const objectized = mergeAndCloneIfArray(param);
|
|
5244
|
+
const objectized = (0, import_array.mergeAndCloneIfArray)(param);
|
|
5186
5245
|
stack.push(objectized);
|
|
5187
5246
|
const extendOfExtend = objectized[prop];
|
|
5188
5247
|
if (extendOfExtend)
|
|
@@ -5210,13 +5269,13 @@ var require_cjs9 = __commonJS({
|
|
|
5210
5269
|
}
|
|
5211
5270
|
return true;
|
|
5212
5271
|
};
|
|
5213
|
-
var removeFromObject = (obj,
|
|
5214
|
-
if (
|
|
5272
|
+
var removeFromObject = (obj, props7) => {
|
|
5273
|
+
if (props7 === void 0 || props7 === null)
|
|
5215
5274
|
return obj;
|
|
5216
|
-
if ((0, import_types.is)(
|
|
5217
|
-
delete obj[
|
|
5218
|
-
} else if ((0, import_types.isArray)(
|
|
5219
|
-
|
|
5275
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
5276
|
+
delete obj[props7];
|
|
5277
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
5278
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
5220
5279
|
} else {
|
|
5221
5280
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
5222
5281
|
}
|
|
@@ -5274,70 +5333,6 @@ var require_cjs9 = __commonJS({
|
|
|
5274
5333
|
};
|
|
5275
5334
|
}
|
|
5276
5335
|
});
|
|
5277
|
-
var require_array2 = __commonJS2({
|
|
5278
|
-
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
|
|
5279
|
-
"use strict";
|
|
5280
|
-
var __defProp22 = Object.defineProperty;
|
|
5281
|
-
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
5282
|
-
var __getOwnPropNames22 = Object.getOwnPropertyNames;
|
|
5283
|
-
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
5284
|
-
var __export22 = (target, all) => {
|
|
5285
|
-
for (var name in all)
|
|
5286
|
-
__defProp22(target, name, { get: all[name], enumerable: true });
|
|
5287
|
-
};
|
|
5288
|
-
var __copyProps22 = (to, from2, except, desc) => {
|
|
5289
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
5290
|
-
for (let key of __getOwnPropNames22(from2))
|
|
5291
|
-
if (!__hasOwnProp22.call(to, key) && key !== except)
|
|
5292
|
-
__defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
|
|
5293
|
-
}
|
|
5294
|
-
return to;
|
|
5295
|
-
};
|
|
5296
|
-
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
5297
|
-
var array_exports = {};
|
|
5298
|
-
__export22(array_exports, {
|
|
5299
|
-
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
5300
|
-
joinArrays: () => joinArrays,
|
|
5301
|
-
mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
|
|
5302
|
-
mergeArray: () => mergeArray2,
|
|
5303
|
-
removeFromArray: () => removeFromArray,
|
|
5304
|
-
swapItemsInArray: () => swapItemsInArray
|
|
5305
|
-
});
|
|
5306
|
-
module22.exports = __toCommonJS22(array_exports);
|
|
5307
|
-
var import_object = require_object2();
|
|
5308
|
-
var import_types = require_types2();
|
|
5309
|
-
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
5310
|
-
return arr2.every((val) => arr1.includes(val));
|
|
5311
|
-
};
|
|
5312
|
-
var removeFromArray = (arr, index) => {
|
|
5313
|
-
if ((0, import_types.isString)(index))
|
|
5314
|
-
index = parseInt(index);
|
|
5315
|
-
if ((0, import_types.isNumber)(index)) {
|
|
5316
|
-
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
5317
|
-
throw new Error("Invalid index");
|
|
5318
|
-
}
|
|
5319
|
-
arr.splice(index, 1);
|
|
5320
|
-
} else if ((0, import_types.isArray)(index)) {
|
|
5321
|
-
index.forEach((idx) => removeFromArray(arr, idx));
|
|
5322
|
-
} else {
|
|
5323
|
-
throw new Error("Invalid index");
|
|
5324
|
-
}
|
|
5325
|
-
return arr;
|
|
5326
|
-
};
|
|
5327
|
-
var swapItemsInArray = (arr, i, j) => {
|
|
5328
|
-
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
5329
|
-
};
|
|
5330
|
-
var joinArrays = (...arrays) => {
|
|
5331
|
-
return [].concat(...arrays);
|
|
5332
|
-
};
|
|
5333
|
-
var mergeArray2 = (arr, excludeFrom = []) => {
|
|
5334
|
-
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
5335
|
-
};
|
|
5336
|
-
var mergeAndCloneIfArray2 = (obj) => {
|
|
5337
|
-
return (0, import_types.isArray)(obj) ? mergeArray2(obj) : (0, import_object.deepClone)(obj);
|
|
5338
|
-
};
|
|
5339
|
-
}
|
|
5340
|
-
});
|
|
5341
5336
|
var require_log2 = __commonJS2({
|
|
5342
5337
|
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
|
|
5343
5338
|
"use strict";
|
|
@@ -5806,6 +5801,7 @@ var require_cjs9 = __commonJS({
|
|
|
5806
5801
|
range: [-3, 12],
|
|
5807
5802
|
h1Matches: 6,
|
|
5808
5803
|
lineHeight: 1.5,
|
|
5804
|
+
subSequence: true,
|
|
5809
5805
|
unit: "em",
|
|
5810
5806
|
templates: {},
|
|
5811
5807
|
sequence: {},
|
|
@@ -5962,8 +5958,8 @@ var require_cjs9 = __commonJS({
|
|
|
5962
5958
|
18: "S",
|
|
5963
5959
|
19: "T"
|
|
5964
5960
|
};
|
|
5965
|
-
var setSequenceValue = (
|
|
5966
|
-
const { key, variable, value, scaling, index } =
|
|
5961
|
+
var setSequenceValue = (props7, sequenceProps) => {
|
|
5962
|
+
const { key, variable, value, scaling, index } = props7;
|
|
5967
5963
|
sequenceProps.sequence[key] = {
|
|
5968
5964
|
key,
|
|
5969
5965
|
decimal: ~~(value * 100) / 100,
|
|
@@ -5975,8 +5971,8 @@ var require_cjs9 = __commonJS({
|
|
|
5975
5971
|
sequenceProps.scales[key] = scaling;
|
|
5976
5972
|
sequenceProps.vars[variable] = scaling + sequenceProps.unit;
|
|
5977
5973
|
};
|
|
5978
|
-
var generateSubSequence = (
|
|
5979
|
-
const { key, base, value, ratio, variable, index } =
|
|
5974
|
+
var generateSubSequence = (props7, sequenceProps) => {
|
|
5975
|
+
const { key, base, value, ratio, variable, index } = props7;
|
|
5980
5976
|
const next2 = value * ratio;
|
|
5981
5977
|
const diff5 = next2 - value;
|
|
5982
5978
|
const smallscale = diff5 / 1.618;
|
|
@@ -6017,7 +6013,7 @@ var require_cjs9 = __commonJS({
|
|
|
6017
6013
|
const value = switchSequenceOnNegative(key, base, ratio);
|
|
6018
6014
|
const scaling = ~~(value / base * 100) / 100;
|
|
6019
6015
|
const variable = prefix2 + letterKey;
|
|
6020
|
-
const
|
|
6016
|
+
const props7 = {
|
|
6021
6017
|
key: letterKey,
|
|
6022
6018
|
variable,
|
|
6023
6019
|
value,
|
|
@@ -6026,9 +6022,9 @@ var require_cjs9 = __commonJS({
|
|
|
6026
6022
|
ratio,
|
|
6027
6023
|
index: key
|
|
6028
6024
|
};
|
|
6029
|
-
setSequenceValue(
|
|
6025
|
+
setSequenceValue(props7, sequenceProps);
|
|
6030
6026
|
if (subSequence)
|
|
6031
|
-
generateSubSequence(
|
|
6027
|
+
generateSubSequence(props7, sequenceProps);
|
|
6032
6028
|
}
|
|
6033
6029
|
return sequenceProps;
|
|
6034
6030
|
};
|
|
@@ -6110,14 +6106,14 @@ var require_cjs9 = __commonJS({
|
|
|
6110
6106
|
CSS_VARS2[result.var] = result.value;
|
|
6111
6107
|
}
|
|
6112
6108
|
};
|
|
6113
|
-
var applySequenceVars = (
|
|
6109
|
+
var applySequenceVars = (props7, mediaName, options = {}) => {
|
|
6114
6110
|
const CONFIG22 = getActiveConfig5();
|
|
6115
6111
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
6116
|
-
const unit =
|
|
6117
|
-
const { sequence, scales } =
|
|
6112
|
+
const unit = props7.unit || UNIT2.default;
|
|
6113
|
+
const { sequence, scales } = props7;
|
|
6118
6114
|
for (const key in sequence) {
|
|
6119
6115
|
const item = sequence[key];
|
|
6120
|
-
const value = (
|
|
6116
|
+
const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
|
|
6121
6117
|
if (mediaName) {
|
|
6122
6118
|
const query = MEDIA2[mediaName];
|
|
6123
6119
|
if (!query) {
|
|
@@ -6606,13 +6602,13 @@ var require_cjs9 = __commonJS({
|
|
|
6606
6602
|
return { var: CSSvar, value: str, arr: value, type };
|
|
6607
6603
|
};
|
|
6608
6604
|
var import_utils142 = __toESM2(require_cjs42(), 1);
|
|
6609
|
-
var runThroughMedia = (
|
|
6605
|
+
var runThroughMedia = (props7) => {
|
|
6610
6606
|
const CONFIG22 = getActiveConfig5();
|
|
6611
6607
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
6612
|
-
for (const prop in
|
|
6613
|
-
const mediaProps =
|
|
6608
|
+
for (const prop in props7) {
|
|
6609
|
+
const mediaProps = props7[prop];
|
|
6614
6610
|
if (prop.slice(0, 1) === "@") {
|
|
6615
|
-
const { type, base, ratio, range, subSequence, h1Matches, unit } =
|
|
6611
|
+
const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
|
|
6616
6612
|
(0, import_utils142.merge)(mediaProps, {
|
|
6617
6613
|
type,
|
|
6618
6614
|
base,
|
|
@@ -6636,20 +6632,20 @@ var require_cjs9 = __commonJS({
|
|
|
6636
6632
|
}
|
|
6637
6633
|
}
|
|
6638
6634
|
};
|
|
6639
|
-
var applyHeadings = (
|
|
6635
|
+
var applyHeadings = (props7) => {
|
|
6640
6636
|
const CONFIG22 = getActiveConfig5();
|
|
6641
|
-
if (
|
|
6642
|
-
const unit =
|
|
6643
|
-
const HEADINGS = findHeadings(
|
|
6644
|
-
const { templates } =
|
|
6637
|
+
if (props7.h1Matches) {
|
|
6638
|
+
const unit = props7.unit;
|
|
6639
|
+
const HEADINGS = findHeadings(props7);
|
|
6640
|
+
const { templates } = props7;
|
|
6645
6641
|
for (const k in HEADINGS) {
|
|
6646
6642
|
const headerName = `h${parseInt(k) + 1}`;
|
|
6647
6643
|
const headerStyle = templates[headerName];
|
|
6648
6644
|
templates[headerName] = {
|
|
6649
6645
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
6650
6646
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
6651
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
6652
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
6647
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
|
|
6648
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
|
|
6653
6649
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
6654
6650
|
};
|
|
6655
6651
|
}
|
|
@@ -6744,11 +6740,11 @@ var require_cjs9 = __commonJS({
|
|
|
6744
6740
|
sequence
|
|
6745
6741
|
);
|
|
6746
6742
|
};
|
|
6747
|
-
var getSpacingBasedOnRatio13 = (
|
|
6743
|
+
var getSpacingBasedOnRatio13 = (props7, propertyName, val) => {
|
|
6748
6744
|
const CONFIG22 = getActiveConfig5();
|
|
6749
6745
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
6750
|
-
const { spacingRatio, unit } =
|
|
6751
|
-
const value = val ||
|
|
6746
|
+
const { spacingRatio, unit } = props7;
|
|
6747
|
+
const value = val || props7[propertyName];
|
|
6752
6748
|
if (spacingRatio) {
|
|
6753
6749
|
let sequenceProps = SPACING2[spacingRatio];
|
|
6754
6750
|
if (!sequenceProps) {
|
|
@@ -7023,7 +7019,7 @@ var require_cjs9 = __commonJS({
|
|
|
7023
7019
|
return v;
|
|
7024
7020
|
}).join(" ");
|
|
7025
7021
|
};
|
|
7026
|
-
var transformDuration5 = (duration,
|
|
7022
|
+
var transformDuration5 = (duration, props7, propertyName) => {
|
|
7027
7023
|
if (!(0, import_utils25.isString)(duration))
|
|
7028
7024
|
return;
|
|
7029
7025
|
return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
|
|
@@ -7071,11 +7067,11 @@ var require_cjs9 = __commonJS({
|
|
|
7071
7067
|
if (CONFIG22.verbose)
|
|
7072
7068
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
7073
7069
|
};
|
|
7074
|
-
var setEach = (factoryName,
|
|
7070
|
+
var setEach = (factoryName, props7) => {
|
|
7075
7071
|
const CONFIG22 = getActiveConfig5();
|
|
7076
7072
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
7077
|
-
const keys = Object.keys(
|
|
7078
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
7073
|
+
const keys = Object.keys(props7);
|
|
7074
|
+
keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
|
|
7079
7075
|
return CONFIG22[FACTORY_NAME];
|
|
7080
7076
|
};
|
|
7081
7077
|
var SET_OPTIONS = {};
|
|
@@ -7154,16 +7150,19 @@ var require_cjs10 = __commonJS({
|
|
|
7154
7150
|
default: () => router_default,
|
|
7155
7151
|
getActiveRoute: () => getActiveRoute,
|
|
7156
7152
|
lastLevel: () => lastLevel,
|
|
7153
|
+
lastPathname: () => lastPathname,
|
|
7157
7154
|
router: () => router
|
|
7158
7155
|
});
|
|
7159
7156
|
module2.exports = __toCommonJS2(router_exports);
|
|
7160
7157
|
var import_globals = require_cjs4();
|
|
7161
7158
|
var import_utils20 = require_cjs5();
|
|
7162
7159
|
var getActiveRoute = (route = import_globals.window.location.pathname, level) => `/${route.split("/")[level + 1]}`;
|
|
7160
|
+
var lastPathname;
|
|
7163
7161
|
var lastLevel = 0;
|
|
7164
7162
|
var defaultOptions = {
|
|
7165
7163
|
level: lastLevel,
|
|
7166
7164
|
pushState: true,
|
|
7165
|
+
initialRender: false,
|
|
7167
7166
|
scrollToTop: true,
|
|
7168
7167
|
scrollToNode: false,
|
|
7169
7168
|
scrollNode: import_globals.document && import_globals.document.documentElement,
|
|
@@ -7178,34 +7177,42 @@ var require_cjs10 = __commonJS({
|
|
|
7178
7177
|
(0, import_utils20.merge)(options, defaultOptions);
|
|
7179
7178
|
lastLevel = options.lastLevel;
|
|
7180
7179
|
const [pathname, hash2] = path.split("#");
|
|
7180
|
+
const rootNode = element.node;
|
|
7181
7181
|
const route = getActiveRoute(pathname, options.level);
|
|
7182
7182
|
const content = element.routes[route] || element.routes["/*"];
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
)
|
|
7183
|
+
const scrollNode = options.scrollDocument ? import_globals.document.documentElement : rootNode;
|
|
7184
|
+
const hashChanged = hash2 && hash2 !== import_globals.window.location.hash.slice(1);
|
|
7185
|
+
const pathChanged = pathname !== lastPathname;
|
|
7186
|
+
lastPathname = pathname;
|
|
7187
|
+
if (content) {
|
|
7188
|
+
if (options.pushState)
|
|
7189
|
+
import_globals.window.history.pushState(state, null, route + (hash2 ? `#${hash2}` : ""));
|
|
7190
|
+
if (pathChanged || !hashChanged) {
|
|
7191
|
+
element.set({ tag: options.useFragment && "fragment", extend: content });
|
|
7192
|
+
if (options.updateState) {
|
|
7193
|
+
element.state.update({ route, hash: hash2 }, {
|
|
7194
|
+
preventContentUpdate: !options.stateContentUpdate
|
|
7195
|
+
});
|
|
7196
|
+
}
|
|
7197
|
+
}
|
|
7198
|
+
if (options.scrollToTop) {
|
|
7199
|
+
scrollNode.scrollTo({
|
|
7200
|
+
...options.scrollToOptions || {},
|
|
7201
|
+
top: 0,
|
|
7202
|
+
left: 0
|
|
7203
|
+
});
|
|
7204
|
+
}
|
|
7205
|
+
if (options.scrollToNode) {
|
|
7206
|
+
content.content.node.scrollTo({
|
|
7207
|
+
...options.scrollToOptions || {},
|
|
7208
|
+
top: 0,
|
|
7209
|
+
left: 0
|
|
7210
|
+
});
|
|
7211
|
+
}
|
|
7206
7212
|
}
|
|
7207
7213
|
if (hash2) {
|
|
7208
7214
|
const activeNode = import_globals.document.getElementById(hash2);
|
|
7215
|
+
console.log(hash2, activeNode);
|
|
7209
7216
|
if (activeNode) {
|
|
7210
7217
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
7211
7218
|
scrollNode.scrollTo({
|
|
@@ -7631,6 +7638,70 @@ var require_cjs11 = __commonJS({
|
|
|
7631
7638
|
};
|
|
7632
7639
|
}
|
|
7633
7640
|
});
|
|
7641
|
+
var require_array2 = __commonJS2({
|
|
7642
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
|
|
7643
|
+
"use strict";
|
|
7644
|
+
var __defProp22 = Object.defineProperty;
|
|
7645
|
+
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
7646
|
+
var __getOwnPropNames22 = Object.getOwnPropertyNames;
|
|
7647
|
+
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
7648
|
+
var __export22 = (target, all) => {
|
|
7649
|
+
for (var name in all)
|
|
7650
|
+
__defProp22(target, name, { get: all[name], enumerable: true });
|
|
7651
|
+
};
|
|
7652
|
+
var __copyProps22 = (to, from2, except, desc) => {
|
|
7653
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
7654
|
+
for (let key of __getOwnPropNames22(from2))
|
|
7655
|
+
if (!__hasOwnProp22.call(to, key) && key !== except)
|
|
7656
|
+
__defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
|
|
7657
|
+
}
|
|
7658
|
+
return to;
|
|
7659
|
+
};
|
|
7660
|
+
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
7661
|
+
var array_exports = {};
|
|
7662
|
+
__export22(array_exports, {
|
|
7663
|
+
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
7664
|
+
joinArrays: () => joinArrays,
|
|
7665
|
+
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
7666
|
+
mergeArray: () => mergeArray,
|
|
7667
|
+
removeFromArray: () => removeFromArray,
|
|
7668
|
+
swapItemsInArray: () => swapItemsInArray
|
|
7669
|
+
});
|
|
7670
|
+
module22.exports = __toCommonJS22(array_exports);
|
|
7671
|
+
var import_object = require_object2();
|
|
7672
|
+
var import_types = require_types2();
|
|
7673
|
+
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
7674
|
+
return arr2.every((val) => arr1.includes(val));
|
|
7675
|
+
};
|
|
7676
|
+
var removeFromArray = (arr, index) => {
|
|
7677
|
+
if ((0, import_types.isString)(index))
|
|
7678
|
+
index = parseInt(index);
|
|
7679
|
+
if ((0, import_types.isNumber)(index)) {
|
|
7680
|
+
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
7681
|
+
throw new Error("Invalid index");
|
|
7682
|
+
}
|
|
7683
|
+
arr.splice(index, 1);
|
|
7684
|
+
} else if ((0, import_types.isArray)(index)) {
|
|
7685
|
+
index.forEach((idx) => removeFromArray(arr, idx));
|
|
7686
|
+
} else {
|
|
7687
|
+
throw new Error("Invalid index");
|
|
7688
|
+
}
|
|
7689
|
+
return arr;
|
|
7690
|
+
};
|
|
7691
|
+
var swapItemsInArray = (arr, i, j) => {
|
|
7692
|
+
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
7693
|
+
};
|
|
7694
|
+
var joinArrays = (...arrays) => {
|
|
7695
|
+
return [].concat(...arrays);
|
|
7696
|
+
};
|
|
7697
|
+
var mergeArray = (arr, excludeFrom = []) => {
|
|
7698
|
+
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
7699
|
+
};
|
|
7700
|
+
var mergeAndCloneIfArray = (obj) => {
|
|
7701
|
+
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
7702
|
+
};
|
|
7703
|
+
}
|
|
7704
|
+
});
|
|
7634
7705
|
var require_object2 = __commonJS2({
|
|
7635
7706
|
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
|
|
7636
7707
|
"use strict";
|
|
@@ -7668,16 +7739,17 @@ var require_cjs11 = __commonJS({
|
|
|
7668
7739
|
isEqualDeep: () => isEqualDeep,
|
|
7669
7740
|
map: () => map,
|
|
7670
7741
|
merge: () => merge52,
|
|
7742
|
+
mergeArrayExclude: () => mergeArrayExclude,
|
|
7671
7743
|
mergeIfExisted: () => mergeIfExisted,
|
|
7672
7744
|
overwrite: () => overwrite,
|
|
7673
7745
|
overwriteDeep: () => overwriteDeep,
|
|
7674
|
-
overwriteObj: () => overwriteObj,
|
|
7675
7746
|
overwriteShallow: () => overwriteShallow5,
|
|
7676
7747
|
removeFromObject: () => removeFromObject
|
|
7677
7748
|
});
|
|
7678
7749
|
module22.exports = __toCommonJS22(object_exports);
|
|
7679
7750
|
var import_globals3 = require_cjs12();
|
|
7680
7751
|
var import_types = require_types2();
|
|
7752
|
+
var import_array = require_array2();
|
|
7681
7753
|
var exec5 = (param, element, state, context) => {
|
|
7682
7754
|
if ((0, import_types.isFunction)(param)) {
|
|
7683
7755
|
return param(
|
|
@@ -7689,30 +7761,32 @@ var require_cjs11 = __commonJS({
|
|
|
7689
7761
|
return param;
|
|
7690
7762
|
};
|
|
7691
7763
|
var map = (obj, extention, element) => {
|
|
7692
|
-
for (const
|
|
7693
|
-
obj[
|
|
7764
|
+
for (const e in extention) {
|
|
7765
|
+
obj[e] = exec5(extention[e], element);
|
|
7694
7766
|
}
|
|
7695
7767
|
};
|
|
7696
|
-
var merge52 = (element, obj) => {
|
|
7697
|
-
for (const
|
|
7698
|
-
|
|
7699
|
-
|
|
7768
|
+
var merge52 = (element, obj, excludeFrom = []) => {
|
|
7769
|
+
for (const e in obj) {
|
|
7770
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
7771
|
+
continue;
|
|
7772
|
+
const elementProp = element[e];
|
|
7773
|
+
const objProp = obj[e];
|
|
7700
7774
|
if (elementProp === void 0) {
|
|
7701
|
-
element[
|
|
7775
|
+
element[e] = objProp;
|
|
7702
7776
|
}
|
|
7703
7777
|
}
|
|
7704
7778
|
return element;
|
|
7705
7779
|
};
|
|
7706
7780
|
var deepMerge3 = (element, extend, excludeFrom = []) => {
|
|
7707
|
-
for (const
|
|
7708
|
-
if (excludeFrom.includes(
|
|
7781
|
+
for (const e in extend) {
|
|
7782
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
7709
7783
|
continue;
|
|
7710
|
-
const elementProp = element[
|
|
7711
|
-
const extendProp = extend[
|
|
7784
|
+
const elementProp = element[e];
|
|
7785
|
+
const extendProp = extend[e];
|
|
7712
7786
|
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
7713
7787
|
deepMerge3(elementProp, extendProp);
|
|
7714
7788
|
} else if (elementProp === void 0) {
|
|
7715
|
-
element[
|
|
7789
|
+
element[e] = extendProp;
|
|
7716
7790
|
}
|
|
7717
7791
|
}
|
|
7718
7792
|
return element;
|
|
@@ -7720,7 +7794,7 @@ var require_cjs11 = __commonJS({
|
|
|
7720
7794
|
var clone = (obj, excludeFrom = []) => {
|
|
7721
7795
|
const o = {};
|
|
7722
7796
|
for (const prop in obj) {
|
|
7723
|
-
if (excludeFrom.includes(
|
|
7797
|
+
if (excludeFrom.includes(prop) || prop.includes("__"))
|
|
7724
7798
|
continue;
|
|
7725
7799
|
o[prop] = obj[prop];
|
|
7726
7800
|
}
|
|
@@ -7747,6 +7821,9 @@ var require_cjs11 = __commonJS({
|
|
|
7747
7821
|
}
|
|
7748
7822
|
return o;
|
|
7749
7823
|
};
|
|
7824
|
+
var mergeArrayExclude = (arr, excl = []) => {
|
|
7825
|
+
return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
|
|
7826
|
+
};
|
|
7750
7827
|
var deepClone22 = (obj, excludeFrom = []) => {
|
|
7751
7828
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
7752
7829
|
for (const prop in obj) {
|
|
@@ -7754,7 +7831,7 @@ var require_cjs11 = __commonJS({
|
|
|
7754
7831
|
continue;
|
|
7755
7832
|
let objProp = obj[prop];
|
|
7756
7833
|
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
7757
|
-
objProp = mergeArray(objProp);
|
|
7834
|
+
objProp = (0, import_array.mergeArray)(objProp);
|
|
7758
7835
|
}
|
|
7759
7836
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
7760
7837
|
o[prop] = deepClone22(objProp, excludeFrom);
|
|
@@ -7823,8 +7900,8 @@ var require_cjs11 = __commonJS({
|
|
|
7823
7900
|
try {
|
|
7824
7901
|
const evalProp = import_globals3.window.eval(`(${objProp})`);
|
|
7825
7902
|
stringified[prop] = evalProp;
|
|
7826
|
-
} catch (
|
|
7827
|
-
if (
|
|
7903
|
+
} catch (e) {
|
|
7904
|
+
if (e)
|
|
7828
7905
|
stringified[prop] = objProp;
|
|
7829
7906
|
}
|
|
7830
7907
|
} else {
|
|
@@ -7838,8 +7915,8 @@ var require_cjs11 = __commonJS({
|
|
|
7838
7915
|
try {
|
|
7839
7916
|
const evalProp = import_globals3.window.eval(`(${arrProp})`);
|
|
7840
7917
|
stringified[prop].push(evalProp);
|
|
7841
|
-
} catch (
|
|
7842
|
-
if (
|
|
7918
|
+
} catch (e) {
|
|
7919
|
+
if (e)
|
|
7843
7920
|
stringified[prop].push(arrProp);
|
|
7844
7921
|
}
|
|
7845
7922
|
} else {
|
|
@@ -7859,32 +7936,17 @@ var require_cjs11 = __commonJS({
|
|
|
7859
7936
|
}
|
|
7860
7937
|
return stringified;
|
|
7861
7938
|
};
|
|
7862
|
-
var overwrite = (element, params, excludeFrom = []) => {
|
|
7863
|
-
const { ref } = element;
|
|
7864
|
-
const changes = {};
|
|
7865
|
-
for (const e2 in params) {
|
|
7866
|
-
if (excludeFrom.includes(e2) || e2.includes("__"))
|
|
7867
|
-
continue;
|
|
7868
|
-
const elementProp = element[e2];
|
|
7869
|
-
const paramsProp = params[e2];
|
|
7870
|
-
if (paramsProp) {
|
|
7871
|
-
ref.__cache[e2] = changes[e2] = elementProp;
|
|
7872
|
-
ref[e2] = paramsProp;
|
|
7873
|
-
}
|
|
7874
|
-
}
|
|
7875
|
-
return changes;
|
|
7876
|
-
};
|
|
7877
7939
|
var diffObjects = (original, objToDiff, cache) => {
|
|
7878
|
-
for (const
|
|
7879
|
-
if (
|
|
7940
|
+
for (const e in objToDiff) {
|
|
7941
|
+
if (e === "ref")
|
|
7880
7942
|
continue;
|
|
7881
|
-
const originalProp = original[
|
|
7882
|
-
const objToDiffProp = objToDiff[
|
|
7943
|
+
const originalProp = original[e];
|
|
7944
|
+
const objToDiffProp = objToDiff[e];
|
|
7883
7945
|
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
7884
|
-
cache[
|
|
7885
|
-
diff5(originalProp, objToDiffProp, cache[
|
|
7946
|
+
cache[e] = {};
|
|
7947
|
+
diff5(originalProp, objToDiffProp, cache[e]);
|
|
7886
7948
|
} else if (objToDiffProp !== void 0) {
|
|
7887
|
-
cache[
|
|
7949
|
+
cache[e] = objToDiffProp;
|
|
7888
7950
|
}
|
|
7889
7951
|
}
|
|
7890
7952
|
return cache;
|
|
@@ -7915,35 +7977,39 @@ var require_cjs11 = __commonJS({
|
|
|
7915
7977
|
}
|
|
7916
7978
|
return cache;
|
|
7917
7979
|
};
|
|
7918
|
-
var
|
|
7980
|
+
var overwrite = (element, params, excludeFrom = []) => {
|
|
7981
|
+
const { ref } = element;
|
|
7919
7982
|
const changes = {};
|
|
7920
|
-
for (const
|
|
7921
|
-
|
|
7922
|
-
|
|
7983
|
+
for (const e in params) {
|
|
7984
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
7985
|
+
continue;
|
|
7986
|
+
const elementProp = element[e];
|
|
7987
|
+
const paramsProp = params[e];
|
|
7923
7988
|
if (paramsProp) {
|
|
7924
|
-
|
|
7989
|
+
ref.__cache[e] = changes[e] = elementProp;
|
|
7990
|
+
ref[e] = paramsProp;
|
|
7925
7991
|
}
|
|
7926
7992
|
}
|
|
7927
7993
|
return changes;
|
|
7928
7994
|
};
|
|
7929
7995
|
var overwriteShallow5 = (obj, params, excludeFrom = []) => {
|
|
7930
|
-
for (const
|
|
7931
|
-
if (excludeFrom.includes(
|
|
7996
|
+
for (const e in params) {
|
|
7997
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
7932
7998
|
continue;
|
|
7933
|
-
obj[
|
|
7999
|
+
obj[e] = params[e];
|
|
7934
8000
|
}
|
|
7935
8001
|
return obj;
|
|
7936
8002
|
};
|
|
7937
|
-
var overwriteDeep = (
|
|
7938
|
-
for (const
|
|
7939
|
-
if (excludeFrom.includes(
|
|
8003
|
+
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
8004
|
+
for (const e in params) {
|
|
8005
|
+
if (excludeFrom.includes(e) || e.includes("__"))
|
|
7940
8006
|
continue;
|
|
7941
|
-
const objProp = obj[
|
|
7942
|
-
const paramsProp = params[
|
|
8007
|
+
const objProp = obj[e];
|
|
8008
|
+
const paramsProp = params[e];
|
|
7943
8009
|
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
7944
|
-
overwriteDeep(
|
|
8010
|
+
overwriteDeep(objProp, paramsProp);
|
|
7945
8011
|
} else if (paramsProp !== void 0) {
|
|
7946
|
-
obj[
|
|
8012
|
+
obj[e] = paramsProp;
|
|
7947
8013
|
}
|
|
7948
8014
|
}
|
|
7949
8015
|
return obj;
|
|
@@ -7954,7 +8020,7 @@ var require_cjs11 = __commonJS({
|
|
|
7954
8020
|
return a || b;
|
|
7955
8021
|
};
|
|
7956
8022
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
7957
|
-
const objectized = mergeAndCloneIfArray(param);
|
|
8023
|
+
const objectized = (0, import_array.mergeAndCloneIfArray)(param);
|
|
7958
8024
|
stack.push(objectized);
|
|
7959
8025
|
const extendOfExtend = objectized[prop];
|
|
7960
8026
|
if (extendOfExtend)
|
|
@@ -7982,13 +8048,13 @@ var require_cjs11 = __commonJS({
|
|
|
7982
8048
|
}
|
|
7983
8049
|
return true;
|
|
7984
8050
|
};
|
|
7985
|
-
var removeFromObject = (obj,
|
|
7986
|
-
if (
|
|
8051
|
+
var removeFromObject = (obj, props7) => {
|
|
8052
|
+
if (props7 === void 0 || props7 === null)
|
|
7987
8053
|
return obj;
|
|
7988
|
-
if ((0, import_types.is)(
|
|
7989
|
-
delete obj[
|
|
7990
|
-
} else if ((0, import_types.isArray)(
|
|
7991
|
-
|
|
8054
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
8055
|
+
delete obj[props7];
|
|
8056
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
8057
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
7992
8058
|
} else {
|
|
7993
8059
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
7994
8060
|
}
|
|
@@ -8046,70 +8112,6 @@ var require_cjs11 = __commonJS({
|
|
|
8046
8112
|
};
|
|
8047
8113
|
}
|
|
8048
8114
|
});
|
|
8049
|
-
var require_array2 = __commonJS2({
|
|
8050
|
-
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
|
|
8051
|
-
"use strict";
|
|
8052
|
-
var __defProp22 = Object.defineProperty;
|
|
8053
|
-
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
8054
|
-
var __getOwnPropNames22 = Object.getOwnPropertyNames;
|
|
8055
|
-
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
8056
|
-
var __export22 = (target, all) => {
|
|
8057
|
-
for (var name in all)
|
|
8058
|
-
__defProp22(target, name, { get: all[name], enumerable: true });
|
|
8059
|
-
};
|
|
8060
|
-
var __copyProps22 = (to, from2, except, desc) => {
|
|
8061
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8062
|
-
for (let key of __getOwnPropNames22(from2))
|
|
8063
|
-
if (!__hasOwnProp22.call(to, key) && key !== except)
|
|
8064
|
-
__defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
|
|
8065
|
-
}
|
|
8066
|
-
return to;
|
|
8067
|
-
};
|
|
8068
|
-
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
8069
|
-
var array_exports = {};
|
|
8070
|
-
__export22(array_exports, {
|
|
8071
|
-
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
8072
|
-
joinArrays: () => joinArrays,
|
|
8073
|
-
mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
|
|
8074
|
-
mergeArray: () => mergeArray2,
|
|
8075
|
-
removeFromArray: () => removeFromArray,
|
|
8076
|
-
swapItemsInArray: () => swapItemsInArray
|
|
8077
|
-
});
|
|
8078
|
-
module22.exports = __toCommonJS22(array_exports);
|
|
8079
|
-
var import_object = require_object2();
|
|
8080
|
-
var import_types = require_types2();
|
|
8081
|
-
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
8082
|
-
return arr2.every((val) => arr1.includes(val));
|
|
8083
|
-
};
|
|
8084
|
-
var removeFromArray = (arr, index) => {
|
|
8085
|
-
if ((0, import_types.isString)(index))
|
|
8086
|
-
index = parseInt(index);
|
|
8087
|
-
if ((0, import_types.isNumber)(index)) {
|
|
8088
|
-
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
8089
|
-
throw new Error("Invalid index");
|
|
8090
|
-
}
|
|
8091
|
-
arr.splice(index, 1);
|
|
8092
|
-
} else if ((0, import_types.isArray)(index)) {
|
|
8093
|
-
index.forEach((idx) => removeFromArray(arr, idx));
|
|
8094
|
-
} else {
|
|
8095
|
-
throw new Error("Invalid index");
|
|
8096
|
-
}
|
|
8097
|
-
return arr;
|
|
8098
|
-
};
|
|
8099
|
-
var swapItemsInArray = (arr, i, j) => {
|
|
8100
|
-
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
8101
|
-
};
|
|
8102
|
-
var joinArrays = (...arrays) => {
|
|
8103
|
-
return [].concat(...arrays);
|
|
8104
|
-
};
|
|
8105
|
-
var mergeArray2 = (arr, excludeFrom = []) => {
|
|
8106
|
-
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
8107
|
-
};
|
|
8108
|
-
var mergeAndCloneIfArray2 = (obj) => {
|
|
8109
|
-
return (0, import_types.isArray)(obj) ? mergeArray2(obj) : (0, import_object.deepClone)(obj);
|
|
8110
|
-
};
|
|
8111
|
-
}
|
|
8112
|
-
});
|
|
8113
8115
|
var require_log2 = __commonJS2({
|
|
8114
8116
|
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
|
|
8115
8117
|
"use strict";
|
|
@@ -8578,6 +8580,7 @@ var require_cjs11 = __commonJS({
|
|
|
8578
8580
|
range: [-3, 12],
|
|
8579
8581
|
h1Matches: 6,
|
|
8580
8582
|
lineHeight: 1.5,
|
|
8583
|
+
subSequence: true,
|
|
8581
8584
|
unit: "em",
|
|
8582
8585
|
templates: {},
|
|
8583
8586
|
sequence: {},
|
|
@@ -8734,8 +8737,8 @@ var require_cjs11 = __commonJS({
|
|
|
8734
8737
|
18: "S",
|
|
8735
8738
|
19: "T"
|
|
8736
8739
|
};
|
|
8737
|
-
var setSequenceValue = (
|
|
8738
|
-
const { key, variable, value, scaling, index } =
|
|
8740
|
+
var setSequenceValue = (props7, sequenceProps) => {
|
|
8741
|
+
const { key, variable, value, scaling, index } = props7;
|
|
8739
8742
|
sequenceProps.sequence[key] = {
|
|
8740
8743
|
key,
|
|
8741
8744
|
decimal: ~~(value * 100) / 100,
|
|
@@ -8747,8 +8750,8 @@ var require_cjs11 = __commonJS({
|
|
|
8747
8750
|
sequenceProps.scales[key] = scaling;
|
|
8748
8751
|
sequenceProps.vars[variable] = scaling + sequenceProps.unit;
|
|
8749
8752
|
};
|
|
8750
|
-
var generateSubSequence = (
|
|
8751
|
-
const { key, base, value, ratio, variable, index } =
|
|
8753
|
+
var generateSubSequence = (props7, sequenceProps) => {
|
|
8754
|
+
const { key, base, value, ratio, variable, index } = props7;
|
|
8752
8755
|
const next2 = value * ratio;
|
|
8753
8756
|
const diff5 = next2 - value;
|
|
8754
8757
|
const smallscale = diff5 / 1.618;
|
|
@@ -8789,7 +8792,7 @@ var require_cjs11 = __commonJS({
|
|
|
8789
8792
|
const value = switchSequenceOnNegative(key, base, ratio);
|
|
8790
8793
|
const scaling = ~~(value / base * 100) / 100;
|
|
8791
8794
|
const variable = prefix2 + letterKey;
|
|
8792
|
-
const
|
|
8795
|
+
const props7 = {
|
|
8793
8796
|
key: letterKey,
|
|
8794
8797
|
variable,
|
|
8795
8798
|
value,
|
|
@@ -8798,9 +8801,9 @@ var require_cjs11 = __commonJS({
|
|
|
8798
8801
|
ratio,
|
|
8799
8802
|
index: key
|
|
8800
8803
|
};
|
|
8801
|
-
setSequenceValue(
|
|
8804
|
+
setSequenceValue(props7, sequenceProps);
|
|
8802
8805
|
if (subSequence)
|
|
8803
|
-
generateSubSequence(
|
|
8806
|
+
generateSubSequence(props7, sequenceProps);
|
|
8804
8807
|
}
|
|
8805
8808
|
return sequenceProps;
|
|
8806
8809
|
};
|
|
@@ -8882,14 +8885,14 @@ var require_cjs11 = __commonJS({
|
|
|
8882
8885
|
CSS_VARS2[result.var] = result.value;
|
|
8883
8886
|
}
|
|
8884
8887
|
};
|
|
8885
|
-
var applySequenceVars = (
|
|
8888
|
+
var applySequenceVars = (props7, mediaName, options = {}) => {
|
|
8886
8889
|
const CONFIG22 = getActiveConfig5();
|
|
8887
8890
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
8888
|
-
const unit =
|
|
8889
|
-
const { sequence, scales } =
|
|
8891
|
+
const unit = props7.unit || UNIT2.default;
|
|
8892
|
+
const { sequence, scales } = props7;
|
|
8890
8893
|
for (const key in sequence) {
|
|
8891
8894
|
const item = sequence[key];
|
|
8892
|
-
const value = (
|
|
8895
|
+
const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
|
|
8893
8896
|
if (mediaName) {
|
|
8894
8897
|
const query = MEDIA2[mediaName];
|
|
8895
8898
|
if (!query) {
|
|
@@ -9378,13 +9381,13 @@ var require_cjs11 = __commonJS({
|
|
|
9378
9381
|
return { var: CSSvar, value: str, arr: value, type };
|
|
9379
9382
|
};
|
|
9380
9383
|
var import_utils142 = __toESM2(require_cjs42(), 1);
|
|
9381
|
-
var runThroughMedia = (
|
|
9384
|
+
var runThroughMedia = (props7) => {
|
|
9382
9385
|
const CONFIG22 = getActiveConfig5();
|
|
9383
9386
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
9384
|
-
for (const prop in
|
|
9385
|
-
const mediaProps =
|
|
9387
|
+
for (const prop in props7) {
|
|
9388
|
+
const mediaProps = props7[prop];
|
|
9386
9389
|
if (prop.slice(0, 1) === "@") {
|
|
9387
|
-
const { type, base, ratio, range, subSequence, h1Matches, unit } =
|
|
9390
|
+
const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
|
|
9388
9391
|
(0, import_utils142.merge)(mediaProps, {
|
|
9389
9392
|
type,
|
|
9390
9393
|
base,
|
|
@@ -9408,20 +9411,20 @@ var require_cjs11 = __commonJS({
|
|
|
9408
9411
|
}
|
|
9409
9412
|
}
|
|
9410
9413
|
};
|
|
9411
|
-
var applyHeadings = (
|
|
9414
|
+
var applyHeadings = (props7) => {
|
|
9412
9415
|
const CONFIG22 = getActiveConfig5();
|
|
9413
|
-
if (
|
|
9414
|
-
const unit =
|
|
9415
|
-
const HEADINGS = findHeadings(
|
|
9416
|
-
const { templates } =
|
|
9416
|
+
if (props7.h1Matches) {
|
|
9417
|
+
const unit = props7.unit;
|
|
9418
|
+
const HEADINGS = findHeadings(props7);
|
|
9419
|
+
const { templates } = props7;
|
|
9417
9420
|
for (const k in HEADINGS) {
|
|
9418
9421
|
const headerName = `h${parseInt(k) + 1}`;
|
|
9419
9422
|
const headerStyle = templates[headerName];
|
|
9420
9423
|
templates[headerName] = {
|
|
9421
9424
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
9422
9425
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
9423
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
9424
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
9426
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
|
|
9427
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
|
|
9425
9428
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
9426
9429
|
};
|
|
9427
9430
|
}
|
|
@@ -9516,11 +9519,11 @@ var require_cjs11 = __commonJS({
|
|
|
9516
9519
|
sequence
|
|
9517
9520
|
);
|
|
9518
9521
|
};
|
|
9519
|
-
var getSpacingBasedOnRatio13 = (
|
|
9522
|
+
var getSpacingBasedOnRatio13 = (props7, propertyName, val) => {
|
|
9520
9523
|
const CONFIG22 = getActiveConfig5();
|
|
9521
9524
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
9522
|
-
const { spacingRatio, unit } =
|
|
9523
|
-
const value = val ||
|
|
9525
|
+
const { spacingRatio, unit } = props7;
|
|
9526
|
+
const value = val || props7[propertyName];
|
|
9524
9527
|
if (spacingRatio) {
|
|
9525
9528
|
let sequenceProps = SPACING2[spacingRatio];
|
|
9526
9529
|
if (!sequenceProps) {
|
|
@@ -9795,7 +9798,7 @@ var require_cjs11 = __commonJS({
|
|
|
9795
9798
|
return v;
|
|
9796
9799
|
}).join(" ");
|
|
9797
9800
|
};
|
|
9798
|
-
var transformDuration5 = (duration,
|
|
9801
|
+
var transformDuration5 = (duration, props7, propertyName) => {
|
|
9799
9802
|
if (!(0, import_utils25.isString)(duration))
|
|
9800
9803
|
return;
|
|
9801
9804
|
return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
|
|
@@ -9843,11 +9846,11 @@ var require_cjs11 = __commonJS({
|
|
|
9843
9846
|
if (CONFIG22.verbose)
|
|
9844
9847
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
9845
9848
|
};
|
|
9846
|
-
var setEach = (factoryName,
|
|
9849
|
+
var setEach = (factoryName, props7) => {
|
|
9847
9850
|
const CONFIG22 = getActiveConfig5();
|
|
9848
9851
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
9849
|
-
const keys = Object.keys(
|
|
9850
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
9852
|
+
const keys = Object.keys(props7);
|
|
9853
|
+
keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
|
|
9851
9854
|
return CONFIG22[FACTORY_NAME];
|
|
9852
9855
|
};
|
|
9853
9856
|
var SET_OPTIONS = {};
|
|
@@ -9917,6 +9920,12 @@ __export(domql_exports, {
|
|
|
9917
9920
|
Clickable: () => Clickable,
|
|
9918
9921
|
Collection: () => Collection,
|
|
9919
9922
|
DatePicker: () => DatePicker,
|
|
9923
|
+
DatePickerGrid: () => DatePickerGrid,
|
|
9924
|
+
DatePickerMonthsSlider: () => DatePickerMonthsSlider,
|
|
9925
|
+
DatePickerTwoColumns: () => DatePickerTwoColumns,
|
|
9926
|
+
DatePickerWeekDays: () => DatePickerWeekDays,
|
|
9927
|
+
DatePickerYears: () => DatePickerYears,
|
|
9928
|
+
DialogFooter: () => DialogFooter,
|
|
9920
9929
|
Direction: () => Direction,
|
|
9921
9930
|
DropdownList: () => DropdownList,
|
|
9922
9931
|
DropdownParent: () => DropdownParent,
|
|
@@ -9973,6 +9982,7 @@ __export(domql_exports, {
|
|
|
9973
9982
|
Text: () => Text,
|
|
9974
9983
|
Textarea: () => Textarea,
|
|
9975
9984
|
Theme: () => Theme,
|
|
9985
|
+
TimePicker: () => TimePicker,
|
|
9976
9986
|
Timing: () => Timing,
|
|
9977
9987
|
ToggleSwitch: () => ToggleSwitch,
|
|
9978
9988
|
ToggleSwithWithLabel: () => ToggleSwithWithLabel,
|
|
@@ -9991,143 +10001,143 @@ module.exports = __toCommonJS(domql_exports);
|
|
|
9991
10001
|
var import_scratch = __toESM(require_cjs());
|
|
9992
10002
|
var Block = {
|
|
9993
10003
|
class: {
|
|
9994
|
-
boxSizing: ({ props:
|
|
10004
|
+
boxSizing: ({ props: props7 }) => props7.boxSizing ? { boxSizing: props7.boxSizing } : {
|
|
9995
10005
|
boxSizing: "border-box"
|
|
9996
10006
|
},
|
|
9997
|
-
display: ({ props:
|
|
9998
|
-
hide: ({ props:
|
|
9999
|
-
width: ({ props:
|
|
10000
|
-
height: ({ props:
|
|
10001
|
-
boxSize: ({ props:
|
|
10002
|
-
if (typeof
|
|
10007
|
+
display: ({ props: props7 }) => props7.display && { display: props7.display },
|
|
10008
|
+
hide: ({ props: props7 }) => props7.hide && { display: "none" },
|
|
10009
|
+
width: ({ props: props7 }) => props7.width && (0, import_scratch.getSpacingBasedOnRatio)(props7, "width"),
|
|
10010
|
+
height: ({ props: props7 }) => props7.height && (0, import_scratch.getSpacingBasedOnRatio)(props7, "height"),
|
|
10011
|
+
boxSize: ({ props: props7 }) => {
|
|
10012
|
+
if (typeof props7.boxSize !== "string")
|
|
10003
10013
|
return;
|
|
10004
|
-
const [height, width] =
|
|
10014
|
+
const [height, width] = props7.boxSize.split(" ");
|
|
10005
10015
|
return {
|
|
10006
10016
|
...(0, import_scratch.getSpacingByKey)(height, "height"),
|
|
10007
10017
|
...(0, import_scratch.getSpacingByKey)(width || height, "width")
|
|
10008
10018
|
};
|
|
10009
10019
|
},
|
|
10010
|
-
maxWidth: ({ props:
|
|
10011
|
-
minWidth: ({ props:
|
|
10012
|
-
widthRange: ({ props:
|
|
10013
|
-
if (typeof
|
|
10020
|
+
maxWidth: ({ props: props7 }) => props7.maxWidth && (0, import_scratch.getSpacingBasedOnRatio)(props7, "maxWidth"),
|
|
10021
|
+
minWidth: ({ props: props7 }) => props7.minWidth && (0, import_scratch.getSpacingBasedOnRatio)(props7, "minWidth"),
|
|
10022
|
+
widthRange: ({ props: props7 }) => {
|
|
10023
|
+
if (typeof props7.widthRange !== "string")
|
|
10014
10024
|
return;
|
|
10015
|
-
const [minWidth, maxWidth] =
|
|
10025
|
+
const [minWidth, maxWidth] = props7.widthRange.split(" ");
|
|
10016
10026
|
return {
|
|
10017
10027
|
...(0, import_scratch.getSpacingByKey)(minWidth, "minWidth"),
|
|
10018
10028
|
...(0, import_scratch.getSpacingByKey)(maxWidth || minWidth, "maxWidth")
|
|
10019
10029
|
};
|
|
10020
10030
|
},
|
|
10021
|
-
maxHeight: ({ props:
|
|
10022
|
-
minHeight: ({ props:
|
|
10023
|
-
heightRange: ({ props:
|
|
10024
|
-
if (typeof
|
|
10031
|
+
maxHeight: ({ props: props7 }) => props7.maxHeight && (0, import_scratch.getSpacingBasedOnRatio)(props7, "maxHeight"),
|
|
10032
|
+
minHeight: ({ props: props7 }) => props7.minHeight && (0, import_scratch.getSpacingBasedOnRatio)(props7, "minHeight"),
|
|
10033
|
+
heightRange: ({ props: props7 }) => {
|
|
10034
|
+
if (typeof props7.heightRange !== "string")
|
|
10025
10035
|
return;
|
|
10026
|
-
const [minHeight, maxHeight] =
|
|
10036
|
+
const [minHeight, maxHeight] = props7.heightRange.split(" ");
|
|
10027
10037
|
return {
|
|
10028
10038
|
...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
|
|
10029
10039
|
...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
|
|
10030
10040
|
};
|
|
10031
10041
|
},
|
|
10032
|
-
direction: ({ props:
|
|
10033
|
-
aspectRatio: ({ props:
|
|
10034
|
-
borderWidth: ({ props:
|
|
10035
|
-
padding: ({ props:
|
|
10036
|
-
paddingInline: ({ props:
|
|
10037
|
-
if (typeof
|
|
10042
|
+
direction: ({ props: props7 }) => props7.direction && { direction: props7.direction },
|
|
10043
|
+
aspectRatio: ({ props: props7 }) => props7.aspectRatio && { aspectRatio: props7.aspectRatio },
|
|
10044
|
+
borderWidth: ({ props: props7 }) => props7.borderWidth ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "borderWidth") : null,
|
|
10045
|
+
padding: ({ props: props7 }) => props7.padding ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "padding") : null,
|
|
10046
|
+
paddingInline: ({ props: props7 }) => {
|
|
10047
|
+
if (typeof props7.paddingInline !== "string")
|
|
10038
10048
|
return;
|
|
10039
|
-
const [paddingInlineStart, paddingInlineEnd] =
|
|
10049
|
+
const [paddingInlineStart, paddingInlineEnd] = props7.paddingInline.split(" ");
|
|
10040
10050
|
return {
|
|
10041
10051
|
...(0, import_scratch.getSpacingByKey)(paddingInlineStart, "paddingInlineStart"),
|
|
10042
10052
|
...(0, import_scratch.getSpacingByKey)(paddingInlineEnd || paddingInlineStart, "paddingInlineEnd")
|
|
10043
10053
|
};
|
|
10044
10054
|
},
|
|
10045
|
-
paddingBlock: ({ props:
|
|
10046
|
-
if (typeof
|
|
10055
|
+
paddingBlock: ({ props: props7 }) => {
|
|
10056
|
+
if (typeof props7.paddingBlock !== "string")
|
|
10047
10057
|
return;
|
|
10048
|
-
const [paddingBlockStart, paddingBlockEnd] =
|
|
10058
|
+
const [paddingBlockStart, paddingBlockEnd] = props7.paddingBlock.split(" ");
|
|
10049
10059
|
return {
|
|
10050
10060
|
...(0, import_scratch.getSpacingByKey)(paddingBlockStart, "paddingBlockStart"),
|
|
10051
10061
|
...(0, import_scratch.getSpacingByKey)(paddingBlockEnd || paddingBlockStart, "paddingBlockEnd")
|
|
10052
10062
|
};
|
|
10053
10063
|
},
|
|
10054
|
-
paddingInlineStart: ({ props:
|
|
10055
|
-
paddingInlineEnd: ({ props:
|
|
10056
|
-
paddingBlockStart: ({ props:
|
|
10057
|
-
paddingBlockEnd: ({ props:
|
|
10058
|
-
margin: ({ props:
|
|
10059
|
-
marginInline: ({ props:
|
|
10060
|
-
if (typeof
|
|
10064
|
+
paddingInlineStart: ({ props: props7 }) => props7.paddingInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingInlineStart") : null,
|
|
10065
|
+
paddingInlineEnd: ({ props: props7 }) => props7.paddingInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingInlineEnd") : null,
|
|
10066
|
+
paddingBlockStart: ({ props: props7 }) => props7.paddingBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingBlockStart") : null,
|
|
10067
|
+
paddingBlockEnd: ({ props: props7 }) => props7.paddingBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingBlockEnd") : null,
|
|
10068
|
+
margin: ({ props: props7 }) => props7.margin ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "margin") : null,
|
|
10069
|
+
marginInline: ({ props: props7 }) => {
|
|
10070
|
+
if (typeof props7.marginInline !== "string")
|
|
10061
10071
|
return;
|
|
10062
|
-
const [marginInlineStart, marginInlineEnd] =
|
|
10072
|
+
const [marginInlineStart, marginInlineEnd] = props7.marginInline.split(" ");
|
|
10063
10073
|
return {
|
|
10064
10074
|
...(0, import_scratch.getSpacingByKey)(marginInlineStart, "marginInlineStart"),
|
|
10065
10075
|
...(0, import_scratch.getSpacingByKey)(marginInlineEnd || marginInlineStart, "marginInlineEnd")
|
|
10066
10076
|
};
|
|
10067
10077
|
},
|
|
10068
|
-
marginBlock: ({ props:
|
|
10069
|
-
if (typeof
|
|
10078
|
+
marginBlock: ({ props: props7 }) => {
|
|
10079
|
+
if (typeof props7.marginBlock !== "string")
|
|
10070
10080
|
return;
|
|
10071
|
-
const [marginBlockStart, marginBlockEnd] =
|
|
10081
|
+
const [marginBlockStart, marginBlockEnd] = props7.marginBlock.split(" ");
|
|
10072
10082
|
return {
|
|
10073
10083
|
...(0, import_scratch.getSpacingByKey)(marginBlockStart, "marginBlockStart"),
|
|
10074
10084
|
...(0, import_scratch.getSpacingByKey)(marginBlockEnd || marginBlockStart, "marginBlockEnd")
|
|
10075
10085
|
};
|
|
10076
10086
|
},
|
|
10077
|
-
marginInlineStart: ({ props:
|
|
10078
|
-
marginInlineEnd: ({ props:
|
|
10079
|
-
marginBlockStart: ({ props:
|
|
10080
|
-
marginBlockEnd: ({ props:
|
|
10081
|
-
gap: ({ props:
|
|
10082
|
-
gap: (0, import_scratch.transfromGap)(
|
|
10087
|
+
marginInlineStart: ({ props: props7 }) => props7.marginInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginInlineStart") : null,
|
|
10088
|
+
marginInlineEnd: ({ props: props7 }) => props7.marginInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginInlineEnd") : null,
|
|
10089
|
+
marginBlockStart: ({ props: props7 }) => props7.marginBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginBlockStart") : null,
|
|
10090
|
+
marginBlockEnd: ({ props: props7 }) => props7.marginBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginBlockEnd") : null,
|
|
10091
|
+
gap: ({ props: props7 }) => props7.gap ? {
|
|
10092
|
+
gap: (0, import_scratch.transfromGap)(props7.gap)
|
|
10083
10093
|
} : null,
|
|
10084
|
-
gridArea: ({ props:
|
|
10085
|
-
flex: ({ props:
|
|
10086
|
-
flexDirection: ({ props:
|
|
10087
|
-
alignItems: ({ props:
|
|
10088
|
-
alignContent: ({ props:
|
|
10089
|
-
justifyContent: ({ props:
|
|
10090
|
-
justifyItems: ({ props:
|
|
10091
|
-
alignSelf: ({ props:
|
|
10092
|
-
order: ({ props:
|
|
10093
|
-
flexWrap: ({ props:
|
|
10094
|
+
gridArea: ({ props: props7 }) => props7.gridArea && { gridArea: props7.gridArea },
|
|
10095
|
+
flex: ({ props: props7 }) => props7.flex && { flex: props7.flex },
|
|
10096
|
+
flexDirection: ({ props: props7 }) => props7.flexDirection && { flexDirection: props7.flexDirection },
|
|
10097
|
+
alignItems: ({ props: props7 }) => props7.alignItems && { alignItems: props7.alignItems },
|
|
10098
|
+
alignContent: ({ props: props7 }) => props7.alignContent && { alignContent: props7.alignContent },
|
|
10099
|
+
justifyContent: ({ props: props7 }) => props7.justifyContent && { justifyContent: props7.justifyContent },
|
|
10100
|
+
justifyItems: ({ props: props7 }) => props7.justifyItems && { justifyItems: props7.justifyItems },
|
|
10101
|
+
alignSelf: ({ props: props7 }) => props7.alignSelf && { alignSelf: props7.alignSelf },
|
|
10102
|
+
order: ({ props: props7 }) => props7.order && { order: props7.order },
|
|
10103
|
+
flexWrap: ({ props: props7 }) => props7.flexWrap && {
|
|
10094
10104
|
display: "flex",
|
|
10095
|
-
flexFlow:
|
|
10105
|
+
flexFlow: props7.flexWrap
|
|
10096
10106
|
},
|
|
10097
|
-
flexFlow: ({ props:
|
|
10107
|
+
flexFlow: ({ props: props7 }) => props7.flexFlow && {
|
|
10098
10108
|
display: "flex",
|
|
10099
|
-
flexFlow:
|
|
10109
|
+
flexFlow: props7.flexFlow
|
|
10100
10110
|
},
|
|
10101
|
-
flexAlign: ({ props:
|
|
10102
|
-
if (typeof
|
|
10111
|
+
flexAlign: ({ props: props7 }) => {
|
|
10112
|
+
if (typeof props7.flexAlign !== "string")
|
|
10103
10113
|
return;
|
|
10104
|
-
const [alignItems, justifyContent] =
|
|
10114
|
+
const [alignItems, justifyContent] = props7.flexAlign.split(" ");
|
|
10105
10115
|
return {
|
|
10106
10116
|
display: "flex",
|
|
10107
10117
|
alignItems,
|
|
10108
10118
|
justifyContent
|
|
10109
10119
|
};
|
|
10110
10120
|
},
|
|
10111
|
-
gridColumn: ({ props:
|
|
10112
|
-
gridColumnStart: ({ props:
|
|
10113
|
-
gridColumnStart:
|
|
10121
|
+
gridColumn: ({ props: props7 }) => props7.gridColumn && { gridColumn: props7.gridColumn },
|
|
10122
|
+
gridColumnStart: ({ props: props7 }) => props7.columnStart ? {
|
|
10123
|
+
gridColumnStart: props7.columnStart
|
|
10114
10124
|
} : null,
|
|
10115
|
-
gridRow: ({ props:
|
|
10116
|
-
gridRowStart: ({ props:
|
|
10117
|
-
size: ({ props:
|
|
10118
|
-
if (typeof
|
|
10125
|
+
gridRow: ({ props: props7 }) => props7.gridRow && { gridRow: props7.gridRow },
|
|
10126
|
+
gridRowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
|
|
10127
|
+
size: ({ props: props7 }) => {
|
|
10128
|
+
if (typeof props7.heightRange !== "string")
|
|
10119
10129
|
return;
|
|
10120
|
-
const [minHeight, maxHeight] =
|
|
10130
|
+
const [minHeight, maxHeight] = props7.heightRange.split(" ");
|
|
10121
10131
|
return {
|
|
10122
10132
|
...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
|
|
10123
10133
|
...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
|
|
10124
10134
|
};
|
|
10125
10135
|
},
|
|
10126
|
-
columns: ({ props:
|
|
10127
|
-
columnGap: ({ props:
|
|
10128
|
-
columnSpan: ({ props:
|
|
10129
|
-
columnFill: ({ props:
|
|
10130
|
-
columnCount: ({ props:
|
|
10136
|
+
columns: ({ props: props7 }) => props7.columns && { columns: props7.columns },
|
|
10137
|
+
columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "columnGap") : null,
|
|
10138
|
+
columnSpan: ({ props: props7 }) => props7.columnSpan && { columns: props7.columnSpan },
|
|
10139
|
+
columnFill: ({ props: props7 }) => props7.columnFill && { columns: props7.columnFill },
|
|
10140
|
+
columnCount: ({ props: props7 }) => props7.columnCount && { columns: props7.columnCount }
|
|
10131
10141
|
}
|
|
10132
10142
|
};
|
|
10133
10143
|
var Span = { tag: "span" };
|
|
@@ -10142,7 +10152,7 @@ var Direction = {
|
|
|
10142
10152
|
direction: "ltr"
|
|
10143
10153
|
},
|
|
10144
10154
|
class: {
|
|
10145
|
-
direction: ({ props:
|
|
10155
|
+
direction: ({ props: props7 }) => ({ direction: props7.direction })
|
|
10146
10156
|
}
|
|
10147
10157
|
};
|
|
10148
10158
|
|
|
@@ -10152,12 +10162,12 @@ var Flex = {
|
|
|
10152
10162
|
display: "flex"
|
|
10153
10163
|
},
|
|
10154
10164
|
class: {
|
|
10155
|
-
flow: ({ props:
|
|
10156
|
-
wrap: ({ props:
|
|
10157
|
-
align: ({ props:
|
|
10158
|
-
if (typeof
|
|
10165
|
+
flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
|
|
10166
|
+
wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
|
|
10167
|
+
align: ({ props: props7 }) => {
|
|
10168
|
+
if (typeof props7.align !== "string")
|
|
10159
10169
|
return;
|
|
10160
|
-
const [alignItems, justifyContent] =
|
|
10170
|
+
const [alignItems, justifyContent] = props7.align.split(" ");
|
|
10161
10171
|
return { alignItems, justifyContent };
|
|
10162
10172
|
}
|
|
10163
10173
|
}
|
|
@@ -10168,22 +10178,22 @@ var import_scratch2 = __toESM(require_cjs());
|
|
|
10168
10178
|
var Grid = {
|
|
10169
10179
|
props: { display: "grid" },
|
|
10170
10180
|
class: {
|
|
10171
|
-
area: ({ props:
|
|
10172
|
-
template: ({ props:
|
|
10173
|
-
templateAreas: ({ props:
|
|
10174
|
-
column: ({ props:
|
|
10175
|
-
columns: ({ props:
|
|
10176
|
-
templateColumns: ({ props:
|
|
10177
|
-
autoColumns: ({ props:
|
|
10178
|
-
columnStart: ({ props:
|
|
10179
|
-
row: ({ props:
|
|
10180
|
-
rows: ({ props:
|
|
10181
|
-
templateRows: ({ props:
|
|
10182
|
-
autoRows: ({ props:
|
|
10183
|
-
rowStart: ({ props:
|
|
10184
|
-
autoFlow: ({ props:
|
|
10185
|
-
columnGap: ({ props:
|
|
10186
|
-
rowGap: ({ props:
|
|
10181
|
+
area: ({ props: props7 }) => props7.area ? { gridArea: props7.area } : null,
|
|
10182
|
+
template: ({ props: props7 }) => props7.template ? { gridTemplate: props7.template } : null,
|
|
10183
|
+
templateAreas: ({ props: props7 }) => props7.templateAreas ? { gridTemplateAreas: props7.templateAreas } : null,
|
|
10184
|
+
column: ({ props: props7 }) => props7.column ? { gridColumn: props7.column } : null,
|
|
10185
|
+
columns: ({ props: props7 }) => props7.columns ? { gridTemplateColumns: props7.columns } : null,
|
|
10186
|
+
templateColumns: ({ props: props7 }) => props7.templateColumns ? { gridTemplateColumns: props7.templateColumns } : null,
|
|
10187
|
+
autoColumns: ({ props: props7 }) => props7.autoColumns ? { gridAutoColumns: props7.autoColumns } : null,
|
|
10188
|
+
columnStart: ({ props: props7 }) => props7.columnStart ? { gridColumnStart: props7.columnStart } : null,
|
|
10189
|
+
row: ({ props: props7 }) => props7.row ? { gridRow: props7.row } : null,
|
|
10190
|
+
rows: ({ props: props7 }) => props7.rows ? { gridTemplateRows: props7.rows } : null,
|
|
10191
|
+
templateRows: ({ props: props7 }) => props7.templateRows ? { gridTemplateRows: props7.templateRows } : null,
|
|
10192
|
+
autoRows: ({ props: props7 }) => props7.autoRows ? { gridAutoRows: props7.autoRows } : null,
|
|
10193
|
+
rowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
|
|
10194
|
+
autoFlow: ({ props: props7 }) => props7.autoFlow ? { gridAutoFlow: props7.autoFlow } : null,
|
|
10195
|
+
columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props7, "columnGap") : null,
|
|
10196
|
+
rowGap: ({ props: props7 }) => props7.rowGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props7, "rowGap") : null
|
|
10187
10197
|
}
|
|
10188
10198
|
};
|
|
10189
10199
|
|
|
@@ -10196,9 +10206,9 @@ var Img = {
|
|
|
10196
10206
|
title: ""
|
|
10197
10207
|
},
|
|
10198
10208
|
attr: {
|
|
10199
|
-
src: ({ props:
|
|
10200
|
-
alt: ({ props:
|
|
10201
|
-
title: ({ props:
|
|
10209
|
+
src: ({ props: props7 }) => props7.src,
|
|
10210
|
+
alt: ({ props: props7 }) => props7.alt,
|
|
10211
|
+
title: ({ props: props7 }) => props7.title || props7.alt
|
|
10202
10212
|
}
|
|
10203
10213
|
};
|
|
10204
10214
|
|
|
@@ -10207,9 +10217,9 @@ var Form = {
|
|
|
10207
10217
|
tag: "form",
|
|
10208
10218
|
props: {},
|
|
10209
10219
|
attr: {
|
|
10210
|
-
action: ({ props:
|
|
10211
|
-
method: ({ props:
|
|
10212
|
-
enctype: ({ props:
|
|
10220
|
+
action: ({ props: props7 }) => props7.action,
|
|
10221
|
+
method: ({ props: props7 }) => props7.method,
|
|
10222
|
+
enctype: ({ props: props7 }) => props7.enctype
|
|
10213
10223
|
}
|
|
10214
10224
|
};
|
|
10215
10225
|
|
|
@@ -10226,24 +10236,24 @@ var import_scratch4 = __toESM(require_cjs());
|
|
|
10226
10236
|
var import_scratch3 = __toESM(require_cjs());
|
|
10227
10237
|
var Timing = {
|
|
10228
10238
|
class: {
|
|
10229
|
-
transition: ({ props:
|
|
10230
|
-
transition: (0, import_scratch3.splitTransition)(
|
|
10239
|
+
transition: ({ props: props7 }) => props7.transition && {
|
|
10240
|
+
transition: (0, import_scratch3.splitTransition)(props7.transition)
|
|
10231
10241
|
},
|
|
10232
|
-
willChange: ({ props:
|
|
10233
|
-
willChange:
|
|
10242
|
+
willChange: ({ props: props7 }) => props7.willChange && {
|
|
10243
|
+
willChange: props7.willChange
|
|
10234
10244
|
},
|
|
10235
|
-
transitionDuration: ({ props:
|
|
10236
|
-
transitionDuration: (0, import_scratch3.transformDuration)(
|
|
10245
|
+
transitionDuration: ({ props: props7 }) => props7.transitionDuration && {
|
|
10246
|
+
transitionDuration: (0, import_scratch3.transformDuration)(props7.transitionDuration)
|
|
10237
10247
|
},
|
|
10238
|
-
transitionDelay: ({ props:
|
|
10239
|
-
transitionDelay: (0, import_scratch3.transformDuration)(
|
|
10248
|
+
transitionDelay: ({ props: props7 }) => props7.transitionDelay && {
|
|
10249
|
+
transitionDelay: (0, import_scratch3.transformDuration)(props7.transitionDelay)
|
|
10240
10250
|
},
|
|
10241
|
-
transitionTimingFunction: ({ props:
|
|
10242
|
-
transitionTimingFunction: (0, import_scratch3.getTimingFunction)(
|
|
10251
|
+
transitionTimingFunction: ({ props: props7 }) => props7.transitionTimingFunction && {
|
|
10252
|
+
transitionTimingFunction: (0, import_scratch3.getTimingFunction)(props7.transitionTimingFunction)
|
|
10243
10253
|
},
|
|
10244
|
-
transitionProperty: ({ props:
|
|
10245
|
-
transitionProperty:
|
|
10246
|
-
willChange:
|
|
10254
|
+
transitionProperty: ({ props: props7 }) => props7.transitionProperty && {
|
|
10255
|
+
transitionProperty: props7.transitionProperty,
|
|
10256
|
+
willChange: props7.transitionProperty
|
|
10247
10257
|
}
|
|
10248
10258
|
}
|
|
10249
10259
|
};
|
|
@@ -10258,11 +10268,11 @@ var depth = {
|
|
|
10258
10268
|
26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG.UNIT.default} 26${CONFIG.UNIT.default}` },
|
|
10259
10269
|
42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG.UNIT.default} 42${CONFIG.UNIT.default}` }
|
|
10260
10270
|
};
|
|
10261
|
-
var getComputedBackgroundColor = ({ props:
|
|
10262
|
-
return (0, import_scratch4.getColor)(
|
|
10271
|
+
var getComputedBackgroundColor = ({ props: props7 }) => {
|
|
10272
|
+
return (0, import_scratch4.getColor)(props7.shapeDirectionColor) || (0, import_scratch4.getColor)(props7.borderColor) || (0, import_scratch4.getColor)(props7.backgroundColor) || (0, import_scratch4.getColor)(props7.background);
|
|
10263
10273
|
};
|
|
10264
|
-
var inheritTransition = ({ props:
|
|
10265
|
-
const exec5 = Timing.class.transition({ props:
|
|
10274
|
+
var inheritTransition = ({ props: props7 }) => {
|
|
10275
|
+
const exec5 = Timing.class.transition({ props: props7 });
|
|
10266
10276
|
return exec5 && exec5.transition;
|
|
10267
10277
|
};
|
|
10268
10278
|
var SHAPES = {
|
|
@@ -10272,16 +10282,16 @@ var SHAPES = {
|
|
|
10272
10282
|
tv: {
|
|
10273
10283
|
borderRadius: "1.15em/2.5em"
|
|
10274
10284
|
},
|
|
10275
|
-
tooltip: ({ props:
|
|
10276
|
-
position:
|
|
10285
|
+
tooltip: ({ props: props7 }) => ({
|
|
10286
|
+
position: props7.position || "relative",
|
|
10277
10287
|
"&:before": {
|
|
10278
10288
|
content: '""',
|
|
10279
10289
|
display: "block",
|
|
10280
10290
|
width: "0px",
|
|
10281
10291
|
height: "0px",
|
|
10282
10292
|
border: ".35em solid",
|
|
10283
|
-
borderColor: getComputedBackgroundColor({ props:
|
|
10284
|
-
transition: inheritTransition({ props:
|
|
10293
|
+
borderColor: getComputedBackgroundColor({ props: props7 }),
|
|
10294
|
+
transition: inheritTransition({ props: props7 }),
|
|
10285
10295
|
transitionProperty: "border-color",
|
|
10286
10296
|
position: "absolute",
|
|
10287
10297
|
borderRadius: ".15em"
|
|
@@ -10317,13 +10327,13 @@ var SHAPES = {
|
|
|
10317
10327
|
}
|
|
10318
10328
|
}
|
|
10319
10329
|
},
|
|
10320
|
-
tag: ({ props:
|
|
10330
|
+
tag: ({ props: props7 }) => ({
|
|
10321
10331
|
position: "relative",
|
|
10322
10332
|
"&:before": {
|
|
10323
10333
|
content: '""',
|
|
10324
10334
|
display: "block",
|
|
10325
|
-
background: getComputedBackgroundColor({ props:
|
|
10326
|
-
transition: inheritTransition({ props:
|
|
10335
|
+
background: getComputedBackgroundColor({ props: props7 }),
|
|
10336
|
+
transition: inheritTransition({ props: props7 }),
|
|
10327
10337
|
transitionProperty: "background",
|
|
10328
10338
|
borderRadius: ".25em",
|
|
10329
10339
|
position: "absolute",
|
|
@@ -10364,7 +10374,7 @@ var SHAPES = {
|
|
|
10364
10374
|
}
|
|
10365
10375
|
}
|
|
10366
10376
|
},
|
|
10367
|
-
hexagon: ({ props:
|
|
10377
|
+
hexagon: ({ props: props7 }) => ({
|
|
10368
10378
|
position: "relative",
|
|
10369
10379
|
"&:before, &:after": {
|
|
10370
10380
|
content: '""',
|
|
@@ -10376,8 +10386,8 @@ var SHAPES = {
|
|
|
10376
10386
|
top: "50%",
|
|
10377
10387
|
transformOrigin: "50% 50%",
|
|
10378
10388
|
height: "73%",
|
|
10379
|
-
background: getComputedBackgroundColor({ props:
|
|
10380
|
-
transition: inheritTransition({ props:
|
|
10389
|
+
background: getComputedBackgroundColor({ props: props7 }),
|
|
10390
|
+
transition: inheritTransition({ props: props7 }),
|
|
10381
10391
|
transitionProperty: "background"
|
|
10382
10392
|
},
|
|
10383
10393
|
"&:before": {
|
|
@@ -10389,7 +10399,7 @@ var SHAPES = {
|
|
|
10389
10399
|
transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
|
|
10390
10400
|
}
|
|
10391
10401
|
}),
|
|
10392
|
-
chevron: ({ props:
|
|
10402
|
+
chevron: ({ props: props7 }) => ({
|
|
10393
10403
|
position: "relative",
|
|
10394
10404
|
// overflow: 'hidden',
|
|
10395
10405
|
"&:before, &:after": {
|
|
@@ -10400,14 +10410,14 @@ var SHAPES = {
|
|
|
10400
10410
|
aspectRatio: "1/1",
|
|
10401
10411
|
top: "50%",
|
|
10402
10412
|
transformOrigin: "50% 50%",
|
|
10403
|
-
transition: inheritTransition({ props:
|
|
10413
|
+
transition: inheritTransition({ props: props7 }),
|
|
10404
10414
|
transitionProperty: "background"
|
|
10405
10415
|
},
|
|
10406
10416
|
"&:before": {
|
|
10407
|
-
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props:
|
|
10417
|
+
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props7 })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props7 })} 25%, transparent 25%)`
|
|
10408
10418
|
},
|
|
10409
10419
|
"&:after": {
|
|
10410
|
-
background: getComputedBackgroundColor({ props:
|
|
10420
|
+
background: getComputedBackgroundColor({ props: props7 }),
|
|
10411
10421
|
borderRadius: ".25em"
|
|
10412
10422
|
}
|
|
10413
10423
|
}),
|
|
@@ -10446,153 +10456,153 @@ var getSystemTheme = ({ context, state }) => {
|
|
|
10446
10456
|
};
|
|
10447
10457
|
var Theme = {
|
|
10448
10458
|
class: {
|
|
10449
|
-
depth: ({ props:
|
|
10459
|
+
depth: ({ props: props7 }) => props7.depth && depth[props7.depth],
|
|
10450
10460
|
theme: (element) => {
|
|
10451
|
-
const { props:
|
|
10461
|
+
const { props: props7 } = element;
|
|
10452
10462
|
const globalTheme = getSystemTheme(element);
|
|
10453
|
-
if (!
|
|
10463
|
+
if (!props7.theme)
|
|
10454
10464
|
return;
|
|
10455
|
-
return (0, import_scratch5.getMediaTheme)(
|
|
10465
|
+
return (0, import_scratch5.getMediaTheme)(props7.theme, `@${props7.themeModifier || globalTheme}`);
|
|
10456
10466
|
},
|
|
10457
10467
|
color: (element) => {
|
|
10458
|
-
const { props:
|
|
10468
|
+
const { props: props7 } = element;
|
|
10459
10469
|
const globalTheme = getSystemTheme(element);
|
|
10460
|
-
if (!
|
|
10470
|
+
if (!props7.color)
|
|
10461
10471
|
return;
|
|
10462
10472
|
return {
|
|
10463
|
-
color: (0, import_scratch5.getMediaColor)(
|
|
10473
|
+
color: (0, import_scratch5.getMediaColor)(props7.color, globalTheme)
|
|
10464
10474
|
};
|
|
10465
10475
|
},
|
|
10466
10476
|
background: (element) => {
|
|
10467
|
-
const { props:
|
|
10477
|
+
const { props: props7 } = element;
|
|
10468
10478
|
const globalTheme = getSystemTheme(element);
|
|
10469
|
-
if (!
|
|
10479
|
+
if (!props7.background)
|
|
10470
10480
|
return;
|
|
10471
10481
|
return {
|
|
10472
|
-
background: (0, import_scratch5.getMediaColor)(
|
|
10482
|
+
background: (0, import_scratch5.getMediaColor)(props7.background, globalTheme)
|
|
10473
10483
|
};
|
|
10474
10484
|
},
|
|
10475
10485
|
backgroundColor: (element) => {
|
|
10476
|
-
const { props:
|
|
10486
|
+
const { props: props7 } = element;
|
|
10477
10487
|
const globalTheme = getSystemTheme(element);
|
|
10478
|
-
if (!
|
|
10488
|
+
if (!props7.backgroundColor)
|
|
10479
10489
|
return;
|
|
10480
10490
|
return {
|
|
10481
|
-
backgroundColor: (0, import_scratch5.getMediaColor)(
|
|
10491
|
+
backgroundColor: (0, import_scratch5.getMediaColor)(props7.backgroundColor, globalTheme)
|
|
10482
10492
|
};
|
|
10483
10493
|
},
|
|
10484
10494
|
backgroundImage: (element) => {
|
|
10485
|
-
const { props:
|
|
10495
|
+
const { props: props7 } = element;
|
|
10486
10496
|
const globalTheme = getSystemTheme(element);
|
|
10487
|
-
if (!
|
|
10497
|
+
if (!props7.backgroundImage)
|
|
10488
10498
|
return;
|
|
10489
10499
|
return {
|
|
10490
|
-
backgroundImage: (0, import_scratch5.transformBackgroundImage)(
|
|
10500
|
+
backgroundImage: (0, import_scratch5.transformBackgroundImage)(props7.backgroundImage, globalTheme)
|
|
10491
10501
|
};
|
|
10492
10502
|
},
|
|
10493
|
-
backgroundSize: ({ props:
|
|
10494
|
-
backgroundSize:
|
|
10503
|
+
backgroundSize: ({ props: props7 }) => props7.backgroundSize ? {
|
|
10504
|
+
backgroundSize: props7.backgroundSize
|
|
10495
10505
|
} : null,
|
|
10496
|
-
backgroundPosition: ({ props:
|
|
10497
|
-
backgroundPosition:
|
|
10506
|
+
backgroundPosition: ({ props: props7 }) => props7.backgroundPosition ? {
|
|
10507
|
+
backgroundPosition: props7.backgroundPosition
|
|
10498
10508
|
} : null,
|
|
10499
|
-
textStroke: ({ props:
|
|
10500
|
-
WebkitTextStroke: (0, import_scratch5.transformTextStroke)(
|
|
10509
|
+
textStroke: ({ props: props7 }) => props7.textStroke ? {
|
|
10510
|
+
WebkitTextStroke: (0, import_scratch5.transformTextStroke)(props7.textStroke)
|
|
10501
10511
|
} : null,
|
|
10502
|
-
outline: ({ props:
|
|
10503
|
-
outline: (0, import_scratch5.transformBorder)(
|
|
10512
|
+
outline: ({ props: props7 }) => props7.outline && {
|
|
10513
|
+
outline: (0, import_scratch5.transformBorder)(props7.outline)
|
|
10504
10514
|
},
|
|
10505
|
-
border: ({ props:
|
|
10506
|
-
border: (0, import_scratch5.transformBorder)(
|
|
10515
|
+
border: ({ props: props7 }) => props7.border && {
|
|
10516
|
+
border: (0, import_scratch5.transformBorder)(props7.border)
|
|
10507
10517
|
},
|
|
10508
|
-
borderColor: ({ props:
|
|
10509
|
-
borderColor: (0, import_scratch5.getMediaColor)(
|
|
10518
|
+
borderColor: ({ props: props7 }) => props7.borderColor && {
|
|
10519
|
+
borderColor: (0, import_scratch5.getMediaColor)(props7.borderColor)
|
|
10510
10520
|
},
|
|
10511
|
-
borderStyle: ({ props:
|
|
10512
|
-
borderStyle:
|
|
10521
|
+
borderStyle: ({ props: props7 }) => props7.borderStyle && {
|
|
10522
|
+
borderStyle: props7.borderStyle
|
|
10513
10523
|
},
|
|
10514
|
-
borderLeft: ({ props:
|
|
10515
|
-
borderLeft: (0, import_scratch5.transformBorder)(
|
|
10524
|
+
borderLeft: ({ props: props7 }) => props7.borderLeft && {
|
|
10525
|
+
borderLeft: (0, import_scratch5.transformBorder)(props7.borderLeft)
|
|
10516
10526
|
},
|
|
10517
|
-
borderTop: ({ props:
|
|
10518
|
-
borderTop: (0, import_scratch5.transformBorder)(
|
|
10527
|
+
borderTop: ({ props: props7 }) => props7.borderTop && {
|
|
10528
|
+
borderTop: (0, import_scratch5.transformBorder)(props7.borderTop)
|
|
10519
10529
|
},
|
|
10520
|
-
borderRight: ({ props:
|
|
10521
|
-
borderRight: (0, import_scratch5.transformBorder)(
|
|
10530
|
+
borderRight: ({ props: props7 }) => props7.borderRight && {
|
|
10531
|
+
borderRight: (0, import_scratch5.transformBorder)(props7.borderRight)
|
|
10522
10532
|
},
|
|
10523
|
-
borderBottom: ({ props:
|
|
10524
|
-
borderBottom: (0, import_scratch5.transformBorder)(
|
|
10533
|
+
borderBottom: ({ props: props7 }) => props7.borderBottom && {
|
|
10534
|
+
borderBottom: (0, import_scratch5.transformBorder)(props7.borderBottom)
|
|
10525
10535
|
},
|
|
10526
|
-
boxShadow: ({ props:
|
|
10527
|
-
boxShadow: (0, import_scratch5.transformShadow)(
|
|
10536
|
+
boxShadow: ({ props: props7 }) => props7.boxShadow && {
|
|
10537
|
+
boxShadow: (0, import_scratch5.transformShadow)(props7.boxShadow)
|
|
10528
10538
|
},
|
|
10529
|
-
textShadow: ({ props:
|
|
10530
|
-
textShadow: (0, import_scratch5.transformShadow)(
|
|
10539
|
+
textShadow: ({ props: props7 }) => props7.textShadow && {
|
|
10540
|
+
textShadow: (0, import_scratch5.transformShadow)(props7.textShadow)
|
|
10531
10541
|
},
|
|
10532
|
-
opacity: ({ props:
|
|
10533
|
-
opacity:
|
|
10542
|
+
opacity: ({ props: props7 }) => props7.opacity && {
|
|
10543
|
+
opacity: props7.opacity
|
|
10534
10544
|
},
|
|
10535
|
-
visibility: ({ props:
|
|
10536
|
-
visibility:
|
|
10545
|
+
visibility: ({ props: props7 }) => props7.visibility && {
|
|
10546
|
+
visibility: props7.visibility
|
|
10537
10547
|
},
|
|
10538
|
-
columnRule: ({ props:
|
|
10539
|
-
columnRule: (0, import_scratch5.transformBorder)(
|
|
10548
|
+
columnRule: ({ props: props7 }) => props7.columnRule && {
|
|
10549
|
+
columnRule: (0, import_scratch5.transformBorder)(props7.columnRule)
|
|
10540
10550
|
}
|
|
10541
10551
|
}
|
|
10542
10552
|
};
|
|
10543
10553
|
|
|
10544
10554
|
// Atoms/Media.js
|
|
10545
10555
|
var keySetters = {
|
|
10546
|
-
"@": (key,
|
|
10556
|
+
"@": (key, props7, result, element, isSubtree) => applyMediaProps(
|
|
10547
10557
|
key,
|
|
10548
|
-
|
|
10558
|
+
props7,
|
|
10549
10559
|
isSubtree ? result : result && result.media,
|
|
10550
10560
|
element
|
|
10551
10561
|
),
|
|
10552
|
-
":": (key,
|
|
10562
|
+
":": (key, props7, result, element, isSubtree) => applySelectorProps(
|
|
10553
10563
|
key,
|
|
10554
|
-
|
|
10564
|
+
props7,
|
|
10555
10565
|
isSubtree ? result : result && result.selector,
|
|
10556
10566
|
element
|
|
10557
10567
|
),
|
|
10558
|
-
"[": (key,
|
|
10568
|
+
"[": (key, props7, result, element, isSubtree) => applySelectorProps(
|
|
10559
10569
|
key,
|
|
10560
|
-
|
|
10570
|
+
props7,
|
|
10561
10571
|
isSubtree ? result : result && result.selector,
|
|
10562
10572
|
element
|
|
10563
10573
|
),
|
|
10564
|
-
"&": (key,
|
|
10574
|
+
"&": (key, props7, result, element, isSubtree) => applySelectorProps(
|
|
10565
10575
|
key,
|
|
10566
|
-
|
|
10576
|
+
props7,
|
|
10567
10577
|
isSubtree ? result : result && result.selector,
|
|
10568
10578
|
element
|
|
10569
10579
|
),
|
|
10570
|
-
$: (key,
|
|
10580
|
+
$: (key, props7, result, element, isSubtree) => applyCaseProps(
|
|
10571
10581
|
key,
|
|
10572
|
-
|
|
10582
|
+
props7,
|
|
10573
10583
|
isSubtree ? result : result && result.case,
|
|
10574
10584
|
element
|
|
10575
10585
|
),
|
|
10576
|
-
".": (key,
|
|
10586
|
+
".": (key, props7, result, element, isSubtree) => applyConditionalCaseProps(
|
|
10577
10587
|
key,
|
|
10578
|
-
|
|
10588
|
+
props7,
|
|
10579
10589
|
isSubtree ? result : result && result.case,
|
|
10580
10590
|
element
|
|
10581
10591
|
),
|
|
10582
|
-
"!": (key,
|
|
10592
|
+
"!": (key, props7, result, element, isSubtree) => applyConditionalFalsyProps(
|
|
10583
10593
|
key,
|
|
10584
|
-
|
|
10594
|
+
props7,
|
|
10585
10595
|
isSubtree ? result : result && result.case,
|
|
10586
10596
|
element
|
|
10587
10597
|
)
|
|
10588
10598
|
};
|
|
10589
|
-
var execClass = (key,
|
|
10599
|
+
var execClass = (key, props7, result, element) => {
|
|
10590
10600
|
const { class: className } = element;
|
|
10591
10601
|
const classnameExec = className[key];
|
|
10592
10602
|
if (typeof classnameExec !== "function")
|
|
10593
10603
|
return;
|
|
10594
10604
|
let classExec = classnameExec({
|
|
10595
|
-
props:
|
|
10605
|
+
props: props7,
|
|
10596
10606
|
context: element.context,
|
|
10597
10607
|
state: element.state
|
|
10598
10608
|
});
|
|
@@ -10604,27 +10614,27 @@ var execClass = (key, props4, result, element) => {
|
|
|
10604
10614
|
}
|
|
10605
10615
|
return classExec;
|
|
10606
10616
|
};
|
|
10607
|
-
var convertPropsToClass = (
|
|
10617
|
+
var convertPropsToClass = (props7, result, element) => {
|
|
10608
10618
|
const propsClassObj = {};
|
|
10609
|
-
for (const key in
|
|
10619
|
+
for (const key in props7) {
|
|
10610
10620
|
const setter = keySetters[key.slice(0, 1)];
|
|
10611
10621
|
if (setter) {
|
|
10612
|
-
setter(key,
|
|
10622
|
+
setter(key, props7[key], propsClassObj, element, true);
|
|
10613
10623
|
continue;
|
|
10614
10624
|
} else {
|
|
10615
|
-
execClass(key,
|
|
10625
|
+
execClass(key, props7, propsClassObj, element);
|
|
10616
10626
|
}
|
|
10617
10627
|
}
|
|
10618
10628
|
return propsClassObj;
|
|
10619
10629
|
};
|
|
10620
|
-
var applyMediaProps = (key,
|
|
10630
|
+
var applyMediaProps = (key, props7, result, element) => {
|
|
10621
10631
|
const { context } = element;
|
|
10622
10632
|
if (!context.designSystem || !context.designSystem.MEDIA)
|
|
10623
10633
|
return;
|
|
10624
10634
|
const globalTheme = getSystemTheme(element);
|
|
10625
10635
|
const { MEDIA } = context.designSystem;
|
|
10626
10636
|
const mediaName = MEDIA[key.slice(1)];
|
|
10627
|
-
const generatedClass = convertPropsToClass(
|
|
10637
|
+
const generatedClass = convertPropsToClass(props7, result, element);
|
|
10628
10638
|
const name = key.slice(1);
|
|
10629
10639
|
const isTheme = ["dark", "light"].includes(name);
|
|
10630
10640
|
const matchesGlobal = name === globalTheme;
|
|
@@ -10637,49 +10647,49 @@ var applyMediaProps = (key, props4, result, element) => {
|
|
|
10637
10647
|
result[mediaKey] = generatedClass;
|
|
10638
10648
|
return result[mediaKey];
|
|
10639
10649
|
};
|
|
10640
|
-
var applySelectorProps = (key,
|
|
10650
|
+
var applySelectorProps = (key, props7, result, element) => {
|
|
10641
10651
|
const selectorKey = `&${key}`;
|
|
10642
|
-
result[selectorKey] = convertPropsToClass(
|
|
10652
|
+
result[selectorKey] = convertPropsToClass(props7, result, element);
|
|
10643
10653
|
return result[selectorKey];
|
|
10644
10654
|
};
|
|
10645
|
-
var applyCaseProps = (key,
|
|
10655
|
+
var applyCaseProps = (key, props7, result, element) => {
|
|
10646
10656
|
const { CASES } = element.context && element.context.designSystem;
|
|
10647
10657
|
const caseKey = key.slice(1);
|
|
10648
10658
|
const isPropTrue = element.props[caseKey];
|
|
10649
10659
|
if (!CASES[caseKey] && !isPropTrue)
|
|
10650
10660
|
return;
|
|
10651
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10661
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10652
10662
|
};
|
|
10653
|
-
var applyConditionalCaseProps = (key,
|
|
10663
|
+
var applyConditionalCaseProps = (key, props7, result, element) => {
|
|
10654
10664
|
const caseKey = key.slice(1);
|
|
10655
10665
|
const isPropTrue = element.props[caseKey] || element.state[caseKey];
|
|
10656
10666
|
if (!isPropTrue)
|
|
10657
10667
|
return;
|
|
10658
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10668
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10659
10669
|
};
|
|
10660
|
-
var applyConditionalFalsyProps = (key,
|
|
10670
|
+
var applyConditionalFalsyProps = (key, props7, result, element) => {
|
|
10661
10671
|
const caseKey = key.slice(1);
|
|
10662
10672
|
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
|
|
10663
10673
|
if (!isPropTrue)
|
|
10664
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10674
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10665
10675
|
};
|
|
10666
|
-
var applyTrueProps = (
|
|
10676
|
+
var applyTrueProps = (props7, result, element) => (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10667
10677
|
var beforeClassAssign = (element, s) => {
|
|
10668
|
-
const { props:
|
|
10678
|
+
const { props: props7, class: className } = element;
|
|
10669
10679
|
const CLASS_NAMES = {
|
|
10670
10680
|
media: {},
|
|
10671
10681
|
selector: {},
|
|
10672
10682
|
case: {}
|
|
10673
10683
|
};
|
|
10674
|
-
for (const key in
|
|
10684
|
+
for (const key in props7) {
|
|
10675
10685
|
const setter = keySetters[key.slice(0, 1)];
|
|
10676
10686
|
if (setter)
|
|
10677
|
-
setter(key,
|
|
10687
|
+
setter(key, props7[key], CLASS_NAMES, element);
|
|
10678
10688
|
}
|
|
10679
10689
|
(0, import_utils.overwriteShallow)(className, CLASS_NAMES);
|
|
10680
10690
|
};
|
|
10681
10691
|
var initUpdate = (changes, element) => {
|
|
10682
|
-
const { props:
|
|
10692
|
+
const { props: props7, context, class: className } = element;
|
|
10683
10693
|
if (!context)
|
|
10684
10694
|
return;
|
|
10685
10695
|
const globalTheme = context.designSystem.globalTheme;
|
|
@@ -10699,10 +10709,10 @@ var initUpdate = (changes, element) => {
|
|
|
10699
10709
|
selector: {},
|
|
10700
10710
|
case: {}
|
|
10701
10711
|
};
|
|
10702
|
-
for (const key in
|
|
10712
|
+
for (const key in props7) {
|
|
10703
10713
|
const setter = keySetters[key.slice(0, 1)];
|
|
10704
10714
|
if (key === "theme") {
|
|
10705
|
-
|
|
10715
|
+
props7.update({
|
|
10706
10716
|
themeModifier: globalTheme
|
|
10707
10717
|
}, {
|
|
10708
10718
|
preventRecursive: true,
|
|
@@ -10710,9 +10720,9 @@ var initUpdate = (changes, element) => {
|
|
|
10710
10720
|
preventDefineUpdate: true
|
|
10711
10721
|
});
|
|
10712
10722
|
} else if (key === "true")
|
|
10713
|
-
applyTrueProps(
|
|
10723
|
+
applyTrueProps(props7[key], CLASS_NAMES, element);
|
|
10714
10724
|
if (setter)
|
|
10715
|
-
setter(key,
|
|
10725
|
+
setter(key, props7[key], CLASS_NAMES, element);
|
|
10716
10726
|
}
|
|
10717
10727
|
if (Object.keys(CLASS_NAMES.media).length) {
|
|
10718
10728
|
className.media = CLASS_NAMES.media;
|
|
@@ -10741,19 +10751,19 @@ var Iframe = {
|
|
|
10741
10751
|
minHeight: "H"
|
|
10742
10752
|
},
|
|
10743
10753
|
attr: {
|
|
10744
|
-
src: ({ props:
|
|
10745
|
-
loading: ({ props:
|
|
10746
|
-
allowfullscreen: ({ props:
|
|
10747
|
-
referrerpolicy: ({ props:
|
|
10754
|
+
src: ({ props: props7 }) => props7.src,
|
|
10755
|
+
loading: ({ props: props7 }) => props7.loading,
|
|
10756
|
+
allowfullscreen: ({ props: props7 }) => props7.allowfullscreen,
|
|
10757
|
+
referrerpolicy: ({ props: props7 }) => props7.referrerpolicy
|
|
10748
10758
|
}
|
|
10749
10759
|
};
|
|
10750
10760
|
|
|
10751
10761
|
// Atoms/Interaction.js
|
|
10752
10762
|
var Interaction = {
|
|
10753
10763
|
class: {
|
|
10754
|
-
userSelect: ({ props:
|
|
10755
|
-
pointerEvents: ({ props:
|
|
10756
|
-
cursor: ({ props:
|
|
10764
|
+
userSelect: ({ props: props7 }) => props7.userSelect && { userSelect: props7.userSelect },
|
|
10765
|
+
pointerEvents: ({ props: props7 }) => props7.pointerEvents && { pointerEvents: props7.pointerEvents },
|
|
10766
|
+
cursor: ({ props: props7 }) => props7.cursor && { cursor: props7.cursor }
|
|
10757
10767
|
}
|
|
10758
10768
|
};
|
|
10759
10769
|
|
|
@@ -10806,8 +10816,8 @@ var Focusable = {
|
|
|
10806
10816
|
}
|
|
10807
10817
|
},
|
|
10808
10818
|
attr: {
|
|
10809
|
-
placeholder: ({ props:
|
|
10810
|
-
tabIndex: ({ props:
|
|
10819
|
+
placeholder: ({ props: props7 }) => props7.placeholder,
|
|
10820
|
+
tabIndex: ({ props: props7 }) => props7.tabIndex
|
|
10811
10821
|
}
|
|
10812
10822
|
};
|
|
10813
10823
|
var FocusableComponent = {
|
|
@@ -10824,14 +10834,14 @@ var FocusableComponent = {
|
|
|
10824
10834
|
style
|
|
10825
10835
|
},
|
|
10826
10836
|
attr: {
|
|
10827
|
-
type: ({ props:
|
|
10837
|
+
type: ({ props: props7 }) => props7.type
|
|
10828
10838
|
}
|
|
10829
10839
|
};
|
|
10830
10840
|
|
|
10831
10841
|
// Atoms/Overflow.js
|
|
10832
10842
|
var Overflow = {
|
|
10833
10843
|
class: {
|
|
10834
|
-
overflow: ({ props:
|
|
10844
|
+
overflow: ({ props: props7 }) => props7.overflow && { overflow: props7.overflow }
|
|
10835
10845
|
}
|
|
10836
10846
|
};
|
|
10837
10847
|
|
|
@@ -10907,17 +10917,17 @@ var import_scratch6 = __toESM(require_cjs());
|
|
|
10907
10917
|
var Position = {
|
|
10908
10918
|
props: {},
|
|
10909
10919
|
class: {
|
|
10910
|
-
position: ({ props:
|
|
10911
|
-
inset: ({ props:
|
|
10912
|
-
const { inset } =
|
|
10920
|
+
position: ({ props: props7 }) => props7.position && { position: props7.position },
|
|
10921
|
+
inset: ({ props: props7 }) => {
|
|
10922
|
+
const { inset } = props7;
|
|
10913
10923
|
if (typeof inset !== "string")
|
|
10914
10924
|
return;
|
|
10915
10925
|
return { inset: inset.split(" ").map((v) => (0, import_scratch6.getSpacingByKey)(v, "k").k).join(" ") };
|
|
10916
10926
|
},
|
|
10917
|
-
left: ({ props:
|
|
10918
|
-
top: ({ props:
|
|
10919
|
-
right: ({ props:
|
|
10920
|
-
bottom: ({ props:
|
|
10927
|
+
left: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.left, "left"),
|
|
10928
|
+
top: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.top, "top"),
|
|
10929
|
+
right: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.right, "right"),
|
|
10930
|
+
bottom: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.bottom, "bottom")
|
|
10921
10931
|
}
|
|
10922
10932
|
};
|
|
10923
10933
|
|
|
@@ -10928,30 +10938,30 @@ var Picture = {
|
|
|
10928
10938
|
tag: "source",
|
|
10929
10939
|
attr: {
|
|
10930
10940
|
media: (element) => {
|
|
10931
|
-
const { props:
|
|
10941
|
+
const { props: props7, key, context } = element;
|
|
10932
10942
|
const { MEDIA } = context.designSystem;
|
|
10933
10943
|
const globalTheme = getSystemTheme(element);
|
|
10934
|
-
const mediaName = (
|
|
10944
|
+
const mediaName = (props7.media || key).slice(1);
|
|
10935
10945
|
if (mediaName === globalTheme)
|
|
10936
10946
|
return "(min-width: 0px)";
|
|
10937
10947
|
else if (mediaName === "dark" || mediaName === "light")
|
|
10938
10948
|
return "(max-width: 0px)";
|
|
10939
10949
|
return MEDIA[mediaName];
|
|
10940
10950
|
},
|
|
10941
|
-
srcset: ({ props:
|
|
10951
|
+
srcset: ({ props: props7 }) => props7.srcset
|
|
10942
10952
|
}
|
|
10943
10953
|
},
|
|
10944
|
-
Img: ({ props:
|
|
10954
|
+
Img: ({ props: props7 }) => ({
|
|
10945
10955
|
width: "inherit",
|
|
10946
10956
|
height: "inherit",
|
|
10947
|
-
src:
|
|
10957
|
+
src: props7.src
|
|
10948
10958
|
})
|
|
10949
10959
|
};
|
|
10950
10960
|
|
|
10951
10961
|
// Atoms/Pseudo.js
|
|
10952
10962
|
var Pseudo = {
|
|
10953
10963
|
class: {
|
|
10954
|
-
content: ({ props:
|
|
10964
|
+
content: ({ props: props7 }) => props7.content && { content: props7.content }
|
|
10955
10965
|
}
|
|
10956
10966
|
};
|
|
10957
10967
|
|
|
@@ -10965,25 +10975,25 @@ var Svg = {
|
|
|
10965
10975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10966
10976
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
10967
10977
|
},
|
|
10968
|
-
html: ({ key, props:
|
|
10978
|
+
html: ({ key, props: props7, context, ...el }) => {
|
|
10969
10979
|
const { designSystem, utils } = context;
|
|
10970
10980
|
const SVG = designSystem && designSystem.SVG;
|
|
10971
|
-
const useSvgSprite =
|
|
10981
|
+
const useSvgSprite = props7.spriteId || context.designSystem && context.designSystem.useSvgSprite;
|
|
10972
10982
|
const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
|
|
10973
10983
|
const init = utils && utils.init;
|
|
10974
|
-
if (!useSvgSprite &&
|
|
10975
|
-
return
|
|
10976
|
-
const spriteId =
|
|
10984
|
+
if (!useSvgSprite && props7.src)
|
|
10985
|
+
return props7.src;
|
|
10986
|
+
const spriteId = props7.spriteId;
|
|
10977
10987
|
if (spriteId)
|
|
10978
10988
|
return useSVGSymbol(spriteId);
|
|
10979
|
-
const symbolId = Symbol.for(
|
|
10989
|
+
const symbolId = Symbol.for(props7.src);
|
|
10980
10990
|
let SVGKey = SVG[symbolId];
|
|
10981
10991
|
if (SVGKey && SVG[SVGKey])
|
|
10982
10992
|
return useSVGSymbol(SVGKey);
|
|
10983
10993
|
SVGKey = SVG[symbolId] = Math.random();
|
|
10984
|
-
if (
|
|
10994
|
+
if (props7.src) {
|
|
10985
10995
|
init({
|
|
10986
|
-
svg: { [SVGKey]:
|
|
10996
|
+
svg: { [SVGKey]: props7.src }
|
|
10987
10997
|
}, {
|
|
10988
10998
|
document: context.document,
|
|
10989
10999
|
emotion: context.emotion
|
|
@@ -10996,60 +11006,60 @@ var Svg = {
|
|
|
10996
11006
|
// Atoms/Shape/index.js
|
|
10997
11007
|
var import_utils3 = __toESM(require_cjs5());
|
|
10998
11008
|
var import_scratch7 = __toESM(require_cjs());
|
|
10999
|
-
var transformBorderRadius = (radius,
|
|
11009
|
+
var transformBorderRadius = (radius, props7, propertyName) => {
|
|
11000
11010
|
if (!(0, import_utils3.isString)(radius))
|
|
11001
11011
|
return;
|
|
11002
11012
|
return {
|
|
11003
|
-
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(
|
|
11013
|
+
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(props7, propertyName, v)[propertyName]).join(" ")
|
|
11004
11014
|
};
|
|
11005
11015
|
};
|
|
11006
11016
|
var Shape = {
|
|
11007
11017
|
extend: Pseudo,
|
|
11008
11018
|
class: {
|
|
11009
|
-
shape: ({ props:
|
|
11010
|
-
const { shape } =
|
|
11011
|
-
return (0, import_utils3.exec)(SHAPES[shape], { props:
|
|
11019
|
+
shape: ({ props: props7 }) => {
|
|
11020
|
+
const { shape } = props7;
|
|
11021
|
+
return (0, import_utils3.exec)(SHAPES[shape], { props: props7 });
|
|
11012
11022
|
},
|
|
11013
|
-
shapeDirection: ({ props:
|
|
11014
|
-
const { shape, shapeDirection } =
|
|
11023
|
+
shapeDirection: ({ props: props7 }) => {
|
|
11024
|
+
const { shape, shapeDirection } = props7;
|
|
11015
11025
|
if (!shape || !shapeDirection)
|
|
11016
11026
|
return;
|
|
11017
11027
|
const shapeDir = SHAPES[shape + "Direction"];
|
|
11018
11028
|
return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
|
|
11019
11029
|
},
|
|
11020
|
-
shapeDirectionColor: ({ props:
|
|
11021
|
-
const { background, backgroundColor } =
|
|
11030
|
+
shapeDirectionColor: ({ props: props7 }) => {
|
|
11031
|
+
const { background, backgroundColor } = props7;
|
|
11022
11032
|
const borderColor = {
|
|
11023
11033
|
borderColor: (0, import_scratch7.getMediaColor)(background || backgroundColor)
|
|
11024
11034
|
};
|
|
11025
|
-
return
|
|
11035
|
+
return props7.shapeDirection ? borderColor : null;
|
|
11026
11036
|
},
|
|
11027
|
-
round: ({ props:
|
|
11028
|
-
borderRadius: ({ props:
|
|
11037
|
+
round: ({ props: props7, key, ...el }) => transformBorderRadius(props7.round || props7.borderRadius, props7, "round"),
|
|
11038
|
+
borderRadius: ({ props: props7, key, ...el }) => transformBorderRadius(props7.borderRadius || props7.round, props7, "borderRadius")
|
|
11029
11039
|
}
|
|
11030
11040
|
};
|
|
11031
11041
|
|
|
11032
11042
|
// Atoms/Text.js
|
|
11033
11043
|
var import_scratch8 = __toESM(require_cjs());
|
|
11034
11044
|
var Text = {
|
|
11035
|
-
text: ({ key, props:
|
|
11036
|
-
if (
|
|
11037
|
-
return state && state[key] ||
|
|
11038
|
-
return
|
|
11045
|
+
text: ({ key, props: props7, state }) => {
|
|
11046
|
+
if (props7.text === true)
|
|
11047
|
+
return state && state[key] || props7 && props7[key];
|
|
11048
|
+
return props7.text;
|
|
11039
11049
|
},
|
|
11040
11050
|
class: {
|
|
11041
|
-
fontSize: ({ props:
|
|
11042
|
-
fontFamily: ({ props:
|
|
11043
|
-
lineHeight: ({ props:
|
|
11051
|
+
fontSize: ({ props: props7 }) => props7.fontSize ? (0, import_scratch8.getFontSizeByKey)(props7.fontSize) : null,
|
|
11052
|
+
fontFamily: ({ props: props7 }) => props7.fontFamily && { fontFamily: (0, import_scratch8.getFontFamily)(props7.fontFamily) || props7.fontFamily },
|
|
11053
|
+
lineHeight: ({ props: props7 }) => props7.lineHeight && { lineHeight: props7.lineHeight },
|
|
11044
11054
|
// lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
11045
|
-
textDecoration: ({ props:
|
|
11046
|
-
textTransform: ({ props:
|
|
11047
|
-
whiteSpace: ({ props:
|
|
11048
|
-
letterSpacing: ({ props:
|
|
11049
|
-
textAlign: ({ props:
|
|
11050
|
-
fontWeight: ({ props:
|
|
11051
|
-
fontWeight:
|
|
11052
|
-
fontVariationSettings: '"wght" ' +
|
|
11055
|
+
textDecoration: ({ props: props7 }) => props7.textDecoration && { textDecoration: props7.textDecoration },
|
|
11056
|
+
textTransform: ({ props: props7 }) => props7.textTransform && { textTransform: props7.textTransform },
|
|
11057
|
+
whiteSpace: ({ props: props7 }) => props7.whiteSpace && { whiteSpace: props7.whiteSpace },
|
|
11058
|
+
letterSpacing: ({ props: props7 }) => props7.letterSpacing && { letterSpacing: props7.letterSpacing },
|
|
11059
|
+
textAlign: ({ props: props7 }) => props7.textAlign && { textAlign: props7.textAlign },
|
|
11060
|
+
fontWeight: ({ props: props7 }) => props7.fontWeight && {
|
|
11061
|
+
fontWeight: props7.fontWeight,
|
|
11062
|
+
fontVariationSettings: '"wght" ' + props7.fontWeight
|
|
11053
11063
|
}
|
|
11054
11064
|
}
|
|
11055
11065
|
};
|
|
@@ -11083,15 +11093,15 @@ var Footnote = {
|
|
|
11083
11093
|
// Atoms/Transform.js
|
|
11084
11094
|
var Transform = {
|
|
11085
11095
|
class: {
|
|
11086
|
-
transform: ({ props:
|
|
11087
|
-
transformOrigin: ({ props:
|
|
11096
|
+
transform: ({ props: props7 }) => props7.transform && { transform: props7.transform },
|
|
11097
|
+
transformOrigin: ({ props: props7 }) => props7.transformOrigin && { transformOrigin: props7.transformOrigin }
|
|
11088
11098
|
}
|
|
11089
11099
|
};
|
|
11090
11100
|
|
|
11091
11101
|
// Atoms/XYZ.js
|
|
11092
11102
|
var XYZ = {
|
|
11093
11103
|
class: {
|
|
11094
|
-
zIndex: ({ props:
|
|
11104
|
+
zIndex: ({ props: props7 }) => props7.zIndex && { zIndex: props7.zIndex }
|
|
11095
11105
|
}
|
|
11096
11106
|
};
|
|
11097
11107
|
|
|
@@ -11169,9 +11179,9 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
11169
11179
|
var sheet = sheetForTag(tag);
|
|
11170
11180
|
try {
|
|
11171
11181
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
11172
|
-
} catch (
|
|
11182
|
+
} catch (e) {
|
|
11173
11183
|
if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
11174
|
-
console.error('There was a problem inserting the following rule: "' + rule + '"',
|
|
11184
|
+
console.error('There was a problem inserting the following rule: "' + rule + '"', e);
|
|
11175
11185
|
}
|
|
11176
11186
|
}
|
|
11177
11187
|
} else {
|
|
@@ -11248,11 +11258,11 @@ var length = 0;
|
|
|
11248
11258
|
var position = 0;
|
|
11249
11259
|
var character = 0;
|
|
11250
11260
|
var characters = "";
|
|
11251
|
-
function node(value, root, parent, type,
|
|
11252
|
-
return { value, root, parent, type, props:
|
|
11261
|
+
function node(value, root, parent, type, props7, children, length2) {
|
|
11262
|
+
return { value, root, parent, type, props: props7, children, line, column, length: length2, return: "" };
|
|
11253
11263
|
}
|
|
11254
|
-
function copy(root,
|
|
11255
|
-
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length },
|
|
11264
|
+
function copy(root, props7) {
|
|
11265
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props7);
|
|
11256
11266
|
}
|
|
11257
11267
|
function char() {
|
|
11258
11268
|
return character;
|
|
@@ -11383,7 +11393,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11383
11393
|
var ampersand = 1;
|
|
11384
11394
|
var character2 = 0;
|
|
11385
11395
|
var type = "";
|
|
11386
|
-
var
|
|
11396
|
+
var props7 = rules;
|
|
11387
11397
|
var children = rulesets;
|
|
11388
11398
|
var reference = rule;
|
|
11389
11399
|
var characters2 = type;
|
|
@@ -11437,17 +11447,17 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11437
11447
|
case 59:
|
|
11438
11448
|
characters2 += ";";
|
|
11439
11449
|
default:
|
|
11440
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type,
|
|
11450
|
+
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props7 = [], children = [], length2), rulesets);
|
|
11441
11451
|
if (character2 === 123)
|
|
11442
11452
|
if (offset === 0)
|
|
11443
|
-
parse(characters2, root, reference, reference,
|
|
11453
|
+
parse(characters2, root, reference, reference, props7, rulesets, length2, points, children);
|
|
11444
11454
|
else
|
|
11445
11455
|
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
11446
11456
|
case 100:
|
|
11447
11457
|
case 108:
|
|
11448
11458
|
case 109:
|
|
11449
11459
|
case 115:
|
|
11450
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules,
|
|
11460
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props7 = [], length2), children), rules, children, length2, points, rule ? props7 : children);
|
|
11451
11461
|
break;
|
|
11452
11462
|
default:
|
|
11453
11463
|
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -11483,15 +11493,15 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11483
11493
|
}
|
|
11484
11494
|
return rulesets;
|
|
11485
11495
|
}
|
|
11486
|
-
function ruleset(value, root, parent, index, offset, rules, points, type,
|
|
11496
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props7, children, length2) {
|
|
11487
11497
|
var post = offset - 1;
|
|
11488
11498
|
var rule = offset === 0 ? rules : [""];
|
|
11489
11499
|
var size = sizeof(rule);
|
|
11490
11500
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
11491
11501
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
11492
11502
|
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
11493
|
-
|
|
11494
|
-
return node(value, root, parent, offset === 0 ? RULESET : type,
|
|
11503
|
+
props7[k++] = z;
|
|
11504
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props7, children, length2);
|
|
11495
11505
|
}
|
|
11496
11506
|
function comment(value, root, parent) {
|
|
11497
11507
|
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
@@ -12468,26 +12478,26 @@ var Animation = {
|
|
|
12468
12478
|
animationName: (el) => el.props.animationName && {
|
|
12469
12479
|
animationName: applyAnimationProps(el.props.animationName, el)
|
|
12470
12480
|
},
|
|
12471
|
-
animationDuration: ({ props:
|
|
12472
|
-
animationDuration: (0, import_scratch9.getTimingByKey)(
|
|
12481
|
+
animationDuration: ({ props: props7 }) => props7.animationDuration && {
|
|
12482
|
+
animationDuration: (0, import_scratch9.getTimingByKey)(props7.animationDuration).timing
|
|
12473
12483
|
},
|
|
12474
|
-
animationDelay: ({ props:
|
|
12475
|
-
animationDelay: (0, import_scratch9.getTimingByKey)(
|
|
12484
|
+
animationDelay: ({ props: props7 }) => props7.animationDelay && {
|
|
12485
|
+
animationDelay: (0, import_scratch9.getTimingByKey)(props7.animationDelay).timing
|
|
12476
12486
|
},
|
|
12477
|
-
animationTimingFunction: ({ props:
|
|
12478
|
-
animationTimingFunction: (0, import_scratch9.getTimingFunction)(
|
|
12487
|
+
animationTimingFunction: ({ props: props7 }) => props7.animationTimingFunction && {
|
|
12488
|
+
animationTimingFunction: (0, import_scratch9.getTimingFunction)(props7.animationTimingFunction)
|
|
12479
12489
|
},
|
|
12480
|
-
animationFillMode: ({ props:
|
|
12481
|
-
animationFillMode:
|
|
12490
|
+
animationFillMode: ({ props: props7 }) => props7.animationFillMode && {
|
|
12491
|
+
animationFillMode: props7.animationFillMode
|
|
12482
12492
|
},
|
|
12483
|
-
animationPlayState: ({ props:
|
|
12484
|
-
animationPlayState:
|
|
12493
|
+
animationPlayState: ({ props: props7 }) => props7.animationPlayState && {
|
|
12494
|
+
animationPlayState: props7.animationPlayState
|
|
12485
12495
|
},
|
|
12486
|
-
animationIterationCount: ({ props:
|
|
12487
|
-
animationIterationCount:
|
|
12496
|
+
animationIterationCount: ({ props: props7 }) => props7.animationIterationCount && {
|
|
12497
|
+
animationIterationCount: props7.animationIterationCount || 1
|
|
12488
12498
|
},
|
|
12489
|
-
animationDirection: ({ props:
|
|
12490
|
-
animationDirection:
|
|
12499
|
+
animationDirection: ({ props: props7 }) => props7.animationDirection && {
|
|
12500
|
+
animationDirection: props7.animationDirection
|
|
12491
12501
|
}
|
|
12492
12502
|
}
|
|
12493
12503
|
};
|
|
@@ -12495,7 +12505,7 @@ var Animation = {
|
|
|
12495
12505
|
// Box/index.js
|
|
12496
12506
|
var PropsCSS = {
|
|
12497
12507
|
class: {
|
|
12498
|
-
style: ({ props:
|
|
12508
|
+
style: ({ props: props7 }) => props7 && props7.style
|
|
12499
12509
|
}
|
|
12500
12510
|
};
|
|
12501
12511
|
var Box = {
|
|
@@ -12515,7 +12525,7 @@ var Box = {
|
|
|
12515
12525
|
Animation
|
|
12516
12526
|
],
|
|
12517
12527
|
attr: {
|
|
12518
|
-
id: ({ props:
|
|
12528
|
+
id: ({ props: props7 }) => props7.id
|
|
12519
12529
|
}
|
|
12520
12530
|
};
|
|
12521
12531
|
|
|
@@ -12530,7 +12540,7 @@ var Avatar = {
|
|
|
12530
12540
|
cursor: "pointer"
|
|
12531
12541
|
},
|
|
12532
12542
|
attr: {
|
|
12533
|
-
src: ({ key, props:
|
|
12543
|
+
src: ({ key, props: props7 }) => props7.src || `https://avatars.dicebear.com/api/${props7.avatarType || "adventurer-neutral"}/${props7.key || key}.svg`
|
|
12534
12544
|
}
|
|
12535
12545
|
};
|
|
12536
12546
|
var AvatarBundle = {
|
|
@@ -12550,15 +12560,15 @@ var AvatarBundle = {
|
|
|
12550
12560
|
// Icon/index.js
|
|
12551
12561
|
var Icon = {
|
|
12552
12562
|
extend: Svg,
|
|
12553
|
-
props: ({ key, props:
|
|
12563
|
+
props: ({ key, props: props7, parent, context }) => {
|
|
12554
12564
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
12555
12565
|
const { toCamelCase } = context && context.utils;
|
|
12556
|
-
const iconName =
|
|
12566
|
+
const iconName = props7.inheritedString || props7.name || props7.icon || key;
|
|
12557
12567
|
const camelCase = toCamelCase(iconName);
|
|
12558
12568
|
const isArray9 = camelCase.split(/([a-z])([A-Z])/g);
|
|
12559
12569
|
let activeIconName;
|
|
12560
|
-
if (
|
|
12561
|
-
activeIconName =
|
|
12570
|
+
if (props7.active) {
|
|
12571
|
+
activeIconName = props7[".active"].name || props7[".active"].icon;
|
|
12562
12572
|
}
|
|
12563
12573
|
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
12564
12574
|
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
@@ -12577,7 +12587,7 @@ var Icon = {
|
|
|
12577
12587
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
12578
12588
|
}
|
|
12579
12589
|
const iconFromLibrary = ICONS[validIconName];
|
|
12580
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
12590
|
+
const directSrc = parent && parent.props && parent.props.src || props7.src;
|
|
12581
12591
|
return {
|
|
12582
12592
|
width: "A",
|
|
12583
12593
|
height: "A",
|
|
@@ -12602,9 +12612,9 @@ var IconText = {
|
|
|
12602
12612
|
},
|
|
12603
12613
|
Icon: {
|
|
12604
12614
|
props: {},
|
|
12605
|
-
if: ({ props:
|
|
12615
|
+
if: ({ props: props7 }) => props7.name || props7.icon
|
|
12606
12616
|
},
|
|
12607
|
-
text: ({ props:
|
|
12617
|
+
text: ({ props: props7 }) => props7.text
|
|
12608
12618
|
};
|
|
12609
12619
|
|
|
12610
12620
|
// Button/index.js
|
|
@@ -12625,7 +12635,7 @@ var Button = {
|
|
|
12625
12635
|
round: "C2"
|
|
12626
12636
|
},
|
|
12627
12637
|
attr: {
|
|
12628
|
-
type: ({ props:
|
|
12638
|
+
type: ({ props: props7 }) => props7.type
|
|
12629
12639
|
}
|
|
12630
12640
|
};
|
|
12631
12641
|
var SquareButton = {
|
|
@@ -12656,21 +12666,38 @@ var ButtonSet = {
|
|
|
12656
12666
|
childExtend: SquareButton
|
|
12657
12667
|
};
|
|
12658
12668
|
|
|
12659
|
-
//
|
|
12660
|
-
var
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
"
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12669
|
+
// Dialog/index.js
|
|
12670
|
+
var DialogFooter = {
|
|
12671
|
+
extend: Flex,
|
|
12672
|
+
props: {
|
|
12673
|
+
align: "center flex-end",
|
|
12674
|
+
gap: "X2",
|
|
12675
|
+
margin: "auto - -",
|
|
12676
|
+
padding: "Y2 X2"
|
|
12677
|
+
},
|
|
12678
|
+
childExtend: {
|
|
12679
|
+
extend: Button,
|
|
12680
|
+
props: {
|
|
12681
|
+
theme: "primary @dark .color-only",
|
|
12682
|
+
fontSize: "Z1",
|
|
12683
|
+
textTransform: "uppercase",
|
|
12684
|
+
background: "transparent",
|
|
12685
|
+
"&": {
|
|
12686
|
+
padding: "Z A"
|
|
12687
|
+
},
|
|
12688
|
+
":hover": {
|
|
12689
|
+
background: "white .065"
|
|
12690
|
+
},
|
|
12691
|
+
":active": {
|
|
12692
|
+
background: "white .1"
|
|
12693
|
+
}
|
|
12673
12694
|
}
|
|
12695
|
+
},
|
|
12696
|
+
cancel: {
|
|
12697
|
+
text: "cancel"
|
|
12698
|
+
},
|
|
12699
|
+
ok: {
|
|
12700
|
+
text: "ok"
|
|
12674
12701
|
}
|
|
12675
12702
|
};
|
|
12676
12703
|
|
|
@@ -12683,12 +12710,12 @@ var Flex2 = {
|
|
|
12683
12710
|
display: "flex"
|
|
12684
12711
|
},
|
|
12685
12712
|
class: {
|
|
12686
|
-
flow: ({ props:
|
|
12687
|
-
wrap: ({ props:
|
|
12688
|
-
align: ({ props:
|
|
12689
|
-
if (typeof
|
|
12713
|
+
flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
|
|
12714
|
+
wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
|
|
12715
|
+
align: ({ props: props7 }) => {
|
|
12716
|
+
if (typeof props7.align !== "string")
|
|
12690
12717
|
return;
|
|
12691
|
-
const [alignItems, justifyContent] =
|
|
12718
|
+
const [alignItems, justifyContent] = props7.align.split(" ");
|
|
12692
12719
|
return { alignItems, justifyContent };
|
|
12693
12720
|
}
|
|
12694
12721
|
}
|
|
@@ -12699,22 +12726,22 @@ var import_scratch11 = __toESM(require_cjs9());
|
|
|
12699
12726
|
var Grid2 = {
|
|
12700
12727
|
props: { display: "grid" },
|
|
12701
12728
|
class: {
|
|
12702
|
-
area: ({ props:
|
|
12703
|
-
template: ({ props:
|
|
12704
|
-
templateAreas: ({ props:
|
|
12705
|
-
column: ({ props:
|
|
12706
|
-
columns: ({ props:
|
|
12707
|
-
templateColumns: ({ props:
|
|
12708
|
-
autoColumns: ({ props:
|
|
12709
|
-
columnStart: ({ props:
|
|
12710
|
-
row: ({ props:
|
|
12711
|
-
rows: ({ props:
|
|
12712
|
-
templateRows: ({ props:
|
|
12713
|
-
autoRows: ({ props:
|
|
12714
|
-
rowStart: ({ props:
|
|
12715
|
-
autoFlow: ({ props:
|
|
12716
|
-
columnGap: ({ props:
|
|
12717
|
-
rowGap: ({ props:
|
|
12729
|
+
area: ({ props: props7 }) => props7.area ? { gridArea: props7.area } : null,
|
|
12730
|
+
template: ({ props: props7 }) => props7.template ? { gridTemplate: props7.template } : null,
|
|
12731
|
+
templateAreas: ({ props: props7 }) => props7.templateAreas ? { gridTemplateAreas: props7.templateAreas } : null,
|
|
12732
|
+
column: ({ props: props7 }) => props7.column ? { gridColumn: props7.column } : null,
|
|
12733
|
+
columns: ({ props: props7 }) => props7.columns ? { gridTemplateColumns: props7.columns } : null,
|
|
12734
|
+
templateColumns: ({ props: props7 }) => props7.templateColumns ? { gridTemplateColumns: props7.templateColumns } : null,
|
|
12735
|
+
autoColumns: ({ props: props7 }) => props7.autoColumns ? { gridAutoColumns: props7.autoColumns } : null,
|
|
12736
|
+
columnStart: ({ props: props7 }) => props7.columnStart ? { gridColumnStart: props7.columnStart } : null,
|
|
12737
|
+
row: ({ props: props7 }) => props7.row ? { gridRow: props7.row } : null,
|
|
12738
|
+
rows: ({ props: props7 }) => props7.rows ? { gridTemplateRows: props7.rows } : null,
|
|
12739
|
+
templateRows: ({ props: props7 }) => props7.templateRows ? { gridTemplateRows: props7.templateRows } : null,
|
|
12740
|
+
autoRows: ({ props: props7 }) => props7.autoRows ? { gridAutoRows: props7.autoRows } : null,
|
|
12741
|
+
rowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
|
|
12742
|
+
autoFlow: ({ props: props7 }) => props7.autoFlow ? { gridAutoFlow: props7.autoFlow } : null,
|
|
12743
|
+
columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch11.getSpacingBasedOnRatio)(props7, "columnGap") : null,
|
|
12744
|
+
rowGap: ({ props: props7 }) => props7.rowGap ? (0, import_scratch11.getSpacingBasedOnRatio)(props7, "rowGap") : null
|
|
12718
12745
|
}
|
|
12719
12746
|
};
|
|
12720
12747
|
|
|
@@ -12770,141 +12797,458 @@ var emotion2 = createEmotion4();
|
|
|
12770
12797
|
var { keyframes: keyframes2 } = emotion2;
|
|
12771
12798
|
|
|
12772
12799
|
// Datepicker/index.js
|
|
12773
|
-
var
|
|
12774
|
-
|
|
12775
|
-
background: "transparent",
|
|
12776
|
-
color: "--theme-quinary-dark-color",
|
|
12777
|
-
":hover": {
|
|
12778
|
-
theme: "quinary .child"
|
|
12779
|
-
}
|
|
12780
|
-
};
|
|
12781
|
-
var aside = {
|
|
12800
|
+
var DatePickerYears = {
|
|
12801
|
+
tag: "aside",
|
|
12782
12802
|
props: {
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12803
|
+
overflow: "hidden",
|
|
12804
|
+
position: "relative",
|
|
12805
|
+
":before": {
|
|
12806
|
+
content: '""',
|
|
12807
|
+
boxSize: "A1 100%",
|
|
12808
|
+
position: "absolute",
|
|
12809
|
+
top: "0",
|
|
12810
|
+
left: "0",
|
|
12811
|
+
background: "linear-gradient(to bottom, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
12812
|
+
zIndex: "10"
|
|
12813
|
+
},
|
|
12814
|
+
":after": {
|
|
12815
|
+
content: '""',
|
|
12816
|
+
boxSize: "B 100%",
|
|
12817
|
+
position: "absolute",
|
|
12818
|
+
bottom: "0",
|
|
12819
|
+
left: "0",
|
|
12820
|
+
background: "linear-gradient(to top, var(--theme-tertiary-dark-background) 0%, transparent 100%)"
|
|
12821
|
+
}
|
|
12789
12822
|
},
|
|
12790
|
-
|
|
12791
|
-
extend: Flex2,
|
|
12823
|
+
Flex: {
|
|
12792
12824
|
props: {
|
|
12793
12825
|
flow: "column",
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
top: "0",
|
|
12797
|
-
position: "absolute",
|
|
12826
|
+
gap: "B",
|
|
12827
|
+
padding: "A Z A1 B1",
|
|
12798
12828
|
maxHeight: "100%",
|
|
12799
|
-
|
|
12829
|
+
overflow: "hidden auto",
|
|
12830
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
12800
12831
|
},
|
|
12801
12832
|
childExtend: {
|
|
12802
12833
|
extend: Button,
|
|
12803
|
-
props: {
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12834
|
+
props: ({ state, text }) => ({
|
|
12835
|
+
fontSize: "Y1",
|
|
12836
|
+
color: "white",
|
|
12837
|
+
opacity: ".4",
|
|
12838
|
+
background: "transparent",
|
|
12839
|
+
transition: "opacity .25s ease",
|
|
12840
|
+
isActive: state.activeYear === text,
|
|
12841
|
+
".isActive": { opacity: "1" },
|
|
12842
|
+
":hover": { opacity: "1" }
|
|
12843
|
+
}),
|
|
12844
|
+
on: {
|
|
12845
|
+
click: (event, element, state) => state.update({ activeYear: element.text }),
|
|
12846
|
+
render: (el, state) => {
|
|
12847
|
+
const { props: props7 } = el;
|
|
12848
|
+
const { isActive } = props7;
|
|
12849
|
+
if (isActive) {
|
|
12850
|
+
window.requestAnimationFrame(() => {
|
|
12851
|
+
el.parent.parent.node.scrollTop = el.node.offsetTop - 100;
|
|
12852
|
+
});
|
|
12853
|
+
}
|
|
12854
|
+
}
|
|
12855
|
+
}
|
|
12856
|
+
},
|
|
12857
|
+
$setCollection: ({ state, parent }) => {
|
|
12858
|
+
const { yearRange } = parent.parent.props;
|
|
12859
|
+
if (yearRange) {
|
|
12860
|
+
const [start, end] = yearRange;
|
|
12861
|
+
const yearsArray = new Array(end + 1 - start).fill(void 0).map((v, k) => {
|
|
12862
|
+
return { text: start + k };
|
|
12863
|
+
}).reverse();
|
|
12864
|
+
return yearsArray;
|
|
12865
|
+
}
|
|
12866
|
+
return [
|
|
12867
|
+
{ text: "2023" },
|
|
12868
|
+
{ text: "2022" },
|
|
12869
|
+
{ text: "2021" },
|
|
12870
|
+
{ text: "2020" },
|
|
12871
|
+
{ text: "2019" },
|
|
12872
|
+
{ text: "2018" },
|
|
12873
|
+
{ text: "2017" },
|
|
12874
|
+
{ text: "2016" },
|
|
12875
|
+
{ text: "2015" },
|
|
12876
|
+
{ text: "2014" },
|
|
12877
|
+
{ text: "2013" },
|
|
12878
|
+
{ text: "2012" },
|
|
12879
|
+
{ text: "2012" },
|
|
12880
|
+
{ text: "2012" }
|
|
12881
|
+
];
|
|
12808
12882
|
}
|
|
12809
12883
|
}
|
|
12810
12884
|
};
|
|
12811
|
-
var
|
|
12885
|
+
var DatePickerMonthsSlider = {
|
|
12812
12886
|
extend: Flex2,
|
|
12813
12887
|
props: {
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12888
|
+
position: "relative",
|
|
12889
|
+
overflow: "hidden",
|
|
12890
|
+
alignItems: "center",
|
|
12891
|
+
padding: "- - B -",
|
|
12892
|
+
maxWidth: `${272 / 16}em`,
|
|
12893
|
+
boxSizing: "border-box",
|
|
12894
|
+
":before": {
|
|
12895
|
+
content: '""',
|
|
12896
|
+
position: "absolute",
|
|
12897
|
+
boxSize: "100% 100px",
|
|
12898
|
+
background: "linear-gradient(to right, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
12899
|
+
left: "0",
|
|
12900
|
+
top: "0",
|
|
12901
|
+
zIndex: "30",
|
|
12902
|
+
pointerEvents: "none"
|
|
12903
|
+
},
|
|
12904
|
+
":after": {
|
|
12905
|
+
content: '""',
|
|
12906
|
+
position: "absolute",
|
|
12907
|
+
boxSize: "100% 100px",
|
|
12908
|
+
background: "linear-gradient(to left, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
12909
|
+
right: "0",
|
|
12910
|
+
top: "0",
|
|
12911
|
+
zIndex: "30",
|
|
12912
|
+
pointerEvents: "none"
|
|
12913
|
+
},
|
|
12914
|
+
style: {
|
|
12915
|
+
"> button": {
|
|
12916
|
+
width: "16px",
|
|
12917
|
+
height: "16px",
|
|
12918
|
+
position: "absolute",
|
|
12919
|
+
zIndex: "35",
|
|
12920
|
+
background: "transparent",
|
|
12921
|
+
color: "#0079FD",
|
|
12922
|
+
":first-child": { left: "18px" },
|
|
12923
|
+
":last-child": { right: "18px" }
|
|
12924
|
+
}
|
|
12819
12925
|
}
|
|
12820
12926
|
},
|
|
12821
|
-
|
|
12927
|
+
leftButton: {
|
|
12928
|
+
extend: Button,
|
|
12929
|
+
props: { icon: "arrowLeft" }
|
|
12930
|
+
},
|
|
12931
|
+
Flex: {
|
|
12932
|
+
props: {
|
|
12933
|
+
flex: "1",
|
|
12934
|
+
overflow: "auto hidden",
|
|
12935
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
12936
|
+
},
|
|
12937
|
+
childExtend: {
|
|
12938
|
+
tag: "h6",
|
|
12939
|
+
props: ({ state, key }) => ({
|
|
12940
|
+
fontSize: "Z1",
|
|
12941
|
+
textAlign: "center",
|
|
12942
|
+
boxSizing: "content-box",
|
|
12943
|
+
minWidth: "272px",
|
|
12944
|
+
isActive: state.activeMonth === parseInt(key),
|
|
12945
|
+
".isActive": { opacity: "1" }
|
|
12946
|
+
}),
|
|
12947
|
+
render: (el, state) => {
|
|
12948
|
+
const { props: props7 } = el;
|
|
12949
|
+
const { isActive } = props7;
|
|
12950
|
+
if (isActive) {
|
|
12951
|
+
window.requestAnimationFrame(() => {
|
|
12952
|
+
el.parent.parent.node.scrollLeft = el.node.offsetLeft;
|
|
12953
|
+
});
|
|
12954
|
+
}
|
|
12955
|
+
}
|
|
12956
|
+
},
|
|
12957
|
+
$setCollection: ({ state, parent }) => {
|
|
12958
|
+
return [
|
|
12959
|
+
{ text: "January" },
|
|
12960
|
+
{ text: "February" },
|
|
12961
|
+
{ text: "March" },
|
|
12962
|
+
{ text: "April" },
|
|
12963
|
+
{ text: "May" },
|
|
12964
|
+
{ text: "June" },
|
|
12965
|
+
{ text: "July" },
|
|
12966
|
+
{ text: "August" },
|
|
12967
|
+
{ text: "September" },
|
|
12968
|
+
{ text: "October" },
|
|
12969
|
+
{ text: "November" },
|
|
12970
|
+
{ text: "December" }
|
|
12971
|
+
];
|
|
12972
|
+
}
|
|
12973
|
+
},
|
|
12974
|
+
rightButton: { extend: Button, props: { icon: "arrowRight" } }
|
|
12975
|
+
};
|
|
12976
|
+
var DatePickerWeekDays = {
|
|
12977
|
+
extend: Grid2,
|
|
12978
|
+
props: {
|
|
12979
|
+
overflow: "hidden",
|
|
12980
|
+
padding: "- Z Z",
|
|
12981
|
+
width: "100%",
|
|
12982
|
+
columns: "repeat(7, 1fr)",
|
|
12983
|
+
gap: "W2"
|
|
12984
|
+
},
|
|
12985
|
+
childExtend: {
|
|
12986
|
+
tag: "span",
|
|
12822
12987
|
extend: Flex2,
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12988
|
+
props: {
|
|
12989
|
+
fontSize: "Y1",
|
|
12990
|
+
textTransform: "capitalize",
|
|
12991
|
+
align: "center center",
|
|
12992
|
+
":nth-child(7n-1), &:nth-child(7n)": { opacity: ".5" }
|
|
12993
|
+
}
|
|
12994
|
+
},
|
|
12995
|
+
...[
|
|
12996
|
+
{ text: "Mo" },
|
|
12997
|
+
{ text: "Tu" },
|
|
12998
|
+
{ text: "We" },
|
|
12999
|
+
{ text: "Th" },
|
|
13000
|
+
{ text: "Fr" },
|
|
13001
|
+
{ text: "Sa" },
|
|
13002
|
+
{ text: "Su" }
|
|
13003
|
+
]
|
|
13004
|
+
};
|
|
13005
|
+
var DatePickerGrid = {
|
|
13006
|
+
extend: Grid2,
|
|
13007
|
+
props: {
|
|
13008
|
+
columns: "repeat(7, 1fr)",
|
|
13009
|
+
minWidth: "100%",
|
|
13010
|
+
gap: "W2",
|
|
13011
|
+
padding: `- Z`
|
|
13012
|
+
},
|
|
13013
|
+
childExtend: {
|
|
13014
|
+
extend: Button,
|
|
13015
|
+
props: ({ state, key }) => ({
|
|
13016
|
+
isActive: state.activeDay === parseInt(key) + 1,
|
|
13017
|
+
textAlign: "center",
|
|
13018
|
+
fontSize: "Z1",
|
|
13019
|
+
round: "100%",
|
|
13020
|
+
height: "B1",
|
|
13021
|
+
aspectRatio: "1/1",
|
|
13022
|
+
lineHeight: ".9",
|
|
13023
|
+
background: "transparent",
|
|
13024
|
+
theme: "secondary @dark .color",
|
|
13025
|
+
".isActive": { theme: "primary" },
|
|
13026
|
+
"!isActive": {
|
|
13027
|
+
":hover": { theme: "secondary" },
|
|
13028
|
+
":nth-child(7n-1), &:nth-child(7n)": { opacity: ".5" }
|
|
12829
13029
|
}
|
|
13030
|
+
}),
|
|
13031
|
+
on: {
|
|
13032
|
+
click: (event, element, state) => {
|
|
13033
|
+
state.update({ activeDay: element.text });
|
|
13034
|
+
console.log(state.activeDay + "." + state.activeMonth + "." + state.activeYear);
|
|
13035
|
+
}
|
|
13036
|
+
}
|
|
13037
|
+
},
|
|
13038
|
+
$setPropsCollection: (el, s) => {
|
|
13039
|
+
const daysInMonth = new Date(s.activeYear, s.activeMonth, 0).getDate();
|
|
13040
|
+
const days = new Array(daysInMonth).fill(void 0).map((v, k) => ({ text: k + 1 }));
|
|
13041
|
+
return days;
|
|
13042
|
+
}
|
|
13043
|
+
};
|
|
13044
|
+
var monthNumbersContainer = {
|
|
13045
|
+
props: {
|
|
13046
|
+
maxWidth: `${272 / 16}em`,
|
|
13047
|
+
position: "relative",
|
|
13048
|
+
":before": {
|
|
13049
|
+
content: '""',
|
|
13050
|
+
position: "absolute",
|
|
13051
|
+
boxSize: "100% 12px",
|
|
13052
|
+
background: "linear-gradient(to right, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
13053
|
+
left: "0",
|
|
13054
|
+
top: "0",
|
|
13055
|
+
zIndex: "30"
|
|
12830
13056
|
},
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
13057
|
+
":after": {
|
|
13058
|
+
content: '""',
|
|
13059
|
+
position: "absolute",
|
|
13060
|
+
boxSize: "100% 12px",
|
|
13061
|
+
background: "linear-gradient(to left, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
13062
|
+
right: "0",
|
|
13063
|
+
top: "0",
|
|
13064
|
+
zIndex: "30"
|
|
12834
13065
|
},
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
props: {
|
|
12838
|
-
...buttonProps,
|
|
12839
|
-
round: "C",
|
|
12840
|
-
icon: "arrowAngleRight"
|
|
12841
|
-
}
|
|
13066
|
+
content: {
|
|
13067
|
+
overflow: "auto hidden"
|
|
12842
13068
|
}
|
|
12843
13069
|
},
|
|
12844
|
-
|
|
13070
|
+
content: {
|
|
12845
13071
|
extend: Flex2,
|
|
13072
|
+
childExtend: DatePickerGrid,
|
|
13073
|
+
...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
|
|
13074
|
+
}
|
|
13075
|
+
};
|
|
13076
|
+
var props = {
|
|
13077
|
+
yearRange: [1993, 2023],
|
|
13078
|
+
theme: "tertiary",
|
|
13079
|
+
round: "Z2",
|
|
13080
|
+
margin: "E",
|
|
13081
|
+
overflow: "hidden",
|
|
13082
|
+
maxHeight: "318px",
|
|
13083
|
+
boxSize: "fit-content fit-content",
|
|
13084
|
+
padding: "- Z - -",
|
|
13085
|
+
style: {
|
|
13086
|
+
button: {
|
|
13087
|
+
padding: "0"
|
|
13088
|
+
}
|
|
13089
|
+
}
|
|
13090
|
+
};
|
|
13091
|
+
var DatePicker = {
|
|
13092
|
+
extend: Flex2,
|
|
13093
|
+
state: {
|
|
13094
|
+
activeYear: 1993,
|
|
13095
|
+
activeMonth: 8,
|
|
13096
|
+
activeDay: 14
|
|
13097
|
+
},
|
|
13098
|
+
props,
|
|
13099
|
+
DatePickerYears: {},
|
|
13100
|
+
Flex: {
|
|
12846
13101
|
props: {
|
|
12847
13102
|
flow: "column",
|
|
12848
|
-
|
|
13103
|
+
padding: "20px - - -",
|
|
13104
|
+
position: "relative"
|
|
12849
13105
|
},
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
fontSize: "Z1",
|
|
12863
|
-
padding: "X2"
|
|
12864
|
-
}
|
|
13106
|
+
DatePickerMonthsSlider: {},
|
|
13107
|
+
DatePickerWeekDays: {},
|
|
13108
|
+
monthNumbersContainer,
|
|
13109
|
+
DialogFooter: {}
|
|
13110
|
+
}
|
|
13111
|
+
};
|
|
13112
|
+
var DatePickerTwoColumns = {
|
|
13113
|
+
extend: DatePicker,
|
|
13114
|
+
props: {
|
|
13115
|
+
calendar: {
|
|
13116
|
+
months: {
|
|
13117
|
+
maxWidth: `${544 / 16}em`
|
|
12865
13118
|
},
|
|
12866
|
-
|
|
12867
|
-
{
|
|
12868
|
-
{ text: "Tu" },
|
|
12869
|
-
{ text: "We" },
|
|
12870
|
-
{ text: "Th" },
|
|
12871
|
-
{ text: "Fr" },
|
|
12872
|
-
{ text: "Sa" },
|
|
12873
|
-
{ text: "Su" }
|
|
12874
|
-
]
|
|
12875
|
-
},
|
|
12876
|
-
cnt: {
|
|
12877
|
-
childExtend: {
|
|
12878
|
-
extend: SquareButton,
|
|
12879
|
-
props: ({ key, state }) => ({
|
|
12880
|
-
...buttonProps,
|
|
12881
|
-
theme: "quaternary",
|
|
12882
|
-
active: key === "18",
|
|
12883
|
-
".active": {
|
|
12884
|
-
theme: "quinary"
|
|
12885
|
-
}
|
|
12886
|
-
})
|
|
13119
|
+
weekDaysContainer: {
|
|
13120
|
+
maxWidth: `${544 / 16}em`
|
|
12887
13121
|
},
|
|
12888
|
-
|
|
13122
|
+
monthNumbersContainer: {
|
|
13123
|
+
maxWidth: `${544 / 16}em`
|
|
13124
|
+
}
|
|
12889
13125
|
}
|
|
12890
13126
|
}
|
|
12891
13127
|
};
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
13128
|
+
|
|
13129
|
+
// Input/index.js
|
|
13130
|
+
var Input = {
|
|
13131
|
+
extend: [Focusable],
|
|
13132
|
+
tag: "input",
|
|
12895
13133
|
props: {
|
|
12896
|
-
|
|
13134
|
+
border: "none",
|
|
13135
|
+
type: "input",
|
|
12897
13136
|
theme: "quaternary",
|
|
12898
|
-
|
|
13137
|
+
fontSize: "A",
|
|
13138
|
+
round: "C",
|
|
13139
|
+
lineHeight: 1,
|
|
13140
|
+
fontFamily: "smbls",
|
|
13141
|
+
padding: "Z A"
|
|
13142
|
+
},
|
|
13143
|
+
attr: {
|
|
13144
|
+
pattern: ({ props: props7 }) => props7.pattern,
|
|
13145
|
+
minlength: ({ props: props7 }) => props7.minlength,
|
|
13146
|
+
maxlength: ({ props: props7 }) => props7.maxlength,
|
|
13147
|
+
name: ({ props: props7 }) => props7.name,
|
|
13148
|
+
autocomplete: ({ props: props7 }) => props7.autocomplete,
|
|
13149
|
+
placeholder: ({ props: props7 }) => props7.placeholder,
|
|
13150
|
+
value: ({ props: props7, state }) => props7.value,
|
|
13151
|
+
disabled: ({ props: props7 }) => props7.disabled || null,
|
|
13152
|
+
readonly: ({ props: props7 }) => props7.readonly,
|
|
13153
|
+
required: ({ props: props7 }) => props7.required,
|
|
13154
|
+
type: ({ props: props7 }) => props7.type
|
|
13155
|
+
}
|
|
13156
|
+
};
|
|
13157
|
+
|
|
13158
|
+
// TimePicker/TimePickerItem.js
|
|
13159
|
+
var props2 = {
|
|
13160
|
+
align: "center center",
|
|
13161
|
+
flow: "column",
|
|
13162
|
+
gap: "X",
|
|
13163
|
+
style: {
|
|
13164
|
+
"input[type=number]::-webkit-inner-spin-button": {
|
|
13165
|
+
"-webkit-appearance": "none",
|
|
13166
|
+
margin: 0
|
|
13167
|
+
},
|
|
13168
|
+
"input[type=number]::-webkit-outer-spin-button": {
|
|
13169
|
+
"-webkit-appearance": "none",
|
|
13170
|
+
margin: 0
|
|
13171
|
+
},
|
|
13172
|
+
"input[type=number]": { "-webkit-appearance": "textfield" },
|
|
13173
|
+
"input:focus < button": { border: "3px solid red" },
|
|
13174
|
+
"> button": {
|
|
13175
|
+
padding: "0",
|
|
13176
|
+
background: "transparent",
|
|
13177
|
+
color: "white",
|
|
13178
|
+
fontSize: `${12 / 16}em`,
|
|
13179
|
+
display: "none"
|
|
13180
|
+
}
|
|
13181
|
+
},
|
|
13182
|
+
input: {
|
|
13183
|
+
boxSize: "C C",
|
|
12899
13184
|
round: "Z",
|
|
12900
|
-
padding: "
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
13185
|
+
padding: "0",
|
|
13186
|
+
align: "center center",
|
|
13187
|
+
textAlign: "center",
|
|
13188
|
+
color: "white",
|
|
13189
|
+
background: "white .15"
|
|
13190
|
+
}
|
|
13191
|
+
};
|
|
13192
|
+
var TimePickerItem = {
|
|
13193
|
+
tag: "label",
|
|
13194
|
+
extend: Flex,
|
|
13195
|
+
props: props2,
|
|
13196
|
+
upButton: { extend: Button, props: { icon: "plus" } },
|
|
13197
|
+
input: { extend: [Input, Flex], attr: { type: "number", min: "1", max: "24", value: "1" } },
|
|
13198
|
+
downButton: { extend: Button, props: { icon: "minus" } }
|
|
13199
|
+
};
|
|
13200
|
+
|
|
13201
|
+
// TimePicker/index.js
|
|
13202
|
+
var props3 = {
|
|
13203
|
+
flow: "column",
|
|
13204
|
+
width: "fit-content",
|
|
13205
|
+
background: "rgba(255, 255, 255, .15)",
|
|
13206
|
+
padding: "A A B A",
|
|
13207
|
+
round: "Z",
|
|
13208
|
+
title: {
|
|
13209
|
+
fontSize: "Z1",
|
|
13210
|
+
textTransform: "capitalize",
|
|
13211
|
+
padding: "- - B -"
|
|
12905
13212
|
},
|
|
12906
|
-
|
|
12907
|
-
|
|
13213
|
+
content: {
|
|
13214
|
+
align: "center center",
|
|
13215
|
+
gap: "A",
|
|
13216
|
+
timePickers: {
|
|
13217
|
+
align: "center center",
|
|
13218
|
+
gap: "Y2"
|
|
13219
|
+
}
|
|
13220
|
+
},
|
|
13221
|
+
footButtons: {
|
|
13222
|
+
align: "center flex-end",
|
|
13223
|
+
gap: "A1",
|
|
13224
|
+
padding: "B1 - - -",
|
|
13225
|
+
childProps: {
|
|
13226
|
+
background: "transparent",
|
|
13227
|
+
padding: "0",
|
|
13228
|
+
color: "#0079FD"
|
|
13229
|
+
}
|
|
13230
|
+
}
|
|
13231
|
+
};
|
|
13232
|
+
var TimePicker = {
|
|
13233
|
+
extend: Flex,
|
|
13234
|
+
props: props3,
|
|
13235
|
+
title: { text: "enter time" },
|
|
13236
|
+
content: {
|
|
13237
|
+
extend: Flex,
|
|
13238
|
+
timePickers: {
|
|
13239
|
+
tag: "label",
|
|
13240
|
+
extend: Flex,
|
|
13241
|
+
...[
|
|
13242
|
+
{ extend: TimePickerItem },
|
|
13243
|
+
":",
|
|
13244
|
+
{ extend: TimePickerItem },
|
|
13245
|
+
":",
|
|
13246
|
+
{ extend: TimePickerItem }
|
|
13247
|
+
]
|
|
13248
|
+
},
|
|
13249
|
+
TimeSwitcher: {}
|
|
13250
|
+
},
|
|
13251
|
+
DialogFooter: {}
|
|
12908
13252
|
};
|
|
12909
13253
|
|
|
12910
13254
|
// Dropdown/index.js
|
|
@@ -12968,7 +13312,7 @@ var DropdownParent = {
|
|
|
12968
13312
|
};
|
|
12969
13313
|
|
|
12970
13314
|
// Form/FieldLabel.js
|
|
12971
|
-
var
|
|
13315
|
+
var props4 = {
|
|
12972
13316
|
flow: "column",
|
|
12973
13317
|
gap: "Y2",
|
|
12974
13318
|
childProps: { textTransform: "capitalize" },
|
|
@@ -12979,7 +13323,7 @@ var props = {
|
|
|
12979
13323
|
};
|
|
12980
13324
|
var FieldLabel = {
|
|
12981
13325
|
extend: Flex,
|
|
12982
|
-
props,
|
|
13326
|
+
props: props4,
|
|
12983
13327
|
caption: {
|
|
12984
13328
|
tag: "span",
|
|
12985
13329
|
text: "text"
|
|
@@ -13125,15 +13469,15 @@ var ToggleSwithWithLabel = {
|
|
|
13125
13469
|
// node_modules/@symbo.ls/icon/index.js
|
|
13126
13470
|
var Icon2 = {
|
|
13127
13471
|
extend: Svg,
|
|
13128
|
-
props: ({ key, props:
|
|
13472
|
+
props: ({ key, props: props7, parent, context }) => {
|
|
13129
13473
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
13130
13474
|
const { toCamelCase } = context && context.utils;
|
|
13131
|
-
const iconName =
|
|
13475
|
+
const iconName = props7.inheritedString || props7.name || props7.icon || key;
|
|
13132
13476
|
const camelCase = toCamelCase(iconName);
|
|
13133
13477
|
const isArray9 = camelCase.split(/([a-z])([A-Z])/g);
|
|
13134
13478
|
let activeIconName;
|
|
13135
|
-
if (
|
|
13136
|
-
activeIconName =
|
|
13479
|
+
if (props7.active) {
|
|
13480
|
+
activeIconName = props7[".active"].name || props7[".active"].icon;
|
|
13137
13481
|
}
|
|
13138
13482
|
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
13139
13483
|
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
@@ -13152,7 +13496,7 @@ var Icon2 = {
|
|
|
13152
13496
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
13153
13497
|
}
|
|
13154
13498
|
const iconFromLibrary = ICONS[validIconName];
|
|
13155
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
13499
|
+
const directSrc = parent && parent.props && parent.props.src || props7.src;
|
|
13156
13500
|
return {
|
|
13157
13501
|
width: "A",
|
|
13158
13502
|
height: "A",
|
|
@@ -13170,15 +13514,16 @@ var IconText2 = {
|
|
|
13170
13514
|
align: "center center",
|
|
13171
13515
|
lineHeight: 1
|
|
13172
13516
|
},
|
|
13517
|
+
// TODO: remove this variant
|
|
13173
13518
|
icon: {
|
|
13174
13519
|
extend: Icon2,
|
|
13175
13520
|
if: ({ parent }) => parent.props.icon
|
|
13176
13521
|
},
|
|
13177
13522
|
Icon: {
|
|
13178
13523
|
props: {},
|
|
13179
|
-
if: ({ props:
|
|
13524
|
+
if: ({ props: props7 }) => props7.name || props7.icon
|
|
13180
13525
|
},
|
|
13181
|
-
text: ({ props:
|
|
13526
|
+
text: ({ props: props7 }) => props7.text
|
|
13182
13527
|
};
|
|
13183
13528
|
|
|
13184
13529
|
// Link/index.js
|
|
@@ -13198,23 +13543,23 @@ var Link = {
|
|
|
13198
13543
|
const { exec: exec5 } = ctx.utils;
|
|
13199
13544
|
return exec5(el.props.href, el) || exec5(el.props, el).href;
|
|
13200
13545
|
},
|
|
13201
|
-
target: ({ props:
|
|
13202
|
-
"aria-label": ({ props:
|
|
13203
|
-
draggable: ({ props:
|
|
13546
|
+
target: ({ props: props7 }) => props7.target,
|
|
13547
|
+
"aria-label": ({ props: props7 }) => props7.aria ? props7.aria.label : props7.text,
|
|
13548
|
+
draggable: ({ props: props7 }) => props7.draggable
|
|
13204
13549
|
}
|
|
13205
13550
|
};
|
|
13206
13551
|
var RouterLink = {
|
|
13207
13552
|
on: {
|
|
13208
13553
|
click: (event, el, s, ctx) => {
|
|
13209
|
-
const { props:
|
|
13210
|
-
const { href } =
|
|
13554
|
+
const { props: props7 } = el;
|
|
13555
|
+
const { href } = props7;
|
|
13211
13556
|
if (!href)
|
|
13212
13557
|
return;
|
|
13213
13558
|
const { utils, routerOptions } = ctx;
|
|
13214
13559
|
const { router } = utils;
|
|
13215
13560
|
const root = el.__ref.__root;
|
|
13216
13561
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
13217
|
-
const options =
|
|
13562
|
+
const options = props7.routerOptions || routerOptions || {
|
|
13218
13563
|
scrollToOptions: { behaviour: "instant" }
|
|
13219
13564
|
};
|
|
13220
13565
|
if (href && !linkIsExternal) {
|
|
@@ -13228,35 +13573,6 @@ var RouteLink = {
|
|
|
13228
13573
|
extend: [Link, RouterLink]
|
|
13229
13574
|
};
|
|
13230
13575
|
|
|
13231
|
-
// Input/index.js
|
|
13232
|
-
var Input = {
|
|
13233
|
-
extend: [Focusable],
|
|
13234
|
-
tag: "input",
|
|
13235
|
-
props: {
|
|
13236
|
-
border: "none",
|
|
13237
|
-
type: "input",
|
|
13238
|
-
theme: "quaternary",
|
|
13239
|
-
fontSize: "A",
|
|
13240
|
-
round: "C",
|
|
13241
|
-
lineHeight: 1,
|
|
13242
|
-
fontFamily: "smbls",
|
|
13243
|
-
padding: "Z A"
|
|
13244
|
-
},
|
|
13245
|
-
attr: {
|
|
13246
|
-
pattern: ({ props: props4 }) => props4.pattern,
|
|
13247
|
-
minlength: ({ props: props4 }) => props4.minlength,
|
|
13248
|
-
maxlength: ({ props: props4 }) => props4.maxlength,
|
|
13249
|
-
name: ({ props: props4 }) => props4.name,
|
|
13250
|
-
autocomplete: ({ props: props4 }) => props4.autocomplete,
|
|
13251
|
-
placeholder: ({ props: props4 }) => props4.placeholder,
|
|
13252
|
-
value: ({ props: props4, state }) => props4.value,
|
|
13253
|
-
disabled: ({ props: props4 }) => props4.disabled || null,
|
|
13254
|
-
readonly: ({ props: props4 }) => props4.readonly,
|
|
13255
|
-
required: ({ props: props4 }) => props4.required,
|
|
13256
|
-
type: ({ props: props4 }) => props4.type
|
|
13257
|
-
}
|
|
13258
|
-
};
|
|
13259
|
-
|
|
13260
13576
|
// Field/node_modules/@symbo.ls/atoms/Block.js
|
|
13261
13577
|
var import_scratch19 = __toESM(require_cjs());
|
|
13262
13578
|
|
|
@@ -13297,8 +13613,8 @@ var Focusable2 = {
|
|
|
13297
13613
|
}
|
|
13298
13614
|
},
|
|
13299
13615
|
attr: {
|
|
13300
|
-
placeholder: ({ props:
|
|
13301
|
-
tabIndex: ({ props:
|
|
13616
|
+
placeholder: ({ props: props7 }) => props7.placeholder,
|
|
13617
|
+
tabIndex: ({ props: props7 }) => props7.tabIndex
|
|
13302
13618
|
}
|
|
13303
13619
|
};
|
|
13304
13620
|
|
|
@@ -13369,23 +13685,23 @@ var Video = {
|
|
|
13369
13685
|
childExtend: {
|
|
13370
13686
|
tag: "source",
|
|
13371
13687
|
attr: {
|
|
13372
|
-
src: ({ props:
|
|
13373
|
-
controls: ({ props:
|
|
13688
|
+
src: ({ props: props7 }) => props7.src,
|
|
13689
|
+
controls: ({ props: props7 }) => props7.controls
|
|
13374
13690
|
}
|
|
13375
13691
|
},
|
|
13376
13692
|
props: {
|
|
13377
13693
|
controls: true
|
|
13378
13694
|
},
|
|
13379
13695
|
attr: {
|
|
13380
|
-
autoplay: ({ props:
|
|
13381
|
-
controls: ({ props:
|
|
13696
|
+
autoplay: ({ props: props7 }) => props7.autoplay,
|
|
13697
|
+
controls: ({ props: props7 }) => props7.controls
|
|
13382
13698
|
}
|
|
13383
13699
|
};
|
|
13384
13700
|
|
|
13385
13701
|
// Range/index.js
|
|
13386
13702
|
var import_utils14 = __toESM(require_cjs5());
|
|
13387
13703
|
var import_scratch28 = __toESM(require_cjs());
|
|
13388
|
-
var
|
|
13704
|
+
var props5 = {
|
|
13389
13705
|
appearance: "none",
|
|
13390
13706
|
width: "100%",
|
|
13391
13707
|
height: "2px",
|
|
@@ -13445,7 +13761,7 @@ var props2 = {
|
|
|
13445
13761
|
}
|
|
13446
13762
|
};
|
|
13447
13763
|
var Range = {
|
|
13448
|
-
props:
|
|
13764
|
+
props: props5,
|
|
13449
13765
|
tag: "input",
|
|
13450
13766
|
attr: { type: "range" }
|
|
13451
13767
|
};
|
|
@@ -13497,7 +13813,7 @@ var RangeWithButtons = {
|
|
|
13497
13813
|
};
|
|
13498
13814
|
|
|
13499
13815
|
// Slider/style.js
|
|
13500
|
-
var
|
|
13816
|
+
var style_default = {
|
|
13501
13817
|
appearance: "none",
|
|
13502
13818
|
width: "100%",
|
|
13503
13819
|
height: "2px",
|
|
@@ -13540,7 +13856,7 @@ var import_utils15 = __toESM(require_cjs5());
|
|
|
13540
13856
|
}
|
|
13541
13857
|
});
|
|
13542
13858
|
var RangeSlider = {
|
|
13543
|
-
style:
|
|
13859
|
+
style: style_default,
|
|
13544
13860
|
props: {
|
|
13545
13861
|
theme: "sliderThumb"
|
|
13546
13862
|
},
|
|
@@ -13562,8 +13878,8 @@ var Slider = {
|
|
|
13562
13878
|
click: (ev, el, s) => {
|
|
13563
13879
|
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13564
13880
|
const input = el.parent.input;
|
|
13565
|
-
const
|
|
13566
|
-
const value = (0, import_utils15.isFunction)(
|
|
13881
|
+
const props7 = input.props;
|
|
13882
|
+
const value = (0, import_utils15.isFunction)(props7.value) ? props7.value() : props7.value;
|
|
13567
13883
|
input.node.value = value;
|
|
13568
13884
|
}
|
|
13569
13885
|
}
|
|
@@ -13599,8 +13915,8 @@ var Slider = {
|
|
|
13599
13915
|
click: (ev, el, s) => {
|
|
13600
13916
|
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13601
13917
|
const input = el.parent.input;
|
|
13602
|
-
const
|
|
13603
|
-
const value = (0, import_utils15.isFunction)(
|
|
13918
|
+
const props7 = input.props;
|
|
13919
|
+
const value = (0, import_utils15.isFunction)(props7.value) ? props7.value() : props7.value;
|
|
13604
13920
|
input.node.value = value;
|
|
13605
13921
|
}
|
|
13606
13922
|
}
|
|
@@ -13616,12 +13932,12 @@ var Flex3 = {
|
|
|
13616
13932
|
display: "flex"
|
|
13617
13933
|
},
|
|
13618
13934
|
class: {
|
|
13619
|
-
flow: ({ props:
|
|
13620
|
-
wrap: ({ props:
|
|
13621
|
-
align: ({ props:
|
|
13622
|
-
if (typeof
|
|
13935
|
+
flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
|
|
13936
|
+
wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
|
|
13937
|
+
align: ({ props: props7 }) => {
|
|
13938
|
+
if (typeof props7.align !== "string")
|
|
13623
13939
|
return;
|
|
13624
|
-
const [alignItems, justifyContent] =
|
|
13940
|
+
const [alignItems, justifyContent] = props7.align.split(" ");
|
|
13625
13941
|
return { alignItems, justifyContent };
|
|
13626
13942
|
}
|
|
13627
13943
|
}
|
|
@@ -13769,14 +14085,14 @@ var TooltipParent = {
|
|
|
13769
14085
|
};
|
|
13770
14086
|
|
|
13771
14087
|
// Textarea/index.js
|
|
13772
|
-
var
|
|
14088
|
+
var props6 = {
|
|
13773
14089
|
height: "E",
|
|
13774
14090
|
lineHeight: 1.4,
|
|
13775
14091
|
style: { resize: "none" }
|
|
13776
14092
|
};
|
|
13777
14093
|
var Textarea = {
|
|
13778
14094
|
extend: [Input],
|
|
13779
|
-
props:
|
|
14095
|
+
props: props6,
|
|
13780
14096
|
tag: "textarea"
|
|
13781
14097
|
};
|
|
13782
14098
|
|
|
@@ -13840,13 +14156,13 @@ var Select = {
|
|
|
13840
14156
|
disabled: ""
|
|
13841
14157
|
},
|
|
13842
14158
|
attr: {
|
|
13843
|
-
value: ({ props:
|
|
13844
|
-
selected: ({ props:
|
|
13845
|
-
disabled: ({ props:
|
|
14159
|
+
value: ({ props: props7 }) => props7.value,
|
|
14160
|
+
selected: ({ props: props7 }) => props7.selected,
|
|
14161
|
+
disabled: ({ props: props7 }) => props7.disabled
|
|
13846
14162
|
}
|
|
13847
14163
|
},
|
|
13848
14164
|
attr: {
|
|
13849
|
-
name: ({ props:
|
|
13850
|
-
disabled: ({ props:
|
|
14165
|
+
name: ({ props: props7 }) => props7.name,
|
|
14166
|
+
disabled: ({ props: props7 }) => props7.disabled
|
|
13851
14167
|
}
|
|
13852
14168
|
};
|