react-semaphor 0.1.602 → 0.1.604
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/activity/index.js +1 -73
- package/dist/analytics-protocol/index.js +1 -1451
- package/dist/appearance/index.js +1 -12
- package/dist/appearance-runtime/index.js +1 -5
- package/dist/assistant-context/index.js +1 -11
- package/dist/assistant-protocol/index.js +1 -152
- package/dist/brand-studio/index.js +4 -1594
- package/dist/briefings/index.js +1 -70
- package/dist/chunks/add-to-dashboard-DeHEBEqG.js +12 -0
- package/dist/chunks/analytics-base-schemas-BREc5WGv.js +1 -0
- package/dist/chunks/appearance-context-BqBZrijL.js +1 -0
- package/dist/chunks/appearance-runtime-provider-DmbCrOOG.js +1 -0
- package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
- package/dist/chunks/assistant-chat-CjYrwVDa.js +56 -0
- package/dist/chunks/attribution-BEFSsbNn.js +1 -0
- package/dist/chunks/availability-3AIOf6Z-.js +1 -0
- package/dist/chunks/bookmark-impact-C89zBLq3.js +1 -0
- package/dist/chunks/bookmark-state-69YYnRql.js +1 -0
- package/dist/chunks/brand-DCaZyRt6.js +1 -0
- package/dist/chunks/card-filter-builder-CTp6RAz1.js +17 -0
- package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
- package/dist/chunks/comparison-window-caption-C312mn3s.js +1 -0
- package/dist/chunks/context-ALdccLHw.js +2 -0
- package/dist/chunks/conversation-JMK2kyTK.js +1 -0
- package/dist/chunks/dashboard-BX28ld6s.js +1 -0
- package/dist/chunks/dashboard-briefing-launcher-qo7GH4EO.js +37 -0
- package/dist/chunks/dashboard-controls-DhRjB7MA.js +42 -0
- package/dist/chunks/dashboard-json-9cHzhSjC.js +1 -0
- package/dist/chunks/dates-D-KP8G-z.js +1 -0
- package/dist/chunks/edit-DEAK0UZo.js +1 -0
- package/dist/chunks/edit-dashboard-visual-Duq_QkB_.js +93 -0
- package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
- package/dist/chunks/filter-line-CwQrqORc.js +1 -0
- package/dist/chunks/filter-reach-preview-gixPFlZj.js +1 -0
- package/dist/chunks/filter-value-text-B3tXakhd.js +1 -0
- package/dist/chunks/index-B-VF1ogs.js +1 -0
- package/dist/chunks/index-BE1DfxNs.js +1 -0
- package/dist/chunks/index-DViPGDFj.js +1 -0
- package/dist/chunks/layout-grid-BWtlgw0T.js +6 -0
- package/dist/chunks/matrix-analytical-definition-CtFqWyCK.js +1 -0
- package/dist/chunks/matrix-member-presentation-Q0MCJ-YK.js +1 -0
- package/dist/chunks/matrix-operation-contract-D1RC1bfi.js +1 -0
- package/dist/chunks/metric-comparison-DEZYXROZ.js +1 -0
- package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
- package/dist/chunks/paintbrush-BjS3SbrH.js +6 -0
- package/dist/chunks/palette-BzC-CGOc.js +6 -0
- package/dist/chunks/pickers-DuBrUht0.js +1 -0
- package/dist/chunks/pivot-result-contract-expectations-DTQAgr4n.js +1 -0
- package/dist/chunks/pivot-result-identity-DTNCB--h.js +1 -0
- package/dist/chunks/raw-temporal-value-DeyEhL0S.js +1 -0
- package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
- package/dist/chunks/report-preferences-dialog-B_gUmCzG.js +1 -0
- package/dist/chunks/report-runtime-context-BWzIHCKK.js +1 -0
- package/dist/chunks/resolve-dashboard-input-context-B-TtRqxu.js +8 -0
- package/dist/chunks/resolver-AN9ChBfZ.js +1 -0
- package/dist/chunks/save-DdFUZcbi.js +6 -0
- package/dist/chunks/saved-dashboard-context-BAJ5tWiq.js +1 -0
- package/dist/chunks/schema-MC0cQSAb.js +4 -0
- package/dist/chunks/selection-filter-compiler-CCoCD25M.js +1 -0
- package/dist/chunks/semaphor-ready-indicator-DzjorP3t.js +999 -0
- package/dist/chunks/set-DuJfGkbY.js +1 -0
- package/dist/chunks/shelf-drop-preview-context-BlLJ5RsT.js +6 -0
- package/dist/chunks/stored-dashboard-Ctcpkllg.js +1 -0
- package/dist/chunks/style-sheet-parts-BRGt9O05.js +178 -0
- package/dist/chunks/table-export-sheet-rC5pKmXg.js +2 -0
- package/dist/chunks/token-types-Bj9iMy0w.js +1 -0
- package/dist/chunks/validators-CqV3Yka1.js +1 -0
- package/dist/chunks/variable-draft-DJrfUyhv.js +1 -0
- package/dist/chunks/visual-choice-DgEFfkE-.js +1 -0
- package/dist/dashboard/index.js +1 -7
- package/dist/dashboard-authoring/index.js +1 -4491
- package/dist/format-utils/index.js +1 -424
- package/dist/index.js +1 -554
- package/dist/layouts/index.js +1 -7
- package/dist/live-channel/index.js +1 -124
- package/dist/pdf-export-policy/index.js +1 -92
- package/dist/pdf-table-layout/index.js +1 -993
- package/dist/report-runtime-context/index.js +1 -9
- package/dist/shared/index.js +1 -6
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -9
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +1 -88
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/explorer-actions.d.ts +7 -6
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/lib/types/semantic-types.d.ts +6 -10
- package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +125 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-field-folders.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-joins.d.ts +114 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-prune.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-catalog.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +132 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/join-reach.d.ts +42 -0
- package/dist/types/shared/dashboard-authoring/card-field-places.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +115 -0
- package/dist/types/shared/dashboard-authoring/field-folders/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-decision.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +6 -1
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -285
- package/dist/value-format-preferences/index.js +1 -635
- package/package.json +6 -2
- package/dist/chunks/add-to-dashboard-ClhEIFst.js +0 -291
- package/dist/chunks/analytics-base-schemas-DevrgqQb.js +0 -678
- package/dist/chunks/appearance-context-BwBp25ZG.js +0 -162
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +0 -80
- package/dist/chunks/applied-constraints-DU-wndZ7.js +0 -47
- package/dist/chunks/assistant-chat-BWF3GYip.js +0 -6115
- package/dist/chunks/attribution-BvoKvhcj.js +0 -32
- package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
- package/dist/chunks/bookmark-impact-BF3iRx5a.js +0 -76
- package/dist/chunks/bookmark-state-CBSTdW6q.js +0 -1666
- package/dist/chunks/brand-BoUV0iHF.js +0 -54
- package/dist/chunks/card-filter-builder-B8XHwMY6.js +0 -4069
- package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
- package/dist/chunks/comparison-window-caption-W83qB4V5.js +0 -741
- package/dist/chunks/context-BJoEFgNl.js +0 -369
- package/dist/chunks/conversation-sQiWYUOb.js +0 -16
- package/dist/chunks/dashboard-DG5EIYYB.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-CBSrhyWZ.js +0 -4875
- package/dist/chunks/dashboard-controls-D6ECO4N1.js +0 -2290
- package/dist/chunks/dashboard-json-DrJftBSL.js +0 -66
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/edit-9df1zOWe.js +0 -226
- package/dist/chunks/edit-dashboard-visual-BDYAJIbb.js +0 -18605
- package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
- package/dist/chunks/filter-line-BXT6y303.js +0 -703
- package/dist/chunks/filter-reach-copy-BukhZmzm.js +0 -5250
- package/dist/chunks/filter-value-text-D3-bf3_b.js +0 -153
- package/dist/chunks/index-BVKzKl5d.js +0 -90
- package/dist/chunks/index-BW0yozjs.js +0 -2795
- package/dist/chunks/index-CV_Kzou0.js +0 -595
- package/dist/chunks/layout-grid-Ds0diMeY.js +0 -16
- package/dist/chunks/matrix-analytical-definition-CgQgVeeI.js +0 -1162
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/matrix-operation-contract--DkNCOzd.js +0 -1412
- package/dist/chunks/metric-comparison-zMylnIkc.js +0 -541
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
- package/dist/chunks/paintbrush-CX8pao1j.js +0 -27
- package/dist/chunks/palette-CuA0HlzF.js +0 -23
- package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
- package/dist/chunks/pivot-result-contract-expectations-C8KL7hPx.js +0 -5046
- package/dist/chunks/pivot-result-identity-C1AOH1PS.js +0 -77
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
- package/dist/chunks/report-preferences-dialog-CbuVNDGi.js +0 -1637
- package/dist/chunks/report-runtime-context-E7USjN7E.js +0 -388
- package/dist/chunks/resolve-dashboard-input-context-CULCE_hM.js +0 -25172
- package/dist/chunks/resolver-DG_tfEpt.js +0 -156
- package/dist/chunks/save-BKHlDONy.js +0 -21
- package/dist/chunks/saved-dashboard-context-C1WlOx5z.js +0 -632
- package/dist/chunks/schema-C9NPiIru.js +0 -2568
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
- package/dist/chunks/semaphor-ready-indicator-CBIRcDWs.js +0 -145326
- package/dist/chunks/shelf-drop-preview-context-xR69SMA8.js +0 -2466
- package/dist/chunks/stored-dashboard-BuM8vnWf.js +0 -4070
- package/dist/chunks/style-sheet-parts-Bt9ZNre8.js +0 -8674
- package/dist/chunks/table-export-sheet-DVljtHkG.js +0 -949
- package/dist/chunks/token-types-D_xKgyVS.js +0 -8
- package/dist/chunks/upload-Dll_M7XQ.js +0 -15
- package/dist/chunks/validators-ClWHpYql.js +0 -3686
- package/dist/chunks/variable-draft-CDGGl53R.js +0 -242
- package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as u, useState as f, useRef as b, useEffect as p } from "react";
|
|
3
|
-
import { u as o } from "./semaphor-ready-indicator-CBIRcDWs.js";
|
|
4
|
-
import { B as S, X as N, C as D } from "./style-sheet-parts-Bt9ZNre8.js";
|
|
5
|
-
import { c as J } from "./pickers-DkqmtnTL.js";
|
|
6
|
-
import "./validators-ClWHpYql.js";
|
|
7
|
-
import "./matrix-operation-contract--DkNCOzd.js";
|
|
8
|
-
import "./analytics-base-schemas-DevrgqQb.js";
|
|
9
|
-
import "../value-format-preferences/index.js";
|
|
10
|
-
function z() {
|
|
11
|
-
const r = o((s) => s.dashboard), c = o((s) => s.actions.setDashboard), h = o(
|
|
12
|
-
(s) => s.showDashboardJSON
|
|
13
|
-
), l = o(
|
|
14
|
-
(s) => s.actions.setShowDashboardJSON
|
|
15
|
-
), a = u(
|
|
16
|
-
() => r ? JSON.stringify(r, null, 2) : "",
|
|
17
|
-
[r]
|
|
18
|
-
), [m, n] = f(a), e = b(a);
|
|
19
|
-
return p(() => {
|
|
20
|
-
a !== e.current && (n(a), e.current = a);
|
|
21
|
-
}, [a]), /* @__PURE__ */ d(
|
|
22
|
-
"div",
|
|
23
|
-
{
|
|
24
|
-
className: J("relative p-2", {
|
|
25
|
-
hidden: !h
|
|
26
|
-
}),
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ d(
|
|
29
|
-
S,
|
|
30
|
-
{
|
|
31
|
-
variant: "secondary",
|
|
32
|
-
size: "sm",
|
|
33
|
-
className: "absolute right-2 top-2 z-10 h-8",
|
|
34
|
-
onClick: () => l(!1),
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ t(N, { className: "mr-2 h-4 w-4" }),
|
|
37
|
-
"Close"
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ t("div", { className: "h-[550px] overflow-hidden", children: /* @__PURE__ */ t(
|
|
42
|
-
D,
|
|
43
|
-
{
|
|
44
|
-
value: m,
|
|
45
|
-
onValueChange: (s) => {
|
|
46
|
-
n(s);
|
|
47
|
-
try {
|
|
48
|
-
const i = JSON.parse(s);
|
|
49
|
-
e.current = JSON.stringify(
|
|
50
|
-
i,
|
|
51
|
-
null,
|
|
52
|
-
2
|
|
53
|
-
), c(i);
|
|
54
|
-
} catch {
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
language: "json"
|
|
58
|
-
}
|
|
59
|
-
) })
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
z as default
|
|
66
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { k as h, m as D, n as F, r as b, e as m, o as g } from "./resolve-dashboard-input-context-CULCE_hM.js";
|
|
2
|
-
import { d as y, g as T } from "./filter-reach-copy-BukhZmzm.js";
|
|
3
|
-
import "./validators-ClWHpYql.js";
|
|
4
|
-
import "./matrix-operation-contract--DkNCOzd.js";
|
|
5
|
-
import "./analytics-base-schemas-DevrgqQb.js";
|
|
6
|
-
import "zod";
|
|
7
|
-
import "./pivot-result-contract-expectations-C8KL7hPx.js";
|
|
8
|
-
import "../value-format-preferences/index.js";
|
|
9
|
-
import { D as N } from "./bookmark-state-CBSTdW6q.js";
|
|
10
|
-
import "./schema-C9NPiIru.js";
|
|
11
|
-
import "./index-CV_Kzou0.js";
|
|
12
|
-
import "./context-BJoEFgNl.js";
|
|
13
|
-
import { p as P, r as w } from "./stored-dashboard-BuM8vnWf.js";
|
|
14
|
-
import { g as C } from "./saved-dashboard-context-C1WlOx5z.js";
|
|
15
|
-
function H(e, a, r) {
|
|
16
|
-
const t = e.findIndex((o) => o.id === a);
|
|
17
|
-
if (t === -1) return e;
|
|
18
|
-
const n = e.filter((o, s) => s !== t), i = Math.max(0, Math.min(Math.trunc(r), n.length));
|
|
19
|
-
return i === t ? e : [...n.slice(0, i), e[t], ...n.slice(i)];
|
|
20
|
-
}
|
|
21
|
-
const I = /* @__PURE__ */ new Set([
|
|
22
|
-
"bar",
|
|
23
|
-
"line",
|
|
24
|
-
"pie",
|
|
25
|
-
"doughnut",
|
|
26
|
-
"table",
|
|
27
|
-
"detailTable",
|
|
28
|
-
"stackedBar",
|
|
29
|
-
"stackedLine",
|
|
30
|
-
"horizontalBar",
|
|
31
|
-
"radar",
|
|
32
|
-
"polarArea",
|
|
33
|
-
"scatter",
|
|
34
|
-
"bubble",
|
|
35
|
-
"funnel",
|
|
36
|
-
"custom"
|
|
37
|
-
]);
|
|
38
|
-
function U(e) {
|
|
39
|
-
return !!(e && I.has(e));
|
|
40
|
-
}
|
|
41
|
-
const k = 250;
|
|
42
|
-
function Y(e) {
|
|
43
|
-
return {
|
|
44
|
-
id: e.id,
|
|
45
|
-
...h(e.field, {
|
|
46
|
-
dataSource: e.dataSource,
|
|
47
|
-
connectionId: e.connectionId
|
|
48
|
-
}),
|
|
49
|
-
width: k
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function J(e, a, r) {
|
|
53
|
-
const t = e.flatMap((n) => {
|
|
54
|
-
if (r !== void 0 && n.id !== r) return [];
|
|
55
|
-
const i = (n.inlineFilters ?? []).findIndex((o) => o.id === a);
|
|
56
|
-
return i === -1 ? [] : [{ card: n, filter: n.inlineFilters[i], index: i }];
|
|
57
|
-
});
|
|
58
|
-
return t.length === 1 ? { kind: "found", ...t[0] } : t.length > 1 ? { kind: "ambiguous", cards: t.map((n) => n.card) } : { kind: "none" };
|
|
59
|
-
}
|
|
60
|
-
const X = ["hour", "day", "week", "month", "quarter", "year"], Z = 12, R = {
|
|
61
|
-
automatic: "Automatic",
|
|
62
|
-
card: "Set on this card",
|
|
63
|
-
trend_by: "From Trend By"
|
|
64
|
-
};
|
|
65
|
-
function G(e, a, r = {}) {
|
|
66
|
-
if (!e) return;
|
|
67
|
-
const t = e.granularity;
|
|
68
|
-
if (e.skipped)
|
|
69
|
-
return {
|
|
70
|
-
head: `Too many points by ${t}`,
|
|
71
|
-
// A Trend By sets the grain, so the fix is there (ledger P3-05).
|
|
72
|
-
detail: e.grainSource === "trend_by" ? "Pick a coarser grain on the Trend By." : "Pick a coarser grain, or Automatic."
|
|
73
|
-
};
|
|
74
|
-
const n = R[e.grainSource], i = e.span === "recent" ? `The last 12 ${t}s: no date range` : e.span === "history" ? `The 12 ${t}s ending with this one` : e.window ? y({ ...e.window, timezone: e.calendar.tz }, r.now) : void 0;
|
|
75
|
-
return {
|
|
76
|
-
head: `By ${t} · ${a} ${a === 1 ? "point" : "points"}`,
|
|
77
|
-
detail: i ? `${i} · ${n}` : n
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function S(e, a) {
|
|
81
|
-
var t;
|
|
82
|
-
if (a.status === "blocked" || (t = e.sql) != null && t.trim()) return !1;
|
|
83
|
-
const r = new Set(
|
|
84
|
-
a.mappingDispositions.flatMap(
|
|
85
|
-
(n) => n.status === "apply" ? [n.filterValue.filterId] : []
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
return a.cardFilterValues.some((n) => {
|
|
89
|
-
const i = a.queryFilterDefinitions.find(
|
|
90
|
-
(d) => d.id === n.filterId
|
|
91
|
-
);
|
|
92
|
-
if (!D(n)) return !1;
|
|
93
|
-
if (!(r.has(n.filterId) || (i == null ? void 0 : i.kind) === "global-date"))
|
|
94
|
-
return !!(i && q(
|
|
95
|
-
[i],
|
|
96
|
-
a.resolvedPrimaryDateField,
|
|
97
|
-
[n]
|
|
98
|
-
));
|
|
99
|
-
const s = F(n);
|
|
100
|
-
return !!(s && b({
|
|
101
|
-
card: e,
|
|
102
|
-
filter: s,
|
|
103
|
-
filterValue: n,
|
|
104
|
-
effectiveFilterValue: n,
|
|
105
|
-
temporalBinding: a.resolvedPrimaryDateField
|
|
106
|
-
}).status === "eligible");
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function q(e, a, r) {
|
|
110
|
-
if (!a) return !1;
|
|
111
|
-
const t = a.qualifiedFieldName, n = a.qualifiedEntityName, i = n && a.name ? `${n}.${a.name}` : t;
|
|
112
|
-
return e.some((o) => {
|
|
113
|
-
if (!(m(o.dataType || "") === "date")) return !1;
|
|
114
|
-
const d = T(o, r), l = d.split("."), c = l[l.length - 1] || d, p = l.length > 1 ? l.slice(0, -1).join(".") : void 0, f = o.qualifiedTableName || p, u = f ? `${f}.${c}` : void 0;
|
|
115
|
-
return t ? u ? u === i || u.endsWith(`.${t}`) : c === a.name : u ? u === i : c === a.name;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function _(e, a) {
|
|
119
|
-
const r = (i) => {
|
|
120
|
-
const o = i.field;
|
|
121
|
-
return o ? a.id && o.id === a.id ? !0 : a.qualifiedFieldName && o.qualifiedFieldName ? o.qualifiedFieldName === a.qualifiedFieldName : o.name === a.name : !1;
|
|
122
|
-
}, t = (i) => i.conditions.some((o) => {
|
|
123
|
-
var s;
|
|
124
|
-
return m(((s = o.field) == null ? void 0 : s.dataType) || "") === "date" && r(o);
|
|
125
|
-
}) || i.groups.some(t), n = g(e);
|
|
126
|
-
return n ? t(n) : !1;
|
|
127
|
-
}
|
|
128
|
-
function v(e, a) {
|
|
129
|
-
var s, d;
|
|
130
|
-
const r = (d = (s = e.config) == null ? void 0 : s.groupByColumns) == null ? void 0 : d.find((l) => m(l.dataType || "") === "date"), t = a.resolvedPrimaryDateField, n = r ? { id: r.id, name: r.name, label: r.label || r.name, qualifiedFieldName: r.qualifiedFieldName } : t ? { name: t.name, label: t.name, qualifiedFieldName: t.qualifiedFieldName } : void 0;
|
|
131
|
-
if (!n) return { comparisonDate: null, dateWindow: a.status === "ready" ? "none" : "unknown" };
|
|
132
|
-
const i = { name: n.name, label: n.label };
|
|
133
|
-
if (_(e, n)) return { comparisonDate: i, dateWindow: "applies" };
|
|
134
|
-
if (a.status !== "ready") return { comparisonDate: i, dateWindow: "unknown" };
|
|
135
|
-
const o = S(e, { status: "ready", ...a.compiledFilters });
|
|
136
|
-
return { comparisonDate: i, dateWindow: o ? "applies" : "none" };
|
|
137
|
-
}
|
|
138
|
-
function ee(e) {
|
|
139
|
-
const a = P(e.dashboard), r = N(a).find((o) => o.cardId === e.cardId);
|
|
140
|
-
if (!r || r.kind === "documentSectionCard") return { comparisonDate: null, dateWindow: "unknown" };
|
|
141
|
-
const { runtimeValues: t, transientContexts: n } = w({ dashboard: a, capture: {}, calendar: e.calendar }), i = C({
|
|
142
|
-
dashboard: a,
|
|
143
|
-
location: r,
|
|
144
|
-
runtimeValues: t,
|
|
145
|
-
semanticExecutionPayload: e.semanticExecutionPayload,
|
|
146
|
-
calendar: e.calendar,
|
|
147
|
-
transientContexts: n
|
|
148
|
-
});
|
|
149
|
-
return v(
|
|
150
|
-
r.card,
|
|
151
|
-
(i == null ? void 0 : i.status) === "ready" ? { status: "ready", compiledFilters: i.compiledFilters, resolvedPrimaryDateField: i.resolvedPrimaryDateField } : { status: "blocked", resolvedPrimaryDateField: i == null ? void 0 : i.resolvedPrimaryDateField }
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
export {
|
|
155
|
-
X as K,
|
|
156
|
-
Z as a,
|
|
157
|
-
Y as b,
|
|
158
|
-
U as c,
|
|
159
|
-
G as d,
|
|
160
|
-
ee as e,
|
|
161
|
-
J as f,
|
|
162
|
-
H as m,
|
|
163
|
-
v as r
|
|
164
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { b as v, D as g, s as B, r as N, a as j, n as U } from "./resolver-DG_tfEpt.js";
|
|
2
|
-
import { S as b, C as p, a as f } from "./pickers-DkqmtnTL.js";
|
|
3
|
-
const w = {
|
|
4
|
-
spacing: { min: 0, max: 24, label: "Spacing" },
|
|
5
|
-
canvasPadding: { min: 0, max: 48, label: "Canvas padding" },
|
|
6
|
-
cardCorners: { min: 0, max: 24, label: "Card corners" },
|
|
7
|
-
controlCorners: { min: 0, max: 12, label: "Control corners" },
|
|
8
|
-
barCorners: { min: 0, max: 24, label: "Bar corners" }
|
|
9
|
-
}, d = { min: 1, max: 12 };
|
|
10
|
-
function _(o) {
|
|
11
|
-
const { min: e, max: s, label: r } = w[o];
|
|
12
|
-
return `${r} ${r.endsWith("s") ? "are" : "is"} ${e} to ${s} px`;
|
|
13
|
-
}
|
|
14
|
-
function Z(o) {
|
|
15
|
-
return o in w;
|
|
16
|
-
}
|
|
17
|
-
const M = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
18
|
-
function y(o) {
|
|
19
|
-
return typeof o == "string" && M.test(o);
|
|
20
|
-
}
|
|
21
|
-
const H = ["none", "subtle", "raised"], L = /* @__PURE__ */ new Set(["canvas", "chartColors"]);
|
|
22
|
-
function rr(o, e) {
|
|
23
|
-
const s = l(v(o), e), r = l(v({ ...o, tokenAppearance: null, reactAppearance: null }), e), n = l(v({ defaults: o.defaults, organizationAppearance: o.organizationAppearance }), e), a = Object.fromEntries(g.map((i) => [i, z(o, i, e)])), c = o.dashboardStyle ?? {}, t = g.filter((i) => B(c, i, e) !== void 0), C = g.reduce((i, k) => {
|
|
24
|
-
if (!L.has(k)) return i + (c[k] !== void 0 ? 1 : 0);
|
|
25
|
-
const A = c[k];
|
|
26
|
-
return i + (A ? Object.values(A).filter((T) => T !== void 0).length : 0);
|
|
27
|
-
}, 0);
|
|
28
|
-
return {
|
|
29
|
-
mode: e,
|
|
30
|
-
shows: s,
|
|
31
|
-
authored: r,
|
|
32
|
-
inherited: n,
|
|
33
|
-
source: a,
|
|
34
|
-
hostSet: g.filter((i) => a[i] === "token" || a[i] === "react"),
|
|
35
|
-
changed: t,
|
|
36
|
-
changeCount: C,
|
|
37
|
-
pickers: F(r)
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function l(o, e) {
|
|
41
|
-
const s = o.schemes[e], r = (a) => N(s, j[a]), n = r("cardShadow");
|
|
42
|
-
return {
|
|
43
|
-
spacing: r("spacing"),
|
|
44
|
-
canvasPadding: r("canvasPadding"),
|
|
45
|
-
canvas: r("canvas"),
|
|
46
|
-
cardBorder: r("cardBorder") === 0 ? "off" : "on",
|
|
47
|
-
cardShadow: H.includes(n) ? n : "custom",
|
|
48
|
-
cardCorners: r("cardCorners"),
|
|
49
|
-
controlCorners: r("controlCorners"),
|
|
50
|
-
chartColors: [...r("chartColors") ?? []],
|
|
51
|
-
barCorners: r("barCorners")
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function z(o, e, s) {
|
|
55
|
-
const r = (n) => {
|
|
56
|
-
var a, c;
|
|
57
|
-
return N((c = (a = U(n)) == null ? void 0 : a.schemes) == null ? void 0 : c[s], j[e]) !== void 0;
|
|
58
|
-
};
|
|
59
|
-
return r(o.reactAppearance) ? "react" : r(o.tokenAppearance) ? "token" : o.dashboardStyle && B(o.dashboardStyle, e, s) !== void 0 ? "dashboard" : r(o.organizationAppearance) ? "organization" : "defaults";
|
|
60
|
-
}
|
|
61
|
-
function F(o) {
|
|
62
|
-
const e = Object.keys(b).find((n) => b[n] === o.spacing) ?? null, s = Object.keys(p).find((n) => {
|
|
63
|
-
const a = p[n];
|
|
64
|
-
return a.cardBorder === o.cardBorder && a.cardShadow === o.cardShadow && a.canvas === o.canvas;
|
|
65
|
-
}) ?? null, r = Object.keys(f).find(
|
|
66
|
-
(n) => f[n].cardCorners === o.cardCorners && f[n].controlCorners === o.controlCorners
|
|
67
|
-
) ?? null;
|
|
68
|
-
return { spacing: e, cards: s, corners: r };
|
|
69
|
-
}
|
|
70
|
-
const I = { muted: "muted", background: "plain" }, G = {
|
|
71
|
-
none: "Removes card shadows",
|
|
72
|
-
subtle: "Gives cards a subtle shadow",
|
|
73
|
-
raised: "Gives cards a raised shadow"
|
|
74
|
-
}, W = {
|
|
75
|
-
outlined: "Shows cards outlined, with a border and no shadow",
|
|
76
|
-
raised: "Shows cards raised, with no border",
|
|
77
|
-
open: "Shows cards open, on a plain canvas"
|
|
78
|
-
};
|
|
79
|
-
function q(o) {
|
|
80
|
-
const { edit: e, before: s, after: r } = o;
|
|
81
|
-
if (e.reset === "all" && Object.keys(e).length === 1)
|
|
82
|
-
return h(s, r) ? [] : [o.resetAll ?? "Resets the dashboard's style to the brand"];
|
|
83
|
-
const n = [], a = (t) => !h(s.light[t], r.light[t]) || !h(s.dark[t], r.dark[t]);
|
|
84
|
-
a("spacing") && n.push(r.light.spacing === 0 ? "Removes the gap between cards" : `Sets the gap between cards to ${r.light.spacing} px`), a("canvasPadding") && n.push(`Sets the canvas padding to ${r.light.canvasPadding} px`);
|
|
85
|
-
const c = e.cards && !a("cardBorder") && !a("cardShadow") && !a("canvas") ? void 0 : e.cards;
|
|
86
|
-
if (c && p[c] ? n.push(W[c]) : (a("cardBorder") && n.push(r.light.cardBorder === "on" ? "Shows card borders" : "Hides card borders"), a("cardShadow") && n.push(G[r.light.cardShadow] ?? "Changes the card shadow"), a("canvas") && n.push($("Sets the canvas to", s, r, "canvas", (t) => I[t] ?? t))), a("cardCorners") || a("controlCorners")) {
|
|
87
|
-
const { cardCorners: t, controlCorners: C } = r.light;
|
|
88
|
-
n.push(t === 0 && C === 0 ? "Squares corners" : `Rounds corners (cards ${t} px, controls ${C} px)`);
|
|
89
|
-
}
|
|
90
|
-
return a("chartColors") && n.push($("Sets chart colors to", s, r, "chartColors", (t) => `${t.length} ${t.length === 1 ? "color" : "colors"}`)), a("barCorners") && n.push(r.light.barCorners === 0 ? "Squares bar corners" : `Rounds bar corners to ${r.light.barCorners} px`), n;
|
|
91
|
-
}
|
|
92
|
-
function $(o, e, s, r, n) {
|
|
93
|
-
const a = !h(e.light[r], s.light[r]), c = !h(e.dark[r], s.dark[r]);
|
|
94
|
-
return a && c && h(s.light[r], s.dark[r]) ? `${o} ${n(s.light[r])}` : a && c ? `${o} ${n(s.light[r])} in light mode and ${n(s.dark[r])} in dark mode` : a ? `${o} ${n(s.light[r])} in light mode` : `${o} ${n(s.dark[r])} in dark mode`;
|
|
95
|
-
}
|
|
96
|
-
function h(o, e) {
|
|
97
|
-
return JSON.stringify(o) === JSON.stringify(e);
|
|
98
|
-
}
|
|
99
|
-
const u = ["light", "dark"], O = ["reset", "spacing", "canvasPadding", "cards", "canvas", "border", "shadow", "corners", "chartColors", "barCorners"], E = ["spacing", "canvasPadding", "canvas", "cards", "border", "shadow", "corners", "chartColors", "barCorners"], J = /* @__PURE__ */ new Set(["canvas", "chartColors"]);
|
|
100
|
-
function or(o) {
|
|
101
|
-
const e = Y(o.edit);
|
|
102
|
-
if (e) return { ok: !1, refusal: e };
|
|
103
|
-
const s = V(o.style ?? {}, o.edit, o.mode), r = { defaults: o.layers.defaults, organizationAppearance: o.layers.organizationAppearance }, n = K(s, r), a = R({ ...r, dashboardStyle: o.style }), c = R({ ...r, dashboardStyle: n });
|
|
104
|
-
return { ok: !0, style: n, sentences: q({ edit: o.edit, before: a, after: c }) };
|
|
105
|
-
}
|
|
106
|
-
function Y(o) {
|
|
107
|
-
if ((x(o) ? Object.entries(o).filter(([s, r]) => r !== void 0 && !(s === "reset" && Array.isArray(r) && r.length === 0)) : []).length === 0)
|
|
108
|
-
return { field: "edit", code: "empty_edit", message: "The style edit changes nothing.", fix: 'Name a setting to change, like spacing: "roomy" or cards: "raised".' };
|
|
109
|
-
for (const [s, r] of Object.entries(o))
|
|
110
|
-
if (r !== void 0 && !O.includes(s))
|
|
111
|
-
return { field: s, code: "unknown_field", message: `${s} is not a dashboard style setting.`, fix: `Use one of ${O.join(", ")}.` };
|
|
112
|
-
if (o.reset !== void 0 && o.reset !== "all" && !(Array.isArray(o.reset) && o.reset.every((s) => E.includes(s))))
|
|
113
|
-
return { field: "reset", code: "invalid_value", message: 'Reset takes "all" or a list of settings.', fix: `Use "all" or some of ${E.join(", ")}.` };
|
|
114
|
-
if (o.spacing !== void 0 && !(typeof o.spacing == "string" && o.spacing in b)) {
|
|
115
|
-
const s = m("spacing", o.spacing);
|
|
116
|
-
if (s) return { ...s, fix: `${s.fix} Or name a step: none, compact, default or roomy.` };
|
|
117
|
-
}
|
|
118
|
-
for (const s of ["canvasPadding", "barCorners"]) {
|
|
119
|
-
const r = o[s] !== void 0 ? m(s, o[s]) : void 0;
|
|
120
|
-
if (r) return r;
|
|
121
|
-
}
|
|
122
|
-
if (o.cards !== void 0 && !(o.cards in p))
|
|
123
|
-
return { field: "cards", code: "invalid_value", message: "Cards are outlined, raised or open.", fix: "Use outlined, raised or open." };
|
|
124
|
-
if (o.border !== void 0 && o.border !== "on" && o.border !== "off")
|
|
125
|
-
return { field: "border", code: "invalid_value", message: "Card border is on or off.", fix: "Use on or off." };
|
|
126
|
-
if (o.shadow !== void 0 && !["none", "subtle", "raised"].includes(o.shadow))
|
|
127
|
-
return { field: "shadow", code: "invalid_value", message: "Card shadow is none, subtle or raised.", fix: "Use none, subtle or raised." };
|
|
128
|
-
if (o.corners !== void 0)
|
|
129
|
-
if (typeof o.corners == "string") {
|
|
130
|
-
if (!(o.corners in f))
|
|
131
|
-
return { field: "corners", code: "invalid_value", message: "Corners are square, subtle, rounded or round.", fix: "Use square, subtle, rounded or round, or give cards and controls in px." };
|
|
132
|
-
} else {
|
|
133
|
-
if (!x(o.corners) || o.corners.cards === void 0 && o.corners.controls === void 0)
|
|
134
|
-
return { field: "corners", code: "invalid_value", message: "Corners take a step or px for cards and controls.", fix: "Use a step like rounded, or { cards: 10, controls: 6 }." };
|
|
135
|
-
{
|
|
136
|
-
const s = o.corners.cards !== void 0 ? m("cardCorners", o.corners.cards) : void 0;
|
|
137
|
-
if (s) return s;
|
|
138
|
-
const r = o.corners.controls !== void 0 ? m("controlCorners", o.corners.controls) : void 0;
|
|
139
|
-
if (r) return r;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (o.canvas !== void 0)
|
|
143
|
-
for (const [s, r] of S(o.canvas)) {
|
|
144
|
-
if (s === void 0) return { field: "canvas", code: "unknown_field", message: "The canvas holds light and dark values only.", fix: "Give one fill, or { light, dark }." };
|
|
145
|
-
if (r !== "muted" && r !== "background" && !y(r))
|
|
146
|
-
return { field: s === "both" ? "canvas" : `canvas.${s}`, code: "invalid_colour", message: "The canvas is muted, background or a hex colour.", fix: "Use muted, background or a hex colour like #f4f4f5." };
|
|
147
|
-
}
|
|
148
|
-
if (o.chartColors !== void 0)
|
|
149
|
-
for (const [s, r] of S(o.chartColors)) {
|
|
150
|
-
const n = s === "both" ? "chartColors" : `chartColors.${s}`;
|
|
151
|
-
if (s === void 0) return { field: "chartColors", code: "unknown_field", message: "Chart colors hold light and dark lists only.", fix: "Give one list, or { light, dark }." };
|
|
152
|
-
if (!Array.isArray(r) || r.length < d.min || r.length > d.max)
|
|
153
|
-
return { field: n, code: "palette_size", message: `Chart colors take ${d.min} to ${d.max} colours.`, fix: `Chart colors take ${d.min} to ${d.max} hex colours, like #2563eb.` };
|
|
154
|
-
if (!r.every(y))
|
|
155
|
-
return { field: n, code: "invalid_colour", message: "Chart colors are hex colours.", fix: `Chart colors take ${d.min} to ${d.max} hex colours, like #2563eb.` };
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function V(o, e, s) {
|
|
159
|
-
let r = e.reset === "all" ? {} : structuredClone(o);
|
|
160
|
-
if (Array.isArray(e.reset))
|
|
161
|
-
for (const n of e.reset)
|
|
162
|
-
n === "spacing" && delete r.spacing, n === "canvasPadding" && delete r.canvasPadding, (n === "canvas" || n === "cards") && (r = P(r, "canvas", s)), (n === "border" || n === "cards") && delete r.cardBorder, (n === "shadow" || n === "cards") && delete r.cardShadow, n === "corners" && (delete r.cardCorners, delete r.controlCorners), n === "chartColors" && (r = P(r, "chartColors", s)), n === "barCorners" && delete r.barCorners;
|
|
163
|
-
if (typeof e.spacing == "string" ? (r.spacing = b[e.spacing], r.canvasPadding = b[e.spacing]) : typeof e.spacing == "number" && (r.spacing = e.spacing), e.cards) {
|
|
164
|
-
const n = p[e.cards];
|
|
165
|
-
r.cardBorder = n.cardBorder, r.cardShadow = n.cardShadow, r.canvas = { light: n.canvas, dark: n.canvas };
|
|
166
|
-
}
|
|
167
|
-
if (typeof e.corners == "string" ? (r.cardCorners = f[e.corners].cardCorners, r.controlCorners = f[e.corners].controlCorners) : e.corners && (e.corners.cards !== void 0 && (r.cardCorners = e.corners.cards), e.corners.controls !== void 0 && (r.controlCorners = e.corners.controls)), e.canvasPadding !== void 0 && (r.canvasPadding = e.canvasPadding), e.border !== void 0 && (r.cardBorder = e.border), e.shadow !== void 0 && (r.cardShadow = e.shadow), e.barCorners !== void 0 && (r.barCorners = e.barCorners), e.canvas !== void 0)
|
|
168
|
-
for (const [n, a] of S(e.canvas))
|
|
169
|
-
for (const c of n === "both" ? u : [n])
|
|
170
|
-
r.canvas = { ...r.canvas, [c]: y(a) ? a.toLowerCase() : a };
|
|
171
|
-
if (e.chartColors !== void 0)
|
|
172
|
-
for (const [n, a] of S(e.chartColors))
|
|
173
|
-
for (const c of n === "both" ? u : [n])
|
|
174
|
-
r.chartColors = { ...r.chartColors, [c]: a.map((t) => t.toLowerCase()) };
|
|
175
|
-
return r;
|
|
176
|
-
}
|
|
177
|
-
function K(o, e) {
|
|
178
|
-
const s = v(e), r = { light: l(s, "light"), dark: l(s, "dark") }, n = { ...o };
|
|
179
|
-
for (const a of g)
|
|
180
|
-
if (n[a] !== void 0)
|
|
181
|
-
if (J.has(a)) {
|
|
182
|
-
const c = { ...n[a] };
|
|
183
|
-
for (const t of u)
|
|
184
|
-
c[t] !== void 0 && D(c[t], r[t][a]) && delete c[t];
|
|
185
|
-
Object.keys(c).length > 0 ? n[a] = c : delete n[a];
|
|
186
|
-
} else u.every((c) => D(n[a], r[c][a])) && delete n[a];
|
|
187
|
-
return Object.keys(n).length > 0 ? n : void 0;
|
|
188
|
-
}
|
|
189
|
-
function R(o) {
|
|
190
|
-
const e = v(o);
|
|
191
|
-
return { light: l(e, "light"), dark: l(e, "dark") };
|
|
192
|
-
}
|
|
193
|
-
function m(o, e) {
|
|
194
|
-
const { min: s, max: r } = w[o];
|
|
195
|
-
if (typeof e == "number" && Number.isInteger(e) && e >= s && e <= r) return;
|
|
196
|
-
const n = typeof e != "number" || !Number.isFinite(e) ? "invalid_value" : Number.isInteger(e) ? "out_of_range" : "not_integer";
|
|
197
|
-
return { field: o, code: n, message: `${_(o)}.`, fix: `${_(o)}; use ${r} for the most.` };
|
|
198
|
-
}
|
|
199
|
-
function S(o) {
|
|
200
|
-
return x(o) ? Object.entries(o).filter(([, e]) => e !== void 0).map(([e, s]) => [u.includes(e) ? e : void 0, s]) : [["both", o]];
|
|
201
|
-
}
|
|
202
|
-
function P(o, e, s) {
|
|
203
|
-
const r = { ...o[e] };
|
|
204
|
-
for (const a of s ? [s] : u) delete r[a];
|
|
205
|
-
const n = { ...o };
|
|
206
|
-
return Object.keys(r).length > 0 ? n[e] = r : delete n[e], n;
|
|
207
|
-
}
|
|
208
|
-
function D(o, e) {
|
|
209
|
-
return JSON.stringify(o) === JSON.stringify(e);
|
|
210
|
-
}
|
|
211
|
-
function x(o) {
|
|
212
|
-
return typeof o == "object" && o !== null && !Array.isArray(o);
|
|
213
|
-
}
|
|
214
|
-
export {
|
|
215
|
-
d as C,
|
|
216
|
-
w as D,
|
|
217
|
-
V as a,
|
|
218
|
-
rr as b,
|
|
219
|
-
Y as c,
|
|
220
|
-
q as d,
|
|
221
|
-
or as e,
|
|
222
|
-
Z as f,
|
|
223
|
-
_ as g,
|
|
224
|
-
y as i,
|
|
225
|
-
l as r
|
|
226
|
-
};
|