@chaibuilder/sdk 1.2.64 → 1.2.66

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.
Files changed (139) hide show
  1. package/dist/AddBlocks-Mm5byzEC.js +124 -0
  2. package/dist/AddBlocks-jaxiAG4L.cjs +1 -0
  3. package/dist/CanvasArea-8NXGRRYC.js +137 -0
  4. package/dist/CanvasArea-SkeoJz9W.cjs +1 -0
  5. package/dist/{CodeEditor-37od44Ou.js → CodeEditor-3l-mFvg4.js} +61 -46
  6. package/dist/CodeEditor-o-CkvDnY.cjs +1 -0
  7. package/dist/STRINGS--j49GZJP.js +7 -0
  8. package/dist/STRINGS-gPz7CUOk.cjs +1 -0
  9. package/dist/SettingsPanel-2uYGx-MQ.cjs +1 -0
  10. package/dist/SettingsPanel-Q3xQQm81.js +82 -0
  11. package/dist/{SidePanels-UQj0XTnb.js → SidePanels-JyziIpDA.js} +125 -116
  12. package/dist/SidePanels-d04PONzN.cjs +1 -0
  13. package/dist/{Topbar-1O05wogM.js → Topbar-Xgd6YI66.js} +68 -57
  14. package/dist/Topbar-eIenyfZu.cjs +1 -0
  15. package/dist/UILibrariesPanel-ADjJse3_.cjs +1 -0
  16. package/dist/{UILibrariesPanel-vshiYI6G.js → UILibrariesPanel-a7TrMuAU.js} +98 -86
  17. package/dist/{UnsplashImages-Eq7hprBO.js → UnsplashImages-6Bj8nQ8n.js} +65 -49
  18. package/dist/UnsplashImages-hLdMtY12.cjs +1 -0
  19. package/dist/{UploadImages-lco2Tea3.js → UploadImages-4PxhlZMB.js} +58 -44
  20. package/dist/UploadImages-uL2R7fju.cjs +1 -0
  21. package/dist/badge-7BVT3zxN.cjs +1 -0
  22. package/dist/badge-pJqQSA13.js +23 -0
  23. package/dist/context-menu-_8TFbFEJ.cjs +1 -0
  24. package/dist/context-menu-sks9vdzC.js +906 -0
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.d.ts +45 -21
  27. package/dist/core.js +93 -79
  28. package/dist/iconBase-vJD0OXxU.cjs +1 -0
  29. package/dist/iconBase-zweRWSz0.js +323 -0
  30. package/dist/index-Dgo2PNEV.js +33210 -0
  31. package/dist/index-jhNzBWrV.cjs +223 -0
  32. package/dist/jsx-runtime-JYMCiFoE.cjs +27 -0
  33. package/dist/{jsx-runtime-WbnYoNE9.js → jsx-runtime-Sp0orL4X.js} +106 -109
  34. package/dist/plugin-P0tpo_XZ.cjs +1 -0
  35. package/dist/plugin-_F-KZp1i.cjs +1 -0
  36. package/dist/plugin-f5uJtdXY.js +43 -0
  37. package/dist/plugin-sJ3Hzvpv.js +57 -0
  38. package/dist/render.cjs +3 -1
  39. package/dist/render.d.ts +19 -52
  40. package/dist/render.js +136 -183
  41. package/dist/select-JW3OMYm-.js +75 -0
  42. package/dist/select-fXj5tdMX.cjs +1 -0
  43. package/dist/separator-hT24N-xp.cjs +1 -0
  44. package/dist/separator-sgwOa1FE.js +18 -0
  45. package/dist/style.css +2 -2
  46. package/dist/tailwind.cjs +1 -1
  47. package/dist/tailwind.d.ts +41 -1
  48. package/dist/tailwind.js +16 -8
  49. package/dist/ui.cjs +1 -1
  50. package/dist/ui.d.ts +0 -10
  51. package/dist/ui.js +345 -163
  52. package/dist/web-blocks.cjs +1 -1
  53. package/dist/web-blocks.d.ts +1 -1
  54. package/dist/web-blocks.js +489 -724
  55. package/package.json +15 -45
  56. package/dist/AddBlocks-6dJmFSgk.js +0 -142
  57. package/dist/AddBlocks-doCNVVbk.cjs +0 -1
  58. package/dist/CanvasArea-kB6ky_uL.js +0 -164
  59. package/dist/CanvasArea-kdnkFfKR.cjs +0 -1
  60. package/dist/CodeEditor-ypUx3RAV.cjs +0 -1
  61. package/dist/CurrentPage-Ekl5Cwbv.cjs +0 -1
  62. package/dist/CurrentPage-bHq9Uusr.js +0 -108
  63. package/dist/Functions-7jnEwJyw.js +0 -15
  64. package/dist/Functions-N3yhPYKY.cjs +0 -1
  65. package/dist/MODIFIERS-fd5XOmum.js +0 -60
  66. package/dist/MODIFIERS-mVmfEGgo.cjs +0 -1
  67. package/dist/PagesPanel-SMHrEmCb.cjs +0 -1
  68. package/dist/PagesPanel-wIPAyjJK.js +0 -66
  69. package/dist/ProjectPanel-L-SlDizV.js +0 -87
  70. package/dist/ProjectPanel-YruLal65.cjs +0 -1
  71. package/dist/Settings-WXkCyhAv.js +0 -2380
  72. package/dist/Settings-_5VHcgFC.cjs +0 -1
  73. package/dist/SidePanels-UeIZB3e1.cjs +0 -1
  74. package/dist/StaticCanvas-7C52tXAv.js +0 -749
  75. package/dist/StaticCanvas-ll9VTXI5.cjs +0 -60
  76. package/dist/ThemeConfigPanel-_86vVxLz.cjs +0 -1
  77. package/dist/ThemeConfigPanel-gw8B2zvx.js +0 -194
  78. package/dist/Topbar-gb17oHdJ.cjs +0 -1
  79. package/dist/UILibrariesPanel-03Y3F3A_.cjs +0 -1
  80. package/dist/UnsplashImages-6UjgojvF.cjs +0 -1
  81. package/dist/UploadImages-3h0cRsvr.cjs +0 -1
  82. package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
  83. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
  84. package/dist/add-page-modal-qr7rvJzN.js +0 -106
  85. package/dist/add-page-modal-rOKavDFX.cjs +0 -1
  86. package/dist/atoms-KQpaDRnF.cjs +0 -1
  87. package/dist/atoms-Oomqut88.js +0 -6
  88. package/dist/confirm-alert-P6TAevaP.js +0 -60
  89. package/dist/confirm-alert-v1lG8ex4.cjs +0 -1
  90. package/dist/controls-rRZhz0vu.cjs +0 -1
  91. package/dist/controls-yjgoZzB6.js +0 -199
  92. package/dist/delete-page-modal-55oioI9i.js +0 -85
  93. package/dist/delete-page-modal-wdAiMVnL.cjs +0 -1
  94. package/dist/email-blocks.cjs +0 -1
  95. package/dist/email-blocks.d.ts +0 -3
  96. package/dist/email-blocks.js +0 -294
  97. package/dist/email.cjs +0 -1
  98. package/dist/email.d.ts +0 -171
  99. package/dist/email.js +0 -75
  100. package/dist/empty-slot-Lsxjts7Q.js +0 -6
  101. package/dist/empty-slot-Sy930lX6.cjs +0 -1
  102. package/dist/form-4jTocVbZ.cjs +0 -1
  103. package/dist/form-5ke_lZv8.js +0 -125
  104. package/dist/functions--tdNWQDW.js +0 -30
  105. package/dist/functions-EVUeSwX1.cjs +0 -1
  106. package/dist/html-to-json-_01DXd-a.js +0 -192
  107. package/dist/html-to-json-ndxaXRT8.cjs +0 -1
  108. package/dist/index--mLLy7QQ.cjs +0 -1
  109. package/dist/index-6w-6HYBd.cjs +0 -1
  110. package/dist/index-VBXQixVm.js +0 -117
  111. package/dist/index-aeDphKpP.cjs +0 -1
  112. package/dist/index-audsIPBC.cjs +0 -231
  113. package/dist/index-b33n_-zO.js +0 -3141
  114. package/dist/index-e0c8PmRQ.js +0 -205
  115. package/dist/index-fnkMn4Pk.js +0 -2201
  116. package/dist/index-gi1LIOCw.cjs +0 -1
  117. package/dist/index-wRAIA8zZ.js +0 -80248
  118. package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
  119. package/dist/lib.cjs +0 -3
  120. package/dist/lib.d.ts +0 -80
  121. package/dist/lib.js +0 -1350
  122. package/dist/page-viewer-t44DP65U.js +0 -112
  123. package/dist/page-viewer-wU7T0f48.cjs +0 -1
  124. package/dist/plugin-2hf9pCRy.cjs +0 -1
  125. package/dist/plugin-wDnsBVPp.js +0 -54
  126. package/dist/project-general-setting-87cX9vvO.cjs +0 -1
  127. package/dist/project-general-setting-NEkNjf7V.js +0 -81
  128. package/dist/project-seo-setting-YmspOYsF.js +0 -83
  129. package/dist/project-seo-setting-o0V9acCV.cjs +0 -1
  130. package/dist/server.cjs +0 -1
  131. package/dist/server.d.ts +0 -299
  132. package/dist/server.js +0 -216
  133. package/dist/single-page-detail-27UjWK8L.cjs +0 -1
  134. package/dist/single-page-detail-jHzoDP7B.js +0 -220
  135. package/dist/studio.cjs +0 -1
  136. package/dist/studio.d.ts +0 -176
  137. package/dist/studio.js +0 -55
  138. package/dist/utils-D_vtk3zK.cjs +0 -1
  139. package/dist/utils-VpVqnC9m.js +0 -1075
@@ -0,0 +1,906 @@
1
+ import { j as o } from "./jsx-runtime-Sp0orL4X.js";
2
+ import * as D from "@radix-ui/react-switch";
3
+ import * as r from "react";
4
+ import * as x from "@radix-ui/react-accordion";
5
+ import { ChevronDownIcon as Y, Cross2Icon as A, ChevronRightIcon as I, CheckIcon as M, DotFilledIcon as P, MagnifyingGlassIcon as $ } from "@radix-ui/react-icons";
6
+ import { cva as w } from "class-variance-authority";
7
+ import * as c from "@radix-ui/react-alert-dialog";
8
+ import { Slot as J } from "@radix-ui/react-slot";
9
+ import * as z from "@radix-ui/react-label";
10
+ import * as u from "@radix-ui/react-scroll-area";
11
+ import * as g from "@radix-ui/react-tabs";
12
+ import * as b from "@radix-ui/react-tooltip";
13
+ import * as y from "@radix-ui/react-popover";
14
+ import * as j from "@radix-ui/react-hover-card";
15
+ import * as n from "@radix-ui/react-dropdown-menu";
16
+ import * as f from "@radix-ui/react-toast";
17
+ import { Command as m } from "cmdk";
18
+ import * as p from "@radix-ui/react-dialog";
19
+ import * as i from "@radix-ui/react-context-menu";
20
+ import { clsx as K } from "clsx";
21
+ import { twMerge as W } from "tailwind-merge";
22
+ const s = (...e) => W(K(e)), Z = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
23
+ D.Root,
24
+ {
25
+ className: s(
26
+ "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
27
+ e
28
+ ),
29
+ ...t,
30
+ ref: a,
31
+ children: /* @__PURE__ */ o.jsx(
32
+ D.Thumb,
33
+ {
34
+ className: s(
35
+ "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
36
+ )
37
+ }
38
+ )
39
+ }
40
+ ));
41
+ Z.displayName = D.Root.displayName;
42
+ const k = w(
43
+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
44
+ {
45
+ variants: {
46
+ variant: {
47
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
48
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
49
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
50
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
51
+ ghost: "hover:bg-accent hover:text-accent-foreground",
52
+ link: "text-primary underline-offset-4 hover:underline"
53
+ },
54
+ size: {
55
+ default: "h-9 px-4 py-2",
56
+ sm: "h-8 rounded-md px-3 text-xs",
57
+ lg: "h-10 rounded-md px-8",
58
+ icon: "h-9 w-9"
59
+ }
60
+ },
61
+ defaultVariants: {
62
+ variant: "default",
63
+ size: "default"
64
+ }
65
+ }
66
+ ), ee = r.forwardRef(
67
+ ({ className: e, variant: t, size: a, asChild: d = !1, ...l }, C) => {
68
+ const X = d ? J : "button";
69
+ return /* @__PURE__ */ o.jsx(X, { className: s(k({ variant: t, size: a, className: e })), ref: C, ...l });
70
+ }
71
+ );
72
+ ee.displayName = "Button";
73
+ const Ct = x.Root, te = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(x.Item, { ref: a, className: s("border-b", e), ...t }));
74
+ te.displayName = "AccordionItem";
75
+ const ae = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsx(x.Header, { className: "flex", children: /* @__PURE__ */ o.jsxs(
76
+ x.Trigger,
77
+ {
78
+ ref: d,
79
+ className: s(
80
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
81
+ e
82
+ ),
83
+ ...a,
84
+ children: [
85
+ t,
86
+ a.hideArrow ? null : /* @__PURE__ */ o.jsx(Y, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
87
+ ]
88
+ }
89
+ ) }));
90
+ ae.displayName = x.Trigger.displayName;
91
+ const oe = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsx(
92
+ x.Content,
93
+ {
94
+ ref: d,
95
+ className: s(
96
+ "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
97
+ e
98
+ ),
99
+ ...a,
100
+ children: /* @__PURE__ */ o.jsx("div", { className: "pb-4 pt-0", children: t })
101
+ }
102
+ ));
103
+ oe.displayName = x.Content.displayName;
104
+ const se = w(
105
+ "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",
106
+ {
107
+ variants: {
108
+ variant: {
109
+ default: "bg-background text-foreground",
110
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
111
+ }
112
+ },
113
+ defaultVariants: {
114
+ variant: "default"
115
+ }
116
+ }
117
+ ), re = r.forwardRef(({ className: e, variant: t, ...a }, d) => /* @__PURE__ */ o.jsx("div", { ref: d, role: "alert", className: s(se({ variant: t }), e), ...a }));
118
+ re.displayName = "Alert";
119
+ const de = r.forwardRef(
120
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("h5", { ref: a, className: s("mb-1 font-medium leading-none tracking-tight", e), ...t })
121
+ );
122
+ de.displayName = "AlertTitle";
123
+ const ne = r.forwardRef(
124
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("text-sm [&_p]:leading-relaxed", e), ...t })
125
+ );
126
+ ne.displayName = "AlertDescription";
127
+ const Rt = c.Root, Tt = c.Trigger, _ = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx(c.Portal, { className: s(e), ...t });
128
+ _.displayName = c.Portal.displayName;
129
+ const O = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
130
+ c.Overlay,
131
+ {
132
+ className: s(
133
+ "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",
134
+ e
135
+ ),
136
+ ...t,
137
+ ref: a
138
+ }
139
+ ));
140
+ O.displayName = c.Overlay.displayName;
141
+ const ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsxs(_, { children: [
142
+ /* @__PURE__ */ o.jsx(O, {}),
143
+ /* @__PURE__ */ o.jsx(
144
+ c.Content,
145
+ {
146
+ ref: a,
147
+ className: s(
148
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
149
+ e
150
+ ),
151
+ ...t
152
+ }
153
+ )
154
+ ] }));
155
+ ie.displayName = c.Content.displayName;
156
+ const le = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
157
+ le.displayName = "AlertDialogHeader";
158
+ const ce = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
159
+ ce.displayName = "AlertDialogFooter";
160
+ const me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(c.Title, { ref: a, className: s("text-lg font-semibold", e), ...t }));
161
+ me.displayName = c.Title.displayName;
162
+ const pe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(c.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
163
+ pe.displayName = c.Description.displayName;
164
+ const fe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(c.Action, { ref: a, className: s(k(), e), ...t }));
165
+ fe.displayName = c.Action.displayName;
166
+ const ue = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
167
+ c.Cancel,
168
+ {
169
+ ref: a,
170
+ className: s(k({ variant: "outline" }), "mt-2 sm:mt-0", e),
171
+ ...t
172
+ }
173
+ ));
174
+ ue.displayName = c.Cancel.displayName;
175
+ const xe = p.Root, Dt = p.Trigger, E = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx(p.Portal, { className: s(e), ...t });
176
+ E.displayName = p.Portal.displayName;
177
+ const L = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
178
+ p.Overlay,
179
+ {
180
+ ref: a,
181
+ className: s(
182
+ "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",
183
+ e
184
+ ),
185
+ ...t
186
+ }
187
+ ));
188
+ L.displayName = p.Overlay.displayName;
189
+ const V = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(E, { children: [
190
+ /* @__PURE__ */ o.jsx(L, {}),
191
+ /* @__PURE__ */ o.jsxs(
192
+ p.Content,
193
+ {
194
+ ref: d,
195
+ className: s(
196
+ "fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
197
+ e
198
+ ),
199
+ ...a,
200
+ children: [
201
+ t,
202
+ /* @__PURE__ */ o.jsxs(p.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-accent data-[state=open]:text-muted-foreground", children: [
203
+ /* @__PURE__ */ o.jsx(A, { className: "h-4 w-4" }),
204
+ /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
205
+ ] })
206
+ ]
207
+ }
208
+ )
209
+ ] }));
210
+ V.displayName = p.Content.displayName;
211
+ const ge = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
212
+ ge.displayName = "DialogHeader";
213
+ const be = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
214
+ be.displayName = "DialogFooter";
215
+ const Ne = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
216
+ p.Title,
217
+ {
218
+ ref: a,
219
+ className: s("text-lg font-semibold leading-none tracking-tight", e),
220
+ ...t
221
+ }
222
+ ));
223
+ Ne.displayName = p.Title.displayName;
224
+ const ye = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(p.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
225
+ ye.displayName = p.Description.displayName;
226
+ const ve = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
227
+ ve.displayName = "Card";
228
+ const he = r.forwardRef(
229
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("flex flex-col space-y-1.5 p-6", e), ...t })
230
+ );
231
+ he.displayName = "CardHeader";
232
+ const we = r.forwardRef(
233
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("h3", { ref: a, className: s("font-semibold leading-none tracking-tight", e), ...t })
234
+ );
235
+ we.displayName = "CardTitle";
236
+ const je = r.forwardRef(
237
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("p", { ref: a, className: s("text-sm text-muted-foreground", e), ...t })
238
+ );
239
+ je.displayName = "CardDescription";
240
+ const Ce = r.forwardRef(
241
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("p-6 pt-0", e), ...t })
242
+ );
243
+ Ce.displayName = "CardContent";
244
+ const Re = r.forwardRef(
245
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s(" flex items-center p-6 pt-0", e), ...t })
246
+ );
247
+ Re.displayName = "CardFooter";
248
+ const Te = r.forwardRef(({ className: e, type: t, ...a }, d) => /* @__PURE__ */ o.jsx(
249
+ "input",
250
+ {
251
+ type: t,
252
+ className: s(
253
+ "flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
254
+ e
255
+ ),
256
+ ref: d,
257
+ ...a,
258
+ autoCapitalize: "off",
259
+ autoCorrect: "off",
260
+ spellCheck: "false"
261
+ }
262
+ ));
263
+ Te.displayName = "Input";
264
+ const De = w("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), ke = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(z.Root, { ref: a, className: s(De(), e), ...t }));
265
+ ke.displayName = z.Root.displayName;
266
+ const Se = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
267
+ "textarea",
268
+ {
269
+ className: s(
270
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
271
+ e
272
+ ),
273
+ ref: a,
274
+ ...t,
275
+ autoCapitalize: "off",
276
+ autoCorrect: "off",
277
+ spellCheck: "false"
278
+ }
279
+ ));
280
+ Se.displayName = "Textarea";
281
+ const Ae = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(u.Root, { ref: d, className: s("relative overflow-hidden", e), ...a, children: [
282
+ /* @__PURE__ */ o.jsx(u.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
283
+ /* @__PURE__ */ o.jsx(G, {}),
284
+ /* @__PURE__ */ o.jsx(u.Corner, {})
285
+ ] }));
286
+ Ae.displayName = u.Root.displayName;
287
+ const G = r.forwardRef(({ className: e, orientation: t = "vertical", ...a }, d) => /* @__PURE__ */ o.jsx(
288
+ u.ScrollAreaScrollbar,
289
+ {
290
+ ref: d,
291
+ orientation: t,
292
+ className: s(
293
+ "flex touch-none select-none transition-colors",
294
+ t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
295
+ t === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
296
+ e
297
+ ),
298
+ ...a,
299
+ children: /* @__PURE__ */ o.jsx(u.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
300
+ }
301
+ ));
302
+ G.displayName = u.ScrollAreaScrollbar.displayName;
303
+ const kt = g.Root, Ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
304
+ g.List,
305
+ {
306
+ ref: a,
307
+ className: s(
308
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
309
+ e
310
+ ),
311
+ ...t
312
+ }
313
+ ));
314
+ Ie.displayName = g.List.displayName;
315
+ const Me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
316
+ g.Trigger,
317
+ {
318
+ ref: a,
319
+ className: s(
320
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all 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=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
321
+ e
322
+ ),
323
+ ...t
324
+ }
325
+ ));
326
+ Me.displayName = g.Trigger.displayName;
327
+ const Pe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
328
+ g.Content,
329
+ {
330
+ ref: a,
331
+ className: s(
332
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
333
+ e
334
+ ),
335
+ ...t
336
+ }
337
+ ));
338
+ Pe.displayName = g.Content.displayName;
339
+ const St = b.Portal, At = b.Provider, It = b.Root, Mt = b.Trigger, ze = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o.jsx(
340
+ b.Content,
341
+ {
342
+ ref: d,
343
+ sideOffset: t,
344
+ className: s(
345
+ "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
346
+ e
347
+ ),
348
+ ...a
349
+ }
350
+ ));
351
+ ze.displayName = b.Content.displayName;
352
+ const Pt = y.Root, zt = y.Trigger, _e = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o.jsx(y.Portal, { children: /* @__PURE__ */ o.jsx(
353
+ y.Content,
354
+ {
355
+ ref: l,
356
+ align: t,
357
+ sideOffset: a,
358
+ className: s(
359
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
360
+ e
361
+ ),
362
+ ...d
363
+ }
364
+ ) }));
365
+ _e.displayName = y.Content.displayName;
366
+ const _t = j.Root, Ot = j.Trigger, Oe = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o.jsx(
367
+ j.Content,
368
+ {
369
+ ref: l,
370
+ align: t,
371
+ sideOffset: a,
372
+ className: s(
373
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
374
+ e
375
+ ),
376
+ ...d
377
+ }
378
+ ));
379
+ Oe.displayName = j.Content.displayName;
380
+ const Et = n.Root, Lt = n.Trigger, Vt = n.Group, Gt = n.Portal, Ht = n.Sub, Ft = n.RadioGroup, Ee = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
381
+ n.SubTrigger,
382
+ {
383
+ ref: l,
384
+ className: s(
385
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
386
+ t && "pl-8",
387
+ e
388
+ ),
389
+ ...d,
390
+ children: [
391
+ a,
392
+ /* @__PURE__ */ o.jsx(I, { className: "ml-auto h-4 w-4" })
393
+ ]
394
+ }
395
+ ));
396
+ Ee.displayName = n.SubTrigger.displayName;
397
+ const Le = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
398
+ n.SubContent,
399
+ {
400
+ ref: a,
401
+ className: s(
402
+ "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",
403
+ e
404
+ ),
405
+ ...t
406
+ }
407
+ ));
408
+ Le.displayName = n.SubContent.displayName;
409
+ const Ve = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o.jsx(n.Portal, { children: /* @__PURE__ */ o.jsx(
410
+ n.Content,
411
+ {
412
+ ref: d,
413
+ sideOffset: t,
414
+ className: s(
415
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
416
+ "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",
417
+ e
418
+ ),
419
+ ...a
420
+ }
421
+ ) }));
422
+ Ve.displayName = n.Content.displayName;
423
+ const Ge = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
424
+ n.Item,
425
+ {
426
+ ref: d,
427
+ className: s(
428
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
429
+ t && "pl-8",
430
+ e
431
+ ),
432
+ ...a
433
+ }
434
+ ));
435
+ Ge.displayName = n.Item.displayName;
436
+ const He = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
437
+ n.CheckboxItem,
438
+ {
439
+ ref: l,
440
+ className: s(
441
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
442
+ e
443
+ ),
444
+ checked: a,
445
+ ...d,
446
+ children: [
447
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(n.ItemIndicator, { children: /* @__PURE__ */ o.jsx(M, { className: "h-4 w-4" }) }) }),
448
+ t
449
+ ]
450
+ }
451
+ ));
452
+ He.displayName = n.CheckboxItem.displayName;
453
+ const Fe = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(
454
+ n.RadioItem,
455
+ {
456
+ ref: d,
457
+ className: s(
458
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
459
+ e
460
+ ),
461
+ ...a,
462
+ children: [
463
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(n.ItemIndicator, { children: /* @__PURE__ */ o.jsx(P, { className: "h-4 w-4 fill-current" }) }) }),
464
+ t
465
+ ]
466
+ }
467
+ ));
468
+ Fe.displayName = n.RadioItem.displayName;
469
+ const Be = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
470
+ n.Label,
471
+ {
472
+ ref: d,
473
+ className: s("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
474
+ ...a
475
+ }
476
+ ));
477
+ Be.displayName = n.Label.displayName;
478
+ const Ue = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(n.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
479
+ Ue.displayName = n.Separator.displayName;
480
+ const qe = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...t });
481
+ qe.displayName = "DropdownMenuShortcut";
482
+ const Qe = 1, Xe = 1e6;
483
+ let R = 0;
484
+ function Ye() {
485
+ return R = (R + 1) % Number.MAX_VALUE, R.toString();
486
+ }
487
+ const T = /* @__PURE__ */ new Map(), S = (e) => {
488
+ if (T.has(e))
489
+ return;
490
+ const t = setTimeout(() => {
491
+ T.delete(e), N({
492
+ type: "REMOVE_TOAST",
493
+ toastId: e
494
+ });
495
+ }, Xe);
496
+ T.set(e, t);
497
+ }, $e = (e, t) => {
498
+ switch (t.type) {
499
+ case "ADD_TOAST":
500
+ return {
501
+ ...e,
502
+ toasts: [t.toast, ...e.toasts].slice(0, Qe)
503
+ };
504
+ case "UPDATE_TOAST":
505
+ return {
506
+ ...e,
507
+ toasts: e.toasts.map((a) => a.id === t.toast.id ? { ...a, ...t.toast } : a)
508
+ };
509
+ case "DISMISS_TOAST": {
510
+ const { toastId: a } = t;
511
+ return a ? S(a) : e.toasts.forEach((d) => {
512
+ S(d.id);
513
+ }), {
514
+ ...e,
515
+ toasts: e.toasts.map(
516
+ (d) => d.id === a || a === void 0 ? {
517
+ ...d,
518
+ open: !1
519
+ } : d
520
+ )
521
+ };
522
+ }
523
+ case "REMOVE_TOAST":
524
+ return t.toastId === void 0 ? {
525
+ ...e,
526
+ toasts: []
527
+ } : {
528
+ ...e,
529
+ toasts: e.toasts.filter((a) => a.id !== t.toastId)
530
+ };
531
+ }
532
+ }, v = [];
533
+ let h = { toasts: [] };
534
+ function N(e) {
535
+ h = $e(h, e), v.forEach((t) => {
536
+ t(h);
537
+ });
538
+ }
539
+ function Je({ ...e }) {
540
+ const t = Ye(), a = (l) => N({
541
+ type: "UPDATE_TOAST",
542
+ toast: { ...l, id: t }
543
+ }), d = () => N({ type: "DISMISS_TOAST", toastId: t });
544
+ return N({
545
+ type: "ADD_TOAST",
546
+ toast: {
547
+ ...e,
548
+ id: t,
549
+ open: !0,
550
+ onOpenChange: (l) => {
551
+ l || d();
552
+ }
553
+ }
554
+ }), {
555
+ id: t,
556
+ dismiss: d,
557
+ update: a
558
+ };
559
+ }
560
+ function Ke() {
561
+ const [e, t] = r.useState(h);
562
+ return r.useEffect(() => (v.push(t), () => {
563
+ const a = v.indexOf(t);
564
+ a > -1 && v.splice(a, 1);
565
+ }), [e]), {
566
+ ...e,
567
+ toast: Je,
568
+ dismiss: (a) => N({ type: "DISMISS_TOAST", toastId: a })
569
+ };
570
+ }
571
+ const We = f.Provider, H = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
572
+ f.Viewport,
573
+ {
574
+ ref: a,
575
+ className: s(
576
+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
577
+ e
578
+ ),
579
+ ...t
580
+ }
581
+ ));
582
+ H.displayName = f.Viewport.displayName;
583
+ const Ze = w(
584
+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
585
+ {
586
+ variants: {
587
+ variant: {
588
+ default: "border bg-background",
589
+ destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
590
+ }
591
+ },
592
+ defaultVariants: {
593
+ variant: "default"
594
+ }
595
+ }
596
+ ), F = r.forwardRef(({ className: e, variant: t, ...a }, d) => /* @__PURE__ */ o.jsx(f.Root, { ref: d, className: s(Ze({ variant: t }), e), ...a }));
597
+ F.displayName = f.Root.displayName;
598
+ const et = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
599
+ f.Action,
600
+ {
601
+ ref: a,
602
+ className: s(
603
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
604
+ e
605
+ ),
606
+ ...t
607
+ }
608
+ ));
609
+ et.displayName = f.Action.displayName;
610
+ const B = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
611
+ f.Close,
612
+ {
613
+ ref: a,
614
+ className: s(
615
+ "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
616
+ e
617
+ ),
618
+ "toast-close": "",
619
+ ...t,
620
+ children: /* @__PURE__ */ o.jsx(A, { className: "h-4 w-4" })
621
+ }
622
+ ));
623
+ B.displayName = f.Close.displayName;
624
+ const U = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(f.Title, { ref: a, className: s("text-sm font-semibold [&+div]:text-xs", e), ...t }));
625
+ U.displayName = f.Title.displayName;
626
+ const q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(f.Description, { ref: a, className: s("text-sm opacity-90", e), ...t }));
627
+ q.displayName = f.Description.displayName;
628
+ function Bt() {
629
+ const { toasts: e } = Ke();
630
+ return /* @__PURE__ */ o.jsxs(We, { children: [
631
+ e.map(({ id: t, title: a, description: d, action: l, ...C }) => /* @__PURE__ */ o.jsxs(F, { ...C, children: [
632
+ /* @__PURE__ */ o.jsxs("div", { className: "grid gap-1", children: [
633
+ a && /* @__PURE__ */ o.jsx(U, { children: a }),
634
+ d && /* @__PURE__ */ o.jsx(q, { children: d })
635
+ ] }),
636
+ l,
637
+ /* @__PURE__ */ o.jsx(B, {})
638
+ ] }, t)),
639
+ /* @__PURE__ */ o.jsx(H, {})
640
+ ] });
641
+ }
642
+ const Ut = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("animate-pulse rounded-md bg-primary/10", e), ...t }), Q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
643
+ m,
644
+ {
645
+ ref: a,
646
+ className: s(
647
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
648
+ e
649
+ ),
650
+ ...t
651
+ }
652
+ ));
653
+ Q.displayName = m.displayName;
654
+ const qt = ({ children: e, ...t }) => /* @__PURE__ */ o.jsx(xe, { ...t, children: /* @__PURE__ */ o.jsx(V, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o.jsx(Q, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), tt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
655
+ /* @__PURE__ */ o.jsx($, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
656
+ /* @__PURE__ */ o.jsx(
657
+ m.Input,
658
+ {
659
+ ref: a,
660
+ className: s(
661
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
662
+ e
663
+ ),
664
+ ...t
665
+ }
666
+ )
667
+ ] }));
668
+ tt.displayName = m.Input.displayName;
669
+ const at = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
670
+ m.List,
671
+ {
672
+ ref: a,
673
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
674
+ ...t
675
+ }
676
+ ));
677
+ at.displayName = m.List.displayName;
678
+ const ot = r.forwardRef((e, t) => /* @__PURE__ */ o.jsx(m.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
679
+ ot.displayName = m.Empty.displayName;
680
+ const st = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
681
+ m.Group,
682
+ {
683
+ ref: a,
684
+ className: s(
685
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
686
+ e
687
+ ),
688
+ ...t
689
+ }
690
+ ));
691
+ st.displayName = m.Group.displayName;
692
+ const rt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(m.Separator, { ref: a, className: s("-mx-1 h-px bg-border", e), ...t }));
693
+ rt.displayName = m.Separator.displayName;
694
+ const dt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
695
+ m.Item,
696
+ {
697
+ ref: a,
698
+ className: s(
699
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
700
+ e
701
+ ),
702
+ ...t
703
+ }
704
+ ));
705
+ dt.displayName = m.Item.displayName;
706
+ const nt = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
707
+ nt.displayName = "CommandShortcut";
708
+ const Qt = i.Root, Xt = i.Trigger, Yt = i.Group, $t = i.Portal, Jt = i.Sub, Kt = i.RadioGroup, it = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
709
+ i.SubTrigger,
710
+ {
711
+ ref: l,
712
+ className: s(
713
+ "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",
714
+ t && "pl-8",
715
+ e
716
+ ),
717
+ ...d,
718
+ children: [
719
+ a,
720
+ /* @__PURE__ */ o.jsx(I, { className: "ml-auto h-4 w-4" })
721
+ ]
722
+ }
723
+ ));
724
+ it.displayName = i.SubTrigger.displayName;
725
+ const lt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
726
+ i.SubContent,
727
+ {
728
+ ref: a,
729
+ className: s(
730
+ "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",
731
+ e
732
+ ),
733
+ ...t
734
+ }
735
+ ));
736
+ lt.displayName = i.SubContent.displayName;
737
+ const ct = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(i.Portal, { children: /* @__PURE__ */ o.jsx(
738
+ i.Content,
739
+ {
740
+ ref: a,
741
+ className: s(
742
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",
743
+ e
744
+ ),
745
+ ...t
746
+ }
747
+ ) }));
748
+ ct.displayName = i.Content.displayName;
749
+ const mt = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
750
+ i.Item,
751
+ {
752
+ ref: d,
753
+ className: s(
754
+ "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",
755
+ t && "pl-8",
756
+ e
757
+ ),
758
+ ...a
759
+ }
760
+ ));
761
+ mt.displayName = i.Item.displayName;
762
+ const pt = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
763
+ i.CheckboxItem,
764
+ {
765
+ ref: l,
766
+ className: s(
767
+ "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",
768
+ e
769
+ ),
770
+ checked: a,
771
+ ...d,
772
+ children: [
773
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(i.ItemIndicator, { children: /* @__PURE__ */ o.jsx(M, { className: "h-4 w-4" }) }) }),
774
+ t
775
+ ]
776
+ }
777
+ ));
778
+ pt.displayName = i.CheckboxItem.displayName;
779
+ const ft = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(
780
+ i.RadioItem,
781
+ {
782
+ ref: d,
783
+ className: s(
784
+ "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",
785
+ e
786
+ ),
787
+ ...a,
788
+ children: [
789
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(i.ItemIndicator, { children: /* @__PURE__ */ o.jsx(P, { className: "h-4 w-4 fill-current" }) }) }),
790
+ t
791
+ ]
792
+ }
793
+ ));
794
+ ft.displayName = i.RadioItem.displayName;
795
+ const ut = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
796
+ i.Label,
797
+ {
798
+ ref: d,
799
+ className: s("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
800
+ ...a
801
+ }
802
+ ));
803
+ ut.displayName = i.Label.displayName;
804
+ const xt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(i.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-border", e), ...t }));
805
+ xt.displayName = i.Separator.displayName;
806
+ const gt = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
807
+ gt.displayName = "ContextMenuShortcut";
808
+ export {
809
+ Ge as $,
810
+ re as A,
811
+ ee as B,
812
+ Qt as C,
813
+ xe as D,
814
+ kt as E,
815
+ Ie as F,
816
+ Me as G,
817
+ Pe as H,
818
+ Z as I,
819
+ Ct as J,
820
+ te as K,
821
+ ke as L,
822
+ ae as M,
823
+ oe as N,
824
+ Ke as O,
825
+ Pt as P,
826
+ Te as Q,
827
+ St as R,
828
+ Ut as S,
829
+ It as T,
830
+ Et as U,
831
+ Lt as V,
832
+ Ve as W,
833
+ Ae as X,
834
+ Be as Y,
835
+ Ue as Z,
836
+ Vt as _,
837
+ Xt as a,
838
+ qe as a0,
839
+ Rt as a1,
840
+ Tt as a2,
841
+ ie as a3,
842
+ le as a4,
843
+ me as a5,
844
+ pe as a6,
845
+ ce as a7,
846
+ ue as a8,
847
+ fe as a9,
848
+ gt as aA,
849
+ Yt as aB,
850
+ $t as aC,
851
+ Jt as aD,
852
+ lt as aE,
853
+ it as aF,
854
+ Kt as aG,
855
+ At as aa,
856
+ Bt as ab,
857
+ He as ac,
858
+ _t as ad,
859
+ Ot as ae,
860
+ Oe as af,
861
+ s as ag,
862
+ k as ah,
863
+ ne as ai,
864
+ we as aj,
865
+ G as ak,
866
+ Fe as al,
867
+ Gt as am,
868
+ Ht as an,
869
+ Le as ao,
870
+ Ee as ap,
871
+ Ft as aq,
872
+ $e as ar,
873
+ Je as as,
874
+ qt as at,
875
+ nt as au,
876
+ rt as av,
877
+ pt as aw,
878
+ ft as ax,
879
+ ut as ay,
880
+ xt as az,
881
+ ct as b,
882
+ mt as c,
883
+ Mt as d,
884
+ ze as e,
885
+ ve as f,
886
+ he as g,
887
+ je as h,
888
+ Ce as i,
889
+ Se as j,
890
+ Re as k,
891
+ de as l,
892
+ Dt as m,
893
+ V as n,
894
+ ge as o,
895
+ Ne as p,
896
+ ye as q,
897
+ be as r,
898
+ zt as s,
899
+ _e as t,
900
+ Q as u,
901
+ tt as v,
902
+ at as w,
903
+ ot as x,
904
+ st as y,
905
+ dt as z
906
+ };