react-semaphor 0.1.238 → 0.1.240

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 (25) hide show
  1. package/dist/chunks/{dashboard-controls-DIFPVHkq.js → dashboard-controls-5NzirqsA.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-m-rn9O15.js → dashboard-controls-BkzmS1iJ.js} +4 -4
  3. package/dist/chunks/{dashboard-json-HWBQuWn2.js → dashboard-json-C76hq8W3.js} +1 -1
  4. package/dist/chunks/{dashboard-json-CJ1HKDT6.js → dashboard-json-t8Nsq3G_.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-DvLyjGhq.js → dashboard-summary-settings-dialog-ChKNCdFf.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-DlwLS77e.js → dashboard-summary-settings-dialog-DUEO6MKE.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-B5jatJ2M.js → edit-dashboard-visual-B7adSgbB.js} +1 -1
  8. package/dist/chunks/{edit-dashboard-visual-BVlA_vRb.js → edit-dashboard-visual-BrADwDVg.js} +2 -2
  9. package/dist/chunks/{editor-action-buttons-Bq-ENC_B.js → editor-action-buttons-BLvPQ9bs.js} +1 -1
  10. package/dist/chunks/{editor-action-buttons-d64iA8wP.js → editor-action-buttons-Ds3YMlO7.js} +2 -2
  11. package/dist/chunks/{index-CyHBRhlz.js → index-B0Wd3GQX.js} +211 -211
  12. package/dist/chunks/{index-0u2X3G_x.js → index-DUkvxDY5.js} +24813 -24801
  13. package/dist/chunks/{notification-bell-DpxVIL-E.js → notification-bell-BQEshMYb.js} +3 -3
  14. package/dist/chunks/{notification-bell-Cu4JA2Rs.js → notification-bell-XU0Jv-Qb.js} +1 -1
  15. package/dist/chunks/{resource-management-panel-JiF_3jpj.js → resource-management-panel-BUhTJM5c.js} +1 -1
  16. package/dist/chunks/{resource-management-panel-CJXupZdG.js → resource-management-panel-B_USGL94.js} +2 -2
  17. package/dist/chunks/{use-visual-utils-yUJHf_h7.js → use-visual-utils-CteVTs77.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-C8_xz-xH.js → use-visual-utils-DDrj9ZR9.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/surfboard/index.cjs +1 -1
  24. package/dist/surfboard/index.js +2 -2
  25. 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"),s=require("./index-CyHBRhlz.js"),b=require("react");require("react-dom");const _=require("./notification-bell-Cu4JA2Rs.js"),Ss=require("./date-formatter-Sz6QDaM8.js"),Pe=require("./dashboard-summary-settings-dialog-DvLyjGhq.js"),ys=require("./use-debounced-dirty-check-XHSwAefL.js"),xe=require("./normalize-dashboard-for-dirty-check-B7NQDI1H.js"),Fe=require("./editor-action-buttons-Bq-ENC_B.js");function Ds(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 w=Ds(b);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-B0Wd3GQX.js"),b=require("react");require("react-dom");const _=require("./notification-bell-XU0Jv-Qb.js"),Ss=require("./date-formatter-Sz6QDaM8.js"),Pe=require("./dashboard-summary-settings-dialog-ChKNCdFf.js"),ys=require("./use-debounced-dirty-check-XHSwAefL.js"),xe=require("./normalize-dashboard-for-dirty-check-B7NQDI1H.js"),Fe=require("./editor-action-buttons-BLvPQ9bs.js");function Ds(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 w=Ds(b);/**
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 r, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { bK as Z, cL as wa, u as w, c0 as Ke, c1 as Qe, B as E, c3 as We, c4 as j, cM as Je, N as Es, b as G, e as Xe, cN as xa, b$ as Ye, f as Ze, g as es, h as ss, i as Ls, L as Re, I as oe, v as Da, a4 as V, cO as fe, c8 as Ge, cP as Ca, cQ as Ns, cR as As, c as X, cS as ks, cT as Ea, cq as as, cU as La, cV as Aa, cW as ka, cX as Ma, cY as Oa, cZ as Ia, H as be, c_ as ye, x as k, c$ as Ms, cA as Ta, d0 as _a, w as Y, c7 as H, d1 as Pa, d2 as Ua, d3 as Fe, d4 as Ra, d5 as Ga, d6 as Os, d7 as Is, d8 as ge, d9 as ve, cw as Ve, ce as je, da as qe, c9 as Ts, db as He, dc as _s, dd as Fa, ch as Ps, ci as Us, cj as Rs, ck as Gs, cl as Fs, cm as Vs, cn as js, co as $e, b_ as Va, de as ja, aa as qa, U as Ss, a9 as pe, df as Ha, ag as $a, ab as Te, dg as za, dh as Ba, di as Ka, av as Qa, dj as Wa, dk as Ja, bR as Xa, bS as Ya, bT as Za, dl as et, bV as st, c5 as at, an as tt, dm as rt, dn as nt, dp as ot, dq as it, dr as lt, ds as ct, c2 as dt, a6 as ut, cb as mt, dt as ht, af as pt, a7 as ft, am as gt } from "./index-0u2X3G_x.js";
2
+ import { bK as Z, cL as wa, u as w, c0 as Ke, c1 as Qe, B as E, c3 as We, c4 as j, cM as Je, N as Es, b as G, e as Xe, cN as xa, b$ as Ye, f as Ze, g as es, h as ss, i as Ls, L as Re, I as oe, v as Da, a4 as V, cO as fe, c8 as Ge, cP as Ca, cQ as Ns, cR as As, c as X, cS as ks, cT as Ea, cq as as, cU as La, cV as Aa, cW as ka, cX as Ma, cY as Oa, cZ as Ia, H as be, c_ as ye, x as k, c$ as Ms, cA as Ta, d0 as _a, w as Y, c7 as H, d1 as Pa, d2 as Ua, d3 as Fe, d4 as Ra, d5 as Ga, d6 as Os, d7 as Is, d8 as ge, d9 as ve, cw as Ve, ce as je, da as qe, c9 as Ts, db as He, dc as _s, dd as Fa, ch as Ps, ci as Us, cj as Rs, ck as Gs, cl as Fs, cm as Vs, cn as js, co as $e, b_ as Va, de as ja, aa as qa, U as Ss, a9 as pe, df as Ha, ag as $a, ab as Te, dg as za, dh as Ba, di as Ka, av as Qa, dj as Wa, dk as Ja, bR as Xa, bS as Ya, bT as Za, dl as et, bV as st, c5 as at, an as tt, dm as rt, dn as nt, dp as ot, dq as it, dr as lt, ds as ct, c2 as dt, a6 as ut, cb as mt, dt as ht, af as pt, a7 as ft, am as gt } from "./index-DUkvxDY5.js";
3
3
  import * as L from "react";
4
4
  import qs, { useState as S, useMemo as q, useEffect as vt, useCallback as bt } from "react";
5
5
  import "react-dom";
6
- import { b as yt, u as Nt, c as St, A as wt, V as xt, N as Dt, U as Ct } from "./notification-bell-DpxVIL-E.js";
6
+ import { b as yt, u as Nt, c as St, A as wt, V as xt, N as Dt, U as Ct } from "./notification-bell-BQEshMYb.js";
7
7
  import { d as Et } from "./date-formatter-Y8Za1ib3.js";
8
- import { C as Lt, D as At } from "./dashboard-summary-settings-dialog-DlwLS77e.js";
8
+ import { C as Lt, D as At } from "./dashboard-summary-settings-dialog-DUEO6MKE.js";
9
9
  import { u as kt } from "./use-debounced-dirty-check-BwAbnX_5.js";
10
10
  import { s as _e } from "./normalize-dashboard-for-dirty-check-Bn27S0PN.js";
11
- import { S as ws } from "./editor-action-buttons-d64iA8wP.js";
11
+ import { S as ws } from "./editor-action-buttons-Ds3YMlO7.js";
12
12
  /**
13
13
  * @license lucide-react v0.453.0 - ISC
14
14
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-CyHBRhlz.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-B0Wd3GQX.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-0u2X3G_x.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-DUkvxDY5.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  function N() {
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-CyHBRhlz.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-B0Wd3GQX.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,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 { b as ue, e as X, f as Z, g as J, h as K, i as q, R as $, c as C, j as F, L as b, P as me, k as he, B as P, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as B, r as O, s as W, t as ye, v as Y, w as we, x as A, S as xe, y as Ne, z as Ce, A as Te, E as ke, F as R, I as Ie } from "./index-0u2X3G_x.js";
3
+ import { b as ue, e as X, f as Z, g as J, h as K, i as q, R as $, c as C, j as F, L as b, P as me, k as he, B as P, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as B, r as O, s as W, t as ye, v as Y, w as we, x as A, S as xe, y as Ne, z as Ce, A as Te, E as ke, F as R, I as Ie } from "./index-DUkvxDY5.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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-CyHBRhlz.js"),N=require("react"),Ae=require("./editor-action-buttons-Bq-ENC_B.js"),tn=require("react-dom");function an(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 tt=an(N);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-B0Wd3GQX.js"),N=require("react"),Ae=require("./editor-action-buttons-BLvPQ9bs.js"),tn=require("react-dom");function an(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 tt=an(N);/**
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 { bK as Le, du as eo, x as gt, M as be, U as O, dv as mn, dw as to, L as V, y as ee, z as te, A as ae, E as ne, F as q, bU as Ke, B as H, b$ as kt, dx as zn, dy as Fl, dz as Ll, dA as Pl, dB as Vl, dC as jn, a3 as Ot, X as tt, dD as $s, c9 as qs, e as Da, f as Aa, g as Ea, h as Oa, i as on, bY as vt, bV as mt, bR as ht, bS as nt, bT as st, dE as Yr, dF as Bl, u as Re, v as Is, dG as Ma, ce as Ka, c as Z, dc as bt, dH as $l, b_ as ql, dI as ao, dJ as no, dK as so, dL as sn, dM as ro, dN as zl, dO as lo, cL as jl, dP as io, dQ as _l, dR as oo, dS as zs, dT as co, dU as ea, dV as rn, c0 as Ua, c1 as Ga, dW as Ds, c3 as Ja, c4 as ut, dX as Ra, dY as uo, dZ as As, d_ as On, b as Ha, aa as Kl, d$ as ln, e0 as js, e1 as mo, e2 as ho, e3 as Ul, e4 as Gl, e5 as Jl, c$ as _s, I as Ue, P as It, e6 as po, l as Dt, e7 as fo, w as ca, e8 as go, e9 as xo, H as bo, ea as vo, bL as Qa, bM as pa, bN as fa, bO as hn, bP as jt, bQ as ka, eb as Es, ec as da, ed as xt, ee as ua, ef as yo, eg as Ln, eh as Pn, ei as Vn, ej as Ks, dp as Fa, ek as pn, el as No, R as fn, em as _n, en as Ya, cf as Us, eo as Hl, j as ta, cG as Co, ep as Bt, eq as _t, er as wo, es as Kt, cq as Gs, cD as Js, N as Ql, et as Hs, eu as So, ev as Yl, ew as Wl, ex as zt, dk as ds, ey as To, ez as ko, eA as Io, eB as Xl, ar as Zl, eC as ei, eD as Do, eE as Ao, eF as Eo, eG as Kn, eH as Oo, eI as Mo, eJ as Wr, eK as Ro, V as Un, a1 as Qs, eL as Fo, eM as Ys, cN as Lo, eN as Xr, a4 as it, eO as Po, d6 as Ws, d7 as Xs, d8 as oa, d9 as Mn, eP as Vo, dl as Bo, eQ as ti, eR as $o, eS as qo, cw as Gn, cu as lt, eT as zo, eU as jo, eV as Zr, eW as _o, k as Mt, cO as Jn, c8 as Vt, eX as Ht, eY as ma, eZ as ha, e_ as aa, e$ as La, f0 as Ko, a_ as Uo, f1 as Go, f2 as Jo, f3 as Ho, f4 as Qo, cC as Ia, f5 as Yo, f6 as ai, f7 as Wo, f8 as Xo, f9 as Zo, fa as ni, fb as ec, fc as tc, fd as ac, fe as nc, ff as sc, fg as rc, fh as Os, fi as lc, fj as ic, fk as oc, fl as Ms, fm as cc, fn as dc, fo as uc, fp as mc, fq as hc, fr as Xt, fs as si, c2 as Zs, cH as pc, c5 as fc, ft as ri, fu as cn, fv as Bn, fw as gc, fx as Pa, fy as $e, fz as qe, fA as ze, fB as xc, fC as bc, fD as vc, fE as yc, fF as Qt, fG as In, fH as el, fI as Nc, dq as li, S as Ge, fJ as Cc, fK as wc, fL as Sc, m as Va, n as Ba, o as $a, p as qa, q as za, r as ja, fM as Tc, fN as kc, fO as tl, fP as Ic, s as ga, fQ as Dc, fR as us, fS as al, fT as Ct, fU as Ac, fV as Ec, fW as Oc, fX as Mc, fY as gn, fZ as Rc, f_ as ms, f$ as ii, g0 as Fc, g1 as Lc, g2 as Pc, g3 as $n, g4 as Vc, g5 as Bc, g6 as er, g7 as tr, g8 as oi, g9 as $c, ct as ci, ga as di, gb as Hn, dt as qc, gc as We, bc as zc, gd as jc, ge as _c, b8 as nl, gf as sl, gg as Kc, gh as Uc, gi as Gc, gj as Jc, gk as Hc, gl as Qc, gm as Yc, gn as Wc, go as Xc, gp as Zc, gq as ed, gr as td, gs as ad, gt as nd, gu as ui, gv as sd, gw as rd, gx as ld, gy as id, gz as od, gA as cd, gB as dd, gC as ud, gD as md, gE as hd, gF as pd, gG as fd, gH as gd, gI as mi, gJ as xd, gK as Qn, gL as hi, gM as pi, aW as Dn, gN as Yn, gO as hs, gP as bd, gQ as vd, gR as yd, gS as Nd, gT as Cd, gU as wd, gV as fi, gW as rl, cy as ll, gX as Sd, gY as Td, gZ as kd, g_ as Rn, g$ as Id, h0 as ar, h1 as Fn, h2 as Dd, h3 as Ad, h4 as qn, h5 as Ed, C as Od, h6 as Md, h7 as Rd, h8 as Fd, h9 as dn, ha as Yt, hb as Rs, hc as Fs, hd as un, he as gi, hf as _a, aU as Ld, hg as Pd, hh as ps, hi as Vd, hj as fs, hk as Bd, hl as il, hm as $d, hn as qd, ho as zd, hp as jd, hq as _d, hr as Kd, hs as Ud, ht as Wn, cb as Xn, hu as ol, hv as xi, df as gs, hw as Gd, hx as Jd, hy as Hd, W as Qd } from "./index-0u2X3G_x.js";
2
+ import { bK as Le, du as eo, x as gt, M as be, U as O, dv as mn, dw as to, L as V, y as ee, z as te, A as ae, E as ne, F as q, bU as Ke, B as H, b$ as kt, dx as zn, dy as Fl, dz as Ll, dA as Pl, dB as Vl, dC as jn, a3 as Ot, X as tt, dD as $s, c9 as qs, e as Da, f as Aa, g as Ea, h as Oa, i as on, bY as vt, bV as mt, bR as ht, bS as nt, bT as st, dE as Yr, dF as Bl, u as Re, v as Is, dG as Ma, ce as Ka, c as Z, dc as bt, dH as $l, b_ as ql, dI as ao, dJ as no, dK as so, dL as sn, dM as ro, dN as zl, dO as lo, cL as jl, dP as io, dQ as _l, dR as oo, dS as zs, dT as co, dU as ea, dV as rn, c0 as Ua, c1 as Ga, dW as Ds, c3 as Ja, c4 as ut, dX as Ra, dY as uo, dZ as As, d_ as On, b as Ha, aa as Kl, d$ as ln, e0 as js, e1 as mo, e2 as ho, e3 as Ul, e4 as Gl, e5 as Jl, c$ as _s, I as Ue, P as It, e6 as po, l as Dt, e7 as fo, w as ca, e8 as go, e9 as xo, H as bo, ea as vo, bL as Qa, bM as pa, bN as fa, bO as hn, bP as jt, bQ as ka, eb as Es, ec as da, ed as xt, ee as ua, ef as yo, eg as Ln, eh as Pn, ei as Vn, ej as Ks, dp as Fa, ek as pn, el as No, R as fn, em as _n, en as Ya, cf as Us, eo as Hl, j as ta, cG as Co, ep as Bt, eq as _t, er as wo, es as Kt, cq as Gs, cD as Js, N as Ql, et as Hs, eu as So, ev as Yl, ew as Wl, ex as zt, dk as ds, ey as To, ez as ko, eA as Io, eB as Xl, ar as Zl, eC as ei, eD as Do, eE as Ao, eF as Eo, eG as Kn, eH as Oo, eI as Mo, eJ as Wr, eK as Ro, V as Un, a1 as Qs, eL as Fo, eM as Ys, cN as Lo, eN as Xr, a4 as it, eO as Po, d6 as Ws, d7 as Xs, d8 as oa, d9 as Mn, eP as Vo, dl as Bo, eQ as ti, eR as $o, eS as qo, cw as Gn, cu as lt, eT as zo, eU as jo, eV as Zr, eW as _o, k as Mt, cO as Jn, c8 as Vt, eX as Ht, eY as ma, eZ as ha, e_ as aa, e$ as La, f0 as Ko, a_ as Uo, f1 as Go, f2 as Jo, f3 as Ho, f4 as Qo, cC as Ia, f5 as Yo, f6 as ai, f7 as Wo, f8 as Xo, f9 as Zo, fa as ni, fb as ec, fc as tc, fd as ac, fe as nc, ff as sc, fg as rc, fh as Os, fi as lc, fj as ic, fk as oc, fl as Ms, fm as cc, fn as dc, fo as uc, fp as mc, fq as hc, fr as Xt, fs as si, c2 as Zs, cH as pc, c5 as fc, ft as ri, fu as cn, fv as Bn, fw as gc, fx as Pa, fy as $e, fz as qe, fA as ze, fB as xc, fC as bc, fD as vc, fE as yc, fF as Qt, fG as In, fH as el, fI as Nc, dq as li, S as Ge, fJ as Cc, fK as wc, fL as Sc, m as Va, n as Ba, o as $a, p as qa, q as za, r as ja, fM as Tc, fN as kc, fO as tl, fP as Ic, s as ga, fQ as Dc, fR as us, fS as al, fT as Ct, fU as Ac, fV as Ec, fW as Oc, fX as Mc, fY as gn, fZ as Rc, f_ as ms, f$ as ii, g0 as Fc, g1 as Lc, g2 as Pc, g3 as $n, g4 as Vc, g5 as Bc, g6 as er, g7 as tr, g8 as oi, g9 as $c, ct as ci, ga as di, gb as Hn, dt as qc, gc as We, bc as zc, gd as jc, ge as _c, b8 as nl, gf as sl, gg as Kc, gh as Uc, gi as Gc, gj as Jc, gk as Hc, gl as Qc, gm as Yc, gn as Wc, go as Xc, gp as Zc, gq as ed, gr as td, gs as ad, gt as nd, gu as ui, gv as sd, gw as rd, gx as ld, gy as id, gz as od, gA as cd, gB as dd, gC as ud, gD as md, gE as hd, gF as pd, gG as fd, gH as gd, gI as mi, gJ as xd, gK as Qn, gL as hi, gM as pi, aW as Dn, gN as Yn, gO as hs, gP as bd, gQ as vd, gR as yd, gS as Nd, gT as Cd, gU as wd, gV as fi, gW as rl, cy as ll, gX as Sd, gY as Td, gZ as kd, g_ as Rn, g$ as Id, h0 as ar, h1 as Fn, h2 as Dd, h3 as Ad, h4 as qn, h5 as Ed, C as Od, h6 as Md, h7 as Rd, h8 as Fd, h9 as dn, ha as Yt, hb as Rs, hc as Fs, hd as un, he as gi, hf as _a, aU as Ld, hg as Pd, hh as ps, hi as Vd, hj as fs, hk as Bd, hl as il, hm as $d, hn as qd, ho as zd, hp as jd, hq as _d, hr as Kd, hs as Ud, ht as Wn, cb as Xn, hu as ol, hv as xi, df as gs, hw as Gd, hx as Jd, hy as Hd, W as Qd } from "./index-DUkvxDY5.js";
3
3
  import * as Ls from "react";
4
4
  import Ps, { useState as G, useRef as Me, useEffect as Se, useCallback as we, useMemo as me, useContext as nr, Suspense as Yd } from "react";
5
- import { C as cl, e as sr, u as yt, V as Wd } from "./editor-action-buttons-d64iA8wP.js";
5
+ import { C as cl, e as sr, u as yt, V as Wd } from "./editor-action-buttons-Ds3YMlO7.js";
6
6
  import { createPortal as Xd } from "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-CyHBRhlz.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-yUJHf_h7.js"),v=require("react");/**
1
+ "use strict";const e=require("./index-B0Wd3GQX.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-CteVTs77.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.
@@ -1,6 +1,6 @@
1
- import { bK as T, U as i, bL as B, bM as te, bN as se, bO as re, bP as le, bQ as oe, u as V, a9 as ne, bR as ie, bS as de, bT as ue, bU as ce, c as S, bV as pe, bW as me, M as x, B as I, s as ye, H as D, N as U, J as K, bX as j, w as O, bY as H, X, x as C } from "./index-0u2X3G_x.js";
1
+ import { bK as T, U as i, bL as B, bM as te, bN as se, bO as re, bP as le, bQ as oe, u as V, a9 as ne, bR as ie, bS as de, bT as ue, bU as ce, c as S, bV as pe, bW as me, M as x, B as I, s as ye, H as D, N as U, J as K, bX as j, w as O, bY as H, X, x as C } from "./index-DUkvxDY5.js";
2
2
  import { jsx as y, jsxs as f, Fragment as q } from "react/jsx-runtime";
3
- import { u as be, a as M } from "./use-visual-utils-C8_xz-xH.js";
3
+ import { u as be, a as M } from "./use-visual-utils-DDrj9ZR9.js";
4
4
  import { useMemo as k, useState as G } from "react";
5
5
  /**
6
6
  * @license lucide-react v0.453.0 - ISC