react-semaphor 0.1.358 → 0.1.360
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/chunks/{calendar-preferences-dialog-DGA5mlpS.js → calendar-preferences-dialog-BEKBpwMY.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BzAHg2dH.js → calendar-preferences-dialog-GwtaSN53.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BV4oNYVr.js → dashboard-briefing-launcher-D6gGO5wz.js} +3 -3
- package/dist/chunks/{dashboard-briefing-launcher-Cx8GVVDP.js → dashboard-briefing-launcher-DYxd4856.js} +1 -1
- package/dist/chunks/{dashboard-controls-Aqn8jM53.js → dashboard-controls-B4u5RsKl.js} +3 -3
- package/dist/chunks/{dashboard-controls-2Yydgr4q.js → dashboard-controls-C_rExqPw.js} +1 -1
- package/dist/chunks/{dashboard-json-D0Pc1dwB.js → dashboard-json-BWWU6a7V.js} +1 -1
- package/dist/chunks/{dashboard-json-DCDAthMc.js → dashboard-json-CPGTofhm.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-C-yLMahk.js → edit-dashboard-visual-D_jZ-iix.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BdVNDANy.js → edit-dashboard-visual-biMO829J.js} +3 -3
- package/dist/chunks/{index-Cs6rC7Qx.js → index-CJ2IEuKz.js} +31372 -31127
- package/dist/chunks/index-Db1XVmfU.js +1411 -0
- package/dist/chunks/{resource-management-panel-CuFOHM8_.js → resource-management-panel-B9-5VHYe.js} +2 -2
- package/dist/chunks/{resource-management-panel-D6zRXAE_.js → resource-management-panel-Bam-yvnt.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-dPApJpMV.js → use-create-flow-overlay-state-DAvEqaJV.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-CcAzq169.js → use-create-flow-overlay-state-dhxgdLYo.js} +1 -1
- package/dist/chunks/{use-visual-utils-Dg4iuSLu.js → use-visual-utils-CAKdXsr5.js} +1 -1
- package/dist/chunks/{use-visual-utils-BUSgtvLJ.js → use-visual-utils-FoHNPwpu.js} +1 -1
- package/dist/chunks/validation-C_WDLZdp.js +1 -0
- package/dist/chunks/validation-McK0uXpV.js +669 -0
- 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/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +308 -440
- package/dist/data-app-sdk-validation/index.cjs +1 -0
- package/dist/data-app-sdk-validation/index.js +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/data-app-builder.d.ts +68 -9
- package/dist/types/data-app-sdk-validation.d.ts +595 -0
- package/dist/types/data-app-sdk.d.ts +333 -0
- package/package.json +6 -1
- package/dist/chunks/index-BMQsLAi3.js +0 -1410
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-CJ2IEuKz.js";
|
|
4
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
6
|
import { C as be } from "./chevrons-up-down-qQMadOWA.js";
|
|
@@ -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-Db1XVmfU.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 t, jsxs as s, Fragment as se } from "react/jsx-runtime";
|
|
2
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-
|
|
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-
|
|
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-CJ2IEuKz.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-DAvEqaJV.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-FoHNPwpu.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";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-Db1XVmfU.js"),le=require("./use-create-flow-overlay-state-dhxgdLYo.js"),h=require("react"),bn=require("./use-visual-utils-CAKdXsr5.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,15 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i, Fragment as R } from "react/jsx-runtime";
|
|
2
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-
|
|
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-CJ2IEuKz.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-D6gGO5wz.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-BEKBpwMY.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
15
|
import { P as ln } from "./palette-DPuAc82h.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-Db1XVmfU.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-DYxd4856.js"),ht=require("./index-D7KJindZ.js"),es=require("./calendar-preferences-dialog-GwtaSN53.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 +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-Db1XVmfU.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;
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { u as o, a as S, B as N, X as D, C as J } from "./switch-xcWLtWs0.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-CJ2IEuKz.js";
|
|
6
6
|
import "./index-CJdxSyQq.js";
|
|
7
7
|
import "react-dom/client";
|
|
8
8
|
import "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),n=require("./index-Db1XVmfU.js");require("./index-BxM99sFL.js");const t=require("./switch-C0S63HAv.js"),Ne=require("./use-create-flow-overlay-state-dhxgdLYo.js"),bt=require("./use-visual-utils-CAKdXsr5.js"),Hn=require("./chevrons-up-down-CUZL1zaU.js"),za=require("react-dom");require("./index-DRlMUglg.js");require("react-dom/client");const qa=require("./palette-C1k347Tb.js"),$a=require("./common-types-C73-Ud1-.js");function Ka(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const Ua=Ka(N);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as vc from "react";
|
|
3
3
|
import en, { useState as K, useEffect as Se, useRef as Fe, useCallback as Oe, useMemo as ce, useContext as Nr, Suspense as yc } from "react";
|
|
4
|
-
import { cO as Di, c as On, d as Mn, e as Fn, f as Rn, g as Zn, o as ms, as as St, ax as Ct, cP as Ei, cQ as ls, p as nt, cR as Ai, cx as is, c4 as Da, aI as bt, ay as $t, bI as Cr, cm as ra, az as $a, at as vt, cS as hs, cE as wr, cT as Nc, cU as Oi, cV as Cc, ae as vs, cW as wc, cX as Sc, cY as dr, cZ as os, u as bn, z as Mi, c_ as Tc, c$ as kc, d0 as Fi, d1 as Ri, d2 as Ic, d3 as Dc, d4 as Ec, am as Bn, an as vn, ao as yn, ap as qa, aq as tn, ar as Jn, d5 as ur, bF as Ta, d6 as Li, d7 as an, d8 as ht, d9 as Ac, da as Pi, b_ as hn, cF as Vi, db as Sr, dc as Bi, dd as Oc, de as Mc, df as Fc, dg as Rc, dh as Lc, di as Pc, dj as Vc, dk as Bc, dl as _c, dm as Bs, dn as zc, dp as Bl, dq as $c, dr as _l, ds as qc, dt as jc, du as Kc, dv as Yn, aD as Qt, aF as Jt, dw as _i, dx as Tr, b9 as kr, bP as Ir, dy as Dr, dz as Uc, dA as zi, dB as $i, dC as qi, dD as Ht, dE as Gc, dF as Hc, dG as Wc, dH as Qc, dI as ji, dJ as Ki, W as Ui, dK as Gi, dL as Jc, dM as Yc, dN as Xc, dO as Ea, dP as Zc, dQ as ed, dR as zl, dS as td, E as ys, t as Er, dT as nd, dU as Ar, bh as ad, dV as $l, I as pt, dW as sd, dX as rd, dY as Hi, dZ as Wi, bG as ld, d_ as Or, d$ as Mr, be as Ns, e0 as Qi, e1 as Ji, e2 as ql, e3 as ja, e4 as id, e5 as od, e6 as cd, e7 as dd, e8 as ud, a_ as Fr, e9 as md, ea as hd, eb as Yi, ec as Xi, ed as pd, ee as fd, ef as gd, eg as xd, eh as Zi, ei as bd, ej as vd, ek as Cs, el as ws, aN as la, aO as ia, aQ as oa, bi as Aa, aV as Wt, em as cn, en as Ln, eo as Pn, ep as pn, eq as ea, er as yd, es as Nd, et as Cd, eu as wd, ev as Sd, ew as Td, ex as kd, ey as Id, ez as jl, aE as nn, eA as Dd, eB as Ed, eC as Ad, eD as Od, eE as eo, eF as Md, eG as Fd, eH as Rd, eI as Ld, eJ as Pd, eK as mr, eL as Vd, eM as Bd, eN as hr, eO as pr, eP as _d, eQ as zd, eR as $d, eS as qd, eT as Kl, bQ as fr, eU as fn, b0 as jd, eV as Kd, b1 as Ud, b2 as Gd, b3 as Hd, b4 as Wd, b5 as Qd, b6 as Jd, b7 as Yd, aR as ct, aM as Xd, eW as Zd, eX as ta, eY as na, eZ as aa, aP as Rr, bJ as eu, aS as tu, e_ as nu, e$ as au, f0 as su, f1 as Ss, f2 as st, f3 as rt, f4 as lt, cC as ru, cD as lu, f5 as to, f6 as no, cz as iu, f7 as ou, f8 as cu, f9 as du, fa as uu, fb as mu, fc as hu, fd as pu, fe as fu, ff as gu, fg as xu, fh as bu, fi as vu, fj as kn, fk as Na, fl as Xn, fm as yu, fn as Ul, fo as Nu, fp as Cu, fq as _s, fr as Gl, fs as wu, ft as Su, fu as Tu, fv as ku, fw as Iu, R as Lr, h as Oa, fx as zs, fy as ao, fz as Du, fA as ps, fB as Eu, fC as so, fD as Au, fE as ro, ci as Ou, fF as Mu, a3 as Fu, fG as ns, fH as Ru, fI as Hl, fJ as Lu, fK as Pu, fL as Wl, fM as Vu, fN as Bu, fO as _u, fP as zu, fQ as $u, cy as qu, cA as ju, fR as lo, fS as Ku, fT as Uu, fU as Gu, fV as Hu, fW as Wu, fX as Qu, fY as Ju, fZ as Yu, f_ as Xu, f$ as io, g0 as Zu, g1 as Ts, b$ as ks, g2 as oo, g3 as em, g4 as tm, g5 as co, g6 as nm, g7 as am, g8 as Is, g9 as $s, ga as sm, gb as rm, gc as lm, gd as im, ge as om, gf as Ql, gg as sa, gh as uo, gi as cm, cB as dm, gj as mo, gk as ho, gl as cs, gm as po, gn as fo, go as Jl, gp as um, gq as mm, gr as ds, gs as hm, gt as Pr, gu as pm, gv as fs, C as Ma, i as Fa, k as Ra, j as La, l as Pa, m as Va, gw as fm, gx as Ba, gy as dn, gz as gr, gA as xr, gB as _a, gC as go, gD as gm, gE as qs, gF as js, gG as xm, gH as Ks, gI as bm, gJ as Yl, gK as Xl, cI as vm, gL as ym, cJ as Nm, cL as Cm, cM as wm, y as Sm, gM as Tm, gN as km, gO as Im, bK as Dm, bL as Em, bM as Am, aX as Ds, cv as Es, gP as Zl, gQ as xo, c6 as Us, gR as Om, gS as Mm, gT as Fm, F as Rm, av as Lm, gU as Pm, gV as Vm, aw as Bm } from "./index-
|
|
4
|
+
import { cO as Di, c as On, d as Mn, e as Fn, f as Rn, g as Zn, o as ms, as as St, ax as Ct, cP as Ei, cQ as ls, p as nt, cR as Ai, cx as is, c4 as Da, aI as bt, ay as $t, bI as Cr, cm as ra, az as $a, at as vt, cS as hs, cE as wr, cT as Nc, cU as Oi, cV as Cc, ae as vs, cW as wc, cX as Sc, cY as dr, cZ as os, u as bn, z as Mi, c_ as Tc, c$ as kc, d0 as Fi, d1 as Ri, d2 as Ic, d3 as Dc, d4 as Ec, am as Bn, an as vn, ao as yn, ap as qa, aq as tn, ar as Jn, d5 as ur, bF as Ta, d6 as Li, d7 as an, d8 as ht, d9 as Ac, da as Pi, b_ as hn, cF as Vi, db as Sr, dc as Bi, dd as Oc, de as Mc, df as Fc, dg as Rc, dh as Lc, di as Pc, dj as Vc, dk as Bc, dl as _c, dm as Bs, dn as zc, dp as Bl, dq as $c, dr as _l, ds as qc, dt as jc, du as Kc, dv as Yn, aD as Qt, aF as Jt, dw as _i, dx as Tr, b9 as kr, bP as Ir, dy as Dr, dz as Uc, dA as zi, dB as $i, dC as qi, dD as Ht, dE as Gc, dF as Hc, dG as Wc, dH as Qc, dI as ji, dJ as Ki, W as Ui, dK as Gi, dL as Jc, dM as Yc, dN as Xc, dO as Ea, dP as Zc, dQ as ed, dR as zl, dS as td, E as ys, t as Er, dT as nd, dU as Ar, bh as ad, dV as $l, I as pt, dW as sd, dX as rd, dY as Hi, dZ as Wi, bG as ld, d_ as Or, d$ as Mr, be as Ns, e0 as Qi, e1 as Ji, e2 as ql, e3 as ja, e4 as id, e5 as od, e6 as cd, e7 as dd, e8 as ud, a_ as Fr, e9 as md, ea as hd, eb as Yi, ec as Xi, ed as pd, ee as fd, ef as gd, eg as xd, eh as Zi, ei as bd, ej as vd, ek as Cs, el as ws, aN as la, aO as ia, aQ as oa, bi as Aa, aV as Wt, em as cn, en as Ln, eo as Pn, ep as pn, eq as ea, er as yd, es as Nd, et as Cd, eu as wd, ev as Sd, ew as Td, ex as kd, ey as Id, ez as jl, aE as nn, eA as Dd, eB as Ed, eC as Ad, eD as Od, eE as eo, eF as Md, eG as Fd, eH as Rd, eI as Ld, eJ as Pd, eK as mr, eL as Vd, eM as Bd, eN as hr, eO as pr, eP as _d, eQ as zd, eR as $d, eS as qd, eT as Kl, bQ as fr, eU as fn, b0 as jd, eV as Kd, b1 as Ud, b2 as Gd, b3 as Hd, b4 as Wd, b5 as Qd, b6 as Jd, b7 as Yd, aR as ct, aM as Xd, eW as Zd, eX as ta, eY as na, eZ as aa, aP as Rr, bJ as eu, aS as tu, e_ as nu, e$ as au, f0 as su, f1 as Ss, f2 as st, f3 as rt, f4 as lt, cC as ru, cD as lu, f5 as to, f6 as no, cz as iu, f7 as ou, f8 as cu, f9 as du, fa as uu, fb as mu, fc as hu, fd as pu, fe as fu, ff as gu, fg as xu, fh as bu, fi as vu, fj as kn, fk as Na, fl as Xn, fm as yu, fn as Ul, fo as Nu, fp as Cu, fq as _s, fr as Gl, fs as wu, ft as Su, fu as Tu, fv as ku, fw as Iu, R as Lr, h as Oa, fx as zs, fy as ao, fz as Du, fA as ps, fB as Eu, fC as so, fD as Au, fE as ro, ci as Ou, fF as Mu, a3 as Fu, fG as ns, fH as Ru, fI as Hl, fJ as Lu, fK as Pu, fL as Wl, fM as Vu, fN as Bu, fO as _u, fP as zu, fQ as $u, cy as qu, cA as ju, fR as lo, fS as Ku, fT as Uu, fU as Gu, fV as Hu, fW as Wu, fX as Qu, fY as Ju, fZ as Yu, f_ as Xu, f$ as io, g0 as Zu, g1 as Ts, b$ as ks, g2 as oo, g3 as em, g4 as tm, g5 as co, g6 as nm, g7 as am, g8 as Is, g9 as $s, ga as sm, gb as rm, gc as lm, gd as im, ge as om, gf as Ql, gg as sa, gh as uo, gi as cm, cB as dm, gj as mo, gk as ho, gl as cs, gm as po, gn as fo, go as Jl, gp as um, gq as mm, gr as ds, gs as hm, gt as Pr, gu as pm, gv as fs, C as Ma, i as Fa, k as Ra, j as La, l as Pa, m as Va, gw as fm, gx as Ba, gy as dn, gz as gr, gA as xr, gB as _a, gC as go, gD as gm, gE as qs, gF as js, gG as xm, gH as Ks, gI as bm, gJ as Yl, gK as Xl, cI as vm, gL as ym, cJ as Nm, cL as Cm, cM as wm, y as Sm, gM as Tm, gN as km, gO as Im, bK as Dm, bL as Em, bM as Am, aX as Ds, cv as Es, gP as Zl, gQ as xo, c6 as Us, gR as Om, gS as Mm, gT as Fm, F as Rm, av as Lm, gU as Pm, gV as Vm, aw as Bm } from "./index-CJ2IEuKz.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
6
|
import { c as ze, H as Ne, B as ee, Y as gs, N as Ka, a as Y, aR as _m, L as $, a3 as ne, a4 as ae, a5 as se, a6 as re, a7 as j, g as Dt, X as et, G as O, a1 as Tt, Z as Pt, _ as kt, $ as It, P as Et, b as Ft, d as At, C as gn, aS as zm, aJ as ka, aT as Vr, aU as bo, aG as Br, aE as $m, a2 as Re, aV as qm, f as xn, u as Ee, e as Nn, aW as _r, aX as Ua, E as vo, T as Ga, K as Ha, M as Yt, O as En, a0 as Xt, W as As, J as Vn, k as jm, aK as An, aY as Km, aZ as Um, a_ as yo, ai as Gm, aM as Hm, a$ as Wm, b0 as Qm, b1 as ei, b2 as Jm, b3 as Ym, b4 as Xm, b5 as Zm, aQ as eh, b6 as th, b7 as ti, b8 as nh, b9 as ni, R as br, ba as ca, bb as ah, a8 as Je, bc as sh, bd as za, be as xs, bf as un, bg as as, bh as ai, bi as rh, bj as Lt, bk as lh, V as No, bl as at, v as si, bm as ih, bn as oh, bo as ch, bp as dh, bq as uh, br as mh, bs as hh, bt as ph, bu as fh, bv as gh, bw as xh, bx as bh, az as ri, by as vh, bz as yh, bA as Nh, Q as Os } from "./switch-xcWLtWs0.js";
|
|
7
|
-
import { f as Ch, g as ft, S as wh, h as Co, V as wo, u as Sh, e as Th, R as Ms, C as li } from "./use-create-flow-overlay-state-
|
|
8
|
-
import { r as So, f as Wa } from "./use-visual-utils-
|
|
7
|
+
import { f as Ch, g as ft, S as wh, h as Co, V as wo, u as Sh, e as Th, R as Ms, C as li } from "./use-create-flow-overlay-state-DAvEqaJV.js";
|
|
8
|
+
import { r as So, f as Wa } from "./use-visual-utils-FoHNPwpu.js";
|
|
9
9
|
import { C as To } from "./chevrons-up-down-qQMadOWA.js";
|
|
10
10
|
import { createPortal as kh } from "react-dom";
|
|
11
11
|
import "./index-CJdxSyQq.js";
|