react-semaphor 0.1.357 → 0.1.359
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/brand-studio/index.js +3 -3
- package/dist/chunks/{braces-CBMh5wmd.js → braces-CXvY9MwQ.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-fN2pyiXg.js → calendar-preferences-dialog-BHq3bPkF.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BxbUanjv.js → calendar-preferences-dialog-BeZvsJV0.js} +3 -3
- package/dist/chunks/{chevrons-up-down-fg3WME_w.js → chevrons-up-down-qQMadOWA.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Cbs3VeRi.js → dashboard-briefing-launcher-Dr6trdJw.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-k7vNEpzR.js → dashboard-briefing-launcher-gm3YPxOh.js} +4 -4
- package/dist/chunks/{dashboard-controls-BmlwS2oQ.js → dashboard-controls-4a3fKtuD.js} +1 -1
- package/dist/chunks/{dashboard-controls-9vMat8LC.js → dashboard-controls-BZljC-GB.js} +6 -6
- package/dist/chunks/{dashboard-json-BBejCr0C.js → dashboard-json-4uDp0D6Y.js} +2 -2
- package/dist/chunks/{dashboard-json-Bc3qokZD.js → dashboard-json-wTRw_VIn.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DUZYAg9r.js → edit-dashboard-visual-BztJSdkR.js} +5621 -5701
- package/dist/chunks/{edit-dashboard-visual-Dvw6UVkX.js → edit-dashboard-visual-CqnMxF8h.js} +10 -10
- package/dist/chunks/{index-6SCfUtV6.js → index-DZ3lq1Pk.js} +41041 -40725
- package/dist/chunks/{index-nBzHlShE.js → index-YZnHD2NF.js} +227 -227
- package/dist/chunks/{palette-DP6TXUD8.js → palette-DPuAc82h.js} +1 -1
- package/dist/chunks/{resource-management-panel-BXa-458w.js → resource-management-panel-BajPY5IU.js} +1 -1
- package/dist/chunks/{resource-management-panel-SDwS69Wv.js → resource-management-panel-CEVKKwSW.js} +3 -3
- package/dist/chunks/{switch-21kU-tcj.js → switch-xcWLtWs0.js} +8 -8
- package/dist/chunks/{use-create-flow-overlay-state-DYYftn7S.js → use-create-flow-overlay-state-CT1BlsPJ.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-CfY1Vvsp.js → use-create-flow-overlay-state-D010FtSh.js} +1 -1
- package/dist/chunks/{use-visual-utils-B4jwGVMc.js → use-visual-utils-CIHFvxpt.js} +1 -1
- package/dist/chunks/{use-visual-utils-CIGNfI96.js → use-visual-utils-H2FXMsGo.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
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 $, a as K, P as ge, b as be, B as C, d as fe, U as De, C as Ie, R as me, f as le, S as Je, X as je, J as se, e as Le, T as $e, K as _e, M, N as Ve, O as G, Q as Ue, V as Me, W as Ge, Y as We, L as E, Z as Q, _ as ee, $ as re, a0 as he, a1 as oe, a2 as ae, a3 as xe, a4 as ye, a5 as ke, a6 as ve, a7 as Ce, a8 as He } from "../chunks/switch-
|
|
3
|
+
import { c as $, a as K, P as ge, b as be, B as C, d as fe, U as De, C as Ie, R as me, f as le, S as Je, X as je, J as se, e as Le, T as $e, K as _e, M, N as Ve, O as G, Q as Ue, V as Me, W as Ge, Y as We, L as E, Z as Q, _ as ee, $ as re, a0 as he, a1 as oe, a2 as ae, a3 as xe, a4 as ye, a5 as ke, a6 as ve, a7 as Ce, a8 as He } from "../chunks/switch-xcWLtWs0.js";
|
|
4
4
|
import { r as Ye, v as Xe, A as Ze, a as qe, p as Ke } from "../chunks/index-CJdxSyQq.js";
|
|
5
5
|
import "../chunks/index-CuHybtft.js";
|
|
6
|
-
import { P as W } from "../chunks/palette-
|
|
7
|
-
import { B as Qe } from "../chunks/braces-
|
|
6
|
+
import { P as W } from "../chunks/palette-DPuAc82h.js";
|
|
7
|
+
import { B as Qe } from "../chunks/braces-CXvY9MwQ.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
10
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-YZnHD2NF.js"),i=require("./switch-C0S63HAv.js");require("./index-BxM99sFL.js");const G=require("./chevrons-up-down-CUZL1zaU.js");function W(n={}){var y,P,z,A;const{authToken:d,tokenProps:a}=t.useSemaphorContext(),x=n.enabled??!0,m=(d==null?void 0:d.accessToken)??null,f=(a==null?void 0:a.apiServiceUrl)??null,[L,C]=l.useState(!1),[j,b]=l.useState(!1),[h,g]=l.useState(!1),[N,c]=l.useState(null),[v,S]=l.useState(null),k=v||{tz:((P=(y=a==null?void 0:a.params)==null?void 0:y.calendarContext)==null?void 0:P.tz)||null,weekStart:((A=(z=a==null?void 0:a.params)==null?void 0:z.calendarContext)==null?void 0:A.weekStart)??null},p=l.useCallback(async()=>{if(!(!x||!m||!f)){C(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const r=await o.json();S({tz:r.tz,weekStart:r.weekStart,source:r.source,isInherited:r.isInherited,userHasPrefs:r.userHasPrefs,inherited:r.inherited})}catch(o){const r=o instanceof Error?o.message:"Unknown error";c(r)}finally{C(!1)}}},[m,f,x]);l.useEffect(()=>{x&&p()},[x,p]);const T=l.useCallback(async o=>{if(!m||!f)return c("Not authenticated"),!1;b(!0),c(null);try{const r=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify(o)});if(!r.ok){const u=await r.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await p(),!0}catch(r){const u=r instanceof Error?r.message:"Unknown error";return c(u),!1}finally{b(!1)}},[m,f,p]),w=l.useCallback(async()=>{if(!m||!f)return c("Not authenticated"),!1;g(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const r=await o.text();if(r)try{const u=JSON.parse(r);return S({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await p(),!0}catch(o){const r=o instanceof Error?o.message:"Unknown error";return c(r),!1}finally{g(!1)}},[m,f,p]);return{preferences:k,isLoading:L,isSaving:j,isClearing:h,error:N,updatePreferences:T,clearPreferences:w,refetch:p}}const E=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function _(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return E.map(n=>n.value)}function q(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function O(n){const d=E.find(a=>a.value===n);return d?d.label:n}function V(n){const d=M.find(a=>a.value===n);return d?d.label:String(n)}function Z({open:n,onOpenChange:d}){var D,U,F;const{preferences:a,isLoading:x,isSaving:m,isClearing:f,updatePreferences:L,clearPreferences:C}=W({enabled:n}),j=a.tz||((D=a.inherited)==null?void 0:D.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=a.weekStart??((U=a.inherited)==null?void 0:U.weekStart)??1,[h,g]=l.useState(!a.userHasPrefs),[N,c]=l.useState(!1),[v,S]=l.useState(j),[k,p]=l.useState(b),[T,w]=l.useState(!1),y=l.useMemo(()=>_(),[]),P=l.useMemo(()=>y.filter(s=>!E.some(R=>R.value===s)),[y]),z=l.useMemo(()=>O(v),[v]),A=a.inherited?O(a.inherited.tz):"UTC",o=a.inherited?V(a.inherited.weekStart):"Monday",r=q((F=a.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!n){c(!1);return}N||(a.userHasPrefs!==void 0&&g(!a.userHasPrefs),S(j),p(b))},[n,N,a.userHasPrefs,j,b]);const u=async()=>{if(x){t.ue.error("Preferences are still loading. Please try again.");return}h?await C()?(t.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again."):await L({tz:v,weekStart:k})?(t.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again.")},$=()=>{d(!1)},I=m||f,B=I||x;return e.jsx(t.Dialog,{open:n,onOpenChange:d,children:e.jsxs(t.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(t.DialogHeader,{children:[e.jsx(t.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(t.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(t.RadioGroup,{value:h?"defaults":"custom",onValueChange:s=>{c(!0),g(s==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{c(!0),g(!0)},children:[e.jsx(t.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",r," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[A,", week starts ",o]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{c(!0),g(!1)},children:[e.jsx(t.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:i.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Timezone"}),e.jsxs(i.Popover,{open:T,onOpenChange:w,modal:!0,children:[e.jsx(i.PopoverTrigger,{asChild:!0,children:e.jsxs(i.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":T,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:z}),e.jsx(G.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(i.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(t.Command,{className:"overflow-visible",children:[e.jsx(t.CommandInput,{placeholder:"Search timezones…"}),e.jsxs(t.CommandList,{children:[e.jsx(t.CommandEmpty,{children:"No timezone found."}),e.jsx(t.CommandGroup,{heading:"Common",children:E.map(s=>e.jsxs(t.CommandItem,{value:`${s.value} ${s.label}`,onSelect:()=>{c(!0),S(s.value),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:s.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:s.value})]},s.value))}),e.jsx(t.CommandSeparator,{}),e.jsx(t.CommandGroup,{heading:"All timezones",children:P.map(s=>e.jsxs(t.CommandItem,{value:s,onSelect:()=>{c(!0),S(s),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s?"opacity-100":"opacity-0")}),s]},s))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Week starts on"}),e.jsx(t.RadioGroup,{value:String(k),onValueChange:s=>{c(!0),p(Number(s))},className:"flex gap-4",disabled:h,children:M.map(s=>e.jsxs("label",{htmlFor:`week-start-${s.value}`,className:i.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(t.RadioGroupItem,{value:String(s.value),id:`week-start-${s.value}`,disabled:h}),s.label]},s.value))})]})]})]}),e.jsxs(t.DialogFooter,{children:[e.jsx(i.Button,{variant:"outline",size:"xs",onClick:$,disabled:I,children:"Cancel"}),e.jsx(i.Button,{size:"xs",onClick:u,disabled:B,children:I?e.jsxs(e.Fragment,{children:[e.jsx(i.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=Z;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import ee, { useState as h, useCallback as F, useEffect as ae, useMemo as H } from "react";
|
|
3
|
-
import { u as re, c as te, d as se, e as ne, f as le, g as oe, R as W, h as O, C as ie, i as ce, j as de, k as ue, l as _, m as R, n as me, o as fe, p as N } from "./index-
|
|
4
|
-
import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-
|
|
3
|
+
import { u as re, c as te, d as se, e as ne, f as le, g as oe, R as W, h as O, C as ie, i as ce, j as de, k as ue, l as _, m as R, n as me, o as fe, p as N } from "./index-DZ3lq1Pk.js";
|
|
4
|
+
import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-xcWLtWs0.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import { C as be } from "./chevrons-up-down-
|
|
6
|
+
import { C as be } from "./chevrons-up-down-qQMadOWA.js";
|
|
7
7
|
function we(n = {}) {
|
|
8
8
|
var C, A, E, L;
|
|
9
9
|
const { authToken: c, tokenProps: e } = re(), p = n.enabled ?? !0, d = (c == null ? void 0 : c.accessToken) ?? null, u = (e == null ? void 0 : e.apiServiceUrl) ?? null, [I, k] = h(!1), [y, b] = h(!1), [m, g] = h(!1), [T, o] = h(null), [v, w] = h(null), P = v || {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("./switch-C0S63HAv.js"),l=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("./switch-C0S63HAv.js"),l=require("./index-YZnHD2NF.js"),le=require("./use-create-flow-overlay-state-D010FtSh.js"),h=require("react"),bn=require("./use-visual-utils-CIHFvxpt.js");require("./index-BxM99sFL.js");const $s=require("./date-formatter-B4EBSe9C.js");require("./index-DRlMUglg.js");require("react-dom/client");require("react-dom");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import { c as Ie, L as wn, a2 as io, B as ge, f as ne, G as ct, u as H, E as bt, aK as Fr, aa as ba, g as ze, e as Ke, H as xa, a as v, J as Fn, X as Ce, P as Re, b as tt, d as nt, aL as lo, aM as co, aI as ya, aN as va, a3 as Qe, a4 as Ye, a5 as Xe, a6 as Ze, a7 as he, V as uo, aO as Na, aP as wa, a0 as et, T as mo, K as ho, M as Pr, aQ as po } from "./switch-
|
|
3
|
-
import { c as ut, d as mt, e as ht, f as pt, g as ft, bc as fo, o as Ca, ag as go, ah as bo, av as ka, bO as xo, p as fe, aw as Cn, y as yo, aN as Pn, aO as Mn, aQ as Bn, aR as je, aV as Sa, aI as Kt, bP as vo, bQ as No, b0 as On, b1 as Vn, b2 as $n, b3 as Un, b4 as _n, b5 as jn, b6 as zn, u as It, $ as ot, aa as Kn, a6 as Aa, a7 as Hn, a0 as Ea, a5 as wo, ac as Co, bJ as ko, bR as So, aK as Ao, a8 as Mr, x as Vt, a2 as Eo, bS as Io, bT as Do, bU as To, bV as Lo, bW as Ro, bX as Fo, bY as Po, bZ as Mo, b_ as Ia, b$ as Bo, c0 as Oo, c1 as Vo, c2 as $o, c3 as Uo, c4 as gt, c5 as _o, bI as Da, ax as Ta, c6 as jo, c7 as zo, c8 as Ko, c9 as Ho, ca as qo, cb as Wo, cc as Go, cd as La, ce as Jo, cf as Qo, cg as Ra, ch as Fa, ci as Pa, cj as Yo, ck as Xo, b9 as Ma, by as Zo, bv as ei, cl as ti, aW as ni, cm as Ba, cn as ri, co as ai, aX as Br, cp as si, cq as oi, cr as kn, cs as ii, ct as li, cu as Oa, cv as qn, cw as di, cx as ci, cy as ui, cz as Va, cA as Dt, cB as $a, az as Sn, b7 as Ua, cC as mi, cD as hi, ay as An, cE as pi, cF as _a, cG as fi, cH as gi, cI as bi, cJ as xi, cK as yi, cL as vi, cM as Ni, cN as wi } from "./index-
|
|
4
|
-
import { V as Ci, E as Or, a as Vr, b as ki, c as Si, L as Ai, d as Ei, C as Ii, u as ja, e as za, f as Di, R as Ti, S as Li } from "./use-create-flow-overlay-state-
|
|
2
|
+
import { c as Ie, L as wn, a2 as io, B as ge, f as ne, G as ct, u as H, E as bt, aK as Fr, aa as ba, g as ze, e as Ke, H as xa, a as v, J as Fn, X as Ce, P as Re, b as tt, d as nt, aL as lo, aM as co, aI as ya, aN as va, a3 as Qe, a4 as Ye, a5 as Xe, a6 as Ze, a7 as he, V as uo, aO as Na, aP as wa, a0 as et, T as mo, K as ho, M as Pr, aQ as po } from "./switch-xcWLtWs0.js";
|
|
3
|
+
import { c as ut, d as mt, e as ht, f as pt, g as ft, bc as fo, o as Ca, ag as go, ah as bo, av as ka, bO as xo, p as fe, aw as Cn, y as yo, aN as Pn, aO as Mn, aQ as Bn, aR as je, aV as Sa, aI as Kt, bP as vo, bQ as No, b0 as On, b1 as Vn, b2 as $n, b3 as Un, b4 as _n, b5 as jn, b6 as zn, u as It, $ as ot, aa as Kn, a6 as Aa, a7 as Hn, a0 as Ea, a5 as wo, ac as Co, bJ as ko, bR as So, aK as Ao, a8 as Mr, x as Vt, a2 as Eo, bS as Io, bT as Do, bU as To, bV as Lo, bW as Ro, bX as Fo, bY as Po, bZ as Mo, b_ as Ia, b$ as Bo, c0 as Oo, c1 as Vo, c2 as $o, c3 as Uo, c4 as gt, c5 as _o, bI as Da, ax as Ta, c6 as jo, c7 as zo, c8 as Ko, c9 as Ho, ca as qo, cb as Wo, cc as Go, cd as La, ce as Jo, cf as Qo, cg as Ra, ch as Fa, ci as Pa, cj as Yo, ck as Xo, b9 as Ma, by as Zo, bv as ei, cl as ti, aW as ni, cm as Ba, cn as ri, co as ai, aX as Br, cp as si, cq as oi, cr as kn, cs as ii, ct as li, cu as Oa, cv as qn, cw as di, cx as ci, cy as ui, cz as Va, cA as Dt, cB as $a, az as Sn, b7 as Ua, cC as mi, cD as hi, ay as An, cE as pi, cF as _a, cG as fi, cH as gi, cI as bi, cJ as xi, cK as yi, cL as vi, cM as Ni, cN as wi } from "./index-DZ3lq1Pk.js";
|
|
4
|
+
import { V as Ci, E as Or, a as Vr, b as ki, c as Si, L as Ai, d as Ei, C as Ii, u as ja, e as za, f as Di, R as Ti, S as Li } from "./use-create-flow-overlay-state-CT1BlsPJ.js";
|
|
5
5
|
import Ri, { useState as A, useContext as Fi, useRef as Ee, useCallback as pe, useEffect as ue, useMemo as O } from "react";
|
|
6
|
-
import { u as Ka } from "./use-visual-utils-
|
|
6
|
+
import { u as Ka } from "./use-visual-utils-H2FXMsGo.js";
|
|
7
7
|
import "./index-CuHybtft.js";
|
|
8
8
|
import { l as $r } from "./date-formatter-CzcPZx39.js";
|
|
9
9
|
import "./index-CJdxSyQq.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./switch-C0S63HAv.js"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./switch-C0S63HAv.js"),s=require("./index-YZnHD2NF.js");require("./index-BxM99sFL.js");const v=require("react");require("./index-DRlMUglg.js");require("react-dom/client");const Zt=require("react-dom"),O=require("./dashboard-briefing-launcher-Dr6trdJw.js"),ht=require("./index-D7KJindZ.js"),es=require("./calendar-preferences-dialog-BHq3bPkF.js"),ts=require("./use-debounced-dirty-check-XHSwAefL.js"),Re=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),ss=require("./palette-C1k347Tb.js"),rs=require("./braces-Cc86y9Ov.js");function ns(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const E=ns(v);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { c as B, u as N, B as _, aA as dt, E as Vt, L as jr, a2 as qr, a as te, aB as Hr, aC as Vr, aD as rt, aE as me, aF as ct, aG as Kt, f as $e, X as Qt, aH as Wt, aI as Kr, G as Rt, Z as Qr, _ as Wr, $ as Jr, a1 as Xr, S as Ut, j as Yr, aJ as Zr } from "./switch-
|
|
3
|
-
import { bg as ea, u as G, c as Jt, bh as ta, aI as re, d as Xt, e as ra, f as at, g as nt, o as aa, bi as ue, aV as Fe, bj as na, bk as Tt, bl as Yt, bm as Zt, bn as sa, b9 as lt, bo as oa, bp as ia, bq as da, br as ca, bs as la, bt as ua, ae as pe, bu as he, p as C, bv as ma, bw as er, az as ut, be as pa, bx as ha, by as fa, aU as tr, aX as rr, ay as ga, aM as ba, bz as xa, bA as va, z as ya, y as Ue, K as wa, A as Xe, bB as Na, bC as Sa, bD as Da, _ as ka, bE as Ca, I as Ye, bF as Ea, bG as La, bH as Ia, bI as Aa, aN as Ma, aO as Pa, aP as Oa, aQ as _a, aR as $, bJ as Ra, aS as Ft, bK as Ua, bL as Ta, bM as Fa, J as $a, bN as Ga, b0 as Ba, b1 as za, b2 as ja, b3 as qa, b4 as Ha, b5 as Va, b6 as Ka, b7 as $t, w as st } from "./index-
|
|
2
|
+
import { c as B, u as N, B as _, aA as dt, E as Vt, L as jr, a2 as qr, a as te, aB as Hr, aC as Vr, aD as rt, aE as me, aF as ct, aG as Kt, f as $e, X as Qt, aH as Wt, aI as Kr, G as Rt, Z as Qr, _ as Wr, $ as Jr, a1 as Xr, S as Ut, j as Yr, aJ as Zr } from "./switch-xcWLtWs0.js";
|
|
3
|
+
import { bg as ea, u as G, c as Jt, bh as ta, aI as re, d as Xt, e as ra, f as at, g as nt, o as aa, bi as ue, aV as Fe, bj as na, bk as Tt, bl as Yt, bm as Zt, bn as sa, b9 as lt, bo as oa, bp as ia, bq as da, br as ca, bs as la, bt as ua, ae as pe, bu as he, p as C, bv as ma, bw as er, az as ut, be as pa, bx as ha, by as fa, aU as tr, aX as rr, ay as ga, aM as ba, bz as xa, bA as va, z as ya, y as Ue, K as wa, A as Xe, bB as Na, bC as Sa, bD as Da, _ as ka, bE as Ca, I as Ye, bF as Ea, bG as La, bH as Ia, bI as Aa, aN as Ma, aO as Pa, aP as Oa, aQ as _a, aR as $, bJ as Ra, aS as Ft, bK as Ua, bL as Ta, bM as Fa, J as $a, bN as Ga, b0 as Ba, b1 as za, b2 as ja, b3 as qa, b4 as Ha, b5 as Va, b6 as Ka, b7 as $t, w as st } from "./index-DZ3lq1Pk.js";
|
|
4
4
|
import "./index-CuHybtft.js";
|
|
5
5
|
import * as I from "react";
|
|
6
6
|
import ar, { useState as w, useMemo as K, useEffect as Ge, useRef as Gt, useLayoutEffect as Qa, useCallback as Wa } from "react";
|
|
7
7
|
import "./index-CJdxSyQq.js";
|
|
8
8
|
import "react-dom/client";
|
|
9
9
|
import { createPortal as Ja } from "react-dom";
|
|
10
|
-
import { L as Xa, b as Ya, u as Za, A as en, V as tn, K as rn, e as an, M as nn, N as sn, U as on } from "./dashboard-briefing-launcher-
|
|
10
|
+
import { L as Xa, b as Ya, u as Za, A as en, V as tn, K as rn, e as an, M as nn, N as sn, U as on } from "./dashboard-briefing-launcher-gm3YPxOh.js";
|
|
11
11
|
import { d as nr } from "./index-DFOb_6HB.js";
|
|
12
|
-
import { C as dn } from "./calendar-preferences-dialog-
|
|
12
|
+
import { C as dn } from "./calendar-preferences-dialog-BeZvsJV0.js";
|
|
13
13
|
import { u as cn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
14
14
|
import { s as Ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
15
|
-
import { P as ln } from "./palette-
|
|
16
|
-
import { B as un } from "./braces-
|
|
15
|
+
import { P as ln } from "./palette-DPuAc82h.js";
|
|
16
|
+
import { B as un } from "./braces-CXvY9MwQ.js";
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.453.0 - ISC
|
|
19
19
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useState as b, useRef as f, useEffect as p } from "react";
|
|
3
3
|
import "./index-CuHybtft.js";
|
|
4
|
-
import { u as o, a as S, B as N, X as D, C as J } from "./switch-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { u as o, a as S, B as N, X as D, C as J } from "./switch-xcWLtWs0.js";
|
|
5
|
+
import "./index-DZ3lq1Pk.js";
|
|
6
6
|
import "./index-CJdxSyQq.js";
|
|
7
7
|
import "react-dom/client";
|
|
8
8
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react");require("./index-BxM99sFL.js");const s=require("./switch-C0S63HAv.js");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react");require("./index-BxM99sFL.js");const s=require("./switch-C0S63HAv.js");require("./index-YZnHD2NF.js");require("./index-DRlMUglg.js");require("react-dom/client");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),c(d)}catch{}},language:"json"})})]})}exports.default=b;
|