@chaibuilder/sdk 1.2.89 → 1.2.91

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.
@@ -4,7 +4,7 @@ var ze = (r, n, o) => (gt(r, typeof n != "symbol" ? n + "" : n, o), o);
4
4
  import { j as jsxRuntimeExports } from "./jsx-runtime-Sp0orL4X.js";
5
5
  import * as React from "react";
6
6
  import React__default, { createContext as createContext$1, useReducer, useEffect as useEffect$1, useDebugValue, useCallback as useCallback$1, useContext as useContext$1, useState as useState$1, Component, Children, Suspense, useMemo as useMemo$1, useRef as useRef$1, memo, createElement as createElement$1, useLayoutEffect as useLayoutEffect$1, forwardRef as forwardRef$1, cloneElement, Fragment, lazy } from "react";
7
- import { S as Skeleton, B as Button$1, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, f as Card, g as CardHeader, h as CardDescription, i as CardContent, L as Label, j as Textarea, k as CardFooter, D as Dialog, l as DialogTrigger, m as DialogContent, n as DialogHeader, o as DialogTitle, p as DialogDescription, q as DialogFooter, P as Popover$1, r as PopoverTrigger, s as PopoverContent, t as Command, u as CommandInput, v as CommandList, w as CommandEmpty, x as CommandGroup, y as CommandItem, z as Tabs$1, A as TabsList$1, E as TabsTrigger, F as TabsContent, G as Switch, H as Accordion, I as AccordionItem, J as AccordionTrigger, K as AccordionContent, M as useToast, N as Input$2, O as TooltipPortal, Q as DropdownMenu, R as DropdownMenuTrigger, U as DropdownMenuContent, V as ScrollArea$1, W as DropdownMenuLabel, X as DropdownMenuSeparator, Y as DropdownMenuGroup, Z as DropdownMenuItem, _ as DropdownMenuShortcut, $ as AlertDialog, a0 as AlertDialogContent, a1 as AlertDialogHeader, a2 as AlertDialogTitle, a3 as AlertDialogTrigger, a4 as AlertDialogDescription, a5 as AlertDialogFooter, a6 as AlertDialogCancel, a7 as AlertDialogAction, a8 as DropdownMenuCheckboxItem, a9 as HoverCard, aa as HoverCardTrigger, ab as HoverCardContent, ac as Separator, ad as Badge$1, ae as TooltipProvider, af as Toaster } from "./context-menu-DeUUflYX.js";
7
+ import { S as Skeleton, B as Button$1, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, f as Card, g as CardHeader, h as CardDescription, i as CardContent, L as Label, j as Textarea, k as CardFooter, D as Dialog, l as DialogTrigger, m as DialogContent, n as DialogHeader, o as DialogTitle, p as DialogDescription, q as DialogFooter, P as Popover$1, r as PopoverTrigger, s as PopoverContent, t as Command, u as CommandInput, v as CommandList, w as CommandEmpty, x as CommandGroup, y as CommandItem, z as Tabs$1, A as TabsList$1, E as TabsTrigger, F as TabsContent, G as Switch, H as Accordion, I as AccordionItem, J as AccordionTrigger, K as AccordionContent, M as useToast, N as Input$2, O as TooltipPortal, Q as DropdownMenu, R as DropdownMenuTrigger, U as DropdownMenuContent, V as ScrollArea$1, W as DropdownMenuLabel, X as DropdownMenuSeparator, Y as DropdownMenuGroup, Z as DropdownMenuItem, _ as DropdownMenuShortcut, $ as AlertDialog, a0 as AlertDialogContent, a1 as AlertDialogHeader, a2 as AlertDialogTitle, a3 as AlertDialogTrigger, a4 as AlertDialogDescription, a5 as AlertDialogFooter, a6 as AlertDialogCancel, a7 as AlertDialogAction, a8 as DropdownMenuCheckboxItem, a9 as HoverCard, aa as HoverCardTrigger, ab as HoverCardContent, ac as Separator, ad as Badge$1, ae as Select$1, af as SelectTrigger, ag as SelectValue, ah as SelectContent, ai as SelectItem, aj as TooltipProvider, ak as Toaster } from "./context-menu-9cWJcKdh.js";
8
8
  import { has, find, filter, flatten, map, omit, isString as isString$1, includes, without, get as get$1, compact, set, isEmpty, forIn, isObject as isObject$2, each, first, noop as noop$1, keys, startsWith, range, values, flattenDeep, isNull, pick, sortBy, chunk, throttle, memoize as memoize$1, reverse, debounce as debounce$1, flatMapDeep, forEach, capitalize, last, startCase, truncate, isArray as isArray$5, split, toLower, cloneDeep, reject, nth, isNumber as isNumber$1, parseInt as parseInt$1, isNaN as isNaN$1, findLast, intersection, groupBy, isFunction as isFunction$2, uniq, toUpper, round } from "lodash-es";
9
9
  import { atom as atom$1, useAtomValue as useAtomValue$1, useAtom as useAtom$1, useSetAtom as useSetAtom$1, getDefaultStore as getDefaultStore$1 } from "jotai";
10
10
  import { g as generateUUID, a as getBreakpointValue$1, f, y, s, c as cn, G as GenIcon } from "./iconBase-zweRWSz0.js";
@@ -2700,30 +2700,10 @@ const useSelectedStylingBlocks = () => useAtom$1(selectedStylingBlocksAtom), get
2700
2700
  },
2701
2701
  [r]
2702
2702
  );
2703
- }, defaultProps$F = {
2704
- name: "",
2705
- props: {},
2706
- modalProps: {},
2707
- backdropClose: !0
2708
- }, activeModalAtom = atom$1(defaultProps$F), useActiveModal = () => {
2709
- const [r, n] = useAtom$1(activeModalAtom), o = useCallback$1(
2710
- (i, l = {}, c = {}) => {
2711
- n({ name: i, props: l, modalProps: c });
2712
- },
2713
- [n]
2714
- ), a = useCallback$1(
2715
- (...i) => {
2716
- get$1(r, "props.onClose", () => {
2717
- })(...i), n(defaultProps$F);
2718
- },
2719
- [n, r]
2720
- );
2721
- return {
2722
- activeModal: r,
2723
- openModal: o,
2724
- closeModal: a
2725
- };
2726
- }, useAllBlocks = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), useAtomValue$1(presentBlocksAtom)), readOnlyModeAtom = atom$1(!1);
2703
+ }, selectedBreakpointsAtom = atomWithStorage("selectedBreakpoints", ["XS", "MD", "XL"]), useSelectedBreakpoints = () => {
2704
+ const [r, n] = useAtom$1(selectedBreakpointsAtom);
2705
+ return [r, n];
2706
+ }, readOnlyModeAtom = atom$1(!1);
2727
2707
  readOnlyModeAtom.debugLabel = "readOnlyModeAtom";
2728
2708
  const networkModeAtom = atom$1("online");
2729
2709
  networkModeAtom.debugLabel = "networkModeAtom";
@@ -2736,8 +2716,8 @@ const primaryLanguageAtom = atom$1("");
2736
2716
  primaryLanguageAtom.debugLabel = "primaryLanguageAtom";
2737
2717
  const canvasIframeAtom = atom$1(null);
2738
2718
  canvasIframeAtom.debugLabel = "canvasIframeAtom";
2739
- const activePanelAtom$1 = atom$1("outline");
2740
- activePanelAtom$1.debugLabel = "activePanelAtom";
2719
+ const activePanelAtom = atom$1("outline");
2720
+ activePanelAtom.debugLabel = "activePanelAtom";
2741
2721
  const showPredefinedBlockCategoryAtom = atom$1("");
2742
2722
  showPredefinedBlockCategoryAtom.debugLabel = "showPredefinedBlockCategoryAtom";
2743
2723
  const historyStatesAtom = atom$1({ undoCount: 0, redoCount: 0 });
@@ -2760,10 +2740,7 @@ const xShowBlocksAtom = atom$1([]);
2760
2740
  xShowBlocksAtom.debugLabel = "xShowBlocksAtom";
2761
2741
  const selectedLibraryAtom = atomWithStorage("_selectedLibrary", null);
2762
2742
  selectedLibraryAtom.debugLabel = "selectedLibraryAtom";
2763
- const useReadOnlyMode = () => useAtomValue$1(readOnlyModeAtom), activePanelAtom = atom$1(""), parentBlockIdAtom = atom$1(null), useActivePanel = () => useAtom$1(activePanelAtom), useAddBlockParent = () => useAtom$1(parentBlockIdAtom), selectedBreakpointsAtom = atomWithStorage("selectedBreakpoints", ["XS", "MD", "XL"]), useSelectedBreakpoints = () => {
2764
- const [r, n] = useAtom$1(selectedBreakpointsAtom);
2765
- return [r, n];
2766
- }, useBuilderReset = () => {
2743
+ const useBuilderReset = () => {
2767
2744
  const r = useSetAtom$1(historyStatesAtom), { clear: n } = useUndoManager(), [, o] = useSelectedBlockIds(), [, a] = useHighlightBlockId(), [, i] = useSelectedStylingBlocks(), [, l] = useAtom(aiAssistantActiveAtom);
2768
2745
  return () => {
2769
2746
  o([]), i([]), a(""), n(), l(!1), r({ undoCount: 0, redoCount: 0 });
@@ -2779,12 +2756,8 @@ const useReadOnlyMode = () => useAtomValue$1(readOnlyModeAtom), activePanelAtom
2779
2756
  }
2780
2757
  }, []);
2781
2758
  return [r, o];
2782
- }, codeEditorAtom = atom$1(null), useCodeEditor = () => useAtom$1(codeEditorAtom), LAYOUT_MODE = {
2783
- SINGLE_SIDE_PANEL: "SINGLE_SIDE_PANEL",
2784
- DUAL_SIDE_PANEL: "DUAL_SIDE_PANEL",
2785
- DUAL_SIDE_PANEL_ADVANCED: "DUAL_SIDE_PANEL_ADVANCED"
2786
- }, layoutVariantAtom = atomWithStorage("__layout_variant_mode", LAYOUT_MODE.DUAL_SIDE_PANEL), useLayoutVariant = () => {
2787
- const [r, n] = useAtom$1(layoutVariantAtom), o = useBuilderProp("layoutVariant", LAYOUT_MODE.DUAL_SIDE_PANEL);
2759
+ }, codeEditorAtom = atom$1(null), useCodeEditor = () => useAtom$1(codeEditorAtom), layoutVariantAtom = atomWithStorage("_layout_variant_mode", "DUAL_SIDE_PANEL"), useLayoutVariant = () => {
2760
+ const [r, n] = useAtom$1(layoutVariantAtom), o = useBuilderProp("layoutVariant", "DUAL_SIDE_PANEL");
2788
2761
  return [r || o, n];
2789
2762
  }, IframeInitialContent = `<!doctype html>
2790
2763
  <html lang="en" dir="__HTML_DIR__" class="scroll-smooth h-full overflow-y-auto">
@@ -3674,7 +3647,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3674
3647
  i !== r.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { size: 16 })
3675
3648
  ] }, i))
3676
3649
  ] }) });
3677
- }, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-tlLB_emd.js")), CanvasArea = () => {
3650
+ }, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-_Pim7pDO.js")), CanvasArea = () => {
3678
3651
  const [r] = useCodeEditor(), n = useBuilderProp("onError", noop$1);
3679
3652
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full max-h-full w-full flex-1 flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex h-full max-h-full flex-col overflow-hidden bg-gray-100/40 px-2", children: [
3680
3653
  /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: n, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticCanvas$1, {}) }) }),
@@ -5059,7 +5032,7 @@ const ViewData = ({ data: r, fullView: n }) => {
5059
5032
  }
5060
5033
  )
5061
5034
  ] });
5062
- }, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-7f-L_-9x.js")), UploadImages = React__default.lazy(() => import("./UploadImages-hXRywPyk.js")), ImagesPanel = ({
5035
+ }, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-fpbR9Jbs.js")), UploadImages = React__default.lazy(() => import("./UploadImages-9hzL5Hu1.js")), ImagesPanel = ({
5063
5036
  isModalView: r = !1,
5064
5037
  onSelect: n = () => {
5065
5038
  }
@@ -5309,9 +5282,9 @@ function BlockSettings() {
5309
5282
  return u && each(g, (x) => delete b[x]), b;
5310
5283
  }, [a, g, u]);
5311
5284
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "overflow-x-hidden px-px", children: [
5312
- u ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Accordion, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "h-full w-full", children: [
5285
+ u ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Accordion, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "mt-4 h-full w-full", children: [
5313
5286
  /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem, { value: "BINDING", children: [
5314
- /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { className: "bg-gray-100 px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
5287
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { className: "py-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
5315
5288
  /* @__PURE__ */ jsxRuntimeExports.jsx(
5316
5289
  "div",
5317
5290
  {
@@ -5320,7 +5293,7 @@ function BlockSettings() {
5320
5293
  ),
5321
5294
  "Data Binding"
5322
5295
  ] }) }),
5323
- /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionContent, { className: "px-4 pt-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5296
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionContent, { className: "pt-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5324
5297
  DataBindingSetting$1,
5325
5298
  {
5326
5299
  bindingData: get$1(r, "_bindings", {}),
@@ -5331,12 +5304,12 @@ function BlockSettings() {
5331
5304
  ) })
5332
5305
  ] }),
5333
5306
  /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem, { value: "STATIC", children: [
5334
- /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { className: "bg-gray-100 px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
5307
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { className: "py-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
5335
5308
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-[8px] w-[8px] rounded-full bg-blue-500" }),
5336
5309
  "Static Content"
5337
5310
  ] }) }),
5338
5311
  /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { className: "pt-4", children: [
5339
- isEmpty(g) ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mx-4 mb-1 mt-0 rounded-sm border border-orange-500 bg-orange-100 p-1 text-xs text-orange-500", children: [
5312
+ isEmpty(g) ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-1 mt-0 rounded-sm border border-orange-500 bg-orange-100 p-1 text-xs text-orange-500", children: [
5340
5313
  "Data binding is set for ",
5341
5314
  /* @__PURE__ */ jsxRuntimeExports.jsx("b", { children: map(g, capitalize).join(", ") }),
5342
5315
  " ",
@@ -34039,8 +34012,8 @@ const ChooseLayout = ({ open: r, close: n }) => {
34039
34012
  {
34040
34013
  title: o("Single side panel"),
34041
34014
  description: o("Suitable for smaller screens. Bigger canvas size."),
34042
- selected: a === LAYOUT_MODE.SINGLE_SIDE_PANEL,
34043
- onSelect: () => l(LAYOUT_MODE.SINGLE_SIDE_PANEL),
34015
+ selected: a === "SINGLE_SIDE_PANEL",
34016
+ onSelect: () => l("SINGLE_SIDE_PANEL"),
34044
34017
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
34045
34018
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
34046
34019
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
@@ -34055,8 +34028,8 @@ const ChooseLayout = ({ open: r, close: n }) => {
34055
34028
  {
34056
34029
  title: o("Dual side panel"),
34057
34030
  description: o("Suitable for larger screens. Blocks settings is always visible."),
34058
- selected: a === LAYOUT_MODE.DUAL_SIDE_PANEL,
34059
- onSelect: () => l(LAYOUT_MODE.DUAL_SIDE_PANEL),
34031
+ selected: a === "DUAL_SIDE_PANEL",
34032
+ onSelect: () => l("DUAL_SIDE_PANEL"),
34060
34033
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
34061
34034
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
34062
34035
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
@@ -34101,7 +34074,7 @@ const ChooseLayout = ({ open: r, close: n }) => {
34101
34074
  };
34102
34075
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { children: [
34103
34076
  /* @__PURE__ */ jsxRuntimeExports.jsx(DialogTrigger, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
34104
- /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { variant: "ghost", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyboardIcon, {}) }) }),
34077
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { className: "mb-2 rounded-lg p-2 transition-colors", variant: "ghost", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyboardIcon, { className: "size-4" }) }) }),
34105
34078
  /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: r("Keyboard shortcuts") }) })
34106
34079
  ] }) }),
34107
34080
  /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogContent, { className: "border-border sm:max-w-[525px]", children: [
@@ -34118,31 +34091,195 @@ const ChooseLayout = ({ open: r, close: n }) => {
34118
34091
  ] }) })
34119
34092
  ] })
34120
34093
  ] });
34121
- }, TopBar = lazy(() => import("./Topbar-4sclJZrd.js")), useAutoSave = () => {
34094
+ }, ViewProviderData = ({ provider: r, onClose: n }) => {
34095
+ const { t: o } = useTranslation(), [a, i] = useState$1(null), l = useBuilderProp("onError", noop$1);
34096
+ return useEffect$1(() => {
34097
+ r && (r.mockFn ? r.mockFn : r.dataFn)().then((u) => i(u));
34098
+ }, [r]), r ? /* @__PURE__ */ jsxRuntimeExports.jsx(Dialog, { onOpenChange: (c) => c ? "" : n(), defaultOpen: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogContent, { className: "border-border", children: [
34099
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogHeader, { children: [
34100
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogTitle, { className: "text-foreground", children: [
34101
+ o("data_provider"),
34102
+ ": ",
34103
+ r.name
34104
+ ] }),
34105
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DialogDescription, { children: r.description })
34106
+ ] }),
34107
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: l, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34108
+ JsonView,
34109
+ {
34110
+ data: a,
34111
+ shouldExpandNode: allExpanded,
34112
+ style: {
34113
+ ...defaultStyles,
34114
+ container: "max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",
34115
+ stringValue: "text-orange-600",
34116
+ label: "text-green-900 font-semibold pr-1 tracking-wider"
34117
+ }
34118
+ }
34119
+ ) })
34120
+ ] }) }) : null;
34121
+ };
34122
+ function RemoveProviderConfirmation({
34123
+ children: r,
34124
+ name: n,
34125
+ onRemove: o
34126
+ }) {
34127
+ const { t: a } = useTranslation();
34128
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialog, { children: [
34129
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogTrigger, { asChild: !0, children: r }),
34130
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { children: [
34131
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogHeader, { children: [
34132
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
34133
+ AlertDialogTitle,
34134
+ {
34135
+ dangerouslySetInnerHTML: { __html: a("remove_provider_confirmation").replace("{name}", n) }
34136
+ }
34137
+ ),
34138
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogDescription, { children: a("remove_provider_warning") })
34139
+ ] }),
34140
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogFooter, { children: [
34141
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogCancel, { children: a("cancel") }),
34142
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogAction, { onClick: o, className: "bg-red-600 hover:bg-red-700", children: a("remove") })
34143
+ ] })
34144
+ ] })
34145
+ ] });
34146
+ }
34147
+ const PageDataProviders = () => {
34148
+ const { t: r } = useTranslation(), n = useMemo$1(() => getChaiDataProviders(), []), [o, a] = usePageDataProviders(), [, i] = useAtom$1(builderSaveStateAtom), [l, c] = useState$1(
34149
+ filter(n, (v) => map(o, "providerKey").includes(v.providerKey))
34150
+ ), [u, d] = useState$1(""), [p, m] = useState$1(null), g = filter(
34151
+ n.map((v) => map(l, "providerKey").includes(v.providerKey) ? null : { value: v.providerKey, label: v.name }),
34152
+ (v) => !isNull(v)
34153
+ ), h = (v) => {
34154
+ const S = find(n, { providerKey: v });
34155
+ c((E) => [...E, S]), a((E) => [...E, { providerKey: S.providerKey, args: {} }]), d(""), i("UNSAVED");
34156
+ }, b = (v) => {
34157
+ c((S) => filter(S, (E) => E.providerKey !== v.providerKey)), a((S) => filter(S, (E) => E.providerKey !== v.providerKey)), i("UNSAVED");
34158
+ }, x = (v) => m(v);
34159
+ return isEmpty(n) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
34160
+ r("no_data_providers"),
34161
+ /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
34162
+ /* @__PURE__ */ jsxRuntimeExports.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: r("learn_more") })
34163
+ ] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-1", children: [
34164
+ /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
34165
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-1.5 text-xs text-gray-500", children: r("add_data_providers") }) }),
34166
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Select$1, { value: u, onValueChange: (v) => h(v), children: [
34167
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SelectValue, { placeholder: r("select_provider") }) }),
34168
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectContent, { children: [
34169
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: "", children: r("choose") }),
34170
+ g.map((v) => /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: v.value, children: v.label }, v.value))
34171
+ ] })
34172
+ ] }) }),
34173
+ /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
34174
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `border-t border-border ${l.length ? "block" : "hidden"}`, children: [
34175
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "flex-1 pb-1.5 pt-4 text-xs font-medium text-gray-500", children: [
34176
+ r("page_data_providers"),
34177
+ ":"
34178
+ ] }),
34179
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-2", children: l.map((v) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
34180
+ "div",
34181
+ {
34182
+ className: "w-full rounded-lg border border-border bg-card text-card-foreground shadow-sm",
34183
+ "data-v0-t": "card",
34184
+ children: [
34185
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col space-y-1.5 px-4 pt-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
34186
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "font-medium leading-4", children: v.name }),
34187
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "pt-1 text-xs text-gray-400", children: v.description })
34188
+ ] }) }) }),
34189
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between p-2 py-2", children: [
34190
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
34191
+ "button",
34192
+ {
34193
+ onClick: () => x(v),
34194
+ className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-blue-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
34195
+ children: [
34196
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
34197
+ "svg",
34198
+ {
34199
+ xmlns: "http://www.w3.org/2000/svg",
34200
+ width: "24",
34201
+ height: "24",
34202
+ viewBox: "0 0 24 24",
34203
+ fill: "none",
34204
+ stroke: "currentColor",
34205
+ strokeWidth: "2",
34206
+ strokeLinecap: "round",
34207
+ strokeLinejoin: "round",
34208
+ className: "mr-2 h-4 w-4",
34209
+ children: [
34210
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
34211
+ /* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "3" })
34212
+ ]
34213
+ }
34214
+ ),
34215
+ r("view_data")
34216
+ ]
34217
+ }
34218
+ ),
34219
+ /* @__PURE__ */ jsxRuntimeExports.jsx(RemoveProviderConfirmation, { onRemove: () => b(v), name: v.name, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-red-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", children: [
34220
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
34221
+ "svg",
34222
+ {
34223
+ xmlns: "http://www.w3.org/2000/svg",
34224
+ width: "24",
34225
+ height: "24",
34226
+ viewBox: "0 0 24 24",
34227
+ fill: "none",
34228
+ stroke: "currentColor",
34229
+ strokeWidth: "2",
34230
+ strokeLinecap: "round",
34231
+ strokeLinejoin: "round",
34232
+ className: "mr-2 h-4 w-4",
34233
+ children: [
34234
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M3 6h18" }),
34235
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
34236
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
34237
+ ]
34238
+ }
34239
+ ),
34240
+ r("remove")
34241
+ ] }) })
34242
+ ] })
34243
+ ]
34244
+ },
34245
+ v.providerKey
34246
+ )) }),
34247
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ViewProviderData, { onClose: () => m(null), provider: p })
34248
+ ] })
34249
+ ] });
34250
+ };
34251
+ function AiFillDatabase(r) {
34252
+ return GenIcon({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z" }, child: [] }] })(r);
34253
+ }
34254
+ const TopBar = lazy(() => import("./Topbar-4ejjKoRn.js")), useAutoSave = () => {
34122
34255
  const { savePage: r } = useSavePage(), n = useBuilderProp("autoSaveSupport", !0), o = useBuilderProp("autoSaveInterval", 60);
34123
34256
  useIntervalEffect(() => {
34124
34257
  n && r();
34125
34258
  }, o * 1e3);
34126
34259
  };
34127
34260
  function useSidebarMenuItems(r) {
34128
- const n = r === LAYOUT_MODE.SINGLE_SIDE_PANEL;
34129
- return useMemo$1(() => compact([
34130
- {
34131
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Layers, { size: 20 }),
34132
- label: "sidebar.outline",
34133
- component: () => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "-mt-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Outline$1, {}) })
34134
- },
34135
- n ? { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, { size: 16 }), label: "sidebar.edit_block", component: SettingsPanel$1 } : null,
34136
- { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LightningBoltIcon, { className: "size-5" }), label: "sidebar.ai_assistant", component: AskAI },
34137
- {
34138
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(PaintBucketIcon, { size: 20 }),
34139
- label: "sidebar.theme",
34140
- component: () => /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeOptions, { showHeading: !1 })
34141
- }
34142
- ]), [r]);
34261
+ const n = r === "SINGLE_SIDE_PANEL", { t: o } = useTranslation(), a = useBuilderProp("dataBindingSupport", !1);
34262
+ return useMemo$1(() => {
34263
+ const i = [
34264
+ {
34265
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Layers, { size: 20 }),
34266
+ label: "sidebar.outline",
34267
+ component: () => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "-mt-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Outline$1, {}) })
34268
+ },
34269
+ n ? { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(GearIcon, { className: "size-5" }), label: "sidebar.edit_block", component: SettingsPanel$1 } : null,
34270
+ a ? { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(AiFillDatabase, { className: "size-3" }), label: o("Data Providers"), component: PageDataProviders } : null,
34271
+ { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LightningBoltIcon, { className: "size-5" }), label: "sidebar.ai_assistant", component: AskAI },
34272
+ {
34273
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(PaintBucketIcon, { size: 20 }),
34274
+ label: "sidebar.theme",
34275
+ component: () => /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeOptions, { showHeading: !1 })
34276
+ }
34277
+ ];
34278
+ return compact(i);
34279
+ }, [n, a]);
34143
34280
  }
34144
34281
  function isDualLayout(r) {
34145
- return r !== LAYOUT_MODE.SINGLE_SIDE_PANEL;
34282
+ return r !== "SINGLE_SIDE_PANEL";
34146
34283
  }
34147
34284
  const RootLayout = () => {
34148
34285
  const [r, n] = useState$1(0), [o] = useLayoutVariant(), [a, i] = useState$1(!1);
@@ -34288,51 +34425,46 @@ const RootLayout = () => {
34288
34425
  ] }) }) });
34289
34426
  };
34290
34427
  export {
34291
- useSelectedBlockAllClasses as $,
34428
+ useStylingBreakpoint as $,
34292
34429
  AddBlocksPanel$1 as A,
34293
34430
  BlockSettings as B,
34294
34431
  ChaiSelect$1 as C,
34295
34432
  DefaultChaiBlocks as D,
34296
- useAddBlock as E,
34433
+ useAddClassesToBlocks as E,
34297
34434
  FaCheck as F,
34298
- useAddClassesToBlocks as G,
34299
- useCanvasWidth as H,
34435
+ useCanvasWidth as G,
34436
+ useCanvasZoom as H,
34300
34437
  ImportHTML$1 as I,
34301
- useCanvasZoom as J,
34302
- useCopyBlockIds as K,
34303
- useCopyToClipboard as L,
34304
- useCurrentPage as M,
34305
- useCutBlockIds as N,
34438
+ useCopyBlockIds as J,
34439
+ useCopyToClipboard as K,
34440
+ useCurrentPage as L,
34441
+ useCutBlockIds as M,
34442
+ useDarkMode as N,
34306
34443
  Outline$1 as O,
34307
- useDarkMode as P,
34308
- useDuplicateBlocks as Q,
34309
- useGetPageData as R,
34310
- useHiddenBlockIds as S,
34444
+ useDuplicateBlocks as P,
34445
+ useHiddenBlockIds as Q,
34446
+ useHighlightBlockId as R,
34447
+ usePasteBlocks as S,
34311
34448
  ThemeOptions as T,
34312
34449
  UILibraries as U,
34313
- useHighlightBlockId as V,
34314
- usePasteBlocks as W,
34315
- useBrandingOptions as X,
34316
- useRemoveBlocks as Y,
34317
- useRemoveClassesFromBlocks as Z,
34318
- useSelectedBlockCurrentClasses as _,
34450
+ useBrandingOptions as V,
34451
+ useRemoveBlocks as W,
34452
+ useRemoveClassesFromBlocks as X,
34453
+ useSelectedBlockCurrentClasses as Y,
34454
+ useSelectedBlockAllClasses as Z,
34455
+ useSelectedBlock as _,
34319
34456
  useSelectedBlockIds as a,
34320
- useSelectedBlock as a0,
34321
- useStylingBreakpoint as a1,
34322
- useUILibraryBlocks as a2,
34323
- useStylingState as a3,
34324
- useSelectedBlocksDisplayChild as a4,
34325
- useAllBlocks as a5,
34326
- useActivePanel as a6,
34327
- useAddBlockParent as a7,
34328
- useSelectedBreakpoints as a8,
34329
- useSelectedStylingBlocks as a9,
34330
- useLayoutVariant as aa,
34331
- useBlocksStoreUndoableActions as ab,
34457
+ useUILibraryBlocks as a0,
34458
+ useStylingState as a1,
34459
+ useSelectedBlocksDisplayChild as a2,
34460
+ useSelectedBreakpoints as a3,
34461
+ useSelectedStylingBlocks as a4,
34462
+ useLayoutVariant as a5,
34463
+ useBlocksStoreUndoableActions as a6,
34332
34464
  useUpdateBlocksProps as b,
34333
34465
  useUpdateBlocksPropsRealtime as c,
34334
- useBuilderProp as d,
34335
- useSavePage as e,
34466
+ useSavePage as d,
34467
+ useBuilderProp as e,
34336
34468
  usePreviewMode as f,
34337
34469
  CanvasArea$1 as g,
34338
34470
  BlockStyling as h,
@@ -34347,11 +34479,11 @@ export {
34347
34479
  DarkMode as q,
34348
34480
  Breakpoints as r,
34349
34481
  UndoRedo as s,
34350
- getBlocksFromHTML as t,
34482
+ getClassValueAndUnit as t,
34351
34483
  useCodeEditor as u,
34352
- useBlocksStore as v,
34353
- useUndoManager as w,
34354
- useBuilderReset as x,
34355
- useReadOnlyMode as y,
34356
- useActiveModal as z
34484
+ getBlocksFromHTML as v,
34485
+ useBlocksStore as w,
34486
+ useUndoManager as x,
34487
+ useBuilderReset as y,
34488
+ useAddBlock as z
34357
34489
  };
package/dist/ui.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-JYMCiFoE.cjs"),V=require("react"),z=require("@radix-ui/react-toggle"),p=require("class-variance-authority"),e=require("./context-menu--DZnHfxj.cjs"),c=require("@radix-ui/react-icons"),F=require("@radix-ui/react-menubar"),u=require("./select-Siy0CQZ0.cjs"),_=require("@radix-ui/react-dialog");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");require("@radix-ui/react-select");function m(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const i=m(V),x=m(z),n=m(F),d=m(_),g=p.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),b=i.forwardRef(({className:t,variant:o,size:r,...s},l)=>a.jsxRuntimeExports.jsx(x.Root,{ref:l,className:e.cn(g({variant:o,size:r,className:t})),...s}));b.displayName=x.Root.displayName;const O=p.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),f=i.forwardRef(({className:t,variant:o,...r},s)=>a.jsxRuntimeExports.jsx("div",{ref:s,role:"alert",className:e.cn(O({variant:o}),t),...r}));f.displayName="Alert";const C=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("h5",{ref:r,className:e.cn("mb-1 font-medium leading-none tracking-tight",t),...o}));C.displayName="AlertTitle";const M=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("div",{ref:r,className:e.cn("text-sm [&_p]:leading-relaxed",t),...o}));M.displayName="AlertDescription";const B=n.Menu,J=n.Group,K=n.Portal,Q=n.Sub,U=n.RadioGroup,h=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Root,{ref:r,className:e.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...o}));h.displayName=n.Root.displayName;const S=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Trigger,{ref:r,className:e.cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...o}));S.displayName=n.Trigger.displayName;const j=i.forwardRef(({className:t,inset:o,children:r,...s},l)=>a.jsxRuntimeExports.jsxs(n.SubTrigger,{ref:l,className:e.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",t),...s,children:[r,a.jsxRuntimeExports.jsx(c.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));j.displayName=n.SubTrigger.displayName;const D=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.SubContent,{ref:r,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));D.displayName=n.SubContent.displayName;const v=i.forwardRef(({className:t,align:o="start",alignOffset:r=-4,sideOffset:s=8,...l},H)=>a.jsxRuntimeExports.jsx(n.Portal,{children:a.jsxRuntimeExports.jsx(n.Content,{ref:H,align:o,alignOffset:r,sideOffset:s,className:e.cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...l})}));v.displayName=n.Content.displayName;const T=i.forwardRef(({className:t,inset:o,...r},s)=>a.jsxRuntimeExports.jsx(n.Item,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",t),...r}));T.displayName=n.Item.displayName;const R=i.forwardRef(({className:t,children:o,checked:r,...s},l)=>a.jsxRuntimeExports.jsxs(n.CheckboxItem,{ref:l,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...s,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(c.CheckIcon,{className:"h-4 w-4"})})}),o]}));R.displayName=n.CheckboxItem.displayName;const y=i.forwardRef(({className:t,children:o,...r},s)=>a.jsxRuntimeExports.jsxs(n.RadioItem,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(c.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),o]}));y.displayName=n.RadioItem.displayName;const w=i.forwardRef(({className:t,inset:o,...r},s)=>a.jsxRuntimeExports.jsx(n.Label,{ref:s,className:e.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...r}));w.displayName=n.Label.displayName;const N=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Separator,{ref:r,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...o}));N.displayName=n.Separator.displayName;const I=({className:t,...o})=>a.jsxRuntimeExports.jsx("span",{className:e.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...o});I.displayname="MenubarShortcut";const W=d.Root,X=d.Trigger,Y=d.Close,A=({className:t,...o})=>a.jsxRuntimeExports.jsx(d.Portal,{className:e.cn(t),...o});A.displayName=d.Portal.displayName;const E=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Overlay,{className:e.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:r}));E.displayName=d.Overlay.displayName;const Z=p.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),P=i.forwardRef(({side:t="right",className:o,children:r,...s},l)=>a.jsxRuntimeExports.jsxs(A,{children:[a.jsxRuntimeExports.jsx(E,{}),a.jsxRuntimeExports.jsxs(d.Content,{ref:l,className:e.cn(Z({side:t}),o),...s,children:[r,a.jsxRuntimeExports.jsxs(d.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsxRuntimeExports.jsx(c.Cross2Icon,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=d.Content.displayName;const q=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:e.cn("flex flex-col space-y-2 text-center sm:text-left",t),...o});q.displayName="SheetHeader";const k=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:e.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});k.displayName="SheetFooter";const G=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Title,{ref:r,className:e.cn("text-lg font-semibold text-foreground",t),...o}));G.displayName=d.Title.displayName;const L=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Description,{ref:r,className:e.cn("text-sm text-muted-foreground",t),...o}));L.displayName=d.Description.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.Badge=e.Badge;exports.Button=e.Button;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Separator=e.Separator;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.reducer=e.reducer;exports.toast=e.toast;exports.useToast=e.useToast;exports.Select=u.Select;exports.SelectContent=u.SelectContent;exports.SelectGroup=u.SelectGroup;exports.SelectItem=u.SelectItem;exports.SelectLabel=u.SelectLabel;exports.SelectSeparator=u.SelectSeparator;exports.SelectTrigger=u.SelectTrigger;exports.SelectValue=u.SelectValue;exports.Alert=f;exports.AlertDescription=M;exports.AlertTitle=C;exports.Menubar=h;exports.MenubarCheckboxItem=R;exports.MenubarContent=v;exports.MenubarGroup=J;exports.MenubarItem=T;exports.MenubarLabel=w;exports.MenubarMenu=B;exports.MenubarPortal=K;exports.MenubarRadioGroup=U;exports.MenubarRadioItem=y;exports.MenubarSeparator=N;exports.MenubarShortcut=I;exports.MenubarSub=Q;exports.MenubarSubContent=D;exports.MenubarSubTrigger=j;exports.MenubarTrigger=S;exports.Sheet=W;exports.SheetClose=Y;exports.SheetContent=P;exports.SheetDescription=L;exports.SheetFooter=k;exports.SheetHeader=q;exports.SheetTitle=G;exports.SheetTrigger=X;exports.Toggle=b;exports.toggleVariants=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-JYMCiFoE.cjs"),H=require("react"),V=require("@radix-ui/react-toggle"),m=require("class-variance-authority"),e=require("./context-menu-sQn7ryJ6.cjs"),u=require("@radix-ui/react-icons"),z=require("@radix-ui/react-menubar"),F=require("@radix-ui/react-dialog");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const i=c(H),p=c(V),n=c(z),d=c(F),x=m.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),g=i.forwardRef(({className:t,variant:o,size:r,...s},l)=>a.jsxRuntimeExports.jsx(p.Root,{ref:l,className:e.cn(x({variant:o,size:r,className:t})),...s}));g.displayName=p.Root.displayName;const _=m.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),b=i.forwardRef(({className:t,variant:o,...r},s)=>a.jsxRuntimeExports.jsx("div",{ref:s,role:"alert",className:e.cn(_({variant:o}),t),...r}));b.displayName="Alert";const f=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("h5",{ref:r,className:e.cn("mb-1 font-medium leading-none tracking-tight",t),...o}));f.displayName="AlertTitle";const C=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("div",{ref:r,className:e.cn("text-sm [&_p]:leading-relaxed",t),...o}));C.displayName="AlertDescription";const O=n.Menu,B=n.Group,J=n.Portal,K=n.Sub,Q=n.RadioGroup,M=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Root,{ref:r,className:e.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...o}));M.displayName=n.Root.displayName;const h=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Trigger,{ref:r,className:e.cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...o}));h.displayName=n.Trigger.displayName;const S=i.forwardRef(({className:t,inset:o,children:r,...s},l)=>a.jsxRuntimeExports.jsxs(n.SubTrigger,{ref:l,className:e.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",t),...s,children:[r,a.jsxRuntimeExports.jsx(u.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));S.displayName=n.SubTrigger.displayName;const j=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.SubContent,{ref:r,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));j.displayName=n.SubContent.displayName;const D=i.forwardRef(({className:t,align:o="start",alignOffset:r=-4,sideOffset:s=8,...l},L)=>a.jsxRuntimeExports.jsx(n.Portal,{children:a.jsxRuntimeExports.jsx(n.Content,{ref:L,align:o,alignOffset:r,sideOffset:s,className:e.cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...l})}));D.displayName=n.Content.displayName;const v=i.forwardRef(({className:t,inset:o,...r},s)=>a.jsxRuntimeExports.jsx(n.Item,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",t),...r}));v.displayName=n.Item.displayName;const T=i.forwardRef(({className:t,children:o,checked:r,...s},l)=>a.jsxRuntimeExports.jsxs(n.CheckboxItem,{ref:l,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...s,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(u.CheckIcon,{className:"h-4 w-4"})})}),o]}));T.displayName=n.CheckboxItem.displayName;const R=i.forwardRef(({className:t,children:o,...r},s)=>a.jsxRuntimeExports.jsxs(n.RadioItem,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(u.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),o]}));R.displayName=n.RadioItem.displayName;const y=i.forwardRef(({className:t,inset:o,...r},s)=>a.jsxRuntimeExports.jsx(n.Label,{ref:s,className:e.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...r}));y.displayName=n.Label.displayName;const w=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Separator,{ref:r,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...o}));w.displayName=n.Separator.displayName;const N=({className:t,...o})=>a.jsxRuntimeExports.jsx("span",{className:e.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...o});N.displayname="MenubarShortcut";const U=d.Root,W=d.Trigger,X=d.Close,I=({className:t,...o})=>a.jsxRuntimeExports.jsx(d.Portal,{className:e.cn(t),...o});I.displayName=d.Portal.displayName;const A=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Overlay,{className:e.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:r}));A.displayName=d.Overlay.displayName;const Y=m.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),E=i.forwardRef(({side:t="right",className:o,children:r,...s},l)=>a.jsxRuntimeExports.jsxs(I,{children:[a.jsxRuntimeExports.jsx(A,{}),a.jsxRuntimeExports.jsxs(d.Content,{ref:l,className:e.cn(Y({side:t}),o),...s,children:[r,a.jsxRuntimeExports.jsxs(d.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsxRuntimeExports.jsx(u.Cross2Icon,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));E.displayName=d.Content.displayName;const P=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:e.cn("flex flex-col space-y-2 text-center sm:text-left",t),...o});P.displayName="SheetHeader";const q=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:e.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});q.displayName="SheetFooter";const k=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Title,{ref:r,className:e.cn("text-lg font-semibold text-foreground",t),...o}));k.displayName=d.Title.displayName;const G=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Description,{ref:r,className:e.cn("text-sm text-muted-foreground",t),...o}));G.displayName=d.Description.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.Badge=e.Badge;exports.Button=e.Button;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Separator=e.Separator;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.reducer=e.reducer;exports.toast=e.toast;exports.useToast=e.useToast;exports.Alert=b;exports.AlertDescription=C;exports.AlertTitle=f;exports.Menubar=M;exports.MenubarCheckboxItem=T;exports.MenubarContent=D;exports.MenubarGroup=B;exports.MenubarItem=v;exports.MenubarLabel=y;exports.MenubarMenu=O;exports.MenubarPortal=J;exports.MenubarRadioGroup=Q;exports.MenubarRadioItem=R;exports.MenubarSeparator=w;exports.MenubarShortcut=N;exports.MenubarSub=K;exports.MenubarSubContent=j;exports.MenubarSubTrigger=S;exports.MenubarTrigger=h;exports.Sheet=U;exports.SheetClose=X;exports.SheetContent=E;exports.SheetDescription=G;exports.SheetFooter=q;exports.SheetHeader=P;exports.SheetTitle=k;exports.SheetTrigger=W;exports.Toggle=g;exports.toggleVariants=x;