@appkit/dek-lib 0.25.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 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, B1, f1, S1;
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, B1 = console.group, f1 = console.groupCollapsed, S1 = console.groupEnd;
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: B1
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(${C1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${C1.button.brightnessPressed})` : "none"};
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 = C1.button[t2]) == null ? void 0 : J.backColor), c2 || (c2 = (r1 = C1.button[t2]) == null ? void 0 : r1.backColorActive), /* @__PURE__ */ z1.jsx(
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 || C1.button.normal.color, d = l2 ? i2 - 4 : i2, g = c2, f4 = l2 ? 2 : 0;
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
- }, C1 = {
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 C1.text.color.xxsubtle;
24621
+ return B1.text.color.xxsubtle;
24622
24622
  case "xsubtle":
24623
- return C1.text.color.xsubtle;
24623
+ return B1.text.color.xsubtle;
24624
24624
  case "subtle":
24625
- return C1.text.color.subtle;
24625
+ return B1.text.color.subtle;
24626
24626
  case "tint":
24627
- return C1.text.color.tint;
24627
+ return B1.text.color.tint;
24628
24628
  case "normal":
24629
- return C1.text.color.normal;
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 C1.text.family.normal;
24637
+ return B1.text.family.normal;
24638
24638
  case "condensed":
24639
- return C1.text.family.condensed;
24639
+ return B1.text.family.condensed;
24640
24640
  case "mono":
24641
- return C1.text.family.mono;
24641
+ return B1.text.family.mono;
24642
24642
  case "slab":
24643
- return C1.text.family.slab;
24643
+ return B1.text.family.slab;
24644
24644
  case "flex":
24645
- return C1.text.family.flex;
24645
+ return B1.text.family.flex;
24646
24646
  case "heading":
24647
- return C1.text.family.heading;
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 C1.text.size.normal;
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 C1.text.size.xxsmall;
24659
+ return B1.text.size.xxsmall;
24660
24660
  case "xsmall":
24661
- return C1.text.size.xsmall;
24661
+ return B1.text.size.xsmall;
24662
24662
  case "small":
24663
- return C1.text.size.small;
24663
+ return B1.text.size.small;
24664
24664
  case "normal":
24665
- return C1.text.size.normal;
24665
+ return B1.text.size.normal;
24666
24666
  case "large":
24667
- return C1.text.size.large;
24667
+ return B1.text.size.large;
24668
24668
  case "xlarge":
24669
- return C1.text.size.xlarge;
24669
+ return B1.text.size.xlarge;
24670
24670
  case "xxlarge":
24671
- return C1.text.size.xxlarge;
24671
+ return B1.text.size.xxlarge;
24672
24672
  case "heading":
24673
- return C1.text.size.heading;
24673
+ return B1.text.size.heading;
24674
24674
  }
24675
24675
  }
24676
24676
  function N9(t2) {
24677
24677
  if (t2 === void 0)
24678
- return C1.text.height.normal;
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 C1.text.height.xxsmall;
24683
+ return B1.text.height.xxsmall;
24684
24684
  case "xsmall":
24685
- return C1.text.height.xsmall;
24685
+ return B1.text.height.xsmall;
24686
24686
  case "small":
24687
- return C1.text.height.small;
24687
+ return B1.text.height.small;
24688
24688
  case "normal":
24689
- return C1.text.height.normal;
24689
+ return B1.text.height.normal;
24690
24690
  case "large":
24691
- return C1.text.height.large;
24691
+ return B1.text.height.large;
24692
24692
  case "xlarge":
24693
- return C1.text.height.xlarge;
24693
+ return B1.text.height.xlarge;
24694
24694
  case "xxlarge":
24695
- return C1.text.height.xxlarge;
24695
+ return B1.text.height.xxlarge;
24696
24696
  case "heading":
24697
- return C1.text.height.heading;
24697
+ return B1.text.height.heading;
24698
24698
  }
24699
24699
  }
24700
24700
  function M5(t2) {
24701
24701
  if (t2 === void 0)
24702
- return C1.text.weight.normal;
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 C1.text.weight.xxthin;
24707
+ return B1.text.weight.xxthin;
24708
24708
  case "xthin":
24709
- return C1.text.weight.xthin;
24709
+ return B1.text.weight.xthin;
24710
24710
  case "thin":
24711
- return C1.text.weight.thin;
24711
+ return B1.text.weight.thin;
24712
24712
  case "normal":
24713
- return C1.text.weight.normal;
24713
+ return B1.text.weight.normal;
24714
24714
  case "bold":
24715
- return C1.text.weight.bold;
24715
+ return B1.text.weight.bold;
24716
24716
  case "xbold":
24717
- return C1.text.weight.xbold;
24717
+ return B1.text.weight.xbold;
24718
24718
  case "xxbold":
24719
- return C1.text.weight.xxbold;
24719
+ return B1.text.weight.xxbold;
24720
24720
  case "heavy":
24721
- return C1.text.weight.heavy;
24721
+ return B1.text.weight.heavy;
24722
24722
  case "xheavy":
24723
- return C1.text.weight.xheavy;
24723
+ return B1.text.weight.xheavy;
24724
24724
  case "xxheavy":
24725
- return C1.text.weight.xxheavy;
24725
+ return B1.text.weight.xxheavy;
24726
24726
  case "heading":
24727
- return C1.text.weight.heading;
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 = C1.button[N]) == null ? void 0 : Q.color),
24846
- colorActive: B || (($ = C1.button[N]) == null ? void 0 : $.colorActive),
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 = C1.button[N]) == null ? void 0 : W.color),
24853
- iconColorActive: w2 || B || ((G = C1.button[N]) == null ? void 0 : G.colorActive),
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 = C1.button[N]) == null ? void 0 : J.backColor) : void 0)
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"), C1.text.color.subtle;
24881
+ return console.error("subtle view backColor is deprecated"), B1.text.color.subtle;
24925
24882
  case "tile":
24926
- return C1.view.backColor.tile;
24883
+ return B1.view.backColor.tile;
24927
24884
  case "card":
24928
- return C1.view.backColor.card;
24885
+ return B1.view.backColor.card;
24929
24886
  case "clear":
24930
- return C1.view.backColor.clear;
24887
+ return B1.view.backColor.clear;
24931
24888
  case "light":
24932
- return C1.view.backColor.light;
24889
+ return B1.view.backColor.light;
24933
24890
  case "lighter":
24934
- return C1.view.backColor.lighter;
24891
+ return B1.view.backColor.lighter;
24935
24892
  case "lightest":
24936
- return C1.view.backColor.lightest;
24893
+ return B1.view.backColor.lightest;
24937
24894
  case "dark":
24938
- return C1.view.backColor.dark;
24895
+ return B1.view.backColor.dark;
24939
24896
  case "darker":
24940
- return C1.view.backColor.darker;
24897
+ return B1.view.backColor.darker;
24941
24898
  case "darkest":
24942
- return C1.view.backColor.darkest;
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, IU1 = styled.div`
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: ${() => C1.text.color.normal};
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
- IU1,
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
- ), PU1 = ({ size: t2, weight: e2, ...r2 }) => /* @__PURE__ */ z1.jsx(h4, { size: t2 || "heading", weight: e2 || "heading", ...r2 }), WU1 = ({ title: t2, active: e2, onClick: r2 = I0 }) => /* @__PURE__ */ z1.jsx(
25045
- u0,
25046
- {
25047
- backColor: e2 ? "clear" : "none",
25048
- backColorHover: e2 ? "lighter" : "light",
25049
- borderRadius: 6,
25050
- onClick: r2,
25051
- collapse: true,
25052
- className: e2 ? "dek-button-clear" : "",
25053
- style: { marginBottom: 4, marginRight: 4, cursor: "pointer" },
25054
- children: /* @__PURE__ */ z1.jsx(PU1, { padding: 20, children: t2 })
25055
- }
25056
- ), Ct2 = ({
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
- onSelect: n5 = I0
25095
+ compact: n5 = false,
25096
+ onSelect: h2 = I0
25061
25097
  }) => {
25062
- const [h2, i2] = useState$1(e2), c2 = (l2) => {
25063
- i2(l2), n5(l2);
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: l2, title: o4 }) => /* @__PURE__ */ z1.jsx(
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: o4,
25069
- onClick: () => c2(l2),
25070
- active: h2 === l2
25104
+ title: d,
25105
+ compact: n5,
25106
+ onClick: () => l2(o4),
25107
+ active: i2 === o4
25071
25108
  },
25072
- l2
25109
+ o4
25073
25110
  )) }) });
25074
- }, yt2 = (t2) => {
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``, kt2 = ({
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 ? C1.text.color.normal : n5;
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: () => B1, 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);
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 B1 = (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) => {
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: () => B1,
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 B1 = (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) => {
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] = B1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
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 B1(y2, K) {
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] = B1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
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 B1(y2, K) {
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(), B1 = 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: B1.easings.linear, clamp: false }, j1 = class {
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 B1.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;
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 (!B1.is.und(u7.decay))
26945
+ if (!C1.is.und(u7.decay))
26934
26946
  s10.duration = void 0;
26935
26947
  else {
26936
- let H = !B1.is.und(u7.tension) || !B1.is.und(u7.friction);
26937
- (H || !B1.is.und(u7.frequency) || !B1.is.und(u7.damping) || !B1.is.und(u7.mass)) && (s10.duration = void 0, s10.decay = void 0), H && (s10.frequency = void 0);
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(), B1 = T1(), f1 = {
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: B1.easings.linear,
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 B1.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;
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 (!B1.is.und(u7.decay))
28040
+ if (!C1.is.und(u7.decay))
28029
28041
  s10.duration = void 0;
28030
28042
  else {
28031
- const H = !B1.is.und(u7.tension) || !B1.is.und(u7.friction);
28032
- (H || !B1.is.und(u7.frequency) || !B1.is.und(u7.damping) || !B1.is.und(u7.mass)) && (s10.duration = void 0, s10.decay = void 0), H && (s10.frequency = void 0);
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, B1) => {
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: !(B1 = r2(S, f1)) || B1.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: B1, 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())));
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 B1)
29335
- if (B1.hasOwnProperty(g1)) {
29336
- let M1 = C(g1, B1[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, ...B1 }) {
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)(B1, (j1, k1) => {
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 B1[k1], R.is.und(j1))
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 && (B1.transform = new D(f1, S1)), super(B1);
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, B1) => {
29369
- let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[B1](R.is.arr(f1) ? f1 : n1.map(R.getFluidValue));
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, B1) => {
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: !(B1 = r2(S, f1)) || B1.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: B1, children: f1, scrollTop: S1, scrollLeft: j1, viewBox: k1, ...y2 } = S, K = Object.values(y2), H1 = Object.keys(y2).map(
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 B1)
29420
- if (B1.hasOwnProperty(g1)) {
29421
- const M1 = C(g1, B1[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, ...B1 }) {
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)(B1, (j1, k1) => {
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 B1[k1], R.is.und(j1))
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 && (B1.transform = new D(f1, S1)), super(B1);
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, B1) => {
29509
- const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[B1](
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, B1 = S.ignoreCrossMove, f1 = B1;
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, B1 = 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; )
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 * B1, Math.floor(I1) - I1, Math.ceil(I1) - I1);
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, B1 = I.cursor, f1 = I.state;
30007
- return Z.usedCursor = B1, Z.props.renderCard(S, n1, B1, f1);
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, B1 = S;
30020
- return L1 || (B1 = (0, h2.clamp)(B1, 1 - Z, 0), n1 && S > 0 ? B1 = d1 - d1 / (S + 1) : n1 && S < 1 - Z && (B1 = 1 - Z - d1 + d1 / (1 - Z - S + 1))), B1;
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, B1 = d1.friction, f1 = d1.precision, S1 = d1.loop, j1 = l2(d1, ["cardSize", "cardCount", "cardPadCount", "renderCard", "tension", "friction", "precision", "loop"]), k1 = S1 ? S : 0, y2 = {
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: B1,
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, B1 = 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", {
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 && B1 ? this.state.isOpen ? f1 : B1 : e2.default.createElement("span", {
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 B1(this, z, p4);
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 B1(x, z, p4) {
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 ? C1.view.backColor.lighter : A3(t2.$backColor)};
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: ${() => C1.text.size.xsmall}px;
34487
- color: ${() => C1.text.color.tint};
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: ${() => C1.text.family.heading};
34495
- font-size: ${() => C1.text.size.heading}px;
34496
- line-height: ${() => C1.text.height.heading}px;
34497
- font-weight: ${() => C1.text.weight.heading};
34498
- color: ${() => C1.text.color.normal};
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: ${() => C1.text.size.normal}px;
34508
- color: ${() => C1.text.color.xsubtle};
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: C1.text.color.xsubtle
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, B1 = I.color, f1 = S.dash || [], S1 = S.dashOffset, j1 = I.tickWidth, k1 = I.tickColor, y2 = I.tickBorderDash || [], K = I.tickBorderDashOffset;
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: B1,
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 B1 = Q;
38545
- c2 ? (a1 = $, Q === "inner" && (F === N - 1 ? B1 = this.options.reverse ? "left" : "right" : F === 0 ? B1 = this.options.reverse ? "right" : "left" : B1 = "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);
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: B1,
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 = C1.card.borderRadius,
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
- _U1,
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: kt2,
45173
- Card: Ot2,
45174
- CardButton: Bt2,
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: _U1,
45196
+ IconButton: IU1,
45185
45197
  Image: It2,
45186
45198
  LoadingDots: Cr,
45187
- MenuBar: Ct2,
45199
+ MenuBar: yt2,
45188
45200
  MenuBarItem: WU1,
45189
- PillButton: yt2,
45201
+ PillButton: kt2,
45190
45202
  ProgressBar: Pt2,
45191
45203
  Screen: Wt2,
45192
45204
  ScreenLoadingOverlay: Dt2,
@@ -45200,7 +45212,8 @@ const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
45200
45212
  View: u0,
45201
45213
  formatDateTime: Yt2,
45202
45214
  formatFromNow: Gt2,
45203
- theme: C1,
45215
+ getImageAsBase64: uG1,
45216
+ theme: B1,
45204
45217
  useDateTime: qt2,
45205
45218
  useInterval: Ut2
45206
45219
  }, Symbol.toStringTag, { value: "Module" }));
@@ -49798,8 +49811,8 @@ const Zone = (props) => {
49798
49811
  if (zones.length > 1) {
49799
49812
  const components = [];
49800
49813
  zones.forEach((zone2) => {
49801
- if (zone2.plugin && zone2.component) {
49802
- const component = api2.plugin(zone2.plugin).component(zone2.component, {
49814
+ if (zone2.integration && zone2.component) {
49815
+ const component = api2.integration(zone2.integration).component(zone2.component, {
49803
49816
  ...parsePropsForComponent(api2, zone2.props),
49804
49817
  "aria-label": `zone-${props.id}`
49805
49818
  });
@@ -49807,7 +49820,7 @@ const Zone = (props) => {
49807
49820
  if (zone2.containerProps && Object.keys(zone2.containerProps).length > 0) {
49808
49821
  const style = parsePropsForComponent(api2, zone2.containerProps);
49809
49822
  components.push(
49810
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-label": `zone-${props.id}`, style, children: component })
49823
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { "aria-label": `zone-${props.id}`, style, children: component })
49811
49824
  );
49812
49825
  } else {
49813
49826
  components.push(component);
@@ -49830,9 +49843,9 @@ const Zone = (props) => {
49830
49843
  const zone = api2.board.zones.find(
49831
49844
  (z) => z.key === props.id
49832
49845
  );
49833
- if (zone && zone.plugin && zone.component) {
49834
- label = `${props.id}: ${zone.plugin}/${zone.component}`;
49835
- const component = api2.plugin(zone.plugin).component(zone.component, {
49846
+ if (zone && zone.integration && zone.component) {
49847
+ label = `${props.id}: ${zone.integration}/${zone.component}`;
49848
+ const component = api2.integration(zone.integration).component(zone.component, {
49836
49849
  ...parsePropsForComponent(api2, zone.props),
49837
49850
  "aria-label": `zone-${props.id}`
49838
49851
  });
@@ -50616,10 +50629,10 @@ class Registry {
50616
50629
  }
50617
50630
  const registry = new Registry();
50618
50631
  const globals = {
50619
- boards: {},
50620
- commandGroups: {},
50632
+ boards: [],
50633
+ commandGroups: [],
50621
50634
  plugins: {},
50622
- pluginInstances: {},
50635
+ integrationInstances: {},
50623
50636
  setLocation: () => {
50624
50637
  },
50625
50638
  registry,
@@ -66257,11 +66270,11 @@ async function getClient(email, password) {
66257
66270
  cache: new InMemoryCache()
66258
66271
  });
66259
66272
  }
66260
- const UserDataDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userData" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "location" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatar" } }, { "kind": "Field", "name": { "kind": "Name", "value": "boards" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "layout" } }, { "kind": "Field", "name": { "kind": "Name", "value": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "plugin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "commandGroups" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "commands" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "plugin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] } }] };
66273
+ const UserDataDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userData" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "location" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatar" } }, { "kind": "Field", "name": { "kind": "Name", "value": "boards" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "layout" } }, { "kind": "Field", "name": { "kind": "Name", "value": "base" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "commandGroups" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "commands" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] } }] };
66261
66274
  const UserPluginsAndIntegrationsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userPluginsAndIntegrations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "plugins" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "code" } }, { "kind": "Field", "name": { "kind": "Name", "value": "version" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginConfig" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] };
66262
66275
  const UserChangeDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "subscription", "name": { "kind": "Name", "value": "userChange" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userChange" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] } }] };
66263
66276
  const documents = {
66264
- "\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n zones {\n key\n plugin\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n plugin\n component\n props {\n key\n value\n }\n }\n }\n }\n }\n": UserDataDocument,
66277
+ "\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n integration\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n integration\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": UserDataDocument,
66265
66278
  "\n query userPluginsAndIntegrations {\n currentUser {\n plugins {\n name\n code\n version\n }\n integrations {\n key\n pluginName\n pluginVersion\n pluginConfig {\n key\n value\n }\n }\n }\n }\n": UserPluginsAndIntegrationsDocument,
66266
66279
  "\n subscription userChange {\n userChange {\n user {\n id\n }\n }\n }\n": UserChangeDocument
66267
66280
  };
@@ -66281,9 +66294,13 @@ const USER_DATA_QUERY = gql(`
66281
66294
  title
66282
66295
  key
66283
66296
  layout
66297
+ base {
66298
+ integration
66299
+ key
66300
+ }
66284
66301
  zones {
66285
66302
  key
66286
- plugin
66303
+ integration
66287
66304
  component
66288
66305
  props {
66289
66306
  key
@@ -66300,12 +66317,16 @@ const USER_DATA_QUERY = gql(`
66300
66317
  key
66301
66318
  commands {
66302
66319
  title
66303
- plugin
66320
+ integration
66304
66321
  component
66305
66322
  props {
66306
66323
  key
66307
66324
  value
66308
66325
  }
66326
+ containerProps {
66327
+ key
66328
+ value
66329
+ }
66309
66330
  }
66310
66331
  }
66311
66332
  }
@@ -66346,13 +66367,13 @@ const state$1 = proxy({
66346
66367
  data: null,
66347
66368
  loading: false
66348
66369
  });
66349
- let pluginInstances = {};
66350
- function getPluginInstances() {
66351
- return pluginInstances;
66370
+ let globalIntegrationInstances = {};
66371
+ function getIntegrationInstances() {
66372
+ return globalIntegrationInstances;
66352
66373
  }
66353
- function updateStatePlugins(plugins, instances) {
66354
- pluginInstances = instances;
66355
- state$1.plugins = plugins;
66374
+ function updateStatePlugins(pluginFactories, integrationInstances2) {
66375
+ globalIntegrationInstances = integrationInstances2;
66376
+ state$1.plugins = pluginFactories;
66356
66377
  }
66357
66378
  function updateStateData(data) {
66358
66379
  state$1.data = data;
@@ -66382,7 +66403,7 @@ async function updateData(email, password, plugin) {
66382
66403
  key: "dev",
66383
66404
  title: "Test Board",
66384
66405
  base: {
66385
- plugin: "base",
66406
+ integration: "base",
66386
66407
  key: "dev"
66387
66408
  },
66388
66409
  zones: []
@@ -66533,8 +66554,8 @@ class Api {
66533
66554
  messages() {
66534
66555
  return this.internal.messages();
66535
66556
  }
66536
- plugin(name) {
66537
- return this.internal.plugin(name);
66557
+ integration(key) {
66558
+ return this.internal.integration(key);
66538
66559
  }
66539
66560
  get registry() {
66540
66561
  return this.internal.registry;
@@ -66566,26 +66587,26 @@ class Api {
66566
66587
  open(boardKey) {
66567
66588
  this.internal.open(boardKey);
66568
66589
  }
66569
- get plugins() {
66570
- return this.internal.plugins;
66590
+ get integrations() {
66591
+ return this.internal.integrations;
66571
66592
  }
66572
66593
  get api() {
66573
- return this.plugin(this.integrationKey).api;
66594
+ return this.integration(this.integrationKey).api;
66574
66595
  }
66575
66596
  get state() {
66576
- return this.plugin(this.integrationKey).state;
66597
+ return this.integration(this.integrationKey).state;
66577
66598
  }
66578
66599
  get info() {
66579
- return this.plugin(this.integrationKey).info;
66600
+ return this.integration(this.integrationKey).info;
66580
66601
  }
66581
66602
  component(key, props) {
66582
- return this.plugin(this.integrationKey).component(key, props);
66603
+ return this.integration(this.integrationKey).component(key, props);
66583
66604
  }
66584
66605
  componentSchema(key) {
66585
- return this.plugin(this.integrationKey).componentSchema(key);
66606
+ return this.integration(this.integrationKey).componentSchema(key);
66586
66607
  }
66587
66608
  screen(path) {
66588
- return this.plugin(this.integrationKey).screen(path);
66609
+ return this.integration(this.integrationKey).screen(path);
66589
66610
  }
66590
66611
  }
66591
66612
  class ApiInternal {
@@ -66619,8 +66640,8 @@ class ApiInternal {
66619
66640
  messages() {
66620
66641
  return this.globals.messages;
66621
66642
  }
66622
- plugin(name) {
66623
- return this.createPluginWrapper(name);
66643
+ integration(key) {
66644
+ return this.createIntegrationWrapper(key);
66624
66645
  }
66625
66646
  get registry() {
66626
66647
  return this.globals.registry;
@@ -66633,6 +66654,8 @@ class ApiInternal {
66633
66654
  }
66634
66655
  get board() {
66635
66656
  return this.boards.find((board) => board.key === this.boardKey) || {
66657
+ title: "Missing board",
66658
+ key: "#error",
66636
66659
  zones: []
66637
66660
  };
66638
66661
  }
@@ -66654,20 +66677,20 @@ class ApiInternal {
66654
66677
  open(boardKey) {
66655
66678
  this.globals.setLocation(`/${boardKey}`);
66656
66679
  }
66657
- createPluginWrapper(integrationKey) {
66658
- const plugin = this.getPluginInstance(integrationKey);
66659
- const available = !!plugin;
66680
+ createIntegrationWrapper(integrationKey) {
66681
+ const integration = this.getIntegrationInstance(integrationKey);
66682
+ const available = !!integration;
66660
66683
  return {
66661
66684
  available,
66662
66685
  info: {
66663
- components: (plugin == null ? void 0 : plugin.components) ? plugin.components.map((component) => component.key) : [],
66664
- screens: (plugin == null ? void 0 : plugin.screens) ? plugin.screens.map((screen) => screen.path) : []
66686
+ components: (integration == null ? void 0 : integration.components) ? integration.components.map((component) => component.key) : [],
66687
+ screens: (integration == null ? void 0 : integration.screens) ? integration.screens.map((screen) => screen.path) : []
66665
66688
  },
66666
66689
  component: (key, props) => this.getComponent(integrationKey, key, props),
66667
66690
  componentSchema: (key) => this.getComponentSchema(integrationKey, key),
66668
66691
  screen: (path) => this.getScreen(integrationKey, path),
66669
66692
  board: (key) => this.getBoard(integrationKey, key),
66670
- api: (plugin == null ? void 0 : plugin.api) || {},
66693
+ api: (integration == null ? void 0 : integration.api) || {},
66671
66694
  state: {
66672
66695
  get: (key, defaultValue) => {
66673
66696
  if (!available) {
@@ -66687,20 +66710,20 @@ class ApiInternal {
66687
66710
  get globals() {
66688
66711
  return window.__dek_globals;
66689
66712
  }
66690
- get plugins() {
66691
- const plugins = {};
66692
- Object.keys(this.globals.pluginInstances).forEach((key) => {
66693
- plugins[key] = this.createPluginWrapper(key);
66713
+ get integrations() {
66714
+ const integrations = {};
66715
+ Object.keys(this.globals.integrationInstances).forEach((key) => {
66716
+ integrations[key] = this.createIntegrationWrapper(key);
66694
66717
  });
66695
- return plugins;
66718
+ return integrations;
66696
66719
  }
66697
- getPluginInstance(integrationKey) {
66698
- return this.globals.pluginInstances[integrationKey];
66720
+ getIntegrationInstance(integrationKey) {
66721
+ return this.globals.integrationInstances[integrationKey];
66699
66722
  }
66700
66723
  getComponent(integrationKey, componentKey, props) {
66701
- const plugin = this.getPluginInstance(integrationKey);
66702
- if (plugin) {
66703
- const component = plugin.components && plugin.components.find(
66724
+ const integration = this.getIntegrationInstance(integrationKey);
66725
+ if (integration) {
66726
+ const component = integration.components && integration.components.find(
66704
66727
  (c2) => c2.key.toLowerCase() === componentKey.toLowerCase()
66705
66728
  );
66706
66729
  if (!component) {
@@ -66708,15 +66731,15 @@ class ApiInternal {
66708
66731
  }
66709
66732
  return component.element({
66710
66733
  ...props,
66711
- plugin,
66734
+ plugin: integration,
66712
66735
  api: new Api(integrationKey)
66713
66736
  });
66714
66737
  }
66715
66738
  }
66716
66739
  getComponentSchema(integrationKey, componentKey) {
66717
- const plugin = this.getPluginInstance(integrationKey);
66718
- if (plugin) {
66719
- const component = plugin.components && plugin.components.find(
66740
+ const integration = this.getIntegrationInstance(integrationKey);
66741
+ if (integration) {
66742
+ const component = integration.components && integration.components.find(
66720
66743
  (c2) => c2.key.toLowerCase() === componentKey.toLowerCase()
66721
66744
  );
66722
66745
  if (component) {
@@ -66727,29 +66750,35 @@ class ApiInternal {
66727
66750
  }
66728
66751
  getScreen(integrationKey, screenPath) {
66729
66752
  if (integrationKey) {
66730
- const plugin = this.getPluginInstance(integrationKey);
66731
- if (plugin) {
66732
- const component = plugin.screens && plugin.screens.find(
66753
+ const integration = this.getIntegrationInstance(integrationKey);
66754
+ if (integration) {
66755
+ const component = integration.screens && integration.screens.find(
66733
66756
  (s4) => s4.path.toLowerCase() === screenPath.toLowerCase()
66734
66757
  );
66735
66758
  if (!component) {
66736
66759
  return;
66737
66760
  }
66738
- return component.element({ plugin, api: new Api(integrationKey) });
66761
+ return component.element({
66762
+ plugin: integration,
66763
+ api: new Api(integrationKey)
66764
+ });
66739
66765
  }
66740
66766
  }
66741
66767
  }
66742
66768
  getBoard(integrationKey, boardKey) {
66743
66769
  if (integrationKey) {
66744
- const plugin = this.getPluginInstance(integrationKey);
66745
- if (plugin) {
66746
- const component = plugin.boards && plugin.boards.find(
66770
+ const integration = this.getIntegrationInstance(integrationKey);
66771
+ if (integration) {
66772
+ const component = integration.boards && integration.boards.find(
66747
66773
  (c2) => c2.key.toLowerCase() === boardKey.toLowerCase()
66748
66774
  );
66749
66775
  if (!component) {
66750
66776
  return;
66751
66777
  }
66752
- return component.element({ plugin, api: new Api(integrationKey) });
66778
+ return component.element({
66779
+ plugin: integration,
66780
+ api: new Api(integrationKey)
66781
+ });
66753
66782
  }
66754
66783
  }
66755
66784
  }
@@ -66832,7 +66861,7 @@ async function fetchUserPlugins(email, password) {
66832
66861
  result.integrations.push({
66833
66862
  key: "base",
66834
66863
  pluginName: "base",
66835
- pluginVersion: "0.25.0",
66864
+ pluginVersion: "0.27.0",
66836
66865
  pluginConfig: []
66837
66866
  });
66838
66867
  return result;
@@ -66864,7 +66893,7 @@ const state = proxy({
66864
66893
  const useEntities = () => {
66865
66894
  return useSnapshot(state).entities;
66866
66895
  };
66867
- const Container$9 = styled.div`
66896
+ const Container$b = styled.div`
66868
66897
  width: 50px;
66869
66898
  height: 50px;
66870
66899
  padding: 0;
@@ -66942,7 +66971,7 @@ const WeatherIcon = ({ type }) => {
66942
66971
  }
66943
66972
  };
66944
66973
  const info = getWeatherTypeInfo(type);
66945
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
66974
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$b, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
66946
66975
  };
66947
66976
  const WeatherComponent = () => {
66948
66977
  const api2 = getPluginApi();
@@ -66968,7 +66997,7 @@ const WeatherComponent = () => {
66968
66997
  ] })
66969
66998
  ] });
66970
66999
  };
66971
- const Container$8 = styled.div`
67000
+ const Container$a = styled.div`
66972
67001
  display: flex;
66973
67002
  align-items: center;
66974
67003
  width: 100%;
@@ -66999,7 +67028,7 @@ const HeaderRight = styled.div`
66999
67028
  padding-right: 15px;
67000
67029
  `;
67001
67030
  const Header = ({ height = 70 }) => {
67002
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$8, { "aria-label": "header", $height: height, children: [
67031
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$a, { "aria-label": "header", $height: height, children: [
67003
67032
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderLeft, { "aria-label": "header-left", children: /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherComponent, { "aria-label": "weather" }) }),
67004
67033
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderCenter, { "aria-label": "header-center" }),
67005
67034
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderRight, { "aria-label": "header-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClockComponent, { "aria-label": "clock" }) })
@@ -67007,7 +67036,7 @@ const Header = ({ height = 70 }) => {
67007
67036
  };
67008
67037
  const About = () => {
67009
67038
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
67010
- /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.25.0"}` }),
67039
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.27.0"}` }),
67011
67040
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
67012
67041
  ] });
67013
67042
  };
@@ -67022,7 +67051,7 @@ const Backgrounds = ({ api: api2 }) => {
67022
67051
  const handleSelection = (key) => {
67023
67052
  setSelectedKey(key);
67024
67053
  console.log("handleSelection", { key });
67025
- api2.plugin("base").state.set("backgroundKey", key);
67054
+ api2.integration("base").state.set("backgroundKey", key);
67026
67055
  };
67027
67056
  const menuItems = Object.keys(backgroundItems).map((key) => {
67028
67057
  const item = backgroundItems[key];
@@ -67033,7 +67062,7 @@ const Backgrounds = ({ api: api2 }) => {
67033
67062
  });
67034
67063
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
67035
67064
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67036
- Ct2,
67065
+ yt2,
67037
67066
  {
67038
67067
  items: menuItems,
67039
67068
  onSelect: handleSelection,
@@ -67057,7 +67086,7 @@ const Backgrounds = ({ api: api2 }) => {
67057
67086
  value: backgroundProps[key] || prop.default,
67058
67087
  onChange: (value) => {
67059
67088
  backgroundProps[key] = value;
67060
- api2.plugin("base").state.set(propsKey, JSON.stringify(backgroundProps));
67089
+ api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
67061
67090
  }
67062
67091
  }
67063
67092
  ) });
@@ -67074,7 +67103,7 @@ const Backgrounds = ({ api: api2 }) => {
67074
67103
  value: backgroundProps[key],
67075
67104
  onChange: (option) => {
67076
67105
  backgroundProps[key] = option.value;
67077
- api2.plugin("base").state.set(propsKey, JSON.stringify(backgroundProps));
67106
+ api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
67078
67107
  }
67079
67108
  }
67080
67109
  ) });
@@ -67089,7 +67118,7 @@ const Backgrounds = ({ api: api2 }) => {
67089
67118
  color: backgroundProps[key] || prop.default,
67090
67119
  onChange: (color) => {
67091
67120
  backgroundProps[key] = color;
67092
- api2.plugin("base").state.set(propsKey, JSON.stringify(backgroundProps));
67121
+ api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
67093
67122
  }
67094
67123
  }
67095
67124
  );
@@ -67122,7 +67151,7 @@ const Boards = ({ api: api2 }) => {
67122
67151
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
67123
67152
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Boards" }),
67124
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(
67125
- yt2,
67154
+ kt2,
67126
67155
  {
67127
67156
  title,
67128
67157
  icon: "none",
@@ -67143,12 +67172,12 @@ const Messages = ({ api: api2 }) => {
67143
67172
  )) });
67144
67173
  };
67145
67174
  const PluginDev = ({ api: api2 }) => {
67146
- const plugin = api2.plugin("plugin");
67175
+ const integration = api2.integration("plugin");
67147
67176
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { children: [
67148
67177
  /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
67149
67178
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Components" }),
67150
- /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: plugin && plugin.info.components.map((component) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67151
- yt2,
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(
67180
+ kt2,
67152
67181
  {
67153
67182
  title: component,
67154
67183
  icon: "none",
@@ -67156,8 +67185,8 @@ const PluginDev = ({ api: api2 }) => {
67156
67185
  }
67157
67186
  ) }, component)) }),
67158
67187
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, paddingTop: 50, children: "Screens" }),
67159
- /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: plugin && plugin.info.screens.map((screen) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67160
- yt2,
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(
67189
+ kt2,
67161
67190
  {
67162
67191
  title: screen,
67163
67192
  icon: "none",
@@ -67166,7 +67195,7 @@ const PluginDev = ({ api: api2 }) => {
67166
67195
  ) }, screen)) })
67167
67196
  ] }),
67168
67197
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { fixed: "bottom", height: 120, paddingLeft: 20, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67169
- Bt2,
67198
+ Ct2,
67170
67199
  {
67171
67200
  title: "Settings",
67172
67201
  variant: "clear",
@@ -67230,7 +67259,7 @@ const Theme = ({ api: api2 }) => {
67230
67259
  ];
67231
67260
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
67232
67261
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67233
- Ct2,
67262
+ yt2,
67234
67263
  {
67235
67264
  items: menuItems,
67236
67265
  onSelect: handleSelection,
@@ -67249,7 +67278,7 @@ const Theme = ({ api: api2 }) => {
67249
67278
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "Sets the color for Cards with variant='normal'.." })
67250
67279
  }
67251
67280
  ),
67252
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Ot2, { padding: 12, direction: "vert", style: { marginBottom: 40 }, children: [
67281
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Bt2, { padding: 12, direction: "vert", style: { marginBottom: 40 }, children: [
67253
67282
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: "Card" }),
67254
67283
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "subtle", children: "Body" })
67255
67284
  ] }),
@@ -67259,7 +67288,7 @@ const Theme = ({ api: api2 }) => {
67259
67288
  width: "100%",
67260
67289
  maxWidth: 400,
67261
67290
  height: 150,
67262
- color: themeState["card-bg"] || C1.view.backColor.card,
67291
+ color: themeState["card-bg"] || B1.view.backColor.card,
67263
67292
  onChange: (color) => {
67264
67293
  themeState["card-bg"] = color;
67265
67294
  setThemeState(themeState);
@@ -67295,7 +67324,7 @@ const Theme = ({ api: api2 }) => {
67295
67324
  width: "100%",
67296
67325
  maxWidth: 400,
67297
67326
  height: 150,
67298
- color: themeState["tile-bg"] || C1.view.backColor.tile,
67327
+ color: themeState["tile-bg"] || B1.view.backColor.tile,
67299
67328
  onChange: (color) => {
67300
67329
  themeState["tile-bg"] = color;
67301
67330
  setThemeState(themeState);
@@ -67326,7 +67355,7 @@ const Theme = ({ api: api2 }) => {
67326
67355
  }
67327
67356
  ),
67328
67357
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
67329
- /* @__PURE__ */ jsxRuntimeExports.jsx(yt2, { title: "Clear Pill", variant: "clear" })
67358
+ /* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Clear Pill", variant: "clear" })
67330
67359
  ] }),
67331
67360
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67332
67361
  At2,
@@ -67335,7 +67364,7 @@ const Theme = ({ api: api2 }) => {
67335
67364
  width: "100%",
67336
67365
  maxWidth: 400,
67337
67366
  height: 150,
67338
- color: themeState["clear-bg"] || C1.view.backColor.clear,
67367
+ color: themeState["clear-bg"] || B1.view.backColor.clear,
67339
67368
  onChange: (color) => {
67340
67369
  themeState["clear-bg"] = color;
67341
67370
  setThemeState(themeState);
@@ -67356,9 +67385,9 @@ const Theme = ({ api: api2 }) => {
67356
67385
  }
67357
67386
  ),
67358
67387
  /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { style: { marginBottom: 40 }, direction: "horz", collapse: true, children: [
67359
- /* @__PURE__ */ jsxRuntimeExports.jsx(Bt2, { title: "Button", variant: "normal" }),
67388
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { title: "Button", variant: "normal" }),
67360
67389
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
67361
- /* @__PURE__ */ jsxRuntimeExports.jsx(yt2, { title: "Pill", variant: "normal" })
67390
+ /* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Pill", variant: "normal" })
67362
67391
  ] }),
67363
67392
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67364
67393
  At2,
@@ -67366,7 +67395,7 @@ const Theme = ({ api: api2 }) => {
67366
67395
  width: "100%",
67367
67396
  maxWidth: 400,
67368
67397
  height: 150,
67369
- color: themeState["button-bg"] || C1.button.normal.backColor,
67398
+ color: themeState["button-bg"] || B1.button.normal.backColor,
67370
67399
  onChange: (color) => {
67371
67400
  themeState["button-bg"] = color;
67372
67401
  setThemeState(themeState);
@@ -67408,7 +67437,7 @@ const Theme = ({ api: api2 }) => {
67408
67437
  ] });
67409
67438
  };
67410
67439
  const SettingsScreen = ({ api: api2, isPluginDev }) => {
67411
- const isPrivatePluginDev = !isPluginDev && api2.plugin("plugin").available;
67440
+ const isPrivatePluginDev = !isPluginDev && api2.integration("plugin").available;
67412
67441
  const [selectedKey, setSelectedKey] = usePluginState(
67413
67442
  api2,
67414
67443
  "settings-screen-key",
@@ -67451,7 +67480,7 @@ const SettingsScreen = ({ api: api2, isPluginDev }) => {
67451
67480
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { children: [
67452
67481
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "20% auto", padding: 20, paddingTop: 90, gap: 20, children: [
67453
67482
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67454
- Ct2,
67483
+ yt2,
67455
67484
  {
67456
67485
  items: menuItems,
67457
67486
  onSelect: handleMenuSelection,
@@ -71409,7 +71438,7 @@ hooks.HTML5_FMT = {
71409
71438
  MONTH: "YYYY-MM"
71410
71439
  // <input type="month" />
71411
71440
  };
71412
- const Container$7 = styled.div`
71441
+ const Container$9 = styled.div`
71413
71442
  align-items: flex-start;
71414
71443
  padding: 10px 20px;
71415
71444
  margin-top: 130px;
@@ -71453,7 +71482,7 @@ const greetings = {
71453
71482
  ]
71454
71483
  };
71455
71484
  const Greeting = ({ api: api2 }) => {
71456
- const calendarPlugin = api2.plugin("calendar");
71485
+ const calendarPlugin = api2.integration("calendar");
71457
71486
  const events2 = calendarPlugin.api.useEvents();
71458
71487
  const getGreeting = () => {
71459
71488
  const d = /* @__PURE__ */ new Date();
@@ -71478,9 +71507,9 @@ const Greeting = ({ api: api2 }) => {
71478
71507
  events2.nextEvent.startDate * 1e3
71479
71508
  ).format("h:mm")}`;
71480
71509
  };
71481
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$7, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
71510
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
71482
71511
  };
71483
- const Container$6 = styled.div`
71512
+ const Container$8 = styled.div`
71484
71513
  height: 100vh;
71485
71514
  width: 100vw;
71486
71515
  background: ${(props) => `linear-gradient(90deg, ${props.$colorStart}, ${props.$colorEnd})`};
@@ -71520,12 +71549,12 @@ const Content = styled.div`
71520
71549
  }
71521
71550
  `;
71522
71551
  const BlobBackground = ({
71523
- colorStart = "#e52e71",
71524
- colorEnd = "#ff8a00",
71525
- speed = 0.5
71552
+ colorStart = "#26a88d",
71553
+ colorEnd = "#00796b",
71554
+ speed = 1
71526
71555
  }) => {
71527
71556
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
71528
- Container$6,
71557
+ Container$8,
71529
71558
  {
71530
71559
  "aria-label": "blob-background",
71531
71560
  $colorStart: colorStart,
@@ -71534,7 +71563,7 @@ const BlobBackground = ({
71534
71563
  }
71535
71564
  );
71536
71565
  };
71537
- const Container$5 = styled.div`
71566
+ const Container$7 = styled.div`
71538
71567
  height: 100vh;
71539
71568
  width: 100vw;
71540
71569
  background: ${(props) => `radial-gradient(${props.$colorStart}, ${props.$colorEnd})`};
@@ -71629,12 +71658,12 @@ const Light9 = styled(Light)`
71629
71658
  left: 85%;
71630
71659
  `;
71631
71660
  const BlurredLightsBackground = ({
71632
- colorStart = "#e52e71",
71633
- colorEnd = "#ff8a00",
71634
- speed = 0.5
71661
+ colorStart = "#d2276c",
71662
+ colorEnd = "#170070",
71663
+ speed = 1
71635
71664
  }) => {
71636
71665
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
71637
- Container$5,
71666
+ Container$7,
71638
71667
  {
71639
71668
  "aria-label": "blurred-lights-background",
71640
71669
  $colorStart: colorStart,
@@ -71653,7 +71682,7 @@ const BlurredLightsBackground = ({
71653
71682
  }
71654
71683
  );
71655
71684
  };
71656
- const Container$4 = styled.div`
71685
+ const Container$6 = styled.div`
71657
71686
  height: 100vh;
71658
71687
  width: 100vw;
71659
71688
  display: flex;
@@ -71687,7 +71716,7 @@ const GradientBackground = ({
71687
71716
  speed = 0.5
71688
71717
  }) => {
71689
71718
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
71690
- Container$4,
71719
+ Container$6,
71691
71720
  {
71692
71721
  "aria-label": "gradient-background",
71693
71722
  $colorStart: colorStart,
@@ -71696,7 +71725,7 @@ const GradientBackground = ({
71696
71725
  }
71697
71726
  );
71698
71727
  };
71699
- const Container$3 = styled.div`
71728
+ const Container$5 = styled.div`
71700
71729
  position: absolute;
71701
71730
  top: 0;
71702
71731
  bottom: 0;
@@ -71763,13 +71792,184 @@ const ImageBackground = ({ itemKey = "fibre", opacity }) => {
71763
71792
  };
71764
71793
  const background = backgrounds[itemKey];
71765
71794
  opacity = opacity === void 0 ? background.opacity : opacity;
71766
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$3, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
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
+ );
71767
71967
  };
71768
71968
  const AboutScreen = ({ api: api2 }) => {
71769
71969
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { overlay: true, children: [
71770
71970
  /* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "About" }),
71771
71971
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { paddingTop: 100, paddingHorz: 20, collapse: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
71772
- Bt2,
71972
+ Ct2,
71773
71973
  {
71774
71974
  title: "Settings",
71775
71975
  iconName: "about",
@@ -98470,7 +98670,7 @@ const ComponentScreen = ({ api: api2 }) => {
98470
98670
  const [error2, setError] = useState$1(void 0);
98471
98671
  useEffect$1(() => {
98472
98672
  if (propsString === "") {
98473
- const plugin = api2.plugin("plugin");
98673
+ const plugin = api2.integration("plugin");
98474
98674
  setPropsString(
98475
98675
  JSON.stringify(
98476
98676
  schemaToProps(plugin.componentSchema(params.componentKey)),
@@ -98512,7 +98712,7 @@ const ComponentScreen = ({ api: api2 }) => {
98512
98712
  }
98513
98713
  };
98514
98714
  const handleReset = () => {
98515
- const plugin = api2.plugin("plugin");
98715
+ const plugin = api2.integration("plugin");
98516
98716
  setPropsString(
98517
98717
  JSON.stringify(
98518
98718
  schemaToProps(plugin.componentSchema(params.componentKey)),
@@ -98540,7 +98740,7 @@ const ComponentScreen = ({ api: api2 }) => {
98540
98740
  }
98541
98741
  ),
98542
98742
  /* @__PURE__ */ jsxRuntimeExports.jsx(
98543
- yt2,
98743
+ kt2,
98544
98744
  {
98545
98745
  title: "RESET",
98546
98746
  variant: "clear",
@@ -98575,7 +98775,7 @@ const ComponentScreen = ({ api: api2 }) => {
98575
98775
  ) }),
98576
98776
  error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "red", paddingLeft: 15, paddingTop: 10, children: error2 })
98577
98777
  ] }) }),
98578
- /* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children: propsString && api2.plugin("plugin").component(
98778
+ /* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children: propsString && api2.integration("plugin").component(
98579
98779
  params.componentKey,
98580
98780
  parsePropsForComponent(api2, propsArray)
98581
98781
  ) }) })
@@ -98699,17 +98899,17 @@ let Plugin$2 = class Plugin {
98699
98899
  colorStart: {
98700
98900
  type: "color",
98701
98901
  title: "Start Color",
98702
- default: "#e52e71"
98902
+ default: "#d2276c"
98703
98903
  },
98704
98904
  colorEnd: {
98705
98905
  type: "color",
98706
98906
  title: "End Color",
98707
- default: "#ff8a00"
98907
+ default: "#170070"
98708
98908
  },
98709
98909
  speed: {
98710
98910
  type: "number",
98711
98911
  title: "Speed",
98712
- default: 0.5,
98912
+ default: 1,
98713
98913
  min: 0.1,
98714
98914
  max: 2,
98715
98915
  step: 0.1,
@@ -98725,12 +98925,38 @@ let Plugin$2 = class Plugin {
98725
98925
  colorStart: {
98726
98926
  type: "color",
98727
98927
  title: "Start Color",
98728
- default: "#e52e71"
98928
+ default: "#26a88d"
98729
98929
  },
98730
98930
  colorEnd: {
98731
98931
  type: "color",
98732
98932
  title: "End Color",
98733
- default: "#ff8a00"
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"
98734
98960
  },
98735
98961
  speed: {
98736
98962
  type: "number",
@@ -98741,6 +98967,42 @@ let Plugin$2 = class Plugin {
98741
98967
  step: 0.1,
98742
98968
  minLabel: "Fast",
98743
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"
98744
99006
  }
98745
99007
  }
98746
99008
  });
@@ -98772,7 +99034,7 @@ let Plugin$2 = class Plugin {
98772
99034
  return [
98773
99035
  {
98774
99036
  key: "card-button",
98775
- element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Bt2, { ...props })
99037
+ element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { ...props })
98776
99038
  },
98777
99039
  {
98778
99040
  key: "command-group",
@@ -99115,7 +99377,7 @@ const CalendarTiles = ({
99115
99377
  more > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(MoreContainer, { children: [
99116
99378
  /* @__PURE__ */ jsxRuntimeExports.jsx(MoreSpacer, {}),
99117
99379
  /* @__PURE__ */ jsxRuntimeExports.jsx(More, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
99118
- yt2,
99380
+ kt2,
99119
99381
  {
99120
99382
  title: `${more} more today`,
99121
99383
  icon: "none",
@@ -102193,7 +102455,8 @@ const EntityButton = ({
102193
102455
  title,
102194
102456
  entityId,
102195
102457
  iconName = "IoMedicalSharp",
102196
- variant = "toggle"
102458
+ variant = "toggle",
102459
+ square = true
102197
102460
  }) => {
102198
102461
  const entities = useEntities();
102199
102462
  const [loading, setLoading] = useState$1(false);
@@ -102207,7 +102470,7 @@ const EntityButton = ({
102207
102470
  const disabled = !entity;
102208
102471
  const active = entity && entity.state === "on";
102209
102472
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
102210
- Bt2,
102473
+ Ct2,
102211
102474
  {
102212
102475
  variant,
102213
102476
  active,
@@ -102220,7 +102483,8 @@ const EntityButton = ({
102220
102483
  iconBackColor: active ? "#ffcc01" : "#ffffff22",
102221
102484
  iconColor: active ? "#fff" : "#fff",
102222
102485
  iconColorActive: "#fff",
102223
- loading
102486
+ loading,
102487
+ square
102224
102488
  }
102225
102489
  );
102226
102490
  };
@@ -102260,7 +102524,12 @@ function transformMediaData(data) {
102260
102524
  album: data.attributes.media_album_name
102261
102525
  };
102262
102526
  }
102263
- const MediaButton = ({ entityId, title = "Media", variant }) => {
102527
+ const MediaButton = ({
102528
+ entityId,
102529
+ title = "Media",
102530
+ variant,
102531
+ square = true
102532
+ }) => {
102264
102533
  const entities = useEntities();
102265
102534
  const [loading, setLoading] = useState$1(false);
102266
102535
  const [state2, setState2] = useState$1("");
@@ -102281,14 +102550,15 @@ const MediaButton = ({ entityId, title = "Media", variant }) => {
102281
102550
  const iconName = state2 === "playing" ? "MdPause" : "MdPlayArrow";
102282
102551
  const disabled = !entity;
102283
102552
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
102284
- Bt2,
102553
+ Ct2,
102285
102554
  {
102286
102555
  variant,
102287
102556
  disabled: loading || disabled,
102288
102557
  title,
102289
102558
  onClick: handleStateToggle,
102290
102559
  iconName,
102291
- loading
102560
+ loading,
102561
+ square
102292
102562
  }
102293
102563
  );
102294
102564
  };
@@ -102488,7 +102758,7 @@ const MediaView = ({ api: api2, entityId, showLargeContent = false }) => {
102488
102758
  /* @__PURE__ */ jsxRuntimeExports.jsx(MediaTrack, { entity: media }),
102489
102759
  /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { paddingTop: 0, collapse: true, children: [
102490
102760
  /* @__PURE__ */ jsxRuntimeExports.jsx(
102491
- _U1,
102761
+ IU1,
102492
102762
  {
102493
102763
  variant: "clear",
102494
102764
  width: 50,
@@ -102501,7 +102771,7 @@ const MediaView = ({ api: api2, entityId, showLargeContent = false }) => {
102501
102771
  ),
102502
102772
  /* @__PURE__ */ jsxRuntimeExports.jsx(ControlSpacer, {}),
102503
102773
  /* @__PURE__ */ jsxRuntimeExports.jsx(
102504
- _U1,
102774
+ IU1,
102505
102775
  {
102506
102776
  variant: "clear",
102507
102777
  width: 50,
@@ -102517,6 +102787,60 @@ const MediaView = ({ api: api2, entityId, showLargeContent = false }) => {
102517
102787
  ] })
102518
102788
  ] }) });
102519
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
+ };
102520
102844
  class Plugin3 {
102521
102845
  constructor(config2) {
102522
102846
  __publicField(this, "config");
@@ -102551,20 +102875,32 @@ class Plugin3 {
102551
102875
  {
102552
102876
  key: "entity-button",
102553
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 })
102554
102890
  }
102555
102891
  ];
102556
102892
  }
102557
102893
  }
102558
- const builtinPlugins = {
102894
+ const builtinPluginFactories = {
102559
102895
  base: Plugin$2,
102560
102896
  calendar: Plugin$1,
102561
102897
  "home-assistant": Plugin3
102562
102898
  };
102563
102899
  const pluginVersions = {};
102564
- const loadedDekPlugins = {};
102565
- const loadedDekPluginInstances = {};
102566
- let loadedLocalPlugin;
102567
- let loadedLocalPluginInstance;
102900
+ const userPluginFactories = {};
102901
+ const integrationInstances = {};
102902
+ let localPluginFactory;
102903
+ let localIntegrationInstance;
102568
102904
  async function loadUserPlugin(name, version2, code) {
102569
102905
  try {
102570
102906
  const module2 = {};
@@ -102595,7 +102931,7 @@ async function loadUserPlugin(name, version2, code) {
102595
102931
  return null;
102596
102932
  }
102597
102933
  }
102598
- function constructPluginInstance(integration, plugin, pluginConfig = {}) {
102934
+ function constructIntegrationInstance(integration, plugin, pluginConfig = {}) {
102599
102935
  const pluginConfigMerged = {
102600
102936
  plugin: integration.pluginName,
102601
102937
  version: integration.pluginVersion || pluginVersions[integration.pluginName] || "latest",
@@ -102607,14 +102943,14 @@ function constructPluginInstance(integration, plugin, pluginConfig = {}) {
102607
102943
  }
102608
102944
  return new plugin(pluginConfigMerged, registry);
102609
102945
  }
102610
- async function initializePluginInstance(pluginInstance, integrationKey) {
102611
- if (pluginInstance && pluginInstance.load) {
102612
- await pluginInstance.load(getPluginApi(integrationKey));
102946
+ async function initializeIntegrationInstance(integrationInstance, integrationKey) {
102947
+ if (integrationInstance && integrationInstance.load) {
102948
+ await integrationInstance.load(getPluginApi(integrationKey));
102613
102949
  }
102614
102950
  }
102615
- async function initializePluginInstances() {
102616
- for (const key of Object.keys(loadedDekPluginInstances)) {
102617
- await initializePluginInstance(loadedDekPluginInstances[key], key);
102951
+ async function initializeIntegrationInstances() {
102952
+ for (const key of Object.keys(integrationInstances)) {
102953
+ await initializeIntegrationInstance(integrationInstances[key], key);
102618
102954
  }
102619
102955
  }
102620
102956
  async function loadPlugins({
@@ -102623,59 +102959,62 @@ async function loadPlugins({
102623
102959
  }) {
102624
102960
  if (plugins) {
102625
102961
  for (const plugin of plugins) {
102626
- const userPlugin = await loadUserPlugin(
102962
+ const userPluginFactory = await loadUserPlugin(
102627
102963
  plugin.name,
102628
102964
  plugin.version,
102629
102965
  plugin.code
102630
102966
  );
102631
- if (userPlugin) {
102632
- loadedDekPlugins[plugin.name] = userPlugin;
102967
+ if (userPluginFactory) {
102968
+ userPluginFactories[plugin.name] = userPluginFactory;
102633
102969
  }
102634
102970
  }
102635
102971
  }
102636
102972
  if (integrations) {
102637
102973
  for (const integration of integrations) {
102638
- const Plugin4 = builtinPlugins[integration.pluginName] || loadedDekPlugins[integration.pluginName];
102639
- if (Plugin4) {
102640
- const pluginInstance = constructPluginInstance(integration, Plugin4);
102641
- loadedDekPluginInstances[integration.key] = pluginInstance;
102974
+ const plugin = builtinPluginFactories[integration.pluginName] || userPluginFactories[integration.pluginName];
102975
+ if (plugin) {
102976
+ const integrationInstance = constructIntegrationInstance(
102977
+ integration,
102978
+ plugin
102979
+ );
102980
+ integrationInstances[integration.key] = integrationInstance;
102642
102981
  }
102643
102982
  }
102644
- await initializePluginInstances();
102983
+ await initializeIntegrationInstances();
102645
102984
  }
102646
102985
  }
102647
102986
  async function unloadAllPlugins() {
102648
- while (Object.keys(loadedDekPluginInstances).length > 0) {
102649
- const key = Object.keys(loadedDekPluginInstances)[0];
102650
- const plugin = loadedDekPluginInstances[key];
102987
+ while (Object.keys(integrationInstances).length > 0) {
102988
+ const key = Object.keys(integrationInstances)[0];
102989
+ const plugin = integrationInstances[key];
102651
102990
  if (plugin && plugin.unload) {
102652
102991
  await plugin.unload();
102653
102992
  }
102654
- delete loadedDekPluginInstances[key];
102993
+ delete integrationInstances[key];
102655
102994
  }
102656
- while (Object.keys(loadedDekPlugins).length > 0) {
102657
- const key = Object.keys(loadedDekPlugins)[0];
102658
- delete loadedDekPlugins[key];
102995
+ while (Object.keys(userPluginFactories).length > 0) {
102996
+ const key = Object.keys(userPluginFactories)[0];
102997
+ delete userPluginFactories[key];
102659
102998
  }
102660
102999
  }
102661
- function getAllPlugins() {
102662
- const allPlugins = {
102663
- ...builtinPlugins,
102664
- ...loadedDekPlugins
103000
+ function getAllPluginFactories() {
103001
+ const results = {
103002
+ ...builtinPluginFactories,
103003
+ ...userPluginFactories
102665
103004
  };
102666
- if (loadedLocalPlugin) {
102667
- allPlugins.plugin = loadedLocalPlugin;
103005
+ if (localPluginFactory) {
103006
+ results.plugin = localPluginFactory;
102668
103007
  }
102669
- return allPlugins;
103008
+ return results;
102670
103009
  }
102671
- function getAllPluginInstances() {
102672
- const allPluginInstances = {
102673
- ...loadedDekPluginInstances
103010
+ function getAllIntegrationInstances() {
103011
+ const results = {
103012
+ ...integrationInstances
102674
103013
  };
102675
- if (loadedLocalPluginInstance) {
102676
- allPluginInstances.plugin = loadedLocalPluginInstance;
103014
+ if (localIntegrationInstance) {
103015
+ results.plugin = localIntegrationInstance;
102677
103016
  }
102678
- return allPluginInstances;
103017
+ return results;
102679
103018
  }
102680
103019
  async function updatePlugins(email, password) {
102681
103020
  updateStateLoading(true);
@@ -102689,7 +103028,7 @@ async function updatePlugins(email, password) {
102689
103028
  {
102690
103029
  key: "base",
102691
103030
  pluginName: "base",
102692
- pluginVersion: "0.25.0",
103031
+ pluginVersion: "0.27.0",
102693
103032
  pluginConfig: []
102694
103033
  }
102695
103034
  ],
@@ -102700,12 +103039,12 @@ async function updatePlugins(email, password) {
102700
103039
  pluginVersions[plugin.name] = plugin.version;
102701
103040
  });
102702
103041
  await loadPlugins(integrationsAndPlugins);
102703
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103042
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102704
103043
  updateStateLoading(false);
102705
103044
  }
102706
103045
  async function unloadPlugins() {
102707
103046
  await unloadAllPlugins();
102708
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103047
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102709
103048
  }
102710
103049
  async function updateLocalPlugin(plugin, pluginConfig) {
102711
103050
  updateStateLoading(true);
@@ -102715,25 +103054,25 @@ async function updateLocalPlugin(plugin, pluginConfig) {
102715
103054
  key: "plugin",
102716
103055
  pluginConfig: []
102717
103056
  };
102718
- loadedLocalPlugin = plugin;
102719
- loadedLocalPluginInstance = constructPluginInstance(
103057
+ localPluginFactory = plugin;
103058
+ localIntegrationInstance = constructIntegrationInstance(
102720
103059
  integration,
102721
103060
  plugin,
102722
103061
  pluginConfig
102723
103062
  );
102724
- if (loadedLocalPluginInstance && loadedLocalPluginInstance.load) {
102725
- await loadedLocalPluginInstance.load(getPluginApi("plugin"));
103063
+ if (localIntegrationInstance && localIntegrationInstance.load) {
103064
+ await localIntegrationInstance.load(getPluginApi("plugin"));
102726
103065
  }
102727
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103066
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102728
103067
  updateStateLoading(false);
102729
103068
  }
102730
103069
  async function unloadLocalPlugin() {
102731
- if (loadedLocalPluginInstance && loadedLocalPluginInstance.unload) {
102732
- await loadedLocalPluginInstance.unload();
103070
+ if (localIntegrationInstance && localIntegrationInstance.unload) {
103071
+ await localIntegrationInstance.unload();
102733
103072
  }
102734
- loadedLocalPluginInstance = void 0;
102735
- loadedLocalPlugin = void 0;
102736
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103073
+ localIntegrationInstance = void 0;
103074
+ localPluginFactory = void 0;
103075
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102737
103076
  }
102738
103077
  function useUserConfig(email, password, plugin, pluginConfig) {
102739
103078
  const userConfig = useSnapshot(state$1);
@@ -102762,7 +103101,7 @@ function useUserConfig(email, password, plugin, pluginConfig) {
102762
103101
  globals.commandGroups = userConfig.data.commandGroups;
102763
103102
  }
102764
103103
  globals.plugins = userConfig.plugins;
102765
- globals.pluginInstances = getPluginInstances();
103104
+ globals.integrationInstances = getIntegrationInstances();
102766
103105
  return userConfig;
102767
103106
  }
102768
103107
  const Background = () => {
@@ -103715,10 +104054,10 @@ const RouteResolver = ({ route }) => {
103715
104054
  const api2 = getPluginApi();
103716
104055
  const resolveRouteElement = (route2) => {
103717
104056
  if (route2.type === "screen") {
103718
- return api2.plugin(route2.plugin).screen(route2.path);
104057
+ return api2.integration(route2.plugin).screen(route2.path);
103719
104058
  } else {
103720
104059
  const defaultBase = {
103721
- plugin: "base",
104060
+ integration: "base",
103722
104061
  key: "main"
103723
104062
  };
103724
104063
  const board = api2.boards.find(
@@ -103726,19 +104065,19 @@ const RouteResolver = ({ route }) => {
103726
104065
  );
103727
104066
  if (board) {
103728
104067
  if (board.base) {
103729
- const boardElement = api2.plugin(board.base.plugin).board(board.base.key);
104068
+ const boardElement = api2.integration(board.base.integration).board(board.base.key);
103730
104069
  if (boardElement) {
103731
104070
  return boardElement;
103732
104071
  }
103733
104072
  } else {
103734
- return api2.plugin(defaultBase.plugin).board(defaultBase.key);
104073
+ return api2.integration(defaultBase.integration).board(defaultBase.key);
103735
104074
  }
103736
104075
  }
103737
- const devBoard = api2.plugin("plugin").board(api2.boardKey);
104076
+ const devBoard = api2.integration("plugin").board(api2.boardKey);
103738
104077
  if (devBoard) {
103739
104078
  return devBoard;
103740
104079
  }
103741
- return api2.plugin(defaultBase.plugin).board(api2.boardKey);
104080
+ return api2.integration(defaultBase.integration).board(api2.boardKey);
103742
104081
  }
103743
104082
  };
103744
104083
  console.log("### ROUTE", route);
@@ -103762,15 +104101,15 @@ const Router = ({ userConfig, transitionDelay: transitionDelay2 }) => {
103762
104101
  const [container, setContainer] = useState$1(null);
103763
104102
  const [containerNodeRef, setContainerNodeRef] = useState$1(null);
103764
104103
  const { data } = userConfig;
103765
- const pluginInstances2 = getPluginInstances();
104104
+ const pluginInstances = getIntegrationInstances();
103766
104105
  useEffect$1(() => {
103767
104106
  const loadRoutes = async () => {
103768
104107
  var _a2, _b2;
103769
104108
  const newRoutes = [];
103770
104109
  const newBoardKeys = [];
103771
- if (pluginInstances2) {
103772
- for (const key in pluginInstances2) {
103773
- (_a2 = pluginInstances2[key].screens) == null ? void 0 : _a2.forEach((screen) => {
104110
+ if (pluginInstances) {
104111
+ for (const key in pluginInstances) {
104112
+ (_a2 = pluginInstances[key].screens) == null ? void 0 : _a2.forEach((screen) => {
103774
104113
  newRoutes.push({
103775
104114
  type: "screen",
103776
104115
  plugin: key,
@@ -103779,7 +104118,7 @@ const Router = ({ userConfig, transitionDelay: transitionDelay2 }) => {
103779
104118
  nodeRef: createRef()
103780
104119
  });
103781
104120
  });
103782
- (_b2 = pluginInstances2[key].boards) == null ? void 0 : _b2.forEach((board) => {
104121
+ (_b2 = pluginInstances[key].boards) == null ? void 0 : _b2.forEach((board) => {
103783
104122
  newBoardKeys.push("/" + board.key);
103784
104123
  });
103785
104124
  }
@@ -103797,7 +104136,7 @@ const Router = ({ userConfig, transitionDelay: transitionDelay2 }) => {
103797
104136
  setBoardKeys(newBoardKeys);
103798
104137
  };
103799
104138
  loadRoutes();
103800
- }, [pluginInstances2, data == null ? void 0 : data.boards]);
104139
+ }, [pluginInstances, data == null ? void 0 : data.boards]);
103801
104140
  useEffect$1(() => {
103802
104141
  const { nodeRef } = routes.find((route) => {
103803
104142
  let path = "/:boardKey";
@@ -103869,7 +104208,7 @@ const transitionDelay = 0;
103869
104208
  const BoardProvider = ({ email, password, plugin, pluginConfig }) => {
103870
104209
  const config2 = useUserConfig(email, password, plugin, pluginConfig);
103871
104210
  console.log("### LOADED", config2);
103872
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme: C1, children: [
104211
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme: B1, children: [
103873
104212
  /* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { transitionDelay }),
103874
104213
  /* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
103875
104214
  /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),
@@ -103893,10 +104232,10 @@ const CommandGroup = ({ groupKey }) => {
103893
104232
  if (!group) {
103894
104233
  return null;
103895
104234
  }
103896
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((component, idx) => {
103897
- const instance = api2.plugin(component.plugin).component(
103898
- component.component,
103899
- parsePropsForComponent(api2, component.props)
104235
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
104236
+ const instance = api2.integration(command.integration).component(
104237
+ command.component,
104238
+ parsePropsForComponent(api2, command.props)
103900
104239
  );
103901
104240
  return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
103902
104241
  }) });