react-semaphor 0.1.202 → 0.1.203
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-CkfdfqNi.js → dashboard-controls-D5VrI40y.js} +1 -1
- package/dist/chunks/{dashboard-controls-Ct4PKzi_.js → dashboard-controls-p7I_UrIz.js} +5 -5
- package/dist/chunks/{dashboard-json-BoT-Wp2i.js → dashboard-json-Cwh8kbV9.js} +1 -1
- package/dist/chunks/{dashboard-json-DcdjxLFv.js → dashboard-json-Dh8csIFq.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-D1QDJSfs.js → dashboard-summary-settings-dialog-BL4vn4lZ.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-BVWeRbN7.js → dashboard-summary-settings-dialog-_3iUVFkC.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DGebHYIi.js → edit-dashboard-visual-DEc3lB9j.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-DH5QSGaK.js → edit-dashboard-visual-RiCeBX0X.js} +1 -1
- package/dist/chunks/{editor-action-buttons-B2STBcxD.js → editor-action-buttons-BfLWRprW.js} +1 -1
- package/dist/chunks/{editor-action-buttons-CmYVGMmU.js → editor-action-buttons-DovtyKKL.js} +2 -2
- package/dist/chunks/{index-VMtFUqKe.js → index-CpnMO9b6.js} +2 -2
- package/dist/chunks/{index-2UB7egQD.js → index-DaQXz6Oi.js} +7 -6
- package/dist/chunks/{notification-bell-ClsbaKmk.js → notification-bell-Cn3-W-S3.js} +3 -3
- package/dist/chunks/{notification-bell-B3-Ju7ln.js → notification-bell-DsJcuxld.js} +1 -1
- package/dist/chunks/{resource-management-panel-JhskGQEY.js → resource-management-panel-DBnpAHFb.js} +1 -1
- package/dist/chunks/{resource-management-panel-D9IRB31b.js → resource-management-panel-qsbMXn91.js} +3 -3
- package/dist/chunks/{use-role-aware-display-preferences-CLjqnHpY.js → use-role-aware-display-preferences-B22nZN2c.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-CNicmmdy.js → use-role-aware-display-preferences-CnipXO4k.js} +1 -1
- package/dist/chunks/{use-visual-utils-DhK1ng8v.js → use-visual-utils-B9X7-yfe.js} +1 -1
- package/dist/chunks/{use-visual-utils-CzWIOx1O.js → use-visual-utils-JlfPxiXq.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"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-CpnMO9b6.js"),b=require("react");require("react-dom");const _=require("./notification-bell-DsJcuxld.js"),Ze=require("./use-role-aware-display-preferences-B22nZN2c.js"),es=require("./date-formatter-Sz6QDaM8.js"),je=require("./dashboard-summary-settings-dialog-_3iUVFkC.js"),be=require("./editor-action-buttons-BfLWRprW.js");function ss(t){const n=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(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const D=ss(b);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
|
-
import { b3 as ee, cf as Xs, u as w, bm as Oe, bn as Ie, B as A, bp as _e, bq as Y, cg as Te, ax as rs, aK as j, aL as Pe, ch as Ys, br as Ge, aM as Re, aN as Ue, aO as Fe, aP as os, aS as xe, b2 as Z, aV as Zs, I as F, ci as ea, bv as sa, cj as aa, ck as Ze, cl as is, c as de, cm as cs, ba as ue, cn as me, aX as L, co as ls, c0 as ta, cp as na, aW as V, bu as $, cq as ra, cr as oa, cs as we, ct as ia, cu as ca, cv as ds, cw as us, cx as ce, cy as le, bZ as Ce, bB as De, cz as Ee, bw as ms, cA as Le, c1 as hs, e as ps, cB as la, bE as fs, bF as gs, bG as vs, bH as bs, bI as ys, bJ as Ns, bK as Ss, bL as Ae, bk as da, cC as ua, G as ma, az as es, A as oe, cD as ha, N as pa, H as ye, cE as fa, cF as ga, cG as va, cH as ba, bs as ya, Z as Na, cI as Sa, cJ as xa, cK as wa, cL as Ca, cM as Da, bo as Ea, by as La, cN as Aa, M as Ma, Y as ka } from "./index-
|
|
2
|
+
import { b3 as ee, cf as Xs, u as w, bm as Oe, bn as Ie, B as A, bp as _e, bq as Y, cg as Te, ax as rs, aK as j, aL as Pe, ch as Ys, br as Ge, aM as Re, aN as Ue, aO as Fe, aP as os, aS as xe, b2 as Z, aV as Zs, I as F, ci as ea, bv as sa, cj as aa, ck as Ze, cl as is, c as de, cm as cs, ba as ue, cn as me, aX as L, co as ls, c0 as ta, cp as na, aW as V, bu as $, cq as ra, cr as oa, cs as we, ct as ia, cu as ca, cv as ds, cw as us, cx as ce, cy as le, bZ as Ce, bB as De, cz as Ee, bw as ms, cA as Le, c1 as hs, e as ps, cB as la, bE as fs, bF as gs, bG as vs, bH as bs, bI as ys, bJ as Ns, bK as Ss, bL as Ae, bk as da, cC as ua, G as ma, az as es, A as oe, cD as ha, N as pa, H as ye, cE as fa, cF as ga, cG as va, cH as ba, bs as ya, Z as Na, cI as Sa, cJ as xa, cK as wa, cL as Ca, cM as Da, bo as Ea, by as La, cN as Aa, M as Ma, Y as ka } from "./index-DaQXz6Oi.js";
|
|
3
3
|
import * as D from "react";
|
|
4
4
|
import xs, { useState as S, useMemo as ie, useEffect as Oa } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { b as Ia, u as _a, c as Ta, A as Pa, V as Ga, S as Ra, N as Ua, U as Fa } from "./notification-bell-
|
|
7
|
-
import { u as ja } from "./use-role-aware-display-preferences-
|
|
6
|
+
import { b as Ia, u as _a, c as Ta, A as Pa, V as Ga, S as Ra, N as Ua, U as Fa } from "./notification-bell-Cn3-W-S3.js";
|
|
7
|
+
import { u as ja } from "./use-role-aware-display-preferences-CnipXO4k.js";
|
|
8
8
|
import { d as qa } from "./date-formatter-Y8Za1ib3.js";
|
|
9
|
-
import { C as Va, D as $a } from "./dashboard-summary-settings-dialog-
|
|
10
|
-
import { S as ss } from "./editor-action-buttons-
|
|
9
|
+
import { C as Va, D as $a } from "./dashboard-summary-settings-dialog-BL4vn4lZ.js";
|
|
10
|
+
import { S as ss } from "./editor-action-buttons-DovtyKKL.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v0.453.0 - ISC
|
|
13
13
|
*
|
|
@@ -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-DaQXz6Oi.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-CpnMO9b6.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 s, Fragment as oe } from "react/jsx-runtime";
|
|
2
2
|
import de, { useState as h, useCallback as L, useEffect as X, useMemo as z } from "react";
|
|
3
|
-
import { aK as ue, aL as G, aM as Z, aN as K, aO as J, aP as Y, aQ as j, c as T, aR as F, aS as b, P as me, p as he, B as A, aT as fe, r as pe, s as ve, t as be, v as Se, w as ge, x as O, y as W, z as B, aU as ye, aV as Q, aW as we, aX as E, aY as xe, aZ as Ne, a_ as Te, a$ as Ce, b0 as ke, b1 as V, b2 as Ie } from "./index-
|
|
3
|
+
import { aK as ue, aL as G, aM as Z, aN as K, aO as J, aP as Y, aQ as j, c as T, aR as F, aS as b, P as me, p as he, B as A, aT as fe, r as pe, s as ve, t as be, v as Se, w as ge, x as O, y as W, z as B, aU as ye, aV as Q, aW as we, aX as E, aY as xe, aZ as Ne, a_ as Te, a$ as Ce, b0 as ke, b1 as V, b2 as Ie } from "./index-DaQXz6Oi.js";
|
|
4
4
|
function Pe() {
|
|
5
5
|
var k, I, P, N;
|
|
6
6
|
const { authToken: a, tokenProps: r } = ue(), [l, S] = h(!1), [p, g] = h(!1), [x, y] = h(!1), [v, o] = h(null), [u, n] = h(null), w = u || {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-VMtFUqKe.js");function W(){var N,C,T,y;const{authToken:s,tokenProps:r}=a.useSemaphorContext(),[i,S]=l.useState(!1),[x,v]=l.useState(!1),[j,b]=l.useState(!1),[p,u]=l.useState(null),[m,n]=l.useState(null),g=m||{tz:((C=(N=r==null?void 0:r.params)==null?void 0:N.calendarContext)==null?void 0:C.tz)||null,weekStart:((y=(T=r==null?void 0:r.params)==null?void 0:T.calendarContext)==null?void 0:y.weekStart)??null},d=l.useCallback(async()=>{if(!(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))){S(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const o=await c.json();n({tz:o.tz,weekStart:o.weekStart,source:o.source,isInherited:o.isInherited,userHasPrefs:o.userHasPrefs,inherited:o.inherited})}catch(c){const o=c instanceof Error?c.message:"Unknown error";u(o)}finally{S(!1)}}},[s,r]);l.useEffect(()=>{d()},[d]);const f=l.useCallback(async c=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;v(!0),u(null);try{const o=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s.accessToken}`},body:JSON.stringify(c)});if(!o.ok){const h=await o.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await d(),!0}catch(o){const h=o instanceof Error?o.message:"Unknown error";return u(h),!1}finally{v(!1)}},[s,r,d]),w=l.useCallback(async()=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;b(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const o=await c.text();if(o)try{const h=JSON.parse(o);return n({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await d(),!0}catch(c){const o=c instanceof Error?c.message:"Unknown error";return u(o),!1}finally{b(!1)}},[s,r,d]);return{preferences:g,isLoading:i,isSaving:x,isClearing:j,error:p,updatePreferences:f,clearPreferences:w,refetch:d}}const I=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const s=Intl;if(s.supportedValuesOf)return s.supportedValuesOf("timeZone")}catch{}return I.map(s=>s.value)}function V(s){switch(s){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function L(s){const r=I.find(i=>i.value===s);return r?r.label:s}function X(s){const r=M.find(i=>i.value===s);return r?r.label:String(s)}function q({open:s,onOpenChange:r}){var E,P,A;const{preferences:i,isLoading:S,isSaving:x,isClearing:v,updatePreferences:j,clearPreferences:b}=W(),p=i.tz||((E=i.inherited)==null?void 0:E.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,u=i.weekStart??((P=i.inherited)==null?void 0:P.weekStart)??1,[m,n]=l.useState(!i.userHasPrefs),[g,d]=l.useState(!1),[f,w]=l.useState(p),[N,C]=l.useState(u),[T,y]=l.useState(!1),c=l.useMemo(()=>G(),[]),o=l.useMemo(()=>c.filter(t=>!I.some(R=>R.value===t)),[c]),h=l.useMemo(()=>L(f),[f]),F=i.inherited?L(i.inherited.tz):"UTC",H=i.inherited?X(i.inherited.weekStart):"Monday",B=V((A=i.inherited)==null?void 0:A.source);l.useEffect(()=>{if(!s){d(!1);return}g||(i.userHasPrefs!==void 0&&n(!i.userHasPrefs),w(p),C(u))},[s,g,i.userHasPrefs,p,u]);const _=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await b()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again."):await j({tz:f,weekStart:N})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{r(!1)},D=x||v,O=D||S;return e.jsx(a.Dialog,{open:s,onOpenChange:r,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=>{d(!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:()=>{d(!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 ",B," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[F,", Week starts ",H]})]})]}),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:()=>{d(!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:y,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:[h,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:I.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{d(!0),w(t.value),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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:o.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{d(!0),w(t),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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(N),onValueChange:t=>{d(!0),C(Number(t))},className:"flex gap-4",disabled:m,children:M.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:D,children:"Cancel"}),e.jsx(a.Button,{onClick:_,disabled:O,children:D?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const k=6,z=1,U=20;function Z(s){return Number.isNaN(s)?k:Math.min(U,Math.max(z,s))}function J({open:s,onOpenChange:r,dashboard:i,onApply:S,disabled:x=!1}){const[v,j]=l.useState(!1),[b,p]=l.useState("top"),[u,m]=l.useState(String(k)),n=i.summary;l.useEffect(()=>{s&&(j((n==null?void 0:n.enabled)===!0),p((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??k)))},[s,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const g=l.useMemo(()=>Z(Number.parseInt(u||`${k}`,10)),[u]),d=()=>{S({enabled:v,position:b,maxItems:g}),r(!1)};return e.jsx(a.Dialog,{open:s,onOpenChange:r,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[420px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Summary Settings"}),e.jsx(a.DialogDescription,{children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-enabled",children:"Enable Dashboard Summary"}),e.jsx(a.SmallSwitch,{id:"dashboard-summary-enabled",checked:v,disabled:x,onCheckedChange:j})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:b,disabled:x,onValueChange:f=>p(f),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:z,max:U,disabled:x,value:u,onChange:f=>m(f.target.value),onBlur:()=>m(String(g))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),x&&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:()=>r(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:d,disabled:x,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-CpnMO9b6.js");function W(){var N,C,T,y;const{authToken:s,tokenProps:r}=a.useSemaphorContext(),[i,S]=l.useState(!1),[x,v]=l.useState(!1),[j,b]=l.useState(!1),[p,u]=l.useState(null),[m,n]=l.useState(null),g=m||{tz:((C=(N=r==null?void 0:r.params)==null?void 0:N.calendarContext)==null?void 0:C.tz)||null,weekStart:((y=(T=r==null?void 0:r.params)==null?void 0:T.calendarContext)==null?void 0:y.weekStart)??null},d=l.useCallback(async()=>{if(!(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))){S(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const o=await c.json();n({tz:o.tz,weekStart:o.weekStart,source:o.source,isInherited:o.isInherited,userHasPrefs:o.userHasPrefs,inherited:o.inherited})}catch(c){const o=c instanceof Error?c.message:"Unknown error";u(o)}finally{S(!1)}}},[s,r]);l.useEffect(()=>{d()},[d]);const f=l.useCallback(async c=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;v(!0),u(null);try{const o=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s.accessToken}`},body:JSON.stringify(c)});if(!o.ok){const h=await o.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await d(),!0}catch(o){const h=o instanceof Error?o.message:"Unknown error";return u(h),!1}finally{v(!1)}},[s,r,d]),w=l.useCallback(async()=>{if(!(s!=null&&s.accessToken)||!(r!=null&&r.apiServiceUrl))return u("Not authenticated"),!1;b(!0),u(null);try{const c=await fetch(`${r.apiServiceUrl}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${s.accessToken}`}});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const o=await c.text();if(o)try{const h=JSON.parse(o);return n({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await d(),!0}catch(c){const o=c instanceof Error?c.message:"Unknown error";return u(o),!1}finally{b(!1)}},[s,r,d]);return{preferences:g,isLoading:i,isSaving:x,isClearing:j,error:p,updatePreferences:f,clearPreferences:w,refetch:d}}const I=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const s=Intl;if(s.supportedValuesOf)return s.supportedValuesOf("timeZone")}catch{}return I.map(s=>s.value)}function V(s){switch(s){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function L(s){const r=I.find(i=>i.value===s);return r?r.label:s}function X(s){const r=M.find(i=>i.value===s);return r?r.label:String(s)}function q({open:s,onOpenChange:r}){var E,P,A;const{preferences:i,isLoading:S,isSaving:x,isClearing:v,updatePreferences:j,clearPreferences:b}=W(),p=i.tz||((E=i.inherited)==null?void 0:E.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,u=i.weekStart??((P=i.inherited)==null?void 0:P.weekStart)??1,[m,n]=l.useState(!i.userHasPrefs),[g,d]=l.useState(!1),[f,w]=l.useState(p),[N,C]=l.useState(u),[T,y]=l.useState(!1),c=l.useMemo(()=>G(),[]),o=l.useMemo(()=>c.filter(t=>!I.some(R=>R.value===t)),[c]),h=l.useMemo(()=>L(f),[f]),F=i.inherited?L(i.inherited.tz):"UTC",H=i.inherited?X(i.inherited.weekStart):"Monday",B=V((A=i.inherited)==null?void 0:A.source);l.useEffect(()=>{if(!s){d(!1);return}g||(i.userHasPrefs!==void 0&&n(!i.userHasPrefs),w(p),C(u))},[s,g,i.userHasPrefs,p,u]);const _=async()=>{if(S){a.ue.error("Preferences are still loading. Please try again.");return}m?await b()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again."):await j({tz:f,weekStart:N})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),r(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{r(!1)},D=x||v,O=D||S;return e.jsx(a.Dialog,{open:s,onOpenChange:r,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=>{d(!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:()=>{d(!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 ",B," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[F,", Week starts ",H]})]})]}),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:()=>{d(!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:y,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:[h,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:I.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{d(!0),w(t.value),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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:o.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{d(!0),w(t),y(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",f===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(N),onValueChange:t=>{d(!0),C(Number(t))},className:"flex gap-4",disabled:m,children:M.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:D,children:"Cancel"}),e.jsx(a.Button,{onClick:_,disabled:O,children:D?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const k=6,z=1,U=20;function Z(s){return Number.isNaN(s)?k:Math.min(U,Math.max(z,s))}function J({open:s,onOpenChange:r,dashboard:i,onApply:S,disabled:x=!1}){const[v,j]=l.useState(!1),[b,p]=l.useState("top"),[u,m]=l.useState(String(k)),n=i.summary;l.useEffect(()=>{s&&(j((n==null?void 0:n.enabled)===!0),p((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??k)))},[s,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const g=l.useMemo(()=>Z(Number.parseInt(u||`${k}`,10)),[u]),d=()=>{S({enabled:v,position:b,maxItems:g}),r(!1)};return e.jsx(a.Dialog,{open:s,onOpenChange:r,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[420px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Summary Settings"}),e.jsx(a.DialogDescription,{children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-enabled",children:"Enable Dashboard Summary"}),e.jsx(a.SmallSwitch,{id:"dashboard-summary-enabled",checked:v,disabled:x,onCheckedChange:j})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:b,disabled:x,onValueChange:f=>p(f),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:z,max:U,disabled:x,value:u,onChange:f=>m(f.target.value),onBlur:()=>m(String(g))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),x&&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:()=>r(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:d,disabled:x,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
-
import { b3 as ke, cO as Nl, aX as Tt, aA as de, az as E, cP as Na, cQ as Cl, aS as P, aZ as Q, a_ as X, a$ as Z, b0 as ee, b1 as K, cR as Ie, B as Y, br as dt, cS as $a, cT as Zs, cU as er, cV as tr, cW as ar, cX as ja, q as vt, X as Be, cY as Dn, bw as In, aL as Ht, aM as Yt, aN as Wt, aO as Qt, aP as xa, bd as nt, bS as He, bO as Ye, bP as Ge, bQ as Ue, cZ as Ns, c_ as En, u as Se, aV as yn, c$ as Xt, bB as da, c as ae, c1 as tt, d0 as nr, bk as sr, d1 as wl, d2 as Sl, d3 as kl, d4 as ga, d5 as Tl, d6 as rr, d7 as Al, cf as lr, d8 as Dl, d9 as ir, da as Il, db as Mn, dc as El, dd as Et, de as Nt, df as On, ba as Ml, dg as Ol, b4 as ua, b5 as Kt, b6 as Gt, b7 as Ca, b8 as bt, b9 as _t, dh as vn, di as zt, dj as Ze, dk as $t, aW as Zt, dl as Fl, dm as Ra, dn as La, dp as Pa, dq as Fn, cK as ea, c4 as wa, dr as Rl, aQ as Sa, ds as Rn, dt as ma, bC as Ln, du as or, aR as Mt, A as Ll, dv as Pl, c8 as Vl, dw as yt, dx as At, dy as Bl, dz as Dt, e as Pn, c5 as Vn, ax as cr, dA as Bn, dB as zl, dC as dr, dD as ur, dE as xt, cH as nn, dF as $l, dG as jl, dH as mr, a1 as hr, dI as pr, dJ as ql, dK as Kl, dL as Gl, dM as qa, dN as Ul, dO as _l, dP as Cs, dQ as Jl, E as Ka, n as zn, dR as Hl, dS as $n, ch as Yl, I as We, dT as Wl, dU as Ql, cv as jn, cw as qn, cx as Vt, cy as Ma, dV as Xl, bR as Zl, dW as fr, dX as ei, dY as ti, bZ as Ga, bX as et, dZ as ai, d_ as ni, d$ as ws, e0 as si, P as ut, p as mt, r as ht, bm as Kn, bn as Gn, bp as Un, ci as gr, bv as Ut, e1 as Ct, e2 as jt, e3 as qt, e4 as Ot, e5 as ta, e6 as ri, af as li, e7 as ii, e8 as oi, e9 as ci, ea as di, c3 as Jt, eb as ui, ec as xr, ed as mi, ee as hi, aK as ka, ef as pi, eg as br, eh as fi, ei as gi, ej as xi, ek as bi, el as yi, em as vi, en as Nn, eo as Ni, ep as Ci, eq as wi, er as Cn, es as Ss, et as Si, eu as ki, ev as Ti, ew as Ai, ex as Di, ey as yr, ez as _n, b2 as Me, eA as ba, eB as Va, eC as Ii, eD as aa, eE as Te, eF as Ae, eG as De, eH as Ei, eI as Mi, eJ as Oi, eK as Fi, eL as wt, eM as Ia, eN as ks, eO as Ri, cL as vr, aY as Ee, eP as Li, eQ as Pi, eR as Vi, s as na, t as sa, v as ra, w as la, x as ia, y as oa, eS as Bi, eT as zi, eU as Ts, eV as $i, z as ha, eW as ji, eX as sn, eY as As, eZ as it, e_ as qi, e$ as Ki, f0 as Gi, f1 as Ui, f2 as Ta, f3 as _i, f4 as rn, f5 as Nr, f6 as Ji, f7 as Hi, f8 as Yi, f9 as Ba, fa as Wi, fb as Qi, fc as Bt, bl as Jn, fd as Hn, fe as Cr, ff as Xi, bW as wr, fg as Zi, fh as Ua, cN as eo, fi as Le, fj as Ds, at as to, G as ao, fk as no, fl as so, fm as ro, fn as lo, fo as io, ap as Is, fp as Es, fq as oo, fr as co, fs as Sr, ft as uo, fu as kr, fv as mo, fw as ho, fx as po, fy as fo, fz as go, fA as xo, fB as bo, fC as yo, fD as vo, fE as No, fF as Tr, fG as Co, fH as wo, fI as So, fJ as ko, fK as To, fL as Ao, fM as Do, fN as Ar, bo as Io, fO as Eo, fP as Mo, fQ as Oo, fR as Fo, fS as Ro, fT as Dr, fU as Lo, co as Ir, fV as _a, fW as Er, fX as Mr, ab as Ea, fY as Ja, fZ as Po, f_ as Or, f$ as Ms, b_ as Vo, g0 as Os, g1 as Bo, g2 as zo, g3 as $o, g4 as Oa, g5 as jo, g6 as Yn, g7 as Fa, g8 as qo, g9 as Ko, ga as za, gb as Go, aT as Uo, gc as _o, gd as ya, ge as St, gf as wn, gg as Sn, gh as va, gi as Fr, gj as ca, a9 as Jo, gk as Ho, gl as ln, gm as Yo, gn as on, go as Wo, gp as Fs, gq as Qo, gr as Xo, gs as Zo, gt as ec, bq as lt, gu as tc, gv as ac, gw as nc, gx as Ha, by as Ya, gy as Rs, gz as Rr, cD as cn, gA as sc, gB as rc, gC as lc, F as ic } from "./index-
|
|
2
|
+
import { b3 as ke, cO as Nl, aX as Tt, aA as de, az as E, cP as Na, cQ as Cl, aS as P, aZ as Q, a_ as X, a$ as Z, b0 as ee, b1 as K, cR as Ie, B as Y, br as dt, cS as $a, cT as Zs, cU as er, cV as tr, cW as ar, cX as ja, q as vt, X as Be, cY as Dn, bw as In, aL as Ht, aM as Yt, aN as Wt, aO as Qt, aP as xa, bd as nt, bS as He, bO as Ye, bP as Ge, bQ as Ue, cZ as Ns, c_ as En, u as Se, aV as yn, c$ as Xt, bB as da, c as ae, c1 as tt, d0 as nr, bk as sr, d1 as wl, d2 as Sl, d3 as kl, d4 as ga, d5 as Tl, d6 as rr, d7 as Al, cf as lr, d8 as Dl, d9 as ir, da as Il, db as Mn, dc as El, dd as Et, de as Nt, df as On, ba as Ml, dg as Ol, b4 as ua, b5 as Kt, b6 as Gt, b7 as Ca, b8 as bt, b9 as _t, dh as vn, di as zt, dj as Ze, dk as $t, aW as Zt, dl as Fl, dm as Ra, dn as La, dp as Pa, dq as Fn, cK as ea, c4 as wa, dr as Rl, aQ as Sa, ds as Rn, dt as ma, bC as Ln, du as or, aR as Mt, A as Ll, dv as Pl, c8 as Vl, dw as yt, dx as At, dy as Bl, dz as Dt, e as Pn, c5 as Vn, ax as cr, dA as Bn, dB as zl, dC as dr, dD as ur, dE as xt, cH as nn, dF as $l, dG as jl, dH as mr, a1 as hr, dI as pr, dJ as ql, dK as Kl, dL as Gl, dM as qa, dN as Ul, dO as _l, dP as Cs, dQ as Jl, E as Ka, n as zn, dR as Hl, dS as $n, ch as Yl, I as We, dT as Wl, dU as Ql, cv as jn, cw as qn, cx as Vt, cy as Ma, dV as Xl, bR as Zl, dW as fr, dX as ei, dY as ti, bZ as Ga, bX as et, dZ as ai, d_ as ni, d$ as ws, e0 as si, P as ut, p as mt, r as ht, bm as Kn, bn as Gn, bp as Un, ci as gr, bv as Ut, e1 as Ct, e2 as jt, e3 as qt, e4 as Ot, e5 as ta, e6 as ri, af as li, e7 as ii, e8 as oi, e9 as ci, ea as di, c3 as Jt, eb as ui, ec as xr, ed as mi, ee as hi, aK as ka, ef as pi, eg as br, eh as fi, ei as gi, ej as xi, ek as bi, el as yi, em as vi, en as Nn, eo as Ni, ep as Ci, eq as wi, er as Cn, es as Ss, et as Si, eu as ki, ev as Ti, ew as Ai, ex as Di, ey as yr, ez as _n, b2 as Me, eA as ba, eB as Va, eC as Ii, eD as aa, eE as Te, eF as Ae, eG as De, eH as Ei, eI as Mi, eJ as Oi, eK as Fi, eL as wt, eM as Ia, eN as ks, eO as Ri, cL as vr, aY as Ee, eP as Li, eQ as Pi, eR as Vi, s as na, t as sa, v as ra, w as la, x as ia, y as oa, eS as Bi, eT as zi, eU as Ts, eV as $i, z as ha, eW as ji, eX as sn, eY as As, eZ as it, e_ as qi, e$ as Ki, f0 as Gi, f1 as Ui, f2 as Ta, f3 as _i, f4 as rn, f5 as Nr, f6 as Ji, f7 as Hi, f8 as Yi, f9 as Ba, fa as Wi, fb as Qi, fc as Bt, bl as Jn, fd as Hn, fe as Cr, ff as Xi, bW as wr, fg as Zi, fh as Ua, cN as eo, fi as Le, fj as Ds, at as to, G as ao, fk as no, fl as so, fm as ro, fn as lo, fo as io, ap as Is, fp as Es, fq as oo, fr as co, fs as Sr, ft as uo, fu as kr, fv as mo, fw as ho, fx as po, fy as fo, fz as go, fA as xo, fB as bo, fC as yo, fD as vo, fE as No, fF as Tr, fG as Co, fH as wo, fI as So, fJ as ko, fK as To, fL as Ao, fM as Do, fN as Ar, bo as Io, fO as Eo, fP as Mo, fQ as Oo, fR as Fo, fS as Ro, fT as Dr, fU as Lo, co as Ir, fV as _a, fW as Er, fX as Mr, ab as Ea, fY as Ja, fZ as Po, f_ as Or, f$ as Ms, b_ as Vo, g0 as Os, g1 as Bo, g2 as zo, g3 as $o, g4 as Oa, g5 as jo, g6 as Yn, g7 as Fa, g8 as qo, g9 as Ko, ga as za, gb as Go, aT as Uo, gc as _o, gd as ya, ge as St, gf as wn, gg as Sn, gh as va, gi as Fr, gj as ca, a9 as Jo, gk as Ho, gl as ln, gm as Yo, gn as on, go as Wo, gp as Fs, gq as Qo, gr as Xo, gs as Zo, gt as ec, bq as lt, gu as tc, gv as ac, gw as nc, gx as Ha, by as Ya, gy as Rs, gz as Rr, cD as cn, gA as sc, gB as rc, gC as lc, F as ic } from "./index-DaQXz6Oi.js";
|
|
3
3
|
import * as kn from "react";
|
|
4
4
|
import Tn, { useState as _, useRef as at, useEffect as be, useCallback as Ke, useMemo as ie, useContext as Wn, Suspense as oc } from "react";
|
|
5
|
-
import { C as cc, d as Qn, u as st } from "./editor-action-buttons-
|
|
5
|
+
import { C as cc, d as Qn, u as st } from "./editor-action-buttons-DovtyKKL.js";
|
|
6
6
|
import { createPortal as dc } 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"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-CpnMO9b6.js"),I=require("react"),ye=require("./editor-action-buttons-BfLWRprW.js"),Lt=require("react-dom");function Mt(t){const n=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(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const as=Mt(I);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-CpnMO9b6.js"),r=require("react/jsx-runtime"),h=require("./use-visual-utils-JlfPxiXq.js"),v=require("react");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b3 as j, az as r, b4 as O, b5 as ae, b6 as se, b7 as te, b8 as re, b9 as ne, aA as F, B as N, c as q, z as X, u as P, ax as Q, aW as E, ba as z, bb as w, bc as G, bd as H, X as R, aX as C } from "./index-
|
|
1
|
+
import { b3 as j, az as r, b4 as O, b5 as ae, b6 as se, b7 as te, b8 as re, b9 as ne, aA as F, B as N, c as q, z as X, u as P, ax as Q, aW as E, ba as z, bb as w, bc as G, bd as H, X as R, aX as C } from "./index-DaQXz6Oi.js";
|
|
2
2
|
import { jsxs as f, jsx as h, Fragment as I } from "react/jsx-runtime";
|
|
3
|
-
import { u as ce, a as V } from "./use-visual-utils-
|
|
3
|
+
import { u as ce, a as V } from "./use-visual-utils-B9X7-yfe.js";
|
|
4
4
|
import { useMemo as b, useState as x } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|