react-semaphor 0.1.259 → 0.1.260

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-BC3hDGwD.js → dashboard-controls-CIdYp98a.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-51P6aUVB.js → dashboard-controls-DOqBYrkB.js} +4 -4
  3. package/dist/chunks/{dashboard-json-D0oSxmLa.js → dashboard-json-BUrApiYl.js} +1 -1
  4. package/dist/chunks/{dashboard-json-B43n1l6C.js → dashboard-json-U7VmojaR.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-DMWYgbwB.js → dashboard-summary-settings-dialog-CaxmCNyy.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-CxZAMb8B.js → dashboard-summary-settings-dialog-DlVBUQmC.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-CCoz1oGX.js → edit-dashboard-visual-N2r5ObJ_.js} +2 -2
  8. package/dist/chunks/{edit-dashboard-visual-D1mwhPGF.js → edit-dashboard-visual-uA-0wLnR.js} +1 -1
  9. package/dist/chunks/{editor-action-buttons-B6ElCCo2.js → editor-action-buttons-B6lABkRB.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-Dbs6eczj.js → editor-action-buttons-Dh7Xndgk.js} +1 -1
  11. package/dist/chunks/{index-DpSxZvI0.js → index-BNdZjo5d.js} +5361 -5381
  12. package/dist/chunks/{index-DAhkssOV.js → index-DOeggx0V.js} +90 -90
  13. package/dist/chunks/{notification-bell-cYCkxEbp.js → notification-bell-BxyeaeRc.js} +3 -3
  14. package/dist/chunks/{notification-bell-DoIAAZqX.js → notification-bell-tJRds5JJ.js} +1 -1
  15. package/dist/chunks/{resource-management-panel-L51m1i4h.js → resource-management-panel-C_ZqsVMH.js} +1 -1
  16. package/dist/chunks/{resource-management-panel-B_bDGuq_.js → resource-management-panel-zF23gLOJ.js} +2 -2
  17. package/dist/chunks/{use-visual-utils-V6paZich.js → use-visual-utils-BBTQGDdB.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-Cp5KVbr6.js → use-visual-utils-K1k39w2U.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-DAhkssOV.js"),b=require("react");require("react-dom");const R=require("./notification-bell-DoIAAZqX.js"),As=require("./date-formatter-CqXdM6JO.js"),Ve=require("./dashboard-summary-settings-dialog-DMWYgbwB.js"),Es=require("./use-debounced-dirty-check-XHSwAefL.js"),be=require("./normalize-dashboard-for-dirty-check-B7NQDI1H.js"),$e=require("./editor-action-buttons-Dbs6eczj.js");function Is(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const w=Is(b);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-DOeggx0V.js"),b=require("react");require("react-dom");const R=require("./notification-bell-tJRds5JJ.js"),As=require("./date-formatter-CqXdM6JO.js"),Ve=require("./dashboard-summary-settings-dialog-CaxmCNyy.js"),Es=require("./use-debounced-dirty-check-XHSwAefL.js"),be=require("./normalize-dashboard-for-dirty-check-B7NQDI1H.js"),$e=require("./editor-action-buttons-Dh7Xndgk.js");function Is(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const w=Is(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 n, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { bL as Z, cL as Ma, u as w, c0 as Xe, c1 as Ye, B as E, c3 as Ze, c4 as z, cM as es, N as _s, b as G, e as ss, cN as Oa, b$ as as, f as ts, g as rs, h as ns, i as Ps, L as je, I as oe, v as Ia, a6 as $, cO as ve, c8 as qe, cP as Ta, cQ as Ls, cR as Us, c as X, cS as Rs, cT as _a, cq as os, cU as Pa, cV as Ua, cW as Ra, cX as Ga, cY as Fa, cZ as Va, H as Ne, V as Se, x as k, c_ as Gs, cA as ja, c$ as qa, w as Y, c7 as K, d0 as Ha, d1 as $a, d2 as He, d3 as za, d4 as Ba, d5 as Fs, d6 as Vs, d7 as be, d8 as ye, cw as $e, ce as ze, d9 as Be, c9 as js, da as Ke, db as qs, dc as Ka, ch as Hs, ci as $s, cj as zs, ck as Bs, cl as Ks, cm as Qs, cn as Ws, co as Qe, b_ as Qa, dd as Wa, af as Ja, U as ks, ae as ge, de as Xa, al as Ya, ag as Re, df as Za, dg as et, dh as st, aA as at, di as tt, dj as rt, bS as nt, bT as ot, bU as it, dk as lt, bV as ct, c5 as dt, as as ut, dl as mt, dm as ht, dn as pt, dp as ft, dq as gt, dr as vt, c2 as bt, a8 as yt, cb as Nt, ds as St, ak as wt, a9 as xt, ar as Dt, dt as Ct } from "./index-DpSxZvI0.js";
2
+ import { bL as Z, cL as Ma, u as w, c0 as Xe, c1 as Ye, B as E, c3 as Ze, c4 as z, cM as es, N as _s, b as G, e as ss, cN as Oa, b$ as as, f as ts, g as rs, h as ns, i as Ps, L as je, I as oe, v as Ia, a6 as $, cO as ve, c8 as qe, cP as Ta, cQ as Ls, cR as Us, c as X, cS as Rs, cT as _a, cq as os, cU as Pa, cV as Ua, cW as Ra, cX as Ga, cY as Fa, cZ as Va, H as Ne, V as Se, x as k, c_ as Gs, cA as ja, c$ as qa, w as Y, c7 as K, d0 as Ha, d1 as $a, d2 as He, d3 as za, d4 as Ba, d5 as Fs, d6 as Vs, d7 as be, d8 as ye, cw as $e, ce as ze, d9 as Be, c9 as js, da as Ke, db as qs, dc as Ka, ch as Hs, ci as $s, cj as zs, ck as Bs, cl as Ks, cm as Qs, cn as Ws, co as Qe, b_ as Qa, dd as Wa, af as Ja, U as ks, ae as ge, de as Xa, al as Ya, ag as Re, df as Za, dg as et, dh as st, aA as at, di as tt, dj as rt, bS as nt, bT as ot, bU as it, dk as lt, bV as ct, c5 as dt, as as ut, dl as mt, dm as ht, dn as pt, dp as ft, dq as gt, dr as vt, c2 as bt, a8 as yt, cb as Nt, ds as St, ak as wt, a9 as xt, ar as Dt, dt as Ct } from "./index-BNdZjo5d.js";
3
3
  import * as A from "react";
4
4
  import Js, { useState as S, useMemo as B, useEffect as Et, useCallback as At } from "react";
5
5
  import "react-dom";
6
- import { b as Lt, u as kt, c as Mt, A as Ot, V as It, N as Tt, U as _t } from "./notification-bell-cYCkxEbp.js";
6
+ import { b as Lt, u as kt, c as Mt, A as Ot, V as It, N as Tt, U as _t } from "./notification-bell-BxyeaeRc.js";
7
7
  import { l as Pt } from "./date-formatter-vkCj9Ct-.js";
8
- import { C as Ut, D as Rt } from "./dashboard-summary-settings-dialog-CxZAMb8B.js";
8
+ import { C as Ut, D as Rt } from "./dashboard-summary-settings-dialog-DlVBUQmC.js";
9
9
  import { u as Gt } from "./use-debounced-dirty-check-BwAbnX_5.js";
10
10
  import { s as Ge } from "./normalize-dashboard-for-dirty-check-Bn27S0PN.js";
11
- import { S as Ms } from "./editor-action-buttons-B6ElCCo2.js";
11
+ import { S as Ms } from "./editor-action-buttons-B6lABkRB.js";
12
12
  /**
13
13
  * @license lucide-react v0.453.0 - ISC
14
14
  *
@@ -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-DpSxZvI0.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-BNdZjo5d.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-DAhkssOV.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-DOeggx0V.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 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-DAhkssOV.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-DOeggx0V.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-DpSxZvI0.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-BNdZjo5d.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,8 +1,8 @@
1
1
  import { jsxs as a, jsx as e, Fragment as be } from "react/jsx-runtime";
2
- import { bL as Re, du as mo, x as xt, M as ge, U as O, dv as fn, dw as ho, L as B, y as te, z as ae, A as ne, E as se, F as _, ab as Qe, B as H, b$ as Dt, dx as _n, dy as zl, dz as _l, dA as jl, dB as Kl, dC as jn, a5 as Pt, X as rt, dD as _s, c9 as js, e as Ma, f as Oa, g as Fa, h as Ra, i as un, bY as yt, bV as pt, bS as ft, bT as it, bU as ot, dE as el, dF as Gl, dG as Ul, v as As, dH as La, ce as Ua, c as Z, db as vt, dI as Hl, dJ as us, b_ as Jl, dK as po, dL as fo, dM as go, dN as on, dO as xo, dP as Ql, dQ as bo, cL as Yl, u as Ve, dR as vo, dS as Wl, dT as yo, dU as Ks, dV as No, dW as Gt, dX as cn, c0 as Ha, c1 as Ja, dY as Es, c3 as Qa, c4 as ht, dZ as Pa, d_ as Co, d$ as Ms, e0 as Mn, b as ua, af as Xl, dt as dn, e1 as Gs, e2 as wo, e3 as So, e4 as Zl, e5 as ei, e6 as ti, c_ as Us, I as Ye, P as At, e7 as To, l as Et, e8 as ko, w as ra, e9 as Io, ea as Do, H as Ao, eb as Eo, bM as Ya, bN as ma, bO as ha, bP as gn, bQ as _t, bR as Aa, ec as Os, ed as la, ee as bt, ef as ia, eg as Mo, eh as Pn, ei as Vn, ej as Bn, ek as Hs, dn as Va, el as xn, em as Oo, R as bn, en as Kn, eo as Wa, cf as Js, ep as ai, j as Zt, cG as Fo, eq as $t, er as jt, es as Ro, et as Kt, cq as Qs, cD as Ys, N as ni, eu as Ws, ev as Lo, ew as si, ex as ri, ey as zt, dj as ms, ez as Po, eA as Vo, eB as Bo, eC as li, aw as ii, eD as oi, eE as $o, eF as qo, eG as zo, eH as Gn, eI as _o, eJ as jo, eK as tl, eL as Ko, Y as Un, a3 as Xs, eM as Go, eN as Zs, cN as Uo, eO as al, a6 as mt, eP as Ho, d5 as er, d6 as tr, d7 as sa, d8 as On, eQ as Jo, dk as Qo, eR as ci, eS as Yo, eT as Wo, cw as Hn, cu as ut, eU as Xo, eV as Zo, eW as nl, eX as ec, k as Vt, cO as Jn, c8 as Bt, eY as Ht, eZ as oa, e_ as ca, e$ as ea, f0 as Ba, f1 as tc, b1 as ac, f2 as nc, f3 as sc, f4 as rc, f5 as lc, cC as Ea, f6 as ic, f7 as di, f8 as oc, f9 as cc, fa as dc, ae as uc, fb as mc, fc as ui, fd as hc, fe as pc, ff as fc, fg as gc, fh as xc, fi as bc, fj as Fs, fk as vc, fl as yc, fm as Nc, fn as Rs, fo as Cc, fp as wc, fq as Sc, fr as Tc, fs as kc, ft as Wt, fu as mi, c2 as ar, cH as Ic, c5 as Dc, fv as hi, fw as mn, fx as $n, fy as Ac, fz as $a, fA as Be, fB as $e, fC as qe, fD as Ec, fE as Mc, fF as Oc, fG as Fc, fH as Jt, fI as Dn, fJ as sl, fK as Rc, dp as pi, S as Ge, fL as Lc, fM as Pc, fN as Vc, fO as Bc, fP as $c, fQ as qc, m as qa, n as za, o as _a, p as ja, q as Ka, r as Ga, fR as zc, fS as _c, fT as rl, fU as jc, s as pa, fV as Kc, fW as hs, fX as ll, fY as Gc, fZ as It, f_ as Uc, f$ as Hc, g0 as Jc, g1 as Qc, g2 as Yc, g3 as ps, g4 as fi, g5 as Wc, g6 as Xc, g7 as Zc, g8 as qn, g9 as ed, ga as td, gb as nr, gc as sr, gd as gi, ge as ad, ct as xi, gf as bi, gg as Qn, gh as nd, ds as sd, gi as tt, bf as rd, gj as ld, gk as id, bb as il, gl as ol, gm as od, gn as cd, go as dd, gp as ud, gq as md, gr as hd, gs as pd, gt as fd, gu as gd, gv as xd, gw as bd, gx as vd, gy as yd, gz as Nd, gA as vi, gB as Cd, gC as wd, gD as Sd, gE as Td, gF as kd, gG as Id, gH as Dd, gI as Ad, gJ as Ed, gK as Md, gL as Od, gM as Fd, gN as Rd, gO as yi, gP as Ld, gQ as Yn, gR as Ni, gS as Ci, gT as Pd, gU as Vd, gV as Wn, gW as fs, gX as Bd, gY as $d, gZ as qd, g_ as zd, g$ as _d, h0 as cl, h1 as da, h2 as jd, h3 as wi, aZ as Kd, h4 as dl, cy as ul, h5 as Gd, h6 as Ud, h7 as Hd, h8 as Fn, h9 as Jd, ha as rr, hb as Rn, hc as Qd, hd as Yd, he as zn, hf as Wd, C as Xd, hg as Zd, hh as eu, hi as tu, hj as hn, hk as Qt, hl as Ls, hm as Ps, hn as pn, ho as Si, aX as au, hp as nu, hq as gs, hr as su, hs as xs, ht as ru, hu as ml, hv as hl, hw as lu, hx as iu, hy as ou, hz as cu, hA as du, hB as uu, hC as mu, hD as Xn, cb as Zn, hE as es, hF as pl, hG as Ti, de as bs, hH as hu, hI as pu, hJ as fu, Z as gu } from "./index-DpSxZvI0.js";
2
+ import { bL as Re, du as mo, x as xt, M as ge, U as O, dv as fn, dw as ho, L as B, y as te, z as ae, A as ne, E as se, F as _, ab as Qe, B as H, b$ as Dt, dx as _n, dy as zl, dz as _l, dA as jl, dB as Kl, dC as jn, a5 as Pt, X as rt, dD as _s, c9 as js, e as Ma, f as Oa, g as Fa, h as Ra, i as un, bY as yt, bV as pt, bS as ft, bT as it, bU as ot, dE as el, dF as Gl, dG as Ul, v as As, dH as La, ce as Ua, c as Z, db as vt, dI as Hl, dJ as us, b_ as Jl, dK as po, dL as fo, dM as go, dN as on, dO as xo, dP as Ql, dQ as bo, cL as Yl, u as Ve, dR as vo, dS as Wl, dT as yo, dU as Ks, dV as No, dW as Gt, dX as cn, c0 as Ha, c1 as Ja, dY as Es, c3 as Qa, c4 as ht, dZ as Pa, d_ as Co, d$ as Ms, e0 as Mn, b as ua, af as Xl, dt as dn, e1 as Gs, e2 as wo, e3 as So, e4 as Zl, e5 as ei, e6 as ti, c_ as Us, I as Ye, P as At, e7 as To, l as Et, e8 as ko, w as ra, e9 as Io, ea as Do, H as Ao, eb as Eo, bM as Ya, bN as ma, bO as ha, bP as gn, bQ as _t, bR as Aa, ec as Os, ed as la, ee as bt, ef as ia, eg as Mo, eh as Pn, ei as Vn, ej as Bn, ek as Hs, dn as Va, el as xn, em as Oo, R as bn, en as Kn, eo as Wa, cf as Js, ep as ai, j as Zt, cG as Fo, eq as $t, er as jt, es as Ro, et as Kt, cq as Qs, cD as Ys, N as ni, eu as Ws, ev as Lo, ew as si, ex as ri, ey as zt, dj as ms, ez as Po, eA as Vo, eB as Bo, eC as li, aw as ii, eD as oi, eE as $o, eF as qo, eG as zo, eH as Gn, eI as _o, eJ as jo, eK as tl, eL as Ko, Y as Un, a3 as Xs, eM as Go, eN as Zs, cN as Uo, eO as al, a6 as mt, eP as Ho, d5 as er, d6 as tr, d7 as sa, d8 as On, eQ as Jo, dk as Qo, eR as ci, eS as Yo, eT as Wo, cw as Hn, cu as ut, eU as Xo, eV as Zo, eW as nl, eX as ec, k as Vt, cO as Jn, c8 as Bt, eY as Ht, eZ as oa, e_ as ca, e$ as ea, f0 as Ba, f1 as tc, b1 as ac, f2 as nc, f3 as sc, f4 as rc, f5 as lc, cC as Ea, f6 as ic, f7 as di, f8 as oc, f9 as cc, fa as dc, ae as uc, fb as mc, fc as ui, fd as hc, fe as pc, ff as fc, fg as gc, fh as xc, fi as bc, fj as Fs, fk as vc, fl as yc, fm as Nc, fn as Rs, fo as Cc, fp as wc, fq as Sc, fr as Tc, fs as kc, ft as Wt, fu as mi, c2 as ar, cH as Ic, c5 as Dc, fv as hi, fw as mn, fx as $n, fy as Ac, fz as $a, fA as Be, fB as $e, fC as qe, fD as Ec, fE as Mc, fF as Oc, fG as Fc, fH as Jt, fI as Dn, fJ as sl, fK as Rc, dp as pi, S as Ge, fL as Lc, fM as Pc, fN as Vc, fO as Bc, fP as $c, fQ as qc, m as qa, n as za, o as _a, p as ja, q as Ka, r as Ga, fR as zc, fS as _c, fT as rl, fU as jc, s as pa, fV as Kc, fW as hs, fX as ll, fY as Gc, fZ as It, f_ as Uc, f$ as Hc, g0 as Jc, g1 as Qc, g2 as Yc, g3 as ps, g4 as fi, g5 as Wc, g6 as Xc, g7 as Zc, g8 as qn, g9 as ed, ga as td, gb as nr, gc as sr, gd as gi, ge as ad, ct as xi, gf as bi, gg as Qn, gh as nd, ds as sd, gi as tt, bf as rd, gj as ld, gk as id, bb as il, gl as ol, gm as od, gn as cd, go as dd, gp as ud, gq as md, gr as hd, gs as pd, gt as fd, gu as gd, gv as xd, gw as bd, gx as vd, gy as yd, gz as Nd, gA as vi, gB as Cd, gC as wd, gD as Sd, gE as Td, gF as kd, gG as Id, gH as Dd, gI as Ad, gJ as Ed, gK as Md, gL as Od, gM as Fd, gN as Rd, gO as yi, gP as Ld, gQ as Yn, gR as Ni, gS as Ci, gT as Pd, gU as Vd, gV as Wn, gW as fs, gX as Bd, gY as $d, gZ as qd, g_ as zd, g$ as _d, h0 as cl, h1 as da, h2 as jd, h3 as wi, aZ as Kd, h4 as dl, cy as ul, h5 as Gd, h6 as Ud, h7 as Hd, h8 as Fn, h9 as Jd, ha as rr, hb as Rn, hc as Qd, hd as Yd, he as zn, hf as Wd, C as Xd, hg as Zd, hh as eu, hi as tu, hj as hn, hk as Qt, hl as Ls, hm as Ps, hn as pn, ho as Si, aX as au, hp as nu, hq as gs, hr as su, hs as xs, ht as ru, hu as ml, hv as hl, hw as lu, hx as iu, hy as ou, hz as cu, hA as du, hB as uu, hC as mu, hD as Xn, cb as Zn, hE as es, hF as pl, hG as Ti, de as bs, hH as hu, hI as pu, hJ as fu, Z as gu } from "./index-BNdZjo5d.js";
3
3
  import * as Vs from "react";
4
4
  import Bs, { useState as K, useRef as Oe, useEffect as Ce, useCallback as Ie, useMemo as oe, useContext as lr, Suspense as xu } from "react";
5
- import { C as fl, e as ir, u as Nt, V as ki } from "./editor-action-buttons-B6ElCCo2.js";
5
+ import { C as fl, e as ir, u as Nt, V as ki } from "./editor-action-buttons-B6lABkRB.js";
6
6
  import { createPortal as bu } from "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-DAhkssOV.js"),N=require("react"),Me=require("./editor-action-buttons-Dbs6eczj.js"),dn=require("react-dom");function un(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const ns=un(N);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-DOeggx0V.js"),N=require("react"),Me=require("./editor-action-buttons-Dh7Xndgk.js"),dn=require("react-dom");function un(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const ns=un(N);/**
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 { bL as D, U as d, bM as U, bN as te, bO as se, bP as re, bQ as le, bR as oe, u as M, ae as ne, bS as de, bT as ie, bU as ue, ab as ce, c as g, bV as pe, bW as me, M as q, B as x, s as be, H as F, N as K, J as j, bX as O, w as H, bY as X, X as G, x as C } from "./index-DpSxZvI0.js";
1
+ import { bL as D, U as d, bM as U, bN as te, bO as se, bP as re, bQ as le, bR as oe, u as M, ae as ne, bS as de, bT as ie, bU as ue, ab as ce, c as g, bV as pe, bW as me, M as q, B as x, s as be, H as F, N as K, J as j, bX as O, w as H, bY as X, X as G, x as C } from "./index-BNdZjo5d.js";
2
2
  import { jsx as b, jsxs as f, Fragment as T } from "react/jsx-runtime";
3
- import { u as ye, a as P } from "./use-visual-utils-Cp5KVbr6.js";
3
+ import { u as ye, a as P } from "./use-visual-utils-K1k39w2U.js";
4
4
  import { useMemo as k, useState as R } from "react";
5
5
  /**
6
6
  * @license lucide-react v0.453.0 - ISC
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-DAhkssOV.js"),r=require("react/jsx-runtime"),x=require("./use-visual-utils-V6paZich.js"),f=require("react");/**
1
+ "use strict";const e=require("./index-DOeggx0V.js"),r=require("react/jsx-runtime"),x=require("./use-visual-utils-BBTQGDdB.js"),f=require("react");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.