@appkit/dek-lib 0.37.0 → 0.43.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
@@ -65526,146 +65526,15 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
65526
65526
  query: USER_PLUGIN_AND_INTEGRATIONS_QUERY
65527
65527
  });
65528
65528
  const result = _.cloneDeep(response.data.currentUser);
65529
- result.integrations.push({
65529
+ result.integrations.unshift({
65530
65530
  key: "base",
65531
65531
  pluginName: "base",
65532
- pluginVersion: "0.37.0",
65532
+ pluginVersion: "0.43.0",
65533
65533
  pluginConfig: []
65534
65534
  });
65535
65535
  return result;
65536
65536
  }
65537
- const ClockComponent = () => {
65538
- const dt = r52();
65539
- const time = n52("h:mm", dt);
65540
- const date = n52("ddd, MMM D", dt);
65541
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(g0, { label: "clock", direction: "horz", valign: "center", children: [
65542
- /* @__PURE__ */ jsxRuntimeExports.jsx(l4, { size: "xxlarge", color: "xxsubtle", paddingRight: 11, children: date }),
65543
- /* @__PURE__ */ jsxRuntimeExports.jsx(l4, { size: "xxlarge", color: "subtle", weight: "bold", children: time })
65544
- ] });
65545
- };
65546
- function transformWeatherData(data) {
65547
- if (!data) {
65548
- return {
65549
- type: "unknown",
65550
- temperature: 0
65551
- };
65552
- }
65553
- return {
65554
- type: data.state,
65555
- temperature: data.attributes.temperature
65556
- };
65557
- }
65558
- const state = proxy({
65559
- entities: {}
65560
- });
65561
- const useEntities = () => {
65562
- return useSnapshot(state).entities;
65563
- };
65564
65537
  const Container$b = styled.div`
65565
- width: 50px;
65566
- height: 50px;
65567
- padding: 0;
65568
- margin-top: ${(props) => props.$top}px;
65569
- margin-left: ${(props) => props.$left}px;
65570
- & svg {
65571
- stroke: ${({ theme }) => theme.text.color.xsubtle};
65572
- }
65573
- & g > path {
65574
- stroke: ${({ theme }) => theme.text.color.xsubtle};
65575
- fill: ${({ theme }) => theme.text.color.xsubtle};
65576
- }
65577
- & path {
65578
- stroke: ${({ theme }) => theme.text.color.xsubtle};
65579
- fill: ${({ theme }) => theme.text.color.xsubtle};
65580
- }
65581
- `;
65582
- const SvgClearNight = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b9d5", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M46.66 36.2a16.66 16.66 0 01-16.78-16.55 16.29 16.29 0 01.55-4.15A16.56 16.56 0 1048.5 36.1c-.61.06-1.22.1-1.84.1z" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "10s", repeatCount: "indefinite", type: "rotate", values: "-5 32 32;15 32 32;-5 32 32" })));
65583
- const SvgCloudy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinejoin: "round", strokeWidth: 3, d: "M46.5 31.5h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0h28a7 7 0 000-14z" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "7s", repeatCount: "indefinite", type: "translate", values: "-3 0; 3 0; -3 0" })));
65584
- const SvgExceptional = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#f59e0b", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M42.5 32A10.5 10.5 0 1132 21.5 10.5 10.5 0 0142.5 32zM32 15.71V9.5m0 45v-6.21m11.52-27.81l4.39-4.39M16.09 47.91l4.39-4.39m0-23l-4.39-4.39m31.82 31.78l-4.39-4.39M15.71 32H9.5m45 0h-6.21" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "45s", from: "0 32 32", repeatCount: "indefinite", to: "360 32 32", type: "rotate" })));
65585
- const SvgFog = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinejoin: "round", strokeWidth: 3, d: "M46.5 31.5h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0h28a7 7 0 000-14z" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#d1d5db", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 58h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "0s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#d1d5db", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 52h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-4s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })));
65586
- const SvgHail = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 24, cy: 45, r: 1.5, fill: "#72b8d4" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.6s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 18; -4 14" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.6s", repeatCount: "indefinite", values: "1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 31, cy: 45, r: 1.5, fill: "#72b8d4" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.6s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 18; -4 14" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.6s", repeatCount: "indefinite", values: "1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 38, cy: 45, r: 1.5, fill: "#72b8d4" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.6s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 18; -4 14" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.6s", repeatCount: "indefinite", values: "1;1;0" })));
65587
- const SvgLightningRaining = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "#f59e0b", d: "M30 36l-4 12h4l-2 10 10-14h-6l4-8h-6z" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "2s", repeatCount: "indefinite", values: "1;1;1;1;1;1;0.1;1;0.1;1;1;0.1;1;0.1;1" })));
65588
- const SvgLightning = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "#f59e0b", d: "M30 36l-4 12h4l-2 10 10-14h-6l4-8h-6z" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "2s", repeatCount: "indefinite", values: "1;1;1;1;1;1;0.1;1;0.1;1;1;0.1;1;0.1;1" })));
65589
- const SvgPartlyCloudy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "a" }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", d: "M12 35l-5.28-4.21-2-6 1-7 4-5 5-3h6l5 1 3 3L33 20l-6 4h-6l-3 3v4l-4 2-2 2z" }))), /* @__PURE__ */ React__namespace.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#f59e0b", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M23.5 24a4.5 4.5 0 11-4.5-4.5 4.49 4.49 0 014.5 4.5zM19 15.67V12.5m0 23v-3.17m5.89-14.22l2.24-2.24M10.87 32.13l2.24-2.24m0-11.78l-2.24-2.24m16.26 16.26l-2.24-2.24M7.5 24h3.17m19.83 0h-3.17" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "45s", from: "0 19 24", repeatCount: "indefinite", to: "360 19 24", type: "rotate" }))), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinejoin: "round", strokeWidth: 3, d: "M46.5 31.5h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0h28a7 7 0 000-14z" }));
65590
- const SvgPouring = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })));
65591
- const SvgRainy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })));
65592
- const SvgSnowyRainy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 24, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M26.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M24 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-2s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 24 45; 360 24 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-2s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 38, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M40.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M38 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-1s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 38 45; 360 38 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-1s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.08 45.01l-.16.98" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "1.5s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "1.5s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.08 45.01l-.16.98" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.5s", dur: "1.5s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.5s", dur: "1.5s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.08 45.01l-.16.98" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-1s", dur: "1.5s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-1s", dur: "1.5s", repeatCount: "indefinite", values: "0;1;1;0" })));
65593
- const SvgSnowy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 31, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M33.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M31 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "4s", repeatCount: "indefinite", type: "translate", values: "-1 -6; 1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 31 45; 360 31 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 24, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M26.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M24 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-2s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 24 45; 360 24 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-2s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 38, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M40.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M38 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-1s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 38 45; 360 38 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-1s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })));
65594
- const SvgSunny = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#f59e0b", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M42.5 32A10.5 10.5 0 1132 21.5 10.5 10.5 0 0142.5 32zM32 15.71V9.5m0 45v-6.21m11.52-27.81l4.39-4.39M16.09 47.91l4.39-4.39m0-23l-4.39-4.39m31.82 31.78l-4.39-4.39M15.71 32H9.5m45 0h-6.21" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "45s", from: "0 32 32", repeatCount: "indefinite", to: "360 32 32", type: "rotate" })));
65595
- const SvgUnknown = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 32h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "0s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 39h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-2s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-3 0; 3 0; -3 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 25h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-4s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })));
65596
- const SvgWindyVariant = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "35 22", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M43.64 20a5 5 0 113.61 8.46h-35.5" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", dur: "2s", repeatCount: "indefinite", values: "-57; 57" })), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "24 18", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M29.14 44a5 5 0 103.61-8.46h-21" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", begin: "-1.5s", dur: "2s", repeatCount: "indefinite", values: "-39; 39" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#fde68a", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M21.5 39.5h9" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: ".9s", repeatCount: "indefinite", type: "translate", values: "0 0; 15 0" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: ".9s", repeatCount: "indefinite", values: "0; 1; 1; 1; 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#fde68a", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M11.5 24.5h9" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-.3s", dur: ".9s", repeatCount: "indefinite", type: "translate", values: "-3 0; 18 0" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-.3s", dur: ".9s", repeatCount: "indefinite", values: "0; 1; 1; 1; 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#fde68a", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M27.5 32h9" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-.6s", dur: ".9s", repeatCount: "indefinite", type: "translate", values: "-6 0; 12 0" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-.6s", dur: ".9s", repeatCount: "indefinite", values: "0; 1; 1; 1; 0" })));
65597
- const SvgWindy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "35 22", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M43.64 20a5 5 0 113.61 8.46h-35.5" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", dur: "2s", repeatCount: "indefinite", values: "-57; 57" })), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "24 15", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M29.14 44a5 5 0 103.61-8.46h-21" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", begin: "-1.5s", dur: "2s", repeatCount: "indefinite", values: "-39; 39" })));
65598
- const WeatherIcon = ({ type }) => {
65599
- const baseTop = 0;
65600
- const baseLeft = -7;
65601
- const getWeatherTypeInfo = (type2) => {
65602
- switch (type2) {
65603
- case "sunny":
65604
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgSunny, {}), top: baseTop, left: baseLeft };
65605
- case "cloudy":
65606
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgCloudy, {}), top: baseTop, left: baseLeft };
65607
- case "partlycloudy":
65608
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgPartlyCloudy, {}), top: baseTop, left: baseLeft };
65609
- case "clear-night":
65610
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgClearNight, {}), top: baseTop, left: baseLeft };
65611
- case "fog":
65612
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgFog, {}), top: baseTop - 6, left: baseLeft };
65613
- case "hail":
65614
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgHail, {}), top: baseTop - 3, left: baseLeft };
65615
- case "lightning":
65616
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgLightning, {}), top: baseTop - 3, left: baseLeft };
65617
- case "lightning-raining":
65618
- return {
65619
- element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgLightningRaining, {}),
65620
- top: baseTop - 3,
65621
- left: baseLeft
65622
- };
65623
- case "pouring":
65624
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgPouring, {}), top: baseTop - 3, left: baseLeft };
65625
- case "rainy":
65626
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRainy, {}), top: baseTop - 3, left: baseLeft };
65627
- case "snowy":
65628
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgSnowy, {}), top: baseTop - 3, left: baseLeft };
65629
- case "snowy-rainy":
65630
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgSnowyRainy, {}), top: baseTop - 3, left: baseLeft };
65631
- case "windy":
65632
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWindy, {}), top: baseTop, left: baseLeft };
65633
- case "windy-variant":
65634
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWindyVariant, {}), top: baseTop, left: baseLeft };
65635
- case "exceptional":
65636
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgExceptional, {}), top: baseTop, left: baseLeft };
65637
- default:
65638
- return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgUnknown, {}), top: baseTop, left: baseLeft };
65639
- }
65640
- };
65641
- const info = getWeatherTypeInfo(type);
65642
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$b, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
65643
- };
65644
- const WeatherComponent = () => {
65645
- const api2 = getPluginApi();
65646
- const entities = useEntities();
65647
- const [weatherData, setWeatherData] = React$3.useState();
65648
- const data = transformWeatherData(entities["weather.forecast_home"]);
65649
- React$3.useEffect(() => {
65650
- if (data && (!weatherData || data.temperature !== weatherData.temperature || data.type !== weatherData.type)) {
65651
- if (weatherData) {
65652
- api2.trace("Weather changed", data);
65653
- }
65654
- setWeatherData(data);
65655
- }
65656
- }, [data, weatherData, api2]);
65657
- if (!weatherData) {
65658
- return null;
65659
- }
65660
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(g0, { label: "weather-view", direction: "horz", valign: "center", children: [
65661
- weatherData.type !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherIcon, { type: weatherData.type }),
65662
- !!weatherData.temperature && /* @__PURE__ */ jsxRuntimeExports.jsxs(l4, { label: "temperature", size: "xxlarge", color: "xsubtle", children: [
65663
- weatherData.temperature,
65664
- "°"
65665
- ] })
65666
- ] });
65667
- };
65668
- const Container$a = styled.div`
65669
65538
  display: flex;
65670
65539
  align-items: center;
65671
65540
  width: 100%;
@@ -65695,16 +65564,41 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
65695
65564
  height: 100%;
65696
65565
  padding-right: 15px;
65697
65566
  `;
65698
- const Header = ({ height = 70 }) => {
65699
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$a, { "aria-label": "header", $height: height, children: [
65700
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderLeft, { "aria-label": "header-left", children: /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherComponent, { "aria-label": "weather" }) }),
65701
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderCenter, { "aria-label": "header-center" }),
65702
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderRight, { "aria-label": "header-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClockComponent, { "aria-label": "clock" }) })
65567
+ const Header = ({
65568
+ height = 70,
65569
+ leftWidget = "",
65570
+ centerWidget = "",
65571
+ rightWidget = "datetime"
65572
+ }) => {
65573
+ var _a2, _b2, _c2;
65574
+ const api2 = getPluginApi();
65575
+ let leftComponent = null;
65576
+ let centerComponent = null;
65577
+ let rightComponent = null;
65578
+ const widgets = api2.registry.collection("header-widgets");
65579
+ if (widgets && widgets.items) {
65580
+ leftComponent = leftWidget ? ((_a2 = widgets.items[leftWidget]) == null ? void 0 : _a2.component()) ?? null : null;
65581
+ centerComponent = centerWidget ? ((_b2 = widgets.items[centerWidget]) == null ? void 0 : _b2.component()) ?? null : null;
65582
+ rightComponent = rightWidget ? ((_c2 = widgets.items[rightWidget]) == null ? void 0 : _c2.component()) ?? null : null;
65583
+ }
65584
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$b, { "aria-label": "header", $height: height, children: [
65585
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderLeft, { "aria-label": "header-left", children: leftComponent }),
65586
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderCenter, { "aria-label": "header-center", children: centerComponent }),
65587
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderRight, { "aria-label": "header-right", children: rightComponent })
65588
+ ] });
65589
+ };
65590
+ const ClockComponent = () => {
65591
+ const dt = r52();
65592
+ const time = n52("h:mm", dt);
65593
+ const date = n52("ddd, MMM D", dt);
65594
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(g0, { label: "clock", direction: "horz", valign: "center", children: [
65595
+ /* @__PURE__ */ jsxRuntimeExports.jsx(l4, { size: "xxlarge", color: "xxsubtle", paddingRight: 11, children: date }),
65596
+ /* @__PURE__ */ jsxRuntimeExports.jsx(l4, { size: "xxlarge", color: "subtle", weight: "bold", children: time })
65703
65597
  ] });
65704
65598
  };
65705
65599
  const About = () => {
65706
65600
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(g0, { padding: 20, direction: "vert", children: [
65707
- /* @__PURE__ */ jsxRuntimeExports.jsx(uq1, { children: `Dek ${"0.37.0"}` }),
65601
+ /* @__PURE__ */ jsxRuntimeExports.jsx(uq1, { children: `Dek ${"0.43.0"}` }),
65708
65602
  /* @__PURE__ */ jsxRuntimeExports.jsx(l4, { children: "From Appkit" })
65709
65603
  ] });
65710
65604
  };
@@ -70725,7 +70619,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
70725
70619
  })(reactJsxParser_min);
70726
70620
  var reactJsxParser_minExports = reactJsxParser_min.exports;
70727
70621
  const JsxParser = /* @__PURE__ */ getDefaultExportFromCjs(reactJsxParser_minExports);
70728
- const Container$9 = styled.div`
70622
+ const Container$a = styled.div`
70729
70623
  ${({ $width, $height }) => $width && $height ? `position: relative; width: ${$width}px; height: ${$height}px;` : "position: absolute; top: 0; bottom: 0; left: 0; right: 0;"}
70730
70624
 
70731
70625
  display: flex;
@@ -70733,7 +70627,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
70733
70627
  const BoardScreen = ({ children }) => {
70734
70628
  const previewConfig = usePreviewConfig();
70735
70629
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
70736
- Container$9,
70630
+ Container$a,
70737
70631
  {
70738
70632
  "aria-label": "screen",
70739
70633
  $width: previewConfig == null ? void 0 : previewConfig.width,
@@ -74800,7 +74694,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
74800
74694
  MONTH: "YYYY-MM"
74801
74695
  // <input type="month" />
74802
74696
  };
74803
- const Container$8 = styled.div`
74697
+ const Container$9 = styled.div`
74804
74698
  align-items: flex-start;
74805
74699
  padding: 10px 20px;
74806
74700
  margin-top: 130px;
@@ -74869,9 +74763,9 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
74869
74763
  events2.nextEvent.startDate * 1e3
74870
74764
  ).format("h:mm")}`;
74871
74765
  };
74872
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$8, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
74766
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$9, { "aria-label": "greeting", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: `${getGreeting()} ${getUpcoming()}` }) });
74873
74767
  };
74874
- const Container$7 = styled.div`
74768
+ const Container$8 = styled.div`
74875
74769
  height: 100vh;
74876
74770
  width: 100vw;
74877
74771
  background: ${(props) => `linear-gradient(90deg, ${props.$colorStart}, ${props.$colorEnd})`};
@@ -74916,7 +74810,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
74916
74810
  speed = 1
74917
74811
  }) => {
74918
74812
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
74919
- Container$7,
74813
+ Container$8,
74920
74814
  {
74921
74815
  "aria-label": "blob-background",
74922
74816
  $colorStart: colorStart,
@@ -74925,7 +74819,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
74925
74819
  }
74926
74820
  );
74927
74821
  };
74928
- const Container$6 = styled.div`
74822
+ const Container$7 = styled.div`
74929
74823
  height: 100vh;
74930
74824
  width: 100vw;
74931
74825
  background: ${(props) => `radial-gradient(${props.$colorStart}, ${props.$colorEnd})`};
@@ -75025,7 +74919,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75025
74919
  speed = 1
75026
74920
  }) => {
75027
74921
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
75028
- Container$6,
74922
+ Container$7,
75029
74923
  {
75030
74924
  "aria-label": "blurred-lights-background",
75031
74925
  $colorStart: colorStart,
@@ -75044,7 +74938,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75044
74938
  }
75045
74939
  );
75046
74940
  };
75047
- const Container$5 = styled.div`
74941
+ const Container$6 = styled.div`
75048
74942
  height: 100vh;
75049
74943
  width: 100vw;
75050
74944
  display: flex;
@@ -75078,7 +74972,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75078
74972
  speed = 0.5
75079
74973
  }) => {
75080
74974
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
75081
- Container$5,
74975
+ Container$6,
75082
74976
  {
75083
74977
  "aria-label": "gradient-background",
75084
74978
  $colorStart: colorStart,
@@ -75087,7 +74981,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75087
74981
  }
75088
74982
  );
75089
74983
  };
75090
- const Container$4 = styled.div`
74984
+ const Container$5 = styled.div`
75091
74985
  position: absolute;
75092
74986
  top: 0;
75093
74987
  bottom: 0;
@@ -75154,9 +75048,9 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75154
75048
  };
75155
75049
  const background = backgrounds[itemKey];
75156
75050
  opacity = opacity === void 0 ? background.opacity : opacity;
75157
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$4, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
75051
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$5, { "aria-label": "background", $imageUrl: background.uri, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { $opacity: opacity || 0 }) });
75158
75052
  };
75159
- const Container$3 = styled.div`
75053
+ const Container$4 = styled.div`
75160
75054
  height: 100vh;
75161
75055
  width: 100vw;
75162
75056
  xbackground: ${(props) => `radial-gradient(
@@ -75237,7 +75131,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75237
75131
  speed = 30
75238
75132
  }) => {
75239
75133
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
75240
- Container$3,
75134
+ Container$4,
75241
75135
  {
75242
75136
  "aria-label": "slant-background",
75243
75137
  $colorStart: colorStart,
@@ -75250,7 +75144,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75250
75144
  }
75251
75145
  );
75252
75146
  };
75253
- const Container$2 = styled.div`
75147
+ const Container$3 = styled.div`
75254
75148
  height: 100vh;
75255
75149
  width: 100vw;
75256
75150
  background: ${(props) => `radial-gradient(
@@ -75315,7 +75209,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
75315
75209
  tide = 3
75316
75210
  }) => {
75317
75211
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
75318
- Container$2,
75212
+ Container$3,
75319
75213
  {
75320
75214
  "aria-label": "wave-background",
75321
75215
  $colorStart: colorStart,
@@ -101241,6 +101135,28 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
101241
101135
  }
101242
101136
  }
101243
101137
  });
101138
+ registry2.registerCollection("header-widgets", "Header Widgets", {
101139
+ name: {
101140
+ type: "string",
101141
+ title: "name",
101142
+ required: true
101143
+ },
101144
+ component: {
101145
+ type: "component",
101146
+ title: "component",
101147
+ required: true
101148
+ },
101149
+ props: {
101150
+ type: "props",
101151
+ title: "props",
101152
+ required: false
101153
+ }
101154
+ });
101155
+ registry2.registerCollectionItem("header-widgets", "datetime", {
101156
+ name: "Date and Time",
101157
+ component: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(ClockComponent, { ...props }),
101158
+ props: {}
101159
+ });
101244
101160
  }
101245
101161
  async load(api2) {
101246
101162
  api2.trace(
@@ -101277,7 +101193,24 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
101277
101193
  },
101278
101194
  {
101279
101195
  key: "header",
101280
- element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Header, { ...props })
101196
+ element: (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(Header, { ...props }),
101197
+ schema: {
101198
+ leftWidget: {
101199
+ type: "string",
101200
+ title: "Left Widget",
101201
+ default: ""
101202
+ },
101203
+ centerWidget: {
101204
+ type: "string",
101205
+ title: "Center Widget",
101206
+ default: ""
101207
+ },
101208
+ rightWidget: {
101209
+ type: "string",
101210
+ title: "Right Widget",
101211
+ default: "datetime"
101212
+ }
101213
+ }
101281
101214
  },
101282
101215
  {
101283
101216
  key: "title-bar",
@@ -104686,6 +104619,12 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
104686
104619
  state: data.state
104687
104620
  };
104688
104621
  }
104622
+ const state = proxy({
104623
+ entities: {}
104624
+ });
104625
+ const useEntities = () => {
104626
+ return useSnapshot(state).entities;
104627
+ };
104689
104628
  const EntityButton = ({
104690
104629
  title,
104691
104630
  entityId,
@@ -104804,7 +104743,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
104804
104743
  }
104805
104744
  return entities[entityId];
104806
104745
  };
104807
- const Container$1 = styled.div`
104746
+ const Container$2 = styled.div`
104808
104747
  display: flex;
104809
104748
  aspect-ratio: 1;
104810
104749
  ${({ $large }) => {
@@ -104818,7 +104757,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
104818
104757
  const CoverArt = ({ url, showLargeContent, onClick = noop$1 }) => {
104819
104758
  const size = showLargeContent ? "60vh" : "250px";
104820
104759
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
104821
- Container$1,
104760
+ Container$2,
104822
104761
  {
104823
104762
  "aria-label": "media-cover-art",
104824
104763
  $large: showLargeContent,
@@ -105052,6 +104991,122 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
105052
104991
  }
105053
104992
  );
105054
104993
  };
104994
+ function transformWeatherData(data) {
104995
+ if (!data) {
104996
+ return {
104997
+ type: "unknown",
104998
+ temperature: 0
104999
+ };
105000
+ }
105001
+ return {
105002
+ type: data.state,
105003
+ temperature: data.attributes.temperature
105004
+ };
105005
+ }
105006
+ const Container$1 = styled.div`
105007
+ width: 50px;
105008
+ height: 50px;
105009
+ padding: 0;
105010
+ margin-top: ${(props) => props.$top}px;
105011
+ margin-left: ${(props) => props.$left}px;
105012
+ & svg {
105013
+ stroke: ${({ theme }) => theme.text.color.xsubtle};
105014
+ }
105015
+ & g > path {
105016
+ stroke: ${({ theme }) => theme.text.color.xsubtle};
105017
+ fill: ${({ theme }) => theme.text.color.xsubtle};
105018
+ }
105019
+ & path {
105020
+ stroke: ${({ theme }) => theme.text.color.xsubtle};
105021
+ fill: ${({ theme }) => theme.text.color.xsubtle};
105022
+ }
105023
+ `;
105024
+ const SvgClearNight = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b9d5", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M46.66 36.2a16.66 16.66 0 01-16.78-16.55 16.29 16.29 0 01.55-4.15A16.56 16.56 0 1048.5 36.1c-.61.06-1.22.1-1.84.1z" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "10s", repeatCount: "indefinite", type: "rotate", values: "-5 32 32;15 32 32;-5 32 32" })));
105025
+ const SvgCloudy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinejoin: "round", strokeWidth: 3, d: "M46.5 31.5h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0h28a7 7 0 000-14z" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "7s", repeatCount: "indefinite", type: "translate", values: "-3 0; 3 0; -3 0" })));
105026
+ const SvgExceptional = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#f59e0b", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M42.5 32A10.5 10.5 0 1132 21.5 10.5 10.5 0 0142.5 32zM32 15.71V9.5m0 45v-6.21m11.52-27.81l4.39-4.39M16.09 47.91l4.39-4.39m0-23l-4.39-4.39m31.82 31.78l-4.39-4.39M15.71 32H9.5m45 0h-6.21" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "45s", from: "0 32 32", repeatCount: "indefinite", to: "360 32 32", type: "rotate" })));
105027
+ const SvgFog = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinejoin: "round", strokeWidth: 3, d: "M46.5 31.5h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0h28a7 7 0 000-14z" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#d1d5db", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 58h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "0s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#d1d5db", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 52h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-4s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })));
105028
+ const SvgHail = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 24, cy: 45, r: 1.5, fill: "#72b8d4" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.6s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 18; -4 14" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.6s", repeatCount: "indefinite", values: "1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 31, cy: 45, r: 1.5, fill: "#72b8d4" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.6s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 18; -4 14" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.6s", repeatCount: "indefinite", values: "1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 38, cy: 45, r: 1.5, fill: "#72b8d4" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.6s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 18; -4 14" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.6s", repeatCount: "indefinite", values: "1;1;0" })));
105029
+ const SvgLightningRaining = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "#f59e0b", d: "M30 36l-4 12h4l-2 10 10-14h-6l4-8h-6z" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "2s", repeatCount: "indefinite", values: "1;1;1;1;1;1;0.1;1;0.1;1;1;0.1;1;0.1;1" })));
105030
+ const SvgLightning = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "#f59e0b", d: "M30 36l-4 12h4l-2 10 10-14h-6l4-8h-6z" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "2s", repeatCount: "indefinite", values: "1;1;1;1;1;1;0.1;1;0.1;1;1;0.1;1;0.1;1" })));
105031
+ const SvgPartlyCloudy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "a" }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", d: "M12 35l-5.28-4.21-2-6 1-7 4-5 5-3h6l5 1 3 3L33 20l-6 4h-6l-3 3v4l-4 2-2 2z" }))), /* @__PURE__ */ React__namespace.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#f59e0b", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M23.5 24a4.5 4.5 0 11-4.5-4.5 4.49 4.49 0 014.5 4.5zM19 15.67V12.5m0 23v-3.17m5.89-14.22l2.24-2.24M10.87 32.13l2.24-2.24m0-11.78l-2.24-2.24m16.26 16.26l-2.24-2.24M7.5 24h3.17m19.83 0h-3.17" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "45s", from: "0 19 24", repeatCount: "indefinite", to: "360 19 24", type: "rotate" }))), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinejoin: "round", strokeWidth: 3, d: "M46.5 31.5h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0h28a7 7 0 000-14z" }));
105032
+ const SvgPouring = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })));
105033
+ const SvgRainy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.4s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.39 43.03l-.78 4.94" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.2s", dur: "0.7s", repeatCount: "indefinite", values: "0;1;1;0" })));
105034
+ const SvgSnowyRainy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 24, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M26.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M24 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-2s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 24 45; 360 24 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-2s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 38, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M40.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M38 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-1s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 38 45; 360 38 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-1s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M24.08 45.01l-.16.98" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "1.5s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "1.5s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M31.08 45.01l-.16.98" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-0.5s", dur: "1.5s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-0.5s", dur: "1.5s", repeatCount: "indefinite", values: "0;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#2885c7", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 2, d: "M38.08 45.01l-.16.98" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-1s", dur: "1.5s", repeatCount: "indefinite", type: "translate", values: "1 -5; -2 10" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-1s", dur: "1.5s", repeatCount: "indefinite", values: "0;1;1;0" })));
105035
+ const SvgSnowy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M43.67 45.5h2.83a7 7 0 000-14h-.32a10.49 10.49 0 00-19.11-8 7 7 0 00-10.57 6 7.21 7.21 0 00.1 1.14A7.5 7.5 0 0018 45.5a4.19 4.19 0 00.5 0v0" }), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 31, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M33.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M31 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "4s", repeatCount: "indefinite", type: "translate", values: "-1 -6; 1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 31 45; 360 31 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 24, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M26.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M24 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-2s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 24 45; 360 24 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-2s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("circle", { cx: 38, cy: 45, r: 1.25, fill: "none", stroke: "#72b8d4", strokeMiterlimit: 10 }), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#72b8d4", strokeLinecap: "round", strokeMiterlimit: 10, d: "M40.17 46.25l-1.09-.63m-2.16-1.24l-1.09-.63M38 42.5v1.25m0 3.75v-1.25m-1.08-.63l-1.09.63m4.34-2.5l-1.09.63" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", begin: "-1s", dur: "4s", repeatCount: "indefinite", type: "translate", values: "1 -6; -1 12" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { additive: "sum", attributeName: "transform", dur: "9s", repeatCount: "indefinite", type: "rotate", values: "0 38 45; 360 38 45" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-1s", dur: "4s", repeatCount: "indefinite", values: "0;1;1;1;0" })));
105036
+ const SvgSunny = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#f59e0b", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M42.5 32A10.5 10.5 0 1132 21.5 10.5 10.5 0 0142.5 32zM32 15.71V9.5m0 45v-6.21m11.52-27.81l4.39-4.39M16.09 47.91l4.39-4.39m0-23l-4.39-4.39m31.82 31.78l-4.39-4.39M15.71 32H9.5m45 0h-6.21" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: "45s", from: "0 32 32", repeatCount: "indefinite", to: "360 32 32", type: "rotate" })));
105037
+ const SvgUnknown = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 32h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "0s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 39h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-2s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-3 0; 3 0; -3 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M17 25h30" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-4s", dur: "5s", repeatCount: "indefinite", type: "translate", values: "-4 0; 4 0; -4 0" })));
105038
+ const SvgWindyVariant = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "35 22", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M43.64 20a5 5 0 113.61 8.46h-35.5" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", dur: "2s", repeatCount: "indefinite", values: "-57; 57" })), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "24 18", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M29.14 44a5 5 0 103.61-8.46h-21" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", begin: "-1.5s", dur: "2s", repeatCount: "indefinite", values: "-39; 39" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#fde68a", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M21.5 39.5h9" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", dur: ".9s", repeatCount: "indefinite", type: "translate", values: "0 0; 15 0" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", dur: ".9s", repeatCount: "indefinite", values: "0; 1; 1; 1; 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#fde68a", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M11.5 24.5h9" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-.3s", dur: ".9s", repeatCount: "indefinite", type: "translate", values: "-3 0; 18 0" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-.3s", dur: ".9s", repeatCount: "indefinite", values: "0; 1; 1; 1; 0" })), /* @__PURE__ */ React__namespace.createElement("g", null, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#fde68a", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M27.5 32h9" }), /* @__PURE__ */ React__namespace.createElement("animateTransform", { attributeName: "transform", begin: "-.6s", dur: ".9s", repeatCount: "indefinite", type: "translate", values: "-6 0; 12 0" }), /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "opacity", begin: "-.6s", dur: ".9s", repeatCount: "indefinite", values: "0; 1; 1; 1; 0" })));
105039
+ const SvgWindy = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "35 22", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M43.64 20a5 5 0 113.61 8.46h-35.5" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", dur: "2s", repeatCount: "indefinite", values: "-57; 57" })), /* @__PURE__ */ React__namespace.createElement("path", { fill: "none", stroke: "#e5e7eb", strokeDasharray: "24 15", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 3, d: "M29.14 44a5 5 0 103.61-8.46h-21" }, /* @__PURE__ */ React__namespace.createElement("animate", { attributeName: "stroke-dashoffset", begin: "-1.5s", dur: "2s", repeatCount: "indefinite", values: "-39; 39" })));
105040
+ const WeatherIcon = ({ type }) => {
105041
+ const baseTop = 0;
105042
+ const baseLeft = -7;
105043
+ const getWeatherTypeInfo = (type2) => {
105044
+ switch (type2) {
105045
+ case "sunny":
105046
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgSunny, {}), top: baseTop, left: baseLeft };
105047
+ case "cloudy":
105048
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgCloudy, {}), top: baseTop, left: baseLeft };
105049
+ case "partlycloudy":
105050
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgPartlyCloudy, {}), top: baseTop, left: baseLeft };
105051
+ case "clear-night":
105052
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgClearNight, {}), top: baseTop, left: baseLeft };
105053
+ case "fog":
105054
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgFog, {}), top: baseTop - 6, left: baseLeft };
105055
+ case "hail":
105056
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgHail, {}), top: baseTop - 3, left: baseLeft };
105057
+ case "lightning":
105058
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgLightning, {}), top: baseTop - 3, left: baseLeft };
105059
+ case "lightning-raining":
105060
+ return {
105061
+ element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgLightningRaining, {}),
105062
+ top: baseTop - 3,
105063
+ left: baseLeft
105064
+ };
105065
+ case "pouring":
105066
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgPouring, {}), top: baseTop - 3, left: baseLeft };
105067
+ case "rainy":
105068
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRainy, {}), top: baseTop - 3, left: baseLeft };
105069
+ case "snowy":
105070
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgSnowy, {}), top: baseTop - 3, left: baseLeft };
105071
+ case "snowy-rainy":
105072
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgSnowyRainy, {}), top: baseTop - 3, left: baseLeft };
105073
+ case "windy":
105074
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWindy, {}), top: baseTop, left: baseLeft };
105075
+ case "windy-variant":
105076
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWindyVariant, {}), top: baseTop, left: baseLeft };
105077
+ case "exceptional":
105078
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgExceptional, {}), top: baseTop, left: baseLeft };
105079
+ default:
105080
+ return { element: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgUnknown, {}), top: baseTop, left: baseLeft };
105081
+ }
105082
+ };
105083
+ const info = getWeatherTypeInfo(type);
105084
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { "aria-label": "weather-icon", $top: info.top, $left: info.left, children: info.element });
105085
+ };
105086
+ const WeatherComponent = () => {
105087
+ const api2 = getPluginApi();
105088
+ const entities = useEntities();
105089
+ const [weatherData, setWeatherData] = React$3.useState();
105090
+ const data = transformWeatherData(entities["weather.forecast_home"]);
105091
+ React$3.useEffect(() => {
105092
+ if (data && (!weatherData || data.temperature !== weatherData.temperature || data.type !== weatherData.type)) {
105093
+ if (weatherData) {
105094
+ api2.trace("Weather changed", data);
105095
+ }
105096
+ setWeatherData(data);
105097
+ }
105098
+ }, [data, weatherData, api2]);
105099
+ if (!weatherData) {
105100
+ return null;
105101
+ }
105102
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(g0, { label: "weather-view", direction: "horz", valign: "center", children: [
105103
+ weatherData.type !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(WeatherIcon, { type: weatherData.type }),
105104
+ !!weatherData.temperature && /* @__PURE__ */ jsxRuntimeExports.jsxs(l4, { label: "temperature", size: "xxlarge", color: "xsubtle", children: [
105105
+ weatherData.temperature,
105106
+ "°"
105107
+ ] })
105108
+ ] });
105109
+ };
105055
105110
  const EntitiesScreen = () => {
105056
105111
  const entities = useEntities();
105057
105112
  const [selectedKey, setSelectedKey] = React$3.useState("");
@@ -105263,7 +105318,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
105263
105318
  {
105264
105319
  key: "base",
105265
105320
  pluginName: "base",
105266
- pluginVersion: "0.37.0",
105321
+ pluginVersion: "0.43.0",
105267
105322
  pluginConfig: []
105268
105323
  }
105269
105324
  ],
@@ -105381,10 +105436,8 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
105381
105436
  return /* @__PURE__ */ jsxRuntimeExports.jsx(UserConfigContext.Provider, { value: config2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(BoardStylesProvider, { zoom, transitionDelay, children }) });
105382
105437
  };
105383
105438
  const Command = ({ commandTitle }) => {
105384
- const userConfig = useUserConfig();
105385
- console.log("### USER CONFIG", userConfig);
105439
+ useUserConfig();
105386
105440
  const api2 = getPluginApi();
105387
- console.log("!!! commands", api2.commands);
105388
105441
  const command = api2.commands.find((c2) => c2.title == commandTitle);
105389
105442
  if (!command) {
105390
105443
  return null;
@@ -105445,9 +105498,35 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
105445
105498
  ] });
105446
105499
  };
105447
105500
  const CommandGroup$1 = CommandGroup;
105501
+ class ErrorBoundary extends React$3.Component {
105502
+ constructor(props) {
105503
+ super(props);
105504
+ this.state = { hasError: false };
105505
+ }
105506
+ static getDerivedStateFromError(error2) {
105507
+ console.log("getDerivedStateFromError", error2);
105508
+ return { hasError: true };
105509
+ }
105510
+ componentDidCatch(error2, errorInfo) {
105511
+ console.log("componentDidCatch", error2, errorInfo);
105512
+ }
105513
+ render() {
105514
+ if (this.state.hasError) {
105515
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
105516
+ "div",
105517
+ {
105518
+ style: {
105519
+ border: "1px solid red"
105520
+ },
105521
+ children: "#ERR"
105522
+ }
105523
+ );
105524
+ }
105525
+ return this.props.children;
105526
+ }
105527
+ }
105448
105528
  const Component = ({ integrationKey, componentKey }) => {
105449
105529
  const userConfig = useUserConfig();
105450
- console.log("### USER CONFIG", userConfig);
105451
105530
  const api2 = getPluginApi();
105452
105531
  const component = api2.integration(integrationKey).component(componentKey, {
105453
105532
  ...parsePropsForComponent(api2, []),
@@ -105459,7 +105538,7 @@ Arguments: ` + Array.prototype.slice.call(n2).join("") + `
105459
105538
  if (component === null) {
105460
105539
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-label": "component-not-found", children: "Component not found" });
105461
105540
  }
105462
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-label": "component", children: component || null });
105541
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-label": "component", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { children: component || null }) });
105463
105542
  };
105464
105543
  function useAuthorization(email, password) {
105465
105544
  const [token2, setToken] = React$3.useState("");