@camstack/addon-provider-homematic 1.2.206 → 1.2.207

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.
Files changed (18) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/_stub.js +658 -658
  3. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-DZpqsn6u.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-6DzqqZ3i.mjs} +4 -4
  4. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DR952fPS.mjs +26 -0
  5. package/dist/addon-provider-homematic.css +1 -1
  6. package/dist/addon.js +1092 -75
  7. package/dist/addon.mjs +1092 -75
  8. package/dist/{hostInit-DBO78Hu-.mjs → hostInit-CZgDBnHg.mjs} +3 -3
  9. package/dist/remoteEntry.js +1 -1
  10. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-D1CbMi19.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-ZgMsVU2w.mjs} +1 -1
  11. package/dist/widgets/_stub.js +138 -138
  12. package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-Bwve1HPK.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-CtPGHIKn.mjs} +2 -2
  13. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-7hqlX2gW.mjs +26 -0
  14. package/dist/widgets/{hostInit-DSjxilwJ.mjs → hostInit-Cy3RS8VW.mjs} +2 -2
  15. package/dist/widgets/remoteEntry.js +1 -1
  16. package/package.json +3 -3
  17. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CiaZc7Zu.mjs +0 -26
  18. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DaUa1YeZ.mjs +0 -26
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/types": {
48
- version: "1.2.590",
48
+ version: "1.2.597",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,11 +81,11 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.467",
84
+ version: "1.2.472",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
88
- requiredVersion: ">=1.2.467",
88
+ requiredVersion: ">=1.2.472",
89
89
  import: !1
90
90
  }
91
91
  },
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-D1CbMi19.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-ZgMsVU2w.mjs";
2
2
  export { t as get, e as init };
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-DZpqsn6u.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-6DzqqZ3i.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DaUa1YeZ.mjs";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-7hqlX2gW.mjs";
2
2
  import { a as p, i as m, n as h, o as ee, r as g, s as _, t as v } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare__react__loadShare__.js-Cz6ebdBh.mjs";
3
3
  import { n as y, t as b } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-B8RWlLTT.mjs";
4
4
  //#region ../../node_modules/zod/v4/core/core.js
@@ -3686,7 +3686,7 @@ Z.extend({
3686
3686
  });
3687
3687
  //#endregion
3688
3688
  //#region src/i18n/index.ts
3689
- var { useT: $, Trans: as, translate: os } = c("provider-homematic", {
3689
+ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
3690
3690
  en: {
3691
3691
  common: { loading: "Loading…" },
3692
3692
  write: { failedTitle: "The CCU refused the change" },
@@ -4432,50 +4432,50 @@ function ss(e, t) {
4432
4432
  return t;
4433
4433
  }
4434
4434
  function cs(e) {
4435
- let { param: r, edit: i, onEdit: a } = e, { t: o } = $(), s = r.unit === null ? r.parameter : `${r.parameter} (${r.unit})`, c = r.min !== null && r.max !== null ? o("config.range", {
4436
- min: r.min,
4437
- max: r.max
4435
+ let { param: n, edit: i, onEdit: s } = e, { t: c } = $(), l = n.unit === null ? n.parameter : `${n.parameter} (${n.unit})`, u = n.min !== null && n.max !== null ? c("config.range", {
4436
+ min: n.min,
4437
+ max: n.max
4438
4438
  }) : void 0;
4439
- if (r.type === "BOOL") {
4440
- let e = typeof i == "boolean" ? i : r.value === !0;
4441
- return /* @__PURE__ */ b(u, {
4442
- label: s,
4443
- children: /* @__PURE__ */ b(d, {
4439
+ if (n.type === "BOOL") {
4440
+ let e = typeof i == "boolean" ? i : n.value === !0;
4441
+ return /* @__PURE__ */ b(t, {
4442
+ label: l,
4443
+ children: /* @__PURE__ */ b(o, {
4444
4444
  checked: e,
4445
- disabled: !r.writable,
4446
- onChange: () => a(!e)
4445
+ disabled: !n.writable,
4446
+ onChange: () => s(!e)
4447
4447
  })
4448
4448
  });
4449
4449
  }
4450
- if (r.type === "ENUM" && r.valueList !== null) {
4451
- let e = typeof i == "string" ? i : typeof r.value == "string" ? r.value : "";
4452
- return /* @__PURE__ */ b(u, {
4453
- label: s,
4454
- children: /* @__PURE__ */ b(n, {
4450
+ if (n.type === "ENUM" && n.valueList !== null) {
4451
+ let e = typeof i == "string" ? i : typeof n.value == "string" ? n.value : "";
4452
+ return /* @__PURE__ */ b(t, {
4453
+ label: l,
4454
+ children: /* @__PURE__ */ b(r, {
4455
4455
  value: e,
4456
- disabled: !r.writable,
4457
- onChange: (e) => a(e.target.value),
4456
+ disabled: !n.writable,
4457
+ onChange: (e) => s(e.target.value),
4458
4458
  options: [...e === "" ? [{
4459
4459
  value: "",
4460
- label: o("config.unknown")
4461
- }] : [], ...r.valueList.map((e) => ({
4460
+ label: c("config.unknown")
4461
+ }] : [], ...n.valueList.map((e) => ({
4462
4462
  value: e,
4463
4463
  label: e
4464
4464
  }))]
4465
4465
  })
4466
4466
  });
4467
4467
  }
4468
- let l = r.type === "INTEGER" || r.type === "FLOAT", f = typeof i == "string" ? i : r.value === null ? "" : String(r.value);
4469
- return /* @__PURE__ */ b(u, {
4470
- label: s,
4471
- ...c === void 0 ? {} : { description: c },
4472
- children: /* @__PURE__ */ b(t, {
4473
- type: l ? "number" : "text",
4468
+ let d = n.type === "INTEGER" || n.type === "FLOAT", f = typeof i == "string" ? i : n.value === null ? "" : String(n.value);
4469
+ return /* @__PURE__ */ b(t, {
4470
+ label: l,
4471
+ ...u === void 0 ? {} : { description: u },
4472
+ children: /* @__PURE__ */ b(a, {
4473
+ type: d ? "number" : "text",
4474
4474
  value: f,
4475
- disabled: !r.writable,
4476
- ...r.min === null ? {} : { min: r.min },
4477
- ...r.max === null ? {} : { max: r.max },
4478
- onChange: (e) => a(e.target.value)
4475
+ disabled: !n.writable,
4476
+ ...n.min === null ? {} : { min: n.min },
4477
+ ...n.max === null ? {} : { max: n.max },
4478
+ onChange: (e) => s(e.target.value)
4479
4479
  })
4480
4480
  });
4481
4481
  }
@@ -4526,7 +4526,7 @@ function ds(e, t, n, r, i = {}) {
4526
4526
  //#endregion
4527
4527
  //#region src/ui/use-ccu-write.ts
4528
4528
  function fs(e) {
4529
- let t = l(), n = o(), { t: r } = $();
4529
+ let t = i(), n = l(), { t: r } = $();
4530
4530
  return g(async (i) => {
4531
4531
  if (!await t({
4532
4532
  title: i.title,
@@ -4556,10 +4556,10 @@ function fs(e) {
4556
4556
  //#endregion
4557
4557
  //#region src/ui/ChannelConfigDialog.tsx
4558
4558
  function ps(e) {
4559
- let { trpc: t, integrationId: i, device: o, onClose: c } = e, { t: l } = $(), d = fs(t), f = ds(t, "getCcuDeviceConfig", p(() => ({
4559
+ let { trpc: n, integrationId: i, device: a, onClose: o } = e, { t: s } = $(), l = fs(n), d = ds(n, "getCcuDeviceConfig", p(() => ({
4560
4560
  integrationId: i,
4561
- address: o.address
4562
- }), [i, o.address]), Wo), [m, h] = _(null), [ee, g] = _({}), [v, x] = _(!1), S = f.data?.channels ?? [], C = S.find((e) => e.channel === m) ?? S[0], te = p(() => {
4561
+ address: a.address
4562
+ }), [i, a.address]), Wo), [m, h] = _(null), [ee, g] = _({}), [v, x] = _(!1), S = d.data?.channels ?? [], C = S.find((e) => e.channel === m) ?? S[0], te = p(() => {
4563
4563
  let e = {};
4564
4564
  for (let t of C?.params ?? []) {
4565
4565
  let n = ee[`${C?.channel}/${t.parameter}`];
@@ -4572,7 +4572,7 @@ function ps(e) {
4572
4572
  if (C !== void 0) {
4573
4573
  x(!0);
4574
4574
  try {
4575
- await d({
4575
+ await l({
4576
4576
  action: "setCcuChannelConfig",
4577
4577
  input: {
4578
4578
  integrationId: i,
@@ -4580,45 +4580,45 @@ function ps(e) {
4580
4580
  values: te
4581
4581
  },
4582
4582
  schema: No,
4583
- title: l("config.confirmTitle"),
4584
- message: l("config.confirmMessage", {
4583
+ title: s("config.confirmTitle"),
4584
+ message: s("config.confirmMessage", {
4585
4585
  channel: C.channel,
4586
4586
  count: w,
4587
4587
  names: Object.keys(te).join(", ")
4588
4588
  }),
4589
- confirmLabel: l("config.confirmLabel"),
4589
+ confirmLabel: s("config.confirmLabel"),
4590
4590
  variant: "warning"
4591
- }) !== null && (g({}), f.reload());
4591
+ }) !== null && (g({}), d.reload());
4592
4592
  } finally {
4593
4593
  x(!1);
4594
4594
  }
4595
4595
  }
4596
4596
  };
4597
- return /* @__PURE__ */ b(a, {
4597
+ return /* @__PURE__ */ b(f, {
4598
4598
  open: !0,
4599
- onClose: c,
4599
+ onClose: o,
4600
4600
  icon: ko,
4601
4601
  width: "lg",
4602
- title: l("config.title", { name: o.name ?? o.address }),
4602
+ title: s("config.title", { name: a.name ?? a.address }),
4603
4603
  testId: "hm-config-dialog",
4604
- footer: /* @__PURE__ */ b(r, {
4604
+ footer: /* @__PURE__ */ b(c, {
4605
4605
  type: "button",
4606
4606
  onClick: () => void T(),
4607
4607
  disabled: w === 0 || v,
4608
- children: l("config.save")
4608
+ children: s("config.save")
4609
4609
  }),
4610
- children: f.error === null ? f.data === void 0 ? /* @__PURE__ */ b("p", {
4610
+ children: d.error === null ? d.data === void 0 ? /* @__PURE__ */ b("p", {
4611
4611
  className: "text-sm text-foreground-subtle",
4612
- children: l("common.loading")
4612
+ children: s("common.loading")
4613
4613
  }) : C === void 0 ? /* @__PURE__ */ b("p", {
4614
4614
  className: "text-sm text-foreground-subtle",
4615
- children: l("config.none")
4615
+ children: s("config.none")
4616
4616
  }) : /* @__PURE__ */ y("div", {
4617
4617
  className: "flex flex-col gap-3",
4618
4618
  children: [
4619
- S.length > 1 && /* @__PURE__ */ b(u, {
4620
- label: l("config.channel"),
4621
- children: /* @__PURE__ */ b(n, {
4619
+ S.length > 1 && /* @__PURE__ */ b(t, {
4620
+ label: s("config.channel"),
4621
+ children: /* @__PURE__ */ b(r, {
4622
4622
  value: C.channel,
4623
4623
  onChange: (e) => {
4624
4624
  h(e.target.value), g({});
@@ -4631,7 +4631,7 @@ function ps(e) {
4631
4631
  }),
4632
4632
  C.error !== null && /* @__PURE__ */ b("p", {
4633
4633
  className: "text-xs text-danger",
4634
- children: l("config.valuesUnreadable", { error: C.error })
4634
+ children: s("config.valuesUnreadable", { error: C.error })
4635
4635
  }),
4636
4636
  C.params.map((e) => /* @__PURE__ */ b(cs, {
4637
4637
  param: e,
@@ -4642,10 +4642,10 @@ function ps(e) {
4642
4642
  }))
4643
4643
  }, e.parameter))
4644
4644
  ]
4645
- }) : /* @__PURE__ */ b(s, {
4646
- title: l("config.loadFailed"),
4647
- message: f.error,
4648
- onRetry: f.reload
4645
+ }) : /* @__PURE__ */ b(u, {
4646
+ title: s("config.loadFailed"),
4647
+ message: d.error,
4648
+ onRetry: d.reload
4649
4649
  })
4650
4650
  });
4651
4651
  }
@@ -4672,35 +4672,35 @@ function gs(e) {
4672
4672
  //#endregion
4673
4673
  //#region src/ui/SetValueDialog.tsx
4674
4674
  function _s(e) {
4675
- let { param: t, channelLabel: n, onClose: i, onSet: o } = e, { t: s } = $(), [c, l] = _(void 0), [u, d] = _(!1), f = c === void 0 ? void 0 : hs(t, c), p = async () => {
4676
- if (f !== void 0) {
4677
- d(!0);
4675
+ let { param: t, channelLabel: n, onClose: r, onSet: i } = e, { t: a } = $(), [o, s] = _(void 0), [l, u] = _(!1), d = o === void 0 ? void 0 : hs(t, o), p = async () => {
4676
+ if (d !== void 0) {
4677
+ u(!0);
4678
4678
  try {
4679
- await o(f);
4679
+ await i(d);
4680
4680
  } finally {
4681
- d(!1);
4681
+ u(!1);
4682
4682
  }
4683
4683
  }
4684
4684
  };
4685
- return /* @__PURE__ */ b(a, {
4685
+ return /* @__PURE__ */ b(f, {
4686
4686
  open: !0,
4687
- onClose: i,
4687
+ onClose: r,
4688
4688
  icon: Oo,
4689
- title: s("panel.setTitle", {
4689
+ title: a("panel.setTitle", {
4690
4690
  parameter: t.parameter,
4691
4691
  channel: n
4692
4692
  }),
4693
4693
  testId: "hm-set-value-dialog",
4694
- footer: /* @__PURE__ */ b(r, {
4694
+ footer: /* @__PURE__ */ b(c, {
4695
4695
  type: "button",
4696
4696
  onClick: () => void p(),
4697
- disabled: f === void 0 || u,
4698
- children: s("panel.set")
4697
+ disabled: d === void 0 || l,
4698
+ children: a("panel.set")
4699
4699
  }),
4700
4700
  children: /* @__PURE__ */ b(cs, {
4701
4701
  param: ms(t),
4702
- edit: c,
4703
- onEdit: l
4702
+ edit: o,
4703
+ onEdit: s
4704
4704
  })
4705
4705
  });
4706
4706
  }
@@ -4710,91 +4710,91 @@ function vs(e) {
4710
4710
  return e.name ?? `${e.type ?? e.address} · ${e.index}`;
4711
4711
  }
4712
4712
  function ys(e) {
4713
- let { diagnostics: t, firmware: n } = e.state, { t: r } = $(), i = (e) => e === null ? "—" : String(e);
4713
+ let { diagnostics: t, firmware: r } = e.state, { t: i } = $(), a = (e) => e === null ? "—" : String(e);
4714
4714
  return /* @__PURE__ */ y("div", {
4715
4715
  className: "flex flex-wrap items-center gap-2",
4716
4716
  "data-testid": "hm-panel-diagnostics",
4717
4717
  children: [
4718
- t.unreach !== null && /* @__PURE__ */ b(f, {
4718
+ t.unreach !== null && /* @__PURE__ */ b(n, {
4719
4719
  variant: t.unreach ? "danger" : "success",
4720
- children: t.unreach ? r("panel.unreachable") : r("panel.reachable")
4720
+ children: t.unreach ? i("panel.unreachable") : i("panel.reachable")
4721
4721
  }),
4722
- t.lowBattery === !0 && /* @__PURE__ */ b(f, {
4722
+ t.lowBattery === !0 && /* @__PURE__ */ b(n, {
4723
4723
  variant: "warning",
4724
- children: r("panel.lowBattery")
4724
+ children: i("panel.lowBattery")
4725
4725
  }),
4726
- t.configPending === !0 && /* @__PURE__ */ b(f, {
4726
+ t.configPending === !0 && /* @__PURE__ */ b(n, {
4727
4727
  variant: "info",
4728
- children: r("panel.configPending")
4728
+ children: i("panel.configPending")
4729
4729
  }),
4730
- t.dutyCycle === !0 && /* @__PURE__ */ b(f, {
4730
+ t.dutyCycle === !0 && /* @__PURE__ */ b(n, {
4731
4731
  variant: "warning",
4732
- children: r("panel.dutyCycleReached")
4732
+ children: i("panel.dutyCycleReached")
4733
4733
  }),
4734
- typeof t.dutyCycle == "number" && /* @__PURE__ */ b(f, { children: r("panel.dutyCycle", { value: t.dutyCycle }) }),
4735
- (t.rssiDevice !== null || t.rssiPeer !== null) && /* @__PURE__ */ b(f, { children: r("panel.rssi", {
4736
- device: i(t.rssiDevice),
4737
- peer: i(t.rssiPeer)
4734
+ typeof t.dutyCycle == "number" && /* @__PURE__ */ b(n, { children: i("panel.dutyCycle", { value: t.dutyCycle }) }),
4735
+ (t.rssiDevice !== null || t.rssiPeer !== null) && /* @__PURE__ */ b(n, { children: i("panel.rssi", {
4736
+ device: a(t.rssiDevice),
4737
+ peer: a(t.rssiPeer)
4738
4738
  }) }),
4739
- n.installed !== null && /* @__PURE__ */ b(f, { children: r("panel.firmware", { version: n.installed }) }),
4740
- n.available !== null && n.available !== n.installed && /* @__PURE__ */ b(f, {
4739
+ r.installed !== null && /* @__PURE__ */ b(n, { children: i("panel.firmware", { version: r.installed }) }),
4740
+ r.available !== null && r.available !== r.installed && /* @__PURE__ */ b(n, {
4741
4741
  variant: "info",
4742
- children: r("panel.firmwareUpdate", { version: n.available })
4742
+ children: i("panel.firmwareUpdate", { version: r.available })
4743
4743
  })
4744
4744
  ]
4745
4745
  });
4746
4746
  }
4747
- function bs(e) {
4748
- let { trpc: t, integrationId: n, address: a, deviceId: o } = e, { t: c } = $(), l = ds(t, "getCcuDeviceState", p(() => ({
4749
- integrationId: n,
4747
+ function bs(t) {
4748
+ let { trpc: r, integrationId: i, address: a, deviceId: o } = t, { t: s } = $(), l = ds(r, "getCcuDeviceState", p(() => ({
4749
+ integrationId: i,
4750
4750
  address: a
4751
- }), [n, a]), is), u = fs(t), [d, m] = _({ kind: "closed" }), h = async (e, t, r) => {
4752
- let i = t.type === "ACTION", a = ms({
4751
+ }), [i, a]), is), d = fs(r), [f, m] = _({ kind: "closed" }), h = async (e, t, n) => {
4752
+ let r = t.type === "ACTION", a = ms({
4753
4753
  ...t,
4754
- value: r
4754
+ value: n
4755
4755
  }).value;
4756
- return await u({
4756
+ return await d({
4757
4757
  action: "setCcuValue",
4758
4758
  input: {
4759
- integrationId: n,
4759
+ integrationId: i,
4760
4760
  channel: e.address,
4761
4761
  parameter: t.parameter,
4762
- value: r,
4762
+ value: n,
4763
4763
  ...o === void 0 ? {} : { deviceId: o }
4764
4764
  },
4765
4765
  schema: No,
4766
- title: c("panel.writeTitle"),
4767
- message: i ? c("panel.pressMessage", {
4766
+ title: s("panel.writeTitle"),
4767
+ message: r ? s("panel.pressMessage", {
4768
4768
  parameter: t.parameter,
4769
4769
  channel: vs(e)
4770
- }) : c("panel.writeMessage", {
4770
+ }) : s("panel.writeMessage", {
4771
4771
  parameter: t.parameter,
4772
4772
  channel: vs(e),
4773
4773
  value: String(a)
4774
4774
  }),
4775
- confirmLabel: c("panel.writeConfirm"),
4775
+ confirmLabel: s("panel.writeConfirm"),
4776
4776
  variant: "warning"
4777
4777
  }) === null ? !1 : (l.reload(), !0);
4778
4778
  }, ee = (e, t) => {
4779
4779
  if (!t.writable) return null;
4780
- if (t.type === "ACTION") return /* @__PURE__ */ b(r, {
4780
+ if (t.type === "ACTION") return /* @__PURE__ */ b(c, {
4781
4781
  type: "button",
4782
4782
  size: "sm",
4783
4783
  variant: "outline",
4784
4784
  onClick: () => void h(e, t, !0),
4785
- children: c("panel.press")
4785
+ children: s("panel.press")
4786
4786
  });
4787
4787
  if (t.type === "BOOL") {
4788
4788
  let n = t.value !== !0;
4789
- return /* @__PURE__ */ b(r, {
4789
+ return /* @__PURE__ */ b(c, {
4790
4790
  type: "button",
4791
4791
  size: "sm",
4792
4792
  variant: "outline",
4793
4793
  onClick: () => void h(e, t, n),
4794
- children: c(n ? "panel.turnOn" : "panel.turnOff")
4794
+ children: s(n ? "panel.turnOn" : "panel.turnOff")
4795
4795
  });
4796
4796
  }
4797
- return /* @__PURE__ */ b(r, {
4797
+ return /* @__PURE__ */ b(c, {
4798
4798
  type: "button",
4799
4799
  size: "sm",
4800
4800
  variant: "outline",
@@ -4803,18 +4803,18 @@ function bs(e) {
4803
4803
  channel: e,
4804
4804
  param: t
4805
4805
  }),
4806
- children: c("panel.setAction")
4806
+ children: s("panel.setAction")
4807
4807
  });
4808
- }, g = (e) => e.readable && typeof e.value == "boolean" ? /* @__PURE__ */ b(f, {
4808
+ }, g = (e) => e.readable && typeof e.value == "boolean" ? /* @__PURE__ */ b(n, {
4809
4809
  variant: e.value ? "success" : "default",
4810
- children: e.value ? c("panel.yes") : c("panel.no")
4810
+ children: e.value ? s("panel.yes") : s("panel.no")
4811
4811
  }) : /* @__PURE__ */ b("span", {
4812
4812
  className: "text-sm text-foreground",
4813
4813
  children: gs(e) ?? "—"
4814
4814
  }), v = (e) => [
4815
4815
  {
4816
4816
  key: "parameter",
4817
- header: c("panel.colParameter"),
4817
+ header: s("panel.colParameter"),
4818
4818
  render: (e) => /* @__PURE__ */ b("span", {
4819
4819
  className: "font-mono text-xs text-foreground",
4820
4820
  children: e.parameter
@@ -4823,7 +4823,7 @@ function bs(e) {
4823
4823
  },
4824
4824
  {
4825
4825
  key: "value",
4826
- header: c("panel.colValue"),
4826
+ header: s("panel.colValue"),
4827
4827
  render: g,
4828
4828
  notSortableReason: "Mixed value types"
4829
4829
  },
@@ -4835,15 +4835,15 @@ function bs(e) {
4835
4835
  render: (t) => ee(e, t)
4836
4836
  }
4837
4837
  ];
4838
- if (l.error !== null) return /* @__PURE__ */ b(s, {
4839
- title: c("panel.loadFailed"),
4838
+ if (l.error !== null) return /* @__PURE__ */ b(u, {
4839
+ title: s("panel.loadFailed"),
4840
4840
  message: l.error,
4841
4841
  onRetry: l.reload
4842
4842
  });
4843
4843
  let x = l.data;
4844
4844
  return x === void 0 ? /* @__PURE__ */ b("p", {
4845
4845
  className: "text-sm text-foreground-subtle",
4846
- children: c("common.loading")
4846
+ children: s("common.loading")
4847
4847
  }) : /* @__PURE__ */ y("div", {
4848
4848
  className: "flex flex-col gap-3",
4849
4849
  "data-testid": "hm-device-panel",
@@ -4859,54 +4859,54 @@ function bs(e) {
4859
4859
  ]
4860
4860
  }), /* @__PURE__ */ y("div", {
4861
4861
  className: "flex gap-2",
4862
- children: [/* @__PURE__ */ y(r, {
4862
+ children: [/* @__PURE__ */ y(c, {
4863
4863
  type: "button",
4864
4864
  size: "sm",
4865
4865
  variant: "outline",
4866
4866
  onClick: l.reload,
4867
- children: [/* @__PURE__ */ b(Do, { className: "h-4 w-4" }), c("panel.reload")]
4868
- }), /* @__PURE__ */ y(r, {
4867
+ children: [/* @__PURE__ */ b(Do, { className: "h-4 w-4" }), s("panel.reload")]
4868
+ }), /* @__PURE__ */ y(c, {
4869
4869
  type: "button",
4870
4870
  size: "sm",
4871
4871
  onClick: () => m({ kind: "configure" }),
4872
- children: [/* @__PURE__ */ b(ko, { className: "h-4 w-4" }), c("panel.configure")]
4872
+ children: [/* @__PURE__ */ b(ko, { className: "h-4 w-4" }), s("panel.configure")]
4873
4873
  })]
4874
4874
  })]
4875
4875
  }),
4876
4876
  /* @__PURE__ */ b(ys, { state: x }),
4877
- x.channels.filter((e) => e.values.length > 0).map((e) => /* @__PURE__ */ y("div", {
4877
+ x.channels.filter((e) => e.values.length > 0).map((t) => /* @__PURE__ */ y("div", {
4878
4878
  className: "flex flex-col gap-1",
4879
4879
  children: [/* @__PURE__ */ y("span", {
4880
4880
  className: "text-xs font-medium text-foreground-muted",
4881
4881
  children: [
4882
- e.index === 0 ? c("panel.maintenance") : vs(e),
4882
+ t.index === 0 ? s("panel.maintenance") : vs(t),
4883
4883
  " ·",
4884
4884
  " ",
4885
- e.address
4885
+ t.address
4886
4886
  ]
4887
- }), /* @__PURE__ */ b(i, {
4888
- columns: v(e),
4889
- rows: e.values,
4887
+ }), /* @__PURE__ */ b(e, {
4888
+ columns: v(t),
4889
+ rows: t.values,
4890
4890
  rowKey: (e) => e.parameter,
4891
4891
  minWidthPx: 280,
4892
- emptyMessage: c("panel.none")
4892
+ emptyMessage: s("panel.none")
4893
4893
  })]
4894
- }, e.address)),
4895
- d.kind === "configure" && /* @__PURE__ */ b(ps, {
4896
- trpc: t,
4897
- integrationId: n,
4894
+ }, t.address)),
4895
+ f.kind === "configure" && /* @__PURE__ */ b(ps, {
4896
+ trpc: r,
4897
+ integrationId: i,
4898
4898
  device: {
4899
4899
  address: x.address,
4900
4900
  name: x.name
4901
4901
  },
4902
4902
  onClose: () => m({ kind: "closed" })
4903
4903
  }),
4904
- d.kind === "set" && /* @__PURE__ */ b(_s, {
4905
- param: d.param,
4906
- channelLabel: vs(d.channel),
4904
+ f.kind === "set" && /* @__PURE__ */ b(_s, {
4905
+ param: f.param,
4906
+ channelLabel: vs(f.channel),
4907
4907
  onClose: () => m({ kind: "closed" }),
4908
4908
  onSet: async (e) => {
4909
- await h(d.channel, d.param, e) && m({ kind: "closed" });
4909
+ await h(f.channel, f.param, e) && m({ kind: "closed" });
4910
4910
  }
4911
4911
  })
4912
4912
  ]
@@ -4918,16 +4918,16 @@ var xs = Y({
4918
4918
  integrationId: W().min(1),
4919
4919
  address: W().min(1)
4920
4920
  });
4921
- function Ss(t) {
4922
- let n = e(), { t: r } = $(), i = xs.safeParse(t.config ?? {});
4923
- return i.success ? /* @__PURE__ */ b(bs, {
4924
- trpc: n,
4925
- integrationId: i.data.integrationId,
4926
- address: i.data.address,
4927
- ...t.deviceId === void 0 ? {} : { deviceId: t.deviceId }
4921
+ function Ss(e) {
4922
+ let t = s(), { t: n } = $(), r = xs.safeParse(e.config ?? {});
4923
+ return r.success ? /* @__PURE__ */ b(bs, {
4924
+ trpc: t,
4925
+ integrationId: r.data.integrationId,
4926
+ address: r.data.address,
4927
+ ...e.deviceId === void 0 ? {} : { deviceId: e.deviceId }
4928
4928
  }) : /* @__PURE__ */ b("p", {
4929
4929
  className: "text-sm text-danger",
4930
- children: r("panel.badConfig")
4930
+ children: n("panel.badConfig")
4931
4931
  });
4932
4932
  }
4933
4933
  //#endregion
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.590",
21
+ version: "1.2.597",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_provider_homematic_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.467",
36
+ version: "1.2.472",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_provider_homematic_widgets",