@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.umd.js CHANGED
@@ -1117,14 +1117,14 @@ var __publicField = (obj, key, value) => {
1117
1117
  }
1118
1118
  return null;
1119
1119
  }
1120
- var Z = Object.assign, L1 = 0, d1, I, S, n1, B1, f1, S1;
1120
+ var Z = Object.assign, L1 = 0, d1, I, S, n1, C1, f1, S1;
1121
1121
  function j1() {
1122
1122
  }
1123
1123
  j1.__reactDisabledLog = true;
1124
1124
  function k1() {
1125
1125
  {
1126
1126
  if (L1 === 0) {
1127
- d1 = console.log, I = console.info, S = console.warn, n1 = console.error, B1 = console.group, f1 = console.groupCollapsed, S1 = console.groupEnd;
1127
+ d1 = console.log, I = console.info, S = console.warn, n1 = console.error, C1 = console.group, f1 = console.groupCollapsed, S1 = console.groupEnd;
1128
1128
  var _10 = {
1129
1129
  configurable: true,
1130
1130
  enumerable: true,
@@ -1166,7 +1166,7 @@ var __publicField = (obj, key, value) => {
1166
1166
  value: n1
1167
1167
  }),
1168
1168
  group: Z({}, _10, {
1169
- value: B1
1169
+ value: C1
1170
1170
  }),
1171
1171
  groupCollapsed: Z({}, _10, {
1172
1172
  value: f1
@@ -1634,7 +1634,7 @@ Check the top-level render call using <` + u1 + ">.");
1634
1634
  `, F4 = (t2, e2 = false) => t2 === "center" ? "center" : t2 === "left" ? e2 ? "flex-end" : "flex-start" : t2 === "stretch" ? "stretch" : e2 ? "flex-start" : "flex-end", E4 = (t2, e2 = false) => t2 === "center" ? "center" : t2 === "top" ? e2 ? "flex-end" : "flex-start" : e2 ? "flex-start" : "flex-end", f7 = styled.div`
1635
1635
  box-sizing: border-box;
1636
1636
  background-color: ${(t2) => t2.$active ? t2.$backColorActive : t2.$backColor};
1637
- filter: ${(t2) => t2.$disabled ? `brightness(${C1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${C1.button.brightnessPressed})` : "none"};
1637
+ filter: ${(t2) => t2.$disabled ? `brightness(${B1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${B1.button.brightnessPressed})` : "none"};
1638
1638
  border-radius: ${({ $borderRadius: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
1639
1639
  width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
1640
1640
  height: ${({ $height: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
@@ -1685,7 +1685,7 @@ Check the top-level render call using <` + u1 + ">.");
1685
1685
  }, W = () => {
1686
1686
  e2 || X();
1687
1687
  }, G = i2 ? void 0 : r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`;
1688
- return i2 || (i2 = (J = C1.button[t2]) == null ? void 0 : J.backColor), c2 || (c2 = (r1 = C1.button[t2]) == null ? void 0 : r1.backColorActive), /* @__PURE__ */ z1.jsx(
1688
+ return i2 || (i2 = (J = B1.button[t2]) == null ? void 0 : J.backColor), c2 || (c2 = (r1 = B1.button[t2]) == null ? void 0 : r1.backColorActive), /* @__PURE__ */ z1.jsx(
1689
1689
  f7,
1690
1690
  {
1691
1691
  $pressed: e2 ? false : R,
@@ -24515,7 +24515,7 @@ Check the top-level render call using <` + u1 + ">.");
24515
24515
  iconPadding: c2 = 2,
24516
24516
  iconBackColor: l2 = ""
24517
24517
  }) => {
24518
- const o4 = e2 ? h2 : n5 || C1.button.normal.color, d = l2 ? i2 - 4 : i2, g = c2, f4 = l2 ? 2 : 0;
24518
+ const o4 = e2 ? h2 : n5 || B1.button.normal.color, d = l2 ? i2 - 4 : i2, g = c2, f4 = l2 ? 2 : 0;
24519
24519
  return /* @__PURE__ */ z1.jsxs(
24520
24520
  OU1,
24521
24521
  {
@@ -24538,7 +24538,7 @@ Check the top-level render call using <` + u1 + ">.");
24538
24538
  ]
24539
24539
  }
24540
24540
  );
24541
- }, C1 = {
24541
+ }, B1 = {
24542
24542
  text: {
24543
24543
  size: {
24544
24544
  xxsmall: 10,
@@ -24635,15 +24635,15 @@ Check the top-level render call using <` + u1 + ">.");
24635
24635
  function z5(t2) {
24636
24636
  switch (t2) {
24637
24637
  case "xxsubtle":
24638
- return C1.text.color.xxsubtle;
24638
+ return B1.text.color.xxsubtle;
24639
24639
  case "xsubtle":
24640
- return C1.text.color.xsubtle;
24640
+ return B1.text.color.xsubtle;
24641
24641
  case "subtle":
24642
- return C1.text.color.subtle;
24642
+ return B1.text.color.subtle;
24643
24643
  case "tint":
24644
- return C1.text.color.tint;
24644
+ return B1.text.color.tint;
24645
24645
  case "normal":
24646
- return C1.text.color.normal;
24646
+ return B1.text.color.normal;
24647
24647
  default:
24648
24648
  return t2;
24649
24649
  }
@@ -24651,97 +24651,97 @@ Check the top-level render call using <` + u1 + ">.");
24651
24651
  function H3(t2) {
24652
24652
  switch (t2) {
24653
24653
  case "normal":
24654
- return C1.text.family.normal;
24654
+ return B1.text.family.normal;
24655
24655
  case "condensed":
24656
- return C1.text.family.condensed;
24656
+ return B1.text.family.condensed;
24657
24657
  case "mono":
24658
- return C1.text.family.mono;
24658
+ return B1.text.family.mono;
24659
24659
  case "slab":
24660
- return C1.text.family.slab;
24660
+ return B1.text.family.slab;
24661
24661
  case "flex":
24662
- return C1.text.family.flex;
24662
+ return B1.text.family.flex;
24663
24663
  case "heading":
24664
- return C1.text.family.heading;
24664
+ return B1.text.family.heading;
24665
24665
  default:
24666
24666
  return t2;
24667
24667
  }
24668
24668
  }
24669
24669
  function j4(t2) {
24670
24670
  if (t2 === void 0)
24671
- return C1.text.size.normal;
24671
+ return B1.text.size.normal;
24672
24672
  if (typeof t2 == "number")
24673
24673
  return t2;
24674
24674
  switch (t2) {
24675
24675
  case "xxsmall":
24676
- return C1.text.size.xxsmall;
24676
+ return B1.text.size.xxsmall;
24677
24677
  case "xsmall":
24678
- return C1.text.size.xsmall;
24678
+ return B1.text.size.xsmall;
24679
24679
  case "small":
24680
- return C1.text.size.small;
24680
+ return B1.text.size.small;
24681
24681
  case "normal":
24682
- return C1.text.size.normal;
24682
+ return B1.text.size.normal;
24683
24683
  case "large":
24684
- return C1.text.size.large;
24684
+ return B1.text.size.large;
24685
24685
  case "xlarge":
24686
- return C1.text.size.xlarge;
24686
+ return B1.text.size.xlarge;
24687
24687
  case "xxlarge":
24688
- return C1.text.size.xxlarge;
24688
+ return B1.text.size.xxlarge;
24689
24689
  case "heading":
24690
- return C1.text.size.heading;
24690
+ return B1.text.size.heading;
24691
24691
  }
24692
24692
  }
24693
24693
  function N9(t2) {
24694
24694
  if (t2 === void 0)
24695
- return C1.text.height.normal;
24695
+ return B1.text.height.normal;
24696
24696
  if (typeof t2 == "number")
24697
24697
  return t2 + 5;
24698
24698
  switch (t2) {
24699
24699
  case "xxsmall":
24700
- return C1.text.height.xxsmall;
24700
+ return B1.text.height.xxsmall;
24701
24701
  case "xsmall":
24702
- return C1.text.height.xsmall;
24702
+ return B1.text.height.xsmall;
24703
24703
  case "small":
24704
- return C1.text.height.small;
24704
+ return B1.text.height.small;
24705
24705
  case "normal":
24706
- return C1.text.height.normal;
24706
+ return B1.text.height.normal;
24707
24707
  case "large":
24708
- return C1.text.height.large;
24708
+ return B1.text.height.large;
24709
24709
  case "xlarge":
24710
- return C1.text.height.xlarge;
24710
+ return B1.text.height.xlarge;
24711
24711
  case "xxlarge":
24712
- return C1.text.height.xxlarge;
24712
+ return B1.text.height.xxlarge;
24713
24713
  case "heading":
24714
- return C1.text.height.heading;
24714
+ return B1.text.height.heading;
24715
24715
  }
24716
24716
  }
24717
24717
  function M5(t2) {
24718
24718
  if (t2 === void 0)
24719
- return C1.text.weight.normal;
24719
+ return B1.text.weight.normal;
24720
24720
  if (typeof t2 == "number")
24721
24721
  return t2;
24722
24722
  switch (t2) {
24723
24723
  case "xxthin":
24724
- return C1.text.weight.xxthin;
24724
+ return B1.text.weight.xxthin;
24725
24725
  case "xthin":
24726
- return C1.text.weight.xthin;
24726
+ return B1.text.weight.xthin;
24727
24727
  case "thin":
24728
- return C1.text.weight.thin;
24728
+ return B1.text.weight.thin;
24729
24729
  case "normal":
24730
- return C1.text.weight.normal;
24730
+ return B1.text.weight.normal;
24731
24731
  case "bold":
24732
- return C1.text.weight.bold;
24732
+ return B1.text.weight.bold;
24733
24733
  case "xbold":
24734
- return C1.text.weight.xbold;
24734
+ return B1.text.weight.xbold;
24735
24735
  case "xxbold":
24736
- return C1.text.weight.xxbold;
24736
+ return B1.text.weight.xxbold;
24737
24737
  case "heavy":
24738
- return C1.text.weight.heavy;
24738
+ return B1.text.weight.heavy;
24739
24739
  case "xheavy":
24740
- return C1.text.weight.xheavy;
24740
+ return B1.text.weight.xheavy;
24741
24741
  case "xxheavy":
24742
- return C1.text.weight.xxheavy;
24742
+ return B1.text.weight.xxheavy;
24743
24743
  case "heading":
24744
- return C1.text.weight.heading;
24744
+ return B1.text.weight.heading;
24745
24745
  }
24746
24746
  }
24747
24747
  const bU1 = styled.div`
@@ -24859,22 +24859,22 @@ Check the top-level render call using <` + u1 + ">.");
24859
24859
  }, N = t2.variant === "clear" || t2.variant === "toggle" ? t2.variant : "normal", X = {
24860
24860
  ...t2,
24861
24861
  pressed: e2,
24862
- color: m || ((Q = C1.button[N]) == null ? void 0 : Q.color),
24863
- colorActive: B || (($ = C1.button[N]) == null ? void 0 : $.colorActive),
24862
+ color: m || ((Q = B1.button[N]) == null ? void 0 : Q.color),
24863
+ colorActive: B || (($ = B1.button[N]) == null ? void 0 : $.colorActive),
24864
24864
  textStyle: {},
24865
24865
  label: "button-text"
24866
24866
  }, c1 = {
24867
24867
  ...t2,
24868
24868
  pressed: e2,
24869
- iconColor: i2 || m || ((W = C1.button[N]) == null ? void 0 : W.color),
24870
- iconColorActive: w2 || B || ((G = C1.button[N]) == null ? void 0 : G.colorActive),
24869
+ iconColor: i2 || m || ((W = B1.button[N]) == null ? void 0 : W.color),
24870
+ iconColorActive: w2 || B || ((G = B1.button[N]) == null ? void 0 : G.colorActive),
24871
24871
  label: "button-icon"
24872
24872
  }, a1 = {
24873
24873
  ...t2,
24874
24874
  variant: N,
24875
24875
  paddingVert: f4 === void 0 && d === void 0 && g === void 0 && o4 === void 0 ? 12 : o4,
24876
24876
  // if only backColor is set, use it for backColorActive (except for toggle variants)
24877
- backColorActive: l2 || (N !== "toggle" ? c2 || ((J = C1.button[N]) == null ? void 0 : J.backColor) : void 0)
24877
+ backColorActive: l2 || (N !== "toggle" ? c2 || ((J = B1.button[N]) == null ? void 0 : J.backColor) : void 0)
24878
24878
  };
24879
24879
  let R = null;
24880
24880
  return C ? R = C : h2 === "none" ? (X.textStyle.margin = "4px 4px 0 4px", R = /* @__PURE__ */ z1.jsx(P8, { ...X })) : (h2 === "top" ? (a1.direction = "vert", X.textStyle.margin = "0 4px") : h2 === "right" ? (a1.direction = "horz-reverse", X.textStyle.margin = "4px 4px 0 4px") : h2 === "bottom" ? (a1.direction = "vert-reverse", X.textStyle.margin = "0 4px") : h2 === "left" && (a1.direction = "horz", X.textStyle.margin = "4px 4px 0 4px"), R = /* @__PURE__ */ z1.jsxs(z1.Fragment, { children: [
@@ -24891,79 +24891,36 @@ Check the top-level render call using <` + u1 + ">.");
24891
24891
  children: R
24892
24892
  }
24893
24893
  );
24894
- }, Bt2 = (t2) => {
24895
- const {
24896
- title: e2,
24897
- width: r2 = C1.card.width,
24898
- height: n5 = C1.card.height,
24899
- halign: h2 = "left",
24900
- valign: i2 = "top",
24901
- onPressed: c2,
24902
- children: l2,
24903
- borderRadius: o4 = C1.card.borderRadius,
24904
- onClick: d = I0
24905
- } = t2;
24906
- return /* @__PURE__ */ z1.jsx(
24907
- R6,
24908
- {
24909
- ...t2,
24910
- label: "card-button",
24911
- width: r2,
24912
- height: n5,
24913
- halign: h2,
24914
- valign: i2,
24915
- title: e2,
24916
- borderRadius: o4,
24917
- onClick: d,
24918
- onPressed: c2,
24919
- children: l2
24920
- }
24921
- );
24922
- }, _U1 = (t2) => {
24923
- const { onPressed: e2, children: r2, onClick: n5 = I0, padding: h2 = 6 } = t2;
24924
- return /* @__PURE__ */ z1.jsx(
24925
- R6,
24926
- {
24927
- ...t2,
24928
- label: "icon-button",
24929
- padding: h2,
24930
- halign: "center",
24931
- valign: "center",
24932
- onClick: n5,
24933
- onPressed: e2,
24934
- children: r2
24935
- }
24936
- );
24937
24894
  };
24938
24895
  function A3(t2) {
24939
24896
  switch (t2) {
24940
24897
  case "subtle":
24941
- return console.error("subtle view backColor is deprecated"), C1.text.color.subtle;
24898
+ return console.error("subtle view backColor is deprecated"), B1.text.color.subtle;
24942
24899
  case "tile":
24943
- return C1.view.backColor.tile;
24900
+ return B1.view.backColor.tile;
24944
24901
  case "card":
24945
- return C1.view.backColor.card;
24902
+ return B1.view.backColor.card;
24946
24903
  case "clear":
24947
- return C1.view.backColor.clear;
24904
+ return B1.view.backColor.clear;
24948
24905
  case "light":
24949
- return C1.view.backColor.light;
24906
+ return B1.view.backColor.light;
24950
24907
  case "lighter":
24951
- return C1.view.backColor.lighter;
24908
+ return B1.view.backColor.lighter;
24952
24909
  case "lightest":
24953
- return C1.view.backColor.lightest;
24910
+ return B1.view.backColor.lightest;
24954
24911
  case "dark":
24955
- return C1.view.backColor.dark;
24912
+ return B1.view.backColor.dark;
24956
24913
  case "darker":
24957
- return C1.view.backColor.darker;
24914
+ return B1.view.backColor.darker;
24958
24915
  case "darkest":
24959
- return C1.view.backColor.darkest;
24916
+ return B1.view.backColor.darkest;
24960
24917
  case "none":
24961
24918
  return "transparent";
24962
24919
  default:
24963
24920
  return t2;
24964
24921
  }
24965
24922
  }
24966
- const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 === "hidden" ? "hidden" : "initial", xa = (t2) => typeof t2 == "string" ? t2 === "true" : t2, IU1 = styled.div`
24923
+ const b3 = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 === "hidden" ? "hidden" : "initial", xa = (t2) => typeof t2 == "string" ? t2 === "true" : t2, _U1 = styled.div`
24967
24924
  display: flex;
24968
24925
  box-sizing: border-box;
24969
24926
  ${(t2) => xa(t2.$collapse) ? "flex-shrink: 0;" : ""}
@@ -24974,7 +24931,7 @@ Check the top-level render call using <` + u1 + ">.");
24974
24931
  }};
24975
24932
  ${({ $fixed: t2 }) => t2 === "none" ? "" : t2 === "top" ? "position: absolute; top: 0; left: 0; right: 0;" : "position: absolute; bottom: 0; left: 0; right: 0;"}
24976
24933
  width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
24977
- color: ${() => C1.text.color.normal};
24934
+ color: ${() => B1.text.color.normal};
24978
24935
  border-radius: ${(t2) => t2.$borderRadius}px;
24979
24936
  overflow-y: ${({ $vscroll: t2 }) => b3(t2)};
24980
24937
  overflow-x: ${({ $hscroll: t2 }) => b3(t2)};
@@ -25027,7 +24984,7 @@ Check the top-level render call using <` + u1 + ">.");
25027
24984
  style: G,
25028
24985
  children: J
25029
24986
  }) => /* @__PURE__ */ z1.jsx(
25030
- IU1,
24987
+ _U1,
25031
24988
  {
25032
24989
  "aria-label": t2 || "view",
25033
24990
  $direction: e2,
@@ -25058,37 +25015,117 @@ Check the top-level render call using <` + u1 + ">.");
25058
25015
  style: G,
25059
25016
  children: J
25060
25017
  }
25061
- ), 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(
25062
- u0,
25063
- {
25064
- backColor: e2 ? "clear" : "none",
25065
- backColorHover: e2 ? "lighter" : "light",
25066
- borderRadius: 6,
25067
- onClick: r2,
25068
- collapse: true,
25069
- className: e2 ? "dek-button-clear" : "",
25070
- style: { marginBottom: 4, marginRight: 4, cursor: "pointer" },
25071
- children: /* @__PURE__ */ z1.jsx(PU1, { padding: 20, children: t2 })
25072
- }
25073
- ), Ct2 = ({
25018
+ ), Bt2 = (t2) => {
25019
+ const {
25020
+ variant: e2 = "normal",
25021
+ children: r2,
25022
+ square: n5 = false,
25023
+ width: h2 = n5 ? B1.card.height : B1.card.width,
25024
+ height: i2 = B1.card.height,
25025
+ borderRadius: c2 = B1.card.borderRadius,
25026
+ label: l2 = "card",
25027
+ ...o4
25028
+ } = t2;
25029
+ let { backColor: d } = t2;
25030
+ const g = d ? void 0 : `dek-card-${e2}`;
25031
+ return d || (d = e2 === "normal" ? B1.view.backColor.card : B1.view.backColor.clear), /* @__PURE__ */ z1.jsx(
25032
+ u0,
25033
+ {
25034
+ width: h2,
25035
+ height: i2,
25036
+ className: g,
25037
+ backColor: d,
25038
+ borderRadius: c2,
25039
+ label: l2,
25040
+ ...o4,
25041
+ children: r2
25042
+ }
25043
+ );
25044
+ }, Ct2 = (t2) => {
25045
+ const {
25046
+ title: e2,
25047
+ square: r2 = false,
25048
+ width: n5 = r2 ? B1.card.height : B1.card.width,
25049
+ height: h2 = B1.card.height,
25050
+ halign: i2 = "left",
25051
+ valign: c2 = "top",
25052
+ onPressed: l2,
25053
+ children: o4,
25054
+ borderRadius: d = B1.card.borderRadius,
25055
+ onClick: g = I0
25056
+ } = t2;
25057
+ return /* @__PURE__ */ z1.jsx(
25058
+ R6,
25059
+ {
25060
+ ...t2,
25061
+ label: "card-button",
25062
+ width: n5,
25063
+ height: h2,
25064
+ halign: i2,
25065
+ valign: c2,
25066
+ title: e2,
25067
+ borderRadius: d,
25068
+ onClick: g,
25069
+ onPressed: l2,
25070
+ children: o4
25071
+ }
25072
+ );
25073
+ }, IU1 = (t2) => {
25074
+ const { onPressed: e2, children: r2, onClick: n5 = I0, padding: h2 = 6 } = t2;
25075
+ return /* @__PURE__ */ z1.jsx(
25076
+ R6,
25077
+ {
25078
+ ...t2,
25079
+ label: "icon-button",
25080
+ padding: h2,
25081
+ halign: "center",
25082
+ valign: "center",
25083
+ onClick: n5,
25084
+ onPressed: e2,
25085
+ children: r2
25086
+ }
25087
+ );
25088
+ }, PU1 = ({ size: t2, weight: e2, ...r2 }) => /* @__PURE__ */ z1.jsx(h4, { size: t2 || "heading", weight: e2 || "heading", ...r2 }), WU1 = ({
25089
+ title: t2,
25090
+ active: e2,
25091
+ compact: r2 = false,
25092
+ onClick: n5 = I0
25093
+ }) => {
25094
+ const h2 = r2 ? 10 : 20, i2 = r2 ? "large" : void 0;
25095
+ return /* @__PURE__ */ z1.jsx(
25096
+ u0,
25097
+ {
25098
+ backColor: e2 ? "clear" : "none",
25099
+ backColorHover: e2 ? "lighter" : "light",
25100
+ borderRadius: 6,
25101
+ onClick: n5,
25102
+ collapse: true,
25103
+ className: e2 ? "dek-button-clear" : "",
25104
+ style: { marginBottom: 4, marginRight: 4, cursor: "pointer" },
25105
+ children: /* @__PURE__ */ z1.jsx(PU1, { size: i2, padding: h2, children: t2 })
25106
+ }
25107
+ );
25108
+ }, yt2 = ({
25074
25109
  items: t2,
25075
25110
  initialKey: e2,
25076
25111
  direction: r2 = "vert",
25077
- onSelect: n5 = I0
25112
+ compact: n5 = false,
25113
+ onSelect: h2 = I0
25078
25114
  }) => {
25079
- const [h2, i2] = React$3.useState(e2), c2 = (l2) => {
25080
- i2(l2), n5(l2);
25115
+ const [i2, c2] = React$3.useState(e2), l2 = (o4) => {
25116
+ c2(o4), h2(o4);
25081
25117
  };
25082
- return /* @__PURE__ */ z1.jsx(u0, { children: /* @__PURE__ */ z1.jsx(u0, { direction: r2, collapse: true, children: t2.map(({ key: l2, title: o4 }) => /* @__PURE__ */ z1.jsx(
25118
+ return /* @__PURE__ */ z1.jsx(u0, { children: /* @__PURE__ */ z1.jsx(u0, { direction: r2, collapse: true, children: t2.map(({ key: o4, title: d }) => /* @__PURE__ */ z1.jsx(
25083
25119
  WU1,
25084
25120
  {
25085
- title: o4,
25086
- onClick: () => c2(l2),
25087
- active: h2 === l2
25121
+ title: d,
25122
+ compact: n5,
25123
+ onClick: () => l2(o4),
25124
+ active: i2 === o4
25088
25125
  },
25089
- l2
25126
+ o4
25090
25127
  )) }) });
25091
- }, yt2 = (t2) => {
25128
+ }, kt2 = (t2) => {
25092
25129
  const { title: e2, icon: r2 = "left", onPressed: n5, children: h2, onClick: i2 = I0 } = t2;
25093
25130
  return /* @__PURE__ */ z1.jsx(
25094
25131
  R6,
@@ -25113,7 +25150,7 @@ Check the top-level render call using <` + u1 + ">.");
25113
25150
  padding: ${({ $padding: t2 }) => t2}px;
25114
25151
  background-color: ${({ $backColor: t2 }) => t2};
25115
25152
  border-radius: 50%;
25116
- `, TU1 = styled.div``, kt2 = ({
25153
+ `, TU1 = styled.div``, Ot2 = ({
25117
25154
  loading: t2 = false,
25118
25155
  disabled: e2 = false,
25119
25156
  iconName: r2,
@@ -25122,7 +25159,7 @@ Check the top-level render call using <` + u1 + ">.");
25122
25159
  iconPadding: i2 = 2,
25123
25160
  iconBackColor: c2 = "transparent"
25124
25161
  }) => {
25125
- const l2 = e2 ? "#888" : n5 === void 0 ? C1.text.color.normal : n5;
25162
+ const l2 = e2 ? "#888" : n5 === void 0 ? B1.text.color.normal : n5;
25126
25163
  return /* @__PURE__ */ z1.jsxs(
25127
25164
  DU1,
25128
25165
  {
@@ -25143,31 +25180,6 @@ Check the top-level render call using <` + u1 + ">.");
25143
25180
  ]
25144
25181
  }
25145
25182
  );
25146
- }, Ot2 = (t2) => {
25147
- const {
25148
- variant: e2 = "normal",
25149
- children: r2,
25150
- width: n5 = C1.card.width,
25151
- height: h2 = C1.card.height,
25152
- borderRadius: i2 = C1.card.borderRadius,
25153
- label: c2 = "card",
25154
- ...l2
25155
- } = t2;
25156
- let { backColor: o4 } = t2;
25157
- const d = o4 ? void 0 : `dek-card-${e2}`;
25158
- return o4 || (o4 = e2 === "normal" ? C1.view.backColor.card : C1.view.backColor.clear), /* @__PURE__ */ z1.jsx(
25159
- u0,
25160
- {
25161
- width: n5,
25162
- height: h2,
25163
- className: d,
25164
- backColor: o4,
25165
- borderRadius: i2,
25166
- label: c2,
25167
- ...l2,
25168
- children: r2
25169
- }
25170
- );
25171
25183
  };
25172
25184
  var $9 = {}, U9 = {}, h6 = { exports: {} }, wa = { exports: {} }, Y5 = { exports: {} }, Ba = { exports: {} }, G5 = { exports: {} }, Ca, W8;
25173
25185
  function RU1() {
@@ -25183,7 +25195,7 @@ Check the top-level render call using <` + u1 + ">.");
25183
25195
  !n5.call(v, E) && E !== V && t2(v, E, { get: () => M[E], enumerable: !(k = e2(M, E)) || k.enumerable });
25184
25196
  return v;
25185
25197
  }, c2 = (v) => i2(t2({}, "__esModule", { value: true }), v), l2 = {};
25186
- h2(l2, { FluidValue: () => _10, Globals: () => o4, addFluidObserver: () => u1, callFluidObserver: () => ct, callFluidObservers: () => e0, clamp: () => Q2, colorToRgba: () => X1, colors: () => $1, createInterpolator: () => L0, createStringInterpolator: () => A2, defineHidden: () => D, deprecateDirectCall: () => v4, deprecateInterpolate: () => o42, each: () => d1, eachProp: () => I, easings: () => J0, flush: () => n1, flushCalls: () => 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);
25198
+ h2(l2, { FluidValue: () => _10, Globals: () => o4, addFluidObserver: () => u1, callFluidObserver: () => ct, callFluidObservers: () => e0, clamp: () => Q2, colorToRgba: () => X1, colors: () => $1, createInterpolator: () => L0, createStringInterpolator: () => A2, defineHidden: () => D, deprecateDirectCall: () => v4, deprecateInterpolate: () => o42, each: () => d1, eachProp: () => I, easings: () => J0, flush: () => n1, flushCalls: () => C1, frameLoop: () => c23, getFluidObservers: () => yt, getFluidValue: () => W0, hasFluidValue: () => Z0, hex3: () => x, hex4: () => z, hex6: () => p4, hex8: () => O, hsl: () => F2, hsla: () => l0, is: () => Z, isAnimatedString: () => ot, isEqual: () => L1, isSSR: () => f1, noop: () => r1, onResize: () => kt, onScroll: () => z4, once: () => D0, prefix: () => P1, raf: () => g, removeFluidObserver: () => E1, rgb: () => q2, rgba: () => S2, setFluidGetter: () => v1, toArray: () => S, useConstant: () => E0, useForceUpdate: () => L, useIsomorphicLayoutEffect: () => u7, useMemoOne: () => P, useOnce: () => h1, usePrev: () => l1, useReducedMotion: () => V1 }), Ca = c2(l2);
25187
25199
  var o4 = {};
25188
25200
  h2(o4, { assign: () => H1, colors: () => k1, createStringInterpolator: () => S1, skipAnimation: () => y2, to: () => j1, willAdvance: () => K });
25189
25201
  var d = G(), g = (v) => a1(v, d), f4 = G();
@@ -25301,7 +25313,7 @@ Check the top-level render call using <` + u1 + ">.");
25301
25313
  v.clear(), d1(V, M);
25302
25314
  }
25303
25315
  }
25304
- var 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) => {
25316
+ var C1 = (v, ...M) => n1(v, (V) => V(...M)), f1 = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), S1, j1, k1 = null, y2 = false, K = r1, H1 = (v) => {
25305
25317
  v.to && (j1 = v.to), v.now && (g.now = v.now), v.colors !== void 0 && (k1 = v.colors), v.skipAnimation != null && (y2 = v.skipAnimation), v.createStringInterpolator && (S1 = v.createStringInterpolator), v.requestAnimationFrame && g.use(v.requestAnimationFrame), v.batchedUpdates && (g.batchedUpdates = v.batchedUpdates), v.willAdvance && (K = v.willAdvance), v.frameLoop && (g.frameLoop = v.frameLoop);
25306
25318
  }, g1 = /* @__PURE__ */ new Set(), M1 = [], I1 = [], R1 = 0, c23 = { get idle() {
25307
25319
  return !g1.size && !M1.length;
@@ -25624,7 +25636,7 @@ Check the top-level render call using <` + u1 + ">.");
25624
25636
  eachProp: () => I,
25625
25637
  easings: () => J0,
25626
25638
  flush: () => n1,
25627
- flushCalls: () => B1,
25639
+ flushCalls: () => C1,
25628
25640
  frameLoop: () => c23,
25629
25641
  getFluidObservers: () => yt,
25630
25642
  getFluidValue: () => W0,
@@ -25798,7 +25810,7 @@ Check the top-level render call using <` + u1 + ">.");
25798
25810
  v.clear(), d1(V, M);
25799
25811
  }
25800
25812
  }
25801
- var 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) => {
25813
+ var C1 = (v, ...M) => n1(v, (V) => V(...M)), f1 = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), S1, j1, k1 = null, y2 = false, K = r1, H1 = (v) => {
25802
25814
  v.to && (j1 = v.to), v.now && (g.now = v.now), v.colors !== void 0 && (k1 = v.colors), v.skipAnimation != null && (y2 = v.skipAnimation), v.createStringInterpolator && (S1 = v.createStringInterpolator), v.requestAnimationFrame && g.use(v.requestAnimationFrame), v.batchedUpdates && (g.batchedUpdates = v.batchedUpdates), v.willAdvance && (K = v.willAdvance), v.frameLoop && (g.frameLoop = v.frameLoop);
25803
25815
  }, g1 = /* @__PURE__ */ new Set(), M1 = [], I1 = [], R1 = 0, c23 = {
25804
25816
  get idle() {
@@ -26538,7 +26550,7 @@ Check the top-level render call using <` + u1 + ">.");
26538
26550
  return (0, d1.forwardRef)((g1, M1) => {
26539
26551
  let I1 = (0, d1.useRef)(null), R1 = H1 && (0, d1.useCallback)(($1) => {
26540
26552
  I1.current = f1(M1, $1);
26541
- }, [M1]), [c23, K1] = B1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
26553
+ }, [M1]), [c23, K1] = C1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
26542
26554
  let $1 = I1.current;
26543
26555
  H1 && !$1 || ($1 ? K.applyAnimatedValues($1, c23.getValue(true)) : false) === false && H2();
26544
26556
  }, z2 = new n1(W2, K1), M2 = (0, d1.useRef)();
@@ -26559,7 +26571,7 @@ Check the top-level render call using <` + u1 + ">.");
26559
26571
  y2.type == "change" && I.raf.write(this.update);
26560
26572
  }
26561
26573
  };
26562
- function B1(y2, K) {
26574
+ function C1(y2, K) {
26563
26575
  let H1 = /* @__PURE__ */ new Set();
26564
26576
  return $.dependencies = H1, y2.style && (y2 = { ...y2, style: K.createAnimatedStyle(y2.style) }), y2 = new W(y2), $.dependencies = null, [y2, H1];
26565
26577
  }
@@ -26737,7 +26749,7 @@ Check the top-level render call using <` + u1 + ">.");
26737
26749
  I1.current = f1(M1, $1);
26738
26750
  },
26739
26751
  [M1]
26740
- ), [c23, K1] = B1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
26752
+ ), [c23, K1] = C1(g1, K), H2 = (0, I.useForceUpdate)(), W2 = () => {
26741
26753
  const $1 = I1.current;
26742
26754
  if (H1 && !$1)
26743
26755
  return;
@@ -26763,7 +26775,7 @@ Check the top-level render call using <` + u1 + ">.");
26763
26775
  y2.type == "change" && I.raf.write(this.update);
26764
26776
  }
26765
26777
  };
26766
- function B1(y2, K) {
26778
+ function C1(y2, K) {
26767
26779
  const H1 = /* @__PURE__ */ new Set();
26768
26780
  return $.dependencies = H1, y2.style && (y2 = {
26769
26781
  ...y2,
@@ -26934,7 +26946,7 @@ Check the top-level render call using <` + u1 + ">.");
26934
26946
  }
26935
26947
  });
26936
26948
  }
26937
- var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(), 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 {
26949
+ var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(), C1 = T1(), f1 = { default: { tension: 170, friction: 26 }, gentle: { tension: 120, friction: 14 }, wobbly: { tension: 180, friction: 12 }, stiff: { tension: 210, friction: 20 }, slow: { tension: 280, friction: 60 }, molasses: { tension: 280, friction: 120 } }, S1 = { ...f1.default, mass: 1, damping: 1, easing: C1.easings.linear, clamp: false }, j1 = class {
26938
26950
  constructor() {
26939
26951
  this.velocity = 0, Object.assign(this, S1);
26940
26952
  }
@@ -26944,14 +26956,14 @@ Check the top-level render call using <` + u1 + ">.");
26944
26956
  for (let Y in S1)
26945
26957
  s10[Y] == null && (s10[Y] = S1[Y]);
26946
26958
  let { frequency: L, damping: A } = s10, { mass: P } = s10;
26947
- return 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;
26959
+ return C1.is.und(L) || (L < 0.01 && (L = 0.01), A < 0 && (A = 0), s10.tension = Math.pow(2 * Math.PI / L, 2) * P, s10.friction = 4 * Math.PI * A * P / L), s10;
26948
26960
  }
26949
26961
  function y2(s10, u7) {
26950
- if (!B1.is.und(u7.decay))
26962
+ if (!C1.is.und(u7.decay))
26951
26963
  s10.duration = void 0;
26952
26964
  else {
26953
- let H = !B1.is.und(u7.tension) || !B1.is.und(u7.friction);
26954
- (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);
26965
+ let H = !C1.is.und(u7.tension) || !C1.is.und(u7.friction);
26966
+ (H || !C1.is.und(u7.frequency) || !C1.is.und(u7.damping) || !C1.is.und(u7.mass)) && (s10.duration = void 0, s10.decay = void 0), H && (s10.frequency = void 0);
26955
26967
  }
26956
26968
  }
26957
26969
  var K = [], H1 = class {
@@ -28015,7 +28027,7 @@ Check the top-level render call using <` + u1 + ">.");
28015
28027
  }
28016
28028
  });
28017
28029
  }
28018
- var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(), B1 = T1(), f1 = {
28030
+ var L1 = T1(), d1 = React$3, I = T1(), S = T1(), n1 = Vt(), C1 = T1(), f1 = {
28019
28031
  default: { tension: 170, friction: 26 },
28020
28032
  gentle: { tension: 120, friction: 14 },
28021
28033
  wobbly: { tension: 180, friction: 12 },
@@ -28026,7 +28038,7 @@ Check the top-level render call using <` + u1 + ">.");
28026
28038
  ...f1.default,
28027
28039
  mass: 1,
28028
28040
  damping: 1,
28029
- easing: B1.easings.linear,
28041
+ easing: C1.easings.linear,
28030
28042
  clamp: false
28031
28043
  }, j1 = class {
28032
28044
  constructor() {
@@ -28039,14 +28051,14 @@ Check the top-level render call using <` + u1 + ">.");
28039
28051
  s10[Y] == null && (s10[Y] = S1[Y]);
28040
28052
  let { frequency: L, damping: A } = s10;
28041
28053
  const { mass: P } = s10;
28042
- return 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;
28054
+ return C1.is.und(L) || (L < 0.01 && (L = 0.01), A < 0 && (A = 0), s10.tension = Math.pow(2 * Math.PI / L, 2) * P, s10.friction = 4 * Math.PI * A * P / L), s10;
28043
28055
  }
28044
28056
  function y2(s10, u7) {
28045
- if (!B1.is.und(u7.decay))
28057
+ if (!C1.is.und(u7.decay))
28046
28058
  s10.duration = void 0;
28047
28059
  else {
28048
- const H = !B1.is.und(u7.tension) || !B1.is.und(u7.friction);
28049
- (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);
28060
+ const H = !C1.is.und(u7.tension) || !C1.is.und(u7.friction);
28061
+ (H || !C1.is.und(u7.frequency) || !C1.is.und(u7.damping) || !C1.is.und(u7.mass)) && (s10.duration = void 0, s10.decay = void 0), H && (s10.frequency = void 0);
28050
28062
  }
28051
28063
  }
28052
28064
  var K = [], H1 = class {
@@ -29331,10 +29343,10 @@ Check the top-level render call using <` + u1 + ">.");
29331
29343
  var e2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, n5 = Object.getOwnPropertyNames, h2 = Object.prototype.hasOwnProperty, i2 = (I, S) => {
29332
29344
  for (var n1 in S)
29333
29345
  e2(I, n1, { get: S[n1], enumerable: true });
29334
- }, c2 = (I, S, n1, B1) => {
29346
+ }, c2 = (I, S, n1, C1) => {
29335
29347
  if (S && typeof S == "object" || typeof S == "function")
29336
29348
  for (let f1 of n5(S))
29337
- !h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(B1 = r2(S, f1)) || B1.enumerable });
29349
+ !h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(C1 = r2(S, f1)) || C1.enumerable });
29338
29350
  return I;
29339
29351
  }, l2 = (I, S, n1) => (c2(I, S, "default"), n1 && c2(n1, S, "default")), o4 = (I) => c2(e2({}, "__esModule", { value: true }), I), d = {};
29340
29352
  i2(d, { a: () => d1, animated: () => d1 }), t2.exports = o4(d);
@@ -29346,11 +29358,11 @@ Check the top-level render call using <` + u1 + ">.");
29346
29358
  function F(I, S) {
29347
29359
  if (!I.nodeType || !I.setAttribute)
29348
29360
  return false;
29349
- let n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style: 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())));
29361
+ let n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style: C1, children: f1, scrollTop: S1, scrollLeft: j1, viewBox: k1, ...y2 } = S, K = Object.values(y2), H1 = Object.keys(y2).map((g1) => n1 || I.hasAttribute(g1) ? g1 : b[g1] || (b[g1] = g1.replace(/([A-Z])/g, (M1) => "-" + M1.toLowerCase())));
29350
29362
  f1 !== void 0 && (I.textContent = f1);
29351
- for (let g1 in B1)
29352
- if (B1.hasOwnProperty(g1)) {
29353
- let M1 = C(g1, B1[g1]);
29363
+ for (let g1 in C1)
29364
+ if (C1.hasOwnProperty(g1)) {
29365
+ let M1 = C(g1, C1[g1]);
29354
29366
  B.test(g1) ? I.style.setProperty(g1, M1) : I.style[g1] = M1;
29355
29367
  }
29356
29368
  H1.forEach((g1, M1) => {
@@ -29360,18 +29372,18 @@ Check the top-level render call using <` + u1 + ">.");
29360
29372
  var N = { animationIterationCount: true, borderImageOutset: true, borderImageSlice: true, borderImageWidth: true, boxFlex: true, boxFlexGroup: true, boxOrdinalGroup: true, columnCount: true, columns: true, flex: true, flexGrow: true, flexPositive: true, flexShrink: true, flexNegative: true, flexOrder: true, gridRow: true, gridRowEnd: true, gridRowSpan: true, gridRowStart: true, gridColumn: true, gridColumnEnd: true, gridColumnSpan: true, gridColumnStart: true, fontWeight: true, lineClamp: true, lineHeight: true, opacity: true, order: true, orphans: true, tabSize: true, widows: true, zIndex: true, zoom: true, fillOpacity: true, floodOpacity: true, stopOpacity: true, strokeDasharray: true, strokeDashoffset: true, strokeMiterlimit: true, strokeOpacity: true, strokeWidth: true }, X = (I, S) => I + S.charAt(0).toUpperCase() + S.substring(1), c1 = ["Webkit", "Ms", "Moz", "O"];
29361
29373
  N = Object.keys(N).reduce((I, S) => (c1.forEach((n1) => I[X(n1, S)] = I[S]), I), N);
29362
29374
  var a1 = Vt(), R = T1(), Q = /^(matrix|translate|scale|rotate|skew)/, $ = /^(translate)/, W = /^(rotate|skew)/, G = (I, S) => R.is.num(I) && I !== 0 ? I + S : I, J = (I, S) => R.is.arr(I) ? I.every((n1) => J(n1, S)) : R.is.num(I) ? I === S : parseFloat(I) === S, r1 = class extends a1.AnimatedObject {
29363
- constructor({ x: I, y: S, z: n1, ...B1 }) {
29375
+ constructor({ x: I, y: S, z: n1, ...C1 }) {
29364
29376
  let f1 = [], S1 = [];
29365
- (I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [`translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`, J(j1, 0)])), (0, R.eachProp)(B1, (j1, k1) => {
29377
+ (I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [`translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`, J(j1, 0)])), (0, R.eachProp)(C1, (j1, k1) => {
29366
29378
  if (k1 === "transform")
29367
29379
  f1.push([j1 || ""]), S1.push((y2) => [y2, y2 === ""]);
29368
29380
  else if (Q.test(k1)) {
29369
- if (delete B1[k1], R.is.und(j1))
29381
+ if (delete C1[k1], R.is.und(j1))
29370
29382
  return;
29371
29383
  let y2 = $.test(k1) ? "px" : W.test(k1) ? "deg" : "";
29372
29384
  f1.push((0, R.toArray)(j1)), S1.push(k1 === "rotate3d" ? ([K, H1, g1, M1]) => [`rotate3d(${K},${H1},${g1},${G(M1, y2)})`, J(M1, 0)] : (K) => [`${k1}(${K.map((H1) => G(H1, y2)).join(",")})`, J(K, k1.startsWith("scale") ? 1 : 0)]);
29373
29385
  }
29374
- }), f1.length && (B1.transform = new D(f1, S1)), super(B1);
29386
+ }), f1.length && (C1.transform = new D(f1, S1)), super(C1);
29375
29387
  }
29376
29388
  }, D = class extends R.FluidValue {
29377
29389
  constructor(I, S) {
@@ -29382,8 +29394,8 @@ Check the top-level render call using <` + u1 + ">.");
29382
29394
  }
29383
29395
  _get() {
29384
29396
  let I = "", S = true;
29385
- return (0, R.each)(this.inputs, (n1, B1) => {
29386
- let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[B1](R.is.arr(f1) ? f1 : n1.map(R.getFluidValue));
29397
+ return (0, R.each)(this.inputs, (n1, C1) => {
29398
+ let f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[C1](R.is.arr(f1) ? f1 : n1.map(R.getFluidValue));
29387
29399
  I += " " + S1, S = S && j1;
29388
29400
  }), S ? "none" : I;
29389
29401
  }
@@ -29407,10 +29419,10 @@ Check the top-level render call using <` + u1 + ">.");
29407
29419
  var e2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, n5 = Object.getOwnPropertyNames, h2 = Object.prototype.hasOwnProperty, i2 = (I, S) => {
29408
29420
  for (var n1 in S)
29409
29421
  e2(I, n1, { get: S[n1], enumerable: true });
29410
- }, c2 = (I, S, n1, B1) => {
29422
+ }, c2 = (I, S, n1, C1) => {
29411
29423
  if (S && typeof S == "object" || typeof S == "function")
29412
29424
  for (let f1 of n5(S))
29413
- !h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(B1 = r2(S, f1)) || B1.enumerable });
29425
+ !h2.call(I, f1) && f1 !== n1 && e2(I, f1, { get: () => S[f1], enumerable: !(C1 = r2(S, f1)) || C1.enumerable });
29414
29426
  return I;
29415
29427
  }, l2 = (I, S, n1) => (c2(I, S, "default"), n1 && c2(n1, S, "default")), o4 = (I) => c2(e2({}, "__esModule", { value: true }), I), d = {};
29416
29428
  i2(d, {
@@ -29425,7 +29437,7 @@ Check the top-level render call using <` + u1 + ">.");
29425
29437
  function F(I, S) {
29426
29438
  if (!I.nodeType || !I.setAttribute)
29427
29439
  return false;
29428
- const n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style: B1, children: f1, scrollTop: S1, scrollLeft: j1, viewBox: k1, ...y2 } = S, K = Object.values(y2), H1 = Object.keys(y2).map(
29440
+ const n1 = I.nodeName === "filter" || I.parentNode && I.parentNode.nodeName === "filter", { style: C1, children: f1, scrollTop: S1, scrollLeft: j1, viewBox: k1, ...y2 } = S, K = Object.values(y2), H1 = Object.keys(y2).map(
29429
29441
  (g1) => n1 || I.hasAttribute(g1) ? g1 : b[g1] || (b[g1] = g1.replace(
29430
29442
  /([A-Z])/g,
29431
29443
  // Attributes are written in dash case
@@ -29433,9 +29445,9 @@ Check the top-level render call using <` + u1 + ">.");
29433
29445
  ))
29434
29446
  );
29435
29447
  f1 !== void 0 && (I.textContent = f1);
29436
- for (const g1 in B1)
29437
- if (B1.hasOwnProperty(g1)) {
29438
- const M1 = C(g1, B1[g1]);
29448
+ for (const g1 in C1)
29449
+ if (C1.hasOwnProperty(g1)) {
29450
+ const M1 = C(g1, C1[g1]);
29439
29451
  B.test(g1) ? I.style.setProperty(g1, M1) : I.style[g1] = M1;
29440
29452
  }
29441
29453
  H1.forEach((g1, M1) => {
@@ -29488,17 +29500,17 @@ Check the top-level render call using <` + u1 + ">.");
29488
29500
  }, X = (I, S) => I + S.charAt(0).toUpperCase() + S.substring(1), c1 = ["Webkit", "Ms", "Moz", "O"];
29489
29501
  N = Object.keys(N).reduce((I, S) => (c1.forEach((n1) => I[X(n1, S)] = I[S]), I), N);
29490
29502
  var a1 = Vt(), R = T1(), Q = /^(matrix|translate|scale|rotate|skew)/, $ = /^(translate)/, W = /^(rotate|skew)/, G = (I, S) => R.is.num(I) && I !== 0 ? I + S : I, J = (I, S) => R.is.arr(I) ? I.every((n1) => J(n1, S)) : R.is.num(I) ? I === S : parseFloat(I) === S, r1 = class extends a1.AnimatedObject {
29491
- constructor({ x: I, y: S, z: n1, ...B1 }) {
29503
+ constructor({ x: I, y: S, z: n1, ...C1 }) {
29492
29504
  const f1 = [], S1 = [];
29493
29505
  (I || S || n1) && (f1.push([I || 0, S || 0, n1 || 0]), S1.push((j1) => [
29494
29506
  `translate3d(${j1.map((k1) => G(k1, "px")).join(",")})`,
29495
29507
  // prettier-ignore
29496
29508
  J(j1, 0)
29497
- ])), (0, R.eachProp)(B1, (j1, k1) => {
29509
+ ])), (0, R.eachProp)(C1, (j1, k1) => {
29498
29510
  if (k1 === "transform")
29499
29511
  f1.push([j1 || ""]), S1.push((y2) => [y2, y2 === ""]);
29500
29512
  else if (Q.test(k1)) {
29501
- if (delete B1[k1], R.is.und(j1))
29513
+ if (delete C1[k1], R.is.und(j1))
29502
29514
  return;
29503
29515
  const y2 = $.test(k1) ? "px" : W.test(k1) ? "deg" : "";
29504
29516
  f1.push((0, R.toArray)(j1)), S1.push(
@@ -29511,7 +29523,7 @@ Check the top-level render call using <` + u1 + ">.");
29511
29523
  ]
29512
29524
  );
29513
29525
  }
29514
- }), f1.length && (B1.transform = new D(f1, S1)), super(B1);
29526
+ }), f1.length && (C1.transform = new D(f1, S1)), super(C1);
29515
29527
  }
29516
29528
  }, D = class extends R.FluidValue {
29517
29529
  constructor(I, S) {
@@ -29522,8 +29534,8 @@ Check the top-level render call using <` + u1 + ">.");
29522
29534
  }
29523
29535
  _get() {
29524
29536
  let I = "", S = true;
29525
- return (0, R.each)(this.inputs, (n1, B1) => {
29526
- const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[B1](
29537
+ return (0, R.each)(this.inputs, (n1, C1) => {
29538
+ const f1 = (0, R.getFluidValue)(n1[0]), [S1, j1] = this.transforms[C1](
29527
29539
  R.is.arr(f1) ? f1 : n1.map(R.getFluidValue)
29528
29540
  );
29529
29541
  I += " " + S1, S = S && j1;
@@ -29899,7 +29911,7 @@ Check the top-level render call using <` + u1 + ">.");
29899
29911
  var I = Z.defaultPrevented;
29900
29912
  if (!I && D.state.active) {
29901
29913
  if (D.isMovingCross == null) {
29902
- var S = D.props, n1 = S.vertical, B1 = S.ignoreCrossMove, f1 = B1;
29914
+ var S = D.props, n1 = S.vertical, C1 = S.ignoreCrossMove, f1 = C1;
29903
29915
  typeof f1 != "number" && (f1 = f1 ? 1 : 0);
29904
29916
  var S1 = n1 ? "y" : "x", j1 = n1 ? "x" : "y", k1 = Math.abs(L1[S1] - D.touchMoves[0][S1]), y2 = Math.abs(L1[j1] - D.touchMoves[0][j1]);
29905
29917
  D.isMovingCross = y2 * f1 > k1;
@@ -29922,10 +29934,10 @@ Check the top-level render call using <` + u1 + ">.");
29922
29934
  D.grabbing && (Z.preventDefault(), Z.stopPropagation());
29923
29935
  var d1 = D.state.dragging, I = null;
29924
29936
  if (d1 && D.touchMoves.length) {
29925
- for (var S = D.props, n1 = S.cardSize, 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; )
29937
+ for (var S = D.props, n1 = S.cardSize, C1 = S.moveScale, f1 = S.vertical, S1 = D.props.friction / 1e6, j1 = b(D), k1 = j1.touchMoves, y2 = k1.length, K = 0; --y2 >= 0 && K < 100; )
29926
29938
  K = Date.now() - k1[y2].time;
29927
29939
  y2++;
29928
- var H1 = f1 ? "y" : "x", g1 = ((0, h2.getTouchPosition)(Z)[H1] - k1[y2][H1]) / K, M1 = g1 * Math.abs(g1) / S1 / 2, I1 = D.state.cursor, R1 = (0, h2.clamp)(M1 / n1 * B1, Math.floor(I1) - I1, Math.ceil(I1) - I1);
29940
+ var H1 = f1 ? "y" : "x", g1 = ((0, h2.getTouchPosition)(Z)[H1] - k1[y2][H1]) / K, M1 = g1 * Math.abs(g1) / S1 / 2, I1 = D.state.cursor, R1 = (0, h2.clamp)(M1 / n1 * C1, Math.floor(I1) - I1, Math.ceil(I1) - I1);
29929
29941
  I = Math.round(I1 + R1), D.touchMoves = [];
29930
29942
  } else
29931
29943
  I = Math.round(D.state.cursor);
@@ -30020,8 +30032,8 @@ Check the top-level render call using <` + u1 + ">.");
30020
30032
  var Z = this;
30021
30033
  this.AnimatedComponent = (0, n5.animated)(D.component);
30022
30034
  var L1 = function(I) {
30023
- var S = I.index, n1 = I.modIndex, B1 = I.cursor, f1 = I.state;
30024
- return Z.usedCursor = B1, Z.props.renderCard(S, n1, B1, f1);
30035
+ var S = I.index, n1 = I.modIndex, C1 = I.cursor, f1 = I.state;
30036
+ return Z.usedCursor = C1, Z.props.renderCard(S, n1, C1, f1);
30025
30037
  };
30026
30038
  this.AnimatedCard = (0, n5.animated)(L1);
30027
30039
  }
@@ -30033,8 +30045,8 @@ Check the top-level render call using <` + u1 + ">.");
30033
30045
  }, {
30034
30046
  key: "getComputedCursor",
30035
30047
  value: function() {
30036
- var D = this.props, Z = D.cardCount, L1 = D.loop, d1 = D.maxOverflow, I = this.state, S = I.cursor, n1 = I.dragging, B1 = S;
30037
- 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;
30048
+ var D = this.props, Z = D.cardCount, L1 = D.loop, d1 = D.maxOverflow, I = this.state, S = I.cursor, n1 = I.dragging, C1 = S;
30049
+ return L1 || (C1 = (0, h2.clamp)(C1, 1 - Z, 0), n1 && S > 0 ? C1 = d1 - d1 / (S + 1) : n1 && S < 1 - Z && (C1 = 1 - Z - d1 + d1 / (1 - Z - S + 1))), C1;
30038
30050
  }
30039
30051
  }, {
30040
30052
  key: "getUsedCursor",
@@ -30048,9 +30060,9 @@ Check the top-level render call using <` + u1 + ">.");
30048
30060
  d1.cardSize;
30049
30061
  var I = d1.cardCount, S = d1.cardPadCount;
30050
30062
  d1.renderCard;
30051
- var n1 = d1.tension, 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 = {
30063
+ var n1 = d1.tension, C1 = d1.friction, f1 = d1.precision, S1 = d1.loop, j1 = l2(d1, ["cardSize", "cardCount", "cardPadCount", "renderCard", "tension", "friction", "precision", "loop"]), k1 = S1 ? S : 0, y2 = {
30052
30064
  tension: n1,
30053
- friction: B1,
30065
+ friction: C1,
30054
30066
  precision: f1
30055
30067
  }, K = this.getComputedCursor();
30056
30068
  return /* @__PURE__ */ r2.default.createElement(n5.Spring, {
@@ -30982,7 +30994,7 @@ Check the top-level render call using <` + u1 + ">.");
30982
30994
  }, {
30983
30995
  key: "render",
30984
30996
  value: function() {
30985
- var W, G, J, r1, D, Z = this.props, L1 = Z.baseClassName, d1 = Z.controlClassName, I = Z.placeholderClassName, S = Z.menuClassName, n1 = Z.arrowClassName, 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", {
30997
+ var W, G, J, r1, D, Z = this.props, L1 = Z.baseClassName, d1 = Z.controlClassName, I = Z.placeholderClassName, S = Z.menuClassName, n1 = Z.arrowClassName, C1 = Z.arrowClosed, f1 = Z.arrowOpen, S1 = Z.className, j1 = this.props.disabled ? "Dropdown-disabled" : "", k1 = typeof this.state.selected == "string" ? this.state.selected : this.state.selected.label, y2 = (0, r2.default)((W = {}, g(W, "".concat(L1, "-root"), true), g(W, S1, !!S1), g(W, "is-open", this.state.isOpen), W)), K = (0, r2.default)((G = {}, g(G, "".concat(L1, "-control"), true), g(G, d1, !!d1), g(G, j1, !!j1), G)), H1 = (0, r2.default)((J = {}, g(J, "".concat(L1, "-placeholder"), true), g(J, I, !!I), g(J, "is-selected", this.isValueSelected()), J)), g1 = (0, r2.default)((r1 = {}, g(r1, "".concat(L1, "-menu"), true), g(r1, S, !!S), r1)), M1 = (0, r2.default)((D = {}, g(D, "".concat(L1, "-arrow"), true), g(D, n1, !!n1), D)), I1 = e2.default.createElement("div", {
30986
30998
  className: H1
30987
30999
  }, k1), R1 = this.state.isOpen ? e2.default.createElement("div", {
30988
31000
  className: g1,
@@ -30998,7 +31010,7 @@ Check the top-level render call using <` + u1 + ">.");
30998
31010
  "aria-haspopup": "listbox"
30999
31011
  }, I1, e2.default.createElement("div", {
31000
31012
  className: "".concat(L1, "-arrow-wrapper")
31001
- }, f1 && B1 ? this.state.isOpen ? f1 : B1 : e2.default.createElement("span", {
31013
+ }, f1 && C1 ? this.state.isOpen ? f1 : C1 : e2.default.createElement("span", {
31002
31014
  className: M1
31003
31015
  }))), R1);
31004
31016
  }
@@ -33061,7 +33073,7 @@ Check the top-level render call using <` + u1 + ">.");
33061
33073
  case "ucs-2":
33062
33074
  case "utf16le":
33063
33075
  case "utf-16le":
33064
- return B1(this, z, p4);
33076
+ return C1(this, z, p4);
33065
33077
  default:
33066
33078
  if (O)
33067
33079
  throw new TypeError("Unknown encoding: " + x);
@@ -33323,7 +33335,7 @@ Check the top-level render call using <` + u1 + ">.");
33323
33335
  T += S2[x[q]];
33324
33336
  return T;
33325
33337
  }
33326
- function B1(x, z, p4) {
33338
+ function C1(x, z, p4) {
33327
33339
  const O = x.slice(z, p4);
33328
33340
  let T = "";
33329
33341
  for (let q = 0; q < O.length - 1; q += 2)
@@ -34490,7 +34502,7 @@ body {
34490
34502
  )
34491
34503
  ] }), SG1 = styled.div`
34492
34504
  position: relative;
34493
- background-color: ${(t2) => t2.$pressed ? C1.view.backColor.lighter : A3(t2.$backColor)};
34505
+ background-color: ${(t2) => t2.$pressed ? B1.view.backColor.lighter : A3(t2.$backColor)};
34494
34506
  border-radius: 10px;
34495
34507
  padding: 16px;
34496
34508
  padding-top: 8px;
@@ -34500,19 +34512,19 @@ body {
34500
34512
 
34501
34513
  ${F9};
34502
34514
  `, AG1 = styled.div`
34503
- font-size: ${() => C1.text.size.xsmall}px;
34504
- color: ${() => C1.text.color.tint};
34515
+ font-size: ${() => B1.text.size.xsmall}px;
34516
+ color: ${() => B1.text.color.tint};
34505
34517
  padding: 0;
34506
34518
  padding-top: 8px;
34507
34519
  margin-left: 4px;
34508
34520
  margin-bottom: -4px;
34509
34521
  text-transform: uppercase;
34510
34522
  `, bG1 = styled.div`
34511
- font-family: ${() => C1.text.family.heading};
34512
- font-size: ${() => C1.text.size.heading}px;
34513
- line-height: ${() => C1.text.height.heading}px;
34514
- font-weight: ${() => C1.text.weight.heading};
34515
- color: ${() => C1.text.color.normal};
34523
+ font-family: ${() => B1.text.family.heading};
34524
+ font-size: ${() => B1.text.size.heading}px;
34525
+ line-height: ${() => B1.text.height.heading}px;
34526
+ font-weight: ${() => B1.text.weight.heading};
34527
+ color: ${() => B1.text.color.normal};
34516
34528
  margin: 4px;
34517
34529
  margin-bottom: 1px;
34518
34530
  `, _G1 = styled.div`
@@ -34521,8 +34533,8 @@ body {
34521
34533
  padding: 6px 6px 6px 4px;
34522
34534
  padding-top: 4px;
34523
34535
  `, IG1 = styled.div`
34524
- font-size: ${() => C1.text.size.normal}px;
34525
- color: ${() => C1.text.color.xsubtle};
34536
+ font-size: ${() => B1.text.size.normal}px;
34537
+ color: ${() => B1.text.color.xsubtle};
34526
34538
  margin-top: -1px;
34527
34539
  padding-left: ${(t2) => t2.$hasIcon ? "6px" : "0px"};
34528
34540
  `, PG1 = styled.div`
@@ -34568,7 +34580,7 @@ body {
34568
34580
  {
34569
34581
  name: i2,
34570
34582
  size: 18,
34571
- color: C1.text.color.xsubtle
34583
+ color: B1.text.color.xsubtle
34572
34584
  }
34573
34585
  ) }),
34574
34586
  /* @__PURE__ */ z1.jsx(IG1, { $hasIcon: !!i2, children: n5 })
@@ -38499,7 +38511,7 @@ body {
38499
38511
  }
38500
38512
  const Z = o2(h2.ticks.maxTicksLimit, f4), L1 = Math.max(1, Math.ceil(f4 / Z));
38501
38513
  for (X = 0; X < f4; X += L1) {
38502
- const d1 = this.getContext(X), I = i2.setContext(d1), S = l2.setContext(d1), n1 = I.lineWidth, B1 = I.color, f1 = S.dash || [], S1 = S.dashOffset, j1 = I.tickWidth, k1 = I.tickColor, y2 = I.tickBorderDash || [], K = I.tickBorderDashOffset;
38514
+ const d1 = this.getContext(X), I = i2.setContext(d1), S = l2.setContext(d1), n1 = I.lineWidth, C1 = I.color, f1 = S.dash || [], S1 = S.dashOffset, j1 = I.tickWidth, k1 = I.tickColor, y2 = I.tickBorderDash || [], K = I.tickBorderDashOffset;
38503
38515
  c1 = HX1(this, X, o4), c1 !== void 0 && (a1 = V4(n5, c1, n1), d ? R = $ = G = r1 = a1 : Q = W = J = D = a1, w2.push({
38504
38516
  tx1: R,
38505
38517
  ty1: Q,
@@ -38510,7 +38522,7 @@ body {
38510
38522
  x2: r1,
38511
38523
  y2: D,
38512
38524
  width: n1,
38513
- color: B1,
38525
+ color: C1,
38514
38526
  borderDash: f1,
38515
38527
  borderDashOffset: S1,
38516
38528
  tickWidth: j1,
@@ -38558,8 +38570,8 @@ body {
38558
38570
  const L1 = i2.setContext(this.getContext(F));
38559
38571
  $ = this.getPixelForTick(F) + i2.labelOffset, W = this._resolveTickFontOptions(F), G = W.lineHeight, J = R2(c1) ? c1.length : 1;
38560
38572
  const d1 = J / 2, I = L1.color, S = L1.textStrokeColor, n1 = L1.textStrokeWidth;
38561
- let B1 = Q;
38562
- 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);
38573
+ let C1 = Q;
38574
+ c2 ? (a1 = $, Q === "inner" && (F === N - 1 ? C1 = this.options.reverse ? "left" : "right" : F === 0 ? C1 = this.options.reverse ? "right" : "left" : C1 = "center"), h2 === "top" ? d === "near" || C !== 0 ? r1 = -J * G + G / 2 : d === "center" ? r1 = -Z.highest.height / 2 - d1 * G + G : r1 = -Z.highest.height + G / 2 : d === "near" || C !== 0 ? r1 = G / 2 : d === "center" ? r1 = Z.highest.height / 2 - d1 * G : r1 = Z.highest.height - J * G, f4 && (r1 *= -1), C !== 0 && !L1.showLabelBackdrop && (a1 += G / 2 * Math.sin(C))) : (R = $, r1 = (1 - J) * G / 2);
38563
38575
  let f1;
38564
38576
  if (L1.showLabelBackdrop) {
38565
38577
  const S1 = H0(L1.backdropPadding), j1 = Z.heights[F], k1 = Z.widths[F];
@@ -38600,7 +38612,7 @@ body {
38600
38612
  color: I,
38601
38613
  strokeColor: S,
38602
38614
  strokeWidth: n1,
38603
- textAlign: B1,
38615
+ textAlign: C1,
38604
38616
  textBaseline: D,
38605
38617
  translation: [
38606
38618
  a1,
@@ -42497,7 +42509,7 @@ body {
42497
42509
  subtitle: n5,
42498
42510
  subtitleSize: h2 = "small",
42499
42511
  backColor: i2,
42500
- borderRadius: c2 = C1.card.borderRadius,
42512
+ borderRadius: c2 = B1.card.borderRadius,
42501
42513
  width: l2,
42502
42514
  height: o4,
42503
42515
  padding: d = 15,
@@ -42609,7 +42621,7 @@ body {
42609
42621
  }, l2 = r2 ? "none" : "light", o4 = /* @__PURE__ */ z1.jsxs(u0, { valign: "center", paddingRight: 10, children: [
42610
42622
  /* @__PURE__ */ z1.jsx(h4, { size: "xlarge", weight: "bold", paddingRight: 2, children: t2 }),
42611
42623
  !i2 && /* @__PURE__ */ z1.jsx(
42612
- _U1,
42624
+ IU1,
42613
42625
  {
42614
42626
  onClick: c2,
42615
42627
  iconName: "IoCloseSharp",
@@ -45186,9 +45198,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
45186
45198
  const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45187
45199
  __proto__: null,
45188
45200
  Button: R6,
45189
- ButtonLoadingIcon: kt2,
45190
- Card: Ot2,
45191
- CardButton: Bt2,
45201
+ ButtonLoadingIcon: Ot2,
45202
+ Card: Bt2,
45203
+ CardButton: Ct2,
45192
45204
  Carousel: Mq1,
45193
45205
  Cell: St2,
45194
45206
  ColorPicker: At2,
@@ -45198,12 +45210,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
45198
45210
  Header: Eq1,
45199
45211
  HeadingText: PU1,
45200
45212
  Icon: G4,
45201
- IconButton: _U1,
45213
+ IconButton: IU1,
45202
45214
  Image: It2,
45203
45215
  LoadingDots: Cr,
45204
- MenuBar: Ct2,
45216
+ MenuBar: yt2,
45205
45217
  MenuBarItem: WU1,
45206
- PillButton: yt2,
45218
+ PillButton: kt2,
45207
45219
  ProgressBar: Pt2,
45208
45220
  Screen: Wt2,
45209
45221
  ScreenLoadingOverlay: Dt2,
@@ -45217,7 +45229,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
45217
45229
  View: u0,
45218
45230
  formatDateTime: Yt2,
45219
45231
  formatFromNow: Gt2,
45220
- theme: C1,
45232
+ getImageAsBase64: uG1,
45233
+ theme: B1,
45221
45234
  useDateTime: qt2,
45222
45235
  useInterval: Ut2
45223
45236
  }, Symbol.toStringTag, { value: "Module" }));
@@ -49815,8 +49828,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
49815
49828
  if (zones.length > 1) {
49816
49829
  const components = [];
49817
49830
  zones.forEach((zone2) => {
49818
- if (zone2.plugin && zone2.component) {
49819
- const component = api2.plugin(zone2.plugin).component(zone2.component, {
49831
+ if (zone2.integration && zone2.component) {
49832
+ const component = api2.integration(zone2.integration).component(zone2.component, {
49820
49833
  ...parsePropsForComponent(api2, zone2.props),
49821
49834
  "aria-label": `zone-${props.id}`
49822
49835
  });
@@ -49824,7 +49837,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
49824
49837
  if (zone2.containerProps && Object.keys(zone2.containerProps).length > 0) {
49825
49838
  const style = parsePropsForComponent(api2, zone2.containerProps);
49826
49839
  components.push(
49827
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-label": `zone-${props.id}`, style, children: component })
49840
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { "aria-label": `zone-${props.id}`, style, children: component })
49828
49841
  );
49829
49842
  } else {
49830
49843
  components.push(component);
@@ -49847,9 +49860,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
49847
49860
  const zone = api2.board.zones.find(
49848
49861
  (z) => z.key === props.id
49849
49862
  );
49850
- if (zone && zone.plugin && zone.component) {
49851
- label = `${props.id}: ${zone.plugin}/${zone.component}`;
49852
- const component = api2.plugin(zone.plugin).component(zone.component, {
49863
+ if (zone && zone.integration && zone.component) {
49864
+ label = `${props.id}: ${zone.integration}/${zone.component}`;
49865
+ const component = api2.integration(zone.integration).component(zone.component, {
49853
49866
  ...parsePropsForComponent(api2, zone.props),
49854
49867
  "aria-label": `zone-${props.id}`
49855
49868
  });
@@ -50633,10 +50646,10 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
50633
50646
  }
50634
50647
  const registry = new Registry();
50635
50648
  const globals = {
50636
- boards: {},
50637
- commandGroups: {},
50649
+ boards: [],
50650
+ commandGroups: [],
50638
50651
  plugins: {},
50639
- pluginInstances: {},
50652
+ integrationInstances: {},
50640
50653
  setLocation: () => {
50641
50654
  },
50642
50655
  registry,
@@ -66274,11 +66287,11 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66274
66287
  cache: new InMemoryCache()
66275
66288
  });
66276
66289
  }
66277
- 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" } }] } }] } }] } }] } }] } }] };
66290
+ 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" } }] } }] } }] } }] } }] } }] };
66278
66291
  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" } }] } }] } }] } }] } }] };
66279
66292
  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" } }] } }] } }] } }] };
66280
66293
  const documents = {
66281
- "\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,
66294
+ "\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,
66282
66295
  "\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,
66283
66296
  "\n subscription userChange {\n userChange {\n user {\n id\n }\n }\n }\n": UserChangeDocument
66284
66297
  };
@@ -66298,9 +66311,13 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66298
66311
  title
66299
66312
  key
66300
66313
  layout
66314
+ base {
66315
+ integration
66316
+ key
66317
+ }
66301
66318
  zones {
66302
66319
  key
66303
- plugin
66320
+ integration
66304
66321
  component
66305
66322
  props {
66306
66323
  key
@@ -66317,12 +66334,16 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66317
66334
  key
66318
66335
  commands {
66319
66336
  title
66320
- plugin
66337
+ integration
66321
66338
  component
66322
66339
  props {
66323
66340
  key
66324
66341
  value
66325
66342
  }
66343
+ containerProps {
66344
+ key
66345
+ value
66346
+ }
66326
66347
  }
66327
66348
  }
66328
66349
  }
@@ -66363,13 +66384,13 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66363
66384
  data: null,
66364
66385
  loading: false
66365
66386
  });
66366
- let pluginInstances = {};
66367
- function getPluginInstances() {
66368
- return pluginInstances;
66387
+ let globalIntegrationInstances = {};
66388
+ function getIntegrationInstances() {
66389
+ return globalIntegrationInstances;
66369
66390
  }
66370
- function updateStatePlugins(plugins, instances) {
66371
- pluginInstances = instances;
66372
- state$1.plugins = plugins;
66391
+ function updateStatePlugins(pluginFactories, integrationInstances2) {
66392
+ globalIntegrationInstances = integrationInstances2;
66393
+ state$1.plugins = pluginFactories;
66373
66394
  }
66374
66395
  function updateStateData(data) {
66375
66396
  state$1.data = data;
@@ -66399,7 +66420,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66399
66420
  key: "dev",
66400
66421
  title: "Test Board",
66401
66422
  base: {
66402
- plugin: "base",
66423
+ integration: "base",
66403
66424
  key: "dev"
66404
66425
  },
66405
66426
  zones: []
@@ -66550,8 +66571,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66550
66571
  messages() {
66551
66572
  return this.internal.messages();
66552
66573
  }
66553
- plugin(name) {
66554
- return this.internal.plugin(name);
66574
+ integration(key) {
66575
+ return this.internal.integration(key);
66555
66576
  }
66556
66577
  get registry() {
66557
66578
  return this.internal.registry;
@@ -66583,26 +66604,26 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66583
66604
  open(boardKey) {
66584
66605
  this.internal.open(boardKey);
66585
66606
  }
66586
- get plugins() {
66587
- return this.internal.plugins;
66607
+ get integrations() {
66608
+ return this.internal.integrations;
66588
66609
  }
66589
66610
  get api() {
66590
- return this.plugin(this.integrationKey).api;
66611
+ return this.integration(this.integrationKey).api;
66591
66612
  }
66592
66613
  get state() {
66593
- return this.plugin(this.integrationKey).state;
66614
+ return this.integration(this.integrationKey).state;
66594
66615
  }
66595
66616
  get info() {
66596
- return this.plugin(this.integrationKey).info;
66617
+ return this.integration(this.integrationKey).info;
66597
66618
  }
66598
66619
  component(key, props) {
66599
- return this.plugin(this.integrationKey).component(key, props);
66620
+ return this.integration(this.integrationKey).component(key, props);
66600
66621
  }
66601
66622
  componentSchema(key) {
66602
- return this.plugin(this.integrationKey).componentSchema(key);
66623
+ return this.integration(this.integrationKey).componentSchema(key);
66603
66624
  }
66604
66625
  screen(path) {
66605
- return this.plugin(this.integrationKey).screen(path);
66626
+ return this.integration(this.integrationKey).screen(path);
66606
66627
  }
66607
66628
  }
66608
66629
  class ApiInternal {
@@ -66636,8 +66657,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66636
66657
  messages() {
66637
66658
  return this.globals.messages;
66638
66659
  }
66639
- plugin(name) {
66640
- return this.createPluginWrapper(name);
66660
+ integration(key) {
66661
+ return this.createIntegrationWrapper(key);
66641
66662
  }
66642
66663
  get registry() {
66643
66664
  return this.globals.registry;
@@ -66650,6 +66671,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66650
66671
  }
66651
66672
  get board() {
66652
66673
  return this.boards.find((board) => board.key === this.boardKey) || {
66674
+ title: "Missing board",
66675
+ key: "#error",
66653
66676
  zones: []
66654
66677
  };
66655
66678
  }
@@ -66671,20 +66694,20 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66671
66694
  open(boardKey) {
66672
66695
  this.globals.setLocation(`/${boardKey}`);
66673
66696
  }
66674
- createPluginWrapper(integrationKey) {
66675
- const plugin = this.getPluginInstance(integrationKey);
66676
- const available = !!plugin;
66697
+ createIntegrationWrapper(integrationKey) {
66698
+ const integration = this.getIntegrationInstance(integrationKey);
66699
+ const available = !!integration;
66677
66700
  return {
66678
66701
  available,
66679
66702
  info: {
66680
- components: (plugin == null ? void 0 : plugin.components) ? plugin.components.map((component) => component.key) : [],
66681
- screens: (plugin == null ? void 0 : plugin.screens) ? plugin.screens.map((screen) => screen.path) : []
66703
+ components: (integration == null ? void 0 : integration.components) ? integration.components.map((component) => component.key) : [],
66704
+ screens: (integration == null ? void 0 : integration.screens) ? integration.screens.map((screen) => screen.path) : []
66682
66705
  },
66683
66706
  component: (key, props) => this.getComponent(integrationKey, key, props),
66684
66707
  componentSchema: (key) => this.getComponentSchema(integrationKey, key),
66685
66708
  screen: (path) => this.getScreen(integrationKey, path),
66686
66709
  board: (key) => this.getBoard(integrationKey, key),
66687
- api: (plugin == null ? void 0 : plugin.api) || {},
66710
+ api: (integration == null ? void 0 : integration.api) || {},
66688
66711
  state: {
66689
66712
  get: (key, defaultValue) => {
66690
66713
  if (!available) {
@@ -66704,20 +66727,20 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66704
66727
  get globals() {
66705
66728
  return window.__dek_globals;
66706
66729
  }
66707
- get plugins() {
66708
- const plugins = {};
66709
- Object.keys(this.globals.pluginInstances).forEach((key) => {
66710
- plugins[key] = this.createPluginWrapper(key);
66730
+ get integrations() {
66731
+ const integrations = {};
66732
+ Object.keys(this.globals.integrationInstances).forEach((key) => {
66733
+ integrations[key] = this.createIntegrationWrapper(key);
66711
66734
  });
66712
- return plugins;
66735
+ return integrations;
66713
66736
  }
66714
- getPluginInstance(integrationKey) {
66715
- return this.globals.pluginInstances[integrationKey];
66737
+ getIntegrationInstance(integrationKey) {
66738
+ return this.globals.integrationInstances[integrationKey];
66716
66739
  }
66717
66740
  getComponent(integrationKey, componentKey, props) {
66718
- const plugin = this.getPluginInstance(integrationKey);
66719
- if (plugin) {
66720
- const component = plugin.components && plugin.components.find(
66741
+ const integration = this.getIntegrationInstance(integrationKey);
66742
+ if (integration) {
66743
+ const component = integration.components && integration.components.find(
66721
66744
  (c2) => c2.key.toLowerCase() === componentKey.toLowerCase()
66722
66745
  );
66723
66746
  if (!component) {
@@ -66725,15 +66748,15 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66725
66748
  }
66726
66749
  return component.element({
66727
66750
  ...props,
66728
- plugin,
66751
+ plugin: integration,
66729
66752
  api: new Api(integrationKey)
66730
66753
  });
66731
66754
  }
66732
66755
  }
66733
66756
  getComponentSchema(integrationKey, componentKey) {
66734
- const plugin = this.getPluginInstance(integrationKey);
66735
- if (plugin) {
66736
- const component = plugin.components && plugin.components.find(
66757
+ const integration = this.getIntegrationInstance(integrationKey);
66758
+ if (integration) {
66759
+ const component = integration.components && integration.components.find(
66737
66760
  (c2) => c2.key.toLowerCase() === componentKey.toLowerCase()
66738
66761
  );
66739
66762
  if (component) {
@@ -66744,29 +66767,35 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66744
66767
  }
66745
66768
  getScreen(integrationKey, screenPath) {
66746
66769
  if (integrationKey) {
66747
- const plugin = this.getPluginInstance(integrationKey);
66748
- if (plugin) {
66749
- const component = plugin.screens && plugin.screens.find(
66770
+ const integration = this.getIntegrationInstance(integrationKey);
66771
+ if (integration) {
66772
+ const component = integration.screens && integration.screens.find(
66750
66773
  (s4) => s4.path.toLowerCase() === screenPath.toLowerCase()
66751
66774
  );
66752
66775
  if (!component) {
66753
66776
  return;
66754
66777
  }
66755
- return component.element({ plugin, api: new Api(integrationKey) });
66778
+ return component.element({
66779
+ plugin: integration,
66780
+ api: new Api(integrationKey)
66781
+ });
66756
66782
  }
66757
66783
  }
66758
66784
  }
66759
66785
  getBoard(integrationKey, boardKey) {
66760
66786
  if (integrationKey) {
66761
- const plugin = this.getPluginInstance(integrationKey);
66762
- if (plugin) {
66763
- const component = plugin.boards && plugin.boards.find(
66787
+ const integration = this.getIntegrationInstance(integrationKey);
66788
+ if (integration) {
66789
+ const component = integration.boards && integration.boards.find(
66764
66790
  (c2) => c2.key.toLowerCase() === boardKey.toLowerCase()
66765
66791
  );
66766
66792
  if (!component) {
66767
66793
  return;
66768
66794
  }
66769
- return component.element({ plugin, api: new Api(integrationKey) });
66795
+ return component.element({
66796
+ plugin: integration,
66797
+ api: new Api(integrationKey)
66798
+ });
66770
66799
  }
66771
66800
  }
66772
66801
  }
@@ -66849,7 +66878,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66849
66878
  result.integrations.push({
66850
66879
  key: "base",
66851
66880
  pluginName: "base",
66852
- pluginVersion: "0.25.0",
66881
+ pluginVersion: "0.27.0",
66853
66882
  pluginConfig: []
66854
66883
  });
66855
66884
  return result;
@@ -66881,7 +66910,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66881
66910
  const useEntities = () => {
66882
66911
  return useSnapshot(state).entities;
66883
66912
  };
66884
- const Container$9 = styled.div`
66913
+ const Container$b = styled.div`
66885
66914
  width: 50px;
66886
66915
  height: 50px;
66887
66916
  padding: 0;
@@ -66959,7 +66988,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66959
66988
  }
66960
66989
  };
66961
66990
  const info = getWeatherTypeInfo(type);
66962
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
66991
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$b, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
66963
66992
  };
66964
66993
  const WeatherComponent = () => {
66965
66994
  const api2 = getPluginApi();
@@ -66985,7 +67014,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66985
67014
  ] })
66986
67015
  ] });
66987
67016
  };
66988
- const Container$8 = styled.div`
67017
+ const Container$a = styled.div`
66989
67018
  display: flex;
66990
67019
  align-items: center;
66991
67020
  width: 100%;
@@ -67016,7 +67045,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67016
67045
  padding-right: 15px;
67017
67046
  `;
67018
67047
  const Header = ({ height = 70 }) => {
67019
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$8, { "aria-label": "header", $height: height, children: [
67048
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$a, { "aria-label": "header", $height: height, children: [
67020
67049
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderLeft, { "aria-label": "header-left", children: /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherComponent, { "aria-label": "weather" }) }),
67021
67050
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderCenter, { "aria-label": "header-center" }),
67022
67051
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderRight, { "aria-label": "header-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClockComponent, { "aria-label": "clock" }) })
@@ -67024,7 +67053,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67024
67053
  };
67025
67054
  const About = () => {
67026
67055
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
67027
- /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.25.0"}` }),
67056
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.27.0"}` }),
67028
67057
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
67029
67058
  ] });
67030
67059
  };
@@ -67039,7 +67068,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67039
67068
  const handleSelection = (key) => {
67040
67069
  setSelectedKey(key);
67041
67070
  console.log("handleSelection", { key });
67042
- api2.plugin("base").state.set("backgroundKey", key);
67071
+ api2.integration("base").state.set("backgroundKey", key);
67043
67072
  };
67044
67073
  const menuItems = Object.keys(backgroundItems).map((key) => {
67045
67074
  const item = backgroundItems[key];
@@ -67050,7 +67079,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67050
67079
  });
67051
67080
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
67052
67081
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67053
- Ct2,
67082
+ yt2,
67054
67083
  {
67055
67084
  items: menuItems,
67056
67085
  onSelect: handleSelection,
@@ -67074,7 +67103,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67074
67103
  value: backgroundProps[key] || prop.default,
67075
67104
  onChange: (value) => {
67076
67105
  backgroundProps[key] = 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
  ) });
@@ -67091,7 +67120,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67091
67120
  value: backgroundProps[key],
67092
67121
  onChange: (option) => {
67093
67122
  backgroundProps[key] = option.value;
67094
- api2.plugin("base").state.set(propsKey, JSON.stringify(backgroundProps));
67123
+ api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
67095
67124
  }
67096
67125
  }
67097
67126
  ) });
@@ -67106,7 +67135,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67106
67135
  color: backgroundProps[key] || prop.default,
67107
67136
  onChange: (color) => {
67108
67137
  backgroundProps[key] = color;
67109
- api2.plugin("base").state.set(propsKey, JSON.stringify(backgroundProps));
67138
+ api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
67110
67139
  }
67111
67140
  }
67112
67141
  );
@@ -67139,7 +67168,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67139
67168
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
67140
67169
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Boards" }),
67141
67170
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: boards && boards.map(({ key, title }) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67142
- yt2,
67171
+ kt2,
67143
67172
  {
67144
67173
  title,
67145
67174
  icon: "none",
@@ -67160,12 +67189,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67160
67189
  )) });
67161
67190
  };
67162
67191
  const PluginDev = ({ api: api2 }) => {
67163
- const plugin = api2.plugin("plugin");
67192
+ const integration = api2.integration("plugin");
67164
67193
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { children: [
67165
67194
  /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
67166
67195
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Components" }),
67167
- /* @__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(
67168
- yt2,
67196
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: integration && integration.info.components.map((component) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67197
+ kt2,
67169
67198
  {
67170
67199
  title: component,
67171
67200
  icon: "none",
@@ -67173,8 +67202,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67173
67202
  }
67174
67203
  ) }, component)) }),
67175
67204
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, paddingTop: 50, children: "Screens" }),
67176
- /* @__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(
67177
- yt2,
67205
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: integration && integration.info.screens.map((screen) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67206
+ kt2,
67178
67207
  {
67179
67208
  title: screen,
67180
67209
  icon: "none",
@@ -67183,7 +67212,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67183
67212
  ) }, screen)) })
67184
67213
  ] }),
67185
67214
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { fixed: "bottom", height: 120, paddingLeft: 20, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67186
- Bt2,
67215
+ Ct2,
67187
67216
  {
67188
67217
  title: "Settings",
67189
67218
  variant: "clear",
@@ -67247,7 +67276,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67247
67276
  ];
67248
67277
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { cols: "24% auto", gap: 20, children: [
67249
67278
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67250
- Ct2,
67279
+ yt2,
67251
67280
  {
67252
67281
  items: menuItems,
67253
67282
  onSelect: handleSelection,
@@ -67266,7 +67295,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67266
67295
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "Sets the color for Cards with variant='normal'.." })
67267
67296
  }
67268
67297
  ),
67269
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Ot2, { padding: 12, direction: "vert", style: { marginBottom: 40 }, children: [
67298
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Bt2, { padding: 12, direction: "vert", style: { marginBottom: 40 }, children: [
67270
67299
  /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: "Card" }),
67271
67300
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "subtle", children: "Body" })
67272
67301
  ] }),
@@ -67276,7 +67305,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67276
67305
  width: "100%",
67277
67306
  maxWidth: 400,
67278
67307
  height: 150,
67279
- color: themeState["card-bg"] || C1.view.backColor.card,
67308
+ color: themeState["card-bg"] || B1.view.backColor.card,
67280
67309
  onChange: (color) => {
67281
67310
  themeState["card-bg"] = color;
67282
67311
  setThemeState(themeState);
@@ -67312,7 +67341,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67312
67341
  width: "100%",
67313
67342
  maxWidth: 400,
67314
67343
  height: 150,
67315
- color: themeState["tile-bg"] || C1.view.backColor.tile,
67344
+ color: themeState["tile-bg"] || B1.view.backColor.tile,
67316
67345
  onChange: (color) => {
67317
67346
  themeState["tile-bg"] = color;
67318
67347
  setThemeState(themeState);
@@ -67343,7 +67372,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67343
67372
  }
67344
67373
  ),
67345
67374
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
67346
- /* @__PURE__ */ jsxRuntimeExports.jsx(yt2, { title: "Clear Pill", variant: "clear" })
67375
+ /* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Clear Pill", variant: "clear" })
67347
67376
  ] }),
67348
67377
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67349
67378
  At2,
@@ -67352,7 +67381,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67352
67381
  width: "100%",
67353
67382
  maxWidth: 400,
67354
67383
  height: 150,
67355
- color: themeState["clear-bg"] || C1.view.backColor.clear,
67384
+ color: themeState["clear-bg"] || B1.view.backColor.clear,
67356
67385
  onChange: (color) => {
67357
67386
  themeState["clear-bg"] = color;
67358
67387
  setThemeState(themeState);
@@ -67373,9 +67402,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67373
67402
  }
67374
67403
  ),
67375
67404
  /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { style: { marginBottom: 40 }, direction: "horz", collapse: true, children: [
67376
- /* @__PURE__ */ jsxRuntimeExports.jsx(Bt2, { title: "Button", variant: "normal" }),
67405
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { title: "Button", variant: "normal" }),
67377
67406
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { width: 20 }),
67378
- /* @__PURE__ */ jsxRuntimeExports.jsx(yt2, { title: "Pill", variant: "normal" })
67407
+ /* @__PURE__ */ jsxRuntimeExports.jsx(kt2, { title: "Pill", variant: "normal" })
67379
67408
  ] }),
67380
67409
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67381
67410
  At2,
@@ -67383,7 +67412,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67383
67412
  width: "100%",
67384
67413
  maxWidth: 400,
67385
67414
  height: 150,
67386
- color: themeState["button-bg"] || C1.button.normal.backColor,
67415
+ color: themeState["button-bg"] || B1.button.normal.backColor,
67387
67416
  onChange: (color) => {
67388
67417
  themeState["button-bg"] = color;
67389
67418
  setThemeState(themeState);
@@ -67425,7 +67454,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67425
67454
  ] });
67426
67455
  };
67427
67456
  const SettingsScreen = ({ api: api2, isPluginDev }) => {
67428
- const isPrivatePluginDev = !isPluginDev && api2.plugin("plugin").available;
67457
+ const isPrivatePluginDev = !isPluginDev && api2.integration("plugin").available;
67429
67458
  const [selectedKey, setSelectedKey] = usePluginState(
67430
67459
  api2,
67431
67460
  "settings-screen-key",
@@ -67468,7 +67497,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
67468
67497
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { children: [
67469
67498
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "20% auto", padding: 20, paddingTop: 90, gap: 20, children: [
67470
67499
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67471
- Ct2,
67500
+ yt2,
67472
67501
  {
67473
67502
  items: menuItems,
67474
67503
  onSelect: handleMenuSelection,
@@ -71426,7 +71455,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71426
71455
  MONTH: "YYYY-MM"
71427
71456
  // <input type="month" />
71428
71457
  };
71429
- const Container$7 = styled.div`
71458
+ const Container$9 = styled.div`
71430
71459
  align-items: flex-start;
71431
71460
  padding: 10px 20px;
71432
71461
  margin-top: 130px;
@@ -71470,7 +71499,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71470
71499
  ]
71471
71500
  };
71472
71501
  const Greeting = ({ api: api2 }) => {
71473
- const calendarPlugin = api2.plugin("calendar");
71502
+ const calendarPlugin = api2.integration("calendar");
71474
71503
  const events2 = calendarPlugin.api.useEvents();
71475
71504
  const getGreeting = () => {
71476
71505
  const d = /* @__PURE__ */ new Date();
@@ -71495,9 +71524,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71495
71524
  events2.nextEvent.startDate * 1e3
71496
71525
  ).format("h:mm")}`;
71497
71526
  };
71498
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$7, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
71527
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
71499
71528
  };
71500
- const Container$6 = styled.div`
71529
+ const Container$8 = styled.div`
71501
71530
  height: 100vh;
71502
71531
  width: 100vw;
71503
71532
  background: ${(props) => `linear-gradient(90deg, ${props.$colorStart}, ${props.$colorEnd})`};
@@ -71537,12 +71566,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71537
71566
  }
71538
71567
  `;
71539
71568
  const BlobBackground = ({
71540
- colorStart = "#e52e71",
71541
- colorEnd = "#ff8a00",
71542
- speed = 0.5
71569
+ colorStart = "#26a88d",
71570
+ colorEnd = "#00796b",
71571
+ speed = 1
71543
71572
  }) => {
71544
71573
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
71545
- Container$6,
71574
+ Container$8,
71546
71575
  {
71547
71576
  "aria-label": "blob-background",
71548
71577
  $colorStart: colorStart,
@@ -71551,7 +71580,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71551
71580
  }
71552
71581
  );
71553
71582
  };
71554
- const Container$5 = styled.div`
71583
+ const Container$7 = styled.div`
71555
71584
  height: 100vh;
71556
71585
  width: 100vw;
71557
71586
  background: ${(props) => `radial-gradient(${props.$colorStart}, ${props.$colorEnd})`};
@@ -71646,12 +71675,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71646
71675
  left: 85%;
71647
71676
  `;
71648
71677
  const BlurredLightsBackground = ({
71649
- colorStart = "#e52e71",
71650
- colorEnd = "#ff8a00",
71651
- speed = 0.5
71678
+ colorStart = "#d2276c",
71679
+ colorEnd = "#170070",
71680
+ speed = 1
71652
71681
  }) => {
71653
71682
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
71654
- Container$5,
71683
+ Container$7,
71655
71684
  {
71656
71685
  "aria-label": "blurred-lights-background",
71657
71686
  $colorStart: colorStart,
@@ -71670,7 +71699,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71670
71699
  }
71671
71700
  );
71672
71701
  };
71673
- const Container$4 = styled.div`
71702
+ const Container$6 = styled.div`
71674
71703
  height: 100vh;
71675
71704
  width: 100vw;
71676
71705
  display: flex;
@@ -71704,7 +71733,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71704
71733
  speed = 0.5
71705
71734
  }) => {
71706
71735
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
71707
- Container$4,
71736
+ Container$6,
71708
71737
  {
71709
71738
  "aria-label": "gradient-background",
71710
71739
  $colorStart: colorStart,
@@ -71713,7 +71742,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71713
71742
  }
71714
71743
  );
71715
71744
  };
71716
- const Container$3 = styled.div`
71745
+ const Container$5 = styled.div`
71717
71746
  position: absolute;
71718
71747
  top: 0;
71719
71748
  bottom: 0;
@@ -71780,13 +71809,184 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
71780
71809
  };
71781
71810
  const background = backgrounds[itemKey];
71782
71811
  opacity = opacity === void 0 ? background.opacity : opacity;
71783
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$3, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
71812
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$5, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
71813
+ };
71814
+ const Container$4 = styled.div`
71815
+ height: 100vh;
71816
+ width: 100vw;
71817
+ xbackground: ${(props) => `radial-gradient(
71818
+ ${props.$colorStart} 0%,
71819
+ ${props.$colorEnd} 100%
71820
+ )`};
71821
+ `;
71822
+ const speedFactor = 2;
71823
+ const Slant1 = styled.div`
71824
+ animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
71825
+ infinite alternate;
71826
+ background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
71827
+ bottom: 0;
71828
+ left: -50%;
71829
+ opacity: 0.5;
71830
+ position: fixed;
71831
+ right: -50%;
71832
+ top: 0;
71833
+ z-index: -1;
71834
+
71835
+ @keyframes slide {
71836
+ 0% {
71837
+ transform: translateX(-25%);
71838
+ }
71839
+ 100% {
71840
+ transform: translateX(25%);
71841
+ }
71842
+ }
71843
+ `;
71844
+ const Slant2 = styled.div`
71845
+ animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
71846
+ infinite alternate;
71847
+ animation-direction: alternate-reverse;
71848
+ animation-duration: ${({ $speed }) => ($speed + 1) * speedFactor}s;
71849
+ background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
71850
+ bottom: 0;
71851
+ left: -50%;
71852
+ opacity: 0.5;
71853
+ position: fixed;
71854
+ right: -50%;
71855
+ top: 0;
71856
+ z-index: -1;
71857
+
71858
+ @keyframes slide {
71859
+ 0% {
71860
+ transform: translateX(-25%);
71861
+ }
71862
+ 100% {
71863
+ transform: translateX(25%);
71864
+ }
71865
+ }
71866
+ `;
71867
+ const Slant3 = styled.div`
71868
+ animation: slide ${({ $speed }) => ($speed + 0) * speedFactor}s ease-in-out
71869
+ infinite alternate;
71870
+ animation-duration: ${({ $speed }) => ($speed + 2) * speedFactor}s;
71871
+ background-image: ${({ $colorStart, $colorEnd }) => `linear-gradient(-60deg, ${$colorStart} 50%, ${$colorEnd} 50%)`};
71872
+ bottom: 0;
71873
+ left: -50%;
71874
+ opacity: 0.5;
71875
+ position: fixed;
71876
+ right: -50%;
71877
+ top: 0;
71878
+ z-index: -1;
71879
+
71880
+ @keyframes slide {
71881
+ 0% {
71882
+ transform: translateX(-25%);
71883
+ }
71884
+ 100% {
71885
+ transform: translateX(25%);
71886
+ }
71887
+ }
71888
+ `;
71889
+ const SlantBackground = ({
71890
+ colorStart = "#6c3",
71891
+ colorEnd = "#09f",
71892
+ speed = 30
71893
+ }) => {
71894
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
71895
+ Container$4,
71896
+ {
71897
+ "aria-label": "slant-background",
71898
+ $colorStart: colorStart,
71899
+ $colorEnd: colorEnd,
71900
+ children: [
71901
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Slant1, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd }),
71902
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Slant2, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd }),
71903
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Slant3, { $speed: speed, $colorStart: colorStart, $colorEnd: colorEnd })
71904
+ ]
71905
+ }
71906
+ );
71907
+ };
71908
+ const Container$3 = styled.div`
71909
+ height: 100vh;
71910
+ width: 100vw;
71911
+ background: ${(props) => `radial-gradient(
71912
+ ${props.$colorStart} 0%,
71913
+ ${props.$colorEnd} 100%
71914
+ )`};
71915
+ `;
71916
+ const Ocean = styled.div`
71917
+ height: ${({ $height }) => $height * 3}%;
71918
+ width: 100%;
71919
+ position: absolute;
71920
+ bottom: 0;
71921
+ left: 0;
71922
+ background: #015871;
71923
+ `;
71924
+ const Wave1 = styled.div`
71925
+ background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg)
71926
+ repeat-x;
71927
+ position: absolute;
71928
+ width: 6400px;
71929
+ top: -198px;
71930
+ left: 0;
71931
+ height: 198px;
71932
+ transform: translate(0, 0, 0);
71933
+ animation: wave ${({ $speed }) => $speed * 70}s ease infinite;
71934
+
71935
+ @keyframes wave {
71936
+ 0% {
71937
+ margin-left: 0;
71938
+ }
71939
+ 100% {
71940
+ margin-left: -1600px;
71941
+ }
71942
+ }
71943
+ `;
71944
+ const Wave2 = styled.div`
71945
+ background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg)
71946
+ repeat-x;
71947
+ position: absolute;
71948
+ width: 6400px;
71949
+ top: -168px;
71950
+ left: 0;
71951
+ height: 198px;
71952
+ transform: translate(0, 0, 0);
71953
+ animation: swell ${({ $speed }) => $speed * 40}s ease infinite;
71954
+ opacity: 1;
71955
+
71956
+ @keyframes swell {
71957
+ 0%,
71958
+ 100% {
71959
+ transform: translate(0, -30px);
71960
+ }
71961
+ 50% {
71962
+ transform: translate(0, 5px);
71963
+ }
71964
+ }
71965
+ `;
71966
+ const WaveBackground = ({
71967
+ colorStart = "#3a88ba",
71968
+ colorEnd = "#0b5774",
71969
+ speed = 0.5,
71970
+ tide = 3
71971
+ }) => {
71972
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
71973
+ Container$3,
71974
+ {
71975
+ "aria-label": "wave-background",
71976
+ $colorStart: colorStart,
71977
+ $colorEnd: colorEnd,
71978
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Ocean, { $height: tide, children: [
71979
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Wave1, { $speed: speed }),
71980
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Wave2, { $speed: speed })
71981
+ ] })
71982
+ }
71983
+ );
71784
71984
  };
71785
71985
  const AboutScreen = ({ api: api2 }) => {
71786
71986
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { overlay: true, children: [
71787
71987
  /* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "About" }),
71788
71988
  /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { paddingTop: 100, paddingHorz: 20, collapse: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
71789
- Bt2,
71989
+ Ct2,
71790
71990
  {
71791
71991
  title: "Settings",
71792
71992
  iconName: "about",
@@ -98487,7 +98687,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98487
98687
  const [error2, setError] = React$3.useState(void 0);
98488
98688
  React$3.useEffect(() => {
98489
98689
  if (propsString === "") {
98490
- const plugin = api2.plugin("plugin");
98690
+ const plugin = api2.integration("plugin");
98491
98691
  setPropsString(
98492
98692
  JSON.stringify(
98493
98693
  schemaToProps(plugin.componentSchema(params.componentKey)),
@@ -98529,7 +98729,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98529
98729
  }
98530
98730
  };
98531
98731
  const handleReset = () => {
98532
- const plugin = api2.plugin("plugin");
98732
+ const plugin = api2.integration("plugin");
98533
98733
  setPropsString(
98534
98734
  JSON.stringify(
98535
98735
  schemaToProps(plugin.componentSchema(params.componentKey)),
@@ -98557,7 +98757,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98557
98757
  }
98558
98758
  ),
98559
98759
  /* @__PURE__ */ jsxRuntimeExports.jsx(
98560
- yt2,
98760
+ kt2,
98561
98761
  {
98562
98762
  title: "RESET",
98563
98763
  variant: "clear",
@@ -98592,7 +98792,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98592
98792
  ) }),
98593
98793
  error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "red", paddingLeft: 15, paddingTop: 10, children: error2 })
98594
98794
  ] }) }),
98595
- /* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children: propsString && api2.plugin("plugin").component(
98795
+ /* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children: propsString && api2.integration("plugin").component(
98596
98796
  params.componentKey,
98597
98797
  parsePropsForComponent(api2, propsArray)
98598
98798
  ) }) })
@@ -98716,17 +98916,17 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98716
98916
  colorStart: {
98717
98917
  type: "color",
98718
98918
  title: "Start Color",
98719
- default: "#e52e71"
98919
+ default: "#d2276c"
98720
98920
  },
98721
98921
  colorEnd: {
98722
98922
  type: "color",
98723
98923
  title: "End Color",
98724
- default: "#ff8a00"
98924
+ default: "#170070"
98725
98925
  },
98726
98926
  speed: {
98727
98927
  type: "number",
98728
98928
  title: "Speed",
98729
- default: 0.5,
98929
+ default: 1,
98730
98930
  min: 0.1,
98731
98931
  max: 2,
98732
98932
  step: 0.1,
@@ -98742,12 +98942,38 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98742
98942
  colorStart: {
98743
98943
  type: "color",
98744
98944
  title: "Start Color",
98745
- default: "#e52e71"
98945
+ default: "#26a88d"
98746
98946
  },
98747
98947
  colorEnd: {
98748
98948
  type: "color",
98749
98949
  title: "End Color",
98750
- default: "#ff8a00"
98950
+ default: "#00796b"
98951
+ },
98952
+ speed: {
98953
+ type: "number",
98954
+ title: "Speed",
98955
+ default: 1,
98956
+ min: 0.1,
98957
+ max: 2,
98958
+ step: 0.1,
98959
+ minLabel: "Fast",
98960
+ maxLabel: "Slow"
98961
+ }
98962
+ }
98963
+ });
98964
+ registry2.registerCollectionItem("backgrounds", "wave", {
98965
+ name: "Wave",
98966
+ component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(WaveBackground, { ...props }),
98967
+ props: {
98968
+ colorStart: {
98969
+ type: "color",
98970
+ title: "Start Color",
98971
+ default: "#3a88ba"
98972
+ },
98973
+ colorEnd: {
98974
+ type: "color",
98975
+ title: "End Color",
98976
+ default: "#0b5774"
98751
98977
  },
98752
98978
  speed: {
98753
98979
  type: "number",
@@ -98758,6 +98984,42 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98758
98984
  step: 0.1,
98759
98985
  minLabel: "Fast",
98760
98986
  maxLabel: "Slow"
98987
+ },
98988
+ tide: {
98989
+ type: "number",
98990
+ title: "Tide",
98991
+ default: 3,
98992
+ min: 1,
98993
+ max: 10,
98994
+ step: 1,
98995
+ minLabel: "Low",
98996
+ maxLabel: "High"
98997
+ }
98998
+ }
98999
+ });
99000
+ registry2.registerCollectionItem("backgrounds", "slant", {
99001
+ name: "Slant",
99002
+ component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlantBackground, { ...props }),
99003
+ props: {
99004
+ colorStart: {
99005
+ type: "color",
99006
+ title: "Start Color",
99007
+ default: "#6c3"
99008
+ },
99009
+ colorEnd: {
99010
+ type: "color",
99011
+ title: "End Color",
99012
+ default: "#09f"
99013
+ },
99014
+ speed: {
99015
+ type: "number",
99016
+ title: "Speed",
99017
+ default: 30,
99018
+ min: 5,
99019
+ max: 55,
99020
+ step: 5,
99021
+ minLabel: "Fast",
99022
+ maxLabel: "Slow"
98761
99023
  }
98762
99024
  }
98763
99025
  });
@@ -98789,7 +99051,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
98789
99051
  return [
98790
99052
  {
98791
99053
  key: "card-button",
98792
- element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Bt2, { ...props })
99054
+ element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Ct2, { ...props })
98793
99055
  },
98794
99056
  {
98795
99057
  key: "command-group",
@@ -99132,7 +99394,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
99132
99394
  more > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(MoreContainer, { children: [
99133
99395
  /* @__PURE__ */ jsxRuntimeExports.jsx(MoreSpacer, {}),
99134
99396
  /* @__PURE__ */ jsxRuntimeExports.jsx(More, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
99135
- yt2,
99397
+ kt2,
99136
99398
  {
99137
99399
  title: `${more} more today`,
99138
99400
  icon: "none",
@@ -102210,7 +102472,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102210
102472
  title,
102211
102473
  entityId,
102212
102474
  iconName = "IoMedicalSharp",
102213
- variant = "toggle"
102475
+ variant = "toggle",
102476
+ square = true
102214
102477
  }) => {
102215
102478
  const entities = useEntities();
102216
102479
  const [loading, setLoading] = React$3.useState(false);
@@ -102224,7 +102487,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102224
102487
  const disabled = !entity;
102225
102488
  const active = entity && entity.state === "on";
102226
102489
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
102227
- Bt2,
102490
+ Ct2,
102228
102491
  {
102229
102492
  variant,
102230
102493
  active,
@@ -102237,7 +102500,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102237
102500
  iconBackColor: active ? "#ffcc01" : "#ffffff22",
102238
102501
  iconColor: active ? "#fff" : "#fff",
102239
102502
  iconColorActive: "#fff",
102240
- loading
102503
+ loading,
102504
+ square
102241
102505
  }
102242
102506
  );
102243
102507
  };
@@ -102277,7 +102541,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102277
102541
  album: data.attributes.media_album_name
102278
102542
  };
102279
102543
  }
102280
- const MediaButton = ({ entityId, title = "Media", variant }) => {
102544
+ const MediaButton = ({
102545
+ entityId,
102546
+ title = "Media",
102547
+ variant,
102548
+ square = true
102549
+ }) => {
102281
102550
  const entities = useEntities();
102282
102551
  const [loading, setLoading] = React$3.useState(false);
102283
102552
  const [state2, setState2] = React$3.useState("");
@@ -102298,14 +102567,15 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102298
102567
  const iconName = state2 === "playing" ? "MdPause" : "MdPlayArrow";
102299
102568
  const disabled = !entity;
102300
102569
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
102301
- Bt2,
102570
+ Ct2,
102302
102571
  {
102303
102572
  variant,
102304
102573
  disabled: loading || disabled,
102305
102574
  title,
102306
102575
  onClick: handleStateToggle,
102307
102576
  iconName,
102308
- loading
102577
+ loading,
102578
+ square
102309
102579
  }
102310
102580
  );
102311
102581
  };
@@ -102505,7 +102775,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102505
102775
  /* @__PURE__ */ jsxRuntimeExports.jsx(MediaTrack, { entity: media }),
102506
102776
  /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { paddingTop: 0, collapse: true, children: [
102507
102777
  /* @__PURE__ */ jsxRuntimeExports.jsx(
102508
- _U1,
102778
+ IU1,
102509
102779
  {
102510
102780
  variant: "clear",
102511
102781
  width: 50,
@@ -102518,7 +102788,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102518
102788
  ),
102519
102789
  /* @__PURE__ */ jsxRuntimeExports.jsx(ControlSpacer, {}),
102520
102790
  /* @__PURE__ */ jsxRuntimeExports.jsx(
102521
- _U1,
102791
+ IU1,
102522
102792
  {
102523
102793
  variant: "clear",
102524
102794
  width: 50,
@@ -102534,6 +102804,60 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102534
102804
  ] })
102535
102805
  ] }) });
102536
102806
  };
102807
+ function tryParseNumber(value, defValue) {
102808
+ const parsed = parseInt(value);
102809
+ return isNaN(parsed) ? defValue : parsed;
102810
+ }
102811
+ const SensorCard = ({
102812
+ title,
102813
+ entityId,
102814
+ iconName = "MdOutlineDeviceThermostat",
102815
+ clear = false,
102816
+ square = true
102817
+ }) => {
102818
+ const entity = useEntity(entityId);
102819
+ const state2 = entity ? tryParseNumber(entity.state) : void 0;
102820
+ const value = entity && state2 ? `${state2} ${entity.attributes.unit_of_measurement}` : "?";
102821
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
102822
+ Bt2,
102823
+ {
102824
+ variant: clear ? "clear" : "normal",
102825
+ square,
102826
+ label: "sensor-card",
102827
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", padding: 10, paddingTop: 12, children: [
102828
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(G4, { name: iconName, size: 30 }) }),
102829
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", paddingHorz: 4, children: [
102830
+ /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { size: "large", weight: "xbold", children: value }),
102831
+ /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { size: "normal", weight: "normal", children: title })
102832
+ ] })
102833
+ ] })
102834
+ }
102835
+ );
102836
+ };
102837
+ const EntitiesScreen = () => {
102838
+ const entities = useEntities();
102839
+ const [selectedKey, setSelectedKey] = React$3.useState("");
102840
+ const menuItems = Object.keys(entities).map((key) => ({
102841
+ title: entities[key].attributes.friendly_name || "Unknown",
102842
+ key
102843
+ }));
102844
+ const handleMenuSelection = (key) => {
102845
+ setSelectedKey(key);
102846
+ };
102847
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Wt2, { overlay: false, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "40% auto", rows: "60px auto", children: [
102848
+ /* @__PURE__ */ jsxRuntimeExports.jsx(St2, { colSpan: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: "Home Assistant Entities" }) }),
102849
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "vert", vscroll: "auto", hscroll: "hidden", padding: 15, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
102850
+ yt2,
102851
+ {
102852
+ items: menuItems,
102853
+ onSelect: handleMenuSelection,
102854
+ initialKey: selectedKey,
102855
+ compact: true
102856
+ }
102857
+ ) }),
102858
+ /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { vscroll: "auto", hscroll: "hidden", padding: 15, children: selectedKey && /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { style: { fontSize: 16 }, children: JSON.stringify(entities[selectedKey], null, 2) }) })
102859
+ ] }) });
102860
+ };
102537
102861
  class Plugin {
102538
102862
  constructor(config2) {
102539
102863
  __publicField(this, "config");
@@ -102568,20 +102892,32 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102568
102892
  {
102569
102893
  key: "entity-button",
102570
102894
  element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(EntityButton, { ...props })
102895
+ },
102896
+ {
102897
+ key: "sensor-card",
102898
+ element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(SensorCard, { ...props })
102899
+ }
102900
+ ];
102901
+ }
102902
+ get screens() {
102903
+ return [
102904
+ {
102905
+ path: "/entities",
102906
+ element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(EntitiesScreen, { ...props })
102571
102907
  }
102572
102908
  ];
102573
102909
  }
102574
102910
  }
102575
- const builtinPlugins = {
102911
+ const builtinPluginFactories = {
102576
102912
  base: Plugin$2,
102577
102913
  calendar: Plugin$1,
102578
102914
  "home-assistant": Plugin
102579
102915
  };
102580
102916
  const pluginVersions = {};
102581
- const loadedDekPlugins = {};
102582
- const loadedDekPluginInstances = {};
102583
- let loadedLocalPlugin;
102584
- let loadedLocalPluginInstance;
102917
+ const userPluginFactories = {};
102918
+ const integrationInstances = {};
102919
+ let localPluginFactory;
102920
+ let localIntegrationInstance;
102585
102921
  async function loadUserPlugin(name, version2, code) {
102586
102922
  try {
102587
102923
  const module2 = {};
@@ -102612,7 +102948,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102612
102948
  return null;
102613
102949
  }
102614
102950
  }
102615
- function constructPluginInstance(integration, plugin, pluginConfig = {}) {
102951
+ function constructIntegrationInstance(integration, plugin, pluginConfig = {}) {
102616
102952
  const pluginConfigMerged = {
102617
102953
  plugin: integration.pluginName,
102618
102954
  version: integration.pluginVersion || pluginVersions[integration.pluginName] || "latest",
@@ -102624,14 +102960,14 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102624
102960
  }
102625
102961
  return new plugin(pluginConfigMerged, registry);
102626
102962
  }
102627
- async function initializePluginInstance(pluginInstance, integrationKey) {
102628
- if (pluginInstance && pluginInstance.load) {
102629
- await pluginInstance.load(getPluginApi(integrationKey));
102963
+ async function initializeIntegrationInstance(integrationInstance, integrationKey) {
102964
+ if (integrationInstance && integrationInstance.load) {
102965
+ await integrationInstance.load(getPluginApi(integrationKey));
102630
102966
  }
102631
102967
  }
102632
- async function initializePluginInstances() {
102633
- for (const key of Object.keys(loadedDekPluginInstances)) {
102634
- await initializePluginInstance(loadedDekPluginInstances[key], key);
102968
+ async function initializeIntegrationInstances() {
102969
+ for (const key of Object.keys(integrationInstances)) {
102970
+ await initializeIntegrationInstance(integrationInstances[key], key);
102635
102971
  }
102636
102972
  }
102637
102973
  async function loadPlugins({
@@ -102640,59 +102976,62 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102640
102976
  }) {
102641
102977
  if (plugins) {
102642
102978
  for (const plugin of plugins) {
102643
- const userPlugin = await loadUserPlugin(
102979
+ const userPluginFactory = await loadUserPlugin(
102644
102980
  plugin.name,
102645
102981
  plugin.version,
102646
102982
  plugin.code
102647
102983
  );
102648
- if (userPlugin) {
102649
- loadedDekPlugins[plugin.name] = userPlugin;
102984
+ if (userPluginFactory) {
102985
+ userPluginFactories[plugin.name] = userPluginFactory;
102650
102986
  }
102651
102987
  }
102652
102988
  }
102653
102989
  if (integrations) {
102654
102990
  for (const integration of integrations) {
102655
- const Plugin2 = builtinPlugins[integration.pluginName] || loadedDekPlugins[integration.pluginName];
102656
- if (Plugin2) {
102657
- const pluginInstance = constructPluginInstance(integration, Plugin2);
102658
- loadedDekPluginInstances[integration.key] = pluginInstance;
102991
+ const plugin = builtinPluginFactories[integration.pluginName] || userPluginFactories[integration.pluginName];
102992
+ if (plugin) {
102993
+ const integrationInstance = constructIntegrationInstance(
102994
+ integration,
102995
+ plugin
102996
+ );
102997
+ integrationInstances[integration.key] = integrationInstance;
102659
102998
  }
102660
102999
  }
102661
- await initializePluginInstances();
103000
+ await initializeIntegrationInstances();
102662
103001
  }
102663
103002
  }
102664
103003
  async function unloadAllPlugins() {
102665
- while (Object.keys(loadedDekPluginInstances).length > 0) {
102666
- const key = Object.keys(loadedDekPluginInstances)[0];
102667
- const plugin = loadedDekPluginInstances[key];
103004
+ while (Object.keys(integrationInstances).length > 0) {
103005
+ const key = Object.keys(integrationInstances)[0];
103006
+ const plugin = integrationInstances[key];
102668
103007
  if (plugin && plugin.unload) {
102669
103008
  await plugin.unload();
102670
103009
  }
102671
- delete loadedDekPluginInstances[key];
103010
+ delete integrationInstances[key];
102672
103011
  }
102673
- while (Object.keys(loadedDekPlugins).length > 0) {
102674
- const key = Object.keys(loadedDekPlugins)[0];
102675
- delete loadedDekPlugins[key];
103012
+ while (Object.keys(userPluginFactories).length > 0) {
103013
+ const key = Object.keys(userPluginFactories)[0];
103014
+ delete userPluginFactories[key];
102676
103015
  }
102677
103016
  }
102678
- function getAllPlugins() {
102679
- const allPlugins = {
102680
- ...builtinPlugins,
102681
- ...loadedDekPlugins
103017
+ function getAllPluginFactories() {
103018
+ const results = {
103019
+ ...builtinPluginFactories,
103020
+ ...userPluginFactories
102682
103021
  };
102683
- if (loadedLocalPlugin) {
102684
- allPlugins.plugin = loadedLocalPlugin;
103022
+ if (localPluginFactory) {
103023
+ results.plugin = localPluginFactory;
102685
103024
  }
102686
- return allPlugins;
103025
+ return results;
102687
103026
  }
102688
- function getAllPluginInstances() {
102689
- const allPluginInstances = {
102690
- ...loadedDekPluginInstances
103027
+ function getAllIntegrationInstances() {
103028
+ const results = {
103029
+ ...integrationInstances
102691
103030
  };
102692
- if (loadedLocalPluginInstance) {
102693
- allPluginInstances.plugin = loadedLocalPluginInstance;
103031
+ if (localIntegrationInstance) {
103032
+ results.plugin = localIntegrationInstance;
102694
103033
  }
102695
- return allPluginInstances;
103034
+ return results;
102696
103035
  }
102697
103036
  async function updatePlugins(email, password) {
102698
103037
  updateStateLoading(true);
@@ -102706,7 +103045,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102706
103045
  {
102707
103046
  key: "base",
102708
103047
  pluginName: "base",
102709
- pluginVersion: "0.25.0",
103048
+ pluginVersion: "0.27.0",
102710
103049
  pluginConfig: []
102711
103050
  }
102712
103051
  ],
@@ -102717,12 +103056,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102717
103056
  pluginVersions[plugin.name] = plugin.version;
102718
103057
  });
102719
103058
  await loadPlugins(integrationsAndPlugins);
102720
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103059
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102721
103060
  updateStateLoading(false);
102722
103061
  }
102723
103062
  async function unloadPlugins() {
102724
103063
  await unloadAllPlugins();
102725
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103064
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102726
103065
  }
102727
103066
  async function updateLocalPlugin(plugin, pluginConfig) {
102728
103067
  updateStateLoading(true);
@@ -102732,25 +103071,25 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102732
103071
  key: "plugin",
102733
103072
  pluginConfig: []
102734
103073
  };
102735
- loadedLocalPlugin = plugin;
102736
- loadedLocalPluginInstance = constructPluginInstance(
103074
+ localPluginFactory = plugin;
103075
+ localIntegrationInstance = constructIntegrationInstance(
102737
103076
  integration,
102738
103077
  plugin,
102739
103078
  pluginConfig
102740
103079
  );
102741
- if (loadedLocalPluginInstance && loadedLocalPluginInstance.load) {
102742
- await loadedLocalPluginInstance.load(getPluginApi("plugin"));
103080
+ if (localIntegrationInstance && localIntegrationInstance.load) {
103081
+ await localIntegrationInstance.load(getPluginApi("plugin"));
102743
103082
  }
102744
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103083
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102745
103084
  updateStateLoading(false);
102746
103085
  }
102747
103086
  async function unloadLocalPlugin() {
102748
- if (loadedLocalPluginInstance && loadedLocalPluginInstance.unload) {
102749
- await loadedLocalPluginInstance.unload();
103087
+ if (localIntegrationInstance && localIntegrationInstance.unload) {
103088
+ await localIntegrationInstance.unload();
102750
103089
  }
102751
- loadedLocalPluginInstance = void 0;
102752
- loadedLocalPlugin = void 0;
102753
- updateStatePlugins(getAllPlugins(), getAllPluginInstances());
103090
+ localIntegrationInstance = void 0;
103091
+ localPluginFactory = void 0;
103092
+ updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
102754
103093
  }
102755
103094
  function useUserConfig(email, password, plugin, pluginConfig) {
102756
103095
  const userConfig = useSnapshot(state$1);
@@ -102779,7 +103118,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102779
103118
  globals.commandGroups = userConfig.data.commandGroups;
102780
103119
  }
102781
103120
  globals.plugins = userConfig.plugins;
102782
- globals.pluginInstances = getPluginInstances();
103121
+ globals.integrationInstances = getIntegrationInstances();
102783
103122
  return userConfig;
102784
103123
  }
102785
103124
  const Background = () => {
@@ -103732,10 +104071,10 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103732
104071
  const api2 = getPluginApi();
103733
104072
  const resolveRouteElement = (route2) => {
103734
104073
  if (route2.type === "screen") {
103735
- return api2.plugin(route2.plugin).screen(route2.path);
104074
+ return api2.integration(route2.plugin).screen(route2.path);
103736
104075
  } else {
103737
104076
  const defaultBase = {
103738
- plugin: "base",
104077
+ integration: "base",
103739
104078
  key: "main"
103740
104079
  };
103741
104080
  const board = api2.boards.find(
@@ -103743,19 +104082,19 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103743
104082
  );
103744
104083
  if (board) {
103745
104084
  if (board.base) {
103746
- const boardElement = api2.plugin(board.base.plugin).board(board.base.key);
104085
+ const boardElement = api2.integration(board.base.integration).board(board.base.key);
103747
104086
  if (boardElement) {
103748
104087
  return boardElement;
103749
104088
  }
103750
104089
  } else {
103751
- return api2.plugin(defaultBase.plugin).board(defaultBase.key);
104090
+ return api2.integration(defaultBase.integration).board(defaultBase.key);
103752
104091
  }
103753
104092
  }
103754
- const devBoard = api2.plugin("plugin").board(api2.boardKey);
104093
+ const devBoard = api2.integration("plugin").board(api2.boardKey);
103755
104094
  if (devBoard) {
103756
104095
  return devBoard;
103757
104096
  }
103758
- return api2.plugin(defaultBase.plugin).board(api2.boardKey);
104097
+ return api2.integration(defaultBase.integration).board(api2.boardKey);
103759
104098
  }
103760
104099
  };
103761
104100
  console.log("### ROUTE", route);
@@ -103779,15 +104118,15 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103779
104118
  const [container, setContainer] = React$3.useState(null);
103780
104119
  const [containerNodeRef, setContainerNodeRef] = React$3.useState(null);
103781
104120
  const { data } = userConfig;
103782
- const pluginInstances2 = getPluginInstances();
104121
+ const pluginInstances = getIntegrationInstances();
103783
104122
  React$3.useEffect(() => {
103784
104123
  const loadRoutes = async () => {
103785
104124
  var _a2, _b2;
103786
104125
  const newRoutes = [];
103787
104126
  const newBoardKeys = [];
103788
- if (pluginInstances2) {
103789
- for (const key in pluginInstances2) {
103790
- (_a2 = pluginInstances2[key].screens) == null ? void 0 : _a2.forEach((screen) => {
104127
+ if (pluginInstances) {
104128
+ for (const key in pluginInstances) {
104129
+ (_a2 = pluginInstances[key].screens) == null ? void 0 : _a2.forEach((screen) => {
103791
104130
  newRoutes.push({
103792
104131
  type: "screen",
103793
104132
  plugin: key,
@@ -103796,7 +104135,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103796
104135
  nodeRef: React$3.createRef()
103797
104136
  });
103798
104137
  });
103799
- (_b2 = pluginInstances2[key].boards) == null ? void 0 : _b2.forEach((board) => {
104138
+ (_b2 = pluginInstances[key].boards) == null ? void 0 : _b2.forEach((board) => {
103800
104139
  newBoardKeys.push("/" + board.key);
103801
104140
  });
103802
104141
  }
@@ -103814,7 +104153,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103814
104153
  setBoardKeys(newBoardKeys);
103815
104154
  };
103816
104155
  loadRoutes();
103817
- }, [pluginInstances2, data == null ? void 0 : data.boards]);
104156
+ }, [pluginInstances, data == null ? void 0 : data.boards]);
103818
104157
  React$3.useEffect(() => {
103819
104158
  const { nodeRef } = routes.find((route) => {
103820
104159
  let path = "/:boardKey";
@@ -103886,7 +104225,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103886
104225
  const BoardProvider = ({ email, password, plugin, pluginConfig }) => {
103887
104226
  const config2 = useUserConfig(email, password, plugin, pluginConfig);
103888
104227
  console.log("### LOADED", config2);
103889
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(styled.ThemeProvider, { theme: C1, children: [
104228
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(styled.ThemeProvider, { theme: B1, children: [
103890
104229
  /* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { transitionDelay }),
103891
104230
  /* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
103892
104231
  /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),
@@ -103910,10 +104249,10 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103910
104249
  if (!group) {
103911
104250
  return null;
103912
104251
  }
103913
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((component, idx) => {
103914
- const instance = api2.plugin(component.plugin).component(
103915
- component.component,
103916
- parsePropsForComponent(api2, component.props)
104252
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
104253
+ const instance = api2.integration(command.integration).component(
104254
+ command.component,
104255
+ parsePropsForComponent(api2, command.props)
103917
104256
  );
103918
104257
  return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
103919
104258
  }) });