react-semaphor 0.1.280 → 0.1.281
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-Cm_n6Dce.js → dashboard-controls-CLd_NTpW.js} +1 -1
- package/dist/chunks/{dashboard-controls-I3SWzXID.js → dashboard-controls-D3R8Z79V.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-DXXJnFns.js → dashboard-filter-controls-button-DLjcoN1G.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-DuifafhB.js → dashboard-filter-controls-button-zj4HH2IS.js} +3 -3
- package/dist/chunks/{dashboard-json-C0_fJrmP.js → dashboard-json-BcdeYcFr.js} +1 -1
- package/dist/chunks/{dashboard-json--iZU90D2.js → dashboard-json-CPyonfsi.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-BzWnRhFU.js → dashboard-summary-settings-dialog-BYQfaQGZ.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DOofgrKU.js → dashboard-summary-settings-dialog-Cpb9FCXf.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CEb2cSMS.js → edit-dashboard-visual-CsTmOttj.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-DEuJScSB.js → edit-dashboard-visual-NyBBQhsY.js} +1 -1
- package/dist/chunks/{index-BzQ2UBDI.js → index-CsX3UmQg.js} +72 -68
- package/dist/chunks/{index-ZpmXTndp.js → index-DvAOngur.js} +2 -2
- package/dist/chunks/{resource-management-panel-DNez0W3b.js → resource-management-panel-BxJ99bHx.js} +2 -2
- package/dist/chunks/{resource-management-panel-DMHJbuqI.js → resource-management-panel-lglhpWpc.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BvBTFIgX.js → use-create-flow-overlay-state-BjV5Q6Lb.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-BdoJfJmU.js → use-create-flow-overlay-state-BrmQZdh2.js} +1 -1
- package/dist/chunks/{use-visual-utils-D4Lp-wat.js → use-visual-utils-C54WwvId.js} +1 -1
- package/dist/chunks/{use-visual-utils-C2syL_qa.js → use-visual-utils-C7wVd3rs.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,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-DvAOngur.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-DLjcoN1G.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-Cpb9FCXf.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-BrmQZdh2.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 k } from "react/jsx-runtime";
|
|
2
|
-
import { bM as de, dn as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dp as ia, N as qa, b as $, e as la, dq 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, dr as we, cI as We, ds as zs, dt as Pa, du as ja, c as Y, dv as za, dw as Bs, cZ as ha, dx as Ks, dy as Qs, dz as Ws, dA as Js, dB as Xs, dC as Ys, H as Me, W as Ae, x as I, dD as Le, dE as Ba, dF as Ka, d6 as Zs, dG as et, w as Z, cH 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, d2 as Xe, cN as Ye, dQ as Ze, ce as Ja, dR as ea, c9 as Xa, dS 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, dT as ns, cz as ot, dU as it, ag as lt, U as Ua, af as De, dV as ct, am as dt, ah as je, dW as ut, dX as mt, dY as ht, aB as pt, dZ as ft, d_ as gt, bT as vt, bU as bt, bV as yt, d$ as Nt, bW as St, cF as xt, at as Dt, e0 as wt, e1 as Ct, dm as Et, e2 as Mt, e3 as At, cC as Lt, a9 as It, cK as kt, e4 as Ot, al as Tt, aa as _t, as as Pt, e5 as Ut } from "./index-
|
|
2
|
+
import { bM as de, dn as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dp as ia, N as qa, b as $, e as la, dq 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, dr as we, cI as We, ds as zs, dt as Pa, du as ja, c as Y, dv as za, dw as Bs, cZ as ha, dx as Ks, dy as Qs, dz as Ws, dA as Js, dB as Xs, dC as Ys, H as Me, W as Ae, x as I, dD as Le, dE as Ba, dF as Ka, d6 as Zs, dG as et, w as Z, cH 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, d2 as Xe, cN as Ye, dQ as Ze, ce as Ja, dR as ea, c9 as Xa, dS 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, dT as ns, cz as ot, dU as it, ag as lt, U as Ua, af as De, dV as ct, am as dt, ah as je, dW as ut, dX as mt, dY as ht, aB as pt, dZ as ft, d_ as gt, bT as vt, bU as bt, bV as yt, d$ as Nt, bW as St, cF as xt, at as Dt, e0 as wt, e1 as Ct, dm as Et, e2 as Mt, e3 as At, cC as Lt, a9 as It, cK as kt, e4 as Ot, al as Tt, aa as _t, as as Pt, e5 as Ut } from "./index-CsX3UmQg.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-zj4HH2IS.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-BYQfaQGZ.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-BjV5Q6Lb.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.453.0 - ISC
|
|
14
14
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const v=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const v=require("react"),e=require("./index-DvAOngur.js"),t=require("react/jsx-runtime"),I=require("./use-create-flow-overlay-state-BrmQZdh2.js"),k=require("./use-visual-utils-C54WwvId.js"),L=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 F, useRef as z, useCallback as V, useEffect as T, useContext as be } from "react";
|
|
2
|
-
import { bM as Z, b as $, aC as U, bJ as _, bF as ee, bG as H, aD as te, bE as Ce, e as ae, f as se, g as re, h as oe, i as ne, L as G, I as we, d6 as ye, v as xe, B as I, w as j, U as R, J as De, u as B, K as Ne, N as X, d7 as Ae, d8 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 Fe, d9 as Te, da as ke, db as Ue, cQ as Me, cR as Ve, cS as Pe, cT as Be, cU as Oe, cV as ze, cW as Re, as as $e, bL as _e, X as He, dc as je, dd as Xe, cw as Ge, bH as W, a8 as Ke, aF as We, P as he, k as me, de as qe, l as pe, df as Je, dg as Qe, dh as Ye, di as Ze, dj as et, dk as fe, dl as q, dm as tt } from "./index-
|
|
2
|
+
import { bM as Z, b as $, aC as U, bJ as _, bF as ee, bG as H, aD as te, bE as Ce, e as ae, f as se, g as re, h as oe, i as ne, L as G, I as we, d6 as ye, v as xe, B as I, w as j, U as R, J as De, u as B, K as Ne, N as X, d7 as Ae, d8 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 Fe, d9 as Te, da as ke, db as Ue, cQ as Me, cR as Ve, cS as Pe, cT as Be, cU as Oe, cV as ze, cW as Re, as as $e, bL as _e, X as He, dc as je, dd as Xe, cw as Ge, bH as W, a8 as Ke, aF as We, P as he, k as me, de as qe, l as pe, df as Je, dg as Qe, dh as Ye, di as Ze, dj as et, dk as fe, dl as q, dm as tt } from "./index-CsX3UmQg.js";
|
|
3
3
|
import { jsx as t, jsxs as s, Fragment as O } from "react/jsx-runtime";
|
|
4
|
-
import { V as at, E as st, a as rt, b as ot, L as nt, c as it, d as lt, C as dt, u as ct, e as ut } from "./use-create-flow-overlay-state-
|
|
5
|
-
import { u as ve } from "./use-visual-utils-
|
|
4
|
+
import { V as at, E as st, a as rt, b as ot, L as nt, c as it, d as lt, C as dt, u as ct, e as ut } from "./use-create-flow-overlay-state-BjV5Q6Lb.js";
|
|
5
|
+
import { u as ve } from "./use-visual-utils-C7wVd3rs.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-CsX3UmQg.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-DvAOngur.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-CsX3UmQg.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-ZpmXTndp.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),v=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[S,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(!(!v||!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,v]);l.useEffect(()=>{v&&b()},[v,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:S,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:v,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),S=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(S),[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(S),b(p))},[r,j,s.userHasPrefs,S,p]);const h=async()=>{if(v){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||v;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:v,disabled:d=!1}){const[f,y]=l.useState(!1),[g,S]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),S((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=()=>{v({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.Switch,{size:"sm",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=>S(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-DvAOngur.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),v=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[S,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(!(!v||!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,v]);l.useEffect(()=>{v&&b()},[v,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:S,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:v,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),S=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(S),[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(S),b(p))},[r,j,s.userHasPrefs,S,p]);const h=async()=>{if(v){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||v;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:v,disabled:d=!1}){const[f,y]=l.useState(!1),[g,S]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),S((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=()=>{v({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.Switch,{size:"sm",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=>S(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,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { bM as Pe, e6 as Fo, x as ut, M as pe, U as F, e7 as ai, e8 as Ro, L as z, y as ee, z as te, A as ae, E as ne, F as j, ac as We, B as J, cr as St, e9 as Hn, ea as ni, eb as si, ec as ri, ed as li, ee as Jn, a6 as Mt, X as nt, ef as Js, ce as Qn, e as pa, f as fa, g as ga, h as xa, i as Va, bZ as Ct, bW as gt, bT as vt, bU as mt, bV as ht, eg as ol, eh as Lo, ei as ii, v as zn, ej as Ba, cN as Qa, c as W, c9 as Nt, ek as oi, el as xs, cz as ci, em as Po, en as Vo, eo as Bo, ep as un, eq as zo, er as di, es as _o, dn as Qs, u as Me, et as $o, eu as ui, ev as qo, ew as Yn, ex as jo, ey as qt, cx as La, cA as Ya, cB as Wa, ez as Vs, cD as Xa, cE as dt, eA as za, eB as Ko, eC as Bs, eD as Rn, b as Ca, ag as mi, e5 as mn, eE as Ys, eF as Go, eG as Uo, eH as hi, eI as pi, eJ as fi, dF as Ws, dD as Ho, I as Ie, P as Tt, eK as Jo, l as kt, eL as Qo, w as la, eM as Yo, eN as Wo, H as Xo, eO as Zo, bN as Za, bO as wa, bP as Sa, bQ as xn, bR as Gt, bS as Pa, eP as zs, eQ as Ht, eR as it, eS as Jt, eT as gi, eU as _n, eV as $n, eW as qn, eX as Xs, dl as _a, eY as xi, eZ as ec, e_ as tc, e$ as ac, C as bi, f0 as nc, f1 as sc, f2 as rc, f3 as lc, f4 as vi, f5 as ic, f6 as bs, f7 as oc, f8 as cl, f9 as cc, fa as dl, fb as Zs, fc as dc, fd as bn, fe as uc, R as vn, ff as Wn, fg as en, cO as er, fh as yi, j as ia, fi as mc, ck as Pt, cl as _t, fj as hc, cm as $t, cZ as tr, d9 as ar, N as Ni, fk as nr, fl as pc, fm as Ci, fn as wi, fo as zt, d_ as vs, fp as fc, fq as gc, fr as xc, fs as Si, ax as Ti, ft as ki, fu as bc, fv as vc, fw as yc, fx as hn, fy as Nc, fz as Cc, fA as ul, fB as wc, Z as Xn, a4 as sr, fC as Sc, fD as rr, dq as Tc, fE as ml, a7 as pt, fF as kc, dM as lr, dN as ir, dO as ma, dP as Ln, fG as Ic, d$ as Dc, fH as Ii, fI as Ac, fJ as Mc, d2 as Zn, fK as Ec, fL as Oc, fM as hl, fN as Fc, k as Et, dk as ba, dr as es, cI as Lt, fO as ea, fP as va, fQ as ya, fR as oa, fS as $a, fT as Rc, fU as Lc, b2 as Pc, fV as Vc, fW as Bc, fX as zc, fY as _c, d8 as ha, fZ as $c, f_ as Di, f$ as qc, g0 as jc, g1 as Kc, g2 as Ai, dG as pl, c4 as Gc, ca as Ut, dh as Uc, g3 as Hc, g4 as Jc, g5 as Qc, g6 as fl, g7 as Yc, g8 as Wc, g9 as Xc, ga as Zc, af as ed, gb as td, gc as Mi, gd as ad, ge as nd, gf as sd, gg as rd, gh as ld, gi as id, gj as _s, gk as od, gl as cd, gm as dd, gn as $s, go as ud, gp as md, gq as hd, gr as pd, gs as gl, gt as fd, gu as xl, gv as bl, db as qs, cQ as gd, gw as xd, cR as bd, cS as vd, cT as yd, cU as Nd, cV as Cd, cW as wd, cX as Sd, gx as tn, gy as Td, S as He, gz as kd, gA as Id, gB as Ei, cC as or, dc as Dd, cF as Ad, gC as Md, gD as Ed, gE as pn, gF as jn, gG as Od, gH as qa, gI as Ke, gJ as Ge, gK as Ue, gL as Fd, gM as Rd, gN as Oi, gO as Fi, gP as aa, gQ as Mn, gR as vl, gS as Ld, dm as Ri, gT as Pd, gU as Vd, gV as Bd, gW as yn, gX as zd, gY as _d, gZ as $d, m as ja, n as Ka, o as Ga, p as Ua, q as Ha, r as Ja, g_ as qd, g$ as jd, h0 as yl, h1 as Kd, s as Ta, h2 as Gd, h3 as ys, h4 as Nl, h5 as Ud, h6 as At, h7 as Hd, h8 as Jd, h9 as Qd, ha as Yd, hb as Wd, hc as Ns, hd as Li, he as Xd, hf as Zd, hg as eu, hh as Kn, hi as tu, hj as au, hk as cr, hl as dr, hm as Pi, hn as nu, d0 as Vi, ho as Bi, hp as zi, hq as su, e4 as ru, hr as et, hs as lu, bg as iu, ht as En, hu as ou, hv as Cl, hw as cu, hx as du, bc as wl, hy as Sl, hz as uu, hA as mu, hB as hu, hC as pu, hD as fu, hE as gu, hF as xu, hG as bu, hH as vu, hI as yu, hJ as Nu, hK as Cu, hL as wu, hM as Su, hN as _i, hO as Tu, hP as ku, hQ as Iu, hR as Du, hS as Au, hT as Mu, hU as Eu, hV as Ou, hW as Fu, hX as Ru, hY as Lu, hZ as $i, h_ as Pu, h$ as ur, i0 as ts, i1 as qi, i2 as Vu, i3 as Bu, i4 as zu, i5 as _u, i6 as $u, i7 as qu, i8 as as, i9 as Cs, ia as ju, ib as Ku, ic as Gu, id as Uu, ie as Hu, ig as Tl, ih as Na, ii as Ju, ij as ji, ik as Ki, il as js, im as Gi, io as kl, d4 as Il, ip as Qu, iq as Yu, ir as Wu, is as Pn, it as Xu, iu as mr, iv as Zu, iw as em, ix as Gn, iy as tm, iz as am, iA as nm, iB as fn, iC as na, iD as Ks, iE as Gs, iF as gn, iG as Ui, aY as sm, iH as rm, iI as ws, iJ as Ss, iK as lm, iL as Ts, iM as im, iN as Dl, iO as Al, iP as om, iQ as cm, iR as dm, iS as um, iT as mm, iU as hm, iV as ns, cK as ss, iW as rs, iX as Ml, iY as Hi, dV as ks, iZ as pm, i_ as fm, i$ as gm, _ as xm } from "./index-
|
|
2
|
+
import { bM as Pe, e6 as Fo, x as ut, M as pe, U as F, e7 as ai, e8 as Ro, L as z, y as ee, z as te, A as ae, E as ne, F as j, ac as We, B as J, cr as St, e9 as Hn, ea as ni, eb as si, ec as ri, ed as li, ee as Jn, a6 as Mt, X as nt, ef as Js, ce as Qn, e as pa, f as fa, g as ga, h as xa, i as Va, bZ as Ct, bW as gt, bT as vt, bU as mt, bV as ht, eg as ol, eh as Lo, ei as ii, v as zn, ej as Ba, cN as Qa, c as W, c9 as Nt, ek as oi, el as xs, cz as ci, em as Po, en as Vo, eo as Bo, ep as un, eq as zo, er as di, es as _o, dn as Qs, u as Me, et as $o, eu as ui, ev as qo, ew as Yn, ex as jo, ey as qt, cx as La, cA as Ya, cB as Wa, ez as Vs, cD as Xa, cE as dt, eA as za, eB as Ko, eC as Bs, eD as Rn, b as Ca, ag as mi, e5 as mn, eE as Ys, eF as Go, eG as Uo, eH as hi, eI as pi, eJ as fi, dF as Ws, dD as Ho, I as Ie, P as Tt, eK as Jo, l as kt, eL as Qo, w as la, eM as Yo, eN as Wo, H as Xo, eO as Zo, bN as Za, bO as wa, bP as Sa, bQ as xn, bR as Gt, bS as Pa, eP as zs, eQ as Ht, eR as it, eS as Jt, eT as gi, eU as _n, eV as $n, eW as qn, eX as Xs, dl as _a, eY as xi, eZ as ec, e_ as tc, e$ as ac, C as bi, f0 as nc, f1 as sc, f2 as rc, f3 as lc, f4 as vi, f5 as ic, f6 as bs, f7 as oc, f8 as cl, f9 as cc, fa as dl, fb as Zs, fc as dc, fd as bn, fe as uc, R as vn, ff as Wn, fg as en, cO as er, fh as yi, j as ia, fi as mc, ck as Pt, cl as _t, fj as hc, cm as $t, cZ as tr, d9 as ar, N as Ni, fk as nr, fl as pc, fm as Ci, fn as wi, fo as zt, d_ as vs, fp as fc, fq as gc, fr as xc, fs as Si, ax as Ti, ft as ki, fu as bc, fv as vc, fw as yc, fx as hn, fy as Nc, fz as Cc, fA as ul, fB as wc, Z as Xn, a4 as sr, fC as Sc, fD as rr, dq as Tc, fE as ml, a7 as pt, fF as kc, dM as lr, dN as ir, dO as ma, dP as Ln, fG as Ic, d$ as Dc, fH as Ii, fI as Ac, fJ as Mc, d2 as Zn, fK as Ec, fL as Oc, fM as hl, fN as Fc, k as Et, dk as ba, dr as es, cI as Lt, fO as ea, fP as va, fQ as ya, fR as oa, fS as $a, fT as Rc, fU as Lc, b2 as Pc, fV as Vc, fW as Bc, fX as zc, fY as _c, d8 as ha, fZ as $c, f_ as Di, f$ as qc, g0 as jc, g1 as Kc, g2 as Ai, dG as pl, c4 as Gc, ca as Ut, dh as Uc, g3 as Hc, g4 as Jc, g5 as Qc, g6 as fl, g7 as Yc, g8 as Wc, g9 as Xc, ga as Zc, af as ed, gb as td, gc as Mi, gd as ad, ge as nd, gf as sd, gg as rd, gh as ld, gi as id, gj as _s, gk as od, gl as cd, gm as dd, gn as $s, go as ud, gp as md, gq as hd, gr as pd, gs as gl, gt as fd, gu as xl, gv as bl, db as qs, cQ as gd, gw as xd, cR as bd, cS as vd, cT as yd, cU as Nd, cV as Cd, cW as wd, cX as Sd, gx as tn, gy as Td, S as He, gz as kd, gA as Id, gB as Ei, cC as or, dc as Dd, cF as Ad, gC as Md, gD as Ed, gE as pn, gF as jn, gG as Od, gH as qa, gI as Ke, gJ as Ge, gK as Ue, gL as Fd, gM as Rd, gN as Oi, gO as Fi, gP as aa, gQ as Mn, gR as vl, gS as Ld, dm as Ri, gT as Pd, gU as Vd, gV as Bd, gW as yn, gX as zd, gY as _d, gZ as $d, m as ja, n as Ka, o as Ga, p as Ua, q as Ha, r as Ja, g_ as qd, g$ as jd, h0 as yl, h1 as Kd, s as Ta, h2 as Gd, h3 as ys, h4 as Nl, h5 as Ud, h6 as At, h7 as Hd, h8 as Jd, h9 as Qd, ha as Yd, hb as Wd, hc as Ns, hd as Li, he as Xd, hf as Zd, hg as eu, hh as Kn, hi as tu, hj as au, hk as cr, hl as dr, hm as Pi, hn as nu, d0 as Vi, ho as Bi, hp as zi, hq as su, e4 as ru, hr as et, hs as lu, bg as iu, ht as En, hu as ou, hv as Cl, hw as cu, hx as du, bc as wl, hy as Sl, hz as uu, hA as mu, hB as hu, hC as pu, hD as fu, hE as gu, hF as xu, hG as bu, hH as vu, hI as yu, hJ as Nu, hK as Cu, hL as wu, hM as Su, hN as _i, hO as Tu, hP as ku, hQ as Iu, hR as Du, hS as Au, hT as Mu, hU as Eu, hV as Ou, hW as Fu, hX as Ru, hY as Lu, hZ as $i, h_ as Pu, h$ as ur, i0 as ts, i1 as qi, i2 as Vu, i3 as Bu, i4 as zu, i5 as _u, i6 as $u, i7 as qu, i8 as as, i9 as Cs, ia as ju, ib as Ku, ic as Gu, id as Uu, ie as Hu, ig as Tl, ih as Na, ii as Ju, ij as ji, ik as Ki, il as js, im as Gi, io as kl, d4 as Il, ip as Qu, iq as Yu, ir as Wu, is as Pn, it as Xu, iu as mr, iv as Zu, iw as em, ix as Gn, iy as tm, iz as am, iA as nm, iB as fn, iC as na, iD as Ks, iE as Gs, iF as gn, iG as Ui, aY as sm, iH as rm, iI as ws, iJ as Ss, iK as lm, iL as Ts, iM as im, iN as Dl, iO as Al, iP as om, iQ as cm, iR as dm, iS as um, iT as mm, iU as hm, iV as ns, cK as ss, iW as rs, iX as Ml, iY as Hi, dV as ks, iZ as pm, i_ as fm, i$ as gm, _ as xm } from "./index-CsX3UmQg.js";
|
|
3
3
|
import * as Vn from "react";
|
|
4
4
|
import ta, { useState as G, useRef as Ee, useEffect as Ce, useCallback as Se, useMemo as ce, useContext as hr, Suspense as bm } from "react";
|
|
5
|
-
import { C as El, f as pr, g as wt, V as Ji, u as vm, e as ym } from "./use-create-flow-overlay-state-
|
|
5
|
+
import { C as El, f as pr, g as wt, V as Ji, u as vm, e as ym } from "./use-create-flow-overlay-state-BjV5Q6Lb.js";
|
|
6
6
|
import { createPortal as Nm } 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-DvAOngur.js"),N=require("react"),Ae=require("./use-create-flow-overlay-state-BrmQZdh2.js"),cn=require("react-dom");function dn(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 Ot=dn(N);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -90136,12 +90136,12 @@ function IM({
|
|
|
90136
90136
|
showLabel: o = !0,
|
|
90137
90137
|
density: a = "default"
|
|
90138
90138
|
}) {
|
|
90139
|
-
var
|
|
90140
|
-
const s = o ? "" : "w-full min-w-0", l = a === "compact", c = l ? "h-8" : "h-9", u = l ? "h-8" : "h-9", f = l ? "gap-0.5" : "gap-1", h = te((
|
|
90139
|
+
var T;
|
|
90140
|
+
const s = o ? "" : "w-full min-w-0", l = a === "compact", c = l ? "h-8" : "h-9", u = l ? "h-8" : "h-9", f = l ? "gap-0.5" : "gap-1", h = "focus:ring-0 focus:ring-offset-0 focus:border-input focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-input", m = te((k) => k.themeStyle), p = (m == null ? void 0 : m.controlInputRadius) ?? (m == null ? void 0 : m.cardBorderRadius) ?? 6, g = oe(() => rHe(e), [e]), b = oe(() => !(t === Pf || e.defaultValue === Pf) || g.some((I) => I.value === Pf) ? g : [eHe, ...g], [g, e.defaultValue, t]), y = n || e.locked === !0, v = !e.requiredAtExecution && !y, x = t != null && (!Array.isArray(t) || t.length > 0), [C, S] = Q(() => Ww(e, t));
|
|
90141
90141
|
Se(() => {
|
|
90142
|
-
|
|
90142
|
+
S(Ww(e, t));
|
|
90143
90143
|
}, [e, t]);
|
|
90144
|
-
const
|
|
90144
|
+
const N = e.helpText || e.label;
|
|
90145
90145
|
if (iHe(e))
|
|
90146
90146
|
return /* @__PURE__ */ w(
|
|
90147
90147
|
"div",
|
|
@@ -90151,11 +90151,11 @@ function IM({
|
|
|
90151
90151
|
s,
|
|
90152
90152
|
i
|
|
90153
90153
|
),
|
|
90154
|
-
title:
|
|
90154
|
+
title: N,
|
|
90155
90155
|
children: [
|
|
90156
90156
|
o ? /* @__PURE__ */ w("div", { className: "flex items-center justify-between gap-2", children: [
|
|
90157
90157
|
/* @__PURE__ */ d(xe, { className: "text-xs font-medium text-muted-foreground", children: e.label }),
|
|
90158
|
-
|
|
90158
|
+
v && x ? /* @__PURE__ */ d(
|
|
90159
90159
|
ae,
|
|
90160
90160
|
{
|
|
90161
90161
|
type: "button",
|
|
@@ -90171,27 +90171,27 @@ function IM({
|
|
|
90171
90171
|
wt,
|
|
90172
90172
|
{
|
|
90173
90173
|
value: typeof t == "string" ? t : void 0,
|
|
90174
|
-
onValueChange: (
|
|
90175
|
-
disabled:
|
|
90174
|
+
onValueChange: (k) => r(k),
|
|
90175
|
+
disabled: y || b.length === 0,
|
|
90176
90176
|
children: [
|
|
90177
90177
|
/* @__PURE__ */ d(
|
|
90178
90178
|
vt,
|
|
90179
90179
|
{
|
|
90180
|
-
className: J(c, "shadow-sm"),
|
|
90181
|
-
style: { borderRadius:
|
|
90180
|
+
className: J(c, h, "shadow-sm"),
|
|
90181
|
+
style: { borderRadius: p },
|
|
90182
90182
|
children: /* @__PURE__ */ d(
|
|
90183
90183
|
St,
|
|
90184
90184
|
{
|
|
90185
|
-
placeholder:
|
|
90185
|
+
placeholder: b.length === 0 ? "No options" : "Select"
|
|
90186
90186
|
}
|
|
90187
90187
|
)
|
|
90188
90188
|
}
|
|
90189
90189
|
),
|
|
90190
|
-
/* @__PURE__ */ d(xt, { children:
|
|
90190
|
+
/* @__PURE__ */ d(xt, { children: b.map((k) => /* @__PURE__ */ d(Oe, { value: k.value, children: k.label }, k.value)) })
|
|
90191
90191
|
]
|
|
90192
90192
|
}
|
|
90193
90193
|
),
|
|
90194
|
-
!o &&
|
|
90194
|
+
!o && v && x ? /* @__PURE__ */ d(
|
|
90195
90195
|
ae,
|
|
90196
90196
|
{
|
|
90197
90197
|
type: "button",
|
|
@@ -90209,7 +90209,7 @@ function IM({
|
|
|
90209
90209
|
}
|
|
90210
90210
|
);
|
|
90211
90211
|
if (e.type === "multi_enum") {
|
|
90212
|
-
const
|
|
90212
|
+
const k = Array.isArray(t) ? t.filter((M) => typeof M == "string") : [], I = k.length === 0 ? "Select" : k.length === 1 ? ((T = b.find((M) => M.value === k[0])) == null ? void 0 : T.label) || k[0] : `${k.length} selected`;
|
|
90213
90213
|
return /* @__PURE__ */ w(
|
|
90214
90214
|
"div",
|
|
90215
90215
|
{
|
|
@@ -90218,11 +90218,11 @@ function IM({
|
|
|
90218
90218
|
s,
|
|
90219
90219
|
i
|
|
90220
90220
|
),
|
|
90221
|
-
title:
|
|
90221
|
+
title: N,
|
|
90222
90222
|
children: [
|
|
90223
90223
|
o ? /* @__PURE__ */ w("div", { className: "flex items-center justify-between gap-2", children: [
|
|
90224
90224
|
/* @__PURE__ */ d(xe, { className: "text-xs font-medium text-muted-foreground", children: e.label }),
|
|
90225
|
-
|
|
90225
|
+
v && x ? /* @__PURE__ */ d(
|
|
90226
90226
|
ae,
|
|
90227
90227
|
{
|
|
90228
90228
|
type: "button",
|
|
@@ -90242,11 +90242,12 @@ function IM({
|
|
|
90242
90242
|
variant: "outline",
|
|
90243
90243
|
className: J(
|
|
90244
90244
|
c,
|
|
90245
|
+
h,
|
|
90245
90246
|
"w-full justify-between shadow-sm"
|
|
90246
90247
|
),
|
|
90247
|
-
style: { borderRadius:
|
|
90248
|
-
disabled:
|
|
90249
|
-
children: /* @__PURE__ */ d("span", { className: "truncate", children:
|
|
90248
|
+
style: { borderRadius: p },
|
|
90249
|
+
disabled: y || b.length === 0,
|
|
90250
|
+
children: /* @__PURE__ */ d("span", { className: "truncate", children: I })
|
|
90250
90251
|
}
|
|
90251
90252
|
) }),
|
|
90252
90253
|
/* @__PURE__ */ d(ci, { align: "start", className: "w-64", children: /* @__PURE__ */ w("div", { className: "space-y-3", children: [
|
|
@@ -90254,8 +90255,8 @@ function IM({
|
|
|
90254
90255
|
/* @__PURE__ */ d("p", { className: "text-sm font-medium", children: e.label }),
|
|
90255
90256
|
e.helpText && /* @__PURE__ */ d("p", { className: "text-xs text-muted-foreground", children: e.helpText })
|
|
90256
90257
|
] }),
|
|
90257
|
-
/* @__PURE__ */ d("div", { className: "space-y-2", children:
|
|
90258
|
-
const
|
|
90258
|
+
/* @__PURE__ */ d("div", { className: "space-y-2", children: b.map((M) => {
|
|
90259
|
+
const O = k.includes(M.value);
|
|
90259
90260
|
return /* @__PURE__ */ w(
|
|
90260
90261
|
"label",
|
|
90261
90262
|
{
|
|
@@ -90264,33 +90265,33 @@ function IM({
|
|
|
90264
90265
|
/* @__PURE__ */ d(
|
|
90265
90266
|
cn,
|
|
90266
90267
|
{
|
|
90267
|
-
checked:
|
|
90268
|
-
disabled:
|
|
90269
|
-
onCheckedChange: (
|
|
90270
|
-
if (
|
|
90271
|
-
r([...
|
|
90268
|
+
checked: O,
|
|
90269
|
+
disabled: y || O && k.length === 1 && e.requiredAtExecution,
|
|
90270
|
+
onCheckedChange: (A) => {
|
|
90271
|
+
if (A) {
|
|
90272
|
+
r([...k, M.value]);
|
|
90272
90273
|
return;
|
|
90273
90274
|
}
|
|
90274
|
-
|
|
90275
|
+
k.length === 1 && e.requiredAtExecution || r(
|
|
90275
90276
|
(() => {
|
|
90276
|
-
const
|
|
90277
|
-
(
|
|
90277
|
+
const R = k.filter(
|
|
90278
|
+
($) => $ !== M.value
|
|
90278
90279
|
);
|
|
90279
|
-
return
|
|
90280
|
+
return R.length === 0 && !e.requiredAtExecution ? void 0 : R;
|
|
90280
90281
|
})()
|
|
90281
90282
|
);
|
|
90282
90283
|
}
|
|
90283
90284
|
}
|
|
90284
90285
|
),
|
|
90285
|
-
/* @__PURE__ */ d("span", { children:
|
|
90286
|
+
/* @__PURE__ */ d("span", { children: M.label })
|
|
90286
90287
|
]
|
|
90287
90288
|
},
|
|
90288
|
-
|
|
90289
|
+
M.value
|
|
90289
90290
|
);
|
|
90290
90291
|
}) })
|
|
90291
90292
|
] }) })
|
|
90292
90293
|
] }),
|
|
90293
|
-
!o &&
|
|
90294
|
+
!o && v && x ? /* @__PURE__ */ d(
|
|
90294
90295
|
ae,
|
|
90295
90296
|
{
|
|
90296
90297
|
type: "button",
|
|
@@ -90317,8 +90318,8 @@ function IM({
|
|
|
90317
90318
|
l ? "py-1.5" : "py-2",
|
|
90318
90319
|
i
|
|
90319
90320
|
),
|
|
90320
|
-
style: { borderRadius:
|
|
90321
|
-
title:
|
|
90321
|
+
style: { borderRadius: p },
|
|
90322
|
+
title: N,
|
|
90322
90323
|
children: [
|
|
90323
90324
|
o ? /* @__PURE__ */ w("div", { className: "min-w-0", children: [
|
|
90324
90325
|
/* @__PURE__ */ d(xe, { className: "text-xs font-medium text-muted-foreground", children: e.label }),
|
|
@@ -90331,8 +90332,9 @@ function IM({
|
|
|
90331
90332
|
type: "button",
|
|
90332
90333
|
size: "sm",
|
|
90333
90334
|
variant: "outline",
|
|
90334
|
-
|
|
90335
|
-
|
|
90335
|
+
className: h,
|
|
90336
|
+
style: { borderRadius: p },
|
|
90337
|
+
disabled: y,
|
|
90336
90338
|
onClick: () => r(!0),
|
|
90337
90339
|
children: "True"
|
|
90338
90340
|
}
|
|
@@ -90343,8 +90345,9 @@ function IM({
|
|
|
90343
90345
|
type: "button",
|
|
90344
90346
|
size: "sm",
|
|
90345
90347
|
variant: "outline",
|
|
90346
|
-
|
|
90347
|
-
|
|
90348
|
+
className: h,
|
|
90349
|
+
style: { borderRadius: p },
|
|
90350
|
+
disabled: y,
|
|
90348
90351
|
onClick: () => r(!1),
|
|
90349
90352
|
children: "False"
|
|
90350
90353
|
}
|
|
@@ -90361,15 +90364,15 @@ function IM({
|
|
|
90361
90364
|
s,
|
|
90362
90365
|
i
|
|
90363
90366
|
),
|
|
90364
|
-
style: { borderRadius:
|
|
90365
|
-
title:
|
|
90367
|
+
style: { borderRadius: p },
|
|
90368
|
+
title: N,
|
|
90366
90369
|
children: [
|
|
90367
90370
|
o ? /* @__PURE__ */ w("div", { className: "min-w-0", children: [
|
|
90368
90371
|
/* @__PURE__ */ d(xe, { className: "text-xs font-medium text-muted-foreground", children: e.label }),
|
|
90369
90372
|
e.helpText && /* @__PURE__ */ d("p", { className: "truncate text-[11px] text-muted-foreground", children: e.helpText })
|
|
90370
90373
|
] }) : null,
|
|
90371
90374
|
/* @__PURE__ */ w("div", { className: "flex items-center gap-2", children: [
|
|
90372
|
-
|
|
90375
|
+
v && x ? /* @__PURE__ */ d(
|
|
90373
90376
|
ae,
|
|
90374
90377
|
{
|
|
90375
90378
|
type: "button",
|
|
@@ -90382,35 +90385,36 @@ function IM({
|
|
|
90382
90385
|
/* @__PURE__ */ d(
|
|
90383
90386
|
jp,
|
|
90384
90387
|
{
|
|
90388
|
+
className: "focus-visible:ring-0",
|
|
90385
90389
|
checked: !!t,
|
|
90386
|
-
disabled:
|
|
90387
|
-
onCheckedChange: (
|
|
90390
|
+
disabled: y,
|
|
90391
|
+
onCheckedChange: (k) => r(k)
|
|
90388
90392
|
}
|
|
90389
90393
|
)
|
|
90390
90394
|
] })
|
|
90391
90395
|
]
|
|
90392
90396
|
}
|
|
90393
90397
|
);
|
|
90394
|
-
const
|
|
90395
|
-
const
|
|
90396
|
-
if (
|
|
90398
|
+
const E = e.type === "number" ? "number" : e.type === "date" ? "date" : "text", _ = () => {
|
|
90399
|
+
const k = C.trim();
|
|
90400
|
+
if (k.length === 0) {
|
|
90397
90401
|
if (!e.requiredAtExecution) {
|
|
90398
|
-
r(void 0),
|
|
90402
|
+
r(void 0), S("");
|
|
90399
90403
|
return;
|
|
90400
90404
|
}
|
|
90401
|
-
|
|
90405
|
+
S(Ww(e, t));
|
|
90402
90406
|
return;
|
|
90403
90407
|
}
|
|
90404
90408
|
if (e.type === "number") {
|
|
90405
|
-
const
|
|
90406
|
-
if (!Number.isNaN(
|
|
90407
|
-
r(
|
|
90409
|
+
const I = Number(k);
|
|
90410
|
+
if (!Number.isNaN(I)) {
|
|
90411
|
+
r(I);
|
|
90408
90412
|
return;
|
|
90409
90413
|
}
|
|
90410
|
-
|
|
90414
|
+
S(Ww(e, t));
|
|
90411
90415
|
return;
|
|
90412
90416
|
}
|
|
90413
|
-
r(
|
|
90417
|
+
r(k);
|
|
90414
90418
|
};
|
|
90415
90419
|
return /* @__PURE__ */ w(
|
|
90416
90420
|
"div",
|
|
@@ -90420,21 +90424,21 @@ function IM({
|
|
|
90420
90424
|
s,
|
|
90421
90425
|
i
|
|
90422
90426
|
),
|
|
90423
|
-
title:
|
|
90427
|
+
title: N,
|
|
90424
90428
|
children: [
|
|
90425
90429
|
o && /* @__PURE__ */ d(xe, { className: "text-xs font-medium text-muted-foreground", children: e.label }),
|
|
90426
90430
|
/* @__PURE__ */ d(
|
|
90427
90431
|
mt,
|
|
90428
90432
|
{
|
|
90429
|
-
type:
|
|
90430
|
-
value:
|
|
90431
|
-
disabled:
|
|
90432
|
-
className: J(c, "shadow-sm"),
|
|
90433
|
-
style: { borderRadius:
|
|
90434
|
-
onChange: (
|
|
90435
|
-
onBlur:
|
|
90436
|
-
onKeyDown: (
|
|
90437
|
-
|
|
90433
|
+
type: E,
|
|
90434
|
+
value: C,
|
|
90435
|
+
disabled: y,
|
|
90436
|
+
className: J(c, h, "shadow-sm"),
|
|
90437
|
+
style: { borderRadius: p },
|
|
90438
|
+
onChange: (k) => S(k.target.value),
|
|
90439
|
+
onBlur: _,
|
|
90440
|
+
onKeyDown: (k) => {
|
|
90441
|
+
k.key === "Enter" && _();
|
|
90438
90442
|
}
|
|
90439
90443
|
}
|
|
90440
90444
|
)
|
|
@@ -134020,10 +134024,10 @@ function Sft() {
|
|
|
134020
134024
|
}
|
|
134021
134025
|
);
|
|
134022
134026
|
}
|
|
134023
|
-
const Nft = YS(() => import("./dashboard-controls-
|
|
134024
|
-
() => import("./edit-dashboard-visual-
|
|
134025
|
-
), kft = YS(() => import("./dashboard-json-
|
|
134026
|
-
() => import("./resource-management-panel-
|
|
134027
|
+
const Nft = YS(() => import("./dashboard-controls-D3R8Z79V.js")), Eft = YS(
|
|
134028
|
+
() => import("./edit-dashboard-visual-CsTmOttj.js")
|
|
134029
|
+
), kft = YS(() => import("./dashboard-json-BcdeYcFr.js")), _ft = YS(
|
|
134030
|
+
() => import("./resource-management-panel-BxJ99bHx.js").then(
|
|
134027
134031
|
(e) => ({ default: e.ResourceManagementPanel })
|
|
134028
134032
|
)
|
|
134029
134033
|
);
|