@symbo.ls/uikit 2.11.113 → 2.11.117
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 +1218 -527
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../packages/scratch/dist/cjs/index.js
|
|
34
34
|
var require_cjs = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../../packages/scratch/dist/cjs/index.js"(exports, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var __create2 = Object.create;
|
|
38
38
|
var __defProp2 = Object.defineProperty;
|
|
@@ -381,7 +381,7 @@ var require_cjs = __commonJS({
|
|
|
381
381
|
isBoolean: () => isBoolean,
|
|
382
382
|
isDefined: () => isDefined2,
|
|
383
383
|
isFunction: () => isFunction22,
|
|
384
|
-
isNot: () =>
|
|
384
|
+
isNot: () => isNot3,
|
|
385
385
|
isNull: () => isNull,
|
|
386
386
|
isNumber: () => isNumber2,
|
|
387
387
|
isObject: () => isObject7,
|
|
@@ -434,7 +434,7 @@ var require_cjs = __commonJS({
|
|
|
434
434
|
return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
|
|
435
435
|
};
|
|
436
436
|
};
|
|
437
|
-
var
|
|
437
|
+
var isNot3 = (arg) => {
|
|
438
438
|
return (...args) => {
|
|
439
439
|
return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
|
|
440
440
|
};
|
|
@@ -560,6 +560,7 @@ var require_cjs = __commonJS({
|
|
|
560
560
|
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
561
561
|
var string_exports = {};
|
|
562
562
|
__export22(string_exports, {
|
|
563
|
+
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields3,
|
|
563
564
|
stringIncludesAny: () => stringIncludesAny
|
|
564
565
|
});
|
|
565
566
|
module22.exports = __toCommonJS22(string_exports);
|
|
@@ -571,6 +572,22 @@ var require_cjs = __commonJS({
|
|
|
571
572
|
}
|
|
572
573
|
return false;
|
|
573
574
|
};
|
|
575
|
+
var replaceLiteralsWithObjectFields3 = (str, state) => {
|
|
576
|
+
return str.replace(/\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g, (_, parentPath, variable) => {
|
|
577
|
+
if (parentPath) {
|
|
578
|
+
const parentLevels = parentPath.split("../").filter(Boolean).length;
|
|
579
|
+
let parentState = state;
|
|
580
|
+
for (let i = 0; i < parentLevels; i++) {
|
|
581
|
+
parentState = parentState.parent;
|
|
582
|
+
}
|
|
583
|
+
const value = parentState[variable.trim()];
|
|
584
|
+
return value ? `${value}` : "";
|
|
585
|
+
} else {
|
|
586
|
+
const value = state[variable.trim()];
|
|
587
|
+
return value ? `${value}` : "";
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
};
|
|
574
591
|
}
|
|
575
592
|
});
|
|
576
593
|
var require_object2 = __commonJS2({
|
|
@@ -596,16 +613,16 @@ var require_cjs = __commonJS({
|
|
|
596
613
|
var object_exports = {};
|
|
597
614
|
__export22(object_exports, {
|
|
598
615
|
clone: () => clone,
|
|
599
|
-
deepClone: () =>
|
|
616
|
+
deepClone: () => deepClone22,
|
|
600
617
|
deepCloneExclude: () => deepCloneExclude,
|
|
601
618
|
deepDestringify: () => deepDestringify,
|
|
602
619
|
deepMerge: () => deepMerge3,
|
|
603
620
|
deepStringify: () => deepStringify,
|
|
604
621
|
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
605
|
-
diff: () =>
|
|
622
|
+
diff: () => diff3,
|
|
606
623
|
diffArrays: () => diffArrays,
|
|
607
624
|
diffObjects: () => diffObjects,
|
|
608
|
-
exec: () =>
|
|
625
|
+
exec: () => exec3,
|
|
609
626
|
flattenRecursive: () => flattenRecursive,
|
|
610
627
|
isEqualDeep: () => isEqualDeep,
|
|
611
628
|
map: () => map,
|
|
@@ -615,7 +632,7 @@ var require_cjs = __commonJS({
|
|
|
615
632
|
objectToString: () => objectToString,
|
|
616
633
|
overwrite: () => overwrite,
|
|
617
634
|
overwriteDeep: () => overwriteDeep2,
|
|
618
|
-
overwriteShallow: () =>
|
|
635
|
+
overwriteShallow: () => overwriteShallow3,
|
|
619
636
|
removeFromObject: () => removeFromObject,
|
|
620
637
|
stringToObject: () => stringToObject
|
|
621
638
|
});
|
|
@@ -624,7 +641,7 @@ var require_cjs = __commonJS({
|
|
|
624
641
|
var import_types = require_types2();
|
|
625
642
|
var import_array = require_array2();
|
|
626
643
|
var import_string = require_string2();
|
|
627
|
-
var
|
|
644
|
+
var exec3 = (param, element, state, context) => {
|
|
628
645
|
if ((0, import_types.isFunction)(param)) {
|
|
629
646
|
return param(
|
|
630
647
|
element,
|
|
@@ -636,7 +653,7 @@ var require_cjs = __commonJS({
|
|
|
636
653
|
};
|
|
637
654
|
var map = (obj, extention, element) => {
|
|
638
655
|
for (const e in extention) {
|
|
639
|
-
obj[e] =
|
|
656
|
+
obj[e] = exec3(extention[e], element);
|
|
640
657
|
}
|
|
641
658
|
};
|
|
642
659
|
var merge5 = (element, obj, excludeFrom = []) => {
|
|
@@ -698,7 +715,7 @@ var require_cjs = __commonJS({
|
|
|
698
715
|
var mergeArrayExclude = (arr, excl = []) => {
|
|
699
716
|
return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
|
|
700
717
|
};
|
|
701
|
-
var
|
|
718
|
+
var deepClone22 = (obj, excludeFrom = []) => {
|
|
702
719
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
703
720
|
for (const prop in obj) {
|
|
704
721
|
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
@@ -708,7 +725,7 @@ var require_cjs = __commonJS({
|
|
|
708
725
|
objProp = (0, import_array.mergeArray)(objProp);
|
|
709
726
|
}
|
|
710
727
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
711
|
-
o[prop] =
|
|
728
|
+
o[prop] = deepClone22(objProp, excludeFrom);
|
|
712
729
|
} else
|
|
713
730
|
o[prop] = objProp;
|
|
714
731
|
}
|
|
@@ -862,7 +879,7 @@ var require_cjs = __commonJS({
|
|
|
862
879
|
const objToDiffProp = objToDiff[e];
|
|
863
880
|
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
864
881
|
cache[e] = {};
|
|
865
|
-
|
|
882
|
+
diff3(originalProp, objToDiffProp, cache[e]);
|
|
866
883
|
} else if (objToDiffProp !== void 0) {
|
|
867
884
|
cache[e] = objToDiffProp;
|
|
868
885
|
}
|
|
@@ -875,7 +892,7 @@ var require_cjs = __commonJS({
|
|
|
875
892
|
} else {
|
|
876
893
|
const diffArr = [];
|
|
877
894
|
for (let i = 0; i < original.length; i++) {
|
|
878
|
-
const diffObj =
|
|
895
|
+
const diffObj = diff3(original[i], objToDiff[i]);
|
|
879
896
|
if (Object.keys(diffObj).length > 0) {
|
|
880
897
|
diffArr.push(diffObj);
|
|
881
898
|
}
|
|
@@ -886,7 +903,7 @@ var require_cjs = __commonJS({
|
|
|
886
903
|
}
|
|
887
904
|
return cache;
|
|
888
905
|
};
|
|
889
|
-
var
|
|
906
|
+
var diff3 = (original, objToDiff, cache = {}) => {
|
|
890
907
|
if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
|
|
891
908
|
cache = [];
|
|
892
909
|
diffArrays(original, objToDiff, cache);
|
|
@@ -910,7 +927,7 @@ var require_cjs = __commonJS({
|
|
|
910
927
|
}
|
|
911
928
|
return changes;
|
|
912
929
|
};
|
|
913
|
-
var
|
|
930
|
+
var overwriteShallow3 = (obj, params, excludeFrom = []) => {
|
|
914
931
|
for (const e in params) {
|
|
915
932
|
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
916
933
|
continue;
|
|
@@ -1104,7 +1121,7 @@ var require_cjs = __commonJS({
|
|
|
1104
1121
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
1105
1122
|
CASES: () => CASES,
|
|
1106
1123
|
COLOR: () => COLOR,
|
|
1107
|
-
CONFIG: () =>
|
|
1124
|
+
CONFIG: () => CONFIG3,
|
|
1108
1125
|
CSS_VARS: () => CSS_VARS,
|
|
1109
1126
|
DEVICES: () => DEVICES,
|
|
1110
1127
|
DOCUMENT: () => DOCUMENT,
|
|
@@ -1144,27 +1161,27 @@ var require_cjs = __commonJS({
|
|
|
1144
1161
|
generateSequence: () => generateSequence,
|
|
1145
1162
|
generateSprite: () => generateSprite,
|
|
1146
1163
|
generateSubSequence: () => generateSubSequence,
|
|
1147
|
-
getActiveConfig: () =>
|
|
1148
|
-
getColor: () =>
|
|
1164
|
+
getActiveConfig: () => getActiveConfig3,
|
|
1165
|
+
getColor: () => getColor3,
|
|
1149
1166
|
getColorShade: () => getColorShade,
|
|
1150
1167
|
getDefaultOrFirstKey: () => getDefaultOrFirstKey,
|
|
1151
1168
|
getFontFace: () => getFontFace,
|
|
1152
1169
|
getFontFaceEach: () => getFontFaceEach,
|
|
1153
1170
|
getFontFaceEachString: () => getFontFaceEachString,
|
|
1154
1171
|
getFontFaceString: () => getFontFaceString,
|
|
1155
|
-
getFontFamily: () =>
|
|
1172
|
+
getFontFamily: () => getFontFamily3,
|
|
1156
1173
|
getFontFormat: () => getFontFormat,
|
|
1157
|
-
getFontSizeByKey: () =>
|
|
1158
|
-
getMediaColor: () =>
|
|
1159
|
-
getMediaTheme: () =>
|
|
1174
|
+
getFontSizeByKey: () => getFontSizeByKey3,
|
|
1175
|
+
getMediaColor: () => getMediaColor5,
|
|
1176
|
+
getMediaTheme: () => getMediaTheme3,
|
|
1160
1177
|
getRgbTone: () => getRgbTone,
|
|
1161
1178
|
getSequenceValue: () => getSequenceValue,
|
|
1162
1179
|
getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
|
|
1163
|
-
getSpacingBasedOnRatio: () =>
|
|
1164
|
-
getSpacingByKey: () =>
|
|
1165
|
-
getTheme: () =>
|
|
1166
|
-
getTimingByKey: () =>
|
|
1167
|
-
getTimingFunction: () =>
|
|
1180
|
+
getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
|
|
1181
|
+
getSpacingByKey: () => getSpacingByKey5,
|
|
1182
|
+
getTheme: () => getTheme3,
|
|
1183
|
+
getTimingByKey: () => getTimingByKey3,
|
|
1184
|
+
getTimingFunction: () => getTimingFunction5,
|
|
1168
1185
|
hexToRgb: () => hexToRgb,
|
|
1169
1186
|
hexToRgbArray: () => hexToRgbArray,
|
|
1170
1187
|
hexToRgba: () => hexToRgba,
|
|
@@ -1197,14 +1214,14 @@ var require_cjs = __commonJS({
|
|
|
1197
1214
|
setTheme: () => setTheme,
|
|
1198
1215
|
setValue: () => setValue,
|
|
1199
1216
|
setVariables: () => setVariables,
|
|
1200
|
-
splitTransition: () =>
|
|
1201
|
-
transformBackgroundImage: () =>
|
|
1202
|
-
transformBorder: () =>
|
|
1203
|
-
transformDuration: () =>
|
|
1204
|
-
transformShadow: () =>
|
|
1205
|
-
transformTextStroke: () =>
|
|
1217
|
+
splitTransition: () => splitTransition3,
|
|
1218
|
+
transformBackgroundImage: () => transformBackgroundImage3,
|
|
1219
|
+
transformBorder: () => transformBorder3,
|
|
1220
|
+
transformDuration: () => transformDuration3,
|
|
1221
|
+
transformShadow: () => transformShadow3,
|
|
1222
|
+
transformTextStroke: () => transformTextStroke3,
|
|
1206
1223
|
transformTransition: () => transformTransition,
|
|
1207
|
-
transfromGap: () =>
|
|
1224
|
+
transfromGap: () => transfromGap3
|
|
1208
1225
|
});
|
|
1209
1226
|
module2.exports = __toCommonJS2(src_exports);
|
|
1210
1227
|
var utils_exports = {};
|
|
@@ -1247,7 +1264,7 @@ var require_cjs = __commonJS({
|
|
|
1247
1264
|
setVariables: () => setVariables
|
|
1248
1265
|
});
|
|
1249
1266
|
var import_globals = __toESM2(require_cjs10(), 1);
|
|
1250
|
-
var
|
|
1267
|
+
var import_utils16 = __toESM2(require_cjs42(), 1);
|
|
1251
1268
|
var ENV = "development";
|
|
1252
1269
|
var colorStringToRgbaArray = (color) => {
|
|
1253
1270
|
if (color === "")
|
|
@@ -1375,9 +1392,9 @@ var require_cjs = __commonJS({
|
|
|
1375
1392
|
return `rgba(${arr})`;
|
|
1376
1393
|
};
|
|
1377
1394
|
var getRgbTone = (rgb, tone) => {
|
|
1378
|
-
if ((0,
|
|
1395
|
+
if ((0, import_utils16.isString)(rgb))
|
|
1379
1396
|
rgb = rgb.split(", ").map((v) => parseFloat(v));
|
|
1380
|
-
if ((0,
|
|
1397
|
+
if ((0, import_utils16.isNumber)(tone))
|
|
1381
1398
|
tone += "";
|
|
1382
1399
|
const toHex = rgbArrayToHex(rgb);
|
|
1383
1400
|
const abs2 = tone.slice(0, 1);
|
|
@@ -1621,17 +1638,17 @@ var require_cjs = __commonJS({
|
|
|
1621
1638
|
var SVG_DATA = {};
|
|
1622
1639
|
var RESET = {};
|
|
1623
1640
|
var CSS_VARS = {};
|
|
1624
|
-
var
|
|
1641
|
+
var CONFIG3 = {
|
|
1625
1642
|
verbose: false,
|
|
1626
1643
|
useVariable: true,
|
|
1627
1644
|
useReset: true,
|
|
1628
1645
|
CSS_VARS,
|
|
1629
1646
|
...defaultConfig_exports
|
|
1630
1647
|
};
|
|
1631
|
-
var cachedConfig = (0, import_utils42.deepClone)(
|
|
1648
|
+
var cachedConfig = (0, import_utils42.deepClone)(CONFIG3);
|
|
1632
1649
|
var FACTORY = {
|
|
1633
1650
|
active: "0",
|
|
1634
|
-
0:
|
|
1651
|
+
0: CONFIG3
|
|
1635
1652
|
};
|
|
1636
1653
|
var activateConfig = (def) => {
|
|
1637
1654
|
if ((0, import_utils42.isDefined)(def)) {
|
|
@@ -1639,7 +1656,7 @@ var require_cjs = __commonJS({
|
|
|
1639
1656
|
}
|
|
1640
1657
|
return FACTORY[def || FACTORY.active];
|
|
1641
1658
|
};
|
|
1642
|
-
var
|
|
1659
|
+
var getActiveConfig3 = (def) => {
|
|
1643
1660
|
return FACTORY[def || FACTORY.active];
|
|
1644
1661
|
};
|
|
1645
1662
|
var setActiveConfig = (newConfig) => {
|
|
@@ -1693,8 +1710,8 @@ var require_cjs = __commonJS({
|
|
|
1693
1710
|
var generateSubSequence = (props6, sequenceProps) => {
|
|
1694
1711
|
const { key, base, value, ratio, variable, index } = props6;
|
|
1695
1712
|
const next2 = value * ratio;
|
|
1696
|
-
const
|
|
1697
|
-
const smallscale =
|
|
1713
|
+
const diff3 = next2 - value;
|
|
1714
|
+
const smallscale = diff3 / 1.618;
|
|
1698
1715
|
const valueRounded = ~~value;
|
|
1699
1716
|
const nextRounded = ~~next2;
|
|
1700
1717
|
const diffRounded = nextRounded - valueRounded;
|
|
@@ -1748,7 +1765,7 @@ var require_cjs = __commonJS({
|
|
|
1748
1765
|
return sequenceProps;
|
|
1749
1766
|
};
|
|
1750
1767
|
var getSequenceValue = (value = "A", sequenceProps) => {
|
|
1751
|
-
const CONFIG22 =
|
|
1768
|
+
const CONFIG22 = getActiveConfig3();
|
|
1752
1769
|
const { UNIT: UNIT2 } = CONFIG22;
|
|
1753
1770
|
const {
|
|
1754
1771
|
sequence,
|
|
@@ -1818,7 +1835,7 @@ var require_cjs = __commonJS({
|
|
|
1818
1835
|
};
|
|
1819
1836
|
var import_utils72 = __toESM2(require_cjs42(), 1);
|
|
1820
1837
|
var setVariables = (result, key) => {
|
|
1821
|
-
const CONFIG22 =
|
|
1838
|
+
const CONFIG22 = getActiveConfig3();
|
|
1822
1839
|
const { CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
1823
1840
|
if ((0, import_utils72.isObjectLike)(result.value)) {
|
|
1824
1841
|
} else {
|
|
@@ -1826,7 +1843,7 @@ var require_cjs = __commonJS({
|
|
|
1826
1843
|
}
|
|
1827
1844
|
};
|
|
1828
1845
|
var applySequenceVars = (props6, mediaName, options = {}) => {
|
|
1829
|
-
const CONFIG22 =
|
|
1846
|
+
const CONFIG22 = getActiveConfig3();
|
|
1830
1847
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
1831
1848
|
const unit = props6.unit || UNIT2.default;
|
|
1832
1849
|
const { sequence, scales } = props6;
|
|
@@ -1856,7 +1873,7 @@ var require_cjs = __commonJS({
|
|
|
1856
1873
|
};
|
|
1857
1874
|
var import_utils82 = __toESM2(require_cjs42(), 1);
|
|
1858
1875
|
var generateSprite = (icons) => {
|
|
1859
|
-
const CONFIG22 =
|
|
1876
|
+
const CONFIG22 = getActiveConfig3();
|
|
1860
1877
|
let sprite = "";
|
|
1861
1878
|
for (const key in icons) {
|
|
1862
1879
|
if (CONFIG22.__svg_cache[key])
|
|
@@ -1921,16 +1938,16 @@ var require_cjs = __commonJS({
|
|
|
1921
1938
|
applySpacingSequence: () => applySpacingSequence,
|
|
1922
1939
|
applyTimingSequence: () => applyTimingSequence,
|
|
1923
1940
|
applyTypographySequence: () => applyTypographySequence,
|
|
1924
|
-
getColor: () =>
|
|
1925
|
-
getFontFamily: () =>
|
|
1926
|
-
getFontSizeByKey: () =>
|
|
1927
|
-
getMediaColor: () =>
|
|
1928
|
-
getMediaTheme: () =>
|
|
1929
|
-
getSpacingBasedOnRatio: () =>
|
|
1930
|
-
getSpacingByKey: () =>
|
|
1931
|
-
getTheme: () =>
|
|
1932
|
-
getTimingByKey: () =>
|
|
1933
|
-
getTimingFunction: () =>
|
|
1941
|
+
getColor: () => getColor3,
|
|
1942
|
+
getFontFamily: () => getFontFamily3,
|
|
1943
|
+
getFontSizeByKey: () => getFontSizeByKey3,
|
|
1944
|
+
getMediaColor: () => getMediaColor5,
|
|
1945
|
+
getMediaTheme: () => getMediaTheme3,
|
|
1946
|
+
getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
|
|
1947
|
+
getSpacingByKey: () => getSpacingByKey5,
|
|
1948
|
+
getTheme: () => getTheme3,
|
|
1949
|
+
getTimingByKey: () => getTimingByKey3,
|
|
1950
|
+
getTimingFunction: () => getTimingFunction5,
|
|
1934
1951
|
runThroughMedia: () => runThroughMedia,
|
|
1935
1952
|
setColor: () => setColor,
|
|
1936
1953
|
setFont: () => setFont,
|
|
@@ -1941,10 +1958,10 @@ var require_cjs = __commonJS({
|
|
|
1941
1958
|
setSVG: () => setSVG,
|
|
1942
1959
|
setTheme: () => setTheme
|
|
1943
1960
|
});
|
|
1944
|
-
var
|
|
1945
|
-
var
|
|
1946
|
-
const CONFIG22 = config ||
|
|
1947
|
-
if (!(0,
|
|
1961
|
+
var import_utils92 = __toESM2(require_cjs42(), 1);
|
|
1962
|
+
var getColor3 = (value, key, config) => {
|
|
1963
|
+
const CONFIG22 = config || getActiveConfig3();
|
|
1964
|
+
if (!(0, import_utils92.isString)(value)) {
|
|
1948
1965
|
if (CONFIG22.verbose)
|
|
1949
1966
|
console.warn(value, "- type for color is not valid");
|
|
1950
1967
|
return;
|
|
@@ -1953,7 +1970,7 @@ var require_cjs = __commonJS({
|
|
|
1953
1970
|
return `var(${value})`;
|
|
1954
1971
|
if (key && value[key])
|
|
1955
1972
|
value = value[key];
|
|
1956
|
-
const [name, alpha, tone] = (0,
|
|
1973
|
+
const [name, alpha, tone] = (0, import_utils92.isArray)(value) ? value : value.split(" ");
|
|
1957
1974
|
const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
|
|
1958
1975
|
let val = COLOR2[name] || GRADIENT2[name];
|
|
1959
1976
|
if (!val) {
|
|
@@ -1981,32 +1998,32 @@ var require_cjs = __commonJS({
|
|
|
1981
1998
|
return `rgba(${rgb}, ${alpha})`;
|
|
1982
1999
|
return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
|
|
1983
2000
|
};
|
|
1984
|
-
var
|
|
1985
|
-
const CONFIG22 = config ||
|
|
2001
|
+
var getMediaColor5 = (value, globalTheme, config) => {
|
|
2002
|
+
const CONFIG22 = config || getActiveConfig3();
|
|
1986
2003
|
if (!globalTheme)
|
|
1987
2004
|
globalTheme = CONFIG22.globalTheme;
|
|
1988
|
-
if (!(0,
|
|
2005
|
+
if (!(0, import_utils92.isString)(value)) {
|
|
1989
2006
|
if (CONFIG22.verbose)
|
|
1990
2007
|
console.warn(value, "- type for color is not valid");
|
|
1991
2008
|
return;
|
|
1992
2009
|
}
|
|
1993
2010
|
if (value.slice(0, 2) === "--")
|
|
1994
2011
|
return `var(${value})`;
|
|
1995
|
-
const [name] = (0,
|
|
2012
|
+
const [name] = (0, import_utils92.isArray)(value) ? value : value.split(" ");
|
|
1996
2013
|
const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
|
|
1997
2014
|
const val = COLOR2[name] || GRADIENT2[name];
|
|
1998
|
-
const isObj = (0,
|
|
2015
|
+
const isObj = (0, import_utils92.isObject)(val);
|
|
1999
2016
|
if (isObj && val.value)
|
|
2000
|
-
return
|
|
2017
|
+
return getColor3(value, `@${globalTheme}`, config);
|
|
2001
2018
|
else if (isObj) {
|
|
2002
2019
|
if (globalTheme)
|
|
2003
|
-
return
|
|
2020
|
+
return getColor3(value, `@${globalTheme}`, config);
|
|
2004
2021
|
else {
|
|
2005
2022
|
const obj = {};
|
|
2006
2023
|
for (const mediaName in val) {
|
|
2007
2024
|
const query = CONFIG22.MEDIA[mediaName.slice(1)];
|
|
2008
2025
|
const media = `@media screen and ${query}`;
|
|
2009
|
-
obj[media] =
|
|
2026
|
+
obj[media] = getColor3(value, mediaName, config);
|
|
2010
2027
|
}
|
|
2011
2028
|
return obj;
|
|
2012
2029
|
}
|
|
@@ -2017,16 +2034,16 @@ var require_cjs = __commonJS({
|
|
|
2017
2034
|
}
|
|
2018
2035
|
};
|
|
2019
2036
|
var setColor = (val, key, suffix) => {
|
|
2020
|
-
const CONFIG22 =
|
|
2021
|
-
if ((0,
|
|
2022
|
-
val =
|
|
2023
|
-
if ((0,
|
|
2037
|
+
const CONFIG22 = getActiveConfig3();
|
|
2038
|
+
if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
|
|
2039
|
+
val = getColor3(val.slice(2));
|
|
2040
|
+
if ((0, import_utils92.isArray)(val)) {
|
|
2024
2041
|
return {
|
|
2025
2042
|
"@light": setColor(val[0], key, "light"),
|
|
2026
2043
|
"@dark": setColor(val[1], key, "dark")
|
|
2027
2044
|
};
|
|
2028
2045
|
}
|
|
2029
|
-
if ((0,
|
|
2046
|
+
if ((0, import_utils92.isObject)(val)) {
|
|
2030
2047
|
const obj = {};
|
|
2031
2048
|
for (const variant in val)
|
|
2032
2049
|
obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
|
|
@@ -2048,16 +2065,16 @@ var require_cjs = __commonJS({
|
|
|
2048
2065
|
};
|
|
2049
2066
|
};
|
|
2050
2067
|
var setGradient = (val, key, suffix) => {
|
|
2051
|
-
const CONFIG22 =
|
|
2052
|
-
if ((0,
|
|
2053
|
-
val =
|
|
2054
|
-
if ((0,
|
|
2068
|
+
const CONFIG22 = getActiveConfig3();
|
|
2069
|
+
if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
|
|
2070
|
+
val = getColor3(val.slice(2));
|
|
2071
|
+
if ((0, import_utils92.isArray)(val)) {
|
|
2055
2072
|
return {
|
|
2056
2073
|
"@light": setGradient(val[0], key, "light"),
|
|
2057
2074
|
"@dark": setGradient(val[0], key, "dark")
|
|
2058
2075
|
};
|
|
2059
2076
|
}
|
|
2060
|
-
if ((0,
|
|
2077
|
+
if ((0, import_utils92.isObject)(val)) {
|
|
2061
2078
|
const obj = {};
|
|
2062
2079
|
for (const variant in val)
|
|
2063
2080
|
obj[variant] = setGradient(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
|
|
@@ -2072,7 +2089,7 @@ var require_cjs = __commonJS({
|
|
|
2072
2089
|
value: val.value || val
|
|
2073
2090
|
};
|
|
2074
2091
|
};
|
|
2075
|
-
var
|
|
2092
|
+
var import_utils112 = __toESM2(require_cjs42(), 1);
|
|
2076
2093
|
var setThemeValue = (theme) => {
|
|
2077
2094
|
const value = {};
|
|
2078
2095
|
const { state, media, helpers, ...rest } = theme;
|
|
@@ -2080,7 +2097,7 @@ var require_cjs = __commonJS({
|
|
|
2080
2097
|
keys.map((key) => {
|
|
2081
2098
|
const conditions = ["color", "Color", "background", "border"];
|
|
2082
2099
|
const isColor = conditions.some((k) => key.includes(k));
|
|
2083
|
-
return value[key] = isColor ?
|
|
2100
|
+
return value[key] = isColor ? getColor3(theme[key]) : theme[key];
|
|
2084
2101
|
});
|
|
2085
2102
|
return value;
|
|
2086
2103
|
};
|
|
@@ -2090,12 +2107,12 @@ var require_cjs = __commonJS({
|
|
|
2090
2107
|
theme.value = setThemeValue(theme);
|
|
2091
2108
|
return theme.value;
|
|
2092
2109
|
};
|
|
2093
|
-
var
|
|
2094
|
-
const CONFIG22 =
|
|
2110
|
+
var getTheme3 = (value, modifier) => {
|
|
2111
|
+
const CONFIG22 = getActiveConfig3();
|
|
2095
2112
|
if (CONFIG22.useVariable)
|
|
2096
|
-
return
|
|
2113
|
+
return getMediaTheme3(value, modifier);
|
|
2097
2114
|
const { THEME: THEME2 } = CONFIG22;
|
|
2098
|
-
if ((0,
|
|
2115
|
+
if ((0, import_utils112.isString)(value)) {
|
|
2099
2116
|
const [theme, subtheme] = value.split(" ");
|
|
2100
2117
|
const isOurTheme = THEME2[theme];
|
|
2101
2118
|
if (isOurTheme) {
|
|
@@ -2104,7 +2121,7 @@ var require_cjs = __commonJS({
|
|
|
2104
2121
|
value = [theme, subtheme || modifier];
|
|
2105
2122
|
}
|
|
2106
2123
|
}
|
|
2107
|
-
if ((0,
|
|
2124
|
+
if ((0, import_utils112.isObjectLike)(value) && value[1]) {
|
|
2108
2125
|
const themeName = value[0];
|
|
2109
2126
|
const subThemeName = value[1];
|
|
2110
2127
|
const { helpers, media, state } = THEME2[themeName];
|
|
@@ -2114,11 +2131,11 @@ var require_cjs = __commonJS({
|
|
|
2114
2131
|
return getThemeValue(helpers[subThemeName]);
|
|
2115
2132
|
if (state && state[subThemeName])
|
|
2116
2133
|
return getThemeValue(state[subThemeName]);
|
|
2117
|
-
} else if ((0,
|
|
2134
|
+
} else if ((0, import_utils112.isObject)(value))
|
|
2118
2135
|
return setThemeValue(value);
|
|
2119
2136
|
};
|
|
2120
2137
|
var setInverseTheme = (theme, variant, value) => {
|
|
2121
|
-
if ((0,
|
|
2138
|
+
if ((0, import_utils112.isObject)(variant)) {
|
|
2122
2139
|
theme.variants.inverse.value = setThemeValue(variant);
|
|
2123
2140
|
} else if (variant === true) {
|
|
2124
2141
|
const { color, background } = value;
|
|
@@ -2131,9 +2148,9 @@ var require_cjs = __commonJS({
|
|
|
2131
2148
|
}
|
|
2132
2149
|
};
|
|
2133
2150
|
var setPseudo = (theme, key, variant, themeValue) => {
|
|
2134
|
-
const result =
|
|
2151
|
+
const result = getTheme3(variant);
|
|
2135
2152
|
themeValue[`&:${key}`] = result;
|
|
2136
|
-
if ((0,
|
|
2153
|
+
if ((0, import_utils112.isObject)(variant) && !variant.value)
|
|
2137
2154
|
variant.value = result;
|
|
2138
2155
|
};
|
|
2139
2156
|
var setSelectors = (theme, value) => {
|
|
@@ -2149,9 +2166,9 @@ var require_cjs = __commonJS({
|
|
|
2149
2166
|
return theme;
|
|
2150
2167
|
};
|
|
2151
2168
|
var setPrefersScheme = (theme, key, variant, themeValue) => {
|
|
2152
|
-
const result =
|
|
2169
|
+
const result = getTheme3(variant);
|
|
2153
2170
|
themeValue[`@media (prefers-color-scheme: ${key})`] = result;
|
|
2154
|
-
if ((0,
|
|
2171
|
+
if ((0, import_utils112.isObject)(variant) && !variant.value)
|
|
2155
2172
|
variant.value = result;
|
|
2156
2173
|
};
|
|
2157
2174
|
var setMedia = (theme, value) => {
|
|
@@ -2170,14 +2187,14 @@ var require_cjs = __commonJS({
|
|
|
2170
2187
|
return theme;
|
|
2171
2188
|
};
|
|
2172
2189
|
var setHelpers = (theme, value) => {
|
|
2173
|
-
const CONFIG22 =
|
|
2190
|
+
const CONFIG22 = getActiveConfig3();
|
|
2174
2191
|
const { helpers } = theme;
|
|
2175
2192
|
if (!helpers)
|
|
2176
2193
|
return;
|
|
2177
2194
|
const keys = Object.keys(helpers);
|
|
2178
2195
|
keys.map((key) => {
|
|
2179
2196
|
const helper = helpers[key];
|
|
2180
|
-
if ((0,
|
|
2197
|
+
if ((0, import_utils112.isString)(helper))
|
|
2181
2198
|
helpers[key] = CONFIG22.THEME[helper];
|
|
2182
2199
|
else
|
|
2183
2200
|
getThemeValue(helpers[key]);
|
|
@@ -2186,7 +2203,7 @@ var require_cjs = __commonJS({
|
|
|
2186
2203
|
return theme;
|
|
2187
2204
|
};
|
|
2188
2205
|
var setTheme = (val, key) => {
|
|
2189
|
-
const CONFIG22 =
|
|
2206
|
+
const CONFIG22 = getActiveConfig3();
|
|
2190
2207
|
if (CONFIG22.useVariable)
|
|
2191
2208
|
return setMediaTheme(val, key);
|
|
2192
2209
|
const { state, media, helpers } = val;
|
|
@@ -2198,10 +2215,10 @@ var require_cjs = __commonJS({
|
|
|
2198
2215
|
return { var: CSSvar, value, state, media, helpers };
|
|
2199
2216
|
};
|
|
2200
2217
|
var setMediaTheme = (val, key, suffix, prefers) => {
|
|
2201
|
-
const CONFIG22 =
|
|
2218
|
+
const CONFIG22 = getActiveConfig3();
|
|
2202
2219
|
const { CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
2203
2220
|
const theme = { value: val };
|
|
2204
|
-
if ((0,
|
|
2221
|
+
if ((0, import_utils112.isObjectLike)(val)) {
|
|
2205
2222
|
for (const param in val) {
|
|
2206
2223
|
const symb = param.slice(0, 1);
|
|
2207
2224
|
const value = val[param];
|
|
@@ -2209,7 +2226,7 @@ var require_cjs = __commonJS({
|
|
|
2209
2226
|
const hasPrefers = symb === "@" && param;
|
|
2210
2227
|
theme[param] = setMediaTheme(value, key, param, prefers || hasPrefers);
|
|
2211
2228
|
} else {
|
|
2212
|
-
const color =
|
|
2229
|
+
const color = getColor3(value, prefers);
|
|
2213
2230
|
const metaSuffixes = [...new Set([prefers, suffix].filter((v) => v).map((v) => v.slice(1)))];
|
|
2214
2231
|
const varmetaSuffixName = metaSuffixes.length ? "-" + metaSuffixes.join("-") : "";
|
|
2215
2232
|
const CSSVar = `--theme-${key}${varmetaSuffixName}-${param}`;
|
|
@@ -2229,20 +2246,20 @@ var require_cjs = __commonJS({
|
|
|
2229
2246
|
};
|
|
2230
2247
|
}
|
|
2231
2248
|
}
|
|
2232
|
-
if ((0,
|
|
2249
|
+
if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
|
|
2233
2250
|
const { THEME: THEME2 } = CONFIG22;
|
|
2234
2251
|
const value = THEME2[val.slice(2)];
|
|
2235
|
-
const getReferenced =
|
|
2252
|
+
const getReferenced = getMediaTheme3(value, prefers);
|
|
2236
2253
|
return getReferenced;
|
|
2237
2254
|
}
|
|
2238
2255
|
return theme;
|
|
2239
2256
|
};
|
|
2240
2257
|
var recursiveTheme = (val) => {
|
|
2241
|
-
const CONFIG22 =
|
|
2258
|
+
const CONFIG22 = getActiveConfig3();
|
|
2242
2259
|
const obj = {};
|
|
2243
2260
|
for (const param in val) {
|
|
2244
2261
|
const symb = param.slice(0, 1);
|
|
2245
|
-
if ((0,
|
|
2262
|
+
if ((0, import_utils112.isObjectLike)(val[param])) {
|
|
2246
2263
|
if (symb === "@") {
|
|
2247
2264
|
const query = CONFIG22.MEDIA[param.slice(1)];
|
|
2248
2265
|
const media = `@media screen and ${query}`;
|
|
@@ -2262,23 +2279,23 @@ var require_cjs = __commonJS({
|
|
|
2262
2279
|
return val;
|
|
2263
2280
|
};
|
|
2264
2281
|
var findModifier = (val, modifier) => {
|
|
2265
|
-
if ((0,
|
|
2282
|
+
if ((0, import_utils112.isArray)(modifier))
|
|
2266
2283
|
return findModifierFromArray(val, modifier);
|
|
2267
|
-
else if ((0,
|
|
2284
|
+
else if ((0, import_utils112.isString)(modifier) && val[modifier])
|
|
2268
2285
|
return val[modifier];
|
|
2269
2286
|
else
|
|
2270
2287
|
return val;
|
|
2271
2288
|
};
|
|
2272
|
-
var
|
|
2273
|
-
const CONFIG22 =
|
|
2274
|
-
if ((0,
|
|
2275
|
-
val =
|
|
2276
|
-
if (!val || !(0,
|
|
2289
|
+
var getMediaTheme3 = (val, mod) => {
|
|
2290
|
+
const CONFIG22 = getActiveConfig3();
|
|
2291
|
+
if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
|
|
2292
|
+
val = getMediaTheme3(val.slice(2));
|
|
2293
|
+
if (!val || !(0, import_utils112.isString)(val)) {
|
|
2277
2294
|
if (CONFIG22.verbose)
|
|
2278
2295
|
console.warn(val, "- theme is not string");
|
|
2279
2296
|
return;
|
|
2280
2297
|
}
|
|
2281
|
-
const [name, ...modifier] = (0,
|
|
2298
|
+
const [name, ...modifier] = (0, import_utils112.isArray)(val) ? val : val.split(" ");
|
|
2282
2299
|
let value = CONFIG22.THEME[name];
|
|
2283
2300
|
if (value && (modifier || mod)) {
|
|
2284
2301
|
value = findModifier(value, modifier.length ? modifier : mod);
|
|
@@ -2286,38 +2303,38 @@ var require_cjs = __commonJS({
|
|
|
2286
2303
|
const r = recursiveTheme(value);
|
|
2287
2304
|
return r;
|
|
2288
2305
|
};
|
|
2289
|
-
var
|
|
2306
|
+
var import_utils122 = __toESM2(require_cjs42(), 1);
|
|
2290
2307
|
var setFont = (val, key) => {
|
|
2291
2308
|
const CSSvar = `--font-${key}`;
|
|
2292
2309
|
const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
|
|
2293
2310
|
return { var: CSSvar, value: val, fontFace };
|
|
2294
2311
|
};
|
|
2295
|
-
var
|
|
2296
|
-
const CONFIG22 =
|
|
2312
|
+
var getFontFamily3 = (key, factory) => {
|
|
2313
|
+
const CONFIG22 = getActiveConfig3();
|
|
2297
2314
|
const { FONT_FAMILY: FONT_FAMILY2 } = CONFIG22;
|
|
2298
2315
|
return getDefaultOrFirstKey(factory || FONT_FAMILY2, key);
|
|
2299
2316
|
};
|
|
2300
2317
|
var setFontFamily = (val, key) => {
|
|
2301
|
-
const CONFIG22 =
|
|
2318
|
+
const CONFIG22 = getActiveConfig3();
|
|
2302
2319
|
const { FONT_FAMILY: FONT_FAMILY2, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
|
|
2303
2320
|
let { value, type } = val;
|
|
2304
2321
|
if (val.isDefault)
|
|
2305
2322
|
FONT_FAMILY2.default = key;
|
|
2306
|
-
if ((0,
|
|
2323
|
+
if ((0, import_utils122.isObject)(value))
|
|
2307
2324
|
value = arrayzeValue(value);
|
|
2308
2325
|
const CSSvar = `--font-family-${key}`;
|
|
2309
2326
|
const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
|
|
2310
2327
|
return { var: CSSvar, value: str, arr: value, type };
|
|
2311
2328
|
};
|
|
2312
|
-
var
|
|
2329
|
+
var import_utils152 = __toESM2(require_cjs42(), 1);
|
|
2313
2330
|
var runThroughMedia = (props6) => {
|
|
2314
|
-
const CONFIG22 =
|
|
2331
|
+
const CONFIG22 = getActiveConfig3();
|
|
2315
2332
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
2316
2333
|
for (const prop in props6) {
|
|
2317
2334
|
const mediaProps = props6[prop];
|
|
2318
2335
|
if (prop.slice(0, 1) === "@") {
|
|
2319
2336
|
const { type, base, ratio, range, subSequence, h1Matches, unit } = props6;
|
|
2320
|
-
(0,
|
|
2337
|
+
(0, import_utils152.merge)(mediaProps, {
|
|
2321
2338
|
type,
|
|
2322
2339
|
base,
|
|
2323
2340
|
ratio,
|
|
@@ -2341,7 +2358,7 @@ var require_cjs = __commonJS({
|
|
|
2341
2358
|
}
|
|
2342
2359
|
};
|
|
2343
2360
|
var applyHeadings = (props6) => {
|
|
2344
|
-
const CONFIG22 =
|
|
2361
|
+
const CONFIG22 = getActiveConfig3();
|
|
2345
2362
|
if (props6.h1Matches) {
|
|
2346
2363
|
const unit = props6.unit;
|
|
2347
2364
|
const HEADINGS = findHeadings(props6);
|
|
@@ -2360,15 +2377,15 @@ var require_cjs = __commonJS({
|
|
|
2360
2377
|
}
|
|
2361
2378
|
};
|
|
2362
2379
|
var applyTypographySequence = () => {
|
|
2363
|
-
const CONFIG22 =
|
|
2380
|
+
const CONFIG22 = getActiveConfig3();
|
|
2364
2381
|
const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
|
|
2365
2382
|
generateSequence(TYPOGRAPHY2);
|
|
2366
2383
|
applyHeadings(TYPOGRAPHY2);
|
|
2367
2384
|
applySequenceVars(TYPOGRAPHY2);
|
|
2368
2385
|
runThroughMedia(TYPOGRAPHY2);
|
|
2369
2386
|
};
|
|
2370
|
-
var
|
|
2371
|
-
const CONFIG22 =
|
|
2387
|
+
var getFontSizeByKey3 = (value) => {
|
|
2388
|
+
const CONFIG22 = getActiveConfig3();
|
|
2372
2389
|
const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
|
|
2373
2390
|
return getSequenceValuePropertyPair(
|
|
2374
2391
|
value,
|
|
@@ -2402,21 +2419,21 @@ var require_cjs = __commonJS({
|
|
|
2402
2419
|
}
|
|
2403
2420
|
};
|
|
2404
2421
|
var applySpacingSequence = () => {
|
|
2405
|
-
const CONFIG22 =
|
|
2422
|
+
const CONFIG22 = getActiveConfig3();
|
|
2406
2423
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
2407
2424
|
generateSequence(SPACING2);
|
|
2408
2425
|
applySequenceVars(SPACING2);
|
|
2409
2426
|
runThroughMedia2(SPACING2);
|
|
2410
2427
|
};
|
|
2411
2428
|
var getSequence = (sequenceProps) => {
|
|
2412
|
-
const CONFIG22 =
|
|
2429
|
+
const CONFIG22 = getActiveConfig3();
|
|
2413
2430
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
2414
2431
|
if (!sequenceProps)
|
|
2415
2432
|
return SPACING2;
|
|
2416
2433
|
const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
|
|
2417
2434
|
return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
|
|
2418
2435
|
};
|
|
2419
|
-
var
|
|
2436
|
+
var getSpacingByKey5 = (value, propertyName = "padding", sequenceProps) => {
|
|
2420
2437
|
const sequence = getSequence(sequenceProps);
|
|
2421
2438
|
const stack = arrayzeValue(value);
|
|
2422
2439
|
if (!stack)
|
|
@@ -2448,8 +2465,8 @@ var require_cjs = __commonJS({
|
|
|
2448
2465
|
sequence
|
|
2449
2466
|
);
|
|
2450
2467
|
};
|
|
2451
|
-
var
|
|
2452
|
-
const CONFIG22 =
|
|
2468
|
+
var getSpacingBasedOnRatio7 = (props6, propertyName, val) => {
|
|
2469
|
+
const CONFIG22 = getActiveConfig3();
|
|
2453
2470
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
2454
2471
|
const { spacingRatio, unit } = props6;
|
|
2455
2472
|
const value = val || props6[propertyName];
|
|
@@ -2474,23 +2491,23 @@ var require_cjs = __commonJS({
|
|
|
2474
2491
|
});
|
|
2475
2492
|
}
|
|
2476
2493
|
applySequenceVars(sequenceProps, null, { useDefault: false });
|
|
2477
|
-
return
|
|
2494
|
+
return getSpacingByKey5(value, propertyName, sequenceProps);
|
|
2478
2495
|
}
|
|
2479
|
-
return
|
|
2496
|
+
return getSpacingByKey5(value, propertyName);
|
|
2480
2497
|
};
|
|
2481
2498
|
var applyTimingSequence = () => {
|
|
2482
|
-
const CONFIG22 =
|
|
2499
|
+
const CONFIG22 = getActiveConfig3();
|
|
2483
2500
|
const { TIMING: TIMING2 } = CONFIG22;
|
|
2484
2501
|
generateSequence(TIMING2);
|
|
2485
2502
|
applySequenceVars(TIMING2);
|
|
2486
2503
|
};
|
|
2487
|
-
var
|
|
2488
|
-
const CONFIG22 =
|
|
2504
|
+
var getTimingFunction5 = (value) => {
|
|
2505
|
+
const CONFIG22 = getActiveConfig3();
|
|
2489
2506
|
const { TIMING: TIMING2 } = CONFIG22;
|
|
2490
2507
|
return TIMING2[value] || TIMING2[toCamelCase(value)] || value;
|
|
2491
2508
|
};
|
|
2492
|
-
var
|
|
2493
|
-
const CONFIG22 =
|
|
2509
|
+
var getTimingByKey3 = (value, property = "timing") => {
|
|
2510
|
+
const CONFIG22 = getActiveConfig3();
|
|
2494
2511
|
const { TIMING: TIMING2 } = CONFIG22;
|
|
2495
2512
|
return getSequenceValuePropertyPair(
|
|
2496
2513
|
value,
|
|
@@ -2500,7 +2517,7 @@ var require_cjs = __commonJS({
|
|
|
2500
2517
|
};
|
|
2501
2518
|
var import_utils222 = __toESM2(require_cjs42(), 1);
|
|
2502
2519
|
var applyDocument = () => {
|
|
2503
|
-
const CONFIG22 =
|
|
2520
|
+
const CONFIG22 = getActiveConfig3();
|
|
2504
2521
|
const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
|
|
2505
2522
|
return (0, import_utils222.merge)(DOCUMENT2, {
|
|
2506
2523
|
theme: THEME2.document,
|
|
@@ -2514,7 +2531,7 @@ var require_cjs = __commonJS({
|
|
|
2514
2531
|
document: import_globals2.document
|
|
2515
2532
|
};
|
|
2516
2533
|
var setSVG = (val, key) => {
|
|
2517
|
-
const CONFIG22 =
|
|
2534
|
+
const CONFIG22 = getActiveConfig3();
|
|
2518
2535
|
if (!val) {
|
|
2519
2536
|
if (CONFIG22.verbose)
|
|
2520
2537
|
console.warn("setSVG: val is not defined", key);
|
|
@@ -2526,21 +2543,21 @@ var require_cjs = __commonJS({
|
|
|
2526
2543
|
return val;
|
|
2527
2544
|
};
|
|
2528
2545
|
var appendSVGSprite = (LIBRARY, options = DEF_OPTIONS) => {
|
|
2529
|
-
const CONFIG22 =
|
|
2546
|
+
const CONFIG22 = getActiveConfig3();
|
|
2530
2547
|
const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.SVG;
|
|
2531
2548
|
for (const key in LIBRARY)
|
|
2532
2549
|
lib[key] = CONFIG22.SVG[key];
|
|
2533
2550
|
appendSVG(lib, options);
|
|
2534
2551
|
};
|
|
2535
2552
|
var setIcon = (val, key) => {
|
|
2536
|
-
const CONFIG22 =
|
|
2553
|
+
const CONFIG22 = getActiveConfig3();
|
|
2537
2554
|
if (CONFIG22.useIconSprite) {
|
|
2538
2555
|
return setSVG(val, key);
|
|
2539
2556
|
}
|
|
2540
2557
|
return val;
|
|
2541
2558
|
};
|
|
2542
2559
|
var appendIconsSprite = (LIBRARY, options = DEF_OPTIONS) => {
|
|
2543
|
-
const CONFIG22 =
|
|
2560
|
+
const CONFIG22 = getActiveConfig3();
|
|
2544
2561
|
const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.ICONS;
|
|
2545
2562
|
for (const key in LIBRARY)
|
|
2546
2563
|
lib[key] = CONFIG22.ICONS[key];
|
|
@@ -2560,7 +2577,7 @@ var require_cjs = __commonJS({
|
|
|
2560
2577
|
return svgElem;
|
|
2561
2578
|
};
|
|
2562
2579
|
var appendSVG = (lib, options = DEF_OPTIONS) => {
|
|
2563
|
-
const CONFIG22 =
|
|
2580
|
+
const CONFIG22 = getActiveConfig3();
|
|
2564
2581
|
const doc = options.document || import_globals2.document;
|
|
2565
2582
|
if (!doc || !doc.documentElement) {
|
|
2566
2583
|
if (CONFIG22.verbose) {
|
|
@@ -2584,14 +2601,14 @@ var require_cjs = __commonJS({
|
|
|
2584
2601
|
};
|
|
2585
2602
|
var import_utils25 = __toESM2(require_cjs42(), 1);
|
|
2586
2603
|
var applyReset = (reset = {}) => {
|
|
2587
|
-
const CONFIG22 =
|
|
2604
|
+
const CONFIG22 = getActiveConfig3();
|
|
2588
2605
|
const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
|
|
2589
2606
|
if (RESET2) {
|
|
2590
2607
|
if (RESET2[":root"]) {
|
|
2591
2608
|
const configReset = RESET2;
|
|
2592
2609
|
const configTemplates = TYPOGRAPHY2.templates;
|
|
2593
2610
|
configReset.body = {
|
|
2594
|
-
...CONFIG22.useDocumentTheme ?
|
|
2611
|
+
...CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {},
|
|
2595
2612
|
...configTemplates.body
|
|
2596
2613
|
};
|
|
2597
2614
|
configReset.h1 = configTemplates.h1;
|
|
@@ -2602,7 +2619,7 @@ var require_cjs = __commonJS({
|
|
|
2602
2619
|
configReset.h6 = configTemplates.h6;
|
|
2603
2620
|
}
|
|
2604
2621
|
const { body, ...templates } = TYPOGRAPHY2.templates;
|
|
2605
|
-
const globalTheme = CONFIG22.useDocumentTheme ?
|
|
2622
|
+
const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {};
|
|
2606
2623
|
if (RESET2.html)
|
|
2607
2624
|
(0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
|
|
2608
2625
|
return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
|
|
@@ -2656,7 +2673,7 @@ var require_cjs = __commonJS({
|
|
|
2656
2673
|
"outset",
|
|
2657
2674
|
"initial"
|
|
2658
2675
|
].some((v) => str.includes(v));
|
|
2659
|
-
var
|
|
2676
|
+
var transformBorder3 = (border) => {
|
|
2660
2677
|
const arr = border.split(", ");
|
|
2661
2678
|
return arr.map((v) => {
|
|
2662
2679
|
v = v.trim();
|
|
@@ -2666,39 +2683,39 @@ var require_cjs = __commonJS({
|
|
|
2666
2683
|
return v || "solid";
|
|
2667
2684
|
else if (v.slice(-2) === "px" || v.slice(-2) === "em")
|
|
2668
2685
|
return v;
|
|
2669
|
-
else if (
|
|
2670
|
-
return
|
|
2671
|
-
return
|
|
2686
|
+
else if (getColor3(v).length > 2)
|
|
2687
|
+
return getColor3(v);
|
|
2688
|
+
return getSpacingByKey5(v, "border").border;
|
|
2672
2689
|
}).join(" ");
|
|
2673
2690
|
};
|
|
2674
|
-
var
|
|
2691
|
+
var transformTextStroke3 = (stroke) => {
|
|
2675
2692
|
return stroke.split(", ").map((v) => {
|
|
2676
2693
|
if (v.slice(0, 2) === "--")
|
|
2677
2694
|
return `var(${v})`;
|
|
2678
2695
|
if (v.includes("px"))
|
|
2679
2696
|
return v;
|
|
2680
|
-
else if (
|
|
2681
|
-
return
|
|
2697
|
+
else if (getColor3(v))
|
|
2698
|
+
return getColor3(v);
|
|
2682
2699
|
return v;
|
|
2683
2700
|
}).join(" ");
|
|
2684
2701
|
};
|
|
2685
|
-
var
|
|
2702
|
+
var transformShadow3 = (shadows) => shadows.split("|").map((shadow) => {
|
|
2686
2703
|
return shadow.split(", ").map((v) => {
|
|
2687
2704
|
v = v.trim();
|
|
2688
2705
|
if (v.slice(0, 2) === "--")
|
|
2689
2706
|
return `var(${v})`;
|
|
2690
|
-
if (
|
|
2691
|
-
return
|
|
2707
|
+
if (getColor3(v).length > 2)
|
|
2708
|
+
return getColor3(v);
|
|
2692
2709
|
if (v.includes("px") || v.slice(-2) === "em")
|
|
2693
2710
|
return v;
|
|
2694
2711
|
const arr = v.split(" ");
|
|
2695
2712
|
if (!arr.length)
|
|
2696
2713
|
return v;
|
|
2697
|
-
return arr.map((v2) =>
|
|
2714
|
+
return arr.map((v2) => getSpacingByKey5(v2, "shadow").shadow).join(" ");
|
|
2698
2715
|
}).join(" ");
|
|
2699
2716
|
}).join(",");
|
|
2700
|
-
var
|
|
2701
|
-
const CONFIG22 =
|
|
2717
|
+
var transformBackgroundImage3 = (backgroundImage, globalTheme) => {
|
|
2718
|
+
const CONFIG22 = getActiveConfig3();
|
|
2702
2719
|
return backgroundImage.split(", ").map((v) => {
|
|
2703
2720
|
if (v.slice(0, 2) === "--")
|
|
2704
2721
|
return `var(${v})`;
|
|
@@ -2706,14 +2723,14 @@ var require_cjs = __commonJS({
|
|
|
2706
2723
|
return v;
|
|
2707
2724
|
else if (CONFIG22.GRADIENT[backgroundImage]) {
|
|
2708
2725
|
return {
|
|
2709
|
-
backgroundImage:
|
|
2726
|
+
backgroundImage: getMediaColor5(backgroundImage, globalTheme || CONFIG22.globalTheme)
|
|
2710
2727
|
};
|
|
2711
2728
|
} else if (v.includes("/") || v.includes("http"))
|
|
2712
2729
|
return `url(${v})`;
|
|
2713
2730
|
return v;
|
|
2714
2731
|
}).join(" ");
|
|
2715
2732
|
};
|
|
2716
|
-
var
|
|
2733
|
+
var transfromGap3 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey5(v, "gap").gap).join(" ");
|
|
2717
2734
|
var transformTransition = (transition) => {
|
|
2718
2735
|
const arr = transition.split(" ");
|
|
2719
2736
|
if (!arr.length)
|
|
@@ -2722,20 +2739,20 @@ var require_cjs = __commonJS({
|
|
|
2722
2739
|
if (v.slice(0, 2) === "--")
|
|
2723
2740
|
return `var(${v})`;
|
|
2724
2741
|
if (v.length < 3 || v.includes("ms")) {
|
|
2725
|
-
const mapWithSequence =
|
|
2742
|
+
const mapWithSequence = getTimingByKey3(v);
|
|
2726
2743
|
return mapWithSequence.timing || v;
|
|
2727
2744
|
}
|
|
2728
|
-
if (
|
|
2729
|
-
return
|
|
2745
|
+
if (getTimingFunction5(v))
|
|
2746
|
+
return getTimingFunction5(v);
|
|
2730
2747
|
return v;
|
|
2731
2748
|
}).join(" ");
|
|
2732
2749
|
};
|
|
2733
|
-
var
|
|
2750
|
+
var transformDuration3 = (duration, props6, propertyName) => {
|
|
2734
2751
|
if (!(0, import_utils26.isString)(duration))
|
|
2735
2752
|
return;
|
|
2736
|
-
return duration.split(",").map((v) =>
|
|
2753
|
+
return duration.split(",").map((v) => getTimingByKey3(v).timing || v).join(",");
|
|
2737
2754
|
};
|
|
2738
|
-
var
|
|
2755
|
+
var splitTransition3 = (transition) => {
|
|
2739
2756
|
const arr = transition.split(",");
|
|
2740
2757
|
if (!arr.length)
|
|
2741
2758
|
return;
|
|
@@ -2767,7 +2784,7 @@ var require_cjs = __commonJS({
|
|
|
2767
2784
|
animation: setSameValue
|
|
2768
2785
|
};
|
|
2769
2786
|
var setValue = (FACTORY_NAME, value, key) => {
|
|
2770
|
-
const CONFIG22 =
|
|
2787
|
+
const CONFIG22 = getActiveConfig3();
|
|
2771
2788
|
const factoryName = FACTORY_NAME.toLowerCase();
|
|
2772
2789
|
const FACTORY2 = CONFIG22[FACTORY_NAME];
|
|
2773
2790
|
if (VALUE_TRANSFORMERS[factoryName]) {
|
|
@@ -2779,7 +2796,7 @@ var require_cjs = __commonJS({
|
|
|
2779
2796
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
2780
2797
|
};
|
|
2781
2798
|
var setEach = (factoryName, props6) => {
|
|
2782
|
-
const CONFIG22 =
|
|
2799
|
+
const CONFIG22 = getActiveConfig3();
|
|
2783
2800
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
2784
2801
|
const keys = Object.keys(props6);
|
|
2785
2802
|
keys.map((key) => setValue(FACTORY_NAME, props6[key], key));
|
|
@@ -2787,7 +2804,7 @@ var require_cjs = __commonJS({
|
|
|
2787
2804
|
};
|
|
2788
2805
|
var SET_OPTIONS = {};
|
|
2789
2806
|
var set2 = (recivedConfig, options = SET_OPTIONS) => {
|
|
2790
|
-
let CONFIG22 =
|
|
2807
|
+
let CONFIG22 = getActiveConfig3();
|
|
2791
2808
|
const {
|
|
2792
2809
|
version,
|
|
2793
2810
|
verbose,
|
|
@@ -3159,16 +3176,16 @@ var require_types = __commonJS({
|
|
|
3159
3176
|
__export2(types_exports, {
|
|
3160
3177
|
TYPES: () => TYPES,
|
|
3161
3178
|
is: () => is,
|
|
3162
|
-
isArray: () =>
|
|
3179
|
+
isArray: () => isArray5,
|
|
3163
3180
|
isBoolean: () => isBoolean,
|
|
3164
3181
|
isDefined: () => isDefined,
|
|
3165
3182
|
isFunction: () => isFunction3,
|
|
3166
|
-
isNot: () =>
|
|
3183
|
+
isNot: () => isNot3,
|
|
3167
3184
|
isNull: () => isNull,
|
|
3168
3185
|
isNumber: () => isNumber,
|
|
3169
|
-
isObject: () =>
|
|
3170
|
-
isObjectLike: () =>
|
|
3171
|
-
isString: () =>
|
|
3186
|
+
isObject: () => isObject5,
|
|
3187
|
+
isObjectLike: () => isObjectLike3,
|
|
3188
|
+
isString: () => isString8,
|
|
3172
3189
|
isUndefined: () => isUndefined,
|
|
3173
3190
|
isValidHtmlTag: () => isValidHtmlTag
|
|
3174
3191
|
});
|
|
@@ -3176,37 +3193,37 @@ var require_types = __commonJS({
|
|
|
3176
3193
|
var import_tags = require_cjs3();
|
|
3177
3194
|
var import_node = require_node();
|
|
3178
3195
|
var isValidHtmlTag = (arg) => import_tags.HTML_TAGS.body.includes(arg);
|
|
3179
|
-
var
|
|
3196
|
+
var isObject5 = (arg) => {
|
|
3180
3197
|
if (arg === null)
|
|
3181
3198
|
return false;
|
|
3182
3199
|
return typeof arg === "object" && arg.constructor === Object;
|
|
3183
3200
|
};
|
|
3184
|
-
var
|
|
3201
|
+
var isString8 = (arg) => typeof arg === "string";
|
|
3185
3202
|
var isNumber = (arg) => typeof arg === "number";
|
|
3186
3203
|
var isFunction3 = (arg) => typeof arg === "function";
|
|
3187
3204
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
3188
3205
|
var isNull = (arg) => arg === null;
|
|
3189
|
-
var
|
|
3190
|
-
var
|
|
3206
|
+
var isArray5 = (arg) => Array.isArray(arg);
|
|
3207
|
+
var isObjectLike3 = (arg) => {
|
|
3191
3208
|
if (arg === null)
|
|
3192
3209
|
return false;
|
|
3193
3210
|
return typeof arg === "object";
|
|
3194
3211
|
};
|
|
3195
3212
|
var isDefined = (arg) => {
|
|
3196
|
-
return
|
|
3213
|
+
return isObject5(arg) || isObjectLike3(arg) || isString8(arg) || isNumber(arg) || isFunction3(arg) || isArray5(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
|
|
3197
3214
|
};
|
|
3198
3215
|
var isUndefined = (arg) => {
|
|
3199
3216
|
return arg === void 0;
|
|
3200
3217
|
};
|
|
3201
3218
|
var TYPES = {
|
|
3202
3219
|
boolean: isBoolean,
|
|
3203
|
-
array:
|
|
3204
|
-
object:
|
|
3205
|
-
string:
|
|
3220
|
+
array: isArray5,
|
|
3221
|
+
object: isObject5,
|
|
3222
|
+
string: isString8,
|
|
3206
3223
|
number: isNumber,
|
|
3207
3224
|
null: isNull,
|
|
3208
3225
|
function: isFunction3,
|
|
3209
|
-
objectLike:
|
|
3226
|
+
objectLike: isObjectLike3,
|
|
3210
3227
|
node: import_node.isNode,
|
|
3211
3228
|
htmlElement: import_node.isHtmlElement,
|
|
3212
3229
|
defined: isDefined
|
|
@@ -3216,7 +3233,7 @@ var require_types = __commonJS({
|
|
|
3216
3233
|
return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
|
|
3217
3234
|
};
|
|
3218
3235
|
};
|
|
3219
|
-
var
|
|
3236
|
+
var isNot3 = (arg) => {
|
|
3220
3237
|
return (...args) => {
|
|
3221
3238
|
return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
|
|
3222
3239
|
};
|
|
@@ -3346,6 +3363,7 @@ var require_string = __commonJS({
|
|
|
3346
3363
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
3347
3364
|
var string_exports = {};
|
|
3348
3365
|
__export2(string_exports, {
|
|
3366
|
+
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields3,
|
|
3349
3367
|
stringIncludesAny: () => stringIncludesAny
|
|
3350
3368
|
});
|
|
3351
3369
|
module2.exports = __toCommonJS2(string_exports);
|
|
@@ -3357,6 +3375,22 @@ var require_string = __commonJS({
|
|
|
3357
3375
|
}
|
|
3358
3376
|
return false;
|
|
3359
3377
|
};
|
|
3378
|
+
var replaceLiteralsWithObjectFields3 = (str, state) => {
|
|
3379
|
+
return str.replace(/\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g, (_, parentPath, variable) => {
|
|
3380
|
+
if (parentPath) {
|
|
3381
|
+
const parentLevels = parentPath.split("../").filter(Boolean).length;
|
|
3382
|
+
let parentState = state;
|
|
3383
|
+
for (let i = 0; i < parentLevels; i++) {
|
|
3384
|
+
parentState = parentState.parent;
|
|
3385
|
+
}
|
|
3386
|
+
const value = parentState[variable.trim()];
|
|
3387
|
+
return value ? `${value}` : "";
|
|
3388
|
+
} else {
|
|
3389
|
+
const value = state[variable.trim()];
|
|
3390
|
+
return value ? `${value}` : "";
|
|
3391
|
+
}
|
|
3392
|
+
});
|
|
3393
|
+
};
|
|
3360
3394
|
}
|
|
3361
3395
|
});
|
|
3362
3396
|
|
|
@@ -3384,26 +3418,26 @@ var require_object = __commonJS({
|
|
|
3384
3418
|
var object_exports = {};
|
|
3385
3419
|
__export2(object_exports, {
|
|
3386
3420
|
clone: () => clone,
|
|
3387
|
-
deepClone: () =>
|
|
3421
|
+
deepClone: () => deepClone3,
|
|
3388
3422
|
deepCloneExclude: () => deepCloneExclude,
|
|
3389
3423
|
deepDestringify: () => deepDestringify,
|
|
3390
3424
|
deepMerge: () => deepMerge,
|
|
3391
3425
|
deepStringify: () => deepStringify,
|
|
3392
3426
|
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
3393
|
-
diff: () =>
|
|
3427
|
+
diff: () => diff3,
|
|
3394
3428
|
diffArrays: () => diffArrays,
|
|
3395
3429
|
diffObjects: () => diffObjects,
|
|
3396
|
-
exec: () =>
|
|
3430
|
+
exec: () => exec3,
|
|
3397
3431
|
flattenRecursive: () => flattenRecursive,
|
|
3398
3432
|
isEqualDeep: () => isEqualDeep,
|
|
3399
3433
|
map: () => map,
|
|
3400
|
-
merge: () =>
|
|
3434
|
+
merge: () => merge5,
|
|
3401
3435
|
mergeArrayExclude: () => mergeArrayExclude,
|
|
3402
3436
|
mergeIfExisted: () => mergeIfExisted,
|
|
3403
3437
|
objectToString: () => objectToString,
|
|
3404
3438
|
overwrite: () => overwrite,
|
|
3405
3439
|
overwriteDeep: () => overwriteDeep,
|
|
3406
|
-
overwriteShallow: () =>
|
|
3440
|
+
overwriteShallow: () => overwriteShallow3,
|
|
3407
3441
|
removeFromObject: () => removeFromObject,
|
|
3408
3442
|
stringToObject: () => stringToObject
|
|
3409
3443
|
});
|
|
@@ -3412,7 +3446,7 @@ var require_object = __commonJS({
|
|
|
3412
3446
|
var import_types = require_types();
|
|
3413
3447
|
var import_array = require_array();
|
|
3414
3448
|
var import_string = require_string();
|
|
3415
|
-
var
|
|
3449
|
+
var exec3 = (param, element, state, context) => {
|
|
3416
3450
|
if ((0, import_types.isFunction)(param)) {
|
|
3417
3451
|
return param(
|
|
3418
3452
|
element,
|
|
@@ -3424,10 +3458,10 @@ var require_object = __commonJS({
|
|
|
3424
3458
|
};
|
|
3425
3459
|
var map = (obj, extention, element) => {
|
|
3426
3460
|
for (const e in extention) {
|
|
3427
|
-
obj[e] =
|
|
3461
|
+
obj[e] = exec3(extention[e], element);
|
|
3428
3462
|
}
|
|
3429
3463
|
};
|
|
3430
|
-
var
|
|
3464
|
+
var merge5 = (element, obj, excludeFrom = []) => {
|
|
3431
3465
|
for (const e in obj) {
|
|
3432
3466
|
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3433
3467
|
continue;
|
|
@@ -3486,7 +3520,7 @@ var require_object = __commonJS({
|
|
|
3486
3520
|
var mergeArrayExclude = (arr, excl = []) => {
|
|
3487
3521
|
return arr.reduce((acc, curr) => deepMerge(acc, deepCloneExclude(curr, excl)), {});
|
|
3488
3522
|
};
|
|
3489
|
-
var
|
|
3523
|
+
var deepClone3 = (obj, excludeFrom = []) => {
|
|
3490
3524
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
3491
3525
|
for (const prop in obj) {
|
|
3492
3526
|
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
@@ -3496,7 +3530,7 @@ var require_object = __commonJS({
|
|
|
3496
3530
|
objProp = (0, import_array.mergeArray)(objProp);
|
|
3497
3531
|
}
|
|
3498
3532
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
3499
|
-
o[prop] =
|
|
3533
|
+
o[prop] = deepClone3(objProp, excludeFrom);
|
|
3500
3534
|
} else
|
|
3501
3535
|
o[prop] = objProp;
|
|
3502
3536
|
}
|
|
@@ -3650,7 +3684,7 @@ var require_object = __commonJS({
|
|
|
3650
3684
|
const objToDiffProp = objToDiff[e];
|
|
3651
3685
|
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
3652
3686
|
cache[e] = {};
|
|
3653
|
-
|
|
3687
|
+
diff3(originalProp, objToDiffProp, cache[e]);
|
|
3654
3688
|
} else if (objToDiffProp !== void 0) {
|
|
3655
3689
|
cache[e] = objToDiffProp;
|
|
3656
3690
|
}
|
|
@@ -3663,7 +3697,7 @@ var require_object = __commonJS({
|
|
|
3663
3697
|
} else {
|
|
3664
3698
|
const diffArr = [];
|
|
3665
3699
|
for (let i = 0; i < original.length; i++) {
|
|
3666
|
-
const diffObj =
|
|
3700
|
+
const diffObj = diff3(original[i], objToDiff[i]);
|
|
3667
3701
|
if (Object.keys(diffObj).length > 0) {
|
|
3668
3702
|
diffArr.push(diffObj);
|
|
3669
3703
|
}
|
|
@@ -3674,7 +3708,7 @@ var require_object = __commonJS({
|
|
|
3674
3708
|
}
|
|
3675
3709
|
return cache;
|
|
3676
3710
|
};
|
|
3677
|
-
var
|
|
3711
|
+
var diff3 = (original, objToDiff, cache = {}) => {
|
|
3678
3712
|
if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
|
|
3679
3713
|
cache = [];
|
|
3680
3714
|
diffArrays(original, objToDiff, cache);
|
|
@@ -3698,7 +3732,7 @@ var require_object = __commonJS({
|
|
|
3698
3732
|
}
|
|
3699
3733
|
return changes;
|
|
3700
3734
|
};
|
|
3701
|
-
var
|
|
3735
|
+
var overwriteShallow3 = (obj, params, excludeFrom = []) => {
|
|
3702
3736
|
for (const e in params) {
|
|
3703
3737
|
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3704
3738
|
continue;
|
|
@@ -3972,12 +4006,12 @@ var require_on = __commonJS({
|
|
|
3972
4006
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
3973
4007
|
});
|
|
3974
4008
|
module2.exports = __toCommonJS2(on_exports);
|
|
3975
|
-
var
|
|
4009
|
+
var import_utils16 = require_cjs5();
|
|
3976
4010
|
var applyEvent = (param, element, state, context, options) => {
|
|
3977
4011
|
return param(element, state || element.state, context || element.context, options);
|
|
3978
4012
|
};
|
|
3979
4013
|
var triggerEventOn = (param, element, options) => {
|
|
3980
|
-
if (element.on && (0,
|
|
4014
|
+
if (element.on && (0, import_utils16.isFunction)(element.on[param])) {
|
|
3981
4015
|
const { state, context } = element;
|
|
3982
4016
|
return applyEvent(element.on[param], element, state, context, options);
|
|
3983
4017
|
}
|
|
@@ -3986,7 +4020,7 @@ var require_on = __commonJS({
|
|
|
3986
4020
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
3987
4021
|
};
|
|
3988
4022
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
3989
|
-
if (element.on && (0,
|
|
4023
|
+
if (element.on && (0, import_utils16.isFunction)(element.on[param])) {
|
|
3990
4024
|
const { state, context } = element;
|
|
3991
4025
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
3992
4026
|
}
|
|
@@ -3997,7 +4031,7 @@ var require_on = __commonJS({
|
|
|
3997
4031
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
3998
4032
|
continue;
|
|
3999
4033
|
const appliedFunction = element.on[param];
|
|
4000
|
-
if ((0,
|
|
4034
|
+
if ((0, import_utils16.isFunction)(appliedFunction)) {
|
|
4001
4035
|
const { state, context } = element;
|
|
4002
4036
|
node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
|
|
4003
4037
|
}
|
|
@@ -4130,10 +4164,10 @@ var require_can = __commonJS({
|
|
|
4130
4164
|
});
|
|
4131
4165
|
module2.exports = __toCommonJS2(can_exports);
|
|
4132
4166
|
var import_report = require_cjs6();
|
|
4133
|
-
var
|
|
4167
|
+
var import_utils16 = require_cjs5();
|
|
4134
4168
|
var canRender = (element) => {
|
|
4135
4169
|
const tag = element.tag || "div";
|
|
4136
|
-
return (0,
|
|
4170
|
+
return (0, import_utils16.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
4137
4171
|
};
|
|
4138
4172
|
}
|
|
4139
4173
|
});
|
|
@@ -4198,11 +4232,11 @@ var require_methods = __commonJS({
|
|
|
4198
4232
|
toggle: () => toggle
|
|
4199
4233
|
});
|
|
4200
4234
|
module2.exports = __toCommonJS2(methods_exports);
|
|
4201
|
-
var
|
|
4235
|
+
var import_utils16 = require_cjs5();
|
|
4202
4236
|
var import_ignore = require_ignore();
|
|
4203
4237
|
var parse2 = function() {
|
|
4204
4238
|
const state = this;
|
|
4205
|
-
if ((0,
|
|
4239
|
+
if ((0, import_utils16.isObject)(state)) {
|
|
4206
4240
|
const obj = {};
|
|
4207
4241
|
for (const param in state) {
|
|
4208
4242
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -4210,7 +4244,7 @@ var require_methods = __commonJS({
|
|
|
4210
4244
|
}
|
|
4211
4245
|
}
|
|
4212
4246
|
return obj;
|
|
4213
|
-
} else if ((0,
|
|
4247
|
+
} else if ((0, import_utils16.isArray)(state)) {
|
|
4214
4248
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
4215
4249
|
}
|
|
4216
4250
|
};
|
|
@@ -4230,7 +4264,7 @@ var require_methods = __commonJS({
|
|
|
4230
4264
|
const state = this;
|
|
4231
4265
|
const element = state.__element;
|
|
4232
4266
|
const stateKey = element.__ref.__state;
|
|
4233
|
-
if ((0,
|
|
4267
|
+
if ((0, import_utils16.isString)(stateKey)) {
|
|
4234
4268
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
4235
4269
|
return element.state;
|
|
4236
4270
|
}
|
|
@@ -4265,10 +4299,10 @@ var require_methods = __commonJS({
|
|
|
4265
4299
|
};
|
|
4266
4300
|
var add = function(value, options = {}) {
|
|
4267
4301
|
const state = this;
|
|
4268
|
-
if ((0,
|
|
4302
|
+
if ((0, import_utils16.isArray)(state)) {
|
|
4269
4303
|
state.push(value);
|
|
4270
4304
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
4271
|
-
} else if ((0,
|
|
4305
|
+
} else if ((0, import_utils16.isObject)(state)) {
|
|
4272
4306
|
const key = Object.keys(state).length;
|
|
4273
4307
|
state.update({ [key]: value }, options);
|
|
4274
4308
|
}
|
|
@@ -4279,10 +4313,10 @@ var require_methods = __commonJS({
|
|
|
4279
4313
|
};
|
|
4280
4314
|
var remove = function(key, options = {}) {
|
|
4281
4315
|
const state = this;
|
|
4282
|
-
if ((0,
|
|
4283
|
-
(0,
|
|
4284
|
-
if ((0,
|
|
4285
|
-
(0,
|
|
4316
|
+
if ((0, import_utils16.isArray)(state))
|
|
4317
|
+
(0, import_utils16.removeFromArray)(state, key);
|
|
4318
|
+
if ((0, import_utils16.isObject)(state))
|
|
4319
|
+
(0, import_utils16.removeFromObject)(state, key);
|
|
4286
4320
|
return state.update(state.parse(), { replace: true, ...options });
|
|
4287
4321
|
};
|
|
4288
4322
|
var set2 = function(value, options = {}) {
|
|
@@ -4291,7 +4325,7 @@ var require_methods = __commonJS({
|
|
|
4291
4325
|
};
|
|
4292
4326
|
var apply = function(func, options = {}) {
|
|
4293
4327
|
const state = this;
|
|
4294
|
-
if ((0,
|
|
4328
|
+
if ((0, import_utils16.isFunction)(func)) {
|
|
4295
4329
|
func(state);
|
|
4296
4330
|
return state.update(state, { replace: true, ...options });
|
|
4297
4331
|
}
|
|
@@ -4326,12 +4360,12 @@ var require_inherit = __commonJS({
|
|
|
4326
4360
|
createChangesByKey: () => createChangesByKey,
|
|
4327
4361
|
createInheritedState: () => createInheritedState,
|
|
4328
4362
|
findInheritedState: () => findInheritedState,
|
|
4329
|
-
getChildStateInKey: () =>
|
|
4363
|
+
getChildStateInKey: () => getChildStateInKey3,
|
|
4330
4364
|
getParentStateInKey: () => getParentStateInKey,
|
|
4331
|
-
isState: () =>
|
|
4365
|
+
isState: () => isState3
|
|
4332
4366
|
});
|
|
4333
4367
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
4334
|
-
var
|
|
4368
|
+
var import_utils16 = require_cjs5();
|
|
4335
4369
|
var import_ignore = require_ignore();
|
|
4336
4370
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
4337
4371
|
if (!stateKey.includes("../"))
|
|
@@ -4345,7 +4379,7 @@ var require_inherit = __commonJS({
|
|
|
4345
4379
|
}
|
|
4346
4380
|
return parentState;
|
|
4347
4381
|
};
|
|
4348
|
-
var
|
|
4382
|
+
var getChildStateInKey3 = (stateKey, parentState, options = {}) => {
|
|
4349
4383
|
const arr = stateKey.split("/");
|
|
4350
4384
|
const arrLength = arr.length - 1;
|
|
4351
4385
|
for (let i = 0; i < arrLength; i++) {
|
|
@@ -4375,16 +4409,16 @@ var require_inherit = __commonJS({
|
|
|
4375
4409
|
}
|
|
4376
4410
|
if (!parentState)
|
|
4377
4411
|
return;
|
|
4378
|
-
return
|
|
4412
|
+
return getChildStateInKey3(stateKey, parentState, options);
|
|
4379
4413
|
};
|
|
4380
4414
|
var createInheritedState = (element, parent) => {
|
|
4381
4415
|
const ref = element.__ref;
|
|
4382
4416
|
const inheritedState = findInheritedState(element, parent);
|
|
4383
4417
|
if (!inheritedState)
|
|
4384
4418
|
return element.state;
|
|
4385
|
-
if ((0,
|
|
4386
|
-
return (0,
|
|
4387
|
-
} else if ((0,
|
|
4419
|
+
if ((0, import_utils16.is)(inheritedState)("object", "array")) {
|
|
4420
|
+
return (0, import_utils16.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
4421
|
+
} else if ((0, import_utils16.is)(inheritedState)("string", "number")) {
|
|
4388
4422
|
ref.__stateType = "string";
|
|
4389
4423
|
return { value: inheritedState };
|
|
4390
4424
|
}
|
|
@@ -4393,15 +4427,15 @@ var require_inherit = __commonJS({
|
|
|
4393
4427
|
var checkIfInherits = (element) => {
|
|
4394
4428
|
const ref = element.__ref;
|
|
4395
4429
|
const stateKey = ref.__state;
|
|
4396
|
-
if (!stateKey || (0,
|
|
4430
|
+
if (!stateKey || (0, import_utils16.isNot)(stateKey)("number", "string"))
|
|
4397
4431
|
return false;
|
|
4398
4432
|
return true;
|
|
4399
4433
|
};
|
|
4400
|
-
var
|
|
4401
|
-
if (!(0,
|
|
4434
|
+
var isState3 = function(state) {
|
|
4435
|
+
if (!(0, import_utils16.isObjectLike)(state))
|
|
4402
4436
|
return false;
|
|
4403
4437
|
const keys = Object.keys(state);
|
|
4404
|
-
return (0,
|
|
4438
|
+
return (0, import_utils16.arrayContainsOtherArray)(keys, ["update", "parse", "clean", "create", "parent", "rootUpdate"]);
|
|
4405
4439
|
};
|
|
4406
4440
|
var createChangesByKey = (path, value) => {
|
|
4407
4441
|
if (!path) {
|
|
@@ -4448,7 +4482,7 @@ var require_updateState = __commonJS({
|
|
|
4448
4482
|
var import_report = require_cjs6();
|
|
4449
4483
|
var import_event = require_cjs7();
|
|
4450
4484
|
var import_ignore = require_ignore();
|
|
4451
|
-
var
|
|
4485
|
+
var import_utils16 = require_cjs5();
|
|
4452
4486
|
var import_inherit = require_inherit();
|
|
4453
4487
|
var STATE_UPDATE_OPTIONS = {
|
|
4454
4488
|
overwrite: true,
|
|
@@ -4462,7 +4496,7 @@ var require_updateState = __commonJS({
|
|
|
4462
4496
|
const state = this;
|
|
4463
4497
|
const element = state.__element;
|
|
4464
4498
|
if (!options.updateByState)
|
|
4465
|
-
(0,
|
|
4499
|
+
(0, import_utils16.merge)(options, STATE_UPDATE_OPTIONS);
|
|
4466
4500
|
if (!state.__element)
|
|
4467
4501
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
4468
4502
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -4492,10 +4526,10 @@ var require_updateState = __commonJS({
|
|
|
4492
4526
|
const shallow = overwrite === "shallow";
|
|
4493
4527
|
const merge22 = overwrite === "merge";
|
|
4494
4528
|
if (merge22) {
|
|
4495
|
-
(0,
|
|
4529
|
+
(0, import_utils16.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
4496
4530
|
return;
|
|
4497
4531
|
}
|
|
4498
|
-
const overwriteFunc = shallow ?
|
|
4532
|
+
const overwriteFunc = shallow ? import_utils16.overwriteShallow : import_utils16.overwriteDeep;
|
|
4499
4533
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
4500
4534
|
};
|
|
4501
4535
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -4585,18 +4619,18 @@ var require_createState = __commonJS({
|
|
|
4585
4619
|
});
|
|
4586
4620
|
module2.exports = __toCommonJS2(createState_exports);
|
|
4587
4621
|
var import_event = require_cjs7();
|
|
4588
|
-
var
|
|
4622
|
+
var import_utils16 = require_cjs5();
|
|
4589
4623
|
var import_ignore = require_ignore();
|
|
4590
4624
|
var import_methods = require_methods();
|
|
4591
4625
|
var import_updateState = require_updateState();
|
|
4592
4626
|
var import_inherit = require_inherit();
|
|
4593
4627
|
var createState = function(element, parent, options) {
|
|
4594
|
-
const skipApplyMethods = Boolean(options
|
|
4628
|
+
const skipApplyMethods = Boolean(options && options.skipApplyMethods);
|
|
4595
4629
|
const objectizeState = checkForTypes(element);
|
|
4596
4630
|
if (objectizeState === false)
|
|
4597
4631
|
return parent.state || {};
|
|
4598
4632
|
else
|
|
4599
|
-
element.state = (0,
|
|
4633
|
+
element.state = (0, import_utils16.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
4600
4634
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
4601
4635
|
if (whatInitReturns === false)
|
|
4602
4636
|
return element.state;
|
|
@@ -4608,10 +4642,11 @@ var require_createState = __commonJS({
|
|
|
4608
4642
|
if (dependentState)
|
|
4609
4643
|
element.state = dependentState;
|
|
4610
4644
|
if (skipApplyMethods) {
|
|
4611
|
-
if (element.parent && element.parent.state)
|
|
4645
|
+
if (element.parent && element.parent.state) {
|
|
4612
4646
|
element.state.parent = element.parent.state;
|
|
4613
|
-
else
|
|
4647
|
+
} else {
|
|
4614
4648
|
element.state.parent = element.state;
|
|
4649
|
+
}
|
|
4615
4650
|
return element.state;
|
|
4616
4651
|
}
|
|
4617
4652
|
applyMethods(element);
|
|
@@ -4622,18 +4657,18 @@ var require_createState = __commonJS({
|
|
|
4622
4657
|
const { __ref: ref } = state;
|
|
4623
4658
|
if (!ref)
|
|
4624
4659
|
return;
|
|
4625
|
-
const dependentState = (0,
|
|
4660
|
+
const dependentState = (0, import_utils16.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
4626
4661
|
const newDepends = { [element.key]: dependentState };
|
|
4627
|
-
ref.__depends = (0,
|
|
4662
|
+
ref.__depends = (0, import_utils16.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
4628
4663
|
return dependentState;
|
|
4629
4664
|
};
|
|
4630
4665
|
var checkForTypes = (element) => {
|
|
4631
4666
|
const { state, __ref: ref } = element;
|
|
4632
|
-
if ((0,
|
|
4667
|
+
if ((0, import_utils16.isFunction)(state)) {
|
|
4633
4668
|
ref.__state = state;
|
|
4634
|
-
return (0,
|
|
4669
|
+
return (0, import_utils16.exec)(state, element);
|
|
4635
4670
|
}
|
|
4636
|
-
if ((0,
|
|
4671
|
+
if ((0, import_utils16.is)(state)("string", "number")) {
|
|
4637
4672
|
ref.__state = state;
|
|
4638
4673
|
return {};
|
|
4639
4674
|
}
|
|
@@ -4650,22 +4685,25 @@ var require_createState = __commonJS({
|
|
|
4650
4685
|
var applyMethods = (element) => {
|
|
4651
4686
|
const state = element.state;
|
|
4652
4687
|
const ref = element.__ref;
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4688
|
+
const proto = {
|
|
4689
|
+
clean: import_methods.clean.bind(state),
|
|
4690
|
+
parse: import_methods.parse.bind(state),
|
|
4691
|
+
destroy: import_methods.destroy.bind(state),
|
|
4692
|
+
update: import_updateState.updateState.bind(state),
|
|
4693
|
+
rootUpdate: import_methods.rootUpdate.bind(state),
|
|
4694
|
+
parentUpdate: import_methods.parentUpdate.bind(state),
|
|
4695
|
+
create: createState.bind(state),
|
|
4696
|
+
add: import_methods.add.bind(state),
|
|
4697
|
+
toggle: import_methods.toggle.bind(state),
|
|
4698
|
+
remove: import_methods.remove.bind(state),
|
|
4699
|
+
apply: import_methods.apply.bind(state),
|
|
4700
|
+
set: import_methods.set.bind(state),
|
|
4701
|
+
parent: element.parent.state,
|
|
4702
|
+
__element: element,
|
|
4703
|
+
__children: {},
|
|
4704
|
+
__root: ref.__root ? ref.__root.state : state
|
|
4705
|
+
};
|
|
4706
|
+
Object.setPrototypeOf(state, proto);
|
|
4669
4707
|
if (state.parent)
|
|
4670
4708
|
state.parent.__children[element.key] = state;
|
|
4671
4709
|
};
|
|
@@ -4714,10 +4752,10 @@ var require_moment = __commonJS({
|
|
|
4714
4752
|
function setHookCallback(callback) {
|
|
4715
4753
|
hookCallback = callback;
|
|
4716
4754
|
}
|
|
4717
|
-
function
|
|
4755
|
+
function isArray5(input) {
|
|
4718
4756
|
return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]";
|
|
4719
4757
|
}
|
|
4720
|
-
function
|
|
4758
|
+
function isObject5(input) {
|
|
4721
4759
|
return input != null && Object.prototype.toString.call(input) === "[object Object]";
|
|
4722
4760
|
}
|
|
4723
4761
|
function hasOwnProp(a, b) {
|
|
@@ -4965,7 +5003,7 @@ var require_moment = __commonJS({
|
|
|
4965
5003
|
var res = extend({}, parentConfig), prop;
|
|
4966
5004
|
for (prop in childConfig) {
|
|
4967
5005
|
if (hasOwnProp(childConfig, prop)) {
|
|
4968
|
-
if (
|
|
5006
|
+
if (isObject5(parentConfig[prop]) && isObject5(childConfig[prop])) {
|
|
4969
5007
|
res[prop] = {};
|
|
4970
5008
|
extend(res[prop], parentConfig[prop]);
|
|
4971
5009
|
extend(res[prop], childConfig[prop]);
|
|
@@ -4977,7 +5015,7 @@ var require_moment = __commonJS({
|
|
|
4977
5015
|
}
|
|
4978
5016
|
}
|
|
4979
5017
|
for (prop in parentConfig) {
|
|
4980
|
-
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) &&
|
|
5018
|
+
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject5(parentConfig[prop])) {
|
|
4981
5019
|
res[prop] = extend({}, res[prop]);
|
|
4982
5020
|
}
|
|
4983
5021
|
}
|
|
@@ -5141,8 +5179,8 @@ var require_moment = __commonJS({
|
|
|
5141
5179
|
var output = this._relativeTime[string];
|
|
5142
5180
|
return isFunction3(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
5143
5181
|
}
|
|
5144
|
-
function pastFuture(
|
|
5145
|
-
var format2 = this._relativeTime[
|
|
5182
|
+
function pastFuture(diff4, output) {
|
|
5183
|
+
var format2 = this._relativeTime[diff4 > 0 ? "future" : "past"];
|
|
5146
5184
|
return isFunction3(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
5147
5185
|
}
|
|
5148
5186
|
var aliases = {};
|
|
@@ -5362,15 +5400,15 @@ var require_moment = __commonJS({
|
|
|
5362
5400
|
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
|
|
5363
5401
|
function localeMonths(m, format2) {
|
|
5364
5402
|
if (!m) {
|
|
5365
|
-
return
|
|
5403
|
+
return isArray5(this._months) ? this._months : this._months["standalone"];
|
|
5366
5404
|
}
|
|
5367
|
-
return
|
|
5405
|
+
return isArray5(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()];
|
|
5368
5406
|
}
|
|
5369
5407
|
function localeMonthsShort(m, format2) {
|
|
5370
5408
|
if (!m) {
|
|
5371
|
-
return
|
|
5409
|
+
return isArray5(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
|
|
5372
5410
|
}
|
|
5373
|
-
return
|
|
5411
|
+
return isArray5(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
|
|
5374
5412
|
}
|
|
5375
5413
|
function handleStrictParse(monthName, format2, strict) {
|
|
5376
5414
|
var i, ii, mom, llc = monthName.toLocaleLowerCase();
|
|
@@ -5755,7 +5793,7 @@ var require_moment = __commonJS({
|
|
|
5755
5793
|
}
|
|
5756
5794
|
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;
|
|
5757
5795
|
function localeWeekdays(m, format2) {
|
|
5758
|
-
var weekdays =
|
|
5796
|
+
var weekdays = isArray5(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
|
|
5759
5797
|
return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
|
|
5760
5798
|
}
|
|
5761
5799
|
function localeWeekdaysShort(m) {
|
|
@@ -6257,7 +6295,7 @@ var require_moment = __commonJS({
|
|
|
6257
6295
|
if (!key) {
|
|
6258
6296
|
return globalLocale;
|
|
6259
6297
|
}
|
|
6260
|
-
if (!
|
|
6298
|
+
if (!isArray5(key)) {
|
|
6261
6299
|
locale2 = loadLocale(key);
|
|
6262
6300
|
if (locale2) {
|
|
6263
6301
|
return locale2;
|
|
@@ -6735,7 +6773,7 @@ var require_moment = __commonJS({
|
|
|
6735
6773
|
return new Moment(checkOverflow(input));
|
|
6736
6774
|
} else if (isDate(input)) {
|
|
6737
6775
|
config._d = input;
|
|
6738
|
-
} else if (
|
|
6776
|
+
} else if (isArray5(format2)) {
|
|
6739
6777
|
configFromStringAndArray(config);
|
|
6740
6778
|
} else if (format2) {
|
|
6741
6779
|
configFromStringAndFormat(config);
|
|
@@ -6755,12 +6793,12 @@ var require_moment = __commonJS({
|
|
|
6755
6793
|
config._d = new Date(input.valueOf());
|
|
6756
6794
|
} else if (typeof input === "string") {
|
|
6757
6795
|
configFromString(config);
|
|
6758
|
-
} else if (
|
|
6796
|
+
} else if (isArray5(input)) {
|
|
6759
6797
|
config._a = map(input.slice(0), function(obj) {
|
|
6760
6798
|
return parseInt(obj, 10);
|
|
6761
6799
|
});
|
|
6762
6800
|
configFromArray(config);
|
|
6763
|
-
} else if (
|
|
6801
|
+
} else if (isObject5(input)) {
|
|
6764
6802
|
configFromObject(config);
|
|
6765
6803
|
} else if (isNumber(input)) {
|
|
6766
6804
|
config._d = new Date(input);
|
|
@@ -6778,7 +6816,7 @@ var require_moment = __commonJS({
|
|
|
6778
6816
|
strict = locale2;
|
|
6779
6817
|
locale2 = void 0;
|
|
6780
6818
|
}
|
|
6781
|
-
if (
|
|
6819
|
+
if (isObject5(input) && isObjectEmpty(input) || isArray5(input) && input.length === 0) {
|
|
6782
6820
|
input = void 0;
|
|
6783
6821
|
}
|
|
6784
6822
|
c._isAMomentObject = true;
|
|
@@ -6815,7 +6853,7 @@ var require_moment = __commonJS({
|
|
|
6815
6853
|
);
|
|
6816
6854
|
function pickBy(fn, moments) {
|
|
6817
6855
|
var res, i;
|
|
6818
|
-
if (moments.length === 1 &&
|
|
6856
|
+
if (moments.length === 1 && isArray5(moments[0])) {
|
|
6819
6857
|
moments = moments[0];
|
|
6820
6858
|
}
|
|
6821
6859
|
if (!moments.length) {
|
|
@@ -6937,11 +6975,11 @@ var require_moment = __commonJS({
|
|
|
6937
6975
|
return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2;
|
|
6938
6976
|
}
|
|
6939
6977
|
function cloneWithOffset(input, model) {
|
|
6940
|
-
var res,
|
|
6978
|
+
var res, diff4;
|
|
6941
6979
|
if (model._isUTC) {
|
|
6942
6980
|
res = model.clone();
|
|
6943
|
-
|
|
6944
|
-
res._d.setTime(res._d.valueOf() +
|
|
6981
|
+
diff4 = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
|
|
6982
|
+
res._d.setTime(res._d.valueOf() + diff4);
|
|
6945
6983
|
hooks.updateOffset(res, false);
|
|
6946
6984
|
return res;
|
|
6947
6985
|
} else {
|
|
@@ -7190,14 +7228,14 @@ var require_moment = __commonJS({
|
|
|
7190
7228
|
}
|
|
7191
7229
|
}
|
|
7192
7230
|
var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
|
|
7193
|
-
function
|
|
7231
|
+
function isString8(input) {
|
|
7194
7232
|
return typeof input === "string" || input instanceof String;
|
|
7195
7233
|
}
|
|
7196
7234
|
function isMomentInput(input) {
|
|
7197
|
-
return isMoment(input) || isDate(input) ||
|
|
7235
|
+
return isMoment(input) || isDate(input) || isString8(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
|
7198
7236
|
}
|
|
7199
7237
|
function isMomentInputObject(input) {
|
|
7200
|
-
var objectTest =
|
|
7238
|
+
var objectTest = isObject5(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
|
7201
7239
|
"years",
|
|
7202
7240
|
"year",
|
|
7203
7241
|
"y",
|
|
@@ -7230,16 +7268,16 @@ var require_moment = __commonJS({
|
|
|
7230
7268
|
return objectTest && propertyTest;
|
|
7231
7269
|
}
|
|
7232
7270
|
function isNumberOrStringArray(input) {
|
|
7233
|
-
var arrayTest =
|
|
7271
|
+
var arrayTest = isArray5(input), dataTypeTest = false;
|
|
7234
7272
|
if (arrayTest) {
|
|
7235
7273
|
dataTypeTest = input.filter(function(item) {
|
|
7236
|
-
return !isNumber(item) &&
|
|
7274
|
+
return !isNumber(item) && isString8(input);
|
|
7237
7275
|
}).length === 0;
|
|
7238
7276
|
}
|
|
7239
7277
|
return arrayTest && dataTypeTest;
|
|
7240
7278
|
}
|
|
7241
7279
|
function isCalendarSpec(input) {
|
|
7242
|
-
var objectTest =
|
|
7280
|
+
var objectTest = isObject5(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
|
7243
7281
|
"sameDay",
|
|
7244
7282
|
"nextDay",
|
|
7245
7283
|
"lastDay",
|
|
@@ -7254,8 +7292,8 @@ var require_moment = __commonJS({
|
|
|
7254
7292
|
return objectTest && propertyTest;
|
|
7255
7293
|
}
|
|
7256
7294
|
function getCalendarFormat(myMoment, now2) {
|
|
7257
|
-
var
|
|
7258
|
-
return
|
|
7295
|
+
var diff4 = myMoment.diff(now2, "days", true);
|
|
7296
|
+
return diff4 < -6 ? "sameElse" : diff4 < -1 ? "lastWeek" : diff4 < 0 ? "lastDay" : diff4 < 1 ? "sameDay" : diff4 < 2 ? "nextDay" : diff4 < 7 ? "nextWeek" : "sameElse";
|
|
7259
7297
|
}
|
|
7260
7298
|
function calendar$1(time, formats) {
|
|
7261
7299
|
if (arguments.length === 1) {
|
|
@@ -7329,7 +7367,7 @@ var require_moment = __commonJS({
|
|
|
7329
7367
|
function isSameOrBefore(input, units) {
|
|
7330
7368
|
return this.isSame(input, units) || this.isBefore(input, units);
|
|
7331
7369
|
}
|
|
7332
|
-
function
|
|
7370
|
+
function diff3(input, units, asFloat) {
|
|
7333
7371
|
var that, zoneDelta, output;
|
|
7334
7372
|
if (!this.isValid()) {
|
|
7335
7373
|
return NaN;
|
|
@@ -8061,7 +8099,7 @@ var require_moment = __commonJS({
|
|
|
8061
8099
|
proto.add = add;
|
|
8062
8100
|
proto.calendar = calendar$1;
|
|
8063
8101
|
proto.clone = clone;
|
|
8064
|
-
proto.diff =
|
|
8102
|
+
proto.diff = diff3;
|
|
8065
8103
|
proto.endOf = endOf;
|
|
8066
8104
|
proto.format = format;
|
|
8067
8105
|
proto.from = from2;
|
|
@@ -9027,6 +9065,7 @@ __export(domql_exports, {
|
|
|
9027
9065
|
Footnote: () => Footnote,
|
|
9028
9066
|
Form: () => Form,
|
|
9029
9067
|
Grid: () => Grid,
|
|
9068
|
+
Gutter: () => Gutter,
|
|
9030
9069
|
H1: () => H1,
|
|
9031
9070
|
H2: () => H2,
|
|
9032
9071
|
H3: () => H3,
|
|
@@ -9036,8 +9075,8 @@ __export(domql_exports, {
|
|
|
9036
9075
|
Headline: () => Headline,
|
|
9037
9076
|
Hoverable: () => Hoverable,
|
|
9038
9077
|
Hr: () => Hr,
|
|
9039
|
-
Icon: () =>
|
|
9040
|
-
IconText: () =>
|
|
9078
|
+
Icon: () => Icon2,
|
|
9079
|
+
IconText: () => IconText2,
|
|
9041
9080
|
Iframe: () => Iframe,
|
|
9042
9081
|
Img: () => Img,
|
|
9043
9082
|
Input: () => Input2,
|
|
@@ -9100,7 +9139,7 @@ __export(domql_exports, {
|
|
|
9100
9139
|
});
|
|
9101
9140
|
module.exports = __toCommonJS(domql_exports);
|
|
9102
9141
|
|
|
9103
|
-
//
|
|
9142
|
+
// Atoms/Block.js
|
|
9104
9143
|
var import_scratch = __toESM(require_cjs());
|
|
9105
9144
|
var Block = {
|
|
9106
9145
|
class: {
|
|
@@ -9253,8 +9292,24 @@ var List = {
|
|
|
9253
9292
|
tag: "ul",
|
|
9254
9293
|
childExtend: { tag: "li" }
|
|
9255
9294
|
};
|
|
9295
|
+
var Gutter = {
|
|
9296
|
+
props: {
|
|
9297
|
+
size: "C1"
|
|
9298
|
+
},
|
|
9299
|
+
class: {
|
|
9300
|
+
size: ({ props: props6 }) => {
|
|
9301
|
+
if (typeof props6.size !== "string")
|
|
9302
|
+
return;
|
|
9303
|
+
const [height, width] = props6.size.split(" ");
|
|
9304
|
+
return {
|
|
9305
|
+
...(0, import_scratch.getSpacingByKey)(height, "height"),
|
|
9306
|
+
...(0, import_scratch.getSpacingByKey)(width || height, "width")
|
|
9307
|
+
};
|
|
9308
|
+
}
|
|
9309
|
+
}
|
|
9310
|
+
};
|
|
9256
9311
|
|
|
9257
|
-
//
|
|
9312
|
+
// Atoms/Direction.js
|
|
9258
9313
|
var Direction = {
|
|
9259
9314
|
props: {
|
|
9260
9315
|
direction: "ltr"
|
|
@@ -9264,7 +9319,7 @@ var Direction = {
|
|
|
9264
9319
|
}
|
|
9265
9320
|
};
|
|
9266
9321
|
|
|
9267
|
-
//
|
|
9322
|
+
// Atoms/Flex.js
|
|
9268
9323
|
var Flex = {
|
|
9269
9324
|
props: {
|
|
9270
9325
|
display: "flex"
|
|
@@ -9281,7 +9336,7 @@ var Flex = {
|
|
|
9281
9336
|
}
|
|
9282
9337
|
};
|
|
9283
9338
|
|
|
9284
|
-
//
|
|
9339
|
+
// Atoms/Grid.js
|
|
9285
9340
|
var import_scratch2 = __toESM(require_cjs());
|
|
9286
9341
|
var Grid = {
|
|
9287
9342
|
props: { display: "grid" },
|
|
@@ -9305,7 +9360,7 @@ var Grid = {
|
|
|
9305
9360
|
}
|
|
9306
9361
|
};
|
|
9307
9362
|
|
|
9308
|
-
//
|
|
9363
|
+
// Atoms/Img.js
|
|
9309
9364
|
var Img = {
|
|
9310
9365
|
tag: "img",
|
|
9311
9366
|
props: {
|
|
@@ -9320,7 +9375,7 @@ var Img = {
|
|
|
9320
9375
|
}
|
|
9321
9376
|
};
|
|
9322
9377
|
|
|
9323
|
-
//
|
|
9378
|
+
// Atoms/Form.js
|
|
9324
9379
|
var Form = {
|
|
9325
9380
|
tag: "form",
|
|
9326
9381
|
props: {},
|
|
@@ -9331,16 +9386,16 @@ var Form = {
|
|
|
9331
9386
|
}
|
|
9332
9387
|
};
|
|
9333
9388
|
|
|
9334
|
-
//
|
|
9389
|
+
// Atoms/Media.js
|
|
9335
9390
|
var import_utils = __toESM(require_cjs5());
|
|
9336
9391
|
|
|
9337
|
-
//
|
|
9392
|
+
// Atoms/Theme.js
|
|
9338
9393
|
var import_scratch5 = __toESM(require_cjs());
|
|
9339
9394
|
|
|
9340
|
-
//
|
|
9395
|
+
// Atoms/Shape/style.js
|
|
9341
9396
|
var import_scratch4 = __toESM(require_cjs());
|
|
9342
9397
|
|
|
9343
|
-
//
|
|
9398
|
+
// Atoms/Timing.js
|
|
9344
9399
|
var import_scratch3 = __toESM(require_cjs());
|
|
9345
9400
|
var Timing = {
|
|
9346
9401
|
class: {
|
|
@@ -9366,7 +9421,7 @@ var Timing = {
|
|
|
9366
9421
|
}
|
|
9367
9422
|
};
|
|
9368
9423
|
|
|
9369
|
-
//
|
|
9424
|
+
// Atoms/Shape/style.js
|
|
9370
9425
|
var CONFIG = (0, import_scratch4.getActiveConfig)();
|
|
9371
9426
|
var depth = {
|
|
9372
9427
|
4: { boxShadow: `rgba(0,0,0,.10) 0 2${CONFIG.UNIT.default} 4${CONFIG.UNIT.default}` },
|
|
@@ -9380,8 +9435,8 @@ var getComputedBackgroundColor = ({ props: props6 }) => {
|
|
|
9380
9435
|
return (0, import_scratch4.getColor)(props6.shapeDirectionColor) || (0, import_scratch4.getColor)(props6.borderColor) || (0, import_scratch4.getColor)(props6.backgroundColor) || (0, import_scratch4.getColor)(props6.background);
|
|
9381
9436
|
};
|
|
9382
9437
|
var inheritTransition = ({ props: props6 }) => {
|
|
9383
|
-
const
|
|
9384
|
-
return
|
|
9438
|
+
const exec3 = Timing.class.transition({ props: props6 });
|
|
9439
|
+
return exec3 && exec3.transition;
|
|
9385
9440
|
};
|
|
9386
9441
|
var SHAPES = {
|
|
9387
9442
|
rectangle: {},
|
|
@@ -9557,7 +9612,7 @@ var SHAPES = {
|
|
|
9557
9612
|
}
|
|
9558
9613
|
};
|
|
9559
9614
|
|
|
9560
|
-
//
|
|
9615
|
+
// Atoms/Theme.js
|
|
9561
9616
|
var getSystemTheme = ({ context, state }) => {
|
|
9562
9617
|
const rootState = state && state.__root;
|
|
9563
9618
|
return rootState ? rootState.globalTheme : context.designSystem && context.designSystem.globalTheme;
|
|
@@ -9662,7 +9717,7 @@ var Theme = {
|
|
|
9662
9717
|
}
|
|
9663
9718
|
};
|
|
9664
9719
|
|
|
9665
|
-
//
|
|
9720
|
+
// Atoms/Media.js
|
|
9666
9721
|
var keySetters = {
|
|
9667
9722
|
"@": (key, props6, result, element, isSubtree) => applyMediaProps(
|
|
9668
9723
|
key,
|
|
@@ -9816,7 +9871,7 @@ var beforeClassAssign = (element, s) => {
|
|
|
9816
9871
|
if (setter)
|
|
9817
9872
|
setter(key, props6[key], CLASS_NAMES, element);
|
|
9818
9873
|
}
|
|
9819
|
-
const parentProps = element.parent.props;
|
|
9874
|
+
const parentProps = element.parent && element.parent.props;
|
|
9820
9875
|
if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
|
|
9821
9876
|
element.setProps({
|
|
9822
9877
|
spacingRatio: parentProps.spacingRatio,
|
|
@@ -9840,7 +9895,7 @@ var Media = {
|
|
|
9840
9895
|
on: { beforeClassAssign }
|
|
9841
9896
|
};
|
|
9842
9897
|
|
|
9843
|
-
//
|
|
9898
|
+
// Atoms/Iframe.js
|
|
9844
9899
|
var Iframe = {
|
|
9845
9900
|
tag: "iframe",
|
|
9846
9901
|
props: {
|
|
@@ -9856,7 +9911,7 @@ var Iframe = {
|
|
|
9856
9911
|
}
|
|
9857
9912
|
};
|
|
9858
9913
|
|
|
9859
|
-
//
|
|
9914
|
+
// Atoms/Interaction.js
|
|
9860
9915
|
var Interaction = {
|
|
9861
9916
|
class: {
|
|
9862
9917
|
userSelect: ({ props: props6 }) => props6.userSelect && { userSelect: props6.userSelect },
|
|
@@ -9865,7 +9920,7 @@ var Interaction = {
|
|
|
9865
9920
|
}
|
|
9866
9921
|
};
|
|
9867
9922
|
|
|
9868
|
-
//
|
|
9923
|
+
// Atoms/InteractiveComponent.js
|
|
9869
9924
|
var style = {
|
|
9870
9925
|
appearance: "none",
|
|
9871
9926
|
border: "none",
|
|
@@ -9936,14 +9991,14 @@ var FocusableComponent = {
|
|
|
9936
9991
|
}
|
|
9937
9992
|
};
|
|
9938
9993
|
|
|
9939
|
-
//
|
|
9994
|
+
// Atoms/Overflow.js
|
|
9940
9995
|
var Overflow = {
|
|
9941
9996
|
class: {
|
|
9942
9997
|
overflow: ({ props: props6 }) => props6.overflow && { overflow: props6.overflow }
|
|
9943
9998
|
}
|
|
9944
9999
|
};
|
|
9945
10000
|
|
|
9946
|
-
//
|
|
10001
|
+
// Atoms/Collection.js
|
|
9947
10002
|
var import_state = __toESM(require_cjs8());
|
|
9948
10003
|
var import_utils2 = __toESM(require_cjs5());
|
|
9949
10004
|
var Collection = {
|
|
@@ -10020,7 +10075,7 @@ var Collection = {
|
|
|
10020
10075
|
}
|
|
10021
10076
|
};
|
|
10022
10077
|
|
|
10023
|
-
//
|
|
10078
|
+
// Atoms/Position.js
|
|
10024
10079
|
var import_scratch6 = __toESM(require_cjs());
|
|
10025
10080
|
var Position = {
|
|
10026
10081
|
props: {},
|
|
@@ -10039,7 +10094,7 @@ var Position = {
|
|
|
10039
10094
|
}
|
|
10040
10095
|
};
|
|
10041
10096
|
|
|
10042
|
-
//
|
|
10097
|
+
// Atoms/Picture.js
|
|
10043
10098
|
var Picture = {
|
|
10044
10099
|
tag: "picture",
|
|
10045
10100
|
childExtend: {
|
|
@@ -10066,14 +10121,14 @@ var Picture = {
|
|
|
10066
10121
|
})
|
|
10067
10122
|
};
|
|
10068
10123
|
|
|
10069
|
-
//
|
|
10124
|
+
// Atoms/Pseudo.js
|
|
10070
10125
|
var Pseudo = {
|
|
10071
10126
|
class: {
|
|
10072
10127
|
content: ({ props: props6 }) => props6.content && { content: props6.content }
|
|
10073
10128
|
}
|
|
10074
10129
|
};
|
|
10075
10130
|
|
|
10076
|
-
//
|
|
10131
|
+
// Atoms/Svg.js
|
|
10077
10132
|
var Svg = {
|
|
10078
10133
|
tag: "svg",
|
|
10079
10134
|
props: {
|
|
@@ -10111,7 +10166,7 @@ var Svg = {
|
|
|
10111
10166
|
}
|
|
10112
10167
|
};
|
|
10113
10168
|
|
|
10114
|
-
//
|
|
10169
|
+
// Atoms/Shape/index.js
|
|
10115
10170
|
var import_utils3 = __toESM(require_cjs5());
|
|
10116
10171
|
var import_scratch7 = __toESM(require_cjs());
|
|
10117
10172
|
var transformBorderRadius = (radius, props6, propertyName) => {
|
|
@@ -10147,12 +10202,15 @@ var Shape = {
|
|
|
10147
10202
|
}
|
|
10148
10203
|
};
|
|
10149
10204
|
|
|
10150
|
-
//
|
|
10205
|
+
// Atoms/Text.js
|
|
10206
|
+
var import_utils4 = __toESM(require_cjs5());
|
|
10151
10207
|
var import_scratch8 = __toESM(require_cjs());
|
|
10152
10208
|
var Text = {
|
|
10153
10209
|
text: ({ key, props: props6, state }) => {
|
|
10154
10210
|
if (props6.text === true)
|
|
10155
10211
|
return state && state[key] || props6 && props6[key];
|
|
10212
|
+
if ((0, import_utils4.isString)(props6.text) && props6.text.includes("{{"))
|
|
10213
|
+
return (0, import_utils4.replaceLiteralsWithObjectFields)(props6.text, state);
|
|
10156
10214
|
return props6.text;
|
|
10157
10215
|
},
|
|
10158
10216
|
class: {
|
|
@@ -10198,7 +10256,7 @@ var Footnote = {
|
|
|
10198
10256
|
props: { fontSize: "Z" }
|
|
10199
10257
|
};
|
|
10200
10258
|
|
|
10201
|
-
//
|
|
10259
|
+
// Atoms/Transform.js
|
|
10202
10260
|
var Transform = {
|
|
10203
10261
|
class: {
|
|
10204
10262
|
transform: ({ props: props6 }) => props6.transform && { transform: props6.transform },
|
|
@@ -10206,16 +10264,16 @@ var Transform = {
|
|
|
10206
10264
|
}
|
|
10207
10265
|
};
|
|
10208
10266
|
|
|
10209
|
-
//
|
|
10267
|
+
// Atoms/XYZ.js
|
|
10210
10268
|
var XYZ = {
|
|
10211
10269
|
class: {
|
|
10212
10270
|
zIndex: ({ props: props6 }) => props6.zIndex && { zIndex: props6.zIndex }
|
|
10213
10271
|
}
|
|
10214
10272
|
};
|
|
10215
10273
|
|
|
10216
|
-
//
|
|
10274
|
+
// Atoms/Animation.js
|
|
10217
10275
|
var import_scratch9 = __toESM(require_cjs());
|
|
10218
|
-
var
|
|
10276
|
+
var import_utils6 = __toESM(require_cjs5());
|
|
10219
10277
|
|
|
10220
10278
|
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
|
|
10221
10279
|
function sheetForTag(tag) {
|
|
@@ -11066,7 +11124,7 @@ var createCache = function createCache2(options) {
|
|
|
11066
11124
|
return cache;
|
|
11067
11125
|
};
|
|
11068
11126
|
|
|
11069
|
-
// node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
11127
|
+
// ../../packages/emotion/node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
11070
11128
|
function murmur2(str) {
|
|
11071
11129
|
var h = 0;
|
|
11072
11130
|
var k, i = 0, len = str.length;
|
|
@@ -11096,7 +11154,7 @@ function murmur2(str) {
|
|
|
11096
11154
|
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
11097
11155
|
}
|
|
11098
11156
|
|
|
11099
|
-
// node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
11157
|
+
// ../../packages/emotion/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
11100
11158
|
var unitlessKeys = {
|
|
11101
11159
|
animationIterationCount: 1,
|
|
11102
11160
|
aspectRatio: 1,
|
|
@@ -11147,7 +11205,7 @@ var unitlessKeys = {
|
|
|
11147
11205
|
strokeWidth: 1
|
|
11148
11206
|
};
|
|
11149
11207
|
|
|
11150
|
-
// node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
|
|
11208
|
+
// ../../packages/emotion/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
|
|
11151
11209
|
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
11152
11210
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
11153
11211
|
You can read more about this here:
|
|
@@ -11192,7 +11250,7 @@ if (true) {
|
|
|
11192
11250
|
msPattern = /^-ms-/;
|
|
11193
11251
|
hyphenPattern = /-(.)/g;
|
|
11194
11252
|
hyphenatedCache = {};
|
|
11195
|
-
processStyleValue = function
|
|
11253
|
+
processStyleValue = function processStyleValue5(key, value) {
|
|
11196
11254
|
if (key === "content") {
|
|
11197
11255
|
if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
11198
11256
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
@@ -11400,7 +11458,7 @@ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
|
|
11400
11458
|
};
|
|
11401
11459
|
};
|
|
11402
11460
|
|
|
11403
|
-
// node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
11461
|
+
// ../../packages/emotion/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
11404
11462
|
var isBrowser = true;
|
|
11405
11463
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
11406
11464
|
var rawClassName = "";
|
|
@@ -11442,7 +11500,7 @@ var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
|
|
|
11442
11500
|
}
|
|
11443
11501
|
};
|
|
11444
11502
|
|
|
11445
|
-
// node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
11503
|
+
// ../../packages/emotion/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
11446
11504
|
function insertWithoutScoping(cache, serialized) {
|
|
11447
11505
|
if (cache.inserted[serialized.name] === void 0) {
|
|
11448
11506
|
return cache.insert("", serialized, cache.sheet, true);
|
|
@@ -11473,7 +11531,7 @@ var createEmotion = function createEmotion2(options) {
|
|
|
11473
11531
|
insertStyles(cache, serialized, false);
|
|
11474
11532
|
return cache.key + "-" + serialized.name;
|
|
11475
11533
|
};
|
|
11476
|
-
var
|
|
11534
|
+
var keyframes3 = function keyframes4() {
|
|
11477
11535
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
11478
11536
|
args[_key2] = arguments[_key2];
|
|
11479
11537
|
}
|
|
@@ -11502,7 +11560,7 @@ var createEmotion = function createEmotion2(options) {
|
|
|
11502
11560
|
css,
|
|
11503
11561
|
cx,
|
|
11504
11562
|
injectGlobal,
|
|
11505
|
-
keyframes:
|
|
11563
|
+
keyframes: keyframes3,
|
|
11506
11564
|
hydrate: function hydrate(ids) {
|
|
11507
11565
|
ids.forEach(function(key) {
|
|
11508
11566
|
cache.inserted[key] = true;
|
|
@@ -11556,17 +11614,17 @@ var classnames = function classnames2(args) {
|
|
|
11556
11614
|
return cls;
|
|
11557
11615
|
};
|
|
11558
11616
|
|
|
11559
|
-
//
|
|
11617
|
+
// ../../packages/emotion/index.js
|
|
11560
11618
|
var createEmotion3 = (key = "smbls", container) => {
|
|
11561
11619
|
const cleanKey = key.replaceAll(/\./g, "-");
|
|
11562
11620
|
return createEmotion({ key: cleanKey, container });
|
|
11563
11621
|
};
|
|
11564
11622
|
var emotion = createEmotion3();
|
|
11565
11623
|
|
|
11566
|
-
//
|
|
11624
|
+
// Atoms/Animation.js
|
|
11567
11625
|
var { keyframes } = emotion;
|
|
11568
11626
|
var applyAnimationProps = (animation, element) => {
|
|
11569
|
-
if ((0,
|
|
11627
|
+
if ((0, import_utils6.isObject)(animation))
|
|
11570
11628
|
return { animationName: keyframes(animation) };
|
|
11571
11629
|
const { ANIMATION } = element.context && element.context.designSystem;
|
|
11572
11630
|
const record = ANIMATION[animation];
|
|
@@ -11610,7 +11668,8 @@ var Animation = {
|
|
|
11610
11668
|
}
|
|
11611
11669
|
};
|
|
11612
11670
|
|
|
11613
|
-
//
|
|
11671
|
+
// Box/index.js
|
|
11672
|
+
var import_utils7 = __toESM(require_cjs5());
|
|
11614
11673
|
var PropsCSS = {
|
|
11615
11674
|
class: {
|
|
11616
11675
|
style: ({ props: props6 }) => props6 && props6.style
|
|
@@ -11633,15 +11692,15 @@ var Box = {
|
|
|
11633
11692
|
Animation
|
|
11634
11693
|
],
|
|
11635
11694
|
attr: {
|
|
11636
|
-
id: ({ props: props6 }) => props6.id,
|
|
11637
|
-
|
|
11695
|
+
id: ({ props: props6 }) => (0, import_utils7.isString)(props6.id) && props6.id,
|
|
11696
|
+
title: ({ props: props6 }) => (0, import_utils7.isString)(props6.title) && props6.title,
|
|
11697
|
+
contentEditable: ({ props: props6 }) => props6.contentEditable || props6.contenteditable,
|
|
11638
11698
|
dir: ({ props: props6 }) => props6.dir,
|
|
11639
11699
|
draggable: ({ props: props6 }) => props6.draggable,
|
|
11640
11700
|
hidden: ({ props: props6 }) => props6.hidden,
|
|
11641
11701
|
lang: ({ props: props6 }) => props6.lang,
|
|
11642
11702
|
spellcheck: ({ props: props6 }) => props6.spellcheck,
|
|
11643
11703
|
tabindex: ({ props: props6 }) => props6.tabindex,
|
|
11644
|
-
title: ({ props: props6 }) => props6.title,
|
|
11645
11704
|
translate: ({ props: props6 }) => props6.translate
|
|
11646
11705
|
}
|
|
11647
11706
|
};
|
|
@@ -11651,7 +11710,7 @@ var Circle = {
|
|
|
11651
11710
|
}
|
|
11652
11711
|
};
|
|
11653
11712
|
|
|
11654
|
-
//
|
|
11713
|
+
// Icon/index.js
|
|
11655
11714
|
var Icon = {
|
|
11656
11715
|
extend: Svg,
|
|
11657
11716
|
props: ({ key, props: props6, parent, context }) => {
|
|
@@ -11659,7 +11718,7 @@ var Icon = {
|
|
|
11659
11718
|
const { toCamelCase } = context && context.utils;
|
|
11660
11719
|
const iconName = props6.inheritedString || props6.name || props6.icon || key;
|
|
11661
11720
|
const camelCase = toCamelCase(iconName);
|
|
11662
|
-
const
|
|
11721
|
+
const isArray5 = camelCase.split(/([a-z])([A-Z])/g);
|
|
11663
11722
|
let activeIconName;
|
|
11664
11723
|
if (props6.active) {
|
|
11665
11724
|
activeIconName = props6[".active"].name || props6[".active"].icon;
|
|
@@ -11672,10 +11731,10 @@ var Icon = {
|
|
|
11672
11731
|
validIconName = activeIconName;
|
|
11673
11732
|
if (ICONS[camelCase])
|
|
11674
11733
|
validIconName = camelCase;
|
|
11675
|
-
else if (ICONS[
|
|
11676
|
-
validIconName =
|
|
11677
|
-
else if (ICONS[
|
|
11678
|
-
validIconName =
|
|
11734
|
+
else if (ICONS[isArray5[0] + isArray5[1]])
|
|
11735
|
+
validIconName = isArray5[0] + isArray5[1];
|
|
11736
|
+
else if (ICONS[isArray5[0]])
|
|
11737
|
+
validIconName = isArray5[0];
|
|
11679
11738
|
else {
|
|
11680
11739
|
if (verbose)
|
|
11681
11740
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
@@ -11716,22 +11775,8 @@ var IconText = {
|
|
|
11716
11775
|
props: { flow: "column" }
|
|
11717
11776
|
}
|
|
11718
11777
|
};
|
|
11719
|
-
var FileIcon = {
|
|
11720
|
-
extend: Flex,
|
|
11721
|
-
props: {
|
|
11722
|
-
theme: "tertiary",
|
|
11723
|
-
boxSize: "C1",
|
|
11724
|
-
align: "center center",
|
|
11725
|
-
round: "Z"
|
|
11726
|
-
},
|
|
11727
|
-
Icon: {
|
|
11728
|
-
fontSize: "B",
|
|
11729
|
-
margin: "auto",
|
|
11730
|
-
icon: "file"
|
|
11731
|
-
}
|
|
11732
|
-
};
|
|
11733
11778
|
|
|
11734
|
-
//
|
|
11779
|
+
// Button/index.js
|
|
11735
11780
|
var Button = {
|
|
11736
11781
|
extend: [FocusableComponent, IconText],
|
|
11737
11782
|
tag: "button",
|
|
@@ -11778,7 +11823,7 @@ var KangorooButton = {
|
|
|
11778
11823
|
childExtend: IconText
|
|
11779
11824
|
};
|
|
11780
11825
|
|
|
11781
|
-
//
|
|
11826
|
+
// Avatar/index.js
|
|
11782
11827
|
var Avatar = {
|
|
11783
11828
|
extend: Img,
|
|
11784
11829
|
props: {
|
|
@@ -11846,7 +11891,7 @@ var AvatarChooser = {
|
|
|
11846
11891
|
}
|
|
11847
11892
|
};
|
|
11848
11893
|
|
|
11849
|
-
//
|
|
11894
|
+
// Dialog/index.js
|
|
11850
11895
|
var Dialog = {
|
|
11851
11896
|
props: {
|
|
11852
11897
|
theme: "tertiary",
|
|
@@ -11895,7 +11940,7 @@ var DialogFooter = {
|
|
|
11895
11940
|
}
|
|
11896
11941
|
};
|
|
11897
11942
|
|
|
11898
|
-
//
|
|
11943
|
+
// Datepicker/days.js
|
|
11899
11944
|
var DatePickerDay = {
|
|
11900
11945
|
extend: Button,
|
|
11901
11946
|
state: true,
|
|
@@ -11939,7 +11984,7 @@ var DatePickerDay = {
|
|
|
11939
11984
|
}
|
|
11940
11985
|
};
|
|
11941
11986
|
|
|
11942
|
-
//
|
|
11987
|
+
// Datepicker/weekdays.js
|
|
11943
11988
|
var DatePickerWeekDays = {
|
|
11944
11989
|
extend: Grid,
|
|
11945
11990
|
props: {
|
|
@@ -11975,7 +12020,7 @@ var DatePickerWeekDays = {
|
|
|
11975
12020
|
]
|
|
11976
12021
|
};
|
|
11977
12022
|
|
|
11978
|
-
//
|
|
12023
|
+
// Datepicker/months.js
|
|
11979
12024
|
var DatePickerMonthsSlider = {
|
|
11980
12025
|
extend: Flex,
|
|
11981
12026
|
props: {
|
|
@@ -12119,7 +12164,7 @@ var DatePickerMonthsSlider = {
|
|
|
12119
12164
|
}
|
|
12120
12165
|
};
|
|
12121
12166
|
|
|
12122
|
-
//
|
|
12167
|
+
// Datepicker/years.js
|
|
12123
12168
|
var DatePickerYears = {
|
|
12124
12169
|
tag: "aside",
|
|
12125
12170
|
props: {
|
|
@@ -12198,7 +12243,7 @@ var DatePickerYears = {
|
|
|
12198
12243
|
}
|
|
12199
12244
|
};
|
|
12200
12245
|
|
|
12201
|
-
//
|
|
12246
|
+
// Datepicker/grid.js
|
|
12202
12247
|
var import_headless_datepicker = __toESM(require_headless_datepicker());
|
|
12203
12248
|
var calendar = new import_headless_datepicker.HeadlessDatepicker.Calendar({
|
|
12204
12249
|
calendarMode: "exact"
|
|
@@ -12295,7 +12340,7 @@ var DatePickerGridContainer = {
|
|
|
12295
12340
|
}
|
|
12296
12341
|
};
|
|
12297
12342
|
|
|
12298
|
-
//
|
|
12343
|
+
// Datepicker/index.js
|
|
12299
12344
|
var DatePicker = {
|
|
12300
12345
|
extend: [Dialog, Flex],
|
|
12301
12346
|
state: ({ props: props6 }) => {
|
|
@@ -12352,7 +12397,7 @@ var DatePickerTwoColumns = {
|
|
|
12352
12397
|
}
|
|
12353
12398
|
};
|
|
12354
12399
|
|
|
12355
|
-
//
|
|
12400
|
+
// TimePicker/TimePickerItem.js
|
|
12356
12401
|
var props = {
|
|
12357
12402
|
align: "center center",
|
|
12358
12403
|
flow: "column",
|
|
@@ -12395,7 +12440,7 @@ var TimePickerItem = {
|
|
|
12395
12440
|
Button_minus: { icon: "minus" }
|
|
12396
12441
|
};
|
|
12397
12442
|
|
|
12398
|
-
//
|
|
12443
|
+
// TimePicker/TimeSwitcher.js
|
|
12399
12444
|
var props2 = {
|
|
12400
12445
|
boxSize: "C B2",
|
|
12401
12446
|
flow: "column",
|
|
@@ -12431,7 +12476,7 @@ var TimeSwitcher = {
|
|
|
12431
12476
|
pm: { text: "pm" }
|
|
12432
12477
|
};
|
|
12433
12478
|
|
|
12434
|
-
//
|
|
12479
|
+
// TimePicker/index.js
|
|
12435
12480
|
var TimePicker = {
|
|
12436
12481
|
extend: [Dialog, Flex],
|
|
12437
12482
|
state: {
|
|
@@ -12497,7 +12542,7 @@ var TimePicker = {
|
|
|
12497
12542
|
}
|
|
12498
12543
|
};
|
|
12499
12544
|
|
|
12500
|
-
//
|
|
12545
|
+
// Dropdown/index.js
|
|
12501
12546
|
var DropdownList = {
|
|
12502
12547
|
extend: Flex,
|
|
12503
12548
|
props: {
|
|
@@ -12557,7 +12602,7 @@ var DropdownParent = {
|
|
|
12557
12602
|
}
|
|
12558
12603
|
};
|
|
12559
12604
|
|
|
12560
|
-
//
|
|
12605
|
+
// Form/FieldLabel.js
|
|
12561
12606
|
var props3 = {
|
|
12562
12607
|
flow: "column",
|
|
12563
12608
|
gap: "Y2",
|
|
@@ -12580,7 +12625,7 @@ var FieldLabel = {
|
|
|
12580
12625
|
}
|
|
12581
12626
|
};
|
|
12582
12627
|
|
|
12583
|
-
//
|
|
12628
|
+
// Form/Checkbox.js
|
|
12584
12629
|
var Input = {
|
|
12585
12630
|
props: {
|
|
12586
12631
|
type: "checkbox",
|
|
@@ -12663,7 +12708,7 @@ var CheckBoxWithLabel = {
|
|
|
12663
12708
|
FieldLabel
|
|
12664
12709
|
};
|
|
12665
12710
|
|
|
12666
|
-
//
|
|
12711
|
+
// Form/Radio.js
|
|
12667
12712
|
var Radio = {
|
|
12668
12713
|
extend: Checkbox,
|
|
12669
12714
|
Input: {
|
|
@@ -12695,7 +12740,7 @@ var RadioWithLabel = {
|
|
|
12695
12740
|
FieldLabel
|
|
12696
12741
|
};
|
|
12697
12742
|
|
|
12698
|
-
//
|
|
12743
|
+
// Form/ToggleSwitch.js
|
|
12699
12744
|
var ToggleSwitch = {
|
|
12700
12745
|
extend: Checkbox,
|
|
12701
12746
|
props: {
|
|
@@ -12738,7 +12783,87 @@ var ToggleSwithWithLabel = {
|
|
|
12738
12783
|
FieldLabel: { padding: "Z - - -" }
|
|
12739
12784
|
};
|
|
12740
12785
|
|
|
12741
|
-
// node_modules/@symbo.ls/
|
|
12786
|
+
// node_modules/@symbo.ls/icon/index.js
|
|
12787
|
+
var Icon2 = {
|
|
12788
|
+
extend: Svg,
|
|
12789
|
+
props: ({ key, props: props6, parent, context }) => {
|
|
12790
|
+
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
12791
|
+
const { toCamelCase } = context && context.utils;
|
|
12792
|
+
const iconName = props6.inheritedString || props6.name || props6.icon || key;
|
|
12793
|
+
const camelCase = toCamelCase(iconName);
|
|
12794
|
+
const isArray5 = camelCase.split(/([a-z])([A-Z])/g);
|
|
12795
|
+
let activeIconName;
|
|
12796
|
+
if (props6.active) {
|
|
12797
|
+
activeIconName = props6[".active"].name || props6[".active"].icon;
|
|
12798
|
+
}
|
|
12799
|
+
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
12800
|
+
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
12801
|
+
}
|
|
12802
|
+
let validIconName;
|
|
12803
|
+
if (ICONS[activeIconName])
|
|
12804
|
+
validIconName = activeIconName;
|
|
12805
|
+
if (ICONS[camelCase])
|
|
12806
|
+
validIconName = camelCase;
|
|
12807
|
+
else if (ICONS[isArray5[0] + isArray5[1]])
|
|
12808
|
+
validIconName = isArray5[0] + isArray5[1];
|
|
12809
|
+
else if (ICONS[isArray5[0]])
|
|
12810
|
+
validIconName = isArray5[0];
|
|
12811
|
+
else {
|
|
12812
|
+
if (verbose)
|
|
12813
|
+
console.warn("Can't find icon:", iconName, validIconName);
|
|
12814
|
+
}
|
|
12815
|
+
const iconFromLibrary = ICONS[validIconName];
|
|
12816
|
+
const directSrc = parent && parent.props && parent.props.src || props6.src;
|
|
12817
|
+
return {
|
|
12818
|
+
width: "A",
|
|
12819
|
+
height: "A",
|
|
12820
|
+
display: "inline-block",
|
|
12821
|
+
spriteId: useIconSprite && validIconName,
|
|
12822
|
+
src: iconFromLibrary || directSrc || ICONS.noIcon,
|
|
12823
|
+
style: { fill: "currentColor" }
|
|
12824
|
+
};
|
|
12825
|
+
},
|
|
12826
|
+
attr: { viewBox: "0 0 24 24" }
|
|
12827
|
+
};
|
|
12828
|
+
var IconText2 = {
|
|
12829
|
+
extend: Flex,
|
|
12830
|
+
props: {
|
|
12831
|
+
align: "center center",
|
|
12832
|
+
lineHeight: 1
|
|
12833
|
+
},
|
|
12834
|
+
// TODO: remove this variant
|
|
12835
|
+
icon: {
|
|
12836
|
+
extend: Icon2,
|
|
12837
|
+
if: ({ parent }) => parent.props.icon
|
|
12838
|
+
},
|
|
12839
|
+
Icon: {
|
|
12840
|
+
props: {},
|
|
12841
|
+
if: ({ props: props6 }) => props6.name || props6.icon
|
|
12842
|
+
},
|
|
12843
|
+
text: ({ props: props6 }) => props6.text,
|
|
12844
|
+
".reversed": {
|
|
12845
|
+
props: { flow: "row-reverse" }
|
|
12846
|
+
},
|
|
12847
|
+
".vertical": {
|
|
12848
|
+
props: { flow: "column" }
|
|
12849
|
+
}
|
|
12850
|
+
};
|
|
12851
|
+
var FileIcon = {
|
|
12852
|
+
extend: Flex,
|
|
12853
|
+
props: {
|
|
12854
|
+
theme: "tertiary",
|
|
12855
|
+
boxSize: "C1",
|
|
12856
|
+
align: "center center",
|
|
12857
|
+
round: "Z"
|
|
12858
|
+
},
|
|
12859
|
+
Icon: {
|
|
12860
|
+
fontSize: "B",
|
|
12861
|
+
margin: "auto",
|
|
12862
|
+
icon: "file"
|
|
12863
|
+
}
|
|
12864
|
+
};
|
|
12865
|
+
|
|
12866
|
+
// Link/index.js
|
|
12742
12867
|
var import_router = __toESM(require_cjs9());
|
|
12743
12868
|
var Link = {
|
|
12744
12869
|
extend: Focusable,
|
|
@@ -12752,8 +12877,8 @@ var Link = {
|
|
|
12752
12877
|
},
|
|
12753
12878
|
attr: {
|
|
12754
12879
|
href: (el, s, ctx) => {
|
|
12755
|
-
const { exec:
|
|
12756
|
-
return
|
|
12880
|
+
const { exec: exec3 } = ctx.utils;
|
|
12881
|
+
return exec3(el.props.href, el) || exec3(el.props, el).href;
|
|
12757
12882
|
},
|
|
12758
12883
|
target: ({ props: props6 }) => props6.target,
|
|
12759
12884
|
"aria-label": ({ props: props6 }) => props6.aria ? props6.aria.label : props6.text,
|
|
@@ -12785,7 +12910,8 @@ var RouteLink = {
|
|
|
12785
12910
|
extend: [Link, RouterLink]
|
|
12786
12911
|
};
|
|
12787
12912
|
|
|
12788
|
-
//
|
|
12913
|
+
// Input/index.js
|
|
12914
|
+
var import_utils8 = __toESM(require_cjs5());
|
|
12789
12915
|
var Input2 = {
|
|
12790
12916
|
extend: [Focusable],
|
|
12791
12917
|
tag: "input",
|
|
@@ -12806,7 +12932,11 @@ var Input2 = {
|
|
|
12806
12932
|
name: ({ props: props6 }) => props6.name,
|
|
12807
12933
|
autocomplete: ({ props: props6 }) => props6.autocomplete,
|
|
12808
12934
|
placeholder: ({ props: props6 }) => props6.placeholder,
|
|
12809
|
-
value: ({ props: props6, state }) =>
|
|
12935
|
+
value: ({ props: props6, state }) => {
|
|
12936
|
+
if ((0, import_utils8.isString)(props6.value) && props6.value.includes("{{"))
|
|
12937
|
+
return (0, import_utils8.replaceLiteralsWithObjectFields)(props6.value, state);
|
|
12938
|
+
return props6.value;
|
|
12939
|
+
},
|
|
12810
12940
|
disabled: ({ props: props6 }) => props6.disabled || null,
|
|
12811
12941
|
readonly: ({ props: props6 }) => props6.readonly,
|
|
12812
12942
|
required: ({ props: props6 }) => props6.required,
|
|
@@ -12825,131 +12955,694 @@ var NumberInput = {
|
|
|
12825
12955
|
}
|
|
12826
12956
|
};
|
|
12827
12957
|
|
|
12828
|
-
// node_modules/@symbo.ls/
|
|
12829
|
-
var
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
}),
|
|
12856
|
-
input: { extend: [Focusable, Input2] }
|
|
12958
|
+
// Field/node_modules/@symbo.ls/atoms/Block.js
|
|
12959
|
+
var import_scratch10 = __toESM(require_cjs());
|
|
12960
|
+
|
|
12961
|
+
// Field/node_modules/@symbo.ls/atoms/Grid.js
|
|
12962
|
+
var import_scratch11 = __toESM(require_cjs());
|
|
12963
|
+
|
|
12964
|
+
// Field/node_modules/@symbo.ls/atoms/Media.js
|
|
12965
|
+
var import_utils9 = __toESM(require_cjs5());
|
|
12966
|
+
|
|
12967
|
+
// Field/node_modules/@symbo.ls/atoms/Theme.js
|
|
12968
|
+
var import_scratch14 = __toESM(require_cjs());
|
|
12969
|
+
|
|
12970
|
+
// Field/node_modules/@symbo.ls/atoms/Shape/style.js
|
|
12971
|
+
var import_scratch13 = __toESM(require_cjs());
|
|
12972
|
+
|
|
12973
|
+
// Field/node_modules/@symbo.ls/atoms/Timing.js
|
|
12974
|
+
var import_scratch12 = __toESM(require_cjs());
|
|
12975
|
+
|
|
12976
|
+
// Field/node_modules/@symbo.ls/atoms/Shape/style.js
|
|
12977
|
+
var CONFIG2 = (0, import_scratch13.getActiveConfig)();
|
|
12978
|
+
var depth2 = {
|
|
12979
|
+
4: { boxShadow: `rgba(0,0,0,.10) 0 2${CONFIG2.UNIT.default} 4${CONFIG2.UNIT.default}` },
|
|
12980
|
+
6: { boxShadow: `rgba(0,0,0,.10) 0 3${CONFIG2.UNIT.default} 6${CONFIG2.UNIT.default}` },
|
|
12981
|
+
10: { boxShadow: `rgba(0,0,0,.10) 0 4${CONFIG2.UNIT.default} 10${CONFIG2.UNIT.default}` },
|
|
12982
|
+
16: { boxShadow: `rgba(0,0,0,.10) 0 8${CONFIG2.UNIT.default} 16${CONFIG2.UNIT.default}` },
|
|
12983
|
+
26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG2.UNIT.default} 26${CONFIG2.UNIT.default}` },
|
|
12984
|
+
42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG2.UNIT.default} 42${CONFIG2.UNIT.default}` }
|
|
12857
12985
|
};
|
|
12858
12986
|
|
|
12859
|
-
// node_modules/@symbo.ls/
|
|
12860
|
-
var
|
|
12861
|
-
tag: "video",
|
|
12862
|
-
childExtend: {
|
|
12863
|
-
tag: "source",
|
|
12864
|
-
attr: {
|
|
12865
|
-
src: ({ props: props6 }) => props6.src,
|
|
12866
|
-
controls: ({ props: props6 }) => props6.controls
|
|
12867
|
-
}
|
|
12868
|
-
},
|
|
12987
|
+
// Field/node_modules/@symbo.ls/atoms/InteractiveComponent.js
|
|
12988
|
+
var Focusable2 = {
|
|
12869
12989
|
props: {
|
|
12870
|
-
|
|
12990
|
+
border: "none",
|
|
12991
|
+
outline: "solid, 0, blue .3",
|
|
12992
|
+
":focus-visible": {
|
|
12993
|
+
opacity: 1,
|
|
12994
|
+
outline: "solid, X, blue .3"
|
|
12995
|
+
}
|
|
12871
12996
|
},
|
|
12872
12997
|
attr: {
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
loop: ({ props: props6 }) => props6.loop,
|
|
12876
|
-
poster: ({ props: props6 }) => props6.poster,
|
|
12877
|
-
muted: ({ props: props6 }) => props6.muted,
|
|
12878
|
-
preload: ({ props: props6 }) => props6.preload,
|
|
12879
|
-
controls: ({ props: props6 }) => props6.controls
|
|
12998
|
+
placeholder: ({ props: props6 }) => props6.placeholder,
|
|
12999
|
+
tabIndex: ({ props: props6 }) => props6.tabIndex
|
|
12880
13000
|
}
|
|
12881
13001
|
};
|
|
12882
13002
|
|
|
12883
|
-
// node_modules/@symbo.ls/
|
|
12884
|
-
var
|
|
12885
|
-
var
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
borderColor: (0, import_scratch10.opacify)("#454646", 0.75)
|
|
12915
|
-
},
|
|
12916
|
-
":hover": {
|
|
12917
|
-
"::-webkit-slider-thumb": {
|
|
12918
|
-
borderColor: (0, import_scratch10.opacify)("#fff", 0.35)
|
|
12919
|
-
}
|
|
12920
|
-
},
|
|
12921
|
-
":focus": {
|
|
12922
|
-
"::-webkit-slider-thumb": {
|
|
12923
|
-
borderColor: "#3C6AC0"
|
|
12924
|
-
}
|
|
12925
|
-
}
|
|
12926
|
-
},
|
|
12927
|
-
"@light": {
|
|
12928
|
-
background: "gray9",
|
|
12929
|
-
"::-webkit-slider-thumb": {
|
|
12930
|
-
background: "white",
|
|
12931
|
-
borderColor: "gray9"
|
|
12932
|
-
},
|
|
12933
|
-
":hover": {
|
|
12934
|
-
"::-webkit-slider-thumb": {
|
|
12935
|
-
borderColor: "gray7"
|
|
12936
|
-
}
|
|
12937
|
-
},
|
|
12938
|
-
":focus": {
|
|
12939
|
-
"::-webkit-slider-thumb": {
|
|
12940
|
-
borderColor: "blue"
|
|
12941
|
-
}
|
|
12942
|
-
}
|
|
13003
|
+
// Field/node_modules/@symbo.ls/atoms/Collection.js
|
|
13004
|
+
var import_state2 = __toESM(require_cjs8());
|
|
13005
|
+
var import_utils10 = __toESM(require_cjs5());
|
|
13006
|
+
|
|
13007
|
+
// Field/node_modules/@symbo.ls/atoms/Position.js
|
|
13008
|
+
var import_scratch15 = __toESM(require_cjs());
|
|
13009
|
+
|
|
13010
|
+
// Field/node_modules/@symbo.ls/atoms/Shape/index.js
|
|
13011
|
+
var import_utils11 = __toESM(require_cjs5());
|
|
13012
|
+
var import_scratch16 = __toESM(require_cjs());
|
|
13013
|
+
|
|
13014
|
+
// Field/node_modules/@symbo.ls/atoms/Text.js
|
|
13015
|
+
var import_scratch17 = __toESM(require_cjs());
|
|
13016
|
+
|
|
13017
|
+
// Field/node_modules/@symbo.ls/atoms/Animation.js
|
|
13018
|
+
var import_scratch18 = __toESM(require_cjs());
|
|
13019
|
+
var import_utils13 = __toESM(require_cjs5());
|
|
13020
|
+
|
|
13021
|
+
// Field/node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
13022
|
+
function murmur22(str) {
|
|
13023
|
+
var h = 0;
|
|
13024
|
+
var k, i = 0, len = str.length;
|
|
13025
|
+
for (; len >= 4; ++i, len -= 4) {
|
|
13026
|
+
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
|
|
13027
|
+
k = /* Math.imul(k, m): */
|
|
13028
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
|
|
13029
|
+
k ^= /* k >>> r: */
|
|
13030
|
+
k >>> 24;
|
|
13031
|
+
h = /* Math.imul(k, m): */
|
|
13032
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
13033
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
12943
13034
|
}
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
13035
|
+
switch (len) {
|
|
13036
|
+
case 3:
|
|
13037
|
+
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
13038
|
+
case 2:
|
|
13039
|
+
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
13040
|
+
case 1:
|
|
13041
|
+
h ^= str.charCodeAt(i) & 255;
|
|
13042
|
+
h = /* Math.imul(h, m): */
|
|
13043
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
13044
|
+
}
|
|
13045
|
+
h ^= h >>> 13;
|
|
13046
|
+
h = /* Math.imul(h, m): */
|
|
13047
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
13048
|
+
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
13049
|
+
}
|
|
13050
|
+
|
|
13051
|
+
// Field/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
13052
|
+
var unitlessKeys2 = {
|
|
13053
|
+
animationIterationCount: 1,
|
|
13054
|
+
aspectRatio: 1,
|
|
13055
|
+
borderImageOutset: 1,
|
|
13056
|
+
borderImageSlice: 1,
|
|
13057
|
+
borderImageWidth: 1,
|
|
13058
|
+
boxFlex: 1,
|
|
13059
|
+
boxFlexGroup: 1,
|
|
13060
|
+
boxOrdinalGroup: 1,
|
|
13061
|
+
columnCount: 1,
|
|
13062
|
+
columns: 1,
|
|
13063
|
+
flex: 1,
|
|
13064
|
+
flexGrow: 1,
|
|
13065
|
+
flexPositive: 1,
|
|
13066
|
+
flexShrink: 1,
|
|
13067
|
+
flexNegative: 1,
|
|
13068
|
+
flexOrder: 1,
|
|
13069
|
+
gridRow: 1,
|
|
13070
|
+
gridRowEnd: 1,
|
|
13071
|
+
gridRowSpan: 1,
|
|
13072
|
+
gridRowStart: 1,
|
|
13073
|
+
gridColumn: 1,
|
|
13074
|
+
gridColumnEnd: 1,
|
|
13075
|
+
gridColumnSpan: 1,
|
|
13076
|
+
gridColumnStart: 1,
|
|
13077
|
+
msGridRow: 1,
|
|
13078
|
+
msGridRowSpan: 1,
|
|
13079
|
+
msGridColumn: 1,
|
|
13080
|
+
msGridColumnSpan: 1,
|
|
13081
|
+
fontWeight: 1,
|
|
13082
|
+
lineHeight: 1,
|
|
13083
|
+
opacity: 1,
|
|
13084
|
+
order: 1,
|
|
13085
|
+
orphans: 1,
|
|
13086
|
+
tabSize: 1,
|
|
13087
|
+
widows: 1,
|
|
13088
|
+
zIndex: 1,
|
|
13089
|
+
zoom: 1,
|
|
13090
|
+
WebkitLineClamp: 1,
|
|
13091
|
+
// SVG-related properties
|
|
13092
|
+
fillOpacity: 1,
|
|
13093
|
+
floodOpacity: 1,
|
|
13094
|
+
stopOpacity: 1,
|
|
13095
|
+
strokeDasharray: 1,
|
|
13096
|
+
strokeDashoffset: 1,
|
|
13097
|
+
strokeMiterlimit: 1,
|
|
13098
|
+
strokeOpacity: 1,
|
|
13099
|
+
strokeWidth: 1
|
|
13100
|
+
};
|
|
13101
|
+
|
|
13102
|
+
// Field/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
|
|
13103
|
+
var ILLEGAL_ESCAPE_SEQUENCE_ERROR2 = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
13104
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
13105
|
+
You can read more about this here:
|
|
13106
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
|
|
13107
|
+
var UNDEFINED_AS_OBJECT_KEY_ERROR2 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
|
13108
|
+
var hyphenateRegex2 = /[A-Z]|^ms/g;
|
|
13109
|
+
var animationRegex2 = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
13110
|
+
var isCustomProperty3 = function isCustomProperty4(property) {
|
|
13111
|
+
return property.charCodeAt(1) === 45;
|
|
13112
|
+
};
|
|
13113
|
+
var isProcessableValue3 = function isProcessableValue4(value) {
|
|
13114
|
+
return value != null && typeof value !== "boolean";
|
|
13115
|
+
};
|
|
13116
|
+
var processStyleName2 = /* @__PURE__ */ memoize(function(styleName) {
|
|
13117
|
+
return isCustomProperty3(styleName) ? styleName : styleName.replace(hyphenateRegex2, "-$&").toLowerCase();
|
|
13118
|
+
});
|
|
13119
|
+
var processStyleValue3 = function processStyleValue4(key, value) {
|
|
13120
|
+
switch (key) {
|
|
13121
|
+
case "animation":
|
|
13122
|
+
case "animationName": {
|
|
13123
|
+
if (typeof value === "string") {
|
|
13124
|
+
return value.replace(animationRegex2, function(match2, p1, p2) {
|
|
13125
|
+
cursor2 = {
|
|
13126
|
+
name: p1,
|
|
13127
|
+
styles: p2,
|
|
13128
|
+
next: cursor2
|
|
13129
|
+
};
|
|
13130
|
+
return p1;
|
|
13131
|
+
});
|
|
13132
|
+
}
|
|
13133
|
+
}
|
|
13134
|
+
}
|
|
13135
|
+
if (unitlessKeys2[key] !== 1 && !isCustomProperty3(key) && typeof value === "number" && value !== 0) {
|
|
13136
|
+
return value + "px";
|
|
13137
|
+
}
|
|
13138
|
+
return value;
|
|
13139
|
+
};
|
|
13140
|
+
if (true) {
|
|
13141
|
+
contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
13142
|
+
contentValues = ["normal", "none", "initial", "inherit", "unset"];
|
|
13143
|
+
oldProcessStyleValue = processStyleValue3;
|
|
13144
|
+
msPattern = /^-ms-/;
|
|
13145
|
+
hyphenPattern = /-(.)/g;
|
|
13146
|
+
hyphenatedCache = {};
|
|
13147
|
+
processStyleValue3 = function processStyleValue5(key, value) {
|
|
13148
|
+
if (key === "content") {
|
|
13149
|
+
if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
13150
|
+
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
13151
|
+
}
|
|
13152
|
+
}
|
|
13153
|
+
var processed = oldProcessStyleValue(key, value);
|
|
13154
|
+
if (processed !== "" && !isCustomProperty3(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
|
|
13155
|
+
hyphenatedCache[key] = true;
|
|
13156
|
+
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
|
|
13157
|
+
return _char.toUpperCase();
|
|
13158
|
+
}) + "?");
|
|
13159
|
+
}
|
|
13160
|
+
return processed;
|
|
13161
|
+
};
|
|
13162
|
+
}
|
|
13163
|
+
var contentValuePattern;
|
|
13164
|
+
var contentValues;
|
|
13165
|
+
var oldProcessStyleValue;
|
|
13166
|
+
var msPattern;
|
|
13167
|
+
var hyphenPattern;
|
|
13168
|
+
var hyphenatedCache;
|
|
13169
|
+
var noComponentSelectorMessage2 = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
13170
|
+
function handleInterpolation2(mergedProps, registered, interpolation) {
|
|
13171
|
+
if (interpolation == null) {
|
|
13172
|
+
return "";
|
|
13173
|
+
}
|
|
13174
|
+
if (interpolation.__emotion_styles !== void 0) {
|
|
13175
|
+
if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
|
|
13176
|
+
throw new Error(noComponentSelectorMessage2);
|
|
13177
|
+
}
|
|
13178
|
+
return interpolation;
|
|
13179
|
+
}
|
|
13180
|
+
switch (typeof interpolation) {
|
|
13181
|
+
case "boolean": {
|
|
13182
|
+
return "";
|
|
13183
|
+
}
|
|
13184
|
+
case "object": {
|
|
13185
|
+
if (interpolation.anim === 1) {
|
|
13186
|
+
cursor2 = {
|
|
13187
|
+
name: interpolation.name,
|
|
13188
|
+
styles: interpolation.styles,
|
|
13189
|
+
next: cursor2
|
|
13190
|
+
};
|
|
13191
|
+
return interpolation.name;
|
|
13192
|
+
}
|
|
13193
|
+
if (interpolation.styles !== void 0) {
|
|
13194
|
+
var next2 = interpolation.next;
|
|
13195
|
+
if (next2 !== void 0) {
|
|
13196
|
+
while (next2 !== void 0) {
|
|
13197
|
+
cursor2 = {
|
|
13198
|
+
name: next2.name,
|
|
13199
|
+
styles: next2.styles,
|
|
13200
|
+
next: cursor2
|
|
13201
|
+
};
|
|
13202
|
+
next2 = next2.next;
|
|
13203
|
+
}
|
|
13204
|
+
}
|
|
13205
|
+
var styles = interpolation.styles + ";";
|
|
13206
|
+
if (interpolation.map !== void 0) {
|
|
13207
|
+
styles += interpolation.map;
|
|
13208
|
+
}
|
|
13209
|
+
return styles;
|
|
13210
|
+
}
|
|
13211
|
+
return createStringFromObject2(mergedProps, registered, interpolation);
|
|
13212
|
+
}
|
|
13213
|
+
case "function": {
|
|
13214
|
+
if (mergedProps !== void 0) {
|
|
13215
|
+
var previousCursor = cursor2;
|
|
13216
|
+
var result = interpolation(mergedProps);
|
|
13217
|
+
cursor2 = previousCursor;
|
|
13218
|
+
return handleInterpolation2(mergedProps, registered, result);
|
|
13219
|
+
} else if (true) {
|
|
13220
|
+
console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
13221
|
+
}
|
|
13222
|
+
break;
|
|
13223
|
+
}
|
|
13224
|
+
case "string":
|
|
13225
|
+
if (true) {
|
|
13226
|
+
var matched = [];
|
|
13227
|
+
var replaced = interpolation.replace(animationRegex2, function(match2, p1, p2) {
|
|
13228
|
+
var fakeVarName = "animation" + matched.length;
|
|
13229
|
+
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
|
|
13230
|
+
return "${" + fakeVarName + "}";
|
|
13231
|
+
});
|
|
13232
|
+
if (matched.length) {
|
|
13233
|
+
console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
|
|
13234
|
+
}
|
|
13235
|
+
}
|
|
13236
|
+
break;
|
|
13237
|
+
}
|
|
13238
|
+
if (registered == null) {
|
|
13239
|
+
return interpolation;
|
|
13240
|
+
}
|
|
13241
|
+
var cached = registered[interpolation];
|
|
13242
|
+
return cached !== void 0 ? cached : interpolation;
|
|
13243
|
+
}
|
|
13244
|
+
function createStringFromObject2(mergedProps, registered, obj) {
|
|
13245
|
+
var string = "";
|
|
13246
|
+
if (Array.isArray(obj)) {
|
|
13247
|
+
for (var i = 0; i < obj.length; i++) {
|
|
13248
|
+
string += handleInterpolation2(mergedProps, registered, obj[i]) + ";";
|
|
13249
|
+
}
|
|
13250
|
+
} else {
|
|
13251
|
+
for (var _key in obj) {
|
|
13252
|
+
var value = obj[_key];
|
|
13253
|
+
if (typeof value !== "object") {
|
|
13254
|
+
if (registered != null && registered[value] !== void 0) {
|
|
13255
|
+
string += _key + "{" + registered[value] + "}";
|
|
13256
|
+
} else if (isProcessableValue3(value)) {
|
|
13257
|
+
string += processStyleName2(_key) + ":" + processStyleValue3(_key, value) + ";";
|
|
13258
|
+
}
|
|
13259
|
+
} else {
|
|
13260
|
+
if (_key === "NO_COMPONENT_SELECTOR" && true) {
|
|
13261
|
+
throw new Error(noComponentSelectorMessage2);
|
|
13262
|
+
}
|
|
13263
|
+
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
|
13264
|
+
for (var _i = 0; _i < value.length; _i++) {
|
|
13265
|
+
if (isProcessableValue3(value[_i])) {
|
|
13266
|
+
string += processStyleName2(_key) + ":" + processStyleValue3(_key, value[_i]) + ";";
|
|
13267
|
+
}
|
|
13268
|
+
}
|
|
13269
|
+
} else {
|
|
13270
|
+
var interpolated = handleInterpolation2(mergedProps, registered, value);
|
|
13271
|
+
switch (_key) {
|
|
13272
|
+
case "animation":
|
|
13273
|
+
case "animationName": {
|
|
13274
|
+
string += processStyleName2(_key) + ":" + interpolated + ";";
|
|
13275
|
+
break;
|
|
13276
|
+
}
|
|
13277
|
+
default: {
|
|
13278
|
+
if (_key === "undefined") {
|
|
13279
|
+
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR2);
|
|
13280
|
+
}
|
|
13281
|
+
string += _key + "{" + interpolated + "}";
|
|
13282
|
+
}
|
|
13283
|
+
}
|
|
13284
|
+
}
|
|
13285
|
+
}
|
|
13286
|
+
}
|
|
13287
|
+
}
|
|
13288
|
+
return string;
|
|
13289
|
+
}
|
|
13290
|
+
var labelPattern2 = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
13291
|
+
var sourceMapPattern2;
|
|
13292
|
+
if (true) {
|
|
13293
|
+
sourceMapPattern2 = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
13294
|
+
}
|
|
13295
|
+
var cursor2;
|
|
13296
|
+
var serializeStyles3 = function serializeStyles4(args, registered, mergedProps) {
|
|
13297
|
+
if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
|
|
13298
|
+
return args[0];
|
|
13299
|
+
}
|
|
13300
|
+
var stringMode = true;
|
|
13301
|
+
var styles = "";
|
|
13302
|
+
cursor2 = void 0;
|
|
13303
|
+
var strings = args[0];
|
|
13304
|
+
if (strings == null || strings.raw === void 0) {
|
|
13305
|
+
stringMode = false;
|
|
13306
|
+
styles += handleInterpolation2(mergedProps, registered, strings);
|
|
13307
|
+
} else {
|
|
13308
|
+
if (strings[0] === void 0) {
|
|
13309
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
|
|
13310
|
+
}
|
|
13311
|
+
styles += strings[0];
|
|
13312
|
+
}
|
|
13313
|
+
for (var i = 1; i < args.length; i++) {
|
|
13314
|
+
styles += handleInterpolation2(mergedProps, registered, args[i]);
|
|
13315
|
+
if (stringMode) {
|
|
13316
|
+
if (strings[i] === void 0) {
|
|
13317
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
|
|
13318
|
+
}
|
|
13319
|
+
styles += strings[i];
|
|
13320
|
+
}
|
|
13321
|
+
}
|
|
13322
|
+
var sourceMap;
|
|
13323
|
+
if (true) {
|
|
13324
|
+
styles = styles.replace(sourceMapPattern2, function(match3) {
|
|
13325
|
+
sourceMap = match3;
|
|
13326
|
+
return "";
|
|
13327
|
+
});
|
|
13328
|
+
}
|
|
13329
|
+
labelPattern2.lastIndex = 0;
|
|
13330
|
+
var identifierName = "";
|
|
13331
|
+
var match2;
|
|
13332
|
+
while ((match2 = labelPattern2.exec(styles)) !== null) {
|
|
13333
|
+
identifierName += "-" + // $FlowFixMe we know it's not null
|
|
13334
|
+
match2[1];
|
|
13335
|
+
}
|
|
13336
|
+
var name = murmur22(styles) + identifierName;
|
|
13337
|
+
if (true) {
|
|
13338
|
+
return {
|
|
13339
|
+
name,
|
|
13340
|
+
styles,
|
|
13341
|
+
map: sourceMap,
|
|
13342
|
+
next: cursor2,
|
|
13343
|
+
toString: function toString() {
|
|
13344
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
13345
|
+
}
|
|
13346
|
+
};
|
|
13347
|
+
}
|
|
13348
|
+
return {
|
|
13349
|
+
name,
|
|
13350
|
+
styles,
|
|
13351
|
+
next: cursor2
|
|
13352
|
+
};
|
|
13353
|
+
};
|
|
13354
|
+
|
|
13355
|
+
// Field/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
13356
|
+
var isBrowser2 = true;
|
|
13357
|
+
function getRegisteredStyles2(registered, registeredStyles, classNames) {
|
|
13358
|
+
var rawClassName = "";
|
|
13359
|
+
classNames.split(" ").forEach(function(className) {
|
|
13360
|
+
if (registered[className] !== void 0) {
|
|
13361
|
+
registeredStyles.push(registered[className] + ";");
|
|
13362
|
+
} else {
|
|
13363
|
+
rawClassName += className + " ";
|
|
13364
|
+
}
|
|
13365
|
+
});
|
|
13366
|
+
return rawClassName;
|
|
13367
|
+
}
|
|
13368
|
+
var registerStyles3 = function registerStyles4(cache, serialized, isStringTag) {
|
|
13369
|
+
var className = cache.key + "-" + serialized.name;
|
|
13370
|
+
if (
|
|
13371
|
+
// we only need to add the styles to the registered cache if the
|
|
13372
|
+
// class name could be used further down
|
|
13373
|
+
// the tree but if it's a string tag, we know it won't
|
|
13374
|
+
// so we don't have to add it to registered cache.
|
|
13375
|
+
// this improves memory usage since we can avoid storing the whole style string
|
|
13376
|
+
(isStringTag === false || // we need to always store it if we're in compat mode and
|
|
13377
|
+
// in node since emotion-server relies on whether a style is in
|
|
13378
|
+
// the registered cache to know whether a style is global or not
|
|
13379
|
+
// also, note that this check will be dead code eliminated in the browser
|
|
13380
|
+
isBrowser2 === false) && cache.registered[className] === void 0
|
|
13381
|
+
) {
|
|
13382
|
+
cache.registered[className] = serialized.styles;
|
|
13383
|
+
}
|
|
13384
|
+
};
|
|
13385
|
+
var insertStyles3 = function insertStyles4(cache, serialized, isStringTag) {
|
|
13386
|
+
registerStyles3(cache, serialized, isStringTag);
|
|
13387
|
+
var className = cache.key + "-" + serialized.name;
|
|
13388
|
+
if (cache.inserted[serialized.name] === void 0) {
|
|
13389
|
+
var current = serialized;
|
|
13390
|
+
do {
|
|
13391
|
+
cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
|
|
13392
|
+
current = current.next;
|
|
13393
|
+
} while (current !== void 0);
|
|
13394
|
+
}
|
|
13395
|
+
};
|
|
13396
|
+
|
|
13397
|
+
// Field/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
13398
|
+
function insertWithoutScoping2(cache, serialized) {
|
|
13399
|
+
if (cache.inserted[serialized.name] === void 0) {
|
|
13400
|
+
return cache.insert("", serialized, cache.sheet, true);
|
|
13401
|
+
}
|
|
13402
|
+
}
|
|
13403
|
+
function merge4(registered, css, className) {
|
|
13404
|
+
var registeredStyles = [];
|
|
13405
|
+
var rawClassName = getRegisteredStyles2(registered, registeredStyles, className);
|
|
13406
|
+
if (registeredStyles.length < 2) {
|
|
13407
|
+
return className;
|
|
13408
|
+
}
|
|
13409
|
+
return rawClassName + css(registeredStyles);
|
|
13410
|
+
}
|
|
13411
|
+
var createEmotion4 = function createEmotion5(options) {
|
|
13412
|
+
var cache = createCache(options);
|
|
13413
|
+
cache.sheet.speedy = function(value) {
|
|
13414
|
+
if (this.ctr !== 0) {
|
|
13415
|
+
throw new Error("speedy must be changed before any rules are inserted");
|
|
13416
|
+
}
|
|
13417
|
+
this.isSpeedy = value;
|
|
13418
|
+
};
|
|
13419
|
+
cache.compat = true;
|
|
13420
|
+
var css = function css2() {
|
|
13421
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13422
|
+
args[_key] = arguments[_key];
|
|
13423
|
+
}
|
|
13424
|
+
var serialized = serializeStyles3(args, cache.registered, void 0);
|
|
13425
|
+
insertStyles3(cache, serialized, false);
|
|
13426
|
+
return cache.key + "-" + serialized.name;
|
|
13427
|
+
};
|
|
13428
|
+
var keyframes3 = function keyframes4() {
|
|
13429
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
13430
|
+
args[_key2] = arguments[_key2];
|
|
13431
|
+
}
|
|
13432
|
+
var serialized = serializeStyles3(args, cache.registered);
|
|
13433
|
+
var animation = "animation-" + serialized.name;
|
|
13434
|
+
insertWithoutScoping2(cache, {
|
|
13435
|
+
name: serialized.name,
|
|
13436
|
+
styles: "@keyframes " + animation + "{" + serialized.styles + "}"
|
|
13437
|
+
});
|
|
13438
|
+
return animation;
|
|
13439
|
+
};
|
|
13440
|
+
var injectGlobal = function injectGlobal2() {
|
|
13441
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
13442
|
+
args[_key3] = arguments[_key3];
|
|
13443
|
+
}
|
|
13444
|
+
var serialized = serializeStyles3(args, cache.registered);
|
|
13445
|
+
insertWithoutScoping2(cache, serialized);
|
|
13446
|
+
};
|
|
13447
|
+
var cx = function cx2() {
|
|
13448
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
13449
|
+
args[_key4] = arguments[_key4];
|
|
13450
|
+
}
|
|
13451
|
+
return merge4(cache.registered, css, classnames3(args));
|
|
13452
|
+
};
|
|
13453
|
+
return {
|
|
13454
|
+
css,
|
|
13455
|
+
cx,
|
|
13456
|
+
injectGlobal,
|
|
13457
|
+
keyframes: keyframes3,
|
|
13458
|
+
hydrate: function hydrate(ids) {
|
|
13459
|
+
ids.forEach(function(key) {
|
|
13460
|
+
cache.inserted[key] = true;
|
|
13461
|
+
});
|
|
13462
|
+
},
|
|
13463
|
+
flush: function flush() {
|
|
13464
|
+
cache.registered = {};
|
|
13465
|
+
cache.inserted = {};
|
|
13466
|
+
cache.sheet.flush();
|
|
13467
|
+
},
|
|
13468
|
+
// $FlowFixMe
|
|
13469
|
+
sheet: cache.sheet,
|
|
13470
|
+
cache,
|
|
13471
|
+
getRegisteredStyles: getRegisteredStyles2.bind(null, cache.registered),
|
|
13472
|
+
merge: merge4.bind(null, cache.registered, css)
|
|
13473
|
+
};
|
|
13474
|
+
};
|
|
13475
|
+
var classnames3 = function classnames4(args) {
|
|
13476
|
+
var cls = "";
|
|
13477
|
+
for (var i = 0; i < args.length; i++) {
|
|
13478
|
+
var arg = args[i];
|
|
13479
|
+
if (arg == null)
|
|
13480
|
+
continue;
|
|
13481
|
+
var toAdd = void 0;
|
|
13482
|
+
switch (typeof arg) {
|
|
13483
|
+
case "boolean":
|
|
13484
|
+
break;
|
|
13485
|
+
case "object": {
|
|
13486
|
+
if (Array.isArray(arg)) {
|
|
13487
|
+
toAdd = classnames4(arg);
|
|
13488
|
+
} else {
|
|
13489
|
+
toAdd = "";
|
|
13490
|
+
for (var k in arg) {
|
|
13491
|
+
if (arg[k] && k) {
|
|
13492
|
+
toAdd && (toAdd += " ");
|
|
13493
|
+
toAdd += k;
|
|
13494
|
+
}
|
|
13495
|
+
}
|
|
13496
|
+
}
|
|
13497
|
+
break;
|
|
13498
|
+
}
|
|
13499
|
+
default: {
|
|
13500
|
+
toAdd = arg;
|
|
13501
|
+
}
|
|
13502
|
+
}
|
|
13503
|
+
if (toAdd) {
|
|
13504
|
+
cls && (cls += " ");
|
|
13505
|
+
cls += toAdd;
|
|
13506
|
+
}
|
|
13507
|
+
}
|
|
13508
|
+
return cls;
|
|
13509
|
+
};
|
|
13510
|
+
|
|
13511
|
+
// Field/node_modules/@symbo.ls/emotion/index.js
|
|
13512
|
+
var createEmotion6 = (key = "smbls", container) => {
|
|
13513
|
+
const cleanKey = key.replaceAll(/\./g, "-");
|
|
13514
|
+
return createEmotion4({ key: cleanKey, container });
|
|
13515
|
+
};
|
|
13516
|
+
var emotion2 = createEmotion6();
|
|
13517
|
+
|
|
13518
|
+
// Field/node_modules/@symbo.ls/atoms/Animation.js
|
|
13519
|
+
var { keyframes: keyframes2 } = emotion2;
|
|
13520
|
+
|
|
13521
|
+
// Field/index.js
|
|
13522
|
+
var Field = {
|
|
13523
|
+
extend: [IconText],
|
|
13524
|
+
props: ({ state, key }) => ({
|
|
13525
|
+
value: state[key],
|
|
13526
|
+
depth: 16,
|
|
13527
|
+
placeholder: "",
|
|
13528
|
+
padding: "A B",
|
|
13529
|
+
round: "C",
|
|
13530
|
+
type: "text",
|
|
13531
|
+
position: "relative",
|
|
13532
|
+
width: "G",
|
|
13533
|
+
appearance: "none",
|
|
13534
|
+
outline: 0,
|
|
13535
|
+
border: "none",
|
|
13536
|
+
cursor: "pointer",
|
|
13537
|
+
fontFamily: "inherit",
|
|
13538
|
+
boxSizing: "border-box",
|
|
13539
|
+
input: {
|
|
13540
|
+
width: "100%",
|
|
13541
|
+
height: "100%",
|
|
13542
|
+
border: "none"
|
|
13543
|
+
},
|
|
13544
|
+
svg: {
|
|
13545
|
+
position: "absolute",
|
|
13546
|
+
right: "A"
|
|
13547
|
+
}
|
|
13548
|
+
}),
|
|
13549
|
+
input: { extend: [Focusable2, Input2] }
|
|
13550
|
+
};
|
|
13551
|
+
|
|
13552
|
+
// Video/index.js
|
|
13553
|
+
var Video = {
|
|
13554
|
+
tag: "video",
|
|
13555
|
+
childExtend: {
|
|
13556
|
+
tag: "source",
|
|
13557
|
+
attr: {
|
|
13558
|
+
src: ({ props: props6 }) => props6.src,
|
|
13559
|
+
controls: ({ props: props6 }) => props6.controls
|
|
13560
|
+
}
|
|
13561
|
+
},
|
|
13562
|
+
props: {
|
|
13563
|
+
controls: true
|
|
13564
|
+
},
|
|
13565
|
+
attr: {
|
|
13566
|
+
src: ({ props: props6 }) => props6.src,
|
|
13567
|
+
autoplay: ({ props: props6 }) => props6.autoplay,
|
|
13568
|
+
loop: ({ props: props6 }) => props6.loop,
|
|
13569
|
+
poster: ({ props: props6 }) => props6.poster,
|
|
13570
|
+
muted: ({ props: props6 }) => props6.muted,
|
|
13571
|
+
preload: ({ props: props6 }) => props6.preload,
|
|
13572
|
+
controls: ({ props: props6 }) => props6.controls
|
|
13573
|
+
}
|
|
13574
|
+
};
|
|
13575
|
+
|
|
13576
|
+
// Range/index.js
|
|
13577
|
+
var import_utils14 = __toESM(require_cjs5());
|
|
13578
|
+
var import_scratch19 = __toESM(require_cjs());
|
|
13579
|
+
var props4 = {
|
|
13580
|
+
appearance: "none",
|
|
13581
|
+
width: "100%",
|
|
13582
|
+
height: "2px",
|
|
13583
|
+
outline: "none",
|
|
13584
|
+
flex: 1,
|
|
13585
|
+
onInput: (ev, el, s) => s.update({ value: el.node.value }),
|
|
13586
|
+
onChange: (ev, el, s) => s.update({ value: el.node.value }),
|
|
13587
|
+
style: {
|
|
13588
|
+
appearance: "none"
|
|
13589
|
+
},
|
|
13590
|
+
"::-webkit-slider-thumb": {
|
|
13591
|
+
boxSizing: "content-box",
|
|
13592
|
+
width: "8px",
|
|
13593
|
+
height: "8px",
|
|
13594
|
+
borderWidth: "2px",
|
|
13595
|
+
borderStyle: "solid",
|
|
13596
|
+
borderRadius: "100%",
|
|
13597
|
+
opacity: ".8",
|
|
13598
|
+
style: {
|
|
13599
|
+
appearance: "none"
|
|
13600
|
+
}
|
|
13601
|
+
},
|
|
13602
|
+
"::-webkit-slider-runnable-track": {},
|
|
13603
|
+
"@dark": {
|
|
13604
|
+
background: "white 0.2",
|
|
13605
|
+
"::-webkit-slider-thumb": {
|
|
13606
|
+
background: "#232526",
|
|
13607
|
+
borderColor: (0, import_scratch19.opacify)("#454646", 0.75)
|
|
13608
|
+
},
|
|
13609
|
+
":hover": {
|
|
13610
|
+
"::-webkit-slider-thumb": {
|
|
13611
|
+
borderColor: (0, import_scratch19.opacify)("#fff", 0.35)
|
|
13612
|
+
}
|
|
13613
|
+
},
|
|
13614
|
+
":focus": {
|
|
13615
|
+
"::-webkit-slider-thumb": {
|
|
13616
|
+
borderColor: "#3C6AC0"
|
|
13617
|
+
}
|
|
13618
|
+
}
|
|
13619
|
+
},
|
|
13620
|
+
"@light": {
|
|
13621
|
+
background: "gray9",
|
|
13622
|
+
"::-webkit-slider-thumb": {
|
|
13623
|
+
background: "white",
|
|
13624
|
+
borderColor: "gray9"
|
|
13625
|
+
},
|
|
13626
|
+
":hover": {
|
|
13627
|
+
"::-webkit-slider-thumb": {
|
|
13628
|
+
borderColor: "gray7"
|
|
13629
|
+
}
|
|
13630
|
+
},
|
|
13631
|
+
":focus": {
|
|
13632
|
+
"::-webkit-slider-thumb": {
|
|
13633
|
+
borderColor: "blue"
|
|
13634
|
+
}
|
|
13635
|
+
}
|
|
13636
|
+
}
|
|
13637
|
+
};
|
|
13638
|
+
var Range = {
|
|
13639
|
+
props: props4,
|
|
13640
|
+
tag: "input",
|
|
13641
|
+
attr: { type: "range" }
|
|
13642
|
+
};
|
|
13643
|
+
var listenProp = (el, prop, def) => {
|
|
12951
13644
|
const val = el.props && el.props[prop];
|
|
12952
|
-
const r = (0,
|
|
13645
|
+
const r = (0, import_utils14.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
|
|
12953
13646
|
return r + "";
|
|
12954
13647
|
};
|
|
12955
13648
|
var RangeWithButtons = {
|
|
@@ -12958,7 +13651,7 @@ var RangeWithButtons = {
|
|
|
12958
13651
|
props: { theme: "tertiary", icon: "minus" },
|
|
12959
13652
|
on: {
|
|
12960
13653
|
click: (ev, el, s) => {
|
|
12961
|
-
el.props && (0,
|
|
13654
|
+
el.props && (0, import_utils14.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
|
|
12962
13655
|
}
|
|
12963
13656
|
}
|
|
12964
13657
|
},
|
|
@@ -12979,8 +13672,8 @@ var RangeWithButtons = {
|
|
|
12979
13672
|
step: (el, s) => listenProp(el, "step", 1)
|
|
12980
13673
|
},
|
|
12981
13674
|
on: {
|
|
12982
|
-
input: (ev, el, s) => el.props && (0,
|
|
12983
|
-
change: (ev, el, s) => el.props && (0,
|
|
13675
|
+
input: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.onInput) && el.props.onInput(ev, el, s),
|
|
13676
|
+
change: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.onChange) && el.props.onChange(ev, el, s)
|
|
12984
13677
|
}
|
|
12985
13678
|
},
|
|
12986
13679
|
plus: {
|
|
@@ -12988,13 +13681,13 @@ var RangeWithButtons = {
|
|
|
12988
13681
|
props: { theme: "tertiary", icon: "plus" },
|
|
12989
13682
|
on: {
|
|
12990
13683
|
click: (ev, el, s) => {
|
|
12991
|
-
el.props && (0,
|
|
13684
|
+
el.props && (0, import_utils14.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
|
|
12992
13685
|
}
|
|
12993
13686
|
}
|
|
12994
13687
|
}
|
|
12995
13688
|
};
|
|
12996
13689
|
|
|
12997
|
-
//
|
|
13690
|
+
// Slider/style.js
|
|
12998
13691
|
var style_default = {
|
|
12999
13692
|
appearance: "none",
|
|
13000
13693
|
width: "100%",
|
|
@@ -13013,20 +13706,20 @@ var style_default = {
|
|
|
13013
13706
|
}
|
|
13014
13707
|
};
|
|
13015
13708
|
|
|
13016
|
-
//
|
|
13017
|
-
var
|
|
13018
|
-
var
|
|
13019
|
-
(0,
|
|
13709
|
+
// Slider/index.js
|
|
13710
|
+
var import_scratch20 = __toESM(require_cjs());
|
|
13711
|
+
var import_utils15 = __toESM(require_cjs5());
|
|
13712
|
+
(0, import_scratch20.set)({
|
|
13020
13713
|
theme: {
|
|
13021
13714
|
sliderThumb: {
|
|
13022
13715
|
background: "white 0.2",
|
|
13023
13716
|
"&::-webkit-slider-thumb": {
|
|
13024
13717
|
background: "#232526",
|
|
13025
|
-
borderColor: (0,
|
|
13718
|
+
borderColor: (0, import_scratch20.opacify)("#454646", 0.75)
|
|
13026
13719
|
},
|
|
13027
13720
|
"&:hover": {
|
|
13028
13721
|
"&::-webkit-slider-thumb": {
|
|
13029
|
-
borderColor: (0,
|
|
13722
|
+
borderColor: (0, import_scratch20.opacify)("#fff", 0.35)
|
|
13030
13723
|
}
|
|
13031
13724
|
},
|
|
13032
13725
|
"&:focus, &:active": {
|
|
@@ -13047,7 +13740,7 @@ var RangeSlider = {
|
|
|
13047
13740
|
};
|
|
13048
13741
|
var listenProp2 = (el, prop, def) => {
|
|
13049
13742
|
const val = el && el.props && el.props[prop];
|
|
13050
|
-
const r = ((0,
|
|
13743
|
+
const r = ((0, import_utils15.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
13051
13744
|
return r;
|
|
13052
13745
|
};
|
|
13053
13746
|
var Slider = {
|
|
@@ -13058,10 +13751,10 @@ var Slider = {
|
|
|
13058
13751
|
},
|
|
13059
13752
|
on: {
|
|
13060
13753
|
click: (ev, el, s) => {
|
|
13061
|
-
el.props && (0,
|
|
13754
|
+
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13062
13755
|
const input = el.parent.input;
|
|
13063
13756
|
const props6 = input.props;
|
|
13064
|
-
const value = (0,
|
|
13757
|
+
const value = (0, import_utils15.isFunction)(props6.value) ? props6.value() : props6.value;
|
|
13065
13758
|
input.node.value = value;
|
|
13066
13759
|
}
|
|
13067
13760
|
}
|
|
@@ -13084,8 +13777,8 @@ var Slider = {
|
|
|
13084
13777
|
step: (el, s) => listenProp2(el, "step", 1)
|
|
13085
13778
|
},
|
|
13086
13779
|
on: {
|
|
13087
|
-
input: (ev, el, s) => el.props && (0,
|
|
13088
|
-
change: (ev, el, s) => el.props && (0,
|
|
13780
|
+
input: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
13781
|
+
change: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
13089
13782
|
}
|
|
13090
13783
|
},
|
|
13091
13784
|
button1: {
|
|
@@ -13095,17 +13788,17 @@ var Slider = {
|
|
|
13095
13788
|
},
|
|
13096
13789
|
on: {
|
|
13097
13790
|
click: (ev, el, s) => {
|
|
13098
|
-
el.props && (0,
|
|
13791
|
+
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13099
13792
|
const input = el.parent.input;
|
|
13100
13793
|
const props6 = input.props;
|
|
13101
|
-
const value = (0,
|
|
13794
|
+
const value = (0, import_utils15.isFunction)(props6.value) ? props6.value() : props6.value;
|
|
13102
13795
|
input.node.value = value;
|
|
13103
13796
|
}
|
|
13104
13797
|
}
|
|
13105
13798
|
}
|
|
13106
13799
|
};
|
|
13107
13800
|
|
|
13108
|
-
//
|
|
13801
|
+
// Notification/index.js
|
|
13109
13802
|
var Notification = {
|
|
13110
13803
|
extend: Flex,
|
|
13111
13804
|
props: {
|
|
@@ -13144,7 +13837,7 @@ var Notification = {
|
|
|
13144
13837
|
}
|
|
13145
13838
|
};
|
|
13146
13839
|
|
|
13147
|
-
//
|
|
13840
|
+
// Tooltip/index.js
|
|
13148
13841
|
var Tooltip = {
|
|
13149
13842
|
extend: Flex,
|
|
13150
13843
|
props: {
|
|
@@ -13192,7 +13885,7 @@ var TooltipParent = {
|
|
|
13192
13885
|
}
|
|
13193
13886
|
};
|
|
13194
13887
|
|
|
13195
|
-
//
|
|
13888
|
+
// Textarea/index.js
|
|
13196
13889
|
var Textarea = {
|
|
13197
13890
|
extend: [Input2],
|
|
13198
13891
|
tag: "textarea",
|
|
@@ -13205,7 +13898,7 @@ var Textarea = {
|
|
|
13205
13898
|
}
|
|
13206
13899
|
};
|
|
13207
13900
|
|
|
13208
|
-
//
|
|
13901
|
+
// Upload/UploadResult.js
|
|
13209
13902
|
var Captions = {
|
|
13210
13903
|
extend: Flex,
|
|
13211
13904
|
props: {
|
|
@@ -13270,7 +13963,7 @@ var UploadResult = {
|
|
|
13270
13963
|
}
|
|
13271
13964
|
};
|
|
13272
13965
|
|
|
13273
|
-
//
|
|
13966
|
+
// Upload/UploadLabel.js
|
|
13274
13967
|
var UploadLabel = {
|
|
13275
13968
|
extend: [Focusable, Flex],
|
|
13276
13969
|
tag: "label",
|
|
@@ -13315,7 +14008,7 @@ var UploadLabel = {
|
|
|
13315
14008
|
}
|
|
13316
14009
|
};
|
|
13317
14010
|
|
|
13318
|
-
//
|
|
14011
|
+
// Upload/UploadModal.js
|
|
13319
14012
|
var UploadModalFooter = {
|
|
13320
14013
|
extend: Flex,
|
|
13321
14014
|
props: {
|
|
@@ -13445,7 +14138,7 @@ var UploadModal = {
|
|
|
13445
14138
|
UploadModalFooter: {}
|
|
13446
14139
|
};
|
|
13447
14140
|
|
|
13448
|
-
//
|
|
14141
|
+
// Upload/UploadProgress.js
|
|
13449
14142
|
var UploadProgress = {
|
|
13450
14143
|
tag: "progress",
|
|
13451
14144
|
props: {
|
|
@@ -13470,7 +14163,7 @@ var UploadProgress = {
|
|
|
13470
14163
|
}
|
|
13471
14164
|
};
|
|
13472
14165
|
|
|
13473
|
-
//
|
|
14166
|
+
// Label/index.js
|
|
13474
14167
|
var Label = {
|
|
13475
14168
|
extend: Button,
|
|
13476
14169
|
props: {
|
|
@@ -13489,7 +14182,7 @@ var Label = {
|
|
|
13489
14182
|
}
|
|
13490
14183
|
};
|
|
13491
14184
|
|
|
13492
|
-
//
|
|
14185
|
+
// Pills/index.js
|
|
13493
14186
|
var Pills = {
|
|
13494
14187
|
extend: Flex,
|
|
13495
14188
|
props: {
|
|
@@ -13516,17 +14209,15 @@ var Pills = {
|
|
|
13516
14209
|
$setCollection: ({ props: props6, state }) => new Array(props6.qty).fill({})
|
|
13517
14210
|
};
|
|
13518
14211
|
|
|
13519
|
-
//
|
|
14212
|
+
// Select/index.js
|
|
13520
14213
|
var Select = {
|
|
13521
14214
|
extend: Focusable,
|
|
13522
14215
|
tag: "select",
|
|
13523
14216
|
props: {
|
|
13524
14217
|
fontSize: "A",
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
cursor: "pointer"
|
|
13529
|
-
}
|
|
14218
|
+
border: "none",
|
|
14219
|
+
boxSizing: "border-box",
|
|
14220
|
+
cursor: "pointer"
|
|
13530
14221
|
},
|
|
13531
14222
|
childExtend: {
|
|
13532
14223
|
tag: "option",
|
|
@@ -13547,7 +14238,7 @@ var Select = {
|
|
|
13547
14238
|
}
|
|
13548
14239
|
};
|
|
13549
14240
|
|
|
13550
|
-
//
|
|
14241
|
+
// Tab/index.js
|
|
13551
14242
|
var props5 = {
|
|
13552
14243
|
gap: "Z",
|
|
13553
14244
|
theme: "tertiary",
|
|
@@ -13578,7 +14269,7 @@ var Tab = {
|
|
|
13578
14269
|
}
|
|
13579
14270
|
};
|
|
13580
14271
|
|
|
13581
|
-
//
|
|
14272
|
+
// Search/index.js
|
|
13582
14273
|
var Search = {
|
|
13583
14274
|
extend: Flex,
|
|
13584
14275
|
props: {
|