react-semaphor 0.1.568 → 0.1.570

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 (191) hide show
  1. package/README.md +0 -7
  2. package/dist/analytics-protocol/index.js +434 -454
  3. package/dist/appearance/index.js +6 -3
  4. package/dist/appearance-runtime/index.js +1 -1
  5. package/dist/assistant-context/index.js +1 -1
  6. package/dist/brand-studio/index.js +572 -436
  7. package/dist/briefings/index.js +4 -4
  8. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  9. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  10. package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
  11. package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-DCYD-6Fr.js} +2 -2
  12. package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
  13. package/dist/chunks/brand-B4BdpAB_.js +54 -0
  14. package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-0VvKmRst.js} +992 -991
  15. package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-PtcDWvkN.js} +252 -253
  16. package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-DxGIr1vZ.js} +1 -1
  17. package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-B-quOOOQ.js} +253 -253
  18. package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-Caodx80b.js} +288 -285
  19. package/dist/chunks/dashboard-json-Ct-AGDHF.js +66 -0
  20. package/dist/chunks/{dates-CKO05ino.js → dates-B9mL8BHE.js} +16 -15
  21. package/dist/chunks/edit-Bpdh_P_a.js +226 -0
  22. package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-DeDTuYB5.js} +2257 -2270
  23. package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-BSY33ro5.js} +1440 -1301
  24. package/dist/chunks/filter-value-text-DvvSNlho.js +146 -0
  25. package/dist/chunks/index-BVKzKl5d.js +90 -0
  26. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  27. package/dist/chunks/{index-CPNZW0mu.js → index-y3HUzRNk.js} +76 -77
  28. package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-8rR-LPTk.js} +1 -1
  29. package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C1-uTgjR.js} +1 -1
  30. package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
  31. package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
  32. package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
  33. package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
  34. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  35. package/dist/chunks/{palette-4vf2BEEg.js → palette-a5FCZKFI.js} +1 -1
  36. package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → pickers-DkqmtnTL.js} +352 -290
  37. package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.js +55 -0
  38. package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
  39. package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
  40. package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Yvhv3WX2.js} +95 -97
  41. package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
  42. package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-Lkbwycwe.js} +5491 -5683
  43. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  44. package/dist/chunks/{save-D6pHmSSP.js → save-D985VvYp.js} +1 -1
  45. package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-DC_TEd6y.js} +6 -6
  46. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  47. package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-ByFvqHEO.js} +35916 -36001
  48. package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-CjoVaK6J.js} +64 -66
  49. package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-C0hekXiI.js} +332 -333
  50. package/dist/chunks/{code-editor-DJNOsgJH.js → style-sheet-parts-C7qGZuH1.js} +2402 -2040
  51. package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-CP8zSOhj.js} +1 -1
  52. package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-CqbJjIuu.js} +18 -18
  53. package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
  54. package/dist/chunks/{upload-Cf3wXZT8.js → upload-CiGNKJ_0.js} +1 -1
  55. package/dist/chunks/validators-B8fpdinG.js +3651 -0
  56. package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-9-huI1h4.js} +4 -4
  57. package/dist/dashboard/index.js +2 -2
  58. package/dist/dashboard-authoring/index.js +1888 -1826
  59. package/dist/format-utils/index.js +230 -231
  60. package/dist/index.js +349 -353
  61. package/dist/layouts/index.js +1 -1
  62. package/dist/report-runtime-context/index.js +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/surfboard/index.js +2 -2
  65. package/dist/types/appearance/index.d.ts +1 -0
  66. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  67. package/dist/types/brand-studio/index.d.ts +1 -1
  68. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  69. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  70. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  71. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  72. package/dist/types/components/surfboard/filter/types.d.ts +5 -4
  73. package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
  74. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  75. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  76. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  77. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  78. package/dist/types/index.js +9 -9
  79. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  80. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  81. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  82. package/dist/types/lib/appearance/index.d.ts +2 -0
  83. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  84. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  85. package/dist/types/lib/appearance/types.d.ts +38 -1
  86. package/dist/types/lib/charts/types.d.ts +6 -2
  87. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  88. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  89. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  90. package/dist/types/lib/download-pdf.d.ts +0 -1
  91. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  92. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  93. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  94. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  95. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  96. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  97. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  98. package/dist/types/lib/types/common-types.d.ts +3 -2
  99. package/dist/types/lib/types/explorer-types.d.ts +2 -2
  100. package/dist/types/lib/types/index.d.ts +1 -1
  101. package/dist/types/lib/types/summary-types.d.ts +0 -5
  102. package/dist/types/lib/utils/card-definition.d.ts +7 -7
  103. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
  104. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  105. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
  106. package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
  107. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  108. package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
  109. package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
  110. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +72 -72
  111. package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
  112. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
  113. package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
  114. package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
  115. package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
  116. package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
  117. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
  118. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
  119. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
  120. package/dist/types/shared/assistant-protocol/context.d.ts +30 -30
  121. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +344 -1772
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  124. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
  125. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +104 -104
  127. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
  128. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  129. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  130. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  131. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  132. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  133. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
  134. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  135. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  136. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  137. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  138. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  139. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +23 -0
  142. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
  143. package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
  144. package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
  145. package/dist/types/shared/format-utils/matrix-continuation.d.ts +10 -10
  146. package/dist/types/shared/temporal/index.d.ts +0 -2
  147. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
  148. package/package.json +7 -26
  149. package/DATA_APP_SDK.md +0 -339
  150. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  151. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  152. package/dist/chunks/assistant-chat-BN5I8KuN.js +0 -8849
  153. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  154. package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
  155. package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
  156. package/dist/chunks/index-CLIro-EG.js +0 -425
  157. package/dist/chunks/index-CuHybtft.js +0 -51
  158. package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
  159. package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
  160. package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
  161. package/dist/chunks/operators-B3zZoskU.js +0 -66
  162. package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
  163. package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
  164. package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
  165. package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
  166. package/dist/chunks/validators-wtjw0aw6.js +0 -3332
  167. package/dist/data-app-sdk/index.js +0 -1412
  168. package/dist/data-app-sdk-adapters/index.js +0 -361
  169. package/dist/data-app-sdk-validation/index.js +0 -1031
  170. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
  171. package/dist/types/data-app-sdk/adapters.d.ts +0 -35
  172. package/dist/types/data-app-sdk/builders.d.ts +0 -62
  173. package/dist/types/data-app-sdk/contracts.d.ts +0 -419
  174. package/dist/types/data-app-sdk/executor.d.ts +0 -5
  175. package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
  176. package/dist/types/data-app-sdk/hooks.d.ts +0 -11
  177. package/dist/types/data-app-sdk/index.d.ts +0 -9
  178. package/dist/types/data-app-sdk/provider.d.ts +0 -8
  179. package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
  180. package/dist/types/data-app-sdk/selection.d.ts +0 -2
  181. package/dist/types/data-app-sdk/validation.d.ts +0 -58
  182. package/dist/types/data-app-sdk-adapters.d.ts +0 -2
  183. package/dist/types/data-app-sdk-validation.d.ts +0 -2
  184. package/dist/types/data-app-sdk.d.ts +0 -2
  185. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
  186. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
  187. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
  188. package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
  189. package/dist/types/shared/temporal/relative-date.d.ts +0 -21
  190. package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
  191. package/src/data-app-sdk/README.md +0 -402
@@ -1,35 +1,34 @@
1
- import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
2
- import { bz as Br, u as k, bA as Fr, bB as $r, bC as ot, bD as Gr, bE as Vr, bF as Hr, bG as jr, bH as qr, bI as zr, aU as Y, aR as xe, bJ as ve, bt as C, bK as Kr, bu as $t, bv as Gt, bx as tt, by as rt, bL as Vt, bM as it, bn as Qr, bN as ne, bO as Wr, bP as Yr, bQ as Ht, bR as Jr, bS as jt, bT as Xr, bw as Zr, bU as ea, bV as I, bW as ta, bX as ra, bY as aa, aC as na, bZ as sa, bf as oa, b_ as ia, bg as da, j as ca, W as la, a6 as Et, i as Be, p as ua, k as Xe, b$ as ma, c0 as ha, Q as pa, c1 as fa, s as ga, c2 as ba, c3 as xa, c4 as va, c5 as ya, c6 as At, c7 as It, c8 as Mt, c9 as wa, bh as Na, ca as Sa, cb as Da, cc as ka, cd as ae, ce as he, cf as Ca, cg as Ea, ch as Aa, ci as Lt, o as Ia, cj as Ma, ck as La, cl as Oa, cm as Pa, cn as _a, co as Ra, cp as Ta, cq as Ua, cr as Ot } from "./semaphor-ready-indicator-BSEdUq40.js";
3
- import { c as ye, B as V, a0 as Ba, a1 as Fa, a2 as at, L as $e, X as qt, n as $a, t as Ga, u as Va, v as Ha, w as ja, x as qa, P as za, a as Ka, d as Qa, z as Wa, o as Ya, p as Ja, q as Xa, I as Za, r as en, e as zt, b as Pt } from "./code-editor-DJNOsgJH.js";
1
+ import { jsx as e, jsxs as o, Fragment as R } from "react/jsx-runtime";
2
+ import { by as Fr, u as k, bz as $r, bA as Gr, bB as ot, bC as Vr, bD as Hr, bE as jr, bF as qr, bG as zr, bH as Kr, aT as Y, aQ as xe, bI as ve, bs as C, bJ as Qr, bt as $t, bu as Gt, bw as tt, bx as rt, bK as Vt, bL as it, bm as Wr, bM as ne, bN as Yr, bO as Jr, bP as Ht, bQ as Xr, bR as jt, bS as Zr, bv as ea, bT as ta, bU as A, bV as ra, bW as aa, bX as na, aB as sa, bY as oa, be as ia, bZ as da, bf as ca, i as la, T as ua, a5 as Et, h as Be, o as ma, j as Xe, b_ as ha, b$ as pa, P as fa, c0 as ga, s as ba, c1 as xa, c2 as va, c3 as ya, c4 as wa, c5 as At, c6 as It, c7 as Mt, c8 as Na, bg as Sa, c9 as Da, ca as ka, cb as Ca, cc as ae, cd as he, ce as Ea, cf as Aa, cg as Ia, ch as Lt, n as Ma, ci as La, cj as Oa, ck as Pa, cl as _a, cm as Ta, cn as Ra, co as Ua, cp as Ba, cq as Ot } from "./semaphor-ready-indicator-ByFvqHEO.js";
3
+ import { c as ye, B as V, a5 as Fa, a6 as $a, a7 as at, L as $e, X as qt, s as Ga, y as Va, z as Ha, A as ja, D as qa, E as za, e as Ka, f as Qa, h as Wa, F as Ya, t as Ja, u as Xa, v as Za, I as en, w as tn, j as zt, g as Pt } from "./style-sheet-parts-C7qGZuH1.js";
4
4
  import * as E from "react";
5
- import Kt, { useMemo as H, useState as N, useEffect as ge, useRef as _t, useLayoutEffect as tn } from "react";
6
- import "./index-CuHybtft.js";
7
- import "./validators-wtjw0aw6.js";
8
- import "./matrix-operation-contract-Eb6elidS.js";
5
+ import Kt, { useMemo as H, useState as N, useEffect as ge, useRef as _t, useLayoutEffect as rn } from "react";
6
+ import { c as be } from "./pickers-DkqmtnTL.js";
7
+ import "./validators-B8fpdinG.js";
8
+ import "./matrix-operation-contract-DCVinw1o.js";
9
9
  import "./analytics-base-schemas-BaIQrEzX.js";
10
- import "zod";
11
10
  import "../value-format-preferences/index.js";
12
- import { c as be } from "./_commonjsHelpers-DimLPMtv.js";
13
- import { u as rn, d as an, l as nn, c as sn, D as on, A as dn, a as cn, j as ln, m as un, V as mn, b as hn, e as pn, S as fn, T as gn, k as bn, i as xn, n as vn, U as yn } from "./dashboard-briefing-launcher-BF89TU2h.js";
14
- import { I as wn } from "./card-filter-builder-BBuB99GZ.js";
15
- import { u as Nn, h as Sn, R as Dn, l as kn } from "./report-preferences-dialog-Mbd-I0wV.js";
16
- import { createPortal as Cn } from "react-dom";
17
- import { eZ as we, e_ as dt, e$ as Qt, o as En } from "./resolve-dashboard-input-context-Du0fjN3h.js";
18
- import { aH as Wt } from "./temporal-input-presentation--2r9BLr0.js";
19
- import { k as nt } from "./stored-dashboard-d3xQYxBD.js";
20
- import { r as An } from "./export-file-format-C-tJsxsf.js";
21
- import { u as In, s as Mn } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
22
- import { z as Yt } from "./bookmark-state-Du3s13_V.js";
23
- import { d as Ln, a as On } from "./bookmark-impact-CJ-65omV.js";
24
- import { S as Pn } from "./save-D6pHmSSP.js";
25
- import { P as _n } from "./palette-4vf2BEEg.js";
11
+ import { u as an, d as nn, l as sn, c as on, D as dn, A as cn, a as ln, j as un, m as mn, V as hn, b as pn, e as fn, S as gn, T as bn, k as xn, i as vn, n as yn, U as wn } from "./dashboard-briefing-launcher-B-quOOOQ.js";
12
+ import { I as Nn } from "./card-filter-builder-0VvKmRst.js";
13
+ import { u as Sn, h as Dn, R as kn, l as Cn } from "./report-preferences-dialog-Yvhv3WX2.js";
14
+ import { createPortal as En } from "react-dom";
15
+ import { f2 as we, f3 as dt, f4 as Qt, o as An } from "./resolve-dashboard-input-context-Lkbwycwe.js";
16
+ import { aH as Wt } from "./temporal-input-presentation-CqbJjIuu.js";
17
+ import { k as nt } from "./stored-dashboard-C0hekXiI.js";
18
+ import { r as In } from "./export-file-format-C-tJsxsf.js";
19
+ import { u as Mn, s as Ln } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
20
+ import { z as Yt } from "./bookmark-state-CflS88gq.js";
21
+ import { d as On, a as Pn } from "./bookmark-impact-DCYD-6Fr.js";
22
+ import { S as _n } from "./save-D985VvYp.js";
23
+ import { P as Tn } from "./paintbrush-aR17Z3C9.js";
24
+ import { P as Rn } from "./palette-a5FCZKFI.js";
26
25
  /**
27
26
  * @license lucide-react v0.453.0 - ISC
28
27
  *
29
28
  * This source code is licensed under the ISC license.
30
29
  * See the LICENSE file in the root directory of this source tree.
31
30
  */
32
- const Rn = ye("Moon", [
31
+ const Un = ye("Moon", [
33
32
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
34
33
  ]);
35
34
  /**
@@ -38,7 +37,7 @@ const Rn = ye("Moon", [
38
37
  * This source code is licensed under the ISC license.
39
38
  * See the LICENSE file in the root directory of this source tree.
40
39
  */
41
- const Tn = ye("ShieldX", [
40
+ const Bn = ye("ShieldX", [
42
41
  [
43
42
  "path",
44
43
  {
@@ -55,7 +54,7 @@ const Tn = ye("ShieldX", [
55
54
  * This source code is licensed under the ISC license.
56
55
  * See the LICENSE file in the root directory of this source tree.
57
56
  */
58
- const Un = ye("Sun", [
57
+ const Fn = ye("Sun", [
59
58
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
60
59
  ["path", { d: "M12 2v2", key: "tus03m" }],
61
60
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -72,7 +71,7 @@ const Un = ye("Sun", [
72
71
  * This source code is licensed under the ISC license.
73
72
  * See the LICENSE file in the root directory of this source tree.
74
73
  */
75
- const Bn = ye("UserPlus", [
74
+ const $n = ye("UserPlus", [
76
75
  ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
77
76
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
78
77
  ["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
@@ -98,10 +97,10 @@ var st = { exports: {} }, Ze = {};
98
97
  * This source code is licensed under the MIT license found in the
99
98
  * LICENSE file in the root directory of this source tree.
100
99
  */
101
- var Rt;
102
- function Fn() {
103
- if (Rt) return Ze;
104
- Rt = 1;
100
+ var Tt;
101
+ function Gn() {
102
+ if (Tt) return Ze;
103
+ Tt = 1;
105
104
  var t = Kt;
106
105
  function n(i, f) {
107
106
  return i === f && (i !== 0 || 1 / i === 1 / f) || i !== i && f !== f;
@@ -149,9 +148,9 @@ var et = {};
149
148
  * This source code is licensed under the MIT license found in the
150
149
  * LICENSE file in the root directory of this source tree.
151
150
  */
152
- var Tt;
153
- function $n() {
154
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && function() {
151
+ var Rt;
152
+ function Vn() {
153
+ return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
155
154
  function t(l, x) {
156
155
  return l === x && (l !== 0 || 1 / l === 1 / x) || l !== l && x !== x;
157
156
  }
@@ -202,18 +201,18 @@ function $n() {
202
201
  et.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
203
202
  }()), et;
204
203
  }
205
- process.env.NODE_ENV === "production" ? st.exports = Fn() : st.exports = $n();
206
- var Gn = st.exports;
204
+ process.env.NODE_ENV === "production" ? st.exports = Gn() : st.exports = Vn();
205
+ var Hn = st.exports;
207
206
  const Fe = ["light", "dark", "system"];
208
- function Vn() {
209
- const { theme: t, setTheme: n } = Br(), a = k(
207
+ function jn() {
208
+ const { theme: t, setTheme: n } = Fr(), a = k(
210
209
  (u) => u.actions.setDashboardTheme
211
210
  );
212
211
  function r() {
213
212
  const u = Fe.includes(t) ? t : "system", m = Fe[(Fe.indexOf(u) + 1) % Fe.length];
214
213
  n(m), a(m);
215
214
  }
216
- const s = t === "light" ? Un : t === "dark" ? Rn : Fr, c = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
215
+ const s = t === "light" ? Fn : t === "dark" ? Un : $r, c = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
217
216
  return /* @__PURE__ */ e(
218
217
  V,
219
218
  {
@@ -228,19 +227,19 @@ function Vn() {
228
227
  }
229
228
  );
230
229
  }
231
- function Hn() {
232
- const { displayPreferences: t, shouldShowElement: n } = $r(), { currentUser: a, userContext: r } = ot(), s = H(
233
- () => Gr(a),
230
+ function qn() {
231
+ const { displayPreferences: t, shouldShowElement: n } = Gr(), { currentUser: a, userContext: r } = ot(), s = H(
232
+ () => Vr(a),
234
233
  [a]
235
234
  ), c = H(() => (m) => s && s[m] !== void 0 && s[m] === !1 ? !1 : n(m), [s, n, t]), u = H(
236
235
  () => {
237
236
  var m, p, y, g, i;
238
237
  return {
239
- canEdit: ((m = r == null ? void 0 : r.permissions) == null ? void 0 : m.canEdit) ?? zr(a),
240
- canUseFilters: ((p = r == null ? void 0 : r.permissions) == null ? void 0 : p.canEdit) ?? qr(a),
241
- canManageDashboards: ((y = r == null ? void 0 : r.permissions) == null ? void 0 : y.canCreateDashboard) ?? jr(a),
242
- canCreateDashboards: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canCreateDashboard) ?? Hr(a),
243
- canAccessVisuals: ((i = r == null ? void 0 : r.permissions) == null ? void 0 : i.canEdit) ?? Vr(a)
238
+ canEdit: ((m = r == null ? void 0 : r.permissions) == null ? void 0 : m.canEdit) ?? Kr(a),
239
+ canUseFilters: ((p = r == null ? void 0 : r.permissions) == null ? void 0 : p.canEdit) ?? zr(a),
240
+ canManageDashboards: ((y = r == null ? void 0 : r.permissions) == null ? void 0 : y.canCreateDashboard) ?? qr(a),
241
+ canCreateDashboards: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canCreateDashboard) ?? jr(a),
242
+ canAccessVisuals: ((i = r == null ? void 0 : r.permissions) == null ? void 0 : i.canEdit) ?? Hr(a)
244
243
  };
245
244
  },
246
245
  [a, r]
@@ -252,7 +251,7 @@ function Hn() {
252
251
  currentUser: a
253
252
  };
254
253
  }
255
- function jn(t, n = []) {
254
+ function zn(t, n = []) {
256
255
  let a = [];
257
256
  function r(c, u) {
258
257
  const m = E.createContext(u);
@@ -284,9 +283,9 @@ function jn(t, n = []) {
284
283
  );
285
284
  };
286
285
  };
287
- return s.scopeName = t, [r, qn(s, ...n)];
286
+ return s.scopeName = t, [r, Kn(s, ...n)];
288
287
  }
289
- function qn(...t) {
288
+ function Kn(...t) {
290
289
  const n = t[0];
291
290
  if (t.length === 1) return n;
292
291
  const a = () => {
@@ -304,7 +303,7 @@ function qn(...t) {
304
303
  };
305
304
  return a.scopeName = n.scopeName, a;
306
305
  }
307
- var zn = [
306
+ var Qn = [
308
307
  "a",
309
308
  "button",
310
309
  "div",
@@ -322,29 +321,29 @@ var zn = [
322
321
  "span",
323
322
  "svg",
324
323
  "ul"
325
- ], ct = zn.reduce((t, n) => {
326
- const a = Ba(`Primitive.${n}`), r = E.forwardRef((s, c) => {
324
+ ], ct = Qn.reduce((t, n) => {
325
+ const a = Fa(`Primitive.${n}`), r = E.forwardRef((s, c) => {
327
326
  const { asChild: u, ...m } = s, p = u ? a : n;
328
327
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(p, { ...m, ref: c });
329
328
  });
330
329
  return r.displayName = `Primitive.${n}`, { ...t, [n]: r };
331
330
  }, {});
332
- function Kn() {
333
- return Gn.useSyncExternalStore(
334
- Qn,
331
+ function Wn() {
332
+ return Hn.useSyncExternalStore(
333
+ Yn,
335
334
  () => !0,
336
335
  () => !1
337
336
  );
338
337
  }
339
- function Qn() {
338
+ function Yn() {
340
339
  return () => {
341
340
  };
342
341
  }
343
- var lt = "Avatar", [Wn] = jn(lt), [Yn, Xt] = Wn(lt), Zt = E.forwardRef(
342
+ var lt = "Avatar", [Jn] = zn(lt), [Xn, Xt] = Jn(lt), Zt = E.forwardRef(
344
343
  (t, n) => {
345
344
  const { __scopeAvatar: a, ...r } = t, [s, c] = E.useState("idle");
346
345
  return /* @__PURE__ */ e(
347
- Yn,
346
+ Xn,
348
347
  {
349
348
  scope: a,
350
349
  imageLoadingStatus: s,
@@ -358,7 +357,7 @@ Zt.displayName = lt;
358
357
  var er = "AvatarImage", tr = E.forwardRef(
359
358
  (t, n) => {
360
359
  const { __scopeAvatar: a, src: r, onLoadingStatusChange: s = () => {
361
- }, ...c } = t, u = Xt(er, a), m = Jn(r, c), p = Fa((y) => {
360
+ }, ...c } = t, u = Xt(er, a), m = Zn(r, c), p = $a((y) => {
362
361
  s(y), u.onImageLoadingStatusChange(y);
363
362
  });
364
363
  return at(() => {
@@ -382,8 +381,8 @@ ar.displayName = rr;
382
381
  function Ut(t, n) {
383
382
  return t ? n ? (t.src !== n && (t.src = n), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
384
383
  }
385
- function Jn(t, { referrerPolicy: n, crossOrigin: a }) {
386
- const r = Kn(), s = E.useRef(null), c = r ? (s.current || (s.current = new window.Image()), s.current) : null, [u, m] = E.useState(
384
+ function Zn(t, { referrerPolicy: n, crossOrigin: a }) {
385
+ const r = Wn(), s = E.useRef(null), c = r ? (s.current || (s.current = new window.Image()), s.current) : null, [u, m] = E.useState(
387
386
  () => Ut(c, t)
388
387
  );
389
388
  return at(() => {
@@ -412,7 +411,7 @@ const ir = E.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
412
411
  }
413
412
  ));
414
413
  ir.displayName = nr.displayName;
415
- const Xn = E.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
414
+ const es = E.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
416
415
  sr,
417
416
  {
418
417
  ref: a,
@@ -420,7 +419,7 @@ const Xn = E.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
420
419
  ...n
421
420
  }
422
421
  ));
423
- Xn.displayName = sr.displayName;
422
+ es.displayName = sr.displayName;
424
423
  const dr = E.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
425
424
  or,
426
425
  {
@@ -433,26 +432,26 @@ const dr = E.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
433
432
  }
434
433
  ));
435
434
  dr.displayName = or.displayName;
436
- const Zn = async (t, n, a) => {
435
+ const ts = async (t, n, a) => {
437
436
  const r = `${t}/management/v1/groups`;
438
437
  return await Qt(r, n, a);
439
- }, es = async (t, n, a, r) => {
438
+ }, rs = async (t, n, a, r) => {
440
439
  const s = `${t}/management/v1/groups/${a}`;
441
440
  return dt(s, n, "PATCH", r);
442
- }, ts = async (t, n, a) => {
441
+ }, as = async (t, n, a) => {
443
442
  const r = `${t}/management/v1/groups/${a}`;
444
443
  await dt(r, n, "DELETE");
445
- }, rs = async (t, n, a, r) => {
444
+ }, ns = async (t, n, a, r) => {
446
445
  const s = `${t}/management/v1/groups/${a}/members`;
447
446
  return await Qt(s, n, r);
448
- }, as = async (t, n, a, r) => {
447
+ }, ss = async (t, n, a, r) => {
449
448
  const s = `${t}/management/v1/groups/${a}/members`;
450
449
  await dt(s, n, "DELETE", r);
451
450
  };
452
- function ns() {
451
+ function os() {
453
452
  const { authToken: t, tokenProps: n } = Y(), a = xe();
454
453
  return ve({
455
- mutationFn: (r) => Zn(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
454
+ mutationFn: (r) => ts(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
456
455
  onSuccess: () => {
457
456
  a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group created successfully");
458
457
  },
@@ -463,13 +462,13 @@ function ns() {
463
462
  }
464
463
  });
465
464
  }
466
- function ss() {
465
+ function is() {
467
466
  const { authToken: t, tokenProps: n } = Y(), a = xe();
468
467
  return ve({
469
468
  mutationFn: ({
470
469
  groupId: r,
471
470
  data: s
472
- }) => es(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
471
+ }) => rs(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
473
472
  onSuccess: (r, s) => {
474
473
  a.invalidateQueries({ queryKey: ["group", s.groupId] }), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group updated successfully");
475
474
  },
@@ -480,10 +479,10 @@ function ss() {
480
479
  }
481
480
  });
482
481
  }
483
- function os() {
482
+ function ds() {
484
483
  const { authToken: t, tokenProps: n } = Y(), a = xe();
485
484
  return ve({
486
- mutationFn: (r) => ts(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
485
+ mutationFn: (r) => as(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
487
486
  onSuccess: (r, s) => {
488
487
  a.invalidateQueries({ queryKey: ["groups"] }), a.removeQueries({ queryKey: ["group", s] }), C.success("Group deleted successfully");
489
488
  },
@@ -494,13 +493,13 @@ function os() {
494
493
  }
495
494
  });
496
495
  }
497
- function is() {
496
+ function cs() {
498
497
  const { authToken: t, tokenProps: n } = Y(), a = xe();
499
498
  return ve({
500
499
  mutationFn: ({
501
500
  groupId: r,
502
501
  data: s
503
- }) => rs(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
502
+ }) => ns(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
504
503
  onSuccess: (r, s) => {
505
504
  a.invalidateQueries({ queryKey: ["group", s.groupId] }), a.invalidateQueries({
506
505
  queryKey: ["group-members", s.groupId]
@@ -513,13 +512,13 @@ function is() {
513
512
  }
514
513
  });
515
514
  }
516
- function ds() {
515
+ function ls() {
517
516
  const { authToken: t, tokenProps: n } = Y(), a = xe();
518
517
  return ve({
519
518
  mutationFn: ({
520
519
  groupId: r,
521
520
  data: s
522
- }) => as(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
521
+ }) => ss(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
523
522
  onSuccess: (r, s) => {
524
523
  a.invalidateQueries({ queryKey: ["group", s.groupId] }), a.invalidateQueries({
525
524
  queryKey: ["group-members", s.groupId]
@@ -532,8 +531,8 @@ function ds() {
532
531
  }
533
532
  });
534
533
  }
535
- const cs = [];
536
- function ls({
534
+ const us = [];
535
+ function ms({
537
536
  open: t,
538
537
  onOpenChange: n
539
538
  }) {
@@ -543,11 +542,11 @@ function ls({
543
542
  isLoading: m,
544
543
  error: p,
545
544
  refetch: y
546
- } = Kr({
545
+ } = Qr({
547
546
  type: s ? "TENANT_GROUP" : "all",
548
547
  tenantId: s ? c : void 0,
549
548
  includeMembers: !1
550
- }), g = p ? cr(p, "Unable to load groups.") : null, [i, f] = N({ kind: "list" }), [l, x] = N(null), h = os();
549
+ }), g = p ? cr(p, "Unable to load groups.") : null, [i, f] = N({ kind: "list" }), [l, x] = N(null), h = ds();
551
550
  ge(() => {
552
551
  t || (f({ kind: "list" }), x(null));
553
552
  }, [t]);
@@ -577,7 +576,7 @@ function ls({
577
576
  /* @__PURE__ */ e(rt, { className: "sr-only", children: "Create a new group to organize members." })
578
577
  ] }) : null,
579
578
  i.kind === "list" && /* @__PURE__ */ e(
580
- us,
579
+ hs,
581
580
  {
582
581
  groups: u,
583
582
  isLoading: m,
@@ -590,7 +589,7 @@ function ls({
590
589
  }
591
590
  ),
592
591
  i.kind === "members" && w && /* @__PURE__ */ e(
593
- ps,
592
+ gs,
594
593
  {
595
594
  group: w,
596
595
  isTenantViewer: s,
@@ -605,7 +604,7 @@ function ls({
605
604
  w.id
606
605
  ),
607
606
  i.kind === "create" && /* @__PURE__ */ e(
608
- fs,
607
+ bs,
609
608
  {
610
609
  isTenantUser: s,
611
610
  tenantId: c,
@@ -650,7 +649,7 @@ function ls({
650
649
  ] })
651
650
  ] }) });
652
651
  }
653
- function us({
652
+ function hs({
654
653
  groups: t,
655
654
  isLoading: n,
656
655
  errorMessage: a,
@@ -669,7 +668,7 @@ function us({
669
668
  return /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
670
669
  /* @__PURE__ */ o("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
671
670
  /* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
672
- /* @__PURE__ */ e(Qr, { className: "h-3 w-3 text-muted-foreground" }),
671
+ /* @__PURE__ */ e(Wr, { className: "h-3 w-3 text-muted-foreground" }),
673
672
  /* @__PURE__ */ e(
674
673
  "input",
675
674
  {
@@ -715,7 +714,7 @@ function us({
715
714
  message: a,
716
715
  onRetry: r
717
716
  }
718
- ) : g.length === 0 && t.length === 0 ? /* @__PURE__ */ e(hs, { onCreate: u }) : g.length === 0 ? /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
717
+ ) : g.length === 0 && t.length === 0 ? /* @__PURE__ */ e(fs, { onCreate: u }) : g.length === 0 ? /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
719
718
  /* @__PURE__ */ o("div", { className: "text-[12px] text-foreground", children: [
720
719
  'No groups match "',
721
720
  p,
@@ -725,7 +724,7 @@ function us({
725
724
  ] }) : g.map((i) => {
726
725
  var f;
727
726
  return /* @__PURE__ */ e(
728
- ms,
727
+ ps,
729
728
  {
730
729
  group: i,
731
730
  canDelete: ((f = i.permissions) == null ? void 0 : f.canDelete) ?? i.createdBy === s,
@@ -737,7 +736,7 @@ function us({
737
736
  }) })
738
737
  ] });
739
738
  }
740
- function ms({
739
+ function ps({
741
740
  group: t,
742
741
  canDelete: n,
743
742
  onClick: a,
@@ -756,7 +755,7 @@ function ms({
756
755
  onClick: a,
757
756
  className: "group flex w-full items-center gap-3 border-b border-border/60 px-5 py-2.5 text-left hover:bg-accent/40",
758
757
  children: [
759
- /* @__PURE__ */ e("div", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[4px] border border-border bg-background text-muted-foreground", children: /* @__PURE__ */ e(Jr, { className: "h-3.5 w-3.5" }) }),
758
+ /* @__PURE__ */ e("div", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[4px] border border-border bg-background text-muted-foreground", children: /* @__PURE__ */ e(Xr, { className: "h-3.5 w-3.5" }) }),
760
759
  /* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
761
760
  /* @__PURE__ */ e("div", { className: "truncate text-[13px] font-medium text-foreground", children: t.name }),
762
761
  /* @__PURE__ */ o("div", { className: "mt-0.5 flex items-center gap-2 text-[11px] text-muted-foreground", children: [
@@ -766,14 +765,14 @@ function ms({
766
765
  " member",
767
766
  t.memberCount === 1 ? "" : "s"
768
767
  ] }),
769
- s && /* @__PURE__ */ o(T, { children: [
768
+ s && /* @__PURE__ */ o(R, { children: [
770
769
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
771
770
  /* @__PURE__ */ o("span", { className: "inline-flex items-center gap-1", children: [
772
771
  /* @__PURE__ */ e(jt, { className: "h-2.5 w-2.5" }),
773
772
  s
774
773
  ] })
775
774
  ] }),
776
- t.description && /* @__PURE__ */ o(T, { children: [
775
+ t.description && /* @__PURE__ */ o(R, { children: [
777
776
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
778
777
  /* @__PURE__ */ e("span", { className: "truncate text-muted-foreground", children: t.description })
779
778
  ] })
@@ -796,13 +795,13 @@ function ms({
796
795
  children: /* @__PURE__ */ e(it, { className: "h-3 w-3" })
797
796
  }
798
797
  ),
799
- /* @__PURE__ */ e(Xr, { className: "h-3.5 w-3.5 text-muted-foreground" })
798
+ /* @__PURE__ */ e(Zr, { className: "h-3.5 w-3.5 text-muted-foreground" })
800
799
  ] })
801
800
  ]
802
801
  }
803
802
  );
804
803
  }
805
- function hs({ onCreate: t }) {
804
+ function fs({ onCreate: t }) {
806
805
  return /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-12 text-center", children: [
807
806
  /* @__PURE__ */ e("div", { className: "flex h-9 w-9 items-center justify-center rounded-full border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ e(Ht, { className: "h-4 w-4" }) }),
808
807
  /* @__PURE__ */ e("div", { className: "text-[13px] font-medium text-foreground", children: "No groups yet" }),
@@ -821,7 +820,7 @@ function hs({ onCreate: t }) {
821
820
  )
822
821
  ] });
823
822
  }
824
- function ps({
823
+ function gs({
825
824
  group: t,
826
825
  isTenantViewer: n,
827
826
  canEdit: a,
@@ -837,7 +836,7 @@ function ps({
837
836
  isLoading: g,
838
837
  error: i,
839
838
  refetch: f
840
- } = Wr(t.id), l = (y == null ? void 0 : y.members) ?? cs, x = i ? cr(i, "Unable to load members for this group.") : null, h = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Yr({
839
+ } = Yr(t.id), l = (y == null ? void 0 : y.members) ?? us, x = i ? cr(i, "Unable to load members for this group.") : null, h = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Jr({
841
840
  type: h,
842
841
  tenantId: t.tenantId || void 0,
843
842
  active: !0,
@@ -845,7 +844,7 @@ function ps({
845
844
  }), S = H(
846
845
  () => new Set(l.map((v) => v.userId)),
847
846
  [l]
848
- ), O = is(), b = ds(), F = ss(), [P, $] = N(!1), [M, D] = N(t.name), [Ne, J] = N(!1), [X, Z] = N(t.description || ""), [ee, Se] = N(""), [De, ke] = N(!1), Ce = H(() => {
847
+ ), O = cs(), b = ls(), F = is(), [P, $] = N(!1), [M, D] = N(t.name), [Ne, J] = N(!1), [X, Z] = N(t.description || ""), [ee, Se] = N(""), [De, ke] = N(!1), Ce = H(() => {
849
848
  const v = ee.trim().toLowerCase();
850
849
  return w.filter((B) => !S.has(B.id)).filter(
851
850
  (B) => !v || (B.name || "").toLowerCase().includes(v) || (B.email || "").toLowerCase().includes(v)
@@ -1008,7 +1007,7 @@ function ps({
1008
1007
  }
1009
1008
  ) }),
1010
1009
  s && /* @__PURE__ */ e(
1011
- gs,
1010
+ xs,
1012
1011
  {
1013
1012
  query: ee,
1014
1013
  setQuery: Se,
@@ -1079,13 +1078,13 @@ function ps({
1079
1078
  ) })
1080
1079
  ] });
1081
1080
  }
1082
- function fs({
1081
+ function bs({
1083
1082
  isTenantUser: t,
1084
1083
  tenantId: n,
1085
1084
  onCancel: a,
1086
1085
  onCreated: r
1087
1086
  }) {
1088
- const [s, c] = N(""), [u, m] = N(""), [p, y] = N(null), g = ns(), i = s.trim().length >= 3 && s.trim().length <= 50, f = async () => {
1087
+ const [s, c] = N(""), [u, m] = N(""), [p, y] = N(null), g = os(), i = s.trim().length >= 3 && s.trim().length <= 50, f = async () => {
1089
1088
  if (!i) return;
1090
1089
  y(null);
1091
1090
  const l = {
@@ -1154,10 +1153,10 @@ function fs({
1154
1153
  onClick: f,
1155
1154
  disabled: !i || g.isPending,
1156
1155
  className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",
1157
- children: g.isPending ? /* @__PURE__ */ o(T, { children: [
1156
+ children: g.isPending ? /* @__PURE__ */ o(R, { children: [
1158
1157
  /* @__PURE__ */ e($e, { className: "h-3 w-3 animate-spin" }),
1159
1158
  "Creating…"
1160
- ] }) : /* @__PURE__ */ o(T, { children: [
1159
+ ] }) : /* @__PURE__ */ o(R, { children: [
1161
1160
  /* @__PURE__ */ e(ne, { className: "h-3 w-3" }),
1162
1161
  "Create group"
1163
1162
  ] })
@@ -1166,7 +1165,7 @@ function fs({
1166
1165
  ] })
1167
1166
  ] });
1168
1167
  }
1169
- function gs({
1168
+ function xs({
1170
1169
  query: t,
1171
1170
  setQuery: n,
1172
1171
  open: a,
@@ -1177,7 +1176,7 @@ function gs({
1177
1176
  busy: m
1178
1177
  }) {
1179
1178
  const p = _t(null), y = _t(null), [g, i] = N(null);
1180
- tn(() => {
1179
+ rn(() => {
1181
1180
  if (!a) {
1182
1181
  i(null);
1183
1182
  return;
@@ -1213,7 +1212,7 @@ function gs({
1213
1212
  ref: p,
1214
1213
  className: "flex items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40",
1215
1214
  children: [
1216
- /* @__PURE__ */ e(Bn, { className: "h-3 w-3 text-muted-foreground" }),
1215
+ /* @__PURE__ */ e($n, { className: "h-3 w-3 text-muted-foreground" }),
1217
1216
  /* @__PURE__ */ e(
1218
1217
  "input",
1219
1218
  {
@@ -1230,7 +1229,7 @@ function gs({
1230
1229
  ]
1231
1230
  }
1232
1231
  ),
1233
- f && typeof document < "u" && Cn(
1232
+ f && typeof document < "u" && En(
1234
1233
  /* @__PURE__ */ e(
1235
1234
  "div",
1236
1235
  {
@@ -1300,15 +1299,15 @@ function ur({ name: t }) {
1300
1299
  const n = t.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
1301
1300
  return /* @__PURE__ */ e(ir, { className: "h-6 w-6 shrink-0", children: /* @__PURE__ */ e(dr, { className: "text-[9px] font-semibold", children: n || "?" }) });
1302
1301
  }
1303
- const bs = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
1304
- function xs({
1302
+ const vs = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
1303
+ function ys({
1305
1304
  open: t,
1306
1305
  onOpenChange: n
1307
1306
  }) {
1308
1307
  const a = k(
1309
1308
  (s) => {
1310
1309
  var c, u;
1311
- return An({
1310
+ return In({
1312
1311
  dashboardDefault: (u = (c = s.dashboard) == null ? void 0 : c.exportDefaults) == null ? void 0 : u.csvEncoding
1313
1312
  });
1314
1313
  }
@@ -1316,20 +1315,20 @@ function xs({
1316
1315
  (s) => s.actions
1317
1316
  );
1318
1317
  return /* @__PURE__ */ e($t, { open: t, onOpenChange: n, children: /* @__PURE__ */ o(Gt, { className: "rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control", children: [
1319
- /* @__PURE__ */ o(Zr, { children: [
1318
+ /* @__PURE__ */ o(ea, { children: [
1320
1319
  /* @__PURE__ */ e(tt, { className: "text-[15px]", children: "Download settings" }),
1321
1320
  /* @__PURE__ */ e(rt, { className: "text-[13px] leading-5", children: "Applies to every CSV downloaded or delivered from this dashboard. People can still change it for a single download." })
1322
1321
  ] }),
1323
1322
  /* @__PURE__ */ o("div", { className: "space-y-2", children: [
1324
- /* @__PURE__ */ e($a, { htmlFor: "dashboard-csv-encoding", className: bs, children: "CSV encoding" }),
1323
+ /* @__PURE__ */ e(Ga, { htmlFor: "dashboard-csv-encoding", className: vs, children: "CSV encoding" }),
1325
1324
  /* @__PURE__ */ o(
1326
- Ga,
1325
+ Va,
1327
1326
  {
1328
1327
  value: a,
1329
1328
  onValueChange: (s) => r({ csvEncoding: s }),
1330
1329
  children: [
1331
- /* @__PURE__ */ e(Va, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(Ha, {}) }),
1332
- /* @__PURE__ */ e(ja, { children: ea.map((s) => /* @__PURE__ */ e(qa, { value: s.value, children: s.label }, s.value)) })
1330
+ /* @__PURE__ */ e(Ha, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(ja, {}) }),
1331
+ /* @__PURE__ */ e(qa, { children: ta.map((s) => /* @__PURE__ */ e(za, { value: s.value, children: s.label }, s.value)) })
1333
1332
  ]
1334
1333
  }
1335
1334
  )
@@ -1352,7 +1351,7 @@ function fe(t, n) {
1352
1351
  var a;
1353
1352
  return ((a = Yt(t, n)) == null ? void 0 : a.title) || n;
1354
1353
  }
1355
- function vs(t) {
1354
+ function ws(t) {
1356
1355
  const { errors: n, dashboard: a } = t;
1357
1356
  if (!a)
1358
1357
  return n;
@@ -1437,68 +1436,68 @@ function vs(t) {
1437
1436
  }
1438
1437
  return Array.from(r.values());
1439
1438
  }
1440
- function ys({
1439
+ function Ns({
1441
1440
  visible: t,
1442
1441
  onSelect: n
1443
1442
  }) {
1444
- return t ? /* @__PURE__ */ o(I, { onSelect: n, children: [
1445
- /* @__PURE__ */ e(ta, { className: "h-3.5 w-3.5" }),
1443
+ return t ? /* @__PURE__ */ o(A, { onSelect: n, children: [
1444
+ /* @__PURE__ */ e(ra, { className: "h-3.5 w-3.5" }),
1446
1445
  "Schedule email report"
1447
1446
  ] }) : null;
1448
1447
  }
1449
- function ws({
1448
+ function Ss({
1450
1449
  scheduleReportVisible: t,
1451
1450
  analyticalBriefingVisible: n,
1452
1451
  onScheduleReport: a,
1453
1452
  onCreateAnalyticalBriefing: r
1454
1453
  }) {
1455
- return /* @__PURE__ */ o(T, { children: [
1454
+ return /* @__PURE__ */ o(R, { children: [
1456
1455
  /* @__PURE__ */ e(
1457
- ys,
1456
+ Ns,
1458
1457
  {
1459
1458
  visible: t,
1460
1459
  onSelect: a
1461
1460
  }
1462
1461
  ),
1463
- n ? /* @__PURE__ */ o(I, { onSelect: r, children: [
1462
+ n ? /* @__PURE__ */ o(A, { onSelect: r, children: [
1464
1463
  /* @__PURE__ */ e(ne, { className: "h-3.5 w-3.5" }),
1465
1464
  "Create analytical briefing"
1466
1465
  ] }) : null
1467
1466
  ] });
1468
1467
  }
1469
- const Ns = "dashboard-bookmark-usage";
1470
- function Ss(t) {
1468
+ const Ds = "dashboard-bookmark-usage";
1469
+ function ks(t) {
1471
1470
  var p;
1472
- const n = k((y) => y.viewerStateClient), a = (p = t.saved) == null ? void 0 : p.id, s = ra({
1471
+ const n = k((y) => y.viewerStateClient), a = (p = t.saved) == null ? void 0 : p.id, s = aa({
1473
1472
  // Keyed by the viewer, never by the client object (TanStack drops functions when hashing).
1474
- queryKey: [Ns, (n == null ? void 0 : n.viewerKey) ?? null],
1473
+ queryKey: [Ds, (n == null ? void 0 : n.viewerKey) ?? null],
1475
1474
  queryFn: () => n.bookmarks.usage(),
1476
1475
  enabled: t.enabled && !!n && !!a,
1477
1476
  staleTime: 5 * 6e4,
1478
1477
  retry: !1
1479
1478
  }).data, { saved: c, draft: u, enabled: m } = t;
1480
- return H(() => !m || !c || !s ? [] : !s.bookmarks && !Object.keys(s.tables).length ? [] : Ln({ saved: c, draft: u, usage: s }), [u, m, c, s]);
1479
+ return H(() => !m || !c || !s ? [] : !s.bookmarks && !Object.keys(s.tables).length ? [] : On({ saved: c, draft: u, usage: s }), [u, m, c, s]);
1481
1480
  }
1482
- function Ds({
1481
+ function Cs({
1483
1482
  saved: t,
1484
1483
  draft: n,
1485
1484
  enabled: a
1486
1485
  }) {
1487
- const r = Ss({ saved: t, draft: n, enabled: a });
1488
- return r.length ? /* @__PURE__ */ o(za, { children: [
1489
- /* @__PURE__ */ e(Ka, { asChild: !0, children: /* @__PURE__ */ o(
1486
+ const r = ks({ saved: t, draft: n, enabled: a });
1487
+ return r.length ? /* @__PURE__ */ o(Ka, { children: [
1488
+ /* @__PURE__ */ e(Qa, { asChild: !0, children: /* @__PURE__ */ o(
1490
1489
  V,
1491
1490
  {
1492
1491
  variant: "ghost",
1493
1492
  size: "xs",
1494
1493
  className: "gap-1 text-muted-foreground hover:text-foreground",
1495
1494
  children: [
1496
- /* @__PURE__ */ e(aa, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
1495
+ /* @__PURE__ */ e(na, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
1497
1496
  "Affects saved views"
1498
1497
  ]
1499
1498
  }
1500
1499
  ) }),
1501
- /* @__PURE__ */ o(Qa, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
1500
+ /* @__PURE__ */ o(Wa, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
1502
1501
  /* @__PURE__ */ e("p", { className: "text-foreground", children: "This edit removes parts of the dashboard that viewers saved. Their views still open, with a note about what no longer applies." }),
1503
1502
  /* @__PURE__ */ e(
1504
1503
  "ul",
@@ -1506,7 +1505,7 @@ function Ds({
1506
1505
  "aria-label": "Affected saved views",
1507
1506
  className: "mt-2 grid gap-1 border-t border-border/60 pt-2",
1508
1507
  children: r.map((s) => {
1509
- const { name: c, uses: u } = On(s);
1508
+ const { name: c, uses: u } = Pn(s);
1510
1509
  return /* @__PURE__ */ o(
1511
1510
  "li",
1512
1511
  {
@@ -1530,7 +1529,7 @@ function Ft(t, n) {
1530
1529
  semanticExecutionPayload: nt(n)
1531
1530
  };
1532
1531
  }
1533
- function Js() {
1532
+ function Xs() {
1534
1533
  var St, Dt, kt, Ct;
1535
1534
  const {
1536
1535
  authToken: t,
@@ -1538,17 +1537,17 @@ function Js() {
1538
1537
  id: a,
1539
1538
  showBriefings: r,
1540
1539
  toolbarStatus: s
1541
- } = Y(), c = na(), { isLocalDev: u, isConsoleMode: m } = sa(), {
1540
+ } = Y(), c = sa(), { isLocalDev: u, isConsoleMode: m } = oa(), {
1542
1541
  canEditDashboard: p,
1543
1542
  hasInspectionUser: y,
1544
1543
  inspectionMessage: g,
1545
1544
  isInspectionMode: i,
1546
1545
  isInspectionSurface: f
1547
- } = oa(), { openBrandStudioPreview: l } = ia(), { permissions: x } = Hn(), h = da(), { isLoading: w } = ca(), S = k((d) => d.theme), O = k((d) => d.isDownloadingPdf), b = k((d) => d.dashboard), F = k((d) => d.selectedSheetId), P = (St = b == null ? void 0 : b.sheets) == null ? void 0 : St.find(
1546
+ } = ia(), { openBrandStudioPreview: l } = da(), { permissions: x } = qn(), h = ca(), { isLoading: w } = la(), S = k((d) => d.theme), O = k((d) => d.isDownloadingPdf), b = k((d) => d.dashboard), F = k((d) => d.selectedSheetId), P = (St = b == null ? void 0 : b.sheets) == null ? void 0 : St.find(
1548
1547
  (d) => d.id === F
1549
- ), $ = En(P), M = $ ? (Dt = P == null ? void 0 : P.document) == null ? void 0 : Dt.page : void 0, D = k(
1548
+ ), $ = An(P), M = $ ? (Dt = P == null ? void 0 : P.document) == null ? void 0 : Dt.page : void 0, D = k(
1550
1549
  (d) => d.isDashboardEditing
1551
- ), { setDashboardTitle: Ne } = k((d) => d.actions), [J, X] = N(!1), [Z, ee] = N(!1), [Se, De] = N(!1), [ke, Ce] = N(!1), [se, te] = N(null), [Ee, Ae] = N(null), { registerBriefingViewer: j } = la();
1550
+ ), { setDashboardTitle: Ne } = k((d) => d.actions), [J, X] = N(!1), [Z, ee] = N(!1), [Se, De] = N(!1), [ke, Ce] = N(!1), [se, te] = N(null), [Ee, Ae] = N(null), { registerBriefingViewer: j } = ua();
1552
1551
  ge(
1553
1552
  () => j((d) => Ae(d)),
1554
1553
  [j]
@@ -1565,19 +1564,19 @@ function Js() {
1565
1564
  (d) => d.showDashboardJSON
1566
1565
  );
1567
1566
  k((d) => d.onSaveFunction);
1568
- const { setIsDashboardEditing: pt, setShowDashboardJSON: ft, markDashboardSaved: fr } = k(
1567
+ const { setIsDashboardEditing: pt, setShowDashboardJSON: ft, markDashboardSaved: fr, openStyleSheet: gr } = k(
1569
1568
  (d) => d.actions
1570
1569
  ), { setInitialDashboard: gt, clearSelectedDashboard: Ge } = Be(
1571
1570
  (d) => d.actions
1572
- ), ie = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = ua(Xe.DASHBOARD), A = Nn(), { currentUser: gr } = ot(), br = ma(gr), G = hr || pr, Q = ha({
1571
+ ), ie = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = ma(Xe.DASHBOARD), I = Sn(), { currentUser: br } = ot(), xr = ha(br), G = hr || pr, Q = pa({
1573
1572
  config: n.config,
1574
1573
  canNavigateDashboardHub: ie,
1575
1574
  canShareDashboard: ((kt = G == null ? void 0 : G.permissions) == null ? void 0 : kt.canShare) === !0,
1576
- canManageGroups: br
1575
+ canManageGroups: xr
1577
1576
  }), bt = G ? {
1578
1577
  id: G.id,
1579
1578
  title: (b == null ? void 0 : b.title) || G.title || "Dashboard"
1580
- } : null, { handleAddNewFrame: xr } = pa(), [Ve, He] = N(!1), [vr, de] = N(!1), [je, Pe] = N("close"), ce = fa(Xe.DASHBOARD), [L, le] = N(null), yr = async (d, R) => {
1579
+ } : null, { handleAddNewFrame: vr } = fa(), [Ve, He] = N(!1), [yr, de] = N(!1), [je, Pe] = N("close"), ce = ga(Xe.DASHBOARD), [L, le] = N(null), wr = async (d, T) => {
1581
1580
  if (!i) {
1582
1581
  if (!(b != null && b.id)) {
1583
1582
  console.log("No dashboard ID found");
@@ -1586,7 +1585,7 @@ function Js() {
1586
1585
  console.log("Updating dashboard title:", {
1587
1586
  dashboardId: b.id,
1588
1587
  newTitle: d,
1589
- previousTitle: R
1588
+ previousTitle: T
1590
1589
  }), ce.mutate(
1591
1590
  {
1592
1591
  resourceId: b.id,
@@ -1604,7 +1603,7 @@ function Js() {
1604
1603
  onError: (_) => {
1605
1604
  console.error("Failed to update dashboard title:", _), C.error("Failed to update dashboard title");
1606
1605
  const re = k.getState().dashboard;
1607
- (re == null ? void 0 : re.id) === b.id && re.title === d && Ne(R);
1606
+ (re == null ? void 0 : re.id) === b.id && re.title === d && Ne(T);
1608
1607
  }
1609
1608
  }
1610
1609
  );
@@ -1614,15 +1613,15 @@ function Js() {
1614
1613
  if (Oe && Oe.length > 0) {
1615
1614
  const d = b == null ? void 0 : b.id;
1616
1615
  if (d) {
1617
- const R = Oe.find(
1616
+ const T = Oe.find(
1618
1617
  (_) => _.id === d
1619
1618
  );
1620
- R && gt(R);
1619
+ T && gt(T);
1621
1620
  }
1622
1621
  }
1623
1622
  }, [Oe, b == null ? void 0 : b.id, gt]);
1624
- const wr = n.orgUserId || n.tenantId, qe = H(
1625
- () => Cs({
1623
+ const Nr = n.orgUserId || n.tenantId, qe = H(
1624
+ () => As({
1626
1625
  accessToken: t == null ? void 0 : t.accessToken,
1627
1626
  dashboardId: (b == null ? void 0 : b.id) || a || n.dashboard_id,
1628
1627
  selectedSheetId: $ ? F : void 0,
@@ -1641,9 +1640,9 @@ function Js() {
1641
1640
  S,
1642
1641
  n.dashboard_id
1643
1642
  ]
1644
- ), ze = D && !U && !i && wr && p, { setDashboard: Ke } = k((d) => d.actions), Nr = k(
1643
+ ), ze = D && !U && !i && Nr && p, { setDashboard: Ke } = k((d) => d.actions), Sr = k(
1645
1644
  (d) => d.semanticExecutionPayload
1646
- ), Sr = () => {
1645
+ ), Dr = () => {
1647
1646
  pt(!0);
1648
1647
  }, _e = () => {
1649
1648
  pt(!1), ft(!1), le(null);
@@ -1655,7 +1654,7 @@ function Js() {
1655
1654
  }
1656
1655
  if (L || !b || w)
1657
1656
  return;
1658
- const d = ga(k.getState());
1657
+ const d = ba(k.getState());
1659
1658
  le(
1660
1659
  Ft(d.dashboard, d.semanticExecutionPayload)
1661
1660
  );
@@ -1664,19 +1663,19 @@ function Js() {
1664
1663
  L,
1665
1664
  D,
1666
1665
  w,
1667
- Nr
1666
+ Sr
1668
1667
  ]);
1669
- const Qe = (L == null ? void 0 : L.dashboard) ?? null, { isDirty: We, isDirtyPending: Dr, resetDirty: ue } = In(
1668
+ const Qe = (L == null ? void 0 : L.dashboard) ?? null, { isDirty: We, isDirtyPending: kr, resetDirty: ue } = Mn(
1670
1669
  b,
1671
1670
  Qe,
1672
1671
  300,
1673
1672
  1e3,
1674
- Mn
1675
- ), xt = rn(
1673
+ Ln
1674
+ ), xt = an(
1676
1675
  Qe,
1677
1676
  i,
1678
1677
  p
1679
- ), vt = We || Dr, Re = Ve || ce.isPending, kr = () => {
1678
+ ), vt = We || kr, Te = Ve || ce.isPending, Cr = () => {
1680
1679
  if (i) {
1681
1680
  L && Ke(L.dashboard, {
1682
1681
  semanticExecutionPayload: L.semanticExecutionPayload
@@ -1684,21 +1683,21 @@ function Js() {
1684
1683
  return;
1685
1684
  }
1686
1685
  xt() ? (Pe("close"), de(!0)) : (_e(), ue());
1687
- }, Cr = async () => {
1686
+ }, Er = async () => {
1688
1687
  await Ye({
1689
1688
  closeAfterSave: !0,
1690
1689
  navigateHomeAfterSave: je === "home"
1691
1690
  });
1692
- }, Er = () => {
1691
+ }, Ar = () => {
1693
1692
  const d = je === "home" && !!ie;
1694
1693
  L && Ke(L.dashboard, {
1695
1694
  semanticExecutionPayload: L.semanticExecutionPayload
1696
1695
  }), _e(), d && Ge(), Pe("close"), de(!1), ue();
1697
- }, Ar = () => {
1696
+ }, Ir = () => {
1698
1697
  L && (Ke(L.dashboard, {
1699
1698
  semanticExecutionPayload: L.semanticExecutionPayload
1700
1699
  }), ue());
1701
- }, Ir = () => {
1700
+ }, Mr = () => {
1702
1701
  if (ie) {
1703
1702
  if (D && xt()) {
1704
1703
  Pe("home"), de(!0);
@@ -1710,41 +1709,41 @@ function Js() {
1710
1709
  async function Ye(d) {
1711
1710
  if (i)
1712
1711
  return;
1713
- const R = k.getState().dashboard;
1714
- if (!R)
1712
+ const T = k.getState().dashboard;
1713
+ if (!T)
1715
1714
  return;
1716
1715
  const _ = (d == null ? void 0 : d.closeAfterSave) ?? ut, re = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
1717
1716
  Le(_), _ && de(!1);
1718
- const Pr = nt(R);
1717
+ const _r = nt(T);
1719
1718
  q(!0), K(null), Me([]), He(!0);
1720
- const _r = {
1721
- template: R
1719
+ const Tr = {
1720
+ template: T
1722
1721
  };
1723
1722
  ce.mutate(
1724
1723
  {
1725
- resourceId: R.id,
1726
- data: _r
1724
+ resourceId: T.id,
1725
+ data: Tr
1727
1726
  },
1728
1727
  {
1729
1728
  onSuccess: () => {
1730
1729
  He(!1), fr(), C.success("Dashboard saved!"), le(
1731
1730
  Ft(
1732
- Pr,
1731
+ _r,
1733
1732
  k.getState().semanticExecutionPayload
1734
1733
  )
1735
1734
  ), q(!1), Le(!1), _ && (_e(), ue(), re && ie && Ge()), Pe("close");
1736
1735
  },
1737
1736
  onError: (Rr) => {
1738
1737
  He(!1), K("Failed to save dashboard. Please try again.");
1739
- const Ue = Rr.details, Tr = Array.isArray(
1738
+ const Ue = Rr.details, Ur = Array.isArray(
1740
1739
  Ue == null ? void 0 : Ue.errors
1741
1740
  ) ? (Ue.errors || []).filter(
1742
- (Ur) => typeof Ur == "string"
1741
+ (Br) => typeof Br == "string"
1743
1742
  ) : [];
1744
1743
  Me(
1745
- vs({
1746
- errors: Tr,
1747
- dashboard: R || void 0
1744
+ ws({
1745
+ errors: Ur,
1746
+ dashboard: T || void 0
1748
1747
  })
1749
1748
  ), C.error("Failed to save dashboard");
1750
1749
  }
@@ -1757,30 +1756,30 @@ function Js() {
1757
1756
  dashboardStateTitle: b.title,
1758
1757
  dashboardId: b == null ? void 0 : b.id
1759
1758
  });
1760
- const Mr = ie && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), Lr = !i && Q.showDashboardHub && Mr, Or = !i && h && Q.showDashboardHub, W = (b == null ? void 0 : b.id) || null, wt = ba(
1759
+ const Lr = ie && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), Or = !i && Q.showDashboardHub && Lr, Pr = !i && h && Q.showDashboardHub, W = (b == null ? void 0 : b.id) || null, wt = xa(
1761
1760
  (Ct = n.config) == null ? void 0 : Ct.showBriefings,
1762
1761
  r
1763
- ), Te = an(W), Je = nn();
1762
+ ), Re = nn(W), Je = sn();
1764
1763
  if (!h && !U)
1765
1764
  return null;
1766
1765
  const me = !U && h && !i, Nt = D && me;
1767
- return /* @__PURE__ */ e(sn, { width: A.width, hasOverflowMenu: me, children: /* @__PURE__ */ o(
1766
+ return /* @__PURE__ */ e(on, { width: I.width, hasOverflowMenu: me, children: /* @__PURE__ */ o(
1768
1767
  "div",
1769
1768
  {
1770
- ref: A.measure,
1769
+ ref: I.measure,
1771
1770
  className: "flex min-h-11 shrink-0 items-center gap-2 border-b px-3 py-1.5",
1772
1771
  role: "dashboard-controls",
1773
1772
  children: [
1774
1773
  /* @__PURE__ */ o("div", { className: "flex min-w-[80px] flex-1 items-center gap-2", children: [
1775
- Or && !U && /* @__PURE__ */ e(
1776
- wn,
1774
+ Pr && !U && /* @__PURE__ */ e(
1775
+ Nn,
1777
1776
  {
1778
1777
  "aria-label": "Dashboard Hub",
1779
1778
  tooltip: "Dashboard Hub",
1780
- onClick: Ir,
1779
+ onClick: Mr,
1781
1780
  className: "h-7 w-7 px-0",
1782
1781
  buttonProps: { size: "xs" },
1783
- children: /* @__PURE__ */ e(xa, { className: "h-3.5 w-3.5" })
1782
+ children: /* @__PURE__ */ e(va, { className: "h-3.5 w-3.5" })
1784
1783
  }
1785
1784
  ),
1786
1785
  !U && h && (w ? /* @__PURE__ */ e(
@@ -1793,7 +1792,7 @@ function Js() {
1793
1792
  }
1794
1793
  ) : /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1", children: [
1795
1794
  /* @__PURE__ */ e(
1796
- va,
1795
+ ya,
1797
1796
  {
1798
1797
  value: yt || "Untitled Dashboard",
1799
1798
  onSave: (d) => {
@@ -1802,10 +1801,10 @@ function Js() {
1802
1801
  canEditDashboard: p,
1803
1802
  dashboardId: b == null ? void 0 : b.id
1804
1803
  });
1805
- const R = (b == null ? void 0 : b.title) || "";
1806
- Ne(d), yr(d, R);
1804
+ const T = (b == null ? void 0 : b.title) || "";
1805
+ Ne(d), wr(d, T);
1807
1806
  },
1808
- isEditable: ya({
1807
+ isEditable: wa({
1809
1808
  isDashboardEditing: D,
1810
1809
  canEditDashboard: p === !0 && !i
1811
1810
  }),
@@ -1815,19 +1814,19 @@ function Js() {
1815
1814
  isPending: ce.isPending
1816
1815
  }
1817
1816
  ),
1818
- !i && W && /* @__PURE__ */ e(on, { dashboardId: W }),
1817
+ !i && W && /* @__PURE__ */ e(dn, { dashboardId: W }),
1819
1818
  s ? /* @__PURE__ */ e("div", { className: "flex min-w-[1.25rem] shrink-[2]", children: s }) : null
1820
1819
  ] }))
1821
1820
  ] }),
1822
1821
  /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5", children: [
1823
1822
  /* @__PURE__ */ o("div", { className: "-m-1 flex min-w-0 items-center gap-1.5 overflow-x-auto p-1 [scrollbar-width:thin] [&>*]:shrink-0", children: [
1824
- U && /* @__PURE__ */ o(T, { children: [
1825
- /* @__PURE__ */ e(dn, {}),
1826
- /* @__PURE__ */ e(cn, {})
1823
+ U && /* @__PURE__ */ o(R, { children: [
1824
+ /* @__PURE__ */ e(cn, {}),
1825
+ /* @__PURE__ */ e(ln, {})
1827
1826
  ] }),
1828
- h && !i && /* @__PURE__ */ e(Sn, {}),
1829
- !U && D && !i && x.canUseFilters && h && /* @__PURE__ */ e(ln, {}),
1830
- D && !i && h && /* @__PURE__ */ e(un, {}),
1827
+ h && !i && /* @__PURE__ */ e(Dn, {}),
1828
+ !U && D && !i && x.canUseFilters && h && /* @__PURE__ */ e(un, {}),
1829
+ D && !i && h && /* @__PURE__ */ e(mn, {}),
1831
1830
  D && !U && !i && h && !$ && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
1832
1831
  /* @__PURE__ */ o(
1833
1832
  V,
@@ -1835,16 +1834,16 @@ function Js() {
1835
1834
  variant: "ghost",
1836
1835
  size: "xs",
1837
1836
  disabled: !D,
1838
- onClick: () => void xr(),
1839
- "aria-label": A.width === "sm" ? "Add visual" : void 0,
1840
- title: A.width === "sm" ? "Add visual" : void 0,
1837
+ onClick: () => void vr(),
1838
+ "aria-label": I.width === "sm" ? "Add visual" : void 0,
1839
+ title: I.width === "sm" ? "Add visual" : void 0,
1841
1840
  className: be(
1842
1841
  "h-full rounded-none border-0 shadow-none hover:bg-accent",
1843
- A.width === "sm" && "w-7 px-0"
1842
+ I.width === "sm" && "w-7 px-0"
1844
1843
  ),
1845
1844
  children: [
1846
1845
  /* @__PURE__ */ e(ne, { className: "h-3.5 w-3.5" }),
1847
- A.width !== "sm" && "Visual"
1846
+ I.width !== "sm" && "Visual"
1848
1847
  ]
1849
1848
  }
1850
1849
  ),
@@ -1857,15 +1856,15 @@ function Js() {
1857
1856
  className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
1858
1857
  "aria-label": "Open visual options",
1859
1858
  disabled: !D,
1860
- children: /* @__PURE__ */ e(Wa, { className: "h-3.5 w-3.5" })
1859
+ children: /* @__PURE__ */ e(Ya, { className: "h-3.5 w-3.5" })
1861
1860
  }
1862
1861
  ) }),
1863
1862
  /* @__PURE__ */ e(
1864
1863
  Mt,
1865
1864
  {
1866
1865
  align: "end",
1867
- className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm",
1868
- children: /* @__PURE__ */ o(I, { onClick: () => mt(!0), children: [
1866
+ className: "z-[60] w-48 rounded-control border-border/60 p-1 shadow-sm",
1867
+ children: /* @__PURE__ */ o(A, { onClick: () => mt(!0), children: [
1869
1868
  /* @__PURE__ */ e(ne, { className: "h-3.5 w-3.5" }),
1870
1869
  "From library..."
1871
1870
  ] })
@@ -1873,44 +1872,44 @@ function Js() {
1873
1872
  )
1874
1873
  ] }),
1875
1874
  /* @__PURE__ */ e(
1876
- mn,
1875
+ hn,
1877
1876
  {
1878
1877
  open: mr,
1879
1878
  onOpenChange: mt
1880
1879
  }
1881
1880
  )
1882
1881
  ] }),
1883
- !i && h && /* @__PURE__ */ e(hn, {}),
1882
+ !i && h && /* @__PURE__ */ e(pn, {}),
1884
1883
  !U && !D && (p || i) && (!f || !y || p !== void 0) && h && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
1885
1884
  /* @__PURE__ */ o(
1886
1885
  V,
1887
1886
  {
1888
1887
  size: "xs",
1889
- onClick: Sr,
1888
+ onClick: Dr,
1890
1889
  "aria-label": i ? "Inspect" : "Edit",
1891
- title: A.width === "sm" ? i ? "Inspect" : "Edit" : void 0,
1892
- className: A.width === "sm" ? "w-7 px-0" : void 0,
1890
+ title: I.width === "sm" ? i ? "Inspect" : "Edit" : void 0,
1891
+ className: I.width === "sm" ? "w-7 px-0" : void 0,
1893
1892
  children: [
1894
- /* @__PURE__ */ e(wa, { className: "h-3.5 w-3.5" }),
1895
- A.width !== "sm" && (i ? "Inspect" : "Edit")
1893
+ /* @__PURE__ */ e(Na, { className: "h-3.5 w-3.5" }),
1894
+ I.width !== "sm" && (i ? "Inspect" : "Edit")
1896
1895
  ]
1897
1896
  }
1898
1897
  ),
1899
- g ? /* @__PURE__ */ e(Ya, { children: /* @__PURE__ */ o(Ja, { children: [
1900
- /* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ e(
1898
+ g ? /* @__PURE__ */ e(Ja, { children: /* @__PURE__ */ o(Xa, { children: [
1899
+ /* @__PURE__ */ e(Za, { asChild: !0, children: /* @__PURE__ */ e(
1901
1900
  "button",
1902
1901
  {
1903
1902
  type: "button",
1904
1903
  "aria-label": g,
1905
1904
  className: "inline-flex size-6 items-center justify-center rounded-control text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1906
- children: /* @__PURE__ */ e(Za, { "aria-hidden": "true", className: "size-3.5" })
1905
+ children: /* @__PURE__ */ e(en, { "aria-hidden": "true", className: "size-3.5" })
1907
1906
  }
1908
1907
  ) }),
1909
- /* @__PURE__ */ e(en, { children: /* @__PURE__ */ e("p", { children: g }) })
1908
+ /* @__PURE__ */ e(tn, { children: /* @__PURE__ */ e("p", { children: g }) })
1910
1909
  ] }) }) : null
1911
1910
  ] }),
1912
1911
  ze && h && We && /* @__PURE__ */ e(
1913
- Ds,
1912
+ Cs,
1914
1913
  {
1915
1914
  saved: Qe,
1916
1915
  draft: b,
@@ -1922,14 +1921,14 @@ function Js() {
1922
1921
  {
1923
1922
  variant: "outline",
1924
1923
  size: "xs",
1925
- onClick: Ar,
1926
- disabled: Re,
1924
+ onClick: Ir,
1925
+ disabled: Te,
1927
1926
  "aria-label": "Undo",
1928
- title: A.width === "sm" ? "Undo" : void 0,
1929
- className: A.width === "sm" ? "w-7 px-0" : void 0,
1927
+ title: I.width === "sm" ? "Undo" : void 0,
1928
+ className: I.width === "sm" ? "w-7 px-0" : void 0,
1930
1929
  children: [
1931
- /* @__PURE__ */ e(Na, { className: "h-3.5 w-3.5" }),
1932
- A.width !== "sm" && "Undo"
1930
+ /* @__PURE__ */ e(Sa, { className: "h-3.5 w-3.5" }),
1931
+ I.width !== "sm" && "Undo"
1933
1932
  ]
1934
1933
  }
1935
1934
  ),
@@ -1938,11 +1937,11 @@ function Js() {
1938
1937
  {
1939
1938
  size: "xs",
1940
1939
  className: be(!vt && "opacity-60"),
1941
- disabled: Re || !vt,
1940
+ disabled: Te || !vt,
1942
1941
  onClick: () => Ye(),
1943
1942
  children: [
1944
- Re ? /* @__PURE__ */ e($e, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Pn, { className: "h-3.5 w-3.5" }),
1945
- Re ? "Saving..." : "Save"
1943
+ Te ? /* @__PURE__ */ e($e, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(_n, { className: "h-3.5 w-3.5" }),
1944
+ Te ? "Saving..." : "Save"
1946
1945
  ]
1947
1946
  }
1948
1947
  ),
@@ -1951,24 +1950,24 @@ function Js() {
1951
1950
  {
1952
1951
  variant: "outline",
1953
1952
  size: "xs",
1954
- onClick: kr,
1953
+ onClick: Cr,
1955
1954
  "aria-label": "Close",
1956
- title: A.width === "sm" ? "Close" : void 0,
1957
- className: A.width === "sm" ? "w-7 px-0" : void 0,
1955
+ title: I.width === "sm" ? "Close" : void 0,
1956
+ className: I.width === "sm" ? "w-7 px-0" : void 0,
1958
1957
  children: [
1959
- /* @__PURE__ */ e(Sa, { className: "h-3.5 w-3.5" }),
1960
- A.width !== "sm" && "Close"
1958
+ /* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" }),
1959
+ I.width !== "sm" && "Close"
1961
1960
  ]
1962
1961
  }
1963
1962
  )
1964
1963
  ] }),
1965
- !U && h && /* @__PURE__ */ o(T, { children: [
1966
- /* @__PURE__ */ e(pn, {}),
1967
- m && p === !0 && !i && /* @__PURE__ */ e(fn, {})
1964
+ !U && h && /* @__PURE__ */ o(R, { children: [
1965
+ /* @__PURE__ */ e(fn, {}),
1966
+ m && p === !0 && !i && /* @__PURE__ */ e(gn, {})
1968
1967
  ] }),
1969
- !U && u && A.width === "lg" && /* @__PURE__ */ e(Vn, {}),
1970
- me && /* @__PURE__ */ e(gn, {}),
1971
- me && Nt && /* @__PURE__ */ e(bn, {}),
1968
+ !U && u && I.width === "lg" && /* @__PURE__ */ e(jn, {}),
1969
+ me && /* @__PURE__ */ e(bn, {}),
1970
+ me && Nt && /* @__PURE__ */ e(xn, {}),
1972
1971
  me && /* @__PURE__ */ o(At, { children: [
1973
1972
  /* @__PURE__ */ e(It, { asChild: !0, children: /* @__PURE__ */ e(
1974
1973
  V,
@@ -1977,7 +1976,7 @@ function Js() {
1977
1976
  size: "xs",
1978
1977
  className: "w-7 px-0",
1979
1978
  "aria-label": "More dashboard options",
1980
- children: /* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" })
1979
+ children: /* @__PURE__ */ e(ka, { className: "h-3.5 w-3.5" })
1981
1980
  }
1982
1981
  ) }),
1983
1982
  /* @__PURE__ */ o(
@@ -1986,17 +1985,17 @@ function Js() {
1986
1985
  align: "end",
1987
1986
  className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
1988
1987
  children: [
1989
- /* @__PURE__ */ e(ks, {}),
1990
- Te.available && Lr && /* @__PURE__ */ o(T, { children: [
1988
+ /* @__PURE__ */ e(Es, {}),
1989
+ Re.available && Or && /* @__PURE__ */ o(R, { children: [
1991
1990
  /* @__PURE__ */ o(
1992
- I,
1991
+ A,
1993
1992
  {
1994
- disabled: Te.disabled,
1995
- onSelect: Te.toggle,
1993
+ disabled: Re.disabled,
1994
+ onSelect: Re.toggle,
1996
1995
  children: [
1997
- /* @__PURE__ */ e(ka, { className: "h-3.5 w-3.5" }),
1996
+ /* @__PURE__ */ e(Ca, { className: "h-3.5 w-3.5" }),
1998
1997
  /* @__PURE__ */ e("span", { className: "flex-1", children: "Default dashboard" }),
1999
- Te.isDefault && /* @__PURE__ */ e(zt, { className: "h-3.5 w-3.5" })
1998
+ Re.isDefault && /* @__PURE__ */ e(zt, { className: "h-3.5 w-3.5" })
2000
1999
  ]
2001
2000
  }
2002
2001
  ),
@@ -2004,18 +2003,18 @@ function Js() {
2004
2003
  ] }),
2005
2004
  /* @__PURE__ */ e(he, { children: "Reports & briefings" }),
2006
2005
  /* @__PURE__ */ o(
2007
- I,
2006
+ A,
2008
2007
  {
2009
2008
  disabled: O,
2010
2009
  onSelect: () => B(!0),
2011
2010
  children: [
2012
- /* @__PURE__ */ e(Ca, { className: "h-3.5 w-3.5" }),
2011
+ /* @__PURE__ */ e(Ea, { className: "h-3.5 w-3.5" }),
2013
2012
  "Export"
2014
2013
  ]
2015
2014
  }
2016
2015
  ),
2017
2016
  /* @__PURE__ */ e(
2018
- ws,
2017
+ Ss,
2019
2018
  {
2020
2019
  scheduleReportVisible: !!(wt && c.surfaceVisible && W && !D),
2021
2020
  analyticalBriefingVisible: !!(wt && c.surfaceVisible && W && !D),
@@ -2024,24 +2023,24 @@ function Js() {
2024
2023
  }
2025
2024
  ),
2026
2025
  D && /* @__PURE__ */ o(
2027
- I,
2026
+ A,
2028
2027
  {
2029
2028
  onSelect: () => Ce(!0),
2030
2029
  children: [
2031
- /* @__PURE__ */ e(Ea, { className: "h-3.5 w-3.5" }),
2030
+ /* @__PURE__ */ e(Aa, { className: "h-3.5 w-3.5" }),
2032
2031
  "Download settings"
2033
2032
  ]
2034
2033
  }
2035
2034
  ),
2036
2035
  /* @__PURE__ */ e(ae, {}),
2037
- (Q.showDashboardSharing || Q.showGroupManagement) && /* @__PURE__ */ o(T, { children: [
2036
+ (Q.showDashboardSharing || Q.showGroupManagement) && /* @__PURE__ */ o(R, { children: [
2038
2037
  /* @__PURE__ */ e(he, { children: "Access" }),
2039
- Q.showDashboardSharing && /* @__PURE__ */ o(I, { onSelect: () => X(!0), children: [
2040
- /* @__PURE__ */ e(Aa, { className: "h-3.5 w-3.5" }),
2038
+ Q.showDashboardSharing && /* @__PURE__ */ o(A, { onSelect: () => X(!0), children: [
2039
+ /* @__PURE__ */ e(Ia, { className: "h-3.5 w-3.5" }),
2041
2040
  "Share"
2042
2041
  ] }),
2043
2042
  Q.showGroupManagement && /* @__PURE__ */ o(
2044
- I,
2043
+ A,
2045
2044
  {
2046
2045
  onClick: () => ee(!0),
2047
2046
  children: [
@@ -2052,25 +2051,29 @@ function Js() {
2052
2051
  ),
2053
2052
  /* @__PURE__ */ e(ae, {})
2054
2053
  ] }),
2055
- Nt && /* @__PURE__ */ o(T, { children: [
2054
+ Nt && /* @__PURE__ */ o(R, { children: [
2056
2055
  /* @__PURE__ */ e(he, { children: "Dashboard" }),
2057
- /* @__PURE__ */ o(I, { onSelect: Je.open, children: [
2056
+ /* @__PURE__ */ o(A, { onSelect: Je.open, children: [
2058
2057
  /* @__PURE__ */ e(Pt, { className: "h-3.5 w-3.5" }),
2059
2058
  /* @__PURE__ */ e("span", { className: "flex-1", children: Je.label }),
2060
2059
  /* @__PURE__ */ e("span", { className: "pl-4 text-[11px] tabular-nums text-muted-foreground", children: Je.count })
2061
2060
  ] }),
2061
+ /* @__PURE__ */ o(A, { onSelect: gr, children: [
2062
+ /* @__PURE__ */ e(Tn, { className: "h-3.5 w-3.5" }),
2063
+ "Style"
2064
+ ] }),
2062
2065
  /* @__PURE__ */ e(ae, {})
2063
2066
  ] }),
2064
2067
  /* @__PURE__ */ e(he, { children: "Preferences" }),
2065
- /* @__PURE__ */ o(I, { onClick: () => De(!0), children: [
2068
+ /* @__PURE__ */ o(A, { onClick: () => De(!0), children: [
2066
2069
  /* @__PURE__ */ e(jt, { className: "h-3.5 w-3.5" }),
2067
2070
  "Report preferences"
2068
2071
  ] }),
2069
- u && h && /* @__PURE__ */ o(T, { children: [
2072
+ u && h && /* @__PURE__ */ o(R, { children: [
2070
2073
  /* @__PURE__ */ e(ae, {}),
2071
2074
  /* @__PURE__ */ e(he, { children: "Developer" }),
2072
2075
  /* @__PURE__ */ o(
2073
- I,
2076
+ A,
2074
2077
  {
2075
2078
  onSelect: () => {
2076
2079
  var d;
@@ -2085,7 +2088,7 @@ function Js() {
2085
2088
  }
2086
2089
  ),
2087
2090
  $ && /* @__PURE__ */ o(
2088
- I,
2091
+ A,
2089
2092
  {
2090
2093
  disabled: !qe,
2091
2094
  onSelect: () => {
@@ -2113,21 +2116,21 @@ function Js() {
2113
2116
  }
2114
2117
  ),
2115
2118
  /* @__PURE__ */ o(
2116
- I,
2119
+ A,
2117
2120
  {
2118
- onSelect: () => xn(n.apiServiceUrl),
2121
+ onSelect: () => vn(n.apiServiceUrl),
2119
2122
  children: [
2120
- /* @__PURE__ */ e(Tn, { className: "h-3.5 w-3.5" }),
2123
+ /* @__PURE__ */ e(Bn, { className: "h-3.5 w-3.5" }),
2121
2124
  "Invalidate token"
2122
2125
  ]
2123
2126
  }
2124
2127
  ),
2125
- /* @__PURE__ */ o(I, { onSelect: l, children: [
2126
- /* @__PURE__ */ e(_n, { className: "h-3.5 w-3.5" }),
2128
+ /* @__PURE__ */ o(A, { onSelect: l, children: [
2129
+ /* @__PURE__ */ e(Rn, { className: "h-3.5 w-3.5" }),
2127
2130
  "Brand Studio"
2128
2131
  ] }),
2129
2132
  D && /* @__PURE__ */ o(
2130
- I,
2133
+ A,
2131
2134
  {
2132
2135
  onSelect: () => ft(!ht),
2133
2136
  children: [
@@ -2142,7 +2145,7 @@ function Js() {
2142
2145
  )
2143
2146
  ] }),
2144
2147
  J && bt && /* @__PURE__ */ e(
2145
- Ia,
2148
+ Ma,
2146
2149
  {
2147
2150
  resource: bt,
2148
2151
  resourceType: Xe.DASHBOARD,
@@ -2150,28 +2153,28 @@ function Js() {
2150
2153
  }
2151
2154
  ),
2152
2155
  Q.showGroupManagement && /* @__PURE__ */ e(
2153
- ls,
2156
+ ms,
2154
2157
  {
2155
2158
  open: Z,
2156
2159
  onOpenChange: ee
2157
2160
  }
2158
2161
  ),
2159
2162
  /* @__PURE__ */ e(
2160
- Dn,
2163
+ kn,
2161
2164
  {
2162
2165
  open: Se,
2163
2166
  onOpenChange: De
2164
2167
  }
2165
2168
  ),
2166
2169
  /* @__PURE__ */ e(
2167
- xs,
2170
+ ys,
2168
2171
  {
2169
2172
  open: ke,
2170
2173
  onOpenChange: Ce
2171
2174
  }
2172
2175
  ),
2173
2176
  W && (se || Ee) ? /* @__PURE__ */ e(
2174
- vn,
2177
+ yn,
2175
2178
  {
2176
2179
  dashboardId: W,
2177
2180
  dashboardTitle: (b == null ? void 0 : b.title) || (G == null ? void 0 : G.title),
@@ -2185,31 +2188,31 @@ function Js() {
2185
2188
  }
2186
2189
  ) : null,
2187
2190
  h && /* @__PURE__ */ e(
2188
- Ma,
2191
+ La,
2189
2192
  {
2190
2193
  open: v,
2191
2194
  onOpenChange: B
2192
2195
  }
2193
2196
  ),
2194
2197
  /* @__PURE__ */ e(
2195
- La,
2198
+ Oa,
2196
2199
  {
2197
2200
  open: Ie,
2198
2201
  onOpenChange: (d) => {
2199
2202
  !d && Ve && !z || (q(d), d || (K(null), Me([]), Le(!1)));
2200
2203
  },
2201
- children: /* @__PURE__ */ o(Oa, { className: "max-w-sm", children: [
2202
- /* @__PURE__ */ o(Pa, { children: [
2203
- /* @__PURE__ */ e(_a, { children: z ? "Save failed" : "Saving dashboard" }),
2204
+ children: /* @__PURE__ */ o(Pa, { className: "max-w-sm", children: [
2205
+ /* @__PURE__ */ o(_a, { children: [
2206
+ /* @__PURE__ */ e(Ta, { children: z ? "Save failed" : "Saving dashboard" }),
2204
2207
  /* @__PURE__ */ e(Ra, { className: "pt-2", children: z ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2205
2208
  oe.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
2206
2209
  /* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
2207
2210
  /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: oe.slice(0, 5).map((d) => /* @__PURE__ */ e("li", { children: d }, d)) })
2208
2211
  ] })
2209
2212
  ] }),
2210
- /* @__PURE__ */ e(Ta, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: z ? /* @__PURE__ */ o(T, { children: [
2213
+ /* @__PURE__ */ e(Ua, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: z ? /* @__PURE__ */ o(R, { children: [
2211
2214
  /* @__PURE__ */ e(
2212
- Ua,
2215
+ Ba,
2213
2216
  {
2214
2217
  onClick: () => {
2215
2218
  q(!1), K(null), Me([]), Le(!1);
@@ -2237,14 +2240,14 @@ function Js() {
2237
2240
  }
2238
2241
  ),
2239
2242
  /* @__PURE__ */ e(
2240
- yn,
2243
+ wn,
2241
2244
  {
2242
- open: vr,
2245
+ open: yr,
2243
2246
  onOpenChange: (d) => {
2244
2247
  de(d);
2245
2248
  },
2246
- onSave: Cr,
2247
- onDiscard: Er,
2249
+ onSave: Er,
2250
+ onDiscard: Ar,
2248
2251
  isSaving: Ve,
2249
2252
  saveLabel: "Save",
2250
2253
  discardLabel: "Discard changes"
@@ -2255,10 +2258,10 @@ function Js() {
2255
2258
  }
2256
2259
  ) });
2257
2260
  }
2258
- function ks() {
2259
- const t = kn();
2260
- return t.length === 0 ? null : /* @__PURE__ */ o(T, { children: [
2261
- t.map((n) => /* @__PURE__ */ o(I, { onSelect: n.onSelect, children: [
2261
+ function Es() {
2262
+ const t = Cn();
2263
+ return t.length === 0 ? null : /* @__PURE__ */ o(R, { children: [
2264
+ t.map((n) => /* @__PURE__ */ o(A, { onSelect: n.onSelect, children: [
2262
2265
  n.icon,
2263
2266
  /* @__PURE__ */ e("span", { className: "flex-1", children: n.label }),
2264
2267
  n.hint && /* @__PURE__ */ e("span", { className: "text-[11px] text-muted-foreground", children: n.hint }),
@@ -2267,7 +2270,7 @@ function ks() {
2267
2270
  /* @__PURE__ */ e(ae, {})
2268
2271
  ] });
2269
2272
  }
2270
- function Cs({
2273
+ function As({
2271
2274
  accessToken: t,
2272
2275
  dashboardId: n,
2273
2276
  selectedSheetId: a,
@@ -2283,5 +2286,5 @@ function Cs({
2283
2286
  return m.searchParams.set("pdfMode", "document"), m.searchParams.set("pageSize", r || "letter"), m.searchParams.set("orientation", s || "portrait"), m.searchParams.set("url", u.toString()), m.toString();
2284
2287
  }
2285
2288
  export {
2286
- Js as default
2289
+ Xs as default
2287
2290
  };