react-semaphor 0.1.304 → 0.1.305

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 (26) hide show
  1. package/dist/chunks/{dashboard-controls-DCZnUFI0.js → dashboard-controls-BcwXajYv.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-CyFZfGaN.js → dashboard-controls-DjOO0fkG.js} +4 -4
  3. package/dist/chunks/{dashboard-filter-controls-button-YQZ-oeN5.js → dashboard-filter-controls-button-CR0_duPw.js} +1 -1
  4. package/dist/chunks/{dashboard-filter-controls-button-DI7XUgZK.js → dashboard-filter-controls-button-YvRfoUuN.js} +3 -3
  5. package/dist/chunks/{dashboard-json-C6R2qixD.js → dashboard-json-BYLaWi0-.js} +1 -1
  6. package/dist/chunks/{dashboard-json-Z8jz16Yj.js → dashboard-json-tOsNVccY.js} +1 -1
  7. package/dist/chunks/{dashboard-summary-settings-dialog-BlD77h63.js → dashboard-summary-settings-dialog-CMxi2arh.js} +1 -1
  8. package/dist/chunks/{dashboard-summary-settings-dialog-DJyY-PB9.js → dashboard-summary-settings-dialog-DioOegLQ.js} +1 -1
  9. package/dist/chunks/{edit-dashboard-visual-CNGc1zcN.js → edit-dashboard-visual-331vOmKT.js} +1 -1
  10. package/dist/chunks/{edit-dashboard-visual-CfRJXwDR.js → edit-dashboard-visual-ClLcFLD_.js} +3 -3
  11. package/dist/chunks/{index-D2vz3gvd.js → index-BOGpMmRo.js} +211 -211
  12. package/dist/chunks/{index-GHhvGdF9.js → index-DJFckbGE.js} +23270 -23186
  13. package/dist/chunks/{resource-management-panel-7Y4ITzGH.js → resource-management-panel-BS9nfJbb.js} +2 -2
  14. package/dist/chunks/{resource-management-panel-Bdus73Iu.js → resource-management-panel-CoHy6cOi.js} +1 -1
  15. package/dist/chunks/{use-create-flow-overlay-state-CSytlf2H.js → use-create-flow-overlay-state-BSUi4chy.js} +1 -1
  16. package/dist/chunks/{use-create-flow-overlay-state-CllZvyvE.js → use-create-flow-overlay-state-Lmk-mIkA.js} +2 -2
  17. package/dist/chunks/{use-visual-utils-CDO4kVX5.js → use-visual-utils-CR9nLyEz.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-CyjLzcDG.js → use-visual-utils-CikIkKb2.js} +1 -1
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +5 -5
  23. package/dist/style.css +1 -1
  24. package/dist/surfboard/index.cjs +1 -1
  25. package/dist/surfboard/index.js +2 -2
  26. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-BH17qlxH.js"),s=require("./index-D2vz3gvd.js"),b=require("react");require("./index-DRlMUglg.js");require("react-dom");const G=require("./dashboard-filter-controls-button-YQZ-oeN5.js"),it=require("./index-D7KJindZ.js"),xs=require("./dashboard-summary-settings-dialog-DJyY-PB9.js"),lt=require("./use-debounced-dirty-check-XHSwAefL.js"),Fe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),gs=require("./use-create-flow-overlay-state-CSytlf2H.js"),bs=require("./save-CFBIhbHD.js"),vs=require("./palette-BqJlrRto.js");function ct(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const I=ct(b);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-BH17qlxH.js"),s=require("./index-BOGpMmRo.js"),b=require("react");require("./index-DRlMUglg.js");require("react-dom");const G=require("./dashboard-filter-controls-button-CR0_duPw.js"),it=require("./index-D7KJindZ.js"),xs=require("./dashboard-summary-settings-dialog-DioOegLQ.js"),lt=require("./use-debounced-dirty-check-XHSwAefL.js"),Fe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),gs=require("./use-create-flow-overlay-state-BSUi4chy.js"),bs=require("./save-CFBIhbHD.js"),vs=require("./palette-BqJlrRto.js");function ct(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const I=ct(b);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,16 +1,16 @@
1
1
  import { jsx as e, jsxs as c, Fragment as T } from "react/jsx-runtime";
2
2
  import { c as X, u as S, B as L, aH as Nt, m as St, L as dt, I as ue, a as J, aI as Re, aJ as da, aK as ua, E as ls, f as Y, aL as ds, aM as us, aN as ut, T as ma, q as ha, r as _e, t as Ue, s as mt, aO as pa, aP as ms, n as ta, z as hs, A as ps, D as fs, F as gs, K as vs, aQ as bs } from "./switch-BFhVVwh9.js";
3
- import { c5 as ys, u as j, b as Ge, c6 as xs, bl as ht, c as $e, d as Ve, e as ze, f as wt, o as Ns, c7 as de, by as Te, c8 as Ss, c9 as aa, ca as fa, cb as ga, cc as ws, bO as Dt, cd as Ds, ce as Cs, cf as Es, cg as Is, ch as As, ci as Ls, r as qe, z as Be, p as A, bV as Ms, cj as Os, ck as ks, bS as pt, cl as ft, bx as Ct, bc as va, cm as gt, ba, cn as Ps, bF as ya, bG as xa, bH as Na, bI as Sa, bJ as wa, bK as Da, bL as Ca, bM as vt, co as Ts, cp as _s, cq as Us, bp as Fs, cr as Rs, cs as Gs, X as $s, W as ke, ct as Vs, a1 as zs, Y as nt, cu as qs, cv as Bs, cw as Hs, ad as js, cx as Ks, L as rt, cy as Qs, cz as Ws, cA as Js, c4 as Ys, cB as Xs, bq as Zs, br as en, bs as tn, bt as an, bu as $, bZ as sn, N as nn, bA as rn, cC as on, bv as sa, cD as cn, cE as ln, cF as dn, a0 as un, O as mn, cG as hn, K as bt } from "./index-GHhvGdF9.js";
3
+ import { c5 as ys, u as j, b as Ge, c6 as xs, bl as ht, c as $e, d as Ve, e as ze, f as wt, o as Ns, c7 as de, by as Te, c8 as Ss, c9 as aa, ca as fa, cb as ga, cc as ws, bO as Dt, cd as Ds, ce as Cs, cf as Es, cg as Is, ch as As, ci as Ls, r as qe, z as Be, p as A, bV as Ms, cj as Os, ck as ks, bS as pt, cl as ft, bx as Ct, bc as va, cm as gt, ba, cn as Ps, bF as ya, bG as xa, bH as Na, bI as Sa, bJ as wa, bK as Da, bL as Ca, bM as vt, co as Ts, cp as _s, cq as Us, bp as Fs, cr as Rs, cs as Gs, X as $s, W as ke, ct as Vs, a1 as zs, Y as nt, cu as qs, cv as Bs, cw as Hs, ad as js, cx as Ks, L as rt, cy as Qs, cz as Ws, cA as Js, c4 as Ys, cB as Xs, bq as Zs, br as en, bs as tn, bt as an, bu as $, bZ as sn, N as nn, bA as rn, cC as on, bv as sa, cD as cn, cE as ln, cF as dn, a0 as un, O as mn, cG as hn, K as bt } from "./index-DJFckbGE.js";
4
4
  import * as M from "react";
5
5
  import Ea, { useState as N, useMemo as F, useCallback as Fe, useEffect as ot } from "react";
6
6
  import "./index-CJdxSyQq.js";
7
7
  import "react-dom";
8
- import { b as pn, u as fn, A as gn, V as vn, c as bn, D as yn, N as xn, U as Nn } from "./dashboard-filter-controls-button-DI7XUgZK.js";
8
+ import { b as pn, u as fn, A as gn, V as vn, c as bn, D as yn, N as xn, U as Nn } from "./dashboard-filter-controls-button-YvRfoUuN.js";
9
9
  import { d as Sn } from "./index-DFOb_6HB.js";
10
- import { C as wn, D as Dn } from "./dashboard-summary-settings-dialog-BlD77h63.js";
10
+ import { C as wn, D as Dn } from "./dashboard-summary-settings-dialog-CMxi2arh.js";
11
11
  import { u as Cn } from "./use-debounced-dirty-check-BwAbnX_5.js";
12
12
  import { s as it } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
13
- import { u as En, e as In } from "./use-create-flow-overlay-state-CllZvyvE.js";
13
+ import { u as En, e as In } from "./use-create-flow-overlay-state-Lmk-mIkA.js";
14
14
  import { S as na } from "./save-j-clxFtx.js";
15
15
  import { P as An, B as Ln } from "./palette-DD-i7bNS.js";
16
16
  /**
@@ -1,4 +1,4 @@
1
- "use strict";const g=require("react"),t=require("./index-D2vz3gvd.js"),e=require("react/jsx-runtime"),r=require("./switch-BH17qlxH.js"),F=require("./use-create-flow-overlay-state-CSytlf2H.js"),R=require("./use-visual-utils-CDO4kVX5.js"),U=require("./date-formatter-D9Bvw5Qk.js");/**
1
+ "use strict";const g=require("react"),t=require("./index-BOGpMmRo.js"),e=require("react/jsx-runtime"),r=require("./switch-BH17qlxH.js"),F=require("./use-create-flow-overlay-state-BSUi4chy.js"),R=require("./use-visual-utils-CR9nLyEz.js"),U=require("./date-formatter-D9Bvw5Qk.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,9 +1,9 @@
1
1
  import Se, { useState as T, useRef as X, useCallback as $, useEffect as O, useContext as Ae } from "react";
2
- import { u as W, ae as z, aZ as q, aV as le, aW as K, af as de, aU as Ie, b as ce, c as ue, d as me, e as he, f as pe, bV as Fe, o as Le, t as Te, v as Pe, b8 as fe, bW as ke, p as k, b9 as G, W as Ue, bq as ve, br as ge, bt as be, bu as R, by as Ve, bl as Me, bX as Be, bY as Oe, bF as ze, bG as Re, bH as $e, bI as _e, bJ as He, bK as je, bL as Xe, a$ as Ge, bZ as We, b_ as qe, bn as Ke, aX as J, M as Qe, ah as Ze, b$ as Ye, c0 as Je, c1 as et, c2 as tt, c3 as ee, c4 as at } from "./index-GHhvGdF9.js";
2
+ import { u as W, ae as z, aZ as q, aV as le, aW as K, af as de, aU as Ie, b as ce, c as ue, d as me, e as he, f as pe, bV as Fe, o as Le, t as Te, v as Pe, b8 as fe, bW as ke, p as k, b9 as G, W as Ue, bq as ve, br as ge, bt as be, bu as R, by as Ve, bl as Me, bX as Be, bY as Oe, bF as ze, bG as Re, bH as $e, bI as _e, bJ as He, bK as je, bL as Xe, a$ as Ge, bZ as We, b_ as qe, bn as Ke, aX as J, M as Qe, ah as Ze, b$ as Ye, c0 as Je, c1 as et, c2 as tt, c3 as ee, c4 as at } from "./index-DJFckbGE.js";
3
3
  import { jsx as t, jsxs as s, Fragment as _ } from "react/jsx-runtime";
4
4
  import { c as xe, L as te, I as st, B as I, f as Q, n as j, u as B, m as Z, aE as ae, ae as ye, G as we, e as rt, l as ot, a as H, p as Y, X as nt, P as Ce, b as De, d as Ne, aF as it, aG as lt } from "./switch-BFhVVwh9.js";
5
- import { V as dt, E as se, a as re, b as ct, c as ut, L as mt, d as ht, C as pt, u as ft, e as vt } from "./use-create-flow-overlay-state-CllZvyvE.js";
6
- import { u as Ee } from "./use-visual-utils-CyjLzcDG.js";
5
+ import { V as dt, E as se, a as re, b as ct, c as ut, L as mt, d as ht, C as pt, u as ft, e as vt } from "./use-create-flow-overlay-state-Lmk-mIkA.js";
6
+ import { u as Ee } from "./use-visual-utils-CikIkKb2.js";
7
7
  import { k as oe } from "./date-formatter-DyIOb6uC.js";
8
8
  /**
9
9
  * @license lucide-react v0.453.0 - ISC
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as m, useState as b, useRef as f, useEffect as S } from "react";
3
3
  import { u as o, a as N, B as p, X as D, C as J } from "./switch-BFhVVwh9.js";
4
- import "./index-GHhvGdF9.js";
4
+ import "./index-DJFckbGE.js";
5
5
  import "./index-CJdxSyQq.js";
6
6
  import "react-dom";
7
7
  function C() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-BH17qlxH.js");require("./index-D2vz3gvd.js");require("./index-DRlMUglg.js");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),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-BH17qlxH.js");require("./index-BOGpMmRo.js");require("./index-DRlMUglg.js");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),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as a, Fragment as ue } from "react/jsx-runtime";
2
2
  import me, { useState as f, useCallback as H, useEffect as q, useMemo as U } from "react";
3
- import { u as he, b as Q, c as ee, d as ae, e as te, f as se, R, g as $, C as fe, h as pe, i as be, j as ve, k as ge, l as V, m as G, n as xe, o as re, p as I } from "./index-GHhvGdF9.js";
3
+ import { u as he, b as Q, c as ee, d as ae, e as te, f as se, R, g as $, C as fe, h as pe, i as be, j as ve, k as ge, l as V, m as G, n as xe, o as re, p as I } from "./index-DJFckbGE.js";
4
4
  import { a as k, L as P, P as Se, b as ye, B as A, d as Ne, e as X, f as we, S as ke, g as Ce, h as Te, i as Ie, j as Pe, k as Z, I as Ae } from "./switch-BFhVVwh9.js";
5
5
  function ze(r = {}) {
6
6
  var T, L, D, M;
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),a=require("./index-D2vz3gvd.js"),s=require("./switch-BH17qlxH.js");function q(n={}){var k,P,A,E;const{authToken:c,tokenProps:t}=a.useSemaphorContext(),S=n.enabled??!0,u=(c==null?void 0:c.accessToken)??null,f=(t==null?void 0:t.apiServiceUrl)??null,[N,j]=o.useState(!1),[v,b]=o.useState(!1),[h,l]=o.useState(!1),[y,d]=o.useState(null),[p,w]=o.useState(null),T=p||{tz:((P=(k=t==null?void 0:t.params)==null?void 0:k.calendarContext)==null?void 0:P.tz)||null,weekStart:((E=(A=t==null?void 0:t.params)==null?void 0:A.calendarContext)==null?void 0:E.weekStart)??null},g=o.useCallback(async()=>{if(!(!S||!u||!f)){j(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to fetch preferences")}const i=await m.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(m){const i=m instanceof Error?m.message:"Unknown error";d(i)}finally{j(!1)}}},[u,f,S]);o.useEffect(()=>{S&&g()},[S,g]);const I=o.useCallback(async m=>{if(!u||!f)return d("Not authenticated"),!1;b(!0),d(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`},body:JSON.stringify(m)});if(!i.ok){const x=await i.json().catch(()=>({}));throw new Error(x.error||"Failed to update preferences")}return await g(),!0}catch(i){const x=i instanceof Error?i.message:"Unknown error";return d(x),!1}finally{b(!1)}},[u,f,g]),C=o.useCallback(async()=>{if(!u||!f)return d("Not authenticated"),!1;l(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to clear preferences")}const i=await m.text();if(i)try{const x=JSON.parse(i);return w({tz:x.tz,weekStart:x.weekStart,source:x.source,isInherited:x.isInherited??!0,userHasPrefs:!1,inherited:x.inherited}),!0}catch{}return await g(),!0}catch(m){const i=m instanceof Error?m.message:"Unknown error";return d(i),!1}finally{l(!1)}},[u,f,g]);return{preferences:T,isLoading:N,isSaving:v,isClearing:h,error:y,updatePreferences:I,clearPreferences:C,refetch:g}}const D=[{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"}],$=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],B="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function X(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return D.map(n=>n.value)}function Z(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function _(n){const c=D.find(t=>t.value===n);return c?c.label:n}function J(n){const c=$.find(t=>t.value===n);return c?c.label:String(n)}function K({open:n,onOpenChange:c}){var M,F,U;const{preferences:t,isLoading:S,isSaving:u,isClearing:f,updatePreferences:N,clearPreferences:j}=q({enabled:n}),v=t.tz||((M=t.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=t.weekStart??((F=t.inherited)==null?void 0:F.weekStart)??1,[h,l]=o.useState(!t.userHasPrefs),[y,d]=o.useState(!1),[p,w]=o.useState(v),[T,g]=o.useState(b),[I,C]=o.useState(!1),k=o.useMemo(()=>X(),[]),P=o.useMemo(()=>k.filter(r=>!D.some(V=>V.value===r)),[k]),A=o.useMemo(()=>_(p),[p]),E=t.inherited?_(t.inherited.tz):"UTC",m=t.inherited?J(t.inherited.weekStart):"Monday",i=Z((U=t.inherited)==null?void 0:U.source);o.useEffect(()=>{if(!n){d(!1);return}y||(t.userHasPrefs!==void 0&&l(!t.userHasPrefs),w(v),g(b))},[n,y,t.userHasPrefs,v,b]);const x=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}h?await j()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again."):await N({tz:p,weekStart:T})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again.")},G=()=>{c(!1)},L=u||f,W=L||S;return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(a.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(a.RadioGroup,{value:h?"defaults":"custom",onValueChange:r=>{d(!0),l(r==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{d(!0),l(!0)},children:[e.jsx(a.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 ",i," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[E,", week starts ",m]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{d(!0),l(!1)},children:[e.jsx(a.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:s.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(s.Label,{className:B,children:"Timezone"}),e.jsxs(s.Popover,{open:I,onOpenChange:C,modal:!0,children:[e.jsx(s.PopoverTrigger,{asChild:!0,children:e.jsxs(s.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":I,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:A}),e.jsx(a.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(s.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:D.map(r=>e.jsxs(a.CommandItem,{value:`${r.value} ${r.label}`,onSelect:()=>{d(!0),w(r.value),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:r.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:r.value})]},r.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All timezones",children:P.map(r=>e.jsxs(a.CommandItem,{value:r,onSelect:()=>{d(!0),w(r),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r?"opacity-100":"opacity-0")}),r]},r))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{className:B,children:"Week starts on"}),e.jsx(a.RadioGroup,{value:String(T),onValueChange:r=>{d(!0),g(Number(r))},className:"flex gap-4",disabled:h,children:$.map(r=>e.jsxs("label",{htmlFor:`week-start-${r.value}`,className:s.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(a.RadioGroupItem,{value:String(r.value),id:`week-start-${r.value}`,disabled:h}),r.label]},r.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:G,disabled:L,children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:x,disabled:W,children:L?e.jsxs(e.Fragment,{children:[e.jsx(s.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}const z=6,O=1,R=20,H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function Y(n){return Number.isNaN(n)?z:Math.min(R,Math.max(O,n))}function Q({open:n,onOpenChange:c,dashboard:t,onApply:S,disabled:u=!1}){const[f,N]=o.useState(!1),[j,v]=o.useState("top"),[b,h]=o.useState(String(z)),l=t.summary;o.useEffect(()=>{n&&(N((l==null?void 0:l.enabled)===!0),v((l==null?void 0:l.position)==="bottom"?"bottom":"top"),h(String((l==null?void 0:l.maxItems)??z)))},[n,l==null?void 0:l.enabled,l==null?void 0:l.position,l==null?void 0:l.maxItems]);const y=o.useMemo(()=>Y(Number.parseInt(b||`${z}`,10)),[b]),d=()=>{S({enabled:f,position:j,maxItems:y}),c(!1)};return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[420px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Summary Settings"}),e.jsx(a.DialogDescription,{className:"text-[13px] leading-5",children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-enabled",className:"text-[13px]",children:"Enable dashboard summary"}),e.jsx(s.Switch,{size:"xs",id:"dashboard-summary-enabled",checked:f,disabled:u,onCheckedChange:N})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-position",className:H,children:"Position"}),e.jsxs(s.Select,{value:j,disabled:u,onValueChange:p=>v(p),children:[e.jsx(s.SelectTrigger,{id:"dashboard-summary-position",size:"xs",children:e.jsx(s.SelectValue,{placeholder:"Select position"})}),e.jsxs(s.SelectContent,{children:[e.jsx(s.SelectItem,{value:"top",children:"Top"}),e.jsx(s.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-max-items",className:H,children:"Max items"}),e.jsx(s.Input,{size:"xs",id:"dashboard-summary-max-items",type:"number",min:O,max:R,disabled:u,value:b,onChange:p=>h(p.target.value),onBlur:()=>h(String(y))}),e.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),u&&e.jsx("p",{className:"text-[12px] text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:()=>c(!1),children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:d,disabled:u,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=K;exports.DashboardSummarySettingsDialog=Q;
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),a=require("./index-BOGpMmRo.js"),s=require("./switch-BH17qlxH.js");function q(n={}){var k,P,A,E;const{authToken:c,tokenProps:t}=a.useSemaphorContext(),S=n.enabled??!0,u=(c==null?void 0:c.accessToken)??null,f=(t==null?void 0:t.apiServiceUrl)??null,[N,j]=o.useState(!1),[v,b]=o.useState(!1),[h,l]=o.useState(!1),[y,d]=o.useState(null),[p,w]=o.useState(null),T=p||{tz:((P=(k=t==null?void 0:t.params)==null?void 0:k.calendarContext)==null?void 0:P.tz)||null,weekStart:((E=(A=t==null?void 0:t.params)==null?void 0:A.calendarContext)==null?void 0:E.weekStart)??null},g=o.useCallback(async()=>{if(!(!S||!u||!f)){j(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to fetch preferences")}const i=await m.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(m){const i=m instanceof Error?m.message:"Unknown error";d(i)}finally{j(!1)}}},[u,f,S]);o.useEffect(()=>{S&&g()},[S,g]);const I=o.useCallback(async m=>{if(!u||!f)return d("Not authenticated"),!1;b(!0),d(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`},body:JSON.stringify(m)});if(!i.ok){const x=await i.json().catch(()=>({}));throw new Error(x.error||"Failed to update preferences")}return await g(),!0}catch(i){const x=i instanceof Error?i.message:"Unknown error";return d(x),!1}finally{b(!1)}},[u,f,g]),C=o.useCallback(async()=>{if(!u||!f)return d("Not authenticated"),!1;l(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to clear preferences")}const i=await m.text();if(i)try{const x=JSON.parse(i);return w({tz:x.tz,weekStart:x.weekStart,source:x.source,isInherited:x.isInherited??!0,userHasPrefs:!1,inherited:x.inherited}),!0}catch{}return await g(),!0}catch(m){const i=m instanceof Error?m.message:"Unknown error";return d(i),!1}finally{l(!1)}},[u,f,g]);return{preferences:T,isLoading:N,isSaving:v,isClearing:h,error:y,updatePreferences:I,clearPreferences:C,refetch:g}}const D=[{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"}],$=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],B="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function X(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return D.map(n=>n.value)}function Z(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function _(n){const c=D.find(t=>t.value===n);return c?c.label:n}function J(n){const c=$.find(t=>t.value===n);return c?c.label:String(n)}function K({open:n,onOpenChange:c}){var M,F,U;const{preferences:t,isLoading:S,isSaving:u,isClearing:f,updatePreferences:N,clearPreferences:j}=q({enabled:n}),v=t.tz||((M=t.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=t.weekStart??((F=t.inherited)==null?void 0:F.weekStart)??1,[h,l]=o.useState(!t.userHasPrefs),[y,d]=o.useState(!1),[p,w]=o.useState(v),[T,g]=o.useState(b),[I,C]=o.useState(!1),k=o.useMemo(()=>X(),[]),P=o.useMemo(()=>k.filter(r=>!D.some(V=>V.value===r)),[k]),A=o.useMemo(()=>_(p),[p]),E=t.inherited?_(t.inherited.tz):"UTC",m=t.inherited?J(t.inherited.weekStart):"Monday",i=Z((U=t.inherited)==null?void 0:U.source);o.useEffect(()=>{if(!n){d(!1);return}y||(t.userHasPrefs!==void 0&&l(!t.userHasPrefs),w(v),g(b))},[n,y,t.userHasPrefs,v,b]);const x=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}h?await j()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again."):await N({tz:p,weekStart:T})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again.")},G=()=>{c(!1)},L=u||f,W=L||S;return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(a.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(a.RadioGroup,{value:h?"defaults":"custom",onValueChange:r=>{d(!0),l(r==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{d(!0),l(!0)},children:[e.jsx(a.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 ",i," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[E,", week starts ",m]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{d(!0),l(!1)},children:[e.jsx(a.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:s.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(s.Label,{className:B,children:"Timezone"}),e.jsxs(s.Popover,{open:I,onOpenChange:C,modal:!0,children:[e.jsx(s.PopoverTrigger,{asChild:!0,children:e.jsxs(s.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":I,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:A}),e.jsx(a.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(s.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:D.map(r=>e.jsxs(a.CommandItem,{value:`${r.value} ${r.label}`,onSelect:()=>{d(!0),w(r.value),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:r.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:r.value})]},r.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All timezones",children:P.map(r=>e.jsxs(a.CommandItem,{value:r,onSelect:()=>{d(!0),w(r),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r?"opacity-100":"opacity-0")}),r]},r))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{className:B,children:"Week starts on"}),e.jsx(a.RadioGroup,{value:String(T),onValueChange:r=>{d(!0),g(Number(r))},className:"flex gap-4",disabled:h,children:$.map(r=>e.jsxs("label",{htmlFor:`week-start-${r.value}`,className:s.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(a.RadioGroupItem,{value:String(r.value),id:`week-start-${r.value}`,disabled:h}),r.label]},r.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:G,disabled:L,children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:x,disabled:W,children:L?e.jsxs(e.Fragment,{children:[e.jsx(s.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}const z=6,O=1,R=20,H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function Y(n){return Number.isNaN(n)?z:Math.min(R,Math.max(O,n))}function Q({open:n,onOpenChange:c,dashboard:t,onApply:S,disabled:u=!1}){const[f,N]=o.useState(!1),[j,v]=o.useState("top"),[b,h]=o.useState(String(z)),l=t.summary;o.useEffect(()=>{n&&(N((l==null?void 0:l.enabled)===!0),v((l==null?void 0:l.position)==="bottom"?"bottom":"top"),h(String((l==null?void 0:l.maxItems)??z)))},[n,l==null?void 0:l.enabled,l==null?void 0:l.position,l==null?void 0:l.maxItems]);const y=o.useMemo(()=>Y(Number.parseInt(b||`${z}`,10)),[b]),d=()=>{S({enabled:f,position:j,maxItems:y}),c(!1)};return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[420px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Summary Settings"}),e.jsx(a.DialogDescription,{className:"text-[13px] leading-5",children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-enabled",className:"text-[13px]",children:"Enable dashboard summary"}),e.jsx(s.Switch,{size:"xs",id:"dashboard-summary-enabled",checked:f,disabled:u,onCheckedChange:N})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-position",className:H,children:"Position"}),e.jsxs(s.Select,{value:j,disabled:u,onValueChange:p=>v(p),children:[e.jsx(s.SelectTrigger,{id:"dashboard-summary-position",size:"xs",children:e.jsx(s.SelectValue,{placeholder:"Select position"})}),e.jsxs(s.SelectContent,{children:[e.jsx(s.SelectItem,{value:"top",children:"Top"}),e.jsx(s.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-max-items",className:H,children:"Max items"}),e.jsx(s.Input,{size:"xs",id:"dashboard-summary-max-items",type:"number",min:O,max:R,disabled:u,value:b,onChange:p=>h(p.target.value),onBlur:()=>h(String(y))}),e.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),u&&e.jsx("p",{className:"text-[12px] text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:()=>c(!1),children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:d,disabled:u,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=K;exports.DashboardSummarySettingsDialog=Q;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("react"),n=require("./index-D2vz3gvd.js"),t=require("./switch-BH17qlxH.js"),ct=require("./use-visual-utils-CDO4kVX5.js"),Me=require("./use-create-flow-overlay-state-CSytlf2H.js"),ja=require("react-dom");require("./index-DRlMUglg.js");const ms=require("./rotate-ccw-CdGW8Rxm.js"),An=require("./palette-BqJlrRto.js");function va(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,l.get?l:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const zt=va(C);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("react"),n=require("./index-BOGpMmRo.js"),t=require("./switch-BH17qlxH.js"),ct=require("./use-visual-utils-CR9nLyEz.js"),Me=require("./use-create-flow-overlay-state-BSUi4chy.js"),ja=require("react-dom");require("./index-DRlMUglg.js");const ms=require("./rotate-ccw-CdGW8Rxm.js"),An=require("./palette-BqJlrRto.js");function va(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,l.get?l:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const zt=va(C);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as a, Fragment as we } from "react/jsx-runtime";
2
2
  import * as zn from "react";
3
3
  import Kt, { useState as K, useRef as Ee, useCallback as De, useEffect as Ne, useMemo as oe, useContext as tr, Suspense as Jo } from "react";
4
- import { cH as ii, b as xa, c as ba, d as va, e as ya, f as _a, o as Un, Q as Ze, ba as kt, cI as oi, cJ as _n, p as st, cK as ci, bl as yt, cL as Xn, cM as di, cN as ui, cO as mi, cP as ar, cQ as nr, bc as Zn, b6 as xt, cR as $s, cS as sr, cT as Yo, cU as Gn, cV as hi, cW as Xo, cX as Zo, r as es, cY as ec, cZ as tc, c_ as Ks, c$ as qn, u as Ta, X as pi, d0 as ac, d1 as nc, d2 as fi, d3 as gi, d4 as sc, d5 as rc, d6 as lc, b0 as ka, b1 as ua, b2 as ma, b3 as yn, b4 as Ut, b5 as Va, d7 as Us, cy as cn, d8 as xi, d9 as Qt, da as mt, db as ic, c3 as la, dc as bi, dd as vi, de as yi, df as oc, dg as cc, dh as dc, C as Ni, di as uc, dj as mc, dk as hc, dl as pc, dm as Ci, dn as fc, dp as ws, dq as gc, dr as fl, ds as xc, dt as gl, du as bc, dv as vc, dw as yc, dx as Ba, bg as qt, bi as jt, dy as wi, dz as rr, bO as lr, bX as ir, dA as or, dB as Nc, dC as Si, dD as Ti, dE as _t, dF as Cc, dG as wc, dH as ki, a9 as Ii, dI as Di, dJ as Sc, dK as Tc, dL as kc, dM as hn, dN as Ic, dO as Dc, dP as xl, dQ as Ac, E as ts, I as cr, dR as Ec, dS as dr, c6 as Oc, dT as bl, L as ht, dU as Mc, dV as Fc, dW as Ai, dX as Ei, cz as Rc, dY as ur, dZ as mr, bS as as, d_ as Oi, d$ as Mi, e0 as vl, e1 as Nn, e2 as Lc, e3 as Pc, e4 as Vc, e5 as Bc, e6 as zc, bD as hr, e7 as _c, e8 as qc, e9 as Fi, ea as Ri, eb as jc, ec as $c, ed as Kc, ee as Uc, ef as Li, eg as Gc, eh as Hc, ei as ns, ej as ss, bq as Wa, br as Ja, bt as Ya, c7 as za, by as Bt, ek as ta, el as Na, em as Ca, en as ia, eo as qa, ep as Qc, eq as Wc, er as Jc, es as Yc, et as Xc, eu as Zc, ev as ed, ew as pr, ex as td, ey as yl, bh as Gt, bb as Ht, ez as ad, eA as nd, eB as sd, W as rd, eC as ld, eD as Pi, eE as id, eF as od, eG as cd, eH as dd, eI as ud, eJ as Gs, eK as md, eL as hd, eM as Hs, eN as Qs, eO as pd, eP as fd, eQ as gd, eR as xd, eS as Nl, bY as Ws, eT as oa, bF as bd, eU as vd, bG as yd, bH as Nd, bI as Cd, bJ as wd, bK as Sd, bL as Td, bM as kd, bu as ct, bp as Id, eV as Dd, eW as pn, eX as fn, eY as gn, eZ as Vi, bs as fr, bZ as Ad, bv as Ed, e_ as Od, e$ as Md, f0 as Fd, f1 as Cn, f2 as Qe, f3 as We, f4 as Je, f5 as Rd, f6 as Ld, f7 as Bi, f8 as zi, f9 as Pd, c4 as _i, fa as wn, fb as Vd, fc as Bd, fd as zd, h as ja, i as $a, j as Ka, k as Ua, l as Ga, m as Ha, fe as _d, R as rs, g as wa, ff as qd, fg as Cl, fh as jd, fi as $d, fj as Ss, fk as wl, fl as Kd, fm as Ud, fn as Gd, fo as Hd, fp as Qd, fq as Ts, fr as qi, fs as Wd, ft as Hn, fu as Jd, fv as ji, fw as Yd, fx as $i, fy as Xd, cC as Zd, fz as eu, aA as tu, fA as Ln, fB as au, fC as Sl, fD as nu, fE as su, fF as Tl, fG as ru, fH as lu, fI as iu, fJ as ou, fK as cu, fL as du, fM as uu, fN as mu, fO as hu, fP as Ki, fQ as pu, fR as fu, fS as gu, fT as xu, fU as bu, fV as vu, fW as yu, fX as Nu, fY as Cu, fZ as Ui, f_ as wu, f$ as ls, g0 as Gi, g1 as Su, g2 as Tu, g3 as Hi, g4 as ku, g5 as Iu, g6 as is, g7 as ks, g8 as Du, g9 as Au, ga as Eu, gb as Ou, gc as Mu, gd as kl, ge as Qa, gf as Qi, gg as Fu, gh as Wi, gi as Ji, gj as Js, gk as Yi, gl as Il, gm as Ru, gn as Lu, go as jn, gp as Pu, gq as gr, gr as Vu, gs as Bu, gt as Qn, gu as zu, gv as xn, gw as aa, gx as Ys, gy as Xs, gz as bn, gA as Xi, gB as _u, gC as Is, gD as Ds, gE as qu, gF as As, gG as ju, gH as Dl, gI as Al, gJ as $u, gK as Ku, gL as Uu, cD as Gu, cE as Hu, cF as Qu, bA as os, gM as cs, gN as El, gO as Zi, ct as Es, gP as Wu, gQ as Ju, gR as Yu, F as Xu, b8 as Zu, gS as em, gT as tm, b9 as am } from "./index-GHhvGdF9.js";
4
+ import { cH as ii, b as xa, c as ba, d as va, e as ya, f as _a, o as Un, Q as Ze, ba as kt, cI as oi, cJ as _n, p as st, cK as ci, bl as yt, cL as Xn, cM as di, cN as ui, cO as mi, cP as ar, cQ as nr, bc as Zn, b6 as xt, cR as $s, cS as sr, cT as Yo, cU as Gn, cV as hi, cW as Xo, cX as Zo, r as es, cY as ec, cZ as tc, c_ as Ks, c$ as qn, u as Ta, X as pi, d0 as ac, d1 as nc, d2 as fi, d3 as gi, d4 as sc, d5 as rc, d6 as lc, b0 as ka, b1 as ua, b2 as ma, b3 as yn, b4 as Ut, b5 as Va, d7 as Us, cy as cn, d8 as xi, d9 as Qt, da as mt, db as ic, c3 as la, dc as bi, dd as vi, de as yi, df as oc, dg as cc, dh as dc, C as Ni, di as uc, dj as mc, dk as hc, dl as pc, dm as Ci, dn as fc, dp as ws, dq as gc, dr as fl, ds as xc, dt as gl, du as bc, dv as vc, dw as yc, dx as Ba, bg as qt, bi as jt, dy as wi, dz as rr, bO as lr, bX as ir, dA as or, dB as Nc, dC as Si, dD as Ti, dE as _t, dF as Cc, dG as wc, dH as ki, a9 as Ii, dI as Di, dJ as Sc, dK as Tc, dL as kc, dM as hn, dN as Ic, dO as Dc, dP as xl, dQ as Ac, E as ts, I as cr, dR as Ec, dS as dr, c6 as Oc, dT as bl, L as ht, dU as Mc, dV as Fc, dW as Ai, dX as Ei, cz as Rc, dY as ur, dZ as mr, bS as as, d_ as Oi, d$ as Mi, e0 as vl, e1 as Nn, e2 as Lc, e3 as Pc, e4 as Vc, e5 as Bc, e6 as zc, bD as hr, e7 as _c, e8 as qc, e9 as Fi, ea as Ri, eb as jc, ec as $c, ed as Kc, ee as Uc, ef as Li, eg as Gc, eh as Hc, ei as ns, ej as ss, bq as Wa, br as Ja, bt as Ya, c7 as za, by as Bt, ek as ta, el as Na, em as Ca, en as ia, eo as qa, ep as Qc, eq as Wc, er as Jc, es as Yc, et as Xc, eu as Zc, ev as ed, ew as pr, ex as td, ey as yl, bh as Gt, bb as Ht, ez as ad, eA as nd, eB as sd, W as rd, eC as ld, eD as Pi, eE as id, eF as od, eG as cd, eH as dd, eI as ud, eJ as Gs, eK as md, eL as hd, eM as Hs, eN as Qs, eO as pd, eP as fd, eQ as gd, eR as xd, eS as Nl, bY as Ws, eT as oa, bF as bd, eU as vd, bG as yd, bH as Nd, bI as Cd, bJ as wd, bK as Sd, bL as Td, bM as kd, bu as ct, bp as Id, eV as Dd, eW as pn, eX as fn, eY as gn, eZ as Vi, bs as fr, bZ as Ad, bv as Ed, e_ as Od, e$ as Md, f0 as Fd, f1 as Cn, f2 as Qe, f3 as We, f4 as Je, f5 as Rd, f6 as Ld, f7 as Bi, f8 as zi, f9 as Pd, c4 as _i, fa as wn, fb as Vd, fc as Bd, fd as zd, h as ja, i as $a, j as Ka, k as Ua, l as Ga, m as Ha, fe as _d, R as rs, g as wa, ff as qd, fg as Cl, fh as jd, fi as $d, fj as Ss, fk as wl, fl as Kd, fm as Ud, fn as Gd, fo as Hd, fp as Qd, fq as Ts, fr as qi, fs as Wd, ft as Hn, fu as Jd, fv as ji, fw as Yd, fx as $i, fy as Xd, cC as Zd, fz as eu, aA as tu, fA as Ln, fB as au, fC as Sl, fD as nu, fE as su, fF as Tl, fG as ru, fH as lu, fI as iu, fJ as ou, fK as cu, fL as du, fM as uu, fN as mu, fO as hu, fP as Ki, fQ as pu, fR as fu, fS as gu, fT as xu, fU as bu, fV as vu, fW as yu, fX as Nu, fY as Cu, fZ as Ui, f_ as wu, f$ as ls, g0 as Gi, g1 as Su, g2 as Tu, g3 as Hi, g4 as ku, g5 as Iu, g6 as is, g7 as ks, g8 as Du, g9 as Au, ga as Eu, gb as Ou, gc as Mu, gd as kl, ge as Qa, gf as Qi, gg as Fu, gh as Wi, gi as Ji, gj as Js, gk as Yi, gl as Il, gm as Ru, gn as Lu, go as jn, gp as Pu, gq as gr, gr as Vu, gs as Bu, gt as Qn, gu as zu, gv as xn, gw as aa, gx as Ys, gy as Xs, gz as bn, gA as Xi, gB as _u, gC as Is, gD as Ds, gE as qu, gF as As, gG as ju, gH as Dl, gI as Al, gJ as $u, gK as Ku, gL as Uu, cD as Gu, cE as Hu, cF as Qu, bA as os, gM as cs, gN as El, gO as Zi, ct as Es, gP as Wu, gQ as Ju, gR as Yu, F as Xu, b8 as Zu, gS as em, gT as tm, b9 as am } from "./index-DJFckbGE.js";
5
5
  import { c as _e, l as he, B as Z, y as Wn, s as Xa, a as X, n as F, aR as nm, L as _, g as ae, h as ne, i as se, j as re, k as $, aS as eo, G as It, X as et, F as Nt, z as Ft, A as Ct, D as wt, P as ft, b as St, d as gt, C as ca, aT as sm, aQ as dn, aU as xr, aV as to, aK as br, aI as rm, I as Re, aW as lm, f as da, u as Fe, e as Wt, aX as vr, aY as Sn, m as ao, T as yr, q as Nr, r as un, t as $n, E as $t, x as ds, p as Sa, W as im, aE as ga, aZ as om, a_ as cm, a$ as no, am as dm, aG as um, b0 as mm, b1 as hm, b2 as Ol, b3 as pm, b4 as fm, b5 as gm, b6 as xm, b7 as bm, b8 as Ml, b9 as vm, ba as Fl, bb as Za, bc as ym, S as je, bd as Nm, be as vn, bf as Jn, bg as na, bh as Pn, bi as Rl, bj as Cm, bk as wm, bl as Sm, bm as Mt, bn as Tm, w as so, bo as rt, a5 as Ll, bp as km, bq as Im, br as Dm, bs as Am, bt as Em, bu as Om, bv as Mm, bw as Fm, bx as Rm, aD as Pl, by as Lm, bz as Pm, bA as Vm, M as Bm, v as us } from "./switch-BFhVVwh9.js";
6
- import { r as ro, f as Tn } from "./use-visual-utils-CyjLzcDG.js";
7
- import { f as bt, g as lo, V as io, u as zm, e as _m, C as Vl } from "./use-create-flow-overlay-state-CllZvyvE.js";
6
+ import { r as ro, f as Tn } from "./use-visual-utils-CikIkKb2.js";
7
+ import { f as bt, g as lo, V as io, u as zm, e as _m, C as Vl } from "./use-create-flow-overlay-state-Lmk-mIkA.js";
8
8
  import { createPortal as qm } from "react-dom";
9
9
  import "./index-CJdxSyQq.js";
10
10
  import { R as Zs } from "./rotate-ccw-X8MbX_hF.js";