react-semaphor 0.1.334 → 0.1.336

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 (59) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +100 -242
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +3 -3
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +435 -391
  7. package/dist/chunks/{braces-DlW7C5BH.js → braces-BLa_lORs.js} +1 -1
  8. package/dist/chunks/{braces-DYx37F5Z.js → braces-Q86XHDaD.js} +1 -1
  9. package/dist/chunks/{calendar-preferences-dialog-CB5MA9gF.js → calendar-preferences-dialog-Bm7ji3k9.js} +1 -1
  10. package/dist/chunks/{calendar-preferences-dialog-BLz4PrDX.js → calendar-preferences-dialog-Cocogo9H.js} +3 -3
  11. package/dist/chunks/catalog-field-grounding-DmT7aGUA.js +191 -0
  12. package/dist/chunks/catalog-field-grounding-VgVzDd25.js +1 -0
  13. package/dist/chunks/{chevrons-up-down-CP6oFMrt.js → chevrons-up-down-BBTZ5pAY.js} +1 -1
  14. package/dist/chunks/{chevrons-up-down-B_66pVv5.js → chevrons-up-down-CYuWasy_.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-Bwz4mKOI.js → dashboard-briefing-launcher-BtqtLx1-.js} +1 -1
  16. package/dist/chunks/{dashboard-briefing-launcher-B7AxiecS.js → dashboard-briefing-launcher-DF4CoaRn.js} +4 -4
  17. package/dist/chunks/{dashboard-controls-DlN7FGW-.js → dashboard-controls-0VMAeMoa.js} +1 -1
  18. package/dist/chunks/{dashboard-controls-CbuKeeeP.js → dashboard-controls-B5U-VUxs.js} +6 -6
  19. package/dist/chunks/{dashboard-json-CeVrYTnR.js → dashboard-json-CqbLOfnr.js} +1 -1
  20. package/dist/chunks/{dashboard-json-gcpeSd5I.js → dashboard-json-Hmc0Ri5z.js} +2 -2
  21. package/dist/chunks/{edit-dashboard-visual-Kn1wtj-Z.js → edit-dashboard-visual-C0EDM0QB.js} +3 -3
  22. package/dist/chunks/{edit-dashboard-visual-BggRcCO2.js → edit-dashboard-visual-D4VVu-QQ.js} +1302 -1302
  23. package/dist/chunks/{index-CP3_hN7P.js → index-DE0vIuYG.js} +4 -4
  24. package/dist/chunks/{index-TA0tBZ1g.js → index-DzyUhzV3.js} +262 -270
  25. package/dist/chunks/{palette-BW7lzLOY.js → palette-B9AbDw0n.js} +1 -1
  26. package/dist/chunks/{palette-BueS2ZEM.js → palette-DalASD28.js} +1 -1
  27. package/dist/chunks/{resource-management-panel-vDrPcmXs.js → resource-management-panel-C4YydU9I.js} +3 -3
  28. package/dist/chunks/{resource-management-panel-DBYcMHVL.js → resource-management-panel-P9iNqBM1.js} +1 -1
  29. package/dist/chunks/{switch-B6fK1sl9.js → switch-BAYfpAEb.js} +1967 -2008
  30. package/dist/chunks/{switch-BT7khJGF.js → switch-CyRoZr5T.js} +35 -35
  31. package/dist/chunks/{use-create-flow-overlay-state-T8Su6dzu.js → use-create-flow-overlay-state-CbhjxI3W.js} +1 -1
  32. package/dist/chunks/{use-create-flow-overlay-state-DPYHfe-S.js → use-create-flow-overlay-state-P1LMwQ89.js} +3 -3
  33. package/dist/chunks/{use-visual-utils-wqosOqyY.js → use-visual-utils-CV6_-y4p.js} +1 -1
  34. package/dist/chunks/{use-visual-utils-Daov8_1p.js → use-visual-utils-lB-3Zk0b.js} +2 -2
  35. package/dist/chunks/validators-BOqiGymD.js +660 -0
  36. package/dist/chunks/validators-BtFXY3S_.js +2 -0
  37. package/dist/dashboard/index.cjs +1 -1
  38. package/dist/dashboard/index.js +1 -1
  39. package/dist/dashboard-authoring/index.cjs +3 -3
  40. package/dist/dashboard-authoring/index.js +476 -453
  41. package/dist/data-app-builder/index.cjs +1 -1
  42. package/dist/data-app-builder/index.js +1 -1
  43. package/dist/data-app-builder-browser-runtime/index.cjs +1 -1
  44. package/dist/data-app-builder-browser-runtime/index.js +4 -9
  45. package/dist/data-app-sdk/index.cjs +1 -1
  46. package/dist/data-app-sdk/index.js +89 -80
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.js +7 -7
  49. package/dist/surfboard/index.cjs +1 -1
  50. package/dist/surfboard/index.js +2 -2
  51. package/dist/types/analytics-protocol.d.ts +183 -5
  52. package/dist/types/briefings.d.ts +12 -0
  53. package/dist/types/dashboard-authoring.d.ts +33 -4
  54. package/dist/types/data-app-builder.d.ts +30 -3
  55. package/dist/types/data-app-sdk.d.ts +32 -5
  56. package/dist/types/main.d.ts +34 -3
  57. package/package.json +1 -1
  58. package/dist/chunks/validators-DDAweCzB.js +0 -371
  59. package/dist/chunks/validators-odlRJblR.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./switch-BT7khJGF.js");/**
1
+ "use strict";const e=require("./switch-CyRoZr5T.js");/**
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
- import { c as a } from "./switch-B6fK1sl9.js";
1
+ import { c as a } from "./switch-BAYfpAEb.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-CP3_hN7P.js"),i=require("./switch-BT7khJGF.js");require("./index-BxM99sFL.js");const G=require("./chevrons-up-down-CP6oFMrt.js");function W(n={}){var y,P,z,A;const{authToken:d,tokenProps:a}=t.useSemaphorContext(),x=n.enabled??!0,m=(d==null?void 0:d.accessToken)??null,f=(a==null?void 0:a.apiServiceUrl)??null,[L,C]=l.useState(!1),[j,b]=l.useState(!1),[h,g]=l.useState(!1),[N,c]=l.useState(null),[v,S]=l.useState(null),k=v||{tz:((P=(y=a==null?void 0:a.params)==null?void 0:y.calendarContext)==null?void 0:P.tz)||null,weekStart:((A=(z=a==null?void 0:a.params)==null?void 0:z.calendarContext)==null?void 0:A.weekStart)??null},p=l.useCallback(async()=>{if(!(!x||!m||!f)){C(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const r=await o.json();S({tz:r.tz,weekStart:r.weekStart,source:r.source,isInherited:r.isInherited,userHasPrefs:r.userHasPrefs,inherited:r.inherited})}catch(o){const r=o instanceof Error?o.message:"Unknown error";c(r)}finally{C(!1)}}},[m,f,x]);l.useEffect(()=>{x&&p()},[x,p]);const T=l.useCallback(async o=>{if(!m||!f)return c("Not authenticated"),!1;b(!0),c(null);try{const r=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify(o)});if(!r.ok){const u=await r.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await p(),!0}catch(r){const u=r instanceof Error?r.message:"Unknown error";return c(u),!1}finally{b(!1)}},[m,f,p]),w=l.useCallback(async()=>{if(!m||!f)return c("Not authenticated"),!1;g(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const r=await o.text();if(r)try{const u=JSON.parse(r);return S({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await p(),!0}catch(o){const r=o instanceof Error?o.message:"Unknown error";return c(r),!1}finally{g(!1)}},[m,f,p]);return{preferences:k,isLoading:L,isSaving:j,isClearing:h,error:N,updatePreferences:T,clearPreferences:w,refetch:p}}const E=[{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"}],H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function _(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return E.map(n=>n.value)}function q(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function O(n){const d=E.find(a=>a.value===n);return d?d.label:n}function V(n){const d=M.find(a=>a.value===n);return d?d.label:String(n)}function Z({open:n,onOpenChange:d}){var D,U,F;const{preferences:a,isLoading:x,isSaving:m,isClearing:f,updatePreferences:L,clearPreferences:C}=W({enabled:n}),j=a.tz||((D=a.inherited)==null?void 0:D.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=a.weekStart??((U=a.inherited)==null?void 0:U.weekStart)??1,[h,g]=l.useState(!a.userHasPrefs),[N,c]=l.useState(!1),[v,S]=l.useState(j),[k,p]=l.useState(b),[T,w]=l.useState(!1),y=l.useMemo(()=>_(),[]),P=l.useMemo(()=>y.filter(s=>!E.some(R=>R.value===s)),[y]),z=l.useMemo(()=>O(v),[v]),A=a.inherited?O(a.inherited.tz):"UTC",o=a.inherited?V(a.inherited.weekStart):"Monday",r=q((F=a.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!n){c(!1);return}N||(a.userHasPrefs!==void 0&&g(!a.userHasPrefs),S(j),p(b))},[n,N,a.userHasPrefs,j,b]);const u=async()=>{if(x){t.ue.error("Preferences are still loading. Please try again.");return}h?await C()?(t.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again."):await L({tz:v,weekStart:k})?(t.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again.")},$=()=>{d(!1)},I=m||f,B=I||x;return e.jsx(t.Dialog,{open:n,onOpenChange:d,children:e.jsxs(t.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(t.DialogHeader,{children:[e.jsx(t.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(t.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(t.RadioGroup,{value:h?"defaults":"custom",onValueChange:s=>{c(!0),g(s==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{c(!0),g(!0)},children:[e.jsx(t.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",r," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[A,", week starts ",o]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{c(!0),g(!1)},children:[e.jsx(t.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:i.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Timezone"}),e.jsxs(i.Popover,{open:T,onOpenChange:w,modal:!0,children:[e.jsx(i.PopoverTrigger,{asChild:!0,children:e.jsxs(i.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":T,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:z}),e.jsx(G.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(i.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(t.Command,{className:"overflow-visible",children:[e.jsx(t.CommandInput,{placeholder:"Search timezones…"}),e.jsxs(t.CommandList,{children:[e.jsx(t.CommandEmpty,{children:"No timezone found."}),e.jsx(t.CommandGroup,{heading:"Common",children:E.map(s=>e.jsxs(t.CommandItem,{value:`${s.value} ${s.label}`,onSelect:()=>{c(!0),S(s.value),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:s.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:s.value})]},s.value))}),e.jsx(t.CommandSeparator,{}),e.jsx(t.CommandGroup,{heading:"All timezones",children:P.map(s=>e.jsxs(t.CommandItem,{value:s,onSelect:()=>{c(!0),S(s),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s?"opacity-100":"opacity-0")}),s]},s))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Week starts on"}),e.jsx(t.RadioGroup,{value:String(k),onValueChange:s=>{c(!0),p(Number(s))},className:"flex gap-4",disabled:h,children:M.map(s=>e.jsxs("label",{htmlFor:`week-start-${s.value}`,className:i.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(t.RadioGroupItem,{value:String(s.value),id:`week-start-${s.value}`,disabled:h}),s.label]},s.value))})]})]})]}),e.jsxs(t.DialogFooter,{children:[e.jsx(i.Button,{variant:"outline",size:"xs",onClick:$,disabled:I,children:"Cancel"}),e.jsx(i.Button,{size:"xs",onClick:u,disabled:B,children:I?e.jsxs(e.Fragment,{children:[e.jsx(i.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=Z;
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-DE0vIuYG.js"),i=require("./switch-CyRoZr5T.js");require("./index-BxM99sFL.js");const G=require("./chevrons-up-down-BBTZ5pAY.js");function W(n={}){var y,P,z,A;const{authToken:d,tokenProps:a}=t.useSemaphorContext(),x=n.enabled??!0,m=(d==null?void 0:d.accessToken)??null,f=(a==null?void 0:a.apiServiceUrl)??null,[L,C]=l.useState(!1),[j,b]=l.useState(!1),[h,g]=l.useState(!1),[N,c]=l.useState(null),[v,S]=l.useState(null),k=v||{tz:((P=(y=a==null?void 0:a.params)==null?void 0:y.calendarContext)==null?void 0:P.tz)||null,weekStart:((A=(z=a==null?void 0:a.params)==null?void 0:z.calendarContext)==null?void 0:A.weekStart)??null},p=l.useCallback(async()=>{if(!(!x||!m||!f)){C(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const r=await o.json();S({tz:r.tz,weekStart:r.weekStart,source:r.source,isInherited:r.isInherited,userHasPrefs:r.userHasPrefs,inherited:r.inherited})}catch(o){const r=o instanceof Error?o.message:"Unknown error";c(r)}finally{C(!1)}}},[m,f,x]);l.useEffect(()=>{x&&p()},[x,p]);const T=l.useCallback(async o=>{if(!m||!f)return c("Not authenticated"),!1;b(!0),c(null);try{const r=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify(o)});if(!r.ok){const u=await r.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await p(),!0}catch(r){const u=r instanceof Error?r.message:"Unknown error";return c(u),!1}finally{b(!1)}},[m,f,p]),w=l.useCallback(async()=>{if(!m||!f)return c("Not authenticated"),!1;g(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const r=await o.text();if(r)try{const u=JSON.parse(r);return S({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await p(),!0}catch(o){const r=o instanceof Error?o.message:"Unknown error";return c(r),!1}finally{g(!1)}},[m,f,p]);return{preferences:k,isLoading:L,isSaving:j,isClearing:h,error:N,updatePreferences:T,clearPreferences:w,refetch:p}}const E=[{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"}],H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function _(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return E.map(n=>n.value)}function q(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function O(n){const d=E.find(a=>a.value===n);return d?d.label:n}function V(n){const d=M.find(a=>a.value===n);return d?d.label:String(n)}function Z({open:n,onOpenChange:d}){var D,U,F;const{preferences:a,isLoading:x,isSaving:m,isClearing:f,updatePreferences:L,clearPreferences:C}=W({enabled:n}),j=a.tz||((D=a.inherited)==null?void 0:D.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=a.weekStart??((U=a.inherited)==null?void 0:U.weekStart)??1,[h,g]=l.useState(!a.userHasPrefs),[N,c]=l.useState(!1),[v,S]=l.useState(j),[k,p]=l.useState(b),[T,w]=l.useState(!1),y=l.useMemo(()=>_(),[]),P=l.useMemo(()=>y.filter(s=>!E.some(R=>R.value===s)),[y]),z=l.useMemo(()=>O(v),[v]),A=a.inherited?O(a.inherited.tz):"UTC",o=a.inherited?V(a.inherited.weekStart):"Monday",r=q((F=a.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!n){c(!1);return}N||(a.userHasPrefs!==void 0&&g(!a.userHasPrefs),S(j),p(b))},[n,N,a.userHasPrefs,j,b]);const u=async()=>{if(x){t.ue.error("Preferences are still loading. Please try again.");return}h?await C()?(t.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again."):await L({tz:v,weekStart:k})?(t.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again.")},$=()=>{d(!1)},I=m||f,B=I||x;return e.jsx(t.Dialog,{open:n,onOpenChange:d,children:e.jsxs(t.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(t.DialogHeader,{children:[e.jsx(t.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(t.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(t.RadioGroup,{value:h?"defaults":"custom",onValueChange:s=>{c(!0),g(s==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{c(!0),g(!0)},children:[e.jsx(t.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",r," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[A,", week starts ",o]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{c(!0),g(!1)},children:[e.jsx(t.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:i.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Timezone"}),e.jsxs(i.Popover,{open:T,onOpenChange:w,modal:!0,children:[e.jsx(i.PopoverTrigger,{asChild:!0,children:e.jsxs(i.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":T,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:z}),e.jsx(G.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(i.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(t.Command,{className:"overflow-visible",children:[e.jsx(t.CommandInput,{placeholder:"Search timezones…"}),e.jsxs(t.CommandList,{children:[e.jsx(t.CommandEmpty,{children:"No timezone found."}),e.jsx(t.CommandGroup,{heading:"Common",children:E.map(s=>e.jsxs(t.CommandItem,{value:`${s.value} ${s.label}`,onSelect:()=>{c(!0),S(s.value),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:s.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:s.value})]},s.value))}),e.jsx(t.CommandSeparator,{}),e.jsx(t.CommandGroup,{heading:"All timezones",children:P.map(s=>e.jsxs(t.CommandItem,{value:s,onSelect:()=>{c(!0),S(s),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s?"opacity-100":"opacity-0")}),s]},s))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Week starts on"}),e.jsx(t.RadioGroup,{value:String(k),onValueChange:s=>{c(!0),p(Number(s))},className:"flex gap-4",disabled:h,children:M.map(s=>e.jsxs("label",{htmlFor:`week-start-${s.value}`,className:i.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(t.RadioGroupItem,{value:String(s.value),id:`week-start-${s.value}`,disabled:h}),s.label]},s.value))})]})]})]}),e.jsxs(t.DialogFooter,{children:[e.jsx(i.Button,{variant:"outline",size:"xs",onClick:$,disabled:I,children:"Cancel"}),e.jsx(i.Button,{size:"xs",onClick:u,disabled:B,children:I?e.jsxs(e.Fragment,{children:[e.jsx(i.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=Z;
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, jsxs as s, Fragment as X } from "react/jsx-runtime";
2
2
  import ee, { useState as h, useCallback as F, useEffect as ae, useMemo as H } from "react";
3
- import { u as re, c as te, d as se, e as ne, f as le, g as oe, R as W, h as O, C as ie, i as ce, j as de, k as ue, l as _, m as R, n as me, o as fe, p as N } from "./index-TA0tBZ1g.js";
4
- import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-B6fK1sl9.js";
3
+ import { u as re, c as te, d as se, e as ne, f as le, g as oe, R as W, h as O, C as ie, i as ce, j as de, k as ue, l as _, m as R, n as me, o as fe, p as N } from "./index-DzyUhzV3.js";
4
+ import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-BAYfpAEb.js";
5
5
  import "./index-CuHybtft.js";
6
- import { C as be } from "./chevrons-up-down-B_66pVv5.js";
6
+ import { C as be } from "./chevrons-up-down-CYuWasy_.js";
7
7
  function we(n = {}) {
8
8
  var C, A, E, L;
9
9
  const { authToken: c, tokenProps: e } = re(), p = n.enabled ?? !0, d = (c == null ? void 0 : c.accessToken) ?? null, u = (e == null ? void 0 : e.apiServiceUrl) ?? null, [I, k] = h(!1), [y, b] = h(!1), [m, g] = h(!1), [T, o] = h(null), [v, w] = h(null), P = v || {
@@ -0,0 +1,191 @@
1
+ function c(t) {
2
+ return typeof t == "string" ? t.trim().toLowerCase() : "";
3
+ }
4
+ function y(t) {
5
+ return String(t.column_name || t.name || t.qualifiedFieldName || "");
6
+ }
7
+ function D(t) {
8
+ return Array.from(
9
+ new Set(
10
+ [
11
+ t.column_name,
12
+ t.name,
13
+ t.qualifiedFieldName,
14
+ t.alias
15
+ ].filter(
16
+ (e) => typeof e == "string" && e.trim().length > 0
17
+ ).map((e) => e.trim())
18
+ )
19
+ );
20
+ }
21
+ function l(t) {
22
+ const e = h(t);
23
+ return e ? e.includes("int") || e.includes("uint") || e.includes("bigint") || e.includes("smallint") || e.includes("tinyint") || e.includes("numeric") || e.includes("decimal") || e.includes("double") || e.includes("float") || e.includes("number") || e.includes("real") || e.includes("money") || e.includes("currency") || e.includes("percent") ? "number" : e.includes("timestamp") || e.includes("datetime") || e.startsWith("time") ? "datetime" : e.includes("date") ? "date" : e.includes("bool") ? "boolean" : "string" : "unknown";
24
+ }
25
+ function h(t) {
26
+ let e = c(t), n = "";
27
+ for (; e && e !== n; )
28
+ n = e, e = u(e, "nullable"), e = u(e, "lowcardinality");
29
+ return e;
30
+ }
31
+ function u(t, e) {
32
+ const n = `${e}(`;
33
+ return !t.startsWith(n) || !t.endsWith(")") ? t : t.slice(n.length, -1).trim();
34
+ }
35
+ function F(t) {
36
+ const e = l(t);
37
+ return e === "date" || e === "datetime";
38
+ }
39
+ function d(t) {
40
+ return F(t.dataType || t.data_type);
41
+ }
42
+ function p(t) {
43
+ const e = g(t);
44
+ return e === "id" || e === "row_id";
45
+ }
46
+ function m(t) {
47
+ const e = g(t);
48
+ return p(t) || e.endsWith("_id") || e.endsWith("_key") || e.endsWith("_number");
49
+ }
50
+ function g(t) {
51
+ return c(
52
+ y(t) || t.name || t.alias
53
+ ).replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
54
+ }
55
+ function f(t, e = {}) {
56
+ const n = c(t.role);
57
+ return n === "metric" || n === "measure" ? !e.excludeIdentifiers || !m(t) : n === "groupby" || n === "dimension" || n === "date" || n === "id" ? !1 : l(
58
+ t.dataType || t.data_type
59
+ ) === "number" && (!e.excludeIdentifiers || !m(t));
60
+ }
61
+ function A(t) {
62
+ return !f(t) && !d(t);
63
+ }
64
+ function b(t) {
65
+ return [
66
+ t.column_name,
67
+ t.name,
68
+ t.label,
69
+ t.alias,
70
+ t.qualifiedFieldName
71
+ ].filter(
72
+ (e) => typeof e == "string" && e.trim().length > 0
73
+ ).map(
74
+ (e) => c(e).replace(/[^a-z0-9]+/g, " ")
75
+ ).join(" ");
76
+ }
77
+ function o(t, e) {
78
+ return e.some((n) => {
79
+ const i = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
80
+ return new RegExp(`(^|\\s)${i}(\\s|$)`, "i").test(t);
81
+ });
82
+ }
83
+ function C(t) {
84
+ const e = b(t);
85
+ if (e)
86
+ return o(e, [
87
+ "pct",
88
+ "percent",
89
+ "percentage",
90
+ "rate",
91
+ "ratio",
92
+ "share",
93
+ "conversion",
94
+ "retention",
95
+ "churn",
96
+ "growth",
97
+ "margin rate",
98
+ "margin pct",
99
+ "margin percent",
100
+ "margin percentage"
101
+ ]) ? {
102
+ type: "percent",
103
+ minimumFractionDigits: 0,
104
+ maximumFractionDigits: 1,
105
+ percentValueMode: "fraction"
106
+ } : o(e, [
107
+ "revenue",
108
+ "sales",
109
+ "profit",
110
+ "arr",
111
+ "mrr",
112
+ "gmv",
113
+ "amount",
114
+ "price",
115
+ "cost",
116
+ "spend",
117
+ "expense",
118
+ "budget",
119
+ "income",
120
+ "value",
121
+ "booking",
122
+ "bookings"
123
+ ]) ? {
124
+ type: "currency",
125
+ currency: "USD",
126
+ minimumFractionDigits: 0,
127
+ maximumFractionDigits: 1,
128
+ compact: !0
129
+ } : o(e, [
130
+ "count",
131
+ "quantity",
132
+ "orders",
133
+ "order",
134
+ "users",
135
+ "customers",
136
+ "tickets",
137
+ "units",
138
+ "sessions",
139
+ "visits",
140
+ "items",
141
+ "rows"
142
+ ]) ? {
143
+ type: "number",
144
+ minimumFractionDigits: 0,
145
+ maximumFractionDigits: 0,
146
+ compact: !0
147
+ } : {
148
+ type: "number",
149
+ minimumFractionDigits: 0,
150
+ maximumFractionDigits: 1,
151
+ compact: !0
152
+ };
153
+ }
154
+ function x(t) {
155
+ const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
156
+ for (const r of t) {
157
+ if (p(r))
158
+ continue;
159
+ const s = D(r);
160
+ if (s.length !== 0) {
161
+ if (d(r)) {
162
+ s.forEach((a) => n.add(a));
163
+ continue;
164
+ }
165
+ if (f(r, { excludeIdentifiers: !0 })) {
166
+ s.forEach((a) => e.add(a));
167
+ continue;
168
+ }
169
+ s.forEach((a) => i.add(a));
170
+ }
171
+ }
172
+ return {
173
+ validMetricCandidates: Array.from(e).sort(),
174
+ validDateCandidates: Array.from(n).sort(),
175
+ validDimensionCandidates: Array.from(i).sort()
176
+ };
177
+ }
178
+ export {
179
+ D as a,
180
+ l as b,
181
+ d as c,
182
+ p as d,
183
+ m as e,
184
+ f,
185
+ y as g,
186
+ A as h,
187
+ F as i,
188
+ C as j,
189
+ x as k,
190
+ c as n
191
+ };
@@ -0,0 +1 @@
1
+ "use strict";function r(t){return typeof t=="string"?t.trim().toLowerCase():""}function p(t){return String(t.column_name||t.name||t.qualifiedFieldName||"")}function f(t){return Array.from(new Set([t.column_name,t.name,t.qualifiedFieldName,t.alias].filter(e=>typeof e=="string"&&e.trim().length>0).map(e=>e.trim())))}function u(t){const e=C(t);return e?e.includes("int")||e.includes("uint")||e.includes("bigint")||e.includes("smallint")||e.includes("tinyint")||e.includes("numeric")||e.includes("decimal")||e.includes("double")||e.includes("float")||e.includes("number")||e.includes("real")||e.includes("money")||e.includes("currency")||e.includes("percent")?"number":e.includes("timestamp")||e.includes("datetime")||e.startsWith("time")?"datetime":e.includes("date")?"date":e.includes("bool")?"boolean":"string":"unknown"}function C(t){let e=r(t),i="";for(;e&&e!==i;)i=e,e=g(e,"nullable"),e=g(e,"lowcardinality");return e}function g(t,e){const i=`${e}(`;return!t.startsWith(i)||!t.endsWith(")")?t:t.slice(i.length,-1).trim()}function A(t){const e=u(t);return e==="date"||e==="datetime"}function m(t){return A(t.dataType||t.data_type)}function d(t){const e=F(t);return e==="id"||e==="row_id"}function l(t){const e=F(t);return d(t)||e.endsWith("_id")||e.endsWith("_key")||e.endsWith("_number")}function F(t){return r(p(t)||t.name||t.alias).replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")}function y(t,e={}){const i=r(t.role);return i==="metric"||i==="measure"?!e.excludeIdentifiers||!l(t):i==="groupby"||i==="dimension"||i==="date"||i==="id"?!1:u(t.dataType||t.data_type)==="number"&&(!e.excludeIdentifiers||!l(t))}function D(t){return!y(t)&&!m(t)}function h(t){return[t.column_name,t.name,t.label,t.alias,t.qualifiedFieldName].filter(e=>typeof e=="string"&&e.trim().length>0).map(e=>r(e).replace(/[^a-z0-9]+/g," ")).join(" ")}function o(t,e){return e.some(i=>{const n=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`(^|\\s)${n}(\\s|$)`,"i").test(t)})}function b(t){const e=h(t);if(e)return o(e,["pct","percent","percentage","rate","ratio","share","conversion","retention","churn","growth","margin rate","margin pct","margin percent","margin percentage"])?{type:"percent",minimumFractionDigits:0,maximumFractionDigits:1,percentValueMode:"fraction"}:o(e,["revenue","sales","profit","arr","mrr","gmv","amount","price","cost","spend","expense","budget","income","value","booking","bookings"])?{type:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:1,compact:!0}:o(e,["count","quantity","orders","order","users","customers","tickets","units","sessions","visits","items","rows"])?{type:"number",minimumFractionDigits:0,maximumFractionDigits:0,compact:!0}:{type:"number",minimumFractionDigits:0,maximumFractionDigits:1,compact:!0}}function T(t){const e=new Set,i=new Set,n=new Set;for(const c of t){if(d(c))continue;const s=f(c);if(s.length!==0){if(m(c)){s.forEach(a=>i.add(a));continue}if(y(c,{excludeIdentifiers:!0})){s.forEach(a=>e.add(a));continue}s.forEach(a=>n.add(a))}}return{validMetricCandidates:Array.from(e).sort(),validDateCandidates:Array.from(i).sort(),validDimensionCandidates:Array.from(n).sort()}}exports.buildAnalyticsCatalogFieldSummary=T;exports.getAnalyticsCatalogFieldCandidates=f;exports.getAnalyticsCatalogFieldName=p;exports.inferAnalyticsMetricFormat=b;exports.isAnalyticsCatalogDateField=m;exports.isAnalyticsCatalogDimensionField=D;exports.isAnalyticsCatalogMetricField=y;exports.isAnalyticsDateLikeDataType=A;exports.isAnalyticsMetricIdentifierField=l;exports.isAnalyticsTechnicalIdentifierField=d;exports.normalizeAnalyticsCatalogDataType=u;exports.normalizeAnalyticsCatalogName=r;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./switch-BT7khJGF.js");/**
1
+ "use strict";const e=require("./switch-CyRoZr5T.js");/**
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
- import { c as o } from "./switch-B6fK1sl9.js";
1
+ import { c as o } from "./switch-BAYfpAEb.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./switch-BT7khJGF.js"),l=require("./index-CP3_hN7P.js"),oe=require("./use-create-flow-overlay-state-T8Su6dzu.js"),h=require("react"),pn=require("./use-visual-utils-wqosOqyY.js");require("./index-BxM99sFL.js");const Vs=require("./date-formatter-B4EBSe9C.js");require("./index-DRlMUglg.js");require("react-dom/client");require("react-dom");/**
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("./switch-CyRoZr5T.js"),l=require("./index-DE0vIuYG.js"),oe=require("./use-create-flow-overlay-state-CbhjxI3W.js"),h=require("react"),pn=require("./use-visual-utils-CV6_-y4p.js");require("./index-BxM99sFL.js");const Vs=require("./date-formatter-B4EBSe9C.js");require("./index-DRlMUglg.js");require("react-dom/client");require("react-dom");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,9 +1,9 @@
1
1
  import { jsx as t, jsxs as s, Fragment as ae } from "react/jsx-runtime";
2
- import { c as Ie, L as vn, a2 as ao, B as pe, f as ne, G as ct, u as q, E as bt, aK as Tr, aa as pa, g as ze, e as Ke, H as fa, a as v, J as Ln, X as Ce, P as Fe, b as Ze, d as et, aL as so, aM as oo, aI as ga, aN as ba, a3 as Ge, a4 as Je, a5 as Qe, a6 as Ye, a7 as ue, V as io, aO as xa, aP as ya, a0 as Xe, T as lo, K as co, M as Lr, aQ as uo } from "./switch-B6fK1sl9.js";
3
- import { c as ut, d as mt, e as ht, f as pt, g as ft, bc as mo, o as va, ag as ho, ah as po, av as Na, bP as fo, p as he, aw as Nn, y as go, aN as Rn, aO as Fn, aQ as Pn, aR as je, aV as wa, aI as zt, bQ as bo, bR as xo, b0 as Mn, b1 as Bn, b2 as On, b3 as Vn, b4 as $n, b5 as Un, b6 as _n, u as It, $ as ot, aa as jn, a6 as Ca, a7 as zn, a0 as ka, a5 as yo, ac as vo, bK as No, bS as wo, aK as Co, a8 as Rr, x as Ot, a2 as ko, bT as So, bU as Ao, bV as Eo, bW as Io, bX as Do, bY as To, bZ as Lo, b_ as Ro, b$ as Sa, c0 as Fo, c1 as Po, c2 as Mo, c3 as Bo, c4 as Oo, c5 as gt, c6 as Vo, bJ as Aa, ax as Ea, c7 as $o, c8 as Uo, c9 as _o, ca as jo, cb as zo, cc as Ko, cd as qo, ce as Ia, cf as Ho, cg as Wo, ch as Da, ci as Ta, cj as La, ck as Go, cl as Jo, b9 as Ra, by as Qo, bv as Yo, cm as Xo, aW as Zo, cn as Fa, co as ei, cp as ti, aX as Fr, cq as ni, cr as ri, cs as wn, ct as ai, cu as si, cv as Pa, cw as Kn, cx as oi, cy as ii, cz as li, cA as Ma, cB as Dt, cC as Ba, az as Cn, b7 as Oa, cD as di, cE as ci, ay as kn, cF as ui, cG as Va, cH as mi, cI as hi, cJ as pi, cK as fi, cL as gi, cM as bi, cN as xi, cO as yi } from "./index-TA0tBZ1g.js";
4
- import { V as vi, E as Pr, a as Mr, b as Ni, c as wi, L as Ci, d as ki, C as Si, u as $a, e as Ua, f as Ai, R as Ei, S as Ii } from "./use-create-flow-overlay-state-DPYHfe-S.js";
2
+ import { c as Ie, L as vn, a2 as ao, B as pe, f as ne, G as ct, u as q, E as bt, aK as Tr, aa as pa, g as ze, e as Ke, H as fa, a as v, J as Ln, X as Ce, P as Fe, b as Ze, d as et, aL as so, aM as oo, aI as ga, aN as ba, a3 as Ge, a4 as Je, a5 as Qe, a6 as Ye, a7 as ue, V as io, aO as xa, aP as ya, a0 as Xe, T as lo, K as co, M as Lr, aQ as uo } from "./switch-BAYfpAEb.js";
3
+ import { c as ut, d as mt, e as ht, f as pt, g as ft, bc as mo, o as va, ag as ho, ah as po, av as Na, bP as fo, p as he, aw as Nn, y as go, aN as Rn, aO as Fn, aQ as Pn, aR as je, aV as wa, aI as zt, bQ as bo, bR as xo, b0 as Mn, b1 as Bn, b2 as On, b3 as Vn, b4 as $n, b5 as Un, b6 as _n, u as It, $ as ot, aa as jn, a6 as Ca, a7 as zn, a0 as ka, a5 as yo, ac as vo, bK as No, bS as wo, aK as Co, a8 as Rr, x as Ot, a2 as ko, bT as So, bU as Ao, bV as Eo, bW as Io, bX as Do, bY as To, bZ as Lo, b_ as Ro, b$ as Sa, c0 as Fo, c1 as Po, c2 as Mo, c3 as Bo, c4 as Oo, c5 as gt, c6 as Vo, bJ as Aa, ax as Ea, c7 as $o, c8 as Uo, c9 as _o, ca as jo, cb as zo, cc as Ko, cd as qo, ce as Ia, cf as Ho, cg as Wo, ch as Da, ci as Ta, cj as La, ck as Go, cl as Jo, b9 as Ra, by as Qo, bv as Yo, cm as Xo, aW as Zo, cn as Fa, co as ei, cp as ti, aX as Fr, cq as ni, cr as ri, cs as wn, ct as ai, cu as si, cv as Pa, cw as Kn, cx as oi, cy as ii, cz as li, cA as Ma, cB as Dt, cC as Ba, az as Cn, b7 as Oa, cD as di, cE as ci, ay as kn, cF as ui, cG as Va, cH as mi, cI as hi, cJ as pi, cK as fi, cL as gi, cM as bi, cN as xi, cO as yi } from "./index-DzyUhzV3.js";
4
+ import { V as vi, E as Pr, a as Mr, b as Ni, c as wi, L as Ci, d as ki, C as Si, u as $a, e as Ua, f as Ai, R as Ei, S as Ii } from "./use-create-flow-overlay-state-P1LMwQ89.js";
5
5
  import Di, { useState as S, useContext as Ti, useRef as Ee, useCallback as me, useEffect as ce, useMemo as V } from "react";
6
- import { u as _a } from "./use-visual-utils-Daov8_1p.js";
6
+ import { u as _a } from "./use-visual-utils-lB-3Zk0b.js";
7
7
  import "./index-CuHybtft.js";
8
8
  import { l as Br } from "./date-formatter-CzcPZx39.js";
9
9
  import "./index-CJdxSyQq.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("./switch-BT7khJGF.js"),s=require("./index-CP3_hN7P.js");require("./index-BxM99sFL.js");const v=require("react");require("./index-DRlMUglg.js");require("react-dom/client");const Yt=require("react-dom"),O=require("./dashboard-briefing-launcher-Bwz4mKOI.js"),ht=require("./index-D7KJindZ.js"),Zt=require("./calendar-preferences-dialog-CB5MA9gF.js"),es=require("./use-debounced-dirty-check-XHSwAefL.js"),Re=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),ts=require("./palette-BueS2ZEM.js"),ss=require("./braces-DlW7C5BH.js");function rs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const E=rs(v);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("./switch-CyRoZr5T.js"),s=require("./index-DE0vIuYG.js");require("./index-BxM99sFL.js");const v=require("react");require("./index-DRlMUglg.js");require("react-dom/client");const Yt=require("react-dom"),O=require("./dashboard-briefing-launcher-BtqtLx1-.js"),ht=require("./index-D7KJindZ.js"),Zt=require("./calendar-preferences-dialog-Bm7ji3k9.js"),es=require("./use-debounced-dirty-check-XHSwAefL.js"),Re=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),ts=require("./palette-DalASD28.js"),ss=require("./braces-BLa_lORs.js");function rs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const E=rs(v);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,19 +1,19 @@
1
1
  import { jsx as t, jsxs as i, Fragment as R } from "react/jsx-runtime";
2
- import { c as K, u as N, B as _, aA as dt, E as Vt, L as jr, a2 as qr, a as te, aB as Hr, aC as Vr, aD as rt, aE as me, aF as ct, aG as Kt, f as $e, X as Qt, aH as Wt, aI as Kr, G as Rt, Z as Qr, _ as Wr, $ as Jr, a1 as Xr, S as Ut, j as Yr, aJ as Zr } from "./switch-B6fK1sl9.js";
3
- import { bg as ea, u as G, c as Jt, bh as ta, aI as re, d as Xt, e as ra, f as at, g as nt, o as aa, bi as ue, aV as Fe, bj as na, bk as Tt, bl as Yt, bm as Zt, bn as sa, b9 as lt, bo as oa, bp as ia, bq as da, br as ca, bs as la, bt as ua, ae as pe, bu as he, p as k, bv as ma, bw as er, az as ut, be as pa, bx as ha, by as fa, bz as tr, aU as rr, aX as ar, ay as ga, aM as ba, bA as xa, bB as va, z as ya, y as Ue, K as wa, A as Xe, bC as Na, bD as Sa, bE as Da, _ as Ca, bF as ka, I as Ye, bG as Ea, bH as La, bI as Ia, bJ as Aa, aN as Ma, aO as Pa, aP as Oa, aQ as _a, aR as $, bK as Ra, aS as Ft, bL as Ua, bM as Ta, bN as Fa, J as $a, bO as Ga, b0 as Ba, b1 as za, b2 as ja, b3 as qa, b4 as Ha, b5 as Va, b6 as Ka, b7 as $t, w as st } from "./index-TA0tBZ1g.js";
2
+ import { c as K, u as N, B as _, aA as dt, E as Vt, L as jr, a2 as qr, a as te, aB as Hr, aC as Vr, aD as rt, aE as me, aF as ct, aG as Kt, f as $e, X as Qt, aH as Wt, aI as Kr, G as Rt, Z as Qr, _ as Wr, $ as Jr, a1 as Xr, S as Ut, j as Yr, aJ as Zr } from "./switch-BAYfpAEb.js";
3
+ import { bg as ea, u as G, c as Jt, bh as ta, aI as re, d as Xt, e as ra, f as at, g as nt, o as aa, bi as ue, aV as Fe, bj as na, bk as Tt, bl as Yt, bm as Zt, bn as sa, b9 as lt, bo as oa, bp as ia, bq as da, br as ca, bs as la, bt as ua, ae as pe, bu as he, p as k, bv as ma, bw as er, az as ut, be as pa, bx as ha, by as fa, bz as tr, aU as rr, aX as ar, ay as ga, aM as ba, bA as xa, bB as va, z as ya, y as Ue, K as wa, A as Xe, bC as Na, bD as Sa, bE as Da, _ as Ca, bF as ka, I as Ye, bG as Ea, bH as La, bI as Ia, bJ as Aa, aN as Ma, aO as Pa, aP as Oa, aQ as _a, aR as $, bK as Ra, aS as Ft, bL as Ua, bM as Ta, bN as Fa, J as $a, bO as Ga, b0 as Ba, b1 as za, b2 as ja, b3 as qa, b4 as Ha, b5 as Va, b6 as Ka, b7 as $t, w as st } from "./index-DzyUhzV3.js";
4
4
  import "./index-CuHybtft.js";
5
5
  import * as I from "react";
6
6
  import nr, { useState as w, useMemo as V, useEffect as Ge, useRef as Gt, useLayoutEffect as Qa, useCallback as Wa } from "react";
7
7
  import "./index-CJdxSyQq.js";
8
8
  import "react-dom/client";
9
9
  import { createPortal as Ja } from "react-dom";
10
- import { L as Xa, b as Ya, u as Za, A as en, V as tn, K as rn, e as an, M as nn, N as sn, U as on } from "./dashboard-briefing-launcher-B7AxiecS.js";
10
+ import { L as Xa, b as Ya, u as Za, A as en, V as tn, K as rn, e as an, M as nn, N as sn, U as on } from "./dashboard-briefing-launcher-DF4CoaRn.js";
11
11
  import { d as sr } from "./index-DFOb_6HB.js";
12
- import { C as dn } from "./calendar-preferences-dialog-BLz4PrDX.js";
12
+ import { C as dn } from "./calendar-preferences-dialog-Cocogo9H.js";
13
13
  import { u as cn } from "./use-debounced-dirty-check-BwAbnX_5.js";
14
14
  import { s as Ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
15
- import { P as ln } from "./palette-BW7lzLOY.js";
16
- import { B as un } from "./braces-DYx37F5Z.js";
15
+ import { P as ln } from "./palette-B9AbDw0n.js";
16
+ import { B as un } from "./braces-Q86XHDaD.js";
17
17
  /**
18
18
  * @license lucide-react v0.453.0 - ISC
19
19
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react");require("./index-BxM99sFL.js");const s=require("./switch-BT7khJGF.js");require("./index-CP3_hN7P.js");require("./index-DRlMUglg.js");require("react-dom/client");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),c(d)}catch{}},language:"json"})})]})}exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react");require("./index-BxM99sFL.js");const s=require("./switch-CyRoZr5T.js");require("./index-DE0vIuYG.js");require("./index-DRlMUglg.js");require("react-dom/client");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),c(d)}catch{}},language:"json"})})]})}exports.default=b;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as m, useState as b, useRef as f, useEffect as p } from "react";
3
3
  import "./index-CuHybtft.js";
4
- import { u as o, a as S, B as N, X as D, C as J } from "./switch-B6fK1sl9.js";
5
- import "./index-TA0tBZ1g.js";
4
+ import { u as o, a as S, B as N, X as D, C as J } from "./switch-BAYfpAEb.js";
5
+ import "./index-DzyUhzV3.js";
6
6
  import "./index-CJdxSyQq.js";
7
7
  import "react-dom/client";
8
8
  import "react-dom";