react-semaphor 0.1.276 → 0.1.278

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunks/{dashboard-controls-DDVdJwzI.js → dashboard-controls-D9mU5Z1G.js} +1 -1
  3. package/dist/chunks/{dashboard-controls-DxwWVjRa.js → dashboard-controls-DHf9WSeg.js} +4 -4
  4. package/dist/chunks/{dashboard-filter-controls-button-C70HlRpj.js → dashboard-filter-controls-button-C3eC--zB.js} +1 -1
  5. package/dist/chunks/{dashboard-filter-controls-button-D7TUAKTt.js → dashboard-filter-controls-button-Col3P9nH.js} +3 -3
  6. package/dist/chunks/{dashboard-json-BKy_scP5.js → dashboard-json-BZrsDc0Z.js} +1 -1
  7. package/dist/chunks/{dashboard-json-DAFw6SKc.js → dashboard-json-DiHAynxA.js} +1 -1
  8. package/dist/chunks/{dashboard-summary-settings-dialog-HF2D5Eeu.js → dashboard-summary-settings-dialog-BJxnE9wH.js} +1 -1
  9. package/dist/chunks/{dashboard-summary-settings-dialog-ChgzxD8I.js → dashboard-summary-settings-dialog-t6Y8a94z.js} +1 -1
  10. package/dist/chunks/{edit-dashboard-visual-BmUYKdRi.js → edit-dashboard-visual-CdJVVU7F.js} +2 -2
  11. package/dist/chunks/{edit-dashboard-visual-CyFlEODY.js → edit-dashboard-visual-Cg9xHe7E.js} +1 -1
  12. package/dist/chunks/{index-Bvxi8gMt.js → index-BI7I65hX.js} +13653 -13563
  13. package/dist/chunks/{index-Bjzxg0M6.js → index-DVnK3_oU.js} +147 -147
  14. package/dist/chunks/{resource-management-panel-Bk9T4ZD1.js → resource-management-panel-BpGYomkJ.js} +2 -2
  15. package/dist/chunks/{resource-management-panel-LWmoXiPh.js → resource-management-panel-BuDLgHdE.js} +1 -1
  16. package/dist/chunks/{use-create-flow-overlay-state-Bg7Ic4zb.js → use-create-flow-overlay-state-BfpuoFBE.js} +1 -1
  17. package/dist/chunks/{use-create-flow-overlay-state-pcLDsb8l.js → use-create-flow-overlay-state-DgQupBfa.js} +2 -2
  18. package/dist/chunks/{use-visual-utils-BySwOSbR.js → use-visual-utils-BA3-XR15.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-uJIdOFdB.js → use-visual-utils-DWrGnklK.js} +1 -1
  20. package/dist/dashboard/index.cjs +1 -1
  21. package/dist/dashboard/index.js +1 -1
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +5 -5
  24. package/dist/style.css +1 -1
  25. package/dist/surfboard/index.cjs +1 -1
  26. package/dist/surfboard/index.js +2 -2
  27. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -8,6 +8,25 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  ### Changed
10
10
 
11
+ - **Visual refresh — default palette and radius aligned with semaphor-app.** The shipped `--semaphor-*` CSS variable *values* in `src/components/index.css` now mirror the zinc-based design tokens used by the main Semaphor app. Variable names, selector prefixing (`.semaphor-scope`), and the public API are unchanged — only the default values differ.
12
+
13
+ Light mode:
14
+ - `--semaphor-foreground`, `--semaphor-card-foreground`, `--semaphor-popover-foreground`: shifted from `240 10% 3.9%` to `240 5.9% 10%` (zinc-900 warm neutral).
15
+ - `--semaphor-muted`: `240 4.8% 95.9%` → `0 0% 98%` (raised surface now lighter than canvas on hover-states).
16
+ - `--semaphor-destructive`: `0 84.2% 60.2%` → `0 72.2% 50.6%` (red-500, less saturated).
17
+ - `--semaphor-radius`: `0.5rem` (8px) → `0.3125rem` (5px). Cards, controls, tables become denser.
18
+ - Added `--semaphor-brand: 217 91% 53%` as a default (falls back to `--semaphor-foreground` when unset, per Tailwind config — now has an explicit default).
19
+
20
+ Dark mode:
21
+ - Canvas darkened from zinc-900 (`240 10% 10%`) to zinc-950 (`240 10% 3.9%`). No longer pure black — keeps depth without being harsh.
22
+ - Body foreground shifted from `0 0% 80%` to `0 0% 93%` (calm off-white — Linear / Vercel / Notion style). Primary and primary-foreground keep crisp 98% contrast for white-on-dark buttons.
23
+ - Muted swapped so raised surfaces lift *lighter* from canvas (`240 3.7% 15.9%` → `240 5.9% 10%`). Elevation in dark mode now adds light, not darkness.
24
+ - Ring color crisp (`240 4.9% 83.9%` → `0 0% 98%`) for focus visibility.
25
+
26
+ **Customer impact**: customers overriding `--semaphor-*` vars on the host see no change — their overrides still win via cascade. Customers relying on the shipped defaults will see a palette shift (warmer zinc, calmer dark) and tighter radii. No API changes.
27
+
28
+ **Known issue not addressed in this pass**: `theme-provider.tsx` still mutates `document.documentElement.classList` for light/dark, which leaks into the host app. Tracked separately under the `brand-studio` appearance runtime.
29
+
11
30
  - Dashboard assistant visibility now resolves with token precedence: `config.showDashboardAssistant` overrides `showAssistant`, and falls back to `false` when both are unset.
12
31
 
13
32
  ## [0.0.96] - 2025-04-26
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-Bjzxg0M6.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-C70HlRpj.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-ChgzxD8I.js"),Us=require("./use-debounced-dirty-check-XHSwAefL.js"),we=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),Ye=require("./use-create-flow-overlay-state-Bg7Ic4zb.js");function Rs(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const C=Rs(x);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-DVnK3_oU.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-C3eC--zB.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-t6Y8a94z.js"),Us=require("./use-debounced-dirty-check-XHSwAefL.js"),we=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),Ye=require("./use-create-flow-overlay-state-BfpuoFBE.js");function Rs(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const C=Rs(x);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,14 +1,14 @@
1
1
  import { jsxs as o, jsx as e, Fragment as k } from "react/jsx-runtime";
2
- import { bM as de, dp as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dq as ia, N as qa, b as $, e as la, dr as Hs, cr as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a7 as K, ds as we, cI as We, dt as zs, du as Pa, dv as ja, c as Y, dw as za, dx as Bs, cZ as ha, dy as Ks, dz as Qs, dA as Ws, dB as Js, dC as Xs, dD as Ys, H as Me, W as Ae, x as I, dE as Le, dF as Ba, dG as Ka, d7 as Zs, dH as et, w as Z, cH as J, dI as at, dJ as st, dK as Je, dL as tt, dM as rt, dN as Qa, dO as Wa, dP as Ce, dQ as Ee, d3 as Xe, cN as Ye, dR as Ze, ce as Ja, dS as ea, c9 as Xa, dT as nt, cQ as Ya, cR as Za, cS as es, cT as as, cU as ss, cV as ts, cW as rs, cX as aa, dU as ns, cz as ot, dV as it, ag as lt, U as Ua, af as De, dW as ct, am as dt, ah as je, dX as ut, dY as mt, dZ as ht, aB as pt, d_ as ft, d$ as gt, bT as vt, bU as bt, bV as yt, e0 as Nt, bW as St, cF as xt, at as Dt, e1 as wt, e2 as Ct, dn as Et, e3 as Mt, e4 as At, cC as Lt, a9 as It, cK as kt, e5 as Ot, al as Tt, aa as _t, as as Pt, e6 as Ut } from "./index-Bvxi8gMt.js";
2
+ import { bM as de, dp as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dq as ia, N as qa, b as $, e as la, dr as Hs, cr as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a7 as K, ds as we, cI as We, dt as zs, du as Pa, dv as ja, c as Y, dw as za, dx as Bs, cZ as ha, dy as Ks, dz as Qs, dA as Ws, dB as Js, dC as Xs, dD as Ys, H as Me, W as Ae, x as I, dE as Le, dF as Ba, dG as Ka, d7 as Zs, dH as et, w as Z, cH as J, dI as at, dJ as st, dK as Je, dL as tt, dM as rt, dN as Qa, dO as Wa, dP as Ce, dQ as Ee, d3 as Xe, cN as Ye, dR as Ze, ce as Ja, dS as ea, c9 as Xa, dT as nt, cQ as Ya, cR as Za, cS as es, cT as as, cU as ss, cV as ts, cW as rs, cX as aa, dU as ns, cz as ot, dV as it, ag as lt, U as Ua, af as De, dW as ct, am as dt, ah as je, dX as ut, dY as mt, dZ as ht, aB as pt, d_ as ft, d$ as gt, bT as vt, bU as bt, bV as yt, e0 as Nt, bW as St, cF as xt, at as Dt, e1 as wt, e2 as Ct, dn as Et, e3 as Mt, e4 as At, cC as Lt, a9 as It, cK as kt, e5 as Ot, al as Tt, aa as _t, as as Pt, e6 as Ut } from "./index-BI7I65hX.js";
3
3
  import * as M from "react";
4
4
  import os, { useState as N, useMemo as W, useCallback as Ra, useEffect as Rt } from "react";
5
5
  import "react-dom";
6
- import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-D7TUAKTt.js";
6
+ import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-Col3P9nH.js";
7
7
  import { l as Kt } from "./date-formatter-vkCj9Ct-.js";
8
- import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-HF2D5Eeu.js";
8
+ import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-BJxnE9wH.js";
9
9
  import { u as Jt } from "./use-debounced-dirty-check-BwAbnX_5.js";
10
10
  import { s as ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
11
- import { S as Ga } from "./use-create-flow-overlay-state-pcLDsb8l.js";
11
+ import { S as Ga } from "./use-create-flow-overlay-state-DgQupBfa.js";
12
12
  /**
13
13
  * @license lucide-react v0.453.0 - ISC
14
14
  *
@@ -1,4 +1,4 @@
1
- "use strict";const v=require("react"),e=require("./index-Bjzxg0M6.js"),t=require("react/jsx-runtime"),I=require("./use-create-flow-overlay-state-Bg7Ic4zb.js"),k=require("./use-visual-utils-uJIdOFdB.js"),L=require("./date-formatter-CqXdM6JO.js");/**
1
+ "use strict";const v=require("react"),e=require("./index-DVnK3_oU.js"),t=require("react/jsx-runtime"),I=require("./use-create-flow-overlay-state-BfpuoFBE.js"),k=require("./use-visual-utils-DWrGnklK.js"),L=require("./date-formatter-CqXdM6JO.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,8 +1,8 @@
1
1
  import ge, { useState as F, useRef as z, useCallback as V, useEffect as T, useContext as be } from "react";
2
- import { bM as Z, b as $, aC as U, bJ as _, bF as ee, bG as H, aD as te, bE as Ce, e as ae, f as se, g as re, h as oe, i as ne, L as G, d1 as we, d7 as ye, v as xe, B as I, w as j, U as R, J as De, u as B, K as Ne, N as X, d8 as Ae, d9 as K, x as P, b_ as ie, af as Se, c as L, cA as le, cB as de, a6 as ce, cD as ue, cE as M, s as Ee, cI as Ie, cr as Le, M as Fe, da as Te, db as ke, dc as Ue, cQ as Me, cR as Ve, cS as Pe, cT as Be, cU as Oe, cV as ze, cW as Re, as as $e, bL as _e, X as He, dd as je, de as Xe, cw as Ge, bH as W, a8 as Ke, aF as We, P as he, k as me, df as qe, l as pe, dg as Je, dh as Qe, di as Ye, dj as Ze, dk as et, dl as fe, dm as q, dn as tt } from "./index-Bvxi8gMt.js";
2
+ import { bM as Z, b as $, aC as U, bJ as _, bF as ee, bG as H, aD as te, bE as Ce, e as ae, f as se, g as re, h as oe, i as ne, L as G, d1 as we, d7 as ye, v as xe, B as I, w as j, U as R, J as De, u as B, K as Ne, N as X, d8 as Ae, d9 as K, x as P, b_ as ie, af as Se, c as L, cA as le, cB as de, a6 as ce, cD as ue, cE as M, s as Ee, cI as Ie, cr as Le, M as Fe, da as Te, db as ke, dc as Ue, cQ as Me, cR as Ve, cS as Pe, cT as Be, cU as Oe, cV as ze, cW as Re, as as $e, bL as _e, X as He, dd as je, de as Xe, cw as Ge, bH as W, a8 as Ke, aF as We, P as he, k as me, df as qe, l as pe, dg as Je, dh as Qe, di as Ye, dj as Ze, dk as et, dl as fe, dm as q, dn as tt } from "./index-BI7I65hX.js";
3
3
  import { jsx as t, jsxs as s, Fragment as O } from "react/jsx-runtime";
4
- import { V as at, E as st, a as rt, b as ot, L as nt, c as it, d as lt, C as dt, u as ct, e as ut } from "./use-create-flow-overlay-state-pcLDsb8l.js";
5
- import { u as ve } from "./use-visual-utils-BySwOSbR.js";
4
+ import { V as at, E as st, a as rt, b as ot, L as nt, c as it, d as lt, C as dt, u as ct, e as ut } from "./use-create-flow-overlay-state-DgQupBfa.js";
5
+ import { u as ve } from "./use-visual-utils-BA3-XR15.js";
6
6
  import { k as J } from "./date-formatter-vkCj9Ct-.js";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-Bjzxg0M6.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-DVnK3_oU.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { u as s, c as l, B as h, X as d, d as c } from "./index-Bvxi8gMt.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-BI7I65hX.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  function N() {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as a, Fragment as ce } from "react/jsx-runtime";
2
2
  import de, { useState as f, useCallback as j, useEffect as K, useMemo as F } from "react";
3
- import { b as ue, e as q, f as Y, g as Q, h as ee, i as ae, R, c as k, j as $, L as y, P as me, k as he, B as E, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as V, r as G, s as X, t as ye, v as re, w as we, x as P, S as xe, y as Ne, z as Ce, A as ke, E as Te, F as Z, I as Ie } from "./index-Bvxi8gMt.js";
3
+ import { b as ue, e as q, f as Y, g as Q, h as ee, i as ae, R, c as k, j as $, L as y, P as me, k as he, B as E, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as V, r as G, s as X, t as ye, v as re, w as we, x as P, S as xe, y as Ne, z as Ce, A as ke, E as Te, F as Z, I as Ie } from "./index-BI7I65hX.js";
4
4
  function Pe(s = {}) {
5
5
  var I, D, M, L;
6
6
  const { authToken: i, tokenProps: r } = ue(), S = s.enabled ?? !0, o = (i == null ? void 0 : i.accessToken) ?? null, h = (r == null ? void 0 : r.apiServiceUrl) ?? null, [N, w] = f(!1), [g, v] = f(!1), [u, n] = f(!1), [x, c] = f(null), [p, C] = f(null), A = p || {
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-Bjzxg0M6.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),S=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[v,p]=l.useState(!1),[m,n]=l.useState(!1),[j,c]=l.useState(null),[x,w]=l.useState(null),k=x||{tz:((I=(C=s==null?void 0:s.params)==null?void 0:C.calendarContext)==null?void 0:I.tz)||null,weekStart:((D=(P=s==null?void 0:s.params)==null?void 0:P.calendarContext)==null?void 0:D.weekStart)??null},b=l.useCallback(async()=>{if(!(!S||!d||!f)){g(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const i=await u.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(u){const i=u instanceof Error?u.message:"Unknown error";c(i)}finally{g(!1)}}},[d,f,S]);l.useEffect(()=>{S&&b()},[S,b]);const T=l.useCallback(async u=>{if(!d||!f)return c("Not authenticated"),!1;p(!0),c(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(!i.ok){const h=await i.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await b(),!0}catch(i){const h=i instanceof Error?i.message:"Unknown error";return c(h),!1}finally{p(!1)}},[d,f,b]),N=l.useCallback(async()=>{if(!d||!f)return c("Not authenticated"),!1;n(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const i=await u.text();if(i)try{const h=JSON.parse(i);return w({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await b(),!0}catch(u){const i=u instanceof Error?u.message:"Unknown error";return c(i),!1}finally{n(!1)}},[d,f,b]);return{preferences:k,isLoading:y,isSaving:v,isClearing:m,error:j,updatePreferences:T,clearPreferences:N,refetch:b}}const A=[{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"}],H=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const r=Intl;if(r.supportedValuesOf)return r.supportedValuesOf("timeZone")}catch{}return A.map(r=>r.value)}function V(r){switch(r){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function U(r){const o=A.find(s=>s.value===r);return o?o.label:r}function X(r){const o=H.find(s=>s.value===r);return o?o.label:String(r)}function q({open:r,onOpenChange:o}){var M,z,F;const{preferences:s,isLoading:S,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),v=s.tz||((M=s.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,p=s.weekStart??((z=s.inherited)==null?void 0:z.weekStart)??1,[m,n]=l.useState(!s.userHasPrefs),[j,c]=l.useState(!1),[x,w]=l.useState(v),[k,b]=l.useState(p),[T,N]=l.useState(!1),C=l.useMemo(()=>G(),[]),I=l.useMemo(()=>C.filter(t=>!A.some(R=>R.value===t)),[C]),P=l.useMemo(()=>U(x),[x]),D=s.inherited?U(s.inherited.tz):"UTC",u=s.inherited?X(s.inherited.weekStart):"Monday",i=V((F=s.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!r){c(!1);return}j||(s.userHasPrefs!==void 0&&n(!s.userHasPrefs),w(v),b(p))},[r,j,s.userHasPrefs,v,p]);const h=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await g()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again."):await y({tz:x,weekStart:k})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{o(!1)},L=d||f,O=L||S;return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[425px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Calendar Preferences"}),e.jsx(a.DialogDescription,{children:"Set your timezone and week start preferences for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-6 py-4",children:[e.jsxs(a.RadioGroup,{value:m?"defaults":"custom",onValueChange:t=>{c(!0),n(t==="defaults")},className:"space-y-3",children:[e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-primary bg-primary/5":"border-border hover:border-muted-foreground/50"),onClick:()=>{c(!0),n(!0)},children:[e.jsx(a.RadioGroupItem,{value:"defaults",id:"mode-defaults"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs(a.Label,{htmlFor:"mode-defaults",className:"cursor-pointer font-medium",children:["Use ",i," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[D,", Week starts ",u]})]})]}),e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-border hover:border-muted-foreground/50":"border-primary bg-primary/5"),onClick:()=>{c(!0),n(!1)},children:[e.jsx(a.RadioGroupItem,{value:"custom",id:"mode-custom"}),e.jsx(a.Label,{htmlFor:"mode-custom",className:"cursor-pointer font-medium",children:"Use custom settings"})]})]}),e.jsxs("div",{className:a.cn("space-y-6 transition-opacity",m&&"opacity-50 pointer-events-none"),children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{children:"Timezone"}),e.jsxs(a.Popover,{open:T,onOpenChange:N,modal:!0,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(a.Button,{variant:"outline",role:"combobox","aria-expanded":T,className:"w-full justify-between",disabled:m,children:[P,e.jsx(a.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(a.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(a.Command,{className:"overflow-visible",children:[e.jsx(a.CommandInput,{placeholder:"Search timezones..."}),e.jsxs(a.CommandList,{children:[e.jsx(a.CommandEmpty,{children:"No timezone found."}),e.jsx(a.CommandGroup,{heading:"Common",children:A.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),w(t.value),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:t.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.value})]},t.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All Timezones",children:I.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),w(t),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t?"opacity-100":"opacity-0")}),t]},t))})]})]})})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(a.Label,{children:"Week Starts On"}),e.jsx(a.RadioGroup,{value:String(k),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:H.map(t=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(a.RadioGroupItem,{value:String(t.value),id:`week-start-${t.value}`,disabled:m}),e.jsx(a.Label,{htmlFor:`week-start-${t.value}`,className:a.cn("cursor-pointer font-normal",m&&"cursor-not-allowed"),children:t.label})]},t.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:$,disabled:L,children:"Cancel"}),e.jsx(a.Button,{onClick:h,disabled:O,children:L?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const E=6,B=1,_=20;function Z(r){return Number.isNaN(r)?E:Math.min(_,Math.max(B,r))}function J({open:r,onOpenChange:o,dashboard:s,onApply:S,disabled:d=!1}){const[f,y]=l.useState(!1),[g,v]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),v((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??E)))},[r,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const j=l.useMemo(()=>Z(Number.parseInt(p||`${E}`,10)),[p]),c=()=>{S({enabled:f,position:g,maxItems:j}),o(!1)};return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[420px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Summary Settings"}),e.jsx(a.DialogDescription,{children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-enabled",children:"Enable Dashboard Summary"}),e.jsx(a.SmallSwitch,{id:"dashboard-summary-enabled",checked:f,disabled:d,onCheckedChange:y})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:g,disabled:d,onValueChange:x=>v(x),children:[e.jsx(a.SelectTrigger,{id:"dashboard-summary-position",children:e.jsx(a.SelectValue,{placeholder:"Select position"})}),e.jsxs(a.SelectContent,{children:[e.jsx(a.SelectItem,{value:"top",children:"Top"}),e.jsx(a.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-max-items",children:"Max Items"}),e.jsx(a.Input,{id:"dashboard-summary-max-items",type:"number",min:B,max:_,disabled:d,value:p,onChange:x=>m(x.target.value),onBlur:()=>m(String(j))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),d&&e.jsx("p",{className:"text-xs text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:c,disabled:d,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-DVnK3_oU.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),S=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[v,p]=l.useState(!1),[m,n]=l.useState(!1),[j,c]=l.useState(null),[x,w]=l.useState(null),k=x||{tz:((I=(C=s==null?void 0:s.params)==null?void 0:C.calendarContext)==null?void 0:I.tz)||null,weekStart:((D=(P=s==null?void 0:s.params)==null?void 0:P.calendarContext)==null?void 0:D.weekStart)??null},b=l.useCallback(async()=>{if(!(!S||!d||!f)){g(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const i=await u.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(u){const i=u instanceof Error?u.message:"Unknown error";c(i)}finally{g(!1)}}},[d,f,S]);l.useEffect(()=>{S&&b()},[S,b]);const T=l.useCallback(async u=>{if(!d||!f)return c("Not authenticated"),!1;p(!0),c(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(!i.ok){const h=await i.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await b(),!0}catch(i){const h=i instanceof Error?i.message:"Unknown error";return c(h),!1}finally{p(!1)}},[d,f,b]),N=l.useCallback(async()=>{if(!d||!f)return c("Not authenticated"),!1;n(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const i=await u.text();if(i)try{const h=JSON.parse(i);return w({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await b(),!0}catch(u){const i=u instanceof Error?u.message:"Unknown error";return c(i),!1}finally{n(!1)}},[d,f,b]);return{preferences:k,isLoading:y,isSaving:v,isClearing:m,error:j,updatePreferences:T,clearPreferences:N,refetch:b}}const A=[{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"}],H=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const r=Intl;if(r.supportedValuesOf)return r.supportedValuesOf("timeZone")}catch{}return A.map(r=>r.value)}function V(r){switch(r){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function U(r){const o=A.find(s=>s.value===r);return o?o.label:r}function X(r){const o=H.find(s=>s.value===r);return o?o.label:String(r)}function q({open:r,onOpenChange:o}){var M,z,F;const{preferences:s,isLoading:S,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),v=s.tz||((M=s.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,p=s.weekStart??((z=s.inherited)==null?void 0:z.weekStart)??1,[m,n]=l.useState(!s.userHasPrefs),[j,c]=l.useState(!1),[x,w]=l.useState(v),[k,b]=l.useState(p),[T,N]=l.useState(!1),C=l.useMemo(()=>G(),[]),I=l.useMemo(()=>C.filter(t=>!A.some(R=>R.value===t)),[C]),P=l.useMemo(()=>U(x),[x]),D=s.inherited?U(s.inherited.tz):"UTC",u=s.inherited?X(s.inherited.weekStart):"Monday",i=V((F=s.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!r){c(!1);return}j||(s.userHasPrefs!==void 0&&n(!s.userHasPrefs),w(v),b(p))},[r,j,s.userHasPrefs,v,p]);const h=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await g()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again."):await y({tz:x,weekStart:k})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{o(!1)},L=d||f,O=L||S;return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[425px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Calendar Preferences"}),e.jsx(a.DialogDescription,{children:"Set your timezone and week start preferences for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-6 py-4",children:[e.jsxs(a.RadioGroup,{value:m?"defaults":"custom",onValueChange:t=>{c(!0),n(t==="defaults")},className:"space-y-3",children:[e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-primary bg-primary/5":"border-border hover:border-muted-foreground/50"),onClick:()=>{c(!0),n(!0)},children:[e.jsx(a.RadioGroupItem,{value:"defaults",id:"mode-defaults"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs(a.Label,{htmlFor:"mode-defaults",className:"cursor-pointer font-medium",children:["Use ",i," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[D,", Week starts ",u]})]})]}),e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-border hover:border-muted-foreground/50":"border-primary bg-primary/5"),onClick:()=>{c(!0),n(!1)},children:[e.jsx(a.RadioGroupItem,{value:"custom",id:"mode-custom"}),e.jsx(a.Label,{htmlFor:"mode-custom",className:"cursor-pointer font-medium",children:"Use custom settings"})]})]}),e.jsxs("div",{className:a.cn("space-y-6 transition-opacity",m&&"opacity-50 pointer-events-none"),children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{children:"Timezone"}),e.jsxs(a.Popover,{open:T,onOpenChange:N,modal:!0,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(a.Button,{variant:"outline",role:"combobox","aria-expanded":T,className:"w-full justify-between",disabled:m,children:[P,e.jsx(a.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(a.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(a.Command,{className:"overflow-visible",children:[e.jsx(a.CommandInput,{placeholder:"Search timezones..."}),e.jsxs(a.CommandList,{children:[e.jsx(a.CommandEmpty,{children:"No timezone found."}),e.jsx(a.CommandGroup,{heading:"Common",children:A.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),w(t.value),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:t.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.value})]},t.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All Timezones",children:I.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),w(t),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t?"opacity-100":"opacity-0")}),t]},t))})]})]})})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(a.Label,{children:"Week Starts On"}),e.jsx(a.RadioGroup,{value:String(k),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:H.map(t=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(a.RadioGroupItem,{value:String(t.value),id:`week-start-${t.value}`,disabled:m}),e.jsx(a.Label,{htmlFor:`week-start-${t.value}`,className:a.cn("cursor-pointer font-normal",m&&"cursor-not-allowed"),children:t.label})]},t.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:$,disabled:L,children:"Cancel"}),e.jsx(a.Button,{onClick:h,disabled:O,children:L?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const E=6,B=1,_=20;function Z(r){return Number.isNaN(r)?E:Math.min(_,Math.max(B,r))}function J({open:r,onOpenChange:o,dashboard:s,onApply:S,disabled:d=!1}){const[f,y]=l.useState(!1),[g,v]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),v((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??E)))},[r,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const j=l.useMemo(()=>Z(Number.parseInt(p||`${E}`,10)),[p]),c=()=>{S({enabled:f,position:g,maxItems:j}),o(!1)};return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[420px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Summary Settings"}),e.jsx(a.DialogDescription,{children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-enabled",children:"Enable Dashboard Summary"}),e.jsx(a.SmallSwitch,{id:"dashboard-summary-enabled",checked:f,disabled:d,onCheckedChange:y})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:g,disabled:d,onValueChange:x=>v(x),children:[e.jsx(a.SelectTrigger,{id:"dashboard-summary-position",children:e.jsx(a.SelectValue,{placeholder:"Select position"})}),e.jsxs(a.SelectContent,{children:[e.jsx(a.SelectItem,{value:"top",children:"Top"}),e.jsx(a.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-max-items",children:"Max Items"}),e.jsx(a.Input,{id:"dashboard-summary-max-items",type:"number",min:B,max:_,disabled:d,value:p,onChange:x=>m(x.target.value),onBlur:()=>m(String(j))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),d&&e.jsx("p",{className:"text-xs text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:c,disabled:d,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as e, Fragment as Ne } from "react/jsx-runtime";
2
- import { bM as Le, e7 as Ro, x as ut, M as pe, U as F, e8 as ni, e9 as Lo, L as z, y as ee, z as te, A as ae, E as ne, F as j, ac as Ye, B as Q, cr as Tt, ea as Qn, eb as si, ec as ri, ed as li, ee as ii, ef as Jn, a6 as Mt, X as nt, eg as Js, ce as Yn, e as fa, f as ga, g as xa, h as ba, i as Ba, bZ as wt, bW as vt, bT as yt, bU as mt, bV as ht, eh as cl, ei as Po, ej as oi, v as _n, ek as za, cN as Ya, c as W, c9 as Ct, el as ci, em as bs, cz as di, en as Vo, eo as Bo, ep as zo, eq as mn, er as _o, es as ui, et as $o, dp as Ys, u as Ae, eu as qo, ev as mi, ew as jo, ex as Wn, ey as Ko, ez as jt, cx as Pa, cA as Wa, cB as Xa, eA as Bs, cD as Za, cE as dt, eB as _a, eC as Go, eD as zs, eE as Ln, b as wa, ag as hi, e6 as hn, eF as Ws, eG as Uo, eH as Ho, eI as pi, eJ as fi, eK as gi, dG as Xs, dE as Qo, I as We, P as kt, eL as Jo, l as It, eM as Yo, w as ia, eN as Wo, eO as Xo, H as Zo, eP as ec, bN as en, bO as Sa, bP as Ta, bQ as bn, bR as Ut, bS as Va, eQ as _s, eR as Qt, eS as it, eT as Jt, eU as xi, eV as $n, eW as qn, eX as jn, eY as Zs, dm as $a, eZ as bi, e_ as tc, e$ as ac, f0 as nc, C as vi, f1 as sc, f2 as rc, f3 as lc, f4 as ic, f5 as yi, f6 as oc, f7 as vs, f8 as cc, f9 as dl, fa as dc, fb as ul, fc as er, fd as uc, fe as vn, ff as mc, R as yn, fg as Xn, fh as tn, cO as tr, fi as Ni, j as oa, fj as hc, ck as Vt, cl as $t, fk as pc, cm as qt, cZ as ar, da as nr, N as Ci, fl as sr, fm as fc, fn as wi, fo as Si, fp as _t, d$ as ys, fq as gc, fr as xc, fs as bc, ft as Ti, ax as ki, fu as Ii, fv as vc, fw as yc, fx as Nc, fy as pn, fz as Cc, fA as wc, fB as ml, fC as Sc, Z as Zn, a4 as rr, fD as Tc, fE as lr, dr as kc, fF as hl, a7 as pt, fG as Ic, dN as ir, dO as or, dP as ha, dQ as Pn, fH as Dc, e0 as Ac, fI as Di, fJ as Ec, fK as Mc, d3 as es, d1 as gt, fL as Oc, fM as Fc, fN as pl, fO as Rc, k as Ot, dl as va, ds as ts, cI as Pt, fP as ta, fQ as ya, fR as Na, fS as ca, fT as qa, fU as Lc, fV as Pc, b2 as Vc, fW as Bc, fX as zc, fY as _c, fZ as $c, d9 as pa, f_ as qc, f$ as Ai, g0 as jc, g1 as Kc, g2 as Gc, g3 as Ei, dH as fl, c4 as Uc, ca as Ht, di as Hc, g4 as Qc, g5 as Jc, g6 as Yc, g7 as gl, g8 as Wc, g9 as Xc, ga as Zc, gb as ed, af as td, gc as ad, gd as Mi, ge as nd, gf as sd, gg as rd, gh as ld, gi as id, gj as od, gk as $s, gl as cd, gm as dd, gn as ud, go as qs, gp as md, gq as hd, gr as pd, gs as fd, gt as xl, gu as gd, gv as bl, gw as vl, dc as js, cQ as xd, gx as bd, cR as vd, cS as yd, cT as Nd, cU as Cd, cV as wd, cW as Sd, cX as Td, gy as an, gz as kd, gA as Id, gB as Dd, gC as Ad, gD as Oi, cC as cr, dd as Ed, cF as Md, gE as Od, gF as Fd, gG as fn, gH as Kn, gI as Rd, gJ as ja, gK as je, gL as Ke, gM as Ge, gN as Ld, gO as Pd, gP as Fi, gQ as Ri, gR as na, gS as Mn, gT as yl, gU as Vd, dn as Li, S as He, gV as Bd, gW as zd, gX as _d, gY as Nn, gZ as $d, g_ as qd, g$ as jd, m as Ka, n as Ga, o as Ua, p as Ha, q as Qa, r as Ja, h0 as Kd, h1 as Gd, h2 as Nl, h3 as Ud, s as ka, h4 as Hd, h5 as Ns, h6 as Cl, h7 as Qd, h8 as Et, h9 as Jd, ha as Yd, hb as Wd, hc as Xd, hd as Zd, he as Cs, hf as Pi, hg as eu, hh as tu, hi as au, hj as Gn, hk as nu, hl as su, hm as dr, hn as ur, ho as Vi, hp as ru, d0 as Bi, hq as zi, hr as _i, hs as lu, e5 as iu, ht as et, hu as ou, bg as cu, hv as On, hw as du, hx as wl, hy as uu, hz as mu, bc as Sl, hA as Tl, hB as hu, hC as pu, hD as fu, hE as gu, hF as xu, hG as bu, hH as vu, hI as yu, hJ as Nu, hK as Cu, hL as wu, hM as Su, hN as Tu, hO as ku, hP as $i, hQ as Iu, hR as Du, hS as Au, hT as Eu, hU as Mu, hV as Ou, hW as Fu, hX as Ru, hY as Lu, hZ as Pu, h_ as Vu, h$ as qi, i0 as Bu, i1 as mr, i2 as as, i3 as ji, i4 as zu, i5 as _u, i6 as $u, i7 as qu, i8 as ju, i9 as Ku, ia as ns, ib as ws, ic as Gu, id as Uu, ie as Hu, ig as Qu, ih as Ju, ii as kl, ij as Ca, ik as Yu, il as Ki, im as Gi, io as Ks, ip as Ui, iq as Il, d5 as Dl, ir as Wu, is as Xu, it as Zu, iu as Vn, iv as em, iw as hr, ix as tm, iy as am, iz as Un, iA as nm, iB as sm, iC as rm, iD as lm, iE as gn, iF as sa, iG as Gs, iH as Us, iI as xn, iJ as Hi, aY as im, iK as om, iL as Ss, iM as Ts, iN as cm, iO as ks, iP as dm, iQ as Al, iR as El, iS as um, iT as mm, iU as hm, iV as pm, iW as fm, iX as gm, iY as ss, cK as rs, iZ as ls, i_ as Ml, i$ as Qi, dW as Is, j0 as xm, j1 as bm, j2 as vm, _ as ym } from "./index-Bvxi8gMt.js";
2
+ import { bM as Le, e7 as Ro, x as ut, M as pe, U as F, e8 as ni, e9 as Lo, L as z, y as ee, z as te, A as ae, E as ne, F as j, ac as Ye, B as Q, cr as Tt, ea as Qn, eb as si, ec as ri, ed as li, ee as ii, ef as Jn, a6 as Mt, X as nt, eg as Js, ce as Yn, e as fa, f as ga, g as xa, h as ba, i as Ba, bZ as wt, bW as vt, bT as yt, bU as mt, bV as ht, eh as cl, ei as Po, ej as oi, v as _n, ek as za, cN as Ya, c as W, c9 as Ct, el as ci, em as bs, cz as di, en as Vo, eo as Bo, ep as zo, eq as mn, er as _o, es as ui, et as $o, dp as Ys, u as Ae, eu as qo, ev as mi, ew as jo, ex as Wn, ey as Ko, ez as jt, cx as Pa, cA as Wa, cB as Xa, eA as Bs, cD as Za, cE as dt, eB as _a, eC as Go, eD as zs, eE as Ln, b as wa, ag as hi, e6 as hn, eF as Ws, eG as Uo, eH as Ho, eI as pi, eJ as fi, eK as gi, dG as Xs, dE as Qo, I as We, P as kt, eL as Jo, l as It, eM as Yo, w as ia, eN as Wo, eO as Xo, H as Zo, eP as ec, bN as en, bO as Sa, bP as Ta, bQ as bn, bR as Ut, bS as Va, eQ as _s, eR as Qt, eS as it, eT as Jt, eU as xi, eV as $n, eW as qn, eX as jn, eY as Zs, dm as $a, eZ as bi, e_ as tc, e$ as ac, f0 as nc, C as vi, f1 as sc, f2 as rc, f3 as lc, f4 as ic, f5 as yi, f6 as oc, f7 as vs, f8 as cc, f9 as dl, fa as dc, fb as ul, fc as er, fd as uc, fe as vn, ff as mc, R as yn, fg as Xn, fh as tn, cO as tr, fi as Ni, j as oa, fj as hc, ck as Vt, cl as $t, fk as pc, cm as qt, cZ as ar, da as nr, N as Ci, fl as sr, fm as fc, fn as wi, fo as Si, fp as _t, d$ as ys, fq as gc, fr as xc, fs as bc, ft as Ti, ax as ki, fu as Ii, fv as vc, fw as yc, fx as Nc, fy as pn, fz as Cc, fA as wc, fB as ml, fC as Sc, Z as Zn, a4 as rr, fD as Tc, fE as lr, dr as kc, fF as hl, a7 as pt, fG as Ic, dN as ir, dO as or, dP as ha, dQ as Pn, fH as Dc, e0 as Ac, fI as Di, fJ as Ec, fK as Mc, d3 as es, d1 as gt, fL as Oc, fM as Fc, fN as pl, fO as Rc, k as Ot, dl as va, ds as ts, cI as Pt, fP as ta, fQ as ya, fR as Na, fS as ca, fT as qa, fU as Lc, fV as Pc, b2 as Vc, fW as Bc, fX as zc, fY as _c, fZ as $c, d9 as pa, f_ as qc, f$ as Ai, g0 as jc, g1 as Kc, g2 as Gc, g3 as Ei, dH as fl, c4 as Uc, ca as Ht, di as Hc, g4 as Qc, g5 as Jc, g6 as Yc, g7 as gl, g8 as Wc, g9 as Xc, ga as Zc, gb as ed, af as td, gc as ad, gd as Mi, ge as nd, gf as sd, gg as rd, gh as ld, gi as id, gj as od, gk as $s, gl as cd, gm as dd, gn as ud, go as qs, gp as md, gq as hd, gr as pd, gs as fd, gt as xl, gu as gd, gv as bl, gw as vl, dc as js, cQ as xd, gx as bd, cR as vd, cS as yd, cT as Nd, cU as Cd, cV as wd, cW as Sd, cX as Td, gy as an, gz as kd, gA as Id, gB as Dd, gC as Ad, gD as Oi, cC as cr, dd as Ed, cF as Md, gE as Od, gF as Fd, gG as fn, gH as Kn, gI as Rd, gJ as ja, gK as je, gL as Ke, gM as Ge, gN as Ld, gO as Pd, gP as Fi, gQ as Ri, gR as na, gS as Mn, gT as yl, gU as Vd, dn as Li, S as He, gV as Bd, gW as zd, gX as _d, gY as Nn, gZ as $d, g_ as qd, g$ as jd, m as Ka, n as Ga, o as Ua, p as Ha, q as Qa, r as Ja, h0 as Kd, h1 as Gd, h2 as Nl, h3 as Ud, s as ka, h4 as Hd, h5 as Ns, h6 as Cl, h7 as Qd, h8 as Et, h9 as Jd, ha as Yd, hb as Wd, hc as Xd, hd as Zd, he as Cs, hf as Pi, hg as eu, hh as tu, hi as au, hj as Gn, hk as nu, hl as su, hm as dr, hn as ur, ho as Vi, hp as ru, d0 as Bi, hq as zi, hr as _i, hs as lu, e5 as iu, ht as et, hu as ou, bg as cu, hv as On, hw as du, hx as wl, hy as uu, hz as mu, bc as Sl, hA as Tl, hB as hu, hC as pu, hD as fu, hE as gu, hF as xu, hG as bu, hH as vu, hI as yu, hJ as Nu, hK as Cu, hL as wu, hM as Su, hN as Tu, hO as ku, hP as $i, hQ as Iu, hR as Du, hS as Au, hT as Eu, hU as Mu, hV as Ou, hW as Fu, hX as Ru, hY as Lu, hZ as Pu, h_ as Vu, h$ as qi, i0 as Bu, i1 as mr, i2 as as, i3 as ji, i4 as zu, i5 as _u, i6 as $u, i7 as qu, i8 as ju, i9 as Ku, ia as ns, ib as ws, ic as Gu, id as Uu, ie as Hu, ig as Qu, ih as Ju, ii as kl, ij as Ca, ik as Yu, il as Ki, im as Gi, io as Ks, ip as Ui, iq as Il, d5 as Dl, ir as Wu, is as Xu, it as Zu, iu as Vn, iv as em, iw as hr, ix as tm, iy as am, iz as Un, iA as nm, iB as sm, iC as rm, iD as lm, iE as gn, iF as sa, iG as Gs, iH as Us, iI as xn, iJ as Hi, aY as im, iK as om, iL as Ss, iM as Ts, iN as cm, iO as ks, iP as dm, iQ as Al, iR as El, iS as um, iT as mm, iU as hm, iV as pm, iW as fm, iX as gm, iY as ss, cK as rs, iZ as ls, i_ as Ml, i$ as Qi, dW as Is, j0 as xm, j1 as bm, j2 as vm, _ as ym } from "./index-BI7I65hX.js";
3
3
  import * as Bn from "react";
4
4
  import aa, { useState as G, useRef as Ee, useEffect as Ce, useCallback as Se, useMemo as ce, useContext as pr, Suspense as Nm } from "react";
5
- import { C as Ol, f as fr, g as St, V as Ji, u as Cm, e as wm } from "./use-create-flow-overlay-state-pcLDsb8l.js";
5
+ import { C as Ol, f as fr, g as St, V as Ji, u as Cm, e as wm } from "./use-create-flow-overlay-state-DgQupBfa.js";
6
6
  import { createPortal as Sm } from "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-Bjzxg0M6.js"),N=require("react"),Ae=require("./use-create-flow-overlay-state-Bg7Ic4zb.js"),cn=require("react-dom");function dn(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const Ot=dn(N);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-DVnK3_oU.js"),N=require("react"),Ae=require("./use-create-flow-overlay-state-BfpuoFBE.js"),cn=require("react-dom");function dn(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const Ot=dn(N);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.