@marimo-team/islands 0.23.1-dev9 → 0.23.2-dev25

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 (84) hide show
  1. package/dist/{ConnectedDataExplorerComponent-tho8l5GC.js → ConnectedDataExplorerComponent-P92i6wYx.js} +148 -148
  2. package/dist/{ImageComparisonComponent-DY3J_vIU.js → ImageComparisonComponent-HF4AY8_n.js} +2 -2
  3. package/dist/{Plot-BxlSHo0G.js → Plot-CK0oVgQL.js} +2 -2
  4. package/dist/{any-language-editor-Caoda-MR.js → any-language-editor-BCvLfvzI.js} +7 -7
  5. package/dist/{button-Cn59RsBF.js → button-D1C3g5GI.js} +72 -71
  6. package/dist/{capabilities-Bml77Di-.js → capabilities-BwpUgo4S.js} +1 -1
  7. package/dist/{chat-ui-Bs4egzxg.js → chat-ui-CNHw9Osh.js} +2829 -2829
  8. package/dist/{check-C51PA02v.js → check-BgrdTLuv.js} +1 -1
  9. package/dist/{chunk-5FQGJX7Z-C428iZBW.js → chunk-5FQGJX7Z-VIref9gx.js} +4 -4
  10. package/dist/{click-outside-container-vCXhHl-R.js → click-outside-container-D3t6KDni.js} +1 -1
  11. package/dist/{code-block-37QAKDTI-D9EnJeBI.js → code-block-37QAKDTI-FQEoMOU1.js} +2 -2
  12. package/dist/{compiler-runtime-B_OLMU9S.js → compiler-runtime-CEbnTgxf.js} +1 -1
  13. package/dist/{copy-DzOz_Au7.js → copy-Bp6CK_Fg.js} +9 -9
  14. package/dist/{data-grid-overlay-editor-lKF301ME.js → data-grid-overlay-editor-C_sKPpLu.js} +4 -4
  15. package/dist/{dist-CjLQ79mo.js → dist-CTtLBPLZ.js} +11 -11
  16. package/dist/{dist-BoNJsA65.js → dist-DUFd1bhm.js} +1 -1
  17. package/dist/{error-banner-BQcJXy6k.js → error-banner-B_ioHva3.js} +121 -121
  18. package/dist/{esm-hRljRgfG.js → esm-CDHI9cuO.js} +15 -15
  19. package/dist/{glide-data-editor-D2X4D_xi.js → glide-data-editor-BFqEJGJW.js} +948 -948
  20. package/dist/{input-BRN2Mjzx.js → input-CSVEkmaZ.js} +288 -288
  21. package/dist/{label-J1N4mVcg.js → label-BebYlsDV.js} +257 -257
  22. package/dist/{loader-JmfPBSx5.js → loader-ZFbGsMN1.js} +15 -15
  23. package/dist/main.js +7178 -7046
  24. package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +6 -0
  25. package/dist/{mermaid-UMKVHs_g.js → mermaid-BbhZNQeB.js} +18 -18
  26. package/dist/{number-overlay-editor-DxLoVuuE.js → number-overlay-editor-B02-t7Ar.js} +2 -2
  27. package/dist/{process-output-BK6F4vqt.js → process-output-Bekznt_B.js} +865 -864
  28. package/dist/{react-dom-BSUuJjCR.js → react-dom-D5FDLRUB.js} +1 -1
  29. package/dist/{react-vega-DayQmZjG.js → react-vega-BkjdpVsR.js} +2 -2
  30. package/dist/{react-vega-CzRAIHrv.js → react-vega-DBwal82H.js} +1 -1
  31. package/dist/{slides-component-_3tukGh-.js → slides-component-DLxprlqo.js} +26 -26
  32. package/dist/{spec-rP6otrXw.js → spec-3EPbPQZH.js} +4 -4
  33. package/dist/style.css +1 -1
  34. package/dist/{toDate-CfGr2xZ1.js → toDate-B1AzlBoW.js} +15 -15
  35. package/dist/{tooltip-CygUI9oH.js → tooltip-DwNnFsxZ.js} +132 -133
  36. package/dist/{types-D4CFUmPq.js → types-pwjdK009.js} +15 -15
  37. package/dist/{useAsyncData-BzS3Ai32.js → useAsyncData-BL98MPIy.js} +3 -3
  38. package/dist/{useDeepCompareMemoize-AjORjhpL.js → useDeepCompareMemoize-CsyOnnjc.js} +25 -25
  39. package/dist/{useIframeCapabilities---aRgGdv.js → useIframeCapabilities-CsTUYYj7.js} +3 -3
  40. package/dist/{useLifecycle-B90lJH4p.js → useLifecycle-DrGGIsgp.js} +36 -36
  41. package/dist/{useTheme-ytmywQ5O.js → useTheme-CzwDokKe.js} +4 -4
  42. package/dist/{vega-component-1icm1Ykb.js → vega-component-KBJXEDZz.js} +42 -42
  43. package/dist/{zod-D4UoCYGu.js → zod-W5ZEjzaE.js} +23 -23
  44. package/package.json +4 -4
  45. package/src/core/islands/__tests__/bridge.test.ts +2 -12
  46. package/src/core/islands/__tests__/islands-harness.test.ts +348 -0
  47. package/src/core/islands/__tests__/parse.test.ts +466 -24
  48. package/src/core/islands/__tests__/test-utils.tsx +263 -0
  49. package/src/core/islands/bootstrap.ts +265 -0
  50. package/src/core/islands/bridge.ts +154 -75
  51. package/src/core/islands/components/IslandControls.tsx +103 -0
  52. package/src/core/islands/components/__tests__/IslandControls.test.tsx +185 -0
  53. package/src/core/islands/components/__tests__/useIslandControls.test.ts +208 -0
  54. package/src/core/islands/components/output-wrapper.tsx +76 -93
  55. package/src/core/islands/components/useIslandControls.ts +60 -0
  56. package/src/core/islands/components/web-components.tsx +168 -40
  57. package/src/core/islands/constants.ts +28 -0
  58. package/src/core/islands/main.ts +7 -205
  59. package/src/core/islands/parse.ts +73 -26
  60. package/src/core/islands/worker-factory.ts +86 -0
  61. package/src/plugins/core/RenderHTML.tsx +9 -0
  62. package/src/plugins/core/__test__/RenderHTML.test.ts +27 -0
  63. package/src/plugins/core/__test__/trusted-url.test.ts +48 -0
  64. package/src/plugins/core/registerReactComponent.tsx +11 -8
  65. package/src/plugins/core/trusted-url.ts +20 -0
  66. package/src/plugins/impl/ButtonPlugin.tsx +4 -6
  67. package/src/plugins/impl/CodeEditorPlugin.tsx +15 -18
  68. package/src/plugins/impl/DataEditorPlugin.tsx +8 -14
  69. package/src/plugins/impl/DataTablePlugin.tsx +8 -9
  70. package/src/plugins/impl/FileUploadPlugin.tsx +39 -43
  71. package/src/plugins/impl/FormPlugin.tsx +2 -6
  72. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +27 -1
  73. package/src/plugins/impl/anywidget/widget-binding.ts +13 -0
  74. package/src/plugins/impl/chat/ChatPlugin.tsx +17 -20
  75. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +5 -8
  76. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +21 -0
  77. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +119 -0
  78. package/src/plugins/impl/panel/PanelPlugin.tsx +31 -10
  79. package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +60 -0
  80. package/src/plugins/impl/vega/VegaPlugin.tsx +5 -8
  81. package/src/plugins/layout/NavigationMenuPlugin.tsx +2 -6
  82. package/dist/mermaid-4DMBBIKO-Cw46o6DN.js +0 -6
  83. /package/dist/{clsx-yW_RAw0K.js → clsx-CwTY0BxM.js} +0 -0
  84. /package/dist/{react-Bs6Z0kvn.js → react-DA-nE2FX.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { u as createLucideIcon } from "./dist-CjLQ79mo.js";
1
+ import { u as createLucideIcon } from "./dist-CTtLBPLZ.js";
2
2
  var Check = createLucideIcon("check", [["path", {
3
3
  d: "M20 6 9 17l-5-5",
4
4
  key: "1gmf2c"
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
- import { t as require_react } from "./react-Bs6Z0kvn.js";
6
- import { t as clsx } from "./clsx-yW_RAw0K.js";
5
+ import { t as require_react } from "./react-DA-nE2FX.js";
6
+ import { t as clsx } from "./clsx-CwTY0BxM.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
8
8
  import { C as hastToReact, D as SKIP, E as EXIT, O as visitParents, S as find, T as CONTINUE, _ as s, a as asciiAtext, b as html$1, c as asciiHexDigit, d as markdownLineEndingOrSpace, f as markdownSpace, g as h$1, h as webNamespaces, i as asciiAlphanumeric, k as convert, l as asciiPunctuation, m as unicodeWhitespace, n as longestStreak, o as asciiControl, p as unicodePunctuation, r as asciiAlpha, s as asciiDigit, t as factorySpace, u as markdownLineEnding, v as stringify$1, w as ok, x as svg, y as stringify } from "./micromark-factory-space-BHslBP9f.js";
9
9
  let tt, cr, ao, xn, b, require_cjs, N;
@@ -19876,10 +19876,10 @@ ${e}</tr>
19876
19876
  })
19877
19877
  ]
19878
19878
  });
19879
- Oo = (0, import_react.lazy)(() => import("./code-block-37QAKDTI-D9EnJeBI.js").then((e) => ({
19879
+ Oo = (0, import_react.lazy)(() => import("./code-block-37QAKDTI-FQEoMOU1.js").then((e) => ({
19880
19880
  default: e.CodeBlock
19881
19881
  })));
19882
- Ao = (0, import_react.lazy)(() => import("./mermaid-4DMBBIKO-Cw46o6DN.js").then((e) => ({
19882
+ Ao = (0, import_react.lazy)(() => import("./mermaid-4DMBBIKO-BjtqcdX4.js").then((e) => ({
19883
19883
  default: e.Mermaid
19884
19884
  })));
19885
19885
  qo = /language-([^\s]+)/;
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a;
5
5
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
6
- import { t as require_react } from "./react-Bs6Z0kvn.js";
6
+ import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  function panic(f = "This should not happen") {
8
8
  throw Error(f);
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { i as cr, n as ao, r as b, t as N } from "./chunk-5FQGJX7Z-C428iZBW.js";
2
+ import { t as require_react } from "./react-DA-nE2FX.js";
3
+ import { i as cr, n as ao, r as b, t as N } from "./chunk-5FQGJX7Z-VIref9gx.js";
4
4
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
5
5
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), H = b("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), k = (0, import_react.memo)(({ children: e, result: o, language: s, className: c, ...u }) => {
6
6
  let d = (0, import_react.useMemo)(() => ({
@@ -1,5 +1,5 @@
1
1
  import { t as __commonJSMin } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
2
+ import { t as require_react } from "./react-DA-nE2FX.js";
3
3
  /**
4
4
  * @license React
5
5
  * react-compiler-runtime.production.js
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { u as createLucideIcon } from "./dist-CjLQ79mo.js";
5
- import { g as Logger } from "./button-Cn59RsBF.js";
2
+ import { _ as Logger } from "./button-D1C3g5GI.js";
3
+ import { t as require_react } from "./react-DA-nE2FX.js";
4
+ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
5
+ import { u as createLucideIcon } from "./dist-CTtLBPLZ.js";
6
6
  require_compiler_runtime(), require_react();
7
7
  var TOAST_LIMIT = 1, TOAST_REMOVE_DELAY = 1e4, count = 0;
8
8
  function genId() {
@@ -122,17 +122,17 @@ var Copy = createLucideIcon("copy", [["rect", {
122
122
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
123
123
  key: "zix9uf"
124
124
  }]]);
125
- async function copyToClipboard(e, p) {
125
+ async function copyToClipboard(e, m) {
126
126
  if (navigator.clipboard === void 0) {
127
127
  Logger.warn("navigator.clipboard is not supported"), window.prompt("Copy to clipboard: Ctrl+C, Enter", e);
128
128
  return;
129
129
  }
130
- if (p && navigator.clipboard.write) try {
131
- let m = new ClipboardItem({
132
- "text/html": new Blob([p], { type: "text/html" }),
130
+ if (m && navigator.clipboard.write) try {
131
+ let p = new ClipboardItem({
132
+ "text/html": new Blob([m], { type: "text/html" }),
133
133
  "text/plain": new Blob([e], { type: "text/plain" })
134
134
  });
135
- await navigator.clipboard.write([m]);
135
+ await navigator.clipboard.write([p]);
136
136
  return;
137
137
  } catch {
138
138
  Logger.warn("Failed to write rich text, falling back to plain text");
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { t as require_react_dom } from "./react-dom-BSUuJjCR.js";
4
- import { _ as isEditableGridCell, i as makeCSSStyle, n as ThemeContext, t as ClickOutsideContainer, v as isInnerOnlyCell, y as isObjectEditorCallbackResult } from "./click-outside-container-vCXhHl-R.js";
5
- import { t as styled_default } from "./dist-BoNJsA65.js";
2
+ import { t as require_react } from "./react-DA-nE2FX.js";
3
+ import { t as require_react_dom } from "./react-dom-D5FDLRUB.js";
4
+ import { _ as isEditableGridCell, i as makeCSSStyle, n as ThemeContext, t as ClickOutsideContainer, v as isInnerOnlyCell, y as isObjectEditorCallbackResult } from "./click-outside-container-D3t6KDni.js";
5
+ import { t as styled_default } from "./dist-DUFd1bhm.js";
6
6
  var import_react_dom = require_react_dom(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), _exp2 = () => (n) => n.targetX, _exp3 = () => (n) => n.targetY, _exp4 = () => (n) => n.targetWidth, _exp5 = () => (n) => n.targetHeight, _exp6 = () => (n) => n.targetY + 10, _exp7 = () => (n) => Math.max(0, (n.targetHeight - 28) / 2);
7
7
  const DataGridOverlayEditorStyle = /* @__PURE__ */ styled_default("div")({
8
8
  name: "DataGridOverlayEditorStyle",
@@ -1,9 +1,9 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { m as useComposedRefs } from "./button-Cn59RsBF.js";
4
- import { t as require_react_dom } from "./react-dom-BSUuJjCR.js";
2
+ import { m as useComposedRefs } from "./button-D1C3g5GI.js";
3
+ import { t as require_react } from "./react-DA-nE2FX.js";
4
+ import { t as require_react_dom } from "./react-dom-D5FDLRUB.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
6
- import { _t as Primitive, gt as createContextScope, lt as useCallbackRef, pt as useLayoutEffect2 } from "./zod-D4UoCYGu.js";
6
+ import { _t as Primitive, gt as createContextScope, lt as useCallbackRef, pt as useLayoutEffect2 } from "./zod-W5ZEjzaE.js";
7
7
  /**
8
8
  * @license lucide-react v0.563.0 - ISC
9
9
  *
@@ -1202,8 +1202,8 @@ var Root = Arrow$1, POPPER_NAME = "Popper", [createPopperContext, createPopperSc
1202
1202
  });
1203
1203
  };
1204
1204
  Popper.displayName = POPPER_NAME;
1205
- var ANCHOR_NAME = "PopperAnchor", PopperAnchor = import_react.forwardRef((e, a) => {
1206
- let { __scopePopper: s, virtualRef: c, ...u } = e, d = usePopperContext(ANCHOR_NAME, s), f = import_react.useRef(null), p = useComposedRefs(a, f), m = import_react.useRef(null);
1205
+ var ANCHOR_NAME = "PopperAnchor", PopperAnchor = import_react.forwardRef((e, o) => {
1206
+ let { __scopePopper: s, virtualRef: c, ...u } = e, d = usePopperContext(ANCHOR_NAME, s), f = import_react.useRef(null), p = useComposedRefs(o, f), m = import_react.useRef(null);
1207
1207
  return import_react.useEffect(() => {
1208
1208
  let e2 = m.current;
1209
1209
  m.current = (c == null ? void 0 : c.current) || f.current, e2 !== m.current && d.onAnchorChange(m.current);
@@ -1213,9 +1213,9 @@ var ANCHOR_NAME = "PopperAnchor", PopperAnchor = import_react.forwardRef((e, a)
1213
1213
  });
1214
1214
  });
1215
1215
  PopperAnchor.displayName = ANCHOR_NAME;
1216
- var CONTENT_NAME = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME), PopperContent = import_react.forwardRef((e, a) => {
1216
+ var CONTENT_NAME = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME), PopperContent = import_react.forwardRef((e, o) => {
1217
1217
  var _a, _b, _c, _d, _e, _f;
1218
- let { __scopePopper: s, side: c = "bottom", sideOffset: u = 0, align: p = "center", alignOffset: m = 0, arrowPadding: h = 0, avoidCollisions: g = true, collisionBoundary: _ = [], collisionPadding: v = 0, sticky: b = "partial", hideWhenDetached: x = false, updatePositionStrategy: C = "optimized", onPlaced: w, ...T } = e, E = usePopperContext(CONTENT_NAME, s), [O, k] = import_react.useState(null), A = useComposedRefs(a, (e2) => k(e2)), [j, M] = import_react.useState(null), N = useSize(j), P = (N == null ? void 0 : N.width) ?? 0, F = (N == null ? void 0 : N.height) ?? 0, I = c + (p === "center" ? "" : "-" + p), L = typeof v == "number" ? v : {
1218
+ let { __scopePopper: s, side: c = "bottom", sideOffset: u = 0, align: p = "center", alignOffset: m = 0, arrowPadding: h = 0, avoidCollisions: g = true, collisionBoundary: _ = [], collisionPadding: v = 0, sticky: b = "partial", hideWhenDetached: x = false, updatePositionStrategy: C = "optimized", onPlaced: w, ...T } = e, E = usePopperContext(CONTENT_NAME, s), [O, k] = import_react.useState(null), A = useComposedRefs(o, (e2) => k(e2)), [j, M] = import_react.useState(null), N = useSize(j), P = (N == null ? void 0 : N.width) ?? 0, F = (N == null ? void 0 : N.height) ?? 0, I = c + (p === "center" ? "" : "-" + p), L = typeof v == "number" ? v : {
1219
1219
  top: 0,
1220
1220
  right: 0,
1221
1221
  bottom: 0,
@@ -1244,9 +1244,9 @@ var CONTENT_NAME = "PopperContent", [PopperContentProvider, useContentContext] =
1244
1244
  g && flip({ ...B }),
1245
1245
  size({
1246
1246
  ...B,
1247
- apply: ({ elements: e2, rects: a2, availableWidth: o, availableHeight: s2 }) => {
1248
- let { width: c2, height: l } = a2.reference, u2 = e2.floating.style;
1249
- u2.setProperty("--radix-popper-available-width", `${o}px`), u2.setProperty("--radix-popper-available-height", `${s2}px`), u2.setProperty("--radix-popper-anchor-width", `${c2}px`), u2.setProperty("--radix-popper-anchor-height", `${l}px`);
1247
+ apply: ({ elements: e2, rects: a, availableWidth: o2, availableHeight: s2 }) => {
1248
+ let { width: c2, height: l } = a.reference, u2 = e2.floating.style;
1249
+ u2.setProperty("--radix-popper-available-width", `${o2}px`), u2.setProperty("--radix-popper-available-height", `${s2}px`), u2.setProperty("--radix-popper-anchor-width", `${c2}px`), u2.setProperty("--radix-popper-anchor-height", `${l}px`);
1250
1250
  }
1251
1251
  }),
1252
1252
  j && arrow({
@@ -1,5 +1,5 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
2
+ import { t as require_react } from "./react-DA-nE2FX.js";
3
3
  import { t as isPropValid } from "./emotion-is-prop-valid.esm-CJVjyntJ.js";
4
4
  var cx_default = function() {
5
5
  let e = Array.prototype.slice.call(arguments).filter(Boolean), n = {}, r = [];
@@ -1,9 +1,9 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { d as createSlot, f as createSlottable, g as Logger, m as useComposedRefs, n as buttonVariants, r as cva, y as cn } from "./button-Cn59RsBF.js";
2
+ import { _ as Logger, d as createSlot, f as createSlottable, g as cn, m as useComposedRefs, n as buttonVariants, r as cva } from "./button-D1C3g5GI.js";
3
+ import { t as require_react } from "./react-DA-nE2FX.js";
4
+ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
6
- import { $ as StyleNamespace, P as object, R as string, X as withFullScreenAsRoot, _t as Primitive, at as FocusScope, dt as Presence, et as hideOthers, ft as useControllableState, gt as createContextScope, ht as createContext2, it as Portal, mt as composeEventHandlers, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-D4UoCYGu.js";
6
+ import { $ as StyleNamespace, P as object, R as string, X as withFullScreenAsRoot, _t as Primitive, at as FocusScope, dt as Presence, et as hideOthers, ft as useControllableState, gt as createContextScope, ht as createContext2, it as Portal, mt as composeEventHandlers, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-W5ZEjzaE.js";
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), Dialog = (t) => {
8
8
  let { __scopeDialog: F, children: I, open: L, defaultOpen: R, onOpenChange: z, modal: B = true } = t, V = import_react.useRef(null), H = import_react.useRef(null), [U, W] = useControllableState({
9
9
  prop: L,
@@ -27,7 +27,7 @@ var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runti
27
27
  };
28
28
  Dialog.displayName = DIALOG_NAME;
29
29
  var TRIGGER_NAME$1 = "DialogTrigger", DialogTrigger = import_react.forwardRef((t, F) => {
30
- let { __scopeDialog: I, ...L } = t, R = useDialogContext(TRIGGER_NAME$1, I), z = useComposedRefs(F, R.triggerRef);
30
+ let { __scopeDialog: I, ...L } = t, R = useDialogContext(TRIGGER_NAME$1, I), B = useComposedRefs(F, R.triggerRef);
31
31
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
32
32
  type: "button",
33
33
  "aria-haspopup": "dialog",
@@ -35,7 +35,7 @@ var TRIGGER_NAME$1 = "DialogTrigger", DialogTrigger = import_react.forwardRef((t
35
35
  "aria-controls": R.contentId,
36
36
  "data-state": getState(R.open),
37
37
  ...L,
38
- ref: z,
38
+ ref: B,
39
39
  onClick: composeEventHandlers(t.onClick, R.onOpenToggle)
40
40
  });
41
41
  });
@@ -136,13 +136,13 @@ var DialogContentModal = import_react.forwardRef((t, F) => {
136
136
  }
137
137
  });
138
138
  }), DialogContentImpl = import_react.forwardRef((t, F) => {
139
- let { __scopeDialog: I, trapFocus: L, onOpenAutoFocus: R, onCloseAutoFocus: z, ...V } = t, H = useDialogContext(CONTENT_NAME$1, I), U = import_react.useRef(null), W = useComposedRefs(F, U);
139
+ let { __scopeDialog: I, trapFocus: L, onOpenAutoFocus: R, onCloseAutoFocus: B, ...V } = t, H = useDialogContext(CONTENT_NAME$1, I), U = import_react.useRef(null), W = useComposedRefs(F, U);
140
140
  return useFocusGuards(), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
141
141
  asChild: true,
142
142
  loop: true,
143
143
  trapped: L,
144
144
  onMountAutoFocus: R,
145
- onUnmountAutoFocus: z,
145
+ onUnmountAutoFocus: B,
146
146
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
147
147
  role: "dialog",
148
148
  id: H.contentId,
@@ -248,7 +248,7 @@ var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlay$1 = import_react.for
248
248
  });
249
249
  AlertDialogOverlay$1.displayName = OVERLAY_NAME;
250
250
  var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME), Slottable = createSlottable("AlertDialogContent"), AlertDialogContent$1 = import_react.forwardRef((t, F) => {
251
- let { __scopeAlertDialog: I, children: L, ...R } = t, z = useDialogScope(I), V = import_react.useRef(null), H = useComposedRefs(F, V), U = import_react.useRef(null);
251
+ let { __scopeAlertDialog: I, children: L, ...R } = t, B = useDialogScope(I), V = import_react.useRef(null), H = useComposedRefs(F, V), U = import_react.useRef(null);
252
252
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WarningProvider, {
253
253
  contentName: CONTENT_NAME,
254
254
  titleName: TITLE_NAME,
@@ -258,7 +258,7 @@ var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDi
258
258
  cancelRef: U,
259
259
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, {
260
260
  role: "alertdialog",
261
- ...z,
261
+ ...B,
262
262
  ...R,
263
263
  ref: H,
264
264
  onOpenAutoFocus: composeEventHandlers(R.onOpenAutoFocus, (t2) => {
@@ -301,9 +301,9 @@ var ACTION_NAME = "AlertDialogAction", AlertDialogAction$1 = import_react.forwar
301
301
  });
302
302
  AlertDialogAction$1.displayName = ACTION_NAME;
303
303
  var CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel$1 = import_react.forwardRef((t, F) => {
304
- let { __scopeAlertDialog: I, ...L } = t, { cancelRef: R } = useAlertDialogContentContext(CANCEL_NAME, I), z = useDialogScope(I), V = useComposedRefs(F, R);
304
+ let { __scopeAlertDialog: I, ...L } = t, { cancelRef: R } = useAlertDialogContentContext(CANCEL_NAME, I), B = useDialogScope(I), V = useComposedRefs(F, R);
305
305
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Close, {
306
- ...z,
306
+ ...B,
307
307
  ...L,
308
308
  ref: V
309
309
  });
@@ -382,187 +382,187 @@ var import_compiler_runtime$1 = require_compiler_runtime(), AlertDialog = Root2,
382
382
  }));
383
383
  AlertDialogPortal.displayName = Portal2.displayName;
384
384
  var AlertDialogOverlay = import_react.forwardRef((t, F) => {
385
- let I = (0, import_compiler_runtime$1.c)(9), L, R;
385
+ let I = (0, import_compiler_runtime$1.c)(9), L, z;
386
386
  if (I[0] !== t) {
387
- let { className: F2, children: z2, ...B2 } = t;
388
- L = F2, R = B2, I[0] = t, I[1] = L, I[2] = R;
389
- } else L = I[1], R = I[2];
390
- let z;
391
- I[3] === L ? z = I[4] : (z = cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", L), I[3] = L, I[4] = z);
387
+ let { className: F2, children: R, ...B2 } = t;
388
+ L = F2, z = B2, I[0] = t, I[1] = L, I[2] = z;
389
+ } else L = I[1], z = I[2];
392
390
  let B;
393
- return I[5] !== R || I[6] !== F || I[7] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Overlay2, {
394
- className: z,
395
- ...R,
391
+ I[3] === L ? B = I[4] : (B = cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", L), I[3] = L, I[4] = B);
392
+ let V;
393
+ return I[5] !== z || I[6] !== F || I[7] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Overlay2, {
394
+ className: B,
395
+ ...z,
396
396
  ref: F
397
- }), I[5] = R, I[6] = F, I[7] = z, I[8] = B) : B = I[8], B;
397
+ }), I[5] = z, I[6] = F, I[7] = B, I[8] = V) : V = I[8], V;
398
398
  });
399
399
  AlertDialogOverlay.displayName = Overlay2.displayName;
400
400
  var AlertDialogContent = import_react.forwardRef((t, F) => {
401
- let I = (0, import_compiler_runtime$1.c)(11), L, R;
402
- I[0] === t ? (L = I[1], R = I[2]) : ({ className: L, ...R } = t, I[0] = t, I[1] = L, I[2] = R);
403
- let z = useRestoreFocus(), B;
404
- I[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}), I[3] = B) : B = I[3];
405
- let V;
406
- I[4] === L ? V = I[5] : (V = cn("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full", L), I[4] = L, I[5] = V);
401
+ let I = (0, import_compiler_runtime$1.c)(11), L, z;
402
+ I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
403
+ let B = useRestoreFocus(), V;
404
+ I[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}), I[3] = V) : V = I[3];
407
405
  let H;
408
- return I[6] !== R || I[7] !== F || I[8] !== z || I[9] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [B, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content2, {
406
+ I[4] === L ? H = I[5] : (H = cn("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full", L), I[4] = L, I[5] = H);
407
+ let U;
408
+ return I[6] !== z || I[7] !== F || I[8] !== B || I[9] !== H ? (U = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [V, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content2, {
409
409
  ref: F,
410
- className: V,
411
- ...z,
412
- ...R
413
- })] }), I[6] = R, I[7] = F, I[8] = z, I[9] = V, I[10] = H) : H = I[10], H;
410
+ className: H,
411
+ ...B,
412
+ ...z
413
+ })] }), I[6] = z, I[7] = F, I[8] = B, I[9] = H, I[10] = U) : U = I[10], U;
414
414
  });
415
415
  AlertDialogContent.displayName = Content2.displayName;
416
416
  var AlertDialogHeader = (t) => {
417
417
  let F = (0, import_compiler_runtime$1.c)(8), I, L;
418
418
  F[0] === t ? (I = F[1], L = F[2]) : ({ className: I, ...L } = t, F[0] = t, F[1] = I, F[2] = L);
419
- let R;
420
- F[3] === I ? R = F[4] : (R = cn("flex flex-col space-y-2 text-center sm:text-left", I), F[3] = I, F[4] = R);
421
419
  let z;
422
- return F[5] !== L || F[6] !== R ? (z = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
423
- className: R,
420
+ F[3] === I ? z = F[4] : (z = cn("flex flex-col space-y-2 text-center sm:text-left", I), F[3] = I, F[4] = z);
421
+ let B;
422
+ return F[5] !== L || F[6] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
423
+ className: z,
424
424
  ...L
425
- }), F[5] = L, F[6] = R, F[7] = z) : z = F[7], z;
425
+ }), F[5] = L, F[6] = z, F[7] = B) : B = F[7], B;
426
426
  };
427
427
  AlertDialogHeader.displayName = "AlertDialogHeader";
428
428
  var AlertDialogFooter = (t) => {
429
429
  let F = (0, import_compiler_runtime$1.c)(8), I, L;
430
430
  F[0] === t ? (I = F[1], L = F[2]) : ({ className: I, ...L } = t, F[0] = t, F[1] = I, F[2] = L);
431
- let R;
432
- F[3] === I ? R = F[4] : (R = cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", I), F[3] = I, F[4] = R);
433
431
  let z;
434
- return F[5] !== L || F[6] !== R ? (z = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
435
- className: R,
432
+ F[3] === I ? z = F[4] : (z = cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", I), F[3] = I, F[4] = z);
433
+ let B;
434
+ return F[5] !== L || F[6] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
435
+ className: z,
436
436
  ...L
437
- }), F[5] = L, F[6] = R, F[7] = z) : z = F[7], z;
437
+ }), F[5] = L, F[6] = z, F[7] = B) : B = F[7], B;
438
438
  };
439
439
  AlertDialogFooter.displayName = "AlertDialogFooter";
440
440
  var AlertDialogTitle = import_react.forwardRef((t, F) => {
441
- let I = (0, import_compiler_runtime$1.c)(9), L, R;
442
- I[0] === t ? (L = I[1], R = I[2]) : ({ className: L, ...R } = t, I[0] = t, I[1] = L, I[2] = R);
443
- let z;
444
- I[3] === L ? z = I[4] : (z = cn("text-lg font-semibold", L), I[3] = L, I[4] = z);
441
+ let I = (0, import_compiler_runtime$1.c)(9), L, z;
442
+ I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
445
443
  let B;
446
- return I[5] !== R || I[6] !== F || I[7] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title2, {
444
+ I[3] === L ? B = I[4] : (B = cn("text-lg font-semibold", L), I[3] = L, I[4] = B);
445
+ let V;
446
+ return I[5] !== z || I[6] !== F || I[7] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title2, {
447
447
  ref: F,
448
- className: z,
449
- ...R
450
- }), I[5] = R, I[6] = F, I[7] = z, I[8] = B) : B = I[8], B;
448
+ className: B,
449
+ ...z
450
+ }), I[5] = z, I[6] = F, I[7] = B, I[8] = V) : V = I[8], V;
451
451
  });
452
452
  AlertDialogTitle.displayName = Title2.displayName;
453
453
  var AlertDialogDescription = import_react.forwardRef((t, F) => {
454
- let I = (0, import_compiler_runtime$1.c)(9), L, R;
455
- I[0] === t ? (L = I[1], R = I[2]) : ({ className: L, ...R } = t, I[0] = t, I[1] = L, I[2] = R);
456
- let z;
457
- I[3] === L ? z = I[4] : (z = cn("text-muted-foreground", L), I[3] = L, I[4] = z);
454
+ let I = (0, import_compiler_runtime$1.c)(9), L, z;
455
+ I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
458
456
  let B;
459
- return I[5] !== R || I[6] !== F || I[7] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description2, {
457
+ I[3] === L ? B = I[4] : (B = cn("text-muted-foreground", L), I[3] = L, I[4] = B);
458
+ let V;
459
+ return I[5] !== z || I[6] !== F || I[7] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description2, {
460
460
  ref: F,
461
- className: z,
462
- ...R
463
- }), I[5] = R, I[6] = F, I[7] = z, I[8] = B) : B = I[8], B;
461
+ className: B,
462
+ ...z
463
+ }), I[5] = z, I[6] = F, I[7] = B, I[8] = V) : V = I[8], V;
464
464
  });
465
465
  AlertDialogDescription.displayName = Description2.displayName;
466
466
  var AlertDialogAction = import_react.forwardRef((t, F) => {
467
- let I = (0, import_compiler_runtime$1.c)(9), L, R;
468
- I[0] === t ? (L = I[1], R = I[2]) : ({ className: L, ...R } = t, I[0] = t, I[1] = L, I[2] = R);
469
- let z;
470
- I[3] === L ? z = I[4] : (z = cn(buttonVariants(), L), I[3] = L, I[4] = z);
471
- let B;
472
- return I[5] !== R || I[6] !== F || I[7] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
467
+ let I = (0, import_compiler_runtime$1.c)(9), L, z;
468
+ I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
469
+ let V;
470
+ I[3] === L ? V = I[4] : (V = cn(buttonVariants(), L), I[3] = L, I[4] = V);
471
+ let H;
472
+ return I[5] !== z || I[6] !== F || I[7] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
473
473
  ref: F,
474
- className: z,
475
- ...R
476
- }), I[5] = R, I[6] = F, I[7] = z, I[8] = B) : B = I[8], B;
474
+ className: V,
475
+ ...z
476
+ }), I[5] = z, I[6] = F, I[7] = V, I[8] = H) : H = I[8], H;
477
477
  });
478
478
  AlertDialogAction.displayName = Action.displayName;
479
479
  var AlertDialogDestructiveAction = import_react.forwardRef((t, F) => {
480
- let I = (0, import_compiler_runtime$1.c)(9), L, R;
481
- I[0] === t ? (L = I[1], R = I[2]) : ({ className: L, ...R } = t, I[0] = t, I[1] = L, I[2] = R);
482
- let z;
483
- I[3] === L ? z = I[4] : (z = cn(buttonVariants({ variant: "destructive" }), L), I[3] = L, I[4] = z);
484
- let B;
485
- return I[5] !== R || I[6] !== F || I[7] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
480
+ let I = (0, import_compiler_runtime$1.c)(9), L, z;
481
+ I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
482
+ let V;
483
+ I[3] === L ? V = I[4] : (V = cn(buttonVariants({ variant: "destructive" }), L), I[3] = L, I[4] = V);
484
+ let H;
485
+ return I[5] !== z || I[6] !== F || I[7] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
486
486
  ref: F,
487
- className: z,
488
- ...R
489
- }), I[5] = R, I[6] = F, I[7] = z, I[8] = B) : B = I[8], B;
487
+ className: V,
488
+ ...z
489
+ }), I[5] = z, I[6] = F, I[7] = V, I[8] = H) : H = I[8], H;
490
490
  });
491
491
  AlertDialogDestructiveAction.displayName = "AlertDialogDestructiveAction";
492
492
  var AlertDialogCancel = import_react.forwardRef((t, F) => {
493
- let I = (0, import_compiler_runtime$1.c)(9), L, R;
494
- I[0] === t ? (L = I[1], R = I[2]) : ({ className: L, ...R } = t, I[0] = t, I[1] = L, I[2] = R);
495
- let z;
496
- I[3] === L ? z = I[4] : (z = cn(buttonVariants({ variant: "secondary" }), "mt-2 sm:mt-0", L), I[3] = L, I[4] = z);
497
- let B;
498
- return I[5] !== R || I[6] !== F || I[7] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cancel, {
493
+ let I = (0, import_compiler_runtime$1.c)(9), L, z;
494
+ I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
495
+ let V;
496
+ I[3] === L ? V = I[4] : (V = cn(buttonVariants({ variant: "secondary" }), "mt-2 sm:mt-0", L), I[3] = L, I[4] = V);
497
+ let H;
498
+ return I[5] !== z || I[6] !== F || I[7] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cancel, {
499
499
  ref: F,
500
- className: z,
501
- ...R
502
- }), I[5] = R, I[6] = F, I[7] = z, I[8] = B) : B = I[8], B;
500
+ className: V,
501
+ ...z
502
+ }), I[5] = z, I[6] = F, I[7] = V, I[8] = H) : H = I[8], H;
503
503
  });
504
504
  AlertDialogCancel.displayName = Cancel.displayName;
505
505
  var import_compiler_runtime = require_compiler_runtime();
506
506
  const ErrorBanner = (t) => {
507
- let F = (0, import_compiler_runtime.c)(23), { error: I, className: L, action: R } = t, [B, V] = (0, import_react.useState)(false);
508
- if (!I) return null;
509
- Logger.error(I);
507
+ let I = (0, import_compiler_runtime.c)(23), { error: L, className: R, action: z } = t, [B, V] = (0, import_react.useState)(false);
508
+ if (!L) return null;
509
+ Logger.error(L);
510
510
  let H;
511
- F[0] === I ? H = F[1] : (H = prettyError(I), F[0] = I, F[1] = H);
511
+ I[0] === L ? H = I[1] : (H = prettyError(L), I[0] = L, I[1] = H);
512
512
  let U = H, W;
513
- F[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = () => V(true), F[2] = W) : W = F[2];
513
+ I[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = () => V(true), I[2] = W) : W = I[2];
514
514
  let G;
515
- F[3] === U ? G = F[4] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
515
+ I[3] === U ? G = I[4] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
516
516
  className: "line-clamp-4",
517
517
  children: U
518
- }), F[3] = U, F[4] = G);
518
+ }), I[3] = U, I[4] = G);
519
519
  let K;
520
- F[5] === R ? K = F[6] : (K = R && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
520
+ I[5] === z ? K = I[6] : (K = z && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
521
521
  className: "flex justify-end",
522
- children: R
523
- }), F[5] = R, F[6] = K);
522
+ children: z
523
+ }), I[5] = z, I[6] = K);
524
524
  let q;
525
- F[7] !== L || F[8] !== G || F[9] !== K ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Banner, {
525
+ I[7] !== R || I[8] !== G || I[9] !== K ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Banner, {
526
526
  kind: "danger",
527
- className: L,
527
+ className: R,
528
528
  clickable: true,
529
529
  onClick: W,
530
530
  children: [G, K]
531
- }), F[7] = L, F[8] = G, F[9] = K, F[10] = q) : q = F[10];
531
+ }), I[7] = R, I[8] = G, I[9] = K, I[10] = q) : q = I[10];
532
532
  let J;
533
- F[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, {
533
+ I[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, {
534
534
  className: "text-error",
535
535
  children: "Error"
536
- }) }), F[11] = J) : J = F[11];
536
+ }) }), I[11] = J) : J = I[11];
537
537
  let Y;
538
- F[12] === U ? Y = F[13] : (Y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogDescription, {
538
+ I[12] === U ? Y = I[13] : (Y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogDescription, {
539
539
  asChild: true,
540
540
  className: "text-error text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",
541
541
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { children: U })
542
- }), F[12] = U, F[13] = Y);
542
+ }), I[12] = U, I[13] = Y);
543
543
  let X;
544
- F[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogAction, {
544
+ I[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogAction, {
545
545
  autoFocus: true,
546
546
  onClick: () => V(false),
547
547
  children: "Ok"
548
- }) }), F[14] = X) : X = F[14];
548
+ }) }), I[14] = X) : X = I[14];
549
549
  let Z;
550
- F[15] === Y ? Z = F[16] : (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, {
550
+ I[15] === Y ? Z = I[16] : (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, {
551
551
  className: "max-w-[80%] max-h-[80%] overflow-hidden flex flex-col",
552
552
  children: [
553
553
  J,
554
554
  Y,
555
555
  X
556
556
  ]
557
- }), F[15] = Y, F[16] = Z);
557
+ }), I[15] = Y, I[16] = Z);
558
558
  let Q;
559
- F[17] !== B || F[18] !== Z ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog, {
559
+ I[17] !== B || I[18] !== Z ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog, {
560
560
  open: B,
561
561
  onOpenChange: V,
562
562
  children: Z
563
- }), F[17] = B, F[18] = Z, F[19] = Q) : Q = F[19];
563
+ }), I[17] = B, I[18] = Z, I[19] = Q) : Q = I[19];
564
564
  let $;
565
- return F[20] !== Q || F[21] !== q ? ($ = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [q, Q] }), F[20] = Q, F[21] = q, F[22] = $) : $ = F[22], $;
565
+ return I[20] !== Q || I[21] !== q ? ($ = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [q, Q] }), I[20] = Q, I[21] = q, I[22] = $) : $ = I[22], $;
566
566
  };
567
567
  var bannerStyle = cva("text-sm p-2 border whitespace-pre-wrap overflow-hidden", {
568
568
  variants: {
@@ -593,19 +593,19 @@ var bannerStyle = cva("text-sm p-2 border whitespace-pre-wrap overflow-hidden",
593
593
  defaultVariants: { kind: "info" }
594
594
  });
595
595
  const Banner = (t) => {
596
- let F = (0, import_compiler_runtime.c)(14), I, L, R, z, B;
597
- F[0] === t ? (I = F[1], L = F[2], R = F[3], z = F[4], B = F[5]) : ({ kind: z, clickable: R, className: L, children: I, ...B } = t, F[0] = t, F[1] = I, F[2] = L, F[3] = R, F[4] = z, F[5] = B);
598
- let V;
599
- F[6] !== L || F[7] !== R || F[8] !== z ? (V = cn(bannerStyle({
600
- kind: z,
601
- clickable: R
602
- }), L), F[6] = L, F[7] = R, F[8] = z, F[9] = V) : V = F[9];
596
+ let F = (0, import_compiler_runtime.c)(14), I, L, z, B, V;
597
+ F[0] === t ? (I = F[1], L = F[2], z = F[3], B = F[4], V = F[5]) : ({ kind: B, clickable: z, className: L, children: I, ...V } = t, F[0] = t, F[1] = I, F[2] = L, F[3] = z, F[4] = B, F[5] = V);
603
598
  let H;
604
- return F[10] !== I || F[11] !== B || F[12] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
605
- className: V,
606
- ...B,
599
+ F[6] !== L || F[7] !== z || F[8] !== B ? (H = cn(bannerStyle({
600
+ kind: B,
601
+ clickable: z
602
+ }), L), F[6] = L, F[7] = z, F[8] = B, F[9] = H) : H = F[9];
603
+ let U;
604
+ return F[10] !== I || F[11] !== V || F[12] !== H ? (U = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
605
+ className: H,
606
+ ...V,
607
607
  children: I
608
- }), F[10] = I, F[11] = B, F[12] = V, F[13] = H) : H = F[13], H;
608
+ }), F[10] = I, F[11] = V, F[12] = H, F[13] = U) : U = F[13], U;
609
609
  };
610
610
  export {
611
611
  Content as a,