react-semaphor 0.1.351 → 0.1.352
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-BAEeX-ug.js → calendar-preferences-dialog-BP6VCs24.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-C8flqOjZ.js → calendar-preferences-dialog-DqB0gRKY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DU9x-97H.js → dashboard-briefing-launcher-CE8bNT8E.js} +3 -3
- package/dist/chunks/{dashboard-briefing-launcher--zBBsBWm.js → dashboard-briefing-launcher-DxLotfPa.js} +1 -1
- package/dist/chunks/{dashboard-controls-BwMjIqjP.js → dashboard-controls-B00gdNuz.js} +3 -3
- package/dist/chunks/{dashboard-controls-CMShL7m9.js → dashboard-controls-DiRVwF2s.js} +1 -1
- package/dist/chunks/{dashboard-json-kD_jszqF.js → dashboard-json-BvdoNEjb.js} +1 -1
- package/dist/chunks/{dashboard-json-CHKC0bf-.js → dashboard-json-qKWjSofT.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-C1RUXsWi.js → edit-dashboard-visual-B25Pk-Hr.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-C1vIFm6H.js → edit-dashboard-visual-ChpvAgup.js} +1 -1
- package/dist/chunks/{index-BJLPtQeK.js → index-D14U5QOC.js} +10843 -10840
- package/dist/chunks/{index-D2ai-cZQ.js → index-DYHvr2To.js} +56 -56
- package/dist/chunks/{resource-management-panel-UkMvz7Cp.js → resource-management-panel-BOW5JCor.js} +2 -2
- package/dist/chunks/{resource-management-panel-f4Od7wCB.js → resource-management-panel-ChEmFjoR.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-jpQ2BxKF.js → use-create-flow-overlay-state-C5jxnrOJ.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-C49F2KdU.js → use-create-flow-overlay-state-CZk4rrrw.js} +1 -1
- package/dist/chunks/{use-visual-utils-D8Pe1PSH.js → use-visual-utils-DHBV770y.js} +1 -1
- package/dist/chunks/{use-visual-utils-CiN4zNkZ.js → use-visual-utils-ika7wXDI.js} +1 -1
- 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 +5 -5
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
|
@@ -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-D14U5QOC.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-21kU-tcj.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
6
|
import { C as be } from "./chevrons-up-down-fg3WME_w.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-DYHvr2To.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-21kU-tcj.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-D14U5QOC.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-C5jxnrOJ.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-DHBV770y.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-DYHvr2To.js"),le=require("./use-create-flow-overlay-state-CZk4rrrw.js"),h=require("react"),bn=require("./use-visual-utils-ika7wXDI.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-21kU-tcj.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-D14U5QOC.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-CE8bNT8E.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-BP6VCs24.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-DP6TXUD8.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-DYHvr2To.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-DxLotfPa.js"),ht=require("./index-D7KJindZ.js"),es=require("./calendar-preferences-dialog-DqB0gRKY.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.
|
|
@@ -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-21kU-tcj.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-D14U5QOC.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-DYHvr2To.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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as yc from "react";
|
|
3
3
|
import ea, { useState as K, useEffect as we, useRef as Fe, useCallback as Ee, useMemo as de, useContext as Nr, Suspense as Nc } from "react";
|
|
4
|
-
import { cO as Di, c as Ea, d as Oa, e as Ma, f as Fa, g as Xa, o as ms, as as It, ax as St, cP as Ai, cQ as ls, p as nt, cR as Ei, cx as is, c4 as Dn, aI as Nt, ay as $t, bI as Cr, cm as sn, az as $n, at as Ct, cS as hs, cE as wr, cT as Cc, cU as Oi, cV as wc, ae as vs, cW as Sc, cX as Tc, cY as dr, cZ as os, u as xa, z as Mi, c_ as kc, c$ as Ic, d0 as Fi, d1 as Ri, d2 as Dc, d3 as Ac, d4 as Ec, am as Va, an as ba, ao as va, ap as qn, aq as ta, ar as Qa, d5 as ur, bF as Tn, d6 as Li, d7 as na, d8 as gt, d9 as Oc, da as Pi, b_ as ma, cF as Vi, db as Sr, dc as Bi, dd as Mc, de as Fc, df as Rc, dg as Lc, dh as Pc, di as Vc, dj as Bc, dk as _i, 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 Ja, aD as Qt, aF as Jt, dw as zi, dx as Tr, b9 as kr, bP as Ir, dy as Dr, dz as Uc, dA as $i, dB as qi, dC as ji, dD as Wt, dE as Gc, dF as Wc, dG as Hc, dH as Qc, dI as Ki, dJ as Ui, W as Gi, dK as Wi, dL as Jc, dM as Yc, dN as Xc, dO as An, dP as Zc, dQ as ed, dR as zl, dS as td, E as ys, t as Ar, dT as ad, dU as Er, bh as nd, dV as $l, I as xt, dW as sd, dX as rd, dY as Hi, dZ as Qi, bG as ld, d_ as Or, d$ as Mr, be as Ns, e0 as Ji, e1 as Yi, e2 as ql, e3 as jn, 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 Xi, ec as Zi, ed as pd, ee as fd, ef as gd, eg as xd, eh as eo, ei as bd, ej as vd, ek as Cs, el as ws, aN as rn, aO as ln, aQ as on, bi as En, aV as Ht, em as oa, en as Ra, eo as La, ep as ha, eq as Za, 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 aa, eA as Dd, eB as Ad, eC as Ed, eD as Od, eE as to, 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 pa, b0 as jd, eV as Kd, b1 as Ud, b2 as Gd, b3 as Wd, b4 as Hd, b5 as Qd, b6 as Jd, b7 as Yd, aR as dt, aM as Xd, eW as Zd, eX as en, eY as tn, eZ as an, aP as Rr, bJ as eu, aS as tu, e_ as au, e$ as nu, f0 as su, f1 as Ss, f2 as rt, f3 as lt, f4 as it, cC as ru, cD as lu, f5 as ao, 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 Ta, fk as Nn, fl as Ya, 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 On, fx as zs, fy as so, fz as Du, fA as ps, fB as Au, fC as ro, fD as Eu, fE as lo, ci as Ou, fF as Mu, a3 as Fu, fG as as, fH as Ru, fI as Wl, fJ as Lu, fK as Pu, fL as Hl, fM as Vu, fN as Bu, fO as _u, fP as zu, fQ as $u, fR as qu, fS as ju, cy as Ku, cA as Uu, fT as io, fU as Gu, fV as Wu, fW as Hu, fX as Qu, fY as Ju, fZ as Yu, f_ as Xu, f$ as Zu, g0 as em, g1 as tm, g2 as oo, g3 as am, g4 as Ts, b$ as ks, g5 as co, g6 as nm, g7 as sm, g8 as uo, g9 as rm, ga as lm, gb as Is, gc as $s, gd as im, ge as om, gf as cm, gg as dm, gh as um, gi as Ql, gj as nn, gk as mo, gl as mm, cB as hm, gm as ho, gn as po, go as cs, gp as fo, gq as go, gr as Jl, gs as pm, gt as fm, gu as ds, gv as gm, gw as Pr, gx as xm, gy as fs, C as Mn, i as Fn, k as Rn, j as Ln, l as Pn, m as Vn, gz as bm, gA as Bn, gB as ca, gC as gr, gD as xr, gE as _n, gF as xo, gG as vm, gH as qs, gI as js, gJ as ym, gK as Ks, gL as Nm, gM as Yl, gN as Xl, cI as Cm, gO as wm, cJ as Sm, cL as Tm, cM as km, y as Im, gP as Dm, gQ as Am, gR as Em, bK as Om, bL as Mm, bM as Fm, aX as Ds, cv as As, gS as Zl, gT as bo, c6 as Us, gU as Rm, gV as Lm, gW as Pm, F as Vm, av as Bm, gX as _m, gY as zm, aw as $m } from "./index-
|
|
4
|
+
import { cO as Di, c as Ea, d as Oa, e as Ma, f as Fa, g as Xa, o as ms, as as It, ax as St, cP as Ai, cQ as ls, p as nt, cR as Ei, cx as is, c4 as Dn, aI as Nt, ay as $t, bI as Cr, cm as sn, az as $n, at as Ct, cS as hs, cE as wr, cT as Cc, cU as Oi, cV as wc, ae as vs, cW as Sc, cX as Tc, cY as dr, cZ as os, u as xa, z as Mi, c_ as kc, c$ as Ic, d0 as Fi, d1 as Ri, d2 as Dc, d3 as Ac, d4 as Ec, am as Va, an as ba, ao as va, ap as qn, aq as ta, ar as Qa, d5 as ur, bF as Tn, d6 as Li, d7 as na, d8 as gt, d9 as Oc, da as Pi, b_ as ma, cF as Vi, db as Sr, dc as Bi, dd as Mc, de as Fc, df as Rc, dg as Lc, dh as Pc, di as Vc, dj as Bc, dk as _i, 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 Ja, aD as Qt, aF as Jt, dw as zi, dx as Tr, b9 as kr, bP as Ir, dy as Dr, dz as Uc, dA as $i, dB as qi, dC as ji, dD as Wt, dE as Gc, dF as Wc, dG as Hc, dH as Qc, dI as Ki, dJ as Ui, W as Gi, dK as Wi, dL as Jc, dM as Yc, dN as Xc, dO as An, dP as Zc, dQ as ed, dR as zl, dS as td, E as ys, t as Ar, dT as ad, dU as Er, bh as nd, dV as $l, I as xt, dW as sd, dX as rd, dY as Hi, dZ as Qi, bG as ld, d_ as Or, d$ as Mr, be as Ns, e0 as Ji, e1 as Yi, e2 as ql, e3 as jn, 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 Xi, ec as Zi, ed as pd, ee as fd, ef as gd, eg as xd, eh as eo, ei as bd, ej as vd, ek as Cs, el as ws, aN as rn, aO as ln, aQ as on, bi as En, aV as Ht, em as oa, en as Ra, eo as La, ep as ha, eq as Za, 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 aa, eA as Dd, eB as Ad, eC as Ed, eD as Od, eE as to, 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 pa, b0 as jd, eV as Kd, b1 as Ud, b2 as Gd, b3 as Wd, b4 as Hd, b5 as Qd, b6 as Jd, b7 as Yd, aR as dt, aM as Xd, eW as Zd, eX as en, eY as tn, eZ as an, aP as Rr, bJ as eu, aS as tu, e_ as au, e$ as nu, f0 as su, f1 as Ss, f2 as rt, f3 as lt, f4 as it, cC as ru, cD as lu, f5 as ao, 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 Ta, fk as Nn, fl as Ya, 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 On, fx as zs, fy as so, fz as Du, fA as ps, fB as Au, fC as ro, fD as Eu, fE as lo, ci as Ou, fF as Mu, a3 as Fu, fG as as, fH as Ru, fI as Wl, fJ as Lu, fK as Pu, fL as Hl, fM as Vu, fN as Bu, fO as _u, fP as zu, fQ as $u, fR as qu, fS as ju, cy as Ku, cA as Uu, fT as io, fU as Gu, fV as Wu, fW as Hu, fX as Qu, fY as Ju, fZ as Yu, f_ as Xu, f$ as Zu, g0 as em, g1 as tm, g2 as oo, g3 as am, g4 as Ts, b$ as ks, g5 as co, g6 as nm, g7 as sm, g8 as uo, g9 as rm, ga as lm, gb as Is, gc as $s, gd as im, ge as om, gf as cm, gg as dm, gh as um, gi as Ql, gj as nn, gk as mo, gl as mm, cB as hm, gm as ho, gn as po, go as cs, gp as fo, gq as go, gr as Jl, gs as pm, gt as fm, gu as ds, gv as gm, gw as Pr, gx as xm, gy as fs, C as Mn, i as Fn, k as Rn, j as Ln, l as Pn, m as Vn, gz as bm, gA as Bn, gB as ca, gC as gr, gD as xr, gE as _n, gF as xo, gG as vm, gH as qs, gI as js, gJ as ym, gK as Ks, gL as Nm, gM as Yl, gN as Xl, cI as Cm, gO as wm, cJ as Sm, cL as Tm, cM as km, y as Im, gP as Dm, gQ as Am, gR as Em, bK as Om, bL as Mm, bM as Fm, aX as Ds, cv as As, gS as Zl, gT as bo, c6 as Us, gU as Rm, gV as Lm, gW as Pm, F as Vm, av as Bm, gX as _m, gY as zm, aw as $m } from "./index-D14U5QOC.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
6
|
import { c as je, H as Ce, B as Z, Y as gs, N as Kn, a as Y, aR as qm, L as $, a3 as ae, a4 as ne, a5 as se, a6 as re, a7 as j, g as Tt, X as tt, G as O, a1 as Dt, Z as Vt, _ as At, $ as Et, P as Ot, b as Rt, d as Mt, C as fa, aS as jm, aJ as kn, aT as Vr, aU as vo, aG as Br, aE as Km, a2 as Re, aV as Um, f as ga, u as Ae, e as ya, aW as _r, aX as Un, E as yo, T as Gn, K as Wn, M as Yt, O as Da, a0 as Xt, W as Es, J as Pa, k as Gm, aK as Aa, aY as Wm, aZ as Hm, a_ as No, ai as Qm, aM as Jm, a$ as Ym, b0 as Xm, b1 as ei, b2 as Zm, b3 as eh, b4 as th, b5 as ah, aQ as nh, b6 as sh, b7 as ti, b8 as rh, b9 as ai, R as br, ba as cn, bb as lh, a8 as Je, bc as ih, bd as zn, be as xs, bf as da, bg as ns, bh as ni, bi as oh, bj as Pt, bk as ch, V as Co, bl as st, v as si, bm as dh, bn as uh, bo as mh, bp as hh, bq as ph, br as fh, bs as gh, bt as xh, bu as bh, bv as vh, bw as yh, bx as Nh, az as ri, by as Ch, bz as wh, bA as Sh, Q as Os } from "./switch-21kU-tcj.js";
|
|
7
|
-
import { f as Th, g as vt, S as kh, h as wo, V as So, u as Ih, e as Dh, R as Ms, C as li } from "./use-create-flow-overlay-state-
|
|
8
|
-
import { r as To, f as Hn } from "./use-visual-utils-
|
|
7
|
+
import { f as Th, g as vt, S as kh, h as wo, V as So, u as Ih, e as Dh, R as Ms, C as li } from "./use-create-flow-overlay-state-C5jxnrOJ.js";
|
|
8
|
+
import { r as To, f as Hn } from "./use-visual-utils-DHBV770y.js";
|
|
9
9
|
import { C as ko } from "./chevrons-up-down-fg3WME_w.js";
|
|
10
10
|
import { createPortal as Ah } from "react-dom";
|
|
11
11
|
import "./index-CJdxSyQq.js";
|
|
@@ -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-DYHvr2To.js");require("./index-BxM99sFL.js");const t=require("./switch-C0S63HAv.js"),Se=require("./use-create-flow-overlay-state-CZk4rrrw.js"),bt=require("./use-visual-utils-ika7wXDI.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.
|