react-semaphor 0.1.569 → 0.1.571
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/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 +570 -432
- package/dist/briefings/index.js +2 -2
- package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
- package/dist/chunks/assistant-chat-SkCraw2C.js +5940 -0
- package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
- package/dist/chunks/brand-BoUV0iHF.js +54 -0
- package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-D-aSYpyr.js} +72 -72
- package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
- package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-B_w_ekUz.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-_g1m2tJ3.js} +183 -182
- package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-CY0gbcCt.js} +285 -280
- package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-DsM79yem.js} +3 -3
- package/dist/chunks/{dates-BsPrWZIP.js → dates-RSEzJ9N7.js} +13 -12
- package/dist/chunks/edit-9df1zOWe.js +226 -0
- package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-cX0FM-4i.js} +2256 -2268
- package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-thzt25Rc.js} +1303 -1226
- package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
- package/dist/chunks/index-BVKzKl5d.js +90 -0
- package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
- package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
- package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
- package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
- package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
- package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
- package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
- package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-B_GXs91t.js} +79 -79
- package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
- package/dist/chunks/resolver-DG_tfEpt.js +156 -0
- package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
- package/dist/chunks/schema-C9NPiIru.js +2568 -0
- package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-CBQamwQY.js} +33931 -34031
- package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-Bkjf0XXw.js} +50 -50
- package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
- package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
- package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
- package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
- package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-DvglU8yj.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +2064 -1946
- package/dist/format-utils/index.js +8 -8
- package/dist/index.js +332 -335
- package/dist/layouts/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- 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/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/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/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 -52
- package/dist/types/lib/types/summary-types.d.ts +0 -5
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
- package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
- 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 +20 -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 +19 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
- package/package.json +6 -3
- 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-Dzf2Mbph.js +0 -8847
- package/dist/chunks/color-CJvdlFM_.js +0 -2162
- package/dist/chunks/index-CLIro-EG.js +0 -425
- package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var d = (e, r, t) => r in e ? c(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var l = (e, r, t) => d(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { ad as u } from "./temporal-input-presentation-
|
|
4
|
+
import { ad as u } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
5
5
|
import "./validators-B8fpdinG.js";
|
|
6
6
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
7
7
|
import { r as v } from "./metric-comparison-n9NsIa-2.js";
|
package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-B_GXs91t.js}
RENAMED
|
@@ -1,19 +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, c as B } from "./
|
|
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-CBQamwQY.js";
|
|
5
|
+
import { j as Na, c as B } from "./pickers-DkqmtnTL.js";
|
|
6
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,
|
|
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
10
|
import "./validators-B8fpdinG.js";
|
|
11
11
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
12
12
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
13
13
|
import { parseValueFormatPreferencesResponse as ja, canonicalizeSupportedLocale as xt, getSupportedCurrencyCodes as $a, canonicalizeSupportedCurrencyCode as Va } from "../value-format-preferences/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { k as Wa } from "./filter-reach-copy-thzt25Rc.js";
|
|
15
15
|
import { a as Ka } from "./report-runtime-context-BhPzLTbS.js";
|
|
16
|
-
import { ah as we, ao as ce } from "./temporal-input-presentation-
|
|
16
|
+
import { ah as we, ao as ce } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
17
17
|
function qa() {
|
|
18
18
|
return /* @__PURE__ */ o(
|
|
19
19
|
"div",
|
|
@@ -32,7 +32,7 @@ function Ga(e) {
|
|
|
32
32
|
)
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Xa(e) {
|
|
36
36
|
var t;
|
|
37
37
|
const a = e == null ? void 0 : e.config;
|
|
38
38
|
return ka({
|
|
@@ -52,25 +52,25 @@ function it(e, a) {
|
|
|
52
52
|
const { name: t, layout: n } = wt(a == null ? void 0 : a.config);
|
|
53
53
|
return { ...qt(n), id: ot, callerKey: e, assistantName: t };
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ja({
|
|
56
56
|
children: e,
|
|
57
57
|
authToken: a
|
|
58
58
|
}) {
|
|
59
59
|
const t = He(), n = ee(
|
|
60
|
-
() => a === void 0 ? t.tokenProps :
|
|
60
|
+
() => a === void 0 ? t.tokenProps : Ya(a),
|
|
61
61
|
[a, t.tokenProps]
|
|
62
62
|
), r = ee(() => Ga(n), [n]), l = ee(
|
|
63
|
-
() =>
|
|
63
|
+
() => Xa(n).available,
|
|
64
64
|
[n]
|
|
65
65
|
), [s, i] = L(() => it(r, n));
|
|
66
66
|
s.callerKey !== r && i(it(r, n)), Qa(s);
|
|
67
67
|
const m = ee(() => ({ instance: s, available: l }), [s, l]);
|
|
68
68
|
return /* @__PURE__ */ o(Kt.Provider, { value: m, children: e });
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
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 });
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ya(e) {
|
|
74
74
|
if (!(e != null && e.accessToken)) return {};
|
|
75
75
|
try {
|
|
76
76
|
return Na(e.accessToken);
|
|
@@ -79,7 +79,7 @@ function Za(e) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function Qa(e) {
|
|
82
|
-
|
|
82
|
+
X(() => {
|
|
83
83
|
const a = (n, r) => {
|
|
84
84
|
const l = e.store.getState().focus;
|
|
85
85
|
l && !er(l, n, r) && e.clearFocus();
|
|
@@ -113,7 +113,7 @@ const sr = {
|
|
|
113
113
|
anchorSlot: null,
|
|
114
114
|
setAnchorSlot: () => {
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, Xe = $t(sr);
|
|
117
117
|
function En() {
|
|
118
118
|
const [e, a] = L("lg"), t = j(null);
|
|
119
119
|
return { measure: K((r) => {
|
|
@@ -126,18 +126,18 @@ function En() {
|
|
|
126
126
|
}, []), width: e };
|
|
127
127
|
}
|
|
128
128
|
function lr() {
|
|
129
|
-
return qe(
|
|
129
|
+
return qe(Xe).width;
|
|
130
130
|
}
|
|
131
131
|
function Nn() {
|
|
132
|
-
return qe(
|
|
132
|
+
return qe(Xe).overflowItems;
|
|
133
133
|
}
|
|
134
134
|
function Tn(e, a, t) {
|
|
135
|
-
const n = qe(
|
|
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);
|
|
136
136
|
c.current = t == null ? void 0 : t.icon;
|
|
137
137
|
const v = j(t == null ? void 0 : t.onSelect);
|
|
138
138
|
v.current = t == null ? void 0 : t.onSelect;
|
|
139
139
|
const f = j(t == null ? void 0 : t.onOpen);
|
|
140
|
-
return f.current = t == null ? void 0 : t.onOpen,
|
|
140
|
+
return f.current = t == null ? void 0 : t.onOpen, X(() => {
|
|
141
141
|
if (!(!r || i === void 0))
|
|
142
142
|
return l({
|
|
143
143
|
id: e,
|
|
@@ -161,7 +161,7 @@ function Tn(e, a, t) {
|
|
|
161
161
|
anchorSlot: n.anchorSlot
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
const or = Ee(() => import("./assistant-chat-
|
|
164
|
+
const or = Ee(() => import("./assistant-chat-SkCraw2C.js"));
|
|
165
165
|
function kn() {
|
|
166
166
|
const e = Ht(), a = lr();
|
|
167
167
|
if (!e.available) return null;
|
|
@@ -191,9 +191,9 @@ const ir = {
|
|
|
191
191
|
"full-page": "absolute inset-0 z-30"
|
|
192
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;
|
|
193
193
|
function ur({ surface: e = "dashboard" } = {}) {
|
|
194
|
-
const a = gt(), { isOpen: t, mounted: n, storedLayout: r, width: l, beside: s, besideSize: i, focusCardId: m, askCount: u } =
|
|
195
|
-
(a == null ? void 0 : a.instance.store) ??
|
|
196
|
-
|
|
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) => {
|
|
197
197
|
var C;
|
|
198
198
|
return {
|
|
199
199
|
isOpen: S.isOpen,
|
|
@@ -410,7 +410,7 @@ function vr({ instance: e, side: a, width: t }) {
|
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
412
|
function br(e) {
|
|
413
|
-
const a =
|
|
413
|
+
const a = Yt();
|
|
414
414
|
return K(
|
|
415
415
|
async (t, n) => {
|
|
416
416
|
const r = U.getState();
|
|
@@ -465,9 +465,9 @@ function yr({
|
|
|
465
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 });
|
|
466
466
|
Ce(() => {
|
|
467
467
|
c.current = { apply: l, onLifecycleEvent: a };
|
|
468
|
-
}),
|
|
468
|
+
}), X(() => {
|
|
469
469
|
e.setScreenState({ eligible: t, ...r ? { dashboardId: r } : {} });
|
|
470
|
-
}, [e, t, r]),
|
|
470
|
+
}, [e, t, r]), X(
|
|
471
471
|
() => U.subscribe((f, w) => {
|
|
472
472
|
if (f.editSessionEpoch !== w.editSessionEpoch) {
|
|
473
473
|
m.current.clear(), i(null);
|
|
@@ -478,7 +478,7 @@ function yr({
|
|
|
478
478
|
S !== f.dashboard && m.current.delete(b);
|
|
479
479
|
}),
|
|
480
480
|
[]
|
|
481
|
-
),
|
|
481
|
+
), X(() => {
|
|
482
482
|
const f = (b) => {
|
|
483
483
|
const S = U.getState().dashboard;
|
|
484
484
|
if (!S || S.id !== b.dashboardId) return;
|
|
@@ -603,9 +603,9 @@ function xe(e) {
|
|
|
603
603
|
function xr() {
|
|
604
604
|
return globalThis.crypto.randomUUID();
|
|
605
605
|
}
|
|
606
|
-
const Cr = Ee(() => import("./dashboard-controls-
|
|
607
|
-
() => import("./edit-dashboard-visual-
|
|
608
|
-
), Er = Ee(() => import("./dashboard-json-
|
|
606
|
+
const Cr = Ee(() => import("./dashboard-controls-CY0gbcCt.js")), Ir = Ee(
|
|
607
|
+
() => import("./edit-dashboard-visual-cX0FM-4i.js")
|
|
608
|
+
), Er = Ee(() => import("./dashboard-json-DsM79yem.js"));
|
|
609
609
|
function An({
|
|
610
610
|
showControls: e = !1,
|
|
611
611
|
showFooter: a = !0,
|
|
@@ -635,7 +635,7 @@ function An({
|
|
|
635
635
|
),
|
|
636
636
|
/* @__PURE__ */ h(ua, { preferences: i, children: [
|
|
637
637
|
l && /* @__PURE__ */ o(Se, { fallback: null, children: /* @__PURE__ */ o(Er, {}) }),
|
|
638
|
-
/* @__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: [
|
|
639
639
|
e && /* @__PURE__ */ o(Se, { fallback: null, children: /* @__PURE__ */ o(Cr, {}) }),
|
|
640
640
|
t && /* @__PURE__ */ o(yr, { port: t, onLifecycleEvent: n.onDashboardLifecycleEvent }),
|
|
641
641
|
/* @__PURE__ */ h("div", { className: "relative flex grow overflow-hidden", children: [
|
|
@@ -664,7 +664,7 @@ function ut(e) {
|
|
|
664
664
|
function Or(e, a, t) {
|
|
665
665
|
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, Be(e, a, ut(e), ut(a), 0, 0, {});
|
|
666
666
|
}
|
|
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),
|
|
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) => {
|
|
668
668
|
let t = se(() => {
|
|
669
669
|
var d, T;
|
|
670
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() } };
|
|
@@ -688,7 +688,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
688
688
|
}
|
|
689
689
|
if (N(7, () => {
|
|
690
690
|
var M;
|
|
691
|
-
t.current.selectedItemId = (M =
|
|
691
|
+
t.current.selectedItemId = (M = J()) == null ? void 0 : M.id, g.emit();
|
|
692
692
|
}), A || N(5, re), ((D = i.current) == null ? void 0 : D.value) !== void 0) {
|
|
693
693
|
let M = T ?? "";
|
|
694
694
|
(W = (O = i.current).onValueChange) == null || W.call(O, M);
|
|
@@ -708,7 +708,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
708
708
|
V(), I(), t.current.value || H(), g.emit();
|
|
709
709
|
}), () => {
|
|
710
710
|
l.current.delete(d), n.current.delete(d), t.current.filtered.items.delete(d);
|
|
711
|
-
let A =
|
|
711
|
+
let A = J();
|
|
712
712
|
N(4, () => {
|
|
713
713
|
V(), (A == null ? void 0 : A.getAttribute("id")) === d && H(), g.emit();
|
|
714
714
|
});
|
|
@@ -768,10 +768,10 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
768
768
|
}
|
|
769
769
|
function re() {
|
|
770
770
|
var d, T, A;
|
|
771
|
-
let x =
|
|
771
|
+
let x = J();
|
|
772
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" }));
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function J() {
|
|
775
775
|
var d;
|
|
776
776
|
return (d = P.current) == null ? void 0 : d.querySelector(`${Nt}[aria-selected="true"]`);
|
|
777
777
|
}
|
|
@@ -785,18 +785,18 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
785
785
|
}
|
|
786
786
|
function Te(d) {
|
|
787
787
|
var T;
|
|
788
|
-
let A =
|
|
788
|
+
let A = J(), x = k(), D = x.findIndex((W) => W === A), O = x[D + d];
|
|
789
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));
|
|
790
790
|
}
|
|
791
|
-
function
|
|
792
|
-
let T =
|
|
791
|
+
function Ze(d) {
|
|
792
|
+
let T = J(), A = T == null ? void 0 : T.closest(fe), x;
|
|
793
793
|
for (; A && !x; ) A = d > 0 ? Kr(A, fe) : qr(A, fe), x = A == null ? void 0 : A.querySelector(ft);
|
|
794
794
|
x ? g.setState("value", x.getAttribute(ne)) : Te(d);
|
|
795
795
|
}
|
|
796
|
-
let
|
|
797
|
-
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);
|
|
798
798
|
}, et = (d) => {
|
|
799
|
-
d.preventDefault(), d.metaKey ? ie(0) : d.altKey ?
|
|
799
|
+
d.preventDefault(), d.metaKey ? ie(0) : d.altKey ? Ze(-1) : Te(-1);
|
|
800
800
|
};
|
|
801
801
|
return p.createElement(Q.div, { ref: a, tabIndex: -1, ...C, "cmdk-root": "", onKeyDown: (d) => {
|
|
802
802
|
var T;
|
|
@@ -826,26 +826,26 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
826
826
|
break;
|
|
827
827
|
}
|
|
828
828
|
case "End": {
|
|
829
|
-
d.preventDefault(),
|
|
829
|
+
d.preventDefault(), Ye();
|
|
830
830
|
break;
|
|
831
831
|
}
|
|
832
832
|
case "Enter": {
|
|
833
833
|
d.preventDefault();
|
|
834
|
-
let x =
|
|
834
|
+
let x = J();
|
|
835
835
|
if (x) {
|
|
836
836
|
let D = new Event(je);
|
|
837
837
|
x.dispatchEvent(D);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
|
-
} }, 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))));
|
|
842
842
|
}), Fr = p.forwardRef((e, a) => {
|
|
843
843
|
var t, n;
|
|
844
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;
|
|
845
845
|
ae(() => {
|
|
846
846
|
if (!u) return i.item(r, s == null ? void 0 : s.id);
|
|
847
847
|
}, [u]);
|
|
848
|
-
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);
|
|
849
849
|
p.useEffect(() => {
|
|
850
850
|
let N = l.current;
|
|
851
851
|
if (!(!N || e.disabled)) return N.addEventListener(je, w), () => N.removeEventListener(je, w);
|
|
@@ -861,22 +861,22 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
861
861
|
let { disabled: S, value: C, onSelect: _, forceMount: z, keywords: F, ...P } = e;
|
|
862
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);
|
|
863
863
|
}), Ur = p.forwardRef((e, a) => {
|
|
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 =
|
|
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);
|
|
865
865
|
ae(() => y.group(s), []), _t(s, i, [e.value, e.heading, m]);
|
|
866
866
|
let v = p.useMemo(() => ({ id: s, forceMount: r }), [r]);
|
|
867
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))));
|
|
868
868
|
}), Mr = p.forwardRef((e, a) => {
|
|
869
|
-
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);
|
|
870
870
|
return !t && !l ? null : p.createElement(Q.div, { ref: he(r, a), ...n, "cmdk-separator": "", role: "separator" });
|
|
871
871
|
}), Br = p.forwardRef((e, a) => {
|
|
872
|
-
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();
|
|
873
873
|
return p.useEffect(() => {
|
|
874
874
|
e.value != null && l.setState("search", e.value);
|
|
875
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) => {
|
|
876
876
|
r || l.setState("search", u.target.value), t == null || t(u.target.value);
|
|
877
877
|
} });
|
|
878
878
|
}), jr = p.forwardRef((e, a) => {
|
|
879
|
-
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();
|
|
880
880
|
return p.useEffect(() => {
|
|
881
881
|
if (s.current && l.current) {
|
|
882
882
|
let u = s.current, y = l.current, c, v = new ResizeObserver(() => {
|
|
@@ -893,7 +893,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', Lr = '[cmdk-group-head
|
|
|
893
893
|
}), $r = p.forwardRef((e, a) => {
|
|
894
894
|
let { open: t, onOpenChange: n, overlayClassName: r, contentClassName: l, container: s, ...i } = e;
|
|
895
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 }))));
|
|
896
|
-
}), 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) => {
|
|
897
897
|
let { progress: t, children: n, label: r = "Loading...", ...l } = e;
|
|
898
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)));
|
|
899
899
|
}), $ = Object.assign(Rt, { List: jr, Item: Fr, Input: Br, Group: Ur, Separator: Mr, Dialog: $r, Empty: Vr, Loading: Wr });
|
|
@@ -922,8 +922,8 @@ function se(e) {
|
|
|
922
922
|
let a = p.useRef();
|
|
923
923
|
return a.current === void 0 && (a.current = e()), a;
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
let a =
|
|
925
|
+
function Y(e) {
|
|
926
|
+
let a = Je(), t = () => e(a.snapshot());
|
|
927
927
|
return p.useSyncExternalStore(a.subscribe, t, t);
|
|
928
928
|
}
|
|
929
929
|
function _t(e, a, t, n = []) {
|
|
@@ -955,7 +955,7 @@ function Gr(e) {
|
|
|
955
955
|
function Ne({ asChild: e, children: a }, t) {
|
|
956
956
|
return e && p.isValidElement(a) ? p.cloneElement(Gr(a), { ref: a.ref }, t(a.props.children)) : t(a);
|
|
957
957
|
}
|
|
958
|
-
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" };
|
|
959
959
|
const Pt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
960
960
|
$,
|
|
961
961
|
{
|
|
@@ -1034,11 +1034,11 @@ const Ve = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
1034
1034
|
}
|
|
1035
1035
|
));
|
|
1036
1036
|
Ve.displayName = $.Item.displayName;
|
|
1037
|
-
function
|
|
1037
|
+
function Jr(e = {}) {
|
|
1038
1038
|
const { authToken: a, tokenProps: t } = He(), n = U(
|
|
1039
1039
|
(N) => N.actions.applyResolvedCalendarPreferences
|
|
1040
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);
|
|
1041
|
-
C.current = l,
|
|
1041
|
+
C.current = l, X(() => {
|
|
1042
1042
|
S(null), w(null), m(!1), y(!1), v(!1);
|
|
1043
1043
|
}, [l]);
|
|
1044
1044
|
const _ = K(async (N) => {
|
|
@@ -1070,7 +1070,7 @@ function Xr(e = {}) {
|
|
|
1070
1070
|
C.current === N && m(!1);
|
|
1071
1071
|
}
|
|
1072
1072
|
}, [l, s, r, _]);
|
|
1073
|
-
|
|
1073
|
+
X(() => {
|
|
1074
1074
|
r && z();
|
|
1075
1075
|
}, [r, z]);
|
|
1076
1076
|
const F = K(
|
|
@@ -1170,7 +1170,7 @@ const Ie = [
|
|
|
1170
1170
|
{ value: 1, label: "Monday" },
|
|
1171
1171
|
{ value: 6, label: "Saturday" }
|
|
1172
1172
|
], mt = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
1173
|
-
function
|
|
1173
|
+
function Zr() {
|
|
1174
1174
|
try {
|
|
1175
1175
|
const e = Intl;
|
|
1176
1176
|
if (e.supportedValuesOf)
|
|
@@ -1179,7 +1179,7 @@ function Yr() {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
return Ie.map((e) => e.value);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function Yr(e) {
|
|
1183
1183
|
if (!e) return "default";
|
|
1184
1184
|
if (e.tz !== e.weekStart) return "inherited";
|
|
1185
1185
|
switch (e.tz) {
|
|
@@ -1214,16 +1214,16 @@ function en({
|
|
|
1214
1214
|
isClearing: l,
|
|
1215
1215
|
updatePreferences: s,
|
|
1216
1216
|
clearPreferences: i
|
|
1217
|
-
} =
|
|
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(
|
|
1218
1218
|
u
|
|
1219
1219
|
), [C, _] = L(
|
|
1220
1220
|
y
|
|
1221
|
-
), [z, F] = L(!1), P = ee(() =>
|
|
1221
|
+
), [z, F] = L(!1), P = ee(() => Zr(), []), N = ee(
|
|
1222
1222
|
() => P.filter(
|
|
1223
1223
|
(k) => !Ie.some((ie) => ie.value === k)
|
|
1224
1224
|
),
|
|
1225
1225
|
[P]
|
|
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 =
|
|
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(
|
|
1227
1227
|
t == null ? void 0 : t.inheritedSources
|
|
1228
1228
|
);
|
|
1229
1229
|
jt.useEffect(() => {
|
|
@@ -1250,7 +1250,7 @@ function en({
|
|
|
1250
1250
|
}) ? (G.success("Preferences saved."), a()) : G.error("Failed to save preferences. Please try again.");
|
|
1251
1251
|
}, V = () => {
|
|
1252
1252
|
a();
|
|
1253
|
-
}, re = r || l,
|
|
1253
|
+
}, re = r || l, J = re || n;
|
|
1254
1254
|
return /* @__PURE__ */ h(te, { children: [
|
|
1255
1255
|
/* @__PURE__ */ h("div", { className: "space-y-4 py-1", children: [
|
|
1256
1256
|
/* @__PURE__ */ h(
|
|
@@ -1470,7 +1470,7 @@ function en({
|
|
|
1470
1470
|
children: "Cancel"
|
|
1471
1471
|
}
|
|
1472
1472
|
),
|
|
1473
|
-
/* @__PURE__ */ o(q, { size: "xs", onClick: H, disabled:
|
|
1473
|
+
/* @__PURE__ */ o(q, { size: "xs", onClick: H, disabled: J, children: re ? /* @__PURE__ */ h(te, { children: [
|
|
1474
1474
|
/* @__PURE__ */ o(St, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
1475
1475
|
"Saving…"
|
|
1476
1476
|
] }) : "Save" })
|
|
@@ -1483,7 +1483,7 @@ function tn(e = {}) {
|
|
|
1483
1483
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, i = j(l);
|
|
1484
1484
|
i.current = l;
|
|
1485
1485
|
const [m, u] = L(null), [y, c] = L(!1), [v, f] = L(!1), [w, b] = L(!1), [S, C] = L(null);
|
|
1486
|
-
|
|
1486
|
+
X(() => {
|
|
1487
1487
|
u(null), C(null), c(!1), f(!1), b(!1);
|
|
1488
1488
|
}, [l]);
|
|
1489
1489
|
const _ = K(async (g) => {
|
|
@@ -1526,7 +1526,7 @@ function tn(e = {}) {
|
|
|
1526
1526
|
i.current === g && c(!1);
|
|
1527
1527
|
}
|
|
1528
1528
|
}, [l, s, r, z]);
|
|
1529
|
-
|
|
1529
|
+
X(() => {
|
|
1530
1530
|
r && F();
|
|
1531
1531
|
}, [r, F]);
|
|
1532
1532
|
const P = K(
|
|
@@ -1652,7 +1652,7 @@ function Le({
|
|
|
1652
1652
|
children: [
|
|
1653
1653
|
/* @__PURE__ */ o(Fe, { id: e, size: "xs", children: /* @__PURE__ */ o(Ue, { children: m }) }),
|
|
1654
1654
|
/* @__PURE__ */ h(Me, { children: [
|
|
1655
|
-
/* @__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: [
|
|
1656
1656
|
/* @__PURE__ */ h("span", { children: [
|
|
1657
1657
|
"Inherited from ",
|
|
1658
1658
|
Ke(r),
|
|
@@ -1663,7 +1663,7 @@ function Le({
|
|
|
1663
1663
|
/* @__PURE__ */ o("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: l[n] })
|
|
1664
1664
|
] }) }),
|
|
1665
1665
|
Bt.map((u) => /* @__PURE__ */ o(
|
|
1666
|
-
|
|
1666
|
+
Z,
|
|
1667
1667
|
{
|
|
1668
1668
|
value: u.value,
|
|
1669
1669
|
className: "[&>span:last-child]:w-full",
|
|
@@ -1775,7 +1775,7 @@ function sn({
|
|
|
1775
1775
|
children: [
|
|
1776
1776
|
/* @__PURE__ */ o(Fe, { id: l, size: "xs", children: /* @__PURE__ */ o(Ue, { children: e.locale === void 0 ? `Inherited · ${a.locale}` : nn(e.locale) }) }),
|
|
1777
1777
|
/* @__PURE__ */ h(Me, { children: [
|
|
1778
|
-
/* @__PURE__ */ h(
|
|
1778
|
+
/* @__PURE__ */ h(Z, { value: "inherit", children: [
|
|
1779
1779
|
"Inherited from ",
|
|
1780
1780
|
Ke(t.locale),
|
|
1781
1781
|
" ·",
|
|
@@ -1784,8 +1784,8 @@ function sn({
|
|
|
1784
1784
|
] }),
|
|
1785
1785
|
e.locale && !We.some(
|
|
1786
1786
|
(I) => I.value === e.locale
|
|
1787
|
-
) && /* @__PURE__ */ o(
|
|
1788
|
-
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: [
|
|
1789
1789
|
I.label,
|
|
1790
1790
|
" — ",
|
|
1791
1791
|
I.value
|
|
@@ -1864,15 +1864,15 @@ function sn({
|
|
|
1864
1864
|
children: [
|
|
1865
1865
|
/* @__PURE__ */ o(Fe, { id: s, size: "xs", children: /* @__PURE__ */ o(Ue, { children: e.defaultCurrency === void 0 ? `Inherited · ${a.defaultCurrency}` : e.defaultCurrency }) }),
|
|
1866
1866
|
/* @__PURE__ */ h(Me, { children: [
|
|
1867
|
-
/* @__PURE__ */ h(
|
|
1867
|
+
/* @__PURE__ */ h(Z, { value: "inherit", children: [
|
|
1868
1868
|
"Inherited from ",
|
|
1869
1869
|
Ke(t.defaultCurrency),
|
|
1870
1870
|
" ·",
|
|
1871
1871
|
" ",
|
|
1872
1872
|
a.defaultCurrency
|
|
1873
1873
|
] }),
|
|
1874
|
-
[...Mt].map((I) => /* @__PURE__ */ o(
|
|
1875
|
-
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))
|
|
1876
1876
|
] })
|
|
1877
1877
|
]
|
|
1878
1878
|
}
|
|
@@ -2077,7 +2077,7 @@ function Rn({
|
|
|
2077
2077
|
] }) });
|
|
2078
2078
|
}
|
|
2079
2079
|
export {
|
|
2080
|
-
|
|
2080
|
+
Ja as A,
|
|
2081
2081
|
Pt as C,
|
|
2082
2082
|
An as D,
|
|
2083
2083
|
Rn as R,
|
|
@@ -2095,9 +2095,9 @@ export {
|
|
|
2095
2095
|
Tn as k,
|
|
2096
2096
|
Nn as l,
|
|
2097
2097
|
lr as m,
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2098
|
+
gr as n,
|
|
2099
|
+
br as o,
|
|
2100
|
+
Xe as p,
|
|
2101
2101
|
rr as t,
|
|
2102
2102
|
En as u
|
|
2103
2103
|
};
|