react-semaphor 0.1.545 → 0.1.546
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/analytics-protocol/index.js +405 -442
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +100 -76
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +6 -6
- package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
- package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
- package/dist/chunks/{assistant-chat-D7sWTypJ.js → assistant-chat-BPXhulAx.js} +2826 -2595
- package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
- package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
- package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
- package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
- package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
- package/dist/chunks/{dashboard-B1tMju0u.js → dashboard-C3CoKbGY.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
- package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
- package/dist/chunks/{dashboard-json-CoYRPqxx.js → dashboard-json-BrjxIiRt.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-BesAHZvB.js → document-dashboard-inputs-CRVHpIHp.js} +872 -974
- package/dist/chunks/{edit-dashboard-visual-JPtNfJRb.js → edit-dashboard-visual-DYYYDjY6.js} +2361 -2447
- package/dist/chunks/{filter-value-text-ff7osJr7.js → filter-value-text-Ddf55Ku1.js} +9 -9
- package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
- package/dist/chunks/index-CtoK1Lgu.js +586 -0
- package/dist/chunks/{index-DRWiuqyd.js → index-DkQkMKa1.js} +80 -79
- package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
- package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
- package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
- package/dist/chunks/{matrix-formatter-DnCyRXJE.js → matrix-formatter-DWEeC0_c.js} +44 -44
- package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
- package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
- package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
- package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-C3mUgnEx.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
- package/dist/chunks/{report-preferences-dialog-DUtuUL_5.js → report-preferences-dialog-4QEZWe5U.js} +111 -112
- package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
- package/dist/chunks/{saved-dashboard-context-LrF_kW0l.js → saved-dashboard-context-D_I3Lxk0.js} +34 -34
- package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
- package/dist/chunks/{semaphor-ready-indicator-BxF96Yhv.js → semaphor-ready-indicator-4zpRHE-X.js} +45823 -47304
- package/dist/chunks/{shelf-drop-preview-context-CNaM_Gmh.js → shelf-drop-preview-context-Cfw7TRAx.js} +84 -84
- package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
- package/dist/chunks/{switch-uDtPgQlQ.js → switch-CEBOR4n7.js} +3 -3
- package/dist/chunks/{table-export-sheet-YzMioA7Y.js → table-export-sheet-4X9mAG3V.js} +1 -1
- package/dist/chunks/table-settings-CunhoDUi.js +605 -0
- package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
- package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CjB7ig1o.js → use-create-flow-overlay-state-DZBZiiD-.js} +101 -101
- package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
- package/dist/chunks/{relative-date-label-Bk2j94pA.js → zoned-wall-clock-MulfA26h.js} +64 -21
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1802 -1149
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +14 -14
- package/dist/format-utils/index.js +133 -133
- package/dist/index.js +192 -186
- package/dist/layouts/index.js +5 -242
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/shared/index.js +4 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +2 -0
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +125 -6
- package/dist/types/lib/types/common-types.d.ts +8 -0
- package/dist/types/lib/types/explorer-types.d.ts +10 -0
- package/dist/types/lib/types/semantic-types.d.ts +84 -0
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
- package/dist/types/lib/utils/card-type-change.d.ts +16 -0
- package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
- package/dist/types/lib/utils/field-placement.d.ts +96 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
- package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
- package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
- package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
- package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
- package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +24 -14
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +18 -2
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
- package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
- package/dist/types/shared/layouts/engine/index.d.ts +4 -0
- package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
- package/dist/types/shared/layouts/engine/types.d.ts +125 -0
- package/dist/types/shared/layouts/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/chunks/apply-dashboard-operations-CZEMsx8E.js +0 -2080
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +0 -410
- package/dist/chunks/comparison-window-caption-D4E6IHPD.js +0 -1624
- package/dist/chunks/custom-visual-inputs-DLCD9Y5V.js +0 -329
- package/dist/chunks/dashboard-briefing-launcher-CePgIu0Z.js +0 -3720
- package/dist/chunks/dashboard-controls-Cq05n3e0.js +0 -2315
- package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
- package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
- package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
- package/dist/chunks/numeric-presentation-7X_IrD58.js +0 -5226
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +0 -9415
- package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
- package/dist/chunks/table-settings-CLZocegs.js +0 -501
- package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
- package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
- package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
- package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Ne = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var L = (e, n, t) => Ne(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { r as ae, q as se, j as Re } from "./temporal-bucket-
|
|
5
|
-
import {
|
|
4
|
+
import { r as ae, q as se, j as Re } from "./temporal-bucket-CQOSbv9-.js";
|
|
5
|
+
import { Y as J, ab as Be, o as Me } from "./validators-C-aOQlTB.js";
|
|
6
6
|
import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
|
|
7
7
|
import { z as y } from "zod";
|
|
8
|
-
import {
|
|
9
|
-
import { af as je, ah as qe,
|
|
10
|
-
import "./analytics-base-schemas-
|
|
8
|
+
import { I as Pe, q as ze, o as Ve, P as B } from "./pivot-result-lifecycle-pwq3b7LC.js";
|
|
9
|
+
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-D6vYkZK4.js";
|
|
10
|
+
import "./analytics-base-schemas-BKs3flFS.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { r as He } from "./rendered-file-D8xEuVVx.js";
|
|
13
|
-
import {
|
|
14
|
-
import { r as Je } from "./matrix-card-
|
|
15
|
-
import {
|
|
16
|
-
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-
|
|
13
|
+
import { cI as Ge, cJ as We, cK as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-9d6m9-FE.js";
|
|
14
|
+
import { r as Je } from "./matrix-card-LiMEipvq.js";
|
|
15
|
+
import { z as Qe } from "./table-settings-CunhoDUi.js";
|
|
16
|
+
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-CBzrDOjM.js";
|
|
17
|
+
import "./index-CtoK1Lgu.js";
|
|
17
18
|
import "./index-CuHybtft.js";
|
|
18
19
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
19
|
-
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-
|
|
20
|
+
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-CkJW9pBS.js";
|
|
20
21
|
const dt = /* @__PURE__ */ new Set([
|
|
21
22
|
"table",
|
|
22
23
|
"aggregateTable",
|
|
@@ -53,7 +54,7 @@ const dt = /* @__PURE__ */ new Set([
|
|
|
53
54
|
"treemap",
|
|
54
55
|
"custom"
|
|
55
56
|
]);
|
|
56
|
-
function
|
|
57
|
+
function Zn(e) {
|
|
57
58
|
var o, a, i;
|
|
58
59
|
const n = st.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
59
60
|
let t = !1;
|
|
@@ -91,7 +92,7 @@ function mt(e) {
|
|
|
91
92
|
return n || Q((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function Yn(e) {
|
|
95
96
|
return mt(e).kind === "export_job";
|
|
96
97
|
}
|
|
97
98
|
function ft(e) {
|
|
@@ -101,13 +102,13 @@ function ft(e) {
|
|
|
101
102
|
function ut(e) {
|
|
102
103
|
return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Q(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function Jn(e) {
|
|
105
106
|
return ft(e).label;
|
|
106
107
|
}
|
|
107
108
|
function pt(e) {
|
|
108
109
|
return dt.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
+
function Qn(e) {
|
|
111
112
|
const { config: n } = e, t = Pe({
|
|
112
113
|
spec: n.spec,
|
|
113
114
|
presentation: n.presentation,
|
|
@@ -143,7 +144,7 @@ const ht = y.object({
|
|
|
143
144
|
semanticDomainId: y.string().optional()
|
|
144
145
|
}).passthrough(),
|
|
145
146
|
active_filters: y.array(y.unknown()).default([])
|
|
146
|
-
}).passthrough(),
|
|
147
|
+
}).passthrough(), er = ht.extend({
|
|
147
148
|
dashboardId: y.string().min(1),
|
|
148
149
|
cardId: y.string().min(1),
|
|
149
150
|
formatOptions: y.object({
|
|
@@ -158,7 +159,7 @@ const ht = y.object({
|
|
|
158
159
|
});
|
|
159
160
|
})
|
|
160
161
|
});
|
|
161
|
-
function
|
|
162
|
+
function tr(e) {
|
|
162
163
|
return {
|
|
163
164
|
...e.controls,
|
|
164
165
|
type: "card",
|
|
@@ -186,14 +187,14 @@ function er(e) {
|
|
|
186
187
|
delimiter: e.delimiter,
|
|
187
188
|
includeHeaders: e.includeHeaders,
|
|
188
189
|
timezone: e.reportContext.calendar.tz,
|
|
189
|
-
presentationExecutionSnapshot:
|
|
190
|
+
presentationExecutionSnapshot: ze({
|
|
190
191
|
reportContext: e.reportContext,
|
|
191
192
|
resolvedFormats: []
|
|
192
193
|
})
|
|
193
194
|
}
|
|
194
195
|
};
|
|
195
196
|
}
|
|
196
|
-
const K = y.number().int().nonnegative(),
|
|
197
|
+
const K = y.number().int().nonnegative(), nr = y.discriminatedUnion("status", [
|
|
197
198
|
y.object({
|
|
198
199
|
status: y.literal("ok"),
|
|
199
200
|
request: J,
|
|
@@ -230,7 +231,7 @@ function me(e) {
|
|
|
230
231
|
var n;
|
|
231
232
|
return (n = e == null ? void 0 : e.cards) != null && n.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function rr(e) {
|
|
234
235
|
var t;
|
|
235
236
|
const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
236
237
|
return me(yt(n));
|
|
@@ -306,7 +307,7 @@ function bt(e, n) {
|
|
|
306
307
|
})
|
|
307
308
|
).filter((c) => c !== null);
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function or(e) {
|
|
310
311
|
return gt(e.dashboard, e.selections).flatMap(
|
|
311
312
|
({ card: n, attachmentIndex: t }) => {
|
|
312
313
|
var s, u, h, g;
|
|
@@ -639,13 +640,13 @@ const P = [
|
|
|
639
640
|
"SAT"
|
|
640
641
|
], fe = new Map(
|
|
641
642
|
P.map((e, n) => [e, n])
|
|
642
|
-
),
|
|
643
|
+
), V = [1, 2, 3, 4, 5], ue = [1, 2, 3, 6, 12], pe = {
|
|
643
644
|
1: "first",
|
|
644
645
|
2: "second",
|
|
645
646
|
3: "third",
|
|
646
647
|
4: "fourth",
|
|
647
648
|
[-1]: "last"
|
|
648
|
-
},
|
|
649
|
+
}, ar = {
|
|
649
650
|
frequency: "weekly",
|
|
650
651
|
hour: 9,
|
|
651
652
|
minute: 0,
|
|
@@ -691,13 +692,13 @@ function St(e, n) {
|
|
|
691
692
|
function ge(e, n) {
|
|
692
693
|
return e.every((t) => Nt(t, n));
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
+
function ir(e) {
|
|
695
696
|
if (!Tt(e))
|
|
696
697
|
throw new Error("Choose a valid schedule time.");
|
|
697
698
|
const n = `${e.minute} ${e.hour}`;
|
|
698
699
|
switch (e.frequency) {
|
|
699
700
|
case "daily":
|
|
700
|
-
return e.weekdaysOnly ? `${n} * * ${
|
|
701
|
+
return e.weekdaysOnly ? `${n} * * ${V.map((t) => P[t]).join(",")}` : `${n} * * *`;
|
|
701
702
|
case "weekly": {
|
|
702
703
|
const t = he(e.weekdays);
|
|
703
704
|
if (!t) throw new Error("Choose at least one weekday.");
|
|
@@ -773,7 +774,7 @@ function be(e) {
|
|
|
773
774
|
const u = i.split(",").map((E) => fe.get(E));
|
|
774
775
|
if (u.some((E) => E === void 0)) return S;
|
|
775
776
|
const h = u, g = he(h);
|
|
776
|
-
return !g || g.some((E, C) => E !== h[C]) ? S : g.length ===
|
|
777
|
+
return !g || g.some((E, C) => E !== h[C]) ? S : g.length === V.length && g.every((E, C) => E === V[C]) ? {
|
|
777
778
|
ok: !0,
|
|
778
779
|
value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !0 }
|
|
779
780
|
} : {
|
|
@@ -846,7 +847,7 @@ function Ft(e, n, t) {
|
|
|
846
847
|
const o = R(e, n).map((a) => r(a, "short")).join(", ");
|
|
847
848
|
return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
|
|
848
849
|
}
|
|
849
|
-
function
|
|
850
|
+
function cr(e, n, t = "en-US") {
|
|
850
851
|
const r = be(e);
|
|
851
852
|
if (!r.ok) return null;
|
|
852
853
|
try {
|
|
@@ -879,7 +880,7 @@ const Ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
|
879
880
|
function Nt(e, n) {
|
|
880
881
|
return e === "last" || n.some((t) => e <= Ie[t]);
|
|
881
882
|
}
|
|
882
|
-
function
|
|
883
|
+
function lr(e) {
|
|
883
884
|
if (e.frequency !== "monthly" || e.on.type !== "days") return null;
|
|
884
885
|
const n = e.on.days.filter((o) => o !== "last");
|
|
885
886
|
if (n.length === 0) return null;
|
|
@@ -895,7 +896,7 @@ function Bt(e, n, t, r) {
|
|
|
895
896
|
const o = new Date(Date.UTC(n, t, r)).getUTCDay();
|
|
896
897
|
switch (e.frequency) {
|
|
897
898
|
case "daily":
|
|
898
|
-
return !e.weekdaysOnly ||
|
|
899
|
+
return !e.weekdaysOnly || V.includes(o);
|
|
899
900
|
case "weekly":
|
|
900
901
|
return e.weekdays.includes(o);
|
|
901
902
|
case "monthly": {
|
|
@@ -908,7 +909,7 @@ function Bt(e, n, t, r) {
|
|
|
908
909
|
}
|
|
909
910
|
}
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
+
function dr(e, n, t, r) {
|
|
912
913
|
const o = be(e);
|
|
913
914
|
if (!o.ok || !Ct(n)) return [];
|
|
914
915
|
const a = o.value, i = new Intl.DateTimeFormat("en-US", {
|
|
@@ -961,7 +962,7 @@ function Pt(e) {
|
|
|
961
962
|
diagnostic: n.diagnostic
|
|
962
963
|
};
|
|
963
964
|
}
|
|
964
|
-
function
|
|
965
|
+
function sr(e) {
|
|
965
966
|
if (!e || typeof e != "object" || Array.isArray(e)) return [];
|
|
966
967
|
const n = e.omittedAttachments;
|
|
967
968
|
return Array.isArray(n) ? n.flatMap((t) => {
|
|
@@ -969,24 +970,24 @@ function dr(e) {
|
|
|
969
970
|
return r ? [r] : [];
|
|
970
971
|
}) : [];
|
|
971
972
|
}
|
|
972
|
-
function
|
|
973
|
+
function mr(e) {
|
|
973
974
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
974
975
|
}
|
|
975
|
-
function
|
|
976
|
+
function fr(e) {
|
|
976
977
|
return e.canCreate ? [
|
|
977
978
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
978
979
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
979
980
|
] : [];
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function zt(e) {
|
|
982
983
|
const n = (e == null ? void 0 : e.channels) ?? [];
|
|
983
984
|
return n.length === 1 && n[0] === "EMAIL";
|
|
984
985
|
}
|
|
985
|
-
function
|
|
986
|
-
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 &&
|
|
986
|
+
function Vt(e) {
|
|
987
|
+
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && zt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
|
|
987
988
|
}
|
|
988
|
-
function
|
|
989
|
-
const n =
|
|
989
|
+
function ur(e) {
|
|
990
|
+
const n = Vt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
|
|
990
991
|
return {
|
|
991
992
|
typeLabel: n,
|
|
992
993
|
noun: t,
|
|
@@ -1037,7 +1038,7 @@ function qt(e) {
|
|
|
1037
1038
|
function Kt(e) {
|
|
1038
1039
|
return e == null ? "" : qt(e) ? Re(e.value, e.format) : String(e);
|
|
1039
1040
|
}
|
|
1040
|
-
function
|
|
1041
|
+
function pr(e) {
|
|
1041
1042
|
return [e.delta, e.percentChange].filter(
|
|
1042
1043
|
(n) => n != null
|
|
1043
1044
|
).map(Kt).filter(Boolean).join(" / ");
|
|
@@ -1846,7 +1847,7 @@ function hn(e) {
|
|
|
1846
1847
|
blocks: i
|
|
1847
1848
|
};
|
|
1848
1849
|
}
|
|
1849
|
-
function
|
|
1850
|
+
function hr(e) {
|
|
1850
1851
|
try {
|
|
1851
1852
|
return {
|
|
1852
1853
|
valid: !0,
|
|
@@ -1859,7 +1860,7 @@ function pr(e) {
|
|
|
1859
1860
|
throw n;
|
|
1860
1861
|
}
|
|
1861
1862
|
}
|
|
1862
|
-
function
|
|
1863
|
+
function z(e, n, t, r) {
|
|
1863
1864
|
return typeof e == "string" && t.includes(e) ? e : (d(r, n, `Expected ${t.join(" or ")}.`), t[0]);
|
|
1864
1865
|
}
|
|
1865
1866
|
function D(e, n, t, r, o) {
|
|
@@ -2025,7 +2026,7 @@ function In(e, n, t) {
|
|
|
2025
2026
|
f.id,
|
|
2026
2027
|
t
|
|
2027
2028
|
),
|
|
2028
|
-
format:
|
|
2029
|
+
format: z(o.format, `${r}.format`, ["pdf"], t)
|
|
2029
2030
|
},
|
|
2030
2031
|
o.title,
|
|
2031
2032
|
`${r}.title`,
|
|
@@ -2055,7 +2056,7 @@ function In(e, n, t) {
|
|
|
2055
2056
|
f.id,
|
|
2056
2057
|
t
|
|
2057
2058
|
),
|
|
2058
|
-
format:
|
|
2059
|
+
format: z(
|
|
2059
2060
|
o.format,
|
|
2060
2061
|
`${r}.format`,
|
|
2061
2062
|
a === "dashboard_sheet" ? ["pdf", "png"] : ["pdf"],
|
|
@@ -2092,7 +2093,7 @@ function In(e, n, t) {
|
|
|
2092
2093
|
f.id,
|
|
2093
2094
|
t
|
|
2094
2095
|
),
|
|
2095
|
-
format:
|
|
2096
|
+
format: z(
|
|
2096
2097
|
o.format,
|
|
2097
2098
|
`${r}.format`,
|
|
2098
2099
|
ve,
|
|
@@ -2225,7 +2226,7 @@ function De(e) {
|
|
|
2225
2226
|
), t.kind !== Z && d(n, "kind", "Expected BRIEFING.");
|
|
2226
2227
|
let r;
|
|
2227
2228
|
try {
|
|
2228
|
-
r =
|
|
2229
|
+
r = Ve(
|
|
2229
2230
|
t.presentationExecutionSnapshot
|
|
2230
2231
|
);
|
|
2231
2232
|
} catch (m) {
|
|
@@ -2252,7 +2253,7 @@ function De(e) {
|
|
|
2252
2253
|
...l ? { limits: l } : {}
|
|
2253
2254
|
};
|
|
2254
2255
|
}
|
|
2255
|
-
function
|
|
2256
|
+
function yr(e) {
|
|
2256
2257
|
return De({
|
|
2257
2258
|
...e,
|
|
2258
2259
|
kind: Z
|
|
@@ -2352,7 +2353,7 @@ function Tn(e, n, t) {
|
|
|
2352
2353
|
["url", "method", "headers", "secretEncrypted"],
|
|
2353
2354
|
t
|
|
2354
2355
|
);
|
|
2355
|
-
const o = r.method === void 0 || r.method === null ? void 0 :
|
|
2356
|
+
const o = r.method === void 0 || r.method === null ? void 0 : z(r.method, `${n}.method`, ["POST", "PUT"], t), a = Cn(r.headers, `${n}.headers`, t), i = I(
|
|
2356
2357
|
r.secretEncrypted,
|
|
2357
2358
|
`${n}.secretEncrypted`,
|
|
2358
2359
|
2e3,
|
|
@@ -2628,13 +2629,13 @@ function re(e) {
|
|
|
2628
2629
|
deliveryConfig: g
|
|
2629
2630
|
};
|
|
2630
2631
|
}
|
|
2631
|
-
function yr(e) {
|
|
2632
|
-
return re(e);
|
|
2633
|
-
}
|
|
2634
2632
|
function gr(e) {
|
|
2635
2633
|
return re(e);
|
|
2636
2634
|
}
|
|
2637
2635
|
function br(e) {
|
|
2636
|
+
return re(e);
|
|
2637
|
+
}
|
|
2638
|
+
function Ir(e) {
|
|
2638
2639
|
try {
|
|
2639
2640
|
return { valid: !0, value: re(e), issues: [] };
|
|
2640
2641
|
} catch (n) {
|
|
@@ -2643,7 +2644,7 @@ function br(e) {
|
|
|
2643
2644
|
throw n;
|
|
2644
2645
|
}
|
|
2645
2646
|
}
|
|
2646
|
-
function
|
|
2647
|
+
function vr(e) {
|
|
2647
2648
|
try {
|
|
2648
2649
|
return { valid: !0, value: De(e), issues: [] };
|
|
2649
2650
|
} catch (n) {
|
|
@@ -2652,7 +2653,7 @@ function Ir(e) {
|
|
|
2652
2653
|
throw n;
|
|
2653
2654
|
}
|
|
2654
2655
|
}
|
|
2655
|
-
function
|
|
2656
|
+
function Er(e) {
|
|
2656
2657
|
return typeof e == "string" && Ee.has(e);
|
|
2657
2658
|
}
|
|
2658
2659
|
function _e(e) {
|
|
@@ -2663,57 +2664,57 @@ export {
|
|
|
2663
2664
|
f as A,
|
|
2664
2665
|
Z as B,
|
|
2665
2666
|
x as C,
|
|
2666
|
-
|
|
2667
|
+
ar as D,
|
|
2667
2668
|
qt as E,
|
|
2668
2669
|
Kt as F,
|
|
2669
|
-
|
|
2670
|
+
pr as G,
|
|
2670
2671
|
ve as H,
|
|
2671
2672
|
j as I,
|
|
2672
2673
|
hn as J,
|
|
2673
|
-
|
|
2674
|
+
hr as K,
|
|
2674
2675
|
De as L,
|
|
2675
2676
|
H as M,
|
|
2676
|
-
|
|
2677
|
+
yr as N,
|
|
2677
2678
|
re as O,
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2679
|
+
gr as P,
|
|
2680
|
+
br as Q,
|
|
2681
|
+
Ir as R,
|
|
2682
|
+
vr as S,
|
|
2683
|
+
Er as T,
|
|
2683
2684
|
_e as U,
|
|
2684
|
-
|
|
2685
|
+
er as V,
|
|
2685
2686
|
ht as W,
|
|
2686
2687
|
ft as X,
|
|
2687
|
-
|
|
2688
|
+
Yn as Y,
|
|
2688
2689
|
mt as Z,
|
|
2689
2690
|
pt as _,
|
|
2690
|
-
|
|
2691
|
+
fr as a,
|
|
2691
2692
|
Mt as a0,
|
|
2692
2693
|
Ut as a1,
|
|
2693
|
-
|
|
2694
|
+
Vt as a2,
|
|
2694
2695
|
ut as b,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2696
|
+
Qn as c,
|
|
2697
|
+
cr as d,
|
|
2698
|
+
tr as e,
|
|
2699
|
+
or as f,
|
|
2700
|
+
ur as g,
|
|
2701
|
+
Zn as h,
|
|
2702
|
+
Jn as i,
|
|
2702
2703
|
Ct as j,
|
|
2703
|
-
|
|
2704
|
+
ir as k,
|
|
2704
2705
|
R as l,
|
|
2705
|
-
|
|
2706
|
+
lr as m,
|
|
2706
2707
|
Nt as n,
|
|
2707
|
-
|
|
2708
|
+
dr as o,
|
|
2708
2709
|
be as p,
|
|
2709
2710
|
ye as q,
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2711
|
+
zt as r,
|
|
2712
|
+
sr as s,
|
|
2713
|
+
mr as t,
|
|
2713
2714
|
yt as u,
|
|
2714
2715
|
me as v,
|
|
2715
|
-
|
|
2716
|
-
|
|
2716
|
+
rr as w,
|
|
2717
|
+
nr as x,
|
|
2717
2718
|
jt as y,
|
|
2718
2719
|
Y as z
|
|
2719
2720
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as t } from "./x-4f5U2XwU.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const i = t("ListFilter", [
|
|
9
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
10
|
+
["path", { d: "M7 12h10", key: "b7w52i" }],
|
|
11
|
+
["path", { d: "M10 18h4", key: "1ulq68" }]
|
|
12
|
+
]);
|
|
13
|
+
export {
|
|
14
|
+
i as L
|
|
15
|
+
};
|