react-semaphor 0.1.211 → 0.1.213

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-CnDq9Uh_.js → dashboard-controls-BcpwRqRu.js} +13 -8
  2. package/dist/chunks/{dashboard-controls-7KpXzAWL.js → dashboard-controls-DG0FT__o.js} +373 -359
  3. package/dist/chunks/{dashboard-json-dqey5VK0.js → dashboard-json-C1b81ShY.js} +1 -1
  4. package/dist/chunks/{dashboard-json-stWvjp2O.js → dashboard-json-F8qwUIWM.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-DuxhidK1.js → dashboard-summary-settings-dialog-CsjLFOn-.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-DPEe6XBC.js → dashboard-summary-settings-dialog-yytNDqsJ.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-D_XPr8f8.js → edit-dashboard-visual-B-qAacmt.js} +1 -1
  8. package/dist/chunks/{edit-dashboard-visual-CQAk_UsI.js → edit-dashboard-visual-C-Y0fhBE.js} +2 -2
  9. package/dist/chunks/{editor-action-buttons-D34_GSZu.js → editor-action-buttons-BddCK22U.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-CH7W6KdH.js → editor-action-buttons-Dr9s7Z0u.js} +1 -1
  11. package/dist/chunks/{index-BfiIPyeS.js → index-irqsC0zR.js} +1 -1
  12. package/dist/chunks/{index-BDS2sWhv.js → index-tdtX3LgC.js} +4 -4
  13. package/dist/chunks/{notification-bell-hijGST9g.js → notification-bell-CRzJdHm5.js} +2 -2
  14. package/dist/chunks/{notification-bell-Cu3qDd9V.js → notification-bell-Ci1RHooZ.js} +137 -135
  15. package/dist/chunks/{resource-management-panel-BvHqslqC.js → resource-management-panel-CaKSsCiq.js} +3 -3
  16. package/dist/chunks/{resource-management-panel-gK3a6OEj.js → resource-management-panel-cwMyqyn1.js} +1 -1
  17. package/dist/chunks/{use-role-aware-display-preferences-a5FH9Y0k.js → use-role-aware-display-preferences-CImfZXy5.js} +1 -1
  18. package/dist/chunks/{use-role-aware-display-preferences-BlR29aKQ.js → use-role-aware-display-preferences-D5eZpiQS.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-ptPsQ3nC.js → use-visual-utils-0xqPjTL6.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-B11AA2fd.js → use-visual-utils-BAVRApHw.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/surfboard/index.cjs +1 -1
  26. package/dist/surfboard/index.js +2 -2
  27. package/dist/types/main.d.ts +3 -1
  28. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { u as s, B as l, X as h, d, c } from "./index-BDS2sWhv.js";
2
+ import { u as s, B as l, X as h, d, c } from "./index-tdtX3LgC.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-BfiIPyeS.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-irqsC0zR.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-BfiIPyeS.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-irqsC0zR.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 { l as ue, m as X, n as J, o as K, p as Z, q, R as j, r as F, L as b, c as C, 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-BDS2sWhv.js";
3
+ import { l as ue, m as X, n as J, o as K, p as Z, q, R as j, r as F, L as b, c as C, 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-tdtX3LgC.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-BfiIPyeS.js"),I=require("react"),fe=require("./editor-action-buttons-CH7W6KdH.js"),Lt=require("react-dom");function Mt(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 as=Mt(I);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-irqsC0zR.js"),I=require("react"),fe=require("./editor-action-buttons-Dr9s7Z0u.js"),Lt=require("react-dom");function Mt(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 as=Mt(I);/**
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 fe } from "react/jsx-runtime";
2
- import { bS as ke, dv as vr, I as Tt, Y as de, a1 as E, dw as va, dx as Cr, L as P, J as Q, K as X, M as Z, N as ee, O as K, c0 as Ie, B as Y, c7 as dt, dy as $a, dz as Xs, dA as Zs, dB as el, dC as tl, dD as ja, ab as Nt, X as Be, dE as Dn, ch as In, m as Ht, n as Yt, o as Wt, p as Qt, q as xa, c4 as nt, c1 as Xe, bZ as Ze, b_ as Ge, b$ as Ue, dF as Ns, dG as En, u as Se, G as yn, dH as Xt, cm as da, dd as et, dI as al, c as ae, c6 as nl, dJ as wr, dK as Sr, dL as kr, dM as ga, dN as Tr, dO as sl, dP as Ar, cS as ll, dQ as Dr, dR as rl, dS as Ir, dT as On, dU as Er, dV as Et, dW as vt, dX as Mn, U as Or, dY as Mr, bT as ua, bU as Kt, bV as Gt, bW as Ca, bX as bt, bY as _t, dZ as Nn, d_ as zt, d$ as We, e0 as $t, H as Zt, e1 as Fr, e2 as Ra, e3 as La, e4 as Pa, e5 as Fn, dq as ea, e6 as wa, e7 as Rr, R as Sa, e8 as Rn, e9 as ma, cn as Ln, ea as il, r as Ot, cN as Lr, eb as yt, ec as At, ed as Pr, ee as Dt, e as Pn, cK as Vn, Z as ol, ef as Bn, eg as Vr, eh as cl, ei as dl, ej as xt, dl as nn, ek as Br, el as zr, em as $r, en as ul, am as ml, eo as hl, ep as jr, eq as qr, er as Kr, es as qa, et as Gr, eu as Ur, ev as vs, ew as _r, a2 as Ka, a9 as zn, ex as Jr, ey as $n, cU as Hr, ac as tt, ez as Yr, eA as Wr, d7 as jn, d8 as qn, d9 as Vt, da as Oa, eB as Qr, dm as Xr, eC as pl, eD as Zr, eE as ei, cD as Ga, cB as Qe, eF as ti, eG as ai, eH as Cs, eI as ni, P as ut, s as mt, t as ht, c8 as Kn, c9 as Gn, cb as Un, cV as fl, cg as Ut, eJ as Ct, eK as jt, eL as qt, eM as Mt, eN as ta, eO as si, aH as li, eP as ri, eQ as ii, eR as oi, eS as ci, cJ as Jt, eT as di, eU as gl, eV as ui, eW as mi, l as ka, eX as hi, eY as xl, eZ as pi, e_ as fi, e$ as gi, f0 as xi, f1 as bi, f2 as yi, f3 as vn, f4 as Ni, f5 as vi, f6 as Ci, f7 as Cn, f8 as ws, f9 as wi, fa as Si, fb as ki, fc as Ti, fd as Ai, fe as bl, ff as _n, Q as Oe, fg as ba, fh as Va, fi as Di, fj as aa, fk as Te, fl as Ae, fm as De, fn as Ii, fo as Ei, fp as Oi, fq as Mi, fr as wt, fs as Ia, ft as Ss, fu as Fi, dr as yl, S as Ee, fv as Ri, fw as Li, fx as Pi, v as na, w as sa, x as la, y as ra, z as ia, A as oa, fy as Vi, fz as Bi, fA as ks, fB as zi, E as ha, fC as $i, fD as sn, fE as Ts, fF as it, fG as ji, fH as qi, fI as Ki, fJ as Gi, fK as Ta, fL as Ui, fM as ln, fN as Nl, fO as _i, fP as Ji, fQ as Hi, fR as Ba, fS as Yi, fT as Wi, fU as Bt, fV as Jn, fW as Hn, fX as vl, fY as Qi, cA as Cl, fZ as Xi, f_ as Ua, du as Zi, f$ as Le, g0 as As, bK as eo, bG as to, g1 as ao, g2 as no, g3 as so, g4 as lo, g5 as ro, bd as Ds, g6 as Is, g7 as io, g8 as oo, g9 as wl, ga as co, gb as Sl, gc as uo, gd as mo, ge as ho, gf as po, gg as fo, gh as go, gi as xo, gj as bo, gk as yo, gl as No, gm as kl, gn as vo, go as Co, gp as wo, gq as So, gr as ko, gs as To, gt as Ao, gu as Tl, ca as Do, gv as Io, gw as Eo, gx as Oo, gy as Mo, gz as Fo, gA as Al, gB as Ro, c$ as Dl, gC as _a, gD as Il, gE as El, b2 as Ea, gF as Ja, gG as Lo, gH as Ol, gI as Es, cF as Po, gJ as Os, gK as Vo, gL as Bo, gM as zo, gN as Ma, gO as $o, gP as Yn, gQ as Fa, gR as jo, gS as qo, gT as za, gU as Ko, C as Go, gV as Uo, gW as ya, gX as St, gY as wn, gZ as Sn, g_ as Na, g$ as Ml, h0 as ca, ak as _o, h1 as Jo, h2 as rn, h3 as Ho, h4 as on, h5 as Yo, h6 as Ms, h7 as Wo, h8 as Qo, h9 as Xo, ha as Zo, cc as rt, hb as ec, hc as tc, hd as ac, he as Ha, cj as Ya, hf as Fs, hg as Fl, dg as cn, hh as nc, hi as sc, hj as lc, a3 as rc } from "./index-BDS2sWhv.js";
2
+ import { bS as ke, dv as vr, I as Tt, Y as de, a1 as E, dw as va, dx as Cr, L as P, J as Q, K as X, M as Z, N as ee, O as K, c0 as Ie, B as Y, c7 as dt, dy as $a, dz as Xs, dA as Zs, dB as el, dC as tl, dD as ja, ab as Nt, X as Be, dE as Dn, ch as In, m as Ht, n as Yt, o as Wt, p as Qt, q as xa, c4 as nt, c1 as Xe, bZ as Ze, b_ as Ge, b$ as Ue, dF as Ns, dG as En, u as Se, G as yn, dH as Xt, cm as da, dd as et, dI as al, c as ae, c6 as nl, dJ as wr, dK as Sr, dL as kr, dM as ga, dN as Tr, dO as sl, dP as Ar, cS as ll, dQ as Dr, dR as rl, dS as Ir, dT as On, dU as Er, dV as Et, dW as vt, dX as Mn, U as Or, dY as Mr, bT as ua, bU as Kt, bV as Gt, bW as Ca, bX as bt, bY as _t, dZ as Nn, d_ as zt, d$ as We, e0 as $t, H as Zt, e1 as Fr, e2 as Ra, e3 as La, e4 as Pa, e5 as Fn, dq as ea, e6 as wa, e7 as Rr, R as Sa, e8 as Rn, e9 as ma, cn as Ln, ea as il, r as Ot, cN as Lr, eb as yt, ec as At, ed as Pr, ee as Dt, e as Pn, cK as Vn, Z as ol, ef as Bn, eg as Vr, eh as cl, ei as dl, ej as xt, dl as nn, ek as Br, el as zr, em as $r, en as ul, am as ml, eo as hl, ep as jr, eq as qr, er as Kr, es as qa, et as Gr, eu as Ur, ev as vs, ew as _r, a2 as Ka, a9 as zn, ex as Jr, ey as $n, cU as Hr, ac as tt, ez as Yr, eA as Wr, d7 as jn, d8 as qn, d9 as Vt, da as Oa, eB as Qr, dm as Xr, eC as pl, eD as Zr, eE as ei, cD as Ga, cB as Qe, eF as ti, eG as ai, eH as Cs, eI as ni, P as ut, s as mt, t as ht, c8 as Kn, c9 as Gn, cb as Un, cV as fl, cg as Ut, eJ as Ct, eK as jt, eL as qt, eM as Mt, eN as ta, eO as si, aH as li, eP as ri, eQ as ii, eR as oi, eS as ci, cJ as Jt, eT as di, eU as gl, eV as ui, eW as mi, l as ka, eX as hi, eY as xl, eZ as pi, e_ as fi, e$ as gi, f0 as xi, f1 as bi, f2 as yi, f3 as vn, f4 as Ni, f5 as vi, f6 as Ci, f7 as Cn, f8 as ws, f9 as wi, fa as Si, fb as ki, fc as Ti, fd as Ai, fe as bl, ff as _n, Q as Oe, fg as ba, fh as Va, fi as Di, fj as aa, fk as Te, fl as Ae, fm as De, fn as Ii, fo as Ei, fp as Oi, fq as Mi, fr as wt, fs as Ia, ft as Ss, fu as Fi, dr as yl, S as Ee, fv as Ri, fw as Li, fx as Pi, v as na, w as sa, x as la, y as ra, z as ia, A as oa, fy as Vi, fz as Bi, fA as ks, fB as zi, E as ha, fC as $i, fD as sn, fE as Ts, fF as it, fG as ji, fH as qi, fI as Ki, fJ as Gi, fK as Ta, fL as Ui, fM as ln, fN as Nl, fO as _i, fP as Ji, fQ as Hi, fR as Ba, fS as Yi, fT as Wi, fU as Bt, fV as Jn, fW as Hn, fX as vl, fY as Qi, cA as Cl, fZ as Xi, f_ as Ua, du as Zi, f$ as Le, g0 as As, bK as eo, bG as to, g1 as ao, g2 as no, g3 as so, g4 as lo, g5 as ro, bd as Ds, g6 as Is, g7 as io, g8 as oo, g9 as wl, ga as co, gb as Sl, gc as uo, gd as mo, ge as ho, gf as po, gg as fo, gh as go, gi as xo, gj as bo, gk as yo, gl as No, gm as kl, gn as vo, go as Co, gp as wo, gq as So, gr as ko, gs as To, gt as Ao, gu as Tl, ca as Do, gv as Io, gw as Eo, gx as Oo, gy as Mo, gz as Fo, gA as Al, gB as Ro, c$ as Dl, gC as _a, gD as Il, gE as El, b2 as Ea, gF as Ja, gG as Lo, gH as Ol, gI as Es, cF as Po, gJ as Os, gK as Vo, gL as Bo, gM as zo, gN as Ma, gO as $o, gP as Yn, gQ as Fa, gR as jo, gS as qo, gT as za, gU as Ko, C as Go, gV as Uo, gW as ya, gX as St, gY as wn, gZ as Sn, g_ as Na, g$ as Ml, h0 as ca, ak as _o, h1 as Jo, h2 as rn, h3 as Ho, h4 as on, h5 as Yo, h6 as Ms, h7 as Wo, h8 as Qo, h9 as Xo, ha as Zo, cc as rt, hb as ec, hc as tc, hd as ac, he as Ha, cj as Ya, hf as Fs, hg as Fl, dg as cn, hh as nc, hi as sc, hj as lc, a3 as rc } from "./index-tdtX3LgC.js";
3
3
  import * as kn from "react";
4
4
  import Tn, { useState as _, useRef as at, useEffect as be, useCallback as Ke, useMemo as ie, useContext as Wn, Suspense as ic } from "react";
5
- import { C as oc, e as Qn, u as st, V as cc } from "./editor-action-buttons-D34_GSZu.js";
5
+ import { C as oc, e as Qn, u as st, V as cc } from "./editor-action-buttons-BddCK22U.js";
6
6
  import { createPortal as dc } 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 u, bT as B, bU as ee, bV as ae, bW as te, bX as se, bY as re, u as F, bO as le, bZ as oe, b_ as ne, b$ as ie, c0 as de, c as g, c1 as ue, c2 as ce, Y as q, B as I, E as pe, U as D, Z as U, V as K, c3 as j, H as O, c4 as H, X, I as S } from "./index-BDS2sWhv.js";
1
+ import { bS as T, a1 as u, bT as B, bU as ee, bV as ae, bW as te, bX as se, bY as re, u as F, bO as le, bZ as oe, b_ as ne, b$ as ie, c0 as de, c as g, c1 as ue, c2 as ce, Y as q, B as I, E as pe, U as D, Z as U, V as K, c3 as j, H as O, c4 as H, X, I as S } from "./index-tdtX3LgC.js";
2
2
  import { jsx as m, jsxs as f, Fragment as x } from "react/jsx-runtime";
3
- import { u as me, a as M } from "./use-visual-utils-ptPsQ3nC.js";
3
+ import { u as me, a as M } from "./use-visual-utils-0xqPjTL6.js";
4
4
  import { useMemo as C, 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-BfiIPyeS.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-B11AA2fd.js"),f=require("react");/**
1
+ "use strict";const e=require("./index-irqsC0zR.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-BAVRApHw.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.