react-semaphor 0.1.462 → 0.1.464

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/appearance-runtime/index.cjs +1 -0
  2. package/dist/appearance-runtime/index.js +5 -0
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +1 -1
  5. package/dist/chunks/appearance-context-DVXt8qjW.js +126 -0
  6. package/dist/chunks/appearance-context-DhyjbQk1.cjs +1 -0
  7. package/dist/chunks/appearance-runtime-provider-BgNYdUYH.cjs +1 -0
  8. package/dist/chunks/appearance-runtime-provider-CjmE4gBY.js +81 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-Qto0i-Gl.cjs → dashboard-briefing-launcher-BSMtcAgE.cjs} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-C6ePN5_I.js → dashboard-briefing-launcher-CTozRa6c.js} +23 -21
  11. package/dist/chunks/{dashboard-controls--Wg8-58g.cjs → dashboard-controls-CmK7U1hI.cjs} +1 -1
  12. package/dist/chunks/{dashboard-controls-CJcvFl2B.js → dashboard-controls-wuo6PrDm.js} +8 -6
  13. package/dist/chunks/dashboard-json-7BQDKnHy.cjs +1 -0
  14. package/dist/chunks/{dashboard-json-DFhvCpHL.js → dashboard-json-C9qvau-c.js} +12 -10
  15. package/dist/chunks/{edit-dashboard-visual-D2JLKep9.cjs → edit-dashboard-visual-BSWdyT4u.cjs} +28 -28
  16. package/dist/chunks/{edit-dashboard-visual-Dhx5wAKM.js → edit-dashboard-visual-CHlsiGOo.js} +52 -50
  17. package/dist/chunks/{editor-action-buttons-C_wg1zTn.js → editor-action-buttons-B0o-qU4l.js} +2 -2
  18. package/dist/chunks/{editor-action-buttons-Ba8M_DAF.cjs → editor-action-buttons-DMnbVoBJ.cjs} +1 -1
  19. package/dist/chunks/{index-HMTOcZOr.js → index-DQvtZ1gG.js} +16909 -16952
  20. package/dist/chunks/{index-BAN1CQ6R.cjs → index-DqMJN4lZ.cjs} +164 -164
  21. package/dist/chunks/{report-preferences-dialog-Ditwc9JX.js → report-preferences-dialog-BP4YC4D_.js} +2 -2
  22. package/dist/chunks/{report-preferences-dialog-BaVeLREU.cjs → report-preferences-dialog-CkKbfjRg.cjs} +1 -1
  23. package/dist/chunks/{switch-DBZsEV0U.cjs → switch-CNqDn5b8.cjs} +26 -26
  24. package/dist/chunks/{switch-kPUJEC1A.js → switch-G_-UwdXX.js} +2721 -2842
  25. package/dist/dashboard/index.cjs +1 -1
  26. package/dist/dashboard/index.js +1 -1
  27. package/dist/data-app-builder/index.cjs +1 -1
  28. package/dist/data-app-builder/index.js +2 -2
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.js +152 -150
  31. package/dist/surfboard/index.cjs +1 -1
  32. package/dist/surfboard/index.js +2 -2
  33. package/dist/types/appearance-runtime.d.ts +151 -0
  34. package/package.json +8 -2
  35. package/dist/chunks/dashboard-json-DXrlNlUM.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/appearance-runtime-provider-BgNYdUYH.cjs");exports.AppearanceRuntimeProvider=e.AppearanceRuntimeProvider;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ import { A as a } from "../chunks/appearance-runtime-provider-CjmE4gBY.js";
3
+ export {
4
+ a as AppearanceRuntimeProvider
5
+ };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),d=require("../chunks/switch-DBZsEV0U.cjs"),oe=require("../chunks/color-CyB5o13F.cjs"),L=require("../chunks/x-B6ghREd2.cjs");require("../chunks/saved-temporal-bucket-format-3QKveR3v.cjs");require("../chunks/validators-dJlwubP4.cjs");require("../chunks/analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const W=require("../chunks/index-ByFbacH7.cjs"),_=require("../chunks/palette-BN-jYtaK.cjs"),fe=require("../chunks/braces-v55uLCAK.cjs"),me=require("../chunks/save-3dYRmehL.cjs"),xe=require("../chunks/layout-grid-xm8pqtx0.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),d=require("../chunks/switch-CNqDn5b8.cjs"),oe=require("../chunks/color-CyB5o13F.cjs"),L=require("../chunks/x-B6ghREd2.cjs");require("../chunks/saved-temporal-bucket-format-3QKveR3v.cjs");require("../chunks/validators-dJlwubP4.cjs");require("../chunks/analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const W=require("../chunks/index-ByFbacH7.cjs"),_=require("../chunks/palette-BN-jYtaK.cjs"),fe=require("../chunks/braces-v55uLCAK.cjs"),me=require("../chunks/save-3dYRmehL.cjs"),xe=require("../chunks/layout-grid-xm8pqtx0.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as d, jsx as r, Fragment as ce } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { c as q, P as ge, a as be, B as C, b as fe, U as De, C as Ie, R as me, L as le, S as se, d as Je, T as je, F as Le, G as U, H as $e, I as M, J as _e, K as Ve, M as Ue, N as Me, O as E, Q as K, V as Q, W as ee, X as he, Y as re, Z as oe, _ as ke, $ as xe, a0 as ye, a1 as ve, a2 as Ce, a3 as Ge } from "../chunks/switch-kPUJEC1A.js";
3
+ import { c as q, P as ge, a as be, B as C, b as fe, U as De, C as Ie, R as me, L as le, S as se, d as Je, T as je, F as Le, G as U, H as $e, I as M, J as _e, K as Ve, M as Ue, N as Me, O as E, Q as K, V as Q, W as ee, X as he, Y as re, Z as oe, _ as ke, $ as xe, a0 as ye, a1 as ve, a2 as Ce, a3 as Ge } from "../chunks/switch-G_-UwdXX.js";
4
4
  import { A as We, p as He } from "../chunks/color-CJvdlFM_.js";
5
5
  import { c as ae, X as Xe } from "../chunks/x-CXDkqdur.js";
6
6
  import "../chunks/saved-temporal-bucket-format-Dd2eixTH.js";
@@ -0,0 +1,126 @@
1
+ import { createContext as g, useContext as C } from "react";
2
+ import { c as E } from "./color-CJvdlFM_.js";
3
+ import { S as v, a as _, r as k } from "./index-DSKR3nKn.js";
4
+ const P = {
5
+ background: "--semaphor-background",
6
+ foreground: "--semaphor-foreground",
7
+ muted: "--semaphor-muted",
8
+ mutedForeground: "--semaphor-muted-foreground",
9
+ border: "--semaphor-border",
10
+ input: "--semaphor-input",
11
+ primary: "--semaphor-primary",
12
+ primaryForeground: "--semaphor-primary-foreground",
13
+ accent: "--semaphor-accent",
14
+ accentForeground: "--semaphor-accent-foreground",
15
+ card: "--semaphor-card",
16
+ cardForeground: "--semaphor-card-foreground",
17
+ positive: "--semaphor-positive",
18
+ negative: "--semaphor-negative",
19
+ warning: "--semaphor-warning",
20
+ info: "--semaphor-info",
21
+ destructive: "--semaphor-destructive",
22
+ destructiveForeground: "--semaphor-destructive-foreground"
23
+ }, R = {
24
+ light: {
25
+ "--semaphor-code-string": "158 64% 22%",
26
+ "--semaphor-code-number": "158 64% 22%",
27
+ "--semaphor-code-boolean": "158 64% 22%",
28
+ "--semaphor-code-fn": "217 91% 40%",
29
+ "--semaphor-code-keyword": "263 70% 42%"
30
+ },
31
+ dark: {
32
+ "--semaphor-code-string": "158 64% 52%",
33
+ "--semaphor-code-number": "158 64% 52%",
34
+ "--semaphor-code-boolean": "158 64% 52%",
35
+ "--semaphor-code-fn": "213 94% 68%",
36
+ "--semaphor-code-keyword": "264 89% 74%"
37
+ }
38
+ };
39
+ function T(o) {
40
+ var a, c, s, d, f, h, u, i;
41
+ const e = o.defaults ?? v, n = o.mode ?? O(o.spec.mode, o.systemMode), r = o.spec.schemes[n] ?? e.schemes[n], m = ((a = r.tokens) == null ? void 0 : a.color) ?? {}, t = {
42
+ ...R[n]
43
+ };
44
+ for (const [p, A] of Object.entries(P)) {
45
+ const l = m[p];
46
+ if (!l) continue;
47
+ const F = E(l);
48
+ if (!F)
49
+ throw new Error(`Invalid compiled appearance color for ${p}`);
50
+ t[A] = F;
51
+ }
52
+ return z(t, (c = r.tokens) == null ? void 0 : c.radius), x(t, (s = r.tokens) == null ? void 0 : s.typography), {
53
+ mode: n,
54
+ scheme: r,
55
+ cssVariables: t,
56
+ colorValues: m,
57
+ chartPalette: ((f = (d = r.components) == null ? void 0 : d.chart) == null ? void 0 : f.palette) ?? ((u = (h = e.schemes[n].components) == null ? void 0 : h.chart) == null ? void 0 : u.palette) ?? _,
58
+ table: (i = r.components) == null ? void 0 : i.table
59
+ };
60
+ }
61
+ function x(o, e) {
62
+ e != null && e.fontFamily && (o["--semaphor-font-family"] = e.fontFamily), e != null && e.headingFontFamily && (o["--semaphor-heading-font-family"] = e.headingFontFamily), e != null && e.monoFontFamily && (o["--semaphor-mono-font-family"] = e.monoFontFamily), (e == null ? void 0 : e.baseFontSize) !== void 0 && (o["--semaphor-font-size"] = `${e.baseFontSize}px`);
63
+ }
64
+ function z(o, e) {
65
+ o["--semaphor-brand"] = o["--semaphor-primary"] ?? o["--semaphor-foreground"], o["--semaphor-secondary"] = o["--semaphor-accent"] ?? o["--semaphor-muted"], o["--semaphor-secondary-foreground"] = o["--semaphor-accent-foreground"] ?? o["--semaphor-foreground"], o["--semaphor-popover"] = o["--semaphor-card"] ?? o["--semaphor-background"], o["--semaphor-popover-foreground"] = o["--semaphor-card-foreground"] ?? o["--semaphor-foreground"], o["--semaphor-ring"] = o["--semaphor-primary"] ?? o["--semaphor-foreground"];
66
+ const n = S((e == null ? void 0 : e.control) ?? 5), r = S((e == null ? void 0 : e.card) ?? (e == null ? void 0 : e.control) ?? 5);
67
+ o["--semaphor-radius"] = n, o["--semaphor-control-radius"] = n, o["--semaphor-card-radius"] = r;
68
+ }
69
+ function S(o) {
70
+ return `${Number((o / 16).toFixed(4))}rem`;
71
+ }
72
+ function O(o, e = "light") {
73
+ return o === "system" ? e : o;
74
+ }
75
+ const w = T({
76
+ spec: k(),
77
+ mode: "light"
78
+ }), M = g(
79
+ D(
80
+ "semaphor-default-appearance",
81
+ w
82
+ )
83
+ );
84
+ function $() {
85
+ return C(M);
86
+ }
87
+ function D(o, e) {
88
+ return {
89
+ instanceId: o,
90
+ compiledAppearance: e,
91
+ scopeProps: H(o, e),
92
+ portalSnapshot: {
93
+ instanceId: o,
94
+ compiledAppearance: e
95
+ }
96
+ };
97
+ }
98
+ function H(o, e) {
99
+ return {
100
+ className: e.mode,
101
+ style: L(e),
102
+ "data-semaphor-theme": e.mode,
103
+ "data-semaphor-appearance-instance": o
104
+ };
105
+ }
106
+ function L(o) {
107
+ var t, a;
108
+ const e = {
109
+ colorScheme: o.mode
110
+ };
111
+ o.cssVariables["--semaphor-font-family"] && (e.fontFamily = "var(--semaphor-font-family)");
112
+ const r = (t = o.scheme.tokens) == null ? void 0 : t.typography, m = (a = v.schemes[o.mode].tokens) == null ? void 0 : a.typography;
113
+ (r == null ? void 0 : r.baseFontSize) !== void 0 && r.baseFontSize !== (m == null ? void 0 : m.baseFontSize) && (e.fontSize = r.baseFontSize);
114
+ for (const [c, s] of Object.entries(
115
+ o.cssVariables
116
+ ))
117
+ e[c] = s;
118
+ return e;
119
+ }
120
+ export {
121
+ M as A,
122
+ D as a,
123
+ P as b,
124
+ T as c,
125
+ $ as u
126
+ };
@@ -0,0 +1 @@
1
+ "use strict";const C=require("react"),g=require("./color-CyB5o13F.cjs"),d=require("./index-ByFbacH7.cjs"),E={background:"--semaphor-background",foreground:"--semaphor-foreground",muted:"--semaphor-muted",mutedForeground:"--semaphor-muted-foreground",border:"--semaphor-border",input:"--semaphor-input",primary:"--semaphor-primary",primaryForeground:"--semaphor-primary-foreground",accent:"--semaphor-accent",accentForeground:"--semaphor-accent-foreground",card:"--semaphor-card",cardForeground:"--semaphor-card-foreground",positive:"--semaphor-positive",negative:"--semaphor-negative",warning:"--semaphor-warning",info:"--semaphor-info",destructive:"--semaphor-destructive",destructiveForeground:"--semaphor-destructive-foreground"},k={light:{"--semaphor-code-string":"158 64% 22%","--semaphor-code-number":"158 64% 22%","--semaphor-code-boolean":"158 64% 22%","--semaphor-code-fn":"217 91% 40%","--semaphor-code-keyword":"263 70% 42%"},dark:{"--semaphor-code-string":"158 64% 52%","--semaphor-code-number":"158 64% 52%","--semaphor-code-boolean":"158 64% 52%","--semaphor-code-fn":"213 94% 68%","--semaphor-code-keyword":"264 89% 74%"}};function _(e){var a,c,s,u,f,p,h,i;const o=e.defaults??d.SEMAPHOR_DEFAULT_APPEARANCE_SPEC,n=e.mode??x(e.spec.mode,e.systemMode),r=e.spec.schemes[n]??o.schemes[n],m=((a=r.tokens)==null?void 0:a.color)??{},t={...k[n]};for(const[l,R]of Object.entries(E)){const A=m[l];if(!A)continue;const F=g.compileColorToHslTriplet(A);if(!F)throw new Error(`Invalid compiled appearance color for ${l}`);t[R]=F}return T(t,(c=r.tokens)==null?void 0:c.radius),O(t,(s=r.tokens)==null?void 0:s.typography),{mode:n,scheme:r,cssVariables:t,colorValues:m,chartPalette:((f=(u=r.components)==null?void 0:u.chart)==null?void 0:f.palette)??((h=(p=o.schemes[n].components)==null?void 0:p.chart)==null?void 0:h.palette)??d.SEMAPHOR_DEFAULT_CHART_PALETTE,table:(i=r.components)==null?void 0:i.table}}function O(e,o){o!=null&&o.fontFamily&&(e["--semaphor-font-family"]=o.fontFamily),o!=null&&o.headingFontFamily&&(e["--semaphor-heading-font-family"]=o.headingFontFamily),o!=null&&o.monoFontFamily&&(e["--semaphor-mono-font-family"]=o.monoFontFamily),(o==null?void 0:o.baseFontSize)!==void 0&&(e["--semaphor-font-size"]=`${o.baseFontSize}px`)}function T(e,o){e["--semaphor-brand"]=e["--semaphor-primary"]??e["--semaphor-foreground"],e["--semaphor-secondary"]=e["--semaphor-accent"]??e["--semaphor-muted"],e["--semaphor-secondary-foreground"]=e["--semaphor-accent-foreground"]??e["--semaphor-foreground"],e["--semaphor-popover"]=e["--semaphor-card"]??e["--semaphor-background"],e["--semaphor-popover-foreground"]=e["--semaphor-card-foreground"]??e["--semaphor-foreground"],e["--semaphor-ring"]=e["--semaphor-primary"]??e["--semaphor-foreground"];const n=S((o==null?void 0:o.control)??5),r=S((o==null?void 0:o.card)??(o==null?void 0:o.control)??5);e["--semaphor-radius"]=n,e["--semaphor-control-radius"]=n,e["--semaphor-card-radius"]=r}function S(e){return`${Number((e/16).toFixed(4))}rem`}function x(e,o="light"){return e==="system"?o:e}const z=_({spec:d.resolveAppearance(),mode:"light"}),v=C.createContext(P("semaphor-default-appearance",z));function L(){return C.useContext(v)}function P(e,o){return{instanceId:e,compiledAppearance:o,scopeProps:M(e,o),portalSnapshot:{instanceId:e,compiledAppearance:o}}}function M(e,o){return{className:o.mode,style:w(o),"data-semaphor-theme":o.mode,"data-semaphor-appearance-instance":e}}function w(e){var t,a;const o={colorScheme:e.mode};e.cssVariables["--semaphor-font-family"]&&(o.fontFamily="var(--semaphor-font-family)");const r=(t=e.scheme.tokens)==null?void 0:t.typography,m=(a=d.SEMAPHOR_DEFAULT_APPEARANCE_SPEC.schemes[e.mode].tokens)==null?void 0:a.typography;(r==null?void 0:r.baseFontSize)!==void 0&&r.baseFontSize!==(m==null?void 0:m.baseFontSize)&&(o.fontSize=r.baseFontSize);for(const[c,s]of Object.entries(e.cssVariables))o[c]=s;return o}exports.APPEARANCE_COLOR_CSS_VARS=E;exports.AppearanceContext=v;exports.compileAppearance=_;exports.createAppearanceContextValue=P;exports.useAppearance=L;
@@ -0,0 +1 @@
1
+ "use strict";const f=require("react/jsx-runtime"),r=require("react"),d=require("./appearance-context-DhyjbQk1.cjs"),y=require("./index-ByFbacH7.cjs"),T={theme:"system",setTheme:()=>null},l=r.createContext(T);function M(e,n="system"){return A(e)?e:n}function A(e){return e==="light"||e==="dark"||e==="system"}function C(e){return f.jsx(v,{...e})}function v({appearance:e,organizationAppearance:n,tokenAppearance:a,reactAppearance:i,resolvedAppearance:t,systemMode:o,children:m}){const s=r.useId(),c=r.useMemo(()=>I(s),[s]),{theme:x}=r.useContext(l),u=P(x),p=r.useMemo(()=>t??y.resolveAppearance({organizationAppearance:n,tokenAppearance:a,reactAppearance:i??e}),[e,n,i,t,a]),h=r.useMemo(()=>d.compileAppearance({spec:p,systemMode:o??u}),[p,u,o]),w=r.useMemo(()=>d.createAppearanceContextValue(c,h),[h,c]);return f.jsx(d.AppearanceContext.Provider,{value:w,children:m})}function I(e){return`semaphor-appearance-${e.replace(/[^a-zA-Z0-9_-]/g,"")}`}function P(e){const n=M(e),[a,i]=r.useState(()=>R());return r.useEffect(()=>{var m,s;if(n!=="system"||typeof window>"u")return;const t=(m=window.matchMedia)==null?void 0:m.call(window,"(prefers-color-scheme: dark)");if(!t)return;const o=()=>{i(t.matches?"dark":"light")};return o(),typeof t.addEventListener=="function"?(t.addEventListener("change",o),()=>t.removeEventListener("change",o)):((s=t.addListener)==null||s.call(t,o),()=>{var c;return(c=t.removeListener)==null?void 0:c.call(t,o)})},[n]),n==="system"?a:n}function R(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}exports.AppearanceRuntimeProvider=C;exports.InternalAppearanceRuntimeProvider=v;exports.ThemeProviderContext=l;exports.normalizeTheme=M;
@@ -0,0 +1,81 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { createContext as w, useId as y, useMemo as m, useContext as M, useState as v, useEffect as A } from "react";
3
+ import { c as T, a as x, A as I } from "./appearance-context-DVXt8qjW.js";
4
+ import { r as g } from "./index-DSKR3nKn.js";
5
+ const k = {
6
+ theme: "system",
7
+ setTheme: () => null
8
+ }, C = w(k);
9
+ function L(e, n = "system") {
10
+ return S(e) ? e : n;
11
+ }
12
+ function S(e) {
13
+ return e === "light" || e === "dark" || e === "system";
14
+ }
15
+ function $(e) {
16
+ return /* @__PURE__ */ f(E, { ...e });
17
+ }
18
+ function E({
19
+ appearance: e,
20
+ organizationAppearance: n,
21
+ tokenAppearance: a,
22
+ reactAppearance: c,
23
+ resolvedAppearance: t,
24
+ systemMode: r,
25
+ children: i
26
+ }) {
27
+ const o = y(), s = m(() => P(o), [o]), { theme: h } = M(C), d = z(h), u = m(
28
+ () => t ?? g({
29
+ organizationAppearance: n,
30
+ tokenAppearance: a,
31
+ reactAppearance: c ?? e
32
+ }),
33
+ [
34
+ e,
35
+ n,
36
+ c,
37
+ t,
38
+ a
39
+ ]
40
+ ), p = m(
41
+ () => T({
42
+ spec: u,
43
+ systemMode: r ?? d
44
+ }),
45
+ [u, d, r]
46
+ ), l = m(
47
+ () => x(s, p),
48
+ [p, s]
49
+ );
50
+ return /* @__PURE__ */ f(I.Provider, { value: l, children: i });
51
+ }
52
+ function P(e) {
53
+ return `semaphor-appearance-${e.replace(/[^a-zA-Z0-9_-]/g, "")}`;
54
+ }
55
+ function z(e) {
56
+ const n = L(e), [a, c] = v(
57
+ () => R()
58
+ );
59
+ return A(() => {
60
+ var i, o;
61
+ if (n !== "system" || typeof window > "u") return;
62
+ const t = (i = window.matchMedia) == null ? void 0 : i.call(window, "(prefers-color-scheme: dark)");
63
+ if (!t) return;
64
+ const r = () => {
65
+ c(t.matches ? "dark" : "light");
66
+ };
67
+ return r(), typeof t.addEventListener == "function" ? (t.addEventListener("change", r), () => t.removeEventListener("change", r)) : ((o = t.addListener) == null || o.call(t, r), () => {
68
+ var s;
69
+ return (s = t.removeListener) == null ? void 0 : s.call(t, r);
70
+ });
71
+ }, [n]), n === "system" ? a : n;
72
+ }
73
+ function R() {
74
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
75
+ }
76
+ export {
77
+ $ as A,
78
+ E as I,
79
+ C as T,
80
+ L as n
81
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),s=require("./index-BAN1CQ6R.cjs"),n=require("./switch-DBZsEV0U.cjs"),Ce=require("./layout-grid-xm8pqtx0.cjs"),K=require("./x-B6ghREd2.cjs"),V=require("./editor-action-buttons-Ba8M_DAF.cjs"),we=require("./saved-temporal-bucket-format-3QKveR3v.cjs");require("./validators-dJlwubP4.cjs");require("./analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const Ue=require("./search-BqqhaMx9.cjs"),Oe=require("./mouse-pointer-2-DX4A_XZw.cjs"),Ne=require("./pivot-header-presentation-BijPbP33.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-BK1UhYpD.cjs");require("./color-CyB5o13F.cjs");require("react-dom");const X=require("./index-DjjKJPDy.cjs");/**
1
+ "use strict";const e=require("react/jsx-runtime"),p=require("react"),s=require("./index-DqMJN4lZ.cjs"),n=require("./switch-CNqDn5b8.cjs"),Ce=require("./layout-grid-xm8pqtx0.cjs"),K=require("./x-B6ghREd2.cjs"),V=require("./editor-action-buttons-DMnbVoBJ.cjs"),we=require("./saved-temporal-bucket-format-3QKveR3v.cjs");require("./validators-dJlwubP4.cjs");require("./analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const Ue=require("./search-BqqhaMx9.cjs"),Oe=require("./mouse-pointer-2-DX4A_XZw.cjs"),Ne=require("./pivot-header-presentation-BijPbP33.cjs");require("./appearance-runtime-provider-BgNYdUYH.cjs");require("./appearance-context-DhyjbQk1.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-BK1UhYpD.cjs");require("./color-CyB5o13F.cjs");require("react-dom");const X=require("./index-DjjKJPDy.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as r, Fragment as W } from "react/jsx-runtime";
2
2
  import Wt, { useState as E, useEffect as Q, useMemo as ee, useContext as Ht, useRef as he, useCallback as K } from "react";
3
- import { cm as et, aH as De, aI as ke, aK as Ae, bb as wt, bY as Gt, cn as Kt, co as qt, aZ as fe, ca as Nt, bl as Pe, s as Xt, o as Zt, cp as Qt, aP as tt, aS as rt, aT as at, aU as nt, aV as st, aW as ot, aX as it, aY as St, bk as lt, aG as O, cq as Yt, cr as Jt, cs as qe, cb as $e, cc as je, ct as Dt, cd as We, bW as G, b1 as er, bB as Me, cu as tr, bV as rr, aJ as ct, aL as dt, cv as ar, aF as nr, ba as sr, bw as kt, cw as or, bZ as ir, u as lr, aM as cr, b3 as dr, az as He, O as ue, aw as ut, as as At, at as ht, P as Et, ar as ur, ay as hr, ch as mr, cx as pr, bu as fr, au as gt, R as gr, T as br, cy as xr, cz as vr, cA as yr, cB as Cr, cC as wr, cD as Nr, cE as It, cF as Sr, b4 as Dr, cG as kr, ce as Ft, cH as Ar, cI as Er, cJ as Re, cK as Ir, cL as Fr, cM as Lr, an as Br, ap as Tr, a3 as Vr, a2 as Rr, a1 as Ur, a0 as Pr, Z as Mr, X as Or, cN as _r, cO as zr, cP as $r, cQ as jr, cR as Wr, al as Hr, cS as Gr, cT as Kr, a9 as qr, cU as Xr, cV as Zr, cW as Qr } from "./index-HMTOcZOr.js";
4
- import { B, O as Se, Z as Ye, L as te, M as Lt, d as Bt, c as q, K as Yr, D as ge, u as P, z as be, aw as Tt, av as Je, E as Vt, P as Oe, a as _e, b as ze, aH as Jr, aI as ea, S as Rt, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./switch-kPUJEC1A.js";
3
+ import { cm as et, aH as De, aI as ke, aK as Ae, bb as wt, bY as Gt, cn as Kt, co as qt, aZ as fe, ca as Nt, bl as Pe, s as Xt, o as Zt, cp as Qt, aP as tt, aS as rt, aT as at, aU as nt, aV as st, aW as ot, aX as it, aY as St, bk as lt, aG as O, cq as Yt, cr as Jt, cs as qe, cb as $e, cc as je, ct as Dt, cd as We, bW as G, b1 as er, bB as Me, cu as tr, bV as rr, aJ as ct, aL as dt, cv as ar, aF as nr, ba as sr, bw as kt, cw as or, bZ as ir, u as lr, aM as cr, b3 as dr, az as He, O as ue, aw as ut, as as At, at as ht, P as Et, ar as ur, ay as hr, ch as mr, cx as pr, bu as fr, au as gt, R as gr, T as br, cy as xr, cz as vr, cA as yr, cB as Cr, cC as wr, cD as Nr, cE as It, cF as Sr, b4 as Dr, cG as kr, ce as Ft, cH as Ar, cI as Er, cJ as Re, cK as Ir, cL as Fr, cM as Lr, an as Br, ap as Tr, a3 as Vr, a2 as Rr, a1 as Ur, a0 as Pr, Z as Mr, X as Or, cN as _r, cO as zr, cP as $r, cQ as jr, cR as Wr, al as Hr, cS as Gr, cT as Kr, a9 as qr, cU as Xr, cV as Zr, cW as Qr } from "./index-DQvtZ1gG.js";
4
+ import { B, O as Se, Z as Ye, L as te, M as Lt, d as Bt, c as q, K as Yr, D as ge, u as P, z as be, aw as Tt, av as Je, E as Vt, P as Oe, a as _e, b as ze, aH as Jr, aI as ea, S as Rt, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./switch-G_-UwdXX.js";
5
5
  import { L as mt } from "./layout-grid-CiubineE.js";
6
6
  import { c as Ee, X as Ge, C as Ut } from "./x-CXDkqdur.js";
7
- import { u as pt, V as oa, E as Xe, a as Ze, b as ia, c as la, L as ca, d as da, e as Pt, C as Mt, F as ua, f as ha } from "./editor-action-buttons-C_wg1zTn.js";
7
+ import { u as pt, V as oa, E as Xe, a as Ze, b as ia, c as la, L as ca, d as da, e as Pt, C as Mt, F as ua, f as ha } from "./editor-action-buttons-B0o-qU4l.js";
8
8
  import { v as bt } from "./saved-temporal-bucket-format-Dd2eixTH.js";
9
9
  import "./validators-DVd8s3qY.js";
10
10
  import "./analyze-result-contract-DROq4vgY.js";
@@ -12,6 +12,8 @@ import "../value-format-preferences/index.js";
12
12
  import { S as ma } from "./search-BHsQIWBV.js";
13
13
  import { M as pa } from "./mouse-pointer-2-BZvGk45-.js";
14
14
  import { u as xt } from "./pivot-header-presentation-DW0gKG8g.js";
15
+ import "./appearance-runtime-provider-CjmE4gBY.js";
16
+ import "./appearance-context-DVXt8qjW.js";
15
17
  import "./index-DSKR3nKn.js";
16
18
  import "./temporal-bucket-authoring-1fZuPAVb.js";
17
19
  import "./color-CJvdlFM_.js";
@@ -232,7 +234,7 @@ function Da({ visual: t }) {
232
234
  const a = t.ownership.status === "public" ? "Public" : t.ownership.status === "shared" || t.ownership.sharedCount > 0 ? "Shared" : "Private";
233
235
  return /* @__PURE__ */ e("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
234
236
  }
235
- function zn({
237
+ function jn({
236
238
  open: t,
237
239
  onOpenChange: a
238
240
  }) {
@@ -1049,7 +1051,7 @@ function Fa() {
1049
1051
  isSaving: A.isPending
1050
1052
  };
1051
1053
  }
1052
- function $n(t = {}) {
1054
+ function Wn(t = {}) {
1053
1055
  const { isInspectionMode: a } = ir(), o = ge((k) => k.frame), n = ge((k) => k.editorContext), i = lr((k) => k.selectedVisual), s = P((k) => k.selectedFrameId), d = P((k) => k.selectedSheetId), p = P((k) => k.dashboard), { setIsVisualEditing: l, updateFrame: u } = be(), [c, m] = E(!1), [h, f] = E("both"), x = kt(), C = (n == null ? void 0 : n.type) === "documentSection", N = !!(o != null && o.visualId || i != null && i.id), I = !!(o != null && o.visualId && s), D = N && !I, {
1054
1056
  saveAsDialogOpen: b,
1055
1057
  setSaveAsDialogOpen: S,
@@ -1201,7 +1203,7 @@ function $n(t = {}) {
1201
1203
  )
1202
1204
  ] });
1203
1205
  }
1204
- function jn({ className: t }) {
1206
+ function Hn({ className: t }) {
1205
1207
  const a = ge((u) => u.isDevMode), o = P((u) => u.isVisualEditing), { setIsDevMode: n } = Vt(), { config: i } = Ht(cr).tokenProps, s = (i == null ? void 0 : i.showAdvancedMode) !== !1;
1206
1208
  if (!o || !s)
1207
1209
  return null;
@@ -1224,7 +1226,7 @@ function jn({ className: t }) {
1224
1226
  }
1225
1227
  );
1226
1228
  }
1227
- function Wn({
1229
+ function Gn({
1228
1230
  open: t,
1229
1231
  onOpenChange: a,
1230
1232
  onSave: o,
@@ -1269,7 +1271,7 @@ function Ua(t) {
1269
1271
  const a = Date.now() - t.getTime();
1270
1272
  return a < Va ? La : a < Ra ? Ba : Ta;
1271
1273
  }
1272
- function Hn() {
1274
+ function Kn() {
1273
1275
  const { authToken: t, tokenProps: a } = He(), o = ue((h) => h.activeExports), [n, i] = E(
1274
1276
  typeof document < "u" ? !document.hidden : !0
1275
1277
  ), s = he(null), d = he(!1), p = he(void 0), l = a == null ? void 0 : a.apiServiceUrl, u = t == null ? void 0 : t.accessToken, c = K(() => {
@@ -1383,7 +1385,7 @@ function Hn() {
1383
1385
  inProgressCount: c().length
1384
1386
  };
1385
1387
  }
1386
- function Gn() {
1388
+ function qn() {
1387
1389
  const { authToken: t, tokenProps: a } = He(), o = ue((p) => p.activeExports), { addExport: n } = Et(), i = he(!1), s = a == null ? void 0 : a.apiServiceUrl, d = t == null ? void 0 : t.accessToken;
1388
1390
  Q(() => {
1389
1391
  if (i.current || !s || !d) return;
@@ -1667,7 +1669,7 @@ function Oa() {
1667
1669
  )) }) })
1668
1670
  ] });
1669
1671
  }
1670
- function Kn({
1672
+ function Xn({
1671
1673
  variant: t
1672
1674
  }) {
1673
1675
  const a = ue((l) => l.activeExports), o = br(), n = a.size > 0, i = Array.from(a.values()).some(
@@ -2258,7 +2260,7 @@ function Ya({
2258
2260
  )
2259
2261
  ] });
2260
2262
  }
2261
- function qn({
2263
+ function Zn({
2262
2264
  size: t,
2263
2265
  className: a,
2264
2266
  primaryButtonClassName: o,
@@ -3015,7 +3017,7 @@ function vn({
3015
3017
  c.current || (c.current = !0, Xr(a.status) ? u(a) : Zr(a.status) && i(a));
3016
3018
  }, [a, i, u]), /* @__PURE__ */ e(Qr, { run: p, onExpand: d });
3017
3019
  }
3018
- function Xn(t) {
3020
+ function Qn(t) {
3019
3021
  return /* @__PURE__ */ e(Br, { children: /* @__PURE__ */ e(yn, { ...t }) });
3020
3022
  }
3021
3023
  function yn({
@@ -3407,19 +3409,19 @@ function Cn() {
3407
3409
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
3408
3410
  }
3409
3411
  export {
3410
- jn as A,
3412
+ Hn as A,
3411
3413
  za as D,
3412
3414
  Oa as E,
3413
- Kn as N,
3414
- Wn as U,
3415
- zn as V,
3415
+ Xn as N,
3416
+ Gn as U,
3417
+ jn as V,
3416
3418
  Ja as W,
3417
- $n as a,
3419
+ Wn as a,
3418
3420
  Ma as b,
3419
- Gn as c,
3421
+ qn as c,
3420
3422
  ja as d,
3421
3423
  qa as e,
3422
- qn as f,
3423
- Xn as g,
3424
- Hn as u
3424
+ Zn as f,
3425
+ Qn as g,
3426
+ Kn as u
3425
3427
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-DBZsEV0U.cjs"),s=require("./index-BAN1CQ6R.cjs"),U=require("./x-B6ghREd2.cjs");require("./saved-temporal-bucket-format-3QKveR3v.cjs");require("./validators-dJlwubP4.cjs");require("./analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const y=require("react");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-BK1UhYpD.cjs");require("./color-CyB5o13F.cjs");const cs=require("react-dom");require("./index-DjjKJPDy.cjs");const $=require("./dashboard-briefing-launcher-Qto0i-Gl.cjs"),wt=require("./search-BqqhaMx9.cjs"),St=require("./format-types-PSZZ7hG8.cjs"),us=require("./report-preferences-dialog-BaVeLREU.cjs"),ms=require("./use-debounced-dirty-check-XHSwAefL.cjs"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),xt=require("./save-3dYRmehL.cjs"),hs=require("./palette-BN-jYtaK.cjs"),ps=require("./braces-v55uLCAK.cjs");function fs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const M=fs(y);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-CNqDn5b8.cjs"),s=require("./index-DqMJN4lZ.cjs"),U=require("./x-B6ghREd2.cjs");require("./saved-temporal-bucket-format-3QKveR3v.cjs");require("./validators-dJlwubP4.cjs");require("./analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const y=require("react");require("./appearance-context-DhyjbQk1.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-BK1UhYpD.cjs");require("./color-CyB5o13F.cjs");const cs=require("react-dom");require("./index-DjjKJPDy.cjs");require("./appearance-runtime-provider-BgNYdUYH.cjs");const $=require("./dashboard-briefing-launcher-BSMtcAgE.cjs"),wt=require("./search-BqqhaMx9.cjs"),St=require("./format-types-PSZZ7hG8.cjs"),us=require("./report-preferences-dialog-CkKbfjRg.cjs"),ms=require("./use-debounced-dirty-check-XHSwAefL.cjs"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),xt=require("./save-3dYRmehL.cjs"),hs=require("./palette-BN-jYtaK.cjs"),ps=require("./braces-v55uLCAK.cjs");function fs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const M=fs(y);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
2
- import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as be, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-kPUJEC1A.js";
3
- import { bx as ma, by as pa, az as q, aH as dr, bz as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bA as ge, bB as Ge, bC as ba, bD as jt, bE as cr, bF as ur, bG as xa, bH as ht, bI as va, bJ as ya, bK as wa, bL as Na, bM as Sa, bN as Da, b8 as ve, bO as ye, aG as C, bP as Ca, bQ as mr, bl as ft, bR as ka, bS as Ea, bT as pr, bU as La, bV as hr, bW as V, bX as Ia, ap as Ma, bY as Aa, bZ as Pa, b_ as Oa, b$ as _a, n as Ra, u as Fe, t as Ua, o as rt, c0 as Va, c1 as Ta, c2 as Fa, c3 as $a, N as Ga, c4 as Ba, c5 as za, I as qt, c6 as Ha, c7 as ja, c8 as qa, c9 as Ka, ca as Wa, cb as Kt, cc as Wt, cd as Qt, ce as Qa, cf as Ja, cg as Ya, ch as Xa, b1 as Jt, ci as Za, cj as en, ck as tn, s as rn, cl as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-HMTOcZOr.js";
2
+ import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as be, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-G_-UwdXX.js";
3
+ import { bx as ma, by as pa, az as q, aH as dr, bz as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bA as ge, bB as Ge, bC as ba, bD as jt, bE as cr, bF as ur, bG as xa, bH as ht, bI as va, bJ as ya, bK as wa, bL as Na, bM as Sa, bN as Da, b8 as ve, bO as ye, aG as C, bP as Ca, bQ as mr, bl as ft, bR as ka, bS as Ea, bT as pr, bU as La, bV as hr, bW as V, bX as Ia, ap as Ma, bY as Aa, bZ as Pa, b_ as Oa, b$ as _a, n as Ra, u as Fe, t as Ua, o as rt, c0 as Va, c1 as Ta, c2 as Fa, c3 as $a, N as Ga, c4 as Ba, c5 as za, I as qt, c6 as Ha, c7 as ja, c8 as qa, c9 as Ka, ca as Wa, cb as Kt, cc as Wt, cd as Qt, ce as Qa, cf as Ja, cg as Ya, ch as Xa, b1 as Jt, ci as Za, cj as en, ck as tn, s as rn, cl as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-DQvtZ1gG.js";
4
4
  import { c as ee, X as fr, C as mn } from "./x-CXDkqdur.js";
5
5
  import "./saved-temporal-bucket-format-Dd2eixTH.js";
6
6
  import "./validators-DVd8s3qY.js";
@@ -8,15 +8,17 @@ import "./analyze-result-contract-DROq4vgY.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import * as I from "react";
10
10
  import gr, { useState as N, useMemo as Z, useEffect as ze, useRef as Xt, useLayoutEffect as pn, useCallback as hn } from "react";
11
+ import "./appearance-context-DVXt8qjW.js";
11
12
  import "./index-DSKR3nKn.js";
12
13
  import "./temporal-bucket-authoring-1fZuPAVb.js";
13
14
  import "./color-CJvdlFM_.js";
14
15
  import { createPortal as fn } from "react-dom";
15
16
  import "./index-De_7nrwb.js";
16
- import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-C6ePN5_I.js";
17
+ import "./appearance-runtime-provider-CjmE4gBY.js";
18
+ import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-CTozRa6c.js";
17
19
  import { S as Cn, C as kn } from "./search-BHsQIWBV.js";
18
20
  import { d as br } from "./format-types-CFHQoIuk.js";
19
- import { R as En } from "./report-preferences-dialog-Ditwc9JX.js";
21
+ import { R as En } from "./report-preferences-dialog-BP4YC4D_.js";
20
22
  import { u as Ln } from "./use-debounced-dirty-check-BwAbnX_5.js";
21
23
  import { s as at } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
22
24
  import { S as Zt } from "./save-DgMfP0j8.js";
@@ -1678,7 +1680,7 @@ function nr(t, n) {
1678
1680
  semanticExecutionPayload: lt(n)
1679
1681
  };
1680
1682
  }
1681
- function Ks() {
1683
+ function Qs() {
1682
1684
  var _t, Rt, Ut, Vt, Tt;
1683
1685
  gn(), bn();
1684
1686
  const {
@@ -2406,5 +2408,5 @@ function Ss({
2406
2408
  return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", s || "portrait"), h.searchParams.set("url", p.toString()), h.toString();
2407
2409
  }
2408
2410
  export {
2409
- Ks as default
2411
+ Qs as default
2410
2412
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./x-B6ghREd2.cjs"),r=require("./switch-CNqDn5b8.cjs");require("./saved-temporal-bucket-format-3QKveR3v.cjs");require("./validators-dJlwubP4.cjs");require("./analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");require("./index-DqMJN4lZ.cjs");require("./appearance-runtime-provider-BgNYdUYH.cjs");require("./appearance-context-DhyjbQk1.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-BK1UhYpD.cjs");require("./color-CyB5o13F.cjs");require("react-dom");require("./index-DjjKJPDy.cjs");function S(){const t=r.useDashboardStore(e=>e.dashboard),d=r.useDashboardStore(e=>e.actions.setDashboard),c=r.useDashboardStore(e=>e.showDashboardJSON),h=r.useDashboardStore(e=>e.actions.setShowDashboardJSON),s=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,n]=o.useState(s),i=o.useRef(s);return o.useEffect(()=>{s!==i.current&&(n(s),i.current=s)},[s]),a.jsxs("div",{className:r.cn("relative p-2",{hidden:!c}),children:[a.jsxs(r.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(b.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(r.CodeEditor,{value:l,onValueChange:e=>{n(e);try{const u=JSON.parse(e);i.current=JSON.stringify(u,null,2),d(u)}catch{}},language:"json"})})]})}exports.default=S;
@@ -1,26 +1,28 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { useMemo as u, useState as p, useRef as f, useEffect as b } from "react";
2
+ import { useMemo as p, useState as u, useRef as f, useEffect as b } from "react";
3
3
  import { X as S } from "./x-CXDkqdur.js";
4
- import { u as a, c as N, B as D, C as J } from "./switch-kPUJEC1A.js";
4
+ import { u as a, c as N, B as D, C as J } from "./switch-G_-UwdXX.js";
5
5
  import "./saved-temporal-bucket-format-Dd2eixTH.js";
6
6
  import "./validators-DVd8s3qY.js";
7
7
  import "./analyze-result-contract-DROq4vgY.js";
8
8
  import "../value-format-preferences/index.js";
9
- import "./index-HMTOcZOr.js";
9
+ import "./index-DQvtZ1gG.js";
10
+ import "./appearance-runtime-provider-CjmE4gBY.js";
11
+ import "./appearance-context-DVXt8qjW.js";
10
12
  import "./index-DSKR3nKn.js";
11
13
  import "./temporal-bucket-authoring-1fZuPAVb.js";
12
14
  import "./color-CJvdlFM_.js";
13
15
  import "react-dom";
14
16
  import "./index-De_7nrwb.js";
15
- function M() {
17
+ function q() {
16
18
  const r = a((o) => o.dashboard), c = a((o) => o.actions.setDashboard), h = a(
17
19
  (o) => o.showDashboardJSON
18
- ), l = a(
20
+ ), m = a(
19
21
  (o) => o.actions.setShowDashboardJSON
20
- ), s = u(
22
+ ), s = p(
21
23
  () => r ? JSON.stringify(r, null, 2) : "",
22
24
  [r]
23
- ), [m, i] = p(s), t = f(s);
25
+ ), [l, i] = u(s), t = f(s);
24
26
  return b(() => {
25
27
  s !== t.current && (i(s), t.current = s);
26
28
  }, [s]), /* @__PURE__ */ d(
@@ -36,7 +38,7 @@ function M() {
36
38
  variant: "secondary",
37
39
  size: "sm",
38
40
  className: "absolute right-2 top-2 z-10 h-8",
39
- onClick: () => l(!1),
41
+ onClick: () => m(!1),
40
42
  children: [
41
43
  /* @__PURE__ */ e(S, { className: "mr-2 h-4 w-4" }),
42
44
  "Close"
@@ -46,7 +48,7 @@ function M() {
46
48
  /* @__PURE__ */ e("div", { className: "h-[550px] overflow-hidden", children: /* @__PURE__ */ e(
47
49
  J,
48
50
  {
49
- value: m,
51
+ value: l,
50
52
  onValueChange: (o) => {
51
53
  i(o);
52
54
  try {
@@ -67,5 +69,5 @@ function M() {
67
69
  );
68
70
  }
69
71
  export {
70
- M as default
72
+ q as default
71
73
  };