@chaibuilder/sdk 2.0.0-beta.110 → 2.0.0-beta.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CodeEditor-Bv7cAp6l.js → CodeEditor-C-jeR5bt.js} +1 -1
- package/dist/{CodeEditor-ol63c03C.cjs → CodeEditor-SZJ1H4vl.cjs} +1 -1
- package/dist/{Topbar-lIu26u9Y.cjs → Topbar-DSfx67NF.cjs} +1 -1
- package/dist/{Topbar-DutZ_viX.js → Topbar-DZ2jHLv7.js} +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.js +748 -698
- package/dist/render.cjs +2 -2
- package/dist/render.js +103 -102
- package/dist/tooltip-1Uu2avkZ.cjs +1 -0
- package/dist/{tooltip-CuxBhGWF.js → tooltip-PKiP886L.js} +250 -366
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +293 -192
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +159 -138
- package/package.json +3 -3
- package/dist/tooltip-DHlrjqh8.cjs +0 -1
package/dist/render.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./ChaiThemeFn-DQu-2Eh9.cjs"),s=require("lodash-es"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./ChaiThemeFn-DQu-2Eh9.cjs"),s=require("lodash-es"),m=require("./getSplitClasses-DodqA_KW.cjs"),R=require("@mhsdesign/jit-browser-tailwindcss"),$=require("@tailwindcss/aspect-ratio"),k=require("@tailwindcss/container-queries"),M=require("@tailwindcss/forms"),N=require("@tailwindcss/typography"),_=require("./plugin-2xcljWGM.cjs"),d=require("react/jsx-runtime"),j=require("@chaibuilder/runtime"),p=require("react"),Y=require("tailwind-merge"),A=(e,r="")=>{const{classes:n}=m.getSplitChaiClasses(e),t=n.split(" ").map(i=>i.split(" ").map(c=>{if(c==="")return"";if(c.includes(":")){const u=c.split(":");return u[u.length-1]=r+s.last(u),u.join(":")}return`${r}${c}`}).join(" "));return s.flattenDeep(t).join(" ")},I=e=>{if(!e)return[];try{return JSON.parse(J(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function J(e){const r=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(r,n=>{const t=decodeURIComponent(n),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function K(e,r,n=[],t="",i){return await R.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:_.getChaiBuilderTheme(e)},plugins:[M,N,$,k,_.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
|
-
@tailwind utilities;`,
|
|
3
|
+
@tailwind utilities;`,r)}const L=(e,r,n)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return K(r,[t],[],"",n)},V=async(e,r=S.defaultThemeOptions,n=!1)=>await L(e,r,n);async function U(e){const r=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return s.has(r,"$metadata")&&e.dataProviderMetadataCallback(e.block,r.$metadata),d.jsx(p.Suspense,{children:p.createElement(e.component,{...s.omit(e.props,["dataProvider","dataProviderMetadataCallback"]),...s.omit(r,"$metadata")})})}const z=s.memoize((e,r)=>{const{baseClasses:n,classes:t}=m.getSplitChaiClasses(e),i=Y.twMerge(n,t);return r===""?i.replace(m.STYLES_KEY,"").trim():A(i,r).replace(m.STYLES_KEY,"").trim()}),B=(e,r)=>{const n=s.cloneDeep(e);return s.forEach(s.keys(n),t=>{if(s.isString(n[t])){let i=n[t];const o=/\{\{(.*?)\}\}/g,l=i.match(o);l&&l.forEach(c=>{const u=c.slice(2,-2),h=s.get(r,u,c);i=i.replace(c,h)}),n[t]=i}s.isObject(n[t])&&(n[t]=B(n[t],r))}),n};function D(e,r){const n=s.get(e,`${r}_attrs`,{}),t=s.keys(n).join(" ");return s.includes(t,"x-show")&&!s.includes(t,"x-transition")&&(n["x-transition"]=""),n}function W(e,r){const n={};return Object.keys(e).forEach(t=>{if(s.isString(e[t])&&e[t].startsWith(m.STYLES_KEY)){const i=z(e[t],r);n[t]={className:i,...D(e,t)}}}),n}function Q(e,r,n){if(s.isEmpty(r))return e;const t=s.cloneDeep(e),i=s.get(n,"i18nProps",[]);return s.forEach(s.keys(t),o=>{i.includes(o)&&!s.isEmpty(r)&&(t[o]=s.get(t,`${o}-${r}`,t[o]))}),t}const G=s.memoize(e=>{const r=j.getRegisteredChaiBlock(e),n=s.get(r,"schema.properties",{});return Object.fromEntries(Object.entries(n).filter(([,t])=>s.get(t,"runtime",!1)))}),H=(e,r,n)=>s.isEmpty(n)?{}:Object.entries(n).reduce((t,[i,o])=>{const l=[];let c=s.find(e,{_id:r});for(;c;)l.push(c),c=s.find(e,{_id:c._parent});const u=s.find(l,{_type:o.block});return u&&(t[i]=s.get(u,s.get(o,"prop"),null)),t},{}),X=()=>d.jsx("span",{children:"Loading..."});function E({blocks:e,parent:r,classPrefix:n="",externalData:t={},blockModifierCallback:i=null,lang:o="",fallbackLang:l="",metadata:c={},dataProviderMetadataCallback:u=()=>{}}){const h=e,P=a=>W(a,n),b=r?s.filter(e,{_parent:r}):s.filter(e,a=>s.isEmpty(a._parent));return d.jsx(d.Fragment,{children:p.Children.toArray(b.map((a,v)=>{const C={},x=s.filter(h,{_parent:a._id});C.children=x.length>0?d.jsx(E,{externalData:t,classPrefix:n,parent:a._id,blocks:h,lang:o||l,metadata:c}):null;const g=j.getRegisteredChaiBlock(a._type);if(g!==null){let f=a;const y=g.component;f={...g.defaults,...a},i&&(f=i(f));const q=o===l?"":o,O=H(h,a._id,G(a._type)),w=B(Q(a,q,g),t),T=s.omit({blockProps:{},inBuilder:!1,...f,index:v,...w,...P(w),...C,...O,metadata:c,lang:o||l},["_parent"]);if(s.has(g,"dataProvider")){const F=s.get(g,"suspenseFallback",X);return d.jsx(p.Suspense,{fallback:p.createElement(F),children:d.jsx(U,{dataProviderMetadataCallback:u,lang:o||l,metadata:c,dataProvider:g.dataProvider,block:a,component:y,props:T})})}return d.jsx(p.Suspense,{children:p.createElement(y,T)})}return d.jsxs("noscript",{children:[a._type," not found"]})}))})}exports.getChaiThemeCssVariables=S.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=S.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=S.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=E;exports.convertToBlocks=I;exports.getStylesForBlocks=V;
|
package/dist/render.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { last as
|
|
4
|
-
import { g as
|
|
5
|
-
import { createTailwindcss as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { g as
|
|
11
|
-
import { jsx as p, Fragment as
|
|
12
|
-
import { getRegisteredChaiBlock as
|
|
13
|
-
import
|
|
14
|
-
import { twMerge as
|
|
15
|
-
const
|
|
16
|
-
const { classes:
|
|
1
|
+
import { d as W } from "./ChaiThemeFn-Cort9tch.js";
|
|
2
|
+
import { a as Nt, b as At, c as It } from "./ChaiThemeFn-Cort9tch.js";
|
|
3
|
+
import { last as Y, flattenDeep as z, has as O, omit as _, memoize as $, get as d, filter as h, isEmpty as g, cloneDeep as E, forEach as x, keys as P, isString as R, isObject as D, find as S, includes as j } from "lodash-es";
|
|
4
|
+
import { g as F, S as C } from "./getSplitClasses-DphwgQiE.js";
|
|
5
|
+
import { createTailwindcss as L } from "@mhsdesign/jit-browser-tailwindcss";
|
|
6
|
+
import Q from "@tailwindcss/aspect-ratio";
|
|
7
|
+
import q from "@tailwindcss/container-queries";
|
|
8
|
+
import G from "@tailwindcss/forms";
|
|
9
|
+
import H from "@tailwindcss/typography";
|
|
10
|
+
import { g as X, c as Z } from "./plugin-kUMxtQR5.js";
|
|
11
|
+
import { jsx as p, Fragment as tt, jsxs as et } from "react/jsx-runtime";
|
|
12
|
+
import { getRegisteredChaiBlock as N } from "@chaibuilder/runtime";
|
|
13
|
+
import y, { Suspense as w, createElement as nt } from "react";
|
|
14
|
+
import { twMerge as st } from "tailwind-merge";
|
|
15
|
+
const rt = (t, s = "") => {
|
|
16
|
+
const { classes: n } = F(t), e = n.split(" ").map((r) => r.split(" ").map((o) => {
|
|
17
17
|
if (o === "") return "";
|
|
18
18
|
if (o.includes(":")) {
|
|
19
19
|
const l = o.split(":");
|
|
20
|
-
return l[l.length - 1] =
|
|
20
|
+
return l[l.length - 1] = s + Y(l), l.join(":");
|
|
21
21
|
}
|
|
22
|
-
return `${
|
|
22
|
+
return `${s}${o}`;
|
|
23
23
|
}).join(" "));
|
|
24
|
-
return
|
|
25
|
-
},
|
|
24
|
+
return z(e).join(" ");
|
|
25
|
+
}, Et = (t) => {
|
|
26
26
|
if (!t) return [];
|
|
27
27
|
try {
|
|
28
|
-
return JSON.parse(
|
|
28
|
+
return JSON.parse(it(t)).filter((n) => !n._type.startsWith("@chai"));
|
|
29
29
|
} catch {
|
|
30
30
|
return [{ _type: "Paragraph", _id: "error", content: "Invalid JSON. Please check the JSON string." }];
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
return t.replace(
|
|
36
|
-
const e = decodeURIComponent(
|
|
33
|
+
function it(t) {
|
|
34
|
+
const s = /(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;
|
|
35
|
+
return t.replace(s, (n) => {
|
|
36
|
+
const e = decodeURIComponent(n), r = e.indexOf("public");
|
|
37
37
|
return r !== -1 ? e.substring(r + 6) : e;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
async function
|
|
41
|
-
return await
|
|
40
|
+
async function ot(t, s, n = [], e = "", r) {
|
|
41
|
+
return await L({
|
|
42
42
|
tailwindConfig: {
|
|
43
43
|
darkMode: "class",
|
|
44
|
-
safelist:
|
|
45
|
-
theme: { extend:
|
|
46
|
-
plugins: [
|
|
44
|
+
safelist: n,
|
|
45
|
+
theme: { extend: X(t) },
|
|
46
|
+
plugins: [G, H, Q, q, Z],
|
|
47
47
|
corePlugins: { preflight: r },
|
|
48
48
|
...e ? { prefix: `${e}` } : {}
|
|
49
49
|
}
|
|
@@ -51,74 +51,75 @@ async function st(t, n, s = [], e = "", r) {
|
|
|
51
51
|
` ${r ? "@tailwind base;" : ""}
|
|
52
52
|
@tailwind components;
|
|
53
53
|
@tailwind utilities;`,
|
|
54
|
-
|
|
54
|
+
s
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const at = (t, s, n) => {
|
|
58
58
|
const e = JSON.stringify(t).replace(/#styles:([^"]*)/g, (r, i) => `#styles:${i.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
|
|
59
|
-
return
|
|
60
|
-
},
|
|
61
|
-
async function
|
|
62
|
-
const
|
|
63
|
-
return
|
|
64
|
-
...
|
|
65
|
-
...
|
|
59
|
+
return ot(s, [e], [], "", n);
|
|
60
|
+
}, xt = async (t, s = W, n = !1) => await at(t, s, n);
|
|
61
|
+
async function ct(t) {
|
|
62
|
+
const s = await (t == null ? void 0 : t.dataProvider(t.block, t.lang, t.metadata));
|
|
63
|
+
return O(s, "$metadata") && t.dataProviderMetadataCallback(t.block, s.$metadata), /* @__PURE__ */ p(w, { children: y.createElement(t.component, {
|
|
64
|
+
..._(t.props, ["dataProvider", "dataProviderMetadataCallback"]),
|
|
65
|
+
..._(s, "$metadata")
|
|
66
66
|
}) });
|
|
67
67
|
}
|
|
68
|
-
const
|
|
69
|
-
const { baseClasses:
|
|
70
|
-
return
|
|
71
|
-
}),
|
|
72
|
-
const
|
|
73
|
-
return x(
|
|
74
|
-
if (
|
|
75
|
-
let r =
|
|
68
|
+
const lt = $((t, s) => {
|
|
69
|
+
const { baseClasses: n, classes: e } = F(t), r = st(n, e);
|
|
70
|
+
return s === "" ? r.replace(C, "").trim() : rt(r, s).replace(C, "").trim();
|
|
71
|
+
}), A = (t, s) => {
|
|
72
|
+
const n = E(t);
|
|
73
|
+
return x(P(n), (e) => {
|
|
74
|
+
if (R(n[e])) {
|
|
75
|
+
let r = n[e];
|
|
76
76
|
const i = /\{\{(.*?)\}\}/g, c = r.match(i);
|
|
77
77
|
c && c.forEach((o) => {
|
|
78
|
-
const l = o.slice(2, -2), m = d(
|
|
78
|
+
const l = o.slice(2, -2), m = d(s, l, o);
|
|
79
79
|
r = r.replace(o, m);
|
|
80
|
-
}),
|
|
80
|
+
}), n[e] = r;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
D(n[e]) && (n[e] = A(n[e], s));
|
|
83
|
+
}), n;
|
|
83
84
|
};
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
return
|
|
85
|
+
function dt(t, s) {
|
|
86
|
+
const n = d(t, `${s}_attrs`, {}), e = P(n).join(" ");
|
|
87
|
+
return j(e, "x-show") && !j(e, "x-transition") && (n["x-transition"] = ""), n;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
89
|
+
function ut(t, s) {
|
|
90
|
+
const n = {};
|
|
90
91
|
return Object.keys(t).forEach((e) => {
|
|
91
|
-
if (
|
|
92
|
-
const r =
|
|
93
|
-
|
|
92
|
+
if (R(t[e]) && t[e].startsWith(C)) {
|
|
93
|
+
const r = lt(t[e], s);
|
|
94
|
+
n[e] = {
|
|
94
95
|
className: r,
|
|
95
|
-
...
|
|
96
|
+
...dt(t, e)
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
|
-
}),
|
|
99
|
+
}), n;
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
-
if (g(
|
|
102
|
-
const e =
|
|
103
|
-
return x(
|
|
104
|
-
r.includes(i) && !g(
|
|
101
|
+
function pt(t, s, n) {
|
|
102
|
+
if (g(s)) return t;
|
|
103
|
+
const e = E(t), r = d(n, "i18nProps", []);
|
|
104
|
+
return x(P(e), (i) => {
|
|
105
|
+
r.includes(i) && !g(s) && (e[i] = d(e, `${i}-${s}`, e[i]));
|
|
105
106
|
}), e;
|
|
106
107
|
}
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
return Object.fromEntries(Object.entries(
|
|
110
|
-
}),
|
|
108
|
+
const mt = $((t) => {
|
|
109
|
+
const s = N(t), n = d(s, "schema.properties", {});
|
|
110
|
+
return Object.fromEntries(Object.entries(n).filter(([, e]) => d(e, "runtime", !1)));
|
|
111
|
+
}), ft = (t, s, n) => g(n) ? {} : Object.entries(n).reduce((e, [r, i]) => {
|
|
111
112
|
const c = [];
|
|
112
|
-
let o = S(t, { _id:
|
|
113
|
+
let o = S(t, { _id: s });
|
|
113
114
|
for (; o; )
|
|
114
115
|
c.push(o), o = S(t, { _id: o._parent });
|
|
115
116
|
const l = S(c, { _type: i.block });
|
|
116
117
|
return l && (e[r] = d(l, d(i, "prop"), null)), e;
|
|
117
|
-
}, {}),
|
|
118
|
-
function
|
|
118
|
+
}, {}), gt = () => /* @__PURE__ */ p("span", { children: "Loading..." });
|
|
119
|
+
function ht({
|
|
119
120
|
blocks: t,
|
|
120
|
-
parent:
|
|
121
|
-
classPrefix:
|
|
121
|
+
parent: s,
|
|
122
|
+
classPrefix: n = "",
|
|
122
123
|
externalData: e = {},
|
|
123
124
|
blockModifierCallback: r = null,
|
|
124
125
|
lang: i = "",
|
|
@@ -127,63 +128,63 @@ function ft({
|
|
|
127
128
|
dataProviderMetadataCallback: l = () => {
|
|
128
129
|
}
|
|
129
130
|
}) {
|
|
130
|
-
const m = t,
|
|
131
|
-
return /* @__PURE__ */ p(
|
|
132
|
-
|
|
133
|
-
const B = {},
|
|
134
|
-
B.children =
|
|
135
|
-
|
|
131
|
+
const m = t, I = (a) => ut(a, n), J = s ? h(t, { _parent: s }) : h(t, (a) => g(a._parent));
|
|
132
|
+
return /* @__PURE__ */ p(tt, { children: y.Children.toArray(
|
|
133
|
+
J.map((a, M) => {
|
|
134
|
+
const B = {}, U = h(m, { _parent: a._id });
|
|
135
|
+
B.children = U.length > 0 ? /* @__PURE__ */ p(
|
|
136
|
+
ht,
|
|
136
137
|
{
|
|
137
138
|
externalData: e,
|
|
138
|
-
classPrefix:
|
|
139
|
+
classPrefix: n,
|
|
139
140
|
parent: a._id,
|
|
140
141
|
blocks: m,
|
|
141
142
|
lang: i || c,
|
|
142
143
|
metadata: o
|
|
143
144
|
}
|
|
144
145
|
) : null;
|
|
145
|
-
const u =
|
|
146
|
+
const u = N(a._type);
|
|
146
147
|
if (u !== null) {
|
|
147
148
|
let f = a;
|
|
148
|
-
const
|
|
149
|
+
const b = u.component;
|
|
149
150
|
f = { ...u.defaults, ...a }, r && (f = r(f));
|
|
150
|
-
const
|
|
151
|
+
const V = i === c ? "" : i, k = ft(m, a._id, mt(a._type)), v = A(pt(a, V, u), e), T = _(
|
|
151
152
|
{
|
|
152
153
|
blockProps: {},
|
|
153
154
|
inBuilder: !1,
|
|
154
155
|
...f,
|
|
155
|
-
index:
|
|
156
|
-
...
|
|
157
|
-
...
|
|
156
|
+
index: M,
|
|
157
|
+
...v,
|
|
158
|
+
...I(v),
|
|
158
159
|
...B,
|
|
159
|
-
...
|
|
160
|
+
...k,
|
|
160
161
|
metadata: o,
|
|
161
162
|
lang: i || c
|
|
162
163
|
},
|
|
163
164
|
["_parent"]
|
|
164
165
|
);
|
|
165
|
-
if (
|
|
166
|
-
const
|
|
166
|
+
if (O(u, "dataProvider")) {
|
|
167
|
+
const K = d(
|
|
167
168
|
u,
|
|
168
169
|
"suspenseFallback",
|
|
169
|
-
|
|
170
|
+
gt
|
|
170
171
|
);
|
|
171
|
-
return /* @__PURE__ */ p(
|
|
172
|
-
|
|
172
|
+
return /* @__PURE__ */ p(w, { fallback: nt(K), children: /* @__PURE__ */ p(
|
|
173
|
+
ct,
|
|
173
174
|
{
|
|
174
175
|
dataProviderMetadataCallback: l,
|
|
175
176
|
lang: i || c,
|
|
176
177
|
metadata: o,
|
|
177
178
|
dataProvider: u.dataProvider,
|
|
178
179
|
block: a,
|
|
179
|
-
component:
|
|
180
|
+
component: b,
|
|
180
181
|
props: T
|
|
181
182
|
}
|
|
182
183
|
) });
|
|
183
184
|
}
|
|
184
|
-
return /* @__PURE__ */ p(
|
|
185
|
+
return /* @__PURE__ */ p(w, { children: y.createElement(b, T) });
|
|
185
186
|
}
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ et("noscript", { children: [
|
|
187
188
|
a._type,
|
|
188
189
|
" not found"
|
|
189
190
|
] });
|
|
@@ -191,10 +192,10 @@ function ft({
|
|
|
191
192
|
) });
|
|
192
193
|
}
|
|
193
194
|
export {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
ht as RenderChaiBlocks,
|
|
196
|
+
Et as convertToBlocks,
|
|
197
|
+
Nt as getChaiThemeCssVariables,
|
|
198
|
+
xt as getStylesForBlocks,
|
|
199
|
+
At as getThemeFontsCSSImport,
|
|
200
|
+
It as getThemeFontsLinkMarkup
|
|
200
201
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),_e=require("react"),Ae=require("@radix-ui/react-accordion"),x=require("@radix-ui/react-icons"),Ie=require("@radix-ui/react-alert-dialog"),Me=require("@radix-ui/react-slot"),v=require("class-variance-authority"),l=require("cmdk"),ze=require("@radix-ui/react-dialog"),qe=require("@radix-ui/react-dropdown-menu"),He=require("@radix-ui/react-hover-card"),Le=require("@radix-ui/react-label"),Oe=require("@radix-ui/react-popover"),Ge=require("@radix-ui/react-scroll-area"),Fe=require("@radix-ui/react-separator"),Be=require("next-themes"),Ve=require("sonner"),Ee=require("@radix-ui/react-switch"),Je=require("@radix-ui/react-tabs"),Ke=require("@radix-ui/react-tooltip"),Qe=require("clsx"),Ue=require("tailwind-merge");function m(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 s=m(_e),f=m(Ae),i=m(Ie),c=m(ze),d=m(qe),N=m(He),R=m(Le),y=m(Oe),u=m(Ge),T=m(Fe),h=m(Ee),g=m(Je),b=m(Ke),r=(...e)=>Ue.twMerge(Qe.clsx(e)),We=f.Root,k=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Item,{ref:a,className:r("border-b",e),...t}));k.displayName="AccordionItem";const S=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Header,{className:"flex",children:o.jsxs(f.Trigger,{ref:n,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,a.hideArrow?null:o.jsx(x.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));S.displayName=f.Trigger.displayName;const P=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Content,{ref:n,className:r("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...a,children:o.jsx("div",{className:"pb-4 pt-0",children:t})}));P.displayName=f.Content.displayName;const w=v.cva("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",{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"}}),_=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...p},Se)=>{const Pe=n?Me.Slot:"button";return o.jsx(Pe,{className:r(w({variant:t,size:a,className:e})),ref:Se,...p})});_.displayName="Button";const Xe=i.Root,Ye=i.Trigger,A=({className:e,...t})=>o.jsx(i.Portal,{className:r(e),...t});A.displayName=i.Portal.displayName;const I=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{className:r("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",e),...t,ref:a}));I.displayName=i.Overlay.displayName;const M=s.forwardRef(({className:e,...t},a)=>o.jsxs(A,{children:[o.jsx(I,{}),o.jsx(i.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 md:w-full",e),...t})]}));M.displayName=i.Content.displayName;const z=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});z.displayName="AlertDialogHeader";const q=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});q.displayName="AlertDialogFooter";const H=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:r("text-lg font-semibold",e),...t}));H.displayName=i.Title.displayName;const L=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));L.displayName=i.Description.displayName;const O=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Action,{ref:a,className:r(w(),e),...t}));O.displayName=i.Action.displayName;const G=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Cancel,{ref:a,className:r(w({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));G.displayName=i.Cancel.displayName;const F=v.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"}}),Ze=({className:e,variant:t,...a})=>o.jsx("div",{className:r(F({variant:t}),e),...a}),B=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));B.displayName="Card";const V=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t}));V.displayName="CardHeader";const E=s.forwardRef(({className:e,...t},a)=>o.jsx("h3",{ref:a,className:r("font-semibold leading-none tracking-tight",e),...t}));E.displayName="CardTitle";const J=s.forwardRef(({className:e,...t},a)=>o.jsx("p",{ref:a,className:r("text-sm text-muted-foreground",e),...t}));J.displayName="CardDescription";const K=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("p-6 pt-0",e),...t}));K.displayName="CardContent";const Q=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r(" flex items-center p-6 pt-0",e),...t}));Q.displayName="CardFooter";const U=c.Root,$e=c.Trigger,W=({className:e,...t})=>o.jsx(c.Portal,{className:r(e),...t});W.displayName=c.Portal.displayName;const X=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Overlay,{ref:a,className:r("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",e),...t}));X.displayName=c.Overlay.displayName;const C=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(W,{children:[o.jsx(X,{}),o.jsxs(c.Content,{ref:n,className:r("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",e),...a,children:[t,o.jsxs(c.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(x.Cross2Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));C.displayName=c.Content.displayName;const Y=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";const Z=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Z.displayName="DialogFooter";const $=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));$.displayName=c.Title.displayName;const ee=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));ee.displayName=c.Description.displayName;const j=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));j.displayName=l.Command.displayName;const et=({children:e,...t})=>o.jsx(U,{...t,children:o.jsx(C,{className:"overflow-hidden p-0",children:o.jsx(j,{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})})}),te=s.forwardRef(({className:e,...t},a)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(x.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(l.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})]}));te.displayName=l.Command.Input.displayName;const ae=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ae.displayName=l.Command.List.displayName;const oe=s.forwardRef((e,t)=>o.jsx(l.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));oe.displayName=l.Command.Empty.displayName;const re=s.forwardRef(({className:e,...t},a)=>o.jsx(l.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}));re.displayName=l.Command.Group.displayName;const se=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));se.displayName=l.Command.Separator.displayName;const ne=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.Item,{ref:a,className:r("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",e),...t}));ne.displayName=l.Command.Item.displayName;const de=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});de.displayName="CommandShortcut";const tt=d.Root,at=d.Trigger,ot=d.Group,rt=d.Portal,st=d.Sub,nt=d.RadioGroup,ie=s.forwardRef(({className:e,inset:t,children:a,...n},p)=>o.jsxs(d.SubTrigger,{ref:p,className:r("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",t&&"pl-8",e),...n,children:[a,o.jsx(x.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));ie.displayName=d.SubTrigger.displayName;const le=s.forwardRef(({className:e,...t},a)=>o.jsx(d.SubContent,{ref:a,className:r("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",e),...t}));le.displayName=d.SubContent.displayName;const ce=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 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",e),...a})}));ce.displayName=d.Content.displayName;const me=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Item,{ref:n,className:r("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",t&&"pl-8",e),...a}));me.displayName=d.Item.displayName;const pe=s.forwardRef(({className:e,children:t,checked:a,...n},p)=>o.jsxs(d.CheckboxItem,{ref:p,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(x.CheckIcon,{className:"h-4 w-4"})})}),t]}));pe.displayName=d.CheckboxItem.displayName;const ue=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(x.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ue.displayName=d.RadioItem.displayName;const fe=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}));fe.displayName=d.Label.displayName;const ge=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ge.displayName=d.Separator.displayName;const xe=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});xe.displayName="DropdownMenuShortcut";const dt=N.Root,it=N.Trigger,be=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},p)=>o.jsx(N.Content,{ref:p,align:t,sideOffset:a,className:r("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",e),...n}));be.displayName=N.Content.displayName;const ye=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r("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",e),ref:n,...a,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));ye.displayName="Input";const lt=v.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ne=s.forwardRef(({className:e,...t},a)=>o.jsx(R.Root,{ref:a,className:r(lt(),e),...t}));Ne.displayName=R.Root.displayName;const ct=y.Root,mt=y.Trigger,we=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},p)=>o.jsx(y.Portal,{children:o.jsx(y.Content,{ref:p,align:t,sideOffset:a,className:r("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",e),...n})}));we.displayName=y.Content.displayName;const he=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(u.Root,{ref:n,className:r("relative overflow-hidden",e),...a,children:[o.jsx(u.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(D,{}),o.jsx(u.Corner,{})]}));he.displayName=u.Root.displayName;const D=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(u.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 border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(u.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));D.displayName=u.ScrollAreaScrollbar.displayName;const ve=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},p)=>o.jsx(T.Root,{ref:p,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ve.displayName=T.Root.displayName;const pt=({className:e,...t})=>o.jsx("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t}),ut=({...e})=>{const{theme:t="system"}=Be.useTheme();return o.jsx(Ve.Toaster,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Ce=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Root,{className:r("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",e),...t,ref:a,children:o.jsx(h.Thumb,{className:r("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")})}));Ce.displayName=h.Root.displayName;const ft=g.Root,je=s.forwardRef(({className:e,...t},a)=>o.jsx(g.List,{ref:a,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));je.displayName=g.List.displayName;const De=s.forwardRef(({className:e,...t},a)=>o.jsx(g.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}));De.displayName=g.Trigger.displayName;const Re=s.forwardRef(({className:e,...t},a)=>o.jsx(g.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}));Re.displayName=g.Content.displayName;const Te=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-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",e),ref:a,...t,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));Te.displayName="Textarea";const gt=b.Portal,xt=b.Provider,bt=b.Root,yt=b.Trigger,ke=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(b.Content,{ref:n,sideOffset:t,className:r("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",e),...a}));ke.displayName=b.Content.displayName;exports.Accordion=We;exports.AccordionContent=P;exports.AccordionItem=k;exports.AccordionTrigger=S;exports.AlertDialog=Xe;exports.AlertDialogAction=O;exports.AlertDialogCancel=G;exports.AlertDialogContent=M;exports.AlertDialogDescription=L;exports.AlertDialogFooter=q;exports.AlertDialogHeader=z;exports.AlertDialogTitle=H;exports.AlertDialogTrigger=Ye;exports.Badge=Ze;exports.Button=_;exports.Card=B;exports.CardContent=K;exports.CardDescription=J;exports.CardFooter=Q;exports.CardHeader=V;exports.CardTitle=E;exports.Command=j;exports.CommandDialog=et;exports.CommandEmpty=oe;exports.CommandGroup=re;exports.CommandInput=te;exports.CommandItem=ne;exports.CommandList=ae;exports.CommandSeparator=se;exports.CommandShortcut=de;exports.Dialog=U;exports.DialogContent=C;exports.DialogDescription=ee;exports.DialogFooter=Z;exports.DialogHeader=Y;exports.DialogTitle=$;exports.DialogTrigger=$e;exports.DropdownMenu=tt;exports.DropdownMenuCheckboxItem=pe;exports.DropdownMenuContent=ce;exports.DropdownMenuGroup=ot;exports.DropdownMenuItem=me;exports.DropdownMenuLabel=fe;exports.DropdownMenuPortal=rt;exports.DropdownMenuRadioGroup=nt;exports.DropdownMenuRadioItem=ue;exports.DropdownMenuSeparator=ge;exports.DropdownMenuShortcut=xe;exports.DropdownMenuSub=st;exports.DropdownMenuSubContent=le;exports.DropdownMenuSubTrigger=ie;exports.DropdownMenuTrigger=at;exports.HoverCard=dt;exports.HoverCardContent=be;exports.HoverCardTrigger=it;exports.Input=ye;exports.Label=Ne;exports.Popover=ct;exports.PopoverContent=we;exports.PopoverTrigger=mt;exports.ScrollArea=he;exports.ScrollBar=D;exports.Separator=ve;exports.Skeleton=pt;exports.Switch=Ce;exports.Tabs=ft;exports.TabsContent=Re;exports.TabsList=je;exports.TabsTrigger=De;exports.Textarea=Te;exports.Toaster=ut;exports.Tooltip=bt;exports.TooltipContent=ke;exports.TooltipPortal=gt;exports.TooltipProvider=xt;exports.TooltipTrigger=yt;exports.badgeVariants=F;exports.buttonVariants=w;exports.cn=r;
|