@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.es.js
CHANGED
|
@@ -1100,14 +1100,14 @@ function M7() {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
return null;
|
|
1102
1102
|
}
|
|
1103
|
-
var Z = Object.assign, L1 = 0, d1, I, S, n1,
|
|
1103
|
+
var Z = Object.assign, L1 = 0, d1, I, S, n1, C1, f1, S1;
|
|
1104
1104
|
function j1() {
|
|
1105
1105
|
}
|
|
1106
1106
|
j1.__reactDisabledLog = true;
|
|
1107
1107
|
function k1() {
|
|
1108
1108
|
{
|
|
1109
1109
|
if (L1 === 0) {
|
|
1110
|
-
d1 = console.log, I = console.info, S = console.warn, n1 = console.error,
|
|
1110
|
+
d1 = console.log, I = console.info, S = console.warn, n1 = console.error, C1 = console.group, f1 = console.groupCollapsed, S1 = console.groupEnd;
|
|
1111
1111
|
var _10 = {
|
|
1112
1112
|
configurable: true,
|
|
1113
1113
|
enumerable: true,
|
|
@@ -1149,7 +1149,7 @@ function M7() {
|
|
|
1149
1149
|
value: n1
|
|
1150
1150
|
}),
|
|
1151
1151
|
group: Z({}, _10, {
|
|
1152
|
-
value:
|
|
1152
|
+
value: C1
|
|
1153
1153
|
}),
|
|
1154
1154
|
groupCollapsed: Z({}, _10, {
|
|
1155
1155
|
value: f1
|
|
@@ -1617,7 +1617,7 @@ const I0 = () => 0, F9 = `
|
|
|
1617
1617
|
`, 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`
|
|
1618
1618
|
box-sizing: border-box;
|
|
1619
1619
|
background-color: ${(t2) => t2.$active ? t2.$backColorActive : t2.$backColor};
|
|
1620
|
-
filter: ${(t2) => t2.$disabled ? `brightness(${
|
|
1620
|
+
filter: ${(t2) => t2.$disabled ? `brightness(${B1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${B1.button.brightnessPressed})` : "none"};
|
|
1621
1621
|
border-radius: ${({ $borderRadius: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
1622
1622
|
width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
1623
1623
|
height: ${({ $height: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
@@ -1668,7 +1668,7 @@ const I0 = () => 0, F9 = `
|
|
|
1668
1668
|
}, W = () => {
|
|
1669
1669
|
e2 || X();
|
|
1670
1670
|
}, G = i2 ? void 0 : r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`;
|
|
1671
|
-
return i2 || (i2 = (J =
|
|
1671
|
+
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(
|
|
1672
1672
|
f7,
|
|
1673
1673
|
{
|
|
1674
1674
|
$pressed: e2 ? false : R,
|
|
@@ -24498,7 +24498,7 @@ const kU1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
24498
24498
|
iconPadding: c2 = 2,
|
|
24499
24499
|
iconBackColor: l2 = ""
|
|
24500
24500
|
}) => {
|
|
24501
|
-
const o4 = e2 ? h2 : n5 ||
|
|
24501
|
+
const o4 = e2 ? h2 : n5 || B1.button.normal.color, d = l2 ? i2 - 4 : i2, g = c2, f4 = l2 ? 2 : 0;
|
|
24502
24502
|
return /* @__PURE__ */ z1.jsxs(
|
|
24503
24503
|
OU1,
|
|
24504
24504
|
{
|
|
@@ -24521,7 +24521,7 @@ const kU1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
24521
24521
|
]
|
|
24522
24522
|
}
|
|
24523
24523
|
);
|
|
24524
|
-
},
|
|
24524
|
+
}, B1 = {
|
|
24525
24525
|
text: {
|
|
24526
24526
|
size: {
|
|
24527
24527
|
xxsmall: 10,
|
|
@@ -24618,15 +24618,15 @@ const kU1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
24618
24618
|
function z5(t2) {
|
|
24619
24619
|
switch (t2) {
|
|
24620
24620
|
case "xxsubtle":
|
|
24621
|
-
return
|
|
24621
|
+
return B1.text.color.xxsubtle;
|
|
24622
24622
|
case "xsubtle":
|
|
24623
|
-
return
|
|
24623
|
+
return B1.text.color.xsubtle;
|
|
24624
24624
|
case "subtle":
|
|
24625
|
-
return
|
|
24625
|
+
return B1.text.color.subtle;
|
|
24626
24626
|
case "tint":
|
|
24627
|
-
return
|
|
24627
|
+
return B1.text.color.tint;
|
|
24628
24628
|
case "normal":
|
|
24629
|
-
return
|
|
24629
|
+
return B1.text.color.normal;
|
|
24630
24630
|
default:
|
|
24631
24631
|
return t2;
|
|
24632
24632
|
}
|
|
@@ -24634,97 +24634,97 @@ function z5(t2) {
|
|
|
24634
24634
|
function H3(t2) {
|
|
24635
24635
|
switch (t2) {
|
|
24636
24636
|
case "normal":
|
|
24637
|
-
return
|
|
24637
|
+
return B1.text.family.normal;
|
|
24638
24638
|
case "condensed":
|
|
24639
|
-
return
|
|
24639
|
+
return B1.text.family.condensed;
|
|
24640
24640
|
case "mono":
|
|
24641
|
-
return
|
|
24641
|
+
return B1.text.family.mono;
|
|
24642
24642
|
case "slab":
|
|
24643
|
-
return
|
|
24643
|
+
return B1.text.family.slab;
|
|
24644
24644
|
case "flex":
|
|
24645
|
-
return
|
|
24645
|
+
return B1.text.family.flex;
|
|
24646
24646
|
case "heading":
|
|
24647
|
-
return
|
|
24647
|
+
return B1.text.family.heading;
|
|
24648
24648
|
default:
|
|
24649
24649
|
return t2;
|
|
24650
24650
|
}
|
|
24651
24651
|
}
|
|
24652
24652
|
function j4(t2) {
|
|
24653
24653
|
if (t2 === void 0)
|
|
24654
|
-
return
|
|
24654
|
+
return B1.text.size.normal;
|
|
24655
24655
|
if (typeof t2 == "number")
|
|
24656
24656
|
return t2;
|
|
24657
24657
|
switch (t2) {
|
|
24658
24658
|
case "xxsmall":
|
|
24659
|
-
return
|
|
24659
|
+
return B1.text.size.xxsmall;
|
|
24660
24660
|
case "xsmall":
|
|
24661
|
-
return
|
|
24661
|
+
return B1.text.size.xsmall;
|
|
24662
24662
|
case "small":
|
|
24663
|
-
return
|
|
24663
|
+
return B1.text.size.small;
|
|
24664
24664
|
case "normal":
|
|
24665
|
-
return
|
|
24665
|
+
return B1.text.size.normal;
|
|
24666
24666
|
case "large":
|
|
24667
|
-
return
|
|
24667
|
+
return B1.text.size.large;
|
|
24668
24668
|
case "xlarge":
|
|
24669
|
-
return
|
|
24669
|
+
return B1.text.size.xlarge;
|
|
24670
24670
|
case "xxlarge":
|
|
24671
|
-
return
|
|
24671
|
+
return B1.text.size.xxlarge;
|
|
24672
24672
|
case "heading":
|
|
24673
|
-
return
|
|
24673
|
+
return B1.text.size.heading;
|
|
24674
24674
|
}
|
|
24675
24675
|
}
|
|
24676
24676
|
function N9(t2) {
|
|
24677
24677
|
if (t2 === void 0)
|
|
24678
|
-
return
|
|
24678
|
+
return B1.text.height.normal;
|
|
24679
24679
|
if (typeof t2 == "number")
|
|
24680
24680
|
return t2 + 5;
|
|
24681
24681
|
switch (t2) {
|
|
24682
24682
|
case "xxsmall":
|
|
24683
|
-
return
|
|
24683
|
+
return B1.text.height.xxsmall;
|
|
24684
24684
|
case "xsmall":
|
|
24685
|
-
return
|
|
24685
|
+
return B1.text.height.xsmall;
|
|
24686
24686
|
case "small":
|
|
24687
|
-
return
|
|
24687
|
+
return B1.text.height.small;
|
|
24688
24688
|
case "normal":
|
|
24689
|
-
return
|
|
24689
|
+
return B1.text.height.normal;
|
|
24690
24690
|
case "large":
|
|
24691
|
-
return
|
|
24691
|
+
return B1.text.height.large;
|
|
24692
24692
|
case "xlarge":
|
|
24693
|
-
return
|
|
24693
|
+
return B1.text.height.xlarge;
|
|
24694
24694
|
case "xxlarge":
|
|
24695
|
-
return
|
|
24695
|
+
return B1.text.height.xxlarge;
|
|
24696
24696
|
case "heading":
|
|
24697
|
-
return
|
|
24697
|
+
return B1.text.height.heading;
|
|
24698
24698
|
}
|
|
24699
24699
|
}
|
|
24700
24700
|
function M5(t2) {
|
|
24701
24701
|
if (t2 === void 0)
|
|
24702
|
-
return
|
|
24702
|
+
return B1.text.weight.normal;
|
|
24703
24703
|
if (typeof t2 == "number")
|
|
24704
24704
|
return t2;
|
|
24705
24705
|
switch (t2) {
|
|
24706
24706
|
case "xxthin":
|
|
24707
|
-
return
|
|
24707
|
+
return B1.text.weight.xxthin;
|
|
24708
24708
|
case "xthin":
|
|
24709
|
-
return
|
|
24709
|
+
return B1.text.weight.xthin;
|
|
24710
24710
|
case "thin":
|
|
24711
|
-
return
|
|
24711
|
+
return B1.text.weight.thin;
|
|
24712
24712
|
case "normal":
|
|
24713
|
-
return
|
|
24713
|
+
return B1.text.weight.normal;
|
|
24714
24714
|
case "bold":
|
|
24715
|
-
return
|
|
24715
|
+
return B1.text.weight.bold;
|
|
24716
24716
|
case "xbold":
|
|
24717
|
-
return
|
|
24717
|
+
return B1.text.weight.xbold;
|
|
24718
24718
|
case "xxbold":
|
|
24719
|
-
return
|
|
24719
|
+
return B1.text.weight.xxbold;
|
|
24720
24720
|
case "heavy":
|
|
24721
|
-
return
|
|
24721
|
+
return B1.text.weight.heavy;
|
|
24722
24722
|
case "xheavy":
|
|
24723
|
-
return
|
|
24723
|
+
return B1.text.weight.xheavy;
|
|
24724
24724
|
case "xxheavy":
|
|
24725
|
-
return
|
|
24725
|
+
return B1.text.weight.xxheavy;
|
|
24726
24726
|
case "heading":
|
|
24727
|
-
return
|
|
24727
|
+
return B1.text.weight.heading;
|
|
24728
24728
|
}
|
|
24729
24729
|
}
|
|
24730
24730
|
const bU1 = styled.div`
|
|
@@ -24842,22 +24842,22 @@ const bU1 = styled.div`
|
|
|
24842
24842
|
}, N = t2.variant === "clear" || t2.variant === "toggle" ? t2.variant : "normal", X = {
|
|
24843
24843
|
...t2,
|
|
24844
24844
|
pressed: e2,
|
|
24845
|
-
color: m || ((Q =
|
|
24846
|
-
colorActive: B || (($ =
|
|
24845
|
+
color: m || ((Q = B1.button[N]) == null ? void 0 : Q.color),
|
|
24846
|
+
colorActive: B || (($ = B1.button[N]) == null ? void 0 : $.colorActive),
|
|
24847
24847
|
textStyle: {},
|
|
24848
24848
|
label: "button-text"
|
|
24849
24849
|
}, c1 = {
|
|
24850
24850
|
...t2,
|
|
24851
24851
|
pressed: e2,
|
|
24852
|
-
iconColor: i2 || m || ((W =
|
|
24853
|
-
iconColorActive: w2 || B || ((G =
|
|
24852
|
+
iconColor: i2 || m || ((W = B1.button[N]) == null ? void 0 : W.color),
|
|
24853
|
+
iconColorActive: w2 || B || ((G = B1.button[N]) == null ? void 0 : G.colorActive),
|
|
24854
24854
|
label: "button-icon"
|
|
24855
24855
|
}, a1 = {
|
|
24856
24856
|
...t2,
|
|
24857
24857
|
variant: N,
|
|
24858
24858
|
paddingVert: f4 === void 0 && d === void 0 && g === void 0 && o4 === void 0 ? 12 : o4,
|
|
24859
24859
|
// if only backColor is set, use it for backColorActive (except for toggle variants)
|
|
24860
|
-
backColorActive: l2 || (N !== "toggle" ? c2 || ((J =
|
|
24860
|
+
backColorActive: l2 || (N !== "toggle" ? c2 || ((J = B1.button[N]) == null ? void 0 : J.backColor) : void 0)
|
|
24861
24861
|
};
|
|
24862
24862
|
let R = null;
|
|
24863
24863
|
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: [
|
|
@@ -24874,79 +24874,36 @@ const bU1 = styled.div`
|
|
|
24874
24874
|
children: R
|
|
24875
24875
|
}
|
|
24876
24876
|
);
|
|
24877
|
-
}, Bt2 = (t2) => {
|
|
24878
|
-
const {
|
|
24879
|
-
title: e2,
|
|
24880
|
-
width: r2 = C1.card.width,
|
|
24881
|
-
height: n5 = C1.card.height,
|
|
24882
|
-
halign: h2 = "left",
|
|
24883
|
-
valign: i2 = "top",
|
|
24884
|
-
onPressed: c2,
|
|
24885
|
-
children: l2,
|
|
24886
|
-
borderRadius: o4 = C1.card.borderRadius,
|
|
24887
|
-
onClick: d = I0
|
|
24888
|
-
} = t2;
|
|
24889
|
-
return /* @__PURE__ */ z1.jsx(
|
|
24890
|
-
R6,
|
|
24891
|
-
{
|
|
24892
|
-
...t2,
|
|
24893
|
-
label: "card-button",
|
|
24894
|
-
width: r2,
|
|
24895
|
-
height: n5,
|
|
24896
|
-
halign: h2,
|
|
24897
|
-
valign: i2,
|
|
24898
|
-
title: e2,
|
|
24899
|
-
borderRadius: o4,
|
|
24900
|
-
onClick: d,
|
|
24901
|
-
onPressed: c2,
|
|
24902
|
-
children: l2
|
|
24903
|
-
}
|
|
24904
|
-
);
|
|
24905
|
-
}, _U1 = (t2) => {
|
|
24906
|
-
const { onPressed: e2, children: r2, onClick: n5 = I0, padding: h2 = 6 } = t2;
|
|
24907
|
-
return /* @__PURE__ */ z1.jsx(
|
|
24908
|
-
R6,
|
|
24909
|
-
{
|
|
24910
|
-
...t2,
|
|
24911
|
-
label: "icon-button",
|
|
24912
|
-
padding: h2,
|
|
24913
|
-
halign: "center",
|
|
24914
|
-
valign: "center",
|
|
24915
|
-
onClick: n5,
|
|
24916
|
-
onPressed: e2,
|
|
24917
|
-
children: r2
|
|
24918
|
-
}
|
|
24919
|
-
);
|
|
24920
24877
|
};
|
|
24921
24878
|
function A3(t2) {
|
|
24922
24879
|
switch (t2) {
|
|
24923
24880
|
case "subtle":
|
|
24924
|
-
return console.error("subtle view backColor is deprecated"),
|
|
24881
|
+
return console.error("subtle view backColor is deprecated"), B1.text.color.subtle;
|
|
24925
24882
|
case "tile":
|
|
24926
|
-
return
|
|
24883
|
+
return B1.view.backColor.tile;
|
|
24927
24884
|
case "card":
|
|
24928
|
-
return
|
|
24885
|
+
return B1.view.backColor.card;
|
|
24929
24886
|
case "clear":
|
|
24930
|
-
return
|
|
24887
|
+
return B1.view.backColor.clear;
|
|
24931
24888
|
case "light":
|
|
24932
|
-
return
|
|
24889
|
+
return B1.view.backColor.light;
|
|
24933
24890
|
case "lighter":
|
|
24934
|
-
return
|
|
24891
|
+
return B1.view.backColor.lighter;
|
|
24935
24892
|
case "lightest":
|
|
24936
|
-
return
|
|
24893
|
+
return B1.view.backColor.lightest;
|
|
24937
24894
|
case "dark":
|
|
24938
|
-
return
|
|
24895
|
+
return B1.view.backColor.dark;
|
|
24939
24896
|
case "darker":
|
|
24940
|
-
return
|
|
24897
|
+
return B1.view.backColor.darker;
|
|
24941
24898
|
case "darkest":
|
|
24942
|
-
return
|
|
24899
|
+
return B1.view.backColor.darkest;
|
|
24943
24900
|
case "none":
|
|
24944
24901
|
return "transparent";
|
|
24945
24902
|
default:
|
|
24946
24903
|
return t2;
|
|
24947
24904
|
}
|
|
24948
24905
|
}
|
|
24949
|
-
const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 === "hidden" ? "hidden" : "initial", xa = (t2) => typeof t2 == "string" ? t2 === "true" : t2,
|
|
24906
|
+
const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 === "hidden" ? "hidden" : "initial", xa = (t2) => typeof t2 == "string" ? t2 === "true" : t2, _U1 = styled.div`
|
|
24950
24907
|
display: flex;
|
|
24951
24908
|
box-sizing: border-box;
|
|
24952
24909
|
${(t2) => xa(t2.$collapse) ? "flex-shrink: 0;" : ""}
|
|
@@ -24957,7 +24914,7 @@ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
|
|
|
24957
24914
|
}};
|
|
24958
24915
|
${({ $fixed: t2 }) => t2 === "none" ? "" : t2 === "top" ? "position: absolute; top: 0; left: 0; right: 0;" : "position: absolute; bottom: 0; left: 0; right: 0;"}
|
|
24959
24916
|
width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
|
|
24960
|
-
color: ${() =>
|
|
24917
|
+
color: ${() => B1.text.color.normal};
|
|
24961
24918
|
border-radius: ${(t2) => t2.$borderRadius}px;
|
|
24962
24919
|
overflow-y: ${({ $vscroll: t2 }) => b3(t2)};
|
|
24963
24920
|
overflow-x: ${({ $hscroll: t2 }) => b3(t2)};
|
|
@@ -25010,7 +24967,7 @@ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
|
|
|
25010
24967
|
style: G,
|
|
25011
24968
|
children: J
|
|
25012
24969
|
}) => /* @__PURE__ */ z1.jsx(
|
|
25013
|
-
|
|
24970
|
+
_U1,
|
|
25014
24971
|
{
|
|
25015
24972
|
"aria-label": t2 || "view",
|
|
25016
24973
|
$direction: e2,
|
|
@@ -25041,37 +24998,117 @@ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
|
|
|
25041
24998
|
style: G,
|
|
25042
24999
|
children: J
|
|
25043
25000
|
}
|
|
25044
|
-
),
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25048
|
-
|
|
25049
|
-
|
|
25050
|
-
|
|
25051
|
-
|
|
25052
|
-
|
|
25053
|
-
|
|
25054
|
-
|
|
25055
|
-
}
|
|
25056
|
-
|
|
25001
|
+
), Bt2 = (t2) => {
|
|
25002
|
+
const {
|
|
25003
|
+
variant: e2 = "normal",
|
|
25004
|
+
children: r2,
|
|
25005
|
+
square: n5 = false,
|
|
25006
|
+
width: h2 = n5 ? B1.card.height : B1.card.width,
|
|
25007
|
+
height: i2 = B1.card.height,
|
|
25008
|
+
borderRadius: c2 = B1.card.borderRadius,
|
|
25009
|
+
label: l2 = "card",
|
|
25010
|
+
...o4
|
|
25011
|
+
} = t2;
|
|
25012
|
+
let { backColor: d } = t2;
|
|
25013
|
+
const g = d ? void 0 : `dek-card-${e2}`;
|
|
25014
|
+
return d || (d = e2 === "normal" ? B1.view.backColor.card : B1.view.backColor.clear), /* @__PURE__ */ z1.jsx(
|
|
25015
|
+
u0,
|
|
25016
|
+
{
|
|
25017
|
+
width: h2,
|
|
25018
|
+
height: i2,
|
|
25019
|
+
className: g,
|
|
25020
|
+
backColor: d,
|
|
25021
|
+
borderRadius: c2,
|
|
25022
|
+
label: l2,
|
|
25023
|
+
...o4,
|
|
25024
|
+
children: r2
|
|
25025
|
+
}
|
|
25026
|
+
);
|
|
25027
|
+
}, Ct2 = (t2) => {
|
|
25028
|
+
const {
|
|
25029
|
+
title: e2,
|
|
25030
|
+
square: r2 = false,
|
|
25031
|
+
width: n5 = r2 ? B1.card.height : B1.card.width,
|
|
25032
|
+
height: h2 = B1.card.height,
|
|
25033
|
+
halign: i2 = "left",
|
|
25034
|
+
valign: c2 = "top",
|
|
25035
|
+
onPressed: l2,
|
|
25036
|
+
children: o4,
|
|
25037
|
+
borderRadius: d = B1.card.borderRadius,
|
|
25038
|
+
onClick: g = I0
|
|
25039
|
+
} = t2;
|
|
25040
|
+
return /* @__PURE__ */ z1.jsx(
|
|
25041
|
+
R6,
|
|
25042
|
+
{
|
|
25043
|
+
...t2,
|
|
25044
|
+
label: "card-button",
|
|
25045
|
+
width: n5,
|
|
25046
|
+
height: h2,
|
|
25047
|
+
halign: i2,
|
|
25048
|
+
valign: c2,
|
|
25049
|
+
title: e2,
|
|
25050
|
+
borderRadius: d,
|
|
25051
|
+
onClick: g,
|
|
25052
|
+
onPressed: l2,
|
|
25053
|
+
children: o4
|
|
25054
|
+
}
|
|
25055
|
+
);
|
|
25056
|
+
}, IU1 = (t2) => {
|
|
25057
|
+
const { onPressed: e2, children: r2, onClick: n5 = I0, padding: h2 = 6 } = t2;
|
|
25058
|
+
return /* @__PURE__ */ z1.jsx(
|
|
25059
|
+
R6,
|
|
25060
|
+
{
|
|
25061
|
+
...t2,
|
|
25062
|
+
label: "icon-button",
|
|
25063
|
+
padding: h2,
|
|
25064
|
+
halign: "center",
|
|
25065
|
+
valign: "center",
|
|
25066
|
+
onClick: n5,
|
|
25067
|
+
onPressed: e2,
|
|
25068
|
+
children: r2
|
|
25069
|
+
}
|
|
25070
|
+
);
|
|
25071
|
+
}, PU1 = ({ size: t2, weight: e2, ...r2 }) => /* @__PURE__ */ z1.jsx(h4, { size: t2 || "heading", weight: e2 || "heading", ...r2 }), WU1 = ({
|
|
25072
|
+
title: t2,
|
|
25073
|
+
active: e2,
|
|
25074
|
+
compact: r2 = false,
|
|
25075
|
+
onClick: n5 = I0
|
|
25076
|
+
}) => {
|
|
25077
|
+
const h2 = r2 ? 10 : 20, i2 = r2 ? "large" : void 0;
|
|
25078
|
+
return /* @__PURE__ */ z1.jsx(
|
|
25079
|
+
u0,
|
|
25080
|
+
{
|
|
25081
|
+
backColor: e2 ? "clear" : "none",
|
|
25082
|
+
backColorHover: e2 ? "lighter" : "light",
|
|
25083
|
+
borderRadius: 6,
|
|
25084
|
+
onClick: n5,
|
|
25085
|
+
collapse: true,
|
|
25086
|
+
className: e2 ? "dek-button-clear" : "",
|
|
25087
|
+
style: { marginBottom: 4, marginRight: 4, cursor: "pointer" },
|
|
25088
|
+
children: /* @__PURE__ */ z1.jsx(PU1, { size: i2, padding: h2, children: t2 })
|
|
25089
|
+
}
|
|
25090
|
+
);
|
|
25091
|
+
}, yt2 = ({
|
|
25057
25092
|
items: t2,
|
|
25058
25093
|
initialKey: e2,
|
|
25059
25094
|
direction: r2 = "vert",
|
|
25060
|
-
|
|
25095
|
+
compact: n5 = false,
|
|
25096
|
+
onSelect: h2 = I0
|
|
25061
25097
|
}) => {
|
|
25062
|
-
const [
|
|
25063
|
-
|
|
25098
|
+
const [i2, c2] = useState$1(e2), l2 = (o4) => {
|
|
25099
|
+
c2(o4), h2(o4);
|
|
25064
25100
|
};
|
|
25065
|
-
return /* @__PURE__ */ z1.jsx(u0, { children: /* @__PURE__ */ z1.jsx(u0, { direction: r2, collapse: true, children: t2.map(({ key:
|
|
25101
|
+
return /* @__PURE__ */ z1.jsx(u0, { children: /* @__PURE__ */ z1.jsx(u0, { direction: r2, collapse: true, children: t2.map(({ key: o4, title: d }) => /* @__PURE__ */ z1.jsx(
|
|
25066
25102
|
WU1,
|
|
25067
25103
|
{
|
|
25068
|
-
title:
|
|
25069
|
-
|
|
25070
|
-
|
|
25104
|
+
title: d,
|
|
25105
|
+
compact: n5,
|
|
25106
|
+
onClick: () => l2(o4),
|
|
25107
|
+
active: i2 === o4
|
|
25071
25108
|
},
|
|
25072
|
-
|
|
25109
|
+
o4
|
|
25073
25110
|
)) }) });
|
|
25074
|
-
},
|
|
25111
|
+
}, kt2 = (t2) => {
|
|
25075
25112
|
const { title: e2, icon: r2 = "left", onPressed: n5, children: h2, onClick: i2 = I0 } = t2;
|
|
25076
25113
|
return /* @__PURE__ */ z1.jsx(
|
|
25077
25114
|
R6,
|
|
@@ -25096,7 +25133,7 @@ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
|
|
|
25096
25133
|
padding: ${({ $padding: t2 }) => t2}px;
|
|
25097
25134
|
background-color: ${({ $backColor: t2 }) => t2};
|
|
25098
25135
|
border-radius: 50%;
|
|
25099
|
-
`, TU1 = styled.div``,
|
|
25136
|
+
`, TU1 = styled.div``, Ot2 = ({
|
|
25100
25137
|
loading: t2 = false,
|
|
25101
25138
|
disabled: e2 = false,
|
|
25102
25139
|
iconName: r2,
|
|
@@ -25105,7 +25142,7 @@ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
|
|
|
25105
25142
|
iconPadding: i2 = 2,
|
|
25106
25143
|
iconBackColor: c2 = "transparent"
|
|
25107
25144
|
}) => {
|
|
25108
|
-
const l2 = e2 ? "#888" : n5 === void 0 ?
|
|
25145
|
+
const l2 = e2 ? "#888" : n5 === void 0 ? B1.text.color.normal : n5;
|
|
25109
25146
|
return /* @__PURE__ */ z1.jsxs(
|
|
25110
25147
|
DU1,
|
|
25111
25148
|
{
|
|
@@ -25126,31 +25163,6 @@ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
|
|
|
25126
25163
|
]
|
|
25127
25164
|
}
|
|
25128
25165
|
);
|
|
25129
|
-
}, Ot2 = (t2) => {
|
|
25130
|
-
const {
|
|
25131
|
-
variant: e2 = "normal",
|
|
25132
|
-
children: r2,
|
|
25133
|
-
width: n5 = C1.card.width,
|
|
25134
|
-
height: h2 = C1.card.height,
|
|
25135
|
-
borderRadius: i2 = C1.card.borderRadius,
|
|
25136
|
-
label: c2 = "card",
|
|
25137
|
-
...l2
|
|
25138
|
-
} = t2;
|
|
25139
|
-
let { backColor: o4 } = t2;
|
|
25140
|
-
const d = o4 ? void 0 : `dek-card-${e2}`;
|
|
25141
|
-
return o4 || (o4 = e2 === "normal" ? C1.view.backColor.card : C1.view.backColor.clear), /* @__PURE__ */ z1.jsx(
|
|
25142
|
-
u0,
|
|
25143
|
-
{
|
|
25144
|
-
width: n5,
|
|
25145
|
-
height: h2,
|
|
25146
|
-
className: d,
|
|
25147
|
-
backColor: o4,
|
|
25148
|
-
borderRadius: i2,
|
|
25149
|
-
label: c2,
|
|
25150
|
-
...l2,
|
|
25151
|
-
children: r2
|
|
25152
|
-
}
|
|
25153
|
-
);
|
|
25154
25166
|
};
|
|
25155
25167
|
var $9 = {}, U9 = {}, h6 = { exports: {} }, wa = { exports: {} }, Y5 = { exports: {} }, Ba = { exports: {} }, G5 = { exports: {} }, Ca, W8;
|
|
25156
25168
|
function RU1() {
|
|
@@ -25166,7 +25178,7 @@ function RU1() {
|
|
|
25166
25178
|
!n5.call(v, E) && E !== V && t2(v, E, { get: () => M[E], enumerable: !(k = e2(M, E)) || k.enumerable });
|
|
25167
25179
|
return v;
|
|
25168
25180
|
}, c2 = (v) => i2(t2({}, "__esModule", { value: true }), v), l2 = {};
|
|
25169
|
-
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: () =>
|
|
25181
|
+
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);
|
|
25170
25182
|
var o4 = {};
|
|
25171
25183
|
h2(o4, { assign: () => H1, colors: () => k1, createStringInterpolator: () => S1, skipAnimation: () => y2, to: () => j1, willAdvance: () => K });
|
|
25172
25184
|
var d = G(), g = (v) => a1(v, d), f4 = G();
|
|
@@ -25284,7 +25296,7 @@ function RU1() {
|
|
|
25284
25296
|
v.clear(), d1(V, M);
|
|
25285
25297
|
}
|
|
25286
25298
|
}
|
|
25287
|
-
var
|
|
25299
|
+
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) => {
|
|
25288
25300
|
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);
|
|
25289
25301
|
}, g1 = /* @__PURE__ */ new Set(), M1 = [], I1 = [], R1 = 0, c23 = { get idle() {
|
|
25290
25302
|
return !g1.size && !M1.length;
|
|
@@ -25607,7 +25619,7 @@ function FU1() {
|
|
|
25607
25619
|
eachProp: () => I,
|
|
25608
25620
|
easings: () => J0,
|
|
25609
25621
|
flush: () => n1,
|
|
25610
|
-
flushCalls: () =>
|
|
25622
|
+
flushCalls: () => C1,
|
|
25611
25623
|
frameLoop: () => c23,
|
|
25612
25624
|
getFluidObservers: () => yt,
|
|
25613
25625
|
getFluidValue: () => W0,
|
|
@@ -25781,7 +25793,7 @@ function FU1() {
|
|
|
25781
25793
|
v.clear(), d1(V, M);
|
|
25782
25794
|
}
|
|
25783
25795
|
}
|
|
25784
|
-
var
|
|
25796
|
+
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) => {
|
|
25785
25797
|
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);
|
|
25786
25798
|
}, g1 = /* @__PURE__ */ new Set(), M1 = [], I1 = [], R1 = 0, c23 = {
|
|
25787
25799
|
get idle() {
|
|
@@ -26521,7 +26533,7 @@ function EU1() {
|
|
|
26521
26533
|
return (0, d1.forwardRef)((g1, M1) => {
|
|
26522
26534
|
let I1 = (0, d1.useRef)(null), R1 = H1 && (0, d1.useCallback)(($1) => {
|
|
26523
26535
|
I1.current = f1(M1, $1);
|
|
26524
|
-
}, [M1]), [c23, K1] =
|
|
26536
|
+
}, [M1]), [c23, K1] = C1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
|
|
26525
26537
|
let $1 = I1.current;
|
|
26526
26538
|
H1 && !$1 || ($1 ? K.applyAnimatedValues($1, c23.getValue(true)) : false) === false && H2();
|
|
26527
26539
|
}, z2 = new n1(W2, K1), M2 = (0, d1.useRef)();
|
|
@@ -26542,7 +26554,7 @@ function EU1() {
|
|
|
26542
26554
|
y2.type == "change" && I.raf.write(this.update);
|
|
26543
26555
|
}
|
|
26544
26556
|
};
|
|
26545
|
-
function
|
|
26557
|
+
function C1(y2, K) {
|
|
26546
26558
|
let H1 = /* @__PURE__ */ new Set();
|
|
26547
26559
|
return $.dependencies = H1, y2.style && (y2 = { ...y2, style: K.createAnimatedStyle(y2.style) }), y2 = new W(y2), $.dependencies = null, [y2, H1];
|
|
26548
26560
|
}
|
|
@@ -26720,7 +26732,7 @@ function jU1() {
|
|
|
26720
26732
|
I1.current = f1(M1, $1);
|
|
26721
26733
|
},
|
|
26722
26734
|
[M1]
|
|
26723
|
-
), [c23, K1] =
|
|
26735
|
+
), [c23, K1] = C1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
|
|
26724
26736
|
const $1 = I1.current;
|
|
26725
26737
|
if (H1 && !$1)
|
|
26726
26738
|
return;
|
|
@@ -26746,7 +26758,7 @@ function jU1() {
|
|
|
26746
26758
|
y2.type == "change" && I.raf.write(this.update);
|
|
26747
26759
|
}
|
|
26748
26760
|
};
|
|
26749
|
-
function
|
|
26761
|
+
function C1(y2, K) {
|
|
26750
26762
|
const H1 = /* @__PURE__ */ new Set();
|
|
26751
26763
|
return $.dependencies = H1, y2.style && (y2 = {
|
|
26752
26764
|
...y2,
|
|
@@ -26917,7 +26929,7 @@ function UU1() {
|
|
|
26917
26929
|
}
|
|
26918
26930
|
});
|
|
26919
26931
|
}
|
|
26920
|
-
var L1 = T1(), d1 = React__default, I = T1(), S = T1(), n1 = Vt(),
|
|
26932
|
+
var L1 = T1(), d1 = React__default, 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 {
|
|
26921
26933
|
constructor() {
|
|
26922
26934
|
this.velocity = 0, Object.assign(this, S1);
|
|
26923
26935
|
}
|
|
@@ -26927,14 +26939,14 @@ function UU1() {
|
|
|
26927
26939
|
for (let Y in S1)
|
|
26928
26940
|
s10[Y] == null && (s10[Y] = S1[Y]);
|
|
26929
26941
|
let { frequency: L, damping: A } = s10, { mass: P } = s10;
|
|
26930
|
-
return
|
|
26942
|
+
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;
|
|
26931
26943
|
}
|
|
26932
26944
|
function y2(s10, u7) {
|
|
26933
|
-
if (!
|
|
26945
|
+
if (!C1.is.und(u7.decay))
|
|
26934
26946
|
s10.duration = void 0;
|
|
26935
26947
|
else {
|
|
26936
|
-
let H = !
|
|
26937
|
-
(H || !
|
|
26948
|
+
let H = !C1.is.und(u7.tension) || !C1.is.und(u7.friction);
|
|
26949
|
+
(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);
|
|
26938
26950
|
}
|
|
26939
26951
|
}
|
|
26940
26952
|
var K = [], H1 = class {
|
|
@@ -27998,7 +28010,7 @@ function qU1() {
|
|
|
27998
28010
|
}
|
|
27999
28011
|
});
|
|
28000
28012
|
}
|
|
28001
|
-
var L1 = T1(), d1 = React__default, I = T1(), S = T1(), n1 = Vt(),
|
|
28013
|
+
var L1 = T1(), d1 = React__default, I = T1(), S = T1(), n1 = Vt(), C1 = T1(), f1 = {
|
|
28002
28014
|
default: { tension: 170, friction: 26 },
|
|
28003
28015
|
gentle: { tension: 120, friction: 14 },
|
|
28004
28016
|
wobbly: { tension: 180, friction: 12 },
|
|
@@ -28009,7 +28021,7 @@ function qU1() {
|
|
|
28009
28021
|
...f1.default,
|
|
28010
28022
|
mass: 1,
|
|
28011
28023
|
damping: 1,
|
|
28012
|
-
easing:
|
|
28024
|
+
easing: C1.easings.linear,
|
|
28013
28025
|
clamp: false
|
|
28014
28026
|
}, j1 = class {
|
|
28015
28027
|
constructor() {
|
|
@@ -28022,14 +28034,14 @@ function qU1() {
|
|
|
28022
28034
|
s10[Y] == null && (s10[Y] = S1[Y]);
|
|
28023
28035
|
let { frequency: L, damping: A } = s10;
|
|
28024
28036
|
const { mass: P } = s10;
|
|
28025
|
-
return
|
|
28037
|
+
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;
|
|
28026
28038
|
}
|
|
28027
28039
|
function y2(s10, u7) {
|
|
28028
|
-
if (!
|
|
28040
|
+
if (!C1.is.und(u7.decay))
|
|
28029
28041
|
s10.duration = void 0;
|
|
28030
28042
|
else {
|
|
28031
|
-
const H = !
|
|
28032
|
-
(H || !
|
|
28043
|
+
const H = !C1.is.und(u7.tension) || !C1.is.und(u7.friction);
|
|
28044
|
+
(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);
|
|
28033
28045
|
}
|
|
28034
28046
|
}
|
|
28035
28047
|
var K = [], H1 = class {
|
|
@@ -29314,10 +29326,10 @@ function YU1() {
|
|
|
29314
29326
|
var e2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, n5 = Object.getOwnPropertyNames, h2 = Object.prototype.hasOwnProperty, i2 = (I, S) => {
|
|
29315
29327
|
for (var n1 in S)
|
|
29316
29328
|
e2(I, n1, { get: S[n1], enumerable: true });
|
|
29317
|
-
}, c2 = (I, S, n1,
|
|
29329
|
+
}, c2 = (I, S, n1, C1) => {
|
|
29318
29330
|
if (S && typeof S == "object" || typeof S == "function")
|
|
29319
29331
|
for (let f1 of n5(S))
|
|
29320
|
-
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(
|
|
29332
|
+
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(C1 = r2(S, f1)) || C1.enumerable });
|
|
29321
29333
|
return I;
|
|
29322
29334
|
}, l2 = (I, S, n1) => (c2(I, S, "default"), n1 && c2(n1, S, "default")), o4 = (I) => c2(e2({}, "__esModule", { value: true }), I), d = {};
|
|
29323
29335
|
i2(d, { a: () => d1, animated: () => d1 }), t2.exports = o4(d);
|
|
@@ -29329,11 +29341,11 @@ function YU1() {
|
|
|
29329
29341
|
function F(I, S) {
|
|
29330
29342
|
if (!I.nodeType || !I.setAttribute)
|
|
29331
29343
|
return false;
|
|
29332
|
-
let n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style:
|
|
29344
|
+
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())));
|
|
29333
29345
|
f1 !== void 0 && (I.textContent = f1);
|
|
29334
|
-
for (let g1 in
|
|
29335
|
-
if (
|
|
29336
|
-
let M1 = C(g1,
|
|
29346
|
+
for (let g1 in C1)
|
|
29347
|
+
if (C1.hasOwnProperty(g1)) {
|
|
29348
|
+
let M1 = C(g1, C1[g1]);
|
|
29337
29349
|
B.test(g1) ? I.style.setProperty(g1, M1) : I.style[g1] = M1;
|
|
29338
29350
|
}
|
|
29339
29351
|
H1.forEach((g1, M1) => {
|
|
@@ -29343,18 +29355,18 @@ function YU1() {
|
|
|
29343
29355
|
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"];
|
|
29344
29356
|
N = Object.keys(N).reduce((I, S) => (c1.forEach((n1) => I[X(n1, S)] = I[S]), I), N);
|
|
29345
29357
|
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 {
|
|
29346
|
-
constructor({ x: I, y: S, z: n1, ...
|
|
29358
|
+
constructor({ x: I, y: S, z: n1, ...C1 }) {
|
|
29347
29359
|
let f1 = [], S1 = [];
|
|
29348
|
-
(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)(
|
|
29360
|
+
(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) => {
|
|
29349
29361
|
if (k1 === "transform")
|
|
29350
29362
|
f1.push([j1 || ""]), S1.push((y2) => [y2, y2 === ""]);
|
|
29351
29363
|
else if (Q.test(k1)) {
|
|
29352
|
-
if (delete
|
|
29364
|
+
if (delete C1[k1], R.is.und(j1))
|
|
29353
29365
|
return;
|
|
29354
29366
|
let y2 = $.test(k1) ? "px" : W.test(k1) ? "deg" : "";
|
|
29355
29367
|
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)]);
|
|
29356
29368
|
}
|
|
29357
|
-
}), f1.length && (
|
|
29369
|
+
}), f1.length && (C1.transform = new D(f1, S1)), super(C1);
|
|
29358
29370
|
}
|
|
29359
29371
|
}, D = class extends R.FluidValue {
|
|
29360
29372
|
constructor(I, S) {
|
|
@@ -29365,8 +29377,8 @@ function YU1() {
|
|
|
29365
29377
|
}
|
|
29366
29378
|
_get() {
|
|
29367
29379
|
let I = "", S = true;
|
|
29368
|
-
return (0, R.each)(this.inputs, (n1,
|
|
29369
|
-
let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[
|
|
29380
|
+
return (0, R.each)(this.inputs, (n1, C1) => {
|
|
29381
|
+
let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[C1](R.is.arr(f1) ? f1 : n1.map(R.getFluidValue));
|
|
29370
29382
|
I += " " + S1, S = S && j1;
|
|
29371
29383
|
}), S ? "none" : I;
|
|
29372
29384
|
}
|
|
@@ -29390,10 +29402,10 @@ function GU1() {
|
|
|
29390
29402
|
var e2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, n5 = Object.getOwnPropertyNames, h2 = Object.prototype.hasOwnProperty, i2 = (I, S) => {
|
|
29391
29403
|
for (var n1 in S)
|
|
29392
29404
|
e2(I, n1, { get: S[n1], enumerable: true });
|
|
29393
|
-
}, c2 = (I, S, n1,
|
|
29405
|
+
}, c2 = (I, S, n1, C1) => {
|
|
29394
29406
|
if (S && typeof S == "object" || typeof S == "function")
|
|
29395
29407
|
for (let f1 of n5(S))
|
|
29396
|
-
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(
|
|
29408
|
+
!h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(C1 = r2(S, f1)) || C1.enumerable });
|
|
29397
29409
|
return I;
|
|
29398
29410
|
}, l2 = (I, S, n1) => (c2(I, S, "default"), n1 && c2(n1, S, "default")), o4 = (I) => c2(e2({}, "__esModule", { value: true }), I), d = {};
|
|
29399
29411
|
i2(d, {
|
|
@@ -29408,7 +29420,7 @@ function GU1() {
|
|
|
29408
29420
|
function F(I, S) {
|
|
29409
29421
|
if (!I.nodeType || !I.setAttribute)
|
|
29410
29422
|
return false;
|
|
29411
|
-
const n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style:
|
|
29423
|
+
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(
|
|
29412
29424
|
(g1) => n1 || I.hasAttribute(g1) ? g1 : b[g1] || (b[g1] = g1.replace(
|
|
29413
29425
|
/([A-Z])/g,
|
|
29414
29426
|
// Attributes are written in dash case
|
|
@@ -29416,9 +29428,9 @@ function GU1() {
|
|
|
29416
29428
|
))
|
|
29417
29429
|
);
|
|
29418
29430
|
f1 !== void 0 && (I.textContent = f1);
|
|
29419
|
-
for (const g1 in
|
|
29420
|
-
if (
|
|
29421
|
-
const M1 = C(g1,
|
|
29431
|
+
for (const g1 in C1)
|
|
29432
|
+
if (C1.hasOwnProperty(g1)) {
|
|
29433
|
+
const M1 = C(g1, C1[g1]);
|
|
29422
29434
|
B.test(g1) ? I.style.setProperty(g1, M1) : I.style[g1] = M1;
|
|
29423
29435
|
}
|
|
29424
29436
|
H1.forEach((g1, M1) => {
|
|
@@ -29471,17 +29483,17 @@ function GU1() {
|
|
|
29471
29483
|
}, X = (I, S) => I + S.charAt(0).toUpperCase() + S.substring(1), c1 = ["Webkit", "Ms", "Moz", "O"];
|
|
29472
29484
|
N = Object.keys(N).reduce((I, S) => (c1.forEach((n1) => I[X(n1, S)] = I[S]), I), N);
|
|
29473
29485
|
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 {
|
|
29474
|
-
constructor({ x: I, y: S, z: n1, ...
|
|
29486
|
+
constructor({ x: I, y: S, z: n1, ...C1 }) {
|
|
29475
29487
|
const f1 = [], S1 = [];
|
|
29476
29488
|
(I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [
|
|
29477
29489
|
`translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`,
|
|
29478
29490
|
// prettier-ignore
|
|
29479
29491
|
J(j1, 0)
|
|
29480
|
-
])), (0, R.eachProp)(
|
|
29492
|
+
])), (0, R.eachProp)(C1, (j1, k1) => {
|
|
29481
29493
|
if (k1 === "transform")
|
|
29482
29494
|
f1.push([j1 || ""]), S1.push((y2) => [y2, y2 === ""]);
|
|
29483
29495
|
else if (Q.test(k1)) {
|
|
29484
|
-
if (delete
|
|
29496
|
+
if (delete C1[k1], R.is.und(j1))
|
|
29485
29497
|
return;
|
|
29486
29498
|
const y2 = $.test(k1) ? "px" : W.test(k1) ? "deg" : "";
|
|
29487
29499
|
f1.push((0, R.toArray)(j1)), S1.push(
|
|
@@ -29494,7 +29506,7 @@ function GU1() {
|
|
|
29494
29506
|
]
|
|
29495
29507
|
);
|
|
29496
29508
|
}
|
|
29497
|
-
}), f1.length && (
|
|
29509
|
+
}), f1.length && (C1.transform = new D(f1, S1)), super(C1);
|
|
29498
29510
|
}
|
|
29499
29511
|
}, D = class extends R.FluidValue {
|
|
29500
29512
|
constructor(I, S) {
|
|
@@ -29505,8 +29517,8 @@ function GU1() {
|
|
|
29505
29517
|
}
|
|
29506
29518
|
_get() {
|
|
29507
29519
|
let I = "", S = true;
|
|
29508
|
-
return (0, R.each)(this.inputs, (n1,
|
|
29509
|
-
const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[
|
|
29520
|
+
return (0, R.each)(this.inputs, (n1, C1) => {
|
|
29521
|
+
const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[C1](
|
|
29510
29522
|
R.is.arr(f1) ? f1 : n1.map(R.getFluidValue)
|
|
29511
29523
|
);
|
|
29512
29524
|
I += " " + S1, S = S && j1;
|
|
@@ -29882,7 +29894,7 @@ function aq1(t2, e2) {
|
|
|
29882
29894
|
var I = Z.defaultPrevented;
|
|
29883
29895
|
if (!I && D.state.active) {
|
|
29884
29896
|
if (D.isMovingCross == null) {
|
|
29885
|
-
var S = D.props, n1 = S.vertical,
|
|
29897
|
+
var S = D.props, n1 = S.vertical, C1 = S.ignoreCrossMove, f1 = C1;
|
|
29886
29898
|
typeof f1 != "number" && (f1 = f1 ? 1 : 0);
|
|
29887
29899
|
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]);
|
|
29888
29900
|
D.isMovingCross = y2 * f1 > k1;
|
|
@@ -29905,10 +29917,10 @@ function aq1(t2, e2) {
|
|
|
29905
29917
|
D.grabbing && (Z.preventDefault(), Z.stopPropagation());
|
|
29906
29918
|
var d1 = D.state.dragging, I = null;
|
|
29907
29919
|
if (d1 && D.touchMoves.length) {
|
|
29908
|
-
for (var S = D.props, n1 = S.cardSize,
|
|
29920
|
+
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; )
|
|
29909
29921
|
K = Date.now() - k1[y2].time;
|
|
29910
29922
|
y2++;
|
|
29911
|
-
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 *
|
|
29923
|
+
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);
|
|
29912
29924
|
I = Math.round(I1 + R1), D.touchMoves = [];
|
|
29913
29925
|
} else
|
|
29914
29926
|
I = Math.round(D.state.cursor);
|
|
@@ -30003,8 +30015,8 @@ function aq1(t2, e2) {
|
|
|
30003
30015
|
var Z = this;
|
|
30004
30016
|
this.AnimatedComponent = (0, n5.animated)(D.component);
|
|
30005
30017
|
var L1 = function(I) {
|
|
30006
|
-
var S = I.index, n1 = I.modIndex,
|
|
30007
|
-
return Z.usedCursor =
|
|
30018
|
+
var S = I.index, n1 = I.modIndex, C1 = I.cursor, f1 = I.state;
|
|
30019
|
+
return Z.usedCursor = C1, Z.props.renderCard(S, n1, C1, f1);
|
|
30008
30020
|
};
|
|
30009
30021
|
this.AnimatedCard = (0, n5.animated)(L1);
|
|
30010
30022
|
}
|
|
@@ -30016,8 +30028,8 @@ function aq1(t2, e2) {
|
|
|
30016
30028
|
}, {
|
|
30017
30029
|
key: "getComputedCursor",
|
|
30018
30030
|
value: function() {
|
|
30019
|
-
var D = this.props, Z = D.cardCount, L1 = D.loop, d1 = D.maxOverflow, I = this.state, S = I.cursor, n1 = I.dragging,
|
|
30020
|
-
return L1 || (
|
|
30031
|
+
var D = this.props, Z = D.cardCount, L1 = D.loop, d1 = D.maxOverflow, I = this.state, S = I.cursor, n1 = I.dragging, C1 = S;
|
|
30032
|
+
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;
|
|
30021
30033
|
}
|
|
30022
30034
|
}, {
|
|
30023
30035
|
key: "getUsedCursor",
|
|
@@ -30031,9 +30043,9 @@ function aq1(t2, e2) {
|
|
|
30031
30043
|
d1.cardSize;
|
|
30032
30044
|
var I = d1.cardCount, S = d1.cardPadCount;
|
|
30033
30045
|
d1.renderCard;
|
|
30034
|
-
var n1 = d1.tension,
|
|
30046
|
+
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 = {
|
|
30035
30047
|
tension: n1,
|
|
30036
|
-
friction:
|
|
30048
|
+
friction: C1,
|
|
30037
30049
|
precision: f1
|
|
30038
30050
|
}, K = this.getComputedCursor();
|
|
30039
30051
|
return /* @__PURE__ */ r2.default.createElement(n5.Spring, {
|
|
@@ -30965,7 +30977,7 @@ var _q1 = er.exports;
|
|
|
30965
30977
|
}, {
|
|
30966
30978
|
key: "render",
|
|
30967
30979
|
value: function() {
|
|
30968
|
-
var W, G, J, r1, D, Z = this.props, L1 = Z.baseClassName, d1 = Z.controlClassName, I = Z.placeholderClassName, S = Z.menuClassName, n1 = Z.arrowClassName,
|
|
30980
|
+
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", {
|
|
30969
30981
|
className: H1
|
|
30970
30982
|
}, k1), R1 = this.state.isOpen ? e2.default.createElement("div", {
|
|
30971
30983
|
className: g1,
|
|
@@ -30981,7 +30993,7 @@ var _q1 = er.exports;
|
|
|
30981
30993
|
"aria-haspopup": "listbox"
|
|
30982
30994
|
}, I1, e2.default.createElement("div", {
|
|
30983
30995
|
className: "".concat(L1, "-arrow-wrapper")
|
|
30984
|
-
}, f1 &&
|
|
30996
|
+
}, f1 && C1 ? this.state.isOpen ? f1 : C1 : e2.default.createElement("span", {
|
|
30985
30997
|
className: M1
|
|
30986
30998
|
}))), R1);
|
|
30987
30999
|
}
|
|
@@ -33044,7 +33056,7 @@ Q6.write = function(t2, e2, r2, n5, h2, i2) {
|
|
|
33044
33056
|
case "ucs-2":
|
|
33045
33057
|
case "utf16le":
|
|
33046
33058
|
case "utf-16le":
|
|
33047
|
-
return
|
|
33059
|
+
return C1(this, z, p4);
|
|
33048
33060
|
default:
|
|
33049
33061
|
if (O)
|
|
33050
33062
|
throw new TypeError("Unknown encoding: " + x);
|
|
@@ -33306,7 +33318,7 @@ Q6.write = function(t2, e2, r2, n5, h2, i2) {
|
|
|
33306
33318
|
T += S2[x[q]];
|
|
33307
33319
|
return T;
|
|
33308
33320
|
}
|
|
33309
|
-
function
|
|
33321
|
+
function C1(x, z, p4) {
|
|
33310
33322
|
const O = x.slice(z, p4);
|
|
33311
33323
|
let T = "";
|
|
33312
33324
|
for (let q = 0; q < O.length - 1; q += 2)
|
|
@@ -34473,7 +34485,7 @@ body {
|
|
|
34473
34485
|
)
|
|
34474
34486
|
] }), SG1 = styled.div`
|
|
34475
34487
|
position: relative;
|
|
34476
|
-
background-color: ${(t2) => t2.$pressed ?
|
|
34488
|
+
background-color: ${(t2) => t2.$pressed ? B1.view.backColor.lighter : A3(t2.$backColor)};
|
|
34477
34489
|
border-radius: 10px;
|
|
34478
34490
|
padding: 16px;
|
|
34479
34491
|
padding-top: 8px;
|
|
@@ -34483,19 +34495,19 @@ body {
|
|
|
34483
34495
|
|
|
34484
34496
|
${F9};
|
|
34485
34497
|
`, AG1 = styled.div`
|
|
34486
|
-
font-size: ${() =>
|
|
34487
|
-
color: ${() =>
|
|
34498
|
+
font-size: ${() => B1.text.size.xsmall}px;
|
|
34499
|
+
color: ${() => B1.text.color.tint};
|
|
34488
34500
|
padding: 0;
|
|
34489
34501
|
padding-top: 8px;
|
|
34490
34502
|
margin-left: 4px;
|
|
34491
34503
|
margin-bottom: -4px;
|
|
34492
34504
|
text-transform: uppercase;
|
|
34493
34505
|
`, bG1 = styled.div`
|
|
34494
|
-
font-family: ${() =>
|
|
34495
|
-
font-size: ${() =>
|
|
34496
|
-
line-height: ${() =>
|
|
34497
|
-
font-weight: ${() =>
|
|
34498
|
-
color: ${() =>
|
|
34506
|
+
font-family: ${() => B1.text.family.heading};
|
|
34507
|
+
font-size: ${() => B1.text.size.heading}px;
|
|
34508
|
+
line-height: ${() => B1.text.height.heading}px;
|
|
34509
|
+
font-weight: ${() => B1.text.weight.heading};
|
|
34510
|
+
color: ${() => B1.text.color.normal};
|
|
34499
34511
|
margin: 4px;
|
|
34500
34512
|
margin-bottom: 1px;
|
|
34501
34513
|
`, _G1 = styled.div`
|
|
@@ -34504,8 +34516,8 @@ body {
|
|
|
34504
34516
|
padding: 6px 6px 6px 4px;
|
|
34505
34517
|
padding-top: 4px;
|
|
34506
34518
|
`, IG1 = styled.div`
|
|
34507
|
-
font-size: ${() =>
|
|
34508
|
-
color: ${() =>
|
|
34519
|
+
font-size: ${() => B1.text.size.normal}px;
|
|
34520
|
+
color: ${() => B1.text.color.xsubtle};
|
|
34509
34521
|
margin-top: -1px;
|
|
34510
34522
|
padding-left: ${(t2) => t2.$hasIcon ? "6px" : "0px"};
|
|
34511
34523
|
`, PG1 = styled.div`
|
|
@@ -34551,7 +34563,7 @@ body {
|
|
|
34551
34563
|
{
|
|
34552
34564
|
name: i2,
|
|
34553
34565
|
size: 18,
|
|
34554
|
-
color:
|
|
34566
|
+
color: B1.text.color.xsubtle
|
|
34555
34567
|
}
|
|
34556
34568
|
) }),
|
|
34557
34569
|
/* @__PURE__ */ z1.jsx(IG1, { $hasIcon: !!i2, children: n5 })
|
|
@@ -38482,7 +38494,7 @@ class I4 extends Lt {
|
|
|
38482
38494
|
}
|
|
38483
38495
|
const Z = o2(h2.ticks.maxTicksLimit, f4), L1 = Math.max(1, Math.ceil(f4 / Z));
|
|
38484
38496
|
for (X = 0; X < f4; X += L1) {
|
|
38485
|
-
const d1 = this.getContext(X), I = i2.setContext(d1), S = l2.setContext(d1), n1 = I.lineWidth,
|
|
38497
|
+
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;
|
|
38486
38498
|
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({
|
|
38487
38499
|
tx1: R,
|
|
38488
38500
|
ty1: Q,
|
|
@@ -38493,7 +38505,7 @@ class I4 extends Lt {
|
|
|
38493
38505
|
x2: r1,
|
|
38494
38506
|
y2: D,
|
|
38495
38507
|
width: n1,
|
|
38496
|
-
color:
|
|
38508
|
+
color: C1,
|
|
38497
38509
|
borderDash: f1,
|
|
38498
38510
|
borderDashOffset: S1,
|
|
38499
38511
|
tickWidth: j1,
|
|
@@ -38541,8 +38553,8 @@ class I4 extends Lt {
|
|
|
38541
38553
|
const L1 = i2.setContext(this.getContext(F));
|
|
38542
38554
|
$ = this.getPixelForTick(F) + i2.labelOffset, W = this._resolveTickFontOptions(F), G = W.lineHeight, J = R2(c1) ? c1.length : 1;
|
|
38543
38555
|
const d1 = J / 2, I = L1.color, S = L1.textStrokeColor, n1 = L1.textStrokeWidth;
|
|
38544
|
-
let
|
|
38545
|
-
c2 ? (a1 = $, Q === "inner" && (F === N - 1 ?
|
|
38556
|
+
let C1 = Q;
|
|
38557
|
+
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);
|
|
38546
38558
|
let f1;
|
|
38547
38559
|
if (L1.showLabelBackdrop) {
|
|
38548
38560
|
const S1 = H0(L1.backdropPadding), j1 = Z.heights[F], k1 = Z.widths[F];
|
|
@@ -38583,7 +38595,7 @@ class I4 extends Lt {
|
|
|
38583
38595
|
color: I,
|
|
38584
38596
|
strokeColor: S,
|
|
38585
38597
|
strokeWidth: n1,
|
|
38586
|
-
textAlign:
|
|
38598
|
+
textAlign: C1,
|
|
38587
38599
|
textBaseline: D,
|
|
38588
38600
|
translation: [
|
|
38589
38601
|
a1,
|
|
@@ -42480,7 +42492,7 @@ const HZ1 = ({
|
|
|
42480
42492
|
subtitle: n5,
|
|
42481
42493
|
subtitleSize: h2 = "small",
|
|
42482
42494
|
backColor: i2,
|
|
42483
|
-
borderRadius: c2 =
|
|
42495
|
+
borderRadius: c2 = B1.card.borderRadius,
|
|
42484
42496
|
width: l2,
|
|
42485
42497
|
height: o4,
|
|
42486
42498
|
padding: d = 15,
|
|
@@ -42592,7 +42604,7 @@ const HZ1 = ({
|
|
|
42592
42604
|
}, l2 = r2 ? "none" : "light", o4 = /* @__PURE__ */ z1.jsxs(u0, { valign: "center", paddingRight: 10, children: [
|
|
42593
42605
|
/* @__PURE__ */ z1.jsx(h4, { size: "xlarge", weight: "bold", paddingRight: 2, children: t2 }),
|
|
42594
42606
|
!i2 && /* @__PURE__ */ z1.jsx(
|
|
42595
|
-
|
|
42607
|
+
IU1,
|
|
42596
42608
|
{
|
|
42597
42609
|
onClick: c2,
|
|
42598
42610
|
iconName: "IoCloseSharp",
|
|
@@ -45169,9 +45181,9 @@ function Gt2(t2 = /* @__PURE__ */ new Date()) {
|
|
|
45169
45181
|
const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45170
45182
|
__proto__: null,
|
|
45171
45183
|
Button: R6,
|
|
45172
|
-
ButtonLoadingIcon:
|
|
45173
|
-
Card:
|
|
45174
|
-
CardButton:
|
|
45184
|
+
ButtonLoadingIcon: Ot2,
|
|
45185
|
+
Card: Bt2,
|
|
45186
|
+
CardButton: Ct2,
|
|
45175
45187
|
Carousel: Mq1,
|
|
45176
45188
|
Cell: St2,
|
|
45177
45189
|
ColorPicker: At2,
|
|
@@ -45181,12 +45193,12 @@ const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
45181
45193
|
Header: Eq1,
|
|
45182
45194
|
HeadingText: PU1,
|
|
45183
45195
|
Icon: G4,
|
|
45184
|
-
IconButton:
|
|
45196
|
+
IconButton: IU1,
|
|
45185
45197
|
Image: It2,
|
|
45186
45198
|
LoadingDots: Cr,
|
|
45187
|
-
MenuBar:
|
|
45199
|
+
MenuBar: yt2,
|
|
45188
45200
|
MenuBarItem: WU1,
|
|
45189
|
-
PillButton:
|
|
45201
|
+
PillButton: kt2,
|
|
45190
45202
|
ProgressBar: Pt2,
|
|
45191
45203
|
Screen: Wt2,
|
|
45192
45204
|
ScreenLoadingOverlay: Dt2,
|
|
@@ -45201,7 +45213,7 @@ const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
45201
45213
|
formatDateTime: Yt2,
|
|
45202
45214
|
formatFromNow: Gt2,
|
|
45203
45215
|
getImageAsBase64: uG1,
|
|
45204
|
-
theme:
|
|
45216
|
+
theme: B1,
|
|
45205
45217
|
useDateTime: qt2,
|
|
45206
45218
|
useInterval: Ut2
|
|
45207
45219
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -49808,7 +49820,7 @@ const Zone = (props) => {
|
|
|
49808
49820
|
if (zone2.containerProps && Object.keys(zone2.containerProps).length > 0) {
|
|
49809
49821
|
const style = parsePropsForComponent(api2, zone2.containerProps);
|
|
49810
49822
|
components.push(
|
|
49811
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49823
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { "aria-label": `zone-${props.id}`, style, children: component })
|
|
49812
49824
|
);
|
|
49813
49825
|
} else {
|
|
49814
49826
|
components.push(component);
|
|
@@ -66849,7 +66861,7 @@ async function fetchUserPlugins(email, password) {
|
|
|
66849
66861
|
result.integrations.push({
|
|
66850
66862
|
key: "base",
|
|
66851
66863
|
pluginName: "base",
|
|
66852
|
-
pluginVersion: "0.
|
|
66864
|
+
pluginVersion: "0.27.0",
|
|
66853
66865
|
pluginConfig: []
|
|
66854
66866
|
});
|
|
66855
66867
|
return result;
|
|
@@ -66881,7 +66893,7 @@ const state = proxy({
|
|
|
66881
66893
|
const useEntities = () => {
|
|
66882
66894
|
return useSnapshot(state).entities;
|
|
66883
66895
|
};
|
|
66884
|
-
const Container$
|
|
66896
|
+
const Container$b = styled.div`
|
|
66885
66897
|
width: 50px;
|
|
66886
66898
|
height: 50px;
|
|
66887
66899
|
padding: 0;
|
|
@@ -66959,7 +66971,7 @@ const WeatherIcon = ({ type }) => {
|
|
|
66959
66971
|
}
|
|
66960
66972
|
};
|
|
66961
66973
|
const info = getWeatherTypeInfo(type);
|
|
66962
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$
|
|
66974
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$b, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
|
|
66963
66975
|
};
|
|
66964
66976
|
const WeatherComponent = () => {
|
|
66965
66977
|
const api2 = getPluginApi();
|
|
@@ -66985,7 +66997,7 @@ const WeatherComponent = () => {
|
|
|
66985
66997
|
] })
|
|
66986
66998
|
] });
|
|
66987
66999
|
};
|
|
66988
|
-
const Container$
|
|
67000
|
+
const Container$a = styled.div`
|
|
66989
67001
|
display: flex;
|
|
66990
67002
|
align-items: center;
|
|
66991
67003
|
width: 100%;
|
|
@@ -67016,7 +67028,7 @@ const HeaderRight = styled.div`
|
|
|
67016
67028
|
padding-right: 15px;
|
|
67017
67029
|
`;
|
|
67018
67030
|
const Header = ({ height = 70 }) => {
|
|
67019
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$
|
|
67031
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$a, { "aria-label": "header", $height: height, children: [
|
|
67020
67032
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderLeft, { "aria-label": "header-left", children: /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherComponent, { "aria-label": "weather" }) }),
|
|
67021
67033
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderCenter, { "aria-label": "header-center" }),
|
|
67022
67034
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderRight, { "aria-label": "header-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClockComponent, { "aria-label": "clock" }) })
|
|
@@ -67024,7 +67036,7 @@ const Header = ({ height = 70 }) => {
|
|
|
67024
67036
|
};
|
|
67025
67037
|
const About = () => {
|
|
67026
67038
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
|
|
67027
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.
|
|
67039
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.27.0"}` }),
|
|
67028
67040
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
|
|
67029
67041
|
] });
|
|
67030
67042
|
};
|
|
@@ -67050,7 +67062,7 @@ const Backgrounds = ({ api: api2 }) => {
|
|
|
67050
67062
|
});
|
|
67051
67063
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
|
|
67052
67064
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67053
|
-
|
|
67065
|
+
yt2,
|
|
67054
67066
|
{
|
|
67055
67067
|
items: menuItems,
|
|
67056
67068
|
onSelect: handleSelection,
|
|
@@ -67139,7 +67151,7 @@ const Boards = ({ api: api2 }) => {
|
|
|
67139
67151
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
|
|
67140
67152
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Boards" }),
|
|
67141
67153
|
/* @__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(
|
|
67142
|
-
|
|
67154
|
+
kt2,
|
|
67143
67155
|
{
|
|
67144
67156
|
title,
|
|
67145
67157
|
icon: "none",
|
|
@@ -67165,7 +67177,7 @@ const PluginDev = ({ api: api2 }) => {
|
|
|
67165
67177
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
|
|
67166
67178
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Components" }),
|
|
67167
67179
|
/* @__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(
|
|
67168
|
-
|
|
67180
|
+
kt2,
|
|
67169
67181
|
{
|
|
67170
67182
|
title: component,
|
|
67171
67183
|
icon: "none",
|
|
@@ -67174,7 +67186,7 @@ const PluginDev = ({ api: api2 }) => {
|
|
|
67174
67186
|
) }, component)) }),
|
|
67175
67187
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, paddingTop: 50, children: "Screens" }),
|
|
67176
67188
|
/* @__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(
|
|
67177
|
-
|
|
67189
|
+
kt2,
|
|
67178
67190
|
{
|
|
67179
67191
|
title: screen,
|
|
67180
67192
|
icon: "none",
|
|
@@ -67183,7 +67195,7 @@ const PluginDev = ({ api: api2 }) => {
|
|
|
67183
67195
|
) }, screen)) })
|
|
67184
67196
|
] }),
|
|
67185
67197
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { fixed: "bottom", height: 120, paddingLeft: 20, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67186
|
-
|
|
67198
|
+
Ct2,
|
|
67187
67199
|
{
|
|
67188
67200
|
title: "Settings",
|
|
67189
67201
|
variant: "clear",
|
|
@@ -67247,7 +67259,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67247
67259
|
];
|
|
67248
67260
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
|
|
67249
67261
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67250
|
-
|
|
67262
|
+
yt2,
|
|
67251
67263
|
{
|
|
67252
67264
|
items: menuItems,
|
|
67253
67265
|
onSelect: handleSelection,
|
|
@@ -67266,7 +67278,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67266
67278
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "Sets the color for Cards with variant='normal'.." })
|
|
67267
67279
|
}
|
|
67268
67280
|
),
|
|
67269
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
67281
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Bt2, { padding: 12, direction: "vert", style: { marginBottom: 40 }, children: [
|
|
67270
67282
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: "Card" }),
|
|
67271
67283
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "subtle", children: "Body" })
|
|
67272
67284
|
] }),
|
|
@@ -67276,7 +67288,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67276
67288
|
width: "100%",
|
|
67277
67289
|
maxWidth: 400,
|
|
67278
67290
|
height: 150,
|
|
67279
|
-
color: themeState["card-bg"] ||
|
|
67291
|
+
color: themeState["card-bg"] || B1.view.backColor.card,
|
|
67280
67292
|
onChange: (color) => {
|
|
67281
67293
|
themeState["card-bg"] = color;
|
|
67282
67294
|
setThemeState(themeState);
|
|
@@ -67312,7 +67324,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67312
67324
|
width: "100%",
|
|
67313
67325
|
maxWidth: 400,
|
|
67314
67326
|
height: 150,
|
|
67315
|
-
color: themeState["tile-bg"] ||
|
|
67327
|
+
color: themeState["tile-bg"] || B1.view.backColor.tile,
|
|
67316
67328
|
onChange: (color) => {
|
|
67317
67329
|
themeState["tile-bg"] = color;
|
|
67318
67330
|
setThemeState(themeState);
|
|
@@ -67343,7 +67355,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67343
67355
|
}
|
|
67344
67356
|
),
|
|
67345
67357
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
|
|
67346
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67358
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Clear Pill", variant: "clear" })
|
|
67347
67359
|
] }),
|
|
67348
67360
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67349
67361
|
At2,
|
|
@@ -67352,7 +67364,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67352
67364
|
width: "100%",
|
|
67353
67365
|
maxWidth: 400,
|
|
67354
67366
|
height: 150,
|
|
67355
|
-
color: themeState["clear-bg"] ||
|
|
67367
|
+
color: themeState["clear-bg"] || B1.view.backColor.clear,
|
|
67356
67368
|
onChange: (color) => {
|
|
67357
67369
|
themeState["clear-bg"] = color;
|
|
67358
67370
|
setThemeState(themeState);
|
|
@@ -67373,9 +67385,9 @@ const Theme = ({ api: api2 }) => {
|
|
|
67373
67385
|
}
|
|
67374
67386
|
),
|
|
67375
67387
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { style: { marginBottom: 40 }, direction: "horz", collapse: true, children: [
|
|
67376
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67388
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { title: "Button", variant: "normal" }),
|
|
67377
67389
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
|
|
67378
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67390
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Pill", variant: "normal" })
|
|
67379
67391
|
] }),
|
|
67380
67392
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67381
67393
|
At2,
|
|
@@ -67383,7 +67395,7 @@ const Theme = ({ api: api2 }) => {
|
|
|
67383
67395
|
width: "100%",
|
|
67384
67396
|
maxWidth: 400,
|
|
67385
67397
|
height: 150,
|
|
67386
|
-
color: themeState["button-bg"] ||
|
|
67398
|
+
color: themeState["button-bg"] || B1.button.normal.backColor,
|
|
67387
67399
|
onChange: (color) => {
|
|
67388
67400
|
themeState["button-bg"] = color;
|
|
67389
67401
|
setThemeState(themeState);
|
|
@@ -67468,7 +67480,7 @@ const SettingsScreen = ({ api: api2, isPluginDev }) => {
|
|
|
67468
67480
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { children: [
|
|
67469
67481
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "20% auto", padding: 20, paddingTop: 90, gap: 20, children: [
|
|
67470
67482
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67471
|
-
|
|
67483
|
+
yt2,
|
|
67472
67484
|
{
|
|
67473
67485
|
items: menuItems,
|
|
67474
67486
|
onSelect: handleMenuSelection,
|
|
@@ -71426,7 +71438,7 @@ hooks.HTML5_FMT = {
|
|
|
71426
71438
|
MONTH: "YYYY-MM"
|
|
71427
71439
|
// <input type="month" />
|
|
71428
71440
|
};
|
|
71429
|
-
const Container$
|
|
71441
|
+
const Container$9 = styled.div`
|
|
71430
71442
|
align-items: flex-start;
|
|
71431
71443
|
padding: 10px 20px;
|
|
71432
71444
|
margin-top: 130px;
|
|
@@ -71495,9 +71507,9 @@ const Greeting = ({ api: api2 }) => {
|
|
|
71495
71507
|
events2.nextEvent.startDate * 1e3
|
|
71496
71508
|
).format("h:mm")}`;
|
|
71497
71509
|
};
|
|
71498
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$
|
|
71510
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
|
|
71499
71511
|
};
|
|
71500
|
-
const Container$
|
|
71512
|
+
const Container$8 = styled.div`
|
|
71501
71513
|
height: 100vh;
|
|
71502
71514
|
width: 100vw;
|
|
71503
71515
|
background: ${(props) => `linear-gradient(90deg, ${props.$colorStart}, ${props.$colorEnd})`};
|
|
@@ -71537,12 +71549,12 @@ const Content = styled.div`
|
|
|
71537
71549
|
}
|
|
71538
71550
|
`;
|
|
71539
71551
|
const BlobBackground = ({
|
|
71540
|
-
colorStart = "#
|
|
71541
|
-
colorEnd = "#
|
|
71542
|
-
speed =
|
|
71552
|
+
colorStart = "#26a88d",
|
|
71553
|
+
colorEnd = "#00796b",
|
|
71554
|
+
speed = 1
|
|
71543
71555
|
}) => {
|
|
71544
71556
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71545
|
-
Container$
|
|
71557
|
+
Container$8,
|
|
71546
71558
|
{
|
|
71547
71559
|
"aria-label": "blob-background",
|
|
71548
71560
|
$colorStart: colorStart,
|
|
@@ -71551,7 +71563,7 @@ const BlobBackground = ({
|
|
|
71551
71563
|
}
|
|
71552
71564
|
);
|
|
71553
71565
|
};
|
|
71554
|
-
const Container$
|
|
71566
|
+
const Container$7 = styled.div`
|
|
71555
71567
|
height: 100vh;
|
|
71556
71568
|
width: 100vw;
|
|
71557
71569
|
background: ${(props) => `radial-gradient(${props.$colorStart}, ${props.$colorEnd})`};
|
|
@@ -71646,12 +71658,12 @@ const Light9 = styled(Light)`
|
|
|
71646
71658
|
left: 85%;
|
|
71647
71659
|
`;
|
|
71648
71660
|
const BlurredLightsBackground = ({
|
|
71649
|
-
colorStart = "#
|
|
71650
|
-
colorEnd = "#
|
|
71651
|
-
speed =
|
|
71661
|
+
colorStart = "#d2276c",
|
|
71662
|
+
colorEnd = "#170070",
|
|
71663
|
+
speed = 1
|
|
71652
71664
|
}) => {
|
|
71653
71665
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
71654
|
-
Container$
|
|
71666
|
+
Container$7,
|
|
71655
71667
|
{
|
|
71656
71668
|
"aria-label": "blurred-lights-background",
|
|
71657
71669
|
$colorStart: colorStart,
|
|
@@ -71670,7 +71682,7 @@ const BlurredLightsBackground = ({
|
|
|
71670
71682
|
}
|
|
71671
71683
|
);
|
|
71672
71684
|
};
|
|
71673
|
-
const Container$
|
|
71685
|
+
const Container$6 = styled.div`
|
|
71674
71686
|
height: 100vh;
|
|
71675
71687
|
width: 100vw;
|
|
71676
71688
|
display: flex;
|
|
@@ -71704,7 +71716,7 @@ const GradientBackground = ({
|
|
|
71704
71716
|
speed = 0.5
|
|
71705
71717
|
}) => {
|
|
71706
71718
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71707
|
-
Container$
|
|
71719
|
+
Container$6,
|
|
71708
71720
|
{
|
|
71709
71721
|
"aria-label": "gradient-background",
|
|
71710
71722
|
$colorStart: colorStart,
|
|
@@ -71713,7 +71725,7 @@ const GradientBackground = ({
|
|
|
71713
71725
|
}
|
|
71714
71726
|
);
|
|
71715
71727
|
};
|
|
71716
|
-
const Container$
|
|
71728
|
+
const Container$5 = styled.div`
|
|
71717
71729
|
position: absolute;
|
|
71718
71730
|
top: 0;
|
|
71719
71731
|
bottom: 0;
|
|
@@ -71780,13 +71792,184 @@ const ImageBackground = ({ itemKey = "fibre", opacity }) => {
|
|
|
71780
71792
|
};
|
|
71781
71793
|
const background = backgrounds[itemKey];
|
|
71782
71794
|
opacity = opacity === void 0 ? background.opacity : opacity;
|
|
71783
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$
|
|
71795
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$5, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
|
|
71796
|
+
};
|
|
71797
|
+
const Container$4 = styled.div`
|
|
71798
|
+
height: 100vh;
|
|
71799
|
+
width: 100vw;
|
|
71800
|
+
xbackground: ${(props) => `radial-gradient(
|
|
71801
|
+
${props.$colorStart} 0%,
|
|
71802
|
+
${props.$colorEnd} 100%
|
|
71803
|
+
)`};
|
|
71804
|
+
`;
|
|
71805
|
+
const speedFactor = 2;
|
|
71806
|
+
const Slant1 = styled.div`
|
|
71807
|
+
animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
|
|
71808
|
+
infinite alternate;
|
|
71809
|
+
background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
|
|
71810
|
+
bottom: 0;
|
|
71811
|
+
left: -50%;
|
|
71812
|
+
opacity: 0.5;
|
|
71813
|
+
position: fixed;
|
|
71814
|
+
right: -50%;
|
|
71815
|
+
top: 0;
|
|
71816
|
+
z-index: -1;
|
|
71817
|
+
|
|
71818
|
+
@keyframes slide {
|
|
71819
|
+
0% {
|
|
71820
|
+
transform: translateX(-25%);
|
|
71821
|
+
}
|
|
71822
|
+
100% {
|
|
71823
|
+
transform: translateX(25%);
|
|
71824
|
+
}
|
|
71825
|
+
}
|
|
71826
|
+
`;
|
|
71827
|
+
const Slant2 = styled.div`
|
|
71828
|
+
animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
|
|
71829
|
+
infinite alternate;
|
|
71830
|
+
animation-direction: alternate-reverse;
|
|
71831
|
+
animation-duration: ${({ $speed }) => ($speed + 1) * speedFactor}s;
|
|
71832
|
+
background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
|
|
71833
|
+
bottom: 0;
|
|
71834
|
+
left: -50%;
|
|
71835
|
+
opacity: 0.5;
|
|
71836
|
+
position: fixed;
|
|
71837
|
+
right: -50%;
|
|
71838
|
+
top: 0;
|
|
71839
|
+
z-index: -1;
|
|
71840
|
+
|
|
71841
|
+
@keyframes slide {
|
|
71842
|
+
0% {
|
|
71843
|
+
transform: translateX(-25%);
|
|
71844
|
+
}
|
|
71845
|
+
100% {
|
|
71846
|
+
transform: translateX(25%);
|
|
71847
|
+
}
|
|
71848
|
+
}
|
|
71849
|
+
`;
|
|
71850
|
+
const Slant3 = styled.div`
|
|
71851
|
+
animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
|
|
71852
|
+
infinite alternate;
|
|
71853
|
+
animation-duration: ${({ $speed }) => ($speed + 2) * speedFactor}s;
|
|
71854
|
+
background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
|
|
71855
|
+
bottom: 0;
|
|
71856
|
+
left: -50%;
|
|
71857
|
+
opacity: 0.5;
|
|
71858
|
+
position: fixed;
|
|
71859
|
+
right: -50%;
|
|
71860
|
+
top: 0;
|
|
71861
|
+
z-index: -1;
|
|
71862
|
+
|
|
71863
|
+
@keyframes slide {
|
|
71864
|
+
0% {
|
|
71865
|
+
transform: translateX(-25%);
|
|
71866
|
+
}
|
|
71867
|
+
100% {
|
|
71868
|
+
transform: translateX(25%);
|
|
71869
|
+
}
|
|
71870
|
+
}
|
|
71871
|
+
`;
|
|
71872
|
+
const SlantBackground = ({
|
|
71873
|
+
colorStart = "#6c3",
|
|
71874
|
+
colorEnd = "#09f",
|
|
71875
|
+
speed = 30
|
|
71876
|
+
}) => {
|
|
71877
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
71878
|
+
Container$4,
|
|
71879
|
+
{
|
|
71880
|
+
"aria-label": "slant-background",
|
|
71881
|
+
$colorStart: colorStart,
|
|
71882
|
+
$colorEnd: colorEnd,
|
|
71883
|
+
children: [
|
|
71884
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Slant1, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd }),
|
|
71885
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Slant2, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd }),
|
|
71886
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Slant3, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd })
|
|
71887
|
+
]
|
|
71888
|
+
}
|
|
71889
|
+
);
|
|
71890
|
+
};
|
|
71891
|
+
const Container$3 = styled.div`
|
|
71892
|
+
height: 100vh;
|
|
71893
|
+
width: 100vw;
|
|
71894
|
+
background: ${(props) => `radial-gradient(
|
|
71895
|
+
${props.$colorStart} 0%,
|
|
71896
|
+
${props.$colorEnd} 100%
|
|
71897
|
+
)`};
|
|
71898
|
+
`;
|
|
71899
|
+
const Ocean = styled.div`
|
|
71900
|
+
height: ${({ $height }) => $height * 3}%;
|
|
71901
|
+
width: 100%;
|
|
71902
|
+
position: absolute;
|
|
71903
|
+
bottom: 0;
|
|
71904
|
+
left: 0;
|
|
71905
|
+
background: #015871;
|
|
71906
|
+
`;
|
|
71907
|
+
const Wave1 = styled.div`
|
|
71908
|
+
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg)
|
|
71909
|
+
repeat-x;
|
|
71910
|
+
position: absolute;
|
|
71911
|
+
width: 6400px;
|
|
71912
|
+
top: -198px;
|
|
71913
|
+
left: 0;
|
|
71914
|
+
height: 198px;
|
|
71915
|
+
transform: translate(0, 0, 0);
|
|
71916
|
+
animation: wave ${({ $speed }) => $speed * 70}s ease infinite;
|
|
71917
|
+
|
|
71918
|
+
@keyframes wave {
|
|
71919
|
+
0% {
|
|
71920
|
+
margin-left: 0;
|
|
71921
|
+
}
|
|
71922
|
+
100% {
|
|
71923
|
+
margin-left: -1600px;
|
|
71924
|
+
}
|
|
71925
|
+
}
|
|
71926
|
+
`;
|
|
71927
|
+
const Wave2 = styled.div`
|
|
71928
|
+
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg)
|
|
71929
|
+
repeat-x;
|
|
71930
|
+
position: absolute;
|
|
71931
|
+
width: 6400px;
|
|
71932
|
+
top: -168px;
|
|
71933
|
+
left: 0;
|
|
71934
|
+
height: 198px;
|
|
71935
|
+
transform: translate(0, 0, 0);
|
|
71936
|
+
animation: swell ${({ $speed }) => $speed * 40}s ease infinite;
|
|
71937
|
+
opacity: 1;
|
|
71938
|
+
|
|
71939
|
+
@keyframes swell {
|
|
71940
|
+
0%,
|
|
71941
|
+
100% {
|
|
71942
|
+
transform: translate(0, -30px);
|
|
71943
|
+
}
|
|
71944
|
+
50% {
|
|
71945
|
+
transform: translate(0, 5px);
|
|
71946
|
+
}
|
|
71947
|
+
}
|
|
71948
|
+
`;
|
|
71949
|
+
const WaveBackground = ({
|
|
71950
|
+
colorStart = "#3a88ba",
|
|
71951
|
+
colorEnd = "#0b5774",
|
|
71952
|
+
speed = 0.5,
|
|
71953
|
+
tide = 3
|
|
71954
|
+
}) => {
|
|
71955
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71956
|
+
Container$3,
|
|
71957
|
+
{
|
|
71958
|
+
"aria-label": "wave-background",
|
|
71959
|
+
$colorStart: colorStart,
|
|
71960
|
+
$colorEnd: colorEnd,
|
|
71961
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Ocean, { $height: tide, children: [
|
|
71962
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Wave1, { $speed: speed }),
|
|
71963
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Wave2, { $speed: speed })
|
|
71964
|
+
] })
|
|
71965
|
+
}
|
|
71966
|
+
);
|
|
71784
71967
|
};
|
|
71785
71968
|
const AboutScreen = ({ api: api2 }) => {
|
|
71786
71969
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { overlay: true, children: [
|
|
71787
71970
|
/* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "About" }),
|
|
71788
71971
|
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { paddingTop: 100, paddingHorz: 20, collapse: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71789
|
-
|
|
71972
|
+
Ct2,
|
|
71790
71973
|
{
|
|
71791
71974
|
title: "Settings",
|
|
71792
71975
|
iconName: "about",
|
|
@@ -98557,7 +98740,7 @@ const ComponentScreen = ({ api: api2 }) => {
|
|
|
98557
98740
|
}
|
|
98558
98741
|
),
|
|
98559
98742
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
98560
|
-
|
|
98743
|
+
kt2,
|
|
98561
98744
|
{
|
|
98562
98745
|
title: "RESET",
|
|
98563
98746
|
variant: "clear",
|
|
@@ -98716,17 +98899,17 @@ let Plugin$2 = class Plugin {
|
|
|
98716
98899
|
colorStart: {
|
|
98717
98900
|
type: "color",
|
|
98718
98901
|
title: "Start Color",
|
|
98719
|
-
default: "#
|
|
98902
|
+
default: "#d2276c"
|
|
98720
98903
|
},
|
|
98721
98904
|
colorEnd: {
|
|
98722
98905
|
type: "color",
|
|
98723
98906
|
title: "End Color",
|
|
98724
|
-
default: "#
|
|
98907
|
+
default: "#170070"
|
|
98725
98908
|
},
|
|
98726
98909
|
speed: {
|
|
98727
98910
|
type: "number",
|
|
98728
98911
|
title: "Speed",
|
|
98729
|
-
default:
|
|
98912
|
+
default: 1,
|
|
98730
98913
|
min: 0.1,
|
|
98731
98914
|
max: 2,
|
|
98732
98915
|
step: 0.1,
|
|
@@ -98742,12 +98925,38 @@ let Plugin$2 = class Plugin {
|
|
|
98742
98925
|
colorStart: {
|
|
98743
98926
|
type: "color",
|
|
98744
98927
|
title: "Start Color",
|
|
98745
|
-
default: "#
|
|
98928
|
+
default: "#26a88d"
|
|
98746
98929
|
},
|
|
98747
98930
|
colorEnd: {
|
|
98748
98931
|
type: "color",
|
|
98749
98932
|
title: "End Color",
|
|
98750
|
-
default: "#
|
|
98933
|
+
default: "#00796b"
|
|
98934
|
+
},
|
|
98935
|
+
speed: {
|
|
98936
|
+
type: "number",
|
|
98937
|
+
title: "Speed",
|
|
98938
|
+
default: 1,
|
|
98939
|
+
min: 0.1,
|
|
98940
|
+
max: 2,
|
|
98941
|
+
step: 0.1,
|
|
98942
|
+
minLabel: "Fast",
|
|
98943
|
+
maxLabel: "Slow"
|
|
98944
|
+
}
|
|
98945
|
+
}
|
|
98946
|
+
});
|
|
98947
|
+
registry2.registerCollectionItem("backgrounds", "wave", {
|
|
98948
|
+
name: "Wave",
|
|
98949
|
+
component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(WaveBackground, { ...props }),
|
|
98950
|
+
props: {
|
|
98951
|
+
colorStart: {
|
|
98952
|
+
type: "color",
|
|
98953
|
+
title: "Start Color",
|
|
98954
|
+
default: "#3a88ba"
|
|
98955
|
+
},
|
|
98956
|
+
colorEnd: {
|
|
98957
|
+
type: "color",
|
|
98958
|
+
title: "End Color",
|
|
98959
|
+
default: "#0b5774"
|
|
98751
98960
|
},
|
|
98752
98961
|
speed: {
|
|
98753
98962
|
type: "number",
|
|
@@ -98758,6 +98967,42 @@ let Plugin$2 = class Plugin {
|
|
|
98758
98967
|
step: 0.1,
|
|
98759
98968
|
minLabel: "Fast",
|
|
98760
98969
|
maxLabel: "Slow"
|
|
98970
|
+
},
|
|
98971
|
+
tide: {
|
|
98972
|
+
type: "number",
|
|
98973
|
+
title: "Tide",
|
|
98974
|
+
default: 3,
|
|
98975
|
+
min: 1,
|
|
98976
|
+
max: 10,
|
|
98977
|
+
step: 1,
|
|
98978
|
+
minLabel: "Low",
|
|
98979
|
+
maxLabel: "High"
|
|
98980
|
+
}
|
|
98981
|
+
}
|
|
98982
|
+
});
|
|
98983
|
+
registry2.registerCollectionItem("backgrounds", "slant", {
|
|
98984
|
+
name: "Slant",
|
|
98985
|
+
component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlantBackground, { ...props }),
|
|
98986
|
+
props: {
|
|
98987
|
+
colorStart: {
|
|
98988
|
+
type: "color",
|
|
98989
|
+
title: "Start Color",
|
|
98990
|
+
default: "#6c3"
|
|
98991
|
+
},
|
|
98992
|
+
colorEnd: {
|
|
98993
|
+
type: "color",
|
|
98994
|
+
title: "End Color",
|
|
98995
|
+
default: "#09f"
|
|
98996
|
+
},
|
|
98997
|
+
speed: {
|
|
98998
|
+
type: "number",
|
|
98999
|
+
title: "Speed",
|
|
99000
|
+
default: 30,
|
|
99001
|
+
min: 5,
|
|
99002
|
+
max: 55,
|
|
99003
|
+
step: 5,
|
|
99004
|
+
minLabel: "Fast",
|
|
99005
|
+
maxLabel: "Slow"
|
|
98761
99006
|
}
|
|
98762
99007
|
}
|
|
98763
99008
|
});
|
|
@@ -98789,7 +99034,7 @@ let Plugin$2 = class Plugin {
|
|
|
98789
99034
|
return [
|
|
98790
99035
|
{
|
|
98791
99036
|
key: "card-button",
|
|
98792
|
-
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99037
|
+
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { ...props })
|
|
98793
99038
|
},
|
|
98794
99039
|
{
|
|
98795
99040
|
key: "command-group",
|
|
@@ -99132,7 +99377,7 @@ const CalendarTiles = ({
|
|
|
99132
99377
|
more > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(MoreContainer, { children: [
|
|
99133
99378
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MoreSpacer, {}),
|
|
99134
99379
|
/* @__PURE__ */ jsxRuntimeExports.jsx(More, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99135
|
-
|
|
99380
|
+
kt2,
|
|
99136
99381
|
{
|
|
99137
99382
|
title: `${more} more today`,
|
|
99138
99383
|
icon: "none",
|
|
@@ -102210,7 +102455,8 @@ const EntityButton = ({
|
|
|
102210
102455
|
title,
|
|
102211
102456
|
entityId,
|
|
102212
102457
|
iconName = "IoMedicalSharp",
|
|
102213
|
-
variant = "toggle"
|
|
102458
|
+
variant = "toggle",
|
|
102459
|
+
square = true
|
|
102214
102460
|
}) => {
|
|
102215
102461
|
const entities = useEntities();
|
|
102216
102462
|
const [loading, setLoading] = useState$1(false);
|
|
@@ -102224,7 +102470,7 @@ const EntityButton = ({
|
|
|
102224
102470
|
const disabled = !entity;
|
|
102225
102471
|
const active = entity && entity.state === "on";
|
|
102226
102472
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102227
|
-
|
|
102473
|
+
Ct2,
|
|
102228
102474
|
{
|
|
102229
102475
|
variant,
|
|
102230
102476
|
active,
|
|
@@ -102237,7 +102483,8 @@ const EntityButton = ({
|
|
|
102237
102483
|
iconBackColor: active ? "#ffcc01" : "#ffffff22",
|
|
102238
102484
|
iconColor: active ? "#fff" : "#fff",
|
|
102239
102485
|
iconColorActive: "#fff",
|
|
102240
|
-
loading
|
|
102486
|
+
loading,
|
|
102487
|
+
square
|
|
102241
102488
|
}
|
|
102242
102489
|
);
|
|
102243
102490
|
};
|
|
@@ -102277,7 +102524,12 @@ function transformMediaData(data) {
|
|
|
102277
102524
|
album: data.attributes.media_album_name
|
|
102278
102525
|
};
|
|
102279
102526
|
}
|
|
102280
|
-
const MediaButton = ({
|
|
102527
|
+
const MediaButton = ({
|
|
102528
|
+
entityId,
|
|
102529
|
+
title = "Media",
|
|
102530
|
+
variant,
|
|
102531
|
+
square = true
|
|
102532
|
+
}) => {
|
|
102281
102533
|
const entities = useEntities();
|
|
102282
102534
|
const [loading, setLoading] = useState$1(false);
|
|
102283
102535
|
const [state2, setState2] = useState$1("");
|
|
@@ -102298,14 +102550,15 @@ const MediaButton = ({ entityId, title = "Media", variant }) => {
|
|
|
102298
102550
|
const iconName = state2 === "playing" ? "MdPause" : "MdPlayArrow";
|
|
102299
102551
|
const disabled = !entity;
|
|
102300
102552
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102301
|
-
|
|
102553
|
+
Ct2,
|
|
102302
102554
|
{
|
|
102303
102555
|
variant,
|
|
102304
102556
|
disabled: loading || disabled,
|
|
102305
102557
|
title,
|
|
102306
102558
|
onClick: handleStateToggle,
|
|
102307
102559
|
iconName,
|
|
102308
|
-
loading
|
|
102560
|
+
loading,
|
|
102561
|
+
square
|
|
102309
102562
|
}
|
|
102310
102563
|
);
|
|
102311
102564
|
};
|
|
@@ -102505,7 +102758,7 @@ const MediaView = ({ api: api2, entityId, showLargeContent = false }) => {
|
|
|
102505
102758
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MediaTrack, { entity: media }),
|
|
102506
102759
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { paddingTop: 0, collapse: true, children: [
|
|
102507
102760
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102508
|
-
|
|
102761
|
+
IU1,
|
|
102509
102762
|
{
|
|
102510
102763
|
variant: "clear",
|
|
102511
102764
|
width: 50,
|
|
@@ -102518,7 +102771,7 @@ const MediaView = ({ api: api2, entityId, showLargeContent = false }) => {
|
|
|
102518
102771
|
),
|
|
102519
102772
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ControlSpacer, {}),
|
|
102520
102773
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102521
|
-
|
|
102774
|
+
IU1,
|
|
102522
102775
|
{
|
|
102523
102776
|
variant: "clear",
|
|
102524
102777
|
width: 50,
|
|
@@ -102534,6 +102787,60 @@ const MediaView = ({ api: api2, entityId, showLargeContent = false }) => {
|
|
|
102534
102787
|
] })
|
|
102535
102788
|
] }) });
|
|
102536
102789
|
};
|
|
102790
|
+
function tryParseNumber(value, defValue) {
|
|
102791
|
+
const parsed = parseInt(value);
|
|
102792
|
+
return isNaN(parsed) ? defValue : parsed;
|
|
102793
|
+
}
|
|
102794
|
+
const SensorCard = ({
|
|
102795
|
+
title,
|
|
102796
|
+
entityId,
|
|
102797
|
+
iconName = "MdOutlineDeviceThermostat",
|
|
102798
|
+
clear = false,
|
|
102799
|
+
square = true
|
|
102800
|
+
}) => {
|
|
102801
|
+
const entity = useEntity(entityId);
|
|
102802
|
+
const state2 = entity ? tryParseNumber(entity.state) : void 0;
|
|
102803
|
+
const value = entity && state2 ? `${state2} ${entity.attributes.unit_of_measurement}` : "?";
|
|
102804
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102805
|
+
Bt2,
|
|
102806
|
+
{
|
|
102807
|
+
variant: clear ? "clear" : "normal",
|
|
102808
|
+
square,
|
|
102809
|
+
label: "sensor-card",
|
|
102810
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", padding: 10, paddingTop: 12, children: [
|
|
102811
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(G4, { name: iconName, size: 30 }) }),
|
|
102812
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", paddingHorz: 4, children: [
|
|
102813
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { size: "large", weight: "xbold", children: value }),
|
|
102814
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { size: "normal", weight: "normal", children: title })
|
|
102815
|
+
] })
|
|
102816
|
+
] })
|
|
102817
|
+
}
|
|
102818
|
+
);
|
|
102819
|
+
};
|
|
102820
|
+
const EntitiesScreen = () => {
|
|
102821
|
+
const entities = useEntities();
|
|
102822
|
+
const [selectedKey, setSelectedKey] = useState$1("");
|
|
102823
|
+
const menuItems = Object.keys(entities).map((key) => ({
|
|
102824
|
+
title: entities[key].attributes.friendly_name || "Unknown",
|
|
102825
|
+
key
|
|
102826
|
+
}));
|
|
102827
|
+
const handleMenuSelection = (key) => {
|
|
102828
|
+
setSelectedKey(key);
|
|
102829
|
+
};
|
|
102830
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wt2, { overlay: false, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "40% auto", rows: "60px auto", children: [
|
|
102831
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { colSpan: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "Home Assistant Entities" }) }),
|
|
102832
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "vert", vscroll: "auto", hscroll: "hidden", padding: 15, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
102833
|
+
yt2,
|
|
102834
|
+
{
|
|
102835
|
+
items: menuItems,
|
|
102836
|
+
onSelect: handleMenuSelection,
|
|
102837
|
+
initialKey: selectedKey,
|
|
102838
|
+
compact: true
|
|
102839
|
+
}
|
|
102840
|
+
) }),
|
|
102841
|
+
/* @__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) }) })
|
|
102842
|
+
] }) });
|
|
102843
|
+
};
|
|
102537
102844
|
class Plugin3 {
|
|
102538
102845
|
constructor(config2) {
|
|
102539
102846
|
__publicField(this, "config");
|
|
@@ -102568,6 +102875,18 @@ class Plugin3 {
|
|
|
102568
102875
|
{
|
|
102569
102876
|
key: "entity-button",
|
|
102570
102877
|
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(EntityButton, { ...props })
|
|
102878
|
+
},
|
|
102879
|
+
{
|
|
102880
|
+
key: "sensor-card",
|
|
102881
|
+
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(SensorCard, { ...props })
|
|
102882
|
+
}
|
|
102883
|
+
];
|
|
102884
|
+
}
|
|
102885
|
+
get screens() {
|
|
102886
|
+
return [
|
|
102887
|
+
{
|
|
102888
|
+
path: "/entities",
|
|
102889
|
+
element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(EntitiesScreen, { ...props })
|
|
102571
102890
|
}
|
|
102572
102891
|
];
|
|
102573
102892
|
}
|
|
@@ -102709,7 +103028,7 @@ async function updatePlugins(email, password) {
|
|
|
102709
103028
|
{
|
|
102710
103029
|
key: "base",
|
|
102711
103030
|
pluginName: "base",
|
|
102712
|
-
pluginVersion: "0.
|
|
103031
|
+
pluginVersion: "0.27.0",
|
|
102713
103032
|
pluginConfig: []
|
|
102714
103033
|
}
|
|
102715
103034
|
],
|
|
@@ -103889,7 +104208,7 @@ const transitionDelay = 0;
|
|
|
103889
104208
|
const BoardProvider = ({ email, password, plugin, pluginConfig }) => {
|
|
103890
104209
|
const config2 = useUserConfig(email, password, plugin, pluginConfig);
|
|
103891
104210
|
console.log("### LOADED", config2);
|
|
103892
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme:
|
|
104211
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme: B1, children: [
|
|
103893
104212
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { transitionDelay }),
|
|
103894
104213
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
|
|
103895
104214
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),
|