react-semaphor 0.1.308 → 0.1.309
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-DviftQE7.js → dashboard-controls-C_vjMmt2.js} +1 -1
- package/dist/chunks/{dashboard-controls-DTxSUWvy.js → dashboard-controls-Cp41403T.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-DHKfgPah.js → dashboard-filter-controls-button-DFKZjkD4.js} +3 -3
- package/dist/chunks/{dashboard-filter-controls-button-D0nrJ7wl.js → dashboard-filter-controls-button-tfjDO4D4.js} +1 -1
- package/dist/chunks/{dashboard-json-DZmsUV5n.js → dashboard-json-Cc8S_uIr.js} +1 -1
- package/dist/chunks/{dashboard-json-DYzZ0G6T.js → dashboard-json-QR7WNDuO.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-Cc3yKCu4.js → dashboard-summary-settings-dialog-CxXxzyRP.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-QbUTp92u.js → dashboard-summary-settings-dialog-qH6FOt7O.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BS3LKMJe.js → edit-dashboard-visual-J7cHkCD6.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CmgculGv.js → edit-dashboard-visual-_BZQa5yI.js} +3 -3
- package/dist/chunks/{index-C0zD3JgK.js → index-AerZtbg0.js} +71 -71
- package/dist/chunks/{index-BxYIELMe.js → index-CSgoL0P9.js} +7441 -7438
- package/dist/chunks/{resource-management-panel-8cHoj8SV.js → resource-management-panel-CcFT7lpL.js} +2 -2
- package/dist/chunks/{resource-management-panel-B4QM3fZ_.js → resource-management-panel-DbYkAk1I.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CeWstFjy.js → use-create-flow-overlay-state-CczjbVZY.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-Bmb471Fp.js → use-create-flow-overlay-state-DImkf832.js} +1 -1
- package/dist/chunks/{use-visual-utils-DflfgX9g.js → use-visual-utils-BdHwrbtr.js} +1 -1
- package/dist/chunks/{use-visual-utils-CmfDomt0.js → use-visual-utils-DczvWVbd.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/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"),o=require("./switch-BG4RWnrq.js"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-BG4RWnrq.js"),s=require("./index-AerZtbg0.js"),b=require("react");require("./index-DRlMUglg.js");require("react-dom");const G=require("./dashboard-filter-controls-button-tfjDO4D4.js"),it=require("./index-D7KJindZ.js"),gs=require("./dashboard-summary-settings-dialog-CxXxzyRP.js"),lt=require("./use-debounced-dirty-check-XHSwAefL.js"),Fe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),bs=require("./use-create-flow-overlay-state-DImkf832.js"),vs=require("./save-BVVnWGeb.js"),ct=require("./palette-CteErylX.js"),dt=require("./braces-BHDm9arh.js");function ut(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const I=ut(b);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
|
2
2
|
import { c as j, u as w, B as L, aI as Nt, m as wt, L as dt, I as ue, a as Y, aJ as Re, aK as da, aL as ua, E as ls, f as X, aM as ds, aN as us, aO as ut, T as ma, q as ha, r as _e, t as Ue, s as mt, aP as pa, aQ as ms, n as ta, z as hs, A as ps, D as fs, F as gs, K as vs, aR as bs } from "./switch-BZn7R_Cp.js";
|
|
3
|
-
import { c4 as ys, u as K, b as Ge, c5 as xs, bk as ht, c as $e, d as Ve, e as qe, f as St, n as Ns, c6 as de, bx as Te, c7 as ws, c8 as aa, c9 as fa, ca as ga, cb as Ss, bN as Dt, cc as Ds, cd as Cs, ce as Es, cf as Is, cg as Ms, ch as Ls, q as ze, M as Be, o as M, bU as As, ci as ks, cj as Os, bR as pt, ck as ft, bw as Ct, bb as va, b9 as ba, cl as Ps, bE as ya, bF as xa, bG as Na, bH as wa, bI as Sa, bJ as Da, bK as Ca, bL as gt, cm as Ts, cn as _s, co as Us, bo as Fs, cp as Rs, cq as Gs, W as $s, V as Oe, cr as Vs, a0 as qs, X as nt, cs as zs, ct as Bs, cu as Hs, ac as js, cv as Ks, I as rt, cw as Qs, cx as Ws, cy as Js, c3 as Ys, bp as Xs, bq as Zs, br as en, bs as tn, bt as $, bY as an, K as sn, bz as nn, cz as rn, bu as sa, cA as on, cB as cn, cC as ln, $ as dn, L as un, cD as mn, H as vt } from "./index-
|
|
3
|
+
import { c4 as ys, u as K, b as Ge, c5 as xs, bk as ht, c as $e, d as Ve, e as qe, f as St, n as Ns, c6 as de, bx as Te, c7 as ws, c8 as aa, c9 as fa, ca as ga, cb as Ss, bN as Dt, cc as Ds, cd as Cs, ce as Es, cf as Is, cg as Ms, ch as Ls, q as ze, M as Be, o as M, bU as As, ci as ks, cj as Os, bR as pt, ck as ft, bw as Ct, bb as va, b9 as ba, cl as Ps, bE as ya, bF as xa, bG as Na, bH as wa, bI as Sa, bJ as Da, bK as Ca, bL as gt, cm as Ts, cn as _s, co as Us, bo as Fs, cp as Rs, cq as Gs, W as $s, V as Oe, cr as Vs, a0 as qs, X as nt, cs as zs, ct as Bs, cu as Hs, ac as js, cv as Ks, I as rt, cw as Qs, cx as Ws, cy as Js, c3 as Ys, bp as Xs, bq as Zs, br as en, bs as tn, bt as $, bY as an, K as sn, bz as nn, cz as rn, bu as sa, cA as on, cB as cn, cC as ln, $ as dn, L as un, cD as mn, H as vt } from "./index-CSgoL0P9.js";
|
|
4
4
|
import * as A from "react";
|
|
5
5
|
import Ea, { useState as N, useMemo as F, useCallback as Fe, useEffect as ot } from "react";
|
|
6
6
|
import "./index-CJdxSyQq.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { b as hn, u as pn, A as fn, V as gn, c as vn, D as bn, N as yn, U as xn } from "./dashboard-filter-controls-button-
|
|
8
|
+
import { b as hn, u as pn, A as fn, V as gn, c as vn, D as bn, N as yn, U as xn } from "./dashboard-filter-controls-button-DFKZjkD4.js";
|
|
9
9
|
import { d as Nn } from "./index-DFOb_6HB.js";
|
|
10
|
-
import { C as wn, D as Sn } from "./dashboard-summary-settings-dialog-
|
|
10
|
+
import { C as wn, D as Sn } from "./dashboard-summary-settings-dialog-qH6FOt7O.js";
|
|
11
11
|
import { u as Dn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
12
12
|
import { s as it } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
13
|
-
import { u as Cn, e as En } from "./use-create-flow-overlay-state-
|
|
13
|
+
import { u as Cn, e as En } from "./use-create-flow-overlay-state-CczjbVZY.js";
|
|
14
14
|
import { S as na } from "./save-B1-nDZwS.js";
|
|
15
15
|
import { P as In } from "./palette-CNKSAIrt.js";
|
|
16
16
|
import { B as Mn } from "./braces-DEq8EJtw.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { c as le, L as Z, I as Se, B as I, f as W, n as j, u as B, m as q, aF as ee, af as de, G as ce, e as Ae, l as Ie, a as H, p as K, X as Fe, P as ue, b as me, d as he, aG as Le, aH as Te } from "./switch-BZn7R_Cp.js";
|
|
3
|
-
import { b as pe, c as fe, d as ve, e as ge, f as be, bU as ke, n as Pe, s as Ue, t as Ve, b7 as xe, bV as Me, o as P, b8 as G, V as Be, bp as ye, bq as we, bs as Ce, bt as z, bx as Oe, bk as ze, bW as Re, bX as _e, bE as $e, bF as He, bG as je, bH as Xe, bI as Ge, bJ as We, bK as qe, u as Q, ad as R, aY as Y, aU as De, aV as J, ae as Ne, aT as Ke, a_ as Qe, bY as Ye, bZ as Je, bm as Ze, aW as te, J as et, ag as tt, b_ as at, b$ as st, c0 as rt, c1 as ot, c2 as ae, c3 as nt } from "./index-
|
|
4
|
-
import { V as it, E as se, a as re, b as lt, c as dt, L as ct, d as ut, C as mt, u as ht, e as pt } from "./use-create-flow-overlay-state-
|
|
3
|
+
import { b as pe, c as fe, d as ve, e as ge, f as be, bU as ke, n as Pe, s as Ue, t as Ve, b7 as xe, bV as Me, o as P, b8 as G, V as Be, bp as ye, bq as we, bs as Ce, bt as z, bx as Oe, bk as ze, bW as Re, bX as _e, bE as $e, bF as He, bG as je, bH as Xe, bI as Ge, bJ as We, bK as qe, u as Q, ad as R, aY as Y, aU as De, aV as J, ae as Ne, aT as Ke, a_ as Qe, bY as Ye, bZ as Je, bm as Ze, aW as te, J as et, ag as tt, b_ as at, b$ as st, c0 as rt, c1 as ot, c2 as ae, c3 as nt } from "./index-CSgoL0P9.js";
|
|
4
|
+
import { V as it, E as se, a as re, b as lt, c as dt, L as ct, d as ut, C as mt, u as ht, e as pt } from "./use-create-flow-overlay-state-CczjbVZY.js";
|
|
5
5
|
import ft, { useState as T, useContext as vt, useRef as X, useCallback as $, useEffect as O } from "react";
|
|
6
|
-
import { u as Ee } from "./use-visual-utils-
|
|
6
|
+
import { u as Ee } from "./use-visual-utils-DczvWVbd.js";
|
|
7
7
|
import { k as oe } from "./date-formatter-DyIOb6uC.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("./switch-BG4RWnrq.js"),t=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("./switch-BG4RWnrq.js"),t=require("./index-AerZtbg0.js"),F=require("./use-create-flow-overlay-state-DImkf832.js"),g=require("react"),R=require("./use-visual-utils-BdHwrbtr.js"),U=require("./date-formatter-D9Bvw5Qk.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useState as b, useRef as f, useEffect as S } from "react";
|
|
3
3
|
import { u as o, a as N, B as p, X as D, C as J } from "./switch-BZn7R_Cp.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-CSgoL0P9.js";
|
|
5
5
|
import "./index-CJdxSyQq.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
function C() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-BG4RWnrq.js");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-BG4RWnrq.js");require("./index-AerZtbg0.js");require("./index-DRlMUglg.js");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),a=require("./index-C0zD3JgK.js"),s=require("./switch-BG4RWnrq.js"),q=require("./chevrons-up-down-DDEY9beZ.js");function X(n={}){var k,P,A,D;const{authToken:c,tokenProps:t}=a.useSemaphorContext(),v=n.enabled??!0,u=(c==null?void 0:c.accessToken)??null,f=(t==null?void 0:t.apiServiceUrl)??null,[N,j]=o.useState(!1),[S,b]=o.useState(!1),[h,l]=o.useState(!1),[y,d]=o.useState(null),[p,w]=o.useState(null),T=p||{tz:((P=(k=t==null?void 0:t.params)==null?void 0:k.calendarContext)==null?void 0:P.tz)||null,weekStart:((D=(A=t==null?void 0:t.params)==null?void 0:A.calendarContext)==null?void 0:D.weekStart)??null},g=o.useCallback(async()=>{if(!(!v||!u||!f)){j(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to fetch preferences")}const i=await m.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(m){const i=m instanceof Error?m.message:"Unknown error";d(i)}finally{j(!1)}}},[u,f,v]);o.useEffect(()=>{v&&g()},[v,g]);const I=o.useCallback(async m=>{if(!u||!f)return d("Not authenticated"),!1;b(!0),d(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`},body:JSON.stringify(m)});if(!i.ok){const x=await i.json().catch(()=>({}));throw new Error(x.error||"Failed to update preferences")}return await g(),!0}catch(i){const x=i instanceof Error?i.message:"Unknown error";return d(x),!1}finally{b(!1)}},[u,f,g]),C=o.useCallback(async()=>{if(!u||!f)return d("Not authenticated"),!1;l(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to clear preferences")}const i=await m.text();if(i)try{const x=JSON.parse(i);return w({tz:x.tz,weekStart:x.weekStart,source:x.source,isInherited:x.isInherited??!0,userHasPrefs:!1,inherited:x.inherited}),!0}catch{}return await g(),!0}catch(m){const i=m instanceof Error?m.message:"Unknown error";return d(i),!1}finally{l(!1)}},[u,f,g]);return{preferences:T,isLoading:N,isSaving:S,isClearing:h,error:y,updatePreferences:I,clearPreferences:C,refetch:g}}const z=[{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"}],$=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],B="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function Z(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return z.map(n=>n.value)}function J(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function _(n){const c=z.find(t=>t.value===n);return c?c.label:n}function K(n){const c=$.find(t=>t.value===n);return c?c.label:String(n)}function Y({open:n,onOpenChange:c}){var M,U,F;const{preferences:t,isLoading:v,isSaving:u,isClearing:f,updatePreferences:N,clearPreferences:j}=X({enabled:n}),S=t.tz||((M=t.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=t.weekStart??((U=t.inherited)==null?void 0:U.weekStart)??1,[h,l]=o.useState(!t.userHasPrefs),[y,d]=o.useState(!1),[p,w]=o.useState(S),[T,g]=o.useState(b),[I,C]=o.useState(!1),k=o.useMemo(()=>Z(),[]),P=o.useMemo(()=>k.filter(r=>!z.some(V=>V.value===r)),[k]),A=o.useMemo(()=>_(p),[p]),D=t.inherited?_(t.inherited.tz):"UTC",m=t.inherited?K(t.inherited.weekStart):"Monday",i=J((F=t.inherited)==null?void 0:F.source);o.useEffect(()=>{if(!n){d(!1);return}y||(t.userHasPrefs!==void 0&&l(!t.userHasPrefs),w(S),g(b))},[n,y,t.userHasPrefs,S,b]);const x=async()=>{if(v){a.ue.error("Preferences are still loading. Please try again.");return}h?await j()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again."):await N({tz:p,weekStart:T})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again.")},G=()=>{c(!1)},L=u||f,W=L||v;return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(a.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(a.RadioGroup,{value:h?"defaults":"custom",onValueChange:r=>{d(!0),l(r==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{d(!0),l(!0)},children:[e.jsx(a.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",i," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[D,", week starts ",m]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{d(!0),l(!1)},children:[e.jsx(a.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:s.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{className:B,children:"Timezone"}),e.jsxs(s.Popover,{open:I,onOpenChange:C,modal:!0,children:[e.jsx(s.PopoverTrigger,{asChild:!0,children:e.jsxs(s.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":I,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:A}),e.jsx(q.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(s.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:z.map(r=>e.jsxs(a.CommandItem,{value:`${r.value} ${r.label}`,onSelect:()=>{d(!0),w(r.value),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:r.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:r.value})]},r.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All timezones",children:P.map(r=>e.jsxs(a.CommandItem,{value:r,onSelect:()=>{d(!0),w(r),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r?"opacity-100":"opacity-0")}),r]},r))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{className:B,children:"Week starts on"}),e.jsx(a.RadioGroup,{value:String(T),onValueChange:r=>{d(!0),g(Number(r))},className:"flex gap-4",disabled:h,children:$.map(r=>e.jsxs("label",{htmlFor:`week-start-${r.value}`,className:s.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(a.RadioGroupItem,{value:String(r.value),id:`week-start-${r.value}`,disabled:h}),r.label]},r.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:G,disabled:L,children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:x,disabled:W,children:L?e.jsxs(e.Fragment,{children:[e.jsx(s.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}const E=6,O=1,R=20,H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function Q(n){return Number.isNaN(n)?E:Math.min(R,Math.max(O,n))}function ee({open:n,onOpenChange:c,dashboard:t,onApply:v,disabled:u=!1}){const[f,N]=o.useState(!1),[j,S]=o.useState("top"),[b,h]=o.useState(String(E)),l=t.summary;o.useEffect(()=>{n&&(N((l==null?void 0:l.enabled)===!0),S((l==null?void 0:l.position)==="bottom"?"bottom":"top"),h(String((l==null?void 0:l.maxItems)??E)))},[n,l==null?void 0:l.enabled,l==null?void 0:l.position,l==null?void 0:l.maxItems]);const y=o.useMemo(()=>Q(Number.parseInt(b||`${E}`,10)),[b]),d=()=>{v({enabled:f,position:j,maxItems:y}),c(!1)};return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[420px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Summary Settings"}),e.jsx(a.DialogDescription,{className:"text-[13px] leading-5",children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-enabled",className:"text-[13px]",children:"Enable dashboard summary"}),e.jsx(s.Switch,{size:"xs",id:"dashboard-summary-enabled",checked:f,disabled:u,onCheckedChange:N})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-position",className:H,children:"Position"}),e.jsxs(s.Select,{value:j,disabled:u,onValueChange:p=>S(p),children:[e.jsx(s.SelectTrigger,{id:"dashboard-summary-position",size:"xs",children:e.jsx(s.SelectValue,{placeholder:"Select position"})}),e.jsxs(s.SelectContent,{children:[e.jsx(s.SelectItem,{value:"top",children:"Top"}),e.jsx(s.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-max-items",className:H,children:"Max items"}),e.jsx(s.Input,{size:"xs",id:"dashboard-summary-max-items",type:"number",min:O,max:R,disabled:u,value:b,onChange:p=>h(p.target.value),onBlur:()=>h(String(y))}),e.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),u&&e.jsx("p",{className:"text-[12px] text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:()=>c(!1),children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:d,disabled:u,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=Y;exports.DashboardSummarySettingsDialog=ee;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),a=require("./index-AerZtbg0.js"),s=require("./switch-BG4RWnrq.js"),q=require("./chevrons-up-down-DDEY9beZ.js");function X(n={}){var k,P,A,D;const{authToken:c,tokenProps:t}=a.useSemaphorContext(),v=n.enabled??!0,u=(c==null?void 0:c.accessToken)??null,f=(t==null?void 0:t.apiServiceUrl)??null,[N,j]=o.useState(!1),[S,b]=o.useState(!1),[h,l]=o.useState(!1),[y,d]=o.useState(null),[p,w]=o.useState(null),T=p||{tz:((P=(k=t==null?void 0:t.params)==null?void 0:k.calendarContext)==null?void 0:P.tz)||null,weekStart:((D=(A=t==null?void 0:t.params)==null?void 0:A.calendarContext)==null?void 0:D.weekStart)??null},g=o.useCallback(async()=>{if(!(!v||!u||!f)){j(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to fetch preferences")}const i=await m.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(m){const i=m instanceof Error?m.message:"Unknown error";d(i)}finally{j(!1)}}},[u,f,v]);o.useEffect(()=>{v&&g()},[v,g]);const I=o.useCallback(async m=>{if(!u||!f)return d("Not authenticated"),!1;b(!0),d(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`},body:JSON.stringify(m)});if(!i.ok){const x=await i.json().catch(()=>({}));throw new Error(x.error||"Failed to update preferences")}return await g(),!0}catch(i){const x=i instanceof Error?i.message:"Unknown error";return d(x),!1}finally{b(!1)}},[u,f,g]),C=o.useCallback(async()=>{if(!u||!f)return d("Not authenticated"),!1;l(!0),d(null);try{const m=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`}});if(!m.ok){const x=await m.json().catch(()=>({}));throw new Error(x.error||"Failed to clear preferences")}const i=await m.text();if(i)try{const x=JSON.parse(i);return w({tz:x.tz,weekStart:x.weekStart,source:x.source,isInherited:x.isInherited??!0,userHasPrefs:!1,inherited:x.inherited}),!0}catch{}return await g(),!0}catch(m){const i=m instanceof Error?m.message:"Unknown error";return d(i),!1}finally{l(!1)}},[u,f,g]);return{preferences:T,isLoading:N,isSaving:S,isClearing:h,error:y,updatePreferences:I,clearPreferences:C,refetch:g}}const z=[{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"}],$=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],B="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function Z(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return z.map(n=>n.value)}function J(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function _(n){const c=z.find(t=>t.value===n);return c?c.label:n}function K(n){const c=$.find(t=>t.value===n);return c?c.label:String(n)}function Y({open:n,onOpenChange:c}){var M,U,F;const{preferences:t,isLoading:v,isSaving:u,isClearing:f,updatePreferences:N,clearPreferences:j}=X({enabled:n}),S=t.tz||((M=t.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=t.weekStart??((U=t.inherited)==null?void 0:U.weekStart)??1,[h,l]=o.useState(!t.userHasPrefs),[y,d]=o.useState(!1),[p,w]=o.useState(S),[T,g]=o.useState(b),[I,C]=o.useState(!1),k=o.useMemo(()=>Z(),[]),P=o.useMemo(()=>k.filter(r=>!z.some(V=>V.value===r)),[k]),A=o.useMemo(()=>_(p),[p]),D=t.inherited?_(t.inherited.tz):"UTC",m=t.inherited?K(t.inherited.weekStart):"Monday",i=J((F=t.inherited)==null?void 0:F.source);o.useEffect(()=>{if(!n){d(!1);return}y||(t.userHasPrefs!==void 0&&l(!t.userHasPrefs),w(S),g(b))},[n,y,t.userHasPrefs,S,b]);const x=async()=>{if(v){a.ue.error("Preferences are still loading. Please try again.");return}h?await j()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again."):await N({tz:p,weekStart:T})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),c(!1)):a.ue.error("Failed to save preferences. Please try again.")},G=()=>{c(!1)},L=u||f,W=L||v;return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(a.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(a.RadioGroup,{value:h?"defaults":"custom",onValueChange:r=>{d(!0),l(r==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{d(!0),l(!0)},children:[e.jsx(a.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",i," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[D,", week starts ",m]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:s.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{d(!0),l(!1)},children:[e.jsx(a.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:s.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{className:B,children:"Timezone"}),e.jsxs(s.Popover,{open:I,onOpenChange:C,modal:!0,children:[e.jsx(s.PopoverTrigger,{asChild:!0,children:e.jsxs(s.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":I,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:A}),e.jsx(q.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(s.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:z.map(r=>e.jsxs(a.CommandItem,{value:`${r.value} ${r.label}`,onSelect:()=>{d(!0),w(r.value),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:r.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:r.value})]},r.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All timezones",children:P.map(r=>e.jsxs(a.CommandItem,{value:r,onSelect:()=>{d(!0),w(r),C(!1)},children:[e.jsx(s.Check,{className:s.cn("h-3.5 w-3.5",p===r?"opacity-100":"opacity-0")}),r]},r))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{className:B,children:"Week starts on"}),e.jsx(a.RadioGroup,{value:String(T),onValueChange:r=>{d(!0),g(Number(r))},className:"flex gap-4",disabled:h,children:$.map(r=>e.jsxs("label",{htmlFor:`week-start-${r.value}`,className:s.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(a.RadioGroupItem,{value:String(r.value),id:`week-start-${r.value}`,disabled:h}),r.label]},r.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:G,disabled:L,children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:x,disabled:W,children:L?e.jsxs(e.Fragment,{children:[e.jsx(s.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}const E=6,O=1,R=20,H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function Q(n){return Number.isNaN(n)?E:Math.min(R,Math.max(O,n))}function ee({open:n,onOpenChange:c,dashboard:t,onApply:v,disabled:u=!1}){const[f,N]=o.useState(!1),[j,S]=o.useState("top"),[b,h]=o.useState(String(E)),l=t.summary;o.useEffect(()=>{n&&(N((l==null?void 0:l.enabled)===!0),S((l==null?void 0:l.position)==="bottom"?"bottom":"top"),h(String((l==null?void 0:l.maxItems)??E)))},[n,l==null?void 0:l.enabled,l==null?void 0:l.position,l==null?void 0:l.maxItems]);const y=o.useMemo(()=>Q(Number.parseInt(b||`${E}`,10)),[b]),d=()=>{v({enabled:f,position:j,maxItems:y}),c(!1)};return e.jsx(a.Dialog,{open:n,onOpenChange:c,children:e.jsxs(a.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[420px] sm:rounded-control",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{className:"text-[15px]",children:"Summary Settings"}),e.jsx(a.DialogDescription,{className:"text-[13px] leading-5",children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-enabled",className:"text-[13px]",children:"Enable dashboard summary"}),e.jsx(s.Switch,{size:"xs",id:"dashboard-summary-enabled",checked:f,disabled:u,onCheckedChange:N})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-position",className:H,children:"Position"}),e.jsxs(s.Select,{value:j,disabled:u,onValueChange:p=>S(p),children:[e.jsx(s.SelectTrigger,{id:"dashboard-summary-position",size:"xs",children:e.jsx(s.SelectValue,{placeholder:"Select position"})}),e.jsxs(s.SelectContent,{children:[e.jsx(s.SelectItem,{value:"top",children:"Top"}),e.jsx(s.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(s.Label,{htmlFor:"dashboard-summary-max-items",className:H,children:"Max items"}),e.jsx(s.Input,{size:"xs",id:"dashboard-summary-max-items",type:"number",min:O,max:R,disabled:u,value:b,onChange:p=>h(p.target.value),onBlur:()=>h(String(y))}),e.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),u&&e.jsx("p",{className:"text-[12px] text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(s.Button,{variant:"outline",size:"xs",onClick:()=>c(!1),children:"Cancel"}),e.jsx(s.Button,{size:"xs",onClick:d,disabled:u,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=Y;exports.DashboardSummarySettingsDialog=ee;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as ue } from "react/jsx-runtime";
|
|
2
2
|
import me, { useState as f, useCallback as H, useEffect as q, useMemo as U } from "react";
|
|
3
|
-
import { u as he, b as Q, c as ee, d as ae, e as te, f as se, R, g as $, C as fe, h as pe, i as be, j as ve, k as V, l as G, m as ge, n as re, o as I } from "./index-
|
|
3
|
+
import { u as he, b as Q, c as ee, d as ae, e as te, f as se, R, g as $, C as fe, h as pe, i as be, j as ve, k as V, l as G, m as ge, n as re, o as I } from "./index-CSgoL0P9.js";
|
|
4
4
|
import { a as C, L as P, P as xe, b as Se, B as A, d as ye, e as X, f as Ne, S as we, g as Ce, h as ke, i as Te, j as Ie, k as Z, I as Pe } from "./switch-BZn7R_Cp.js";
|
|
5
5
|
import { C as Ae } from "./chevrons-up-down-Cbtggnqv.js";
|
|
6
6
|
function ze(r = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),n=require("./index-AerZtbg0.js"),t=require("./switch-BG4RWnrq.js"),it=require("./use-visual-utils-BdHwrbtr.js"),Me=require("./use-create-flow-overlay-state-DImkf832.js"),Mn=require("./chevrons-up-down-DDEY9beZ.js"),ba=require("react-dom");require("./index-DRlMUglg.js");const ja=require("./palette-CteErylX.js");function va(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,l.get?l:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const ya=va(N);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as Zo from "react";
|
|
3
3
|
import Kt, { useState as G, useEffect as Ce, useRef as Ee, useCallback as Ie, useMemo as ce, useContext as cr, Suspense as ec } from "react";
|
|
4
|
-
import { cE as pi, b as yn, c as vn, d as Nn, e as Cn, f as qn, n as Ga, P as et, b9 as It, cF as fi, cG as $a, o as tt, cH as gi, bk as bt, cI as dr, cJ as xi, cK as bi, cL as yi, cM as ur, cN as mr, bb as Za, b5 as gt, cO as Ua, cP as hr, cQ as tc, cR as Ha, cS as vi, cT as nc, cU as ac, q as es, cV as sc, cW as rc, cX as Xs, cY as ja, u as In, W as Ni, cZ as lc, c_ as ic, c$ as Ci, d0 as wi, d1 as oc, d2 as cc, d3 as dc, a$ as Dn, b0 as dn, b1 as un, b2 as wa, b3 as Gt, b4 as zn, d4 as Zs, cw as la, d5 as Si, d6 as Wt, d7 as ht, d8 as uc, c2 as sn, d9 as Ti, da as pr, db as ki, dc as mc, dd as hc, de as pc, df as fc, dg as gc, dh as xc, di as bc, dj as Ii, dk as yc, dl as Ds, dm as vc, dn as Cl, dp as Nc, dq as wl, dr as Cc, ds as wc, dt as Sc, du as _n, bf as $t, bh as jt, dv as Di, dw as fr, bN as gr, bW as xr, dx as br, dy as Tc, dz as Ei, dA as Ai, dB as zt, dC as kc, dD as Ic, dE as Oi, a8 as Mi, dF as Ri, dG as Dc, dH as Ec, dI as Ac, dJ as ca, dK as Oc, dL as Mc, dM as Sl, dN as Rc, E as ts, B as yr, dO as Fc, dP as vr, c5 as Lc, dQ as Tl, I as mt, dR as Pc, dS as Vc, dT as Fi, dU as Li, cx as Bc, dV as Nr, dW as Cr, bR as ns, dX as Pi, dY as Vi, dZ as kl, d_ as Sa, d$ as zc, e0 as _c, e1 as $c, e2 as jc, e3 as qc, bC as wr, e4 as Kc, e5 as Gc, e6 as Bi, e7 as zi, e8 as Uc, e9 as Hc, ea as Wc, eb as Qc, ec as _i, ed as Jc, ee as Yc, ef as as, eg as ss, bp as Un, bq as Hn, bs as Wn, c6 as da, bx as _t, eh as en, ei as wn, ej as Sn, ek as rn, el as Kn, em as Xc, en as Zc, eo as ed, ep as td, eq as nd, er as ad, es as sd, et as rs, eu as rd, ev as Il, bg as Ut, ba as Ht, ew as ld, ex as id, ey as od, V as cd, ez as dd, eA as $i, eB as ud, eC as md, eD as hd, eE as pd, eF as fd, eG as er, eH as gd, eI as xd, eJ as tr, eK as nr, eL as bd, eM as yd, eN as vd, eO as Nd, eP as Dl, bX as ar, eQ as ln, bE as Cd, eR as wd, bF as Sd, bG as Td, bH as kd, bI as Id, bJ as Dd, bK as Ed, bL as Ad, bt as ot, bo as Od, eS as Md, eT as ua, eU as ma, eV as ha, eW as ji, br as Sr, bY as Rd, bu as Fd, eX as Ld, eY as Pd, eZ as Vd, e_ as ls, e$ as at, f0 as st, f1 as rt, f2 as Bd, f3 as zd, f4 as qi, f5 as Ki, f6 as _d, c3 as Gi, f7 as $d, f8 as jd, f9 as qd, fa as Kd, fb as Gd, fc as Ud, fd as Hd, fe as Wd, ff as pn, fg as Pa, fh as $n, R as is, g as Tn, fi as Qd, fj as El, fk as Jd, fl as Yd, fm as Es, fn as Al, fo as Xd, fp as Zd, fq as eu, fr as tu, fs as nu, ft as As, fu as Ui, fv as au, fw as Wa, fx as su, fy as Hi, fz as ru, fA as Wi, fB as lu, cz as iu, fC as ou, az as cu, fD as Va, fE as du, fF as Ol, fG as uu, fH as mu, fI as Ml, fJ as hu, fK as pu, fL as fu, fM as gu, fN as xu, fO as bu, fP as yu, fQ as vu, fR as Nu, fS as Qi, fT as Cu, fU as wu, fV as Su, fW as Tu, fX as ku, fY as Iu, fZ as Du, f_ as Eu, f$ as Au, g0 as Ji, g1 as Ou, g2 as os, g3 as cs, g4 as Yi, g5 as Mu, g6 as Ru, g7 as Xi, g8 as Fu, g9 as Lu, ga as ds, gb as Os, gc as Pu, gd as Vu, ge as Bu, gf as zu, gg as _u, gh as Rl, gi as Gn, gj as Zi, gk as $u, gl as eo, gm as to, gn as sr, go as no, gp as Fl, gq as ju, gr as qu, gs as qa, gt as Ku, gu as Tr, gv as Gu, gw as Uu, gx as Qa, C as pa, h as fa, j as ga, i as xa, k as ba, l as ya, gy as Hu, gz as va, gA as tn, gB as rr, gC as lr, gD as Na, gE as ao, gF as Wu, gG as Ms, gH as Rs, gI as Qu, gJ as Fs, gK as Ju, gL as Ll, gM as Pl, gN as Yu, gO as Xu, gP as Zu, gQ as em, gR as tm, gS as nm, gT as am, gU as sm, cA as rm, cB as lm, cC as im, bz as us, gV as ms, gW as Vl, gX as so, cr as Ls, gY as om, gZ as cm, g_ as dm, F as um, b7 as mm, g$ as hm, h0 as pm, b8 as fm } from "./index-
|
|
4
|
+
import { cE as pi, b as yn, c as vn, d as Nn, e as Cn, f as qn, n as Ga, P as et, b9 as It, cF as fi, cG as $a, o as tt, cH as gi, bk as bt, cI as dr, cJ as xi, cK as bi, cL as yi, cM as ur, cN as mr, bb as Za, b5 as gt, cO as Ua, cP as hr, cQ as tc, cR as Ha, cS as vi, cT as nc, cU as ac, q as es, cV as sc, cW as rc, cX as Xs, cY as ja, u as In, W as Ni, cZ as lc, c_ as ic, c$ as Ci, d0 as wi, d1 as oc, d2 as cc, d3 as dc, a$ as Dn, b0 as dn, b1 as un, b2 as wa, b3 as Gt, b4 as zn, d4 as Zs, cw as la, d5 as Si, d6 as Wt, d7 as ht, d8 as uc, c2 as sn, d9 as Ti, da as pr, db as ki, dc as mc, dd as hc, de as pc, df as fc, dg as gc, dh as xc, di as bc, dj as Ii, dk as yc, dl as Ds, dm as vc, dn as Cl, dp as Nc, dq as wl, dr as Cc, ds as wc, dt as Sc, du as _n, bf as $t, bh as jt, dv as Di, dw as fr, bN as gr, bW as xr, dx as br, dy as Tc, dz as Ei, dA as Ai, dB as zt, dC as kc, dD as Ic, dE as Oi, a8 as Mi, dF as Ri, dG as Dc, dH as Ec, dI as Ac, dJ as ca, dK as Oc, dL as Mc, dM as Sl, dN as Rc, E as ts, B as yr, dO as Fc, dP as vr, c5 as Lc, dQ as Tl, I as mt, dR as Pc, dS as Vc, dT as Fi, dU as Li, cx as Bc, dV as Nr, dW as Cr, bR as ns, dX as Pi, dY as Vi, dZ as kl, d_ as Sa, d$ as zc, e0 as _c, e1 as $c, e2 as jc, e3 as qc, bC as wr, e4 as Kc, e5 as Gc, e6 as Bi, e7 as zi, e8 as Uc, e9 as Hc, ea as Wc, eb as Qc, ec as _i, ed as Jc, ee as Yc, ef as as, eg as ss, bp as Un, bq as Hn, bs as Wn, c6 as da, bx as _t, eh as en, ei as wn, ej as Sn, ek as rn, el as Kn, em as Xc, en as Zc, eo as ed, ep as td, eq as nd, er as ad, es as sd, et as rs, eu as rd, ev as Il, bg as Ut, ba as Ht, ew as ld, ex as id, ey as od, V as cd, ez as dd, eA as $i, eB as ud, eC as md, eD as hd, eE as pd, eF as fd, eG as er, eH as gd, eI as xd, eJ as tr, eK as nr, eL as bd, eM as yd, eN as vd, eO as Nd, eP as Dl, bX as ar, eQ as ln, bE as Cd, eR as wd, bF as Sd, bG as Td, bH as kd, bI as Id, bJ as Dd, bK as Ed, bL as Ad, bt as ot, bo as Od, eS as Md, eT as ua, eU as ma, eV as ha, eW as ji, br as Sr, bY as Rd, bu as Fd, eX as Ld, eY as Pd, eZ as Vd, e_ as ls, e$ as at, f0 as st, f1 as rt, f2 as Bd, f3 as zd, f4 as qi, f5 as Ki, f6 as _d, c3 as Gi, f7 as $d, f8 as jd, f9 as qd, fa as Kd, fb as Gd, fc as Ud, fd as Hd, fe as Wd, ff as pn, fg as Pa, fh as $n, R as is, g as Tn, fi as Qd, fj as El, fk as Jd, fl as Yd, fm as Es, fn as Al, fo as Xd, fp as Zd, fq as eu, fr as tu, fs as nu, ft as As, fu as Ui, fv as au, fw as Wa, fx as su, fy as Hi, fz as ru, fA as Wi, fB as lu, cz as iu, fC as ou, az as cu, fD as Va, fE as du, fF as Ol, fG as uu, fH as mu, fI as Ml, fJ as hu, fK as pu, fL as fu, fM as gu, fN as xu, fO as bu, fP as yu, fQ as vu, fR as Nu, fS as Qi, fT as Cu, fU as wu, fV as Su, fW as Tu, fX as ku, fY as Iu, fZ as Du, f_ as Eu, f$ as Au, g0 as Ji, g1 as Ou, g2 as os, g3 as cs, g4 as Yi, g5 as Mu, g6 as Ru, g7 as Xi, g8 as Fu, g9 as Lu, ga as ds, gb as Os, gc as Pu, gd as Vu, ge as Bu, gf as zu, gg as _u, gh as Rl, gi as Gn, gj as Zi, gk as $u, gl as eo, gm as to, gn as sr, go as no, gp as Fl, gq as ju, gr as qu, gs as qa, gt as Ku, gu as Tr, gv as Gu, gw as Uu, gx as Qa, C as pa, h as fa, j as ga, i as xa, k as ba, l as ya, gy as Hu, gz as va, gA as tn, gB as rr, gC as lr, gD as Na, gE as ao, gF as Wu, gG as Ms, gH as Rs, gI as Qu, gJ as Fs, gK as Ju, gL as Ll, gM as Pl, gN as Yu, gO as Xu, gP as Zu, gQ as em, gR as tm, gS as nm, gT as am, gU as sm, cA as rm, cB as lm, cC as im, bz as us, gV as ms, gW as Vl, gX as so, cr as Ls, gY as om, gZ as cm, g_ as dm, F as um, b7 as mm, g$ as hm, h0 as pm, b8 as fm } from "./index-CSgoL0P9.js";
|
|
5
5
|
import { c as $e, l as xe, B as Z, y as Ja, s as Qn, a as X, n as R, aS as gm, L as $, g as ae, h as se, i as re, j as le, k as q, aT as ro, G as St, X as Xe, F as yt, z as Ft, A as vt, D as Nt, P as Tt, b as Dt, d as kt, C as on, aU as xm, aR as ia, aV as kr, aW as lo, aL as Ir, aJ as bm, I as Fe, aX as ym, f as cn, u as Le, e as mn, aY as Dr, aZ as Ta, m as io, T as hs, q as ps, r as xn, t as jn, E as qt, x as fs, p as kn, Y as vm, aF as bn, a_ as Nm, a$ as Cm, b0 as oo, an as wm, aH as Sm, b1 as Tm, b2 as km, b3 as Bl, b4 as Im, b5 as Dm, b6 as Em, b7 as Am, b8 as Om, b9 as zl, ba as Mm, bb as _l, R as ir, bc as Jn, bd as Rm, S as qe, be as Fm, bf as Ca, bg as Ya, bh as nn, bi as Ba, bj as $l, bk as Rt, bl as Lm, w as co, bm as nt, a6 as jl, bn as Pm, bo as Vm, bp as Bm, bq as zm, br as _m, bs as $m, bt as jm, bu as qm, bv as Km, bw as Gm, bx as Um, by as Hm, aE as ql, bz as Wm, bA as Qm, bB as Jm, M as Ym, v as gs } from "./switch-BZn7R_Cp.js";
|
|
6
|
-
import { r as uo, f as ka } from "./use-visual-utils-
|
|
7
|
-
import { f as pt, g as mo, V as ho, u as Xm, e as Zm, C as Kl } from "./use-create-flow-overlay-state-
|
|
6
|
+
import { r as uo, f as ka } from "./use-visual-utils-DczvWVbd.js";
|
|
7
|
+
import { f as pt, g as mo, V as ho, u as Xm, e as Zm, C as Kl } from "./use-create-flow-overlay-state-CczjbVZY.js";
|
|
8
8
|
import { C as po } from "./chevrons-up-down-Cbtggnqv.js";
|
|
9
9
|
import { createPortal as eh } from "react-dom";
|
|
10
10
|
import "./index-CJdxSyQq.js";
|