react-semaphor 0.1.532 → 0.1.534

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 (1188) hide show
  1. package/dist/analytics-protocol/index.js +210 -207
  2. package/dist/brand-studio/index.js +3 -3
  3. package/dist/briefings/index.js +21 -21
  4. package/dist/chunks/bookmark-state-B-I9BDD0.js +331 -0
  5. package/dist/chunks/{calculated-field-identity-Q1aCudPD.js → calculated-field-identity-Cz1ZU_UL.js} +140 -188
  6. package/dist/chunks/calendar-day-equality-BRjN1S9h.js +383 -0
  7. package/dist/chunks/{card-config-utils-DqyASiD_.js → card-config-utils-BlIiFn0O.js} +25 -25
  8. package/dist/chunks/common-types-g7yS12Cg.js +114 -0
  9. package/dist/chunks/{dashboard-BoSKlMPx.js → dashboard-CCK80YKL.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-BR5llbxb.js → dashboard-briefing-launcher-B9Fq2Rf3.js} +1382 -1363
  11. package/dist/chunks/dashboard-controls-CoiTGnEr.js +2325 -0
  12. package/dist/chunks/{dashboard-json-Ez0I7b2H.js → dashboard-json-BRGozO--.js} +3 -3
  13. package/dist/chunks/{edit-dashboard-visual-DpGb6dpY.js → edit-dashboard-visual-CZFnhGZQ.js} +8377 -8605
  14. package/dist/chunks/{editor-action-buttons--SQ3CcBI.js → editor-action-buttons-CVtSO3I3.js} +428 -431
  15. package/dist/chunks/{field-aggregations-BCDRRYMo.js → field-aggregations-CoLzYHeL.js} +371 -474
  16. package/dist/chunks/field-dependencies-CpRUwr9J.js +281 -0
  17. package/dist/chunks/{index-BpAM7UE0.js → index-BQl5rC54.js} +404 -402
  18. package/dist/chunks/{matrix-analytical-definition-Q4GL16S4.js → matrix-analytical-definition-CgBTD6H8.js} +1 -1
  19. package/dist/chunks/{matrix-card-CkfMe-h-.js → matrix-card-CAdizkUl.js} +2 -2
  20. package/dist/chunks/{matrix-control-sources-fD0Ns_9n.js → matrix-control-sources-Tls-h3AN.js} +22 -22
  21. package/dist/chunks/{matrix-definition-CiGRzEzt.js → matrix-definition-D9iShKZI.js} +1 -1
  22. package/dist/chunks/{matrix-formatter-DDjECnMd.js → matrix-formatter-DJCk8Znf.js} +7 -6
  23. package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +209 -0
  24. package/dist/chunks/{matrix-operation-contract-BotZ-6zT.js → matrix-operation-contract-BKupLHXL.js} +89 -89
  25. package/dist/chunks/{metric-comparison-QEkk6hqL.js → metric-comparison-BKHyvnAy.js} +4 -4
  26. package/dist/chunks/{numeric-presentation-D2I9znLM.js → numeric-presentation-CWu3gunq.js} +1 -1
  27. package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +753 -0
  28. package/dist/chunks/{pivot-result-identity-BhAm8MCg.js → pivot-result-identity-Bs4tLtLo.js} +1 -1
  29. package/dist/chunks/{pivot-result-lifecycle-BxmATSFJ.js → pivot-result-lifecycle-DQz_gjGu.js} +8 -8
  30. package/dist/chunks/{raw-temporal-contract-BlyUGV3y.js → raw-temporal-contract-mLFS-9wk.js} +1 -1
  31. package/dist/chunks/{raw-temporal-B0EuwEHr.js → raw-temporal-iMXRK-Qz.js} +2 -2
  32. package/dist/chunks/{report-preferences-dialog-Cv_2GMlz.js → report-preferences-dialog-CWdTlWsr.js} +115 -115
  33. package/dist/chunks/{report-runtime-context-DceiWMKz.js → report-runtime-context-CG_I0PPW.js} +1 -1
  34. package/dist/chunks/{selection-reducer-DQok8gsC.js → selection-reducer-CiDEtmAq.js} +14 -14
  35. package/dist/chunks/{semantic-format-ByNkXJpY.js → semantic-format-DiqYeKwU.js} +3 -3
  36. package/dist/chunks/{semaphor-ready-indicator-lALyc-pQ.js → semaphor-ready-indicator-z4SNdxiC.js} +65118 -64011
  37. package/dist/chunks/slider-DbwmuVB-.js +875 -0
  38. package/dist/chunks/{source-entity-resolution-BWmw7a8P.js → source-entity-resolution-C-oNyYMp.js} +1 -1
  39. package/dist/chunks/{switch-CCOKraBb.js → switch-BR3Xgbqr.js} +7237 -5818
  40. package/dist/chunks/{temporal-bucket-contract-CdBtoHX2.js → temporal-bucket-contract-D2OuaVZ7.js} +1 -1
  41. package/dist/chunks/{temporal-input-presentation-wUO681Zs.js → temporal-input-presentation-BD7YNUzu.js} +9 -9
  42. package/dist/chunks/{token-types-Brc30mNN.js → token-types-DtSJOUjh.js} +1 -1
  43. package/dist/chunks/{validators-BS521dum.js → validators-DMSH81OM.js} +654 -639
  44. package/dist/chunks/zoned-wall-clock-1qlWCE20.js +129 -0
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.js +116 -112
  47. package/dist/data-app-sdk/index.js +5 -5
  48. package/dist/data-app-sdk-adapters/index.js +2 -2
  49. package/dist/data-app-sdk-validation/index.js +7 -7
  50. package/dist/format-utils/index.js +146 -141
  51. package/dist/index.js +174 -171
  52. package/dist/report-runtime-context/index.js +2 -2
  53. package/dist/style.css +1 -1
  54. package/dist/surfboard/index.js +2 -2
  55. package/dist/types/briefings/index.d.ts +0 -1
  56. package/dist/types/components/surfboard/filter/types.d.ts +9 -0
  57. package/dist/types/components/ui-custom/date-range-presets.d.ts +5 -1
  58. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +8 -0
  59. package/dist/types/components/visual/data-table/types/data-table.d.ts +11 -0
  60. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +15 -0
  61. package/dist/types/index.js +47 -29
  62. package/dist/types/lib/api/exports-api.d.ts +30 -3
  63. package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +43 -0
  64. package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +14 -0
  65. package/dist/types/lib/dashboard-viewer/table-view.d.ts +150 -0
  66. package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +51 -0
  67. package/dist/types/lib/dashboard-viewer/viewer-state-client.d.ts +72 -0
  68. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +212 -0
  69. package/dist/types/lib/dashboard-viewer/viewer-store-state.d.ts +44 -0
  70. package/dist/types/lib/download-pdf.d.ts +9 -1
  71. package/dist/types/lib/exports/bounded-request.d.ts +12 -0
  72. package/dist/types/lib/hooks/index.d.ts +1 -2
  73. package/dist/types/lib/hooks/use-dashboard-query.d.ts +2 -0
  74. package/dist/types/lib/hooks/use-dashboard.d.ts +5 -1
  75. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  76. package/dist/types/lib/hooks/use-export-polling.d.ts +9 -1
  77. package/dist/types/lib/query-context/build-card-query-context.d.ts +9 -1
  78. package/dist/types/lib/stores/dashboard-store.d.ts +76 -1
  79. package/dist/types/lib/stores/editor-store.d.ts +0 -4
  80. package/dist/types/lib/stores/export-store.d.ts +11 -0
  81. package/dist/types/lib/table-formatting/table-totals-settings.d.ts +5 -1
  82. package/dist/types/lib/types/common-types.d.ts +10 -0
  83. package/dist/types/lib/types/index.d.ts +1 -0
  84. package/dist/types/lib/utils/filter-default-value-utils.d.ts +11 -4
  85. package/dist/types/lib/utils.d.ts +1 -0
  86. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  87. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +7 -0
  88. package/dist/types/shared/analytics-protocol/sort-target.d.ts +40 -0
  89. package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +9 -0
  90. package/dist/types/shared/dashboard-viewer/bookmark-state.d.ts +35 -0
  91. package/dist/types/shared/dashboard-viewer/index.d.ts +3 -0
  92. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +89 -0
  93. package/dist/types/shared/dashboard-viewer/viewer-contract.d.ts +95 -0
  94. package/dist/types/shared/format-utils/filter-line.d.ts +47 -0
  95. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +6 -0
  96. package/dist/types/shared/format-utils/index.d.ts +1 -0
  97. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +28 -4
  98. package/package.json +2 -2
  99. package/dist/chunks/calendar-day-equality-Ddkpfhot.js +0 -466
  100. package/dist/chunks/common-types-C6cAQgyh.js +0 -9
  101. package/dist/chunks/dashboard-controls-4Thl0eL1.js +0 -2194
  102. package/dist/chunks/field-dependencies-BWStuMxe.js +0 -178
  103. package/dist/chunks/matrix-member-presentation-Glhem6xB.js +0 -182
  104. package/dist/chunks/pivot-header-presentation-BTOXdU6S.js +0 -618
  105. package/dist/chunks/slider-DlRYiI2m.js +0 -876
  106. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
  107. package/dist/types/components/ai/assistant-context-entity-controls.d.ts +0 -25
  108. package/dist/types/components/ai/assistant-message-components.d.ts +0 -59
  109. package/dist/types/components/ai/assistant-message.d.ts +0 -10
  110. package/dist/types/components/ai/assistant-virtualized-messages.d.ts +0 -21
  111. package/dist/types/components/ai/chat-custom-visual.d.ts +0 -21
  112. package/dist/types/components/ai/chat-input-with-context.d.ts +0 -16
  113. package/dist/types/components/ai/chat-input.d.ts +0 -11
  114. package/dist/types/components/ai/chat-visual-query-utils.d.ts +0 -68
  115. package/dist/types/components/ai/chat-visual.d.ts +0 -12
  116. package/dist/types/components/ai/clarification-card.d.ts +0 -20
  117. package/dist/types/components/ai/context-entity-display.d.ts +0 -10
  118. package/dist/types/components/ai/dashboard-assistant.d.ts +0 -27
  119. package/dist/types/components/ai/debug-message-array.d.ts +0 -1
  120. package/dist/types/components/ai/editor-assistant.d.ts +0 -7
  121. package/dist/types/components/ai/entity-mention-dropdown.d.ts +0 -16
  122. package/dist/types/components/ai/file-upload/file-preview.d.ts +0 -15
  123. package/dist/types/components/ai/file-upload/file-upload-button.d.ts +0 -10
  124. package/dist/types/components/ai/file-upload/file-upload-zone.d.ts +0 -11
  125. package/dist/types/components/ai/file-upload/file-utils.d.ts +0 -63
  126. package/dist/types/components/ai/highlighted-input.d.ts +0 -22
  127. package/dist/types/components/ai/message-feedback-buttons.d.ts +0 -9
  128. package/dist/types/components/ai/pending-messages-display.d.ts +0 -7
  129. package/dist/types/components/ai/placeholders.d.ts +0 -8
  130. package/dist/types/components/ai/pre-block.d.ts +0 -30
  131. package/dist/types/components/ai/quick-replies.d.ts +0 -8
  132. package/dist/types/components/ai/reasoning-effort-slider.d.ts +0 -7
  133. package/dist/types/components/ai/seed-questions.d.ts +0 -6
  134. package/dist/types/components/ai/tool-call-error.d.ts +0 -8
  135. package/dist/types/components/ai/tool-call.d.ts +0 -12
  136. package/dist/types/components/ai/tool-output-errors.d.ts +0 -2
  137. package/dist/types/components/ai/tool-part-renderer.d.ts +0 -32
  138. package/dist/types/components/appearance/dashboard-appearance-adapter.d.ts +0 -17
  139. package/dist/types/components/appearance/surface-appearance-adapter.d.ts +0 -21
  140. package/dist/types/components/briefings/attachments/briefing-attachment-list.d.ts +0 -9
  141. package/dist/types/components/briefings/attachments/briefing-attachment-selector.d.ts +0 -27
  142. package/dist/types/components/briefings/attachments/briefing-attachment-settings-dialog.d.ts +0 -16
  143. package/dist/types/components/briefings/briefing-author/attachment-section.d.ts +0 -20
  144. package/dist/types/components/briefings/briefing-author/author-actions.d.ts +0 -25
  145. package/dist/types/components/briefings/briefing-author/content-composers.d.ts +0 -9
  146. package/dist/types/components/briefings/briefing-author/defaults.d.ts +0 -1
  147. package/dist/types/components/briefings/briefing-author/delivery-section.d.ts +0 -56
  148. package/dist/types/components/briefings/briefing-author/form-primitives.d.ts +0 -20
  149. package/dist/types/components/briefings/briefing-author/output.d.ts +0 -2
  150. package/dist/types/components/briefings/briefing-author/presentation-vocabulary.d.ts +0 -17
  151. package/dist/types/components/briefings/briefing-author/schedule-model.d.ts +0 -13
  152. package/dist/types/components/briefings/briefing-author/schedule-section.d.ts +0 -5
  153. package/dist/types/components/briefings/briefing-author/schedule.d.ts +0 -8
  154. package/dist/types/components/briefings/briefing-author/scope-picker.d.ts +0 -14
  155. package/dist/types/components/briefings/briefing-author/slack-channel-picker.d.ts +0 -22
  156. package/dist/types/components/briefings/briefing-author/styles.d.ts +0 -4
  157. package/dist/types/components/briefings/briefing-html-frame.d.ts +0 -5
  158. package/dist/types/components/briefings/briefing-recipient-field.d.ts +0 -17
  159. package/dist/types/components/briefings/briefing-tones.d.ts +0 -30
  160. package/dist/types/components/briefings/dashboard-briefing-launcher-list.d.ts +0 -25
  161. package/dist/types/components/briefings/dashboard-briefing-launcher-model.d.ts +0 -14
  162. package/dist/types/components/briefings/dashboard-schedule-report-menu-item.d.ts +0 -11
  163. package/dist/types/components/calculated-fields/ai-compose-panel.d.ts +0 -19
  164. package/dist/types/components/calculated-fields/calculated-field-editor-utils.d.ts +0 -44
  165. package/dist/types/components/calculated-fields/calculated-field-editor.d.ts +0 -27
  166. package/dist/types/components/calculated-fields/domain-definition-notice.d.ts +0 -4
  167. package/dist/types/components/calculated-fields/expression-validator.d.ts +0 -8
  168. package/dist/types/components/calculated-fields/field-picker-panel.d.ts +0 -20
  169. package/dist/types/components/calculated-fields/field-type-toggle.d.ts +0 -7
  170. package/dist/types/components/calculated-fields/index.d.ts +0 -10
  171. package/dist/types/components/calculated-fields/insert-field-popover.d.ts +0 -18
  172. package/dist/types/components/calculated-fields/placeholder-field-picker.d.ts +0 -30
  173. package/dist/types/components/calculated-fields/summary-ribbon.d.ts +0 -23
  174. package/dist/types/components/calculated-fields/templates-menu.d.ts +0 -11
  175. package/dist/types/components/calculated-fields/validation-results.d.ts +0 -4
  176. package/dist/types/components/calculated-fields/validation-tooltip-content.d.ts +0 -4
  177. package/dist/types/components/chart-selector/chart-icon.d.ts +0 -37
  178. package/dist/types/components/chart-selector/chart-selector-item.d.ts +0 -18
  179. package/dist/types/components/chart-selector/chart-selector.d.ts +0 -25
  180. package/dist/types/components/chart-selector/chart-type-picker.d.ts +0 -12
  181. package/dist/types/components/chart-selector/index.d.ts +0 -4
  182. package/dist/types/components/chart-selector/use-chart-selector-model.d.ts +0 -18
  183. package/dist/types/components/dashboard/card-actions-menu.d.ts +0 -10
  184. package/dist/types/components/dashboard/card-selection-pill.d.ts +0 -5
  185. package/dist/types/components/dashboard/comparison-badge-state.d.ts +0 -3
  186. package/dist/types/components/dashboard/comparison-metadata-badge.d.ts +0 -11
  187. package/dist/types/components/dashboard/dashboard-card.d.ts +0 -17
  188. package/dist/types/components/dashboard/dashboard-container.d.ts +0 -9
  189. package/dist/types/components/dashboard/dashboard-error-state.d.ts +0 -9
  190. package/dist/types/components/dashboard/dashboard-frame-expand-dialog.d.ts +0 -5
  191. package/dist/types/components/dashboard/dashboard-frame.d.ts +0 -14
  192. package/dist/types/components/dashboard/dashboard-hub-row.d.ts +0 -18
  193. package/dist/types/components/dashboard/dashboard-hub-sort.d.ts +0 -8
  194. package/dist/types/components/dashboard/dashboard-hub.d.ts +0 -5
  195. package/dist/types/components/dashboard/dashboard-tabs.d.ts +0 -1
  196. package/dist/types/components/dashboard/dashboard-visual-error-state.d.ts +0 -20
  197. package/dist/types/components/dashboard/download-pdf.d.ts +0 -10
  198. package/dist/types/components/dashboard/drill-breadcrumb.d.ts +0 -7
  199. package/dist/types/components/dashboard/drill-navigation-controls.d.ts +0 -13
  200. package/dist/types/components/dashboard/inline-filter-bar.d.ts +0 -17
  201. package/dist/types/components/dashboard/inline-filter-component.d.ts +0 -30
  202. package/dist/types/components/dashboard/kpi-header.d.ts +0 -2
  203. package/dist/types/components/dashboard/semaphor-style-wrapper.d.ts +0 -3
  204. package/dist/types/components/dashboard/sheet/delete-sheet-alert.d.ts +0 -6
  205. package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +0 -6
  206. package/dist/types/components/dashboard/sheet/sheet-empty-state.d.ts +0 -5
  207. package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +0 -5
  208. package/dist/types/components/dashboard/sheet/sheet-layout_backup.d.ts +0 -0
  209. package/dist/types/components/dashboard/summary-warning-utils.d.ts +0 -6
  210. package/dist/types/components/dashboard/unconfigured-card-state.d.ts +0 -21
  211. package/dist/types/components/document-sheet/document-control-options-resolver.d.ts +0 -9
  212. package/dist/types/components/document-sheet/document-control-toolbar-actions.d.ts +0 -12
  213. package/dist/types/components/document-sheet/document-input-bar.d.ts +0 -30
  214. package/dist/types/components/document-sheet/document-insert-picker.d.ts +0 -37
  215. package/dist/types/components/document-sheet/document-inspector-primitives.d.ts +0 -10
  216. package/dist/types/components/document-sheet/document-kpi-section.d.ts +0 -17
  217. package/dist/types/components/document-sheet/document-matrix-layout-context.d.ts +0 -10
  218. package/dist/types/components/document-sheet/document-matrix-section.d.ts +0 -27
  219. package/dist/types/components/document-sheet/document-measure-layer.d.ts +0 -45
  220. package/dist/types/components/document-sheet/document-outline.d.ts +0 -21
  221. package/dist/types/components/document-sheet/document-page-navigation.d.ts +0 -22
  222. package/dist/types/components/document-sheet/document-page.d.ts +0 -68
  223. package/dist/types/components/document-sheet/document-panel/document-side-panel.d.ts +0 -36
  224. package/dist/types/components/document-sheet/document-panel/inputs-panel.d.ts +0 -9
  225. package/dist/types/components/document-sheet/document-panel/page-panel.d.ts +0 -5
  226. package/dist/types/components/document-sheet/document-panel/panel-controls.d.ts +0 -14
  227. package/dist/types/components/document-sheet/document-panel/region-panels.d.ts +0 -11
  228. package/dist/types/components/document-sheet/document-panel/section-panel.d.ts +0 -25
  229. package/dist/types/components/document-sheet/document-section-print-boundary.d.ts +0 -9
  230. package/dist/types/components/document-sheet/document-sheet.d.ts +0 -10
  231. package/dist/types/components/document-sheet/document-table-chrome.d.ts +0 -22
  232. package/dist/types/components/document-sheet/document-table-section.d.ts +0 -28
  233. package/dist/types/components/document-sheet/document-text-editor.d.ts +0 -8
  234. package/dist/types/components/document-sheet/document-text-preview-context.d.ts +0 -8
  235. package/dist/types/components/document-sheet/use-first-fitting-variant.d.ts +0 -18
  236. package/dist/types/components/editor/dashboard-json.d.ts +0 -1
  237. package/dist/types/components/editor/editable.d.ts +0 -14
  238. package/dist/types/components/editor/editor-main/card-display-options-dropdown.d.ts +0 -7
  239. package/dist/types/components/editor/editor-main/card-tabs.d.ts +0 -16
  240. package/dist/types/components/editor/editor-main/chart-configuration-options.d.ts +0 -1
  241. package/dist/types/components/editor/editor-main/clear-card-utils.d.ts +0 -2
  242. package/dist/types/components/editor/editor-main/code-editors/expanded-query-editor-dialog.d.ts +0 -14
  243. package/dist/types/components/editor/editor-main/code-editors/json-editor-readonly.d.ts +0 -3
  244. package/dist/types/components/editor/editor-main/code-editors/python-editor.d.ts +0 -2
  245. package/dist/types/components/editor/editor-main/code-editors/sql-editor.d.ts +0 -6
  246. package/dist/types/components/editor/editor-main/code-editors/use-query-editor-session-transfer.d.ts +0 -17
  247. package/dist/types/components/editor/editor-main/content-editable-text.d.ts +0 -11
  248. package/dist/types/components/editor/editor-main/context-hover-card.d.ts +0 -2
  249. package/dist/types/components/editor/editor-main/customize-visual/customize-chart-config.d.ts +0 -7
  250. package/dist/types/components/editor/editor-main/customize-visual/customize-visual-dialog.d.ts +0 -7
  251. package/dist/types/components/editor/editor-main/dashboard-filter-subscription-status.d.ts +0 -6
  252. package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +0 -39
  253. package/dist/types/components/editor/editor-main/data-label-settings.d.ts +0 -5
  254. package/dist/types/components/editor/editor-main/edit-dashboard-visual.d.ts +0 -2
  255. package/dist/types/components/editor/editor-main/editor-action-buttons.d.ts +0 -28
  256. package/dist/types/components/editor/editor-main/editor-actions-biz-mode.d.ts +0 -1
  257. package/dist/types/components/editor/editor-main/editor-card.d.ts +0 -4
  258. package/dist/types/components/editor/editor-main/editor-chart-config-execution.d.ts +0 -6
  259. package/dist/types/components/editor/editor-main/editor-main-component.d.ts +0 -1
  260. package/dist/types/components/editor/editor-main/editor-query-section.d.ts +0 -11
  261. package/dist/types/components/editor/editor-main/editor-visual-dropdown.d.ts +0 -0
  262. package/dist/types/components/editor/editor-main/editor-visual-section.d.ts +0 -23
  263. package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-constants.d.ts +0 -7
  264. package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-prompts.d.ts +0 -19
  265. package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-telemetry.d.ts +0 -2
  266. package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-types.d.ts +0 -48
  267. package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-utils.d.ts +0 -11
  268. package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer.d.ts +0 -2
  269. package/dist/types/components/editor/editor-main/legend-popover.d.ts +0 -1
  270. package/dist/types/components/editor/editor-main/raw-output-table.d.ts +0 -15
  271. package/dist/types/components/editor/editor-main/realtime-popover.d.ts +0 -1
  272. package/dist/types/components/editor/editor-main/table-type-switcher.d.ts +0 -5
  273. package/dist/types/components/editor/editor-main/text-card-rich-editor.d.ts +0 -25
  274. package/dist/types/components/editor/editor-main/text-card.d.ts +0 -10
  275. package/dist/types/components/editor/editor-main/use-editor-clear-action.d.ts +0 -1
  276. package/dist/types/components/editor/editor-main/visual-aside.d.ts +0 -5
  277. package/dist/types/components/editor/editor-main/visual-save-as-dialog.d.ts +0 -18
  278. package/dist/types/components/editor/editor-main/visual-settings.d.ts +0 -9
  279. package/dist/types/components/editor/mode-toggle.d.ts +0 -13
  280. package/dist/types/components/editor/query-feedback/query-card-details.d.ts +0 -14
  281. package/dist/types/components/editor/query-feedback/query-error.d.ts +0 -42
  282. package/dist/types/components/editor/query-feedback/query-feedback-layout.d.ts +0 -10
  283. package/dist/types/components/editor/query-feedback/query-info-clipboard.d.ts +0 -3
  284. package/dist/types/components/editor/query-feedback/query-info.d.ts +0 -21
  285. package/dist/types/components/editor/query-feedback/query-sql-preview.d.ts +0 -23
  286. package/dist/types/components/editor/query-feedback/use-query-error-feedback.d.ts +0 -7
  287. package/dist/types/components/editor/query-feedback/use-query-error.d.ts +0 -16
  288. package/dist/types/components/editor/query-feedback/visual-query-error-state.d.ts +0 -5
  289. package/dist/types/components/editor/utils/utils.d.ts +0 -2
  290. package/dist/types/components/error-fallbacks/delivery-render-error.d.ts +0 -7
  291. package/dist/types/components/error-fallbacks/fallback.d.ts +0 -31
  292. package/dist/types/components/error-fallbacks/render-reset-error-boundary.d.ts +0 -33
  293. package/dist/types/components/explorer/chart-configuration/area-series-config-section.d.ts +0 -5
  294. package/dist/types/components/explorer/chart-configuration/axis-config-section.d.ts +0 -1
  295. package/dist/types/components/explorer/chart-configuration/bar-series-config-section.d.ts +0 -5
  296. package/dist/types/components/explorer/chart-configuration/bar-style-config-section.d.ts +0 -7
  297. package/dist/types/components/explorer/chart-configuration/bubble-scatter-config-section.d.ts +0 -1
  298. package/dist/types/components/explorer/chart-configuration/bullet-config-section.d.ts +0 -1
  299. package/dist/types/components/explorer/chart-configuration/chart-config-sections.d.ts +0 -15
  300. package/dist/types/components/explorer/chart-configuration/chart-configuration-panel.d.ts +0 -18
  301. package/dist/types/components/explorer/chart-configuration/chart-fields-configuration.d.ts +0 -22
  302. package/dist/types/components/explorer/chart-configuration/chart-type-row.d.ts +0 -25
  303. package/dist/types/components/explorer/chart-configuration/color-config-section.d.ts +0 -18
  304. package/dist/types/components/explorer/chart-configuration/combo-series-config-section.d.ts +0 -6
  305. package/dist/types/components/explorer/chart-configuration/comparison-config-section.d.ts +0 -7
  306. package/dist/types/components/explorer/chart-configuration/custom-color-picker.d.ts +0 -7
  307. package/dist/types/components/explorer/chart-configuration/data-labels-config-section.d.ts +0 -1
  308. package/dist/types/components/explorer/chart-configuration/data-labels-fields.d.ts +0 -21
  309. package/dist/types/components/explorer/chart-configuration/funnel-config-section.d.ts +0 -1
  310. package/dist/types/components/explorer/chart-configuration/heatmap-color-config-section.d.ts +0 -1
  311. package/dist/types/components/explorer/chart-configuration/kpi-format-config-section.d.ts +0 -1
  312. package/dist/types/components/explorer/chart-configuration/legend-config-section.d.ts +0 -1
  313. package/dist/types/components/explorer/chart-configuration/line-series-config-section.d.ts +0 -5
  314. package/dist/types/components/explorer/chart-configuration/line-style-config-section.d.ts +0 -7
  315. package/dist/types/components/explorer/chart-configuration/matrix-authoring-controls.d.ts +0 -41
  316. package/dist/types/components/explorer/chart-configuration/matrix-authoring-panel.d.ts +0 -21
  317. package/dist/types/components/explorer/chart-configuration/matrix-editor-settings.d.ts +0 -5
  318. package/dist/types/components/explorer/chart-configuration/metric-format-editor.d.ts +0 -12
  319. package/dist/types/components/explorer/chart-configuration/number-format-config.d.ts +0 -18
  320. package/dist/types/components/explorer/chart-configuration/number-format-config.utils.d.ts +0 -11
  321. package/dist/types/components/explorer/chart-configuration/stacked-sort-section.d.ts +0 -1
  322. package/dist/types/components/explorer/chart-configuration/summary-config-section.d.ts +0 -1
  323. package/dist/types/components/explorer/chart-configuration/tooltip-format-config-section.d.ts +0 -1
  324. package/dist/types/components/explorer/chart-configuration/treemap-color-mode-section.d.ts +0 -1
  325. package/dist/types/components/explorer/chart-configuration/use-effective-card-type.d.ts +0 -1
  326. package/dist/types/components/explorer/data-source/add-data-picker.d.ts +0 -23
  327. package/dist/types/components/explorer/data-source/data-source-panel.d.ts +0 -6
  328. package/dist/types/components/explorer/data-source/dataset-selector-popover.d.ts +0 -11
  329. package/dist/types/components/explorer/data-source/db-schema-selector.d.ts +0 -8
  330. package/dist/types/components/explorer/data-source/direct-source-tree.d.ts +0 -10
  331. package/dist/types/components/explorer/data-source/entity-tooltip.d.ts +0 -14
  332. package/dist/types/components/explorer/data-source/file-upload-manager.d.ts +0 -1
  333. package/dist/types/components/explorer/data-source/select-data-dialog.d.ts +0 -6
  334. package/dist/types/components/explorer/data-source/selected-entities-summary.d.ts +0 -15
  335. package/dist/types/components/explorer/data-source/semantic-domain-access-utils.d.ts +0 -10
  336. package/dist/types/components/explorer/data-source/semantic-domain-selection.d.ts +0 -9
  337. package/dist/types/components/explorer/data-source/semantic-domain-tree.d.ts +0 -22
  338. package/dist/types/components/explorer/data-source/url-source-manager.d.ts +0 -1
  339. package/dist/types/components/explorer/data-source/utils.d.ts +0 -11
  340. package/dist/types/components/explorer/drag-and-drop/attribute-filter-dialog.d.ts +0 -11
  341. package/dist/types/components/explorer/drag-and-drop/data-concept-tooltip.d.ts +0 -17
  342. package/dist/types/components/explorer/drag-and-drop/drag-overlay.d.ts +0 -12
  343. package/dist/types/components/explorer/drag-and-drop/draggable-field-shell.d.ts +0 -15
  344. package/dist/types/components/explorer/drag-and-drop/draggable-field.d.ts +0 -13
  345. package/dist/types/components/explorer/drag-and-drop/droppable-zone.d.ts +0 -13
  346. package/dist/types/components/explorer/drag-and-drop/inline-edit-field.d.ts +0 -10
  347. package/dist/types/components/explorer/drag-and-drop/matrix-draggable-field.d.ts +0 -5
  348. package/dist/types/components/explorer/drag-and-drop/pivot-alias-template-editor.d.ts +0 -6
  349. package/dist/types/components/explorer/drag-and-drop/pivot-member-order-visibility.d.ts +0 -3
  350. package/dist/types/components/explorer/drag-and-drop/pivot-value-aliases-editor.d.ts +0 -6
  351. package/dist/types/components/explorer/fields/field-expression-annotation.d.ts +0 -15
  352. package/dist/types/components/explorer/fields/field-group.d.ts +0 -0
  353. package/dist/types/components/explorer/fields/field-hover-preview.d.ts +0 -10
  354. package/dist/types/components/explorer/fields/field-option-list.d.ts +0 -54
  355. package/dist/types/components/explorer/fields/field-row.d.ts +0 -39
  356. package/dist/types/components/explorer/fields/fields-list.d.ts +0 -10
  357. package/dist/types/components/explorer/fields/fields-section.d.ts +0 -6
  358. package/dist/types/components/explorer/fields/filterable-fields-panel.d.ts +0 -11
  359. package/dist/types/components/explorer/fields/icon-for-field-type.d.ts +0 -3
  360. package/dist/types/components/explorer/fields/numeric-popover.d.ts +0 -6
  361. package/dist/types/components/explorer/fields/source-field.d.ts +0 -28
  362. package/dist/types/components/explorer/fields/type-glyph.d.ts +0 -14
  363. package/dist/types/components/explorer/filters/card-date-filter.d.ts +0 -20
  364. package/dist/types/components/explorer/filters/card-date-selection.d.ts +0 -28
  365. package/dist/types/components/explorer/filters/card-filter-builder.d.ts +0 -11
  366. package/dist/types/components/explorer/filters/card-filter-manager.d.ts +0 -12
  367. package/dist/types/components/explorer/filters/field-multi-select.d.ts +0 -16
  368. package/dist/types/components/explorer/filters/field-single-select.d.ts +0 -16
  369. package/dist/types/components/explorer/filters/searchable-field-combobox.d.ts +0 -17
  370. package/dist/types/components/explorer/filters/utils.d.ts +0 -2
  371. package/dist/types/components/explorer/join-configuration/auto-join-info.d.ts +0 -16
  372. package/dist/types/components/explorer/join-configuration/join-conditions-builder.d.ts +0 -10
  373. package/dist/types/components/explorer/join-configuration/join-dialog.d.ts +0 -14
  374. package/dist/types/components/explorer/join-configuration/join-manager.d.ts +0 -10
  375. package/dist/types/components/explorer/join-configuration/join-tooltip-content.d.ts +0 -9
  376. package/dist/types/components/explorer/main/explorer.d.ts +0 -1
  377. package/dist/types/components/explorer/main/view-tabs.d.ts +0 -17
  378. package/dist/types/components/explorer/visualization/chart-settings-panel.d.ts +0 -7
  379. package/dist/types/components/explorer/visualization/chart-split-view.d.ts +0 -16
  380. package/dist/types/components/explorer/visualization/feedback-dialog.d.ts +0 -11
  381. package/dist/types/components/explorer/visualization/row-limit-selector.d.ts +0 -1
  382. package/dist/types/components/explorer/visualization/visualization-panel.d.ts +0 -18
  383. package/dist/types/components/icons/bullet-chart-icon.d.ts +0 -2
  384. package/dist/types/components/interactions/applied-filters-display.d.ts +0 -40
  385. package/dist/types/components/interactions/card-renderer.d.ts +0 -17
  386. package/dist/types/components/interactions/click-to-filter-review-dialog.d.ts +0 -22
  387. package/dist/types/components/interactions/dashboard-drill-host.d.ts +0 -13
  388. package/dist/types/components/interactions/drill-config/hierarchy-steps-display.d.ts +0 -9
  389. package/dist/types/components/interactions/drill-config/hierarchy-templates.d.ts +0 -5
  390. package/dist/types/components/interactions/drill-config/sortable-hierarchy.d.ts +0 -15
  391. package/dist/types/components/interactions/drill-config/sortable-step.d.ts +0 -14
  392. package/dist/types/components/interactions/drill-config/step-configuration-popup.d.ts +0 -13
  393. package/dist/types/components/interactions/drill-hierarchy-modal.d.ts +0 -43
  394. package/dist/types/components/interactions/drill-to-url-modal.d.ts +0 -26
  395. package/dist/types/components/interactions/filter-badge-tooltip.d.ts +0 -13
  396. package/dist/types/components/interactions/hooks/use-drill-hierarchy.d.ts +0 -15
  397. package/dist/types/components/interactions/hooks/use-hierarchy-templates.d.ts +0 -5
  398. package/dist/types/components/interactions/hooks/use-step-reordering.d.ts +0 -6
  399. package/dist/types/components/interactions/insight-modal.d.ts +0 -29
  400. package/dist/types/components/interactions/insight-viewer.d.ts +0 -16
  401. package/dist/types/components/interactions/interactions-sheet.d.ts +0 -7
  402. package/dist/types/components/interactions/panels/click-to-filter-panel.d.ts +0 -20
  403. package/dist/types/components/interactions/panels/drill-down-panel.d.ts +0 -44
  404. package/dist/types/components/interactions/panels/drill-to-dashboard-panel.d.ts +0 -24
  405. package/dist/types/components/interactions/panels/drill-to-insight-panel.d.ts +0 -24
  406. package/dist/types/components/interactions/panels/drill-to-url-panel-v2.d.ts +0 -9
  407. package/dist/types/components/interactions/panels/dynamic-drill-panel.d.ts +0 -24
  408. package/dist/types/components/interactions/panels/panel-field.d.ts +0 -29
  409. package/dist/types/components/interactions/pickers/dashboard-picker.d.ts +0 -36
  410. package/dist/types/components/interactions/pickers/insight-picker.d.ts +0 -36
  411. package/dist/types/components/interactions/replaced-card-wrapper.d.ts +0 -13
  412. package/dist/types/components/interactions/reusable/field-combobox.d.ts +0 -22
  413. package/dist/types/components/interactions/reusable/field-selector.d.ts +0 -15
  414. package/dist/types/components/interactions/reusable/inline-field-selector.d.ts +0 -11
  415. package/dist/types/components/interactions/reusable/interaction-selection-popover.d.ts +0 -107
  416. package/dist/types/components/interactions/sheet/action-editor.d.ts +0 -17
  417. package/dist/types/components/interactions/sheet/action-meta.d.ts +0 -45
  418. package/dist/types/components/interactions/sheet/action-picker.d.ts +0 -7
  419. package/dist/types/components/interactions/sheet/click-outcome-preview.d.ts +0 -10
  420. package/dist/types/components/interactions/sheet/interactions-home.d.ts +0 -28
  421. package/dist/types/components/interactions/sheet/sheet-parts.d.ts +0 -37
  422. package/dist/types/components/kpi-visual-v2/country-selector.d.ts +0 -11
  423. package/dist/types/components/kpi-visual-v2/kpi-card-explorer.d.ts +0 -12
  424. package/dist/types/components/kpi-visual-v2/kpi-settings.d.ts +0 -1
  425. package/dist/types/components/kpi-visual-v2/kpi-tooltip-components.d.ts +0 -25
  426. package/dist/types/components/kpi-visual-v2/kpi-tooltip-utils.d.ts +0 -8
  427. package/dist/types/components/kpi-visual-v2/kpi-tooltip.d.ts +0 -15
  428. package/dist/types/components/kpi-visual-v2/metric-comparison-indicator.d.ts +0 -17
  429. package/dist/types/components/kpi-visual-v2/metric-comparison-kpi.d.ts +0 -11
  430. package/dist/types/components/providers/appearance-context.d.ts +0 -23
  431. package/dist/types/components/providers/appearance-provider.d.ts +0 -4
  432. package/dist/types/components/providers/brand-studio-preview-context.d.ts +0 -5
  433. package/dist/types/components/providers/dashboard-matrix-execution-provider.d.ts +0 -10
  434. package/dist/types/components/providers/dashboard-preferences-provider.d.ts +0 -12
  435. package/dist/types/components/providers/display-preferences-provider.d.ts +0 -10
  436. package/dist/types/components/providers/theme-provider-context.d.ts +0 -7
  437. package/dist/types/components/providers/theme-provider.d.ts +0 -8
  438. package/dist/types/components/providers/ux-provider.d.ts +0 -6
  439. package/dist/types/components/semaphor/code-block.d.ts +0 -20
  440. package/dist/types/components/semaphor/code-editor.d.ts +0 -114
  441. package/dist/types/components/semaphor/code-highlight.d.ts +0 -15
  442. package/dist/types/components/sharing-and-management/common-loading-skeleton.d.ts +0 -1
  443. package/dist/types/components/sharing-and-management/create-dashboard-dialog.d.ts +0 -11
  444. package/dist/types/components/sharing-and-management/create-visual-dialog.d.ts +0 -11
  445. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +0 -19
  446. package/dist/types/components/sharing-and-management/group-management-dialog.d.ts +0 -6
  447. package/dist/types/components/sharing-and-management/hooks/use-current-user-info.d.ts +0 -41
  448. package/dist/types/components/sharing-and-management/hooks/use-group-management.d.ts +0 -30
  449. package/dist/types/components/sharing-and-management/hooks/use-groups.d.ts +0 -30
  450. package/dist/types/components/sharing-and-management/hooks/use-resource-share-data.d.ts +0 -27
  451. package/dist/types/components/sharing-and-management/hooks/use-unified-users.d.ts +0 -61
  452. package/dist/types/components/sharing-and-management/hooks/use-visual-utils.d.ts +0 -33
  453. package/dist/types/components/sharing-and-management/resource-edit-dialog.d.ts +0 -15
  454. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/access-list.d.ts +0 -14
  455. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/adapter.d.ts +0 -53
  456. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/configs.d.ts +0 -40
  457. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/invite-combobox.d.ts +0 -22
  458. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/primitives.d.ts +0 -33
  459. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/share-shape.d.ts +0 -20
  460. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/shell.d.ts +0 -17
  461. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/status-bar.d.ts +0 -5
  462. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/submission.d.ts +0 -38
  463. package/dist/types/components/sharing-and-management/resource-share-dialog/unified/types.d.ts +0 -62
  464. package/dist/types/components/sharing-and-management/utils/resource-query-keys.d.ts +0 -14
  465. package/dist/types/components/sharing-and-management/utils/shares-types.d.ts +0 -130
  466. package/dist/types/components/surfboard/card-controls-toolbar.d.ts +0 -17
  467. package/dist/types/components/surfboard/controls/card-runtime-controls.d.ts +0 -6
  468. package/dist/types/components/surfboard/controls/control-authoring-utils.d.ts +0 -182
  469. package/dist/types/components/surfboard/controls/control-binding-list-editor.d.ts +0 -21
  470. package/dist/types/components/surfboard/controls/control-definition-editor-helpers.d.ts +0 -43
  471. package/dist/types/components/surfboard/controls/control-definition-editor-sections.d.ts +0 -65
  472. package/dist/types/components/surfboard/controls/control-definition-list-editor.d.ts +0 -29
  473. package/dist/types/components/surfboard/controls/control-select-ui-utils.d.ts +0 -13
  474. package/dist/types/components/surfboard/controls/control-toolbar-item.d.ts +0 -22
  475. package/dist/types/components/surfboard/controls/control-toolbar-settings-form.d.ts +0 -30
  476. package/dist/types/components/surfboard/controls/control-toolbar-settings-shell.d.ts +0 -37
  477. package/dist/types/components/surfboard/controls/control-usage-utils.d.ts +0 -22
  478. package/dist/types/components/surfboard/controls/control-validation-message-utils.d.ts +0 -5
  479. package/dist/types/components/surfboard/controls/dashboard-control-delete-dialog.d.ts +0 -7
  480. package/dist/types/components/surfboard/controls/dashboard-control-toolbar-popover.d.ts +0 -9
  481. package/dist/types/components/surfboard/controls/dashboard-runtime-controls.d.ts +0 -1
  482. package/dist/types/components/surfboard/controls/matrix-structural-targets.d.ts +0 -10
  483. package/dist/types/components/surfboard/controls/presentation-currency-binding-editor.d.ts +0 -15
  484. package/dist/types/components/surfboard/controls/runtime-control-input.d.ts +0 -16
  485. package/dist/types/components/surfboard/controls/runtime-control-utils.d.ts +0 -16
  486. package/dist/types/components/surfboard/controls/runtime-controls-group.d.ts +0 -12
  487. package/dist/types/components/surfboard/controls/sortable-control-toolbar-item.d.ts +0 -9
  488. package/dist/types/components/surfboard/controls/use-create-flow-overlay-state.d.ts +0 -32
  489. package/dist/types/components/surfboard/controls/use-dashboard-structural-participants.d.ts +0 -14
  490. package/dist/types/components/surfboard/controls/use-resolved-control-toolbar-options.d.ts +0 -26
  491. package/dist/types/components/surfboard/dashboard-controls.d.ts +0 -1
  492. package/dist/types/components/surfboard/dashboard-plus-main.d.ts +0 -1
  493. package/dist/types/components/surfboard/download-settings-dialog.d.ts +0 -8
  494. package/dist/types/components/surfboard/expanded-card-view.d.ts +0 -11
  495. package/dist/types/components/surfboard/export-dialog.d.ts +0 -16
  496. package/dist/types/components/surfboard/filter/apply-filters-check-box.d.ts +0 -7
  497. package/dist/types/components/surfboard/filter/custom-filter/custom-filter-selector.d.ts +0 -12
  498. package/dist/types/components/surfboard/filter/custom-filter/custom-filter-types.d.ts +0 -45
  499. package/dist/types/components/surfboard/filter/custom-filter/dashboard-custom-filter.d.ts +0 -19
  500. package/dist/types/components/surfboard/filter/custom-filter-popover.d.ts +0 -75
  501. package/dist/types/components/surfboard/filter/dashboard-filter-info-group.d.ts +0 -21
  502. package/dist/types/components/surfboard/filter/dashboard-filter-mapping-panel.d.ts +0 -40
  503. package/dist/types/components/surfboard/filter/date-comparison-controls.d.ts +0 -8
  504. package/dist/types/components/surfboard/filter/date-comparison-label.d.ts +0 -2
  505. package/dist/types/components/surfboard/filter/date-range-filter-v2.d.ts +0 -38
  506. package/dist/types/components/surfboard/filter/date-range-filter.d.ts +0 -7
  507. package/dist/types/components/surfboard/filter/day-picker.d.ts +0 -30
  508. package/dist/types/components/surfboard/filter/field-date-comparison-scope-message.d.ts +0 -2
  509. package/dist/types/components/surfboard/filter/field-date-filter.d.ts +0 -9
  510. package/dist/types/components/surfboard/filter/filter-actions-popover-content.d.ts +0 -9
  511. package/dist/types/components/surfboard/filter/filter-aside.d.ts +0 -1
  512. package/dist/types/components/surfboard/filter/filter-component.d.ts +0 -13
  513. package/dist/types/components/surfboard/filter/filter-configuration-panel.d.ts +0 -102
  514. package/dist/types/components/surfboard/filter/filter-default-values-picker.d.ts +0 -29
  515. package/dist/types/components/surfboard/filter/filter-error-state.d.ts +0 -7
  516. package/dist/types/components/surfboard/filter/filter-header.d.ts +0 -4
  517. package/dist/types/components/surfboard/filter/filter-info.d.ts +0 -17
  518. package/dist/types/components/surfboard/filter/filter-option-dependencies-settings.d.ts +0 -34
  519. package/dist/types/components/surfboard/filter/filter-option-list.d.ts +0 -39
  520. package/dist/types/components/surfboard/filter/filter-option-source-settings.d.ts +0 -15
  521. package/dist/types/components/surfboard/filter/filter-picker-popover-content.d.ts +0 -1
  522. package/dist/types/components/surfboard/filter/filter-popover-parts.d.ts +0 -37
  523. package/dist/types/components/surfboard/filter/filter-scope-config.d.ts +0 -8
  524. package/dist/types/components/surfboard/filter/filter-settings-popover-delete.d.ts +0 -0
  525. package/dist/types/components/surfboard/filter/filter-settings-popover.d.ts +0 -5
  526. package/dist/types/components/surfboard/filter/filter-toolbar-item.d.ts +0 -22
  527. package/dist/types/components/surfboard/filter/filter-toolbar-order-utils.d.ts +0 -3
  528. package/dist/types/components/surfboard/filter/filter-toolbar.d.ts +0 -7
  529. package/dist/types/components/surfboard/filter/global-date-comparison-footer.d.ts +0 -14
  530. package/dist/types/components/surfboard/filter/global-date-filter.d.ts +0 -9
  531. package/dist/types/components/surfboard/filter/hidden-filters.d.ts +0 -1
  532. package/dist/types/components/surfboard/filter/month-picker.d.ts +0 -19
  533. package/dist/types/components/surfboard/filter/multi-select-filter.d.ts +0 -16
  534. package/dist/types/components/surfboard/filter/multi-select-inline-content.d.ts +0 -39
  535. package/dist/types/components/surfboard/filter/numeric-filter-input.d.ts +0 -8
  536. package/dist/types/components/surfboard/filter/radio-button-filter.d.ts +0 -8
  537. package/dist/types/components/surfboard/filter/selection-chip.d.ts +0 -11
  538. package/dist/types/components/surfboard/filter/selection-filter-section.d.ts +0 -4
  539. package/dist/types/components/surfboard/filter/sortable-filter-toolbar-item.d.ts +0 -24
  540. package/dist/types/components/surfboard/filter/tabs-filter.d.ts +0 -8
  541. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +0 -80
  542. package/dist/types/components/surfboard/filter/use-filter-header-width.d.ts +0 -12
  543. package/dist/types/components/surfboard/filter/utils.d.ts +0 -4
  544. package/dist/types/components/surfboard/inline-options-error-state.d.ts +0 -6
  545. package/dist/types/components/surfboard/input-chip-row.d.ts +0 -21
  546. package/dist/types/components/surfboard/preferences/calendar-preferences-panel.d.ts +0 -7
  547. package/dist/types/components/surfboard/preferences/display-format-preferences-panel.d.ts +0 -6
  548. package/dist/types/components/surfboard/toolbar-item-shell.d.ts +0 -17
  549. package/dist/types/components/text-variables/variable-chip-plugin.d.ts +0 -23
  550. package/dist/types/components/text-variables/variable-chip.d.ts +0 -18
  551. package/dist/types/components/text-variables/variable-picker.d.ts +0 -27
  552. package/dist/types/components/ui/accordion.d.ts +0 -7
  553. package/dist/types/components/ui/alert-dialog.d.ts +0 -20
  554. package/dist/types/components/ui/alert.d.ts +0 -8
  555. package/dist/types/components/ui/audience-type-badge.d.ts +0 -9
  556. package/dist/types/components/ui/avatar.d.ts +0 -6
  557. package/dist/types/components/ui/badge.d.ts +0 -9
  558. package/dist/types/components/ui/button.d.ts +0 -11
  559. package/dist/types/components/ui/calendar.d.ts +0 -8
  560. package/dist/types/components/ui/card.d.ts +0 -8
  561. package/dist/types/components/ui/checkbox.d.ts +0 -4
  562. package/dist/types/components/ui/collapsible.d.ts +0 -5
  563. package/dist/types/components/ui/command.d.ts +0 -82
  564. package/dist/types/components/ui/context-menu.d.ts +0 -27
  565. package/dist/types/components/ui/dialog.d.ts +0 -28
  566. package/dist/types/components/ui/dropdown-menu.d.ts +0 -27
  567. package/dist/types/components/ui/hover-card.d.ts +0 -6
  568. package/dist/types/components/ui/input.d.ts +0 -9
  569. package/dist/types/components/ui/label.d.ts +0 -5
  570. package/dist/types/components/ui/popover.d.ts +0 -7
  571. package/dist/types/components/ui/portal-scope.d.ts +0 -6
  572. package/dist/types/components/ui/progress.d.ts +0 -4
  573. package/dist/types/components/ui/radio-group.d.ts +0 -5
  574. package/dist/types/components/ui/resizable.d.ts +0 -23
  575. package/dist/types/components/ui/scroll-area.d.ts +0 -5
  576. package/dist/types/components/ui/select.d.ts +0 -16
  577. package/dist/types/components/ui/separator.d.ts +0 -4
  578. package/dist/types/components/ui/sheet.d.ts +0 -39
  579. package/dist/types/components/ui/skeleton.d.ts +0 -2
  580. package/dist/types/components/ui/slider.d.ts +0 -4
  581. package/dist/types/components/ui/sonner.d.ts +0 -4
  582. package/dist/types/components/ui/switch.d.ts +0 -10
  583. package/dist/types/components/ui/table.d.ts +0 -13
  584. package/dist/types/components/ui/tabs.d.ts +0 -14
  585. package/dist/types/components/ui/textarea.d.ts +0 -9
  586. package/dist/types/components/ui/toggle.d.ts +0 -12
  587. package/dist/types/components/ui/tooltip.d.ts +0 -8
  588. package/dist/types/components/ui-custom/color-field.d.ts +0 -31
  589. package/dist/types/components/ui-custom/column-search.d.ts +0 -42
  590. package/dist/types/components/ui-custom/combo-box-2.d.ts +0 -40
  591. package/dist/types/components/ui-custom/command-input-custom.d.ts +0 -9
  592. package/dist/types/components/ui-custom/copy-button.d.ts +0 -15
  593. package/dist/types/components/ui-custom/copy-on-click.d.ts +0 -11
  594. package/dist/types/components/ui-custom/custom-scroll-area.d.ts +0 -6
  595. package/dist/types/components/ui-custom/date-range-picker.d.ts +0 -85
  596. package/dist/types/components/ui-custom/date-range-popover.d.ts +0 -14
  597. package/dist/types/components/ui-custom/details.d.ts +0 -7
  598. package/dist/types/components/ui-custom/dev-mode-switch.d.ts +0 -8
  599. package/dist/types/components/ui-custom/editable-text.d.ts +0 -22
  600. package/dist/types/components/ui-custom/grip-reveal.d.ts +0 -4
  601. package/dist/types/components/ui-custom/icon-button.d.ts +0 -13
  602. package/dist/types/components/ui-custom/load-on-scroll-status.d.ts +0 -8
  603. package/dist/types/components/ui-custom/load-on-scroll-utils.d.ts +0 -1
  604. package/dist/types/components/ui-custom/loading-dots.d.ts +0 -7
  605. package/dist/types/components/ui-custom/local-blur-input.d.ts +0 -9
  606. package/dist/types/components/ui-custom/option-search-input.d.ts +0 -16
  607. package/dist/types/components/ui-custom/overflow-div.d.ts +0 -5
  608. package/dist/types/components/ui-custom/overflow-span.d.ts +0 -5
  609. package/dist/types/components/ui-custom/popover-content-custom.d.ts +0 -4
  610. package/dist/types/components/ui-custom/pre-tag.d.ts +0 -4
  611. package/dist/types/components/ui-custom/radio-indicator.d.ts +0 -13
  612. package/dist/types/components/ui-custom/report-calendar.d.ts +0 -18
  613. package/dist/types/components/ui-custom/resizable-handle-custom.d.ts +0 -7
  614. package/dist/types/components/ui-custom/reusable-select.d.ts +0 -16
  615. package/dist/types/components/ui-custom/visual-badge.d.ts +0 -9
  616. package/dist/types/components/visual/aggregated-table/aggregate-table.d.ts +0 -3
  617. package/dist/types/components/visual/aggregated-table/columns/aggregate-columns.d.ts +0 -4
  618. package/dist/types/components/visual/aggregated-table/columns/column-cell-components.d.ts +0 -17
  619. package/dist/types/components/visual/aggregated-table/columns/column-definitions.d.ts +0 -29
  620. package/dist/types/components/visual/aggregated-table/columns/column-header-components.d.ts +0 -32
  621. package/dist/types/components/visual/aggregated-table/components/aggregate-table-body.d.ts +0 -18
  622. package/dist/types/components/visual/aggregated-table/components/grand-total-footer.d.ts +0 -23
  623. package/dist/types/components/visual/aggregated-table/hooks/use-aggregate-table.d.ts +0 -15
  624. package/dist/types/components/visual/aggregated-table/types/aggregate-table.d.ts +0 -68
  625. package/dist/types/components/visual/aggregated-table/utils/cell-formatters.d.ts +0 -6
  626. package/dist/types/components/visual/aggregated-table/utils/data-organizer.d.ts +0 -12
  627. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +0 -29
  628. package/dist/types/components/visual/aggregated-table/utils/metric-format-resolver.d.ts +0 -66
  629. package/dist/types/components/visual/aggregated-table/utils/temporal-presentation.d.ts +0 -17
  630. package/dist/types/components/visual/chart-utils.d.ts +0 -15
  631. package/dist/types/components/visual/chartjs-visual.d.ts +0 -9
  632. package/dist/types/components/visual/column-display-utils.d.ts +0 -2
  633. package/dist/types/components/visual/custom-visual/build-inline-filter-nodes.d.ts +0 -21
  634. package/dist/types/components/visual/custom-visual/build-multi-input-props.d.ts +0 -48
  635. package/dist/types/components/visual/custom-visual/component-combo-box.d.ts +0 -11
  636. package/dist/types/components/visual/custom-visual/custom-card-theme-adapter.d.ts +0 -3
  637. package/dist/types/components/visual/custom-visual/custom-visual-settings.d.ts +0 -1
  638. package/dist/types/components/visual/custom-visual/custom-visual-temporal-presentation.d.ts +0 -35
  639. package/dist/types/components/visual/custom-visual/custom-visual-types.d.ts +0 -171
  640. package/dist/types/components/visual/custom-visual/custom-visual-utils.d.ts +0 -57
  641. package/dist/types/components/visual/custom-visual/dashboard-custom-visual.d.ts +0 -7
  642. package/dist/types/components/visual/custom-visual/editor-custom-visual.d.ts +0 -6
  643. package/dist/types/components/visual/custom-visual/hooks/use-ensure-react-globals.d.ts +0 -10
  644. package/dist/types/components/visual/custom-visual/hooks/use-remote-chart-store.d.ts +0 -9
  645. package/dist/types/components/visual/custom-visual/multi-input-empty-renderer.d.ts +0 -8
  646. package/dist/types/components/visual/custom-visual/use-custom-visual.d.ts +0 -16
  647. package/dist/types/components/visual/data-table/column-def.d.ts +0 -54
  648. package/dist/types/components/visual/data-table/column-resize-handle.d.ts +0 -8
  649. package/dist/types/components/visual/data-table/copyable-cell.d.ts +0 -9
  650. package/dist/types/components/visual/data-table/data-table-column-settings.d.ts +0 -2
  651. package/dist/types/components/visual/data-table/data-table-conditional-formatting-settings.d.ts +0 -21
  652. package/dist/types/components/visual/data-table/data-table-pagination.d.ts +0 -2
  653. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +0 -2
  654. package/dist/types/components/visual/data-table/data-table.d.ts +0 -2
  655. package/dist/types/components/visual/data-table/hooks/use-sql-raw-temporal-format-draft.d.ts +0 -15
  656. package/dist/types/components/visual/data-table/hooks/use-table-query-state.d.ts +0 -30
  657. package/dist/types/components/visual/data-table/overflow-cell.d.ts +0 -9
  658. package/dist/types/components/visual/data-table/table-conditional-formatting-authoring.d.ts +0 -17
  659. package/dist/types/components/visual/data-table/table-conditional-formatting-rule-model.d.ts +0 -33
  660. package/dist/types/components/visual/data-table/table-settings-toolbar-button.d.ts +0 -9
  661. package/dist/types/components/visual/data-table/table-skeleton.d.ts +0 -6
  662. package/dist/types/components/visual/data-table/table-visual.d.ts +0 -39
  663. package/dist/types/components/visual/data-table/utils/data-table-utils.d.ts +0 -74
  664. package/dist/types/components/visual/data-table/utils/sort-conversion.d.ts +0 -5
  665. package/dist/types/components/visual/data-table/utils/table-behavior.d.ts +0 -33
  666. package/dist/types/components/visual/data-table/utils/utils.d.ts +0 -4
  667. package/dist/types/components/visual/info-hover.d.ts +0 -7
  668. package/dist/types/components/visual/kpi-visual/format-number-setting.d.ts +0 -1
  669. package/dist/types/components/visual/kpi-visual/kpi-bulb-utils.d.ts +0 -3
  670. package/dist/types/components/visual/kpi-visual/kpi-card-with-info.d.ts +0 -9
  671. package/dist/types/components/visual/kpi-visual/kpi-card.d.ts +0 -28
  672. package/dist/types/components/visual/kpi-visual/kpi-editor-ownership-badge.d.ts +0 -4
  673. package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +0 -12
  674. package/dist/types/components/visual/matrix-table/matrix-axis-menu.d.ts +0 -21
  675. package/dist/types/components/visual/matrix-table/matrix-loading-skeleton.d.ts +0 -14
  676. package/dist/types/components/visual/matrix-table/matrix-selection-click.d.ts +0 -6
  677. package/dist/types/components/visual/matrix-table/matrix-tabular-boundary.d.ts +0 -8
  678. package/dist/types/components/visual/matrix-table/matrix-viewer-geometry.d.ts +0 -21
  679. package/dist/types/components/visual/matrix-table/matrix-window-viewer.d.ts +0 -26
  680. package/dist/types/components/visual/pivot-table/aggregation-menu.d.ts +0 -23
  681. package/dist/types/components/visual/pivot-table/columns/data-columns.d.ts +0 -26
  682. package/dist/types/components/visual/pivot-table/columns/row-header-columns.d.ts +0 -20
  683. package/dist/types/components/visual/pivot-table/columns/row-total-column.d.ts +0 -12
  684. package/dist/types/components/visual/pivot-table/components/pivot-table-body.d.ts +0 -23
  685. package/dist/types/components/visual/pivot-table/components/pivot-table-footer.d.ts +0 -30
  686. package/dist/types/components/visual/pivot-table/hooks/use-pivot-column-headers.d.ts +0 -28
  687. package/dist/types/components/visual/pivot-table/hooks/use-pivot-pagination.d.ts +0 -29
  688. package/dist/types/components/visual/pivot-table/hooks/use-pivot-sorting.d.ts +0 -21
  689. package/dist/types/components/visual/pivot-table/hooks/use-pivot-table-settings.d.ts +0 -15
  690. package/dist/types/components/visual/pivot-table/pivot-table-tanstack.d.ts +0 -41
  691. package/dist/types/components/visual/pivot-table/pivot-table.d.ts +0 -100
  692. package/dist/types/components/visual/pivot-table/utils/cell-value-formatter.d.ts +0 -14
  693. package/dist/types/components/visual/pivot-table/utils/pivot-field-identity.d.ts +0 -8
  694. package/dist/types/components/visual/pivot-table/utils/pivot-formatting-utils.d.ts +0 -24
  695. package/dist/types/components/visual/pivot-table/utils/pivot-metric-formatting.d.ts +0 -18
  696. package/dist/types/components/visual/pivot-table/utils/pivot-physical-schema.d.ts +0 -14
  697. package/dist/types/components/visual/pivot-table/utils/pivot-table-aggregation-helpers.d.ts +0 -21
  698. package/dist/types/components/visual/pivot-table/utils/pivot-table-data-processor.d.ts +0 -35
  699. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +0 -25
  700. package/dist/types/components/visual/pivot-table/utils/pivot-table-response.d.ts +0 -50
  701. package/dist/types/components/visual/pivot-table/utils/pivot-table-sorter.d.ts +0 -7
  702. package/dist/types/components/visual/pivot-table/utils/row-span-calculator.d.ts +0 -14
  703. package/dist/types/components/visual/settings/axis-mapping.d.ts +0 -9
  704. package/dist/types/components/visual/settings/chart-documentation.d.ts +0 -28
  705. package/dist/types/components/visual/settings/chart-orientation.d.ts +0 -1
  706. package/dist/types/components/visual/settings/color-format.d.ts +0 -8
  707. package/dist/types/components/visual/settings/controls-settings.d.ts +0 -8
  708. package/dist/types/components/visual/settings/dataset-label-popover.d.ts +0 -4
  709. package/dist/types/components/visual/settings/display-labels.d.ts +0 -2
  710. package/dist/types/components/visual/settings/filter-on-click-columns.d.ts +0 -1
  711. package/dist/types/components/visual/settings/frame-filters.d.ts +0 -7
  712. package/dist/types/components/visual/settings/inline-filters-settings.d.ts +0 -12
  713. package/dist/types/components/visual/settings/kpi-settings.d.ts +0 -1
  714. package/dist/types/components/visual/settings/map-chart-settings.d.ts +0 -1
  715. package/dist/types/components/visual/settings/scale-options.d.ts +0 -1
  716. package/dist/types/components/visual/settings/table-column-visibility-settings.d.ts +0 -16
  717. package/dist/types/components/visual/settings/table-presentation-settings.d.ts +0 -53
  718. package/dist/types/components/visual/settings/table-visual-settings.d.ts +0 -8
  719. package/dist/types/components/visual/settings/text-settings.d.ts +0 -1
  720. package/dist/types/components/visual/settings/text-type-radio.d.ts +0 -2
  721. package/dist/types/components/visual/shared/hooks/use-column-resizing.d.ts +0 -15
  722. package/dist/types/components/visual/shared/utils/column-type-detector.d.ts +0 -25
  723. package/dist/types/components/visual/shared/utils/table-render-policy.d.ts +0 -20
  724. package/dist/types/components/visual/table-appearance/table-appearance-adapter.d.ts +0 -41
  725. package/dist/types/components/visual/table-appearance/table-appearance-primitives.d.ts +0 -32
  726. package/dist/types/components/visual/visual-error-state.d.ts +0 -13
  727. package/dist/types/components/visual/visual-utils.d.ts +0 -33
  728. package/dist/types/data-app-sdk/analysis-payload.d.ts +0 -2
  729. package/dist/types/data-app-sdk/devtools/issues.d.ts +0 -21
  730. package/dist/types/data-app-sdk/devtools/labels.d.ts +0 -4
  731. package/dist/types/data-app-sdk/devtools/result-preview.d.ts +0 -8
  732. package/dist/types/data-app-sdk/devtools/styles.d.ts +0 -15
  733. package/dist/types/data-app-sdk/devtools/window-snapshot.d.ts +0 -3
  734. package/dist/types/data-app-sdk/matrix-filter-validation.d.ts +0 -12
  735. package/dist/types/data-app-sdk/query-request.d.ts +0 -32
  736. package/dist/types/data-app-sdk/runtime.d.ts +0 -21
  737. package/dist/types/lib/actions/data-point-click-action.d.ts +0 -13
  738. package/dist/types/lib/ai-utils.d.ts +0 -16
  739. package/dist/types/lib/api/index.d.ts +0 -2
  740. package/dist/types/lib/appearance/chart-style-adapter.d.ts +0 -4
  741. package/dist/types/lib/appearance/dom.d.ts +0 -3
  742. package/dist/types/lib/appearance/fonts.d.ts +0 -9
  743. package/dist/types/lib/briefings/briefing-attachment-model.d.ts +0 -104
  744. package/dist/types/lib/charts/area-chart.d.ts +0 -5
  745. package/dist/types/lib/charts/bar-chart.d.ts +0 -5
  746. package/dist/types/lib/charts/bubble-scatter-chart.d.ts +0 -28
  747. package/dist/types/lib/charts/bullet-chart.d.ts +0 -17
  748. package/dist/types/lib/charts/cartesian-data.d.ts +0 -72
  749. package/dist/types/lib/charts/cartesian-fields.d.ts +0 -60
  750. package/dist/types/lib/charts/chart-availability.d.ts +0 -13
  751. package/dist/types/lib/charts/chart-axis-policy.d.ts +0 -20
  752. package/dist/types/lib/charts/chart-config.d.ts +0 -9
  753. package/dist/types/lib/charts/chart-documentation.d.ts +0 -23
  754. package/dist/types/lib/charts/chart-font.d.ts +0 -10
  755. package/dist/types/lib/charts/chart-selector.d.ts +0 -2
  756. package/dist/types/lib/charts/chart-utils.d.ts +0 -258
  757. package/dist/types/lib/charts/color-utils.d.ts +0 -29
  758. package/dist/types/lib/charts/combo-chart.d.ts +0 -5
  759. package/dist/types/lib/charts/configuration/axis-configurator.d.ts +0 -36
  760. package/dist/types/lib/charts/configuration/combo-config.d.ts +0 -36
  761. package/dist/types/lib/charts/configuration/data-labels-config.d.ts +0 -36
  762. package/dist/types/lib/charts/configuration/legend-config.d.ts +0 -18
  763. package/dist/types/lib/charts/create-chart.d.ts +0 -30
  764. package/dist/types/lib/charts/custom-config-utils.d.ts +0 -0
  765. package/dist/types/lib/charts/funnel-chart.d.ts +0 -13
  766. package/dist/types/lib/charts/heatmap-chart.d.ts +0 -15
  767. package/dist/types/lib/charts/heatmap-constants.d.ts +0 -7
  768. package/dist/types/lib/charts/line-chart.d.ts +0 -5
  769. package/dist/types/lib/charts/range-chart.d.ts +0 -12
  770. package/dist/types/lib/charts/shared/category-group-axis-plugin.d.ts +0 -23
  771. package/dist/types/lib/charts/shared/dataset-utils.d.ts +0 -36
  772. package/dist/types/lib/charts/stacked-line-chart.d.ts +0 -2
  773. package/dist/types/lib/charts/tornado-chart.d.ts +0 -13
  774. package/dist/types/lib/charts/treemap-chart.d.ts +0 -15
  775. package/dist/types/lib/charts/utils.d.ts +0 -12
  776. package/dist/types/lib/constants/summary.d.ts +0 -2
  777. package/dist/types/lib/constants/tool-status-messages.d.ts +0 -12
  778. package/dist/types/lib/constants.d.ts +0 -30
  779. package/dist/types/lib/contexts/dashboard-preferences-context.d.ts +0 -7
  780. package/dist/types/lib/contexts/display-preferences-context.d.ts +0 -6
  781. package/dist/types/lib/contexts/interactions-popover-context.d.ts +0 -14
  782. package/dist/types/lib/countries.d.ts +0 -8
  783. package/dist/types/lib/csv-download.d.ts +0 -9
  784. package/dist/types/lib/csv-encoding-options.d.ts +0 -6
  785. package/dist/types/lib/dashboard/click-to-filter-card-references.d.ts +0 -23
  786. package/dist/types/lib/dashboard/duplicate-sheet.d.ts +0 -11
  787. package/dist/types/lib/dashboard/global-date-filter-utils.d.ts +0 -22
  788. package/dist/types/lib/dashboard/open-card-in-visual-editor.d.ts +0 -15
  789. package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +0 -55
  790. package/dist/types/lib/dashboard-inputs/build-selection-dashboard-inputs.d.ts +0 -31
  791. package/dist/types/lib/dashboard-inputs/card-compat-adapter.d.ts +0 -9
  792. package/dist/types/lib/dashboard-inputs/click-to-filter-emitted-fields.d.ts +0 -17
  793. package/dist/types/lib/dashboard-inputs/click-to-filter-mapping-draft.d.ts +0 -99
  794. package/dist/types/lib/dashboard-inputs/click-to-filter-sheet-reach.d.ts +0 -12
  795. package/dist/types/lib/dashboard-inputs/dashboard-control-compat-adapter.d.ts +0 -7
  796. package/dist/types/lib/dashboard-inputs/dashboard-filter-authoring-policy.d.ts +0 -21
  797. package/dist/types/lib/dashboard-inputs/dashboard-filter-compat-adapter.d.ts +0 -10
  798. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-candidate-metadata.d.ts +0 -107
  799. package/dist/types/lib/dashboard-inputs/dashboard-filter-ownership.d.ts +0 -13
  800. package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +0 -36
  801. package/dist/types/lib/dashboard-inputs/dashboard-input-authoring-aliases.d.ts +0 -13
  802. package/dist/types/lib/dashboard-inputs/dashboard-input-display.d.ts +0 -11
  803. package/dist/types/lib/dashboard-inputs/dashboard-input-edit-validation.d.ts +0 -20
  804. package/dist/types/lib/dashboard-inputs/dashboard-input-helpers.d.ts +0 -15
  805. package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +0 -85
  806. package/dist/types/lib/dashboard-inputs/dashboard-input-text.d.ts +0 -12
  807. package/dist/types/lib/dashboard-inputs/dashboard-option-dependency-context.d.ts +0 -40
  808. package/dist/types/lib/dashboard-inputs/document-input-prototype-normalizer.d.ts +0 -2
  809. package/dist/types/lib/dashboard-inputs/filter-authoring-capabilities.d.ts +0 -39
  810. package/dist/types/lib/dashboard-inputs/find-normalized-dashboard-filter-input.d.ts +0 -4
  811. package/dist/types/lib/dashboard-inputs/index.d.ts +0 -12
  812. package/dist/types/lib/dashboard-inputs/resolve-field-date-comparison-coverage.d.ts +0 -20
  813. package/dist/types/lib/dashboard-inputs/selection-targets.d.ts +0 -26
  814. package/dist/types/lib/dashboard-inputs/text-card-rich-content.d.ts +0 -6
  815. package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +0 -16
  816. package/dist/types/lib/dashboard-inputs/use-effective-dashboard-filter-storage.d.ts +0 -7
  817. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -49
  818. package/dist/types/lib/dashboard-navigation/describe-carried-context.d.ts +0 -11
  819. package/dist/types/lib/dashboard-navigation/run-one-off-drill.d.ts +0 -11
  820. package/dist/types/lib/dashboard-navigation/use-transient-contexts.d.ts +0 -17
  821. package/dist/types/lib/dnd-utils.d.ts +0 -5
  822. package/dist/types/lib/document/document-canvas-actions.d.ts +0 -22
  823. package/dist/types/lib/document/document-dashboard-inputs.d.ts +0 -48
  824. package/dist/types/lib/document/document-definition.d.ts +0 -14
  825. package/dist/types/lib/document/document-generated-at.d.ts +0 -13
  826. package/dist/types/lib/document/document-input-order.d.ts +0 -5
  827. package/dist/types/lib/document/document-inputs.d.ts +0 -30
  828. package/dist/types/lib/document/document-kpi-figure.d.ts +0 -27
  829. package/dist/types/lib/document/document-kpi-layout.d.ts +0 -29
  830. package/dist/types/lib/document/document-kpi-section-edits.d.ts +0 -15
  831. package/dist/types/lib/document/document-matrix-bands.d.ts +0 -66
  832. package/dist/types/lib/document/document-matrix-print.d.ts +0 -11
  833. package/dist/types/lib/document/document-page-metrics.d.ts +0 -34
  834. package/dist/types/lib/document/document-pagination.d.ts +0 -110
  835. package/dist/types/lib/document/document-render-mode.d.ts +0 -8
  836. package/dist/types/lib/document/document-section-editor.d.ts +0 -9
  837. package/dist/types/lib/document/document-section-query-options.d.ts +0 -25
  838. package/dist/types/lib/document/document-section-render-state.d.ts +0 -26
  839. package/dist/types/lib/document/document-section-utils.d.ts +0 -18
  840. package/dist/types/lib/document/document-sheet-utils.d.ts +0 -4
  841. package/dist/types/lib/document/document-table-data-policy.d.ts +0 -15
  842. package/dist/types/lib/document/document-table-dom.d.ts +0 -29
  843. package/dist/types/lib/document/document-table-pagination-model.d.ts +0 -62
  844. package/dist/types/lib/document/document-table-print-model.d.ts +0 -53
  845. package/dist/types/lib/document/document-table-result-columns.d.ts +0 -10
  846. package/dist/types/lib/document/document-table-style.d.ts +0 -44
  847. package/dist/types/lib/document/document-table-surface.d.ts +0 -15
  848. package/dist/types/lib/document/document-table-totals.d.ts +0 -8
  849. package/dist/types/lib/document/document-variables.d.ts +0 -97
  850. package/dist/types/lib/document/document-visual-render-contract.d.ts +0 -8
  851. package/dist/types/lib/document/use-document-section-data.d.ts +0 -39
  852. package/dist/types/lib/document/use-document-table-rows.d.ts +0 -21
  853. package/dist/types/lib/document/use-measured-document-table-layout.d.ts +0 -50
  854. package/dist/types/lib/drag-and-drop-utils.d.ts +0 -2
  855. package/dist/types/lib/editor-draft-sync.d.ts +0 -2
  856. package/dist/types/lib/explorer-utils.d.ts +0 -11
  857. package/dist/types/lib/export-utils.d.ts +0 -47
  858. package/dist/types/lib/exports/export-status.d.ts +0 -17
  859. package/dist/types/lib/fields/field-display.d.ts +0 -35
  860. package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +0 -18
  861. package/dist/types/lib/filter-values/build-filter-values-request-payload.d.ts +0 -116
  862. package/dist/types/lib/filter-values/filter-option-identity.d.ts +0 -10
  863. package/dist/types/lib/filter-values/filter-record-value.d.ts +0 -9
  864. package/dist/types/lib/filter-values/merge-additional-filter-values.d.ts +0 -12
  865. package/dist/types/lib/formatters/active-numeric-presentation.d.ts +0 -25
  866. package/dist/types/lib/formatters/card-format-context.d.ts +0 -14
  867. package/dist/types/lib/formatters/currency-presentation-binding.d.ts +0 -72
  868. package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +0 -10
  869. package/dist/types/lib/formatters/grouped-temporal-authoring.d.ts +0 -33
  870. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +0 -24
  871. package/dist/types/lib/formatters/kpi-result-columns.d.ts +0 -3
  872. package/dist/types/lib/formatters/kpi-result-values.d.ts +0 -20
  873. package/dist/types/lib/formatters/metric-formatting.d.ts +0 -197
  874. package/dist/types/lib/formatters/numeric-presentation.d.ts +0 -10
  875. package/dist/types/lib/formatters/numeric-value-coercion.d.ts +0 -10
  876. package/dist/types/lib/formatters/pivot-result-lifecycle-config.d.ts +0 -15
  877. package/dist/types/lib/formatters/raw-temporal-on-demand-delivery.d.ts +0 -63
  878. package/dist/types/lib/formatters/result-column-identity.d.ts +0 -3
  879. package/dist/types/lib/formatters/saved-temporal-bucket-format.d.ts +0 -43
  880. package/dist/types/lib/formatters/semantic-column-presentation.d.ts +0 -9
  881. package/dist/types/lib/formatters/value-formatter.d.ts +0 -64
  882. package/dist/types/lib/hooks/ai/assistant-context-entity-utils.d.ts +0 -6
  883. package/dist/types/lib/hooks/ai/assistant-session.d.ts +0 -3
  884. package/dist/types/lib/hooks/ai/dashboard-assistant-context.d.ts +0 -35
  885. package/dist/types/lib/hooks/ai/dashboard-context.d.ts +0 -41
  886. package/dist/types/lib/hooks/ai/use-active-tool-status.d.ts +0 -10
  887. package/dist/types/lib/hooks/ai/use-assistant-context-entities.d.ts +0 -19
  888. package/dist/types/lib/hooks/ai/use-assistant-profile.d.ts +0 -6
  889. package/dist/types/lib/hooks/ai/use-assistant-scroll.d.ts +0 -8
  890. package/dist/types/lib/hooks/ai/use-auto-submit-queue.d.ts +0 -13
  891. package/dist/types/lib/hooks/ai/use-dashboard-assistant.d.ts +0 -32
  892. package/dist/types/lib/hooks/ai/use-editor-assistant.d.ts +0 -33
  893. package/dist/types/lib/hooks/ai/use-entity-mentions.d.ts +0 -36
  894. package/dist/types/lib/hooks/ai/use-local-storage-state.d.ts +0 -1
  895. package/dist/types/lib/hooks/ai/utils.d.ts +0 -64
  896. package/dist/types/lib/hooks/calculated-fields/use-ai-expression.d.ts +0 -23
  897. package/dist/types/lib/hooks/calculated-fields/use-available-fields.d.ts +0 -111
  898. package/dist/types/lib/hooks/calculated-fields/use-calculated-field-templates.d.ts +0 -9
  899. package/dist/types/lib/hooks/calculated-fields/use-expression-validation.d.ts +0 -18
  900. package/dist/types/lib/hooks/calculated-fields/use-formula-placeholders.d.ts +0 -54
  901. package/dist/types/lib/hooks/calculated-fields/use-promote-to-domain.d.ts +0 -17
  902. package/dist/types/lib/hooks/chartjs/use-chart-blur.d.ts +0 -14
  903. package/dist/types/lib/hooks/control-values-query-utils.d.ts +0 -6
  904. package/dist/types/lib/hooks/explorer/column-catalog.d.ts +0 -4
  905. package/dist/types/lib/hooks/explorer/column-native-datatype.d.ts +0 -8
  906. package/dist/types/lib/hooks/explorer/field-management-utils.d.ts +0 -2
  907. package/dist/types/lib/hooks/explorer/use-card-filter-option-browse.d.ts +0 -10
  908. package/dist/types/lib/hooks/explorer/use-columns.d.ts +0 -11
  909. package/dist/types/lib/hooks/explorer/use-data-models.d.ts +0 -8
  910. package/dist/types/lib/hooks/explorer/use-database-entities.d.ts +0 -15
  911. package/dist/types/lib/hooks/explorer/use-databases.d.ts +0 -12
  912. package/dist/types/lib/hooks/explorer/use-datasets.d.ts +0 -53
  913. package/dist/types/lib/hooks/explorer/use-dev-mode-actions.d.ts +0 -10
  914. package/dist/types/lib/hooks/explorer/use-domain-calculated-fields.d.ts +0 -6
  915. package/dist/types/lib/hooks/explorer/use-drag-and-drop.d.ts +0 -22
  916. package/dist/types/lib/hooks/explorer/use-field-availability-context.d.ts +0 -16
  917. package/dist/types/lib/hooks/explorer/use-field-management.d.ts +0 -42
  918. package/dist/types/lib/hooks/explorer/use-files.d.ts +0 -13
  919. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +0 -24
  920. package/dist/types/lib/hooks/explorer/use-filterable-fields.d.ts +0 -61
  921. package/dist/types/lib/hooks/explorer/use-join-conditions-builder.d.ts +0 -27
  922. package/dist/types/lib/hooks/explorer/use-schemas.d.ts +0 -8
  923. package/dist/types/lib/hooks/explorer/use-scoped-fields.d.ts +0 -53
  924. package/dist/types/lib/hooks/explorer/use-semantic-domains.d.ts +0 -17
  925. package/dist/types/lib/hooks/explorer/use-sync-legacy-editor-state.d.ts +0 -20
  926. package/dist/types/lib/hooks/query-context/use-card-query-context.d.ts +0 -3
  927. package/dist/types/lib/hooks/query-context/use-dashboard-card-execution-snapshot.d.ts +0 -10
  928. package/dist/types/lib/hooks/selection/use-active-selections.d.ts +0 -15
  929. package/dist/types/lib/hooks/selection/use-click-to-filter-mapping-draft.d.ts +0 -20
  930. package/dist/types/lib/hooks/selection/use-selection-click.d.ts +0 -34
  931. package/dist/types/lib/hooks/selection/use-selection-gestures.d.ts +0 -38
  932. package/dist/types/lib/hooks/selection/use-table-row-selection.d.ts +0 -46
  933. package/dist/types/lib/hooks/semaphor-ready-indicator.d.ts +0 -17
  934. package/dist/types/lib/hooks/summary/create-summary-action-handler.d.ts +0 -15
  935. package/dist/types/lib/hooks/use-assign-filter.d.ts +0 -5
  936. package/dist/types/lib/hooks/use-attribute-values.d.ts +0 -20
  937. package/dist/types/lib/hooks/use-auth-token.d.ts +0 -1
  938. package/dist/types/lib/hooks/use-authorization-scope.d.ts +0 -2
  939. package/dist/types/lib/hooks/use-calendar-preferences.d.ts +0 -16
  940. package/dist/types/lib/hooks/use-card-filter-values.d.ts +0 -19
  941. package/dist/types/lib/hooks/use-card-numeric-presentation.d.ts +0 -11
  942. package/dist/types/lib/hooks/use-card-render-context.d.ts +0 -14
  943. package/dist/types/lib/hooks/use-chart-numeric-presentation.d.ts +0 -3
  944. package/dist/types/lib/hooks/use-column-sizing.d.ts +0 -27
  945. package/dist/types/lib/hooks/use-connection-type.d.ts +0 -0
  946. package/dist/types/lib/hooks/use-connections.d.ts +0 -27
  947. package/dist/types/lib/hooks/use-control-values-query.d.ts +0 -48
  948. package/dist/types/lib/hooks/use-copy-paste-frame.d.ts +0 -2
  949. package/dist/types/lib/hooks/use-custom-visuals-query.d.ts +0 -30
  950. package/dist/types/lib/hooks/use-dashboard-card-query.d.ts +0 -4
  951. package/dist/types/lib/hooks/use-dashboard-creation.d.ts +0 -17
  952. package/dist/types/lib/hooks/use-dashboard-filter-mapping-candidates.d.ts +0 -40
  953. package/dist/types/lib/hooks/use-dashboard-filter-option-fields.d.ts +0 -15
  954. package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +0 -51
  955. package/dist/types/lib/hooks/use-dashboard-frame.d.ts +0 -0
  956. package/dist/types/lib/hooks/use-dashboard-interaction-mode.d.ts +0 -1
  957. package/dist/types/lib/hooks/use-dashboard-kpi-actions.d.ts +0 -11
  958. package/dist/types/lib/hooks/use-dashboard-preferences.d.ts +0 -5
  959. package/dist/types/lib/hooks/use-date-range-for-filter.d.ts +0 -7
  960. package/dist/types/lib/hooks/use-default-dashboard-mutation.d.ts +0 -9
  961. package/dist/types/lib/hooks/use-default-sheet-preference.d.ts +0 -9
  962. package/dist/types/lib/hooks/use-display-preferences.d.ts +0 -4
  963. package/dist/types/lib/hooks/use-document-section-editor.d.ts +0 -3
  964. package/dist/types/lib/hooks/use-document-section-session.d.ts +0 -36
  965. package/dist/types/lib/hooks/use-draggable-button.d.ts +0 -20
  966. package/dist/types/lib/hooks/use-draggable-corner.d.ts +0 -22
  967. package/dist/types/lib/hooks/use-dynamic-icon.d.ts +0 -1
  968. package/dist/types/lib/hooks/use-edit-visual.d.ts +0 -6
  969. package/dist/types/lib/hooks/use-editor-preview.d.ts +0 -17
  970. package/dist/types/lib/hooks/use-editor-setup.d.ts +0 -45
  971. package/dist/types/lib/hooks/use-feedback.d.ts +0 -12
  972. package/dist/types/lib/hooks/use-filter-aside-setup.d.ts +0 -13
  973. package/dist/types/lib/hooks/use-filter-option-labels.d.ts +0 -12
  974. package/dist/types/lib/hooks/use-filter-query.d.ts +0 -79
  975. package/dist/types/lib/hooks/use-filter-search.d.ts +0 -49
  976. package/dist/types/lib/hooks/use-frame-semantic-execution-payload.d.ts +0 -15
  977. package/dist/types/lib/hooks/use-has-dashboard-id.d.ts +0 -6
  978. package/dist/types/lib/hooks/use-insight-card-info.d.ts +0 -30
  979. package/dist/types/lib/hooks/use-interactions-popover.d.ts +0 -7
  980. package/dist/types/lib/hooks/use-is-dashboard-ready.d.ts +0 -14
  981. package/dist/types/lib/hooks/use-is-editing-card.d.ts +0 -7
  982. package/dist/types/lib/hooks/use-joinability-map.d.ts +0 -24
  983. package/dist/types/lib/hooks/use-kpi.d.ts +0 -6
  984. package/dist/types/lib/hooks/use-metric-keys-visual.d.ts +0 -6
  985. package/dist/types/lib/hooks/use-plugin-query.d.ts +0 -6
  986. package/dist/types/lib/hooks/use-previous.d.ts +0 -1
  987. package/dist/types/lib/hooks/use-query-feedback.d.ts +0 -45
  988. package/dist/types/lib/hooks/use-query-key.d.ts +0 -8
  989. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +0 -7
  990. package/dist/types/lib/hooks/use-resolved-card-config.d.ts +0 -6
  991. package/dist/types/lib/hooks/use-role-aware-display-preferences.d.ts +0 -29
  992. package/dist/types/lib/hooks/use-selected-column.d.ts +0 -29
  993. package/dist/types/lib/hooks/use-semaphor-context.d.ts +0 -4
  994. package/dist/types/lib/hooks/use-split-view-preference.d.ts +0 -1
  995. package/dist/types/lib/hooks/use-theme.d.ts +0 -1
  996. package/dist/types/lib/hooks/use-topojson.d.ts +0 -7
  997. package/dist/types/lib/hooks/use-user-preferences.d.ts +0 -24
  998. package/dist/types/lib/hooks/use-visual-editing-status.d.ts +0 -6
  999. package/dist/types/lib/hooks/use-visual-save-as.d.ts +0 -9
  1000. package/dist/types/lib/hooks/visuals/use-pivot-table-config.d.ts +0 -6
  1001. package/dist/types/lib/interactions/click-filter-display.d.ts +0 -13
  1002. package/dist/types/lib/interactions/click-outcome.d.ts +0 -25
  1003. package/dist/types/lib/interactions/get-click-context-from-pivot-table.d.ts +0 -12
  1004. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +0 -42
  1005. package/dist/types/lib/interactions/interaction-utils.d.ts +0 -32
  1006. package/dist/types/lib/interactions/interaction-validation-utils.d.ts +0 -9
  1007. package/dist/types/lib/interactions/interpolate-url-parameters.d.ts +0 -73
  1008. package/dist/types/lib/internal-print-report-context.d.ts +0 -5
  1009. package/dist/types/lib/matrix-table/build-matrix-drill-to-detail.d.ts +0 -15
  1010. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +0 -65
  1011. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +0 -352
  1012. package/dist/types/lib/matrix-table/matrix-card-fields.d.ts +0 -14
  1013. package/dist/types/lib/matrix-table/matrix-card-interactions.d.ts +0 -16
  1014. package/dist/types/lib/matrix-table/matrix-conditional-formatting.d.ts +0 -36
  1015. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +0 -47
  1016. package/dist/types/lib/matrix-table/matrix-editor.d.ts +0 -40
  1017. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +0 -20
  1018. package/dist/types/lib/matrix-table/matrix-execution-provider.d.ts +0 -7
  1019. package/dist/types/lib/matrix-table/matrix-failure-copy.d.ts +0 -16
  1020. package/dist/types/lib/matrix-table/matrix-field-metadata.d.ts +0 -3
  1021. package/dist/types/lib/matrix-table/matrix-label-boundary.d.ts +0 -6
  1022. package/dist/types/lib/matrix-table/matrix-layout-read.d.ts +0 -68
  1023. package/dist/types/lib/matrix-table/matrix-layout.d.ts +0 -18
  1024. package/dist/types/lib/matrix-table/matrix-measure-presentation.d.ts +0 -8
  1025. package/dist/types/lib/matrix-table/matrix-operation-queue.d.ts +0 -8
  1026. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +0 -6
  1027. package/dist/types/lib/matrix-table/matrix-row-labels.d.ts +0 -13
  1028. package/dist/types/lib/matrix-table/submit-matrix-delivery.d.ts +0 -19
  1029. package/dist/types/lib/matrix-table/use-matrix-card-catalog.d.ts +0 -20
  1030. package/dist/types/lib/matrix-table/use-matrix-cell-focus.d.ts +0 -55
  1031. package/dist/types/lib/matrix-table/use-matrix-delivery-capture.d.ts +0 -6
  1032. package/dist/types/lib/matrix-table/use-matrix-editor-catalog.d.ts +0 -5
  1033. package/dist/types/lib/matrix-table/use-matrix.d.ts +0 -74
  1034. package/dist/types/lib/mock-data.d.ts +0 -0
  1035. package/dist/types/lib/pdf-execution-snapshot.d.ts +0 -12
  1036. package/dist/types/lib/pdf-fast-path/aggregate-metric-semantics.d.ts +0 -1
  1037. package/dist/types/lib/pdf-fast-path/builders.d.ts +0 -46
  1038. package/dist/types/lib/pdf-fast-path/candidate-eligibility.d.ts +0 -17
  1039. package/dist/types/lib/pdf-fast-path/extract-table-structure.d.ts +0 -5
  1040. package/dist/types/lib/pdf-fast-path/index.d.ts +0 -27
  1041. package/dist/types/lib/pdf-fast-path/pivot-fast-path-utils.d.ts +0 -12
  1042. package/dist/types/lib/pdf-fast-path/prepare-server-table-pdf-export.d.ts +0 -37
  1043. package/dist/types/lib/print/print-holds.d.ts +0 -15
  1044. package/dist/types/lib/print-state/capture-expanded-state.d.ts +0 -38
  1045. package/dist/types/lib/python/default-code.d.ts +0 -1
  1046. package/dist/types/lib/query-context/build-card-control-context.d.ts +0 -16
  1047. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -68
  1048. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +0 -63
  1049. package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +0 -60
  1050. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +0 -8
  1051. package/dist/types/lib/query-context/build-query-relevant-card-config.d.ts +0 -15
  1052. package/dist/types/lib/query-context/card-execution.d.ts +0 -30
  1053. package/dist/types/lib/query-context/control-contract-serialization.d.ts +0 -11
  1054. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +0 -49
  1055. package/dist/types/lib/query-context/dashboard-query-result-context.d.ts +0 -17
  1056. package/dist/types/lib/query-context/document-section-card-query.d.ts +0 -37
  1057. package/dist/types/lib/query-context/filter-group-utils.d.ts +0 -3
  1058. package/dist/types/lib/query-context/normalize-dashboard-card-execution.d.ts +0 -7
  1059. package/dist/types/lib/query-context/query-auth-scope.d.ts +0 -5
  1060. package/dist/types/lib/query-context/resolve-render-card-config.d.ts +0 -16
  1061. package/dist/types/lib/query-context/temporal-context-preview.d.ts +0 -14
  1062. package/dist/types/lib/query-context/use-semantic-execution-payload-for-cards.d.ts +0 -24
  1063. package/dist/types/lib/resize-observer-utils.d.ts +0 -10
  1064. package/dist/types/lib/selection/click-to-filter-authoring-support.d.ts +0 -9
  1065. package/dist/types/lib/selection/selection-from-click-context.d.ts +0 -41
  1066. package/dist/types/lib/selection/selection-labels.d.ts +0 -3
  1067. package/dist/types/lib/selection/selection-notices.d.ts +0 -9
  1068. package/dist/types/lib/selection/selection-reducer.d.ts +0 -46
  1069. package/dist/types/lib/stores/ai-interaction-store.d.ts +0 -97
  1070. package/dist/types/lib/stores/assistant-layout-store.d.ts +0 -17
  1071. package/dist/types/lib/stores/chartjs-store.d.ts +0 -36
  1072. package/dist/types/lib/stores/explorer-empty-states.d.ts +0 -8
  1073. package/dist/types/lib/stores/index.d.ts +0 -8
  1074. package/dist/types/lib/stores/mount-store-devtool.d.ts +0 -2
  1075. package/dist/types/lib/stores/utils.d.ts +0 -40
  1076. package/dist/types/lib/table-formatting/table-column-visibility.d.ts +0 -5
  1077. package/dist/types/lib/table-formatting/table-conditional-formatting-columns.d.ts +0 -14
  1078. package/dist/types/lib/table-formatting/table-formatting-schemas.d.ts +0 -1101
  1079. package/dist/types/lib/table-formatting/table-formatting-utils.d.ts +0 -30
  1080. package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +0 -22
  1081. package/dist/types/lib/table-formatting/table-presentation-style.d.ts +0 -45
  1082. package/dist/types/lib/table-formatting/table-result-bindings.d.ts +0 -12
  1083. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +0 -59
  1084. package/dist/types/lib/text-variables/temporal-input-text.d.ts +0 -28
  1085. package/dist/types/lib/text-variables/text-variable-types.d.ts +0 -55
  1086. package/dist/types/lib/types/calculated-field-domain-payloads.d.ts +0 -36
  1087. package/dist/types/lib/types/calculated-field-editor-types.d.ts +0 -64
  1088. package/dist/types/lib/types/feedback-types.d.ts +0 -60
  1089. package/dist/types/lib/types/semantic-types.d.ts +0 -120
  1090. package/dist/types/lib/ui/tenancy-ui.d.ts +0 -25
  1091. package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -2
  1092. package/dist/types/lib/utils/app-url-utils.d.ts +0 -7
  1093. package/dist/types/lib/utils/assistant-visibility.d.ts +0 -9
  1094. package/dist/types/lib/utils/async-export-visible-columns.d.ts +0 -12
  1095. package/dist/types/lib/utils/authored-card-fields.d.ts +0 -17
  1096. package/dist/types/lib/utils/briefings-visibility.d.ts +0 -9
  1097. package/dist/types/lib/utils/build-card-export-request.d.ts +0 -30
  1098. package/dist/types/lib/utils/build-saved-editor-card.d.ts +0 -15
  1099. package/dist/types/lib/utils/calculate-card-filter-values.d.ts +0 -23
  1100. package/dist/types/lib/utils/calculate-context-aware-filters.d.ts +0 -46
  1101. package/dist/types/lib/utils/calculated-date-dimension-defaults.d.ts +0 -9
  1102. package/dist/types/lib/utils/calculated-dimension-utils.d.ts +0 -2
  1103. package/dist/types/lib/utils/calculated-field-identity-utils.d.ts +0 -20
  1104. package/dist/types/lib/utils/calculated-field-normalization.d.ts +0 -2
  1105. package/dist/types/lib/utils/calculated-field-operations.d.ts +0 -40
  1106. package/dist/types/lib/utils/calculated-field-permissions.d.ts +0 -12
  1107. package/dist/types/lib/utils/calculated-field-row-templates.d.ts +0 -15
  1108. package/dist/types/lib/utils/calculated-field-scope-utils.d.ts +0 -20
  1109. package/dist/types/lib/utils/calculated-field-token-utils.d.ts +0 -34
  1110. package/dist/types/lib/utils/calculated-field-transition-utils.d.ts +0 -113
  1111. package/dist/types/lib/utils/calculated-field-utils.d.ts +0 -37
  1112. package/dist/types/lib/utils/card-calculated-field-utils.d.ts +0 -12
  1113. package/dist/types/lib/utils/card-config-utils.d.ts +0 -24
  1114. package/dist/types/lib/utils/card-loading-state.d.ts +0 -18
  1115. package/dist/types/lib/utils/card-utils.d.ts +0 -70
  1116. package/dist/types/lib/utils/chart-icon-utils.d.ts +0 -26
  1117. package/dist/types/lib/utils/chart-type-field-validation.d.ts +0 -25
  1118. package/dist/types/lib/utils/comparison-export-utils.d.ts +0 -31
  1119. package/dist/types/lib/utils/comparison-output-keys.d.ts +0 -37
  1120. package/dist/types/lib/utils/comparison-period-utils.d.ts +0 -6
  1121. package/dist/types/lib/utils/comparison-validation-utils.d.ts +0 -16
  1122. package/dist/types/lib/utils/comparison-window-caption.d.ts +0 -12
  1123. package/dist/types/lib/utils/connection-capabilities.d.ts +0 -26
  1124. package/dist/types/lib/utils/control-default-value-utils.d.ts +0 -46
  1125. package/dist/types/lib/utils/control-placeholder-utils.d.ts +0 -14
  1126. package/dist/types/lib/utils/control-reference-utils.d.ts +0 -18
  1127. package/dist/types/lib/utils/copy-control-bindings.d.ts +0 -3
  1128. package/dist/types/lib/utils/custom-visual-inputs.d.ts +0 -43
  1129. package/dist/types/lib/utils/dashboard-controls-visibility.d.ts +0 -23
  1130. package/dist/types/lib/utils/dashboard-date-filter-utils.d.ts +0 -16
  1131. package/dist/types/lib/utils/dashboard-interaction-mode.d.ts +0 -12
  1132. package/dist/types/lib/utils/data-source-semantic-domain.d.ts +0 -12
  1133. package/dist/types/lib/utils/data-source-utils.d.ts +0 -22
  1134. package/dist/types/lib/utils/date-filter-column-utils.d.ts +0 -2
  1135. package/dist/types/lib/utils/date-format-utils.d.ts +0 -8
  1136. package/dist/types/lib/utils/date-granularity-utils.d.ts +0 -5
  1137. package/dist/types/lib/utils/date-hierarchy-utils.d.ts +0 -75
  1138. package/dist/types/lib/utils/date-timezone-utils.d.ts +0 -79
  1139. package/dist/types/lib/utils/drag-and-drop-utils.d.ts +0 -8
  1140. package/dist/types/lib/utils/drill-context-utils.d.ts +0 -32
  1141. package/dist/types/lib/utils/entity-consistency-utils.d.ts +0 -48
  1142. package/dist/types/lib/utils/entity-icon-utils.d.ts +0 -17
  1143. package/dist/types/lib/utils/explorer-derived-field.d.ts +0 -4
  1144. package/dist/types/lib/utils/explorer-field-identity.d.ts +0 -15
  1145. package/dist/types/lib/utils/export-result-source.d.ts +0 -20
  1146. package/dist/types/lib/utils/export-utils.d.ts +0 -26
  1147. package/dist/types/lib/utils/expression-field-classification.d.ts +0 -12
  1148. package/dist/types/lib/utils/fetch-export-data.d.ts +0 -14
  1149. package/dist/types/lib/utils/field-availability-context.d.ts +0 -25
  1150. package/dist/types/lib/utils/field-icon-utils.d.ts +0 -10
  1151. package/dist/types/lib/utils/field-state-calculator.d.ts +0 -159
  1152. package/dist/types/lib/utils/filter-formatter.d.ts +0 -24
  1153. package/dist/types/lib/utils/filter-metadata-utils.d.ts +0 -28
  1154. package/dist/types/lib/utils/filter-name-utils.d.ts +0 -27
  1155. package/dist/types/lib/utils/filter-scoping-utils.d.ts +0 -64
  1156. package/dist/types/lib/utils/filter-search-sql.d.ts +0 -17
  1157. package/dist/types/lib/utils/format-config-extractor.d.ts +0 -21
  1158. package/dist/types/lib/utils/frame-utils.d.ts +0 -27
  1159. package/dist/types/lib/utils/inline-expression-utils.d.ts +0 -11
  1160. package/dist/types/lib/utils/inline-filter-utils.d.ts +0 -16
  1161. package/dist/types/lib/utils/interaction-display-utils.d.ts +0 -30
  1162. package/dist/types/lib/utils/interaction-icons.d.ts +0 -10
  1163. package/dist/types/lib/utils/is-safari-browser.d.ts +0 -6
  1164. package/dist/types/lib/utils/join-plan-entity-matching.d.ts +0 -26
  1165. package/dist/types/lib/utils/kpi-comparison-utils.d.ts +0 -12
  1166. package/dist/types/lib/utils/kpi-field-cleanup-utils.d.ts +0 -19
  1167. package/dist/types/lib/utils/kpi-format-migration.d.ts +0 -2
  1168. package/dist/types/lib/utils/metric-comparison-config.d.ts +0 -9
  1169. package/dist/types/lib/utils/physical-source-identity.d.ts +0 -12
  1170. package/dist/types/lib/utils/qualified-entity-name.d.ts +0 -2
  1171. package/dist/types/lib/utils/relative-date-description.d.ts +0 -38
  1172. package/dist/types/lib/utils/resolve-selected-sheet-id.d.ts +0 -11
  1173. package/dist/types/lib/utils/role-display-mappings.d.ts +0 -44
  1174. package/dist/types/lib/utils/semantic-metric-format-defaults.d.ts +0 -3
  1175. package/dist/types/lib/utils/slot-validation.d.ts +0 -12
  1176. package/dist/types/lib/utils/stable-serialize.d.ts +0 -1
  1177. package/dist/types/lib/utils/summary-eligibility.d.ts +0 -7
  1178. package/dist/types/lib/utils/summary-filter-utils.d.ts +0 -2
  1179. package/dist/types/lib/utils/table-comparison-utils.d.ts +0 -9
  1180. package/dist/types/lib/utils/text-card-runtime-utils.d.ts +0 -6
  1181. package/dist/types/lib/utils/url-parameter-utils.d.ts +0 -60
  1182. package/dist/types/lib/utils/window-transform-utils.d.ts +0 -41
  1183. package/dist/types/lib/visuals/frame-object.d.ts +0 -4
  1184. package/dist/types/shared/analytics-protocol/qualified-identity.d.ts +0 -3
  1185. package/dist/types/shared/dashboard-authoring/filter-defaults.d.ts +0 -2
  1186. package/dist/types/shared/filter-native-data-type.d.ts +0 -59
  1187. package/dist/types/shared/format-utils/formatters/exact-number.d.ts +0 -1
  1188. package/dist/types/shared/format-utils/json-record.d.ts +0 -6
@@ -0,0 +1,2325 @@
1
+ import { jsx as t, jsxs as i, Fragment as B } from "react/jsx-runtime";
2
+ import { u as D, B as F, aO as qr, aP as zr, aQ as at, c as ge, a6 as C, aR as xe, aS as dt, aT as Jt, L as Re, m as Kr, s as Qr, t as Wr, v as Yr, w as Jr, x as Xr, aU as Zr, aV as Mt, aW as ea, P as ta, a as ra, b as aa, a4 as na, a2 as Lt, n as Ot, o as Pt, p as _t, q as Rt, I as oa, D as sa, aX as ia } from "./switch-BR3Xgbqr.js";
3
+ import { br as da, bs as ca, bt as ct, bu as la, bv as ua, bw as ma, bx as ha, by as pa, bz as fa, aD as Y, aR as ve, bA as ye, bB as ba, aK as Xt, aL as Zt, aN as nt, aO as ot, bC as er, be as lt, bn as re, bD as ga, bE as xa, bF as tr, bG as va, bH as rr, aM as ya, bI as wa, bJ as $, bK as Na, bL as Ut, bM as Sa, bN as ka, bO as Da, bP as Ca, an as Ea, ay as Ia, bQ as Aa, bR as Ma, bS as La, l as Oa, u as Oe, r as Pa, m as Ze, bT as _a, bU as Ra, bV as Ua, bW as Ta, K as $a, bX as Fa, bY as Ba, I as Tt, bZ as Ga, aA as Va, b_ as ja, b$ as Ha, c0 as qa, c1 as $t, c2 as Ft, c3 as Bt, c4 as za, c5 as Ka, c6 as Qa, c7 as Wa, c8 as Pe, c9 as Ya, ca as Ja, cb as et, cc as Gt, q as Xa, cd as Za, ce as en, cf as tn, cg as rn, ch as an, ci as nn, cj as on, ck as sn, cl as Vt } from "./semaphor-ready-indicator-z4SNdxiC.js";
4
+ import { c as ae, X as ar, C as dn } from "./x-CXDkqdur.js";
5
+ import * as A from "react";
6
+ import nr, { useMemo as H, useState as N, useEffect as Ue, useRef as jt, useLayoutEffect as cn } from "react";
7
+ import { d as ln, c as un, u as mn, A as hn, a as pn, g as fn, V as bn, N as gn, h as xn, U as vn } from "./dashboard-briefing-launcher-B9Fq2Rf3.js";
8
+ import "./card-config-utils-BlIiFn0O.js";
9
+ import { createPortal as yn } from "react-dom";
10
+ import "./validators-DMSH81OM.js";
11
+ import "./matrix-operation-contract-BKupLHXL.js";
12
+ import "zod";
13
+ import "../value-format-preferences/index.js";
14
+ import { S as wn, C as Nn } from "./selection-reducer-CiDEtmAq.js";
15
+ import { k as or } from "./matrix-formatter-DJCk8Znf.js";
16
+ import { I as st } from "./calculated-field-identity-Cz1ZU_UL.js";
17
+ import { R as Sn } from "./report-preferences-dialog-CWdTlWsr.js";
18
+ import { r as kn } from "./pivot-result-lifecycle-DQz_gjGu.js";
19
+ import { u as Dn } from "./use-debounced-dirty-check-BwAbnX_5.js";
20
+ import { s as Cn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
21
+ import { k as Te, h as Ht } from "./bookmark-state-B-I9BDD0.js";
22
+ import { S as En } from "./save-DgMfP0j8.js";
23
+ import { P as In } from "./palette-Cp1hqZtm.js";
24
+ import { B as An } from "./braces-8TRlDwDw.js";
25
+ /**
26
+ * @license lucide-react v0.453.0 - ISC
27
+ *
28
+ * This source code is licensed under the ISC license.
29
+ * See the LICENSE file in the root directory of this source tree.
30
+ */
31
+ const Mn = ae("Monitor", [
32
+ ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
33
+ ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
34
+ ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
35
+ ]);
36
+ /**
37
+ * @license lucide-react v0.453.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */
42
+ const Ln = ae("Moon", [
43
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
44
+ ]);
45
+ /**
46
+ * @license lucide-react v0.453.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */
51
+ const On = ae("ShieldX", [
52
+ [
53
+ "path",
54
+ {
55
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
56
+ key: "oel41y"
57
+ }
58
+ ],
59
+ ["path", { d: "m14.5 9.5-5 5", key: "17q4r4" }],
60
+ ["path", { d: "m9.5 9.5 5 5", key: "18nt4w" }]
61
+ ]);
62
+ /**
63
+ * @license lucide-react v0.453.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */
68
+ const Pn = ae("Sun", [
69
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
70
+ ["path", { d: "M12 2v2", key: "tus03m" }],
71
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
72
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
73
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
74
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
75
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
76
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
77
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
78
+ ]);
79
+ /**
80
+ * @license lucide-react v0.453.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */
85
+ const _n = ae("UserPlus", [
86
+ ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
87
+ ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
88
+ ["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
89
+ ["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
90
+ ]);
91
+ /**
92
+ * @license lucide-react v0.453.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */
97
+ const sr = ae("UserRound", [
98
+ ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
99
+ ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
100
+ ]);
101
+ var it = { exports: {} }, tt = {};
102
+ /**
103
+ * @license React
104
+ * use-sync-external-store-shim.production.js
105
+ *
106
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
107
+ *
108
+ * This source code is licensed under the MIT license found in the
109
+ * LICENSE file in the root directory of this source tree.
110
+ */
111
+ var qt;
112
+ function Rn() {
113
+ if (qt) return tt;
114
+ qt = 1;
115
+ var e = nr;
116
+ function n(c, u) {
117
+ return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
118
+ }
119
+ var a = typeof Object.is == "function" ? Object.is : n, r = e.useState, o = e.useEffect, d = e.useLayoutEffect, m = e.useDebugValue;
120
+ function h(c, u) {
121
+ var s = u(), x = r({ inst: { value: s, getSnapshot: u } }), v = x[0].inst, w = x[1];
122
+ return d(
123
+ function() {
124
+ v.value = s, v.getSnapshot = u, b(v) && w({ inst: v });
125
+ },
126
+ [c, s, u]
127
+ ), o(
128
+ function() {
129
+ return b(v) && w({ inst: v }), c(function() {
130
+ b(v) && w({ inst: v });
131
+ });
132
+ },
133
+ [c]
134
+ ), m(s), s;
135
+ }
136
+ function b(c) {
137
+ var u = c.getSnapshot;
138
+ c = c.value;
139
+ try {
140
+ var s = u();
141
+ return !a(c, s);
142
+ } catch {
143
+ return !0;
144
+ }
145
+ }
146
+ function f(c, u) {
147
+ return u();
148
+ }
149
+ var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : h;
150
+ return tt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g, tt;
151
+ }
152
+ var rt = {};
153
+ /**
154
+ * @license React
155
+ * use-sync-external-store-shim.development.js
156
+ *
157
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
158
+ *
159
+ * This source code is licensed under the MIT license found in the
160
+ * LICENSE file in the root directory of this source tree.
161
+ */
162
+ var zt;
163
+ function Un() {
164
+ return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
165
+ function e(s, x) {
166
+ return s === x && (s !== 0 || 1 / s === 1 / x) || s !== s && x !== x;
167
+ }
168
+ function n(s, x) {
169
+ g || o.startTransition === void 0 || (g = !0, console.error(
170
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
171
+ ));
172
+ var v = x();
173
+ if (!c) {
174
+ var w = x();
175
+ d(v, w) || (console.error(
176
+ "The result of getSnapshot should be cached to avoid an infinite loop"
177
+ ), c = !0);
178
+ }
179
+ w = m({
180
+ inst: { value: v, getSnapshot: x }
181
+ });
182
+ var S = w[0].inst, p = w[1];
183
+ return b(
184
+ function() {
185
+ S.value = v, S.getSnapshot = x, a(S) && p({ inst: S });
186
+ },
187
+ [s, v, x]
188
+ ), h(
189
+ function() {
190
+ return a(S) && p({ inst: S }), s(function() {
191
+ a(S) && p({ inst: S });
192
+ });
193
+ },
194
+ [s]
195
+ ), f(v), v;
196
+ }
197
+ function a(s) {
198
+ var x = s.getSnapshot;
199
+ s = s.value;
200
+ try {
201
+ var v = x();
202
+ return !d(s, v);
203
+ } catch {
204
+ return !0;
205
+ }
206
+ }
207
+ function r(s, x) {
208
+ return x();
209
+ }
210
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
211
+ var o = nr, d = typeof Object.is == "function" ? Object.is : e, m = o.useState, h = o.useEffect, b = o.useLayoutEffect, f = o.useDebugValue, g = !1, c = !1, u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : n;
212
+ rt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
213
+ }()), rt;
214
+ }
215
+ process.env.NODE_ENV === "production" ? it.exports = Rn() : it.exports = Un();
216
+ var Tn = it.exports;
217
+ const _e = ["light", "dark", "system"];
218
+ function $n() {
219
+ const { theme: e, setTheme: n } = da(), a = D(
220
+ (m) => m.actions.setDashboardTheme
221
+ );
222
+ function r() {
223
+ const m = _e.includes(e) ? e : "system", h = _e[(_e.indexOf(m) + 1) % _e.length];
224
+ n(h), a(h);
225
+ }
226
+ const o = e === "light" ? Pn : e === "dark" ? Ln : Mn, d = e === "light" ? "Theme: light (click for dark)" : e === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
227
+ return /* @__PURE__ */ t(
228
+ F,
229
+ {
230
+ type: "button",
231
+ variant: "ghost",
232
+ size: "xs",
233
+ className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
234
+ onClick: r,
235
+ "aria-label": d,
236
+ title: d,
237
+ children: /* @__PURE__ */ t(o, { className: "h-3.5 w-3.5", strokeWidth: 1.5 })
238
+ }
239
+ );
240
+ }
241
+ function Fn() {
242
+ const { displayPreferences: e, shouldShowElement: n } = ca(), { currentUser: a, userContext: r } = ct(), o = H(
243
+ () => la(a),
244
+ [a]
245
+ ), d = H(() => (h) => o && o[h] !== void 0 && o[h] === !1 ? !1 : n(h), [o, n, e]), m = H(
246
+ () => {
247
+ var h, b, f, g, c;
248
+ return {
249
+ canEdit: ((h = r == null ? void 0 : r.permissions) == null ? void 0 : h.canEdit) ?? fa(a),
250
+ canUseFilters: ((b = r == null ? void 0 : r.permissions) == null ? void 0 : b.canEdit) ?? pa(a),
251
+ canManageDashboards: ((f = r == null ? void 0 : r.permissions) == null ? void 0 : f.canCreateDashboard) ?? ha(a),
252
+ canCreateDashboards: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canCreateDashboard) ?? ma(a),
253
+ canAccessVisuals: ((c = r == null ? void 0 : r.permissions) == null ? void 0 : c.canEdit) ?? ua(a)
254
+ };
255
+ },
256
+ [a, r]
257
+ );
258
+ return {
259
+ displayPreferences: e,
260
+ shouldShowElement: d,
261
+ permissions: m,
262
+ currentUser: a
263
+ };
264
+ }
265
+ function Bn(e, n = []) {
266
+ let a = [];
267
+ function r(d, m) {
268
+ const h = A.createContext(m);
269
+ h.displayName = d + "Context";
270
+ const b = a.length;
271
+ a = [...a, m];
272
+ const f = (c) => {
273
+ var S;
274
+ const { scope: u, children: s, ...x } = c, v = ((S = u == null ? void 0 : u[e]) == null ? void 0 : S[b]) || h, w = A.useMemo(() => x, Object.values(x));
275
+ return /* @__PURE__ */ t(v.Provider, { value: w, children: s });
276
+ };
277
+ f.displayName = d + "Provider";
278
+ function g(c, u) {
279
+ var v;
280
+ const s = ((v = u == null ? void 0 : u[e]) == null ? void 0 : v[b]) || h, x = A.useContext(s);
281
+ if (x) return x;
282
+ if (m !== void 0) return m;
283
+ throw new Error(`\`${c}\` must be used within \`${d}\``);
284
+ }
285
+ return [f, g];
286
+ }
287
+ const o = () => {
288
+ const d = a.map((m) => A.createContext(m));
289
+ return function(h) {
290
+ const b = (h == null ? void 0 : h[e]) || d;
291
+ return A.useMemo(
292
+ () => ({ [`__scope${e}`]: { ...h, [e]: b } }),
293
+ [h, b]
294
+ );
295
+ };
296
+ };
297
+ return o.scopeName = e, [r, Gn(o, ...n)];
298
+ }
299
+ function Gn(...e) {
300
+ const n = e[0];
301
+ if (e.length === 1) return n;
302
+ const a = () => {
303
+ const r = e.map((o) => ({
304
+ useScope: o(),
305
+ scopeName: o.scopeName
306
+ }));
307
+ return function(d) {
308
+ const m = r.reduce((h, { useScope: b, scopeName: f }) => {
309
+ const c = b(d)[`__scope${f}`];
310
+ return { ...h, ...c };
311
+ }, {});
312
+ return A.useMemo(() => ({ [`__scope${n.scopeName}`]: m }), [m]);
313
+ };
314
+ };
315
+ return a.scopeName = n.scopeName, a;
316
+ }
317
+ var Vn = [
318
+ "a",
319
+ "button",
320
+ "div",
321
+ "form",
322
+ "h2",
323
+ "h3",
324
+ "img",
325
+ "input",
326
+ "label",
327
+ "li",
328
+ "nav",
329
+ "ol",
330
+ "p",
331
+ "select",
332
+ "span",
333
+ "svg",
334
+ "ul"
335
+ ], ut = Vn.reduce((e, n) => {
336
+ const a = qr(`Primitive.${n}`), r = A.forwardRef((o, d) => {
337
+ const { asChild: m, ...h } = o, b = m ? a : n;
338
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t(b, { ...h, ref: d });
339
+ });
340
+ return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
341
+ }, {});
342
+ function jn() {
343
+ return Tn.useSyncExternalStore(
344
+ Hn,
345
+ () => !0,
346
+ () => !1
347
+ );
348
+ }
349
+ function Hn() {
350
+ return () => {
351
+ };
352
+ }
353
+ var mt = "Avatar", [qn] = Bn(mt), [zn, ir] = qn(mt), dr = A.forwardRef(
354
+ (e, n) => {
355
+ const { __scopeAvatar: a, ...r } = e, [o, d] = A.useState("idle");
356
+ return /* @__PURE__ */ t(
357
+ zn,
358
+ {
359
+ scope: a,
360
+ imageLoadingStatus: o,
361
+ onImageLoadingStatusChange: d,
362
+ children: /* @__PURE__ */ t(ut.span, { ...r, ref: n })
363
+ }
364
+ );
365
+ }
366
+ );
367
+ dr.displayName = mt;
368
+ var cr = "AvatarImage", lr = A.forwardRef(
369
+ (e, n) => {
370
+ const { __scopeAvatar: a, src: r, onLoadingStatusChange: o = () => {
371
+ }, ...d } = e, m = ir(cr, a), h = Kn(r, d), b = zr((f) => {
372
+ o(f), m.onImageLoadingStatusChange(f);
373
+ });
374
+ return at(() => {
375
+ h !== "idle" && b(h);
376
+ }, [h, b]), h === "loaded" ? /* @__PURE__ */ t(ut.img, { ...d, ref: n, src: r }) : null;
377
+ }
378
+ );
379
+ lr.displayName = cr;
380
+ var ur = "AvatarFallback", mr = A.forwardRef(
381
+ (e, n) => {
382
+ const { __scopeAvatar: a, delayMs: r, ...o } = e, d = ir(ur, a), [m, h] = A.useState(r === void 0);
383
+ return A.useEffect(() => {
384
+ if (r !== void 0) {
385
+ const b = window.setTimeout(() => h(!0), r);
386
+ return () => window.clearTimeout(b);
387
+ }
388
+ }, [r]), m && d.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ t(ut.span, { ...o, ref: n }) : null;
389
+ }
390
+ );
391
+ mr.displayName = ur;
392
+ function Kt(e, n) {
393
+ return e ? n ? (e.src !== n && (e.src = n), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
394
+ }
395
+ function Kn(e, { referrerPolicy: n, crossOrigin: a }) {
396
+ const r = jn(), o = A.useRef(null), d = r ? (o.current || (o.current = new window.Image()), o.current) : null, [m, h] = A.useState(
397
+ () => Kt(d, e)
398
+ );
399
+ return at(() => {
400
+ h(Kt(d, e));
401
+ }, [d, e]), at(() => {
402
+ const b = (c) => () => {
403
+ h(c);
404
+ };
405
+ if (!d) return;
406
+ const f = b("loaded"), g = b("error");
407
+ return d.addEventListener("load", f), d.addEventListener("error", g), n && (d.referrerPolicy = n), typeof a == "string" && (d.crossOrigin = a), () => {
408
+ d.removeEventListener("load", f), d.removeEventListener("error", g);
409
+ };
410
+ }, [d, a, n]), m;
411
+ }
412
+ var hr = dr, pr = lr, fr = mr;
413
+ const br = A.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ t(
414
+ hr,
415
+ {
416
+ ref: a,
417
+ className: ge(
418
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
419
+ e
420
+ ),
421
+ ...n
422
+ }
423
+ ));
424
+ br.displayName = hr.displayName;
425
+ const Qn = A.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ t(
426
+ pr,
427
+ {
428
+ ref: a,
429
+ className: ge("aspect-square h-full w-full", e),
430
+ ...n
431
+ }
432
+ ));
433
+ Qn.displayName = pr.displayName;
434
+ const gr = A.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ t(
435
+ fr,
436
+ {
437
+ ref: a,
438
+ className: ge(
439
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
440
+ e
441
+ ),
442
+ ...n
443
+ }
444
+ ));
445
+ gr.displayName = fr.displayName;
446
+ const Wn = async (e, n, a) => {
447
+ const r = `${e}/management/v1/groups`;
448
+ return await Jt(r, n, a);
449
+ }, Yn = async (e, n, a, r) => {
450
+ const o = `${e}/management/v1/groups/${a}`;
451
+ return dt(o, n, "PATCH", r);
452
+ }, Jn = async (e, n, a) => {
453
+ const r = `${e}/management/v1/groups/${a}`;
454
+ await dt(r, n, "DELETE");
455
+ }, Xn = async (e, n, a, r) => {
456
+ const o = `${e}/management/v1/groups/${a}/members`;
457
+ return await Jt(o, n, r);
458
+ }, Zn = async (e, n, a, r) => {
459
+ const o = `${e}/management/v1/groups/${a}/members`;
460
+ await dt(o, n, "DELETE", r);
461
+ };
462
+ function eo() {
463
+ const { authToken: e, tokenProps: n } = Y(), a = ve();
464
+ return ye({
465
+ mutationFn: (r) => Wn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r),
466
+ onSuccess: () => {
467
+ a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group created successfully");
468
+ },
469
+ onError: (r) => {
470
+ console.error("Failed to create group:", r), C.error("Failed to create group", {
471
+ description: xe(r, "Failed to create group")
472
+ });
473
+ }
474
+ });
475
+ }
476
+ function to() {
477
+ const { authToken: e, tokenProps: n } = Y(), a = ve();
478
+ return ye({
479
+ mutationFn: ({
480
+ groupId: r,
481
+ data: o
482
+ }) => Yn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r, o),
483
+ onSuccess: (r, o) => {
484
+ a.invalidateQueries({ queryKey: ["group", o.groupId] }), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group updated successfully");
485
+ },
486
+ onError: (r) => {
487
+ console.error("Failed to update group:", r), C.error("Failed to update group", {
488
+ description: xe(r, "Failed to update group")
489
+ });
490
+ }
491
+ });
492
+ }
493
+ function ro() {
494
+ const { authToken: e, tokenProps: n } = Y(), a = ve();
495
+ return ye({
496
+ mutationFn: (r) => Jn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r),
497
+ onSuccess: (r, o) => {
498
+ a.invalidateQueries({ queryKey: ["groups"] }), a.removeQueries({ queryKey: ["group", o] }), C.success("Group deleted successfully");
499
+ },
500
+ onError: (r) => {
501
+ console.error("Failed to delete group:", r), C.error("Failed to delete group", {
502
+ description: xe(r, "Failed to delete group")
503
+ });
504
+ }
505
+ });
506
+ }
507
+ function ao() {
508
+ const { authToken: e, tokenProps: n } = Y(), a = ve();
509
+ return ye({
510
+ mutationFn: ({
511
+ groupId: r,
512
+ data: o
513
+ }) => Xn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r, o),
514
+ onSuccess: (r, o) => {
515
+ a.invalidateQueries({ queryKey: ["group", o.groupId] }), a.invalidateQueries({
516
+ queryKey: ["group-members", o.groupId]
517
+ }), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Members added successfully");
518
+ },
519
+ onError: (r) => {
520
+ console.error("Failed to add group members:", r), C.error("Failed to add members", {
521
+ description: xe(r, "Failed to add members")
522
+ });
523
+ }
524
+ });
525
+ }
526
+ function no() {
527
+ const { authToken: e, tokenProps: n } = Y(), a = ve();
528
+ return ye({
529
+ mutationFn: ({
530
+ groupId: r,
531
+ data: o
532
+ }) => Zn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r, o),
533
+ onSuccess: (r, o) => {
534
+ a.invalidateQueries({ queryKey: ["group", o.groupId] }), a.invalidateQueries({
535
+ queryKey: ["group-members", o.groupId]
536
+ }), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Members removed successfully");
537
+ },
538
+ onError: (r) => {
539
+ console.error("Failed to remove group members:", r), C.error("Failed to remove members", {
540
+ description: xe(r, "Failed to remove members")
541
+ });
542
+ }
543
+ });
544
+ }
545
+ const oo = [];
546
+ function so({
547
+ open: e,
548
+ onOpenChange: n
549
+ }) {
550
+ var p, M, L;
551
+ const { tokenProps: a } = Y(), { currentUser: r } = ct(), o = (r == null ? void 0 : r.type) === "tenant", d = a == null ? void 0 : a.tenantId, {
552
+ groups: m,
553
+ isLoading: h,
554
+ error: b,
555
+ refetch: f
556
+ } = ba({
557
+ type: o ? "TENANT_GROUP" : "all",
558
+ tenantId: o ? d : void 0,
559
+ includeMembers: !1
560
+ }), g = b ? xr(b, "Unable to load groups.") : null, [c, u] = N({ kind: "list" }), [s, x] = N(null), v = ro();
561
+ Ue(() => {
562
+ e || (u({ kind: "list" }), x(null));
563
+ }, [e]);
564
+ const w = c.kind === "members" && m.find((k) => k.id === c.groupId) || null, S = async () => {
565
+ if (s)
566
+ try {
567
+ await v.mutateAsync(s.id), x(null), u({ kind: "list" }), f();
568
+ } catch {
569
+ }
570
+ };
571
+ return /* @__PURE__ */ t(Xt, { open: e, onOpenChange: n, children: /* @__PURE__ */ i(Zt, { className: "flex max-h-[640px] w-[720px] max-w-[92vw] flex-col gap-0 overflow-hidden p-0", children: [
572
+ c.kind === "list" ? /* @__PURE__ */ i("div", { className: "shrink-0 border-b border-border px-5 pt-4 pb-3.5", children: [
573
+ /* @__PURE__ */ t(nt, { className: "text-[15px] font-semibold tracking-tight", children: "Group management" }),
574
+ /* @__PURE__ */ t(ot, { className: "mt-1 text-[12px] leading-[1.5] text-muted-foreground", children: "Organize people into groups for shared access." })
575
+ ] }) : c.kind === "create" ? /* @__PURE__ */ i("div", { className: "flex h-10 shrink-0 items-center gap-1.5 border-b border-border px-5", children: [
576
+ /* @__PURE__ */ t(
577
+ "button",
578
+ {
579
+ type: "button",
580
+ onClick: () => u({ kind: "list" }),
581
+ "aria-label": "Back",
582
+ className: "-ml-1 flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
583
+ children: /* @__PURE__ */ t(er, { className: "h-3.5 w-3.5" })
584
+ }
585
+ ),
586
+ /* @__PURE__ */ t(nt, { className: "truncate text-[13px] font-medium", children: "New group" }),
587
+ /* @__PURE__ */ t(ot, { className: "sr-only", children: "Create a new group to organize members." })
588
+ ] }) : null,
589
+ c.kind === "list" && /* @__PURE__ */ t(
590
+ io,
591
+ {
592
+ groups: m,
593
+ isLoading: h,
594
+ errorMessage: g,
595
+ onRetry: () => f(),
596
+ currentUserId: r == null ? void 0 : r.id,
597
+ onOpenGroup: (k) => u({ kind: "members", groupId: k }),
598
+ onCreate: () => u({ kind: "create" }),
599
+ onDeleteRequest: (k) => x(k)
600
+ }
601
+ ),
602
+ c.kind === "members" && w && /* @__PURE__ */ t(
603
+ uo,
604
+ {
605
+ group: w,
606
+ isTenantViewer: o,
607
+ canEdit: ((p = w.permissions) == null ? void 0 : p.canEdit) ?? w.createdBy === (r == null ? void 0 : r.id),
608
+ canDelete: ((M = w.permissions) == null ? void 0 : M.canDelete) ?? w.createdBy === (r == null ? void 0 : r.id),
609
+ canManageMembers: ((L = w.permissions) == null ? void 0 : L.canManageMembers) ?? w.createdBy === (r == null ? void 0 : r.id),
610
+ onBack: () => u({ kind: "list" }),
611
+ onMembersChanged: f,
612
+ onUpdated: f,
613
+ onRequestDelete: () => x(w)
614
+ },
615
+ w.id
616
+ ),
617
+ c.kind === "create" && /* @__PURE__ */ t(
618
+ mo,
619
+ {
620
+ isTenantUser: o,
621
+ tenantId: d,
622
+ onCancel: () => u({ kind: "list" }),
623
+ onCreated: (k) => {
624
+ f(), u({ kind: "members", groupId: k });
625
+ }
626
+ }
627
+ ),
628
+ s && /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center justify-between gap-3 border-t border-border bg-muted/40 px-5 py-2.5", children: [
629
+ /* @__PURE__ */ i("div", { className: "min-w-0 text-[12px] text-foreground", children: [
630
+ "Delete ",
631
+ /* @__PURE__ */ t("span", { className: "font-medium", children: s.name }),
632
+ "?",
633
+ /* @__PURE__ */ t("span", { className: "ml-2 text-muted-foreground", children: "Members lose any access granted via this group." })
634
+ ] }),
635
+ /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-1.5", children: [
636
+ /* @__PURE__ */ t(
637
+ "button",
638
+ {
639
+ type: "button",
640
+ onClick: () => x(null),
641
+ disabled: v.isPending,
642
+ className: "h-7 rounded-[5px] px-2.5 text-[12px] font-medium text-foreground/80 hover:bg-background",
643
+ children: "Cancel"
644
+ }
645
+ ),
646
+ /* @__PURE__ */ i(
647
+ "button",
648
+ {
649
+ type: "button",
650
+ onClick: S,
651
+ disabled: v.isPending,
652
+ className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-rose-600 px-2.5 text-[12px] font-medium text-white hover:bg-rose-700 disabled:opacity-60",
653
+ children: [
654
+ v.isPending ? /* @__PURE__ */ t(Re, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(lt, { className: "h-3 w-3" }),
655
+ "Delete group"
656
+ ]
657
+ }
658
+ )
659
+ ] })
660
+ ] })
661
+ ] }) });
662
+ }
663
+ function io({
664
+ groups: e,
665
+ isLoading: n,
666
+ errorMessage: a,
667
+ onRetry: r,
668
+ currentUserId: o,
669
+ onOpenGroup: d,
670
+ onCreate: m,
671
+ onDeleteRequest: h
672
+ }) {
673
+ const [b, f] = N(""), g = H(
674
+ () => e.filter(
675
+ (c) => !b.trim() || c.name.toLowerCase().includes(b.toLowerCase()) || (c.description || "").toLowerCase().includes(b.toLowerCase())
676
+ ),
677
+ [e, b]
678
+ );
679
+ return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
680
+ /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
681
+ /* @__PURE__ */ i("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
682
+ /* @__PURE__ */ t(wn, { className: "h-3 w-3 text-muted-foreground" }),
683
+ /* @__PURE__ */ t(
684
+ "input",
685
+ {
686
+ value: b,
687
+ onChange: (c) => f(c.target.value),
688
+ placeholder: "Search groups…",
689
+ className: "h-7 flex-1 bg-transparent text-[12px] text-foreground placeholder:text-muted-foreground focus:outline-none"
690
+ }
691
+ ),
692
+ b && /* @__PURE__ */ t(
693
+ "button",
694
+ {
695
+ type: "button",
696
+ onClick: () => f(""),
697
+ className: "flex h-4 w-4 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
698
+ children: /* @__PURE__ */ t(ar, { className: "h-2.5 w-2.5" })
699
+ }
700
+ )
701
+ ] }),
702
+ /* @__PURE__ */ i(
703
+ "button",
704
+ {
705
+ type: "button",
706
+ onClick: m,
707
+ 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",
708
+ children: [
709
+ /* @__PURE__ */ t(re, { className: "h-3 w-3" }),
710
+ "New group"
711
+ ]
712
+ }
713
+ )
714
+ ] }),
715
+ /* @__PURE__ */ t("div", { className: "flex-1 overflow-y-auto", children: n ? /* @__PURE__ */ t("div", { className: "space-y-px p-3", children: [1, 2, 3].map((c) => /* @__PURE__ */ t(
716
+ "div",
717
+ {
718
+ className: "h-12 animate-pulse rounded-[4px] bg-muted/60"
719
+ },
720
+ c
721
+ )) }) : a ? /* @__PURE__ */ t(
722
+ vr,
723
+ {
724
+ title: "Can't load groups",
725
+ message: a,
726
+ onRetry: r
727
+ }
728
+ ) : g.length === 0 && e.length === 0 ? /* @__PURE__ */ t(lo, { onCreate: m }) : g.length === 0 ? /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
729
+ /* @__PURE__ */ i("div", { className: "text-[12px] text-foreground", children: [
730
+ 'No groups match "',
731
+ b,
732
+ '"'
733
+ ] }),
734
+ /* @__PURE__ */ t("div", { className: "text-[11px] text-muted-foreground", children: "Try a different search." })
735
+ ] }) : g.map((c) => {
736
+ var u;
737
+ return /* @__PURE__ */ t(
738
+ co,
739
+ {
740
+ group: c,
741
+ canDelete: ((u = c.permissions) == null ? void 0 : u.canDelete) ?? c.createdBy === o,
742
+ onClick: () => d(c.id),
743
+ onDelete: () => h(c)
744
+ },
745
+ c.id
746
+ );
747
+ }) })
748
+ ] });
749
+ }
750
+ function co({
751
+ group: e,
752
+ canDelete: n,
753
+ onClick: a,
754
+ onDelete: r
755
+ }) {
756
+ let o = "";
757
+ try {
758
+ o = or(new Date(e.createdAt), "MMM d, yyyy");
759
+ } catch {
760
+ o = "";
761
+ }
762
+ return /* @__PURE__ */ i(
763
+ "button",
764
+ {
765
+ type: "button",
766
+ onClick: a,
767
+ 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",
768
+ children: [
769
+ /* @__PURE__ */ t("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__ */ t(va, { className: "h-3.5 w-3.5" }) }),
770
+ /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
771
+ /* @__PURE__ */ t("div", { className: "truncate text-[13px] font-medium text-foreground", children: e.name }),
772
+ /* @__PURE__ */ i("div", { className: "mt-0.5 flex items-center gap-2 text-[11px] text-muted-foreground", children: [
773
+ /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
774
+ /* @__PURE__ */ t(sr, { className: "h-2.5 w-2.5" }),
775
+ e.memberCount,
776
+ " member",
777
+ e.memberCount === 1 ? "" : "s"
778
+ ] }),
779
+ o && /* @__PURE__ */ i(B, { children: [
780
+ /* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
781
+ /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
782
+ /* @__PURE__ */ t(rr, { className: "h-2.5 w-2.5" }),
783
+ o
784
+ ] })
785
+ ] }),
786
+ e.description && /* @__PURE__ */ i(B, { children: [
787
+ /* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
788
+ /* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: e.description })
789
+ ] })
790
+ ] })
791
+ ] }),
792
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100", children: [
793
+ n && /* @__PURE__ */ t(
794
+ "span",
795
+ {
796
+ role: "button",
797
+ tabIndex: 0,
798
+ onClick: (d) => {
799
+ d.stopPropagation(), r();
800
+ },
801
+ onKeyDown: (d) => {
802
+ (d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), r());
803
+ },
804
+ "aria-label": `Delete ${e.name}`,
805
+ className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
806
+ children: /* @__PURE__ */ t(lt, { className: "h-3 w-3" })
807
+ }
808
+ ),
809
+ /* @__PURE__ */ t(Nn, { className: "h-3.5 w-3.5 text-muted-foreground" })
810
+ ] })
811
+ ]
812
+ }
813
+ );
814
+ }
815
+ function lo({ onCreate: e }) {
816
+ return /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-12 text-center", children: [
817
+ /* @__PURE__ */ t("div", { className: "flex h-9 w-9 items-center justify-center rounded-full border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ t(tr, { className: "h-4 w-4" }) }),
818
+ /* @__PURE__ */ t("div", { className: "text-[13px] font-medium text-foreground", children: "No groups yet" }),
819
+ /* @__PURE__ */ t("div", { className: "max-w-[320px] text-[11.5px] leading-[1.55] text-muted-foreground", children: "Groups let you grant shared access to dashboards. Create one and add members." }),
820
+ /* @__PURE__ */ i(
821
+ "button",
822
+ {
823
+ type: "button",
824
+ onClick: e,
825
+ className: "mt-1 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",
826
+ children: [
827
+ /* @__PURE__ */ t(re, { className: "h-3 w-3" }),
828
+ "New group"
829
+ ]
830
+ }
831
+ )
832
+ ] });
833
+ }
834
+ function uo({
835
+ group: e,
836
+ isTenantViewer: n,
837
+ canEdit: a,
838
+ canDelete: r,
839
+ canManageMembers: o,
840
+ onBack: d,
841
+ onMembersChanged: m,
842
+ onUpdated: h,
843
+ onRequestDelete: b
844
+ }) {
845
+ const {
846
+ data: f,
847
+ isLoading: g,
848
+ error: c,
849
+ refetch: u
850
+ } = ga(e.id), s = (f == null ? void 0 : f.members) ?? oo, x = c ? xr(c, "Unable to load members for this group.") : null, v = e.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = xa({
851
+ type: v,
852
+ tenantId: e.tenantId || void 0,
853
+ active: !0,
854
+ limit: 200
855
+ }), S = H(
856
+ () => new Set(s.map((y) => y.userId)),
857
+ [s]
858
+ ), p = ao(), M = no(), L = to(), [k, E] = N(!1), [I, J] = N(e.name), [$e, q] = N(!1), [ne, z] = N(e.description || ""), [oe, se] = N(""), [Fe, ie] = N(!1), we = H(() => {
859
+ const y = oe.trim().toLowerCase();
860
+ return w.filter((T) => !S.has(T.id)).filter(
861
+ (T) => !y || (T.name || "").toLowerCase().includes(y) || (T.email || "").toLowerCase().includes(y)
862
+ ).slice(0, 50);
863
+ }, [w, S, oe]), X = async () => {
864
+ const y = I.trim();
865
+ if (E(!1), y.length >= 3 && y !== e.name)
866
+ try {
867
+ await L.mutateAsync({
868
+ groupId: e.id,
869
+ data: { name: y }
870
+ }), h();
871
+ } catch {
872
+ }
873
+ }, Ne = async () => {
874
+ const y = ne.trim();
875
+ if (q(!1), y !== (e.description || ""))
876
+ try {
877
+ await L.mutateAsync({
878
+ groupId: e.id,
879
+ data: { description: y }
880
+ }), h();
881
+ } catch {
882
+ }
883
+ }, Se = async (y) => {
884
+ if (o) {
885
+ se(""), ie(!1);
886
+ try {
887
+ await p.mutateAsync({
888
+ groupId: e.id,
889
+ data: {
890
+ userIds: [y.id],
891
+ userType: v === "tenant" ? "tenant" : "org"
892
+ }
893
+ }), u(), m();
894
+ } catch {
895
+ }
896
+ }
897
+ }, Be = async (y) => {
898
+ if (o)
899
+ try {
900
+ await M.mutateAsync({
901
+ groupId: e.id,
902
+ data: { userIds: [y] }
903
+ }), u(), m();
904
+ } catch {
905
+ }
906
+ };
907
+ let G = "";
908
+ try {
909
+ G = or(new Date(e.createdAt), "MMM d, yyyy");
910
+ } catch {
911
+ G = "";
912
+ }
913
+ return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
914
+ /* @__PURE__ */ i("div", { className: "flex h-10 shrink-0 items-center gap-1.5 border-b border-border px-5", children: [
915
+ /* @__PURE__ */ t(
916
+ "button",
917
+ {
918
+ type: "button",
919
+ onClick: d,
920
+ "aria-label": "Back",
921
+ className: "-ml-1 flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
922
+ children: /* @__PURE__ */ t(er, { className: "h-3.5 w-3.5" })
923
+ }
924
+ ),
925
+ k ? /* @__PURE__ */ t(
926
+ "input",
927
+ {
928
+ autoFocus: !0,
929
+ value: I,
930
+ onChange: (y) => J(y.target.value),
931
+ onBlur: X,
932
+ onKeyDown: (y) => {
933
+ y.key === "Enter" && X(), y.key === "Escape" && (J(e.name), E(!1));
934
+ },
935
+ className: "h-6 min-w-0 flex-1 rounded-[3px] border border-border bg-background px-1.5 text-[13px] font-medium text-foreground focus:border-foreground/40 focus:outline-none"
936
+ }
937
+ ) : /* @__PURE__ */ t(
938
+ "button",
939
+ {
940
+ type: "button",
941
+ onClick: () => {
942
+ a && (J(e.name), E(!0));
943
+ },
944
+ title: a ? "Click to rename" : e.name,
945
+ disabled: !a,
946
+ className: "truncate rounded-[3px] px-1 text-[13px] font-medium text-foreground enabled:hover:bg-accent disabled:cursor-default",
947
+ children: e.name
948
+ }
949
+ ),
950
+ /* @__PURE__ */ i("span", { className: "ml-1 inline-flex shrink-0 items-center gap-1 text-[10.5px] text-muted-foreground", children: [
951
+ /* @__PURE__ */ t(sr, { className: "h-2.5 w-2.5" }),
952
+ s.length,
953
+ " member",
954
+ s.length === 1 ? "" : "s"
955
+ ] })
956
+ ] }),
957
+ /* @__PURE__ */ t("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: $e ? /* @__PURE__ */ i("div", { children: [
958
+ /* @__PURE__ */ t(
959
+ "textarea",
960
+ {
961
+ autoFocus: !0,
962
+ rows: 2,
963
+ value: ne,
964
+ onChange: (y) => z(y.target.value),
965
+ maxLength: 200,
966
+ onKeyDown: (y) => {
967
+ y.key === "Escape" && (z(e.description || ""), q(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && Ne();
968
+ },
969
+ placeholder: "What is this group for?",
970
+ className: "block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
971
+ }
972
+ ),
973
+ /* @__PURE__ */ i("div", { className: "mt-1.5 flex items-center justify-between", children: [
974
+ /* @__PURE__ */ i("span", { className: "text-[10.5px] text-muted-foreground", children: [
975
+ ne.length,
976
+ "/200 · Esc to cancel · ⌘↩ to save"
977
+ ] }),
978
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
979
+ /* @__PURE__ */ t(
980
+ "button",
981
+ {
982
+ type: "button",
983
+ onClick: () => {
984
+ z(e.description || ""), q(!1);
985
+ },
986
+ className: "h-6 rounded-[5px] px-2 text-[11px] font-medium text-foreground/80 hover:bg-accent",
987
+ children: "Cancel"
988
+ }
989
+ ),
990
+ /* @__PURE__ */ t(
991
+ "button",
992
+ {
993
+ type: "button",
994
+ onClick: Ne,
995
+ className: "inline-flex h-6 items-center rounded-[5px] bg-foreground px-2 text-[11px] font-medium text-background hover:opacity-90",
996
+ children: "Save"
997
+ }
998
+ )
999
+ ] })
1000
+ ] })
1001
+ ] }) : /* @__PURE__ */ i(
1002
+ "button",
1003
+ {
1004
+ type: "button",
1005
+ onClick: () => {
1006
+ a && (z(e.description || ""), q(!0));
1007
+ },
1008
+ disabled: !a,
1009
+ title: a ? "Click to edit description" : void 0,
1010
+ className: "block w-full rounded-[3px] px-1 py-0.5 text-left enabled:hover:bg-accent/40 disabled:cursor-default",
1011
+ children: [
1012
+ e.description ? /* @__PURE__ */ t("p", { className: "text-[12px] leading-[1.55] text-foreground/90", children: e.description }) : /* @__PURE__ */ t("p", { className: "text-[12px] leading-[1.55] text-muted-foreground", children: a ? "Add a description…" : "No description" }),
1013
+ /* @__PURE__ */ i("p", { className: "mt-1 text-[10.5px] text-muted-foreground", children: [
1014
+ G ? `Created ${G}` : "Recently created",
1015
+ a ? " · You can edit this group" : ""
1016
+ ] })
1017
+ ]
1018
+ }
1019
+ ) }),
1020
+ o && /* @__PURE__ */ t(
1021
+ ho,
1022
+ {
1023
+ query: oe,
1024
+ setQuery: se,
1025
+ open: Fe,
1026
+ setOpen: ie,
1027
+ candidates: we,
1028
+ showKindChip: !n,
1029
+ onAdd: Se,
1030
+ busy: p.isPending
1031
+ }
1032
+ ),
1033
+ /* @__PURE__ */ t("div", { className: "flex-1 overflow-y-auto", children: g ? /* @__PURE__ */ t("div", { className: "space-y-px p-3", children: [1, 2, 3].map((y) => /* @__PURE__ */ t(
1034
+ "div",
1035
+ {
1036
+ className: "h-10 animate-pulse rounded-[4px] bg-muted/60"
1037
+ },
1038
+ y
1039
+ )) }) : x ? /* @__PURE__ */ t(
1040
+ vr,
1041
+ {
1042
+ title: "Can't load members",
1043
+ message: x,
1044
+ onRetry: () => u()
1045
+ }
1046
+ ) : s.length === 0 ? /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
1047
+ /* @__PURE__ */ t("div", { className: "text-[12px] text-foreground", children: "No members yet" }),
1048
+ /* @__PURE__ */ t("div", { className: "text-[11px] text-muted-foreground", children: o ? "Search above to add people to this group." : "This group does not have any members." })
1049
+ ] }) : s.map((y) => {
1050
+ var T, de, K, ce, Q, ke;
1051
+ return /* @__PURE__ */ i(
1052
+ "div",
1053
+ {
1054
+ className: "group flex items-center gap-2 border-b border-border/60 px-5 py-2",
1055
+ children: [
1056
+ /* @__PURE__ */ t(yr, { name: ((T = y.user) == null ? void 0 : T.name) || ((de = y.user) == null ? void 0 : de.email) || "?" }),
1057
+ /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
1058
+ /* @__PURE__ */ t("div", { className: "truncate text-[12.5px] font-medium text-foreground", children: ((K = y.user) == null ? void 0 : K.name) || ((ce = y.user) == null ? void 0 : ce.email) || "Unknown" }),
1059
+ ((Q = y.user) == null ? void 0 : Q.email) && y.user.name && /* @__PURE__ */ t("div", { className: "truncate text-[10.5px] text-muted-foreground", children: y.user.email })
1060
+ ] }),
1061
+ !n && /* @__PURE__ */ t("span", { className: "text-[10px] uppercase tracking-[0.06em] text-muted-foreground", children: y.userType }),
1062
+ /* @__PURE__ */ t(
1063
+ "button",
1064
+ {
1065
+ type: "button",
1066
+ onClick: () => Be(y.userId),
1067
+ disabled: !o || M.isPending,
1068
+ "aria-label": `Remove ${((ke = y.user) == null ? void 0 : ke.name) || "member"}`,
1069
+ className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground group-hover:opacity-100 disabled:opacity-30",
1070
+ children: /* @__PURE__ */ t(ar, { className: "h-3 w-3" })
1071
+ }
1072
+ )
1073
+ ]
1074
+ },
1075
+ y.id
1076
+ );
1077
+ }) }),
1078
+ r && /* @__PURE__ */ t("div", { className: "flex shrink-0 items-center justify-end gap-1.5 border-t border-border bg-muted/30 px-5 py-2.5", children: /* @__PURE__ */ i(
1079
+ "button",
1080
+ {
1081
+ type: "button",
1082
+ onClick: b,
1083
+ className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] border border-rose-200 bg-background px-2.5 text-[12px] font-medium text-rose-600 hover:bg-rose-50 dark:border-rose-900/60 dark:text-rose-400 dark:hover:bg-rose-950/30",
1084
+ children: [
1085
+ /* @__PURE__ */ t(lt, { className: "h-3 w-3" }),
1086
+ "Delete group"
1087
+ ]
1088
+ }
1089
+ ) })
1090
+ ] });
1091
+ }
1092
+ function mo({
1093
+ isTenantUser: e,
1094
+ tenantId: n,
1095
+ onCancel: a,
1096
+ onCreated: r
1097
+ }) {
1098
+ const [o, d] = N(""), [m, h] = N(""), [b, f] = N(null), g = eo(), c = o.trim().length >= 3 && o.trim().length <= 50, u = async () => {
1099
+ if (!c) return;
1100
+ f(null);
1101
+ const s = {
1102
+ name: o.trim(),
1103
+ description: m.trim() || void 0,
1104
+ type: e ? "TENANT_GROUP" : "ORG_GROUP",
1105
+ ...e && n ? { tenantId: n } : {}
1106
+ };
1107
+ try {
1108
+ const x = await g.mutateAsync(s), v = x == null ? void 0 : x.id;
1109
+ v ? r(v) : a();
1110
+ } catch (x) {
1111
+ f(x instanceof Error ? x.message : "Failed to create group");
1112
+ }
1113
+ };
1114
+ return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
1115
+ /* @__PURE__ */ i("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
1116
+ /* @__PURE__ */ t(Qt, { children: "Name" }),
1117
+ /* @__PURE__ */ t(
1118
+ "input",
1119
+ {
1120
+ autoFocus: !0,
1121
+ value: o,
1122
+ onChange: (s) => d(s.target.value),
1123
+ placeholder: "Marketing leads, North America sales, …",
1124
+ maxLength: 50,
1125
+ className: "mt-1 block h-7 w-full rounded-[5px] border border-border bg-background px-2 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
1126
+ }
1127
+ ),
1128
+ /* @__PURE__ */ t("div", { className: "mt-1 text-[10.5px] text-muted-foreground", children: "3–50 characters." }),
1129
+ /* @__PURE__ */ i("div", { className: "mt-4", children: [
1130
+ /* @__PURE__ */ t(Qt, { children: "Description (optional)" }),
1131
+ /* @__PURE__ */ t(
1132
+ "textarea",
1133
+ {
1134
+ rows: 2,
1135
+ value: m,
1136
+ onChange: (s) => h(s.target.value),
1137
+ maxLength: 200,
1138
+ placeholder: "What is this group for?",
1139
+ className: "mt-1 block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
1140
+ }
1141
+ ),
1142
+ /* @__PURE__ */ i("div", { className: "mt-1 flex justify-end text-[10.5px] text-muted-foreground", children: [
1143
+ m.length,
1144
+ "/200"
1145
+ ] })
1146
+ ] }),
1147
+ b && /* @__PURE__ */ t("div", { className: "mt-3 rounded-[5px] border border-rose-200 bg-rose-50 px-2 py-1.5 text-[11.5px] text-rose-700 dark:border-rose-900/60 dark:bg-rose-950/30 dark:text-rose-300", children: b })
1148
+ ] }),
1149
+ /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center justify-end gap-1.5 border-t border-border bg-muted/30 px-5 py-2.5", children: [
1150
+ /* @__PURE__ */ t(
1151
+ "button",
1152
+ {
1153
+ type: "button",
1154
+ onClick: a,
1155
+ disabled: g.isPending,
1156
+ className: "h-7 rounded-[5px] px-2.5 text-[12px] font-medium text-foreground/80 hover:bg-accent",
1157
+ children: "Cancel"
1158
+ }
1159
+ ),
1160
+ /* @__PURE__ */ t(
1161
+ "button",
1162
+ {
1163
+ type: "button",
1164
+ onClick: u,
1165
+ disabled: !c || g.isPending,
1166
+ 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",
1167
+ children: g.isPending ? /* @__PURE__ */ i(B, { children: [
1168
+ /* @__PURE__ */ t(Re, { className: "h-3 w-3 animate-spin" }),
1169
+ "Creating…"
1170
+ ] }) : /* @__PURE__ */ i(B, { children: [
1171
+ /* @__PURE__ */ t(re, { className: "h-3 w-3" }),
1172
+ "Create group"
1173
+ ] })
1174
+ }
1175
+ )
1176
+ ] })
1177
+ ] });
1178
+ }
1179
+ function ho({
1180
+ query: e,
1181
+ setQuery: n,
1182
+ open: a,
1183
+ setOpen: r,
1184
+ candidates: o,
1185
+ showKindChip: d,
1186
+ onAdd: m,
1187
+ busy: h
1188
+ }) {
1189
+ const b = jt(null), f = jt(null), [g, c] = N(null);
1190
+ cn(() => {
1191
+ if (!a) {
1192
+ c(null);
1193
+ return;
1194
+ }
1195
+ const s = () => {
1196
+ const x = b.current;
1197
+ if (!x) return;
1198
+ const v = x.getBoundingClientRect(), w = 240, p = window.innerHeight - v.bottom < w + 16 && v.top > w;
1199
+ c({
1200
+ left: v.left,
1201
+ top: p ? v.top - 6 : v.bottom + 6,
1202
+ width: v.width,
1203
+ above: p
1204
+ });
1205
+ };
1206
+ return s(), window.addEventListener("resize", s), window.addEventListener("scroll", s, !0), () => {
1207
+ window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0);
1208
+ };
1209
+ }, [a, o.length]), Ue(() => {
1210
+ if (!a) return;
1211
+ const s = (x) => {
1212
+ var w, S;
1213
+ const v = x.target;
1214
+ (w = b.current) != null && w.contains(v) || (S = f.current) != null && S.contains(v) || r(!1);
1215
+ };
1216
+ return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
1217
+ }, [a, r]);
1218
+ const u = a && o.length > 0 && g;
1219
+ return /* @__PURE__ */ i("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: [
1220
+ /* @__PURE__ */ i(
1221
+ "div",
1222
+ {
1223
+ ref: b,
1224
+ className: "flex items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40",
1225
+ children: [
1226
+ /* @__PURE__ */ t(_n, { className: "h-3 w-3 text-muted-foreground" }),
1227
+ /* @__PURE__ */ t(
1228
+ "input",
1229
+ {
1230
+ value: e,
1231
+ onChange: (s) => {
1232
+ n(s.target.value), r(!0);
1233
+ },
1234
+ onFocus: () => r(!0),
1235
+ placeholder: "Add a member by name or email…",
1236
+ disabled: h,
1237
+ className: "h-7 flex-1 bg-transparent text-[12px] text-foreground placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed"
1238
+ }
1239
+ )
1240
+ ]
1241
+ }
1242
+ ),
1243
+ u && typeof document < "u" && yn(
1244
+ /* @__PURE__ */ t(
1245
+ "div",
1246
+ {
1247
+ ref: f,
1248
+ style: {
1249
+ position: "fixed",
1250
+ left: g.left,
1251
+ top: g.top,
1252
+ width: g.width,
1253
+ transform: g.above ? "translateY(-100%)" : void 0
1254
+ },
1255
+ className: "z-[60] max-h-[240px] overflow-y-auto rounded-[5px] border border-border bg-background shadow-[0_8px_24px_-12px_rgba(0,0,0,0.18)]",
1256
+ children: o.map((s) => /* @__PURE__ */ i(
1257
+ "button",
1258
+ {
1259
+ type: "button",
1260
+ onClick: () => m(s),
1261
+ className: "flex w-full items-center gap-2 border-b border-border/60 px-2.5 py-2 text-left last:border-b-0 hover:bg-accent",
1262
+ children: [
1263
+ /* @__PURE__ */ t(yr, { name: s.name || s.email || "?" }),
1264
+ /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
1265
+ /* @__PURE__ */ t("div", { className: "truncate text-[12px] font-medium text-foreground", children: s.name || s.email || "Unknown" }),
1266
+ s.email && s.name && /* @__PURE__ */ t("div", { className: "truncate text-[10.5px] text-muted-foreground", children: s.email })
1267
+ ] }),
1268
+ d && s.type && /* @__PURE__ */ t("span", { className: "text-[10px] uppercase tracking-[0.06em] text-muted-foreground", children: s.type === "tenant" ? "tenant" : "org" })
1269
+ ]
1270
+ },
1271
+ s.id
1272
+ ))
1273
+ }
1274
+ ),
1275
+ document.body
1276
+ )
1277
+ ] });
1278
+ }
1279
+ function xr(e, n) {
1280
+ if (!e) return n;
1281
+ if (e instanceof Error) {
1282
+ const a = e.message || "", r = a.match(/\{[\s\S]*"error"\s*:\s*"([^"]+)"[\s\S]*\}/);
1283
+ return r ? r[1] : a || n;
1284
+ }
1285
+ return typeof e == "string" ? e : n;
1286
+ }
1287
+ function vr({
1288
+ title: e,
1289
+ message: n,
1290
+ onRetry: a
1291
+ }) {
1292
+ return /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-2 px-6 py-10 text-center", children: [
1293
+ /* @__PURE__ */ t("div", { className: "text-[12.5px] font-medium text-foreground", children: e }),
1294
+ /* @__PURE__ */ t("div", { className: "max-w-[360px] text-[11.5px] leading-[1.55] text-muted-foreground", children: n }),
1295
+ a && /* @__PURE__ */ t(
1296
+ "button",
1297
+ {
1298
+ type: "button",
1299
+ onClick: a,
1300
+ className: "mt-1 inline-flex h-7 items-center rounded-[5px] border border-border bg-background px-2.5 text-[11.5px] font-medium text-foreground hover:bg-accent",
1301
+ children: "Try again"
1302
+ }
1303
+ )
1304
+ ] });
1305
+ }
1306
+ function Qt({ children: e }) {
1307
+ return /* @__PURE__ */ t("label", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: e });
1308
+ }
1309
+ function yr({ name: e }) {
1310
+ const n = e.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
1311
+ return /* @__PURE__ */ t(br, { className: "h-6 w-6 shrink-0", children: /* @__PURE__ */ t(gr, { className: "text-[9px] font-semibold", children: n || "?" }) });
1312
+ }
1313
+ const po = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
1314
+ function fo({
1315
+ open: e,
1316
+ onOpenChange: n
1317
+ }) {
1318
+ const a = D(
1319
+ (o) => {
1320
+ var d, m;
1321
+ return kn({
1322
+ dashboardDefault: (m = (d = o.dashboard) == null ? void 0 : d.exportDefaults) == null ? void 0 : m.csvEncoding
1323
+ });
1324
+ }
1325
+ ), { setDashboardExportDefaults: r } = D(
1326
+ (o) => o.actions
1327
+ );
1328
+ return /* @__PURE__ */ t(Xt, { open: e, onOpenChange: n, children: /* @__PURE__ */ i(Zt, { className: "rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control", children: [
1329
+ /* @__PURE__ */ i(ya, { children: [
1330
+ /* @__PURE__ */ t(nt, { className: "text-[15px]", children: "Download settings" }),
1331
+ /* @__PURE__ */ t(ot, { 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." })
1332
+ ] }),
1333
+ /* @__PURE__ */ i("div", { className: "space-y-2", children: [
1334
+ /* @__PURE__ */ t(Kr, { htmlFor: "dashboard-csv-encoding", className: po, children: "CSV encoding" }),
1335
+ /* @__PURE__ */ i(
1336
+ Qr,
1337
+ {
1338
+ value: a,
1339
+ onValueChange: (o) => r({ csvEncoding: o }),
1340
+ children: [
1341
+ /* @__PURE__ */ t(Wr, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ t(Yr, {}) }),
1342
+ /* @__PURE__ */ t(Jr, { children: wa.map((o) => /* @__PURE__ */ t(Xr, { value: o.value, children: o.label }, o.value)) })
1343
+ ]
1344
+ }
1345
+ )
1346
+ ] })
1347
+ ] }) });
1348
+ }
1349
+ function fe(e, n, a) {
1350
+ var d, m;
1351
+ const r = (e.controls || []).find(
1352
+ (h) => h.id === a
1353
+ );
1354
+ if (r)
1355
+ return r.label;
1356
+ const o = (m = (d = Te(e, n)) == null ? void 0 : d.controls) == null ? void 0 : m.find(
1357
+ (h) => h.id === a
1358
+ );
1359
+ return (o == null ? void 0 : o.label) || a;
1360
+ }
1361
+ function be(e, n) {
1362
+ var a;
1363
+ return ((a = Te(e, n)) == null ? void 0 : a.title) || n;
1364
+ }
1365
+ function bo(e) {
1366
+ const { errors: n, dashboard: a } = e;
1367
+ if (!a)
1368
+ return n;
1369
+ const r = /* @__PURE__ */ new Map();
1370
+ for (const o of n) {
1371
+ const d = o.match(
1372
+ /^Card '(.+)' binding for control '(.+)' maps to missing metric '(.+)'\.$/
1373
+ );
1374
+ if (d) {
1375
+ const [, g, c] = d, u = `${g}:${c}:missing-metric`;
1376
+ r.has(u) || r.set(
1377
+ u,
1378
+ `"${be(a, g)}" has an outdated "${fe(
1379
+ a,
1380
+ g,
1381
+ c
1382
+ )}" mapping. Some choices still point to metrics that are no longer available on this card. Open the card controls and choose replacements.`
1383
+ );
1384
+ continue;
1385
+ }
1386
+ const m = o.match(
1387
+ /^Card '(.+)' binding for control '(.+)' maps to missing group-by field '(.+)'\.$/
1388
+ );
1389
+ if (m) {
1390
+ const [, g, c] = m, u = `${g}:${c}:missing-group-by`;
1391
+ r.has(u) || r.set(
1392
+ u,
1393
+ `"${be(a, g)}" has an outdated "${fe(
1394
+ a,
1395
+ g,
1396
+ c
1397
+ )}" mapping. Some choices still point to fields that are no longer available on this card. Open the card controls and choose replacements.`
1398
+ );
1399
+ continue;
1400
+ }
1401
+ const h = o.match(
1402
+ /^Card '(.+)' binding for control '(.+)' maps to an invalid metric target\.$/
1403
+ );
1404
+ if (h) {
1405
+ const [, g, c] = h, u = `${g}:${c}:invalid-metric`;
1406
+ r.has(u) || r.set(
1407
+ u,
1408
+ `"${be(a, g)}" has an invalid "${fe(
1409
+ a,
1410
+ g,
1411
+ c
1412
+ )}" metric mapping. Open the card controls and choose a valid metric for each option.`
1413
+ );
1414
+ continue;
1415
+ }
1416
+ const b = o.match(
1417
+ /^Card '(.+)' binding for control '(.+)' maps to an invalid group-by target\.$/
1418
+ );
1419
+ if (b) {
1420
+ const [, g, c] = b, u = `${g}:${c}:invalid-group-by`;
1421
+ r.has(u) || r.set(
1422
+ u,
1423
+ `"${be(a, g)}" has an invalid "${fe(
1424
+ a,
1425
+ g,
1426
+ c
1427
+ )}" field mapping. Open the card controls and choose a valid field for each option.`
1428
+ );
1429
+ continue;
1430
+ }
1431
+ const f = o.match(
1432
+ /^Card '(.+)' binding for control '(.+)' requires at least one temporal group-by field\.$/
1433
+ );
1434
+ if (f) {
1435
+ const [, g, c] = f, u = `${g}:${c}:missing-temporal-group-by`;
1436
+ r.has(u) || r.set(
1437
+ u,
1438
+ `"${be(a, g)}" can no longer use "${fe(
1439
+ a,
1440
+ g,
1441
+ c
1442
+ )}" for time grain because the card does not currently group by a date field.`
1443
+ );
1444
+ continue;
1445
+ }
1446
+ r.set(o, o);
1447
+ }
1448
+ return Array.from(r.values());
1449
+ }
1450
+ function go({
1451
+ visible: e,
1452
+ onSelect: n
1453
+ }) {
1454
+ return e ? /* @__PURE__ */ i($, { onSelect: n, children: [
1455
+ /* @__PURE__ */ t(Na, { className: "h-3.5 w-3.5" }),
1456
+ "Schedule email report"
1457
+ ] }) : null;
1458
+ }
1459
+ function xo({
1460
+ scheduleReportVisible: e,
1461
+ analyticalBriefingVisible: n,
1462
+ onScheduleReport: a,
1463
+ onCreateAnalyticalBriefing: r
1464
+ }) {
1465
+ return /* @__PURE__ */ i(B, { children: [
1466
+ /* @__PURE__ */ t(
1467
+ go,
1468
+ {
1469
+ visible: e,
1470
+ onSelect: a
1471
+ }
1472
+ ),
1473
+ n ? /* @__PURE__ */ i($, { onSelect: r, children: [
1474
+ /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5" }),
1475
+ "Create analytical briefing"
1476
+ ] }) : null
1477
+ ] });
1478
+ }
1479
+ function vo(e) {
1480
+ var f, g, c;
1481
+ const { saved: n, draft: a, usage: r } = e, o = [], d = Zr(n);
1482
+ for (const [u, s] of Object.entries(r.inputs))
1483
+ !s || !Mt(n, u) || Mt(a, u) || o.push({
1484
+ target: "input",
1485
+ id: u,
1486
+ label: ea(n, d, u),
1487
+ bookmarks: s,
1488
+ remembered: 0
1489
+ });
1490
+ const m = new Set((a.sheets ?? []).map((u) => u.id));
1491
+ for (const u of n.sheets ?? []) {
1492
+ const s = r.sheets[u.id] ?? 0;
1493
+ !s || m.has(u.id) || o.push({
1494
+ target: "sheet",
1495
+ id: u.id,
1496
+ label: ((f = u.title) == null ? void 0 : f.trim()) || "Untitled sheet",
1497
+ bookmarks: s,
1498
+ remembered: 0
1499
+ });
1500
+ }
1501
+ const h = Ht(n), b = Ht(a);
1502
+ for (const [u, s] of Object.entries(r.tables)) {
1503
+ if (!h.has(u)) continue;
1504
+ const x = Te(n, u), v = ((g = x == null ? void 0 : x.title) == null ? void 0 : g.trim()) || "Untitled table";
1505
+ if (!b.has(u)) {
1506
+ o.push({
1507
+ target: "table",
1508
+ id: u,
1509
+ label: v,
1510
+ bookmarks: s.bookmarks,
1511
+ remembered: s.remembered
1512
+ });
1513
+ continue;
1514
+ }
1515
+ const w = x ? Ut(x) : void 0, S = Te(a, u), p = S ? Ut(S) : void 0;
1516
+ if (!(!x || !w || !p))
1517
+ for (const [M, L] of Object.entries(s.columns)) {
1518
+ if (!(L.bookmarks || L.remembered) || Sa(M) || !w.has(M) || p.has(M))
1519
+ continue;
1520
+ const k = ka(x, M), E = ((c = k == null ? void 0 : k.label) == null ? void 0 : c.trim()) || (k == null ? void 0 : k.name);
1521
+ o.push({
1522
+ target: "column",
1523
+ id: M,
1524
+ cardId: u,
1525
+ label: E ? `${E} in ${v}` : `A column in ${v}`,
1526
+ bookmarks: L.bookmarks,
1527
+ remembered: L.remembered
1528
+ });
1529
+ }
1530
+ }
1531
+ return o;
1532
+ }
1533
+ const yo = "dashboard-bookmark-usage";
1534
+ function wo(e) {
1535
+ var b;
1536
+ const n = D((f) => f.viewerStateClient), a = (b = e.saved) == null ? void 0 : b.id, o = Da({
1537
+ // Keyed by the viewer, never by the client object (TanStack drops functions when hashing).
1538
+ queryKey: [yo, (n == null ? void 0 : n.viewerKey) ?? null],
1539
+ queryFn: () => n.bookmarks.usage(),
1540
+ enabled: e.enabled && !!n && !!a,
1541
+ staleTime: 5 * 6e4,
1542
+ retry: !1
1543
+ }).data, { saved: d, draft: m, enabled: h } = e;
1544
+ return H(() => !h || !d || !o ? [] : !o.bookmarks && !Object.keys(o.tables).length ? [] : vo({ saved: d, draft: m, usage: o }), [m, h, d, o]);
1545
+ }
1546
+ function Wt(e, n, a) {
1547
+ return `${e} ${e === 1 ? n : a}`;
1548
+ }
1549
+ function No(e) {
1550
+ const n = [
1551
+ e.bookmarks ? Wt(e.bookmarks, "bookmark", "bookmarks") : null,
1552
+ e.remembered ? Wt(e.remembered, "remembered layout", "remembered layouts") : null
1553
+ ].filter(Boolean).join(", ");
1554
+ return e.target === "sheet" ? { name: `${e.label} sheet`, uses: n } : e.target === "table" ? { name: `${e.label} table`, uses: n } : { name: e.label, uses: n };
1555
+ }
1556
+ function So({
1557
+ saved: e,
1558
+ draft: n,
1559
+ enabled: a
1560
+ }) {
1561
+ const r = wo({ saved: e, draft: n, enabled: a });
1562
+ return r.length ? /* @__PURE__ */ i(ta, { children: [
1563
+ /* @__PURE__ */ t(ra, { asChild: !0, children: /* @__PURE__ */ i(
1564
+ F,
1565
+ {
1566
+ variant: "ghost",
1567
+ size: "xs",
1568
+ className: "gap-1 text-muted-foreground hover:text-foreground",
1569
+ children: [
1570
+ /* @__PURE__ */ t(Ca, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
1571
+ "Affects saved views"
1572
+ ]
1573
+ }
1574
+ ) }),
1575
+ /* @__PURE__ */ i(aa, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
1576
+ /* @__PURE__ */ t("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." }),
1577
+ /* @__PURE__ */ t(
1578
+ "ul",
1579
+ {
1580
+ "aria-label": "Affected saved views",
1581
+ className: "mt-2 grid gap-1 border-t border-border/60 pt-2",
1582
+ children: r.map((o) => {
1583
+ const { name: d, uses: m } = No(o);
1584
+ return /* @__PURE__ */ i(
1585
+ "li",
1586
+ {
1587
+ className: "flex items-baseline justify-between gap-3",
1588
+ children: [
1589
+ /* @__PURE__ */ t("span", { className: "min-w-0 truncate text-foreground", children: d }),
1590
+ /* @__PURE__ */ t("span", { className: "shrink-0 text-[11.5px] text-muted-foreground", children: m })
1591
+ ]
1592
+ },
1593
+ `${o.target}:${o.cardId ?? ""}:${o.id}`
1594
+ );
1595
+ })
1596
+ }
1597
+ )
1598
+ ] })
1599
+ ] }) : null;
1600
+ }
1601
+ function Yt(e, n) {
1602
+ return {
1603
+ dashboard: st(e),
1604
+ semanticExecutionPayload: st(n)
1605
+ };
1606
+ }
1607
+ function Qo() {
1608
+ var kt, Dt, Ct, Et, It;
1609
+ ln(), un();
1610
+ const {
1611
+ authToken: e,
1612
+ tokenProps: n,
1613
+ id: a,
1614
+ showBriefings: r
1615
+ } = Y(), o = Ea(), { isLocalDev: d } = Ia(), {
1616
+ canEditDashboard: m,
1617
+ hasInspectionUser: h,
1618
+ inspectionMessage: b,
1619
+ isInspectionMode: f,
1620
+ isInspectionSurface: g
1621
+ } = Aa(), { openBrandStudioPreview: c } = Ma(), { permissions: u } = Fn(), s = La(), { isLoading: x } = Oa(), v = D((l) => l.theme), w = D((l) => l.isDownloadingPdf), S = D(
1622
+ (l) => l.dashboardAssistantDraftScopeKey
1623
+ ), p = D((l) => l.dashboard), M = D((l) => l.selectedSheetId), L = (kt = p == null ? void 0 : p.sheets) == null ? void 0 : kt.find(
1624
+ (l) => l.id === M
1625
+ ), k = na(L), E = k ? (Dt = L == null ? void 0 : L.document) == null ? void 0 : Dt.page : void 0, I = D(
1626
+ (l) => l.isDashboardEditing
1627
+ ), { setDashboardTitle: J } = D((l) => l.actions), [$e, q] = N(!1), [ne, z] = N(!1), [oe, se] = N(!1), [Fe, ie] = N(!1), [we, X] = N(null), [Ne, Se] = N(!1), [Be, G] = N(!1), [y, T] = N(null), [de, K] = N([]), [ce, Q] = N(!1), [ke, ht] = N(!1), U = D((l) => l.isVisualEditing);
1628
+ Lt((l) => l.card);
1629
+ const wr = Oe(
1630
+ (l) => l.selectedDashboard
1631
+ ), Nr = Oe(
1632
+ (l) => l.initialDashboard
1633
+ );
1634
+ Oe((l) => l.selectedVisual), D((l) => l.selectedFrameId), Lt((l) => l.frame);
1635
+ const pt = D(
1636
+ (l) => l.showDashboardJSON
1637
+ );
1638
+ D((l) => l.onSaveFunction);
1639
+ const { setIsDashboardEditing: ft, setShowDashboardJSON: bt } = D(
1640
+ (l) => l.actions
1641
+ ), { setInitialDashboard: gt, clearSelectedDashboard: Ge } = Oe(
1642
+ (l) => l.actions
1643
+ ), le = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: De } = Pa(Ze.DASHBOARD), { data: Ve } = _a(), Sr = ((Ct = Ve == null ? void 0 : Ve.preference) == null ? void 0 : Ct.defaultDashboardId) || null, { mutate: kr, isPending: Dr } = Ra(), { currentUser: Cr } = ct(), Er = Ua(Cr), V = wr || Nr, Z = Ta({
1644
+ config: n.config,
1645
+ canNavigateDashboardHub: le,
1646
+ canShareDashboard: ((Et = V == null ? void 0 : V.permissions) == null ? void 0 : Et.canShare) === !0,
1647
+ canManageGroups: Er
1648
+ }), xt = V ? {
1649
+ id: V.id,
1650
+ title: (p == null ? void 0 : p.title) || V.title || "Dashboard"
1651
+ } : null, { handleAddNewFrame: Ir } = $a(), [je, He] = N(!1), [Ar, ue] = N(!1), [qe, Ce] = N("close"), me = Fa(Ze.DASHBOARD), [O, he] = N(null), Mr = async (l, P) => {
1652
+ if (!f) {
1653
+ if (!(p != null && p.id)) {
1654
+ console.log("No dashboard ID found");
1655
+ return;
1656
+ }
1657
+ console.log("Updating dashboard title:", {
1658
+ dashboardId: p.id,
1659
+ newTitle: l,
1660
+ previousTitle: P
1661
+ }), me.mutate(
1662
+ {
1663
+ resourceId: p.id,
1664
+ data: { title: l }
1665
+ },
1666
+ {
1667
+ onSuccess: () => {
1668
+ he(
1669
+ (_) => (_ == null ? void 0 : _.dashboard.id) === p.id ? {
1670
+ ..._,
1671
+ dashboard: { ..._.dashboard, title: l }
1672
+ } : _
1673
+ ), C.success("Dashboard title updated");
1674
+ },
1675
+ onError: (_) => {
1676
+ console.error("Failed to update dashboard title:", _), C.error("Failed to update dashboard title");
1677
+ const te = D.getState().dashboard;
1678
+ (te == null ? void 0 : te.id) === p.id && te.title === l && J(P);
1679
+ }
1680
+ }
1681
+ );
1682
+ }
1683
+ };
1684
+ Ue(() => {
1685
+ if (De && De.length > 0) {
1686
+ const l = p == null ? void 0 : p.id;
1687
+ if (l) {
1688
+ const P = De.find(
1689
+ (_) => _.id === l
1690
+ );
1691
+ P && gt(P);
1692
+ }
1693
+ }
1694
+ }, [De, p == null ? void 0 : p.id, gt]);
1695
+ const Lr = n.orgUserId || n.tenantId, ze = H(
1696
+ () => ko({
1697
+ accessToken: e == null ? void 0 : e.accessToken,
1698
+ dashboardId: (p == null ? void 0 : p.id) || a || n.dashboard_id,
1699
+ selectedSheetId: k ? M : void 0,
1700
+ pageSize: E == null ? void 0 : E.size,
1701
+ orientation: E == null ? void 0 : E.orientation,
1702
+ theme: v
1703
+ }),
1704
+ [
1705
+ e == null ? void 0 : e.accessToken,
1706
+ a,
1707
+ p == null ? void 0 : p.id,
1708
+ k,
1709
+ E == null ? void 0 : E.orientation,
1710
+ E == null ? void 0 : E.size,
1711
+ M,
1712
+ v,
1713
+ n.dashboard_id
1714
+ ]
1715
+ ), Ke = I && !U && !f && Lr && m, { setDashboard: Qe } = D((l) => l.actions), vt = D(
1716
+ (l) => l.semanticExecutionPayload
1717
+ ), Or = () => {
1718
+ ft(!0);
1719
+ }, Ee = () => {
1720
+ ft(!1), bt(!1), he(null);
1721
+ };
1722
+ Ue(() => {
1723
+ if (!I) {
1724
+ O && he(null);
1725
+ return;
1726
+ }
1727
+ O || !p || x || he(
1728
+ Yt(
1729
+ p,
1730
+ vt
1731
+ )
1732
+ );
1733
+ }, [
1734
+ p,
1735
+ O,
1736
+ I,
1737
+ x,
1738
+ vt
1739
+ ]);
1740
+ const We = (O == null ? void 0 : O.dashboard) ?? null, { isDirty: Ye, isDirtyPending: Pr, resetDirty: pe } = Dn(
1741
+ p,
1742
+ We,
1743
+ 300,
1744
+ 1e3,
1745
+ Cn
1746
+ ), yt = mn(
1747
+ We,
1748
+ f,
1749
+ m
1750
+ ), wt = Ye || Pr, Ie = je || me.isPending, _r = () => {
1751
+ if (f) {
1752
+ O && Qe(O.dashboard, {
1753
+ semanticExecutionPayload: O.semanticExecutionPayload
1754
+ }), Ee(), pe();
1755
+ return;
1756
+ }
1757
+ yt() ? (Ce("close"), ue(!0)) : (Ee(), pe());
1758
+ }, Rr = async () => {
1759
+ await Je({
1760
+ closeAfterSave: !0,
1761
+ navigateHomeAfterSave: qe === "home"
1762
+ });
1763
+ }, Ur = () => {
1764
+ const l = qe === "home" && !!le;
1765
+ O && Qe(O.dashboard, {
1766
+ semanticExecutionPayload: O.semanticExecutionPayload
1767
+ }), Ee(), l && Ge(), Ce("close"), ue(!1), pe();
1768
+ }, Tr = () => {
1769
+ O && (Qe(O.dashboard, {
1770
+ semanticExecutionPayload: O.semanticExecutionPayload
1771
+ }), pe());
1772
+ }, $r = () => {
1773
+ if (le) {
1774
+ if (I && yt()) {
1775
+ Ce("home"), ue(!0);
1776
+ return;
1777
+ }
1778
+ Ge();
1779
+ }
1780
+ };
1781
+ async function Je(l) {
1782
+ if (f)
1783
+ return;
1784
+ const P = D.getState().dashboard;
1785
+ if (!P)
1786
+ return;
1787
+ const _ = (l == null ? void 0 : l.closeAfterSave) ?? ce, te = (l == null ? void 0 : l.navigateHomeAfterSave) ?? !1;
1788
+ Q(_), _ && ue(!1);
1789
+ const jr = st(P);
1790
+ G(!0), T(null), K([]), He(!0);
1791
+ const Hr = {
1792
+ template: P
1793
+ };
1794
+ me.mutate(
1795
+ {
1796
+ resourceId: P.id,
1797
+ data: Hr
1798
+ },
1799
+ {
1800
+ onSuccess: (R) => {
1801
+ var Ae, Me, At;
1802
+ const W = (R == null ? void 0 : R.id) || ((Ae = R == null ? void 0 : R.dashboard) == null ? void 0 : Ae.id) || ((Me = R == null ? void 0 : R.resource) == null ? void 0 : Me.id) || ((At = R == null ? void 0 : R.template) == null ? void 0 : At.id) || null;
1803
+ if (!P.id && W) {
1804
+ const Xe = ia.getState(), Le = Xe.pendingDashboardDraftMigration;
1805
+ (Le == null ? void 0 : Le.scopeKey) === S ? Xe.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
1806
+ W
1807
+ ) : Le && Xe.actions.clearPendingDashboardDraftMigration();
1808
+ }
1809
+ He(!1), C.success("Dashboard saved!"), he(
1810
+ Yt(
1811
+ jr,
1812
+ D.getState().semanticExecutionPayload
1813
+ )
1814
+ ), G(!1), Q(!1), _ && (Ee(), pe(), te && le && Ge()), Ce("close");
1815
+ },
1816
+ onError: (R) => {
1817
+ He(!1), T("Failed to save dashboard. Please try again.");
1818
+ const W = R.details, Ae = Array.isArray(
1819
+ W == null ? void 0 : W.errors
1820
+ ) ? (W.errors || []).filter(
1821
+ (Me) => typeof Me == "string"
1822
+ ) : [];
1823
+ K(
1824
+ bo({
1825
+ errors: Ae,
1826
+ dashboard: P || void 0
1827
+ })
1828
+ ), C.error("Failed to save dashboard");
1829
+ }
1830
+ }
1831
+ );
1832
+ }
1833
+ const Nt = p.title;
1834
+ me.isPending && console.log("Title during update:", {
1835
+ title: Nt,
1836
+ dashboardStateTitle: p.title,
1837
+ dashboardId: p == null ? void 0 : p.id
1838
+ });
1839
+ const Fr = le && !!(e != null && e.accessToken) && !!(n != null && n.apiServiceUrl), Br = !f && Z.showDashboardHub && Fr, Gr = !f && s && Z.showDashboardHub, j = (p == null ? void 0 : p.id) || null, St = Ba(
1840
+ (It = n.config) == null ? void 0 : It.showBriefings,
1841
+ r
1842
+ ), ee = !!j && Sr === j, Vr = () => {
1843
+ !j || f || kr({
1844
+ dashboardId: ee ? null : j
1845
+ });
1846
+ };
1847
+ return !s && !U ? null : /* @__PURE__ */ i(
1848
+ "div",
1849
+ {
1850
+ className: "flex min-h-11 shrink-0 items-center justify-between gap-2 overflow-x-auto border-b px-4 py-1.5",
1851
+ role: "dashboard-controls",
1852
+ children: [
1853
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
1854
+ Gr && !U && /* @__PURE__ */ t(
1855
+ Tt,
1856
+ {
1857
+ "aria-label": "Dashboard Hub",
1858
+ tooltip: "Dashboard Hub",
1859
+ onClick: $r,
1860
+ className: "h-7 w-7 px-0",
1861
+ buttonProps: { size: "xs" },
1862
+ children: /* @__PURE__ */ t(Ga, { className: "h-3.5 w-3.5" })
1863
+ }
1864
+ ),
1865
+ !U && s && (x ? /* @__PURE__ */ t(
1866
+ "div",
1867
+ {
1868
+ className: "h-4 w-28 animate-pulse rounded-md bg-muted/70",
1869
+ "aria-label": "Loading dashboard title",
1870
+ role: "status",
1871
+ children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Loading dashboard title" })
1872
+ }
1873
+ ) : /* @__PURE__ */ i(B, { children: [
1874
+ /* @__PURE__ */ t(
1875
+ Va,
1876
+ {
1877
+ value: Nt || "Untitled Dashboard",
1878
+ onSave: (l) => {
1879
+ console.log("EditableText onSave called:", {
1880
+ newTitle: l,
1881
+ canEditDashboard: m,
1882
+ dashboardId: p == null ? void 0 : p.id
1883
+ });
1884
+ const P = (p == null ? void 0 : p.title) || "";
1885
+ J(l), Mr(l, P);
1886
+ },
1887
+ isEditable: ja({
1888
+ isDashboardEditing: I,
1889
+ canEditDashboard: m === !0 && !f
1890
+ }),
1891
+ displayClassName: "text-[13px] font-medium",
1892
+ inputClassName: "text-[13px] font-medium",
1893
+ placeholder: "Dashboard Title",
1894
+ isPending: me.isPending
1895
+ }
1896
+ ),
1897
+ Z.showDashboardHub && ee && /* @__PURE__ */ t(
1898
+ "span",
1899
+ {
1900
+ className: "shrink-0 rounded-[4px] border border-border/60 px-1.5 py-px text-[10px] font-medium uppercase tracking-[0.06em] text-muted-foreground",
1901
+ title: "Default dashboard",
1902
+ children: "Default"
1903
+ }
1904
+ ),
1905
+ Br && j && /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ i(Pt, { children: [
1906
+ /* @__PURE__ */ t(_t, { asChild: !0, children: /* @__PURE__ */ t(
1907
+ F,
1908
+ {
1909
+ variant: "ghost",
1910
+ size: "xs",
1911
+ onClick: Vr,
1912
+ disabled: Dr || !(e != null && e.accessToken) || !(n != null && n.apiServiceUrl),
1913
+ className: ge(
1914
+ "w-7 px-0",
1915
+ ee ? "bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary focus-visible:bg-primary/15" : "text-muted-foreground hover:text-foreground"
1916
+ ),
1917
+ "aria-pressed": ee,
1918
+ "aria-label": ee ? "Remove as default dashboard" : "Set as default dashboard",
1919
+ children: /* @__PURE__ */ t(Ha, { className: "h-3.5 w-3.5" })
1920
+ }
1921
+ ) }),
1922
+ /* @__PURE__ */ t(Rt, { children: /* @__PURE__ */ t("p", { children: ee ? "Remove as default dashboard" : "Set as default dashboard" }) })
1923
+ ] }) })
1924
+ ] }))
1925
+ ] }),
1926
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
1927
+ U && /* @__PURE__ */ i(B, { children: [
1928
+ /* @__PURE__ */ t(hn, {}),
1929
+ /* @__PURE__ */ t(pn, {})
1930
+ ] }),
1931
+ !U && s && !f && Z.showDashboardSharing && /* @__PURE__ */ i(
1932
+ F,
1933
+ {
1934
+ variant: "outline",
1935
+ size: "xs",
1936
+ onClick: () => q(!0),
1937
+ children: [
1938
+ /* @__PURE__ */ t(qa, { className: "h-3.5 w-3.5" }),
1939
+ "Share"
1940
+ ]
1941
+ }
1942
+ ),
1943
+ !U && I && !f && u.canUseFilters && s && /* @__PURE__ */ t(fn, {}),
1944
+ I && !U && !f && s && !k && /* @__PURE__ */ i("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
1945
+ /* @__PURE__ */ i(
1946
+ F,
1947
+ {
1948
+ variant: "ghost",
1949
+ size: "xs",
1950
+ disabled: !I,
1951
+ onClick: () => void Ir(),
1952
+ className: "h-full rounded-none border-0 shadow-none hover:bg-accent",
1953
+ children: [
1954
+ /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5" }),
1955
+ "Visual"
1956
+ ]
1957
+ }
1958
+ ),
1959
+ /* @__PURE__ */ i($t, { modal: !1, children: [
1960
+ /* @__PURE__ */ t(Ft, { asChild: !0, children: /* @__PURE__ */ t(
1961
+ F,
1962
+ {
1963
+ variant: "ghost",
1964
+ size: "xs",
1965
+ className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
1966
+ "aria-label": "Open visual options",
1967
+ disabled: !I,
1968
+ children: /* @__PURE__ */ t(dn, { className: "h-3.5 w-3.5" })
1969
+ }
1970
+ ) }),
1971
+ /* @__PURE__ */ t(
1972
+ Bt,
1973
+ {
1974
+ align: "end",
1975
+ className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm",
1976
+ children: /* @__PURE__ */ i($, { onClick: () => ht(!0), children: [
1977
+ /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5" }),
1978
+ "From library..."
1979
+ ] })
1980
+ }
1981
+ )
1982
+ ] }),
1983
+ /* @__PURE__ */ t(
1984
+ bn,
1985
+ {
1986
+ open: ke,
1987
+ onOpenChange: ht
1988
+ }
1989
+ )
1990
+ ] }),
1991
+ !U && !I && (m || f) && (!g || !h || m !== void 0) && s && /* @__PURE__ */ i("div", { className: "inline-flex items-center gap-1", children: [
1992
+ /* @__PURE__ */ i(F, { size: "xs", onClick: Or, children: [
1993
+ /* @__PURE__ */ t(za, { className: "h-3.5 w-3.5" }),
1994
+ f ? "Inspect" : "Edit"
1995
+ ] }),
1996
+ b ? /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ i(Pt, { children: [
1997
+ /* @__PURE__ */ t(_t, { asChild: !0, children: /* @__PURE__ */ t(
1998
+ "button",
1999
+ {
2000
+ type: "button",
2001
+ "aria-label": b,
2002
+ 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",
2003
+ children: /* @__PURE__ */ t(oa, { "aria-hidden": "true", className: "size-3.5" })
2004
+ }
2005
+ ) }),
2006
+ /* @__PURE__ */ t(Rt, { children: /* @__PURE__ */ t("p", { children: b }) })
2007
+ ] }) }) : null
2008
+ ] }),
2009
+ Ke && s && Ye && /* @__PURE__ */ t(
2010
+ So,
2011
+ {
2012
+ saved: We,
2013
+ draft: p,
2014
+ enabled: I && !f
2015
+ }
2016
+ ),
2017
+ Ke && s && Ye && /* @__PURE__ */ i(
2018
+ F,
2019
+ {
2020
+ variant: "outline",
2021
+ size: "xs",
2022
+ onClick: Tr,
2023
+ disabled: Ie,
2024
+ children: [
2025
+ /* @__PURE__ */ t(Ka, { className: "h-3.5 w-3.5" }),
2026
+ "Undo"
2027
+ ]
2028
+ }
2029
+ ),
2030
+ Ke && s && /* @__PURE__ */ i(
2031
+ F,
2032
+ {
2033
+ size: "xs",
2034
+ className: ge(!wt && "opacity-60"),
2035
+ disabled: Ie || !wt,
2036
+ onClick: () => Je(),
2037
+ children: [
2038
+ Ie ? /* @__PURE__ */ t(Re, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(En, { className: "h-3.5 w-3.5" }),
2039
+ Ie ? "Saving..." : "Save"
2040
+ ]
2041
+ }
2042
+ ),
2043
+ I && !U && s && /* @__PURE__ */ i(F, { variant: "outline", size: "xs", onClick: _r, children: [
2044
+ /* @__PURE__ */ t(Qa, { className: "h-3.5 w-3.5" }),
2045
+ "Close"
2046
+ ] }),
2047
+ !U && s && /* @__PURE__ */ t("div", { className: "ml-2 flex items-center", children: /* @__PURE__ */ t(gn, {}) }),
2048
+ !U && d && /* @__PURE__ */ t($n, {}),
2049
+ !U && s && !f && /* @__PURE__ */ i($t, { children: [
2050
+ /* @__PURE__ */ t(Ft, { asChild: !0, children: /* @__PURE__ */ t(
2051
+ Tt,
2052
+ {
2053
+ tooltip: "More Options",
2054
+ className: "w-7 px-0 text-muted-foreground hover:text-foreground",
2055
+ buttonProps: {
2056
+ size: "xs",
2057
+ variant: "ghost",
2058
+ "aria-label": "More dashboard options"
2059
+ },
2060
+ children: /* @__PURE__ */ t(Wa, { className: "h-3.5 w-3.5" })
2061
+ }
2062
+ ) }),
2063
+ /* @__PURE__ */ i(
2064
+ Bt,
2065
+ {
2066
+ align: "end",
2067
+ className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
2068
+ children: [
2069
+ /* @__PURE__ */ t(Pe, { children: "Reports & briefings" }),
2070
+ /* @__PURE__ */ i(
2071
+ $,
2072
+ {
2073
+ disabled: w,
2074
+ onSelect: () => Se(!0),
2075
+ children: [
2076
+ /* @__PURE__ */ t(Ya, { className: "h-3.5 w-3.5" }),
2077
+ "Export"
2078
+ ]
2079
+ }
2080
+ ),
2081
+ /* @__PURE__ */ t(
2082
+ xo,
2083
+ {
2084
+ scheduleReportVisible: !!(St && o.surfaceVisible && j && !I),
2085
+ analyticalBriefingVisible: !!(St && o.surfaceVisible && j && !I),
2086
+ onScheduleReport: () => X("scheduled_report"),
2087
+ onCreateAnalyticalBriefing: () => X("analytical_briefing")
2088
+ }
2089
+ ),
2090
+ I && /* @__PURE__ */ i(
2091
+ $,
2092
+ {
2093
+ onSelect: () => ie(!0),
2094
+ children: [
2095
+ /* @__PURE__ */ t(Ja, { className: "h-3.5 w-3.5" }),
2096
+ "Download settings"
2097
+ ]
2098
+ }
2099
+ ),
2100
+ /* @__PURE__ */ t(et, {}),
2101
+ Z.showGroupManagement && /* @__PURE__ */ i(B, { children: [
2102
+ /* @__PURE__ */ t(Pe, { children: "Access" }),
2103
+ /* @__PURE__ */ i(
2104
+ $,
2105
+ {
2106
+ onClick: () => z(!0),
2107
+ children: [
2108
+ /* @__PURE__ */ t(tr, { className: "h-3.5 w-3.5" }),
2109
+ "Manage Groups"
2110
+ ]
2111
+ }
2112
+ ),
2113
+ /* @__PURE__ */ t(et, {})
2114
+ ] }),
2115
+ /* @__PURE__ */ t(Pe, { children: "Preferences" }),
2116
+ /* @__PURE__ */ i($, { onClick: () => se(!0), children: [
2117
+ /* @__PURE__ */ t(rr, { className: "h-3.5 w-3.5" }),
2118
+ "Report preferences"
2119
+ ] }),
2120
+ d && s && /* @__PURE__ */ i(B, { children: [
2121
+ /* @__PURE__ */ t(et, {}),
2122
+ /* @__PURE__ */ t(Pe, { children: "Developer" }),
2123
+ /* @__PURE__ */ i(
2124
+ $,
2125
+ {
2126
+ onSelect: () => {
2127
+ var l;
2128
+ e != null && e.accessToken && ((l = navigator == null ? void 0 : navigator.clipboard) != null && l.writeText ? navigator.clipboard.writeText(e.accessToken).then(
2129
+ () => C.success("Token copied to clipboard")
2130
+ ).catch(() => C.error("Unable to copy token")) : C.error("Clipboard not available"));
2131
+ },
2132
+ children: [
2133
+ /* @__PURE__ */ t(Gt, { className: "h-3.5 w-3.5" }),
2134
+ "Copy token"
2135
+ ]
2136
+ }
2137
+ ),
2138
+ k && /* @__PURE__ */ i(
2139
+ $,
2140
+ {
2141
+ disabled: !ze,
2142
+ onSelect: () => {
2143
+ var l;
2144
+ if (!ze) {
2145
+ C.error(
2146
+ "Open a document sheet with a token to copy the local PDF URL"
2147
+ );
2148
+ return;
2149
+ }
2150
+ (l = navigator == null ? void 0 : navigator.clipboard) != null && l.writeText ? navigator.clipboard.writeText(ze).then(
2151
+ () => C.success(
2152
+ "Local document PDF URL copied to clipboard"
2153
+ )
2154
+ ).catch(
2155
+ () => C.error(
2156
+ "Unable to copy local document PDF URL"
2157
+ )
2158
+ ) : C.error("Clipboard not available");
2159
+ },
2160
+ children: [
2161
+ /* @__PURE__ */ t(Gt, { className: "h-3.5 w-3.5" }),
2162
+ "Copy local document PDF URL"
2163
+ ]
2164
+ }
2165
+ ),
2166
+ /* @__PURE__ */ i(
2167
+ $,
2168
+ {
2169
+ onSelect: () => sa(n.apiServiceUrl),
2170
+ children: [
2171
+ /* @__PURE__ */ t(On, { className: "h-3.5 w-3.5" }),
2172
+ "Invalidate token"
2173
+ ]
2174
+ }
2175
+ ),
2176
+ /* @__PURE__ */ i($, { onSelect: c, children: [
2177
+ /* @__PURE__ */ t(In, { className: "h-3.5 w-3.5" }),
2178
+ "Brand Studio"
2179
+ ] }),
2180
+ I && /* @__PURE__ */ i(
2181
+ $,
2182
+ {
2183
+ onSelect: () => bt(!pt),
2184
+ children: [
2185
+ /* @__PURE__ */ t(An, { className: "h-3.5 w-3.5" }),
2186
+ pt ? "Hide dashboard JSON" : "Show dashboard JSON"
2187
+ ]
2188
+ }
2189
+ )
2190
+ ] })
2191
+ ]
2192
+ }
2193
+ )
2194
+ ] }),
2195
+ $e && xt && /* @__PURE__ */ t(
2196
+ Xa,
2197
+ {
2198
+ resource: xt,
2199
+ resourceType: Ze.DASHBOARD,
2200
+ onClose: () => q(!1)
2201
+ }
2202
+ ),
2203
+ Z.showGroupManagement && /* @__PURE__ */ t(
2204
+ so,
2205
+ {
2206
+ open: ne,
2207
+ onOpenChange: z
2208
+ }
2209
+ ),
2210
+ /* @__PURE__ */ t(
2211
+ Sn,
2212
+ {
2213
+ open: oe,
2214
+ onOpenChange: se
2215
+ }
2216
+ ),
2217
+ /* @__PURE__ */ t(
2218
+ fo,
2219
+ {
2220
+ open: Fe,
2221
+ onOpenChange: ie
2222
+ }
2223
+ ),
2224
+ j && we ? /* @__PURE__ */ t(
2225
+ xn,
2226
+ {
2227
+ dashboardId: j,
2228
+ dashboardTitle: (p == null ? void 0 : p.title) || (V == null ? void 0 : V.title),
2229
+ open: !0,
2230
+ onOpenChange: (l) => {
2231
+ l || X(null);
2232
+ },
2233
+ hideTrigger: !0,
2234
+ workflowIntent: we
2235
+ }
2236
+ ) : null,
2237
+ s && /* @__PURE__ */ t(
2238
+ Za,
2239
+ {
2240
+ open: Ne,
2241
+ onOpenChange: Se
2242
+ }
2243
+ ),
2244
+ /* @__PURE__ */ t(
2245
+ en,
2246
+ {
2247
+ open: Be,
2248
+ onOpenChange: (l) => {
2249
+ !l && je && !y || (G(l), l || (T(null), K([]), Q(!1)));
2250
+ },
2251
+ children: /* @__PURE__ */ i(tn, { className: "max-w-sm", children: [
2252
+ /* @__PURE__ */ i(rn, { children: [
2253
+ /* @__PURE__ */ t(an, { children: y ? "Save failed" : "Saving dashboard" }),
2254
+ /* @__PURE__ */ t(nn, { className: "pt-2", children: y ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2255
+ de.length > 0 && /* @__PURE__ */ i("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
2256
+ /* @__PURE__ */ t("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
2257
+ /* @__PURE__ */ t("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: de.slice(0, 5).map((l) => /* @__PURE__ */ t("li", { children: l }, l)) })
2258
+ ] })
2259
+ ] }),
2260
+ /* @__PURE__ */ t(on, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: y ? /* @__PURE__ */ i(B, { children: [
2261
+ /* @__PURE__ */ t(
2262
+ sn,
2263
+ {
2264
+ onClick: () => {
2265
+ G(!1), T(null), K([]), Q(!1);
2266
+ },
2267
+ className: "m-0",
2268
+ children: "Close"
2269
+ }
2270
+ ),
2271
+ /* @__PURE__ */ t(
2272
+ Vt,
2273
+ {
2274
+ onClick: () => Je({
2275
+ closeAfterSave: ce,
2276
+ navigateHomeAfterSave: qe === "home"
2277
+ }),
2278
+ className: "m-0",
2279
+ children: "Retry"
2280
+ }
2281
+ )
2282
+ ] }) : /* @__PURE__ */ i(Vt, { disabled: !0, className: "m-0 cursor-default", children: [
2283
+ /* @__PURE__ */ t(Re, { className: "mr-2 h-4 w-4 animate-spin" }),
2284
+ "Saving..."
2285
+ ] }) })
2286
+ ] })
2287
+ }
2288
+ ),
2289
+ /* @__PURE__ */ t(
2290
+ vn,
2291
+ {
2292
+ open: Ar,
2293
+ onOpenChange: (l) => {
2294
+ ue(l);
2295
+ },
2296
+ onSave: Rr,
2297
+ onDiscard: Ur,
2298
+ isSaving: je,
2299
+ saveLabel: "Save",
2300
+ discardLabel: "Discard changes"
2301
+ }
2302
+ )
2303
+ ] })
2304
+ ]
2305
+ }
2306
+ );
2307
+ }
2308
+ function ko({
2309
+ accessToken: e,
2310
+ dashboardId: n,
2311
+ selectedSheetId: a,
2312
+ pageSize: r,
2313
+ orientation: o,
2314
+ theme: d
2315
+ }) {
2316
+ if (!e || !a)
2317
+ return null;
2318
+ const m = new URL("http://localhost:5173/print-document");
2319
+ m.searchParams.set("token", e), n && m.searchParams.set("dashboardId", n), m.searchParams.set("selectedSheetId", a), d && m.searchParams.set("theme", d);
2320
+ const h = new URL("http://127.0.0.1:3002/");
2321
+ return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", o || "portrait"), h.searchParams.set("url", m.toString()), h.toString();
2322
+ }
2323
+ export {
2324
+ Qo as default
2325
+ };