@chaibuilder/sdk 3.1.20 → 4.0.0-beta.1

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 (35) hide show
  1. package/dist/{IconPicker-BWE43eMO.cjs → IconPicker-CGWn9C4u.cjs} +1 -1
  2. package/dist/{IconPicker-CluS-5Mv.js → IconPicker-QvxJ-4Ez.js} +1 -1
  3. package/dist/{code-display-BOOy3Lpy.js → code-display-337R7Dev.js} +1 -1
  4. package/dist/{code-display-B1O2gN5f.cjs → code-display-BZ1x7SqI.cjs} +1 -1
  5. package/dist/{code-editor-B_-5Et51.cjs → code-editor-B28LoECM.cjs} +1 -1
  6. package/dist/{code-editor-BHJy4rC7.js → code-editor-CfG2FhJ-.js} +2 -2
  7. package/dist/core.cjs +1 -1
  8. package/dist/core.js +1 -1
  9. package/dist/{css-import-modal-CrlmcFy4.cjs → css-import-modal-CENUYvcl.cjs} +1 -1
  10. package/dist/{css-import-modal-sHoiyimv.js → css-import-modal-DA2L6kwP.js} +2 -2
  11. package/dist/get-chai-builder-theme-Ck_Z4Q-M.cjs +1 -0
  12. package/dist/get-chai-builder-theme-D0IsUvK4.js +24 -0
  13. package/dist/{index-C75e470H.js → index-CaGNHF7f.js} +2333 -2276
  14. package/dist/index-Gn6pJt2v.cjs +166 -0
  15. package/dist/plugin-B5627hMN.js +195 -0
  16. package/dist/plugin-UxTRfDum.cjs +22 -0
  17. package/dist/render.cjs +2 -2
  18. package/dist/render.js +49 -50
  19. package/dist/{rte-widget-modal-BGXbemWF.cjs → rte-widget-modal-DL739qeQ.cjs} +1 -1
  20. package/dist/{rte-widget-modal-DQBQZ86W.js → rte-widget-modal-Dte0od04.js} +2 -2
  21. package/dist/sdk.css +1 -1
  22. package/dist/tailwind.cjs +1 -1
  23. package/dist/tailwind.d.ts +2 -6
  24. package/dist/tailwind.js +5 -6
  25. package/dist/tooltip-A4qGk781.cjs +1 -0
  26. package/dist/{tooltip-Bz2MxMHf.js → tooltip-tLiIOgjq.js} +68 -68
  27. package/dist/ui.cjs +1 -1
  28. package/dist/ui.js +1 -1
  29. package/package.json +13 -10
  30. package/dist/get-chai-builder-theme-B1tr_NJB.cjs +0 -1
  31. package/dist/get-chai-builder-theme-BarMkcGH.js +0 -12
  32. package/dist/index-ByYl6HCd.cjs +0 -153
  33. package/dist/plugin-BOcGV_IY.js +0 -259
  34. package/dist/plugin-CSgw-f78.cjs +0 -22
  35. package/dist/tooltip-CzZ7Fvt7.cjs +0 -1
@@ -1,259 +0,0 @@
1
- import { getAllRegisteredFonts as b } from "@chaibuilder/runtime";
2
- import { uniqBy as l, keys as h, flatten as v, get as B } from "lodash-es";
3
- const O = {
4
- fontFamily: {
5
- "font-heading": "Inter",
6
- "font-body": "Inter"
7
- },
8
- borderRadius: "10px",
9
- colors: [
10
- {
11
- group: "Body",
12
- items: {
13
- background: ["#FFFFFF", "#121212"],
14
- foreground: ["#121212", "#FFFFFF"]
15
- }
16
- },
17
- {
18
- group: "Primary",
19
- items: {
20
- primary: ["#2563EB", "#3B82F6"],
21
- "primary-foreground": ["#FFFFFF", "#FFFFFF"]
22
- }
23
- },
24
- {
25
- group: "Secondary",
26
- items: {
27
- secondary: ["#F3F4F6", "#374151"],
28
- "secondary-foreground": ["#1F2937", "#F9FAFB"]
29
- }
30
- },
31
- {
32
- group: "Border, Input & Ring",
33
- items: {
34
- border: ["#E5E7EB", "#374151"],
35
- input: ["#E5E7EB", "#374151"],
36
- ring: ["#2563EB", "#3B82F6"]
37
- }
38
- },
39
- {
40
- group: "Card",
41
- items: {
42
- card: ["#FFFFFF", "#1F2937"],
43
- "card-foreground": ["#121212", "#FFFFFF"]
44
- }
45
- },
46
- {
47
- group: "Popover",
48
- items: {
49
- popover: ["#FFFFFF", "#1F2937"],
50
- "popover-foreground": ["#121212", "#FFFFFF"]
51
- }
52
- },
53
- {
54
- group: "Muted",
55
- items: {
56
- muted: ["#F3F4F6", "#374151"],
57
- "muted-foreground": ["#6B7280", "#9CA3AF"]
58
- }
59
- },
60
- {
61
- group: "Accent",
62
- items: {
63
- accent: ["#F3F4F6", "#374151"],
64
- "accent-foreground": ["#1F2937", "#FFFFFF"]
65
- }
66
- },
67
- {
68
- group: "Destructive",
69
- items: {
70
- destructive: ["#DC2626", "#EF4444"],
71
- "destructive-foreground": ["#FFFFFF", "#FFFFFF"]
72
- }
73
- }
74
- ]
75
- }, I = {
76
- fontFamily: {
77
- heading: "Inter",
78
- body: "Inter"
79
- },
80
- borderRadius: "6px",
81
- colors: {
82
- background: ["#FFFFFF", "#09090B"],
83
- foreground: ["#09090B", "#FFFFFF"],
84
- primary: ["#2563EB", "#3B82F6"],
85
- "primary-foreground": ["#FFFFFF", "#FFFFFF"],
86
- secondary: ["#F4F4F5", "#27272A"],
87
- "secondary-foreground": ["#09090B", "#FFFFFF"],
88
- muted: ["#F4F4F5", "#27272A"],
89
- "muted-foreground": ["#71717A", "#A1A1AA"],
90
- accent: ["#F4F4F5", "#27272A"],
91
- "accent-foreground": ["#09090B", "#FFFFFF"],
92
- destructive: ["#EF4444", "#7F1D1D"],
93
- "destructive-foreground": ["#FFFFFF", "#FFFFFF"],
94
- border: ["#E4E4E7", "#27272A"],
95
- input: ["#E4E4E7", "#27272A"],
96
- ring: ["#2563EB", "#3B82F6"],
97
- card: ["#FFFFFF", "#09090B"],
98
- "card-foreground": ["#09090B", "#FFFFFF"],
99
- popover: ["#FFFFFF", "#09090B"],
100
- "popover-foreground": ["#09090B", "#FFFFFF"]
101
- }
102
- }, q = (r) => ({
103
- fontFamily: r.fontFamily ? h(r.fontFamily).reduce(
104
- (e, n) => ({
105
- ...e,
106
- [n.replace("font-", "")]: `var(--${n})`
107
- }),
108
- {}
109
- ) : {},
110
- borderRadius: r.borderRadius ? {
111
- lg: "var(--radius)",
112
- md: "calc(var(--radius) - 2px)",
113
- sm: "calc(var(--radius) - 4px)"
114
- } : {},
115
- colors: r.colors ? v(r.colors.map((e) => Object.entries(e.items))).reduce(
116
- (e, [n]) => ({ ...e, [n]: `hsl(var(--${n}))` }),
117
- {}
118
- ) : {}
119
- });
120
- function p(r) {
121
- const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
122
- let e = parseInt(t[1], 16), n = parseInt(t[2], 16), F = parseInt(t[3], 16);
123
- e /= 255, n /= 255, F /= 255;
124
- const o = Math.max(e, n, F), u = Math.min(e, n, F);
125
- let a, d;
126
- const g = (o + u) / 2;
127
- if (o == u)
128
- a = d = 0;
129
- else {
130
- const i = o - u;
131
- switch (d = g > 0.5 ? i / (2 - o - u) : i / (o + u), o) {
132
- case e:
133
- a = (n - F) / i + (n < F ? 6 : 0);
134
- break;
135
- case n:
136
- a = (F - e) / i + 2;
137
- break;
138
- case F:
139
- a = (e - n) / i + 4;
140
- break;
141
- }
142
- a /= 6;
143
- }
144
- return `${Math.round(a * 360)} ${Math.round(d * 100)}% ${Math.round(g * 100)}%`;
145
- }
146
- const _ = (r) => {
147
- const e = b().find((n) => n.family === r);
148
- return `"${r}", ${B(e, "fallback", "")}`;
149
- }, S = (r) => `:root {
150
- ${r.fontFamily && Object.entries(r.fontFamily).map(([t, e]) => `--font-${t}: ${_(e)};`).join(`
151
- `)}
152
- ${r.borderRadius && `--radius: ${r.borderRadius};`}
153
- ${r.colors && Object.entries(r.colors).map(([t, e]) => `--${t}: ${p(e[0])};`).join(`
154
- `)}
155
- }
156
- .dark {
157
- ${r.colors && Object.entries(r.colors).map(([t, e]) => `--${t}: ${p(e[1])};`).join(`
158
- `)}
159
- }`, w = (r) => !r || r.length === 0 ? "" : l(r, "family").map((t) => `<link rel="stylesheet" href="${t.url}" />`).join(`
160
- `), x = (r) => !r || r.length === 0 ? [] : l(r, "family").map((t) => t.url), D = (r) => !r || r.length === 0 ? "" : l(r, "family").map((t) => `@import url("${t.url}");`).join(`
161
- `), L = (r) => !r || r.length === 0 ? "" : l(r, "family").map(
162
- (t) => t.src.map(
163
- (e) => `@font-face {
164
- font-family: "${t.family}";
165
- src: url("${e.url}") format("${e.format}");
166
- font-display: swap;
167
- ${e.fontWeight ? `font-weight: ${e.fontWeight};` : ""}
168
- ${e.fontStyle ? `font-style: ${e.fontStyle};` : ""}
169
- ${e.fontStretch ? `font-stretch: ${e.fontStretch};` : ""}
170
- }`
171
- ).join(`
172
- `)
173
- ).join(`
174
- `);
175
- function E(r) {
176
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
177
- }
178
- var s = {}, c = {}, m;
179
- function P() {
180
- return m || (m = 1, function(r) {
181
- Object.defineProperty(r, "__esModule", {
182
- value: !0
183
- }), Object.defineProperty(r, "default", {
184
- enumerable: !0,
185
- get: function() {
186
- return e;
187
- }
188
- });
189
- function t(n, F) {
190
- return {
191
- handler: n,
192
- config: F
193
- };
194
- }
195
- t.withOptions = function(n, F = () => ({})) {
196
- const o = function(u) {
197
- return {
198
- __options: u,
199
- handler: n(u),
200
- config: F(u)
201
- };
202
- };
203
- return o.__isOptionsFunction = !0, o.__pluginFunction = n, o.__configFunction = F, o;
204
- };
205
- const e = t;
206
- }(c)), c;
207
- }
208
- var y;
209
- function A() {
210
- return y || (y = 1, function(r) {
211
- Object.defineProperty(r, "__esModule", {
212
- value: !0
213
- }), Object.defineProperty(r, "default", {
214
- enumerable: !0,
215
- get: function() {
216
- return n;
217
- }
218
- });
219
- const t = /* @__PURE__ */ e(P());
220
- function e(F) {
221
- return F && F.__esModule ? F : {
222
- default: F
223
- };
224
- }
225
- const n = t.default;
226
- }(s)), s;
227
- }
228
- var f, $;
229
- function j() {
230
- if ($) return f;
231
- $ = 1;
232
- let r = A();
233
- return f = (r.__esModule ? r : { default: r }).default, f;
234
- }
235
- var C = j();
236
- const M = /* @__PURE__ */ E(C), V = M(function({ addBase: r, theme: t }) {
237
- r({
238
- "h1,h2,h3,h4,h5,h6": {
239
- fontFamily: t("fontFamily.heading")
240
- },
241
- body: {
242
- fontFamily: t("fontFamily.body"),
243
- color: t("colors.foreground"),
244
- backgroundColor: t("colors.background")
245
- }
246
- });
247
- });
248
- export {
249
- S as a,
250
- D as b,
251
- V as c,
252
- O as d,
253
- w as e,
254
- I as f,
255
- q as g,
256
- x as h,
257
- L as i,
258
- M as p
259
- };
@@ -1,22 +0,0 @@
1
- "use strict";const b=require("@chaibuilder/runtime"),a=require("lodash-es"),B={fontFamily:{"font-heading":"Inter","font-body":"Inter"},borderRadius:"10px",colors:[{group:"Body",items:{background:["#FFFFFF","#121212"],foreground:["#121212","#FFFFFF"]}},{group:"Primary",items:{primary:["#2563EB","#3B82F6"],"primary-foreground":["#FFFFFF","#FFFFFF"]}},{group:"Secondary",items:{secondary:["#F3F4F6","#374151"],"secondary-foreground":["#1F2937","#F9FAFB"]}},{group:"Border, Input & Ring",items:{border:["#E5E7EB","#374151"],input:["#E5E7EB","#374151"],ring:["#2563EB","#3B82F6"]}},{group:"Card",items:{card:["#FFFFFF","#1F2937"],"card-foreground":["#121212","#FFFFFF"]}},{group:"Popover",items:{popover:["#FFFFFF","#1F2937"],"popover-foreground":["#121212","#FFFFFF"]}},{group:"Muted",items:{muted:["#F3F4F6","#374151"],"muted-foreground":["#6B7280","#9CA3AF"]}},{group:"Accent",items:{accent:["#F3F4F6","#374151"],"accent-foreground":["#1F2937","#FFFFFF"]}},{group:"Destructive",items:{destructive:["#DC2626","#EF4444"],"destructive-foreground":["#FFFFFF","#FFFFFF"]}}]},v={fontFamily:{heading:"Inter",body:"Inter"},borderRadius:"6px",colors:{background:["#FFFFFF","#09090B"],foreground:["#09090B","#FFFFFF"],primary:["#2563EB","#3B82F6"],"primary-foreground":["#FFFFFF","#FFFFFF"],secondary:["#F4F4F5","#27272A"],"secondary-foreground":["#09090B","#FFFFFF"],muted:["#F4F4F5","#27272A"],"muted-foreground":["#71717A","#A1A1AA"],accent:["#F4F4F5","#27272A"],"accent-foreground":["#09090B","#FFFFFF"],destructive:["#EF4444","#7F1D1D"],"destructive-foreground":["#FFFFFF","#FFFFFF"],border:["#E4E4E7","#27272A"],input:["#E4E4E7","#27272A"],ring:["#2563EB","#3B82F6"],card:["#FFFFFF","#09090B"],"card-foreground":["#09090B","#FFFFFF"],popover:["#FFFFFF","#09090B"],"popover-foreground":["#09090B","#FFFFFF"]}},_=e=>({fontFamily:e.fontFamily?a.keys(e.fontFamily).reduce((r,n)=>({...r,[n.replace("font-","")]:`var(--${n})`}),{}):{},borderRadius:e.borderRadius?{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"}:{},colors:e.colors?a.flatten(e.colors.map(r=>Object.entries(r.items))).reduce((r,[n])=>({...r,[n]:`hsl(var(--${n}))`}),{}):{}});function m(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);let r=parseInt(t[1],16),n=parseInt(t[2],16),F=parseInt(t[3],16);r/=255,n/=255,F/=255;const o=Math.max(r,n,F),u=Math.min(r,n,F);let i,d;const g=(o+u)/2;if(o==u)i=d=0;else{const l=o-u;switch(d=g>.5?l/(2-o-u):l/(o+u),o){case r:i=(n-F)/l+(n<F?6:0);break;case n:i=(F-r)/l+2;break;case F:i=(r-n)/l+4;break}i/=6}return`${Math.round(i*360)} ${Math.round(d*100)}% ${Math.round(g*100)}%`}const E=e=>{const r=b.getAllRegisteredFonts().find(n=>n.family===e);return`"${e}", ${a.get(r,"fallback","")}`},P=e=>`:root {
2
- ${e.fontFamily&&Object.entries(e.fontFamily).map(([t,r])=>`--font-${t}: ${E(r)};`).join(`
3
- `)}
4
- ${e.borderRadius&&`--radius: ${e.borderRadius};`}
5
- ${e.colors&&Object.entries(e.colors).map(([t,r])=>`--${t}: ${m(r[0])};`).join(`
6
- `)}
7
- }
8
- .dark {
9
- ${e.colors&&Object.entries(e.colors).map(([t,r])=>`--${t}: ${m(r[1])};`).join(`
10
- `)}
11
- }`,C=e=>!e||e.length===0?"":a.uniqBy(e,"family").map(t=>`<link rel="stylesheet" href="${t.url}" />`).join(`
12
- `),A=e=>!e||e.length===0?[]:a.uniqBy(e,"family").map(t=>t.url),j=e=>!e||e.length===0?"":a.uniqBy(e,"family").map(t=>`@import url("${t.url}");`).join(`
13
- `),k=e=>!e||e.length===0?"":a.uniqBy(e,"family").map(t=>t.src.map(r=>`@font-face {
14
- font-family: "${t.family}";
15
- src: url("${r.url}") format("${r.format}");
16
- font-display: swap;
17
- ${r.fontWeight?`font-weight: ${r.fontWeight};`:""}
18
- ${r.fontStyle?`font-style: ${r.fontStyle};`:""}
19
- ${r.fontStretch?`font-stretch: ${r.fontStretch};`:""}
20
- }`).join(`
21
- `)).join(`
22
- `);function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={},c={},p;function M(){return p||(p=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,F){return{handler:n,config:F}}t.withOptions=function(n,F=()=>({})){const o=function(u){return{__options:u,handler:n(u),config:F(u)}};return o.__isOptionsFunction=!0,o.__pluginFunction=n,o.__configFunction=F,o};const r=t}(c)),c}var y;function O(){return y||(y=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t=r(M());function r(F){return F&&F.__esModule?F:{default:F}}const n=t.default}(s)),s}var f,h;function R(){if(h)return f;h=1;let e=O();return f=(e.__esModule?e:{default:e}).default,f}var I=R();const $=q(I),S=$(function({addBase:e,theme:t}){e({"h1,h2,h3,h4,h5,h6":{fontFamily:t("fontFamily.heading")},body:{fontFamily:t("fontFamily.body"),color:t("colors.foreground"),backgroundColor:t("colors.background")}})});exports.chaiBuilderPlugin=S;exports.defaultThemeOptions=B;exports.defaultThemeValues=v;exports.getChaiThemeCssVariables=P;exports.getChaiThemeOptions=_;exports.getThemeCustomFontFace=k;exports.getThemeFontsCSSImport=j;exports.getThemeFontsLinkMarkup=C;exports.getThemeFontsUrls=A;exports.plugin=$;
@@ -1 +0,0 @@
1
- "use strict";const o=require("react/jsx-runtime"),ft=require("@radix-ui/react-dropdown-menu"),f=require("@radix-ui/react-icons"),gt=require("react"),xt=require("@radix-ui/react-accordion"),N=require("class-variance-authority"),bt=require("@radix-ui/react-alert-dialog"),ht=require("@radix-ui/react-slot"),vt=require("@radix-ui/react-avatar"),g=require("cmdk"),yt=require("@radix-ui/react-dialog"),Nt=require("@radix-ui/react-context-menu"),wt=require("@radix-ui/react-hover-card"),Ct=require("@radix-ui/react-label"),jt=require("@radix-ui/react-popover"),St=require("@radix-ui/react-scroll-area"),Rt=require("@radix-ui/react-select"),Dt=require("@radix-ui/react-separator"),Tt=require("@radix-ui/react-slider"),kt=require("@radix-ui/react-switch"),It=require("@radix-ui/react-tabs"),_t=require("@radix-ui/react-toggle"),Mt=require("@radix-ui/react-tooltip"),At=require("clsx"),Pt=require("tailwind-merge");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const d=p(ft),s=p(gt),b=p(xt),u=p(bt),w=p(vt),i=p(yt),l=p(Nt),j=p(wt),z=p(Ct),v=p(jt),x=p(St),c=p(Rt),q=p(Dt),C=p(Tt),R=p(kt),h=p(It),L=p(_t),y=p(Mt);function r(...e){return Pt.twMerge(At.clsx(e))}const S=N.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),H=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...m},pt)=>{const ut=n?ht.Slot:"button";return o.jsx(ut,{className:r(S({variant:t,size:a,className:e})),ref:pt,...m})});H.displayName="Button";const zt=d.Root,qt=d.Trigger,Lt=d.Group,Ht=d.Portal,Gt=d.Sub,Vt=d.RadioGroup,G=s.forwardRef(({className:e,inset:t,children:a,...n},m)=>o.jsxs(d.SubTrigger,{ref:m,className:r("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[a,o.jsx(f.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));G.displayName=d.SubTrigger.displayName;const V=s.forwardRef(({className:e,...t},a)=>o.jsx(d.SubContent,{ref:a,className:r("z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] 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",e),...t}));V.displayName=d.SubContent.displayName;const O=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(d.Portal,{children:o.jsx(d.Content,{ref:n,sideOffset:t,className:r("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","origin-[--radix-dropdown-menu-content-transform-origin] 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",e),...a})}));O.displayName=d.Content.displayName;const F=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Item,{ref:n,className:r("relative flex cursor-default select-none items-center gap-2 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 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));F.displayName=d.Item.displayName;const B=s.forwardRef(({className:e,children:t,checked:a,...n},m)=>o.jsxs(d.CheckboxItem,{ref:m,className:r("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",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),t]}));B.displayName=d.CheckboxItem.displayName;const U=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.RadioItem,{ref:n,className:r("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",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(f.CircleIcon,{className:"h-2 w-2 fill-current"})})}),t]}));U.displayName=d.RadioItem.displayName;const E=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));E.displayName=d.Label.displayName;const J=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));J.displayName=d.Separator.displayName;const K=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});K.displayName="DropdownMenuShortcut";const Ot=b.Root,Q=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Item,{ref:a,className:r("border-b",e),...t}));Q.displayName="AccordionItem";const W=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(b.Header,{className:"flex",children:o.jsxs(b.Trigger,{ref:n,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(f.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));W.displayName=b.Trigger.displayName;const X=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(b.Content,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:r("pb-4 pt-0",e),children:t})}));X.displayName=b.Content.displayName;const Ft=N.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Y=s.forwardRef(({className:e,variant:t,...a},n)=>o.jsx("div",{ref:n,role:"alert",className:r(Ft({variant:t}),e),...a}));Y.displayName="Alert";const Z=s.forwardRef(({className:e,...t},a)=>o.jsx("h5",{ref:a,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));Z.displayName="AlertTitle";const $=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm [&_p]:leading-relaxed",e),...t}));$.displayName="AlertDescription";const Bt=u.Root,Ut=u.Trigger,ee=u.Portal,D=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));D.displayName=u.Overlay.displayName;const te=s.forwardRef(({className:e,...t},a)=>o.jsxs(ee,{children:[o.jsx(D,{}),o.jsx(u.Content,{ref:a,className:r("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",e),...t})]}));te.displayName=u.Content.displayName;const ae=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});ae.displayName="AlertDialogHeader";const oe=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});oe.displayName="AlertDialogFooter";const re=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Title,{ref:a,className:r("text-lg font-semibold",e),...t}));re.displayName=u.Title.displayName;const se=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));se.displayName=u.Description.displayName;const ne=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Action,{ref:a,className:r(S(),e),...t}));ne.displayName=u.Action.displayName;const ie=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Cancel,{ref:a,className:r(S({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));ie.displayName=u.Cancel.displayName;const de=s.forwardRef(({className:e,...t},a)=>o.jsx(w.Root,{ref:a,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));de.displayName=w.Root.displayName;const le=s.forwardRef(({className:e,...t},a)=>o.jsx(w.Image,{ref:a,className:r("aspect-square h-full w-full",e),...t}));le.displayName=w.Image.displayName;const ce=s.forwardRef(({className:e,...t},a)=>o.jsx(w.Fallback,{ref:a,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ce.displayName=w.Fallback.displayName;const me=N.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Et({className:e,variant:t,...a}){return o.jsx("div",{className:r(me({variant:t}),e),...a})}const pe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));pe.displayName="Card";const ue=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t}));ue.displayName="CardHeader";const fe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("font-semibold leading-none tracking-tight",e),...t}));fe.displayName="CardTitle";const ge=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm text-muted-foreground",e),...t}));ge.displayName="CardDescription";const xe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("p-6 pt-0",e),...t}));xe.displayName="CardContent";const be=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex items-center p-6 pt-0",e),...t}));be.displayName="CardFooter";const he=i.Root,Jt=i.Trigger,ve=i.Portal,Kt=i.Close,T=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{ref:a,className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));T.displayName=i.Overlay.displayName;const k=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(ve,{children:[o.jsx(T,{}),o.jsxs(i.Content,{ref:n,className:r("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",e),...a,children:[t,o.jsxs(i.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:[o.jsx(f.Cross1Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));k.displayName=i.Content.displayName;const ye=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ye.displayName="DialogHeader";const Ne=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ne.displayName="DialogFooter";const we=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));we.displayName=i.Title.displayName;const Ce=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ce.displayName=i.Description.displayName;const I=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));I.displayName=g.Command.displayName;const Qt=({children:e,...t})=>o.jsx(he,{...t,children:o.jsx(k,{className:"overflow-hidden p-0",children:o.jsx(I,{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})})}),je=s.forwardRef(({className:e,...t},a)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(f.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(g.Command.Input,{ref:a,className:r("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",e),...t})]}));je.displayName=g.Command.Input.displayName;const Se=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Se.displayName=g.Command.List.displayName;const Re=s.forwardRef((e,t)=>o.jsx(g.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Re.displayName=g.Command.Empty.displayName;const De=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.Group,{ref:a,className:r("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",e),...t}));De.displayName=g.Command.Group.displayName;const Te=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));Te.displayName=g.Command.Separator.displayName;const ke=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.Item,{ref:a,className:r("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ke.displayName=g.Command.Item.displayName;const Ie=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ie.displayName="CommandShortcut";const Wt=l.Root,Xt=l.Trigger,Yt=l.Group,Zt=l.Portal,$t=l.Sub,ea=l.RadioGroup,_e=s.forwardRef(({className:e,inset:t,children:a,...n},m)=>o.jsxs(l.SubTrigger,{ref:m,className:r("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",t&&"pl-8",e),...n,children:[a,o.jsx(f.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));_e.displayName=l.SubTrigger.displayName;const Me=s.forwardRef(({className:e,...t},a)=>o.jsx(l.SubContent,{ref:a,className:r("z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] 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",e),...t}));Me.displayName=l.SubContent.displayName;const Ae=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Portal,{children:o.jsx(l.Content,{ref:a,className:r("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-y-auto overflow-x-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",e),...t})}));Ae.displayName=l.Content.displayName;const Pe=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(l.Item,{ref:n,className:r("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",t&&"pl-8",e),...a}));Pe.displayName=l.Item.displayName;const ze=s.forwardRef(({className:e,children:t,checked:a,...n},m)=>o.jsxs(l.CheckboxItem,{ref:m,className:r("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",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),t]}));ze.displayName=l.CheckboxItem.displayName;const qe=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(l.RadioItem,{ref:n,className:r("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",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(f.CircleIcon,{className:"h-2 w-2 fill-current"})})}),t]}));qe.displayName=l.RadioItem.displayName;const Le=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(l.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));Le.displayName=l.Label.displayName;const He=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-border",e),...t}));He.displayName=l.Separator.displayName;const Ge=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ge.displayName="ContextMenuShortcut";const ta=j.Root,aa=j.Trigger,Ve=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},m)=>o.jsx(j.Content,{ref:m,align:t,sideOffset:a,className:r("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] 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",e),...n}));Ve.displayName=j.Content.displayName;const Oe=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...a}));Oe.displayName="Input";const oa=N.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Fe=s.forwardRef(({className:e,...t},a)=>o.jsx(z.Root,{ref:a,className:r(oa(),e),...t}));Fe.displayName=z.Root.displayName;const ra=v.Root,sa=v.Trigger,na=v.Anchor,Be=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},m)=>o.jsx(v.Portal,{children:o.jsx(v.Content,{ref:m,align:t,sideOffset:a,className:r("z-50 w-72 origin-[--radix-popover-content-transform-origin] 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",e),...n})}));Be.displayName=v.Content.displayName;const Ue=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(x.Root,{ref:n,className:r("relative overflow-hidden",e),...a,children:[o.jsx(x.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(_,{}),o.jsx(x.Corner,{})]}));Ue.displayName=x.Root.displayName;const _=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(x.ScrollAreaScrollbar,{ref:n,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(x.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));_.displayName=x.ScrollAreaScrollbar.displayName;const ia=c.Root,da=c.Group,la=c.Value,Ee=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(c.Trigger,{ref:n,className:r("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",e),...a,children:[t,o.jsx(c.Icon,{asChild:!0,children:o.jsx(f.ChevronDownIcon,{className:"h-4 w-4 opacity-50"})})]}));Ee.displayName=c.Trigger.displayName;const M=s.forwardRef(({className:e,...t},a)=>o.jsx(c.ScrollUpButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(f.ChevronUpIcon,{className:"h-4 w-4"})}));M.displayName=c.ScrollUpButton.displayName;const A=s.forwardRef(({className:e,...t},a)=>o.jsx(c.ScrollDownButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(f.ChevronDownIcon,{className:"h-4 w-4"})}));A.displayName=c.ScrollDownButton.displayName;const Je=s.forwardRef(({className:e,children:t,position:a="popper",...n},m)=>o.jsx(c.Portal,{children:o.jsxs(c.Content,{ref:m,className:r("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover 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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[o.jsx(M,{}),o.jsx(c.Viewport,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(A,{})]})}));Je.displayName=c.Content.displayName;const Ke=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e),...t}));Ke.displayName=c.Label.displayName;const Qe=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(c.Item,{ref:n,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(c.ItemIndicator,{children:o.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),o.jsx(c.ItemText,{children:t})]}));Qe.displayName=c.Item.displayName;const We=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));We.displayName=c.Separator.displayName;const Xe=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},m)=>o.jsx(q.Root,{ref:m,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Xe.displayName=q.Root.displayName;const ca=i.Root,ma=i.Trigger,pa=i.Close,Ye=i.Portal,P=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));P.displayName=i.Overlay.displayName;const ua=N.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),Ze=s.forwardRef(({side:e="right",className:t,children:a,...n},m)=>o.jsxs(Ye,{children:[o.jsx(P,{}),o.jsxs(i.Content,{ref:m,className:r(ua({side:e}),t),...n,children:[o.jsxs(i.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:[o.jsx(f.Cross1Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ze.displayName=i.Content.displayName;const $e=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});$e.displayName="SheetHeader";const et=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});et.displayName="SheetFooter";const tt=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:r("text-lg font-semibold text-foreground",e),...t}));tt.displayName=i.Title.displayName;const at=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));at.displayName=i.Description.displayName;function fa({className:e,...t}){return o.jsx("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t})}const ot=s.forwardRef(({className:e,...t},a)=>o.jsxs(C.Root,{ref:a,className:r("relative flex w-full touch-none select-none items-center",e),...t,children:[o.jsx(C.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-300",children:o.jsx(C.Range,{className:"absolute h-full bg-neutral-900"})}),o.jsx(C.Thumb,{className:"block h-4 w-4 rounded-full border border-neutral-900 bg-neutral-900 shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-900 disabled:pointer-events-none disabled:opacity-50"})]}));ot.displayName=C.Root.displayName;const rt=s.forwardRef(({className:e,thumbClassName:t,...a},n)=>o.jsx(R.Root,{className:r("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...a,ref:n,children:o.jsx(R.Thumb,{className:r("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform",t,"data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0")})}));rt.displayName=R.Root.displayName;const ga=h.Root,st=s.forwardRef(({className:e,...t},a)=>o.jsx(h.List,{ref:a,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));st.displayName=h.List.displayName;const nt=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Trigger,{ref:a,className:r("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",e),...t}));nt.displayName=h.Trigger.displayName;const it=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Content,{ref:a,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));it.displayName=h.Content.displayName;const dt=s.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:r("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base 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 md:text-sm",e),ref:a,...t}));dt.displayName="Textarea";const lt=N.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ct=s.forwardRef(({className:e,variant:t,size:a,...n},m)=>o.jsx(L.Root,{ref:m,className:r(lt({variant:t,size:a,className:e})),...n}));ct.displayName=L.Root.displayName;const xa=y.Provider,ba=y.Root,ha=y.Trigger,mt=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(y.Portal,{children:o.jsx(y.Content,{ref:n,sideOffset:t,className:r("z-50 origin-[--radix-tooltip-content-transform-origin] 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",e),...a})}));mt.displayName=y.Content.displayName;exports.Accordion=Ot;exports.AccordionContent=X;exports.AccordionItem=Q;exports.AccordionTrigger=W;exports.Alert=Y;exports.AlertDescription=$;exports.AlertDialog=Bt;exports.AlertDialogAction=ne;exports.AlertDialogCancel=ie;exports.AlertDialogContent=te;exports.AlertDialogDescription=se;exports.AlertDialogFooter=oe;exports.AlertDialogHeader=ae;exports.AlertDialogOverlay=D;exports.AlertDialogPortal=ee;exports.AlertDialogTitle=re;exports.AlertDialogTrigger=Ut;exports.AlertTitle=Z;exports.Avatar=de;exports.AvatarFallback=ce;exports.AvatarImage=le;exports.Badge=Et;exports.Button=H;exports.Card=pe;exports.CardContent=xe;exports.CardDescription=ge;exports.CardFooter=be;exports.CardHeader=ue;exports.CardTitle=fe;exports.Command=I;exports.CommandDialog=Qt;exports.CommandEmpty=Re;exports.CommandGroup=De;exports.CommandInput=je;exports.CommandItem=ke;exports.CommandList=Se;exports.CommandSeparator=Te;exports.CommandShortcut=Ie;exports.ContextMenu=Wt;exports.ContextMenuCheckboxItem=ze;exports.ContextMenuContent=Ae;exports.ContextMenuGroup=Yt;exports.ContextMenuItem=Pe;exports.ContextMenuLabel=Le;exports.ContextMenuPortal=Zt;exports.ContextMenuRadioGroup=ea;exports.ContextMenuRadioItem=qe;exports.ContextMenuSeparator=He;exports.ContextMenuShortcut=Ge;exports.ContextMenuSub=$t;exports.ContextMenuSubContent=Me;exports.ContextMenuSubTrigger=_e;exports.ContextMenuTrigger=Xt;exports.Dialog=he;exports.DialogClose=Kt;exports.DialogContent=k;exports.DialogDescription=Ce;exports.DialogFooter=Ne;exports.DialogHeader=ye;exports.DialogOverlay=T;exports.DialogPortal=ve;exports.DialogTitle=we;exports.DialogTrigger=Jt;exports.DropdownMenu=zt;exports.DropdownMenuCheckboxItem=B;exports.DropdownMenuContent=O;exports.DropdownMenuGroup=Lt;exports.DropdownMenuItem=F;exports.DropdownMenuLabel=E;exports.DropdownMenuPortal=Ht;exports.DropdownMenuRadioGroup=Vt;exports.DropdownMenuRadioItem=U;exports.DropdownMenuSeparator=J;exports.DropdownMenuShortcut=K;exports.DropdownMenuSub=Gt;exports.DropdownMenuSubContent=V;exports.DropdownMenuSubTrigger=G;exports.DropdownMenuTrigger=qt;exports.HoverCard=ta;exports.HoverCardContent=Ve;exports.HoverCardTrigger=aa;exports.Input=Oe;exports.Label=Fe;exports.Popover=ra;exports.PopoverAnchor=na;exports.PopoverContent=Be;exports.PopoverTrigger=sa;exports.ScrollArea=Ue;exports.ScrollBar=_;exports.Select=ia;exports.SelectContent=Je;exports.SelectGroup=da;exports.SelectItem=Qe;exports.SelectLabel=Ke;exports.SelectScrollDownButton=A;exports.SelectScrollUpButton=M;exports.SelectSeparator=We;exports.SelectTrigger=Ee;exports.SelectValue=la;exports.Separator=Xe;exports.Sheet=ca;exports.SheetClose=pa;exports.SheetContent=Ze;exports.SheetDescription=at;exports.SheetFooter=et;exports.SheetHeader=$e;exports.SheetOverlay=P;exports.SheetPortal=Ye;exports.SheetTitle=tt;exports.SheetTrigger=ma;exports.Skeleton=fa;exports.Slider=ot;exports.Switch=rt;exports.Tabs=ga;exports.TabsContent=it;exports.TabsList=st;exports.TabsTrigger=nt;exports.Textarea=dt;exports.Toggle=ct;exports.Tooltip=ba;exports.TooltipContent=mt;exports.TooltipProvider=xa;exports.TooltipTrigger=ha;exports.badgeVariants=me;exports.buttonVariants=S;exports.cn=r;exports.toggleVariants=lt;