@symbo.ls/uikit 2.11.36 → 2.11.43
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 +1200 -984
- package/dist/index.cjs.js.map +4 -4
- 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, props5) => {
|
|
855
|
+
if (props5 === void 0 || props5 === 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)(props5)("string", "number")) {
|
|
858
|
+
delete obj[props5];
|
|
859
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
860
|
+
props5.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 = (props5, sequenceProps) => {
|
|
1544
|
+
const { key, variable, value, scaling, index } = props5;
|
|
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 = (props5, sequenceProps) => {
|
|
1557
|
+
const { key, base, value, ratio, variable, index } = props5;
|
|
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 props5 = {
|
|
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(props5, sequenceProps);
|
|
1608
1608
|
if (subSequence)
|
|
1609
|
-
generateSubSequence(
|
|
1609
|
+
generateSubSequence(props5, 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 = (props5, 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 = props5.unit || UNIT2.default;
|
|
1695
|
+
const { sequence, scales } = props5;
|
|
1696
1696
|
for (const key in sequence) {
|
|
1697
1697
|
const item = sequence[key];
|
|
1698
|
-
const value = (
|
|
1698
|
+
const value = (props5.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 = (props5) => {
|
|
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 props5) {
|
|
2191
|
+
const mediaProps = props5[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 } = props5;
|
|
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 = (props5) => {
|
|
2218
2218
|
const CONFIG22 = getActiveConfig5();
|
|
2219
|
-
if (
|
|
2220
|
-
const unit =
|
|
2221
|
-
const HEADINGS = findHeadings(
|
|
2222
|
-
const { templates } =
|
|
2219
|
+
if (props5.h1Matches) {
|
|
2220
|
+
const unit = props5.unit;
|
|
2221
|
+
const HEADINGS = findHeadings(props5);
|
|
2222
|
+
const { templates } = props5;
|
|
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 : props5.lineHeight,
|
|
2230
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.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 = (props5, 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 } = props5;
|
|
2329
|
+
const value = val || props5[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, props5, 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, props5) => {
|
|
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(props5);
|
|
2656
|
+
keys.map((key) => setValue(FACTORY_NAME, props5[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, props5) => {
|
|
3512
|
+
if (props5 === void 0 || props5 === 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)(props5)("string", "number")) {
|
|
3515
|
+
delete obj[props5];
|
|
3516
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
3517
|
+
props5.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, props5) => {
|
|
5273
|
+
if (props5 === void 0 || props5 === 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)(props5)("string", "number")) {
|
|
5276
|
+
delete obj[props5];
|
|
5277
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
5278
|
+
props5.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 = (props5, sequenceProps) => {
|
|
5962
|
+
const { key, variable, value, scaling, index } = props5;
|
|
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 = (props5, sequenceProps) => {
|
|
5975
|
+
const { key, base, value, ratio, variable, index } = props5;
|
|
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 props5 = {
|
|
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(props5, sequenceProps);
|
|
6030
6026
|
if (subSequence)
|
|
6031
|
-
generateSubSequence(
|
|
6027
|
+
generateSubSequence(props5, 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 = (props5, 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 = props5.unit || UNIT2.default;
|
|
6113
|
+
const { sequence, scales } = props5;
|
|
6118
6114
|
for (const key in sequence) {
|
|
6119
6115
|
const item = sequence[key];
|
|
6120
|
-
const value = (
|
|
6116
|
+
const value = (props5.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 = (props5) => {
|
|
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 props5) {
|
|
6609
|
+
const mediaProps = props5[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 } = props5;
|
|
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 = (props5) => {
|
|
6640
6636
|
const CONFIG22 = getActiveConfig5();
|
|
6641
|
-
if (
|
|
6642
|
-
const unit =
|
|
6643
|
-
const HEADINGS = findHeadings(
|
|
6644
|
-
const { templates } =
|
|
6637
|
+
if (props5.h1Matches) {
|
|
6638
|
+
const unit = props5.unit;
|
|
6639
|
+
const HEADINGS = findHeadings(props5);
|
|
6640
|
+
const { templates } = props5;
|
|
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 : props5.lineHeight,
|
|
6648
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.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 = (props5, 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 } = props5;
|
|
6747
|
+
const value = val || props5[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, props5, 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, props5) => {
|
|
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(props5);
|
|
7074
|
+
keys.map((key) => setValue(FACTORY_NAME, props5[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, props5) => {
|
|
8052
|
+
if (props5 === void 0 || props5 === 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)(props5)("string", "number")) {
|
|
8055
|
+
delete obj[props5];
|
|
8056
|
+
} else if ((0, import_types.isArray)(props5)) {
|
|
8057
|
+
props5.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 = (props5, sequenceProps) => {
|
|
8741
|
+
const { key, variable, value, scaling, index } = props5;
|
|
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 = (props5, sequenceProps) => {
|
|
8754
|
+
const { key, base, value, ratio, variable, index } = props5;
|
|
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 props5 = {
|
|
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(props5, sequenceProps);
|
|
8802
8805
|
if (subSequence)
|
|
8803
|
-
generateSubSequence(
|
|
8806
|
+
generateSubSequence(props5, 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 = (props5, 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 = props5.unit || UNIT2.default;
|
|
8892
|
+
const { sequence, scales } = props5;
|
|
8890
8893
|
for (const key in sequence) {
|
|
8891
8894
|
const item = sequence[key];
|
|
8892
|
-
const value = (
|
|
8895
|
+
const value = (props5.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 = (props5) => {
|
|
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 props5) {
|
|
9388
|
+
const mediaProps = props5[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 } = props5;
|
|
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 = (props5) => {
|
|
9412
9415
|
const CONFIG22 = getActiveConfig5();
|
|
9413
|
-
if (
|
|
9414
|
-
const unit =
|
|
9415
|
-
const HEADINGS = findHeadings(
|
|
9416
|
-
const { templates } =
|
|
9416
|
+
if (props5.h1Matches) {
|
|
9417
|
+
const unit = props5.unit;
|
|
9418
|
+
const HEADINGS = findHeadings(props5);
|
|
9419
|
+
const { templates } = props5;
|
|
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 : props5.lineHeight,
|
|
9427
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.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 = (props5, 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 } = props5;
|
|
9526
|
+
const value = val || props5[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, props5, 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, props5) => {
|
|
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(props5);
|
|
9853
|
+
keys.map((key) => setValue(FACTORY_NAME, props5[key], key));
|
|
9851
9854
|
return CONFIG22[FACTORY_NAME];
|
|
9852
9855
|
};
|
|
9853
9856
|
var SET_OPTIONS = {};
|
|
@@ -9917,6 +9920,8 @@ __export(domql_exports, {
|
|
|
9917
9920
|
Clickable: () => Clickable,
|
|
9918
9921
|
Collection: () => Collection,
|
|
9919
9922
|
DatePicker: () => DatePicker,
|
|
9923
|
+
DatePickerTwoColumns: () => DatePickerTwoColumns,
|
|
9924
|
+
DatePickerYears: () => DatePickerYears,
|
|
9920
9925
|
Direction: () => Direction,
|
|
9921
9926
|
DropdownList: () => DropdownList,
|
|
9922
9927
|
DropdownParent: () => DropdownParent,
|
|
@@ -9991,143 +9996,143 @@ module.exports = __toCommonJS(domql_exports);
|
|
|
9991
9996
|
var import_scratch = __toESM(require_cjs());
|
|
9992
9997
|
var Block = {
|
|
9993
9998
|
class: {
|
|
9994
|
-
boxSizing: ({ props:
|
|
9999
|
+
boxSizing: ({ props: props5 }) => props5.boxSizing ? { boxSizing: props5.boxSizing } : {
|
|
9995
10000
|
boxSizing: "border-box"
|
|
9996
10001
|
},
|
|
9997
|
-
display: ({ props:
|
|
9998
|
-
hide: ({ props:
|
|
9999
|
-
width: ({ props:
|
|
10000
|
-
height: ({ props:
|
|
10001
|
-
boxSize: ({ props:
|
|
10002
|
-
if (typeof
|
|
10002
|
+
display: ({ props: props5 }) => props5.display && { display: props5.display },
|
|
10003
|
+
hide: ({ props: props5 }) => props5.hide && { display: "none" },
|
|
10004
|
+
width: ({ props: props5 }) => props5.width && (0, import_scratch.getSpacingBasedOnRatio)(props5, "width"),
|
|
10005
|
+
height: ({ props: props5 }) => props5.height && (0, import_scratch.getSpacingBasedOnRatio)(props5, "height"),
|
|
10006
|
+
boxSize: ({ props: props5 }) => {
|
|
10007
|
+
if (typeof props5.boxSize !== "string")
|
|
10003
10008
|
return;
|
|
10004
|
-
const [height, width] =
|
|
10009
|
+
const [height, width] = props5.boxSize.split(" ");
|
|
10005
10010
|
return {
|
|
10006
10011
|
...(0, import_scratch.getSpacingByKey)(height, "height"),
|
|
10007
10012
|
...(0, import_scratch.getSpacingByKey)(width || height, "width")
|
|
10008
10013
|
};
|
|
10009
10014
|
},
|
|
10010
|
-
maxWidth: ({ props:
|
|
10011
|
-
minWidth: ({ props:
|
|
10012
|
-
widthRange: ({ props:
|
|
10013
|
-
if (typeof
|
|
10015
|
+
maxWidth: ({ props: props5 }) => props5.maxWidth && (0, import_scratch.getSpacingBasedOnRatio)(props5, "maxWidth"),
|
|
10016
|
+
minWidth: ({ props: props5 }) => props5.minWidth && (0, import_scratch.getSpacingBasedOnRatio)(props5, "minWidth"),
|
|
10017
|
+
widthRange: ({ props: props5 }) => {
|
|
10018
|
+
if (typeof props5.widthRange !== "string")
|
|
10014
10019
|
return;
|
|
10015
|
-
const [minWidth, maxWidth] =
|
|
10020
|
+
const [minWidth, maxWidth] = props5.widthRange.split(" ");
|
|
10016
10021
|
return {
|
|
10017
10022
|
...(0, import_scratch.getSpacingByKey)(minWidth, "minWidth"),
|
|
10018
10023
|
...(0, import_scratch.getSpacingByKey)(maxWidth || minWidth, "maxWidth")
|
|
10019
10024
|
};
|
|
10020
10025
|
},
|
|
10021
|
-
maxHeight: ({ props:
|
|
10022
|
-
minHeight: ({ props:
|
|
10023
|
-
heightRange: ({ props:
|
|
10024
|
-
if (typeof
|
|
10026
|
+
maxHeight: ({ props: props5 }) => props5.maxHeight && (0, import_scratch.getSpacingBasedOnRatio)(props5, "maxHeight"),
|
|
10027
|
+
minHeight: ({ props: props5 }) => props5.minHeight && (0, import_scratch.getSpacingBasedOnRatio)(props5, "minHeight"),
|
|
10028
|
+
heightRange: ({ props: props5 }) => {
|
|
10029
|
+
if (typeof props5.heightRange !== "string")
|
|
10025
10030
|
return;
|
|
10026
|
-
const [minHeight, maxHeight] =
|
|
10031
|
+
const [minHeight, maxHeight] = props5.heightRange.split(" ");
|
|
10027
10032
|
return {
|
|
10028
10033
|
...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
|
|
10029
10034
|
...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
|
|
10030
10035
|
};
|
|
10031
10036
|
},
|
|
10032
|
-
direction: ({ props:
|
|
10033
|
-
aspectRatio: ({ props:
|
|
10034
|
-
borderWidth: ({ props:
|
|
10035
|
-
padding: ({ props:
|
|
10036
|
-
paddingInline: ({ props:
|
|
10037
|
-
if (typeof
|
|
10037
|
+
direction: ({ props: props5 }) => props5.direction && { direction: props5.direction },
|
|
10038
|
+
aspectRatio: ({ props: props5 }) => props5.aspectRatio && { aspectRatio: props5.aspectRatio },
|
|
10039
|
+
borderWidth: ({ props: props5 }) => props5.borderWidth ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "borderWidth") : null,
|
|
10040
|
+
padding: ({ props: props5 }) => props5.padding ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "padding") : null,
|
|
10041
|
+
paddingInline: ({ props: props5 }) => {
|
|
10042
|
+
if (typeof props5.paddingInline !== "string")
|
|
10038
10043
|
return;
|
|
10039
|
-
const [paddingInlineStart, paddingInlineEnd] =
|
|
10044
|
+
const [paddingInlineStart, paddingInlineEnd] = props5.paddingInline.split(" ");
|
|
10040
10045
|
return {
|
|
10041
10046
|
...(0, import_scratch.getSpacingByKey)(paddingInlineStart, "paddingInlineStart"),
|
|
10042
10047
|
...(0, import_scratch.getSpacingByKey)(paddingInlineEnd || paddingInlineStart, "paddingInlineEnd")
|
|
10043
10048
|
};
|
|
10044
10049
|
},
|
|
10045
|
-
paddingBlock: ({ props:
|
|
10046
|
-
if (typeof
|
|
10050
|
+
paddingBlock: ({ props: props5 }) => {
|
|
10051
|
+
if (typeof props5.paddingBlock !== "string")
|
|
10047
10052
|
return;
|
|
10048
|
-
const [paddingBlockStart, paddingBlockEnd] =
|
|
10053
|
+
const [paddingBlockStart, paddingBlockEnd] = props5.paddingBlock.split(" ");
|
|
10049
10054
|
return {
|
|
10050
10055
|
...(0, import_scratch.getSpacingByKey)(paddingBlockStart, "paddingBlockStart"),
|
|
10051
10056
|
...(0, import_scratch.getSpacingByKey)(paddingBlockEnd || paddingBlockStart, "paddingBlockEnd")
|
|
10052
10057
|
};
|
|
10053
10058
|
},
|
|
10054
|
-
paddingInlineStart: ({ props:
|
|
10055
|
-
paddingInlineEnd: ({ props:
|
|
10056
|
-
paddingBlockStart: ({ props:
|
|
10057
|
-
paddingBlockEnd: ({ props:
|
|
10058
|
-
margin: ({ props:
|
|
10059
|
-
marginInline: ({ props:
|
|
10060
|
-
if (typeof
|
|
10059
|
+
paddingInlineStart: ({ props: props5 }) => props5.paddingInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "paddingInlineStart") : null,
|
|
10060
|
+
paddingInlineEnd: ({ props: props5 }) => props5.paddingInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "paddingInlineEnd") : null,
|
|
10061
|
+
paddingBlockStart: ({ props: props5 }) => props5.paddingBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "paddingBlockStart") : null,
|
|
10062
|
+
paddingBlockEnd: ({ props: props5 }) => props5.paddingBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "paddingBlockEnd") : null,
|
|
10063
|
+
margin: ({ props: props5 }) => props5.margin ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "margin") : null,
|
|
10064
|
+
marginInline: ({ props: props5 }) => {
|
|
10065
|
+
if (typeof props5.marginInline !== "string")
|
|
10061
10066
|
return;
|
|
10062
|
-
const [marginInlineStart, marginInlineEnd] =
|
|
10067
|
+
const [marginInlineStart, marginInlineEnd] = props5.marginInline.split(" ");
|
|
10063
10068
|
return {
|
|
10064
10069
|
...(0, import_scratch.getSpacingByKey)(marginInlineStart, "marginInlineStart"),
|
|
10065
10070
|
...(0, import_scratch.getSpacingByKey)(marginInlineEnd || marginInlineStart, "marginInlineEnd")
|
|
10066
10071
|
};
|
|
10067
10072
|
},
|
|
10068
|
-
marginBlock: ({ props:
|
|
10069
|
-
if (typeof
|
|
10073
|
+
marginBlock: ({ props: props5 }) => {
|
|
10074
|
+
if (typeof props5.marginBlock !== "string")
|
|
10070
10075
|
return;
|
|
10071
|
-
const [marginBlockStart, marginBlockEnd] =
|
|
10076
|
+
const [marginBlockStart, marginBlockEnd] = props5.marginBlock.split(" ");
|
|
10072
10077
|
return {
|
|
10073
10078
|
...(0, import_scratch.getSpacingByKey)(marginBlockStart, "marginBlockStart"),
|
|
10074
10079
|
...(0, import_scratch.getSpacingByKey)(marginBlockEnd || marginBlockStart, "marginBlockEnd")
|
|
10075
10080
|
};
|
|
10076
10081
|
},
|
|
10077
|
-
marginInlineStart: ({ props:
|
|
10078
|
-
marginInlineEnd: ({ props:
|
|
10079
|
-
marginBlockStart: ({ props:
|
|
10080
|
-
marginBlockEnd: ({ props:
|
|
10081
|
-
gap: ({ props:
|
|
10082
|
-
gap: (0, import_scratch.transfromGap)(
|
|
10082
|
+
marginInlineStart: ({ props: props5 }) => props5.marginInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "marginInlineStart") : null,
|
|
10083
|
+
marginInlineEnd: ({ props: props5 }) => props5.marginInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "marginInlineEnd") : null,
|
|
10084
|
+
marginBlockStart: ({ props: props5 }) => props5.marginBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "marginBlockStart") : null,
|
|
10085
|
+
marginBlockEnd: ({ props: props5 }) => props5.marginBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "marginBlockEnd") : null,
|
|
10086
|
+
gap: ({ props: props5 }) => props5.gap ? {
|
|
10087
|
+
gap: (0, import_scratch.transfromGap)(props5.gap)
|
|
10083
10088
|
} : 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:
|
|
10089
|
+
gridArea: ({ props: props5 }) => props5.gridArea && { gridArea: props5.gridArea },
|
|
10090
|
+
flex: ({ props: props5 }) => props5.flex && { flex: props5.flex },
|
|
10091
|
+
flexDirection: ({ props: props5 }) => props5.flexDirection && { flexDirection: props5.flexDirection },
|
|
10092
|
+
alignItems: ({ props: props5 }) => props5.alignItems && { alignItems: props5.alignItems },
|
|
10093
|
+
alignContent: ({ props: props5 }) => props5.alignContent && { alignContent: props5.alignContent },
|
|
10094
|
+
justifyContent: ({ props: props5 }) => props5.justifyContent && { justifyContent: props5.justifyContent },
|
|
10095
|
+
justifyItems: ({ props: props5 }) => props5.justifyItems && { justifyItems: props5.justifyItems },
|
|
10096
|
+
alignSelf: ({ props: props5 }) => props5.alignSelf && { alignSelf: props5.alignSelf },
|
|
10097
|
+
order: ({ props: props5 }) => props5.order && { order: props5.order },
|
|
10098
|
+
flexWrap: ({ props: props5 }) => props5.flexWrap && {
|
|
10094
10099
|
display: "flex",
|
|
10095
|
-
flexFlow:
|
|
10100
|
+
flexFlow: props5.flexWrap
|
|
10096
10101
|
},
|
|
10097
|
-
flexFlow: ({ props:
|
|
10102
|
+
flexFlow: ({ props: props5 }) => props5.flexFlow && {
|
|
10098
10103
|
display: "flex",
|
|
10099
|
-
flexFlow:
|
|
10104
|
+
flexFlow: props5.flexFlow
|
|
10100
10105
|
},
|
|
10101
|
-
flexAlign: ({ props:
|
|
10102
|
-
if (typeof
|
|
10106
|
+
flexAlign: ({ props: props5 }) => {
|
|
10107
|
+
if (typeof props5.flexAlign !== "string")
|
|
10103
10108
|
return;
|
|
10104
|
-
const [alignItems, justifyContent] =
|
|
10109
|
+
const [alignItems, justifyContent] = props5.flexAlign.split(" ");
|
|
10105
10110
|
return {
|
|
10106
10111
|
display: "flex",
|
|
10107
10112
|
alignItems,
|
|
10108
10113
|
justifyContent
|
|
10109
10114
|
};
|
|
10110
10115
|
},
|
|
10111
|
-
gridColumn: ({ props:
|
|
10112
|
-
gridColumnStart: ({ props:
|
|
10113
|
-
gridColumnStart:
|
|
10116
|
+
gridColumn: ({ props: props5 }) => props5.gridColumn && { gridColumn: props5.gridColumn },
|
|
10117
|
+
gridColumnStart: ({ props: props5 }) => props5.columnStart ? {
|
|
10118
|
+
gridColumnStart: props5.columnStart
|
|
10114
10119
|
} : null,
|
|
10115
|
-
gridRow: ({ props:
|
|
10116
|
-
gridRowStart: ({ props:
|
|
10117
|
-
size: ({ props:
|
|
10118
|
-
if (typeof
|
|
10120
|
+
gridRow: ({ props: props5 }) => props5.gridRow && { gridRow: props5.gridRow },
|
|
10121
|
+
gridRowStart: ({ props: props5 }) => props5.rowStart ? { gridRowStart: props5.rowStart } : null,
|
|
10122
|
+
size: ({ props: props5 }) => {
|
|
10123
|
+
if (typeof props5.heightRange !== "string")
|
|
10119
10124
|
return;
|
|
10120
|
-
const [minHeight, maxHeight] =
|
|
10125
|
+
const [minHeight, maxHeight] = props5.heightRange.split(" ");
|
|
10121
10126
|
return {
|
|
10122
10127
|
...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
|
|
10123
10128
|
...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
|
|
10124
10129
|
};
|
|
10125
10130
|
},
|
|
10126
|
-
columns: ({ props:
|
|
10127
|
-
columnGap: ({ props:
|
|
10128
|
-
columnSpan: ({ props:
|
|
10129
|
-
columnFill: ({ props:
|
|
10130
|
-
columnCount: ({ props:
|
|
10131
|
+
columns: ({ props: props5 }) => props5.columns && { columns: props5.columns },
|
|
10132
|
+
columnGap: ({ props: props5 }) => props5.columnGap ? (0, import_scratch.getSpacingBasedOnRatio)(props5, "columnGap") : null,
|
|
10133
|
+
columnSpan: ({ props: props5 }) => props5.columnSpan && { columns: props5.columnSpan },
|
|
10134
|
+
columnFill: ({ props: props5 }) => props5.columnFill && { columns: props5.columnFill },
|
|
10135
|
+
columnCount: ({ props: props5 }) => props5.columnCount && { columns: props5.columnCount }
|
|
10131
10136
|
}
|
|
10132
10137
|
};
|
|
10133
10138
|
var Span = { tag: "span" };
|
|
@@ -10142,7 +10147,7 @@ var Direction = {
|
|
|
10142
10147
|
direction: "ltr"
|
|
10143
10148
|
},
|
|
10144
10149
|
class: {
|
|
10145
|
-
direction: ({ props:
|
|
10150
|
+
direction: ({ props: props5 }) => ({ direction: props5.direction })
|
|
10146
10151
|
}
|
|
10147
10152
|
};
|
|
10148
10153
|
|
|
@@ -10152,12 +10157,12 @@ var Flex = {
|
|
|
10152
10157
|
display: "flex"
|
|
10153
10158
|
},
|
|
10154
10159
|
class: {
|
|
10155
|
-
flow: ({ props:
|
|
10156
|
-
wrap: ({ props:
|
|
10157
|
-
align: ({ props:
|
|
10158
|
-
if (typeof
|
|
10160
|
+
flow: ({ props: props5 }) => props5.flow && { flexFlow: props5.flow },
|
|
10161
|
+
wrap: ({ props: props5 }) => props5.wrap && { flexWrap: props5.wrap },
|
|
10162
|
+
align: ({ props: props5 }) => {
|
|
10163
|
+
if (typeof props5.align !== "string")
|
|
10159
10164
|
return;
|
|
10160
|
-
const [alignItems, justifyContent] =
|
|
10165
|
+
const [alignItems, justifyContent] = props5.align.split(" ");
|
|
10161
10166
|
return { alignItems, justifyContent };
|
|
10162
10167
|
}
|
|
10163
10168
|
}
|
|
@@ -10168,22 +10173,22 @@ var import_scratch2 = __toESM(require_cjs());
|
|
|
10168
10173
|
var Grid = {
|
|
10169
10174
|
props: { display: "grid" },
|
|
10170
10175
|
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:
|
|
10176
|
+
area: ({ props: props5 }) => props5.area ? { gridArea: props5.area } : null,
|
|
10177
|
+
template: ({ props: props5 }) => props5.template ? { gridTemplate: props5.template } : null,
|
|
10178
|
+
templateAreas: ({ props: props5 }) => props5.templateAreas ? { gridTemplateAreas: props5.templateAreas } : null,
|
|
10179
|
+
column: ({ props: props5 }) => props5.column ? { gridColumn: props5.column } : null,
|
|
10180
|
+
columns: ({ props: props5 }) => props5.columns ? { gridTemplateColumns: props5.columns } : null,
|
|
10181
|
+
templateColumns: ({ props: props5 }) => props5.templateColumns ? { gridTemplateColumns: props5.templateColumns } : null,
|
|
10182
|
+
autoColumns: ({ props: props5 }) => props5.autoColumns ? { gridAutoColumns: props5.autoColumns } : null,
|
|
10183
|
+
columnStart: ({ props: props5 }) => props5.columnStart ? { gridColumnStart: props5.columnStart } : null,
|
|
10184
|
+
row: ({ props: props5 }) => props5.row ? { gridRow: props5.row } : null,
|
|
10185
|
+
rows: ({ props: props5 }) => props5.rows ? { gridTemplateRows: props5.rows } : null,
|
|
10186
|
+
templateRows: ({ props: props5 }) => props5.templateRows ? { gridTemplateRows: props5.templateRows } : null,
|
|
10187
|
+
autoRows: ({ props: props5 }) => props5.autoRows ? { gridAutoRows: props5.autoRows } : null,
|
|
10188
|
+
rowStart: ({ props: props5 }) => props5.rowStart ? { gridRowStart: props5.rowStart } : null,
|
|
10189
|
+
autoFlow: ({ props: props5 }) => props5.autoFlow ? { gridAutoFlow: props5.autoFlow } : null,
|
|
10190
|
+
columnGap: ({ props: props5 }) => props5.columnGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props5, "columnGap") : null,
|
|
10191
|
+
rowGap: ({ props: props5 }) => props5.rowGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props5, "rowGap") : null
|
|
10187
10192
|
}
|
|
10188
10193
|
};
|
|
10189
10194
|
|
|
@@ -10196,9 +10201,9 @@ var Img = {
|
|
|
10196
10201
|
title: ""
|
|
10197
10202
|
},
|
|
10198
10203
|
attr: {
|
|
10199
|
-
src: ({ props:
|
|
10200
|
-
alt: ({ props:
|
|
10201
|
-
title: ({ props:
|
|
10204
|
+
src: ({ props: props5 }) => props5.src,
|
|
10205
|
+
alt: ({ props: props5 }) => props5.alt,
|
|
10206
|
+
title: ({ props: props5 }) => props5.title || props5.alt
|
|
10202
10207
|
}
|
|
10203
10208
|
};
|
|
10204
10209
|
|
|
@@ -10207,9 +10212,9 @@ var Form = {
|
|
|
10207
10212
|
tag: "form",
|
|
10208
10213
|
props: {},
|
|
10209
10214
|
attr: {
|
|
10210
|
-
action: ({ props:
|
|
10211
|
-
method: ({ props:
|
|
10212
|
-
enctype: ({ props:
|
|
10215
|
+
action: ({ props: props5 }) => props5.action,
|
|
10216
|
+
method: ({ props: props5 }) => props5.method,
|
|
10217
|
+
enctype: ({ props: props5 }) => props5.enctype
|
|
10213
10218
|
}
|
|
10214
10219
|
};
|
|
10215
10220
|
|
|
@@ -10226,24 +10231,24 @@ var import_scratch4 = __toESM(require_cjs());
|
|
|
10226
10231
|
var import_scratch3 = __toESM(require_cjs());
|
|
10227
10232
|
var Timing = {
|
|
10228
10233
|
class: {
|
|
10229
|
-
transition: ({ props:
|
|
10230
|
-
transition: (0, import_scratch3.splitTransition)(
|
|
10234
|
+
transition: ({ props: props5 }) => props5.transition && {
|
|
10235
|
+
transition: (0, import_scratch3.splitTransition)(props5.transition)
|
|
10231
10236
|
},
|
|
10232
|
-
willChange: ({ props:
|
|
10233
|
-
willChange:
|
|
10237
|
+
willChange: ({ props: props5 }) => props5.willChange && {
|
|
10238
|
+
willChange: props5.willChange
|
|
10234
10239
|
},
|
|
10235
|
-
transitionDuration: ({ props:
|
|
10236
|
-
transitionDuration: (0, import_scratch3.transformDuration)(
|
|
10240
|
+
transitionDuration: ({ props: props5 }) => props5.transitionDuration && {
|
|
10241
|
+
transitionDuration: (0, import_scratch3.transformDuration)(props5.transitionDuration)
|
|
10237
10242
|
},
|
|
10238
|
-
transitionDelay: ({ props:
|
|
10239
|
-
transitionDelay: (0, import_scratch3.transformDuration)(
|
|
10243
|
+
transitionDelay: ({ props: props5 }) => props5.transitionDelay && {
|
|
10244
|
+
transitionDelay: (0, import_scratch3.transformDuration)(props5.transitionDelay)
|
|
10240
10245
|
},
|
|
10241
|
-
transitionTimingFunction: ({ props:
|
|
10242
|
-
transitionTimingFunction: (0, import_scratch3.getTimingFunction)(
|
|
10246
|
+
transitionTimingFunction: ({ props: props5 }) => props5.transitionTimingFunction && {
|
|
10247
|
+
transitionTimingFunction: (0, import_scratch3.getTimingFunction)(props5.transitionTimingFunction)
|
|
10243
10248
|
},
|
|
10244
|
-
transitionProperty: ({ props:
|
|
10245
|
-
transitionProperty:
|
|
10246
|
-
willChange:
|
|
10249
|
+
transitionProperty: ({ props: props5 }) => props5.transitionProperty && {
|
|
10250
|
+
transitionProperty: props5.transitionProperty,
|
|
10251
|
+
willChange: props5.transitionProperty
|
|
10247
10252
|
}
|
|
10248
10253
|
}
|
|
10249
10254
|
};
|
|
@@ -10258,11 +10263,11 @@ var depth = {
|
|
|
10258
10263
|
26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG.UNIT.default} 26${CONFIG.UNIT.default}` },
|
|
10259
10264
|
42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG.UNIT.default} 42${CONFIG.UNIT.default}` }
|
|
10260
10265
|
};
|
|
10261
|
-
var getComputedBackgroundColor = ({ props:
|
|
10262
|
-
return (0, import_scratch4.getColor)(
|
|
10266
|
+
var getComputedBackgroundColor = ({ props: props5 }) => {
|
|
10267
|
+
return (0, import_scratch4.getColor)(props5.shapeDirectionColor) || (0, import_scratch4.getColor)(props5.borderColor) || (0, import_scratch4.getColor)(props5.backgroundColor) || (0, import_scratch4.getColor)(props5.background);
|
|
10263
10268
|
};
|
|
10264
|
-
var inheritTransition = ({ props:
|
|
10265
|
-
const exec5 = Timing.class.transition({ props:
|
|
10269
|
+
var inheritTransition = ({ props: props5 }) => {
|
|
10270
|
+
const exec5 = Timing.class.transition({ props: props5 });
|
|
10266
10271
|
return exec5 && exec5.transition;
|
|
10267
10272
|
};
|
|
10268
10273
|
var SHAPES = {
|
|
@@ -10272,16 +10277,16 @@ var SHAPES = {
|
|
|
10272
10277
|
tv: {
|
|
10273
10278
|
borderRadius: "1.15em/2.5em"
|
|
10274
10279
|
},
|
|
10275
|
-
tooltip: ({ props:
|
|
10276
|
-
position:
|
|
10280
|
+
tooltip: ({ props: props5 }) => ({
|
|
10281
|
+
position: props5.position || "relative",
|
|
10277
10282
|
"&:before": {
|
|
10278
10283
|
content: '""',
|
|
10279
10284
|
display: "block",
|
|
10280
10285
|
width: "0px",
|
|
10281
10286
|
height: "0px",
|
|
10282
10287
|
border: ".35em solid",
|
|
10283
|
-
borderColor: getComputedBackgroundColor({ props:
|
|
10284
|
-
transition: inheritTransition({ props:
|
|
10288
|
+
borderColor: getComputedBackgroundColor({ props: props5 }),
|
|
10289
|
+
transition: inheritTransition({ props: props5 }),
|
|
10285
10290
|
transitionProperty: "border-color",
|
|
10286
10291
|
position: "absolute",
|
|
10287
10292
|
borderRadius: ".15em"
|
|
@@ -10317,13 +10322,13 @@ var SHAPES = {
|
|
|
10317
10322
|
}
|
|
10318
10323
|
}
|
|
10319
10324
|
},
|
|
10320
|
-
tag: ({ props:
|
|
10325
|
+
tag: ({ props: props5 }) => ({
|
|
10321
10326
|
position: "relative",
|
|
10322
10327
|
"&:before": {
|
|
10323
10328
|
content: '""',
|
|
10324
10329
|
display: "block",
|
|
10325
|
-
background: getComputedBackgroundColor({ props:
|
|
10326
|
-
transition: inheritTransition({ props:
|
|
10330
|
+
background: getComputedBackgroundColor({ props: props5 }),
|
|
10331
|
+
transition: inheritTransition({ props: props5 }),
|
|
10327
10332
|
transitionProperty: "background",
|
|
10328
10333
|
borderRadius: ".25em",
|
|
10329
10334
|
position: "absolute",
|
|
@@ -10364,7 +10369,7 @@ var SHAPES = {
|
|
|
10364
10369
|
}
|
|
10365
10370
|
}
|
|
10366
10371
|
},
|
|
10367
|
-
hexagon: ({ props:
|
|
10372
|
+
hexagon: ({ props: props5 }) => ({
|
|
10368
10373
|
position: "relative",
|
|
10369
10374
|
"&:before, &:after": {
|
|
10370
10375
|
content: '""',
|
|
@@ -10376,8 +10381,8 @@ var SHAPES = {
|
|
|
10376
10381
|
top: "50%",
|
|
10377
10382
|
transformOrigin: "50% 50%",
|
|
10378
10383
|
height: "73%",
|
|
10379
|
-
background: getComputedBackgroundColor({ props:
|
|
10380
|
-
transition: inheritTransition({ props:
|
|
10384
|
+
background: getComputedBackgroundColor({ props: props5 }),
|
|
10385
|
+
transition: inheritTransition({ props: props5 }),
|
|
10381
10386
|
transitionProperty: "background"
|
|
10382
10387
|
},
|
|
10383
10388
|
"&:before": {
|
|
@@ -10389,7 +10394,7 @@ var SHAPES = {
|
|
|
10389
10394
|
transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
|
|
10390
10395
|
}
|
|
10391
10396
|
}),
|
|
10392
|
-
chevron: ({ props:
|
|
10397
|
+
chevron: ({ props: props5 }) => ({
|
|
10393
10398
|
position: "relative",
|
|
10394
10399
|
// overflow: 'hidden',
|
|
10395
10400
|
"&:before, &:after": {
|
|
@@ -10400,14 +10405,14 @@ var SHAPES = {
|
|
|
10400
10405
|
aspectRatio: "1/1",
|
|
10401
10406
|
top: "50%",
|
|
10402
10407
|
transformOrigin: "50% 50%",
|
|
10403
|
-
transition: inheritTransition({ props:
|
|
10408
|
+
transition: inheritTransition({ props: props5 }),
|
|
10404
10409
|
transitionProperty: "background"
|
|
10405
10410
|
},
|
|
10406
10411
|
"&:before": {
|
|
10407
|
-
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props:
|
|
10412
|
+
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props5 })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props5 })} 25%, transparent 25%)`
|
|
10408
10413
|
},
|
|
10409
10414
|
"&:after": {
|
|
10410
|
-
background: getComputedBackgroundColor({ props:
|
|
10415
|
+
background: getComputedBackgroundColor({ props: props5 }),
|
|
10411
10416
|
borderRadius: ".25em"
|
|
10412
10417
|
}
|
|
10413
10418
|
}),
|
|
@@ -10446,153 +10451,153 @@ var getSystemTheme = ({ context, state }) => {
|
|
|
10446
10451
|
};
|
|
10447
10452
|
var Theme = {
|
|
10448
10453
|
class: {
|
|
10449
|
-
depth: ({ props:
|
|
10454
|
+
depth: ({ props: props5 }) => props5.depth && depth[props5.depth],
|
|
10450
10455
|
theme: (element) => {
|
|
10451
|
-
const { props:
|
|
10456
|
+
const { props: props5 } = element;
|
|
10452
10457
|
const globalTheme = getSystemTheme(element);
|
|
10453
|
-
if (!
|
|
10458
|
+
if (!props5.theme)
|
|
10454
10459
|
return;
|
|
10455
|
-
return (0, import_scratch5.getMediaTheme)(
|
|
10460
|
+
return (0, import_scratch5.getMediaTheme)(props5.theme, `@${props5.themeModifier || globalTheme}`);
|
|
10456
10461
|
},
|
|
10457
10462
|
color: (element) => {
|
|
10458
|
-
const { props:
|
|
10463
|
+
const { props: props5 } = element;
|
|
10459
10464
|
const globalTheme = getSystemTheme(element);
|
|
10460
|
-
if (!
|
|
10465
|
+
if (!props5.color)
|
|
10461
10466
|
return;
|
|
10462
10467
|
return {
|
|
10463
|
-
color: (0, import_scratch5.getMediaColor)(
|
|
10468
|
+
color: (0, import_scratch5.getMediaColor)(props5.color, globalTheme)
|
|
10464
10469
|
};
|
|
10465
10470
|
},
|
|
10466
10471
|
background: (element) => {
|
|
10467
|
-
const { props:
|
|
10472
|
+
const { props: props5 } = element;
|
|
10468
10473
|
const globalTheme = getSystemTheme(element);
|
|
10469
|
-
if (!
|
|
10474
|
+
if (!props5.background)
|
|
10470
10475
|
return;
|
|
10471
10476
|
return {
|
|
10472
|
-
background: (0, import_scratch5.getMediaColor)(
|
|
10477
|
+
background: (0, import_scratch5.getMediaColor)(props5.background, globalTheme)
|
|
10473
10478
|
};
|
|
10474
10479
|
},
|
|
10475
10480
|
backgroundColor: (element) => {
|
|
10476
|
-
const { props:
|
|
10481
|
+
const { props: props5 } = element;
|
|
10477
10482
|
const globalTheme = getSystemTheme(element);
|
|
10478
|
-
if (!
|
|
10483
|
+
if (!props5.backgroundColor)
|
|
10479
10484
|
return;
|
|
10480
10485
|
return {
|
|
10481
|
-
backgroundColor: (0, import_scratch5.getMediaColor)(
|
|
10486
|
+
backgroundColor: (0, import_scratch5.getMediaColor)(props5.backgroundColor, globalTheme)
|
|
10482
10487
|
};
|
|
10483
10488
|
},
|
|
10484
10489
|
backgroundImage: (element) => {
|
|
10485
|
-
const { props:
|
|
10490
|
+
const { props: props5 } = element;
|
|
10486
10491
|
const globalTheme = getSystemTheme(element);
|
|
10487
|
-
if (!
|
|
10492
|
+
if (!props5.backgroundImage)
|
|
10488
10493
|
return;
|
|
10489
10494
|
return {
|
|
10490
|
-
backgroundImage: (0, import_scratch5.transformBackgroundImage)(
|
|
10495
|
+
backgroundImage: (0, import_scratch5.transformBackgroundImage)(props5.backgroundImage, globalTheme)
|
|
10491
10496
|
};
|
|
10492
10497
|
},
|
|
10493
|
-
backgroundSize: ({ props:
|
|
10494
|
-
backgroundSize:
|
|
10498
|
+
backgroundSize: ({ props: props5 }) => props5.backgroundSize ? {
|
|
10499
|
+
backgroundSize: props5.backgroundSize
|
|
10495
10500
|
} : null,
|
|
10496
|
-
backgroundPosition: ({ props:
|
|
10497
|
-
backgroundPosition:
|
|
10501
|
+
backgroundPosition: ({ props: props5 }) => props5.backgroundPosition ? {
|
|
10502
|
+
backgroundPosition: props5.backgroundPosition
|
|
10498
10503
|
} : null,
|
|
10499
|
-
textStroke: ({ props:
|
|
10500
|
-
WebkitTextStroke: (0, import_scratch5.transformTextStroke)(
|
|
10504
|
+
textStroke: ({ props: props5 }) => props5.textStroke ? {
|
|
10505
|
+
WebkitTextStroke: (0, import_scratch5.transformTextStroke)(props5.textStroke)
|
|
10501
10506
|
} : null,
|
|
10502
|
-
outline: ({ props:
|
|
10503
|
-
outline: (0, import_scratch5.transformBorder)(
|
|
10507
|
+
outline: ({ props: props5 }) => props5.outline && {
|
|
10508
|
+
outline: (0, import_scratch5.transformBorder)(props5.outline)
|
|
10504
10509
|
},
|
|
10505
|
-
border: ({ props:
|
|
10506
|
-
border: (0, import_scratch5.transformBorder)(
|
|
10510
|
+
border: ({ props: props5 }) => props5.border && {
|
|
10511
|
+
border: (0, import_scratch5.transformBorder)(props5.border)
|
|
10507
10512
|
},
|
|
10508
|
-
borderColor: ({ props:
|
|
10509
|
-
borderColor: (0, import_scratch5.getMediaColor)(
|
|
10513
|
+
borderColor: ({ props: props5 }) => props5.borderColor && {
|
|
10514
|
+
borderColor: (0, import_scratch5.getMediaColor)(props5.borderColor)
|
|
10510
10515
|
},
|
|
10511
|
-
borderStyle: ({ props:
|
|
10512
|
-
borderStyle:
|
|
10516
|
+
borderStyle: ({ props: props5 }) => props5.borderStyle && {
|
|
10517
|
+
borderStyle: props5.borderStyle
|
|
10513
10518
|
},
|
|
10514
|
-
borderLeft: ({ props:
|
|
10515
|
-
borderLeft: (0, import_scratch5.transformBorder)(
|
|
10519
|
+
borderLeft: ({ props: props5 }) => props5.borderLeft && {
|
|
10520
|
+
borderLeft: (0, import_scratch5.transformBorder)(props5.borderLeft)
|
|
10516
10521
|
},
|
|
10517
|
-
borderTop: ({ props:
|
|
10518
|
-
borderTop: (0, import_scratch5.transformBorder)(
|
|
10522
|
+
borderTop: ({ props: props5 }) => props5.borderTop && {
|
|
10523
|
+
borderTop: (0, import_scratch5.transformBorder)(props5.borderTop)
|
|
10519
10524
|
},
|
|
10520
|
-
borderRight: ({ props:
|
|
10521
|
-
borderRight: (0, import_scratch5.transformBorder)(
|
|
10525
|
+
borderRight: ({ props: props5 }) => props5.borderRight && {
|
|
10526
|
+
borderRight: (0, import_scratch5.transformBorder)(props5.borderRight)
|
|
10522
10527
|
},
|
|
10523
|
-
borderBottom: ({ props:
|
|
10524
|
-
borderBottom: (0, import_scratch5.transformBorder)(
|
|
10528
|
+
borderBottom: ({ props: props5 }) => props5.borderBottom && {
|
|
10529
|
+
borderBottom: (0, import_scratch5.transformBorder)(props5.borderBottom)
|
|
10525
10530
|
},
|
|
10526
|
-
boxShadow: ({ props:
|
|
10527
|
-
boxShadow: (0, import_scratch5.transformShadow)(
|
|
10531
|
+
boxShadow: ({ props: props5 }) => props5.boxShadow && {
|
|
10532
|
+
boxShadow: (0, import_scratch5.transformShadow)(props5.boxShadow)
|
|
10528
10533
|
},
|
|
10529
|
-
textShadow: ({ props:
|
|
10530
|
-
textShadow: (0, import_scratch5.transformShadow)(
|
|
10534
|
+
textShadow: ({ props: props5 }) => props5.textShadow && {
|
|
10535
|
+
textShadow: (0, import_scratch5.transformShadow)(props5.textShadow)
|
|
10531
10536
|
},
|
|
10532
|
-
opacity: ({ props:
|
|
10533
|
-
opacity:
|
|
10537
|
+
opacity: ({ props: props5 }) => props5.opacity && {
|
|
10538
|
+
opacity: props5.opacity
|
|
10534
10539
|
},
|
|
10535
|
-
visibility: ({ props:
|
|
10536
|
-
visibility:
|
|
10540
|
+
visibility: ({ props: props5 }) => props5.visibility && {
|
|
10541
|
+
visibility: props5.visibility
|
|
10537
10542
|
},
|
|
10538
|
-
columnRule: ({ props:
|
|
10539
|
-
columnRule: (0, import_scratch5.transformBorder)(
|
|
10543
|
+
columnRule: ({ props: props5 }) => props5.columnRule && {
|
|
10544
|
+
columnRule: (0, import_scratch5.transformBorder)(props5.columnRule)
|
|
10540
10545
|
}
|
|
10541
10546
|
}
|
|
10542
10547
|
};
|
|
10543
10548
|
|
|
10544
10549
|
// Atoms/Media.js
|
|
10545
10550
|
var keySetters = {
|
|
10546
|
-
"@": (key,
|
|
10551
|
+
"@": (key, props5, result, element, isSubtree) => applyMediaProps(
|
|
10547
10552
|
key,
|
|
10548
|
-
|
|
10553
|
+
props5,
|
|
10549
10554
|
isSubtree ? result : result && result.media,
|
|
10550
10555
|
element
|
|
10551
10556
|
),
|
|
10552
|
-
":": (key,
|
|
10557
|
+
":": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
10553
10558
|
key,
|
|
10554
|
-
|
|
10559
|
+
props5,
|
|
10555
10560
|
isSubtree ? result : result && result.selector,
|
|
10556
10561
|
element
|
|
10557
10562
|
),
|
|
10558
|
-
"[": (key,
|
|
10563
|
+
"[": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
10559
10564
|
key,
|
|
10560
|
-
|
|
10565
|
+
props5,
|
|
10561
10566
|
isSubtree ? result : result && result.selector,
|
|
10562
10567
|
element
|
|
10563
10568
|
),
|
|
10564
|
-
"&": (key,
|
|
10569
|
+
"&": (key, props5, result, element, isSubtree) => applySelectorProps(
|
|
10565
10570
|
key,
|
|
10566
|
-
|
|
10571
|
+
props5,
|
|
10567
10572
|
isSubtree ? result : result && result.selector,
|
|
10568
10573
|
element
|
|
10569
10574
|
),
|
|
10570
|
-
$: (key,
|
|
10575
|
+
$: (key, props5, result, element, isSubtree) => applyCaseProps(
|
|
10571
10576
|
key,
|
|
10572
|
-
|
|
10577
|
+
props5,
|
|
10573
10578
|
isSubtree ? result : result && result.case,
|
|
10574
10579
|
element
|
|
10575
10580
|
),
|
|
10576
|
-
".": (key,
|
|
10581
|
+
".": (key, props5, result, element, isSubtree) => applyConditionalCaseProps(
|
|
10577
10582
|
key,
|
|
10578
|
-
|
|
10583
|
+
props5,
|
|
10579
10584
|
isSubtree ? result : result && result.case,
|
|
10580
10585
|
element
|
|
10581
10586
|
),
|
|
10582
|
-
"!": (key,
|
|
10587
|
+
"!": (key, props5, result, element, isSubtree) => applyConditionalFalsyProps(
|
|
10583
10588
|
key,
|
|
10584
|
-
|
|
10589
|
+
props5,
|
|
10585
10590
|
isSubtree ? result : result && result.case,
|
|
10586
10591
|
element
|
|
10587
10592
|
)
|
|
10588
10593
|
};
|
|
10589
|
-
var execClass = (key,
|
|
10594
|
+
var execClass = (key, props5, result, element) => {
|
|
10590
10595
|
const { class: className } = element;
|
|
10591
10596
|
const classnameExec = className[key];
|
|
10592
10597
|
if (typeof classnameExec !== "function")
|
|
10593
10598
|
return;
|
|
10594
10599
|
let classExec = classnameExec({
|
|
10595
|
-
props:
|
|
10600
|
+
props: props5,
|
|
10596
10601
|
context: element.context,
|
|
10597
10602
|
state: element.state
|
|
10598
10603
|
});
|
|
@@ -10604,27 +10609,27 @@ var execClass = (key, props4, result, element) => {
|
|
|
10604
10609
|
}
|
|
10605
10610
|
return classExec;
|
|
10606
10611
|
};
|
|
10607
|
-
var convertPropsToClass = (
|
|
10612
|
+
var convertPropsToClass = (props5, result, element) => {
|
|
10608
10613
|
const propsClassObj = {};
|
|
10609
|
-
for (const key in
|
|
10614
|
+
for (const key in props5) {
|
|
10610
10615
|
const setter = keySetters[key.slice(0, 1)];
|
|
10611
10616
|
if (setter) {
|
|
10612
|
-
setter(key,
|
|
10617
|
+
setter(key, props5[key], propsClassObj, element, true);
|
|
10613
10618
|
continue;
|
|
10614
10619
|
} else {
|
|
10615
|
-
execClass(key,
|
|
10620
|
+
execClass(key, props5, propsClassObj, element);
|
|
10616
10621
|
}
|
|
10617
10622
|
}
|
|
10618
10623
|
return propsClassObj;
|
|
10619
10624
|
};
|
|
10620
|
-
var applyMediaProps = (key,
|
|
10625
|
+
var applyMediaProps = (key, props5, result, element) => {
|
|
10621
10626
|
const { context } = element;
|
|
10622
10627
|
if (!context.designSystem || !context.designSystem.MEDIA)
|
|
10623
10628
|
return;
|
|
10624
10629
|
const globalTheme = getSystemTheme(element);
|
|
10625
10630
|
const { MEDIA } = context.designSystem;
|
|
10626
10631
|
const mediaName = MEDIA[key.slice(1)];
|
|
10627
|
-
const generatedClass = convertPropsToClass(
|
|
10632
|
+
const generatedClass = convertPropsToClass(props5, result, element);
|
|
10628
10633
|
const name = key.slice(1);
|
|
10629
10634
|
const isTheme = ["dark", "light"].includes(name);
|
|
10630
10635
|
const matchesGlobal = name === globalTheme;
|
|
@@ -10637,49 +10642,49 @@ var applyMediaProps = (key, props4, result, element) => {
|
|
|
10637
10642
|
result[mediaKey] = generatedClass;
|
|
10638
10643
|
return result[mediaKey];
|
|
10639
10644
|
};
|
|
10640
|
-
var applySelectorProps = (key,
|
|
10645
|
+
var applySelectorProps = (key, props5, result, element) => {
|
|
10641
10646
|
const selectorKey = `&${key}`;
|
|
10642
|
-
result[selectorKey] = convertPropsToClass(
|
|
10647
|
+
result[selectorKey] = convertPropsToClass(props5, result, element);
|
|
10643
10648
|
return result[selectorKey];
|
|
10644
10649
|
};
|
|
10645
|
-
var applyCaseProps = (key,
|
|
10650
|
+
var applyCaseProps = (key, props5, result, element) => {
|
|
10646
10651
|
const { CASES } = element.context && element.context.designSystem;
|
|
10647
10652
|
const caseKey = key.slice(1);
|
|
10648
10653
|
const isPropTrue = element.props[caseKey];
|
|
10649
10654
|
if (!CASES[caseKey] && !isPropTrue)
|
|
10650
10655
|
return;
|
|
10651
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10656
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props5, result, element));
|
|
10652
10657
|
};
|
|
10653
|
-
var applyConditionalCaseProps = (key,
|
|
10658
|
+
var applyConditionalCaseProps = (key, props5, result, element) => {
|
|
10654
10659
|
const caseKey = key.slice(1);
|
|
10655
10660
|
const isPropTrue = element.props[caseKey] || element.state[caseKey];
|
|
10656
10661
|
if (!isPropTrue)
|
|
10657
10662
|
return;
|
|
10658
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10663
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props5, result, element));
|
|
10659
10664
|
};
|
|
10660
|
-
var applyConditionalFalsyProps = (key,
|
|
10665
|
+
var applyConditionalFalsyProps = (key, props5, result, element) => {
|
|
10661
10666
|
const caseKey = key.slice(1);
|
|
10662
10667
|
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
|
|
10663
10668
|
if (!isPropTrue)
|
|
10664
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10669
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props5, result, element));
|
|
10665
10670
|
};
|
|
10666
|
-
var applyTrueProps = (
|
|
10671
|
+
var applyTrueProps = (props5, result, element) => (0, import_utils.merge)(result, convertPropsToClass(props5, result, element));
|
|
10667
10672
|
var beforeClassAssign = (element, s) => {
|
|
10668
|
-
const { props:
|
|
10673
|
+
const { props: props5, class: className } = element;
|
|
10669
10674
|
const CLASS_NAMES = {
|
|
10670
10675
|
media: {},
|
|
10671
10676
|
selector: {},
|
|
10672
10677
|
case: {}
|
|
10673
10678
|
};
|
|
10674
|
-
for (const key in
|
|
10679
|
+
for (const key in props5) {
|
|
10675
10680
|
const setter = keySetters[key.slice(0, 1)];
|
|
10676
10681
|
if (setter)
|
|
10677
|
-
setter(key,
|
|
10682
|
+
setter(key, props5[key], CLASS_NAMES, element);
|
|
10678
10683
|
}
|
|
10679
10684
|
(0, import_utils.overwriteShallow)(className, CLASS_NAMES);
|
|
10680
10685
|
};
|
|
10681
10686
|
var initUpdate = (changes, element) => {
|
|
10682
|
-
const { props:
|
|
10687
|
+
const { props: props5, context, class: className } = element;
|
|
10683
10688
|
if (!context)
|
|
10684
10689
|
return;
|
|
10685
10690
|
const globalTheme = context.designSystem.globalTheme;
|
|
@@ -10699,10 +10704,10 @@ var initUpdate = (changes, element) => {
|
|
|
10699
10704
|
selector: {},
|
|
10700
10705
|
case: {}
|
|
10701
10706
|
};
|
|
10702
|
-
for (const key in
|
|
10707
|
+
for (const key in props5) {
|
|
10703
10708
|
const setter = keySetters[key.slice(0, 1)];
|
|
10704
10709
|
if (key === "theme") {
|
|
10705
|
-
|
|
10710
|
+
props5.update({
|
|
10706
10711
|
themeModifier: globalTheme
|
|
10707
10712
|
}, {
|
|
10708
10713
|
preventRecursive: true,
|
|
@@ -10710,9 +10715,9 @@ var initUpdate = (changes, element) => {
|
|
|
10710
10715
|
preventDefineUpdate: true
|
|
10711
10716
|
});
|
|
10712
10717
|
} else if (key === "true")
|
|
10713
|
-
applyTrueProps(
|
|
10718
|
+
applyTrueProps(props5[key], CLASS_NAMES, element);
|
|
10714
10719
|
if (setter)
|
|
10715
|
-
setter(key,
|
|
10720
|
+
setter(key, props5[key], CLASS_NAMES, element);
|
|
10716
10721
|
}
|
|
10717
10722
|
if (Object.keys(CLASS_NAMES.media).length) {
|
|
10718
10723
|
className.media = CLASS_NAMES.media;
|
|
@@ -10741,19 +10746,19 @@ var Iframe = {
|
|
|
10741
10746
|
minHeight: "H"
|
|
10742
10747
|
},
|
|
10743
10748
|
attr: {
|
|
10744
|
-
src: ({ props:
|
|
10745
|
-
loading: ({ props:
|
|
10746
|
-
allowfullscreen: ({ props:
|
|
10747
|
-
referrerpolicy: ({ props:
|
|
10749
|
+
src: ({ props: props5 }) => props5.src,
|
|
10750
|
+
loading: ({ props: props5 }) => props5.loading,
|
|
10751
|
+
allowfullscreen: ({ props: props5 }) => props5.allowfullscreen,
|
|
10752
|
+
referrerpolicy: ({ props: props5 }) => props5.referrerpolicy
|
|
10748
10753
|
}
|
|
10749
10754
|
};
|
|
10750
10755
|
|
|
10751
10756
|
// Atoms/Interaction.js
|
|
10752
10757
|
var Interaction = {
|
|
10753
10758
|
class: {
|
|
10754
|
-
userSelect: ({ props:
|
|
10755
|
-
pointerEvents: ({ props:
|
|
10756
|
-
cursor: ({ props:
|
|
10759
|
+
userSelect: ({ props: props5 }) => props5.userSelect && { userSelect: props5.userSelect },
|
|
10760
|
+
pointerEvents: ({ props: props5 }) => props5.pointerEvents && { pointerEvents: props5.pointerEvents },
|
|
10761
|
+
cursor: ({ props: props5 }) => props5.cursor && { cursor: props5.cursor }
|
|
10757
10762
|
}
|
|
10758
10763
|
};
|
|
10759
10764
|
|
|
@@ -10806,8 +10811,8 @@ var Focusable = {
|
|
|
10806
10811
|
}
|
|
10807
10812
|
},
|
|
10808
10813
|
attr: {
|
|
10809
|
-
placeholder: ({ props:
|
|
10810
|
-
tabIndex: ({ props:
|
|
10814
|
+
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
10815
|
+
tabIndex: ({ props: props5 }) => props5.tabIndex
|
|
10811
10816
|
}
|
|
10812
10817
|
};
|
|
10813
10818
|
var FocusableComponent = {
|
|
@@ -10824,14 +10829,14 @@ var FocusableComponent = {
|
|
|
10824
10829
|
style
|
|
10825
10830
|
},
|
|
10826
10831
|
attr: {
|
|
10827
|
-
type: ({ props:
|
|
10832
|
+
type: ({ props: props5 }) => props5.type
|
|
10828
10833
|
}
|
|
10829
10834
|
};
|
|
10830
10835
|
|
|
10831
10836
|
// Atoms/Overflow.js
|
|
10832
10837
|
var Overflow = {
|
|
10833
10838
|
class: {
|
|
10834
|
-
overflow: ({ props:
|
|
10839
|
+
overflow: ({ props: props5 }) => props5.overflow && { overflow: props5.overflow }
|
|
10835
10840
|
}
|
|
10836
10841
|
};
|
|
10837
10842
|
|
|
@@ -10907,17 +10912,17 @@ var import_scratch6 = __toESM(require_cjs());
|
|
|
10907
10912
|
var Position = {
|
|
10908
10913
|
props: {},
|
|
10909
10914
|
class: {
|
|
10910
|
-
position: ({ props:
|
|
10911
|
-
inset: ({ props:
|
|
10912
|
-
const { inset } =
|
|
10915
|
+
position: ({ props: props5 }) => props5.position && { position: props5.position },
|
|
10916
|
+
inset: ({ props: props5 }) => {
|
|
10917
|
+
const { inset } = props5;
|
|
10913
10918
|
if (typeof inset !== "string")
|
|
10914
10919
|
return;
|
|
10915
10920
|
return { inset: inset.split(" ").map((v) => (0, import_scratch6.getSpacingByKey)(v, "k").k).join(" ") };
|
|
10916
10921
|
},
|
|
10917
|
-
left: ({ props:
|
|
10918
|
-
top: ({ props:
|
|
10919
|
-
right: ({ props:
|
|
10920
|
-
bottom: ({ props:
|
|
10922
|
+
left: ({ props: props5 }) => (0, import_scratch6.getSpacingByKey)(props5.left, "left"),
|
|
10923
|
+
top: ({ props: props5 }) => (0, import_scratch6.getSpacingByKey)(props5.top, "top"),
|
|
10924
|
+
right: ({ props: props5 }) => (0, import_scratch6.getSpacingByKey)(props5.right, "right"),
|
|
10925
|
+
bottom: ({ props: props5 }) => (0, import_scratch6.getSpacingByKey)(props5.bottom, "bottom")
|
|
10921
10926
|
}
|
|
10922
10927
|
};
|
|
10923
10928
|
|
|
@@ -10928,30 +10933,30 @@ var Picture = {
|
|
|
10928
10933
|
tag: "source",
|
|
10929
10934
|
attr: {
|
|
10930
10935
|
media: (element) => {
|
|
10931
|
-
const { props:
|
|
10936
|
+
const { props: props5, key, context } = element;
|
|
10932
10937
|
const { MEDIA } = context.designSystem;
|
|
10933
10938
|
const globalTheme = getSystemTheme(element);
|
|
10934
|
-
const mediaName = (
|
|
10939
|
+
const mediaName = (props5.media || key).slice(1);
|
|
10935
10940
|
if (mediaName === globalTheme)
|
|
10936
10941
|
return "(min-width: 0px)";
|
|
10937
10942
|
else if (mediaName === "dark" || mediaName === "light")
|
|
10938
10943
|
return "(max-width: 0px)";
|
|
10939
10944
|
return MEDIA[mediaName];
|
|
10940
10945
|
},
|
|
10941
|
-
srcset: ({ props:
|
|
10946
|
+
srcset: ({ props: props5 }) => props5.srcset
|
|
10942
10947
|
}
|
|
10943
10948
|
},
|
|
10944
|
-
Img: ({ props:
|
|
10949
|
+
Img: ({ props: props5 }) => ({
|
|
10945
10950
|
width: "inherit",
|
|
10946
10951
|
height: "inherit",
|
|
10947
|
-
src:
|
|
10952
|
+
src: props5.src
|
|
10948
10953
|
})
|
|
10949
10954
|
};
|
|
10950
10955
|
|
|
10951
10956
|
// Atoms/Pseudo.js
|
|
10952
10957
|
var Pseudo = {
|
|
10953
10958
|
class: {
|
|
10954
|
-
content: ({ props:
|
|
10959
|
+
content: ({ props: props5 }) => props5.content && { content: props5.content }
|
|
10955
10960
|
}
|
|
10956
10961
|
};
|
|
10957
10962
|
|
|
@@ -10965,25 +10970,25 @@ var Svg = {
|
|
|
10965
10970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10966
10971
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
10967
10972
|
},
|
|
10968
|
-
html: ({ key, props:
|
|
10973
|
+
html: ({ key, props: props5, context, ...el }) => {
|
|
10969
10974
|
const { designSystem, utils } = context;
|
|
10970
10975
|
const SVG = designSystem && designSystem.SVG;
|
|
10971
|
-
const useSvgSprite =
|
|
10976
|
+
const useSvgSprite = props5.spriteId || context.designSystem && context.designSystem.useSvgSprite;
|
|
10972
10977
|
const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
|
|
10973
10978
|
const init = utils && utils.init;
|
|
10974
|
-
if (!useSvgSprite &&
|
|
10975
|
-
return
|
|
10976
|
-
const spriteId =
|
|
10979
|
+
if (!useSvgSprite && props5.src)
|
|
10980
|
+
return props5.src;
|
|
10981
|
+
const spriteId = props5.spriteId;
|
|
10977
10982
|
if (spriteId)
|
|
10978
10983
|
return useSVGSymbol(spriteId);
|
|
10979
|
-
const symbolId = Symbol.for(
|
|
10984
|
+
const symbolId = Symbol.for(props5.src);
|
|
10980
10985
|
let SVGKey = SVG[symbolId];
|
|
10981
10986
|
if (SVGKey && SVG[SVGKey])
|
|
10982
10987
|
return useSVGSymbol(SVGKey);
|
|
10983
10988
|
SVGKey = SVG[symbolId] = Math.random();
|
|
10984
|
-
if (
|
|
10989
|
+
if (props5.src) {
|
|
10985
10990
|
init({
|
|
10986
|
-
svg: { [SVGKey]:
|
|
10991
|
+
svg: { [SVGKey]: props5.src }
|
|
10987
10992
|
}, {
|
|
10988
10993
|
document: context.document,
|
|
10989
10994
|
emotion: context.emotion
|
|
@@ -10996,60 +11001,60 @@ var Svg = {
|
|
|
10996
11001
|
// Atoms/Shape/index.js
|
|
10997
11002
|
var import_utils3 = __toESM(require_cjs5());
|
|
10998
11003
|
var import_scratch7 = __toESM(require_cjs());
|
|
10999
|
-
var transformBorderRadius = (radius,
|
|
11004
|
+
var transformBorderRadius = (radius, props5, propertyName) => {
|
|
11000
11005
|
if (!(0, import_utils3.isString)(radius))
|
|
11001
11006
|
return;
|
|
11002
11007
|
return {
|
|
11003
|
-
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(
|
|
11008
|
+
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(props5, propertyName, v)[propertyName]).join(" ")
|
|
11004
11009
|
};
|
|
11005
11010
|
};
|
|
11006
11011
|
var Shape = {
|
|
11007
11012
|
extend: Pseudo,
|
|
11008
11013
|
class: {
|
|
11009
|
-
shape: ({ props:
|
|
11010
|
-
const { shape } =
|
|
11011
|
-
return (0, import_utils3.exec)(SHAPES[shape], { props:
|
|
11014
|
+
shape: ({ props: props5 }) => {
|
|
11015
|
+
const { shape } = props5;
|
|
11016
|
+
return (0, import_utils3.exec)(SHAPES[shape], { props: props5 });
|
|
11012
11017
|
},
|
|
11013
|
-
shapeDirection: ({ props:
|
|
11014
|
-
const { shape, shapeDirection } =
|
|
11018
|
+
shapeDirection: ({ props: props5 }) => {
|
|
11019
|
+
const { shape, shapeDirection } = props5;
|
|
11015
11020
|
if (!shape || !shapeDirection)
|
|
11016
11021
|
return;
|
|
11017
11022
|
const shapeDir = SHAPES[shape + "Direction"];
|
|
11018
11023
|
return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
|
|
11019
11024
|
},
|
|
11020
|
-
shapeDirectionColor: ({ props:
|
|
11021
|
-
const { background, backgroundColor } =
|
|
11025
|
+
shapeDirectionColor: ({ props: props5 }) => {
|
|
11026
|
+
const { background, backgroundColor } = props5;
|
|
11022
11027
|
const borderColor = {
|
|
11023
11028
|
borderColor: (0, import_scratch7.getMediaColor)(background || backgroundColor)
|
|
11024
11029
|
};
|
|
11025
|
-
return
|
|
11030
|
+
return props5.shapeDirection ? borderColor : null;
|
|
11026
11031
|
},
|
|
11027
|
-
round: ({ props:
|
|
11028
|
-
borderRadius: ({ props:
|
|
11032
|
+
round: ({ props: props5, key, ...el }) => transformBorderRadius(props5.round || props5.borderRadius, props5, "round"),
|
|
11033
|
+
borderRadius: ({ props: props5, key, ...el }) => transformBorderRadius(props5.borderRadius || props5.round, props5, "borderRadius")
|
|
11029
11034
|
}
|
|
11030
11035
|
};
|
|
11031
11036
|
|
|
11032
11037
|
// Atoms/Text.js
|
|
11033
11038
|
var import_scratch8 = __toESM(require_cjs());
|
|
11034
11039
|
var Text = {
|
|
11035
|
-
text: ({ key, props:
|
|
11036
|
-
if (
|
|
11037
|
-
return state && state[key] ||
|
|
11038
|
-
return
|
|
11040
|
+
text: ({ key, props: props5, state }) => {
|
|
11041
|
+
if (props5.text === true)
|
|
11042
|
+
return state && state[key] || props5 && props5[key];
|
|
11043
|
+
return props5.text;
|
|
11039
11044
|
},
|
|
11040
11045
|
class: {
|
|
11041
|
-
fontSize: ({ props:
|
|
11042
|
-
fontFamily: ({ props:
|
|
11043
|
-
lineHeight: ({ props:
|
|
11046
|
+
fontSize: ({ props: props5 }) => props5.fontSize ? (0, import_scratch8.getFontSizeByKey)(props5.fontSize) : null,
|
|
11047
|
+
fontFamily: ({ props: props5 }) => props5.fontFamily && { fontFamily: (0, import_scratch8.getFontFamily)(props5.fontFamily) || props5.fontFamily },
|
|
11048
|
+
lineHeight: ({ props: props5 }) => props5.lineHeight && { lineHeight: props5.lineHeight },
|
|
11044
11049
|
// 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" ' +
|
|
11050
|
+
textDecoration: ({ props: props5 }) => props5.textDecoration && { textDecoration: props5.textDecoration },
|
|
11051
|
+
textTransform: ({ props: props5 }) => props5.textTransform && { textTransform: props5.textTransform },
|
|
11052
|
+
whiteSpace: ({ props: props5 }) => props5.whiteSpace && { whiteSpace: props5.whiteSpace },
|
|
11053
|
+
letterSpacing: ({ props: props5 }) => props5.letterSpacing && { letterSpacing: props5.letterSpacing },
|
|
11054
|
+
textAlign: ({ props: props5 }) => props5.textAlign && { textAlign: props5.textAlign },
|
|
11055
|
+
fontWeight: ({ props: props5 }) => props5.fontWeight && {
|
|
11056
|
+
fontWeight: props5.fontWeight,
|
|
11057
|
+
fontVariationSettings: '"wght" ' + props5.fontWeight
|
|
11053
11058
|
}
|
|
11054
11059
|
}
|
|
11055
11060
|
};
|
|
@@ -11083,15 +11088,15 @@ var Footnote = {
|
|
|
11083
11088
|
// Atoms/Transform.js
|
|
11084
11089
|
var Transform = {
|
|
11085
11090
|
class: {
|
|
11086
|
-
transform: ({ props:
|
|
11087
|
-
transformOrigin: ({ props:
|
|
11091
|
+
transform: ({ props: props5 }) => props5.transform && { transform: props5.transform },
|
|
11092
|
+
transformOrigin: ({ props: props5 }) => props5.transformOrigin && { transformOrigin: props5.transformOrigin }
|
|
11088
11093
|
}
|
|
11089
11094
|
};
|
|
11090
11095
|
|
|
11091
11096
|
// Atoms/XYZ.js
|
|
11092
11097
|
var XYZ = {
|
|
11093
11098
|
class: {
|
|
11094
|
-
zIndex: ({ props:
|
|
11099
|
+
zIndex: ({ props: props5 }) => props5.zIndex && { zIndex: props5.zIndex }
|
|
11095
11100
|
}
|
|
11096
11101
|
};
|
|
11097
11102
|
|
|
@@ -11169,9 +11174,9 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
11169
11174
|
var sheet = sheetForTag(tag);
|
|
11170
11175
|
try {
|
|
11171
11176
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
11172
|
-
} catch (
|
|
11177
|
+
} catch (e) {
|
|
11173
11178
|
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 + '"',
|
|
11179
|
+
console.error('There was a problem inserting the following rule: "' + rule + '"', e);
|
|
11175
11180
|
}
|
|
11176
11181
|
}
|
|
11177
11182
|
} else {
|
|
@@ -11248,11 +11253,11 @@ var length = 0;
|
|
|
11248
11253
|
var position = 0;
|
|
11249
11254
|
var character = 0;
|
|
11250
11255
|
var characters = "";
|
|
11251
|
-
function node(value, root, parent, type,
|
|
11252
|
-
return { value, root, parent, type, props:
|
|
11256
|
+
function node(value, root, parent, type, props5, children, length2) {
|
|
11257
|
+
return { value, root, parent, type, props: props5, children, line, column, length: length2, return: "" };
|
|
11253
11258
|
}
|
|
11254
|
-
function copy(root,
|
|
11255
|
-
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length },
|
|
11259
|
+
function copy(root, props5) {
|
|
11260
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
|
|
11256
11261
|
}
|
|
11257
11262
|
function char() {
|
|
11258
11263
|
return character;
|
|
@@ -11383,7 +11388,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11383
11388
|
var ampersand = 1;
|
|
11384
11389
|
var character2 = 0;
|
|
11385
11390
|
var type = "";
|
|
11386
|
-
var
|
|
11391
|
+
var props5 = rules;
|
|
11387
11392
|
var children = rulesets;
|
|
11388
11393
|
var reference = rule;
|
|
11389
11394
|
var characters2 = type;
|
|
@@ -11437,17 +11442,17 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11437
11442
|
case 59:
|
|
11438
11443
|
characters2 += ";";
|
|
11439
11444
|
default:
|
|
11440
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type,
|
|
11445
|
+
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props5 = [], children = [], length2), rulesets);
|
|
11441
11446
|
if (character2 === 123)
|
|
11442
11447
|
if (offset === 0)
|
|
11443
|
-
parse(characters2, root, reference, reference,
|
|
11448
|
+
parse(characters2, root, reference, reference, props5, rulesets, length2, points, children);
|
|
11444
11449
|
else
|
|
11445
11450
|
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
11446
11451
|
case 100:
|
|
11447
11452
|
case 108:
|
|
11448
11453
|
case 109:
|
|
11449
11454
|
case 115:
|
|
11450
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules,
|
|
11455
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length2), children), rules, children, length2, points, rule ? props5 : children);
|
|
11451
11456
|
break;
|
|
11452
11457
|
default:
|
|
11453
11458
|
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -11483,15 +11488,15 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11483
11488
|
}
|
|
11484
11489
|
return rulesets;
|
|
11485
11490
|
}
|
|
11486
|
-
function ruleset(value, root, parent, index, offset, rules, points, type,
|
|
11491
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props5, children, length2) {
|
|
11487
11492
|
var post = offset - 1;
|
|
11488
11493
|
var rule = offset === 0 ? rules : [""];
|
|
11489
11494
|
var size = sizeof(rule);
|
|
11490
11495
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
11491
11496
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
11492
11497
|
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,
|
|
11498
|
+
props5[k++] = z;
|
|
11499
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props5, children, length2);
|
|
11495
11500
|
}
|
|
11496
11501
|
function comment(value, root, parent) {
|
|
11497
11502
|
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
@@ -12468,26 +12473,26 @@ var Animation = {
|
|
|
12468
12473
|
animationName: (el) => el.props.animationName && {
|
|
12469
12474
|
animationName: applyAnimationProps(el.props.animationName, el)
|
|
12470
12475
|
},
|
|
12471
|
-
animationDuration: ({ props:
|
|
12472
|
-
animationDuration: (0, import_scratch9.getTimingByKey)(
|
|
12476
|
+
animationDuration: ({ props: props5 }) => props5.animationDuration && {
|
|
12477
|
+
animationDuration: (0, import_scratch9.getTimingByKey)(props5.animationDuration).timing
|
|
12473
12478
|
},
|
|
12474
|
-
animationDelay: ({ props:
|
|
12475
|
-
animationDelay: (0, import_scratch9.getTimingByKey)(
|
|
12479
|
+
animationDelay: ({ props: props5 }) => props5.animationDelay && {
|
|
12480
|
+
animationDelay: (0, import_scratch9.getTimingByKey)(props5.animationDelay).timing
|
|
12476
12481
|
},
|
|
12477
|
-
animationTimingFunction: ({ props:
|
|
12478
|
-
animationTimingFunction: (0, import_scratch9.getTimingFunction)(
|
|
12482
|
+
animationTimingFunction: ({ props: props5 }) => props5.animationTimingFunction && {
|
|
12483
|
+
animationTimingFunction: (0, import_scratch9.getTimingFunction)(props5.animationTimingFunction)
|
|
12479
12484
|
},
|
|
12480
|
-
animationFillMode: ({ props:
|
|
12481
|
-
animationFillMode:
|
|
12485
|
+
animationFillMode: ({ props: props5 }) => props5.animationFillMode && {
|
|
12486
|
+
animationFillMode: props5.animationFillMode
|
|
12482
12487
|
},
|
|
12483
|
-
animationPlayState: ({ props:
|
|
12484
|
-
animationPlayState:
|
|
12488
|
+
animationPlayState: ({ props: props5 }) => props5.animationPlayState && {
|
|
12489
|
+
animationPlayState: props5.animationPlayState
|
|
12485
12490
|
},
|
|
12486
|
-
animationIterationCount: ({ props:
|
|
12487
|
-
animationIterationCount:
|
|
12491
|
+
animationIterationCount: ({ props: props5 }) => props5.animationIterationCount && {
|
|
12492
|
+
animationIterationCount: props5.animationIterationCount || 1
|
|
12488
12493
|
},
|
|
12489
|
-
animationDirection: ({ props:
|
|
12490
|
-
animationDirection:
|
|
12494
|
+
animationDirection: ({ props: props5 }) => props5.animationDirection && {
|
|
12495
|
+
animationDirection: props5.animationDirection
|
|
12491
12496
|
}
|
|
12492
12497
|
}
|
|
12493
12498
|
};
|
|
@@ -12495,7 +12500,7 @@ var Animation = {
|
|
|
12495
12500
|
// Box/index.js
|
|
12496
12501
|
var PropsCSS = {
|
|
12497
12502
|
class: {
|
|
12498
|
-
style: ({ props:
|
|
12503
|
+
style: ({ props: props5 }) => props5 && props5.style
|
|
12499
12504
|
}
|
|
12500
12505
|
};
|
|
12501
12506
|
var Box = {
|
|
@@ -12515,7 +12520,7 @@ var Box = {
|
|
|
12515
12520
|
Animation
|
|
12516
12521
|
],
|
|
12517
12522
|
attr: {
|
|
12518
|
-
id: ({ props:
|
|
12523
|
+
id: ({ props: props5 }) => props5.id
|
|
12519
12524
|
}
|
|
12520
12525
|
};
|
|
12521
12526
|
|
|
@@ -12530,7 +12535,7 @@ var Avatar = {
|
|
|
12530
12535
|
cursor: "pointer"
|
|
12531
12536
|
},
|
|
12532
12537
|
attr: {
|
|
12533
|
-
src: ({ key, props:
|
|
12538
|
+
src: ({ key, props: props5 }) => props5.src || `https://avatars.dicebear.com/api/${props5.avatarType || "adventurer-neutral"}/${props5.key || key}.svg`
|
|
12534
12539
|
}
|
|
12535
12540
|
};
|
|
12536
12541
|
var AvatarBundle = {
|
|
@@ -12550,15 +12555,15 @@ var AvatarBundle = {
|
|
|
12550
12555
|
// Icon/index.js
|
|
12551
12556
|
var Icon = {
|
|
12552
12557
|
extend: Svg,
|
|
12553
|
-
props: ({ key, props:
|
|
12558
|
+
props: ({ key, props: props5, parent, context }) => {
|
|
12554
12559
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
12555
12560
|
const { toCamelCase } = context && context.utils;
|
|
12556
|
-
const iconName =
|
|
12561
|
+
const iconName = props5.inheritedString || props5.name || props5.icon || key;
|
|
12557
12562
|
const camelCase = toCamelCase(iconName);
|
|
12558
12563
|
const isArray9 = camelCase.split(/([a-z])([A-Z])/g);
|
|
12559
12564
|
let activeIconName;
|
|
12560
|
-
if (
|
|
12561
|
-
activeIconName =
|
|
12565
|
+
if (props5.active) {
|
|
12566
|
+
activeIconName = props5[".active"].name || props5[".active"].icon;
|
|
12562
12567
|
}
|
|
12563
12568
|
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
12564
12569
|
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
@@ -12577,7 +12582,7 @@ var Icon = {
|
|
|
12577
12582
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
12578
12583
|
}
|
|
12579
12584
|
const iconFromLibrary = ICONS[validIconName];
|
|
12580
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
12585
|
+
const directSrc = parent && parent.props && parent.props.src || props5.src;
|
|
12581
12586
|
return {
|
|
12582
12587
|
width: "A",
|
|
12583
12588
|
height: "A",
|
|
@@ -12602,9 +12607,9 @@ var IconText = {
|
|
|
12602
12607
|
},
|
|
12603
12608
|
Icon: {
|
|
12604
12609
|
props: {},
|
|
12605
|
-
if: ({ props:
|
|
12610
|
+
if: ({ props: props5 }) => props5.name || props5.icon
|
|
12606
12611
|
},
|
|
12607
|
-
text: ({ props:
|
|
12612
|
+
text: ({ props: props5 }) => props5.text
|
|
12608
12613
|
};
|
|
12609
12614
|
|
|
12610
12615
|
// Button/index.js
|
|
@@ -12625,7 +12630,7 @@ var Button = {
|
|
|
12625
12630
|
round: "C2"
|
|
12626
12631
|
},
|
|
12627
12632
|
attr: {
|
|
12628
|
-
type: ({ props:
|
|
12633
|
+
type: ({ props: props5 }) => props5.type
|
|
12629
12634
|
}
|
|
12630
12635
|
};
|
|
12631
12636
|
var SquareButton = {
|
|
@@ -12656,24 +12661,6 @@ var ButtonSet = {
|
|
|
12656
12661
|
childExtend: SquareButton
|
|
12657
12662
|
};
|
|
12658
12663
|
|
|
12659
|
-
// Datepicker/style.js
|
|
12660
|
-
var style_default = {
|
|
12661
|
-
main: {
|
|
12662
|
-
"section > header span:nth-child(6)": {
|
|
12663
|
-
opacity: 0.5
|
|
12664
|
-
},
|
|
12665
|
-
"section > header span:nth-child(7)": {
|
|
12666
|
-
opacity: 0.5
|
|
12667
|
-
},
|
|
12668
|
-
"section > div button:nth-child(7n)": {
|
|
12669
|
-
opacity: 0.5
|
|
12670
|
-
},
|
|
12671
|
-
"section > div button:nth-child(7n - 1)": {
|
|
12672
|
-
opacity: 0.5
|
|
12673
|
-
}
|
|
12674
|
-
}
|
|
12675
|
-
};
|
|
12676
|
-
|
|
12677
12664
|
// Datepicker/node_modules/@symbo.ls/atoms/Block.js
|
|
12678
12665
|
var import_scratch10 = __toESM(require_cjs9());
|
|
12679
12666
|
|
|
@@ -12683,12 +12670,12 @@ var Flex2 = {
|
|
|
12683
12670
|
display: "flex"
|
|
12684
12671
|
},
|
|
12685
12672
|
class: {
|
|
12686
|
-
flow: ({ props:
|
|
12687
|
-
wrap: ({ props:
|
|
12688
|
-
align: ({ props:
|
|
12689
|
-
if (typeof
|
|
12673
|
+
flow: ({ props: props5 }) => props5.flow && { flexFlow: props5.flow },
|
|
12674
|
+
wrap: ({ props: props5 }) => props5.wrap && { flexWrap: props5.wrap },
|
|
12675
|
+
align: ({ props: props5 }) => {
|
|
12676
|
+
if (typeof props5.align !== "string")
|
|
12690
12677
|
return;
|
|
12691
|
-
const [alignItems, justifyContent] =
|
|
12678
|
+
const [alignItems, justifyContent] = props5.align.split(" ");
|
|
12692
12679
|
return { alignItems, justifyContent };
|
|
12693
12680
|
}
|
|
12694
12681
|
}
|
|
@@ -12699,22 +12686,22 @@ var import_scratch11 = __toESM(require_cjs9());
|
|
|
12699
12686
|
var Grid2 = {
|
|
12700
12687
|
props: { display: "grid" },
|
|
12701
12688
|
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:
|
|
12689
|
+
area: ({ props: props5 }) => props5.area ? { gridArea: props5.area } : null,
|
|
12690
|
+
template: ({ props: props5 }) => props5.template ? { gridTemplate: props5.template } : null,
|
|
12691
|
+
templateAreas: ({ props: props5 }) => props5.templateAreas ? { gridTemplateAreas: props5.templateAreas } : null,
|
|
12692
|
+
column: ({ props: props5 }) => props5.column ? { gridColumn: props5.column } : null,
|
|
12693
|
+
columns: ({ props: props5 }) => props5.columns ? { gridTemplateColumns: props5.columns } : null,
|
|
12694
|
+
templateColumns: ({ props: props5 }) => props5.templateColumns ? { gridTemplateColumns: props5.templateColumns } : null,
|
|
12695
|
+
autoColumns: ({ props: props5 }) => props5.autoColumns ? { gridAutoColumns: props5.autoColumns } : null,
|
|
12696
|
+
columnStart: ({ props: props5 }) => props5.columnStart ? { gridColumnStart: props5.columnStart } : null,
|
|
12697
|
+
row: ({ props: props5 }) => props5.row ? { gridRow: props5.row } : null,
|
|
12698
|
+
rows: ({ props: props5 }) => props5.rows ? { gridTemplateRows: props5.rows } : null,
|
|
12699
|
+
templateRows: ({ props: props5 }) => props5.templateRows ? { gridTemplateRows: props5.templateRows } : null,
|
|
12700
|
+
autoRows: ({ props: props5 }) => props5.autoRows ? { gridAutoRows: props5.autoRows } : null,
|
|
12701
|
+
rowStart: ({ props: props5 }) => props5.rowStart ? { gridRowStart: props5.rowStart } : null,
|
|
12702
|
+
autoFlow: ({ props: props5 }) => props5.autoFlow ? { gridAutoFlow: props5.autoFlow } : null,
|
|
12703
|
+
columnGap: ({ props: props5 }) => props5.columnGap ? (0, import_scratch11.getSpacingBasedOnRatio)(props5, "columnGap") : null,
|
|
12704
|
+
rowGap: ({ props: props5 }) => props5.rowGap ? (0, import_scratch11.getSpacingBasedOnRatio)(props5, "rowGap") : null
|
|
12718
12705
|
}
|
|
12719
12706
|
};
|
|
12720
12707
|
|
|
@@ -12770,141 +12757,369 @@ var emotion2 = createEmotion4();
|
|
|
12770
12757
|
var { keyframes: keyframes2 } = emotion2;
|
|
12771
12758
|
|
|
12772
12759
|
// 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 = {
|
|
12760
|
+
var DatePickerYears = {
|
|
12761
|
+
tag: "aside",
|
|
12782
12762
|
props: {
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12763
|
+
overflow: "hidden",
|
|
12764
|
+
position: "relative",
|
|
12765
|
+
":before": {
|
|
12766
|
+
content: '""',
|
|
12767
|
+
boxSize: "A1 100%",
|
|
12768
|
+
position: "absolute",
|
|
12769
|
+
top: "0",
|
|
12770
|
+
left: "0",
|
|
12771
|
+
background: "linear-gradient(to bottom, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)",
|
|
12772
|
+
zIndex: "10"
|
|
12773
|
+
},
|
|
12774
|
+
":after": {
|
|
12775
|
+
content: '""',
|
|
12776
|
+
boxSize: "B 100%",
|
|
12777
|
+
position: "absolute",
|
|
12778
|
+
bottom: "0",
|
|
12779
|
+
left: "0",
|
|
12780
|
+
background: "linear-gradient(to top, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)"
|
|
12781
|
+
}
|
|
12789
12782
|
},
|
|
12790
|
-
|
|
12791
|
-
extend: Flex2,
|
|
12783
|
+
Flex: {
|
|
12792
12784
|
props: {
|
|
12793
12785
|
flow: "column",
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
top: "0",
|
|
12797
|
-
position: "absolute",
|
|
12786
|
+
gap: "B",
|
|
12787
|
+
padding: "A Z A1 B1",
|
|
12798
12788
|
maxHeight: "100%",
|
|
12799
|
-
|
|
12789
|
+
overflow: "hidden auto",
|
|
12790
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
12800
12791
|
},
|
|
12801
12792
|
childExtend: {
|
|
12802
12793
|
extend: Button,
|
|
12803
|
-
props: {
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12794
|
+
props: ({ state, text }) => ({
|
|
12795
|
+
fontSize: "Y1",
|
|
12796
|
+
color: "white",
|
|
12797
|
+
opacity: ".4",
|
|
12798
|
+
background: "transparent",
|
|
12799
|
+
transition: "opacity .25s ease",
|
|
12800
|
+
isActive: state.activeYear === text,
|
|
12801
|
+
".isActive": { opacity: "1" },
|
|
12802
|
+
":hover": { opacity: "1" }
|
|
12803
|
+
}),
|
|
12804
|
+
on: {
|
|
12805
|
+
click: (event, element, state) => state.update({ activeYear: element.text }),
|
|
12806
|
+
render: (el, state) => {
|
|
12807
|
+
const { props: props5 } = el;
|
|
12808
|
+
const { isActive } = props5;
|
|
12809
|
+
if (isActive) {
|
|
12810
|
+
window.requestAnimationFrame(() => {
|
|
12811
|
+
el.parent.parent.node.scrollTop = el.node.offsetTop - 100;
|
|
12812
|
+
});
|
|
12813
|
+
}
|
|
12814
|
+
}
|
|
12815
|
+
}
|
|
12816
|
+
},
|
|
12817
|
+
$setCollection: ({ state, parent }) => {
|
|
12818
|
+
const { yearRange } = parent.parent.props;
|
|
12819
|
+
if (yearRange) {
|
|
12820
|
+
const [start, end] = yearRange;
|
|
12821
|
+
const yearsArray = new Array(end + 1 - start).fill(void 0).map((v, k) => {
|
|
12822
|
+
return { text: start + k };
|
|
12823
|
+
}).reverse();
|
|
12824
|
+
return yearsArray;
|
|
12825
|
+
}
|
|
12826
|
+
return [
|
|
12827
|
+
{ text: "2023" },
|
|
12828
|
+
{ text: "2022" },
|
|
12829
|
+
{ text: "2021" },
|
|
12830
|
+
{ text: "2020" },
|
|
12831
|
+
{ text: "2019" },
|
|
12832
|
+
{ text: "2018" },
|
|
12833
|
+
{ text: "2017" },
|
|
12834
|
+
{ text: "2016" },
|
|
12835
|
+
{ text: "2015" },
|
|
12836
|
+
{ text: "2014" },
|
|
12837
|
+
{ text: "2013" },
|
|
12838
|
+
{ text: "2012" },
|
|
12839
|
+
{ text: "2012" },
|
|
12840
|
+
{ text: "2012" }
|
|
12841
|
+
];
|
|
12808
12842
|
}
|
|
12809
12843
|
}
|
|
12810
12844
|
};
|
|
12811
|
-
var
|
|
12845
|
+
var months = {
|
|
12812
12846
|
extend: Flex2,
|
|
12813
12847
|
props: {
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
}
|
|
12848
|
+
position: "relative",
|
|
12849
|
+
overflow: "hidden",
|
|
12850
|
+
alignItems: "center",
|
|
12851
|
+
padding: "- - B -",
|
|
12852
|
+
maxWidth: `${272 / 16}em`,
|
|
12853
|
+
boxSizing: "border-box",
|
|
12854
|
+
":before": {
|
|
12855
|
+
content: '""',
|
|
12856
|
+
position: "absolute",
|
|
12857
|
+
boxSize: "100% 100px",
|
|
12858
|
+
background: "linear-gradient(to right, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)",
|
|
12859
|
+
left: "0",
|
|
12860
|
+
top: "0",
|
|
12861
|
+
zIndex: "30",
|
|
12862
|
+
pointerEvents: "none"
|
|
12830
12863
|
},
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12864
|
+
":after": {
|
|
12865
|
+
content: '""',
|
|
12866
|
+
position: "absolute",
|
|
12867
|
+
boxSize: "100% 100px",
|
|
12868
|
+
background: "linear-gradient(to left, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)",
|
|
12869
|
+
right: "0",
|
|
12870
|
+
top: "0",
|
|
12871
|
+
zIndex: "30",
|
|
12872
|
+
pointerEvents: "none"
|
|
12834
12873
|
},
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12874
|
+
style: {
|
|
12875
|
+
"> button": {
|
|
12876
|
+
width: "16px",
|
|
12877
|
+
height: "16px",
|
|
12878
|
+
position: "absolute",
|
|
12879
|
+
zIndex: "35",
|
|
12880
|
+
background: "transparent",
|
|
12881
|
+
color: "#0079FD",
|
|
12882
|
+
":first-child": { left: "18px" },
|
|
12883
|
+
":last-child": { right: "18px" }
|
|
12841
12884
|
}
|
|
12842
12885
|
}
|
|
12843
12886
|
},
|
|
12844
|
-
|
|
12845
|
-
extend:
|
|
12887
|
+
leftButton: {
|
|
12888
|
+
extend: Button,
|
|
12889
|
+
props: { icon: "arrowLeft" }
|
|
12890
|
+
},
|
|
12891
|
+
Flex: {
|
|
12846
12892
|
props: {
|
|
12847
|
-
|
|
12848
|
-
|
|
12893
|
+
flex: "1",
|
|
12894
|
+
overflow: "auto hidden",
|
|
12895
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
12849
12896
|
},
|
|
12850
12897
|
childExtend: {
|
|
12851
|
-
|
|
12852
|
-
props: {
|
|
12853
|
-
|
|
12854
|
-
|
|
12898
|
+
tag: "h6",
|
|
12899
|
+
props: ({ state, key }) => ({
|
|
12900
|
+
fontSize: "Z1",
|
|
12901
|
+
textAlign: "center",
|
|
12902
|
+
boxSizing: "content-box",
|
|
12903
|
+
minWidth: "272px",
|
|
12904
|
+
isActive: state.activeMonth === parseInt(key),
|
|
12905
|
+
".isActive": { opacity: "1" }
|
|
12906
|
+
}),
|
|
12907
|
+
render: (el, state) => {
|
|
12908
|
+
const { props: props5 } = el;
|
|
12909
|
+
const { isActive } = props5;
|
|
12910
|
+
if (isActive) {
|
|
12911
|
+
window.requestAnimationFrame(() => {
|
|
12912
|
+
el.parent.parent.node.scrollLeft = el.node.offsetLeft;
|
|
12913
|
+
});
|
|
12914
|
+
}
|
|
12855
12915
|
}
|
|
12856
12916
|
},
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12917
|
+
$setCollection: ({ state, parent }) => {
|
|
12918
|
+
return [
|
|
12919
|
+
{ text: "January" },
|
|
12920
|
+
{ text: "February" },
|
|
12921
|
+
{ text: "March" },
|
|
12922
|
+
{ text: "April" },
|
|
12923
|
+
{ text: "May" },
|
|
12924
|
+
{ text: "June" },
|
|
12925
|
+
{ text: "July" },
|
|
12926
|
+
{ text: "August" },
|
|
12927
|
+
{ text: "September" },
|
|
12928
|
+
{ text: "October" },
|
|
12929
|
+
{ text: "November" },
|
|
12930
|
+
{ text: "December" }
|
|
12931
|
+
];
|
|
12932
|
+
}
|
|
12933
|
+
},
|
|
12934
|
+
rightButton: { extend: Button, props: { icon: "arrowRight" } }
|
|
12935
|
+
};
|
|
12936
|
+
var weekDays = {
|
|
12937
|
+
extend: Grid2,
|
|
12938
|
+
childExtend: {
|
|
12939
|
+
tag: "span",
|
|
12940
|
+
extend: Flex2
|
|
12941
|
+
},
|
|
12942
|
+
...[
|
|
12943
|
+
{ text: "Mo" },
|
|
12944
|
+
{ text: "Tu" },
|
|
12945
|
+
{ text: "We" },
|
|
12946
|
+
{ text: "Th" },
|
|
12947
|
+
{ text: "Fr" },
|
|
12948
|
+
{ text: "Sa" },
|
|
12949
|
+
{ text: "Su" }
|
|
12950
|
+
]
|
|
12951
|
+
};
|
|
12952
|
+
var monthNumbers = {
|
|
12953
|
+
extend: Grid2,
|
|
12954
|
+
props: {
|
|
12955
|
+
columns: "repeat(7, 32px)",
|
|
12956
|
+
gap: "4px",
|
|
12957
|
+
boxSizing: "content-box",
|
|
12958
|
+
padding: `- ${12 / 16}em`
|
|
12959
|
+
},
|
|
12960
|
+
childExtend: {
|
|
12961
|
+
extend: Button,
|
|
12962
|
+
props: ({ state, key }) => ({
|
|
12963
|
+
color: "white",
|
|
12964
|
+
textAlign: "center",
|
|
12965
|
+
background: "transparent",
|
|
12966
|
+
fontSize: "Z1",
|
|
12967
|
+
round: "100%",
|
|
12968
|
+
height: "32px",
|
|
12969
|
+
":hover": { theme: "secondary" },
|
|
12970
|
+
":nth-child(7n-1)": { color: "rgba(255, 255, 255, .5)" },
|
|
12971
|
+
":nth-child(7n)": { color: "rgba(255, 255, 255, .5)" },
|
|
12972
|
+
isActive: state.activeDay === parseInt(key) + 1,
|
|
12973
|
+
".isActive": { theme: "secondary" }
|
|
12974
|
+
}),
|
|
12975
|
+
on: {
|
|
12976
|
+
click: (event, element, state) => {
|
|
12977
|
+
state.update({ activeDay: element.text });
|
|
12978
|
+
console.log(state.activeDay + "." + state.activeMonth + "." + state.activeYear);
|
|
12979
|
+
}
|
|
12980
|
+
}
|
|
12981
|
+
},
|
|
12982
|
+
$setCollection: (el, s) => {
|
|
12983
|
+
const daysInMonth = new Date(s.activeYear, s.activeMonth, 0).getDate();
|
|
12984
|
+
const days = new Array(daysInMonth).fill(void 0).map((v, k) => ({ text: k + 1 }));
|
|
12985
|
+
return days;
|
|
12986
|
+
}
|
|
12987
|
+
};
|
|
12988
|
+
var confirmButtons = {
|
|
12989
|
+
extend: Flex2,
|
|
12990
|
+
childExtend: Button,
|
|
12991
|
+
...[
|
|
12992
|
+
{
|
|
12993
|
+
text: "cancel",
|
|
12994
|
+
on: {
|
|
12995
|
+
click: (event, element, state) => {
|
|
12864
12996
|
}
|
|
12865
|
-
}
|
|
12866
|
-
...[
|
|
12867
|
-
{ text: "Mo" },
|
|
12868
|
-
{ text: "Tu" },
|
|
12869
|
-
{ text: "We" },
|
|
12870
|
-
{ text: "Th" },
|
|
12871
|
-
{ text: "Fr" },
|
|
12872
|
-
{ text: "Sa" },
|
|
12873
|
-
{ text: "Su" }
|
|
12874
|
-
]
|
|
12997
|
+
}
|
|
12875
12998
|
},
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12999
|
+
{
|
|
13000
|
+
text: "ok"
|
|
13001
|
+
}
|
|
13002
|
+
]
|
|
13003
|
+
};
|
|
13004
|
+
var monthNumbersContainer = {
|
|
13005
|
+
props: {
|
|
13006
|
+
maxWidth: `${272 / 16}em`,
|
|
13007
|
+
position: "relative",
|
|
13008
|
+
":before": {
|
|
13009
|
+
content: '""',
|
|
13010
|
+
position: "absolute",
|
|
13011
|
+
boxSize: "100% 12px",
|
|
13012
|
+
background: "linear-gradient(to right, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)",
|
|
13013
|
+
left: "0",
|
|
13014
|
+
top: "0",
|
|
13015
|
+
zIndex: "30"
|
|
13016
|
+
},
|
|
13017
|
+
":after": {
|
|
13018
|
+
content: '""',
|
|
13019
|
+
position: "absolute",
|
|
13020
|
+
boxSize: "100% 12px",
|
|
13021
|
+
background: "linear-gradient(to left, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)",
|
|
13022
|
+
right: "0",
|
|
13023
|
+
top: "0",
|
|
13024
|
+
zIndex: "30"
|
|
13025
|
+
},
|
|
13026
|
+
content: {
|
|
13027
|
+
style: { overflowX: "auto" }
|
|
13028
|
+
}
|
|
13029
|
+
},
|
|
13030
|
+
content: {
|
|
13031
|
+
extend: Flex2,
|
|
13032
|
+
childExtend: monthNumbers,
|
|
13033
|
+
...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
|
|
13034
|
+
}
|
|
13035
|
+
};
|
|
13036
|
+
var props = {
|
|
13037
|
+
yearRange: [1993, 2023],
|
|
13038
|
+
round: "Z2",
|
|
13039
|
+
margin: "E",
|
|
13040
|
+
overflow: "hidden",
|
|
13041
|
+
maxHeight: "318px",
|
|
13042
|
+
boxSize: "fit-content fit-content",
|
|
13043
|
+
background: "#141416",
|
|
13044
|
+
padding: "- Z - -",
|
|
13045
|
+
style: {
|
|
13046
|
+
button: {
|
|
13047
|
+
padding: "0"
|
|
13048
|
+
}
|
|
13049
|
+
},
|
|
13050
|
+
calendar: {
|
|
13051
|
+
flow: "column",
|
|
13052
|
+
padding: "20px - - -",
|
|
13053
|
+
position: "relative",
|
|
13054
|
+
weekDaysContainer: {
|
|
13055
|
+
overflow: "hidden",
|
|
13056
|
+
padding: "- - Z1 -",
|
|
13057
|
+
boxSizing: "content-box",
|
|
13058
|
+
maxWidth: `${272 / 16}em`,
|
|
13059
|
+
childProps: {
|
|
13060
|
+
maxWidth: "fit-content",
|
|
13061
|
+
columns: "repeat(7, 32px)",
|
|
13062
|
+
gap: "4px",
|
|
13063
|
+
boxSizing: "content-box",
|
|
13064
|
+
padding: `- ${12 / 16}em`,
|
|
13065
|
+
childProps: {
|
|
13066
|
+
fontSize: "Y1",
|
|
13067
|
+
textTransform: "capitalize",
|
|
13068
|
+
":nth-child(7n-1)": { color: "rgba(255, 255, 255, .5)" },
|
|
13069
|
+
":nth-child(7n)": { color: "rgba(255, 255, 255, .5)" },
|
|
13070
|
+
align: "center center"
|
|
13071
|
+
}
|
|
13072
|
+
}
|
|
13073
|
+
},
|
|
13074
|
+
confirmButtons: {
|
|
13075
|
+
align: "center flex-end",
|
|
13076
|
+
gap: "A1",
|
|
13077
|
+
padding: "A A1 - -",
|
|
13078
|
+
childProps: {
|
|
13079
|
+
color: "#0079FD",
|
|
13080
|
+
fontSize: "Y",
|
|
13081
|
+
textTransform: "uppercase",
|
|
13082
|
+
background: "transparent"
|
|
13083
|
+
}
|
|
12889
13084
|
}
|
|
12890
13085
|
}
|
|
12891
13086
|
};
|
|
12892
13087
|
var DatePicker = {
|
|
12893
|
-
style: style_default,
|
|
12894
13088
|
extend: Flex2,
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
round: "Z",
|
|
12900
|
-
padding: "Z Z2 Z X2",
|
|
12901
|
-
gap: "X2",
|
|
12902
|
-
depth: 16,
|
|
12903
|
-
minHeight: "0",
|
|
12904
|
-
align: "stretch center"
|
|
13089
|
+
state: {
|
|
13090
|
+
activeYear: 1993,
|
|
13091
|
+
activeMonth: 8,
|
|
13092
|
+
activeDay: 14
|
|
12905
13093
|
},
|
|
12906
|
-
|
|
12907
|
-
|
|
13094
|
+
props,
|
|
13095
|
+
DatePickerYears: {},
|
|
13096
|
+
calendar: {
|
|
13097
|
+
extend: Flex2,
|
|
13098
|
+
months,
|
|
13099
|
+
weekDaysContainer: {
|
|
13100
|
+
extend: Flex2,
|
|
13101
|
+
childExtend: weekDays,
|
|
13102
|
+
...[{}, {}]
|
|
13103
|
+
},
|
|
13104
|
+
monthNumbersContainer,
|
|
13105
|
+
confirmButtons
|
|
13106
|
+
}
|
|
13107
|
+
};
|
|
13108
|
+
var DatePickerTwoColumns = {
|
|
13109
|
+
extend: DatePicker,
|
|
13110
|
+
props: {
|
|
13111
|
+
calendar: {
|
|
13112
|
+
months: {
|
|
13113
|
+
maxWidth: `${544 / 16}em`
|
|
13114
|
+
},
|
|
13115
|
+
weekDaysContainer: {
|
|
13116
|
+
maxWidth: `${544 / 16}em`
|
|
13117
|
+
},
|
|
13118
|
+
monthNumbersContainer: {
|
|
13119
|
+
maxWidth: `${544 / 16}em`
|
|
13120
|
+
}
|
|
13121
|
+
}
|
|
13122
|
+
}
|
|
12908
13123
|
};
|
|
12909
13124
|
|
|
12910
13125
|
// Dropdown/index.js
|
|
@@ -12968,7 +13183,7 @@ var DropdownParent = {
|
|
|
12968
13183
|
};
|
|
12969
13184
|
|
|
12970
13185
|
// Form/FieldLabel.js
|
|
12971
|
-
var
|
|
13186
|
+
var props2 = {
|
|
12972
13187
|
flow: "column",
|
|
12973
13188
|
gap: "Y2",
|
|
12974
13189
|
childProps: { textTransform: "capitalize" },
|
|
@@ -12979,7 +13194,7 @@ var props = {
|
|
|
12979
13194
|
};
|
|
12980
13195
|
var FieldLabel = {
|
|
12981
13196
|
extend: Flex,
|
|
12982
|
-
props,
|
|
13197
|
+
props: props2,
|
|
12983
13198
|
caption: {
|
|
12984
13199
|
tag: "span",
|
|
12985
13200
|
text: "text"
|
|
@@ -13125,15 +13340,15 @@ var ToggleSwithWithLabel = {
|
|
|
13125
13340
|
// node_modules/@symbo.ls/icon/index.js
|
|
13126
13341
|
var Icon2 = {
|
|
13127
13342
|
extend: Svg,
|
|
13128
|
-
props: ({ key, props:
|
|
13343
|
+
props: ({ key, props: props5, parent, context }) => {
|
|
13129
13344
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
13130
13345
|
const { toCamelCase } = context && context.utils;
|
|
13131
|
-
const iconName =
|
|
13346
|
+
const iconName = props5.inheritedString || props5.name || props5.icon || key;
|
|
13132
13347
|
const camelCase = toCamelCase(iconName);
|
|
13133
13348
|
const isArray9 = camelCase.split(/([a-z])([A-Z])/g);
|
|
13134
13349
|
let activeIconName;
|
|
13135
|
-
if (
|
|
13136
|
-
activeIconName =
|
|
13350
|
+
if (props5.active) {
|
|
13351
|
+
activeIconName = props5[".active"].name || props5[".active"].icon;
|
|
13137
13352
|
}
|
|
13138
13353
|
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
13139
13354
|
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
@@ -13152,7 +13367,7 @@ var Icon2 = {
|
|
|
13152
13367
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
13153
13368
|
}
|
|
13154
13369
|
const iconFromLibrary = ICONS[validIconName];
|
|
13155
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
13370
|
+
const directSrc = parent && parent.props && parent.props.src || props5.src;
|
|
13156
13371
|
return {
|
|
13157
13372
|
width: "A",
|
|
13158
13373
|
height: "A",
|
|
@@ -13170,15 +13385,16 @@ var IconText2 = {
|
|
|
13170
13385
|
align: "center center",
|
|
13171
13386
|
lineHeight: 1
|
|
13172
13387
|
},
|
|
13388
|
+
// TODO: remove this variant
|
|
13173
13389
|
icon: {
|
|
13174
13390
|
extend: Icon2,
|
|
13175
13391
|
if: ({ parent }) => parent.props.icon
|
|
13176
13392
|
},
|
|
13177
13393
|
Icon: {
|
|
13178
13394
|
props: {},
|
|
13179
|
-
if: ({ props:
|
|
13395
|
+
if: ({ props: props5 }) => props5.name || props5.icon
|
|
13180
13396
|
},
|
|
13181
|
-
text: ({ props:
|
|
13397
|
+
text: ({ props: props5 }) => props5.text
|
|
13182
13398
|
};
|
|
13183
13399
|
|
|
13184
13400
|
// Link/index.js
|
|
@@ -13198,23 +13414,23 @@ var Link = {
|
|
|
13198
13414
|
const { exec: exec5 } = ctx.utils;
|
|
13199
13415
|
return exec5(el.props.href, el) || exec5(el.props, el).href;
|
|
13200
13416
|
},
|
|
13201
|
-
target: ({ props:
|
|
13202
|
-
"aria-label": ({ props:
|
|
13203
|
-
draggable: ({ props:
|
|
13417
|
+
target: ({ props: props5 }) => props5.target,
|
|
13418
|
+
"aria-label": ({ props: props5 }) => props5.aria ? props5.aria.label : props5.text,
|
|
13419
|
+
draggable: ({ props: props5 }) => props5.draggable
|
|
13204
13420
|
}
|
|
13205
13421
|
};
|
|
13206
13422
|
var RouterLink = {
|
|
13207
13423
|
on: {
|
|
13208
13424
|
click: (event, el, s, ctx) => {
|
|
13209
|
-
const { props:
|
|
13210
|
-
const { href } =
|
|
13425
|
+
const { props: props5 } = el;
|
|
13426
|
+
const { href } = props5;
|
|
13211
13427
|
if (!href)
|
|
13212
13428
|
return;
|
|
13213
13429
|
const { utils, routerOptions } = ctx;
|
|
13214
13430
|
const { router } = utils;
|
|
13215
13431
|
const root = el.__ref.__root;
|
|
13216
13432
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
13217
|
-
const options =
|
|
13433
|
+
const options = props5.routerOptions || routerOptions || {
|
|
13218
13434
|
scrollToOptions: { behaviour: "instant" }
|
|
13219
13435
|
};
|
|
13220
13436
|
if (href && !linkIsExternal) {
|
|
@@ -13243,17 +13459,17 @@ var Input = {
|
|
|
13243
13459
|
padding: "Z A"
|
|
13244
13460
|
},
|
|
13245
13461
|
attr: {
|
|
13246
|
-
pattern: ({ props:
|
|
13247
|
-
minlength: ({ props:
|
|
13248
|
-
maxlength: ({ props:
|
|
13249
|
-
name: ({ props:
|
|
13250
|
-
autocomplete: ({ props:
|
|
13251
|
-
placeholder: ({ props:
|
|
13252
|
-
value: ({ props:
|
|
13253
|
-
disabled: ({ props:
|
|
13254
|
-
readonly: ({ props:
|
|
13255
|
-
required: ({ props:
|
|
13256
|
-
type: ({ props:
|
|
13462
|
+
pattern: ({ props: props5 }) => props5.pattern,
|
|
13463
|
+
minlength: ({ props: props5 }) => props5.minlength,
|
|
13464
|
+
maxlength: ({ props: props5 }) => props5.maxlength,
|
|
13465
|
+
name: ({ props: props5 }) => props5.name,
|
|
13466
|
+
autocomplete: ({ props: props5 }) => props5.autocomplete,
|
|
13467
|
+
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
13468
|
+
value: ({ props: props5, state }) => props5.value,
|
|
13469
|
+
disabled: ({ props: props5 }) => props5.disabled || null,
|
|
13470
|
+
readonly: ({ props: props5 }) => props5.readonly,
|
|
13471
|
+
required: ({ props: props5 }) => props5.required,
|
|
13472
|
+
type: ({ props: props5 }) => props5.type
|
|
13257
13473
|
}
|
|
13258
13474
|
};
|
|
13259
13475
|
|
|
@@ -13297,8 +13513,8 @@ var Focusable2 = {
|
|
|
13297
13513
|
}
|
|
13298
13514
|
},
|
|
13299
13515
|
attr: {
|
|
13300
|
-
placeholder: ({ props:
|
|
13301
|
-
tabIndex: ({ props:
|
|
13516
|
+
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
13517
|
+
tabIndex: ({ props: props5 }) => props5.tabIndex
|
|
13302
13518
|
}
|
|
13303
13519
|
};
|
|
13304
13520
|
|
|
@@ -13369,23 +13585,23 @@ var Video = {
|
|
|
13369
13585
|
childExtend: {
|
|
13370
13586
|
tag: "source",
|
|
13371
13587
|
attr: {
|
|
13372
|
-
src: ({ props:
|
|
13373
|
-
controls: ({ props:
|
|
13588
|
+
src: ({ props: props5 }) => props5.src,
|
|
13589
|
+
controls: ({ props: props5 }) => props5.controls
|
|
13374
13590
|
}
|
|
13375
13591
|
},
|
|
13376
13592
|
props: {
|
|
13377
13593
|
controls: true
|
|
13378
13594
|
},
|
|
13379
13595
|
attr: {
|
|
13380
|
-
autoplay: ({ props:
|
|
13381
|
-
controls: ({ props:
|
|
13596
|
+
autoplay: ({ props: props5 }) => props5.autoplay,
|
|
13597
|
+
controls: ({ props: props5 }) => props5.controls
|
|
13382
13598
|
}
|
|
13383
13599
|
};
|
|
13384
13600
|
|
|
13385
13601
|
// Range/index.js
|
|
13386
13602
|
var import_utils14 = __toESM(require_cjs5());
|
|
13387
13603
|
var import_scratch28 = __toESM(require_cjs());
|
|
13388
|
-
var
|
|
13604
|
+
var props3 = {
|
|
13389
13605
|
appearance: "none",
|
|
13390
13606
|
width: "100%",
|
|
13391
13607
|
height: "2px",
|
|
@@ -13445,7 +13661,7 @@ var props2 = {
|
|
|
13445
13661
|
}
|
|
13446
13662
|
};
|
|
13447
13663
|
var Range = {
|
|
13448
|
-
props:
|
|
13664
|
+
props: props3,
|
|
13449
13665
|
tag: "input",
|
|
13450
13666
|
attr: { type: "range" }
|
|
13451
13667
|
};
|
|
@@ -13497,7 +13713,7 @@ var RangeWithButtons = {
|
|
|
13497
13713
|
};
|
|
13498
13714
|
|
|
13499
13715
|
// Slider/style.js
|
|
13500
|
-
var
|
|
13716
|
+
var style_default = {
|
|
13501
13717
|
appearance: "none",
|
|
13502
13718
|
width: "100%",
|
|
13503
13719
|
height: "2px",
|
|
@@ -13540,7 +13756,7 @@ var import_utils15 = __toESM(require_cjs5());
|
|
|
13540
13756
|
}
|
|
13541
13757
|
});
|
|
13542
13758
|
var RangeSlider = {
|
|
13543
|
-
style:
|
|
13759
|
+
style: style_default,
|
|
13544
13760
|
props: {
|
|
13545
13761
|
theme: "sliderThumb"
|
|
13546
13762
|
},
|
|
@@ -13562,8 +13778,8 @@ var Slider = {
|
|
|
13562
13778
|
click: (ev, el, s) => {
|
|
13563
13779
|
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13564
13780
|
const input = el.parent.input;
|
|
13565
|
-
const
|
|
13566
|
-
const value = (0, import_utils15.isFunction)(
|
|
13781
|
+
const props5 = input.props;
|
|
13782
|
+
const value = (0, import_utils15.isFunction)(props5.value) ? props5.value() : props5.value;
|
|
13567
13783
|
input.node.value = value;
|
|
13568
13784
|
}
|
|
13569
13785
|
}
|
|
@@ -13599,8 +13815,8 @@ var Slider = {
|
|
|
13599
13815
|
click: (ev, el, s) => {
|
|
13600
13816
|
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13601
13817
|
const input = el.parent.input;
|
|
13602
|
-
const
|
|
13603
|
-
const value = (0, import_utils15.isFunction)(
|
|
13818
|
+
const props5 = input.props;
|
|
13819
|
+
const value = (0, import_utils15.isFunction)(props5.value) ? props5.value() : props5.value;
|
|
13604
13820
|
input.node.value = value;
|
|
13605
13821
|
}
|
|
13606
13822
|
}
|
|
@@ -13616,12 +13832,12 @@ var Flex3 = {
|
|
|
13616
13832
|
display: "flex"
|
|
13617
13833
|
},
|
|
13618
13834
|
class: {
|
|
13619
|
-
flow: ({ props:
|
|
13620
|
-
wrap: ({ props:
|
|
13621
|
-
align: ({ props:
|
|
13622
|
-
if (typeof
|
|
13835
|
+
flow: ({ props: props5 }) => props5.flow && { flexFlow: props5.flow },
|
|
13836
|
+
wrap: ({ props: props5 }) => props5.wrap && { flexWrap: props5.wrap },
|
|
13837
|
+
align: ({ props: props5 }) => {
|
|
13838
|
+
if (typeof props5.align !== "string")
|
|
13623
13839
|
return;
|
|
13624
|
-
const [alignItems, justifyContent] =
|
|
13840
|
+
const [alignItems, justifyContent] = props5.align.split(" ");
|
|
13625
13841
|
return { alignItems, justifyContent };
|
|
13626
13842
|
}
|
|
13627
13843
|
}
|
|
@@ -13769,14 +13985,14 @@ var TooltipParent = {
|
|
|
13769
13985
|
};
|
|
13770
13986
|
|
|
13771
13987
|
// Textarea/index.js
|
|
13772
|
-
var
|
|
13988
|
+
var props4 = {
|
|
13773
13989
|
height: "E",
|
|
13774
13990
|
lineHeight: 1.4,
|
|
13775
13991
|
style: { resize: "none" }
|
|
13776
13992
|
};
|
|
13777
13993
|
var Textarea = {
|
|
13778
13994
|
extend: [Input],
|
|
13779
|
-
props:
|
|
13995
|
+
props: props4,
|
|
13780
13996
|
tag: "textarea"
|
|
13781
13997
|
};
|
|
13782
13998
|
|
|
@@ -13840,13 +14056,13 @@ var Select = {
|
|
|
13840
14056
|
disabled: ""
|
|
13841
14057
|
},
|
|
13842
14058
|
attr: {
|
|
13843
|
-
value: ({ props:
|
|
13844
|
-
selected: ({ props:
|
|
13845
|
-
disabled: ({ props:
|
|
14059
|
+
value: ({ props: props5 }) => props5.value,
|
|
14060
|
+
selected: ({ props: props5 }) => props5.selected,
|
|
14061
|
+
disabled: ({ props: props5 }) => props5.disabled
|
|
13846
14062
|
}
|
|
13847
14063
|
},
|
|
13848
14064
|
attr: {
|
|
13849
|
-
name: ({ props:
|
|
13850
|
-
disabled: ({ props:
|
|
14065
|
+
name: ({ props: props5 }) => props5.name,
|
|
14066
|
+
disabled: ({ props: props5 }) => props5.disabled
|
|
13851
14067
|
}
|
|
13852
14068
|
};
|