@arbidocs/blocks 0.5.160 → 0.5.162

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 (136) hide show
  1. package/dist/{ConnectedCallDock-SD4DKTMX.cjs → ConnectedCallDock-ML4ZTABN.cjs} +21 -21
  2. package/dist/{ConnectedCallDock-SD4DKTMX.cjs.map → ConnectedCallDock-ML4ZTABN.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-2FLGH3JB.cjs → ConnectedCallRoom-GBTP2LT2.cjs} +14 -14
  4. package/dist/{ConnectedCallRoom-2FLGH3JB.cjs.map → ConnectedCallRoom-GBTP2LT2.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-PV3SDVMZ.cjs → ConnectedNativeDocxComparison-EDG5V4ZD.cjs} +15 -15
  6. package/dist/{ConnectedNativeDocxComparison-PV3SDVMZ.cjs.map → ConnectedNativeDocxComparison-EDG5V4ZD.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-J42JPUVR.cjs → ConnectedPresentation-LTVAUJ7Z.cjs} +19 -19
  8. package/dist/{ConnectedPresentation-J42JPUVR.cjs.map → ConnectedPresentation-LTVAUJ7Z.cjs.map} +1 -1
  9. package/dist/{ConnectedProductionSetDialog-LB5B7OXR.cjs → ConnectedProductionSetDialog-7J4T3L6U.cjs} +3 -3
  10. package/dist/{ConnectedProductionSetDialog-LB5B7OXR.cjs.map → ConnectedProductionSetDialog-7J4T3L6U.cjs.map} +1 -1
  11. package/dist/{ConnectedSlidesTab-BYS7HFNK.cjs → ConnectedSlidesTab-VLRDE7YI.cjs} +14 -14
  12. package/dist/{ConnectedSlidesTab-BYS7HFNK.cjs.map → ConnectedSlidesTab-VLRDE7YI.cjs.map} +1 -1
  13. package/dist/{ConnectedStreamedWordArtifact-T6GE5GME.cjs → ConnectedStreamedWordArtifact-YBJ4R6ZK.cjs} +15 -15
  14. package/dist/{ConnectedStreamedWordArtifact-T6GE5GME.cjs.map → ConnectedStreamedWordArtifact-YBJ4R6ZK.cjs.map} +1 -1
  15. package/dist/{DocumentReviewCard-UXGPQNTN.cjs → DocumentReviewCard-DZJP7FXQ.cjs} +15 -15
  16. package/dist/{DocumentReviewCard-UXGPQNTN.cjs.map → DocumentReviewCard-DZJP7FXQ.cjs.map} +1 -1
  17. package/dist/{FilesViewerDialog-D6XDCE2U.cjs → FilesViewerDialog-3GFV36JQ.cjs} +45 -45
  18. package/dist/{FilesViewerDialog-D6XDCE2U.cjs.map → FilesViewerDialog-3GFV36JQ.cjs.map} +1 -1
  19. package/dist/{WorkspaceTableView-NMERZJZZ.cjs → WorkspaceTableView-CPNVJDSS.cjs} +8 -8
  20. package/dist/{WorkspaceTableView-NMERZJZZ.cjs.map → WorkspaceTableView-CPNVJDSS.cjs.map} +1 -1
  21. package/dist/agents/index.cjs +284 -284
  22. package/dist/{ai-QFY4LYQZ.cjs → ai-NFZHPSS2.cjs} +25 -25
  23. package/dist/ai-NFZHPSS2.cjs.map +1 -0
  24. package/dist/calls/index.cjs +120 -120
  25. package/dist/chat/index.cjs +1 -1
  26. package/dist/{chunk-VU2MESEX.cjs → chunk-3F2ZZHGC.cjs} +36 -36
  27. package/dist/{chunk-VU2MESEX.cjs.map → chunk-3F2ZZHGC.cjs.map} +1 -1
  28. package/dist/{chunk-UJHQ4DA4.cjs → chunk-4GT4JLKS.cjs} +6 -6
  29. package/dist/{chunk-UJHQ4DA4.cjs.map → chunk-4GT4JLKS.cjs.map} +1 -1
  30. package/dist/{chunk-6OK7ESTL.cjs → chunk-63FEMB6U.cjs} +20 -8
  31. package/dist/chunk-63FEMB6U.cjs.map +1 -0
  32. package/dist/{chunk-MTN6HOY3.cjs → chunk-7KUMSKUX.cjs} +50 -50
  33. package/dist/{chunk-MTN6HOY3.cjs.map → chunk-7KUMSKUX.cjs.map} +1 -1
  34. package/dist/{chunk-K4763GD5.cjs → chunk-AIKPZJNI.cjs} +42 -8
  35. package/dist/chunk-AIKPZJNI.cjs.map +1 -0
  36. package/dist/{chunk-WQ2KG4LS.cjs → chunk-BCU65RJM.cjs} +3 -3
  37. package/dist/{chunk-WQ2KG4LS.cjs.map → chunk-BCU65RJM.cjs.map} +1 -1
  38. package/dist/{chunk-BX3WRCXV.cjs → chunk-C3LSYGSB.cjs} +4 -4
  39. package/dist/{chunk-BX3WRCXV.cjs.map → chunk-C3LSYGSB.cjs.map} +1 -1
  40. package/dist/{chunk-7UPEFZCV.cjs → chunk-C6EMTQHQ.cjs} +12 -12
  41. package/dist/{chunk-7UPEFZCV.cjs.map → chunk-C6EMTQHQ.cjs.map} +1 -1
  42. package/dist/{chunk-KCTQM3WO.cjs → chunk-DMPNQG4I.cjs} +28 -28
  43. package/dist/{chunk-KCTQM3WO.cjs.map → chunk-DMPNQG4I.cjs.map} +1 -1
  44. package/dist/{chunk-TD5V5BZ3.cjs → chunk-DN6VM5M5.cjs} +6 -6
  45. package/dist/{chunk-TD5V5BZ3.cjs.map → chunk-DN6VM5M5.cjs.map} +1 -1
  46. package/dist/{chunk-ZC7X4ZIX.cjs → chunk-ENKO65VY.cjs} +15 -15
  47. package/dist/{chunk-ZC7X4ZIX.cjs.map → chunk-ENKO65VY.cjs.map} +1 -1
  48. package/dist/{chunk-ZPBTXRMG.cjs → chunk-EOZWMKEJ.cjs} +4 -4
  49. package/dist/{chunk-ZPBTXRMG.cjs.map → chunk-EOZWMKEJ.cjs.map} +1 -1
  50. package/dist/{chunk-U4YOVI5D.cjs → chunk-FDIZWCYF.cjs} +6 -6
  51. package/dist/{chunk-U4YOVI5D.cjs.map → chunk-FDIZWCYF.cjs.map} +1 -1
  52. package/dist/{chunk-WOVNXJK5.cjs → chunk-GHGMOVQL.cjs} +3 -3
  53. package/dist/{chunk-WOVNXJK5.cjs.map → chunk-GHGMOVQL.cjs.map} +1 -1
  54. package/dist/{chunk-UD3LPATQ.cjs → chunk-HKKNHHBB.cjs} +6 -6
  55. package/dist/{chunk-UD3LPATQ.cjs.map → chunk-HKKNHHBB.cjs.map} +1 -1
  56. package/dist/{chunk-7G64NNCC.cjs → chunk-J6OMDBRT.cjs} +71 -70
  57. package/dist/chunk-J6OMDBRT.cjs.map +1 -0
  58. package/dist/{chunk-XTWHFHEK.cjs → chunk-JL4AL3ZJ.cjs} +4 -4
  59. package/dist/{chunk-XTWHFHEK.cjs.map → chunk-JL4AL3ZJ.cjs.map} +1 -1
  60. package/dist/{chunk-6P4U63HO.cjs → chunk-KAKEFIDS.cjs} +13 -13
  61. package/dist/{chunk-6P4U63HO.cjs.map → chunk-KAKEFIDS.cjs.map} +1 -1
  62. package/dist/{chunk-ZC6EPBVL.cjs → chunk-KHTM7M6E.cjs} +4 -4
  63. package/dist/{chunk-ZC6EPBVL.cjs.map → chunk-KHTM7M6E.cjs.map} +1 -1
  64. package/dist/{chunk-EG3DPKXM.cjs → chunk-L3MYUPSH.cjs} +5 -5
  65. package/dist/{chunk-EG3DPKXM.cjs.map → chunk-L3MYUPSH.cjs.map} +1 -1
  66. package/dist/{chunk-G3MRW4WB.cjs → chunk-LK4TQBV6.cjs} +3 -3
  67. package/dist/{chunk-G3MRW4WB.cjs.map → chunk-LK4TQBV6.cjs.map} +1 -1
  68. package/dist/{chunk-AHUEBRLX.cjs → chunk-LYDSETR7.cjs} +4 -4
  69. package/dist/{chunk-AHUEBRLX.cjs.map → chunk-LYDSETR7.cjs.map} +1 -1
  70. package/dist/{chunk-CYWOL2LS.cjs → chunk-MSFWSDRS.cjs} +3 -3
  71. package/dist/{chunk-CYWOL2LS.cjs.map → chunk-MSFWSDRS.cjs.map} +1 -1
  72. package/dist/{chunk-TU46WKTN.cjs → chunk-OIYKKUAN.cjs} +3 -3
  73. package/dist/{chunk-TU46WKTN.cjs.map → chunk-OIYKKUAN.cjs.map} +1 -1
  74. package/dist/{chunk-ZVQMCGUK.cjs → chunk-OQGESEWK.cjs} +26 -26
  75. package/dist/{chunk-ZVQMCGUK.cjs.map → chunk-OQGESEWK.cjs.map} +1 -1
  76. package/dist/{chunk-73KNWWBW.cjs → chunk-P4KNRU7Y.cjs} +48 -48
  77. package/dist/{chunk-73KNWWBW.cjs.map → chunk-P4KNRU7Y.cjs.map} +1 -1
  78. package/dist/{chunk-HIG4DR7Z.cjs → chunk-P6BN2XBX.cjs} +25 -15
  79. package/dist/chunk-P6BN2XBX.cjs.map +1 -0
  80. package/dist/{chunk-2EWDPIGO.cjs → chunk-Q5UQF2UZ.cjs} +4 -4
  81. package/dist/{chunk-2EWDPIGO.cjs.map → chunk-Q5UQF2UZ.cjs.map} +1 -1
  82. package/dist/{chunk-UWJ63GLD.cjs → chunk-QWRMC7H6.cjs} +7 -7
  83. package/dist/{chunk-UWJ63GLD.cjs.map → chunk-QWRMC7H6.cjs.map} +1 -1
  84. package/dist/{chunk-V27WLYTG.cjs → chunk-UEQNTXWV.cjs} +3 -3
  85. package/dist/{chunk-V27WLYTG.cjs.map → chunk-UEQNTXWV.cjs.map} +1 -1
  86. package/dist/{chunk-PIWXX2M4.cjs → chunk-UOE6VC36.cjs} +11 -11
  87. package/dist/{chunk-PIWXX2M4.cjs.map → chunk-UOE6VC36.cjs.map} +1 -1
  88. package/dist/{chunk-DYIZ7W4P.cjs → chunk-VBSEYTRN.cjs} +3 -3
  89. package/dist/{chunk-DYIZ7W4P.cjs.map → chunk-VBSEYTRN.cjs.map} +1 -1
  90. package/dist/{chunk-LLVE5TST.cjs → chunk-VJRO6J37.cjs} +3 -3
  91. package/dist/{chunk-LLVE5TST.cjs.map → chunk-VJRO6J37.cjs.map} +1 -1
  92. package/dist/{chunk-CX4VR3ZT.cjs → chunk-W3ZYBEFE.cjs} +64 -64
  93. package/dist/{chunk-CX4VR3ZT.cjs.map → chunk-W3ZYBEFE.cjs.map} +1 -1
  94. package/dist/{chunk-GF6AYAMI.cjs → chunk-XBZP5J24.cjs} +7 -7
  95. package/dist/{chunk-GF6AYAMI.cjs.map → chunk-XBZP5J24.cjs.map} +1 -1
  96. package/dist/{chunk-JARBYN6Z.cjs → chunk-Y3OI7ZP7.cjs} +3 -3
  97. package/dist/{chunk-JARBYN6Z.cjs.map → chunk-Y3OI7ZP7.cjs.map} +1 -1
  98. package/dist/{chunk-35UL4GE7.cjs → chunk-ZBE5O7S3.cjs} +4 -4
  99. package/dist/{chunk-35UL4GE7.cjs.map → chunk-ZBE5O7S3.cjs.map} +1 -1
  100. package/dist/{chunk-GS2C25ID.cjs → chunk-ZXXNVW34.cjs} +10 -10
  101. package/dist/{chunk-GS2C25ID.cjs.map → chunk-ZXXNVW34.cjs.map} +1 -1
  102. package/dist/connect/docx.cjs +18 -18
  103. package/dist/connect/index.cjs +1076 -1074
  104. package/dist/connect/index.cjs.map +1 -1
  105. package/dist/connect/viewer.cjs +33 -33
  106. package/dist/connection/auth/useLoginActions.js +2 -1
  107. package/dist/connection/auth/useLoginActions.js.map +2 -2
  108. package/dist/connection/calendar/arbi-call.d.ts +6 -0
  109. package/dist/connection/calendar/arbi-call.js +14 -4
  110. package/dist/connection/calendar/arbi-call.js.map +2 -2
  111. package/dist/connection/calendar/useConnectedCalendarCalls.js +2 -2
  112. package/dist/connection/calendar/useConnectedCalendarCalls.js.map +2 -2
  113. package/dist/connection/messenger/ConnectedChatThread.d.ts +1 -1
  114. package/dist/connection/messenger/ConnectedChatThread.js +12 -10
  115. package/dist/connection/messenger/ConnectedChatThread.js.map +2 -2
  116. package/dist/connection/panels/useSessionPanelMode.d.ts +2 -3
  117. package/dist/connection/panels/useSessionPanelMode.js +20 -4
  118. package/dist/connection/panels/useSessionPanelMode.js.map +2 -2
  119. package/dist/dashboards/index.cjs +1 -1
  120. package/dist/embed/index.cjs +38 -38
  121. package/dist/files/index.cjs +228 -228
  122. package/dist/index.cjs +1746 -1746
  123. package/dist/pages/index.cjs +24 -24
  124. package/dist/settings/index.cjs +137 -137
  125. package/dist/shell/PanelPortal.js +41 -7
  126. package/dist/shell/PanelPortal.js.map +3 -3
  127. package/dist/shell/index.cjs +84 -84
  128. package/dist/studio/index.cjs +28 -28
  129. package/dist/workflow-canvas/index.cjs +55 -55
  130. package/node_modules/@arbidocs/coedit/package.json +1 -1
  131. package/package.json +5 -5
  132. package/dist/ai-QFY4LYQZ.cjs.map +0 -1
  133. package/dist/chunk-6OK7ESTL.cjs.map +0 -1
  134. package/dist/chunk-7G64NNCC.cjs.map +0 -1
  135. package/dist/chunk-HIG4DR7Z.cjs.map +0 -1
  136. package/dist/chunk-K4763GD5.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useCallback, useEffect, useRef, useState } from "react";
3
+ import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
4
4
  import { createPortal } from "react-dom";
5
5
  import { DEFAULT_OVERLAY_ZONE_ID } from "./Shell.js";
6
6
  import { usePanelHostSupport } from "./panel-host.js";
@@ -16,6 +16,31 @@ function OverlaySheet({
16
16
  children
17
17
  }) {
18
18
  const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX);
19
+ const [dockInset, setDockInset] = useState(0);
20
+ useEffect(() => {
21
+ if (!scoped) return;
22
+ const dock = document.getElementById("dock-zone");
23
+ const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement;
24
+ if (!dock || !region) return;
25
+ const measure = () => {
26
+ const rect = dock.getBoundingClientRect();
27
+ setDockInset(
28
+ dock.childElementCount && rect.width > 0 && window.innerWidth > 640 ? Math.max(0, region.getBoundingClientRect().right - rect.left) : 0
29
+ );
30
+ };
31
+ measure();
32
+ const sizes = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(measure);
33
+ sizes?.observe(dock);
34
+ sizes?.observe(region);
35
+ window.addEventListener("resize", measure);
36
+ const children2 = new MutationObserver(measure);
37
+ children2.observe(dock, { childList: true, attributes: true, attributeFilter: ["style"] });
38
+ return () => {
39
+ sizes?.disconnect();
40
+ children2.disconnect();
41
+ window.removeEventListener("resize", measure);
42
+ };
43
+ }, [scoped]);
19
44
  const [isResizing, setIsResizing] = useState(false);
20
45
  const [dragWidth, setDragWidth] = useState(null);
21
46
  const dragWidthRef = useRef(null);
@@ -31,7 +56,10 @@ function OverlaySheet({
31
56
  if (!isResizing) return;
32
57
  const handleMouseMove = (e) => {
33
58
  const max = window.innerWidth * 0.92;
34
- const next = Math.min(Math.max(window.innerWidth - e.clientX, OVERLAY_MIN_PX), max);
59
+ const next = Math.min(
60
+ Math.max(window.innerWidth - dockInset - e.clientX, OVERLAY_MIN_PX),
61
+ max
62
+ );
35
63
  dragWidthRef.current = next;
36
64
  setDragWidth(next);
37
65
  };
@@ -51,7 +79,7 @@ function OverlaySheet({
51
79
  document.body.style.cursor = "";
52
80
  document.body.style.userSelect = "";
53
81
  };
54
- }, [isResizing]);
82
+ }, [isResizing, dockInset]);
55
83
  return (
56
84
  // Scoped: absolute within the layout's overlay zone (below the topbar).
57
85
  // Unscoped fallback: fixed over the whole viewport, as before.
@@ -59,6 +87,7 @@ function OverlaySheet({
59
87
  "div",
60
88
  {
61
89
  className: scoped ? "absolute inset-0 z-40" : "fixed inset-0 z-50",
90
+ style: dockInset ? { right: dockInset } : void 0,
62
91
  "data-testid": `${panelId}-overlay`,
63
92
  children: [
64
93
  /* @__PURE__ */ jsx(
@@ -76,7 +105,7 @@ function OverlaySheet({
76
105
  /* @__PURE__ */ jsxs(
77
106
  "div",
78
107
  {
79
- style: { width },
108
+ style: { width, maxWidth: "100%" },
80
109
  onAnimationEnd: () => !isExiting && setHasEntered(true),
81
110
  className: `absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl duration-200 ${isExiting ? "animate-out slide-out-to-right fill-mode-forwards" : (
82
111
  // Suppress the slide transform once entered so it doesn't replay.
@@ -120,6 +149,11 @@ function PanelPortal({
120
149
  children
121
150
  }) {
122
151
  const { windows: windowManager } = usePanelHostSupport();
152
+ const [portalTarget, setPortalTarget] = useState(null);
153
+ useLayoutEffect(() => {
154
+ const id = mode === "overlay" ? DEFAULT_OVERLAY_ZONE_ID : mode === "main" ? "main-zone" : "dock-zone";
155
+ setPortalTarget(document.getElementById(id));
156
+ }, [mode, isOpen]);
123
157
  const [popupRoot, setPopupRoot] = useState(null);
124
158
  const popupWindowIdRef = useRef(null);
125
159
  useEffect(() => {
@@ -176,7 +210,7 @@ function PanelPortal({
176
210
  );
177
211
  }
178
212
  if (mode === "overlay") {
179
- const overlayZone = document.getElementById(DEFAULT_OVERLAY_ZONE_ID);
213
+ const overlayZone = portalTarget;
180
214
  return createPortal(
181
215
  /* @__PURE__ */ jsx(
182
216
  OverlaySheet,
@@ -193,12 +227,12 @@ function PanelPortal({
193
227
  );
194
228
  }
195
229
  if (mode === "main") {
196
- const mainZone = document.getElementById("main-zone");
230
+ const mainZone = portalTarget;
197
231
  if (mainZone) {
198
232
  return createPortal(children, mainZone);
199
233
  }
200
234
  }
201
- const dockZone = document.getElementById("dock-zone");
235
+ const dockZone = portalTarget;
202
236
  if (dockZone) {
203
237
  return createPortal(children, dockZone);
204
238
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/shell/PanelPortal.tsx"],
4
- "sourcesContent": ["/**\n * PanelPortal Component\n *\n * Thin portal layer that renders children into the right target based on panel mode:\n * - docked: portal to #dock-zone element\n * - overlay: portal to <body> as a slide-out sheet over a backdrop\n * - popout: portal to a separate browser window\n * - main: portal to #main-zone element\n *\n * Manages popup window lifecycle for popout mode.\n * Content-agnostic \u2014 just handles where things render.\n */\n\nimport { useCallback, useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\nimport { DEFAULT_OVERLAY_ZONE_ID } from './Shell'\nimport { usePanelHostSupport } from './panel-host'\nimport { PortalContainerProvider } from '@arbidocs/react/ui'\nimport type { FloatingPanelMode as PanelMode } from '../settings/FloatingPanel'\n\n// Overlay sheet sizing \u2014 defaults match the docked width (DEFAULT_DOCK_PX) so a\n// panel is the same size whether pinned or floating, and stays draggable here.\nconst OVERLAY_DEFAULT_PX = 544\nconst OVERLAY_MIN_PX = 360\n\nexport interface PanelPortalProps {\n panelId: string\n mode: PanelMode\n isOpen: boolean\n /** True while the overlay is animating out before unmounting. */\n isExiting?: boolean\n /** Called when popup window is closed externally (user closes the window) */\n onPopupClosed?: () => void\n /** Dismisses the panel \u2014 used by the overlay backdrop. */\n onClose?: () => void\n /** Window title for popout mode */\n popoutTitle?: string\n /** Initial overlay width in px (defaults to OVERLAY_DEFAULT_PX). */\n defaultWidth?: number\n children: React.ReactNode\n}\n\n/**\n * Overlay sheet \u2014 a slide-out panel over the still-visible page, resizable by\n * dragging its left edge. Slides in on mount and out (via isExiting) before\n * unmounting, mirroring the left sidebar's animation.\n */\nfunction OverlaySheet({\n panelId,\n isExiting,\n onClose,\n defaultWidth,\n scoped,\n children,\n}: {\n panelId: string\n isExiting?: boolean\n onClose?: () => void\n defaultWidth?: number\n /** Rendered inside the layout's overlay zone (below the topbar) rather than\n * over the whole viewport. */\n scoped?: boolean\n children: React.ReactNode\n}) {\n const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX)\n const [isResizing, setIsResizing] = useState(false)\n // Live cursor position while dragging. The panel keeps its committed `width`\n // during the drag \u2014 only this thin preview line moves \u2014 so the heavy panel\n // content never reflows mid-drag (matching DockZone's split-screen handle).\n // The width is committed once on mouse-up.\n const [dragWidth, setDragWidth] = useState<number | null>(null)\n const dragWidthRef = useRef<number | null>(null)\n // Once the slide-in has played we drop the entry class, so later re-renders\n // don't restart the animation.\n const [hasEntered, setHasEntered] = useState(false)\n\n const handleResizeStart = useCallback((e: React.MouseEvent) => {\n e.preventDefault()\n setHasEntered(true)\n setIsResizing(true)\n setDragWidth(null)\n dragWidthRef.current = null\n }, [])\n\n useEffect(() => {\n if (!isResizing) return\n const handleMouseMove = (e: MouseEvent) => {\n // Anchored to the right edge \u2014 width grows as the cursor moves left.\n const max = window.innerWidth * 0.92\n const next = Math.min(Math.max(window.innerWidth - e.clientX, OVERLAY_MIN_PX), max)\n dragWidthRef.current = next\n setDragWidth(next)\n }\n const handleMouseUp = () => {\n if (dragWidthRef.current !== null) setWidth(dragWidthRef.current)\n setIsResizing(false)\n setDragWidth(null)\n dragWidthRef.current = null\n }\n document.addEventListener('mousemove', handleMouseMove)\n document.addEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = 'col-resize'\n document.body.style.userSelect = 'none'\n return () => {\n document.removeEventListener('mousemove', handleMouseMove)\n document.removeEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = ''\n document.body.style.userSelect = ''\n }\n }, [isResizing])\n\n return (\n // Scoped: absolute within the layout's overlay zone (below the topbar).\n // Unscoped fallback: fixed over the whole viewport, as before.\n <div\n className={scoped ? 'absolute inset-0 z-40' : 'fixed inset-0 z-50'}\n data-testid={`${panelId}-overlay`}\n >\n {/* In dark mode a 40% black veil crushes the light page text behind the sheet to\n mid-grey, so the veil is lighter there and the page stays readable underneath. */}\n <div\n className={`absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${\n // fill-mode-forwards holds the exit end-state \u2014 without it the\n // element snaps back fully visible for the frames between the\n // animation finishing and React unmounting it (a flicker).\n isExiting ? 'animate-out fade-out fill-mode-forwards' : 'animate-in fade-in'\n }`}\n onClick={onClose}\n aria-hidden=\"true\"\n data-testid={`${panelId}-overlay-backdrop`}\n />\n <div\n style={{ width }}\n onAnimationEnd={() => !isExiting && setHasEntered(true)}\n className={`absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl duration-200 ${\n isExiting\n ? 'animate-out slide-out-to-right fill-mode-forwards'\n : // Suppress the slide transform once entered so it doesn't replay.\n hasEntered\n ? ''\n : 'animate-in slide-in-from-right'\n }`}\n >\n {/* Drag handle on the left edge to resize the sheet. */}\n <div\n className=\"absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40\"\n onMouseDown={handleResizeStart}\n data-testid={`${panelId}-overlay-resize-handle`}\n />\n {children}\n </div>\n\n {/* Preview line \u2014 tracks the cursor during the drag; the panel resizes\n to this position only on release. */}\n {isResizing && dragWidth !== null && (\n <div\n className=\"absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none\"\n style={{ right: dragWidth }}\n />\n )}\n {/* Transparent capture layer so the drag isn't interrupted by elements\n (iframes, the grid) swallowing pointer events. */}\n {isResizing && <div className=\"absolute inset-0 z-[55] cursor-col-resize\" />}\n </div>\n )\n}\n\nexport function PanelPortal({\n panelId,\n mode,\n isOpen,\n isExiting,\n onPopupClosed,\n onClose,\n popoutTitle,\n defaultWidth,\n children,\n}: PanelPortalProps) {\n const { windows: windowManager } = usePanelHostSupport()\n const [popupRoot, setPopupRoot] = useState<HTMLElement | null>(null)\n const popupWindowIdRef = useRef<string | null>(null)\n\n // Open popup window when switching to popout mode\n useEffect(() => {\n if (!isOpen || mode !== 'popout') {\n // Close popup if we're leaving popout mode (intentional mode switch, not user closing)\n if (popupWindowIdRef.current) {\n // Clear the onClose callback before closing so it doesn't trigger onPopupClosed\n windowManager.clearOnClose(popupWindowIdRef.current)\n windowManager.closeWindow(popupWindowIdRef.current)\n popupWindowIdRef.current = null\n setPopupRoot(null)\n }\n return\n }\n\n // Already have a popup open\n if (popupWindowIdRef.current) return\n\n const windowId = windowManager.createPopupWindow(\n `panel-${panelId}`,\n () => {\n popupWindowIdRef.current = null\n setPopupRoot(null)\n onPopupClosed?.()\n },\n popoutTitle || panelId\n )\n\n if (windowId) {\n const rootElement = windowManager.getRootElement(windowId)\n if (rootElement) {\n popupWindowIdRef.current = windowId\n setPopupRoot(rootElement)\n windowManager.getWindow(windowId)?.focus()\n }\n }\n }, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager])\n\n // Close the window on unmount, a moment later: a remount straight after (React's StrictMode\n // replays mount effects) keeps it instead. Closing it and opening another would need a second\n // click's permission to open a window, and the browser would block the new one as a pop-up.\n const pendingClose = useRef<ReturnType<typeof setTimeout> | null>(null)\n useEffect(() => {\n if (pendingClose.current) {\n clearTimeout(pendingClose.current)\n pendingClose.current = null\n }\n return () => {\n const windowId = popupWindowIdRef.current\n if (!windowId) return\n popupWindowIdRef.current = null\n pendingClose.current = setTimeout(() => {\n pendingClose.current = null\n // Taken up again by the remount (the open effect reuses a window that is still open).\n if (popupWindowIdRef.current === windowId) return\n windowManager.closeWindow(windowId)\n }, 0)\n }\n }, [windowManager])\n\n if (!isOpen && !isExiting) return null\n\n // Popout: render into popup window. Its dialogs and menus open there too, not in the window\n // behind it (where the Sign dialog used to open, out of sight).\n if (mode === 'popout' && popupRoot) {\n return createPortal(\n <PortalContainerProvider container={popupRoot}>{children}</PortalContainerProvider>,\n popupRoot\n )\n }\n\n // Overlay: a slide-out sheet over the still-visible page. Rendered into the\n // layout's #app-overlay-zone \u2014 the content region BELOW the app topbar \u2014 so\n // the bar stays visible and interactive above every overlay. Falls back to\n // <body> (viewport-covering) when no zone is mounted (e.g. embedded shells).\n if (mode === 'overlay') {\n const overlayZone = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)\n return createPortal(\n <OverlaySheet\n panelId={panelId}\n isExiting={isExiting}\n onClose={onClose}\n defaultWidth={defaultWidth}\n scoped={overlayZone !== null}\n >\n {children}\n </OverlaySheet>,\n overlayZone ?? document.body\n )\n }\n\n // Main: render into main content zone\n if (mode === 'main') {\n const mainZone = document.getElementById('main-zone')\n if (mainZone) {\n return createPortal(children, mainZone)\n }\n }\n\n // Docked: render into dock zone\n const dockZone = document.getElementById('dock-zone')\n if (dockZone) {\n return createPortal(children, dockZone)\n }\n\n // No target zone mounted yet \u2014 render nothing\n return null\n}\n"],
5
- "mappings": ";AAwHM,cAWA,YAXA;AA3GN,SAAS,aAAa,WAAW,QAAQ,gBAAgB;AACzD,SAAS,oBAAoB;AAC7B,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AAKxC,MA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AAQ,gBAAgB;AAAA,UAEvB;AAAA;AAAA,MACH;AAAA,MACA,eAAe,SAAS;AAAA,IAC1B;AAAA,EACF;AAGA,MAAI,SAAS,QAAQ;AACnB,UAAM,WAAW,SAAS,eAAe,WAAW;AACpD,QAAI,UAAU;AACZ,aAAO,aAAa,UAAU,QAAQ;AAAA,IACxC;AAAA,EACF;AAGA,QAAM,WAAW,SAAS,eAAe,WAAW;AACpD,MAAI,UAAU;AACZ,WAAO,aAAa,UAAU,QAAQ;AAAA,EACxC;AAGA,SAAO;AACT;",
6
- "names": []
4
+ "sourcesContent": ["/**\n * PanelPortal Component\n *\n * Thin portal layer that renders children into the right target based on panel mode:\n * - docked: portal to #dock-zone element\n * - overlay: portal to <body> as a slide-out sheet over a backdrop\n * - popout: portal to a separate browser window\n * - main: portal to #main-zone element\n *\n * Manages popup window lifecycle for popout mode.\n * Content-agnostic \u2014 just handles where things render.\n */\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\nimport { DEFAULT_OVERLAY_ZONE_ID } from './Shell'\nimport { usePanelHostSupport } from './panel-host'\nimport { PortalContainerProvider } from '@arbidocs/react/ui'\nimport type { FloatingPanelMode as PanelMode } from '../settings/FloatingPanel'\n\n// Overlay sheet sizing \u2014 defaults match the docked width (DEFAULT_DOCK_PX) so a\n// panel is the same size whether pinned or floating, and stays draggable here.\nconst OVERLAY_DEFAULT_PX = 544\nconst OVERLAY_MIN_PX = 360\n\nexport interface PanelPortalProps {\n panelId: string\n mode: PanelMode\n isOpen: boolean\n /** True while the overlay is animating out before unmounting. */\n isExiting?: boolean\n /** Called when popup window is closed externally (user closes the window) */\n onPopupClosed?: () => void\n /** Dismisses the panel \u2014 used by the overlay backdrop. */\n onClose?: () => void\n /** Window title for popout mode */\n popoutTitle?: string\n /** Initial overlay width in px (defaults to OVERLAY_DEFAULT_PX). */\n defaultWidth?: number\n children: React.ReactNode\n}\n\n/**\n * Overlay sheet \u2014 a slide-out panel over the still-visible page, resizable by\n * dragging its left edge. Slides in on mount and out (via isExiting) before\n * unmounting, mirroring the left sidebar's animation.\n */\nfunction OverlaySheet({\n panelId,\n isExiting,\n onClose,\n defaultWidth,\n scoped,\n children,\n}: {\n panelId: string\n isExiting?: boolean\n onClose?: () => void\n defaultWidth?: number\n /** Rendered inside the layout's overlay zone (below the topbar) rather than\n * over the whole viewport. */\n scoped?: boolean\n children: React.ReactNode\n}) {\n const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX)\n const [dockInset, setDockInset] = useState(0)\n useEffect(() => {\n if (!scoped) return\n const dock = document.getElementById('dock-zone')\n const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement\n if (!dock || !region) return\n // A host can retain a working conversation beside a temporary overlay. Keep both the\n // sheet and its backdrop within the main area so the conversation remains interactive.\n const measure = () => {\n const rect = dock.getBoundingClientRect()\n setDockInset(\n dock.childElementCount && rect.width > 0 && window.innerWidth > 640\n ? Math.max(0, region.getBoundingClientRect().right - rect.left)\n : 0\n )\n }\n measure()\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure)\n sizes?.observe(dock)\n sizes?.observe(region)\n window.addEventListener('resize', measure)\n const children = new MutationObserver(measure)\n children.observe(dock, { childList: true, attributes: true, attributeFilter: ['style'] })\n return () => {\n sizes?.disconnect()\n children.disconnect()\n window.removeEventListener('resize', measure)\n }\n }, [scoped])\n const [isResizing, setIsResizing] = useState(false)\n // Live cursor position while dragging. The panel keeps its committed `width`\n // during the drag \u2014 only this thin preview line moves \u2014 so the heavy panel\n // content never reflows mid-drag (matching DockZone's split-screen handle).\n // The width is committed once on mouse-up.\n const [dragWidth, setDragWidth] = useState<number | null>(null)\n const dragWidthRef = useRef<number | null>(null)\n // Once the slide-in has played we drop the entry class, so later re-renders\n // don't restart the animation.\n const [hasEntered, setHasEntered] = useState(false)\n\n const handleResizeStart = useCallback((e: React.MouseEvent) => {\n e.preventDefault()\n setHasEntered(true)\n setIsResizing(true)\n setDragWidth(null)\n dragWidthRef.current = null\n }, [])\n\n useEffect(() => {\n if (!isResizing) return\n const handleMouseMove = (e: MouseEvent) => {\n // Anchored to the right edge \u2014 width grows as the cursor moves left.\n const max = window.innerWidth * 0.92\n const next = Math.min(\n Math.max(window.innerWidth - dockInset - e.clientX, OVERLAY_MIN_PX),\n max\n )\n dragWidthRef.current = next\n setDragWidth(next)\n }\n const handleMouseUp = () => {\n if (dragWidthRef.current !== null) setWidth(dragWidthRef.current)\n setIsResizing(false)\n setDragWidth(null)\n dragWidthRef.current = null\n }\n document.addEventListener('mousemove', handleMouseMove)\n document.addEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = 'col-resize'\n document.body.style.userSelect = 'none'\n return () => {\n document.removeEventListener('mousemove', handleMouseMove)\n document.removeEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = ''\n document.body.style.userSelect = ''\n }\n }, [isResizing, dockInset])\n\n return (\n // Scoped: absolute within the layout's overlay zone (below the topbar).\n // Unscoped fallback: fixed over the whole viewport, as before.\n <div\n className={scoped ? 'absolute inset-0 z-40' : 'fixed inset-0 z-50'}\n style={dockInset ? { right: dockInset } : undefined}\n data-testid={`${panelId}-overlay`}\n >\n {/* In dark mode a 40% black veil crushes the light page text behind the sheet to\n mid-grey, so the veil is lighter there and the page stays readable underneath. */}\n <div\n className={`absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${\n // fill-mode-forwards holds the exit end-state \u2014 without it the\n // element snaps back fully visible for the frames between the\n // animation finishing and React unmounting it (a flicker).\n isExiting ? 'animate-out fade-out fill-mode-forwards' : 'animate-in fade-in'\n }`}\n onClick={onClose}\n aria-hidden=\"true\"\n data-testid={`${panelId}-overlay-backdrop`}\n />\n <div\n style={{ width, maxWidth: '100%' }}\n onAnimationEnd={() => !isExiting && setHasEntered(true)}\n className={`absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl duration-200 ${\n isExiting\n ? 'animate-out slide-out-to-right fill-mode-forwards'\n : // Suppress the slide transform once entered so it doesn't replay.\n hasEntered\n ? ''\n : 'animate-in slide-in-from-right'\n }`}\n >\n {/* Drag handle on the left edge to resize the sheet. */}\n <div\n className=\"absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40\"\n onMouseDown={handleResizeStart}\n data-testid={`${panelId}-overlay-resize-handle`}\n />\n {children}\n </div>\n\n {/* Preview line \u2014 tracks the cursor during the drag; the panel resizes\n to this position only on release. */}\n {isResizing && dragWidth !== null && (\n <div\n className=\"absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none\"\n style={{ right: dragWidth }}\n />\n )}\n {/* Transparent capture layer so the drag isn't interrupted by elements\n (iframes, the grid) swallowing pointer events. */}\n {isResizing && <div className=\"absolute inset-0 z-[55] cursor-col-resize\" />}\n </div>\n )\n}\n\nexport function PanelPortal({\n panelId,\n mode,\n isOpen,\n isExiting,\n onPopupClosed,\n onClose,\n popoutTitle,\n defaultWidth,\n children,\n}: PanelPortalProps) {\n const { windows: windowManager } = usePanelHostSupport()\n // A shell can mount its zones in the same commit as an already-open panel.\n // Resolve again after that commit instead of relying on a later session update.\n const [portalTarget, setPortalTarget] = useState<HTMLElement | null>(null)\n useLayoutEffect(() => {\n const id =\n mode === 'overlay' ? DEFAULT_OVERLAY_ZONE_ID : mode === 'main' ? 'main-zone' : 'dock-zone'\n setPortalTarget(document.getElementById(id))\n }, [mode, isOpen])\n const [popupRoot, setPopupRoot] = useState<HTMLElement | null>(null)\n const popupWindowIdRef = useRef<string | null>(null)\n\n // Open popup window when switching to popout mode\n useEffect(() => {\n if (!isOpen || mode !== 'popout') {\n // Close popup if we're leaving popout mode (intentional mode switch, not user closing)\n if (popupWindowIdRef.current) {\n // Clear the onClose callback before closing so it doesn't trigger onPopupClosed\n windowManager.clearOnClose(popupWindowIdRef.current)\n windowManager.closeWindow(popupWindowIdRef.current)\n popupWindowIdRef.current = null\n setPopupRoot(null)\n }\n return\n }\n\n // Already have a popup open\n if (popupWindowIdRef.current) return\n\n const windowId = windowManager.createPopupWindow(\n `panel-${panelId}`,\n () => {\n popupWindowIdRef.current = null\n setPopupRoot(null)\n onPopupClosed?.()\n },\n popoutTitle || panelId\n )\n\n if (windowId) {\n const rootElement = windowManager.getRootElement(windowId)\n if (rootElement) {\n popupWindowIdRef.current = windowId\n setPopupRoot(rootElement)\n windowManager.getWindow(windowId)?.focus()\n }\n }\n }, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager])\n\n // Close the window on unmount, a moment later: a remount straight after (React's StrictMode\n // replays mount effects) keeps it instead. Closing it and opening another would need a second\n // click's permission to open a window, and the browser would block the new one as a pop-up.\n const pendingClose = useRef<ReturnType<typeof setTimeout> | null>(null)\n useEffect(() => {\n if (pendingClose.current) {\n clearTimeout(pendingClose.current)\n pendingClose.current = null\n }\n return () => {\n const windowId = popupWindowIdRef.current\n if (!windowId) return\n popupWindowIdRef.current = null\n pendingClose.current = setTimeout(() => {\n pendingClose.current = null\n // Taken up again by the remount (the open effect reuses a window that is still open).\n if (popupWindowIdRef.current === windowId) return\n windowManager.closeWindow(windowId)\n }, 0)\n }\n }, [windowManager])\n\n if (!isOpen && !isExiting) return null\n\n // Popout: render into popup window. Its dialogs and menus open there too, not in the window\n // behind it (where the Sign dialog used to open, out of sight).\n if (mode === 'popout' && popupRoot) {\n return createPortal(\n <PortalContainerProvider container={popupRoot}>{children}</PortalContainerProvider>,\n popupRoot\n )\n }\n\n // Overlay: a slide-out sheet over the still-visible page. Rendered into the\n // layout's #app-overlay-zone \u2014 the content region BELOW the app topbar \u2014 so\n // the bar stays visible and interactive above every overlay. Falls back to\n // <body> (viewport-covering) when no zone is mounted (e.g. embedded shells).\n if (mode === 'overlay') {\n const overlayZone = portalTarget\n return createPortal(\n <OverlaySheet\n panelId={panelId}\n isExiting={isExiting}\n onClose={onClose}\n defaultWidth={defaultWidth}\n scoped={overlayZone !== null}\n >\n {children}\n </OverlaySheet>,\n overlayZone ?? document.body\n )\n }\n\n // Main: render into main content zone\n if (mode === 'main') {\n const mainZone = portalTarget\n if (mainZone) {\n return createPortal(children, mainZone)\n }\n }\n\n // Docked: render into dock zone\n const dockZone = portalTarget\n if (dockZone) {\n return createPortal(children, dockZone)\n }\n\n // No target zone mounted yet \u2014 render nothing\n return null\n}\n"],
5
+ "mappings": ";AAyJM,cAWA,YAXA;AA5IN,SAAS,aAAa,WAAW,iBAAiB,QAAQ,gBAAgB;AAC1E,SAAS,oBAAoB;AAC7B,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AAKxC,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AAwBvB,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GASG;AACD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,gBAAgB,kBAAkB;AACrE,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,CAAC;AAC5C,YAAU,MAAM;AACd,QAAI,CAAC,OAAQ;AACb,UAAM,OAAO,SAAS,eAAe,WAAW;AAChD,UAAM,SAAS,SAAS,eAAe,uBAAuB,GAAG;AACjE,QAAI,CAAC,QAAQ,CAAC,OAAQ;AAGtB,UAAM,UAAU,MAAM;AACpB,YAAM,OAAO,KAAK,sBAAsB;AACxC;AAAA,QACE,KAAK,qBAAqB,KAAK,QAAQ,KAAK,OAAO,aAAa,MAC5D,KAAK,IAAI,GAAG,OAAO,sBAAsB,EAAE,QAAQ,KAAK,IAAI,IAC5D;AAAA,MACN;AAAA,IACF;AACA,YAAQ;AACR,UAAM,QAAQ,OAAO,mBAAmB,cAAc,OAAO,IAAI,eAAe,OAAO;AACvF,WAAO,QAAQ,IAAI;AACnB,WAAO,QAAQ,MAAM;AACrB,WAAO,iBAAiB,UAAU,OAAO;AACzC,UAAMA,Y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AAC;AAAA,IACN;AAAA,EACF,GAAG,CAAC,aAAa,CAAC;AAElB,MAAI,CAAC,UAAU,CAAC,UAAW,QAAO;AAIlC,MAAI,SAAS,YAAY,WAAW;AAClC,WAAO;AAAA,MACL,oBAAC,2BAAwB,WAAW,WAAY,UAAS;AAAA,MACzD;AAAA,IACF;AAAA,EACF;AAMA,MAAI,SAAS,WAAW;AACtB,UAAM,cAAc;AACpB,WAAO;AAAA,MACL;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,QAAQ,gBAAgB;AAAA,UAEvB;AAAA;AAAA,MACH;AAAA,MACA,eAAe,SAAS;AAAA,IAC1B;AAAA,EACF;AAGA,MAAI,SAAS,QAAQ;AACnB,UAAM,WAAW;AACjB,QAAI,UAAU;AACZ,aAAO,aAAa,UAAU,QAAQ;AAAA,IACxC;AAAA,EACF;AAGA,QAAM,WAAW;AACjB,MAAI,UAAU;AACZ,WAAO,aAAa,UAAU,QAAQ;AAAA,EACxC;AAGA,SAAO;AACT;",
6
+ "names": ["children"]
7
7
  }
@@ -3,25 +3,25 @@
3
3
 
4
4
  var chunkLIDXIX36_cjs = require('../chunk-LIDXIX36.cjs');
5
5
  require('../chunk-34HQO4ZQ.cjs');
6
- var chunkPIWXX2M4_cjs = require('../chunk-PIWXX2M4.cjs');
7
- var chunkK4763GD5_cjs = require('../chunk-K4763GD5.cjs');
6
+ var chunkCT3SLXB7_cjs = require('../chunk-CT3SLXB7.cjs');
7
+ var chunkUOE6VC36_cjs = require('../chunk-UOE6VC36.cjs');
8
+ var chunkAIKPZJNI_cjs = require('../chunk-AIKPZJNI.cjs');
8
9
  var chunk2RLA6QO2_cjs = require('../chunk-2RLA6QO2.cjs');
9
- var chunkLLVE5TST_cjs = require('../chunk-LLVE5TST.cjs');
10
- var chunkDYIZ7W4P_cjs = require('../chunk-DYIZ7W4P.cjs');
10
+ var chunkVJRO6J37_cjs = require('../chunk-VJRO6J37.cjs');
11
+ var chunkVBSEYTRN_cjs = require('../chunk-VBSEYTRN.cjs');
11
12
  var chunkWRTEKOQP_cjs = require('../chunk-WRTEKOQP.cjs');
12
- require('../chunk-AHDJXIUB.cjs');
13
- var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
14
- require('../chunk-YA6GXWC2.cjs');
15
- var chunkKKYNTWDU_cjs = require('../chunk-KKYNTWDU.cjs');
16
- require('../chunk-3YZKDCWY.cjs');
17
- var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
18
- var chunkCT3SLXB7_cjs = require('../chunk-CT3SLXB7.cjs');
19
13
  var chunkDEXUL3T6_cjs = require('../chunk-DEXUL3T6.cjs');
20
14
  var chunkAFQTQC7A_cjs = require('../chunk-AFQTQC7A.cjs');
21
15
  var chunkXJEXFEWG_cjs = require('../chunk-XJEXFEWG.cjs');
22
16
  var chunkYZSQ7F5K_cjs = require('../chunk-YZSQ7F5K.cjs');
23
17
  var chunkKQF7POTG_cjs = require('../chunk-KQF7POTG.cjs');
24
18
  var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
19
+ require('../chunk-AHDJXIUB.cjs');
20
+ var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
21
+ require('../chunk-YA6GXWC2.cjs');
22
+ var chunkKKYNTWDU_cjs = require('../chunk-KKYNTWDU.cjs');
23
+ require('../chunk-3YZKDCWY.cjs');
24
+ var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
25
25
  require('../chunk-PPCATBOY.cjs');
26
26
  require('../chunk-46LX6EQT.cjs');
27
27
  require('../chunk-K67VMSOX.cjs');
@@ -82,93 +82,101 @@ Object.defineProperty(exports, "useInstallPrompt", {
82
82
  enumerable: true,
83
83
  get: function () { return chunkLIDXIX36_cjs.useInstallPrompt; }
84
84
  });
85
+ Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
86
+ enumerable: true,
87
+ get: function () { return chunkCT3SLXB7_cjs.DEFAULT_DOCK_WIDTH; }
88
+ });
89
+ Object.defineProperty(exports, "Toaster", {
90
+ enumerable: true,
91
+ get: function () { return chunkCT3SLXB7_cjs.Toaster; }
92
+ });
85
93
  Object.defineProperty(exports, "ActionCluster", {
86
94
  enumerable: true,
87
- get: function () { return chunkPIWXX2M4_cjs.ActionCluster; }
95
+ get: function () { return chunkUOE6VC36_cjs.ActionCluster; }
88
96
  });
89
97
  Object.defineProperty(exports, "AskField", {
90
98
  enumerable: true,
91
- get: function () { return chunkPIWXX2M4_cjs.AskField; }
99
+ get: function () { return chunkUOE6VC36_cjs.AskField; }
92
100
  });
93
101
  Object.defineProperty(exports, "AskRow", {
94
102
  enumerable: true,
95
- get: function () { return chunkPIWXX2M4_cjs.AskRow; }
103
+ get: function () { return chunkUOE6VC36_cjs.AskRow; }
96
104
  });
97
105
  Object.defineProperty(exports, "AskTrigger", {
98
106
  enumerable: true,
99
- get: function () { return chunkPIWXX2M4_cjs.AskTrigger; }
107
+ get: function () { return chunkUOE6VC36_cjs.AskTrigger; }
100
108
  });
101
109
  Object.defineProperty(exports, "DEFAULT_ASK_FIELD_LABELS", {
102
110
  enumerable: true,
103
- get: function () { return chunkPIWXX2M4_cjs.DEFAULT_ASK_FIELD_LABELS; }
111
+ get: function () { return chunkUOE6VC36_cjs.DEFAULT_ASK_FIELD_LABELS; }
104
112
  });
105
113
  Object.defineProperty(exports, "DEFAULT_OFFLINE_PILL_LABELS", {
106
114
  enumerable: true,
107
- get: function () { return chunkPIWXX2M4_cjs.DEFAULT_OFFLINE_PILL_LABELS; }
115
+ get: function () { return chunkUOE6VC36_cjs.DEFAULT_OFFLINE_PILL_LABELS; }
108
116
  });
109
117
  Object.defineProperty(exports, "DEFAULT_REMOTE_CONTROL_PILL_LABELS", {
110
118
  enumerable: true,
111
- get: function () { return chunkPIWXX2M4_cjs.DEFAULT_REMOTE_CONTROL_PILL_LABELS; }
119
+ get: function () { return chunkUOE6VC36_cjs.DEFAULT_REMOTE_CONTROL_PILL_LABELS; }
112
120
  });
113
121
  Object.defineProperty(exports, "DEFAULT_TIP_CARD_LABELS", {
114
122
  enumerable: true,
115
- get: function () { return chunkPIWXX2M4_cjs.DEFAULT_TIP_CARD_LABELS; }
123
+ get: function () { return chunkUOE6VC36_cjs.DEFAULT_TIP_CARD_LABELS; }
116
124
  });
117
125
  Object.defineProperty(exports, "DockZone", {
118
126
  enumerable: true,
119
- get: function () { return chunkPIWXX2M4_cjs.DockZone; }
127
+ get: function () { return chunkUOE6VC36_cjs.DockZone; }
120
128
  });
121
129
  Object.defineProperty(exports, "OfflinePill", {
122
130
  enumerable: true,
123
- get: function () { return chunkPIWXX2M4_cjs.OfflinePill; }
131
+ get: function () { return chunkUOE6VC36_cjs.OfflinePill; }
124
132
  });
125
133
  Object.defineProperty(exports, "RemoteControlPill", {
126
134
  enumerable: true,
127
- get: function () { return chunkPIWXX2M4_cjs.RemoteControlPill; }
135
+ get: function () { return chunkUOE6VC36_cjs.RemoteControlPill; }
128
136
  });
129
137
  Object.defineProperty(exports, "ShellSidebar", {
130
138
  enumerable: true,
131
- get: function () { return chunkPIWXX2M4_cjs.ShellSidebar; }
139
+ get: function () { return chunkUOE6VC36_cjs.ShellSidebar; }
132
140
  });
133
141
  Object.defineProperty(exports, "SidebarRowAction", {
134
142
  enumerable: true,
135
- get: function () { return chunkPIWXX2M4_cjs.SidebarRowAction; }
143
+ get: function () { return chunkUOE6VC36_cjs.SidebarRowAction; }
136
144
  });
137
145
  Object.defineProperty(exports, "StatusBadge", {
138
146
  enumerable: true,
139
- get: function () { return chunkPIWXX2M4_cjs.StatusBadge; }
147
+ get: function () { return chunkUOE6VC36_cjs.StatusBadge; }
140
148
  });
141
149
  Object.defineProperty(exports, "StatusRow", {
142
150
  enumerable: true,
143
- get: function () { return chunkPIWXX2M4_cjs.StatusRow; }
151
+ get: function () { return chunkUOE6VC36_cjs.StatusRow; }
144
152
  });
145
153
  Object.defineProperty(exports, "TipCard", {
146
154
  enumerable: true,
147
- get: function () { return chunkPIWXX2M4_cjs.TipCard; }
155
+ get: function () { return chunkUOE6VC36_cjs.TipCard; }
148
156
  });
149
157
  Object.defineProperty(exports, "resolveSidebarLayout", {
150
158
  enumerable: true,
151
- get: function () { return chunkPIWXX2M4_cjs.resolveSidebarLayout; }
159
+ get: function () { return chunkUOE6VC36_cjs.resolveSidebarLayout; }
152
160
  });
153
161
  Object.defineProperty(exports, "useCloseOnEscape", {
154
162
  enumerable: true,
155
- get: function () { return chunkPIWXX2M4_cjs.useCloseOnEscape; }
163
+ get: function () { return chunkUOE6VC36_cjs.useCloseOnEscape; }
156
164
  });
157
165
  Object.defineProperty(exports, "useSidebarController", {
158
166
  enumerable: true,
159
- get: function () { return chunkPIWXX2M4_cjs.useSidebarController; }
167
+ get: function () { return chunkUOE6VC36_cjs.useSidebarController; }
160
168
  });
161
169
  Object.defineProperty(exports, "useSidebarSettle", {
162
170
  enumerable: true,
163
- get: function () { return chunkPIWXX2M4_cjs.useSidebarSettle; }
171
+ get: function () { return chunkUOE6VC36_cjs.useSidebarSettle; }
164
172
  });
165
173
  Object.defineProperty(exports, "PanelModeSwitcher", {
166
174
  enumerable: true,
167
- get: function () { return chunkK4763GD5_cjs.PanelModeSwitcher; }
175
+ get: function () { return chunkAIKPZJNI_cjs.PanelModeSwitcher; }
168
176
  });
169
177
  Object.defineProperty(exports, "PanelPortal", {
170
178
  enumerable: true,
171
- get: function () { return chunkK4763GD5_cjs.PanelPortal; }
179
+ get: function () { return chunkAIKPZJNI_cjs.PanelPortal; }
172
180
  });
173
181
  Object.defineProperty(exports, "createPanelWindowManager", {
174
182
  enumerable: true,
@@ -180,63 +188,63 @@ Object.defineProperty(exports, "usePanelHostSupport", {
180
188
  });
181
189
  Object.defineProperty(exports, "DEFAULT_MOBILE_BARS_LABELS", {
182
190
  enumerable: true,
183
- get: function () { return chunkLLVE5TST_cjs.DEFAULT_MOBILE_BARS_LABELS; }
191
+ get: function () { return chunkVJRO6J37_cjs.DEFAULT_MOBILE_BARS_LABELS; }
184
192
  });
185
193
  Object.defineProperty(exports, "MobileAppBar", {
186
194
  enumerable: true,
187
- get: function () { return chunkLLVE5TST_cjs.MobileAppBar; }
195
+ get: function () { return chunkVJRO6J37_cjs.MobileAppBar; }
188
196
  });
189
197
  Object.defineProperty(exports, "MobileTabBar", {
190
198
  enumerable: true,
191
- get: function () { return chunkLLVE5TST_cjs.MobileTabBar; }
199
+ get: function () { return chunkVJRO6J37_cjs.MobileTabBar; }
192
200
  });
193
201
  Object.defineProperty(exports, "hasUnsavedInput", {
194
202
  enumerable: true,
195
- get: function () { return chunkLLVE5TST_cjs.hasUnsavedInput; }
203
+ get: function () { return chunkVJRO6J37_cjs.hasUnsavedInput; }
196
204
  });
197
205
  Object.defineProperty(exports, "installReloadPolicy", {
198
206
  enumerable: true,
199
- get: function () { return chunkLLVE5TST_cjs.installReloadPolicy; }
207
+ get: function () { return chunkVJRO6J37_cjs.installReloadPolicy; }
200
208
  });
201
209
  Object.defineProperty(exports, "markBuildStale", {
202
210
  enumerable: true,
203
- get: function () { return chunkLLVE5TST_cjs.markBuildStale; }
211
+ get: function () { return chunkVJRO6J37_cjs.markBuildStale; }
204
212
  });
205
213
  Object.defineProperty(exports, "prefetchChunk", {
206
214
  enumerable: true,
207
- get: function () { return chunkLLVE5TST_cjs.prefetchChunk; }
215
+ get: function () { return chunkVJRO6J37_cjs.prefetchChunk; }
208
216
  });
209
217
  Object.defineProperty(exports, "requestReload", {
210
218
  enumerable: true,
211
- get: function () { return chunkLLVE5TST_cjs.requestReload; }
219
+ get: function () { return chunkVJRO6J37_cjs.requestReload; }
212
220
  });
213
221
  Object.defineProperty(exports, "DEFAULT_SIDEBAR_LABELS", {
214
222
  enumerable: true,
215
- get: function () { return chunkDYIZ7W4P_cjs.DEFAULT_SIDEBAR_LABELS; }
223
+ get: function () { return chunkVBSEYTRN_cjs.DEFAULT_SIDEBAR_LABELS; }
216
224
  });
217
225
  Object.defineProperty(exports, "SHELL_START_INSET_VAR", {
218
226
  enumerable: true,
219
- get: function () { return chunkDYIZ7W4P_cjs.SHELL_START_INSET_VAR; }
227
+ get: function () { return chunkVBSEYTRN_cjs.SHELL_START_INSET_VAR; }
220
228
  });
221
229
  Object.defineProperty(exports, "Sidebar", {
222
230
  enumerable: true,
223
- get: function () { return chunkDYIZ7W4P_cjs.Sidebar; }
231
+ get: function () { return chunkVBSEYTRN_cjs.Sidebar; }
224
232
  });
225
233
  Object.defineProperty(exports, "SidebarBadgeRow", {
226
234
  enumerable: true,
227
- get: function () { return chunkDYIZ7W4P_cjs.SidebarBadgeRow; }
235
+ get: function () { return chunkVBSEYTRN_cjs.SidebarBadgeRow; }
228
236
  });
229
237
  Object.defineProperty(exports, "SidebarRowHoverContext", {
230
238
  enumerable: true,
231
- get: function () { return chunkDYIZ7W4P_cjs.SidebarRowHoverContext; }
239
+ get: function () { return chunkVBSEYTRN_cjs.SidebarRowHoverContext; }
232
240
  });
233
241
  Object.defineProperty(exports, "useShellStartInset", {
234
242
  enumerable: true,
235
- get: function () { return chunkDYIZ7W4P_cjs.useShellStartInset; }
243
+ get: function () { return chunkVBSEYTRN_cjs.useShellStartInset; }
236
244
  });
237
245
  Object.defineProperty(exports, "useSidebarContext", {
238
246
  enumerable: true,
239
- get: function () { return chunkDYIZ7W4P_cjs.useSidebarContext; }
247
+ get: function () { return chunkVBSEYTRN_cjs.useSidebarContext; }
240
248
  });
241
249
  Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
242
250
  enumerable: true,
@@ -262,42 +270,6 @@ Object.defineProperty(exports, "workspaceKindMeta", {
262
270
  enumerable: true,
263
271
  get: function () { return chunkWRTEKOQP_cjs.workspaceKindMeta; }
264
272
  });
265
- Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
266
- enumerable: true,
267
- get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_FIELDS; }
268
- });
269
- Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
270
- enumerable: true,
271
- get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_INPUT_LABELS; }
272
- });
273
- Object.defineProperty(exports, "FilterInput", {
274
- enumerable: true,
275
- get: function () { return chunk6UZC4XVV_cjs.FilterInput; }
276
- });
277
- Object.defineProperty(exports, "getInstallInstructions", {
278
- enumerable: true,
279
- get: function () { return chunkKKYNTWDU_cjs.getInstallInstructions; }
280
- });
281
- Object.defineProperty(exports, "isIosDevice", {
282
- enumerable: true,
283
- get: function () { return chunkKKYNTWDU_cjs.isIosDevice; }
284
- });
285
- Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
286
- enumerable: true,
287
- get: function () { return chunkSJSGSHIT_cjs.DEFAULT_TAB_HEADER_LABELS; }
288
- });
289
- Object.defineProperty(exports, "TabHeader", {
290
- enumerable: true,
291
- get: function () { return chunkSJSGSHIT_cjs.TabHeader; }
292
- });
293
- Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
294
- enumerable: true,
295
- get: function () { return chunkCT3SLXB7_cjs.DEFAULT_DOCK_WIDTH; }
296
- });
297
- Object.defineProperty(exports, "Toaster", {
298
- enumerable: true,
299
- get: function () { return chunkCT3SLXB7_cjs.Toaster; }
300
- });
301
273
  Object.defineProperty(exports, "STATUS_ROW_BASE_CLASS", {
302
274
  enumerable: true,
303
275
  get: function () { return chunkDEXUL3T6_cjs.STATUS_ROW_BASE_CLASS; }
@@ -358,5 +330,33 @@ Object.defineProperty(exports, "useMediaQuery", {
358
330
  enumerable: true,
359
331
  get: function () { return chunkFX3K6LNZ_cjs.useMediaQuery; }
360
332
  });
333
+ Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
334
+ enumerable: true,
335
+ get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_FIELDS; }
336
+ });
337
+ Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
338
+ enumerable: true,
339
+ get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_INPUT_LABELS; }
340
+ });
341
+ Object.defineProperty(exports, "FilterInput", {
342
+ enumerable: true,
343
+ get: function () { return chunk6UZC4XVV_cjs.FilterInput; }
344
+ });
345
+ Object.defineProperty(exports, "getInstallInstructions", {
346
+ enumerable: true,
347
+ get: function () { return chunkKKYNTWDU_cjs.getInstallInstructions; }
348
+ });
349
+ Object.defineProperty(exports, "isIosDevice", {
350
+ enumerable: true,
351
+ get: function () { return chunkKKYNTWDU_cjs.isIosDevice; }
352
+ });
353
+ Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
354
+ enumerable: true,
355
+ get: function () { return chunkSJSGSHIT_cjs.DEFAULT_TAB_HEADER_LABELS; }
356
+ });
357
+ Object.defineProperty(exports, "TabHeader", {
358
+ enumerable: true,
359
+ get: function () { return chunkSJSGSHIT_cjs.TabHeader; }
360
+ });
361
361
  //# sourceMappingURL=index.cjs.map
362
362
  //# sourceMappingURL=index.cjs.map
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkUJHQ4DA4_cjs = require('../chunk-UJHQ4DA4.cjs');
5
- require('../chunk-6P4U63HO.cjs');
6
- require('../chunk-7UPEFZCV.cjs');
7
- require('../chunk-V27WLYTG.cjs');
8
- require('../chunk-UD3LPATQ.cjs');
4
+ var chunk4GT4JLKS_cjs = require('../chunk-4GT4JLKS.cjs');
5
+ require('../chunk-KAKEFIDS.cjs');
6
+ require('../chunk-C6EMTQHQ.cjs');
7
+ require('../chunk-UEQNTXWV.cjs');
8
+ require('../chunk-HKKNHHBB.cjs');
9
9
  var chunk4RR7ZZPD_cjs = require('../chunk-4RR7ZZPD.cjs');
10
10
  var chunk5HPUGSTJ_cjs = require('../chunk-5HPUGSTJ.cjs');
11
11
  var chunkQEMGGJB6_cjs = require('../chunk-QEMGGJB6.cjs');
@@ -13,47 +13,47 @@ require('../chunk-MWHVETKN.cjs');
13
13
  var chunkCULUTYOD_cjs = require('../chunk-CULUTYOD.cjs');
14
14
  var chunkANWJG4A4_cjs = require('../chunk-ANWJG4A4.cjs');
15
15
  var chunkICZSVCDT_cjs = require('../chunk-ICZSVCDT.cjs');
16
- var chunkU4YOVI5D_cjs = require('../chunk-U4YOVI5D.cjs');
16
+ var chunkFDIZWCYF_cjs = require('../chunk-FDIZWCYF.cjs');
17
17
  var chunkNEGFHF3V_cjs = require('../chunk-NEGFHF3V.cjs');
18
18
  require('../chunk-ADMNU2CR.cjs');
19
19
  var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
20
20
  var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
21
- var chunk34HQO4ZQ_cjs = require('../chunk-34HQO4ZQ.cjs');
22
- require('../chunk-DYIZ7W4P.cjs');
23
- require('../chunk-NWNVWO6L.cjs');
24
- var chunk2P7VH2SK_cjs = require('../chunk-2P7VH2SK.cjs');
25
- var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
26
- require('../chunk-OEJQFPWO.cjs');
27
- require('../chunk-I4IS6ST6.cjs');
28
- require('../chunk-M55XUF4L.cjs');
29
- require('../chunk-EVZH6Z5O.cjs');
30
- require('../chunk-II2OEXHW.cjs');
31
- require('../chunk-G3MRW4WB.cjs');
32
- require('../chunk-AHDJXIUB.cjs');
33
- require('../chunk-SLCH5JRI.cjs');
34
- require('../chunk-YA6GXWC2.cjs');
35
- require('../chunk-VZOOGA47.cjs');
36
- require('../chunk-DWN5AUMH.cjs');
37
- var chunkGB5MN5FC_cjs = require('../chunk-GB5MN5FC.cjs');
38
- require('../chunk-3YZKDCWY.cjs');
39
- var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
40
21
  require('../chunk-36NQMOJE.cjs');
41
22
  require('../chunk-U4KUTO6O.cjs');
42
23
  require('../chunk-VHD5DZW4.cjs');
43
24
  require('../chunk-5F4DCIHS.cjs');
25
+ var chunk34HQO4ZQ_cjs = require('../chunk-34HQO4ZQ.cjs');
26
+ require('../chunk-VBSEYTRN.cjs');
27
+ require('../chunk-NWNVWO6L.cjs');
44
28
  require('../chunk-AFQTQC7A.cjs');
45
29
  require('../chunk-XJEXFEWG.cjs');
46
30
  require('../chunk-YZSQ7F5K.cjs');
47
31
  require('../chunk-MCXS6X37.cjs');
48
32
  require('../chunk-KQF7POTG.cjs');
49
33
  require('../chunk-75BNMCUX.cjs');
34
+ var chunk2P7VH2SK_cjs = require('../chunk-2P7VH2SK.cjs');
35
+ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
36
+ require('../chunk-OEJQFPWO.cjs');
37
+ require('../chunk-I4IS6ST6.cjs');
38
+ require('../chunk-M55XUF4L.cjs');
39
+ require('../chunk-EVZH6Z5O.cjs');
50
40
  require('../chunk-IN6ILI5A.cjs');
51
41
  require('../chunk-7XR6CPCU.cjs');
42
+ require('../chunk-II2OEXHW.cjs');
43
+ require('../chunk-LK4TQBV6.cjs');
44
+ require('../chunk-AHDJXIUB.cjs');
45
+ require('../chunk-SLCH5JRI.cjs');
52
46
  require('../chunk-Y3GJBLAI.cjs');
53
47
  require('../chunk-SQCCQU3K.cjs');
54
48
  require('../chunk-UDSHVNU3.cjs');
49
+ require('../chunk-YA6GXWC2.cjs');
55
50
  var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
51
+ require('../chunk-VZOOGA47.cjs');
52
+ require('../chunk-DWN5AUMH.cjs');
53
+ var chunkGB5MN5FC_cjs = require('../chunk-GB5MN5FC.cjs');
54
+ require('../chunk-3YZKDCWY.cjs');
56
55
  require('../chunk-PPCATBOY.cjs');
56
+ var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
57
57
  var chunk46LX6EQT_cjs = require('../chunk-46LX6EQT.cjs');
58
58
  require('../chunk-K67VMSOX.cjs');
59
59
  require('../chunk-CVPV4I7Z.cjs');
@@ -620,7 +620,7 @@ function StudioEditor({
620
620
  className: "w-80 shrink-0 border-l border-border",
621
621
  "data-testid": `${testIdPrefix}-theme-drawer`,
622
622
  children: /* @__PURE__ */ jsxRuntime.jsx(
623
- chunkU4YOVI5D_cjs.ThemeEditor,
623
+ chunkFDIZWCYF_cjs.ThemeEditor,
624
624
  {
625
625
  bundle: themeBundle,
626
626
  variant: "drawer",
@@ -993,7 +993,7 @@ function latestImageDocId(artifacts) {
993
993
  return null;
994
994
  }
995
995
  function useImageGen() {
996
- const task = chunkUJHQ4DA4_cjs.useConnectedAiTask();
996
+ const task = chunk4GT4JLKS_cjs.useConnectedAiTask();
997
997
  const { run } = task;
998
998
  const generate = react.useCallback(
999
999
  async (prompt, referenceDocIds = []) => {
@@ -3392,7 +3392,7 @@ function VerticalBuilder({
3392
3392
  ] })
3393
3393
  ] }),
3394
3394
  /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "theme", children: /* @__PURE__ */ jsxRuntime.jsx(
3395
- chunkU4YOVI5D_cjs.ThemeEditor,
3395
+ chunkFDIZWCYF_cjs.ThemeEditor,
3396
3396
  {
3397
3397
  bundle: themeBundle,
3398
3398
  variant: "panel",