react-semaphor 0.1.263 → 0.1.265
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.
- package/dist/chunks/{dashboard-controls-JZ-mgUSY.js → dashboard-controls-C3YdJLCg.js} +1 -1
- package/dist/chunks/{dashboard-controls-DVMSiuTb.js → dashboard-controls-CV9n9bD0.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-CnijsTUC.js → dashboard-filter-controls-button-BVMrh4zU.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-ClYx7NdN.js → dashboard-filter-controls-button-DRyjg_Wq.js} +3 -3
- package/dist/chunks/{dashboard-json-CKWfqC0m.js → dashboard-json-BZ0Pq4ts.js} +1 -1
- package/dist/chunks/{dashboard-json-BILMCUhG.js → dashboard-json-Cq-k0Cep.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-5JMWm5zV.js → dashboard-summary-settings-dialog-BtNdvv7V.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-6SEdlbOP.js → dashboard-summary-settings-dialog-Dti6MY_3.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BjU_0_QA.js → edit-dashboard-visual-DOOOXiAg.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-DPqnhyq1.js → edit-dashboard-visual-DU_e91E4.js} +1 -1
- package/dist/chunks/index-D-8djJiT.js +1207 -0
- package/dist/chunks/{index-D2dG8YFx.js → index-s-nTyy5G.js} +25806 -25479
- package/dist/chunks/{resource-management-panel-BAytqOVf.js → resource-management-panel-BzliFK4Z.js} +1 -1
- package/dist/chunks/{resource-management-panel-I5Q6TQbc.js → resource-management-panel-G8TD1QoE.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-CPUI4zrE.js → use-create-flow-overlay-state-1P2_etiD.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-DakZJeCH.js → use-create-flow-overlay-state-7KAmXHoB.js} +1 -1
- package/dist/chunks/{use-visual-utils-Cd9d6nnp.js → use-visual-utils-B3G-6s3b.js} +1 -1
- package/dist/chunks/{use-visual-utils-B_9CT1PY.js → use-visual-utils-Csc_WvOV.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/index-BUNYVJ8g.js +0 -1114
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-D-8djJiT.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-BVMrh4zU.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-BtNdvv7V.js"),Us=require("./use-debounced-dirty-check-XHSwAefL.js"),we=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),Ye=require("./use-create-flow-overlay-state-7KAmXHoB.js");function Rs(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const C=Rs(x);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
|
-
import { bL as de, dn as qs, u as x, cy as ra, cz as na, B as M, cB as oa, cC as Q, dp as ia, N as qa, b as $, e as la, dq as Hs, cp as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a6 as K, dr as we, cG as We, ds as zs, dt as Pa, du as ja, c as Y, dv as za, dw as Bs, cX as ha, dx as Ks, dy as Qs, dz as Ws, dA as Js, dB as Xs, dC as Ys, H as Ae, V as Me, x as k, dD as Le, dE as Ba, dF as Ka, d5 as Zs, dG as et, w as Z, cF as J, dH as at, dI as st, dJ as Je, dK as tt, dL as rt, dM as Qa, dN as Wa, dO as Ce, dP as Ee, d1 as Xe, cL as Ye, dQ as Ze, cc as Ja, dR as ea, c7 as Xa, dS as nt, cO as Ya, cP as Za, cQ as es, cR as as, cS as ss, cT as ts, cU as rs, cV as aa, dT as ns, cx as ot, dU as it, af as lt, U as Ua, ae as De, dV as ct, al as dt, ag as je, dW as ut, dX as mt, dY as ht, aA as pt, dZ as ft, d_ as gt, bS as vt, bT as bt, bU as yt, d$ as Nt, bV as St, cD as xt, as as Dt, e0 as wt, e1 as Ct, dm as Et, e2 as At, e3 as Mt, cA as Lt, a8 as kt, cI as It, e4 as Ot, ak as Tt, a9 as _t, ar as Pt, e5 as Ut } from "./index-
|
|
2
|
+
import { bL as de, dn as qs, u as x, cy as ra, cz as na, B as M, cB as oa, cC as Q, dp as ia, N as qa, b as $, e as la, dq as Hs, cp as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a6 as K, dr as we, cG as We, ds as zs, dt as Pa, du as ja, c as Y, dv as za, dw as Bs, cX as ha, dx as Ks, dy as Qs, dz as Ws, dA as Js, dB as Xs, dC as Ys, H as Ae, V as Me, x as k, dD as Le, dE as Ba, dF as Ka, d5 as Zs, dG as et, w as Z, cF as J, dH as at, dI as st, dJ as Je, dK as tt, dL as rt, dM as Qa, dN as Wa, dO as Ce, dP as Ee, d1 as Xe, cL as Ye, dQ as Ze, cc as Ja, dR as ea, c7 as Xa, dS as nt, cO as Ya, cP as Za, cQ as es, cR as as, cS as ss, cT as ts, cU as rs, cV as aa, dT as ns, cx as ot, dU as it, af as lt, U as Ua, ae as De, dV as ct, al as dt, ag as je, dW as ut, dX as mt, dY as ht, aA as pt, dZ as ft, d_ as gt, bS as vt, bT as bt, bU as yt, d$ as Nt, bV as St, cD as xt, as as Dt, e0 as wt, e1 as Ct, dm as Et, e2 as At, e3 as Mt, cA as Lt, a8 as kt, cI as It, e4 as Ot, ak as Tt, a9 as _t, ar as Pt, e5 as Ut } from "./index-s-nTyy5G.js";
|
|
3
3
|
import * as A from "react";
|
|
4
4
|
import os, { useState as N, useMemo as W, useCallback as Ra, useEffect as Rt } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-
|
|
6
|
+
import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-DRyjg_Wq.js";
|
|
7
7
|
import { l as Kt } from "./date-formatter-vkCj9Ct-.js";
|
|
8
|
-
import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-
|
|
8
|
+
import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-Dti6MY_3.js";
|
|
9
9
|
import { u as Jt } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
10
10
|
import { s as ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
11
|
-
import { S as Ga } from "./use-create-flow-overlay-state-
|
|
11
|
+
import { S as Ga } from "./use-create-flow-overlay-state-1P2_etiD.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.453.0 - ISC
|
|
14
14
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const g=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const g=require("react"),t=require("./index-D-8djJiT.js"),e=require("react/jsx-runtime"),A=require("./use-create-flow-overlay-state-7KAmXHoB.js"),M=require("./use-visual-utils-B3G-6s3b.js"),T=require("./date-formatter-CqXdM6JO.js");/**
|
|
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 ve, { useState as L, useRef as O, useCallback as V, useEffect as F, useContext as ge } from "react";
|
|
2
|
-
import { bL as Z, b as $, aB as U, bI as j, bE as ee, bF as _, aC as te, bD as be, e as ae, f as se, g as re, h as oe, i as ne, L as G, c$ as we, d5 as Ce, v as xe, B as S, w as H, U as z, J as ye, u as P, K as Ne, N as X, d6 as De, d7 as K, x as R, ae as Ae, c as I, cy as ie, cz as le, a5 as de, cB as ce, cC as M, s as Ee, cG as Se, cp as Ie, M as Le, d8 as Te, d9 as Fe, da as ke, cO as Ue, cP as Me, cQ as Ve, db as Pe, cR as Be, cS as Oe, cT as ze, cU as Re, cV as $e, ar as je, bK as _e, X as He, dc as Xe, dd as Ge, cu as Ke, bG as q, a7 as qe, aE as Qe, P as ue, k as me, de as We, l as he, df as Je, dg as Ye, dh as Ze, di as et, dj as tt, dk as pe, dl as Q, dm as at } from "./index-
|
|
2
|
+
import { bL as Z, b as $, aB as U, bI as j, bE as ee, bF as _, aC as te, bD as be, e as ae, f as se, g as re, h as oe, i as ne, L as G, c$ as we, d5 as Ce, v as xe, B as S, w as H, U as z, J as ye, u as P, K as Ne, N as X, d6 as De, d7 as K, x as R, ae as Ae, c as I, cy as ie, cz as le, a5 as de, cB as ce, cC as M, s as Ee, cG as Se, cp as Ie, M as Le, d8 as Te, d9 as Fe, da as ke, cO as Ue, cP as Me, cQ as Ve, db as Pe, cR as Be, cS as Oe, cT as ze, cU as Re, cV as $e, ar as je, bK as _e, X as He, dc as Xe, dd as Ge, cu as Ke, bG as q, a7 as qe, aE as Qe, P as ue, k as me, de as We, l as he, df as Je, dg as Ye, dh as Ze, di as et, dj as tt, dk as pe, dl as Q, dm as at } from "./index-s-nTyy5G.js";
|
|
3
3
|
import { jsx as t, jsxs as s, Fragment as B } from "react/jsx-runtime";
|
|
4
|
-
import { V as st, E as rt, a as ot, b as nt, L as it, c as lt, d as dt, C as ct, u as ut, e as mt } from "./use-create-flow-overlay-state-
|
|
5
|
-
import { a as fe } from "./use-visual-utils-
|
|
4
|
+
import { V as st, E as rt, a as ot, b as nt, L as it, c as lt, d as dt, C as ct, u as ut, e as mt } from "./use-create-flow-overlay-state-1P2_etiD.js";
|
|
5
|
+
import { a as fe } from "./use-visual-utils-Csc_WvOV.js";
|
|
6
6
|
import { k as W } from "./date-formatter-vkCj9Ct-.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-D-8djJiT.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-
|
|
2
|
+
import { u as s, c as l, B as h, X as d, d as c } from "./index-s-nTyy5G.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-BUNYVJ8g.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),S=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[v,p]=l.useState(!1),[m,n]=l.useState(!1),[j,c]=l.useState(null),[x,w]=l.useState(null),k=x||{tz:((I=(C=s==null?void 0:s.params)==null?void 0:C.calendarContext)==null?void 0:I.tz)||null,weekStart:((D=(P=s==null?void 0:s.params)==null?void 0:P.calendarContext)==null?void 0:D.weekStart)??null},b=l.useCallback(async()=>{if(!(!S||!d||!f)){g(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const i=await u.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(u){const i=u instanceof Error?u.message:"Unknown error";c(i)}finally{g(!1)}}},[d,f,S]);l.useEffect(()=>{S&&b()},[S,b]);const T=l.useCallback(async u=>{if(!d||!f)return c("Not authenticated"),!1;p(!0),c(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(!i.ok){const h=await i.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await b(),!0}catch(i){const h=i instanceof Error?i.message:"Unknown error";return c(h),!1}finally{p(!1)}},[d,f,b]),N=l.useCallback(async()=>{if(!d||!f)return c("Not authenticated"),!1;n(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const i=await u.text();if(i)try{const h=JSON.parse(i);return w({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await b(),!0}catch(u){const i=u instanceof Error?u.message:"Unknown error";return c(i),!1}finally{n(!1)}},[d,f,b]);return{preferences:k,isLoading:y,isSaving:v,isClearing:m,error:j,updatePreferences:T,clearPreferences:N,refetch:b}}const A=[{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"}],H=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const r=Intl;if(r.supportedValuesOf)return r.supportedValuesOf("timeZone")}catch{}return A.map(r=>r.value)}function V(r){switch(r){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function U(r){const o=A.find(s=>s.value===r);return o?o.label:r}function X(r){const o=H.find(s=>s.value===r);return o?o.label:String(r)}function q({open:r,onOpenChange:o}){var M,z,F;const{preferences:s,isLoading:S,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),v=s.tz||((M=s.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,p=s.weekStart??((z=s.inherited)==null?void 0:z.weekStart)??1,[m,n]=l.useState(!s.userHasPrefs),[j,c]=l.useState(!1),[x,w]=l.useState(v),[k,b]=l.useState(p),[T,N]=l.useState(!1),C=l.useMemo(()=>G(),[]),I=l.useMemo(()=>C.filter(t=>!A.some(R=>R.value===t)),[C]),P=l.useMemo(()=>U(x),[x]),D=s.inherited?U(s.inherited.tz):"UTC",u=s.inherited?X(s.inherited.weekStart):"Monday",i=V((F=s.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!r){c(!1);return}j||(s.userHasPrefs!==void 0&&n(!s.userHasPrefs),w(v),b(p))},[r,j,s.userHasPrefs,v,p]);const h=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await g()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again."):await y({tz:x,weekStart:k})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{o(!1)},L=d||f,O=L||S;return e.jsx(a.Dialog,{open:r,onOpenChange:o,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),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:()=>{c(!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 ",i," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[D,", Week starts ",u]})]})]}),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),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:N,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:[P,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:A.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),w(t.value),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===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:I.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),w(t),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===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(k),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:H.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:L,children:"Cancel"}),e.jsx(a.Button,{onClick:h,disabled:O,children:L?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const E=6,B=1,_=20;function Z(r){return Number.isNaN(r)?E:Math.min(_,Math.max(B,r))}function J({open:r,onOpenChange:o,dashboard:s,onApply:S,disabled:d=!1}){const[f,y]=l.useState(!1),[g,v]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),v((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??E)))},[r,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const j=l.useMemo(()=>Z(Number.parseInt(p||`${E}`,10)),[p]),c=()=>{S({enabled:f,position:g,maxItems:j}),o(!1)};return e.jsx(a.Dialog,{open:r,onOpenChange:o,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:f,disabled:d,onCheckedChange:y})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:g,disabled:d,onValueChange:x=>v(x),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:B,max:_,disabled:d,value:p,onChange:x=>m(x.target.value),onBlur:()=>m(String(j))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),d&&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:()=>o(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:c,disabled:d,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-D-8djJiT.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),S=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[v,p]=l.useState(!1),[m,n]=l.useState(!1),[j,c]=l.useState(null),[x,w]=l.useState(null),k=x||{tz:((I=(C=s==null?void 0:s.params)==null?void 0:C.calendarContext)==null?void 0:I.tz)||null,weekStart:((D=(P=s==null?void 0:s.params)==null?void 0:P.calendarContext)==null?void 0:D.weekStart)??null},b=l.useCallback(async()=>{if(!(!S||!d||!f)){g(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const i=await u.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(u){const i=u instanceof Error?u.message:"Unknown error";c(i)}finally{g(!1)}}},[d,f,S]);l.useEffect(()=>{S&&b()},[S,b]);const T=l.useCallback(async u=>{if(!d||!f)return c("Not authenticated"),!1;p(!0),c(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(!i.ok){const h=await i.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await b(),!0}catch(i){const h=i instanceof Error?i.message:"Unknown error";return c(h),!1}finally{p(!1)}},[d,f,b]),N=l.useCallback(async()=>{if(!d||!f)return c("Not authenticated"),!1;n(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const i=await u.text();if(i)try{const h=JSON.parse(i);return w({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await b(),!0}catch(u){const i=u instanceof Error?u.message:"Unknown error";return c(i),!1}finally{n(!1)}},[d,f,b]);return{preferences:k,isLoading:y,isSaving:v,isClearing:m,error:j,updatePreferences:T,clearPreferences:N,refetch:b}}const A=[{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"}],H=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const r=Intl;if(r.supportedValuesOf)return r.supportedValuesOf("timeZone")}catch{}return A.map(r=>r.value)}function V(r){switch(r){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function U(r){const o=A.find(s=>s.value===r);return o?o.label:r}function X(r){const o=H.find(s=>s.value===r);return o?o.label:String(r)}function q({open:r,onOpenChange:o}){var M,z,F;const{preferences:s,isLoading:S,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),v=s.tz||((M=s.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,p=s.weekStart??((z=s.inherited)==null?void 0:z.weekStart)??1,[m,n]=l.useState(!s.userHasPrefs),[j,c]=l.useState(!1),[x,w]=l.useState(v),[k,b]=l.useState(p),[T,N]=l.useState(!1),C=l.useMemo(()=>G(),[]),I=l.useMemo(()=>C.filter(t=>!A.some(R=>R.value===t)),[C]),P=l.useMemo(()=>U(x),[x]),D=s.inherited?U(s.inherited.tz):"UTC",u=s.inherited?X(s.inherited.weekStart):"Monday",i=V((F=s.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!r){c(!1);return}j||(s.userHasPrefs!==void 0&&n(!s.userHasPrefs),w(v),b(p))},[r,j,s.userHasPrefs,v,p]);const h=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await g()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again."):await y({tz:x,weekStart:k})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{o(!1)},L=d||f,O=L||S;return e.jsx(a.Dialog,{open:r,onOpenChange:o,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),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:()=>{c(!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 ",i," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[D,", Week starts ",u]})]})]}),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),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:N,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:[P,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:A.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),w(t.value),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===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:I.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),w(t),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===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(k),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:H.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:L,children:"Cancel"}),e.jsx(a.Button,{onClick:h,disabled:O,children:L?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const E=6,B=1,_=20;function Z(r){return Number.isNaN(r)?E:Math.min(_,Math.max(B,r))}function J({open:r,onOpenChange:o,dashboard:s,onApply:S,disabled:d=!1}){const[f,y]=l.useState(!1),[g,v]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),v((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??E)))},[r,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const j=l.useMemo(()=>Z(Number.parseInt(p||`${E}`,10)),[p]),c=()=>{S({enabled:f,position:g,maxItems:j}),o(!1)};return e.jsx(a.Dialog,{open:r,onOpenChange:o,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:f,disabled:d,onCheckedChange:y})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:g,disabled:d,onValueChange:x=>v(x),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:B,max:_,disabled:d,value:p,onChange:x=>m(x.target.value),onBlur:()=>m(String(j))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),d&&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:()=>o(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:c,disabled:d,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as ce } from "react/jsx-runtime";
|
|
2
2
|
import de, { useState as f, useCallback as j, useEffect as K, useMemo as F } from "react";
|
|
3
|
-
import { b as ue, e as q, f as Y, g as Q, h as ee, i as ae, R, c as k, j as $, L as y, P as me, k as he, B as E, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as V, r as G, s as X, t as ye, v as re, w as we, x as P, S as xe, y as Ne, z as Ce, A as ke, E as Te, F as Z, I as Ie } from "./index-
|
|
3
|
+
import { b as ue, e as q, f as Y, g as Q, h as ee, i as ae, R, c as k, j as $, L as y, P as me, k as he, B as E, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as V, r as G, s as X, t as ye, v as re, w as we, x as P, S as xe, y as Ne, z as Ce, A as ke, E as Te, F as Z, I as Ie } from "./index-s-nTyy5G.js";
|
|
4
4
|
function Pe(s = {}) {
|
|
5
5
|
var I, D, M, L;
|
|
6
6
|
const { authToken: i, tokenProps: r } = ue(), S = s.enabled ?? !0, o = (i == null ? void 0 : i.accessToken) ?? null, h = (r == null ? void 0 : r.apiServiceUrl) ?? null, [N, w] = f(!1), [g, v] = f(!1), [u, n] = f(!1), [x, c] = f(null), [p, C] = f(null), A = p || {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as be } from "react/jsx-runtime";
|
|
2
|
-
import { bL as Le, e6 as fo, x as xt, M as ge, U as F, e7 as gn, e8 as go, L as _, y as ae, z as ne, A as se, E as re, F as z, ab as Je, B as H, cp as St, e9 as Kn, ea as Kl, eb as Gl, ec as Ul, ed as Hl, ee as Gn, a5 as Mt, X as rt, ef as Ks, cc as Un, e as Oa, f as Fa, g as Ra, h as La, i as un, bY as yt, bV as pt, bS as ft, bT as it, bU as ot, eg as tl, eh as Jl, ei as Ql, v as Os, ej as Pa, cL as Ha, c as ee, c7 as vt, ek as Yl, el as ps, cx as Wl, em as xo, en as bo, eo as vo, ep as cn, eq as yo, er as Xl, es as No, dn as Zl, u as Re, et as Co, eu as ei, ev as wo, ew as Gs, ex as So, ey as Ut, cv as Ea, cy as Ja, cz as Qa, ez as Fs, cB as Ya, cC as ht, eA as Va, eB as To, eC as Rs, eD as On, b as ua, af as ti, e5 as dn, eE as Us, eF as ko, eG as Io, eH as ai, eI as ni, eJ as si, dF as Hs, dD as Do, I as Ye, P as Tt, eK as Eo, l as kt, eL as Ao, w as ra, eM as Mo, eN as Oo, H as Fo, eO as Ro, bM as Wa, bN as ma, bO as ha, bP as xn, bQ as Kt, bR as Aa, eP as Ls, eQ as la, eR as bt, eS as ia, eT as Lo, eU as Vn, eV as Bn, eW as _n, eX as Js, dl as Ba, eY as bn, eZ as Po, R as vn, e_ as Hn, e$ as Xa, cM as Qs, f0 as ri, j as Zt, db as Vo, ci as Bt, cj as $t, f1 as Bo, ck as qt, cX as Ys, d8 as Ws, N as li, f2 as Xs, f3 as _o, f4 as ii, f5 as oi, f6 as jt, d_ as fs, f7 as $o, f8 as qo, f9 as zo, fa as ci, aw as di, fb as ui, fc as jo, fd as Ko, fe as Go, ff as Jn, fg as Uo, fh as Ho, fi as al, fj as Jo, Y as Qn, a3 as Zs, fk as Qo, fl as er, dq as Yo, fm as nl, a6 as ct, fn as Wo, dM as tr, dN as ar, dO as sa, dP as Fn, fo as Xo, d$ as Zo, fp as mi, fq as ec, fr as tc, d1 as Yn, c$ as mt, fs as ac, ft as nc, fu as sl, fv as sc, k as Ot, dk as mn, dr as Wn, cG as _t, fw as Jt, fx as oa, fy as ca, fz as ea, fA as _a, fB as rc, b1 as lc, fC as ic, fD as oc, fE as cc, fF as dc, d7 as Ma, fG as uc, fH as hi, fI as mc, fJ as hc, fK as pc, fL as pi, dG as rl, c2 as fc, c8 as Gt, dh as gc, fM as xc, fN as bc, fO as vc, fP as ll, fQ as yc, fR as Nc, fS as Cc, fT as wc, ae as Sc, fU as Tc, fV as fi, fW as kc, fX as Ic, fY as Dc, fZ as Ec, f_ as Ac, f$ as Mc, g0 as Ps, g1 as Oc, g2 as Fc, g3 as Rc, g4 as Vs, g5 as Lc, g6 as Pc, g7 as Vc, g8 as Bc, g9 as _c, ga as gi, cA as nr, dc as $c, cD as qc, gb as xi, gc as hn, gd as $n, ge as zc, gf as $a, gg as Be, gh as _e, gi as $e, gj as jc, gk as Kc, gl as Gc, gm as Uc, gn as Qt, go as En, gp as il, gq as Hc, dm as bi, S as Ge, gr as Jc, gs as Qc, gt as Yc, gu as Wc, gv as Xc, gw as Zc, m as qa, n as za, o as ja, p as Ka, q as Ga, r as Ua, gx as ed, gy as td, gz as ol, gA as ad, s as pa, gB as nd, gC as gs, gD as cl, gE as sd, gF as At, gG as rd, gH as ld, gI as id, gJ as od, gK as cd, gL as xs, gM as vi, gN as dd, gO as ud, gP as md, gQ as qn, gR as hd, gS as pd, gT as sr, gU as rr, gV as yi, gW as fd, c_ as Ni, gX as Ci, gY as Xn, gZ as gd, e4 as xd, g_ as tt, bf as bd, g$ as vd, h0 as yd, bb as dl, h1 as ul, h2 as Nd, h3 as Cd, h4 as wd, h5 as Sd, h6 as Td, h7 as kd, h8 as Id, h9 as Dd, ha as Ed, hb as Ad, hc as Md, hd as Od, he as Fd, hf as Rd, hg as wi, hh as Ld, hi as Pd, hj as Vd, hk as Bd, hl as _d, hm as $d, hn as qd, ho as zd, hp as jd, hq as Kd, hr as Gd, hs as Ud, ht as Si, hu as Hd, hv as lr, hw as Zn, hx as Ti, hy as ki, hz as Jd, hA as Qd, hB as Yd, hC as es, hD as bs, hE as Wd, hF as Xd, hG as Zd, hH as eu, hI as tu, hJ as ml, hK as da, hL as au, hM as Ii, aZ as nu, hN as hl, d3 as pl, hO as su, hP as ru, hQ as lu, hR as Rn, hS as iu, hT as ir, hU as Ln, hV as ou, hW as cu, hX as zn, hY as du, C as uu, hZ as mu, h_ as hu, h$ as pu, i0 as pn, i1 as Yt, i2 as Bs, i3 as _s, i4 as fn, i5 as Di, aX as fu, i6 as gu, i7 as vs, i8 as xu, i9 as ys, ia as bu, ib as fl, ic as gl, id as vu, ie as yu, ig as Nu, ih as Cu, ii as wu, ij as Su, ik as Tu, il as ts, cI as as, im as ns, io as xl, ip as Ei, dV as Ns, iq as ku, ir as Iu, is as Du, Z as Eu } from "./index-
|
|
2
|
+
import { bL as Le, e6 as fo, x as xt, M as ge, U as F, e7 as gn, e8 as go, L as _, y as ae, z as ne, A as se, E as re, F as z, ab as Je, B as H, cp as St, e9 as Kn, ea as Kl, eb as Gl, ec as Ul, ed as Hl, ee as Gn, a5 as Mt, X as rt, ef as Ks, cc as Un, e as Oa, f as Fa, g as Ra, h as La, i as un, bY as yt, bV as pt, bS as ft, bT as it, bU as ot, eg as tl, eh as Jl, ei as Ql, v as Os, ej as Pa, cL as Ha, c as ee, c7 as vt, ek as Yl, el as ps, cx as Wl, em as xo, en as bo, eo as vo, ep as cn, eq as yo, er as Xl, es as No, dn as Zl, u as Re, et as Co, eu as ei, ev as wo, ew as Gs, ex as So, ey as Ut, cv as Ea, cy as Ja, cz as Qa, ez as Fs, cB as Ya, cC as ht, eA as Va, eB as To, eC as Rs, eD as On, b as ua, af as ti, e5 as dn, eE as Us, eF as ko, eG as Io, eH as ai, eI as ni, eJ as si, dF as Hs, dD as Do, I as Ye, P as Tt, eK as Eo, l as kt, eL as Ao, w as ra, eM as Mo, eN as Oo, H as Fo, eO as Ro, bM as Wa, bN as ma, bO as ha, bP as xn, bQ as Kt, bR as Aa, eP as Ls, eQ as la, eR as bt, eS as ia, eT as Lo, eU as Vn, eV as Bn, eW as _n, eX as Js, dl as Ba, eY as bn, eZ as Po, R as vn, e_ as Hn, e$ as Xa, cM as Qs, f0 as ri, j as Zt, db as Vo, ci as Bt, cj as $t, f1 as Bo, ck as qt, cX as Ys, d8 as Ws, N as li, f2 as Xs, f3 as _o, f4 as ii, f5 as oi, f6 as jt, d_ as fs, f7 as $o, f8 as qo, f9 as zo, fa as ci, aw as di, fb as ui, fc as jo, fd as Ko, fe as Go, ff as Jn, fg as Uo, fh as Ho, fi as al, fj as Jo, Y as Qn, a3 as Zs, fk as Qo, fl as er, dq as Yo, fm as nl, a6 as ct, fn as Wo, dM as tr, dN as ar, dO as sa, dP as Fn, fo as Xo, d$ as Zo, fp as mi, fq as ec, fr as tc, d1 as Yn, c$ as mt, fs as ac, ft as nc, fu as sl, fv as sc, k as Ot, dk as mn, dr as Wn, cG as _t, fw as Jt, fx as oa, fy as ca, fz as ea, fA as _a, fB as rc, b1 as lc, fC as ic, fD as oc, fE as cc, fF as dc, d7 as Ma, fG as uc, fH as hi, fI as mc, fJ as hc, fK as pc, fL as pi, dG as rl, c2 as fc, c8 as Gt, dh as gc, fM as xc, fN as bc, fO as vc, fP as ll, fQ as yc, fR as Nc, fS as Cc, fT as wc, ae as Sc, fU as Tc, fV as fi, fW as kc, fX as Ic, fY as Dc, fZ as Ec, f_ as Ac, f$ as Mc, g0 as Ps, g1 as Oc, g2 as Fc, g3 as Rc, g4 as Vs, g5 as Lc, g6 as Pc, g7 as Vc, g8 as Bc, g9 as _c, ga as gi, cA as nr, dc as $c, cD as qc, gb as xi, gc as hn, gd as $n, ge as zc, gf as $a, gg as Be, gh as _e, gi as $e, gj as jc, gk as Kc, gl as Gc, gm as Uc, gn as Qt, go as En, gp as il, gq as Hc, dm as bi, S as Ge, gr as Jc, gs as Qc, gt as Yc, gu as Wc, gv as Xc, gw as Zc, m as qa, n as za, o as ja, p as Ka, q as Ga, r as Ua, gx as ed, gy as td, gz as ol, gA as ad, s as pa, gB as nd, gC as gs, gD as cl, gE as sd, gF as At, gG as rd, gH as ld, gI as id, gJ as od, gK as cd, gL as xs, gM as vi, gN as dd, gO as ud, gP as md, gQ as qn, gR as hd, gS as pd, gT as sr, gU as rr, gV as yi, gW as fd, c_ as Ni, gX as Ci, gY as Xn, gZ as gd, e4 as xd, g_ as tt, bf as bd, g$ as vd, h0 as yd, bb as dl, h1 as ul, h2 as Nd, h3 as Cd, h4 as wd, h5 as Sd, h6 as Td, h7 as kd, h8 as Id, h9 as Dd, ha as Ed, hb as Ad, hc as Md, hd as Od, he as Fd, hf as Rd, hg as wi, hh as Ld, hi as Pd, hj as Vd, hk as Bd, hl as _d, hm as $d, hn as qd, ho as zd, hp as jd, hq as Kd, hr as Gd, hs as Ud, ht as Si, hu as Hd, hv as lr, hw as Zn, hx as Ti, hy as ki, hz as Jd, hA as Qd, hB as Yd, hC as es, hD as bs, hE as Wd, hF as Xd, hG as Zd, hH as eu, hI as tu, hJ as ml, hK as da, hL as au, hM as Ii, aZ as nu, hN as hl, d3 as pl, hO as su, hP as ru, hQ as lu, hR as Rn, hS as iu, hT as ir, hU as Ln, hV as ou, hW as cu, hX as zn, hY as du, C as uu, hZ as mu, h_ as hu, h$ as pu, i0 as pn, i1 as Yt, i2 as Bs, i3 as _s, i4 as fn, i5 as Di, aX as fu, i6 as gu, i7 as vs, i8 as xu, i9 as ys, ia as bu, ib as fl, ic as gl, id as vu, ie as yu, ig as Nu, ih as Cu, ii as wu, ij as Su, ik as Tu, il as ts, cI as as, im as ns, io as xl, ip as Ei, dV as Ns, iq as ku, ir as Iu, is as Du, Z as Eu } from "./index-s-nTyy5G.js";
|
|
3
3
|
import * as $s from "react";
|
|
4
4
|
import qs, { useState as G, useRef as Oe, useEffect as ye, useCallback as ke, useMemo as ce, useContext as or, Suspense as Au } from "react";
|
|
5
|
-
import { C as bl, f as cr, g as Nt, V as Ai, u as Mu, e as Ou } from "./use-create-flow-overlay-state-
|
|
5
|
+
import { C as bl, f as cr, g as Nt, V as Ai, u as Mu, e as Ou } from "./use-create-flow-overlay-state-1P2_etiD.js";
|
|
6
6
|
import { createPortal as Fu } from "react-dom";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-D-8djJiT.js"),N=require("react"),De=require("./use-create-flow-overlay-state-7KAmXHoB.js"),on=require("react-dom");function cn(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const rs=cn(N);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|