react-semaphor 0.1.224 → 0.1.226

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 (28) hide show
  1. package/dist/chunks/{dashboard-controls--h9IUEDT.js → dashboard-controls-CJwFENq_.js} +5 -5
  2. package/dist/chunks/{dashboard-controls-IVKTw9Wu.js → dashboard-controls-WfvdR-3x.js} +1 -1
  3. package/dist/chunks/{dashboard-json-DqusEFyG.js → dashboard-json-0FgkPBOf.js} +1 -1
  4. package/dist/chunks/{dashboard-json-BiRlE3tk.js → dashboard-json-BMMl4vZv.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-CMWA3IWW.js → dashboard-summary-settings-dialog-7w6MgsZa.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-DgrTQeq5.js → dashboard-summary-settings-dialog-CLk_W4NO.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-CJI6k2A4.js → edit-dashboard-visual-DSuO96w0.js} +1 -1
  8. package/dist/chunks/{edit-dashboard-visual-BFC1d2D4.js → edit-dashboard-visual-uziE-2Vl.js} +2 -2
  9. package/dist/chunks/{editor-action-buttons-DdNZTA1e.js → editor-action-buttons-CICb1HLY.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-DCAIoX0j.js → editor-action-buttons-NWIn7xZ4.js} +1 -1
  11. package/dist/chunks/{index-D232h2I1.js → index-BiMLZ1zZ.js} +5829 -5783
  12. package/dist/chunks/{index-DiWe8LKP.js → index-buJawQQ7.js} +208 -208
  13. package/dist/chunks/{notification-bell-D3eMw8QY.js → notification-bell-6MhrczIG.js} +1 -1
  14. package/dist/chunks/{notification-bell-DXAAQK14.js → notification-bell-S-eySEPf.js} +3 -3
  15. package/dist/chunks/{resource-management-panel-CLB6XF7s.js → resource-management-panel-B1vRjfy8.js} +3 -3
  16. package/dist/chunks/{resource-management-panel-DC2CALo3.js → resource-management-panel-DN4YQNga.js} +1 -1
  17. package/dist/chunks/{use-role-aware-display-preferences-R7TnYxh8.js → use-role-aware-display-preferences-D5Ybe0jJ.js} +1 -1
  18. package/dist/chunks/{use-role-aware-display-preferences-CjMbLlvg.js → use-role-aware-display-preferences-DOG-ac3T.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-D7HvCrtR.js → use-visual-utils-B6rg3-pY.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-C4zq-ybd.js → use-visual-utils-BRYLN4eh.js} +1 -1
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +2 -2
  28. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
  import { jsxs as t, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { bS as Z, cS as Na, u as w, c8 as ze, c9 as Be, B as L, cb as Ke, cc as q, cT as Qe, Z as xs, l as R, m as We, cU as Sa, c7 as Je, n as Xe, o as Ze, p as Ye, q as Ds, L as Ue, Q as re, G as wa, ac as j, cV as xa, cg as Da, cW as Ca, cX as vs, cY as Cs, c as J, cZ as Ls, U as ve, c_ as be, I as A, c$ as Es, cH as La, d0 as Ea, H as X, cf as H, d1 as ka, d2 as Aa, d3 as Ge, d4 as Ma, d5 as Oa, d6 as ks, d7 as As, d8 as fe, d9 as ge, cD as Re, cm as Fe, da as je, ch as Ms, db as qe, dc as Os, e as Is, dd as Ia, cp as Ts, cq as _s, cr as Ps, cs as Us, ct as Gs, cu as Rs, cv as Fs, cw as He, c6 as Ta, de as _a, ai as Pa, a1 as bs, ah as he, df as Ua, ao as Ga, aj as Ie, dg as Ra, dh as Fa, di as ja, aD as qa, dj as Ha, dk as Va, bZ as $a, b_ as za, b$ as Ba, dl as Ka, c1 as Qa, cd as Wa, av as Ja, dm as Xa, dn as Za, dp as Ya, dq as et, dr as st, ds as at, ca as tt, ae as nt, cj as rt, dt as ot, an as it, af as lt, au as ct } from "./index-D232h2I1.js";
2
+ import { bS as Z, cS as Na, u as w, c8 as ze, c9 as Be, B as L, cb as Ke, cc as q, cT as Qe, Z as xs, l as R, m as We, cU as Sa, c7 as Je, n as Xe, o as Ze, p as Ye, q as Ds, L as Ue, Q as re, G as wa, ac as j, cV as xa, cg as Da, cW as Ca, cX as vs, cY as Cs, c as J, cZ as Ls, U as ve, c_ as be, I as A, c$ as Es, cH as La, d0 as Ea, H as X, cf as H, d1 as ka, d2 as Aa, d3 as Ge, d4 as Ma, d5 as Oa, d6 as ks, d7 as As, d8 as fe, d9 as ge, cD as Re, cm as Fe, da as je, ch as Ms, db as qe, dc as Os, e as Is, dd as Ia, cp as Ts, cq as _s, cr as Ps, cs as Us, ct as Gs, cu as Rs, cv as Fs, cw as He, c6 as Ta, de as _a, ai as Pa, a1 as bs, ah as he, df as Ua, ao as Ga, aj as Ie, dg as Ra, dh as Fa, di as ja, aD as qa, dj as Ha, dk as Va, bZ as $a, b_ as za, b$ as Ba, dl as Ka, c1 as Qa, cd as Wa, av as Ja, dm as Xa, dn as Za, dp as Ya, dq as et, dr as st, ds as at, ca as tt, ae as nt, cj as rt, dt as ot, an as it, af as lt, au as ct } from "./index-BiMLZ1zZ.js";
3
3
  import * as E from "react";
4
4
  import js, { useState as S, useMemo as pe, useEffect as dt, useCallback as ut } from "react";
5
5
  import "react-dom";
6
- import { b as mt, u as ht, c as pt, A as ft, V as gt, N as vt, U as bt } from "./notification-bell-DXAAQK14.js";
7
- import { u as yt } from "./use-role-aware-display-preferences-R7TnYxh8.js";
6
+ import { b as mt, u as ht, c as pt, A as ft, V as gt, N as vt, U as bt } from "./notification-bell-S-eySEPf.js";
7
+ import { u as yt } from "./use-role-aware-display-preferences-D5Ybe0jJ.js";
8
8
  import { d as Nt } from "./date-formatter-Y8Za1ib3.js";
9
- import { C as St, D as wt } from "./dashboard-summary-settings-dialog-CMWA3IWW.js";
9
+ import { C as St, D as wt } from "./dashboard-summary-settings-dialog-7w6MgsZa.js";
10
10
  import { u as xt } from "./use-debounced-dirty-check-BwAbnX_5.js";
11
11
  import { s as Te } from "./normalize-dashboard-for-dirty-check-Bn27S0PN.js";
12
- import { S as ys } from "./editor-action-buttons-DdNZTA1e.js";
12
+ import { S as ys } from "./editor-action-buttons-CICb1HLY.js";
13
13
  /**
14
14
  * @license lucide-react v0.453.0 - ISC
15
15
  *
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-DiWe8LKP.js"),b=require("react");require("react-dom");const _=require("./notification-bell-D3eMw8QY.js"),Ss=require("./use-role-aware-display-preferences-CjMbLlvg.js"),ys=require("./date-formatter-Sz6QDaM8.js"),Fe=require("./dashboard-summary-settings-dialog-DgrTQeq5.js"),Ds=require("./use-debounced-dirty-check-XHSwAefL.js"),xe=require("./normalize-dashboard-for-dirty-check-B7NQDI1H.js"),Ue=require("./editor-action-buttons-DCAIoX0j.js");function Ns(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const w=Ns(b);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-buJawQQ7.js"),b=require("react");require("react-dom");const _=require("./notification-bell-6MhrczIG.js"),Ss=require("./use-role-aware-display-preferences-DOG-ac3T.js"),ys=require("./date-formatter-Sz6QDaM8.js"),Fe=require("./dashboard-summary-settings-dialog-CLk_W4NO.js"),Ds=require("./use-debounced-dirty-check-XHSwAefL.js"),xe=require("./normalize-dashboard-for-dirty-check-B7NQDI1H.js"),Ue=require("./editor-action-buttons-NWIn7xZ4.js");function Ns(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const w=Ns(b);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -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-D232h2I1.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-BiMLZ1zZ.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  function N() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-DiWe8LKP.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-buJawQQ7.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,6 +1,6 @@
1
1
  import { jsx as e, jsxs as s, Fragment as oe } from "react/jsx-runtime";
2
2
  import de, { useState as h, useCallback as L, useEffect as G, useMemo as z } from "react";
3
- import { l as ue, m as X, n as J, o as K, p as Z, q, R as j, c as C, r as F, L as b, P as me, s as he, B as P, C as fe, t as pe, v as ve, w as be, x as Se, y as ge, z as O, A as B, E as W, F as ye, G as Q, H as we, I as A, S as xe, J as Ne, K as Ce, M as Te, N as ke, O as R, Q as Ie } from "./index-D232h2I1.js";
3
+ import { l as ue, m as X, n as J, o as K, p as Z, q, R as j, c as C, r as F, L as b, P as me, s as he, B as P, C as fe, t as pe, v as ve, w as be, x as Se, y as ge, z as O, A as B, E as W, F as ye, G as Q, H as we, I as A, S as xe, J as Ne, K as Ce, M as Te, N as ke, O as R, Q as Ie } from "./index-BiMLZ1zZ.js";
4
4
  function Ee() {
5
5
  var k, I, E, N;
6
6
  const { authToken: a, tokenProps: r } = ue(), [l, S] = h(!1), [p, g] = h(!1), [x, y] = h(!1), [v, o] = h(null), [u, n] = h(null), w = u || {
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-DiWe8LKP.js");function W(){var N,C,T,y;const{authToken:s,tokenProps:r}=a.useSemaphorContext(),[i,S]=l.useState(!1),[x,v]=l.useState(!1),[j,b]=l.useState(!1),[p,u]=l.useState(null),[m,n]=l.useState(null),g=m||{tz:((C=(N=r==null?void 0:r.params)==null?void 0:N.calendarContext)==null?void 0:C.tz)||null,weekStart:((y=(T=r==null?void 0:r.params)==null?void 0:T.calendarContext)==null?void 0:y.weekStart)??null},d=l.useCallback(async()=>{if(!(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))){S(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const o=await c.json();n({tz:o.tz,weekStart:o.weekStart,source:o.source,isInherited:o.isInherited,userHasPrefs:o.userHasPrefs,inherited:o.inherited})}catch(c){const o=c instanceof Error?c.message:"Unknown error";u(o)}finally{S(!1)}}},[s,r]);l.useEffect(()=>{d()},[d]);const f=l.useCallback(async c=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;v(!0),u(null);try{const o=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s.accessToken}`},body:JSON.stringify(c)});if(!o.ok){const h=await o.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await d(),!0}catch(o){const h=o instanceof Error?o.message:"Unknown error";return u(h),!1}finally{v(!1)}},[s,r,d]),w=l.useCallback(async()=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;b(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const o=await c.text();if(o)try{const h=JSON.parse(o);return n({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await d(),!0}catch(c){const o=c instanceof Error?c.message:"Unknown error";return u(o),!1}finally{b(!1)}},[s,r,d]);return{preferences:g,isLoading:i,isSaving:x,isClearing:j,error:p,updatePreferences:f,clearPreferences:w,refetch:d}}const I=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const s=Intl;if(s.supportedValuesOf)return s.supportedValuesOf("timeZone")}catch{}return I.map(s=>s.value)}function V(s){switch(s){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function L(s){const r=I.find(i=>i.value===s);return r?r.label:s}function X(s){const r=M.find(i=>i.value===s);return r?r.label:String(s)}function q({open:s,onOpenChange:r}){var E,P,A;const{preferences:i,isLoading:S,isSaving:x,isClearing:v,updatePreferences:j,clearPreferences:b}=W(),p=i.tz||((E=i.inherited)==null?void 0:E.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,u=i.weekStart??((P=i.inherited)==null?void 0:P.weekStart)??1,[m,n]=l.useState(!i.userHasPrefs),[g,d]=l.useState(!1),[f,w]=l.useState(p),[N,C]=l.useState(u),[T,y]=l.useState(!1),c=l.useMemo(()=>G(),[]),o=l.useMemo(()=>c.filter(t=>!I.some(R=>R.value===t)),[c]),h=l.useMemo(()=>L(f),[f]),F=i.inherited?L(i.inherited.tz):"UTC",H=i.inherited?X(i.inherited.weekStart):"Monday",B=V((A=i.inherited)==null?void 0:A.source);l.useEffect(()=>{if(!s){d(!1);return}g||(i.userHasPrefs!==void 0&&n(!i.userHasPrefs),w(p),C(u))},[s,g,i.userHasPrefs,p,u]);const _=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await b()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again."):await j({tz:f,weekStart:N})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{r(!1)},D=x||v,O=D||S;return e.jsx(a.Dialog,{open:s,onOpenChange:r,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=>{d(!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:()=>{d(!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 ",B," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[F,", Week starts ",H]})]})]}),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:()=>{d(!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:y,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:[h,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:I.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{d(!0),w(t.value),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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:o.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{d(!0),w(t),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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(N),onValueChange:t=>{d(!0),C(Number(t))},className:"flex gap-4",disabled:m,children:M.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:D,children:"Cancel"}),e.jsx(a.Button,{onClick:_,disabled:O,children:D?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const k=6,z=1,U=20;function Z(s){return Number.isNaN(s)?k:Math.min(U,Math.max(z,s))}function J({open:s,onOpenChange:r,dashboard:i,onApply:S,disabled:x=!1}){const[v,j]=l.useState(!1),[b,p]=l.useState("top"),[u,m]=l.useState(String(k)),n=i.summary;l.useEffect(()=>{s&&(j((n==null?void 0:n.enabled)===!0),p((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??k)))},[s,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const g=l.useMemo(()=>Z(Number.parseInt(u||`${k}`,10)),[u]),d=()=>{S({enabled:v,position:b,maxItems:g}),r(!1)};return e.jsx(a.Dialog,{open:s,onOpenChange:r,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:v,disabled:x,onCheckedChange:j})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:b,disabled:x,onValueChange:f=>p(f),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:z,max:U,disabled:x,value:u,onChange:f=>m(f.target.value),onBlur:()=>m(String(g))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),x&&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:()=>r(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:d,disabled:x,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-buJawQQ7.js");function W(){var N,C,T,y;const{authToken:s,tokenProps:r}=a.useSemaphorContext(),[i,S]=l.useState(!1),[x,v]=l.useState(!1),[j,b]=l.useState(!1),[p,u]=l.useState(null),[m,n]=l.useState(null),g=m||{tz:((C=(N=r==null?void 0:r.params)==null?void 0:N.calendarContext)==null?void 0:C.tz)||null,weekStart:((y=(T=r==null?void 0:r.params)==null?void 0:T.calendarContext)==null?void 0:y.weekStart)??null},d=l.useCallback(async()=>{if(!(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))){S(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const o=await c.json();n({tz:o.tz,weekStart:o.weekStart,source:o.source,isInherited:o.isInherited,userHasPrefs:o.userHasPrefs,inherited:o.inherited})}catch(c){const o=c instanceof Error?c.message:"Unknown error";u(o)}finally{S(!1)}}},[s,r]);l.useEffect(()=>{d()},[d]);const f=l.useCallback(async c=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;v(!0),u(null);try{const o=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s.accessToken}`},body:JSON.stringify(c)});if(!o.ok){const h=await o.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await d(),!0}catch(o){const h=o instanceof Error?o.message:"Unknown error";return u(h),!1}finally{v(!1)}},[s,r,d]),w=l.useCallback(async()=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;b(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const o=await c.text();if(o)try{const h=JSON.parse(o);return n({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await d(),!0}catch(c){const o=c instanceof Error?c.message:"Unknown error";return u(o),!1}finally{b(!1)}},[s,r,d]);return{preferences:g,isLoading:i,isSaving:x,isClearing:j,error:p,updatePreferences:f,clearPreferences:w,refetch:d}}const I=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const s=Intl;if(s.supportedValuesOf)return s.supportedValuesOf("timeZone")}catch{}return I.map(s=>s.value)}function V(s){switch(s){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function L(s){const r=I.find(i=>i.value===s);return r?r.label:s}function X(s){const r=M.find(i=>i.value===s);return r?r.label:String(s)}function q({open:s,onOpenChange:r}){var E,P,A;const{preferences:i,isLoading:S,isSaving:x,isClearing:v,updatePreferences:j,clearPreferences:b}=W(),p=i.tz||((E=i.inherited)==null?void 0:E.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,u=i.weekStart??((P=i.inherited)==null?void 0:P.weekStart)??1,[m,n]=l.useState(!i.userHasPrefs),[g,d]=l.useState(!1),[f,w]=l.useState(p),[N,C]=l.useState(u),[T,y]=l.useState(!1),c=l.useMemo(()=>G(),[]),o=l.useMemo(()=>c.filter(t=>!I.some(R=>R.value===t)),[c]),h=l.useMemo(()=>L(f),[f]),F=i.inherited?L(i.inherited.tz):"UTC",H=i.inherited?X(i.inherited.weekStart):"Monday",B=V((A=i.inherited)==null?void 0:A.source);l.useEffect(()=>{if(!s){d(!1);return}g||(i.userHasPrefs!==void 0&&n(!i.userHasPrefs),w(p),C(u))},[s,g,i.userHasPrefs,p,u]);const _=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await b()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again."):await j({tz:f,weekStart:N})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{r(!1)},D=x||v,O=D||S;return e.jsx(a.Dialog,{open:s,onOpenChange:r,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=>{d(!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:()=>{d(!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 ",B," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[F,", Week starts ",H]})]})]}),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:()=>{d(!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:y,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:[h,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:I.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{d(!0),w(t.value),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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:o.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{d(!0),w(t),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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(N),onValueChange:t=>{d(!0),C(Number(t))},className:"flex gap-4",disabled:m,children:M.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:D,children:"Cancel"}),e.jsx(a.Button,{onClick:_,disabled:O,children:D?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const k=6,z=1,U=20;function Z(s){return Number.isNaN(s)?k:Math.min(U,Math.max(z,s))}function J({open:s,onOpenChange:r,dashboard:i,onApply:S,disabled:x=!1}){const[v,j]=l.useState(!1),[b,p]=l.useState("top"),[u,m]=l.useState(String(k)),n=i.summary;l.useEffect(()=>{s&&(j((n==null?void 0:n.enabled)===!0),p((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??k)))},[s,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const g=l.useMemo(()=>Z(Number.parseInt(u||`${k}`,10)),[u]),d=()=>{S({enabled:v,position:b,maxItems:g}),r(!1)};return e.jsx(a.Dialog,{open:s,onOpenChange:r,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:v,disabled:x,onCheckedChange:j})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:b,disabled:x,onValueChange:f=>p(f),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:z,max:U,disabled:x,value:u,onChange:f=>m(f.target.value),onBlur:()=>m(String(g))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),x&&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:()=>r(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:d,disabled:x,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-DiWe8LKP.js"),S=require("react"),Ce=require("./editor-action-buttons-DCAIoX0j.js"),Xt=require("react-dom");function Zt(t){const n=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(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Vs=Zt(S);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-buJawQQ7.js"),S=require("react"),Ce=require("./editor-action-buttons-NWIn7xZ4.js"),Xt=require("react-dom");function Zt(t){const n=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(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Vs=Zt(S);/**
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 { jsxs as a, jsx as e, Fragment as Ce } from "react/jsx-runtime";
2
- import { bS as Pe, du as Hl, I as dt, Y as be, a1 as O, dv as Xa, dw as Yl, L as P, J as te, K as ae, M as ne, N as se, O as _, c0 as ze, B as J, c7 as At, dx as Tn, dy as jr, dz as Kr, dA as _r, dB as Ur, dC as kn, ab as Mt, X as Qe, dD as vs, ch as ys, m as pa, n as fa, o as ga, p as xa, q as Ja, c4 as pt, c1 as lt, bZ as it, b_ as tt, b$ as at, dE as sr, dF as Ns, u as Le, G as is, dG as ba, cm as Da, c as re, dc as ht, dH as Gr, c6 as Jr, dI as Ql, dJ as Wl, dK as Xl, dL as _a, dM as Zl, dN as Hr, dO as ei, cS as Yr, dP as ti, dQ as Qr, dR as ai, dS as Cs, dT as ni, dU as Jt, dV as Ua, c8 as Ea, c9 as Oa, dW as os, cb as Ma, cc as rt, dX as Ha, dY as si, dZ as cs, d_ as fn, l as Ra, ai as Wr, d$ as Ga, e0 as ws, e1 as ri, e2 as li, e3 as Xr, e4 as Zr, e5 as el, c$ as Ss, Q as je, P as Nt, s as Ct, t as wt, e6 as ii, H as Zt, e7 as oi, e8 as ci, U as di, e9 as ui, bT as Fa, bU as sa, bV as ra, bW as Za, bX as Pt, bY as ma, ea as ds, eb as ea, ec as ut, ed as ta, ee as mi, ef as vn, eg as yn, eh as Nn, ei as Ts, dp as va, ej as en, ek as hi, R as tn, el as ks, em as La, cn as Is, en as tl, r as Ht, cN as pi, eo as Bt, ep as Kt, eq as fi, er as _t, e as As, cK as Ds, Z as al, es as Es, et as gi, eu as nl, ev as sl, ew as Vt, dk as Un, ex as xi, ey as bi, ez as vi, eA as rl, az as ll, eB as il, eC as yi, eD as Ni, eE as Ci, eF as In, eG as wi, eH as Si, eI as rr, eJ as Ti, a2 as An, a9 as Os, eK as ki, eL as Ms, cU as Ii, eM as lr, ac as nt, eN as Ai, d6 as Rs, d7 as Fs, d8 as Xt, d9 as gn, eO as Di, dl as Ei, eP as ol, eQ as Oi, eR as Mi, cD as Dn, cB as mt, eS as Ri, eT as Fi, eU as ir, eV as Li, cV as En, cg as Ot, eW as $t, eX as aa, eY as na, eZ as Yt, e_ as ya, e$ as Vi, b6 as Pi, f0 as Bi, f1 as $i, f2 as qi, f3 as zi, cJ as ha, f4 as ji, f5 as cl, f6 as Ki, f7 as _i, f8 as Ui, f9 as dl, fa as Gi, fb as Ji, fc as Hi, fd as Yi, fe as Qi, ff as Wi, fg as us, fh as Xi, fi as Zi, fj as eo, fk as ms, fl as to, fm as ao, fn as no, fo as so, cE as ro, fp as Ut, fq as ul, ca as Ls, cO as lo, cd as io, fr as Vs, fs as Ya, ft as Cn, fu as oo, fv as Na, fw as Be, fx as $e, fy as qe, fz as co, fA as uo, fB as mo, fC as ho, fD as qt, fE as un, fF as or, fG as po, dq as ml, S as Ke, fH as fo, fI as go, fJ as xo, v as Ca, w as wa, x as Sa, y as Ta, z as ka, A as Ia, fK as bo, fL as vo, fM as cr, fN as yo, E as Va, fO as No, fP as Gn, fQ as dr, fR as vt, fS as Co, fT as wo, fU as So, fV as To, fW as an, fX as ko, fY as Jn, fZ as hl, f_ as Io, f$ as Ao, g0 as Do, g1 as wn, g2 as Eo, g3 as Oo, g4 as Ps, g5 as Bs, g6 as pl, g7 as Mo, cA as fl, g8 as Ro, g9 as On, dt as Fo, ga as Ue, bk as Lo, gb as Vo, gc as Po, bg as ur, gd as mr, ge as Bo, gf as $o, gg as qo, gh as zo, gi as jo, gj as Ko, gk as _o, gl as Uo, gm as Go, gn as Jo, go as Ho, gp as Yo, gq as Qo, gr as Wo, gs as gl, gt as Xo, gu as Zo, gv as ec, gw as tc, gx as ac, gy as nc, gz as sc, gA as rc, gB as lc, gC as ic, gD as oc, gE as cc, gF as dc, gG as xl, gH as uc, gI as Mn, gJ as bl, gK as vl, b2 as mn, gL as Rn, gM as Hn, gN as mc, gO as yl, gP as hr, cF as hc, gQ as pc, gR as fc, gS as gc, gT as xn, gU as xc, gV as $s, gW as bn, gX as bc, gY as vc, gZ as Sn, g_ as yc, C as Nc, g$ as Cc, h0 as wc, h1 as Sc, h2 as Qa, h3 as zt, h4 as hs, h5 as ps, h6 as Wa, h7 as Nl, h8 as Aa, b0 as Tc, h9 as kc, ha as Yn, hb as Ic, hc as Qn, hd as Ac, he as pr, hf as Dc, hg as Ec, hh as Oc, hi as Mc, hj as Rc, hk as Fc, hl as Lc, hm as Fn, cj as Ln, hn as fr, ho as Cl, df as Wn, hp as Vc, hq as Pc, hr as Bc, a3 as $c } from "./index-D232h2I1.js";
2
+ import { bS as Pe, du as Hl, I as dt, Y as be, a1 as O, dv as Xa, dw as Yl, L as P, J as te, K as ae, M as ne, N as se, O as _, c0 as ze, B as J, c7 as At, dx as Tn, dy as jr, dz as Kr, dA as _r, dB as Ur, dC as kn, ab as Mt, X as Qe, dD as vs, ch as ys, m as pa, n as fa, o as ga, p as xa, q as Ja, c4 as pt, c1 as lt, bZ as it, b_ as tt, b$ as at, dE as sr, dF as Ns, u as Le, G as is, dG as ba, cm as Da, c as re, dc as ht, dH as Gr, c6 as Jr, dI as Ql, dJ as Wl, dK as Xl, dL as _a, dM as Zl, dN as Hr, dO as ei, cS as Yr, dP as ti, dQ as Qr, dR as ai, dS as Cs, dT as ni, dU as Jt, dV as Ua, c8 as Ea, c9 as Oa, dW as os, cb as Ma, cc as rt, dX as Ha, dY as si, dZ as cs, d_ as fn, l as Ra, ai as Wr, d$ as Ga, e0 as ws, e1 as ri, e2 as li, e3 as Xr, e4 as Zr, e5 as el, c$ as Ss, Q as je, P as Nt, s as Ct, t as wt, e6 as ii, H as Zt, e7 as oi, e8 as ci, U as di, e9 as ui, bT as Fa, bU as sa, bV as ra, bW as Za, bX as Pt, bY as ma, ea as ds, eb as ea, ec as ut, ed as ta, ee as mi, ef as vn, eg as yn, eh as Nn, ei as Ts, dp as va, ej as en, ek as hi, R as tn, el as ks, em as La, cn as Is, en as tl, r as Ht, cN as pi, eo as Bt, ep as Kt, eq as fi, er as _t, e as As, cK as Ds, Z as al, es as Es, et as gi, eu as nl, ev as sl, ew as Vt, dk as Un, ex as xi, ey as bi, ez as vi, eA as rl, az as ll, eB as il, eC as yi, eD as Ni, eE as Ci, eF as In, eG as wi, eH as Si, eI as rr, eJ as Ti, a2 as An, a9 as Os, eK as ki, eL as Ms, cU as Ii, eM as lr, ac as nt, eN as Ai, d6 as Rs, d7 as Fs, d8 as Xt, d9 as gn, eO as Di, dl as Ei, eP as ol, eQ as Oi, eR as Mi, cD as Dn, cB as mt, eS as Ri, eT as Fi, eU as ir, eV as Li, cV as En, cg as Ot, eW as $t, eX as aa, eY as na, eZ as Yt, e_ as ya, e$ as Vi, b6 as Pi, f0 as Bi, f1 as $i, f2 as qi, f3 as zi, cJ as ha, f4 as ji, f5 as cl, f6 as Ki, f7 as _i, f8 as Ui, f9 as dl, fa as Gi, fb as Ji, fc as Hi, fd as Yi, fe as Qi, ff as Wi, fg as us, fh as Xi, fi as Zi, fj as eo, fk as ms, fl as to, fm as ao, fn as no, fo as so, cE as ro, fp as Ut, fq as ul, ca as Ls, cO as lo, cd as io, fr as Vs, fs as Ya, ft as Cn, fu as oo, fv as Na, fw as Be, fx as $e, fy as qe, fz as co, fA as uo, fB as mo, fC as ho, fD as qt, fE as un, fF as or, fG as po, dq as ml, S as Ke, fH as fo, fI as go, fJ as xo, v as Ca, w as wa, x as Sa, y as Ta, z as ka, A as Ia, fK as bo, fL as vo, fM as cr, fN as yo, E as Va, fO as No, fP as Gn, fQ as dr, fR as vt, fS as Co, fT as wo, fU as So, fV as To, fW as an, fX as ko, fY as Jn, fZ as hl, f_ as Io, f$ as Ao, g0 as Do, g1 as wn, g2 as Eo, g3 as Oo, g4 as Ps, g5 as Bs, g6 as pl, g7 as Mo, cA as fl, g8 as Ro, g9 as On, dt as Fo, ga as Ue, bk as Lo, gb as Vo, gc as Po, bg as ur, gd as mr, ge as Bo, gf as $o, gg as qo, gh as zo, gi as jo, gj as Ko, gk as _o, gl as Uo, gm as Go, gn as Jo, go as Ho, gp as Yo, gq as Qo, gr as Wo, gs as gl, gt as Xo, gu as Zo, gv as ec, gw as tc, gx as ac, gy as nc, gz as sc, gA as rc, gB as lc, gC as ic, gD as oc, gE as cc, gF as dc, gG as xl, gH as uc, gI as Mn, gJ as bl, gK as vl, b2 as mn, gL as Rn, gM as Hn, gN as mc, gO as yl, gP as hr, cF as hc, gQ as pc, gR as fc, gS as gc, gT as xn, gU as xc, gV as $s, gW as bn, gX as bc, gY as vc, gZ as Sn, g_ as yc, C as Nc, g$ as Cc, h0 as wc, h1 as Sc, h2 as Qa, h3 as zt, h4 as hs, h5 as ps, h6 as Wa, h7 as Nl, h8 as Aa, b0 as Tc, h9 as kc, ha as Yn, hb as Ic, hc as Qn, hd as Ac, he as pr, hf as Dc, hg as Ec, hh as Oc, hi as Mc, hj as Rc, hk as Fc, hl as Lc, hm as Fn, cj as Ln, hn as fr, ho as Cl, df as Wn, hp as Vc, hq as Pc, hr as Bc, a3 as $c } from "./index-BiMLZ1zZ.js";
3
3
  import * as fs from "react";
4
4
  import gs, { useState as G, useRef as Fe, useEffect as Se, useCallback as we, useMemo as de, useContext as qs, Suspense as qc } from "react";
5
- import { C as gr, e as zs, u as ft, V as zc } from "./editor-action-buttons-DdNZTA1e.js";
5
+ import { C as gr, e as zs, u as ft, V as zc } from "./editor-action-buttons-CICb1HLY.js";
6
6
  import { createPortal as jc } from "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -1,6 +1,6 @@
1
- import { bS as T, a1 as i, bT as B, bU as te, bV as se, bW as re, bX as le, bY as oe, u as F, ah as ne, bZ as ie, b_ as de, b$ as ue, c0 as ce, c as S, c1 as pe, c2 as me, Y as q, B as I, E as ye, U as V, Z as U, V as K, c3 as j, H as O, c4 as H, X, I as C } from "./index-D232h2I1.js";
1
+ import { bS as T, a1 as i, bT as B, bU as te, bV as se, bW as re, bX as le, bY as oe, u as F, ah as ne, bZ as ie, b_ as de, b$ as ue, c0 as ce, c as S, c1 as pe, c2 as me, Y as q, B as I, E as ye, U as V, Z as U, V as K, c3 as j, H as O, c4 as H, X, I as C } from "./index-BiMLZ1zZ.js";
2
2
  import { jsx as y, jsxs as f, Fragment as x } from "react/jsx-runtime";
3
- import { u as be, a as z } from "./use-visual-utils-C4zq-ybd.js";
3
+ import { u as be, a as z } from "./use-visual-utils-BRYLN4eh.js";
4
4
  import { useMemo as k, useState as G } from "react";
5
5
  /**
6
6
  * @license lucide-react v0.453.0 - ISC
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-DiWe8LKP.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-D7HvCrtR.js"),v=require("react");/**
1
+ "use strict";const e=require("./index-buJawQQ7.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-B6rg3-pY.js"),v=require("react");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.