@appkit/dek-lib 0.26.0 → 0.27.0
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.es.js +615 -296
- package/dist/index.umd.js +615 -296
- package/dist/plugins/base/components/backgrounds/SlantBackground/SlantBackground.d.ts +7 -0
- package/dist/plugins/base/components/backgrounds/SlantBackground/SlantBackground.styled.d.ts +15 -0
- package/dist/plugins/base/components/backgrounds/WaveBackground/WaveBackground.d.ts +8 -0
- package/dist/plugins/base/components/backgrounds/WaveBackground/WaveBackground.styled.d.ts +16 -0
- package/dist/plugins/home-assistant/EntityButton/EntityButton.d.ts +2 -1
- package/dist/plugins/home-assistant/MediaButton/MediaButton.d.ts +2 -1
- package/dist/plugins/home-assistant/SensorCard/SensorCard.d.ts +9 -0
- package/dist/plugins/home-assistant/plugin.d.ts +4 -0
- package/dist/plugins/home-assistant/screens/EntitiesScreen/EntitiesScreen.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1117,14 +1117,14 @@ var __publicField = (obj, key, value) => {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
return null;
|
|
1119
1119
|
}
|
|
1120
|
-
var Z = Object.assign, L1 = 0, d1, I, S, n1,
|
|
1120
|
+
var Z = Object.assign, L1 = 0, d1, I, S, n1, C1, f1, S1;
|
|
1121
1121
|
function j1() {
|
|
1122
1122
|
}
|
|
1123
1123
|
j1.__reactDisabledLog = true;
|
|
1124
1124
|
function k1() {
|
|
1125
1125
|
{
|
|
1126
1126
|
if (L1 === 0) {
|
|
1127
|
-
d1 = console.log, I = console.info, S = console.warn, n1 = console.error,
|
|
1127
|
+
d1 = console.log, I = console.info, S = console.warn, n1 = console.error, C1 = console.group, f1 = console.groupCollapsed, S1 = console.groupEnd;
|
|
1128
1128
|
var _10 = {
|
|
1129
1129
|
configurable: true,
|
|
1130
1130
|
enumerable: true,
|
|
@@ -1166,7 +1166,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1166
1166
|
value: n1
|
|
1167
1167
|
}),
|
|
1168
1168
|
group: Z({}, _10, {
|
|
1169
|
-
value:
|
|
1169
|
+
value: C1
|
|
1170
1170
|
}),
|
|
1171
1171
|
groupCollapsed: Z({}, _10, {
|
|
1172
1172
|
value: f1
|
|
@@ -1634,7 +1634,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
1634
1634
|
`, F4 = (t2, e2 = false) => t2 === "center" ? "center" : t2 === "left" ? e2 ? "flex-end" : "flex-start" : t2 === "stretch" ? "stretch" : e2 ? "flex-start" : "flex-end", E4 = (t2, e2 = false) => t2 === "center" ? "center" : t2 === "top" ? e2 ? "flex-end" : "flex-start" : e2 ? "flex-start" : "flex-end", f7 = styled.div`
|
|
1635
1635
|
box-sizing: border-box;
|
|
1636
1636
|
background-color: ${(t2) => t2.$active ? t2.$backColorActive : t2.$backColor};
|
|
1637
|
-
filter: ${(t2) => t2.$disabled ? `brightness(${
|
|
1637
|
+
filter: ${(t2) => t2.$disabled ? `brightness(${B1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${B1.button.brightnessPressed})` : "none"};
|
|
1638
1638
|
border-radius: ${({ $borderRadius: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
1639
1639
|
width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
1640
1640
|
height: ${({ $height: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
@@ -1685,7 +1685,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
1685
1685
|
}, W = () => {
|
|
1686
1686
|
e2 || X();
|
|
1687
1687
|
}, G = i2 ? void 0 : r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`;
|
|
1688
|
-
return i2 || (i2 = (J =
|
|
1688
|
+
return i2 || (i2 = (J = B1.button[t2]) == null ? void 0 : J.backColor), c2 || (c2 = (r1 = B1.button[t2]) == null ? void 0 : r1.backColorActive), /* @__PURE__ */ z1.jsx(
|
|
1689
1689
|
f7,
|
|
1690
1690
|
{
|
|
1691
1691
|
$pressed: e2 ? false : R,
|
|
@@ -24515,7 +24515,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24515
24515
|
iconPadding: c2 = 2,
|
|
24516
24516
|
iconBackColor: l2 = ""
|
|
24517
24517
|
}) => {
|
|
24518
|
-
const o4 = e2 ? h2 : n5 ||
|
|
24518
|
+
const o4 = e2 ? h2 : n5 || B1.button.normal.color, d = l2 ? i2 - 4 : i2, g = c2, f4 = l2 ? 2 : 0;
|
|
24519
24519
|
return /* @__PURE__ */ z1.jsxs(
|
|
24520
24520
|
OU1,
|
|
24521
24521
|
{
|
|
@@ -24538,7 +24538,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24538
24538
|
]
|
|
24539
24539
|
}
|
|
24540
24540
|
);
|
|
24541
|
-
},
|
|
24541
|
+
}, B1 = {
|
|
24542
24542
|
text: {
|
|
24543
24543
|
size: {
|
|
24544
24544
|
xxsmall: 10,
|
|
@@ -24635,15 +24635,15 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24635
24635
|
function z5(t2) {
|
|
24636
24636
|
switch (t2) {
|
|
24637
24637
|
case "xxsubtle":
|
|
24638
|
-
return
|
|
24638
|
+
return B1.text.color.xxsubtle;
|
|
24639
24639
|
case "xsubtle":
|
|
24640
|
-
return
|
|
24640
|
+
return B1.text.color.xsubtle;
|
|
24641
24641
|
case "subtle":
|
|
24642
|
-
return
|
|
24642
|
+
return B1.text.color.subtle;
|
|
24643
24643
|
case "tint":
|
|
24644
|
-
return
|
|
24644
|
+
return B1.text.color.tint;
|
|
24645
24645
|
case "normal":
|
|
24646
|
-
return
|
|
24646
|
+
return B1.text.color.normal;
|
|
24647
24647
|
default:
|
|
24648
24648
|
return t2;
|
|
24649
24649
|
}
|
|
@@ -24651,97 +24651,97 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24651
24651
|
function H3(t2) {
|
|
24652
24652
|
switch (t2) {
|
|
24653
24653
|
case "normal":
|
|
24654
|
-
return
|
|
24654
|
+
return B1.text.family.normal;
|
|
24655
24655
|
case "condensed":
|
|
24656
|
-
return
|
|
24656
|
+
return B1.text.family.condensed;
|
|
24657
24657
|
case "mono":
|
|
24658
|
-
return
|
|
24658
|
+
return B1.text.family.mono;
|
|
24659
24659
|
case "slab":
|
|
24660
|
-
return
|
|
24660
|
+
return B1.text.family.slab;
|
|
24661
24661
|
case "flex":
|
|
24662
|
-
return
|
|
24662
|
+
return B1.text.family.flex;
|
|
24663
24663
|
case "heading":
|
|
24664
|
-
return
|
|
24664
|
+
return B1.text.family.heading;
|
|
24665
24665
|
default:
|
|
24666
24666
|
return t2;
|
|
24667
24667
|
}
|
|
24668
24668
|
}
|
|
24669
24669
|
function j4(t2) {
|
|
24670
24670
|
if (t2 === void 0)
|
|
24671
|
-
return
|
|
24671
|
+
return B1.text.size.normal;
|
|
24672
24672
|
if (typeof t2 == "number")
|
|
24673
24673
|
return t2;
|
|
24674
24674
|
switch (t2) {
|
|
24675
24675
|
case "xxsmall":
|
|
24676
|
-
return
|
|
24676
|
+
return B1.text.size.xxsmall;
|
|
24677
24677
|
case "xsmall":
|
|
24678
|
-
return
|
|
24678
|
+
return B1.text.size.xsmall;
|
|
24679
24679
|
case "small":
|
|
24680
|
-
return
|
|
24680
|
+
return B1.text.size.small;
|
|
24681
24681
|
case "normal":
|
|
24682
|
-
return
|
|
24682
|
+
return B1.text.size.normal;
|
|
24683
24683
|
case "large":
|
|
24684
|
-
return
|
|
24684
|
+
return B1.text.size.large;
|
|
24685
24685
|
case "xlarge":
|
|
24686
|
-
return
|
|
24686
|
+
return B1.text.size.xlarge;
|
|
24687
24687
|
case "xxlarge":
|
|
24688
|
-
return
|
|
24688
|
+
return B1.text.size.xxlarge;
|
|
24689
24689
|
case "heading":
|
|
24690
|
-
return
|
|
24690
|
+
return B1.text.size.heading;
|
|
24691
24691
|
}
|
|
24692
24692
|
}
|
|
24693
24693
|
function N9(t2) {
|
|
24694
24694
|
if (t2 === void 0)
|
|
24695
|
-
return
|
|
24695
|
+
return B1.text.height.normal;
|
|
24696
24696
|
if (typeof t2 == "number")
|
|
24697
24697
|
return t2 + 5;
|
|
24698
24698
|
switch (t2) {
|
|
24699
24699
|
case "xxsmall":
|
|
24700
|
-
return
|
|
24700
|
+
return B1.text.height.xxsmall;
|
|
24701
24701
|
case "xsmall":
|
|
24702
|
-
return
|
|
24702
|
+
return B1.text.height.xsmall;
|
|
24703
24703
|
case "small":
|
|
24704
|
-
return
|
|
24704
|
+
return B1.text.height.small;
|
|
24705
24705
|
case "normal":
|
|
24706
|
-
return
|
|
24706
|
+
return B1.text.height.normal;
|
|
24707
24707
|
case "large":
|
|
24708
|
-
return
|
|
24708
|
+
return B1.text.height.large;
|
|
24709
24709
|
case "xlarge":
|
|
24710
|
-
return
|
|
24710
|
+
return B1.text.height.xlarge;
|
|
24711
24711
|
case "xxlarge":
|
|
24712
|
-
return
|
|
24712
|
+
return B1.text.height.xxlarge;
|
|
24713
24713
|
case "heading":
|
|
24714
|
-
return
|
|
24714
|
+
return B1.text.height.heading;
|
|
24715
24715
|
}
|
|
24716
24716
|
}
|
|
24717
24717
|
function M5(t2) {
|
|
24718
24718
|
if (t2 === void 0)
|
|
24719
|
-
return
|
|
24719
|
+
return B1.text.weight.normal;
|
|
24720
24720
|
if (typeof t2 == "number")
|
|
24721
24721
|
return t2;
|
|
24722
24722
|
switch (t2) {
|
|
24723
24723
|
case "xxthin":
|
|
24724
|
-
return
|
|
24724
|
+
return B1.text.weight.xxthin;
|
|
24725
24725
|
case "xthin":
|
|
24726
|
-
return
|
|
24726
|
+
return B1.text.weight.xthin;
|
|
24727
24727
|
case "thin":
|
|
24728
|
-
return
|
|
24728
|
+
return B1.text.weight.thin;
|
|
24729
24729
|
case "normal":
|
|
24730
|
-
return
|
|
24730
|
+
return B1.text.weight.normal;
|
|
24731
24731
|
case "bold":
|
|
24732
|
-
return
|
|
24732
|
+
return B1.text.weight.bold;
|
|
24733
24733
|
case "xbold":
|
|
24734
|
-
return
|
|
24734
|
+
return B1.text.weight.xbold;
|
|
24735
24735
|
case "xxbold":
|
|
24736
|
-
return
|
|
24736
|
+
return B1.text.weight.xxbold;
|
|
24737
24737
|
case "heavy":
|
|
24738
|
-
return
|
|
24738
|
+
return B1.text.weight.heavy;
|
|
24739
24739
|
case "xheavy":
|
|
24740
|
-
return
|
|
24740
|
+
return B1.text.weight.xheavy;
|
|
24741
24741
|
case "xxheavy":
|
|
24742
|
-
return
|
|
24742
|
+
return B1.text.weight.xxheavy;
|
|
24743
24743
|
case "heading":
|
|
24744
|
-
return
|
|
24744
|
+
return B1.text.weight.heading;
|
|
24745
24745
|
}
|
|
24746
24746
|
}
|
|
24747
24747
|
const bU1 = styled.div`
|
|
@@ -24859,22 +24859,22 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24859
24859
|
}, N = t2.variant === "clear" || t2.variant === "toggle" ? t2.variant : "normal", X = {
|
|
24860
24860
|
...t2,
|
|
24861
24861
|
pressed: e2,
|
|
24862
|
-
color: m || ((Q =
|
|
24863
|
-
colorActive: B || (($ =
|
|
24862
|
+
color: m || ((Q = B1.button[N]) == null ? void 0 : Q.color),
|
|
24863
|
+
colorActive: B || (($ = B1.button[N]) == null ? void 0 : $.colorActive),
|
|
24864
24864
|
textStyle: {},
|
|
24865
24865
|
label: "button-text"
|
|
24866
24866
|
}, c1 = {
|
|
24867
24867
|
...t2,
|
|
24868
24868
|
pressed: e2,
|
|
24869
|
-
iconColor: i2 || m || ((W =
|
|
24870
|
-
iconColorActive: w2 || B || ((G =
|
|
24869
|
+
iconColor: i2 || m || ((W = B1.button[N]) == null ? void 0 : W.color),
|
|
24870
|
+
iconColorActive: w2 || B || ((G = B1.button[N]) == null ? void 0 : G.colorActive),
|
|
24871
24871
|
label: "button-icon"
|
|
24872
24872
|
}, a1 = {
|
|
24873
24873
|
...t2,
|
|
24874
24874
|
variant: N,
|
|
24875
24875
|
paddingVert: f4 === void 0 && d === void 0 && g === void 0 && o4 === void 0 ? 12 : o4,
|
|
24876
24876
|
// if only backColor is set, use it for backColorActive (except for toggle variants)
|
|
24877
|
-
backColorActive: l2 || (N !== "toggle" ? c2 || ((J =
|
|
24877
|
+
backColorActive: l2 || (N !== "toggle" ? c2 || ((J = B1.button[N]) == null ? void 0 : J.backColor) : void 0)
|
|
24878
24878
|
};
|
|
24879
24879
|
let R = null;
|
|
24880
24880
|
return C ? R = C : h2 === "none" ? (X.textStyle.margin = "4px 4px 0 4px", R = /* @__PURE__ */ z1.jsx(P8, { ...X })) : (h2 === "top" ? (a1.direction = "vert", X.textStyle.margin = "0 4px") : h2 === "right" ? (a1.direction = "horz-reverse", X.textStyle.margin = "4px 4px 0 4px") : h2 === "bottom" ? (a1.direction = "vert-reverse", X.textStyle.margin = "0 4px") : h2 === "left" && (a1.direction = "horz", X.textStyle.margin = "4px 4px 0 4px"), R = /* @__PURE__ */ z1.jsxs(z1.Fragment, { children: [
|
|
@@ -24891,79 +24891,36 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24891
24891
|
children: R
|
|
24892
24892
|
}
|
|
24893
24893
|
);
|
|
24894
|
-
}, Bt2 = (t2) => {
|
|
24895
|
-
const {
|
|
24896
|
-
title: e2,
|
|
24897
|
-
width: r2 = C1.card.width,
|
|
24898
|
-
height: n5 = C1.card.height,
|
|
24899
|
-
halign: h2 = "left",
|
|
24900
|
-
valign: i2 = "top",
|
|
24901
|
-
onPressed: c2,
|
|
24902
|
-
children: l2,
|
|
24903
|
-
borderRadius: o4 = C1.card.borderRadius,
|
|
24904
|
-
onClick: d = I0
|
|
24905
|
-
} = t2;
|
|
24906
|
-
return /* @__PURE__ */ z1.jsx(
|
|
24907
|
-
R6,
|
|
24908
|
-
{
|
|
24909
|
-
...t2,
|
|
24910
|
-
label: "card-button",
|
|
24911
|
-
width: r2,
|
|
24912
|
-
height: n5,
|
|
24913
|
-
halign: h2,
|
|
24914
|
-
valign: i2,
|
|
24915
|
-
title: e2,
|
|
24916
|
-
borderRadius: o4,
|
|
24917
|
-
onClick: d,
|
|
24918
|
-
onPressed: c2,
|
|
24919
|
-
children: l2
|
|
24920
|
-
}
|
|
24921
|
-
);
|
|
24922
|
-
}, _U1 = (t2) => {
|
|
24923
|
-
const { onPressed: e2, children: r2, onClick: n5 = I0, padding: h2 = 6 } = t2;
|
|
24924
|
-
return /* @__PURE__ */ z1.jsx(
|
|
24925
|
-
R6,
|
|
24926
|
-
{
|
|
24927
|
-
...t2,
|
|
24928
|
-
label: "icon-button",
|
|
24929
|
-
padding: h2,
|
|
24930
|
-
halign: "center",
|
|
24931
|
-
valign: "center",
|
|
24932
|
-
onClick: n5,
|
|
24933
|
-
onPressed: e2,
|
|
24934
|
-
children: r2
|
|
24935
|
-
}
|
|
24936
|
-
);
|
|
24937
24894
|
};
|
|
24938
24895
|
function A3(t2) {
|
|
24939
24896
|
switch (t2) {
|
|
24940
24897
|
case "subtle":
|
|
24941
|
-
return console.error("subtle view backColor is deprecated"),
|
|
24898
|
+
return console.error("subtle view backColor is deprecated"), B1.text.color.subtle;
|
|
24942
24899
|
case "tile":
|
|
24943
|
-
return
|
|
24900
|
+
return B1.view.backColor.tile;
|
|
24944
24901
|
case "card":
|
|
24945
|
-
return
|
|
24902
|
+
return B1.view.backColor.card;
|
|
24946
24903
|
case "clear":
|
|
24947
|
-
return
|
|
24904
|
+
return B1.view.backColor.clear;
|
|
24948
24905
|
case "light":
|
|
24949
|
-
return
|
|
24906
|
+
return B1.view.backColor.light;
|
|
24950
24907
|
case "lighter":
|
|
24951
|
-
return
|
|
24908
|
+
return B1.view.backColor.lighter;
|
|
24952
24909
|
case "lightest":
|
|
24953
|
-
return
|
|
24910
|
+
return B1.view.backColor.lightest;
|
|
24954
24911
|
case "dark":
|
|
24955
|
-
return
|
|
24912
|
+
return B1.view.backColor.dark;
|
|
24956
24913
|
case "darker":
|
|
24957
|
-
return
|
|
24914
|
+
return B1.view.backColor.darker;
|
|
24958
24915
|
case "darkest":
|
|
24959
|
-
return
|
|
24916
|
+
return B1.view.backColor.darkest;
|
|
24960
24917
|
case "none":
|
|
24961
24918
|
return "transparent";
|
|
24962
24919
|
default:
|
|
24963
24920
|
return t2;
|
|
24964
24921
|
}
|
|
24965
24922
|
}
|
|
24966
|
-
const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 === "hidden" ? "hidden" : "initial", xa = (t2) => typeof t2 == "string" ? t2 === "true" : t2,
|
|
24923
|
+
const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 === "hidden" ? "hidden" : "initial", xa = (t2) => typeof t2 == "string" ? t2 === "true" : t2, _U1 = styled.div`
|
|
24967
24924
|
display: flex;
|
|
24968
24925
|
box-sizing: border-box;
|
|
24969
24926
|
${(t2) => xa(t2.$collapse) ? "flex-shrink: 0;" : ""}
|
|
@@ -24974,7 +24931,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
24974
24931
|
}};
|
|
24975
24932
|
${({ $fixed: t2 }) => t2 === "none" ? "" : t2 === "top" ? "position: absolute; top: 0; left: 0; right: 0;" : "position: absolute; bottom: 0; left: 0; right: 0;"}
|
|
24976
24933
|
width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
24977
|
-
color: ${() =>
|
|
24934
|
+
color: ${() => B1.text.color.normal};
|
|
24978
24935
|
border-radius: ${(t2) => t2.$borderRadius}px;
|
|
24979
24936
|
overflow-y: ${({ $vscroll: t2 }) => b3(t2)};
|
|
24980
24937
|
overflow-x: ${({ $hscroll: t2 }) => b3(t2)};
|
|
@@ -25027,7 +24984,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25027
24984
|
style: G,
|
|
25028
24985
|
children: J
|
|
25029
24986
|
}) => /* @__PURE__ */ z1.jsx(
|
|
25030
|
-
|
|
24987
|
+
_U1,
|
|
25031
24988
|
{
|
|
25032
24989
|
"aria-label": t2 || "view",
|
|
25033
24990
|
$direction: e2,
|
|
@@ -25058,37 +25015,117 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25058
25015
|
style: G,
|
|
25059
25016
|
children: J
|
|
25060
25017
|
}
|
|
25061
|
-
),
|
|
25062
|
-
|
|
25063
|
-
|
|
25064
|
-
|
|
25065
|
-
|
|
25066
|
-
|
|
25067
|
-
|
|
25068
|
-
|
|
25069
|
-
|
|
25070
|
-
|
|
25071
|
-
|
|
25072
|
-
}
|
|
25073
|
-
|
|
25018
|
+
), Bt2 = (t2) => {
|
|
25019
|
+
const {
|
|
25020
|
+
variant: e2 = "normal",
|
|
25021
|
+
children: r2,
|
|
25022
|
+
square: n5 = false,
|
|
25023
|
+
width: h2 = n5 ? B1.card.height : B1.card.width,
|
|
25024
|
+
height: i2 = B1.card.height,
|
|
25025
|
+
borderRadius: c2 = B1.card.borderRadius,
|
|
25026
|
+
label: l2 = "card",
|
|
25027
|
+
...o4
|
|
25028
|
+
} = t2;
|
|
25029
|
+
let { backColor: d } = t2;
|
|
25030
|
+
const g = d ? void 0 : `dek-card-${e2}`;
|
|
25031
|
+
return d || (d = e2 === "normal" ? B1.view.backColor.card : B1.view.backColor.clear), /* @__PURE__ */ z1.jsx(
|
|
25032
|
+
u0,
|
|
25033
|
+
{
|
|
25034
|
+
width: h2,
|
|
25035
|
+
height: i2,
|
|
25036
|
+
className: g,
|
|
25037
|
+
backColor: d,
|
|
25038
|
+
borderRadius: c2,
|
|
25039
|
+
label: l2,
|
|
25040
|
+
...o4,
|
|
25041
|
+
children: r2
|
|
25042
|
+
}
|
|
25043
|
+
);
|
|
25044
|
+
}, Ct2 = (t2) => {
|
|
25045
|
+
const {
|
|
25046
|
+
title: e2,
|
|
25047
|
+
square: r2 = false,
|
|
25048
|
+
width: n5 = r2 ? B1.card.height : B1.card.width,
|
|
25049
|
+
height: h2 = B1.card.height,
|
|
25050
|
+
halign: i2 = "left",
|
|
25051
|
+
valign: c2 = "top",
|
|
25052
|
+
onPressed: l2,
|
|
25053
|
+
children: o4,
|
|
25054
|
+
borderRadius: d = B1.card.borderRadius,
|
|
25055
|
+
onClick: g = I0
|
|
25056
|
+
} = t2;
|
|
25057
|
+
return /* @__PURE__ */ z1.jsx(
|
|
25058
|
+
R6,
|
|
25059
|
+
{
|
|
25060
|
+
...t2,
|
|
25061
|
+
label: "card-button",
|
|
25062
|
+
width: n5,
|
|
25063
|
+
height: h2,
|
|
25064
|
+
halign: i2,
|
|
25065
|
+
valign: c2,
|
|
25066
|
+
title: e2,
|
|
25067
|
+
borderRadius: d,
|
|
25068
|
+
onClick: g,
|
|
25069
|
+
onPressed: l2,
|
|
25070
|
+
children: o4
|
|
25071
|
+
}
|
|
25072
|
+
);
|
|
25073
|
+
}, IU1 = (t2) => {
|
|
25074
|
+
const { onPressed: e2, children: r2, onClick: n5 = I0, padding: h2 = 6 } = t2;
|
|
25075
|
+
return /* @__PURE__ */ z1.jsx(
|
|
25076
|
+
R6,
|
|
25077
|
+
{
|
|
25078
|
+
...t2,
|
|
25079
|
+
label: "icon-button",
|
|
25080
|
+
padding: h2,
|
|
25081
|
+
halign: "center",
|
|
25082
|
+
valign: "center",
|
|
25083
|
+
onClick: n5,
|
|
25084
|
+
onPressed: e2,
|
|
25085
|
+
children: r2
|
|
25086
|
+
}
|
|
25087
|
+
);
|
|
25088
|
+
}, PU1 = ({ size: t2, weight: e2, ...r2 }) => /* @__PURE__ */ z1.jsx(h4, { size: t2 || "heading", weight: e2 || "heading", ...r2 }), WU1 = ({
|
|
25089
|
+
title: t2,
|
|
25090
|
+
active: e2,
|
|
25091
|
+
compact: r2 = false,
|
|
25092
|
+
onClick: n5 = I0
|
|
25093
|
+
}) => {
|
|
25094
|
+
const h2 = r2 ? 10 : 20, i2 = r2 ? "large" : void 0;
|
|
25095
|
+
return /* @__PURE__ */ z1.jsx(
|
|
25096
|
+
u0,
|
|
25097
|
+
{
|
|
25098
|
+
backColor: e2 ? "clear" : "none",
|
|
25099
|
+
backColorHover: e2 ? "lighter" : "light",
|
|
25100
|
+
borderRadius: 6,
|
|
25101
|
+
onClick: n5,
|
|
25102
|
+
collapse: true,
|
|
25103
|
+
className: e2 ? "dek-button-clear" : "",
|
|
25104
|
+
style: { marginBottom: 4, marginRight: 4, cursor: "pointer" },
|
|
25105
|
+
children: /* @__PURE__ */ z1.jsx(PU1, { size: i2, padding: h2, children: t2 })
|
|
25106
|
+
}
|
|
25107
|
+
);
|
|
25108
|
+
}, yt2 = ({
|
|
25074
25109
|
items: t2,
|
|
25075
25110
|
initialKey: e2,
|
|
25076
25111
|
direction: r2 = "vert",
|
|
25077
|
-
|
|
25112
|
+
compact: n5 = false,
|
|
25113
|
+
onSelect: h2 = I0
|
|
25078
25114
|
}) => {
|
|
25079
|
-
const [
|
|
25080
|
-
|
|
25115
|
+
const [i2, c2] = React$3.useState(e2), l2 = (o4) => {
|
|
25116
|
+
c2(o4), h2(o4);
|
|
25081
25117
|
};
|
|
25082
|
-
return /* @__PURE__ */ z1.jsx(u0, { children: /* @__PURE__ */ z1.jsx(u0, { direction: r2, collapse: true, children: t2.map(({ key:
|
|
25118
|
+
return /* @__PURE__ */ z1.jsx(u0, { children: /* @__PURE__ */ z1.jsx(u0, { direction: r2, collapse: true, children: t2.map(({ key: o4, title: d }) => /* @__PURE__ */ z1.jsx(
|
|
25083
25119
|
WU1,
|
|
25084
25120
|
{
|
|
25085
|
-
title:
|
|
25086
|
-
|
|
25087
|
-
|
|
25121
|
+
title: d,
|
|
25122
|
+
compact: n5,
|
|
25123
|
+
onClick: () => l2(o4),
|
|
25124
|
+
active: i2 === o4
|
|
25088
25125
|
},
|
|
25089
|
-
|
|
25126
|
+
o4
|
|
25090
25127
|
)) }) });
|
|
25091
|
-
},
|
|
25128
|
+
}, kt2 = (t2) => {
|
|
25092
25129
|
const { title: e2, icon: r2 = "left", onPressed: n5, children: h2, onClick: i2 = I0 } = t2;
|
|
25093
25130
|
return /* @__PURE__ */ z1.jsx(
|
|
25094
25131
|
R6,
|
|
@@ -25113,7 +25150,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25113
25150
|
padding: ${({ $padding: t2 }) => t2}px;
|
|
25114
25151
|
background-color: ${({ $backColor: t2 }) => t2};
|
|
25115
25152
|
border-radius: 50%;
|
|
25116
|
-
`, TU1 = styled.div``,
|
|
25153
|
+
`, TU1 = styled.div``, Ot2 = ({
|
|
25117
25154
|
loading: t2 = false,
|
|
25118
25155
|
disabled: e2 = false,
|
|
25119
25156
|
iconName: r2,
|
|
@@ -25122,7 +25159,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25122
25159
|
iconPadding: i2 = 2,
|
|
25123
25160
|
iconBackColor: c2 = "transparent"
|
|
25124
25161
|
}) => {
|
|
25125
|
-
const l2 = e2 ? "#888" : n5 === void 0 ?
|
|
25162
|
+
const l2 = e2 ? "#888" : n5 === void 0 ? B1.text.color.normal : n5;
|
|
25126
25163
|
return /* @__PURE__ */ z1.jsxs(
|
|
25127
25164
|
DU1,
|
|
25128
25165
|
{
|
|
@@ -25143,31 +25180,6 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25143
25180
|
]
|
|
25144
25181
|
}
|
|
25145
25182
|
);
|
|
25146
|
-
}, Ot2 = (t2) => {
|
|
25147
|
-
const {
|
|
25148
|
-
variant: e2 = "normal",
|
|
25149
|
-
children: r2,
|
|
25150
|
-
width: n5 = C1.card.width,
|
|
25151
|
-
height: h2 = C1.card.height,
|
|
25152
|
-
borderRadius: i2 = C1.card.borderRadius,
|
|
25153
|
-
label: c2 = "card",
|
|
25154
|
-
...l2
|
|
25155
|
-
} = t2;
|
|
25156
|
-
let { backColor: o4 } = t2;
|
|
25157
|
-
const d = o4 ? void 0 : `dek-card-${e2}`;
|
|
25158
|
-
return o4 || (o4 = e2 === "normal" ? C1.view.backColor.card : C1.view.backColor.clear), /* @__PURE__ */ z1.jsx(
|
|
25159
|
-
u0,
|
|
25160
|
-
{
|
|
25161
|
-
width: n5,
|
|
25162
|
-
height: h2,
|
|
25163
|
-
className: d,
|
|
25164
|
-
backColor: o4,
|
|
25165
|
-
borderRadius: i2,
|
|
25166
|
-
label: c2,
|
|
25167
|
-
...l2,
|
|
25168
|
-
children: r2
|
|
25169
|
-
}
|
|
25170
|
-
);
|
|
25171
25183
|
};
|
|
25172
25184
|
var $9 = {}, U9 = {}, h6 = { exports: {} }, wa = { exports: {} }, Y5 = { exports: {} }, Ba = { exports: {} }, G5 = { exports: {} }, Ca, W8;
|
|
25173
25185
|
function RU1() {
|
|
@@ -25183,7 +25195,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25183
25195
|
!n5.call(v, E) && E !== V && t2(v, E, { get: () => M[E], enumerable: !(k = e2(M, E)) || k.enumerable });
|
|
25184
25196
|
return v;
|
|
25185
25197
|
}, c2 = (v) => i2(t2({}, "__esModule", { value: true }), v), l2 = {};
|
|
25186
|
-
h2(l2, { FluidValue: () => _10, Globals: () => o4, addFluidObserver: () => u1, callFluidObserver: () => ct, callFluidObservers: () => e0, clamp: () => Q2, colorToRgba: () => X1, colors: () => $1, createInterpolator: () => L0, createStringInterpolator: () => A2, defineHidden: () => D, deprecateDirectCall: () => v4, deprecateInterpolate: () => o42, each: () => d1, eachProp: () => I, easings: () => J0, flush: () => n1, flushCalls: () =>
|
|
25198
|
+
h2(l2, { FluidValue: () => _10, Globals: () => o4, addFluidObserver: () => u1, callFluidObserver: () => ct, callFluidObservers: () => e0, clamp: () => Q2, colorToRgba: () => X1, colors: () => $1, createInterpolator: () => L0, createStringInterpolator: () => A2, defineHidden: () => D, deprecateDirectCall: () => v4, deprecateInterpolate: () => o42, each: () => d1, eachProp: () => I, easings: () => J0, flush: () => n1, flushCalls: () => C1, frameLoop: () => c23, getFluidObservers: () => yt, getFluidValue: () => W0, hasFluidValue: () => Z0, hex3: () => x, hex4: () => z, hex6: () => p4, hex8: () => O, hsl: () => F2, hsla: () => l0, is: () => Z, isAnimatedString: () => ot, isEqual: () => L1, isSSR: () => f1, noop: () => r1, onResize: () => kt, onScroll: () => z4, once: () => D0, prefix: () => P1, raf: () => g, removeFluidObserver: () => E1, rgb: () => q2, rgba: () => S2, setFluidGetter: () => v1, toArray: () => S, useConstant: () => E0, useForceUpdate: () => L, useIsomorphicLayoutEffect: () => u7, useMemoOne: () => P, useOnce: () => h1, usePrev: () => l1, useReducedMotion: () => V1 }), Ca = c2(l2);
|
|
25187
25199
|
var o4 = {};
|
|
25188
25200
|
h2(o4, { assign: () => H1, colors: () => k1, createStringInterpolator: () => S1, skipAnimation: () => y2, to: () => j1, willAdvance: () => K });
|
|
25189
25201
|
var d = G(), g = (v) => a1(v, d), f4 = G();
|
|
@@ -25301,7 +25313,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25301
25313
|
v.clear(), d1(V, M);
|
|
25302
25314
|
}
|
|
25303
25315
|
}
|
|
25304
|
-
var
|
|
25316
|
+
var C1 = (v, ...M) => n1(v, (V) => V(...M)), f1 = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), S1, j1, k1 = null, y2 = false, K = r1, H1 = (v) => {
|
|
25305
25317
|
v.to && (j1 = v.to), v.now && (g.now = v.now), v.colors !== void 0 && (k1 = v.colors), v.skipAnimation != null && (y2 = v.skipAnimation), v.createStringInterpolator && (S1 = v.createStringInterpolator), v.requestAnimationFrame && g.use(v.requestAnimationFrame), v.batchedUpdates && (g.batchedUpdates = v.batchedUpdates), v.willAdvance && (K = v.willAdvance), v.frameLoop && (g.frameLoop = v.frameLoop);
|
|
25306
25318
|
}, g1 = /* @__PURE__ */ new Set(), M1 = [], I1 = [], R1 = 0, c23 = { get idle() {
|
|
25307
25319
|
return !g1.size && !M1.length;
|
|
@@ -25624,7 +25636,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25624
25636
|
eachProp: () => I,
|
|
25625
25637
|
easings: () => J0,
|
|
25626
25638
|
flush: () => n1,
|
|
25627
|
-
flushCalls: () =>
|
|
25639
|
+
flushCalls: () => C1,
|
|
25628
25640
|
frameLoop: () => c23,
|
|
25629
25641
|
getFluidObservers: () => yt,
|
|
25630
25642
|
getFluidValue: () => W0,
|
|
@@ -25798,7 +25810,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
25798
25810
|
v.clear(), d1(V, M);
|
|
25799
25811
|
}
|
|
25800
25812
|
}
|
|
25801
|
-
var
|
|
25813
|
+
var C1 = (v, ...M) => n1(v, (V) => V(...M)), f1 = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), S1, j1, k1 = null, y2 = false, K = r1, H1 = (v) => {
|
|
25802
25814
|
v.to && (j1 = v.to), v.now && (g.now = v.now), v.colors !== void 0 && (k1 = v.colors), v.skipAnimation != null && (y2 = v.skipAnimation), v.createStringInterpolator && (S1 = v.createStringInterpolator), v.requestAnimationFrame && g.use(v.requestAnimationFrame), v.batchedUpdates && (g.batchedUpdates = v.batchedUpdates), v.willAdvance && (K = v.willAdvance), v.frameLoop && (g.frameLoop = v.frameLoop);
|
|
25803
25815
|
}, g1 = /* @__PURE__ */ new Set(), M1 = [], I1 = [], R1 = 0, c23 = {
|
|
25804
25816
|
get idle() {
|
|
@@ -26538,7 +26550,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
26538
26550
|
return (0, d1.forwardRef)((g1, M1) => {
|
|
26539
26551
|
let I1 = (0, d1.useRef)(null), R1 = H1 && (0, d1.useCallback)(($1) => {
|
|
26540
26552
|
I1.current = f1(M1, $1);
|
|
26541
|
-
}, [M1]), [c23, K1] =
|
|
26553
|
+
}, [M1]), [c23, K1] = C1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
|
|
26542
26554
|
let $1 = I1.current;
|
|
26543
26555
|
H1 && !$1 || ($1 ? K.applyAnimatedValues($1, c23.getValue(true)) : false) === false && H2();
|
|
26544
26556
|
}, z2 = new n1(W2, K1), M2 = (0, d1.useRef)();
|
|
@@ -26559,7 +26571,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
26559
26571
|
y2.type == "change" && I.raf.write(this.update);
|
|
26560
26572
|
}
|
|
26561
26573
|
};
|
|
26562
|
-
function
|
|
26574
|
+
function C1(y2, K) {
|
|
26563
26575
|
let H1 = /* @__PURE__ */ new Set();
|
|
26564
26576
|
return $.dependencies = H1, y2.style && (y2 = { ...y2, style: K.createAnimatedStyle(y2.style) }), y2 = new W(y2), $.dependencies = null, [y2, H1];
|
|
26565
26577
|
}
|
|
@@ -26737,7 +26749,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
26737
26749
|
I1.current = f1(M1, $1);
|
|
26738
26750
|
},
|
|
26739
26751
|
[M1]
|
|
26740
|
-
), [c23, K1] =
|
|
26752
|
+
), [c23, K1] = C1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
|
|
26741
26753
|
const $1 = I1.current;
|
|
26742
26754
|
if (H1 && !$1)
|
|
26743
26755
|
return;
|
|
@@ -26763,7 +26775,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
26763
26775
|
y2.type == "change" && I.raf.write(this.update);
|
|
26764
26776
|
}
|
|
26765
26777
|
};
|
|
26766
|
-
function
|
|
26778
|
+
function C1(y2, K) {
|
|
26767
26779
|
const H1 = /* @__PURE__ */ new Set();
|
|
26768
26780
|
return $.dependencies = H1, y2.style && (y2 = {
|
|
26769
26781
|
...y2,
|
|
@@ -26934,7 +26946,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
26934
26946
|
}
|
|
26935
26947
|
});
|
|
26936
26948
|
}
|
|
26937
|
-
var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(),
|
|
26949
|
+
var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(), C1 = T1(), f1 = { default: { tension: 170, friction: 26 }, gentle: { tension: 120, friction: 14 }, wobbly: { tension: 180, friction: 12 }, stiff: { tension: 210, friction: 20 }, slow: { tension: 280, friction: 60 }, molasses: { tension: 280, friction: 120 } }, S1 = { ...f1.default, mass: 1, damping: 1, easing: C1.easings.linear, clamp: false }, j1 = class {
|
|
26938
26950
|
constructor() {
|
|
26939
26951
|
this.velocity = 0, Object.assign(this, S1);
|
|
26940
26952
|
}
|
|
@@ -26944,14 +26956,14 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
26944
26956
|
for (let Y in S1)
|
|
26945
26957
|
s10[Y] == null && (s10[Y] = S1[Y]);
|
|
26946
26958
|
let { frequency: L, damping: A } = s10, { mass: P } = s10;
|
|
26947
|
-
return
|
|
26959
|
+
return C1.is.und(L) || (L < 0.01 && (L = 0.01), A < 0 && (A = 0), s10.tension = Math.pow(2 * Math.PI / L, 2) * P, s10.friction = 4 * Math.PI * A * P / L), s10;
|
|
26948
26960
|
}
|
|
26949
26961
|
function y2(s10, u7) {
|
|
26950
|
-
if (!
|
|
26962
|
+
if (!C1.is.und(u7.decay))
|
|
26951
26963
|
s10.duration = void 0;
|
|
26952
26964
|
else {
|
|
26953
|
-
let H = !
|
|
26954
|
-
(H || !
|
|
26965
|
+
let H = !C1.is.und(u7.tension) || !C1.is.und(u7.friction);
|
|
26966
|
+
(H || !C1.is.und(u7.frequency) || !C1.is.und(u7.damping) || !C1.is.und(u7.mass)) && (s10.duration = void 0, s10.decay = void 0), H && (s10.frequency = void 0);
|
|
26955
26967
|
}
|
|
26956
26968
|
}
|
|
26957
26969
|
var K = [], H1 = class {
|
|
@@ -28015,7 +28027,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
28015
28027
|
}
|
|
28016
28028
|
});
|
|
28017
28029
|
}
|
|
28018
|
-
var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(),
|
|
28030
|
+
var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(), C1 = T1(), f1 = {
|
|
28019
28031
|
default: { tension: 170, friction: 26 },
|
|
28020
28032
|
gentle: { tension: 120, friction: 14 },
|
|
28021
28033
|
wobbly: { tension: 180, friction: 12 },
|
|
@@ -28026,7 +28038,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
28026
28038
|
...f1.default,
|
|
28027
28039
|
mass: 1,
|
|
28028
28040
|
damping: 1,
|
|
28029
|
-
easing:
|
|
28041
|
+
easing: C1.easings.linear,
|
|
28030
28042
|
clamp: false
|
|
28031
28043
|
}, j1 = class {
|
|
28032
28044
|
constructor() {
|
|
@@ -28039,14 +28051,14 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
28039
28051
|
s10[Y] == null && (s10[Y] = S1[Y]);
|
|
28040
28052
|
let { frequency: L, damping: A } = s10;
|
|
28041
28053
|
const { mass: P } = s10;
|
|
28042
|
-
return
|
|
28054
|
+
return C1.is.und(L) || (L < 0.01 && (L = 0.01), A < 0 && (A = 0), s10.tension = Math.pow(2 * Math.PI / L, 2) * P, s10.friction = 4 * Math.PI * A * P / L), s10;
|
|
28043
28055
|
}
|
|
28044
28056
|
function y2(s10, u7) {
|
|
28045
|
-
if (!
|
|
28057
|
+
if (!C1.is.und(u7.decay))
|
|
28046
28058
|
s10.duration = void 0;
|
|
28047
28059
|
else {
|
|
28048
|
-
const H = !
|
|
28049
|
-
(H || !
|
|
28060
|
+
const H = !C1.is.und(u7.tension) || !C1.is.und(u7.friction);
|
|
28061
|
+
(H || !C1.is.und(u7.frequency) || !C1.is.und(u7.damping) || !C1.is.und(u7.mass)) && (s10.duration = void 0, s10.decay = void 0), H && (s10.frequency = void 0);
|
|
28050
28062
|
}
|
|
28051
28063
|
}
|
|
28052
28064
|
var K = [], H1 = class {
|
|
@@ -29331,10 +29343,10 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29331
29343
|
var e2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, n5 = Object.getOwnPropertyNames, h2 = Object.prototype.hasOwnProperty, i2 = (I, S) => {
|
|
29332
29344
|
for (var n1 in S)
|
|
29333
29345
|
e2(I, n1, { get: S[n1], enumerable: true });
|
|
29334
|
-
}, c2 = (I, S, n1,
|
|
29346
|
+
}, c2 = (I, S, n1, C1) => {
|
|
29335
29347
|
if (S && typeof S == "object" || typeof S == "function")
|
|
29336
29348
|
for (let f1 of n5(S))
|
|
29337
|
-
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(
|
|
29349
|
+
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(C1 = r2(S, f1)) || C1.enumerable });
|
|
29338
29350
|
return I;
|
|
29339
29351
|
}, l2 = (I, S, n1) => (c2(I, S, "default"), n1 && c2(n1, S, "default")), o4 = (I) => c2(e2({}, "__esModule", { value: true }), I), d = {};
|
|
29340
29352
|
i2(d, { a: () => d1, animated: () => d1 }), t2.exports = o4(d);
|
|
@@ -29346,11 +29358,11 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29346
29358
|
function F(I, S) {
|
|
29347
29359
|
if (!I.nodeType || !I.setAttribute)
|
|
29348
29360
|
return false;
|
|
29349
|
-
let n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style:
|
|
29361
|
+
let n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style: C1, children: f1, scrollTop: S1, scrollLeft: j1, viewBox: k1, ...y2 } = S, K = Object.values(y2), H1 = Object.keys(y2).map((g1) => n1 || I.hasAttribute(g1) ? g1 : b[g1] || (b[g1] = g1.replace(/([A-Z])/g, (M1) => "-" + M1.toLowerCase())));
|
|
29350
29362
|
f1 !== void 0 && (I.textContent = f1);
|
|
29351
|
-
for (let g1 in
|
|
29352
|
-
if (
|
|
29353
|
-
let M1 = C(g1,
|
|
29363
|
+
for (let g1 in C1)
|
|
29364
|
+
if (C1.hasOwnProperty(g1)) {
|
|
29365
|
+
let M1 = C(g1, C1[g1]);
|
|
29354
29366
|
B.test(g1) ? I.style.setProperty(g1, M1) : I.style[g1] = M1;
|
|
29355
29367
|
}
|
|
29356
29368
|
H1.forEach((g1, M1) => {
|
|
@@ -29360,18 +29372,18 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29360
29372
|
var N = { animationIterationCount: true, borderImageOutset: true, borderImageSlice: true, borderImageWidth: true, boxFlex: true, boxFlexGroup: true, boxOrdinalGroup: true, columnCount: true, columns: true, flex: true, flexGrow: true, flexPositive: true, flexShrink: true, flexNegative: true, flexOrder: true, gridRow: true, gridRowEnd: true, gridRowSpan: true, gridRowStart: true, gridColumn: true, gridColumnEnd: true, gridColumnSpan: true, gridColumnStart: true, fontWeight: true, lineClamp: true, lineHeight: true, opacity: true, order: true, orphans: true, tabSize: true, widows: true, zIndex: true, zoom: true, fillOpacity: true, floodOpacity: true, stopOpacity: true, strokeDasharray: true, strokeDashoffset: true, strokeMiterlimit: true, strokeOpacity: true, strokeWidth: true }, X = (I, S) => I + S.charAt(0).toUpperCase() + S.substring(1), c1 = ["Webkit", "Ms", "Moz", "O"];
|
|
29361
29373
|
N = Object.keys(N).reduce((I, S) => (c1.forEach((n1) => I[X(n1, S)] = I[S]), I), N);
|
|
29362
29374
|
var a1 = Vt(), R = T1(), Q = /^(matrix|translate|scale|rotate|skew)/, $ = /^(translate)/, W = /^(rotate|skew)/, G = (I, S) => R.is.num(I) && I !== 0 ? I + S : I, J = (I, S) => R.is.arr(I) ? I.every((n1) => J(n1, S)) : R.is.num(I) ? I === S : parseFloat(I) === S, r1 = class extends a1.AnimatedObject {
|
|
29363
|
-
constructor({ x: I, y: S, z: n1, ...
|
|
29375
|
+
constructor({ x: I, y: S, z: n1, ...C1 }) {
|
|
29364
29376
|
let f1 = [], S1 = [];
|
|
29365
|
-
(I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [`translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`, J(j1, 0)])), (0, R.eachProp)(
|
|
29377
|
+
(I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [`translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`, J(j1, 0)])), (0, R.eachProp)(C1, (j1, k1) => {
|
|
29366
29378
|
if (k1 === "transform")
|
|
29367
29379
|
f1.push([j1 || ""]), S1.push((y2) => [y2, y2 === ""]);
|
|
29368
29380
|
else if (Q.test(k1)) {
|
|
29369
|
-
if (delete
|
|
29381
|
+
if (delete C1[k1], R.is.und(j1))
|
|
29370
29382
|
return;
|
|
29371
29383
|
let y2 = $.test(k1) ? "px" : W.test(k1) ? "deg" : "";
|
|
29372
29384
|
f1.push((0, R.toArray)(j1)), S1.push(k1 === "rotate3d" ? ([K, H1, g1, M1]) => [`rotate3d(${K},${H1},${g1},${G(M1, y2)})`, J(M1, 0)] : (K) => [`${k1}(${K.map((H1) => G(H1, y2)).join(",")})`, J(K, k1.startsWith("scale") ? 1 : 0)]);
|
|
29373
29385
|
}
|
|
29374
|
-
}), f1.length && (
|
|
29386
|
+
}), f1.length && (C1.transform = new D(f1, S1)), super(C1);
|
|
29375
29387
|
}
|
|
29376
29388
|
}, D = class extends R.FluidValue {
|
|
29377
29389
|
constructor(I, S) {
|
|
@@ -29382,8 +29394,8 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29382
29394
|
}
|
|
29383
29395
|
_get() {
|
|
29384
29396
|
let I = "", S = true;
|
|
29385
|
-
return (0, R.each)(this.inputs, (n1,
|
|
29386
|
-
let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[
|
|
29397
|
+
return (0, R.each)(this.inputs, (n1, C1) => {
|
|
29398
|
+
let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[C1](R.is.arr(f1) ? f1 : n1.map(R.getFluidValue));
|
|
29387
29399
|
I += " " + S1, S = S && j1;
|
|
29388
29400
|
}), S ? "none" : I;
|
|
29389
29401
|
}
|
|
@@ -29407,10 +29419,10 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29407
29419
|
var e2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, n5 = Object.getOwnPropertyNames, h2 = Object.prototype.hasOwnProperty, i2 = (I, S) => {
|
|
29408
29420
|
for (var n1 in S)
|
|
29409
29421
|
e2(I, n1, { get: S[n1], enumerable: true });
|
|
29410
|
-
}, c2 = (I, S, n1,
|
|
29422
|
+
}, c2 = (I, S, n1, C1) => {
|
|
29411
29423
|
if (S && typeof S == "object" || typeof S == "function")
|
|
29412
29424
|
for (let f1 of n5(S))
|
|
29413
|
-
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(
|
|
29425
|
+
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(C1 = r2(S, f1)) || C1.enumerable });
|
|
29414
29426
|
return I;
|
|
29415
29427
|
}, l2 = (I, S, n1) => (c2(I, S, "default"), n1 && c2(n1, S, "default")), o4 = (I) => c2(e2({}, "__esModule", { value: true }), I), d = {};
|
|
29416
29428
|
i2(d, {
|
|
@@ -29425,7 +29437,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29425
29437
|
function F(I, S) {
|
|
29426
29438
|
if (!I.nodeType || !I.setAttribute)
|
|
29427
29439
|
return false;
|
|
29428
|
-
const n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style:
|
|
29440
|
+
const n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style: C1, children: f1, scrollTop: S1, scrollLeft: j1, viewBox: k1, ...y2 } = S, K = Object.values(y2), H1 = Object.keys(y2).map(
|
|
29429
29441
|
(g1) => n1 || I.hasAttribute(g1) ? g1 : b[g1] || (b[g1] = g1.replace(
|
|
29430
29442
|
/([A-Z])/g,
|
|
29431
29443
|
// Attributes are written in dash case
|
|
@@ -29433,9 +29445,9 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29433
29445
|
))
|
|
29434
29446
|
);
|
|
29435
29447
|
f1 !== void 0 && (I.textContent = f1);
|
|
29436
|
-
for (const g1 in
|
|
29437
|
-
if (
|
|
29438
|
-
const M1 = C(g1,
|
|
29448
|
+
for (const g1 in C1)
|
|
29449
|
+
if (C1.hasOwnProperty(g1)) {
|
|
29450
|
+
const M1 = C(g1, C1[g1]);
|
|
29439
29451
|
B.test(g1) ? I.style.setProperty(g1, M1) : I.style[g1] = M1;
|
|
29440
29452
|
}
|
|
29441
29453
|
H1.forEach((g1, M1) => {
|
|
@@ -29488,17 +29500,17 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29488
29500
|
}, X = (I, S) => I + S.charAt(0).toUpperCase() + S.substring(1), c1 = ["Webkit", "Ms", "Moz", "O"];
|
|
29489
29501
|
N = Object.keys(N).reduce((I, S) => (c1.forEach((n1) => I[X(n1, S)] = I[S]), I), N);
|
|
29490
29502
|
var a1 = Vt(), R = T1(), Q = /^(matrix|translate|scale|rotate|skew)/, $ = /^(translate)/, W = /^(rotate|skew)/, G = (I, S) => R.is.num(I) && I !== 0 ? I + S : I, J = (I, S) => R.is.arr(I) ? I.every((n1) => J(n1, S)) : R.is.num(I) ? I === S : parseFloat(I) === S, r1 = class extends a1.AnimatedObject {
|
|
29491
|
-
constructor({ x: I, y: S, z: n1, ...
|
|
29503
|
+
constructor({ x: I, y: S, z: n1, ...C1 }) {
|
|
29492
29504
|
const f1 = [], S1 = [];
|
|
29493
29505
|
(I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [
|
|
29494
29506
|
`translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`,
|
|
29495
29507
|
// prettier-ignore
|
|
29496
29508
|
J(j1, 0)
|
|
29497
|
-
])), (0, R.eachProp)(
|
|
29509
|
+
])), (0, R.eachProp)(C1, (j1, k1) => {
|
|
29498
29510
|
if (k1 === "transform")
|
|
29499
29511
|
f1.push([j1 || ""]), S1.push((y2) => [y2, y2 === ""]);
|
|
29500
29512
|
else if (Q.test(k1)) {
|
|
29501
|
-
if (delete
|
|
29513
|
+
if (delete C1[k1], R.is.und(j1))
|
|
29502
29514
|
return;
|
|
29503
29515
|
const y2 = $.test(k1) ? "px" : W.test(k1) ? "deg" : "";
|
|
29504
29516
|
f1.push((0, R.toArray)(j1)), S1.push(
|
|
@@ -29511,7 +29523,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29511
29523
|
]
|
|
29512
29524
|
);
|
|
29513
29525
|
}
|
|
29514
|
-
}), f1.length && (
|
|
29526
|
+
}), f1.length && (C1.transform = new D(f1, S1)), super(C1);
|
|
29515
29527
|
}
|
|
29516
29528
|
}, D = class extends R.FluidValue {
|
|
29517
29529
|
constructor(I, S) {
|
|
@@ -29522,8 +29534,8 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29522
29534
|
}
|
|
29523
29535
|
_get() {
|
|
29524
29536
|
let I = "", S = true;
|
|
29525
|
-
return (0, R.each)(this.inputs, (n1,
|
|
29526
|
-
const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[
|
|
29537
|
+
return (0, R.each)(this.inputs, (n1, C1) => {
|
|
29538
|
+
const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[C1](
|
|
29527
29539
|
R.is.arr(f1) ? f1 : n1.map(R.getFluidValue)
|
|
29528
29540
|
);
|
|
29529
29541
|
I += " " + S1, S = S && j1;
|
|
@@ -29899,7 +29911,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29899
29911
|
var I = Z.defaultPrevented;
|
|
29900
29912
|
if (!I && D.state.active) {
|
|
29901
29913
|
if (D.isMovingCross == null) {
|
|
29902
|
-
var S = D.props, n1 = S.vertical,
|
|
29914
|
+
var S = D.props, n1 = S.vertical, C1 = S.ignoreCrossMove, f1 = C1;
|
|
29903
29915
|
typeof f1 != "number" && (f1 = f1 ? 1 : 0);
|
|
29904
29916
|
var S1 = n1 ? "y" : "x", j1 = n1 ? "x" : "y", k1 = Math.abs(L1[S1] - D.touchMoves[0][S1]), y2 = Math.abs(L1[j1] - D.touchMoves[0][j1]);
|
|
29905
29917
|
D.isMovingCross = y2 * f1 > k1;
|
|
@@ -29922,10 +29934,10 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
29922
29934
|
D.grabbing && (Z.preventDefault(), Z.stopPropagation());
|
|
29923
29935
|
var d1 = D.state.dragging, I = null;
|
|
29924
29936
|
if (d1 && D.touchMoves.length) {
|
|
29925
|
-
for (var S = D.props, n1 = S.cardSize,
|
|
29937
|
+
for (var S = D.props, n1 = S.cardSize, C1 = S.moveScale, f1 = S.vertical, S1 = D.props.friction / 1e6, j1 = b(D), k1 = j1.touchMoves, y2 = k1.length, K = 0; --y2 >= 0 && K < 100; )
|
|
29926
29938
|
K = Date.now() - k1[y2].time;
|
|
29927
29939
|
y2++;
|
|
29928
|
-
var H1 = f1 ? "y" : "x", g1 = ((0, h2.getTouchPosition)(Z)[H1] - k1[y2][H1]) / K, M1 = g1 * Math.abs(g1) / S1 / 2, I1 = D.state.cursor, R1 = (0, h2.clamp)(M1 / n1 *
|
|
29940
|
+
var H1 = f1 ? "y" : "x", g1 = ((0, h2.getTouchPosition)(Z)[H1] - k1[y2][H1]) / K, M1 = g1 * Math.abs(g1) / S1 / 2, I1 = D.state.cursor, R1 = (0, h2.clamp)(M1 / n1 * C1, Math.floor(I1) - I1, Math.ceil(I1) - I1);
|
|
29929
29941
|
I = Math.round(I1 + R1), D.touchMoves = [];
|
|
29930
29942
|
} else
|
|
29931
29943
|
I = Math.round(D.state.cursor);
|
|
@@ -30020,8 +30032,8 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
30020
30032
|
var Z = this;
|
|
30021
30033
|
this.AnimatedComponent = (0, n5.animated)(D.component);
|
|
30022
30034
|
var L1 = function(I) {
|
|
30023
|
-
var S = I.index, n1 = I.modIndex,
|
|
30024
|
-
return Z.usedCursor =
|
|
30035
|
+
var S = I.index, n1 = I.modIndex, C1 = I.cursor, f1 = I.state;
|
|
30036
|
+
return Z.usedCursor = C1, Z.props.renderCard(S, n1, C1, f1);
|
|
30025
30037
|
};
|
|
30026
30038
|
this.AnimatedCard = (0, n5.animated)(L1);
|
|
30027
30039
|
}
|
|
@@ -30033,8 +30045,8 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
30033
30045
|
}, {
|
|
30034
30046
|
key: "getComputedCursor",
|
|
30035
30047
|
value: function() {
|
|
30036
|
-
var D = this.props, Z = D.cardCount, L1 = D.loop, d1 = D.maxOverflow, I = this.state, S = I.cursor, n1 = I.dragging,
|
|
30037
|
-
return L1 || (
|
|
30048
|
+
var D = this.props, Z = D.cardCount, L1 = D.loop, d1 = D.maxOverflow, I = this.state, S = I.cursor, n1 = I.dragging, C1 = S;
|
|
30049
|
+
return L1 || (C1 = (0, h2.clamp)(C1, 1 - Z, 0), n1 && S > 0 ? C1 = d1 - d1 / (S + 1) : n1 && S < 1 - Z && (C1 = 1 - Z - d1 + d1 / (1 - Z - S + 1))), C1;
|
|
30038
30050
|
}
|
|
30039
30051
|
}, {
|
|
30040
30052
|
key: "getUsedCursor",
|
|
@@ -30048,9 +30060,9 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
30048
30060
|
d1.cardSize;
|
|
30049
30061
|
var I = d1.cardCount, S = d1.cardPadCount;
|
|
30050
30062
|
d1.renderCard;
|
|
30051
|
-
var n1 = d1.tension,
|
|
30063
|
+
var n1 = d1.tension, C1 = d1.friction, f1 = d1.precision, S1 = d1.loop, j1 = l2(d1, ["cardSize", "cardCount", "cardPadCount", "renderCard", "tension", "friction", "precision", "loop"]), k1 = S1 ? S : 0, y2 = {
|
|
30052
30064
|
tension: n1,
|
|
30053
|
-
friction:
|
|
30065
|
+
friction: C1,
|
|
30054
30066
|
precision: f1
|
|
30055
30067
|
}, K = this.getComputedCursor();
|
|
30056
30068
|
return /* @__PURE__ */ r2.default.createElement(n5.Spring, {
|
|
@@ -30982,7 +30994,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
30982
30994
|
}, {
|
|
30983
30995
|
key: "render",
|
|
30984
30996
|
value: function() {
|
|
30985
|
-
var W, G, J, r1, D, Z = this.props, L1 = Z.baseClassName, d1 = Z.controlClassName, I = Z.placeholderClassName, S = Z.menuClassName, n1 = Z.arrowClassName,
|
|
30997
|
+
var W, G, J, r1, D, Z = this.props, L1 = Z.baseClassName, d1 = Z.controlClassName, I = Z.placeholderClassName, S = Z.menuClassName, n1 = Z.arrowClassName, C1 = Z.arrowClosed, f1 = Z.arrowOpen, S1 = Z.className, j1 = this.props.disabled ? "Dropdown-disabled" : "", k1 = typeof this.state.selected == "string" ? this.state.selected : this.state.selected.label, y2 = (0, r2.default)((W = {}, g(W, "".concat(L1, "-root"), true), g(W, S1, !!S1), g(W, "is-open", this.state.isOpen), W)), K = (0, r2.default)((G = {}, g(G, "".concat(L1, "-control"), true), g(G, d1, !!d1), g(G, j1, !!j1), G)), H1 = (0, r2.default)((J = {}, g(J, "".concat(L1, "-placeholder"), true), g(J, I, !!I), g(J, "is-selected", this.isValueSelected()), J)), g1 = (0, r2.default)((r1 = {}, g(r1, "".concat(L1, "-menu"), true), g(r1, S, !!S), r1)), M1 = (0, r2.default)((D = {}, g(D, "".concat(L1, "-arrow"), true), g(D, n1, !!n1), D)), I1 = e2.default.createElement("div", {
|
|
30986
30998
|
className: H1
|
|
30987
30999
|
}, k1), R1 = this.state.isOpen ? e2.default.createElement("div", {
|
|
30988
31000
|
className: g1,
|
|
@@ -30998,7 +31010,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
30998
31010
|
"aria-haspopup": "listbox"
|
|
30999
31011
|
}, I1, e2.default.createElement("div", {
|
|
31000
31012
|
className: "".concat(L1, "-arrow-wrapper")
|
|
31001
|
-
}, f1 &&
|
|
31013
|
+
}, f1 && C1 ? this.state.isOpen ? f1 : C1 : e2.default.createElement("span", {
|
|
31002
31014
|
className: M1
|
|
31003
31015
|
}))), R1);
|
|
31004
31016
|
}
|
|
@@ -33061,7 +33073,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
33061
33073
|
case "ucs-2":
|
|
33062
33074
|
case "utf16le":
|
|
33063
33075
|
case "utf-16le":
|
|
33064
|
-
return
|
|
33076
|
+
return C1(this, z, p4);
|
|
33065
33077
|
default:
|
|
33066
33078
|
if (O)
|
|
33067
33079
|
throw new TypeError("Unknown encoding: " + x);
|
|
@@ -33323,7 +33335,7 @@ Check the top-level render call using <` + u1 + ">.");
|
|
|
33323
33335
|
T += S2[x[q]];
|
|
33324
33336
|
return T;
|
|
33325
33337
|
}
|
|
33326
|
-
function
|
|
33338
|
+
function C1(x, z, p4) {
|
|
33327
33339
|
const O = x.slice(z, p4);
|
|
33328
33340
|
let T = "";
|
|
33329
33341
|
for (let q = 0; q < O.length - 1; q += 2)
|
|
@@ -34490,7 +34502,7 @@ body {
|
|
|
34490
34502
|
)
|
|
34491
34503
|
] }), SG1 = styled.div`
|
|
34492
34504
|
position: relative;
|
|
34493
|
-
background-color: ${(t2) => t2.$pressed ?
|
|
34505
|
+
background-color: ${(t2) => t2.$pressed ? B1.view.backColor.lighter : A3(t2.$backColor)};
|
|
34494
34506
|
border-radius: 10px;
|
|
34495
34507
|
padding: 16px;
|
|
34496
34508
|
padding-top: 8px;
|
|
@@ -34500,19 +34512,19 @@ body {
|
|
|
34500
34512
|
|
|
34501
34513
|
${F9};
|
|
34502
34514
|
`, AG1 = styled.div`
|
|
34503
|
-
font-size: ${() =>
|
|
34504
|
-
color: ${() =>
|
|
34515
|
+
font-size: ${() => B1.text.size.xsmall}px;
|
|
34516
|
+
color: ${() => B1.text.color.tint};
|
|
34505
34517
|
padding: 0;
|
|
34506
34518
|
padding-top: 8px;
|
|
34507
34519
|
margin-left: 4px;
|
|
34508
34520
|
margin-bottom: -4px;
|
|
34509
34521
|
text-transform: uppercase;
|
|
34510
34522
|
`, bG1 = styled.div`
|
|
34511
|
-
font-family: ${() =>
|
|
34512
|
-
font-size: ${() =>
|
|
34513
|
-
line-height: ${() =>
|
|
34514
|
-
font-weight: ${() =>
|
|
34515
|
-
color: ${() =>
|
|
34523
|
+
font-family: ${() => B1.text.family.heading};
|
|
34524
|
+
font-size: ${() => B1.text.size.heading}px;
|
|
34525
|
+
line-height: ${() => B1.text.height.heading}px;
|
|
34526
|
+
font-weight: ${() => B1.text.weight.heading};
|
|
34527
|
+
color: ${() => B1.text.color.normal};
|
|
34516
34528
|
margin: 4px;
|
|
34517
34529
|
margin-bottom: 1px;
|
|
34518
34530
|
`, _G1 = styled.div`
|
|
@@ -34521,8 +34533,8 @@ body {
|
|
|
34521
34533
|
padding: 6px 6px 6px 4px;
|
|
34522
34534
|
padding-top: 4px;
|
|
34523
34535
|
`, IG1 = styled.div`
|
|
34524
|
-
font-size: ${() =>
|
|
34525
|
-
color: ${() =>
|
|
34536
|
+
font-size: ${() => B1.text.size.normal}px;
|
|
34537
|
+
color: ${() => B1.text.color.xsubtle};
|
|
34526
34538
|
margin-top: -1px;
|
|
34527
34539
|
padding-left: ${(t2) => t2.$hasIcon ? "6px" : "0px"};
|
|
34528
34540
|
`, PG1 = styled.div`
|
|
@@ -34568,7 +34580,7 @@ body {
|
|
|
34568
34580
|
{
|
|
34569
34581
|
name: i2,
|
|
34570
34582
|
size: 18,
|
|
34571
|
-
color:
|
|
34583
|
+
color: B1.text.color.xsubtle
|
|
34572
34584
|
}
|
|
34573
34585
|
) }),
|
|
34574
34586
|
/* @__PURE__ */ z1.jsx(IG1, { $hasIcon: !!i2, children: n5 })
|
|
@@ -38499,7 +38511,7 @@ body {
|
|
|
38499
38511
|
}
|
|
38500
38512
|
const Z = o2(h2.ticks.maxTicksLimit, f4), L1 = Math.max(1, Math.ceil(f4 / Z));
|
|
38501
38513
|
for (X = 0; X < f4; X += L1) {
|
|
38502
|
-
const d1 = this.getContext(X), I = i2.setContext(d1), S = l2.setContext(d1), n1 = I.lineWidth,
|
|
38514
|
+
const d1 = this.getContext(X), I = i2.setContext(d1), S = l2.setContext(d1), n1 = I.lineWidth, C1 = I.color, f1 = S.dash || [], S1 = S.dashOffset, j1 = I.tickWidth, k1 = I.tickColor, y2 = I.tickBorderDash || [], K = I.tickBorderDashOffset;
|
|
38503
38515
|
c1 = HX1(this, X, o4), c1 !== void 0 && (a1 = V4(n5, c1, n1), d ? R = $ = G = r1 = a1 : Q = W = J = D = a1, w2.push({
|
|
38504
38516
|
tx1: R,
|
|
38505
38517
|
ty1: Q,
|
|
@@ -38510,7 +38522,7 @@ body {
|
|
|
38510
38522
|
x2: r1,
|
|
38511
38523
|
y2: D,
|
|
38512
38524
|
width: n1,
|
|
38513
|
-
color:
|
|
38525
|
+
color: C1,
|
|
38514
38526
|
borderDash: f1,
|
|
38515
38527
|
borderDashOffset: S1,
|
|
38516
38528
|
tickWidth: j1,
|
|
@@ -38558,8 +38570,8 @@ body {
|
|
|
38558
38570
|
const L1 = i2.setContext(this.getContext(F));
|
|
38559
38571
|
$ = this.getPixelForTick(F) + i2.labelOffset, W = this._resolveTickFontOptions(F), G = W.lineHeight, J = R2(c1) ? c1.length : 1;
|
|
38560
38572
|
const d1 = J / 2, I = L1.color, S = L1.textStrokeColor, n1 = L1.textStrokeWidth;
|
|
38561
|
-
let
|
|
38562
|
-
c2 ? (a1 = $, Q === "inner" && (F === N - 1 ?
|
|
38573
|
+
let C1 = Q;
|
|
38574
|
+
c2 ? (a1 = $, Q === "inner" && (F === N - 1 ? C1 = this.options.reverse ? "left" : "right" : F === 0 ? C1 = this.options.reverse ? "right" : "left" : C1 = "center"), h2 === "top" ? d === "near" || C !== 0 ? r1 = -J * G + G / 2 : d === "center" ? r1 = -Z.highest.height / 2 - d1 * G + G : r1 = -Z.highest.height + G / 2 : d === "near" || C !== 0 ? r1 = G / 2 : d === "center" ? r1 = Z.highest.height / 2 - d1 * G : r1 = Z.highest.height - J * G, f4 && (r1 *= -1), C !== 0 && !L1.showLabelBackdrop && (a1 += G / 2 * Math.sin(C))) : (R = $, r1 = (1 - J) * G / 2);
|
|
38563
38575
|
let f1;
|
|
38564
38576
|
if (L1.showLabelBackdrop) {
|
|
38565
38577
|
const S1 = H0(L1.backdropPadding), j1 = Z.heights[F], k1 = Z.widths[F];
|
|
@@ -38600,7 +38612,7 @@ body {
|
|
|
38600
38612
|
color: I,
|
|
38601
38613
|
strokeColor: S,
|
|
38602
38614
|
strokeWidth: n1,
|
|
38603
|
-
textAlign:
|
|
38615
|
+
textAlign: C1,
|
|
38604
38616
|
textBaseline: D,
|
|
38605
38617
|
translation: [
|
|
38606
38618
|
a1,
|
|
@@ -42497,7 +42509,7 @@ body {
|
|
|
42497
42509
|
subtitle: n5,
|
|
42498
42510
|
subtitleSize: h2 = "small",
|
|
42499
42511
|
backColor: i2,
|
|
42500
|
-
borderRadius: c2 =
|
|
42512
|
+
borderRadius: c2 = B1.card.borderRadius,
|
|
42501
42513
|
width: l2,
|
|
42502
42514
|
height: o4,
|
|
42503
42515
|
padding: d = 15,
|
|
@@ -42609,7 +42621,7 @@ body {
|
|
|
42609
42621
|
}, l2 = r2 ? "none" : "light", o4 = /* @__PURE__ */ z1.jsxs(u0, { valign: "center", paddingRight: 10, children: [
|
|
42610
42622
|
/* @__PURE__ */ z1.jsx(h4, { size: "xlarge", weight: "bold", paddingRight: 2, children: t2 }),
|
|
42611
42623
|
!i2 && /* @__PURE__ */ z1.jsx(
|
|
42612
|
-
|
|
42624
|
+
IU1,
|
|
42613
42625
|
{
|
|
42614
42626
|
onClick: c2,
|
|
42615
42627
|
iconName: "IoCloseSharp",
|
|
@@ -45186,9 +45198,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
45186
45198
|
const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45187
45199
|
__proto__: null,
|
|
45188
45200
|
Button: R6,
|
|
45189
|
-
ButtonLoadingIcon:
|
|
45190
|
-
Card:
|
|
45191
|
-
CardButton:
|
|
45201
|
+
ButtonLoadingIcon: Ot2,
|
|
45202
|
+
Card: Bt2,
|
|
45203
|
+
CardButton: Ct2,
|
|
45192
45204
|
Carousel: Mq1,
|
|
45193
45205
|
Cell: St2,
|
|
45194
45206
|
ColorPicker: At2,
|
|
@@ -45198,12 +45210,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
45198
45210
|
Header: Eq1,
|
|
45199
45211
|
HeadingText: PU1,
|
|
45200
45212
|
Icon: G4,
|
|
45201
|
-
IconButton:
|
|
45213
|
+
IconButton: IU1,
|
|
45202
45214
|
Image: It2,
|
|
45203
45215
|
LoadingDots: Cr,
|
|
45204
|
-
MenuBar:
|
|
45216
|
+
MenuBar: yt2,
|
|
45205
45217
|
MenuBarItem: WU1,
|
|
45206
|
-
PillButton:
|
|
45218
|
+
PillButton: kt2,
|
|
45207
45219
|
ProgressBar: Pt2,
|
|
45208
45220
|
Screen: Wt2,
|
|
45209
45221
|
ScreenLoadingOverlay: Dt2,
|
|
@@ -45218,7 +45230,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
45218
45230
|
formatDateTime: Yt2,
|
|
45219
45231
|
formatFromNow: Gt2,
|
|
45220
45232
|
getImageAsBase64: uG1,
|
|
45221
|
-
theme:
|
|
45233
|
+
theme: B1,
|
|
45222
45234
|
useDateTime: qt2,
|
|
45223
45235
|
useInterval: Ut2
|
|
45224
45236
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -49825,7 +49837,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
49825
49837
|
if (zone2.containerProps && Object.keys(zone2.containerProps).length > 0) {
|
|
49826
49838
|
const style = parsePropsForComponent(api2, zone2.containerProps);
|
|
49827
49839
|
components.push(
|
|
49828
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49840
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { "aria-label": `zone-${props.id}`, style, children: component })
|
|
49829
49841
|
);
|
|
49830
49842
|
} else {
|
|
49831
49843
|
components.push(component);
|
|
@@ -66866,7 +66878,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66866
66878
|
result.integrations.push({
|
|
66867
66879
|
key: "base",
|
|
66868
66880
|
pluginName: "base",
|
|
66869
|
-
pluginVersion: "0.
|
|
66881
|
+
pluginVersion: "0.27.0",
|
|
66870
66882
|
pluginConfig: []
|
|
66871
66883
|
});
|
|
66872
66884
|
return result;
|
|
@@ -66898,7 +66910,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66898
66910
|
const useEntities = () => {
|
|
66899
66911
|
return useSnapshot(state).entities;
|
|
66900
66912
|
};
|
|
66901
|
-
const Container$
|
|
66913
|
+
const Container$b = styled.div`
|
|
66902
66914
|
width: 50px;
|
|
66903
66915
|
height: 50px;
|
|
66904
66916
|
padding: 0;
|
|
@@ -66976,7 +66988,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66976
66988
|
}
|
|
66977
66989
|
};
|
|
66978
66990
|
const info = getWeatherTypeInfo(type);
|
|
66979
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$
|
|
66991
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$b, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
|
|
66980
66992
|
};
|
|
66981
66993
|
const WeatherComponent = () => {
|
|
66982
66994
|
const api2 = getPluginApi();
|
|
@@ -67002,7 +67014,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67002
67014
|
] })
|
|
67003
67015
|
] });
|
|
67004
67016
|
};
|
|
67005
|
-
const Container$
|
|
67017
|
+
const Container$a = styled.div`
|
|
67006
67018
|
display: flex;
|
|
67007
67019
|
align-items: center;
|
|
67008
67020
|
width: 100%;
|
|
@@ -67033,7 +67045,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67033
67045
|
padding-right: 15px;
|
|
67034
67046
|
`;
|
|
67035
67047
|
const Header = ({ height = 70 }) => {
|
|
67036
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$
|
|
67048
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$a, { "aria-label": "header", $height: height, children: [
|
|
67037
67049
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderLeft, { "aria-label": "header-left", children: /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherComponent, { "aria-label": "weather" }) }),
|
|
67038
67050
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderCenter, { "aria-label": "header-center" }),
|
|
67039
67051
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderRight, { "aria-label": "header-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClockComponent, { "aria-label": "clock" }) })
|
|
@@ -67041,7 +67053,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67041
67053
|
};
|
|
67042
67054
|
const About = () => {
|
|
67043
67055
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
|
|
67044
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.
|
|
67056
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.27.0"}` }),
|
|
67045
67057
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
|
|
67046
67058
|
] });
|
|
67047
67059
|
};
|
|
@@ -67067,7 +67079,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67067
67079
|
});
|
|
67068
67080
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
|
|
67069
67081
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67070
|
-
|
|
67082
|
+
yt2,
|
|
67071
67083
|
{
|
|
67072
67084
|
items: menuItems,
|
|
67073
67085
|
onSelect: handleSelection,
|
|
@@ -67156,7 +67168,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67156
67168
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
|
|
67157
67169
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Boards" }),
|
|
67158
67170
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: boards && boards.map(({ key, title }) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67159
|
-
|
|
67171
|
+
kt2,
|
|
67160
67172
|
{
|
|
67161
67173
|
title,
|
|
67162
67174
|
icon: "none",
|
|
@@ -67182,7 +67194,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67182
67194
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
|
|
67183
67195
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Components" }),
|
|
67184
67196
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: integration && integration.info.components.map((component) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67185
|
-
|
|
67197
|
+
kt2,
|
|
67186
67198
|
{
|
|
67187
67199
|
title: component,
|
|
67188
67200
|
icon: "none",
|
|
@@ -67191,7 +67203,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67191
67203
|
) }, component)) }),
|
|
67192
67204
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, paddingTop: 50, children: "Screens" }),
|
|
67193
67205
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: integration && integration.info.screens.map((screen) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67194
|
-
|
|
67206
|
+
kt2,
|
|
67195
67207
|
{
|
|
67196
67208
|
title: screen,
|
|
67197
67209
|
icon: "none",
|
|
@@ -67200,7 +67212,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67200
67212
|
) }, screen)) })
|
|
67201
67213
|
] }),
|
|
67202
67214
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { fixed: "bottom", height: 120, paddingLeft: 20, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67203
|
-
|
|
67215
|
+
Ct2,
|
|
67204
67216
|
{
|
|
67205
67217
|
title: "Settings",
|
|
67206
67218
|
variant: "clear",
|
|
@@ -67264,7 +67276,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67264
67276
|
];
|
|
67265
67277
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
|
|
67266
67278
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67267
|
-
|
|
67279
|
+
yt2,
|
|
67268
67280
|
{
|
|
67269
67281
|
items: menuItems,
|
|
67270
67282
|
onSelect: handleSelection,
|
|
@@ -67283,7 +67295,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67283
67295
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "Sets the color for Cards with variant='normal'.." })
|
|
67284
67296
|
}
|
|
67285
67297
|
),
|
|
67286
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
67298
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Bt2, { padding: 12, direction: "vert", style: { marginBottom: 40 }, children: [
|
|
67287
67299
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: "Card" }),
|
|
67288
67300
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "subtle", children: "Body" })
|
|
67289
67301
|
] }),
|
|
@@ -67293,7 +67305,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67293
67305
|
width: "100%",
|
|
67294
67306
|
maxWidth: 400,
|
|
67295
67307
|
height: 150,
|
|
67296
|
-
color: themeState["card-bg"] ||
|
|
67308
|
+
color: themeState["card-bg"] || B1.view.backColor.card,
|
|
67297
67309
|
onChange: (color) => {
|
|
67298
67310
|
themeState["card-bg"] = color;
|
|
67299
67311
|
setThemeState(themeState);
|
|
@@ -67329,7 +67341,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67329
67341
|
width: "100%",
|
|
67330
67342
|
maxWidth: 400,
|
|
67331
67343
|
height: 150,
|
|
67332
|
-
color: themeState["tile-bg"] ||
|
|
67344
|
+
color: themeState["tile-bg"] || B1.view.backColor.tile,
|
|
67333
67345
|
onChange: (color) => {
|
|
67334
67346
|
themeState["tile-bg"] = color;
|
|
67335
67347
|
setThemeState(themeState);
|
|
@@ -67360,7 +67372,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67360
67372
|
}
|
|
67361
67373
|
),
|
|
67362
67374
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
|
|
67363
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67375
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Clear Pill", variant: "clear" })
|
|
67364
67376
|
] }),
|
|
67365
67377
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67366
67378
|
At2,
|
|
@@ -67369,7 +67381,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67369
67381
|
width: "100%",
|
|
67370
67382
|
maxWidth: 400,
|
|
67371
67383
|
height: 150,
|
|
67372
|
-
color: themeState["clear-bg"] ||
|
|
67384
|
+
color: themeState["clear-bg"] || B1.view.backColor.clear,
|
|
67373
67385
|
onChange: (color) => {
|
|
67374
67386
|
themeState["clear-bg"] = color;
|
|
67375
67387
|
setThemeState(themeState);
|
|
@@ -67390,9 +67402,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67390
67402
|
}
|
|
67391
67403
|
),
|
|
67392
67404
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { style: { marginBottom: 40 }, direction: "horz", collapse: true, children: [
|
|
67393
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67405
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { title: "Button", variant: "normal" }),
|
|
67394
67406
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
|
|
67395
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67407
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Pill", variant: "normal" })
|
|
67396
67408
|
] }),
|
|
67397
67409
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67398
67410
|
At2,
|
|
@@ -67400,7 +67412,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67400
67412
|
width: "100%",
|
|
67401
67413
|
maxWidth: 400,
|
|
67402
67414
|
height: 150,
|
|
67403
|
-
color: themeState["button-bg"] ||
|
|
67415
|
+
color: themeState["button-bg"] || B1.button.normal.backColor,
|
|
67404
67416
|
onChange: (color) => {
|
|
67405
67417
|
themeState["button-bg"] = color;
|
|
67406
67418
|
setThemeState(themeState);
|
|
@@ -67485,7 +67497,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67485
67497
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { children: [
|
|
67486
67498
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "20% auto", padding: 20, paddingTop: 90, gap: 20, children: [
|
|
67487
67499
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67488
|
-
|
|
67500
|
+
yt2,
|
|
67489
67501
|
{
|
|
67490
67502
|
items: menuItems,
|
|
67491
67503
|
onSelect: handleMenuSelection,
|
|
@@ -71443,7 +71455,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71443
71455
|
MONTH: "YYYY-MM"
|
|
71444
71456
|
// <input type="month" />
|
|
71445
71457
|
};
|
|
71446
|
-
const Container$
|
|
71458
|
+
const Container$9 = styled.div`
|
|
71447
71459
|
align-items: flex-start;
|
|
71448
71460
|
padding: 10px 20px;
|
|
71449
71461
|
margin-top: 130px;
|
|
@@ -71512,9 +71524,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71512
71524
|
events2.nextEvent.startDate * 1e3
|
|
71513
71525
|
).format("h:mm")}`;
|
|
71514
71526
|
};
|
|
71515
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$
|
|
71527
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
|
|
71516
71528
|
};
|
|
71517
|
-
const Container$
|
|
71529
|
+
const Container$8 = styled.div`
|
|
71518
71530
|
height: 100vh;
|
|
71519
71531
|
width: 100vw;
|
|
71520
71532
|
background: ${(props) => `linear-gradient(90deg, ${props.$colorStart}, ${props.$colorEnd})`};
|
|
@@ -71554,12 +71566,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71554
71566
|
}
|
|
71555
71567
|
`;
|
|
71556
71568
|
const BlobBackground = ({
|
|
71557
|
-
colorStart = "#
|
|
71558
|
-
colorEnd = "#
|
|
71559
|
-
speed =
|
|
71569
|
+
colorStart = "#26a88d",
|
|
71570
|
+
colorEnd = "#00796b",
|
|
71571
|
+
speed = 1
|
|
71560
71572
|
}) => {
|
|
71561
71573
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71562
|
-
Container$
|
|
71574
|
+
Container$8,
|
|
71563
71575
|
{
|
|
71564
71576
|
"aria-label": "blob-background",
|
|
71565
71577
|
$colorStart: colorStart,
|
|
@@ -71568,7 +71580,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71568
71580
|
}
|
|
71569
71581
|
);
|
|
71570
71582
|
};
|
|
71571
|
-
const Container$
|
|
71583
|
+
const Container$7 = styled.div`
|
|
71572
71584
|
height: 100vh;
|
|
71573
71585
|
width: 100vw;
|
|
71574
71586
|
background: ${(props) => `radial-gradient(${props.$colorStart}, ${props.$colorEnd})`};
|
|
@@ -71663,12 +71675,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71663
71675
|
left: 85%;
|
|
71664
71676
|
`;
|
|
71665
71677
|
const BlurredLightsBackground = ({
|
|
71666
|
-
colorStart = "#
|
|
71667
|
-
colorEnd = "#
|
|
71668
|
-
speed =
|
|
71678
|
+
colorStart = "#d2276c",
|
|
71679
|
+
colorEnd = "#170070",
|
|
71680
|
+
speed = 1
|
|
71669
71681
|
}) => {
|
|
71670
71682
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
71671
|
-
Container$
|
|
71683
|
+
Container$7,
|
|
71672
71684
|
{
|
|
71673
71685
|
"aria-label": "blurred-lights-background",
|
|
71674
71686
|
$colorStart: colorStart,
|
|
@@ -71687,7 +71699,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71687
71699
|
}
|
|
71688
71700
|
);
|
|
71689
71701
|
};
|
|
71690
|
-
const Container$
|
|
71702
|
+
const Container$6 = styled.div`
|
|
71691
71703
|
height: 100vh;
|
|
71692
71704
|
width: 100vw;
|
|
71693
71705
|
display: flex;
|
|
@@ -71721,7 +71733,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71721
71733
|
speed = 0.5
|
|
71722
71734
|
}) => {
|
|
71723
71735
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71724
|
-
Container$
|
|
71736
|
+
Container$6,
|
|
71725
71737
|
{
|
|
71726
71738
|
"aria-label": "gradient-background",
|
|
71727
71739
|
$colorStart: colorStart,
|
|
@@ -71730,7 +71742,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71730
71742
|
}
|
|
71731
71743
|
);
|
|
71732
71744
|
};
|
|
71733
|
-
const Container$
|
|
71745
|
+
const Container$5 = styled.div`
|
|
71734
71746
|
position: absolute;
|
|
71735
71747
|
top: 0;
|
|
71736
71748
|
bottom: 0;
|
|
@@ -71797,13 +71809,184 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71797
71809
|
};
|
|
71798
71810
|
const background = backgrounds[itemKey];
|
|
71799
71811
|
opacity = opacity === void 0 ? background.opacity : opacity;
|
|
71800
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$
|
|
71812
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$5, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
|
|
71813
|
+
};
|
|
71814
|
+
const Container$4 = styled.div`
|
|
71815
|
+
height: 100vh;
|
|
71816
|
+
width: 100vw;
|
|
71817
|
+
xbackground: ${(props) => `radial-gradient(
|
|
71818
|
+
${props.$colorStart} 0%,
|
|
71819
|
+
${props.$colorEnd} 100%
|
|
71820
|
+
)`};
|
|
71821
|
+
`;
|
|
71822
|
+
const speedFactor = 2;
|
|
71823
|
+
const Slant1 = styled.div`
|
|
71824
|
+
animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
|
|
71825
|
+
infinite alternate;
|
|
71826
|
+
background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
|
|
71827
|
+
bottom: 0;
|
|
71828
|
+
left: -50%;
|
|
71829
|
+
opacity: 0.5;
|
|
71830
|
+
position: fixed;
|
|
71831
|
+
right: -50%;
|
|
71832
|
+
top: 0;
|
|
71833
|
+
z-index: -1;
|
|
71834
|
+
|
|
71835
|
+
@keyframes slide {
|
|
71836
|
+
0% {
|
|
71837
|
+
transform: translateX(-25%);
|
|
71838
|
+
}
|
|
71839
|
+
100% {
|
|
71840
|
+
transform: translateX(25%);
|
|
71841
|
+
}
|
|
71842
|
+
}
|
|
71843
|
+
`;
|
|
71844
|
+
const Slant2 = styled.div`
|
|
71845
|
+
animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
|
|
71846
|
+
infinite alternate;
|
|
71847
|
+
animation-direction: alternate-reverse;
|
|
71848
|
+
animation-duration: ${({ $speed }) => ($speed + 1) * speedFactor}s;
|
|
71849
|
+
background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
|
|
71850
|
+
bottom: 0;
|
|
71851
|
+
left: -50%;
|
|
71852
|
+
opacity: 0.5;
|
|
71853
|
+
position: fixed;
|
|
71854
|
+
right: -50%;
|
|
71855
|
+
top: 0;
|
|
71856
|
+
z-index: -1;
|
|
71857
|
+
|
|
71858
|
+
@keyframes slide {
|
|
71859
|
+
0% {
|
|
71860
|
+
transform: translateX(-25%);
|
|
71861
|
+
}
|
|
71862
|
+
100% {
|
|
71863
|
+
transform: translateX(25%);
|
|
71864
|
+
}
|
|
71865
|
+
}
|
|
71866
|
+
`;
|
|
71867
|
+
const Slant3 = styled.div`
|
|
71868
|
+
animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
|
|
71869
|
+
infinite alternate;
|
|
71870
|
+
animation-duration: ${({ $speed }) => ($speed + 2) * speedFactor}s;
|
|
71871
|
+
background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
|
|
71872
|
+
bottom: 0;
|
|
71873
|
+
left: -50%;
|
|
71874
|
+
opacity: 0.5;
|
|
71875
|
+
position: fixed;
|
|
71876
|
+
right: -50%;
|
|
71877
|
+
top: 0;
|
|
71878
|
+
z-index: -1;
|
|
71879
|
+
|
|
71880
|
+
@keyframes slide {
|
|
71881
|
+
0% {
|
|
71882
|
+
transform: translateX(-25%);
|
|
71883
|
+
}
|
|
71884
|
+
100% {
|
|
71885
|
+
transform: translateX(25%);
|
|
71886
|
+
}
|
|
71887
|
+
}
|
|
71888
|
+
`;
|
|
71889
|
+
const SlantBackground = ({
|
|
71890
|
+
colorStart = "#6c3",
|
|
71891
|
+
colorEnd = "#09f",
|
|
71892
|
+
speed = 30
|
|
71893
|
+
}) => {
|
|
71894
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
71895
|
+
Container$4,
|
|
71896
|
+
{
|
|
71897
|
+
"aria-label": "slant-background",
|
|
71898
|
+
$colorStart: colorStart,
|
|
71899
|
+
$colorEnd: colorEnd,
|
|
71900
|
+
children: [
|
|
71901
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Slant1, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd }),
|
|
71902
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Slant2, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd }),
|
|
71903
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Slant3, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd })
|
|
71904
|
+
]
|
|
71905
|
+
}
|
|
71906
|
+
);
|
|
71907
|
+
};
|
|
71908
|
+
const Container$3 = styled.div`
|
|
71909
|
+
height: 100vh;
|
|
71910
|
+
width: 100vw;
|
|
71911
|
+
background: ${(props) => `radial-gradient(
|
|
71912
|
+
${props.$colorStart} 0%,
|
|
71913
|
+
${props.$colorEnd} 100%
|
|
71914
|
+
)`};
|
|
71915
|
+
`;
|
|
71916
|
+
const Ocean = styled.div`
|
|
71917
|
+
height: ${({ $height }) => $height * 3}%;
|
|
71918
|
+
width: 100%;
|
|
71919
|
+
position: absolute;
|
|
71920
|
+
bottom: 0;
|
|
71921
|
+
left: 0;
|
|
71922
|
+
background: #015871;
|
|
71923
|
+
`;
|
|
71924
|
+
const Wave1 = styled.div`
|
|
71925
|
+
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg)
|
|
71926
|
+
repeat-x;
|
|
71927
|
+
position: absolute;
|
|
71928
|
+
width: 6400px;
|
|
71929
|
+
top: -198px;
|
|
71930
|
+
left: 0;
|
|
71931
|
+
height: 198px;
|
|
71932
|
+
transform: translate(0, 0, 0);
|
|
71933
|
+
animation: wave ${({ $speed }) => $speed * 70}s ease infinite;
|
|
71934
|
+
|
|
71935
|
+
@keyframes wave {
|
|
71936
|
+
0% {
|
|
71937
|
+
margin-left: 0;
|
|
71938
|
+
}
|
|
71939
|
+
100% {
|
|
71940
|
+
margin-left: -1600px;
|
|
71941
|
+
}
|
|
71942
|
+
}
|
|
71943
|
+
`;
|
|
71944
|
+
const Wave2 = styled.div`
|
|
71945
|
+
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg)
|
|
71946
|
+
repeat-x;
|
|
71947
|
+
position: absolute;
|
|
71948
|
+
width: 6400px;
|
|
71949
|
+
top: -168px;
|
|
71950
|
+
left: 0;
|
|
71951
|
+
height: 198px;
|
|
71952
|
+
transform: translate(0, 0, 0);
|
|
71953
|
+
animation: swell ${({ $speed }) => $speed * 40}s ease infinite;
|
|
71954
|
+
opacity: 1;
|
|
71955
|
+
|
|
71956
|
+
@keyframes swell {
|
|
71957
|
+
0%,
|
|
71958
|
+
100% {
|
|
71959
|
+
transform: translate(0, -30px);
|
|
71960
|
+
}
|
|
71961
|
+
50% {
|
|
71962
|
+
transform: translate(0, 5px);
|
|
71963
|
+
}
|
|
71964
|
+
}
|
|
71965
|
+
`;
|
|
71966
|
+
const WaveBackground = ({
|
|
71967
|
+
colorStart = "#3a88ba",
|
|
71968
|
+
colorEnd = "#0b5774",
|
|
71969
|
+
speed = 0.5,
|
|
71970
|
+
tide = 3
|
|
71971
|
+
}) => {
|
|
71972
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71973
|
+
Container$3,
|
|
71974
|
+
{
|
|
71975
|
+
"aria-label": "wave-background",
|
|
71976
|
+
$colorStart: colorStart,
|
|
71977
|
+
$colorEnd: colorEnd,
|
|
71978
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Ocean, { $height: tide, children: [
|
|
71979
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Wave1, { $speed: speed }),
|
|
71980
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Wave2, { $speed: speed })
|
|
71981
|
+
] })
|
|
71982
|
+
}
|
|
71983
|
+
);
|
|
71801
71984
|
};
|
|
71802
71985
|
const AboutScreen = ({ api: api2 }) => {
|
|
71803
71986
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { overlay: true, children: [
|
|
71804
71987
|
/* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "About" }),
|
|
71805
71988
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { paddingTop: 100, paddingHorz: 20, collapse: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71806
|
-
|
|
71989
|
+
Ct2,
|
|
71807
71990
|
{
|
|
71808
71991
|
title: "Settings",
|
|
71809
71992
|
iconName: "about",
|
|
@@ -98574,7 +98757,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98574
98757
|
}
|
|
98575
98758
|
),
|
|
98576
98759
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
98577
|
-
|
|
98760
|
+
kt2,
|
|
98578
98761
|
{
|
|
98579
98762
|
title: "RESET",
|
|
98580
98763
|
variant: "clear",
|
|
@@ -98733,17 +98916,17 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98733
98916
|
colorStart: {
|
|
98734
98917
|
type: "color",
|
|
98735
98918
|
title: "Start Color",
|
|
98736
|
-
default: "#
|
|
98919
|
+
default: "#d2276c"
|
|
98737
98920
|
},
|
|
98738
98921
|
colorEnd: {
|
|
98739
98922
|
type: "color",
|
|
98740
98923
|
title: "End Color",
|
|
98741
|
-
default: "#
|
|
98924
|
+
default: "#170070"
|
|
98742
98925
|
},
|
|
98743
98926
|
speed: {
|
|
98744
98927
|
type: "number",
|
|
98745
98928
|
title: "Speed",
|
|
98746
|
-
default:
|
|
98929
|
+
default: 1,
|
|
98747
98930
|
min: 0.1,
|
|
98748
98931
|
max: 2,
|
|
98749
98932
|
step: 0.1,
|
|
@@ -98759,12 +98942,38 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98759
98942
|
colorStart: {
|
|
98760
98943
|
type: "color",
|
|
98761
98944
|
title: "Start Color",
|
|
98762
|
-
default: "#
|
|
98945
|
+
default: "#26a88d"
|
|
98763
98946
|
},
|
|
98764
98947
|
colorEnd: {
|
|
98765
98948
|
type: "color",
|
|
98766
98949
|
title: "End Color",
|
|
98767
|
-
default: "#
|
|
98950
|
+
default: "#00796b"
|
|
98951
|
+
},
|
|
98952
|
+
speed: {
|
|
98953
|
+
type: "number",
|
|
98954
|
+
title: "Speed",
|
|
98955
|
+
default: 1,
|
|
98956
|
+
min: 0.1,
|
|
98957
|
+
max: 2,
|
|
98958
|
+
step: 0.1,
|
|
98959
|
+
minLabel: "Fast",
|
|
98960
|
+
maxLabel: "Slow"
|
|
98961
|
+
}
|
|
98962
|
+
}
|
|
98963
|
+
});
|
|
98964
|
+
registry2.registerCollectionItem("backgrounds", "wave", {
|
|
98965
|
+
name: "Wave",
|
|
98966
|
+
component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(WaveBackground, { ...props }),
|
|
98967
|
+
props: {
|
|
98968
|
+
colorStart: {
|
|
98969
|
+
type: "color",
|
|
98970
|
+
title: "Start Color",
|
|
98971
|
+
default: "#3a88ba"
|
|
98972
|
+
},
|
|
98973
|
+
colorEnd: {
|
|
98974
|
+
type: "color",
|
|
98975
|
+
title: "End Color",
|
|
98976
|
+
default: "#0b5774"
|
|
98768
98977
|
},
|
|
98769
98978
|
speed: {
|
|
98770
98979
|
type: "number",
|
|
@@ -98775,6 +98984,42 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98775
98984
|
step: 0.1,
|
|
98776
98985
|
minLabel: "Fast",
|
|
98777
98986
|
maxLabel: "Slow"
|
|
98987
|
+
},
|
|
98988
|
+
tide: {
|
|
98989
|
+
type: "number",
|
|
98990
|
+
title: "Tide",
|
|
98991
|
+
default: 3,
|
|
98992
|
+
min: 1,
|
|
98993
|
+
max: 10,
|
|
98994
|
+
step: 1,
|
|
98995
|
+
minLabel: "Low",
|
|
98996
|
+
maxLabel: "High"
|
|
98997
|
+
}
|
|
98998
|
+
}
|
|
98999
|
+
});
|
|
99000
|
+
registry2.registerCollectionItem("backgrounds", "slant", {
|
|
99001
|
+
name: "Slant",
|
|
99002
|
+
component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlantBackground, { ...props }),
|
|
99003
|
+
props: {
|
|
99004
|
+
colorStart: {
|
|
99005
|
+
type: "color",
|
|
99006
|
+
title: "Start Color",
|
|
99007
|
+
default: "#6c3"
|
|
99008
|
+
},
|
|
99009
|
+
colorEnd: {
|
|
99010
|
+
type: "color",
|
|
99011
|
+
title: "End Color",
|
|
99012
|
+
default: "#09f"
|
|
99013
|
+
},
|
|
99014
|
+
speed: {
|
|
99015
|
+
type: "number",
|
|
99016
|
+
title: "Speed",
|
|
99017
|
+
default: 30,
|
|
99018
|
+
min: 5,
|
|
99019
|
+
max: 55,
|
|
99020
|
+
step: 5,
|
|
99021
|
+
minLabel: "Fast",
|
|
99022
|
+
maxLabel: "Slow"
|
|
98778
99023
|
}
|
|
98779
99024
|
}
|
|
98780
99025
|
});
|
|
@@ -98806,7 +99051,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98806
99051
|
return [
|
|
98807
99052
|
{
|
|
98808
99053
|
key: "card-button",
|
|
98809
|
-
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99054
|
+
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { ...props })
|
|
98810
99055
|
},
|
|
98811
99056
|
{
|
|
98812
99057
|
key: "command-group",
|
|
@@ -99149,7 +99394,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
99149
99394
|
more > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(MoreContainer, { children: [
|
|
99150
99395
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MoreSpacer, {}),
|
|
99151
99396
|
/* @__PURE__ */ jsxRuntimeExports.jsx(More, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99152
|
-
|
|
99397
|
+
kt2,
|
|
99153
99398
|
{
|
|
99154
99399
|
title: `${more} more today`,
|
|
99155
99400
|
icon: "none",
|
|
@@ -102227,7 +102472,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102227
102472
|
title,
|
|
102228
102473
|
entityId,
|
|
102229
102474
|
iconName = "IoMedicalSharp",
|
|
102230
|
-
variant = "toggle"
|
|
102475
|
+
variant = "toggle",
|
|
102476
|
+
square = true
|
|
102231
102477
|
}) => {
|
|
102232
102478
|
const entities = useEntities();
|
|
102233
102479
|
const [loading, setLoading] = React$3.useState(false);
|
|
@@ -102241,7 +102487,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102241
102487
|
const disabled = !entity;
|
|
102242
102488
|
const active = entity && entity.state === "on";
|
|
102243
102489
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102244
|
-
|
|
102490
|
+
Ct2,
|
|
102245
102491
|
{
|
|
102246
102492
|
variant,
|
|
102247
102493
|
active,
|
|
@@ -102254,7 +102500,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102254
102500
|
iconBackColor: active ? "#ffcc01" : "#ffffff22",
|
|
102255
102501
|
iconColor: active ? "#fff" : "#fff",
|
|
102256
102502
|
iconColorActive: "#fff",
|
|
102257
|
-
loading
|
|
102503
|
+
loading,
|
|
102504
|
+
square
|
|
102258
102505
|
}
|
|
102259
102506
|
);
|
|
102260
102507
|
};
|
|
@@ -102294,7 +102541,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102294
102541
|
album: data.attributes.media_album_name
|
|
102295
102542
|
};
|
|
102296
102543
|
}
|
|
102297
|
-
const MediaButton = ({
|
|
102544
|
+
const MediaButton = ({
|
|
102545
|
+
entityId,
|
|
102546
|
+
title = "Media",
|
|
102547
|
+
variant,
|
|
102548
|
+
square = true
|
|
102549
|
+
}) => {
|
|
102298
102550
|
const entities = useEntities();
|
|
102299
102551
|
const [loading, setLoading] = React$3.useState(false);
|
|
102300
102552
|
const [state2, setState2] = React$3.useState("");
|
|
@@ -102315,14 +102567,15 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102315
102567
|
const iconName = state2 === "playing" ? "MdPause" : "MdPlayArrow";
|
|
102316
102568
|
const disabled = !entity;
|
|
102317
102569
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102318
|
-
|
|
102570
|
+
Ct2,
|
|
102319
102571
|
{
|
|
102320
102572
|
variant,
|
|
102321
102573
|
disabled: loading || disabled,
|
|
102322
102574
|
title,
|
|
102323
102575
|
onClick: handleStateToggle,
|
|
102324
102576
|
iconName,
|
|
102325
|
-
loading
|
|
102577
|
+
loading,
|
|
102578
|
+
square
|
|
102326
102579
|
}
|
|
102327
102580
|
);
|
|
102328
102581
|
};
|
|
@@ -102522,7 +102775,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102522
102775
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MediaTrack, { entity: media }),
|
|
102523
102776
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { paddingTop: 0, collapse: true, children: [
|
|
102524
102777
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102525
|
-
|
|
102778
|
+
IU1,
|
|
102526
102779
|
{
|
|
102527
102780
|
variant: "clear",
|
|
102528
102781
|
width: 50,
|
|
@@ -102535,7 +102788,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102535
102788
|
),
|
|
102536
102789
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ControlSpacer, {}),
|
|
102537
102790
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102538
|
-
|
|
102791
|
+
IU1,
|
|
102539
102792
|
{
|
|
102540
102793
|
variant: "clear",
|
|
102541
102794
|
width: 50,
|
|
@@ -102551,6 +102804,60 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102551
102804
|
] })
|
|
102552
102805
|
] }) });
|
|
102553
102806
|
};
|
|
102807
|
+
function tryParseNumber(value, defValue) {
|
|
102808
|
+
const parsed = parseInt(value);
|
|
102809
|
+
return isNaN(parsed) ? defValue : parsed;
|
|
102810
|
+
}
|
|
102811
|
+
const SensorCard = ({
|
|
102812
|
+
title,
|
|
102813
|
+
entityId,
|
|
102814
|
+
iconName = "MdOutlineDeviceThermostat",
|
|
102815
|
+
clear = false,
|
|
102816
|
+
square = true
|
|
102817
|
+
}) => {
|
|
102818
|
+
const entity = useEntity(entityId);
|
|
102819
|
+
const state2 = entity ? tryParseNumber(entity.state) : void 0;
|
|
102820
|
+
const value = entity && state2 ? `${state2} ${entity.attributes.unit_of_measurement}` : "?";
|
|
102821
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102822
|
+
Bt2,
|
|
102823
|
+
{
|
|
102824
|
+
variant: clear ? "clear" : "normal",
|
|
102825
|
+
square,
|
|
102826
|
+
label: "sensor-card",
|
|
102827
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", padding: 10, paddingTop: 12, children: [
|
|
102828
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(G4, { name: iconName, size: 30 }) }),
|
|
102829
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", paddingHorz: 4, children: [
|
|
102830
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { size: "large", weight: "xbold", children: value }),
|
|
102831
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { size: "normal", weight: "normal", children: title })
|
|
102832
|
+
] })
|
|
102833
|
+
] })
|
|
102834
|
+
}
|
|
102835
|
+
);
|
|
102836
|
+
};
|
|
102837
|
+
const EntitiesScreen = () => {
|
|
102838
|
+
const entities = useEntities();
|
|
102839
|
+
const [selectedKey, setSelectedKey] = React$3.useState("");
|
|
102840
|
+
const menuItems = Object.keys(entities).map((key) => ({
|
|
102841
|
+
title: entities[key].attributes.friendly_name || "Unknown",
|
|
102842
|
+
key
|
|
102843
|
+
}));
|
|
102844
|
+
const handleMenuSelection = (key) => {
|
|
102845
|
+
setSelectedKey(key);
|
|
102846
|
+
};
|
|
102847
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wt2, { overlay: false, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "40% auto", rows: "60px auto", children: [
|
|
102848
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { colSpan: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "Home Assistant Entities" }) }),
|
|
102849
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "vert", vscroll: "auto", hscroll: "hidden", padding: 15, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102850
|
+
yt2,
|
|
102851
|
+
{
|
|
102852
|
+
items: menuItems,
|
|
102853
|
+
onSelect: handleMenuSelection,
|
|
102854
|
+
initialKey: selectedKey,
|
|
102855
|
+
compact: true
|
|
102856
|
+
}
|
|
102857
|
+
) }),
|
|
102858
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { vscroll: "auto", hscroll: "hidden", padding: 15, children: selectedKey && /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { style: { fontSize: 16 }, children: JSON.stringify(entities[selectedKey], null, 2) }) })
|
|
102859
|
+
] }) });
|
|
102860
|
+
};
|
|
102554
102861
|
class Plugin {
|
|
102555
102862
|
constructor(config2) {
|
|
102556
102863
|
__publicField(this, "config");
|
|
@@ -102585,6 +102892,18 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102585
102892
|
{
|
|
102586
102893
|
key: "entity-button",
|
|
102587
102894
|
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(EntityButton, { ...props })
|
|
102895
|
+
},
|
|
102896
|
+
{
|
|
102897
|
+
key: "sensor-card",
|
|
102898
|
+
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(SensorCard, { ...props })
|
|
102899
|
+
}
|
|
102900
|
+
];
|
|
102901
|
+
}
|
|
102902
|
+
get screens() {
|
|
102903
|
+
return [
|
|
102904
|
+
{
|
|
102905
|
+
path: "/entities",
|
|
102906
|
+
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(EntitiesScreen, { ...props })
|
|
102588
102907
|
}
|
|
102589
102908
|
];
|
|
102590
102909
|
}
|
|
@@ -102726,7 +103045,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102726
103045
|
{
|
|
102727
103046
|
key: "base",
|
|
102728
103047
|
pluginName: "base",
|
|
102729
|
-
pluginVersion: "0.
|
|
103048
|
+
pluginVersion: "0.27.0",
|
|
102730
103049
|
pluginConfig: []
|
|
102731
103050
|
}
|
|
102732
103051
|
],
|
|
@@ -103906,7 +104225,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103906
104225
|
const BoardProvider = ({ email, password, plugin, pluginConfig }) => {
|
|
103907
104226
|
const config2 = useUserConfig(email, password, plugin, pluginConfig);
|
|
103908
104227
|
console.log("### LOADED", config2);
|
|
103909
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(styled.ThemeProvider, { theme:
|
|
104228
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(styled.ThemeProvider, { theme: B1, children: [
|
|
103910
104229
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { transitionDelay }),
|
|
103911
104230
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
|
|
103912
104231
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),
|