react-semaphor 0.1.271 → 0.1.272
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-Dfgvs7VL.js → dashboard-controls-Bl3PXbNo.js} +4 -4
- package/dist/chunks/{dashboard-controls-CXi0Kc8w.js → dashboard-controls-RqYQXB7F.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-EN4T7uuF.js → dashboard-filter-controls-button-CLZ97tHc.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-YHsKcBkN.js → dashboard-filter-controls-button-q76y47OT.js} +3 -3
- package/dist/chunks/{dashboard-json-CeiZb0oM.js → dashboard-json-B8A0Cwq6.js} +1 -1
- package/dist/chunks/{dashboard-json-BgtFUcgD.js → dashboard-json-Drj9MTye.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-CoEmX_jV.js → dashboard-summary-settings-dialog-DQ-81F_X.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-CuZFi7eP.js → dashboard-summary-settings-dialog-qMlktBUK.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-D8AIf9tr.js → edit-dashboard-visual-B71wSc9i.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CGYJdPQ8.js → edit-dashboard-visual-CTNjwWr8.js} +2 -2
- package/dist/chunks/{index-Dx42zDJJ.js → index-D67kPLXL.js} +109 -109
- package/dist/chunks/{index-B9iVxfst.js → index-DGjF1QQB.js} +2196 -2193
- package/dist/chunks/{resource-management-panel-Cqi9uzkw.js → resource-management-panel-CA0GdW8-.js} +1 -1
- package/dist/chunks/{resource-management-panel-CDPB0Wn6.js → resource-management-panel-Cpkg5Uou.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-4H0O4LVk.js → use-create-flow-overlay-state-DNpKra13.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-B5mMajCH.js → use-create-flow-overlay-state-DQfh9_9Y.js} +1 -1
- package/dist/chunks/{use-visual-utils-S6wmOnYK.js → use-visual-utils-Bub1Ne3z.js} +1 -1
- package/dist/chunks/{use-visual-utils-iRJXiZv1.js → use-visual-utils-DZ_QYVCF.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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { bM as de, dq as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dr as ia, N as qa, b as $, e as la, ds as Hs, cr as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a7 as K, dt as we, cI as We, du as zs, dv as Pa, dw as ja, c as Y, dx as za, dy as Bs, cZ as ha, dz as Ks, dA as Qs, dB as Ws, dC as Js, dD as Xs, dE as Ys, H as Me, W as Ae, x as I, dF as Le, dG as Ba, dH as Ka, d7 as Zs, dI as et, w as Z, cH as J, dJ as at, dK as st, dL as Je, dM as tt, dN as rt, dO as Qa, dP as Wa, dQ as Ce, dR as Ee, d3 as Xe, cN as Ye, dS as Ze, ce as Ja, dT as ea, c9 as Xa, dU as nt, cQ as Ya, cR as Za, cS as es, cT as as, cU as ss, cV as ts, cW as rs, cX as aa, dV as ns, cz as ot, dW as it, ag as lt, U as Ua, af as De, dX as ct, am as dt, ah as je, dY as ut, dZ as mt, d_ as ht, aB as pt, d$ as ft, e0 as gt, bT as vt, bU as bt, bV as yt, e1 as Nt, bW as St, cF as xt, at as Dt, e2 as wt, e3 as Ct, dp as Et, e4 as Mt, e5 as At, cC as Lt, a9 as It, cK as kt, e6 as Ot, al as Tt, aa as _t, as as Pt, e7 as Ut } from "./index-
|
|
2
|
+
import { bM as de, dq as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dr as ia, N as qa, b as $, e as la, ds as Hs, cr as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a7 as K, dt as we, cI as We, du as zs, dv as Pa, dw as ja, c as Y, dx as za, dy as Bs, cZ as ha, dz as Ks, dA as Qs, dB as Ws, dC as Js, dD as Xs, dE as Ys, H as Me, W as Ae, x as I, dF as Le, dG as Ba, dH as Ka, d7 as Zs, dI as et, w as Z, cH as J, dJ as at, dK as st, dL as Je, dM as tt, dN as rt, dO as Qa, dP as Wa, dQ as Ce, dR as Ee, d3 as Xe, cN as Ye, dS as Ze, ce as Ja, dT as ea, c9 as Xa, dU as nt, cQ as Ya, cR as Za, cS as es, cT as as, cU as ss, cV as ts, cW as rs, cX as aa, dV as ns, cz as ot, dW as it, ag as lt, U as Ua, af as De, dX as ct, am as dt, ah as je, dY as ut, dZ as mt, d_ as ht, aB as pt, d$ as ft, e0 as gt, bT as vt, bU as bt, bV as yt, e1 as Nt, bW as St, cF as xt, at as Dt, e2 as wt, e3 as Ct, dp as Et, e4 as Mt, e5 as At, cC as Lt, a9 as It, cK as kt, e6 as Ot, al as Tt, aa as _t, as as Pt, e7 as Ut } from "./index-DGjF1QQB.js";
|
|
3
3
|
import * as M 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-q76y47OT.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-DQ-81F_X.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-DNpKra13.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.453.0 - ISC
|
|
14
14
|
*
|
|
@@ -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-D67kPLXL.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-CLZ97tHc.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-qMlktBUK.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-DQfh9_9Y.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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const g=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const g=require("react"),e=require("./index-D67kPLXL.js"),t=require("react/jsx-runtime"),I=require("./use-create-flow-overlay-state-DQfh9_9Y.js"),M=require("./use-visual-utils-DZ_QYVCF.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 ge, { useState as T, useRef as z, useCallback as V, useEffect as F, useContext as be } from "react";
|
|
2
|
-
import { bM as Z, b as $, aC as U, bJ as j, bF as ee, bG as _, aD as te, bE as we, e as ae, f as se, g as re, h as oe, i as ne, L as G, d1 as Ce, d7 as xe, v as ye, B as I, w as H, U as R, J as Ne, u as B, K as De, N as X, d8 as Ae, d9 as K, x as P, b_ as ie, af as Se, c as L, cA as le, cB as de, a6 as ce, cD as ue, cE as M, s as Ee, cI as Ie, cr as Le, M as Te, da as Fe, db as ke, dc as Ue, cQ as Me, cR as Ve, cS as Pe, dd as Be, cT as Oe, cU as ze, cV as Re, cW as $e, cX as je, as as _e, bL as He, X as Xe, de as Ge, df as Ke, cw as We, bH as W, a8 as qe, aF as Je, P as me, k as he, dg as Qe, l as pe, dh as Ye, di as Ze, dj as et, dk as tt, dl as at, dm as fe, dn as q, dp as st } from "./index-
|
|
2
|
+
import { bM as Z, b as $, aC as U, bJ as j, bF as ee, bG as _, aD as te, bE as we, e as ae, f as se, g as re, h as oe, i as ne, L as G, d1 as Ce, d7 as xe, v as ye, B as I, w as H, U as R, J as Ne, u as B, K as De, N as X, d8 as Ae, d9 as K, x as P, b_ as ie, af as Se, c as L, cA as le, cB as de, a6 as ce, cD as ue, cE as M, s as Ee, cI as Ie, cr as Le, M as Te, da as Fe, db as ke, dc as Ue, cQ as Me, cR as Ve, cS as Pe, dd as Be, cT as Oe, cU as ze, cV as Re, cW as $e, cX as je, as as _e, bL as He, X as Xe, de as Ge, df as Ke, cw as We, bH as W, a8 as qe, aF as Je, P as me, k as he, dg as Qe, l as pe, dh as Ye, di as Ze, dj as et, dk as tt, dl as at, dm as fe, dn as q, dp as st } from "./index-DGjF1QQB.js";
|
|
3
3
|
import { jsx as t, jsxs as s, Fragment as O } from "react/jsx-runtime";
|
|
4
|
-
import { V as rt, E as ot, a as nt, b as it, L as lt, c as dt, d as ct, C as ut, u as mt, e as ht } from "./use-create-flow-overlay-state-
|
|
5
|
-
import { u as ve } from "./use-visual-utils-
|
|
4
|
+
import { V as rt, E as ot, a as nt, b as it, L as lt, c as dt, d as ct, C as ut, u as mt, e as ht } from "./use-create-flow-overlay-state-DNpKra13.js";
|
|
5
|
+
import { u as ve } from "./use-visual-utils-Bub1Ne3z.js";
|
|
6
6
|
import { k as J } from "./date-formatter-vkCj9Ct-.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -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-DGjF1QQB.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-D67kPLXL.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,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-DGjF1QQB.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 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-Dx42zDJJ.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-D67kPLXL.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,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-D67kPLXL.js"),y=require("react"),Ae=require("./use-create-flow-overlay-state-DQfh9_9Y.js"),un=require("react-dom");function mn(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 ls=mn(y);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { bM as Ve, e8 as Io, x as ot, M as be, U as R, e9 as vn, ea as Do, L as z, y as te, z as ae, A as ne, E as se, F as q, ac as Ye, B as H, cr as It, eb as Qn, ec as Xl, ed as Zl, ee as ei, ef as ti, eg as Yn, a6 as Rt, X as st, eh as Qs, ce as Wn, e as ma, f as ha, g as pa, h as fa, i as za, bZ as wt, bW as bt, bT as vt, bU as ct, bV as dt, ei as ll, ej as Ao, ek as ai, v as $n, el as _a, cN as Wa, c as W, c9 as Ct, em as ni, en as vs, cz as si, eo as Mo, ep as Eo, eq as Oo, er as hn, es as Ro, et as ri, eu as Fo, dq as Ys, u as Le, ev as Lo, ew as li, ex as Po, ey as Xn, ez as Vo, eA as Kt, cx as Va, cA as Xa, cB as Za, eB as Vs, cD as en, cE as it, eC as $a, eD as Bo, eE as Bs, eF as Pn, b as Na, ag as ii, e7 as pn, eG as Ws, eH as zo, eI as _o, eJ as oi, eK as ci, eL as di, dH as Xs, dF as $o, I as Ze, P as Dt, eM as qo, l as At, eN as jo, w as ga, eO as Ko, eP as Go, H as Uo, eQ as Ho, bN as tn, bO as Ca, bP as wa, bQ as yn, bR as Ht, bS as Ba, eR as zs, eS as Qt, eT as lt, eU as Yt, eV as ui, eW as qn, eX as jn, eY as Kn, eZ as Zs, dn as qa, e_ as Nn, e$ as Jo, R as Cn, f0 as Zn, f1 as an, cO as er, f2 as mi, j as sa, dd as Qo, ck as _t, cl as qt, f3 as Yo, cm as jt, cZ as tr, da as ar, N as hi, f4 as nr, f5 as Wo, f6 as pi, f7 as fi, f8 as $t, e0 as ys, f9 as Xo, fa as Zo, fb as ec, fc as gi, ax as xi, fd as bi, fe as tc, ff as ac, fg as nc, fh as fn, fi as sc, fj as rc, fk as il, fl as lc, Z as es, a4 as sr, fm as ic, fn as rr, ds as oc, fo as ol, a7 as ut, fp as cc, dO as lr, dP as ir, dQ as da, dR as Vn, fq as dc, e1 as uc, fr as vi, fs as mc, ft as hc, d3 as ts, d1 as ft, fu as pc, fv as fc, fw as cl, fx as gc, k as Ft, dm as xa, dt as as, cI as zt, fy as Zt, fz as ba, fA as va, fB as ra, fC as ja, fD as xc, b2 as bc, fE as vc, fF as yc, fG as Nc, fH as Cc, d9 as ua, fI as wc, fJ as yi, fK as Sc, fL as Tc, fM as kc, fN as Ni, dI as dl, c4 as Ic, ca as Jt, dj as Dc, fO as Ac, fP as Mc, fQ as Ec, fR as ul, fS as Oc, fT as Rc, fU as Fc, fV as Lc, af as Pc, fW as Vc, fX as Ci, fY as Bc, fZ as zc, f_ as _c, f$ as $c, g0 as qc, g1 as jc, g2 as _s, g3 as Kc, g4 as Gc, g5 as Uc, g6 as $s, g7 as Hc, g8 as Jc, g9 as Qc, ga as Yc, gb as ml, gc as Wc, gd as hl, ge as pl, dc as qs, cQ as Xc, gf as Zc, cR as ed, cS as td, cT as ad, cU as nd, cV as sd, cW as rd, cX as ld, gg as nn, gh as id, gi as od, gj as cd, gk as dd, gl as wi, cC as or, de as ud, cF as md, gm as Si, gn, go as Gn, gp as hd, gq as Ka, gr as qe, gs as je, gt as Ke, gu as pd, gv as fd, gw as Ti, gx as ki, gy as ea, gz as On, gA as fl, gB as gd, dp as Ii, S as Qe, gC as xd, gD as bd, gE as vd, gF as yd, gG as Nd, gH as Cd, m as Ga, n as Ua, o as Ha, p as Ja, q as Qa, r as Ya, gI as wd, gJ as Sd, gK as gl, gL as Td, s as Sa, gM as kd, gN as Ns, gO as xl, gP as Id, gQ as Ot, gR as Dd, gS as Ad, gT as Md, gU as Ed, gV as Od, gW as Cs, gX as Di, gY as Rd, gZ as Fd, g_ as Ld, g$ as Un, h0 as Pd, h1 as Vd, h2 as cr, h3 as dr, h4 as Ai, h5 as Bd, d0 as Mi, h6 as Ei, h7 as ns, h8 as zd, e6 as _d, h9 as at, ha as $d, bg as qd, hb as Rn, hc as jd, hd as bl, he as Kd, hf as Gd, bc as vl, hg as yl, hh as Ud, hi as Hd, hj as Jd, hk as Qd, hl as Yd, hm as Wd, hn as Xd, ho as Zd, hp as eu, hq as tu, hr as au, hs as nu, ht as su, hu as ru, hv as Oi, hw as lu, hx as iu, hy as ou, hz as cu, hA as du, hB as uu, hC as mu, hD as hu, hE as pu, hF as fu, hG as gu, hH as xu, hI as Ri, hJ as bu, hK as ur, hL as ss, hM as Fi, hN as Li, hO as vu, hP as yu, hQ as Nu, hR as rs, hS as ws, hT as Cu, hU as wu, hV as Su, hW as Tu, hX as ku, hY as Nl, hZ as ya, h_ as Iu, h$ as Pi, a_ as Du, i0 as Cl, d5 as wl, i1 as Au, i2 as Mu, i3 as Eu, i4 as Bn, i5 as Ou, i6 as mr, i7 as zn, i8 as Ru, i9 as Fu, ia as Hn, ib as Lu, C as Pu, ic as Vu, id as Bu, ie as zu, ig as xn, ih as ta, ii as js, ij as Ks, ik as bn, il as Vi, aY as _u, im as $u, io as Ss, ip as qu, iq as Ts, ir as ju, is as Sl, it as Tl, iu as Ku, iv as Gu, iw as Uu, ix as Hu, iy as Ju, iz as Qu, iA as Yu, iB as ls, cK as is, iC as os, iD as kl, iE as Bi, dX as ks, iF as Wu, iG as Xu, iH as Zu, _ as em } from "./index-
|
|
2
|
+
import { bM as Ve, e8 as Io, x as ot, M as be, U as R, e9 as vn, ea as Do, L as z, y as te, z as ae, A as ne, E as se, F as q, ac as Ye, B as H, cr as It, eb as Qn, ec as Xl, ed as Zl, ee as ei, ef as ti, eg as Yn, a6 as Rt, X as st, eh as Qs, ce as Wn, e as ma, f as ha, g as pa, h as fa, i as za, bZ as wt, bW as bt, bT as vt, bU as ct, bV as dt, ei as ll, ej as Ao, ek as ai, v as $n, el as _a, cN as Wa, c as W, c9 as Ct, em as ni, en as vs, cz as si, eo as Mo, ep as Eo, eq as Oo, er as hn, es as Ro, et as ri, eu as Fo, dq as Ys, u as Le, ev as Lo, ew as li, ex as Po, ey as Xn, ez as Vo, eA as Kt, cx as Va, cA as Xa, cB as Za, eB as Vs, cD as en, cE as it, eC as $a, eD as Bo, eE as Bs, eF as Pn, b as Na, ag as ii, e7 as pn, eG as Ws, eH as zo, eI as _o, eJ as oi, eK as ci, eL as di, dH as Xs, dF as $o, I as Ze, P as Dt, eM as qo, l as At, eN as jo, w as ga, eO as Ko, eP as Go, H as Uo, eQ as Ho, bN as tn, bO as Ca, bP as wa, bQ as yn, bR as Ht, bS as Ba, eR as zs, eS as Qt, eT as lt, eU as Yt, eV as ui, eW as qn, eX as jn, eY as Kn, eZ as Zs, dn as qa, e_ as Nn, e$ as Jo, R as Cn, f0 as Zn, f1 as an, cO as er, f2 as mi, j as sa, dd as Qo, ck as _t, cl as qt, f3 as Yo, cm as jt, cZ as tr, da as ar, N as hi, f4 as nr, f5 as Wo, f6 as pi, f7 as fi, f8 as $t, e0 as ys, f9 as Xo, fa as Zo, fb as ec, fc as gi, ax as xi, fd as bi, fe as tc, ff as ac, fg as nc, fh as fn, fi as sc, fj as rc, fk as il, fl as lc, Z as es, a4 as sr, fm as ic, fn as rr, ds as oc, fo as ol, a7 as ut, fp as cc, dO as lr, dP as ir, dQ as da, dR as Vn, fq as dc, e1 as uc, fr as vi, fs as mc, ft as hc, d3 as ts, d1 as ft, fu as pc, fv as fc, fw as cl, fx as gc, k as Ft, dm as xa, dt as as, cI as zt, fy as Zt, fz as ba, fA as va, fB as ra, fC as ja, fD as xc, b2 as bc, fE as vc, fF as yc, fG as Nc, fH as Cc, d9 as ua, fI as wc, fJ as yi, fK as Sc, fL as Tc, fM as kc, fN as Ni, dI as dl, c4 as Ic, ca as Jt, dj as Dc, fO as Ac, fP as Mc, fQ as Ec, fR as ul, fS as Oc, fT as Rc, fU as Fc, fV as Lc, af as Pc, fW as Vc, fX as Ci, fY as Bc, fZ as zc, f_ as _c, f$ as $c, g0 as qc, g1 as jc, g2 as _s, g3 as Kc, g4 as Gc, g5 as Uc, g6 as $s, g7 as Hc, g8 as Jc, g9 as Qc, ga as Yc, gb as ml, gc as Wc, gd as hl, ge as pl, dc as qs, cQ as Xc, gf as Zc, cR as ed, cS as td, cT as ad, cU as nd, cV as sd, cW as rd, cX as ld, gg as nn, gh as id, gi as od, gj as cd, gk as dd, gl as wi, cC as or, de as ud, cF as md, gm as Si, gn, go as Gn, gp as hd, gq as Ka, gr as qe, gs as je, gt as Ke, gu as pd, gv as fd, gw as Ti, gx as ki, gy as ea, gz as On, gA as fl, gB as gd, dp as Ii, S as Qe, gC as xd, gD as bd, gE as vd, gF as yd, gG as Nd, gH as Cd, m as Ga, n as Ua, o as Ha, p as Ja, q as Qa, r as Ya, gI as wd, gJ as Sd, gK as gl, gL as Td, s as Sa, gM as kd, gN as Ns, gO as xl, gP as Id, gQ as Ot, gR as Dd, gS as Ad, gT as Md, gU as Ed, gV as Od, gW as Cs, gX as Di, gY as Rd, gZ as Fd, g_ as Ld, g$ as Un, h0 as Pd, h1 as Vd, h2 as cr, h3 as dr, h4 as Ai, h5 as Bd, d0 as Mi, h6 as Ei, h7 as ns, h8 as zd, e6 as _d, h9 as at, ha as $d, bg as qd, hb as Rn, hc as jd, hd as bl, he as Kd, hf as Gd, bc as vl, hg as yl, hh as Ud, hi as Hd, hj as Jd, hk as Qd, hl as Yd, hm as Wd, hn as Xd, ho as Zd, hp as eu, hq as tu, hr as au, hs as nu, ht as su, hu as ru, hv as Oi, hw as lu, hx as iu, hy as ou, hz as cu, hA as du, hB as uu, hC as mu, hD as hu, hE as pu, hF as fu, hG as gu, hH as xu, hI as Ri, hJ as bu, hK as ur, hL as ss, hM as Fi, hN as Li, hO as vu, hP as yu, hQ as Nu, hR as rs, hS as ws, hT as Cu, hU as wu, hV as Su, hW as Tu, hX as ku, hY as Nl, hZ as ya, h_ as Iu, h$ as Pi, a_ as Du, i0 as Cl, d5 as wl, i1 as Au, i2 as Mu, i3 as Eu, i4 as Bn, i5 as Ou, i6 as mr, i7 as zn, i8 as Ru, i9 as Fu, ia as Hn, ib as Lu, C as Pu, ic as Vu, id as Bu, ie as zu, ig as xn, ih as ta, ii as js, ij as Ks, ik as bn, il as Vi, aY as _u, im as $u, io as Ss, ip as qu, iq as Ts, ir as ju, is as Sl, it as Tl, iu as Ku, iv as Gu, iw as Uu, ix as Hu, iy as Ju, iz as Qu, iA as Yu, iB as ls, cK as is, iC as os, iD as kl, iE as Bi, dX as ks, iF as Wu, iG as Xu, iH as Zu, _ as em } from "./index-DGjF1QQB.js";
|
|
3
3
|
import * as Gs from "react";
|
|
4
4
|
import Us, { useState as G, useRef as Ee, useEffect as Ce, useCallback as Ie, useMemo as ce, useContext as hr, Suspense as tm } from "react";
|
|
5
|
-
import { C as Il, f as pr, g as St, V as zi, u as am, e as nm } from "./use-create-flow-overlay-state-
|
|
5
|
+
import { C as Il, f as pr, g as St, V as zi, u as am, e as nm } from "./use-create-flow-overlay-state-DNpKra13.js";
|
|
6
6
|
import { createPortal as sm } from "react-dom";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|