react-semaphor 0.1.568 → 0.1.570
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/analytics-protocol/index.js +434 -454
- package/dist/appearance/index.js +6 -3
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +572 -436
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
- package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
- package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-DCYD-6Fr.js} +2 -2
- package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
- package/dist/chunks/brand-B4BdpAB_.js +54 -0
- package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-0VvKmRst.js} +992 -991
- package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-PtcDWvkN.js} +252 -253
- package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-DxGIr1vZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-B-quOOOQ.js} +253 -253
- package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-Caodx80b.js} +288 -285
- package/dist/chunks/dashboard-json-Ct-AGDHF.js +66 -0
- package/dist/chunks/{dates-CKO05ino.js → dates-B9mL8BHE.js} +16 -15
- package/dist/chunks/edit-Bpdh_P_a.js +226 -0
- package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-DeDTuYB5.js} +2257 -2270
- package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-BSY33ro5.js} +1440 -1301
- package/dist/chunks/filter-value-text-DvvSNlho.js +146 -0
- package/dist/chunks/index-BVKzKl5d.js +90 -0
- package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
- package/dist/chunks/{index-CPNZW0mu.js → index-y3HUzRNk.js} +76 -77
- package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-8rR-LPTk.js} +1 -1
- package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C1-uTgjR.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
- package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
- package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
- package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
- package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
- package/dist/chunks/{palette-4vf2BEEg.js → palette-a5FCZKFI.js} +1 -1
- package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → pickers-DkqmtnTL.js} +352 -290
- package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.js +55 -0
- package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
- package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Yvhv3WX2.js} +95 -97
- package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-Lkbwycwe.js} +5491 -5683
- package/dist/chunks/resolver-DG_tfEpt.js +156 -0
- package/dist/chunks/{save-D6pHmSSP.js → save-D985VvYp.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-DC_TEd6y.js} +6 -6
- package/dist/chunks/schema-C9NPiIru.js +2568 -0
- package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-ByFvqHEO.js} +35916 -36001
- package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-CjoVaK6J.js} +64 -66
- package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-C0hekXiI.js} +332 -333
- package/dist/chunks/{code-editor-DJNOsgJH.js → style-sheet-parts-C7qGZuH1.js} +2402 -2040
- package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-CP8zSOhj.js} +1 -1
- package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-CqbJjIuu.js} +18 -18
- package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
- package/dist/chunks/{upload-Cf3wXZT8.js → upload-CiGNKJ_0.js} +1 -1
- package/dist/chunks/validators-B8fpdinG.js +3651 -0
- package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-9-huI1h4.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1888 -1826
- package/dist/format-utils/index.js +230 -231
- package/dist/index.js +349 -353
- package/dist/layouts/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/appearance/index.d.ts +1 -0
- package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
- package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
- package/dist/types/components/surfboard/filter/types.d.ts +5 -4
- package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
- package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
- package/dist/types/index.js +9 -9
- package/dist/types/lib/appearance/aliases.d.ts +42 -0
- package/dist/types/lib/appearance/compiler.d.ts +6 -0
- package/dist/types/lib/appearance/defaults.d.ts +6 -0
- package/dist/types/lib/appearance/index.d.ts +2 -0
- package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
- package/dist/types/lib/appearance/resolver.d.ts +2 -2
- package/dist/types/lib/appearance/types.d.ts +38 -1
- package/dist/types/lib/charts/types.d.ts +6 -2
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
- package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
- package/dist/types/lib/download-pdf.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
- package/dist/types/lib/stores/editor-store.d.ts +0 -1
- package/dist/types/lib/stores/table-actions.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
- package/dist/types/lib/types/common-types.d.ts +3 -2
- package/dist/types/lib/types/explorer-types.d.ts +2 -2
- package/dist/types/lib/types/index.d.ts +1 -1
- package/dist/types/lib/types/summary-types.d.ts +0 -5
- package/dist/types/lib/utils/card-definition.d.ts +7 -7
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +72 -72
- package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
- package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
- package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +30 -30
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +344 -1772
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +104 -104
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
- package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
- package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +10 -10
- package/dist/types/shared/temporal/index.d.ts +0 -2
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
- package/package.json +7 -26
- package/DATA_APP_SDK.md +0 -339
- package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
- package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
- package/dist/chunks/assistant-chat-BN5I8KuN.js +0 -8849
- package/dist/chunks/color-CJvdlFM_.js +0 -2162
- package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
- package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
- package/dist/chunks/index-CLIro-EG.js +0 -425
- package/dist/chunks/index-CuHybtft.js +0 -51
- package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
- package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
- package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
- package/dist/chunks/operators-B3zZoskU.js +0 -66
- package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
- package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
- package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
- package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
- package/dist/chunks/validators-wtjw0aw6.js +0 -3332
- package/dist/data-app-sdk/index.js +0 -1412
- package/dist/data-app-sdk-adapters/index.js +0 -361
- package/dist/data-app-sdk-validation/index.js +0 -1031
- package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
- package/dist/types/data-app-sdk/adapters.d.ts +0 -35
- package/dist/types/data-app-sdk/builders.d.ts +0 -62
- package/dist/types/data-app-sdk/contracts.d.ts +0 -419
- package/dist/types/data-app-sdk/executor.d.ts +0 -5
- package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
- package/dist/types/data-app-sdk/hooks.d.ts +0 -11
- package/dist/types/data-app-sdk/index.d.ts +0 -9
- package/dist/types/data-app-sdk/provider.d.ts +0 -8
- package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
- package/dist/types/data-app-sdk/selection.d.ts +0 -2
- package/dist/types/data-app-sdk/validation.d.ts +0 -58
- package/dist/types/data-app-sdk-adapters.d.ts +0 -2
- package/dist/types/data-app-sdk-validation.d.ts +0 -2
- package/dist/types/data-app-sdk.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
- package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
- package/dist/types/shared/temporal/relative-date.d.ts +0 -21
- package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
- package/src/data-app-sdk/README.md +0 -402
package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Yvhv3WX2.js}
RENAMED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { jsx as o, Fragment as te, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import jt, { useMemo as ee, useState as L, useEffect as
|
|
4
|
-
import { b as Wt,
|
|
5
|
-
import { j as Na } from "./
|
|
6
|
-
import { az as Ta } from "./bookmark-state-
|
|
3
|
+
import jt, { useMemo as ee, useState as L, useEffect as X, createContext as $t, useRef as j, useCallback as K, useContext as qe, lazy as Ee, Suspense as Se, useLayoutEffect as Ce, Activity as Vt, useId as de } from "react";
|
|
4
|
+
import { b as Wt, aT as He, b3 as Kt, b4 as qt, u as U, b5 as gt, w as Ht, b6 as Gt, b7 as Xt, b8 as Jt, b9 as Zt, ba as ge, bb as yt, bc as tt, bd as Yt, Y as ye, X as Qt, be as ea, bf as ta, Z as at, _ as aa, bg as ra, E as na, F as sa, S as la, B as oa, a as ia, U as da, bh as ca, D as ua, A as fa, C as ma, bi as ha, bj as pa, bk as va, bl as ba, bm as ga, bn as ya, bo as rt, bp as ke, bq as wa, br as Ge, bs as G, bt as Sa, bu as xa, bv as Ca, bw as Ia, bx as Ea } from "./semaphor-ready-indicator-ByFvqHEO.js";
|
|
5
|
+
import { j as Na, c as B } from "./pickers-DkqmtnTL.js";
|
|
6
|
+
import { az as Ta } from "./bookmark-state-CflS88gq.js";
|
|
7
7
|
import { r as ka, a as wt } from "./availability-Bp5Gfu1I.js";
|
|
8
|
-
import { s as Aa } from "./resolve-dashboard-input-context-
|
|
9
|
-
import { B as q,
|
|
10
|
-
import "./validators-
|
|
11
|
-
import "./matrix-operation-contract-
|
|
8
|
+
import { s as Aa } from "./resolve-dashboard-input-context-Lkbwycwe.js";
|
|
9
|
+
import { B as q, Z as Ra, _ as Da, $ as _a, a0 as Pa, a1 as Oa, a2 as La, a3 as oe, H as Q, a4 as he, s as pe, e as za, f as Fa, h as Ua, j as nt, L as St, y as ze, z as Fe, A as Ue, D as Me, E as Z, T as Ma, k as Ba, l as st, n as lt } from "./style-sheet-parts-C7qGZuH1.js";
|
|
10
|
+
import "./validators-B8fpdinG.js";
|
|
11
|
+
import "./matrix-operation-contract-DCVinw1o.js";
|
|
12
12
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
13
|
-
import "zod";
|
|
14
13
|
import { parseValueFormatPreferencesResponse as ja, canonicalizeSupportedLocale as xt, getSupportedCurrencyCodes as $a, canonicalizeSupportedCurrencyCode as Va } from "../value-format-preferences/index.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { ah as we, ao as ce } from "./temporal-input-presentation--2r9BLr0.js";
|
|
14
|
+
import { k as Wa } from "./filter-reach-copy-BSY33ro5.js";
|
|
15
|
+
import { a as Ka } from "./report-runtime-context-BhPzLTbS.js";
|
|
16
|
+
import { ah as we, ao as ce } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
19
17
|
function qa() {
|
|
20
18
|
return /* @__PURE__ */ o(
|
|
21
19
|
"div",
|
|
@@ -34,7 +32,7 @@ function Ga(e) {
|
|
|
34
32
|
)
|
|
35
33
|
);
|
|
36
34
|
}
|
|
37
|
-
function
|
|
35
|
+
function Xa(e) {
|
|
38
36
|
var t;
|
|
39
37
|
const a = e == null ? void 0 : e.config;
|
|
40
38
|
return ka({
|
|
@@ -54,25 +52,25 @@ function it(e, a) {
|
|
|
54
52
|
const { name: t, layout: n } = wt(a == null ? void 0 : a.config);
|
|
55
53
|
return { ...qt(n), id: ot, callerKey: e, assistantName: t };
|
|
56
54
|
}
|
|
57
|
-
function
|
|
55
|
+
function Ja({
|
|
58
56
|
children: e,
|
|
59
57
|
authToken: a
|
|
60
58
|
}) {
|
|
61
59
|
const t = He(), n = ee(
|
|
62
|
-
() => a === void 0 ? t.tokenProps :
|
|
60
|
+
() => a === void 0 ? t.tokenProps : Ya(a),
|
|
63
61
|
[a, t.tokenProps]
|
|
64
62
|
), r = ee(() => Ga(n), [n]), l = ee(
|
|
65
|
-
() =>
|
|
63
|
+
() => Xa(n).available,
|
|
66
64
|
[n]
|
|
67
65
|
), [s, i] = L(() => it(r, n));
|
|
68
66
|
s.callerKey !== r && i(it(r, n)), Qa(s);
|
|
69
67
|
const m = ee(() => ({ instance: s, available: l }), [s, l]);
|
|
70
68
|
return /* @__PURE__ */ o(Kt.Provider, { value: m, children: e });
|
|
71
69
|
}
|
|
72
|
-
function
|
|
73
|
-
return gt() ? /* @__PURE__ */ o(te, { children: e }) : /* @__PURE__ */ o(
|
|
70
|
+
function Za({ children: e }) {
|
|
71
|
+
return gt() ? /* @__PURE__ */ o(te, { children: e }) : /* @__PURE__ */ o(Ja, { children: e });
|
|
74
72
|
}
|
|
75
|
-
function
|
|
73
|
+
function Ya(e) {
|
|
76
74
|
if (!(e != null && e.accessToken)) return {};
|
|
77
75
|
try {
|
|
78
76
|
return Na(e.accessToken);
|
|
@@ -81,7 +79,7 @@ function Za(e) {
|
|
|
81
79
|
}
|
|
82
80
|
}
|
|
83
81
|
function Qa(e) {
|
|
84
|
-
|
|
82
|
+
X(() => {
|
|
85
83
|
const a = (n, r) => {
|
|
86
84
|
const l = e.store.getState().focus;
|
|
87
85
|
l && !er(l, n, r) && e.clearFocus();
|
|
@@ -115,8 +113,8 @@ const sr = {
|
|
|
115
113
|
anchorSlot: null,
|
|
116
114
|
setAnchorSlot: () => {
|
|
117
115
|
}
|
|
118
|
-
},
|
|
119
|
-
function
|
|
116
|
+
}, Xe = $t(sr);
|
|
117
|
+
function En() {
|
|
120
118
|
const [e, a] = L("lg"), t = j(null);
|
|
121
119
|
return { measure: K((r) => {
|
|
122
120
|
var s;
|
|
@@ -128,18 +126,18 @@ function Tn() {
|
|
|
128
126
|
}, []), width: e };
|
|
129
127
|
}
|
|
130
128
|
function lr() {
|
|
131
|
-
return qe(
|
|
129
|
+
return qe(Xe).width;
|
|
132
130
|
}
|
|
133
|
-
function
|
|
134
|
-
return qe(
|
|
131
|
+
function Nn() {
|
|
132
|
+
return qe(Xe).overflowItems;
|
|
135
133
|
}
|
|
136
|
-
function
|
|
137
|
-
const n = qe(
|
|
134
|
+
function Tn(e, a, t) {
|
|
135
|
+
const n = qe(Xe), r = n.hasOverflowMenu && !nr(a, n.width), { register: l, setOpenOverflowId: s } = n, i = t == null ? void 0 : t.label, m = t == null ? void 0 : t.hint, u = t == null ? void 0 : t.checked, y = (t == null ? void 0 : t.order) ?? 0, c = j(t == null ? void 0 : t.icon);
|
|
138
136
|
c.current = t == null ? void 0 : t.icon;
|
|
139
137
|
const v = j(t == null ? void 0 : t.onSelect);
|
|
140
138
|
v.current = t == null ? void 0 : t.onSelect;
|
|
141
139
|
const f = j(t == null ? void 0 : t.onOpen);
|
|
142
|
-
return f.current = t == null ? void 0 : t.onOpen,
|
|
140
|
+
return f.current = t == null ? void 0 : t.onOpen, X(() => {
|
|
143
141
|
if (!(!r || i === void 0))
|
|
144
142
|
return l({
|
|
145
143
|
id: e,
|
|
@@ -163,8 +161,8 @@ function An(e, a, t) {
|
|
|
163
161
|
anchorSlot: n.anchorSlot
|
|
164
162
|
};
|
|
165
163
|
}
|
|
166
|
-
const or = Ee(() => import("./assistant-chat-
|
|
167
|
-
function
|
|
164
|
+
const or = Ee(() => import("./assistant-chat-B-Ddyy8b.js"));
|
|
165
|
+
function kn() {
|
|
168
166
|
const e = Ht(), a = lr();
|
|
169
167
|
if (!e.available) return null;
|
|
170
168
|
const t = a !== "lg";
|
|
@@ -193,9 +191,9 @@ const ir = {
|
|
|
193
191
|
"full-page": "absolute inset-0 z-30"
|
|
194
192
|
}, dr = "absolute left-0 top-0 z-30 max-h-[var(--assistant-beside-max-h)] max-w-[var(--assistant-beside-max-w)] rounded-card border border-border shadow-lg", cr = 640, me = 8;
|
|
195
193
|
function ur({ surface: e = "dashboard" } = {}) {
|
|
196
|
-
const a = gt(), { isOpen: t, mounted: n, storedLayout: r, width: l, beside: s, besideSize: i, focusCardId: m, askCount: u } =
|
|
197
|
-
(a == null ? void 0 : a.instance.store) ??
|
|
198
|
-
|
|
194
|
+
const a = gt(), { isOpen: t, mounted: n, storedLayout: r, width: l, beside: s, besideSize: i, focusCardId: m, askCount: u } = Xt(
|
|
195
|
+
(a == null ? void 0 : a.instance.store) ?? Zt,
|
|
196
|
+
Jt((S) => {
|
|
199
197
|
var C;
|
|
200
198
|
return {
|
|
201
199
|
isOpen: S.isOpen,
|
|
@@ -412,7 +410,7 @@ function vr({ instance: e, side: a, width: t }) {
|
|
|
412
410
|
);
|
|
413
411
|
}
|
|
414
412
|
function br(e) {
|
|
415
|
-
const a =
|
|
413
|
+
const a = Yt();
|
|
416
414
|
return K(
|
|
417
415
|
async (t, n) => {
|
|
418
416
|
const r = U.getState();
|
|
@@ -467,9 +465,9 @@ function yr({
|
|
|
467
465
|
}), l = br(n), [s, i] = L(null), m = j(/* @__PURE__ */ new Map()), u = j(/* @__PURE__ */ new Map()), y = j(Promise.resolve()), c = j({ apply: l, onLifecycleEvent: a });
|
|
468
466
|
Ce(() => {
|
|
469
467
|
c.current = { apply: l, onLifecycleEvent: a };
|
|
470
|
-
}),
|
|
468
|
+
}), X(() => {
|
|
471
469
|
e.setScreenState({ eligible: t, ...r ? { dashboardId: r } : {} });
|
|
472
|
-
}, [e, t, r]),
|
|
470
|
+
}, [e, t, r]), X(
|
|
473
471
|
() => U.subscribe((f, w) => {
|
|
474
472
|
if (f.editSessionEpoch !== w.editSessionEpoch) {
|
|
475
473
|
m.current.clear(), i(null);
|
|
@@ -480,7 +478,7 @@ function yr({
|
|
|
480
478
|
S !== f.dashboard && m.current.delete(b);
|
|
481
479
|
}),
|
|
482
480
|
[]
|
|
483
|
-
),
|
|
481
|
+
), X(() => {
|
|
484
482
|
const f = (b) => {
|
|
485
483
|
const S = U.getState().dashboard;
|
|
486
484
|
if (!S || S.id !== b.dashboardId) return;
|
|
@@ -605,10 +603,10 @@ function xe(e) {
|
|
|
605
603
|
function xr() {
|
|
606
604
|
return globalThis.crypto.randomUUID();
|
|
607
605
|
}
|
|
608
|
-
const Cr = Ee(() => import("./dashboard-controls-
|
|
609
|
-
() => import("./edit-dashboard-visual-
|
|
610
|
-
), Er = Ee(() => import("./dashboard-json-
|
|
611
|
-
function
|
|
606
|
+
const Cr = Ee(() => import("./dashboard-controls-Caodx80b.js")), Ir = Ee(
|
|
607
|
+
() => import("./edit-dashboard-visual-DeDTuYB5.js")
|
|
608
|
+
), Er = Ee(() => import("./dashboard-json-Ct-AGDHF.js"));
|
|
609
|
+
function An({
|
|
612
610
|
showControls: e = !1,
|
|
613
611
|
showFooter: a = !0,
|
|
614
612
|
liveScreen: t,
|
|
@@ -637,7 +635,7 @@ function Dn({
|
|
|
637
635
|
),
|
|
638
636
|
/* @__PURE__ */ h(ua, { preferences: i, children: [
|
|
639
637
|
l && /* @__PURE__ */ o(Se, { fallback: null, children: /* @__PURE__ */ o(Er, {}) }),
|
|
640
|
-
/* @__PURE__ */ o(fa, { children: /* @__PURE__ */ o(
|
|
638
|
+
/* @__PURE__ */ o(fa, { children: /* @__PURE__ */ o(Za, { children: /* @__PURE__ */ h("main", { className: "relative flex h-full w-full flex-col overflow-hidden", children: [
|
|
641
639
|
e && /* @__PURE__ */ o(Se, { fallback: null, children: /* @__PURE__ */ o(Cr, {}) }),
|
|
642
640
|
t && /* @__PURE__ */ o(yr, { port: t, onLifecycleEvent: n.onDashboardLifecycleEvent }),
|
|
643
641
|
/* @__PURE__ */ h("div", { className: "relative flex grow overflow-hidden", children: [
|
|
@@ -666,7 +664,7 @@ function ut(e) {
|
|
|
666
664
|
function Or(e, a, t) {
|
|
667
665
|
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, Be(e, a, ut(e), ut(a), 0, 0, {});
|
|
668
666
|
}
|
|
669
|
-
var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-heading=""]', Nt = '[cmdk-item=""]', ft = `${Nt}:not([aria-disabled="true"])`, je = "cmdk-item-select", ne = "data-value", zr = (e, a, t) => Or(e, a, t), Tt = p.createContext(void 0), ve = () => p.useContext(Tt), kt = p.createContext(void 0),
|
|
667
|
+
var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-heading=""]', Nt = '[cmdk-item=""]', ft = `${Nt}:not([aria-disabled="true"])`, je = "cmdk-item-select", ne = "data-value", zr = (e, a, t) => Or(e, a, t), Tt = p.createContext(void 0), ve = () => p.useContext(Tt), kt = p.createContext(void 0), Je = () => p.useContext(kt), At = p.createContext(void 0), Rt = p.forwardRef((e, a) => {
|
|
670
668
|
let t = se(() => {
|
|
671
669
|
var d, T;
|
|
672
670
|
return { search: "", value: (T = (d = e.value) != null ? d : e.defaultValue) != null ? T : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
@@ -690,7 +688,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
690
688
|
}
|
|
691
689
|
if (N(7, () => {
|
|
692
690
|
var M;
|
|
693
|
-
t.current.selectedItemId = (M =
|
|
691
|
+
t.current.selectedItemId = (M = J()) == null ? void 0 : M.id, g.emit();
|
|
694
692
|
}), A || N(5, re), ((D = i.current) == null ? void 0 : D.value) !== void 0) {
|
|
695
693
|
let M = T ?? "";
|
|
696
694
|
(W = (O = i.current).onValueChange) == null || W.call(O, M);
|
|
@@ -710,7 +708,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
710
708
|
V(), I(), t.current.value || H(), g.emit();
|
|
711
709
|
}), () => {
|
|
712
710
|
l.current.delete(d), n.current.delete(d), t.current.filtered.items.delete(d);
|
|
713
|
-
let A =
|
|
711
|
+
let A = J();
|
|
714
712
|
N(4, () => {
|
|
715
713
|
V(), (A == null ? void 0 : A.getAttribute("id")) === d && H(), g.emit();
|
|
716
714
|
});
|
|
@@ -770,10 +768,10 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
770
768
|
}
|
|
771
769
|
function re() {
|
|
772
770
|
var d, T, A;
|
|
773
|
-
let x =
|
|
771
|
+
let x = J();
|
|
774
772
|
x && (((d = x.parentElement) == null ? void 0 : d.firstChild) === x && ((A = (T = x.closest(fe)) == null ? void 0 : T.querySelector(Lr)) == null || A.scrollIntoView({ block: "nearest" })), x.scrollIntoView({ block: "nearest" }));
|
|
775
773
|
}
|
|
776
|
-
function
|
|
774
|
+
function J() {
|
|
777
775
|
var d;
|
|
778
776
|
return (d = P.current) == null ? void 0 : d.querySelector(`${Nt}[aria-selected="true"]`);
|
|
779
777
|
}
|
|
@@ -787,18 +785,18 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
787
785
|
}
|
|
788
786
|
function Te(d) {
|
|
789
787
|
var T;
|
|
790
|
-
let A =
|
|
788
|
+
let A = J(), x = k(), D = x.findIndex((W) => W === A), O = x[D + d];
|
|
791
789
|
(T = i.current) != null && T.loop && (O = D + d < 0 ? x[x.length - 1] : D + d === x.length ? x[0] : x[D + d]), O && g.setState("value", O.getAttribute(ne));
|
|
792
790
|
}
|
|
793
|
-
function
|
|
794
|
-
let T =
|
|
791
|
+
function Ze(d) {
|
|
792
|
+
let T = J(), A = T == null ? void 0 : T.closest(fe), x;
|
|
795
793
|
for (; A && !x; ) A = d > 0 ? Kr(A, fe) : qr(A, fe), x = A == null ? void 0 : A.querySelector(ft);
|
|
796
794
|
x ? g.setState("value", x.getAttribute(ne)) : Te(d);
|
|
797
795
|
}
|
|
798
|
-
let
|
|
799
|
-
d.preventDefault(), d.metaKey ?
|
|
796
|
+
let Ye = () => ie(k().length - 1), Qe = (d) => {
|
|
797
|
+
d.preventDefault(), d.metaKey ? Ye() : d.altKey ? Ze(1) : Te(1);
|
|
800
798
|
}, et = (d) => {
|
|
801
|
-
d.preventDefault(), d.metaKey ? ie(0) : d.altKey ?
|
|
799
|
+
d.preventDefault(), d.metaKey ? ie(0) : d.altKey ? Ze(-1) : Te(-1);
|
|
802
800
|
};
|
|
803
801
|
return p.createElement(Q.div, { ref: a, tabIndex: -1, ...C, "cmdk-root": "", onKeyDown: (d) => {
|
|
804
802
|
var T;
|
|
@@ -828,26 +826,26 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
828
826
|
break;
|
|
829
827
|
}
|
|
830
828
|
case "End": {
|
|
831
|
-
d.preventDefault(),
|
|
829
|
+
d.preventDefault(), Ye();
|
|
832
830
|
break;
|
|
833
831
|
}
|
|
834
832
|
case "Enter": {
|
|
835
833
|
d.preventDefault();
|
|
836
|
-
let x =
|
|
834
|
+
let x = J();
|
|
837
835
|
if (x) {
|
|
838
836
|
let D = new Event(je);
|
|
839
837
|
x.dispatchEvent(D);
|
|
840
838
|
}
|
|
841
839
|
}
|
|
842
840
|
}
|
|
843
|
-
} }, p.createElement("label", { "cmdk-label": "", htmlFor: E.inputId, id: E.labelId, style:
|
|
841
|
+
} }, p.createElement("label", { "cmdk-label": "", htmlFor: E.inputId, id: E.labelId, style: Xr }, m), Ne(e, (d) => p.createElement(kt.Provider, { value: g }, p.createElement(Tt.Provider, { value: E }, d))));
|
|
844
842
|
}), Fr = p.forwardRef((e, a) => {
|
|
845
843
|
var t, n;
|
|
846
844
|
let r = oe(), l = p.useRef(null), s = p.useContext(At), i = ve(), m = Dt(e), u = (n = (t = m.current) == null ? void 0 : t.forceMount) != null ? n : s == null ? void 0 : s.forceMount;
|
|
847
845
|
ae(() => {
|
|
848
846
|
if (!u) return i.item(r, s == null ? void 0 : s.id);
|
|
849
847
|
}, [u]);
|
|
850
|
-
let y = _t(r, l, [e.value, e.children, l], e.keywords), c =
|
|
848
|
+
let y = _t(r, l, [e.value, e.children, l], e.keywords), c = Je(), v = Y((N) => N.value && N.value === y.current), f = Y((N) => u || i.filter() === !1 ? !0 : N.search ? N.filtered.items.get(r) > 0 : !0);
|
|
851
849
|
p.useEffect(() => {
|
|
852
850
|
let N = l.current;
|
|
853
851
|
if (!(!N || e.disabled)) return N.addEventListener(je, w), () => N.removeEventListener(je, w);
|
|
@@ -863,22 +861,22 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
863
861
|
let { disabled: S, value: C, onSelect: _, forceMount: z, keywords: F, ...P } = e;
|
|
864
862
|
return p.createElement(Q.div, { ref: he(l, a), ...P, id: r, "cmdk-item": "", role: "option", "aria-disabled": !!S, "aria-selected": !!v, "data-disabled": !!S, "data-selected": !!v, onPointerMove: S || i.getDisablePointerSelection() ? void 0 : b, onClick: S ? void 0 : w }, e.children);
|
|
865
863
|
}), Ur = p.forwardRef((e, a) => {
|
|
866
|
-
let { heading: t, children: n, forceMount: r, ...l } = e, s = oe(), i = p.useRef(null), m = p.useRef(null), u = oe(), y = ve(), c =
|
|
864
|
+
let { heading: t, children: n, forceMount: r, ...l } = e, s = oe(), i = p.useRef(null), m = p.useRef(null), u = oe(), y = ve(), c = Y((f) => r || y.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(s) : !0);
|
|
867
865
|
ae(() => y.group(s), []), _t(s, i, [e.value, e.heading, m]);
|
|
868
866
|
let v = p.useMemo(() => ({ id: s, forceMount: r }), [r]);
|
|
869
867
|
return p.createElement(Q.div, { ref: he(i, a), ...l, "cmdk-group": "", role: "presentation", hidden: c ? void 0 : !0 }, t && p.createElement("div", { ref: m, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, t), Ne(e, (f) => p.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? u : void 0 }, p.createElement(At.Provider, { value: v }, f))));
|
|
870
868
|
}), Mr = p.forwardRef((e, a) => {
|
|
871
|
-
let { alwaysRender: t, ...n } = e, r = p.useRef(null), l =
|
|
869
|
+
let { alwaysRender: t, ...n } = e, r = p.useRef(null), l = Y((s) => !s.search);
|
|
872
870
|
return !t && !l ? null : p.createElement(Q.div, { ref: he(r, a), ...n, "cmdk-separator": "", role: "separator" });
|
|
873
871
|
}), Br = p.forwardRef((e, a) => {
|
|
874
|
-
let { onValueChange: t, ...n } = e, r = e.value != null, l =
|
|
872
|
+
let { onValueChange: t, ...n } = e, r = e.value != null, l = Je(), s = Y((u) => u.search), i = Y((u) => u.selectedItemId), m = ve();
|
|
875
873
|
return p.useEffect(() => {
|
|
876
874
|
e.value != null && l.setState("search", e.value);
|
|
877
875
|
}, [e.value]), p.createElement(Q.input, { ref: a, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": m.listId, "aria-labelledby": m.labelId, "aria-activedescendant": i, id: m.inputId, type: "text", value: r ? e.value : s, onChange: (u) => {
|
|
878
876
|
r || l.setState("search", u.target.value), t == null || t(u.target.value);
|
|
879
877
|
} });
|
|
880
878
|
}), jr = p.forwardRef((e, a) => {
|
|
881
|
-
let { children: t, label: n = "Suggestions", ...r } = e, l = p.useRef(null), s = p.useRef(null), i =
|
|
879
|
+
let { children: t, label: n = "Suggestions", ...r } = e, l = p.useRef(null), s = p.useRef(null), i = Y((u) => u.selectedItemId), m = ve();
|
|
882
880
|
return p.useEffect(() => {
|
|
883
881
|
if (s.current && l.current) {
|
|
884
882
|
let u = s.current, y = l.current, c, v = new ResizeObserver(() => {
|
|
@@ -895,7 +893,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
895
893
|
}), $r = p.forwardRef((e, a) => {
|
|
896
894
|
let { open: t, onOpenChange: n, overlayClassName: r, contentClassName: l, container: s, ...i } = e;
|
|
897
895
|
return p.createElement(ha, { open: t, onOpenChange: n }, p.createElement(pa, { container: s }, p.createElement(va, { "cmdk-overlay": "", className: r }), p.createElement(ba, { "aria-label": e.label, "cmdk-dialog": "", className: l }, p.createElement(Rt, { ref: a, ...i }))));
|
|
898
|
-
}), Vr = p.forwardRef((e, a) =>
|
|
896
|
+
}), Vr = p.forwardRef((e, a) => Y((t) => t.filtered.count === 0) ? p.createElement(Q.div, { ref: a, ...e, "cmdk-empty": "", role: "presentation" }) : null), Wr = p.forwardRef((e, a) => {
|
|
899
897
|
let { progress: t, children: n, label: r = "Loading...", ...l } = e;
|
|
900
898
|
return p.createElement(Q.div, { ref: a, ...l, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": r }, Ne(e, (s) => p.createElement("div", { "aria-hidden": !0 }, s)));
|
|
901
899
|
}), $ = Object.assign(Rt, { List: jr, Item: Fr, Input: Br, Group: Ur, Separator: Mr, Dialog: $r, Empty: Vr, Loading: Wr });
|
|
@@ -924,8 +922,8 @@ function se(e) {
|
|
|
924
922
|
let a = p.useRef();
|
|
925
923
|
return a.current === void 0 && (a.current = e()), a;
|
|
926
924
|
}
|
|
927
|
-
function
|
|
928
|
-
let a =
|
|
925
|
+
function Y(e) {
|
|
926
|
+
let a = Je(), t = () => e(a.snapshot());
|
|
929
927
|
return p.useSyncExternalStore(a.subscribe, t, t);
|
|
930
928
|
}
|
|
931
929
|
function _t(e, a, t, n = []) {
|
|
@@ -957,7 +955,7 @@ function Gr(e) {
|
|
|
957
955
|
function Ne({ asChild: e, children: a }, t) {
|
|
958
956
|
return e && p.isValidElement(a) ? p.cloneElement(Gr(a), { ref: a.ref }, t(a.props.children)) : t(a);
|
|
959
957
|
}
|
|
960
|
-
var
|
|
958
|
+
var Xr = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
961
959
|
const Pt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
962
960
|
$,
|
|
963
961
|
{
|
|
@@ -1036,11 +1034,11 @@ const Ve = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
1036
1034
|
}
|
|
1037
1035
|
));
|
|
1038
1036
|
Ve.displayName = $.Item.displayName;
|
|
1039
|
-
function
|
|
1037
|
+
function Jr(e = {}) {
|
|
1040
1038
|
const { authToken: a, tokenProps: t } = He(), n = U(
|
|
1041
1039
|
(N) => N.actions.applyResolvedCalendarPreferences
|
|
1042
1040
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [i, m] = L(!1), [u, y] = L(!1), [c, v] = L(!1), [f, w] = L(null), [b, S] = L(null), C = j(l);
|
|
1043
|
-
C.current = l,
|
|
1041
|
+
C.current = l, X(() => {
|
|
1044
1042
|
S(null), w(null), m(!1), y(!1), v(!1);
|
|
1045
1043
|
}, [l]);
|
|
1046
1044
|
const _ = K(async (N) => {
|
|
@@ -1072,7 +1070,7 @@ function Xr(e = {}) {
|
|
|
1072
1070
|
C.current === N && m(!1);
|
|
1073
1071
|
}
|
|
1074
1072
|
}, [l, s, r, _]);
|
|
1075
|
-
|
|
1073
|
+
X(() => {
|
|
1076
1074
|
r && z();
|
|
1077
1075
|
}, [r, z]);
|
|
1078
1076
|
const F = K(
|
|
@@ -1172,7 +1170,7 @@ const Ie = [
|
|
|
1172
1170
|
{ value: 1, label: "Monday" },
|
|
1173
1171
|
{ value: 6, label: "Saturday" }
|
|
1174
1172
|
], mt = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
1175
|
-
function
|
|
1173
|
+
function Zr() {
|
|
1176
1174
|
try {
|
|
1177
1175
|
const e = Intl;
|
|
1178
1176
|
if (e.supportedValuesOf)
|
|
@@ -1181,7 +1179,7 @@ function Yr() {
|
|
|
1181
1179
|
}
|
|
1182
1180
|
return Ie.map((e) => e.value);
|
|
1183
1181
|
}
|
|
1184
|
-
function
|
|
1182
|
+
function Yr(e) {
|
|
1185
1183
|
if (!e) return "default";
|
|
1186
1184
|
if (e.tz !== e.weekStart) return "inherited";
|
|
1187
1185
|
switch (e.tz) {
|
|
@@ -1216,16 +1214,16 @@ function en({
|
|
|
1216
1214
|
isClearing: l,
|
|
1217
1215
|
updatePreferences: s,
|
|
1218
1216
|
clearPreferences: i
|
|
1219
|
-
} =
|
|
1217
|
+
} = Jr({ enabled: e }), m = ya(), u = (t == null ? void 0 : t.resolved.tz) || (m == null ? void 0 : m.tz) || "UTC", y = (t == null ? void 0 : t.resolved.weekStart) ?? (m == null ? void 0 : m.weekStart) ?? 1, [c, v] = L((t == null ? void 0 : t.stored) === null), [f, w] = L(!1), [b, S] = L(
|
|
1220
1218
|
u
|
|
1221
1219
|
), [C, _] = L(
|
|
1222
1220
|
y
|
|
1223
|
-
), [z, F] = L(!1), P = ee(() =>
|
|
1221
|
+
), [z, F] = L(!1), P = ee(() => Zr(), []), N = ee(
|
|
1224
1222
|
() => P.filter(
|
|
1225
1223
|
(k) => !Ie.some((ie) => ie.value === k)
|
|
1226
1224
|
),
|
|
1227
1225
|
[P]
|
|
1228
|
-
), g = ee(() => ht(b), [b]), E = t != null && t.inherited ? ht(t.inherited.tz) : "UTC", R = t != null && t.inherited ? Qr(t.inherited.weekStart) : "Monday", I =
|
|
1226
|
+
), g = ee(() => ht(b), [b]), E = t != null && t.inherited ? ht(t.inherited.tz) : "UTC", R = t != null && t.inherited ? Qr(t.inherited.weekStart) : "Monday", I = Yr(
|
|
1229
1227
|
t == null ? void 0 : t.inheritedSources
|
|
1230
1228
|
);
|
|
1231
1229
|
jt.useEffect(() => {
|
|
@@ -1252,7 +1250,7 @@ function en({
|
|
|
1252
1250
|
}) ? (G.success("Preferences saved."), a()) : G.error("Failed to save preferences. Please try again.");
|
|
1253
1251
|
}, V = () => {
|
|
1254
1252
|
a();
|
|
1255
|
-
}, re = r || l,
|
|
1253
|
+
}, re = r || l, J = re || n;
|
|
1256
1254
|
return /* @__PURE__ */ h(te, { children: [
|
|
1257
1255
|
/* @__PURE__ */ h("div", { className: "space-y-4 py-1", children: [
|
|
1258
1256
|
/* @__PURE__ */ h(
|
|
@@ -1472,7 +1470,7 @@ function en({
|
|
|
1472
1470
|
children: "Cancel"
|
|
1473
1471
|
}
|
|
1474
1472
|
),
|
|
1475
|
-
/* @__PURE__ */ o(q, { size: "xs", onClick: H, disabled:
|
|
1473
|
+
/* @__PURE__ */ o(q, { size: "xs", onClick: H, disabled: J, children: re ? /* @__PURE__ */ h(te, { children: [
|
|
1476
1474
|
/* @__PURE__ */ o(St, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
1477
1475
|
"Saving…"
|
|
1478
1476
|
] }) : "Save" })
|
|
@@ -1485,7 +1483,7 @@ function tn(e = {}) {
|
|
|
1485
1483
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, i = j(l);
|
|
1486
1484
|
i.current = l;
|
|
1487
1485
|
const [m, u] = L(null), [y, c] = L(!1), [v, f] = L(!1), [w, b] = L(!1), [S, C] = L(null);
|
|
1488
|
-
|
|
1486
|
+
X(() => {
|
|
1489
1487
|
u(null), C(null), c(!1), f(!1), b(!1);
|
|
1490
1488
|
}, [l]);
|
|
1491
1489
|
const _ = K(async (g) => {
|
|
@@ -1528,7 +1526,7 @@ function tn(e = {}) {
|
|
|
1528
1526
|
i.current === g && c(!1);
|
|
1529
1527
|
}
|
|
1530
1528
|
}, [l, s, r, z]);
|
|
1531
|
-
|
|
1529
|
+
X(() => {
|
|
1532
1530
|
r && F();
|
|
1533
1531
|
}, [r, F]);
|
|
1534
1532
|
const P = K(
|
|
@@ -1654,7 +1652,7 @@ function Le({
|
|
|
1654
1652
|
children: [
|
|
1655
1653
|
/* @__PURE__ */ o(Fe, { id: e, size: "xs", children: /* @__PURE__ */ o(Ue, { children: m }) }),
|
|
1656
1654
|
/* @__PURE__ */ h(Me, { children: [
|
|
1657
|
-
/* @__PURE__ */ o(
|
|
1655
|
+
/* @__PURE__ */ o(Z, { value: "inherit", className: "[&>span:last-child]:w-full", children: /* @__PURE__ */ h("span", { className: "flex w-full min-w-0 items-center justify-between gap-4", children: [
|
|
1658
1656
|
/* @__PURE__ */ h("span", { children: [
|
|
1659
1657
|
"Inherited from ",
|
|
1660
1658
|
Ke(r),
|
|
@@ -1665,7 +1663,7 @@ function Le({
|
|
|
1665
1663
|
/* @__PURE__ */ o("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: l[n] })
|
|
1666
1664
|
] }) }),
|
|
1667
1665
|
Bt.map((u) => /* @__PURE__ */ o(
|
|
1668
|
-
|
|
1666
|
+
Z,
|
|
1669
1667
|
{
|
|
1670
1668
|
value: u.value,
|
|
1671
1669
|
className: "[&>span:last-child]:w-full",
|
|
@@ -1777,7 +1775,7 @@ function sn({
|
|
|
1777
1775
|
children: [
|
|
1778
1776
|
/* @__PURE__ */ o(Fe, { id: l, size: "xs", children: /* @__PURE__ */ o(Ue, { children: e.locale === void 0 ? `Inherited · ${a.locale}` : nn(e.locale) }) }),
|
|
1779
1777
|
/* @__PURE__ */ h(Me, { children: [
|
|
1780
|
-
/* @__PURE__ */ h(
|
|
1778
|
+
/* @__PURE__ */ h(Z, { value: "inherit", children: [
|
|
1781
1779
|
"Inherited from ",
|
|
1782
1780
|
Ke(t.locale),
|
|
1783
1781
|
" ·",
|
|
@@ -1786,8 +1784,8 @@ function sn({
|
|
|
1786
1784
|
] }),
|
|
1787
1785
|
e.locale && !We.some(
|
|
1788
1786
|
(I) => I.value === e.locale
|
|
1789
|
-
) && /* @__PURE__ */ o(
|
|
1790
|
-
We.map((I) => /* @__PURE__ */ h(
|
|
1787
|
+
) && /* @__PURE__ */ o(Z, { value: e.locale, children: e.locale }),
|
|
1788
|
+
We.map((I) => /* @__PURE__ */ h(Z, { value: I.value, children: [
|
|
1791
1789
|
I.label,
|
|
1792
1790
|
" — ",
|
|
1793
1791
|
I.value
|
|
@@ -1866,15 +1864,15 @@ function sn({
|
|
|
1866
1864
|
children: [
|
|
1867
1865
|
/* @__PURE__ */ o(Fe, { id: s, size: "xs", children: /* @__PURE__ */ o(Ue, { children: e.defaultCurrency === void 0 ? `Inherited · ${a.defaultCurrency}` : e.defaultCurrency }) }),
|
|
1868
1866
|
/* @__PURE__ */ h(Me, { children: [
|
|
1869
|
-
/* @__PURE__ */ h(
|
|
1867
|
+
/* @__PURE__ */ h(Z, { value: "inherit", children: [
|
|
1870
1868
|
"Inherited from ",
|
|
1871
1869
|
Ke(t.defaultCurrency),
|
|
1872
1870
|
" ·",
|
|
1873
1871
|
" ",
|
|
1874
1872
|
a.defaultCurrency
|
|
1875
1873
|
] }),
|
|
1876
|
-
[...Mt].map((I) => /* @__PURE__ */ o(
|
|
1877
|
-
rn.map((I) => /* @__PURE__ */ o(
|
|
1874
|
+
[...Mt].map((I) => /* @__PURE__ */ o(Z, { value: I, children: I }, I)),
|
|
1875
|
+
rn.map((I) => /* @__PURE__ */ o(Z, { value: I, children: I }, I))
|
|
1878
1876
|
] })
|
|
1879
1877
|
]
|
|
1880
1878
|
}
|
|
@@ -2046,7 +2044,7 @@ function dn({
|
|
|
2046
2044
|
] })
|
|
2047
2045
|
] });
|
|
2048
2046
|
}
|
|
2049
|
-
function
|
|
2047
|
+
function Rn({
|
|
2050
2048
|
open: e,
|
|
2051
2049
|
onOpenChange: a
|
|
2052
2050
|
}) {
|
|
@@ -2079,10 +2077,10 @@ function _n({
|
|
|
2079
2077
|
] }) });
|
|
2080
2078
|
}
|
|
2081
2079
|
export {
|
|
2082
|
-
|
|
2080
|
+
Ja as A,
|
|
2083
2081
|
Pt as C,
|
|
2084
|
-
|
|
2085
|
-
|
|
2082
|
+
An as D,
|
|
2083
|
+
Rn as R,
|
|
2086
2084
|
ar as T,
|
|
2087
2085
|
sn as a,
|
|
2088
2086
|
Ot as b,
|
|
@@ -2091,15 +2089,15 @@ export {
|
|
|
2091
2089
|
$e as e,
|
|
2092
2090
|
Ve as f,
|
|
2093
2091
|
ur as g,
|
|
2094
|
-
|
|
2092
|
+
kn as h,
|
|
2095
2093
|
tr as i,
|
|
2096
2094
|
nr as j,
|
|
2097
|
-
|
|
2098
|
-
|
|
2095
|
+
Tn as k,
|
|
2096
|
+
Nn as l,
|
|
2099
2097
|
lr as m,
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2098
|
+
gr as n,
|
|
2099
|
+
br as o,
|
|
2100
|
+
Xe as p,
|
|
2103
2101
|
rr as t,
|
|
2104
|
-
|
|
2102
|
+
En as u
|
|
2105
2103
|
};
|
package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as g } from "./validators-B8fpdinG.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|