react-semaphor 0.1.192 → 0.1.193

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 (27) hide show
  1. package/dist/chunks/{calendar-preferences-dialog-CMM-uye9.js → calendar-preferences-dialog-B8R2MaI1.js} +1 -1
  2. package/dist/chunks/{calendar-preferences-dialog-wu_fGBRY.js → calendar-preferences-dialog-B9bwWqMI.js} +1 -1
  3. package/dist/chunks/{dashboard-controls-CZiglER8.js → dashboard-controls-BB-6s-Ht.js} +5 -5
  4. package/dist/chunks/{dashboard-controls-DZ3RdkPp.js → dashboard-controls-ehLCW0nC.js} +1 -1
  5. package/dist/chunks/{dashboard-json-CBLwtP5m.js → dashboard-json-BlY0uqcf.js} +1 -1
  6. package/dist/chunks/{dashboard-json-DxsH7NvN.js → dashboard-json-CSA80k9J.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-CdR2ywTB.js → edit-dashboard-visual-D5zVmGO7.js} +2 -2
  8. package/dist/chunks/{edit-dashboard-visual-DyvG8L5y.js → edit-dashboard-visual-_s5p9j5B.js} +1 -1
  9. package/dist/chunks/{editor-action-buttons-DRX64gHq.js → editor-action-buttons-B452b6bO.js} +1 -1
  10. package/dist/chunks/{editor-action-buttons-BvRPaQoF.js → editor-action-buttons-Vkwsm2kl.js} +2 -2
  11. package/dist/chunks/{index-C5wrl3dy.js → index-C5XVrMzP.js} +408 -411
  12. package/dist/chunks/{index-BmPlQ_Vy.js → index-DEzod5lN.js} +3 -3
  13. package/dist/chunks/{notification-bell-sAl4kF0A.js → notification-bell-BTLjXwXd.js} +1 -1
  14. package/dist/chunks/{notification-bell-C4cn4uYe.js → notification-bell-e236UlND.js} +3 -3
  15. package/dist/chunks/{resource-management-panel-DRpbtjWO.js → resource-management-panel-BuyYkjBW.js} +3 -3
  16. package/dist/chunks/{resource-management-panel-DNffk7G6.js → resource-management-panel-XB3llD7A.js} +1 -1
  17. package/dist/chunks/{use-role-aware-display-preferences-DEWoTnfO.js → use-role-aware-display-preferences-DmiYlSDa.js} +1 -1
  18. package/dist/chunks/{use-role-aware-display-preferences-BIAB5o80.js → use-role-aware-display-preferences-MtOAYA2Y.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-BMqAflAg.js → use-visual-utils-B3dd_yYT.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-BfZLkFD4.js → use-visual-utils-CYy0761D.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 +6 -6
  25. package/dist/surfboard/index.cjs +1 -1
  26. package/dist/surfboard/index.js +2 -2
  27. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),a=require("./index-BmPlQ_Vy.js");function R(){var S,b,j,p;const{authToken:s,tokenProps:r}=a.useSemaphorContext(),[l,v]=o.useState(!1),[k,y]=o.useState(!1),[T,w]=o.useState(!1),[x,d]=o.useState(null),[m,f]=o.useState(null),C=m||{tz:((b=(S=r==null?void 0:r.params)==null?void 0:S.calendarContext)==null?void 0:b.tz)||null,weekStart:((p=(j=r==null?void 0:r.params)==null?void 0:j.calendarContext)==null?void 0:p.weekStart)??null},c=o.useCallback(async()=>{if(!(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))){v(!0),d(null);try{const i=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!i.ok){const u=await i.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const n=await i.json();f({tz:n.tz,weekStart:n.weekStart,source:n.source,isInherited:n.isInherited,userHasPrefs:n.userHasPrefs,inherited:n.inherited})}catch(i){const n=i instanceof Error?i.message:"Unknown error";d(n)}finally{v(!1)}}},[s,r]);o.useEffect(()=>{c()},[c]);const h=o.useCallback(async i=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return d("Not authenticated"),!1;y(!0),d(null);try{const n=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s.accessToken}`},body:JSON.stringify(i)});if(!n.ok){const u=await n.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await c(),!0}catch(n){const u=n instanceof Error?n.message:"Unknown error";return d(u),!1}finally{y(!1)}},[s,r,c]),g=o.useCallback(async()=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return d("Not authenticated"),!1;w(!0),d(null);try{const i=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!i.ok){const u=await i.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const n=await i.text();if(n)try{const u=JSON.parse(n);return f({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await c(),!0}catch(i){const n=i instanceof Error?i.message:"Unknown error";return d(n),!1}finally{w(!1)}},[s,r,c]);return{preferences:C,isLoading:l,isSaving:k,isClearing:T,error:x,updatePreferences:h,clearPreferences:g,refetch:c}}const N=[{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"}],U=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function W(){try{const s=Intl;if(s.supportedValuesOf)return s.supportedValuesOf("timeZone")}catch{}return N.map(s=>s.value)}function B(s){switch(s){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function L(s){const r=N.find(l=>l.value===s);return r?r.label:s}function G(s){const r=U.find(l=>l.value===s);return r?r.label:String(s)}function _({open:s,onOpenChange:r}){var z,A,E;const{preferences:l,isLoading:v,isSaving:k,isClearing:y,updatePreferences:T,clearPreferences:w}=R(),x=l.tz||((z=l.inherited)==null?void 0:z.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,d=l.weekStart??((A=l.inherited)==null?void 0:A.weekStart)??1,[m,f]=o.useState(!l.userHasPrefs),[C,c]=o.useState(!1),[h,g]=o.useState(x),[S,b]=o.useState(d),[j,p]=o.useState(!1),i=o.useMemo(()=>W(),[]),n=o.useMemo(()=>i.filter(t=>!N.some($=>$.value===t)),[i]),u=o.useMemo(()=>L(h),[h]),I=l.inherited?L(l.inherited.tz):"UTC",D=l.inherited?G(l.inherited.weekStart):"Monday",F=B((E=l.inherited)==null?void 0:E.source);o.useEffect(()=>{if(!s){c(!1);return}C||(l.userHasPrefs!==void 0&&f(!l.userHasPrefs),g(x),b(d))},[s,C,l.userHasPrefs,x,d]);const H=async()=>{if(v){a.ue.error("Preferences are still loading. Please try again.");return}m?await w()?(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 T({tz:h,weekStart:S})?(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.")},O=()=>{r(!1)},P=k||y,M=P||v;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=>{c(!0),f(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:()=>{c(!0),f(!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 ",F," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[I,", Week starts ",D]})]})]}),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:()=>{c(!0),f(!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:j,onOpenChange:p,modal:!0,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(a.Button,{variant:"outline",role:"combobox","aria-expanded":j,className:"w-full justify-between",disabled:m,children:[u,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:N.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),g(t.value),p(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",h===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:n.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),g(t),p(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",h===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(S),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:U.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:O,disabled:P,children:"Cancel"}),e.jsx(a.Button,{onClick:H,disabled:M,children:P?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=_;
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),a=require("./index-DEzod5lN.js");function R(){var S,b,j,p;const{authToken:s,tokenProps:r}=a.useSemaphorContext(),[l,v]=o.useState(!1),[k,y]=o.useState(!1),[T,w]=o.useState(!1),[x,d]=o.useState(null),[m,f]=o.useState(null),C=m||{tz:((b=(S=r==null?void 0:r.params)==null?void 0:S.calendarContext)==null?void 0:b.tz)||null,weekStart:((p=(j=r==null?void 0:r.params)==null?void 0:j.calendarContext)==null?void 0:p.weekStart)??null},c=o.useCallback(async()=>{if(!(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))){v(!0),d(null);try{const i=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!i.ok){const u=await i.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const n=await i.json();f({tz:n.tz,weekStart:n.weekStart,source:n.source,isInherited:n.isInherited,userHasPrefs:n.userHasPrefs,inherited:n.inherited})}catch(i){const n=i instanceof Error?i.message:"Unknown error";d(n)}finally{v(!1)}}},[s,r]);o.useEffect(()=>{c()},[c]);const h=o.useCallback(async i=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return d("Not authenticated"),!1;y(!0),d(null);try{const n=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s.accessToken}`},body:JSON.stringify(i)});if(!n.ok){const u=await n.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await c(),!0}catch(n){const u=n instanceof Error?n.message:"Unknown error";return d(u),!1}finally{y(!1)}},[s,r,c]),g=o.useCallback(async()=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return d("Not authenticated"),!1;w(!0),d(null);try{const i=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!i.ok){const u=await i.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const n=await i.text();if(n)try{const u=JSON.parse(n);return f({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await c(),!0}catch(i){const n=i instanceof Error?i.message:"Unknown error";return d(n),!1}finally{w(!1)}},[s,r,c]);return{preferences:C,isLoading:l,isSaving:k,isClearing:T,error:x,updatePreferences:h,clearPreferences:g,refetch:c}}const N=[{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"}],U=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function W(){try{const s=Intl;if(s.supportedValuesOf)return s.supportedValuesOf("timeZone")}catch{}return N.map(s=>s.value)}function B(s){switch(s){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function L(s){const r=N.find(l=>l.value===s);return r?r.label:s}function G(s){const r=U.find(l=>l.value===s);return r?r.label:String(s)}function _({open:s,onOpenChange:r}){var z,A,E;const{preferences:l,isLoading:v,isSaving:k,isClearing:y,updatePreferences:T,clearPreferences:w}=R(),x=l.tz||((z=l.inherited)==null?void 0:z.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,d=l.weekStart??((A=l.inherited)==null?void 0:A.weekStart)??1,[m,f]=o.useState(!l.userHasPrefs),[C,c]=o.useState(!1),[h,g]=o.useState(x),[S,b]=o.useState(d),[j,p]=o.useState(!1),i=o.useMemo(()=>W(),[]),n=o.useMemo(()=>i.filter(t=>!N.some($=>$.value===t)),[i]),u=o.useMemo(()=>L(h),[h]),I=l.inherited?L(l.inherited.tz):"UTC",D=l.inherited?G(l.inherited.weekStart):"Monday",F=B((E=l.inherited)==null?void 0:E.source);o.useEffect(()=>{if(!s){c(!1);return}C||(l.userHasPrefs!==void 0&&f(!l.userHasPrefs),g(x),b(d))},[s,C,l.userHasPrefs,x,d]);const H=async()=>{if(v){a.ue.error("Preferences are still loading. Please try again.");return}m?await w()?(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 T({tz:h,weekStart:S})?(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.")},O=()=>{r(!1)},P=k||y,M=P||v;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=>{c(!0),f(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:()=>{c(!0),f(!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 ",F," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[I,", Week starts ",D]})]})]}),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:()=>{c(!0),f(!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:j,onOpenChange:p,modal:!0,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(a.Button,{variant:"outline",role:"combobox","aria-expanded":j,className:"w-full justify-between",disabled:m,children:[u,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:N.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),g(t.value),p(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",h===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:n.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),g(t),p(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",h===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(S),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:U.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:O,disabled:P,children:"Cancel"}),e.jsx(a.Button,{onClick:H,disabled:M,children:P?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=_;
@@ -1,6 +1,6 @@
1
1
  import { jsx as s, jsxs as n, Fragment as Q } from "react/jsx-runtime";
2
2
  import X, { useState as m, useCallback as L, useEffect as ee, useMemo as D } from "react";
3
- import { l as ae, m as re, n as se, o as te, p as ne, q as le, R as j, c as v, r as I, L as N, P as ie, s as oe, B as F, C as ce, t as de, v as ue, w as me, x as fe, y as he, z as W, A as M, E as B, F as pe, G as ve, H as ge, I as T } from "./index-C5wrl3dy.js";
3
+ import { l as ae, m as re, n as se, o as te, p as ne, q as le, R as j, c as v, r as I, L as N, P as ie, s as oe, B as F, C as ce, t as de, v as ue, w as me, x as fe, y as he, z as W, A as M, E as B, F as pe, G as ve, H as ge, I as T } from "./index-C5XVrMzP.js";
4
4
  function be() {
5
5
  var y, w, C, p;
6
6
  const { authToken: e, tokenProps: a } = ae(), [l, g] = m(!1), [A, k] = m(!1), [E, x] = m(!1), [b, d] = m(null), [u, f] = m(null), P = u || {
@@ -1,13 +1,13 @@
1
1
  import { jsxs as r, jsx as e, Fragment as I } from "react/jsx-runtime";
2
- import { aT as Y, bZ as Ws, u as w, b4 as Me, b5 as Oe, B as A, b7 as Ie, b8 as ne, b_ as _e, aG as ts, l as F, m as Te, b$ as Js, b9 as Pe, n as Ge, o as Re, p as Ue, q as rs, L as Se, c0 as J, G as Ys, W as U, c1 as Zs, bd as Xs, c2 as ea, c3 as Ye, c4 as ns, c as ce, c5 as os, aU as le, c6 as de, I as E, c7 as is, bK as sa, c8 as aa, H as q, bc as $, c9 as ta, ca as ra, cb as xe, cc as na, cd as oa, ce as cs, cf as ls, cg as oe, ch as ie, bH as we, bj as Ce, ci as De, be as ds, cj as Le, bL as us, e as ms, ck as ia, bm as hs, bn as ps, bo as fs, bp as gs, bq as vs, br as bs, bs as ys, bt as Ee, b2 as ca, cl as la, Z as da, aI as Ze, Y as te, cm as ua, a3 as ma, _ as be, cn as ha, co as pa, cp as fa, cq as ga, ba as va, aa as ba, cr as ya, cs as Na, ct as Sa, cu as xa, cv as wa, b6 as Ca, bg as Da, a2 as La, a9 as Ea } from "./index-C5wrl3dy.js";
2
+ import { aT as Y, bZ as Ws, u as w, b4 as Me, b5 as Oe, B as A, b7 as Ie, b8 as ne, b_ as _e, aG as ts, l as F, m as Te, b$ as Js, b9 as Pe, n as Ge, o as Re, p as Ue, q as rs, L as Se, c0 as J, G as Ys, W as U, c1 as Zs, bd as Xs, c2 as ea, c3 as Ye, c4 as ns, c as ce, c5 as os, aU as le, c6 as de, I as E, c7 as is, bK as sa, c8 as aa, H as q, bc as $, c9 as ta, ca as ra, cb as xe, cc as na, cd as oa, ce as cs, cf as ls, cg as oe, ch as ie, bH as we, bj as Ce, ci as De, be as ds, cj as Le, bL as us, e as ms, ck as ia, bm as hs, bn as ps, bo as fs, bp as gs, bq as vs, br as bs, bs as ys, bt as Ee, b2 as ca, cl as la, Z as da, aI as Ze, Y as te, cm as ua, a3 as ma, _ as be, cn as ha, co as pa, cp as fa, cq as ga, ba as va, aa as ba, cr as ya, cs as Na, ct as Sa, cu as xa, cv as wa, b6 as Ca, bg as Da, a2 as La, a9 as Ea } from "./index-C5XVrMzP.js";
3
3
  import * as D from "react";
4
4
  import Ns, { useState as x, useMemo as re, useEffect as Aa } from "react";
5
5
  import "react-dom";
6
- import { b as ka, u as Ma, c as Oa, A as Ia, V as _a, S as Ta, N as Pa, U as Ga } from "./notification-bell-C4cn4uYe.js";
7
- import { u as Ra } from "./use-role-aware-display-preferences-BIAB5o80.js";
6
+ import { b as ka, u as Ma, c as Oa, A as Ia, V as _a, S as Ta, N as Pa, U as Ga } from "./notification-bell-e236UlND.js";
7
+ import { u as Ra } from "./use-role-aware-display-preferences-MtOAYA2Y.js";
8
8
  import { d as Ua } from "./date-formatter-Y8Za1ib3.js";
9
- import { C as Fa } from "./calendar-preferences-dialog-wu_fGBRY.js";
10
- import { S as Xe } from "./editor-action-buttons-BvRPaQoF.js";
9
+ import { C as Fa } from "./calendar-preferences-dialog-B9bwWqMI.js";
10
+ import { S as Xe } from "./editor-action-buttons-Vkwsm2kl.js";
11
11
  /**
12
12
  * @license lucide-react v0.453.0 - ISC
13
13
  *
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BmPlQ_Vy.js"),b=require("react");require("react-dom");const O=require("./notification-bell-sAl4kF0A.js"),Je=require("./use-role-aware-display-preferences-DEWoTnfO.js"),Xe=require("./date-formatter-Sz6QDaM8.js"),Ye=require("./calendar-preferences-dialog-CMM-uye9.js"),fe=require("./editor-action-buttons-DRX64gHq.js");function Ze(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 D=Ze(b);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-DEzod5lN.js"),b=require("react");require("react-dom");const O=require("./notification-bell-BTLjXwXd.js"),Je=require("./use-role-aware-display-preferences-DmiYlSDa.js"),Xe=require("./date-formatter-Sz6QDaM8.js"),Ye=require("./calendar-preferences-dialog-B8R2MaI1.js"),fe=require("./editor-action-buttons-B452b6bO.js");function Ze(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 D=Ze(b);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-BmPlQ_Vy.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-DEzod5lN.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-C5wrl3dy.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-C5XVrMzP.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  function N() {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as e, Fragment as de } from "react/jsx-runtime";
2
- import { aT as he, cw as Jl, I as ft, aJ as se, aI as O, cx as ua, cy as _l, L, cz as Y, cA as W, cB as Q, cC as X, cD as j, cE as xe, B as _, b9 as et, cF as Da, cG as Ds, cH as Es, cI as Os, cJ as Is, cK as Ea, V as ot, X as Ee, cL as hn, be as pn, m as Bt, n as zt, o as jt, p as $t, q as ia, aX as ze, bA as Ue, bw as Je, bx as Re, by as Fe, cM as Qn, cN as fn, u as ye, G as ln, cO as Kt, bj as ta, c as Z, bL as We, cP as Ms, b2 as Rs, cQ as Hl, cR as Yl, cS as Wl, cT as la, cU as Ql, cV as Fs, cW as Xl, bZ as Zl, cX as er, cY as Ls, cZ as tr, c_ as gn, c$ as ar, d0 as bt, d1 as ut, d2 as xn, aU as nr, d3 as sr, d4 as rn, d5 as Dt, d6 as Ve, d7 as Et, H as qt, d8 as lr, d9 as Ca, da as wa, db as Sa, dc as Ps, ct as Gt, bO as Oa, R as ma, dd as bn, de as ha, bk as Nn, df as Vs, r as Nt, Y as rr, dg as ir, bS as or, dh as rt, di as gt, dj as cr, dk as xt, e as vn, bP as yn, aG as Bs, dl as Cn, dm as dr, dn as zs, dp as js, dq as Ut, cq as Ja, dr as ur, ds as mr, dt as $s, du as hr, dv as pr, dw as fr, dx as Ia, dy as gr, dz as xr, dA as Xn, dB as br, J as Ma, Q as wn, dC as Nr, dD as Sn, b$ as vr, W as Me, dE as yr, dF as Cr, ce as Ra, cf as Fa, cg as it, ch as Na, dG as wr, bz as Sr, dH as Ks, dI as kr, dJ as Tr, bH as La, bF as Ge, P as Qe, s as Xe, dK as Ar, t as Ze, b4 as kn, b5 as Tn, b7 as An, c1 as qs, bd as Pt, dL as mt, dM as Ot, dN as It, dO as vt, dP as Jt, dQ as Dr, ao as Er, dR as Or, bN as Vt, dS as Ir, dT as Gs, dU as Mr, dV as Rr, dW as Fr, dX as Lr, dY as Pr, dZ as Vr, d_ as Br, d$ as zr, e0 as Us, e1 as Dn, c0 as Ce, e2 as oa, e3 as ka, e4 as jr, e5 as $r, e6 as _t, e7 as be, e8 as Ne, e9 as ve, ea as Kr, eb as qr, ec as ht, ed as xa, ee as Zn, ef as Gr, cu as Js, eg as Ur, eh as Jr, ei as _r, v as Ht, w as Yt, x as Wt, y as Qt, z as Xt, A as Zt, ej as Hr, ek as Yr, el as es, em as Wr, E as aa, en as De, eo as Qr, ep as _a, eq as ts, er as Ke, es as Xr, et as Zr, eu as ei, ev as ti, ew as pa, ex as ai, ey as Ha, ez as _s, eA as ni, eB as si, eC as li, eD as Ta, eE as ri, eF as ii, eG as At, b3 as En, eH as On, eI as Hs, eJ as oi, bE as Ys, eK as ci, eL as as, l as Pa, aC as di, Z as ui, eM as mi, eN as hi, eO as pi, eP as fi, eQ as gi, ay as ns, eR as ss, eS as xi, eT as bi, eU as Ws, eV as Ni, eW as Qs, eX as vi, eY as yi, eZ as Ci, e_ as wi, e$ as Si, f0 as ki, f1 as Ti, f2 as Ai, f3 as Di, f4 as Ei, f5 as Xs, f6 as Oi, f7 as Ii, f8 as Mi, f9 as Ri, fa as Fi, fb as Li, fc as Pi, fd as Zs, b6 as Vi, fe as Bi, ff as ls, fg as rs, fh as zi, fi as ji, fj as $i, fk as Ki, fl as el, fm as qi, c7 as tl, fn as Oe, fo as Va, fp as In, fq as al, fr as nl, ak as ba, fs as Ba, ft as Gi, fu as sl, fv as is, bI as Ui, fw as os, fx as Ji, fy as _i, fz as Hi, fA as va, fB as Mn, fC as ya, fD as Yi, fE as Wi, fF as Aa, fG as Qi, C as Xi, fH as Zi, fI as ca, fJ as pt, fK as on, fL as cn, fM as da, fN as ll, fO as ea, ai as eo, fP as to, fQ as Ya, fR as ao, fS as Wa, fT as no, fU as cs, fV as so, fW as lo, fX as ro, fY as io, b8 as $e, fZ as oo, f_ as co, f$ as uo, g0 as mo, g1 as za, bg as ja, g2 as ds, g3 as rl, cm as Qa, g4 as ho, g5 as po, g6 as fo, K as go } from "./index-C5wrl3dy.js";
2
+ import { aT as he, cw as Jl, I as ft, aJ as se, aI as O, cx as ua, cy as _l, L, cz as Y, cA as W, cB as Q, cC as X, cD as j, cE as xe, B as _, b9 as et, cF as Da, cG as Ds, cH as Es, cI as Os, cJ as Is, cK as Ea, V as ot, X as Ee, cL as hn, be as pn, m as Bt, n as zt, o as jt, p as $t, q as ia, aX as ze, bA as Ue, bw as Je, bx as Re, by as Fe, cM as Qn, cN as fn, u as ye, G as ln, cO as Kt, bj as ta, c as Z, bL as We, cP as Ms, b2 as Rs, cQ as Hl, cR as Yl, cS as Wl, cT as la, cU as Ql, cV as Fs, cW as Xl, bZ as Zl, cX as er, cY as Ls, cZ as tr, c_ as gn, c$ as ar, d0 as bt, d1 as ut, d2 as xn, aU as nr, d3 as sr, d4 as rn, d5 as Dt, d6 as Ve, d7 as Et, H as qt, d8 as lr, d9 as Ca, da as wa, db as Sa, dc as Ps, ct as Gt, bO as Oa, R as ma, dd as bn, de as ha, bk as Nn, df as Vs, r as Nt, Y as rr, dg as ir, bS as or, dh as rt, di as gt, dj as cr, dk as xt, e as vn, bP as yn, aG as Bs, dl as Cn, dm as dr, dn as zs, dp as js, dq as Ut, cq as Ja, dr as ur, ds as mr, dt as $s, du as hr, dv as pr, dw as fr, dx as Ia, dy as gr, dz as xr, dA as Xn, dB as br, J as Ma, Q as wn, dC as Nr, dD as Sn, b$ as vr, W as Me, dE as yr, dF as Cr, ce as Ra, cf as Fa, cg as it, ch as Na, dG as wr, bz as Sr, dH as Ks, dI as kr, dJ as Tr, bH as La, bF as Ge, P as Qe, s as Xe, dK as Ar, t as Ze, b4 as kn, b5 as Tn, b7 as An, c1 as qs, bd as Pt, dL as mt, dM as Ot, dN as It, dO as vt, dP as Jt, dQ as Dr, ao as Er, dR as Or, bN as Vt, dS as Ir, dT as Gs, dU as Mr, dV as Rr, dW as Fr, dX as Lr, dY as Pr, dZ as Vr, d_ as Br, d$ as zr, e0 as Us, e1 as Dn, c0 as Ce, e2 as oa, e3 as ka, e4 as jr, e5 as $r, e6 as _t, e7 as be, e8 as Ne, e9 as ve, ea as Kr, eb as qr, ec as ht, ed as xa, ee as Zn, ef as Gr, cu as Js, eg as Ur, eh as Jr, ei as _r, v as Ht, w as Yt, x as Wt, y as Qt, z as Xt, A as Zt, ej as Hr, ek as Yr, el as es, em as Wr, E as aa, en as De, eo as Qr, ep as _a, eq as ts, er as Ke, es as Xr, et as Zr, eu as ei, ev as ti, ew as pa, ex as ai, ey as Ha, ez as _s, eA as ni, eB as si, eC as li, eD as Ta, eE as ri, eF as ii, eG as At, b3 as En, eH as On, eI as Hs, eJ as oi, bE as Ys, eK as ci, eL as as, l as Pa, aC as di, Z as ui, eM as mi, eN as hi, eO as pi, eP as fi, eQ as gi, ay as ns, eR as ss, eS as xi, eT as bi, eU as Ws, eV as Ni, eW as Qs, eX as vi, eY as yi, eZ as Ci, e_ as wi, e$ as Si, f0 as ki, f1 as Ti, f2 as Ai, f3 as Di, f4 as Ei, f5 as Xs, f6 as Oi, f7 as Ii, f8 as Mi, f9 as Ri, fa as Fi, fb as Li, fc as Pi, fd as Zs, b6 as Vi, fe as Bi, ff as ls, fg as rs, fh as zi, fi as ji, fj as $i, fk as Ki, fl as el, fm as qi, c7 as tl, fn as Oe, fo as Va, fp as In, fq as al, fr as nl, ak as ba, fs as Ba, ft as Gi, fu as sl, fv as is, bI as Ui, fw as os, fx as Ji, fy as _i, fz as Hi, fA as va, fB as Mn, fC as ya, fD as Yi, fE as Wi, fF as Aa, fG as Qi, C as Xi, fH as Zi, fI as ca, fJ as pt, fK as on, fL as cn, fM as da, fN as ll, fO as ea, ai as eo, fP as to, fQ as Ya, fR as ao, fS as Wa, fT as no, fU as cs, fV as so, fW as lo, fX as ro, fY as io, b8 as $e, fZ as oo, f_ as co, f$ as uo, g0 as mo, g1 as za, bg as ja, g2 as ds, g3 as rl, cm as Qa, g4 as ho, g5 as po, g6 as fo, K as go } from "./index-C5XVrMzP.js";
3
3
  import * as dn from "react";
4
4
  import un, { useState as U, useRef as Be, useEffect as ue, useCallback as Ie, useContext as Rn, useMemo as we } from "react";
5
- import { C as xo, d as Fn } from "./editor-action-buttons-BvRPaQoF.js";
5
+ import { C as xo, d as Fn } from "./editor-action-buttons-Vkwsm2kl.js";
6
6
  import { createPortal as bo } 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"),s=require("./index-BmPlQ_Vy.js"),D=require("react"),Be=require("./editor-action-buttons-DRX64gHq.js"),gt=require("react-dom");function ft(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Qe=ft(D);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-DEzod5lN.js"),D=require("react"),Be=require("./editor-action-buttons-B452b6bO.js"),gt=require("react-dom");function ft(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Qe=ft(D);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-BmPlQ_Vy.js"),s=require("react/jsx-runtime"),v=require("./use-visual-utils-BfZLkFD4.js"),f=require("react");/**
1
+ "use strict";const e=require("./index-DEzod5lN.js"),s=require("react/jsx-runtime"),v=require("./use-visual-utils-CYy0761D.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.
@@ -1,6 +1,6 @@
1
- import { aT as Q, aJ as b, aI as t, B as S, c as g, E as k, u as D, aG as z, H as F, aU as I, aV as E, aW as U, aX as B, X as T, I as h } from "./index-C5wrl3dy.js";
1
+ import { aT as Q, aJ as b, aI as t, B as S, c as g, E as k, u as D, aG as z, H as F, aU as I, aV as E, aW as U, aX as B, X as T, I as h } from "./index-C5XVrMzP.js";
2
2
  import { jsxs as u, jsx as y, Fragment as C } from "react/jsx-runtime";
3
- import { u as L, a as N } from "./use-visual-utils-BMqAflAg.js";
3
+ import { u as L, a as N } from "./use-visual-utils-B3dd_yYT.js";
4
4
  import { useState as V } from "react";
5
5
  /**
6
6
  * @license lucide-react v0.453.0 - ISC