react-semaphor 0.1.536 → 0.1.538

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 (173) hide show
  1. package/dist/analytics-protocol/index.js +352 -341
  2. package/dist/assistant-context/index.js +10 -0
  3. package/dist/assistant-protocol/index.js +104 -0
  4. package/dist/brand-studio/index.js +35 -31
  5. package/dist/briefings/index.js +46 -45
  6. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
  7. package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
  8. package/dist/chunks/aggregate-table-row-presentation-Qgpv6_G8.js +979 -0
  9. package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
  10. package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
  11. package/dist/chunks/assistant-chat-BAqUIFp5.js +7966 -0
  12. package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
  13. package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
  14. package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
  15. package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
  16. package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
  17. package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
  18. package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
  19. package/dist/chunks/context-HD9usB1P.js +349 -0
  20. package/dist/chunks/conversation-sQiWYUOb.js +16 -0
  21. package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
  22. package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
  23. package/dist/chunks/{dashboard-BTDY_I5L.js → dashboard-DTDDFQsS.js} +1 -1
  24. package/dist/chunks/{dashboard-briefing-launcher-DV_rlhT2.js → dashboard-briefing-launcher-Bb2QUqOa.js} +764 -740
  25. package/dist/chunks/{dashboard-controls-B4LxN5dr.js → dashboard-controls-FpONU8QV.js} +683 -686
  26. package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
  27. package/dist/chunks/dashboard-json-DazPhBU_.js +69 -0
  28. package/dist/chunks/document-dashboard-inputs-D96rlU7S.js +10678 -0
  29. package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
  30. package/dist/chunks/{edit-dashboard-visual-L5zsle6X.js → edit-dashboard-visual-CIhZodVH.js} +4744 -4746
  31. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
  32. package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
  33. package/dist/chunks/index-CqMiAkay.js +3164 -0
  34. package/dist/chunks/index-CuHybtft.js +51 -0
  35. package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
  36. package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
  37. package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
  38. package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
  39. package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-Bgw32tb3.js} +648 -457
  40. package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
  41. package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
  42. package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
  43. package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
  44. package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
  45. package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
  46. package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
  47. package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
  48. package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
  49. package/dist/chunks/report-preferences-dialog-BCGs4-AE.js +1808 -0
  50. package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
  51. package/dist/chunks/save-CfJpQQ68.js +21 -0
  52. package/dist/chunks/saved-dashboard-context-BrTkjcod.js +566 -0
  53. package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
  54. package/dist/chunks/{semaphor-ready-indicator-3TXTZgw-.js → semaphor-ready-indicator-CHHoWhil.js} +65657 -62814
  55. package/dist/chunks/{shelf-drop-preview-context-CBCs9rjz.js → shelf-drop-preview-context-EsayECEC.js} +199 -196
  56. package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
  57. package/dist/chunks/switch-CvItuC1Q.js +8199 -0
  58. package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
  59. package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
  60. package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
  61. package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
  62. package/dist/chunks/{use-create-flow-overlay-state-Bk-SBnaY.js → use-create-flow-overlay-state-BqA92GkX.js} +331 -339
  63. package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
  64. package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
  65. package/dist/chunks/x-4f5U2XwU.js +100 -0
  66. package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
  67. package/dist/dashboard/index.js +2 -2
  68. package/dist/dashboard-authoring/index.js +823 -661
  69. package/dist/data-app-sdk/index.js +32 -30
  70. package/dist/data-app-sdk-adapters/index.js +23 -22
  71. package/dist/data-app-sdk-validation/index.js +23 -22
  72. package/dist/format-utils/index.js +173 -168
  73. package/dist/index.js +267 -258
  74. package/dist/layouts/index.js +236 -24
  75. package/dist/report-runtime-context/index.js +2 -2
  76. package/dist/style.css +1 -1
  77. package/dist/surfboard/index.js +2 -2
  78. package/dist/types/assistant-context.d.ts +2 -0
  79. package/dist/types/assistant-protocol.d.ts +2 -0
  80. package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
  81. package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
  82. package/dist/types/components/assistant/assistant-store.d.ts +52 -0
  83. package/dist/types/components/assistant/use-assistant.d.ts +38 -0
  84. package/dist/types/components/index.d.ts +5 -1
  85. package/dist/types/components/surfboard/filter/types.d.ts +5 -2
  86. package/dist/types/index.js +50 -51
  87. package/dist/types/lib/api/invalidate-token.d.ts +7 -0
  88. package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
  89. package/dist/types/lib/charts/types.d.ts +7 -0
  90. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
  91. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
  92. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
  93. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
  94. package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
  95. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
  96. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
  97. package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
  98. package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
  99. package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
  100. package/dist/types/lib/hooks/use-text-filter.d.ts +7 -0
  101. package/dist/types/lib/print/print-inputs.d.ts +4 -2
  102. package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
  103. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
  104. package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
  105. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
  106. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
  107. package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
  108. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
  109. package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
  110. package/dist/types/lib/stores/editor-store.d.ts +4 -2
  111. package/dist/types/lib/types/token-types.d.ts +11 -0
  112. package/dist/types/lib/utils/card-type-change.d.ts +30 -0
  113. package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
  114. package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
  115. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
  116. package/dist/types/shared/analytics-protocol/contracts.d.ts +5 -0
  117. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
  118. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  119. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
  120. package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
  121. package/dist/types/shared/assistant-context/index.d.ts +9 -0
  122. package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
  123. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
  124. package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
  125. package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
  126. package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
  127. package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
  128. package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
  129. package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
  130. package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
  131. package/dist/types/shared/assistant-protocol/parts.d.ts +131 -0
  132. package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
  133. package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
  134. package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
  135. package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
  136. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
  137. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
  138. package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
  139. package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
  140. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
  141. package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
  142. package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
  143. package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
  144. package/dist/types/shared/format-utils/index.d.ts +3 -0
  145. package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
  146. package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
  147. package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
  148. package/dist/types/shared/layouts/index.d.ts +1 -0
  149. package/package.json +12 -2
  150. package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
  151. package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
  152. package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
  153. package/dist/chunks/constants-DNWVy8Y3.js +0 -9
  154. package/dist/chunks/dashboard-json-Ccjo0Dzw.js +0 -65
  155. package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
  156. package/dist/chunks/index-DTcTAGGM.js +0 -4101
  157. package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
  158. package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
  159. package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
  160. package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
  161. package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
  162. package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
  163. package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
  164. package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
  165. package/dist/chunks/report-preferences-dialog-CW8VEIDx.js +0 -1623
  166. package/dist/chunks/save-kO6cIaob.js +0 -34
  167. package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
  168. package/dist/chunks/switch-CKB-kUaC.js +0 -25003
  169. package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
  170. package/dist/chunks/x-CXDkqdur.js +0 -149
  171. package/dist/types/lib/class-utils.d.ts +0 -2
  172. package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
  173. package/dist/types/lib/utils.d.ts +0 -51
@@ -1,17 +1,20 @@
1
1
  import { jsxs as De, jsx as _, Fragment as ft } from "react/jsx-runtime";
2
2
  import * as k from "react";
3
- import bn, { forwardRef as Ve, createElement as be, useContext as nt, createContext as bt, useRef as B, useLayoutEffect as zn, useImperativeHandle as zt, useEffect as Z, useState as ue, useCallback as O, useMemo as U, memo as Pn, Suspense as wn, useSyncExternalStore as Cn } from "react";
4
- import { aF as En, aG as Pt, aH as rt, aI as wt, aJ as In, aK as Rn, aL as Dn, aM as An, aN as Mn, aO as Nn, aP as Ln, aQ as _n, aR as kn, aS as Tn, aT as Hn, aU as Vn, aV as $n } from "./semaphor-ready-indicator-3TXTZgw-.js";
5
- import { a1 as te, a2 as Ct, C as Et, ax as Fn, c as ot, ay as Kn, u as Ge, az as It, aA as ze, aB as pe, aC as Bn, aD as qn, aE as On, aF as Pe, aG as Gn, aH as Rt, aI as Un, aJ as Wn } from "./switch-CKB-kUaC.js";
6
- import { f as Xn, r as Dt } from "./use-create-flow-overlay-state-Bk-SBnaY.js";
7
- import { f as Yn, r as At, g as Mt, a as Qe, b as _e, n as jn, c as Qn } from "./index-DTcTAGGM.js";
8
- import "./x-CXDkqdur.js";
9
- import "./validators-DMSH81OM.js";
10
- import "./matrix-operation-contract-BKupLHXL.js";
3
+ import xn, { forwardRef as $e, createElement as xe, useContext as nt, createContext as xt, useRef as B, useLayoutEffect as zn, useImperativeHandle as zt, useEffect as Z, useState as ue, useCallback as O, useMemo as U, memo as Pn, Suspense as wn, useSyncExternalStore as Cn } from "react";
4
+ import { aS as En, Z as te, aT as Pt, _ as wt, aU as rt, aV as Ct, aW as In, aX as Rn, aY as Dn, aZ as An, u as Ge, a_ as Mn, a$ as Nn, b0 as Ln, b1 as _n, b2 as kn, b3 as Tn, b4 as Hn, b5 as $n } from "./semaphor-ready-indicator-CHHoWhil.js";
5
+ import { C as Et, y as It, z as ze, A as pe, D as Vn, E as Fn, F as Kn, G as Pe, H as Bn, J as Rt, K as qn, M as On } from "./switch-CvItuC1Q.js";
6
+ import { f as Gn, r as Dt } from "./editor-draft-sync-BN5qYHPF.js";
7
+ import { a2 as Un, a3 as Wn, a4 as Xn } from "./document-dashboard-inputs-D96rlU7S.js";
8
+ import { f as Yn, d as At, h as Mt, j as Qe, k as _e, l as jn, e as Qn } from "./custom-visual-inputs-BrUOIwln.js";
9
+ import "./index-CuHybtft.js";
10
+ import "./validators-Ej1DdCXa.js";
11
+ import "./matrix-operation-contract-B8PBF1Gd.js";
12
+ import "./analytics-base-schemas-BFAoRlkU.js";
11
13
  import "zod";
12
14
  import "../value-format-preferences/index.js";
15
+ import { c as ot } from "./class-utils-Df1OVOT1.js";
13
16
  import { u as Jn } from "./appearance-context-DEYtWinQ.js";
14
- const yo = bn.memo(function({
17
+ const bo = xn.memo(function({
15
18
  context: t = "editor"
16
19
  } = {}) {
17
20
  return /* @__PURE__ */ De(
@@ -26,8 +29,8 @@ const yo = bn.memo(function({
26
29
  ]
27
30
  }
28
31
  );
29
- }), $e = bt(null);
30
- $e.displayName = "PanelGroupContext";
32
+ }), Ve = xt(null);
33
+ Ve.displayName = "PanelGroupContext";
31
34
  const K = {
32
35
  group: "data-panel-group",
33
36
  groupDirection: "data-panel-group-direction",
@@ -65,20 +68,20 @@ function Nt({
65
68
  tagName: m = "div",
66
69
  ...y
67
70
  }) {
68
- const S = nt($e);
71
+ const S = nt(Ve);
69
72
  if (S === null)
70
73
  throw Error("Panel components must be rendered within a PanelGroup container");
71
74
  const {
72
75
  collapsePanel: v,
73
76
  expandPanel: D,
74
- getPanelSize: b,
77
+ getPanelSize: x,
75
78
  getPanelStyle: I,
76
79
  groupId: R,
77
80
  isPanelCollapsed: M,
78
81
  reevaluatePanelConstraints: w,
79
82
  registerPanel: X,
80
83
  resizePanel: j,
81
- unregisterPanel: V
84
+ unregisterPanel: $
82
85
  } = S, A = st(s), N = B({
83
86
  callbacks: {
84
87
  onCollapse: f,
@@ -100,29 +103,29 @@ function Nt({
100
103
  didLogMissingDefaultSizeWarning: !1
101
104
  }), me(() => {
102
105
  const {
103
- callbacks: $,
106
+ callbacks: V,
104
107
  constraints: T
105
108
  } = N.current, H = {
106
109
  ...T
107
110
  };
108
- N.current.id = A, N.current.idIsFromProps = s !== void 0, N.current.order = c, $.onCollapse = f, $.onExpand = p, $.onResize = u, T.collapsedSize = n, T.collapsible = r, T.defaultSize = i, T.maxSize = l, T.minSize = a, (H.collapsedSize !== T.collapsedSize || H.collapsible !== T.collapsible || H.maxSize !== T.maxSize || H.minSize !== T.minSize) && w(N.current, H);
111
+ N.current.id = A, N.current.idIsFromProps = s !== void 0, N.current.order = c, V.onCollapse = f, V.onExpand = p, V.onResize = u, T.collapsedSize = n, T.collapsible = r, T.defaultSize = i, T.maxSize = l, T.minSize = a, (H.collapsedSize !== T.collapsedSize || H.collapsible !== T.collapsible || H.maxSize !== T.maxSize || H.minSize !== T.minSize) && w(N.current, H);
109
112
  }), me(() => {
110
- const $ = N.current;
111
- return X($), () => {
112
- V($);
113
+ const V = N.current;
114
+ return X(V), () => {
115
+ $(V);
113
116
  };
114
- }, [c, A, X, V]), zt(o, () => ({
117
+ }, [c, A, X, $]), zt(o, () => ({
115
118
  collapse: () => {
116
119
  v(N.current);
117
120
  },
118
- expand: ($) => {
119
- D(N.current, $);
121
+ expand: (V) => {
122
+ D(N.current, V);
120
123
  },
121
124
  getId() {
122
125
  return A;
123
126
  },
124
127
  getSize() {
125
- return b(N.current);
128
+ return x(N.current);
126
129
  },
127
130
  isCollapsed() {
128
131
  return M(N.current);
@@ -130,12 +133,12 @@ function Nt({
130
133
  isExpanded() {
131
134
  return !M(N.current);
132
135
  },
133
- resize: ($) => {
134
- j(N.current, $);
136
+ resize: (V) => {
137
+ j(N.current, V);
135
138
  }
136
- }), [v, D, b, M, A, j]);
139
+ }), [v, D, x, M, A, j]);
137
140
  const W = I(N.current, i);
138
- return be(m, {
141
+ return xe(m, {
139
142
  ...y,
140
143
  children: e,
141
144
  className: t,
@@ -152,7 +155,7 @@ function Nt({
152
155
  [K.panelSize]: parseFloat("" + W.flexGrow).toFixed(1)
153
156
  });
154
157
  }
155
- const tr = Ve((e, t) => be(Nt, {
158
+ const tr = $e((e, t) => xe(Nt, {
156
159
  ...e,
157
160
  forwardedRef: t
158
161
  }));
@@ -161,7 +164,7 @@ tr.displayName = "forwardRef(Panel)";
161
164
  let Je = null, ke = -1, ce = null;
162
165
  function nr(e, t) {
163
166
  if (t) {
164
- const n = (t & Ht) !== 0, r = (t & Vt) !== 0, i = (t & $t) !== 0, o = (t & Ft) !== 0;
167
+ const n = (t & Ht) !== 0, r = (t & $t) !== 0, i = (t & Vt) !== 0, o = (t & Ft) !== 0;
165
168
  if (n)
166
169
  return i ? "se-resize" : o ? "ne-resize" : "e-resize";
167
170
  if (r)
@@ -288,8 +291,8 @@ function Tt(e) {
288
291
  } = e;
289
292
  return t && t instanceof ShadowRoot ? t.host : t;
290
293
  }
291
- const Ht = 1, Vt = 2, $t = 4, Ft = 8, ur = or() === "coarse";
292
- let ne = [], xe = !1, fe = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Map();
294
+ const Ht = 1, $t = 2, Vt = 4, Ft = 8, ur = or() === "coarse";
295
+ let ne = [], be = !1, fe = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Map();
293
296
  const Ae = /* @__PURE__ */ new Set();
294
297
  function dr(e, t, n, r, i) {
295
298
  var o;
@@ -318,7 +321,7 @@ function fr(e) {
318
321
  x: n,
319
322
  y: r
320
323
  } = Fe(e);
321
- xe = !0, lt({
324
+ be = !0, lt({
322
325
  target: t,
323
326
  x: n,
324
327
  y: r
@@ -329,7 +332,7 @@ function We(e) {
329
332
  x: t,
330
333
  y: n
331
334
  } = Fe(e);
332
- if (xe && e.buttons === 0 && (xe = !1, He("up", e)), !xe) {
335
+ if (be && e.buttons === 0 && (be = !1, He("up", e)), !be) {
333
336
  const {
334
337
  target: r
335
338
  } = e;
@@ -348,7 +351,7 @@ function Xe(e) {
348
351
  x: n,
349
352
  y: r
350
353
  } = Fe(e);
351
- Ke.clear(), xe = !1, ne.length > 0 && (e.preventDefault(), Kt(t) || e.stopImmediatePropagation()), He("up", e), lt({
354
+ Ke.clear(), be = !1, ne.length > 0 && (e.preventDefault(), Kt(t) || e.stopImmediatePropagation()), He("up", e), lt({
352
355
  target: t,
353
356
  x: n,
354
357
  y: r
@@ -423,7 +426,7 @@ function Te() {
423
426
  capture: !0,
424
427
  signal: je.signal
425
428
  };
426
- Ae.size && (xe ? (ne.length > 0 && fe.forEach((t, n) => {
429
+ Ae.size && (be ? (ne.length > 0 && fe.forEach((t, n) => {
427
430
  const {
428
431
  body: r
429
432
  } = n;
@@ -587,10 +590,10 @@ function Ie({
587
590
  for (; v >= 0 && v < n.length; ) {
588
591
  const D = s[v];
589
592
  E(D != null, `Previous layout not found for panel index ${v}`);
590
- const b = D + y, I = Se({
593
+ const x = D + y, I = Se({
591
594
  panelConstraints: n,
592
595
  panelIndex: v,
593
- size: b
596
+ size: x
594
597
  });
595
598
  if (J(D, I) || (y -= I - D, s[v] = I), J(y, 0))
596
599
  break;
@@ -709,15 +712,15 @@ function yr({
709
712
  switch (v.key) {
710
713
  case "Enter": {
711
714
  v.preventDefault();
712
- const D = a.findIndex((b) => b.id === m);
715
+ const D = a.findIndex((x) => x.id === m);
713
716
  if (D >= 0) {
714
- const b = a[D];
715
- E(b, `No panel data found for index ${D}`);
717
+ const x = a[D];
718
+ E(x, `No panel data found for index ${D}`);
716
719
  const I = r[D], {
717
720
  collapsedSize: R = 0,
718
721
  collapsible: M,
719
722
  minSize: w = 0
720
- } = b.constraints;
723
+ } = x.constraints;
721
724
  if (I != null && M) {
722
725
  const X = Ie({
723
726
  delta: J(I, R) ? w - R : R - I,
@@ -801,7 +804,7 @@ function Sr(e, t, n, r, i, o) {
801
804
  } else
802
805
  return r == null ? 0 : vr(e, t, n, r, o);
803
806
  }
804
- function xr({
807
+ function br({
805
808
  panelDataArray: e
806
809
  }) {
807
810
  const t = Array(e.length), n = e.map((o) => o.constraints);
@@ -858,7 +861,7 @@ function Le(e, t) {
858
861
  return !1;
859
862
  return !0;
860
863
  }
861
- function br({
864
+ function xr({
862
865
  defaultSize: e,
863
866
  dragState: t,
864
867
  layout: n,
@@ -988,7 +991,7 @@ const Cr = 100, Re = {
988
991
  setItem: (e, t) => {
989
992
  vt(Re), Re.setItem(e, t);
990
993
  }
991
- }, xt = {};
994
+ }, bt = {};
992
995
  function Yt({
993
996
  autoSaveId: e = null,
994
997
  children: t,
@@ -1003,7 +1006,7 @@ function Yt({
1003
1006
  tagName: p = "div",
1004
1007
  ...u
1005
1008
  }) {
1006
- const c = st(o), h = B(null), [m, y] = ue(null), [S, v] = ue([]), D = pr(), b = B({}), I = B(/* @__PURE__ */ new Map()), R = B(0), M = B({
1009
+ const c = st(o), h = B(null), [m, y] = ue(null), [S, v] = ue([]), D = pr(), x = B({}), I = B(/* @__PURE__ */ new Map()), R = B(0), M = B({
1007
1010
  autoSaveId: e,
1008
1011
  direction: r,
1009
1012
  dragState: m,
@@ -1024,21 +1027,21 @@ function Yt({
1024
1027
  getId: () => M.current.id,
1025
1028
  getLayout: () => {
1026
1029
  const {
1027
- layout: x
1030
+ layout: b
1028
1031
  } = w.current;
1029
- return x;
1032
+ return b;
1030
1033
  },
1031
- setLayout: (x) => {
1034
+ setLayout: (b) => {
1032
1035
  const {
1033
1036
  onLayout: z
1034
1037
  } = M.current, {
1035
1038
  layout: C,
1036
1039
  panelDataArray: d
1037
1040
  } = w.current, g = St({
1038
- layout: x,
1041
+ layout: b,
1039
1042
  panelConstraints: d.map((P) => P.constraints)
1040
1043
  });
1041
- yt(C, g) || (v(g), w.current.layout = g, z && z(g), ye(d, g, b.current));
1044
+ yt(C, g) || (v(g), w.current.layout = g, z && z(g), ye(d, g, x.current));
1042
1045
  }
1043
1046
  }), []), me(() => {
1044
1047
  M.current.autoSaveId = e, M.current.direction = r, M.current.dragState = m, M.current.id = c, M.current.onLayout = s, M.current.storage = a;
@@ -1052,34 +1055,34 @@ function Yt({
1052
1055
  panelGroupElement: h.current
1053
1056
  }), Z(() => {
1054
1057
  const {
1055
- panelDataArray: x
1058
+ panelDataArray: b
1056
1059
  } = w.current;
1057
1060
  if (e) {
1058
- if (S.length === 0 || S.length !== x.length)
1061
+ if (S.length === 0 || S.length !== b.length)
1059
1062
  return;
1060
- let z = xt[e];
1061
- z == null && (z = zr(wr, Cr), xt[e] = z);
1062
- const C = [...x], d = new Map(I.current);
1063
+ let z = bt[e];
1064
+ z == null && (z = zr(wr, Cr), bt[e] = z);
1065
+ const C = [...b], d = new Map(I.current);
1063
1066
  z(e, C, d, S, a);
1064
1067
  }
1065
1068
  }, [e, S, a]), Z(() => {
1066
1069
  });
1067
- const X = O((x) => {
1070
+ const X = O((b) => {
1068
1071
  const {
1069
1072
  onLayout: z
1070
1073
  } = M.current, {
1071
1074
  layout: C,
1072
1075
  panelDataArray: d
1073
1076
  } = w.current;
1074
- if (x.constraints.collapsible) {
1077
+ if (b.constraints.collapsible) {
1075
1078
  const g = d.map((oe) => oe.constraints), {
1076
1079
  collapsedSize: P = 0,
1077
1080
  panelSize: L,
1078
1081
  pivotIndices: q
1079
- } = de(d, x, C);
1080
- if (E(L != null, `Panel size not found for panel "${x.id}"`), !le(L, P)) {
1081
- I.current.set(x.id, L);
1082
- const ie = ve(d, x) === d.length - 1 ? L - P : P - L, F = Ie({
1082
+ } = de(d, b, C);
1083
+ if (E(L != null, `Panel size not found for panel "${b.id}"`), !le(L, P)) {
1084
+ I.current.set(b.id, L);
1085
+ const ie = ve(d, b) === d.length - 1 ? L - P : P - L, F = Ie({
1083
1086
  delta: ie,
1084
1087
  initialLayout: C,
1085
1088
  panelConstraints: g,
@@ -1087,25 +1090,25 @@ function Yt({
1087
1090
  prevLayout: C,
1088
1091
  trigger: "imperative-api"
1089
1092
  });
1090
- Le(C, F) || (v(F), w.current.layout = F, z && z(F), ye(d, F, b.current));
1093
+ Le(C, F) || (v(F), w.current.layout = F, z && z(F), ye(d, F, x.current));
1091
1094
  }
1092
1095
  }
1093
- }, []), j = O((x, z) => {
1096
+ }, []), j = O((b, z) => {
1094
1097
  const {
1095
1098
  onLayout: C
1096
1099
  } = M.current, {
1097
1100
  layout: d,
1098
1101
  panelDataArray: g
1099
1102
  } = w.current;
1100
- if (x.constraints.collapsible) {
1103
+ if (b.constraints.collapsible) {
1101
1104
  const P = g.map((ee) => ee.constraints), {
1102
1105
  collapsedSize: L = 0,
1103
1106
  panelSize: q = 0,
1104
1107
  minSize: oe = 0,
1105
1108
  pivotIndices: ie
1106
- } = de(g, x, d), F = z ?? oe;
1109
+ } = de(g, b, d), F = z ?? oe;
1107
1110
  if (le(q, L)) {
1108
- const ee = I.current.get(x.id), Ce = ee != null && ee >= F ? ee : F, Oe = ve(g, x) === g.length - 1 ? q - Ce : Ce - q, Q = Ie({
1111
+ const ee = I.current.get(b.id), Ce = ee != null && ee >= F ? ee : F, Oe = ve(g, b) === g.length - 1 ? q - Ce : Ce - q, Q = Ie({
1109
1112
  delta: Oe,
1110
1113
  initialLayout: d,
1111
1114
  panelConstraints: P,
@@ -1113,29 +1116,29 @@ function Yt({
1113
1116
  prevLayout: d,
1114
1117
  trigger: "imperative-api"
1115
1118
  });
1116
- Le(d, Q) || (v(Q), w.current.layout = Q, C && C(Q), ye(g, Q, b.current));
1119
+ Le(d, Q) || (v(Q), w.current.layout = Q, C && C(Q), ye(g, Q, x.current));
1117
1120
  }
1118
1121
  }
1119
- }, []), V = O((x) => {
1122
+ }, []), $ = O((b) => {
1120
1123
  const {
1121
1124
  layout: z,
1122
1125
  panelDataArray: C
1123
1126
  } = w.current, {
1124
1127
  panelSize: d
1125
- } = de(C, x, z);
1126
- return E(d != null, `Panel size not found for panel "${x.id}"`), d;
1127
- }, []), A = O((x, z) => {
1128
+ } = de(C, b, z);
1129
+ return E(d != null, `Panel size not found for panel "${b.id}"`), d;
1130
+ }, []), A = O((b, z) => {
1128
1131
  const {
1129
1132
  panelDataArray: C
1130
- } = w.current, d = ve(C, x);
1131
- return br({
1133
+ } = w.current, d = ve(C, b);
1134
+ return xr({
1132
1135
  defaultSize: z,
1133
1136
  dragState: m,
1134
1137
  layout: S,
1135
1138
  panelData: C,
1136
1139
  panelIndex: d
1137
1140
  });
1138
- }, [m, S]), N = O((x) => {
1141
+ }, [m, S]), N = O((b) => {
1139
1142
  const {
1140
1143
  layout: z,
1141
1144
  panelDataArray: C
@@ -1143,9 +1146,9 @@ function Yt({
1143
1146
  collapsedSize: d = 0,
1144
1147
  collapsible: g,
1145
1148
  panelSize: P
1146
- } = de(C, x, z);
1147
- return E(P != null, `Panel size not found for panel "${x.id}"`), g === !0 && le(P, d);
1148
- }, []), W = O((x) => {
1149
+ } = de(C, b, z);
1150
+ return E(P != null, `Panel size not found for panel "${b.id}"`), g === !0 && le(P, d);
1151
+ }, []), W = O((b) => {
1149
1152
  const {
1150
1153
  layout: z,
1151
1154
  panelDataArray: C
@@ -1153,13 +1156,13 @@ function Yt({
1153
1156
  collapsedSize: d = 0,
1154
1157
  collapsible: g,
1155
1158
  panelSize: P
1156
- } = de(C, x, z);
1157
- return E(P != null, `Panel size not found for panel "${x.id}"`), !g || ge(P, d) > 0;
1158
- }, []), $ = O((x) => {
1159
+ } = de(C, b, z);
1160
+ return E(P != null, `Panel size not found for panel "${b.id}"`), !g || ge(P, d) > 0;
1161
+ }, []), V = O((b) => {
1159
1162
  const {
1160
1163
  panelDataArray: z
1161
1164
  } = w.current;
1162
- z.push(x), z.sort((C, d) => {
1165
+ z.push(b), z.sort((C, d) => {
1163
1166
  const g = C.order, P = d.order;
1164
1167
  return g == null && P == null ? 0 : g == null ? -1 : P == null ? 1 : g - P;
1165
1168
  }), w.current.panelDataArrayChanged = !0, D();
@@ -1168,7 +1171,7 @@ function Yt({
1168
1171
  if (w.current.panelDataArrayChanged) {
1169
1172
  w.current.panelDataArrayChanged = !1;
1170
1173
  const {
1171
- autoSaveId: x,
1174
+ autoSaveId: b,
1172
1175
  onLayout: z,
1173
1176
  storage: C
1174
1177
  } = M.current, {
@@ -1176,26 +1179,26 @@ function Yt({
1176
1179
  panelDataArray: g
1177
1180
  } = w.current;
1178
1181
  let P = null;
1179
- if (x) {
1180
- const q = Pr(x, g, C);
1182
+ if (b) {
1183
+ const q = Pr(b, g, C);
1181
1184
  q && (I.current = new Map(Object.entries(q.expandToSizes)), P = q.layout);
1182
1185
  }
1183
- P == null && (P = xr({
1186
+ P == null && (P = br({
1184
1187
  panelDataArray: g
1185
1188
  }));
1186
1189
  const L = St({
1187
1190
  layout: P,
1188
1191
  panelConstraints: g.map((q) => q.constraints)
1189
1192
  });
1190
- yt(d, L) || (v(L), w.current.layout = L, z && z(L), ye(g, L, b.current));
1193
+ yt(d, L) || (v(L), w.current.layout = L, z && z(L), ye(g, L, x.current));
1191
1194
  }
1192
1195
  }), me(() => {
1193
- const x = w.current;
1196
+ const b = w.current;
1194
1197
  return () => {
1195
- x.layout = [];
1198
+ b.layout = [];
1196
1199
  };
1197
1200
  }, []);
1198
- const T = O((x) => {
1201
+ const T = O((b) => {
1199
1202
  let z = !1;
1200
1203
  const C = h.current;
1201
1204
  return C && window.getComputedStyle(C, null).getPropertyValue("direction") === "rtl" && (z = !0), function(g) {
@@ -1214,11 +1217,11 @@ function Yt({
1214
1217
  panelDataArray: Ce
1215
1218
  } = w.current, {
1216
1219
  initialLayout: Ne
1217
- } = q ?? {}, Oe = qt(oe, x, P);
1218
- let Q = Sr(g, x, L, q, ie, P);
1220
+ } = q ?? {}, Oe = qt(oe, b, P);
1221
+ let Q = Sr(g, b, L, q, ie, P);
1219
1222
  const ut = L === "horizontal";
1220
1223
  ut && z && (Q = -Q);
1221
- const Sn = Ce.map((xn) => xn.constraints), Ee = Ie({
1224
+ const Sn = Ce.map((bn) => bn.constraints), Ee = Ie({
1222
1225
  delta: Q,
1223
1226
  initialLayout: Ne ?? ee,
1224
1227
  panelConstraints: Sn,
@@ -1226,9 +1229,9 @@ function Yt({
1226
1229
  prevLayout: ee,
1227
1230
  trigger: Lt(g) ? "keyboard" : "mouse-or-touch"
1228
1231
  }), dt = !Le(ee, Ee);
1229
- (_t(g) || kt(g)) && R.current != Q && (R.current = Q, !dt && Q !== 0 ? ut ? Ye(x, Q < 0 ? Ht : Vt) : Ye(x, Q < 0 ? $t : Ft) : Ye(x, 0)), dt && (v(Ee), w.current.layout = Ee, F && F(Ee), ye(Ce, Ee, b.current));
1232
+ (_t(g) || kt(g)) && R.current != Q && (R.current = Q, !dt && Q !== 0 ? ut ? Ye(b, Q < 0 ? Ht : $t) : Ye(b, Q < 0 ? Vt : Ft) : Ye(b, 0)), dt && (v(Ee), w.current.layout = Ee, F && F(Ee), ye(Ce, Ee, x.current));
1230
1233
  };
1231
- }, []), H = O((x, z) => {
1234
+ }, []), H = O((b, z) => {
1232
1235
  const {
1233
1236
  onLayout: C
1234
1237
  } = M.current, {
@@ -1237,9 +1240,9 @@ function Yt({
1237
1240
  } = w.current, P = g.map((ee) => ee.constraints), {
1238
1241
  panelSize: L,
1239
1242
  pivotIndices: q
1240
- } = de(g, x, d);
1241
- E(L != null, `Panel size not found for panel "${x.id}"`);
1242
- const ie = ve(g, x) === g.length - 1 ? L - z : z - L, F = Ie({
1243
+ } = de(g, b, d);
1244
+ E(L != null, `Panel size not found for panel "${b.id}"`);
1245
+ const ie = ve(g, b) === g.length - 1 ? L - z : z - L, F = Ie({
1243
1246
  delta: ie,
1244
1247
  initialLayout: d,
1245
1248
  panelConstraints: P,
@@ -1247,8 +1250,8 @@ function Yt({
1247
1250
  prevLayout: d,
1248
1251
  trigger: "imperative-api"
1249
1252
  });
1250
- Le(d, F) || (v(F), w.current.layout = F, C && C(F), ye(g, F, b.current));
1251
- }, []), Y = O((x, z) => {
1253
+ Le(d, F) || (v(F), w.current.layout = F, C && C(F), ye(g, F, x.current));
1254
+ }, []), Y = O((b, z) => {
1252
1255
  const {
1253
1256
  layout: C,
1254
1257
  panelDataArray: d
@@ -1260,11 +1263,11 @@ function Yt({
1260
1263
  collapsible: q,
1261
1264
  maxSize: oe = 100,
1262
1265
  minSize: ie = 0
1263
- } = x.constraints, {
1266
+ } = b.constraints, {
1264
1267
  panelSize: F
1265
- } = de(d, x, C);
1266
- F != null && (P && q && le(F, g) ? le(g, L) || H(x, L) : F < ie ? H(x, ie) : F > oe && H(x, oe));
1267
- }, [H]), G = O((x, z) => {
1268
+ } = de(d, b, C);
1269
+ F != null && (P && q && le(F, g) ? le(g, L) || H(b, L) : F < ie ? H(b, ie) : F > oe && H(b, oe));
1270
+ }, [H]), G = O((b, z) => {
1268
1271
  const {
1269
1272
  direction: C
1270
1273
  } = M.current, {
@@ -1272,50 +1275,50 @@ function Yt({
1272
1275
  } = w.current;
1273
1276
  if (!h.current)
1274
1277
  return;
1275
- const g = Be(x, h.current);
1276
- E(g, `Drag handle element not found for id "${x}"`);
1278
+ const g = Be(b, h.current);
1279
+ E(g, `Drag handle element not found for id "${b}"`);
1277
1280
  const P = Gt(C, z);
1278
1281
  y({
1279
- dragHandleId: x,
1282
+ dragHandleId: b,
1280
1283
  dragHandleRect: g.getBoundingClientRect(),
1281
1284
  initialCursorPosition: P,
1282
1285
  initialLayout: d
1283
1286
  });
1284
1287
  }, []), re = O(() => {
1285
1288
  y(null);
1286
- }, []), he = O((x) => {
1289
+ }, []), he = O((b) => {
1287
1290
  const {
1288
1291
  panelDataArray: z
1289
- } = w.current, C = ve(z, x);
1290
- C >= 0 && (z.splice(C, 1), delete b.current[x.id], w.current.panelDataArrayChanged = !0, D());
1292
+ } = w.current, C = ve(z, b);
1293
+ C >= 0 && (z.splice(C, 1), delete x.current[b.id], w.current.panelDataArrayChanged = !0, D());
1291
1294
  }, [D]), se = U(() => ({
1292
1295
  collapsePanel: X,
1293
1296
  direction: r,
1294
1297
  dragState: m,
1295
1298
  expandPanel: j,
1296
- getPanelSize: V,
1299
+ getPanelSize: $,
1297
1300
  getPanelStyle: A,
1298
1301
  groupId: c,
1299
1302
  isPanelCollapsed: N,
1300
1303
  isPanelExpanded: W,
1301
1304
  reevaluatePanelConstraints: Y,
1302
- registerPanel: $,
1305
+ registerPanel: V,
1303
1306
  registerResizeHandle: T,
1304
1307
  resizePanel: H,
1305
1308
  startDragging: G,
1306
1309
  stopDragging: re,
1307
1310
  unregisterPanel: he,
1308
1311
  panelGroupElement: h.current
1309
- }), [X, m, r, j, V, A, c, N, W, Y, $, T, H, G, re, he]), ae = {
1312
+ }), [X, m, r, j, $, A, c, N, W, Y, V, T, H, G, re, he]), ae = {
1310
1313
  display: "flex",
1311
1314
  flexDirection: r === "horizontal" ? "row" : "column",
1312
1315
  height: "100%",
1313
1316
  overflow: "hidden",
1314
1317
  width: "100%"
1315
1318
  };
1316
- return be($e.Provider, {
1319
+ return xe(Ve.Provider, {
1317
1320
  value: se
1318
- }, be(p, {
1321
+ }, xe(p, {
1319
1322
  ...u,
1320
1323
  children: t,
1321
1324
  className: n,
@@ -1331,7 +1334,7 @@ function Yt({
1331
1334
  [K.groupId]: c
1332
1335
  }));
1333
1336
  }
1334
- const Er = Ve((e, t) => be(Yt, {
1337
+ const Er = $e((e, t) => xe(Yt, {
1335
1338
  ...e,
1336
1339
  forwardedRef: t
1337
1340
  }));
@@ -1416,8 +1419,8 @@ function Rr({
1416
1419
  Z(() => {
1417
1420
  D.current.onClick = s, D.current.onDragging = l, D.current.onPointerDown = f, D.current.onPointerUp = p;
1418
1421
  });
1419
- const b = nt($e);
1420
- if (b === null)
1422
+ const x = nt(Ve);
1423
+ if (x === null)
1421
1424
  throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
1422
1425
  const {
1423
1426
  direction: I,
@@ -1426,7 +1429,7 @@ function Rr({
1426
1429
  startDragging: w,
1427
1430
  stopDragging: X,
1428
1431
  panelGroupElement: j
1429
- } = b, V = st(i), [A, N] = ue("inactive"), [W, $] = ue(!1), [T, H] = ue(null), Y = B({
1432
+ } = x, $ = st(i), [A, N] = ue("inactive"), [W, V] = ue(!1), [T, H] = ue(null), Y = B({
1430
1433
  state: A
1431
1434
  });
1432
1435
  me(() => {
@@ -1435,10 +1438,10 @@ function Rr({
1435
1438
  if (n)
1436
1439
  H(null);
1437
1440
  else {
1438
- const se = M(V);
1441
+ const se = M($);
1439
1442
  H(() => se);
1440
1443
  }
1441
- }, [n, V, M]);
1444
+ }, [n, $, M]);
1442
1445
  const G = (y = r == null ? void 0 : r.coarse) !== null && y !== void 0 ? y : 15, re = (S = r == null ? void 0 : r.fine) !== null && S !== void 0 ? S : 5;
1443
1446
  return Z(() => {
1444
1447
  if (n || T == null)
@@ -1446,7 +1449,7 @@ function Rr({
1446
1449
  const se = v.current;
1447
1450
  E(se, "Element ref not attached");
1448
1451
  let ae = !1;
1449
- return dr(V, se, I, {
1452
+ return dr($, se, I, {
1450
1453
  coarse: G,
1451
1454
  fine: re
1452
1455
  }, (z, C, d) => {
@@ -1456,7 +1459,7 @@ function Rr({
1456
1459
  }
1457
1460
  switch (z) {
1458
1461
  case "down": {
1459
- N("drag"), ae = !1, E(d, 'Expected event to be defined for "down" action'), w(V, d);
1462
+ N("drag"), ae = !1, E(d, 'Expected event to be defined for "down" action'), w($, d);
1460
1463
  const {
1461
1464
  onDragging: g,
1462
1465
  onPointerDown: P
@@ -1483,21 +1486,21 @@ function Rr({
1483
1486
  }
1484
1487
  }
1485
1488
  });
1486
- }, [G, I, n, re, M, V, T, w, X]), Ir({
1489
+ }, [G, I, n, re, M, $, T, w, X]), Ir({
1487
1490
  disabled: n,
1488
- handleId: V,
1491
+ handleId: $,
1489
1492
  resizeHandler: T,
1490
1493
  panelGroupElement: j
1491
- }), be(h, {
1494
+ }), xe(h, {
1492
1495
  ...m,
1493
1496
  children: e,
1494
1497
  className: t,
1495
1498
  id: i,
1496
1499
  onBlur: () => {
1497
- $(!1), o == null || o();
1500
+ V(!1), o == null || o();
1498
1501
  },
1499
1502
  onFocus: () => {
1500
- $(!0), a == null || a();
1503
+ V(!0), a == null || a();
1501
1504
  },
1502
1505
  ref: v,
1503
1506
  role: "separator",
@@ -1515,7 +1518,7 @@ function Rr({
1515
1518
  [K.resizeHandle]: "",
1516
1519
  [K.resizeHandleActive]: A === "drag" ? "pointer" : W ? "keyboard" : void 0,
1517
1520
  [K.resizeHandleEnabled]: !n,
1518
- [K.resizeHandleId]: V,
1521
+ [K.resizeHandleId]: $,
1519
1522
  [K.resizeHandleState]: A
1520
1523
  });
1521
1524
  }
@@ -1596,19 +1599,19 @@ function Jt({
1596
1599
  readQueryKey: t,
1597
1600
  setRunSql: n
1598
1601
  }) {
1599
- Xn(), setTimeout(() => {
1602
+ Gn(), setTimeout(() => {
1600
1603
  e.resetQueries({ queryKey: t(), exact: !0 }), n(!0);
1601
1604
  }, 0);
1602
1605
  }
1603
1606
  const Dr = 300;
1604
1607
  function Ar({ className: e }, t) {
1605
- const n = te((b) => b.card.sql), r = te((b) => b.sqlGen), i = te((b) => b.card), o = jt(), { setCardSql: s, setSqlGen: l, setRunSql: a } = Ct(), f = U(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: p } = rt(f), u = wt(), c = B(p);
1608
+ const n = te((x) => x.card.sql), r = te((x) => x.sqlGen), i = te((x) => x.card), o = jt(), { setCardSql: s, setSqlGen: l, setRunSql: a } = wt(), f = U(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: p } = rt(f), u = Ct(), c = B(p);
1606
1609
  c.current = p;
1607
1610
  const h = B(r);
1608
1611
  h.current = r;
1609
1612
  const m = O(
1610
- (b) => {
1611
- s(b);
1613
+ (x) => {
1614
+ s(x);
1612
1615
  },
1613
1616
  [s]
1614
1617
  ), {
@@ -1622,8 +1625,8 @@ function Ar({ className: e }, t) {
1622
1625
  delay: Dr
1623
1626
  });
1624
1627
  Z(() => Dt(v), [v]);
1625
- function D(b) {
1626
- S(b), Fn(h.current) || l({});
1628
+ function D(x) {
1629
+ S(x), Un(h.current) || l({});
1627
1630
  }
1628
1631
  return /* @__PURE__ */ _("div", { className: "relative h-full w-full", children: /* @__PURE__ */ _(
1629
1632
  Et,
@@ -1637,8 +1640,8 @@ function Ar({ className: e }, t) {
1637
1640
  wrapLines: !0,
1638
1641
  placeholder: "Write your SQL here",
1639
1642
  className: e,
1640
- onKeyDown: (b) => {
1641
- b.key === "Enter" && b.shiftKey && (b.preventDefault(), Jt({
1643
+ onKeyDown: (x) => {
1644
+ x.key === "Enter" && x.shiftKey && (x.preventDefault(), Jt({
1642
1645
  queryClient: u,
1643
1646
  readQueryKey: () => c.current,
1644
1647
  setRunSql: a
@@ -1647,12 +1650,12 @@ function Ar({ className: e }, t) {
1647
1650
  }
1648
1651
  ) });
1649
1652
  }
1650
- const vo = Ve(Ar), Mr = 300, Nr = `# 'data' holds the SQL result.
1653
+ const xo = $e(Ar), Mr = 300, Nr = `# 'data' holds the SQL result.
1651
1654
  # Set 'result' to a list of dicts to replace it, for example:
1652
1655
  # import pandas as pd
1653
1656
  # result = pd.DataFrame(data).to_dict('records')`;
1654
1657
  function Lr({ className: e }, t) {
1655
- const n = te((m) => m.card.python), r = te((m) => m.card), i = jt(), { setCardPython: o, setRunSql: s } = Ct(), l = U(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: a } = rt(l), f = wt(), p = B(a);
1658
+ const n = te((m) => m.card.python), r = te((m) => m.card), i = jt(), { setCardPython: o, setRunSql: s } = wt(), l = U(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: a } = rt(l), f = Ct(), p = B(a);
1656
1659
  p.current = a;
1657
1660
  const { value: u, onChange: c, flush: h } = Qt({
1658
1661
  storeValue: n,
@@ -1685,10 +1688,10 @@ function Lr({ className: e }, t) {
1685
1688
  }
1686
1689
  );
1687
1690
  }
1688
- const So = Ve(Lr);
1691
+ const zo = $e(Lr);
1689
1692
  function _r({ card: e }) {
1690
- var se, ae, x, z, C;
1691
- const t = In(), [n, r] = ue({}), { authToken: i } = Rn(), o = Kn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = U(
1693
+ var se, ae, b, z, C;
1694
+ const t = In(), [n, r] = ue({}), { authToken: i } = Rn(), o = Wn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = U(
1692
1695
  () => Dn(s),
1693
1696
  [s]
1694
1697
  ), a = te((d) => d.frame), f = te(
@@ -1716,7 +1719,7 @@ function _r({ card: e }) {
1716
1719
  (g) => (g == null ? void 0 : g.id) === e.id
1717
1720
  );
1718
1721
  return d < 0 ? -1 : Qe(e, d);
1719
- }, [v, e]), b = U(() => S !== "multiple" || D < 0 ? e.type : _e(
1722
+ }, [v, e]), x = U(() => S !== "multiple" || D < 0 ? e.type : _e(
1720
1723
  e,
1721
1724
  D,
1722
1725
  y == null ? void 0 : y.slots
@@ -1728,37 +1731,37 @@ function _r({ card: e }) {
1728
1731
  python: "",
1729
1732
  config: void 0,
1730
1733
  queryConfig: void 0
1731
- } : b !== e.type ? { ...e, type: b } : e, [e, b, S]), { data: R, effectiveCardConfig: M } = rt(I), w = An(), X = Ge((d) => d.dashboard.filters), j = Ge((d) => d.filterValues), V = Ge((d) => d.selectedSheetId), A = U(
1734
+ } : x !== e.type ? { ...e, type: x } : e, [e, x, S]), { data: R, effectiveCardConfig: M } = rt(I), w = An(), X = Ge((d) => d.dashboard.filters), j = Ge((d) => d.filterValues), $ = Ge((d) => d.selectedSheetId), A = U(
1732
1735
  () => Mn({
1733
1736
  card: e,
1734
- sheetId: V || "",
1737
+ sheetId: $ || "",
1735
1738
  inlineFilterValues: f,
1736
1739
  setInlineFilterValue: (d) => p(e.id, d),
1737
1740
  removeInlineFilterValue: (d) => u(e.id, d)
1738
1741
  }),
1739
1742
  [
1740
1743
  e,
1741
- V,
1744
+ $,
1742
1745
  f,
1743
1746
  p,
1744
1747
  u
1745
1748
  ]
1746
1749
  ), { cardFilters: N, cardFilterValues: W } = U(
1747
- () => Nn({
1750
+ () => Xn({
1748
1751
  card: e,
1749
1752
  transientContexts: w,
1750
1753
  filters: X,
1751
1754
  filterValues: j,
1752
- selectedSheetId: V
1755
+ selectedSheetId: $
1753
1756
  }),
1754
1757
  [
1755
1758
  e,
1756
1759
  w,
1757
1760
  X,
1758
1761
  j,
1759
- V
1762
+ $
1760
1763
  ]
1761
- ), $ = O(
1764
+ ), V = O(
1762
1765
  (d, g) => {
1763
1766
  const P = jn(g);
1764
1767
  r((L) => ({
@@ -1767,7 +1770,7 @@ function _r({ card: e }) {
1767
1770
  }));
1768
1771
  },
1769
1772
  []
1770
- ), T = (x = c.customCardPreferences) == null ? void 0 : x.componentName, H = T ? h(T) : null, Y = Ln(
1773
+ ), T = (b = c.customCardPreferences) == null ? void 0 : b.componentName, H = T ? h(T) : null, Y = Nn(
1771
1774
  (z = c.customCardPreferences) == null ? void 0 : z.settings,
1772
1775
  c
1773
1776
  ), G = U(
@@ -1783,8 +1786,8 @@ function _r({ card: e }) {
1783
1786
  ),
1784
1787
  [G, y == null ? void 0 : y.slots]
1785
1788
  ), he = U(
1786
- () => _n(
1787
- S === "multiple" ? kn({
1789
+ () => Ln(
1790
+ S === "multiple" ? _n({
1788
1791
  slotOrderedCards: G,
1789
1792
  multiInputData: n,
1790
1793
  valueFormatPreferences: t
@@ -1821,11 +1824,11 @@ function _r({ card: e }) {
1821
1824
  params: o,
1822
1825
  theme: l,
1823
1826
  settings: Y,
1824
- cardMetadata: Tn({
1827
+ cardMetadata: kn({
1825
1828
  card: e,
1826
1829
  dataMetadata: R == null ? void 0 : R.metadata
1827
1830
  }),
1828
- onDataChange: $,
1831
+ onDataChange: V,
1829
1832
  data: (R == null ? void 0 : R.records) || [],
1830
1833
  columns: (R == null ? void 0 : R.columns) || [],
1831
1834
  formatTemporalBucketValue: he,
@@ -1846,9 +1849,9 @@ function _r({ card: e }) {
1846
1849
  y == null ? void 0 : y.slots
1847
1850
  );
1848
1851
  return /* @__PURE__ */ _(
1849
- Hn,
1852
+ Tn,
1850
1853
  {
1851
- onDataChange: $,
1854
+ onDataChange: V,
1852
1855
  card: d,
1853
1856
  effectiveCardType: L
1854
1857
  },
@@ -1859,8 +1862,8 @@ function _r({ card: e }) {
1859
1862
  H,
1860
1863
  {
1861
1864
  editing: !0,
1862
- onDataChange: $,
1863
- ...Vn({
1865
+ onDataChange: V,
1866
+ ...Hn({
1864
1867
  configCard: c,
1865
1868
  slotOrderedCards: G,
1866
1869
  slotTypes: re,
@@ -1884,7 +1887,7 @@ function _r({ card: e }) {
1884
1887
  (C = c.customCardPreferences) == null ? void 0 : C.componentName
1885
1888
  ) }) : null;
1886
1889
  }
1887
- const xo = Pn(_r);
1890
+ const Po = Pn(_r);
1888
1891
  var Zt = "Toggle", en = k.forwardRef((e, t) => {
1889
1892
  const { pressed: n, defaultPressed: r, onPressedChange: i, ...o } = e, [s, l] = It({
1890
1893
  prop: n,
@@ -1909,7 +1912,7 @@ var Zt = "Toggle", en = k.forwardRef((e, t) => {
1909
1912
  });
1910
1913
  en.displayName = Zt;
1911
1914
  var tn = en;
1912
- const kr = Bn(
1915
+ const kr = Vn(
1913
1916
  "inline-flex items-center justify-center rounded-control text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1914
1917
  {
1915
1918
  variants: {
@@ -1942,9 +1945,9 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
1942
1945
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
1943
1946
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
1944
1947
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
1945
- }, we = "Slider", [Ze, Hr, Vr] = On(we), [sn] = qn(we, [
1946
- Vr
1947
- ]), [$r, qe] = sn(we), ln = k.forwardRef(
1948
+ }, we = "Slider", [Ze, Hr, $r] = Kn(we), [sn] = Fn(we, [
1949
+ $r
1950
+ ]), [Vr, qe] = sn(we), ln = k.forwardRef(
1948
1951
  (e, t) => {
1949
1952
  const {
1950
1953
  name: n,
@@ -1963,7 +1966,7 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
1963
1966
  inverted: h = !1,
1964
1967
  form: m,
1965
1968
  ...y
1966
- } = e, S = k.useRef(/* @__PURE__ */ new Set()), v = k.useRef(0), b = s === "horizontal" ? Fr : Kr, [I = [], R] = It({
1969
+ } = e, S = k.useRef(/* @__PURE__ */ new Set()), v = k.useRef(0), x = s === "horizontal" ? Fr : Kr, [I = [], R] = It({
1967
1970
  prop: p,
1968
1971
  defaultProp: f,
1969
1972
  onChange: (A) => {
@@ -1973,17 +1976,17 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
1973
1976
  }), M = k.useRef(I);
1974
1977
  function w(A) {
1975
1978
  const N = Ur(I, A);
1976
- V(A, N);
1979
+ $(A, N);
1977
1980
  }
1978
1981
  function X(A) {
1979
- V(A, v.current);
1982
+ $(A, v.current);
1980
1983
  }
1981
1984
  function j() {
1982
1985
  const A = M.current[v.current];
1983
1986
  I[v.current] !== A && c(I);
1984
1987
  }
1985
- function V(A, N, { commit: W } = { commit: !1 }) {
1986
- const $ = jr(o), T = Qr(Math.round((A - r) / o) * o + r, $), H = Rt(T, [r, i]);
1988
+ function $(A, N, { commit: W } = { commit: !1 }) {
1989
+ const V = jr(o), T = Qr(Math.round((A - r) / o) * o + r, V), H = Rt(T, [r, i]);
1987
1990
  R((Y = []) => {
1988
1991
  const G = Or(Y, H, N);
1989
1992
  if (Yr(G, a * o)) {
@@ -1995,7 +1998,7 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
1995
1998
  });
1996
1999
  }
1997
2000
  return /* @__PURE__ */ _(
1998
- $r,
2001
+ Vr,
1999
2002
  {
2000
2003
  scope: e.__scopeSlider,
2001
2004
  name: n,
@@ -2008,7 +2011,7 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2008
2011
  orientation: s,
2009
2012
  form: m,
2010
2013
  children: /* @__PURE__ */ _(Ze.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ _(Ze.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ _(
2011
- b,
2014
+ x,
2012
2015
  {
2013
2016
  "aria-disabled": l,
2014
2017
  "data-disabled": l ? "" : void 0,
@@ -2023,12 +2026,12 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2023
2026
  onSlideStart: l ? void 0 : w,
2024
2027
  onSlideMove: l ? void 0 : X,
2025
2028
  onSlideEnd: l ? void 0 : j,
2026
- onHomeKeyDown: () => !l && V(r, 0, { commit: !0 }),
2027
- onEndKeyDown: () => !l && V(i, I.length - 1, { commit: !0 }),
2029
+ onHomeKeyDown: () => !l && $(r, 0, { commit: !0 }),
2030
+ onEndKeyDown: () => !l && $(i, I.length - 1, { commit: !0 }),
2028
2031
  onStepKeyDown: ({ event: A, direction: N }) => {
2029
2032
  if (!l) {
2030
2033
  const T = nn.includes(A.key) || A.shiftKey && rn.includes(A.key) ? 10 : 1, H = v.current, Y = I[H], G = o * T * N;
2031
- V(Y + G, H, { commit: !0 });
2034
+ $(Y + G, H, { commit: !0 });
2032
2035
  }
2033
2036
  }
2034
2037
  }
@@ -2055,10 +2058,10 @@ var [an, cn] = sn(we, {
2055
2058
  onSlideEnd: a,
2056
2059
  onStepKeyDown: f,
2057
2060
  ...p
2058
- } = e, [u, c] = k.useState(null), h = Pe(t, (b) => c(b)), m = k.useRef(void 0), y = Gn(i), S = y === "ltr", v = S && !o || !S && o;
2059
- function D(b) {
2061
+ } = e, [u, c] = k.useState(null), h = Pe(t, (x) => c(x)), m = k.useRef(void 0), y = Bn(i), S = y === "ltr", v = S && !o || !S && o;
2062
+ function D(x) {
2060
2063
  const I = m.current || u.getBoundingClientRect(), R = [0, I.width], w = ct(R, v ? [n, r] : [r, n]);
2061
- return m.current = I, w(b - I.left);
2064
+ return m.current = I, w(x - I.left);
2062
2065
  }
2063
2066
  return /* @__PURE__ */ _(
2064
2067
  an,
@@ -2079,20 +2082,20 @@ var [an, cn] = sn(we, {
2079
2082
  ...p.style,
2080
2083
  "--radix-slider-thumb-transform": "translateX(-50%)"
2081
2084
  },
2082
- onSlideStart: (b) => {
2083
- const I = D(b.clientX);
2085
+ onSlideStart: (x) => {
2086
+ const I = D(x.clientX);
2084
2087
  s == null || s(I);
2085
2088
  },
2086
- onSlideMove: (b) => {
2087
- const I = D(b.clientX);
2089
+ onSlideMove: (x) => {
2090
+ const I = D(x.clientX);
2088
2091
  l == null || l(I);
2089
2092
  },
2090
2093
  onSlideEnd: () => {
2091
2094
  m.current = void 0, a == null || a();
2092
2095
  },
2093
- onStepKeyDown: (b) => {
2094
- const R = on[v ? "from-left" : "from-right"].includes(b.key);
2095
- f == null || f({ event: b, direction: R ? -1 : 1 });
2096
+ onStepKeyDown: (x) => {
2097
+ const R = on[v ? "from-left" : "from-right"].includes(x.key);
2098
+ f == null || f({ event: x, direction: R ? -1 : 1 });
2096
2099
  }
2097
2100
  }
2098
2101
  )
@@ -2112,8 +2115,8 @@ var [an, cn] = sn(we, {
2112
2115
  ...f
2113
2116
  } = e, p = k.useRef(null), u = Pe(t, p), c = k.useRef(void 0), h = !i;
2114
2117
  function m(y) {
2115
- const S = c.current || p.current.getBoundingClientRect(), v = [0, S.height], b = ct(v, h ? [r, n] : [n, r]);
2116
- return c.current = S, b(y - S.top);
2118
+ const S = c.current || p.current.getBoundingClientRect(), v = [0, S.height], x = ct(v, h ? [r, n] : [n, r]);
2119
+ return c.current = S, x(y - S.top);
2117
2120
  }
2118
2121
  return /* @__PURE__ */ _(
2119
2122
  an,
@@ -2234,7 +2237,7 @@ var tt = "SliderThumb", mn = k.forwardRef(
2234
2237
  }
2235
2238
  ), Br = k.forwardRef(
2236
2239
  (e, t) => {
2237
- const { __scopeSlider: n, index: r, name: i, ...o } = e, s = qe(tt, n), l = cn(tt, n), [a, f] = k.useState(null), p = Pe(t, (D) => f(D)), u = a ? s.form || !!a.closest("form") : !0, c = Un(a), h = s.values[r], m = h === void 0 ? 0 : hn(h, s.min, s.max), y = Gr(r, s.values.length), S = c == null ? void 0 : c[l.size], v = S ? Wr(S, m, l.direction) : 0;
2240
+ const { __scopeSlider: n, index: r, name: i, ...o } = e, s = qe(tt, n), l = cn(tt, n), [a, f] = k.useState(null), p = Pe(t, (D) => f(D)), u = a ? s.form || !!a.closest("form") : !0, c = qn(a), h = s.values[r], m = h === void 0 ? 0 : hn(h, s.min, s.max), y = Gr(r, s.values.length), S = c == null ? void 0 : c[l.size], v = S ? Wr(S, m, l.direction) : 0;
2238
2241
  return k.useEffect(() => {
2239
2242
  if (a)
2240
2243
  return s.thumbs.add(a), () => {
@@ -2286,7 +2289,7 @@ var tt = "SliderThumb", mn = k.forwardRef(
2286
2289
  mn.displayName = tt;
2287
2290
  var qr = "RadioBubbleInput", gn = k.forwardRef(
2288
2291
  ({ __scopeSlider: e, value: t, ...n }, r) => {
2289
- const i = k.useRef(null), o = Pe(i, r), s = Wn(t);
2292
+ const i = k.useRef(null), o = Pe(i, r), s = On(t);
2290
2293
  return k.useEffect(() => {
2291
2294
  const l = i.current;
2292
2295
  if (!l) return;
@@ -2368,17 +2371,17 @@ const to = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ De(
2368
2371
  }
2369
2372
  ));
2370
2373
  to.displayName = yn.displayName;
2371
- const no = bt(null), ro = $n();
2374
+ const no = xt(null), ro = $n();
2372
2375
  function vn(e) {
2373
2376
  const t = nt(no) ?? ro;
2374
2377
  return Cn(t.subscribe, () => e(t.get()), () => e(null));
2375
2378
  }
2376
- function bo(e) {
2379
+ function wo(e) {
2377
2380
  return vn(
2378
2381
  O((t) => (t == null ? void 0 : t.slot.zone) === e ? t.outcome : null, [e])
2379
2382
  );
2380
2383
  }
2381
- function zo(e, t, n) {
2384
+ function Co(e, t, n) {
2382
2385
  return vn(
2383
2386
  O(
2384
2387
  (r) => (r == null ? void 0 : r.slot.zone) !== e || r.outcome.kind === "refused" ? null : r.slot.beforeId === t ? "top" : !r.slot.beforeId && n ? "bottom" : null,
@@ -2387,17 +2390,17 @@ function zo(e, t, n) {
2387
2390
  );
2388
2391
  }
2389
2392
  export {
2390
- xo as E,
2391
- yo as F,
2393
+ Po as E,
2394
+ bo as F,
2392
2395
  tr as P,
2393
- vo as S,
2396
+ xo as S,
2394
2397
  Tr as T,
2395
2398
  Er as a,
2396
2399
  Rr as b,
2397
- So as c,
2400
+ zo as c,
2398
2401
  to as d,
2399
- bo as e,
2400
- zo as f,
2402
+ wo as e,
2403
+ Co as f,
2401
2404
  no as g,
2402
2405
  Jt as r,
2403
2406
  jt as u