@chaibuilder/sdk 3.1.26 → 3.1.28
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/{IconPicker-CluS-5Mv.js → IconPicker-6JSublJp.js} +1 -1
- package/dist/{IconPicker-BWE43eMO.cjs → IconPicker-DpQQDK_Q.cjs} +1 -1
- package/dist/{apply-binding-COFSiTeM.js → apply-binding-BwPhgnhk.js} +326 -198
- package/dist/apply-binding-Dblf6wMG.cjs +1 -0
- package/dist/{code-display-BOOy3Lpy.js → code-display-DuH-UOhl.js} +1 -1
- package/dist/{code-display-B1O2gN5f.cjs → code-display-Dw1tAwiJ.cjs} +1 -1
- package/dist/code-editor-DosOD_MJ.cjs +1 -0
- package/dist/{code-editor-TDs5CPAW.js → code-editor-W1Kvc_mp.js} +6 -5
- package/dist/common-functions-B3a4xKt_.cjs +1 -0
- package/dist/common-functions-D2lMFR6K.js +13 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +13 -2
- package/dist/core.js +3 -3
- package/dist/{css-import-modal-sHoiyimv.js → css-import-modal-CFB2YjDT.js} +1 -1
- package/dist/{css-import-modal-CrlmcFy4.cjs → css-import-modal-bGWZSlqv.cjs} +1 -1
- package/dist/{index-DFvi9z_N.js → index-hrVqQhCa.js} +2853 -2530
- package/dist/index-tOL3lzGY.cjs +154 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +9 -0
- package/dist/render.js +69 -66
- package/dist/{rte-widget-modal-DX07GFaV.cjs → rte-widget-modal-BFwz3uU8.cjs} +1 -1
- package/dist/{rte-widget-modal-3KfJEwf3.js → rte-widget-modal-DioHGWr7.js} +2 -2
- package/dist/{tooltip-CzZ7Fvt7.cjs → tooltip-Ba1-8jmj.cjs} +1 -1
- package/dist/{tooltip-Bz2MxMHf.js → tooltip-DUosa-uC.js} +83 -83
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +14 -14
- package/dist/ui.js +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +1 -1
- package/package.json +3 -2
- package/dist/apply-binding-Dvnd_Vhq.cjs +0 -1
- package/dist/code-editor-B7JGUrWa.cjs +0 -1
- package/dist/common-functions-BGzDsf1z.js +0 -14
- package/dist/common-functions-BZmyleS1.cjs +0 -1
- package/dist/index-C4b6LcwL.cjs +0 -154
package/dist/render.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./plugin-CSgw-f78.cjs"),d=require("./apply-binding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./plugin-CSgw-f78.cjs"),d=require("./apply-binding-Dblf6wMG.cjs"),m=require("react/jsx-runtime"),b=require("@chaibuilder/runtime"),t=require("lodash-es"),g=require("react"),D=require("@tailwindcss/aspect-ratio"),F=require("@tailwindcss/forms"),q=require("@tailwindcss/typography");require("tailwindcss-animate");const j=require("./get-chai-builder-theme-B1tr_NJB.cjs"),K=require("@mhsdesign/jit-browser-tailwindcss"),M=require("@tailwindcss/container-queries");async function O(e){const a={pageProps:e.pageProps,block:e.block,lang:e.lang,draft:e.draft,inBuilder:!1},n=await e.dataProvider(a);return t.has(n,"$metadata")&&t.isFunction(e.dataProviderMetadataCallback)&&e.dataProviderMetadataCallback(e.block,n.$metadata),e.children({...t.omit(n,"$metadata")})}const N=()=>m.jsx("div",{}),H=e=>{const{block:a,lang:n,fallbackLang:s,children:i,externalData:o,blocks:l,draft:r,pageProps:c,dataProviderMetadataCallback:k}=e,u=b.getRegisteredChaiBlock(a._type),p=t.get(u,"component",null),P=t.get(e.repeaterData,"index",-1),f=t.get(e.repeaterData,"dataKey",""),I=n===s?"":n,y=d.applyBindingToBlockProps(d.applyLanguage(a,I,u),o,{index:P,key:f}),h=d.getBlockTagAttributes(a,!1),T=L(l,a._id,d.getBlockRuntimeProps(a._type)),S=t.has(u,"dataProvider")&&t.isFunction(u.dataProvider),B={...y,...h,...T},_={blockProps:{},inBuilder:!1,lang:n||s,...B},v=t.get(B,"_show",!0);if(t.isNull(p)||!v)return null;if(S){const $=t.get(u,"suspenseFallback",N);return m.jsx(g.Suspense,{fallback:g.createElement($),children:m.jsx(O,{lang:n,pageProps:c,block:B,dataProvider:u.dataProvider,...k?{dataProviderMetadataCallback:k}:{},draft:r,children:x=>g.createElement(p,{..._,...x,children:i({_id:a._id,_type:a._type,...t.isArray(y.repeaterItems)?{repeaterItems:d.applyLimit(y.repeaterItems,a),$repeaterItemsKey:y.$repeaterItemsKey,repeaterTotalItems:y.repeaterTotalItems??-1}:{}})})})})}return m.jsx(g.Suspense,{children:g.createElement(p,{..._,children:i({_id:a._id,_type:a._type,...t.isArray(y.repeaterItems)?{repeaterItems:d.applyLimit(y.repeaterItems,a),$repeaterItemsKey:y.$repeaterItemsKey,repeaterTotalItems:y.repeaterTotalItems??-1}:{}})})})},E=e=>{const{blocks:a,parent:n,repeaterData:s,type:i}=e;let o=t.uniqBy(t.filter(a,r=>t.has(r,"_id")&&(t.isEmpty(n)?!r._parent:r._parent===n)),"_id");const l=r=>t.filter(a,c=>c._parent===r).length>0;return(i==="Heading"||i==="Paragraph"||i==="Link"||i==="Span")&&(o=d.adjustSpacingInContentBlocks(o)),t.map(o,r=>r?g.createElement(H,{...e,key:r._id,block:r},({_id:c,_type:k,repeaterItems:u,$repeaterItemsKey:p})=>k==="Repeater"?t.isArray(u)&&u.map((P,f)=>g.createElement(E,{...e,parent:r._id,key:`${t.get(r,"_parent","root")}-${r._id}-${f}`,repeaterData:{index:f,dataKey:p}})):l(c)?g.createElement(E,{...e,parent:r._id,key:`${t.get(r,"_parent","root")}-${r._id}`,repeaterData:s,type:r._type}):null):null)},L=(e,a,n)=>t.isEmpty(n)?{}:Object.entries(n).reduce((s,[i,o])=>{const l=[];let r=t.find(e,{_id:a});for(;r;)l.push(r),r=t.find(e,{_id:r._parent});const c=t.find(l,{_type:o.block});return c&&(s[i]=t.get(c,t.get(o,"prop"),null)),s},{});function J(e){if(t.isEmpty(e.lang)&&!t.isEmpty(e.fallbackLang))throw new Error("lang prop is required when fallbackLang is provided");if(t.isEmpty(e.blocks))return null;const a=e.lang??"en",n=e.fallbackLang??a;return m.jsx(E,{...e,lang:a,fallbackLang:n})}async function V(e){const a=await e.dataProvider;return t.has(a,"$metadata")&&t.isFunction(e.dataProviderMetadataCallback)&&e.dataProviderMetadataCallback(e.block,a.$metadata),e.children({...t.omit(a,"$metadata")})}const W=()=>m.jsx("div",{}),U=async e=>{const{block:a,lang:n,fallbackLang:s,children:i,externalData:o,blocks:l,draft:r,pageProps:c,dataProviderMetadataCallback:k,dataProviders:u}=e,p=b.getRegisteredChaiBlock(a._type),P=t.get(p,"component",null),f=t.get(e.repeaterData,"index",-1),I=t.get(e.repeaterData,"dataKey",""),y=n===s?"":n,h=d.applyBindingToBlockProps(d.applyLanguage(a,y,p),o,{index:f,key:I}),T=d.getBlockTagAttributes(a,!1),S=L(l,a._id,d.getBlockRuntimeProps(a._type)),B=t.has(p,"dataProvider")&&t.isFunction(p.dataProvider),_={...h,...T,...S},v={blockProps:{},inBuilder:!1,lang:n||s,..._},$=t.get(_,"_show",!0);if(t.isNull(P)||!$)return null;if(B){const x=t.get(u,a._id,Promise.resolve({})),R=t.get(p,"suspenseFallback",W);return m.jsx(g.Suspense,{fallback:g.createElement(R),children:m.jsx(V,{lang:n,pageProps:c,block:_,dataProvider:x,...k?{dataProviderMetadataCallback:k}:{},draft:r,children:A=>g.createElement(P,{...v,draft:r,...A,children:i({_id:a._id,_type:a._type,...t.isArray(h.repeaterItems)?{repeaterItems:d.applyLimit(h.repeaterItems,a),$repeaterItemsKey:h.$repeaterItemsKey,repeaterTotalItems:h.repeaterTotalItems??-1}:{}})})})})}return g.createElement(P,{...v,draft:r,children:i({_id:a._id,_type:a._type,...t.isArray(h.repeaterItems)?{repeaterItems:d.applyLimit(h.repeaterItems,a),$repeaterItemsKey:h.$repeaterItemsKey,repeaterTotalItems:h.repeaterTotalItems??-1}:{}})})},C=async e=>{const{blocks:a,parent:n,repeaterData:s,type:i}=e;let o=t.uniqBy(t.filter(a,r=>t.has(r,"_id")&&(t.isEmpty(n)?!r._parent:r._parent===n)),"_id");const l=r=>t.filter(a,c=>c._parent===r).length>0;return(i==="Heading"||i==="Paragraph"||i==="Link")&&(o=d.adjustSpacingInContentBlocks(o)),t.map(o,r=>r?g.createElement(U,{dataProviders:e.dataProviders,...e,key:r._id,block:r},({_id:c,_type:k,repeaterItems:u,$repeaterItemsKey:p})=>k==="Repeater"?t.isArray(u)&&u.map((P,f)=>g.createElement(C,{...e,parent:r._id,key:`${t.get(r,"_parent","root")}-${r._id}-${f}`,repeaterData:{index:f,dataKey:p}})):l(c)?g.createElement(C,{...e,parent:r._id,key:`${t.get(r,"_parent","root")}-${r._id}`,repeaterData:s,type:r._type}):null):null)};async function G(e){if(t.isEmpty(e.lang)&&!t.isEmpty(e.fallbackLang))throw new Error("lang prop is required when fallbackLang is provided");if(t.isEmpty(e.blocks))return null;const a=e.lang??"en",n=e.fallbackLang??a;if(e.dataProviders)return m.jsx(C,{...e,lang:a,fallbackLang:n,dataProviders:e.dataProviders});const i=e.blocks.filter(o=>{const l=b.getRegisteredChaiBlock(o._type);return!!(t.has(l,"dataProvider")&&t.isFunction(l.dataProvider))}).reduce((o,l)=>{const r=b.getRegisteredChaiBlock(l._type),c={pageProps:e.pageProps,block:l,lang:e.lang,draft:e.draft,inBuilder:!1};return o[l._id]=r.dataProvider(c),o},{});return m.jsx(C,{...e,lang:a,fallbackLang:n,dataProviders:i})}function z(e,a){const n=e.filter(({_type:s})=>s==="GlobalBlock"||s==="PartialBlock");for(let s=0;s<n.length;s++){const i=n[s],o=t.get(i,"partialBlockId",t.get(i,"globalBlock",""));if(o==="")continue;let l=t.cloneDeep(t.get(a,o,[]));i._parent&&(l==null?void 0:l.length)>0&&(l=l.map(c=>(t.isEmpty(c._parent)&&(c._parent=i._parent),c)));const r=e.indexOf(i);e.splice(r,1,...l)}return e}const Q=e=>{if(!e)return[];try{return JSON.parse(X(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function X(e){const a=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(a,n=>{const s=decodeURIComponent(n),i=s.indexOf("public");return i!==-1?s.substring(i+6):s})}async function Y(e,a=[],n=!1){return await K.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:a,theme:{extend:{...j.getChaiBuilderTheme(),keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}},plugins:[F,q,D,M,w.chaiBuilderPlugin],corePlugins:{preflight:n}}}).generateStylesFromContent(` ${n?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
|
-
@tailwind utilities;`,e)}const Z=(e,a)=>{const n=JSON.stringify(e).replace(/#styles:([^"]*)/g,(s,i)=>`#styles:${i.replace(/,/g," ")}`.replace(/#styles:/g,""));return Y([n],[],a)},ee=async(e,a=!1)=>await Z(e,a);exports.getChaiThemeCssVariables=w.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=w.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=w.getThemeFontsLinkMarkup;exports.applyChaiDataBinding=d.applyChaiDataBinding;exports.convertHTMLToChaiBlocks=d.getBlocksFromHTML;exports.AsyncRenderChaiBlocks=G;exports.RenderChaiBlocks=J;exports.convertToBlocks=Q;exports.getMergedPartialBlocks=z;exports.getStylesForBlocks=ee;
|
|
3
|
+
@tailwind utilities;`,e)}const Z=(e,a)=>{const n=JSON.stringify(e).replace(/#styles:([^"]*)/g,(s,i)=>`#styles:${i.replace(/,/g," ")}`.replace(/#styles:/g,""));return Y([n],[],a)},ee=async(e,a=!1)=>await Z(e,a);exports.getChaiThemeCssVariables=w.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=w.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=w.getThemeFontsLinkMarkup;exports.applyChaiDataBinding=d.applyChaiDataBinding;exports.applyDesignTokens=d.applyDesignTokens;exports.convertHTMLToChaiBlocks=d.getBlocksFromHTML;exports.AsyncRenderChaiBlocks=G;exports.RenderChaiBlocks=J;exports.convertToBlocks=Q;exports.getMergedPartialBlocks=z;exports.getStylesForBlocks=ee;
|
package/dist/render.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
export declare const applyChaiDataBinding: (block: Record<string, string>, pageExternalData: Record<string, any>) => Record<string, string>;
|
|
6
6
|
|
|
7
|
+
export declare const applyDesignTokens: (blocks: ChaiBlock[], designTokens: DesignTokens) => ChaiBlock[];
|
|
8
|
+
|
|
7
9
|
export declare function AsyncRenderChaiBlocks(props: RenderChaiBlocksProps): Promise<JSX.Element>;
|
|
8
10
|
|
|
9
11
|
declare type ChaiBlock<T = Record<string, any>> = {
|
|
@@ -58,6 +60,13 @@ export declare const convertHTMLToChaiBlocks: (html: string) => ChaiBlock[];
|
|
|
58
60
|
*/
|
|
59
61
|
export declare const convertToBlocks: (chaiFormatContent: string) => ChaiBlock[];
|
|
60
62
|
|
|
63
|
+
declare interface DesignTokens {
|
|
64
|
+
[uniqueId: string]: {
|
|
65
|
+
name: string;
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
export declare const getChaiThemeCssVariables: (chaiTheme: ChaiThemeValues) => string;
|
|
62
71
|
|
|
63
72
|
export declare function getMergedPartialBlocks(blocks: ChaiBlock[], partials: Record<string, ChaiBlock[]>): ChaiBlock[];
|
package/dist/render.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as Q } from "./plugin-BOcGV_IY.js";
|
|
2
2
|
import { a as Ke, b as Re, e as Ae } from "./plugin-BOcGV_IY.js";
|
|
3
|
-
import { a as O, b as N, g as E, c as J, d as C, e as j } from "./apply-binding-
|
|
4
|
-
import { f as Me,
|
|
5
|
-
import { jsx as
|
|
3
|
+
import { a as O, b as N, g as E, c as J, d as C, e as j } from "./apply-binding-BwPhgnhk.js";
|
|
4
|
+
import { f as Me, i as Oe, h as Ne } from "./apply-binding-BwPhgnhk.js";
|
|
5
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
6
6
|
import { getRegisteredChaiBlock as $ } from "@chaibuilder/runtime";
|
|
7
|
-
import { has as P, isFunction as w, omit as q, get as d, isNull as H, isArray as b, uniqBy as W, filter as S, isEmpty as h, map as U, find as
|
|
8
|
-
import { Suspense as
|
|
7
|
+
import { has as P, isFunction as w, omit as q, get as d, isNull as H, isArray as b, uniqBy as W, filter as S, isEmpty as h, map as U, find as R, cloneDeep as X } from "lodash-es";
|
|
8
|
+
import { Suspense as A, createElement as p } from "react";
|
|
9
9
|
import Y from "@tailwindcss/aspect-ratio";
|
|
10
10
|
import Z from "@tailwindcss/forms";
|
|
11
11
|
import ee from "@tailwindcss/typography";
|
|
@@ -25,15 +25,15 @@ async function ne(e) {
|
|
|
25
25
|
...q(r, "$metadata")
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
const ie = () => /* @__PURE__ */
|
|
29
|
-
const { block: t, lang: r, fallbackLang: i, children: n, externalData: s, blocks: o, draft: a, pageProps: l, dataProviderMetadataCallback: k } = e, c = $(t._type), u = d(c, "component", null), _ = d(e.repeaterData, "index", -1), y = d(e.repeaterData, "dataKey", ""),
|
|
28
|
+
const ie = () => /* @__PURE__ */ m("div", {}), oe = (e) => {
|
|
29
|
+
const { block: t, lang: r, fallbackLang: i, children: n, externalData: s, blocks: o, draft: a, pageProps: l, dataProviderMetadataCallback: k } = e, c = $(t._type), u = d(c, "component", null), _ = d(e.repeaterData, "index", -1), y = d(e.repeaterData, "dataKey", ""), f = O(
|
|
30
30
|
N(t, r === i ? "" : r, c),
|
|
31
31
|
s,
|
|
32
32
|
{ index: _, key: y }
|
|
33
|
-
),
|
|
34
|
-
...
|
|
35
|
-
...
|
|
36
|
-
...
|
|
33
|
+
), g = E(t, !1), x = V(o, t._id, J(t._type)), L = P(c, "dataProvider") && w(c.dataProvider), B = {
|
|
34
|
+
...f,
|
|
35
|
+
...g,
|
|
36
|
+
...x
|
|
37
37
|
}, v = {
|
|
38
38
|
blockProps: {},
|
|
39
39
|
inBuilder: !1,
|
|
@@ -41,9 +41,9 @@ const ie = () => /* @__PURE__ */ f("div", {}), oe = (e) => {
|
|
|
41
41
|
...B
|
|
42
42
|
}, I = d(B, "_show", !0);
|
|
43
43
|
if (H(u) || !I) return null;
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
return /* @__PURE__ */
|
|
44
|
+
if (L) {
|
|
45
|
+
const D = d(c, "suspenseFallback", ie);
|
|
46
|
+
return /* @__PURE__ */ m(A, { fallback: p(D), children: /* @__PURE__ */ m(
|
|
47
47
|
ne,
|
|
48
48
|
{
|
|
49
49
|
lang: r,
|
|
@@ -52,31 +52,31 @@ const ie = () => /* @__PURE__ */ f("div", {}), oe = (e) => {
|
|
|
52
52
|
dataProvider: c.dataProvider,
|
|
53
53
|
...k ? { dataProviderMetadataCallback: k } : {},
|
|
54
54
|
draft: a,
|
|
55
|
-
children: (
|
|
55
|
+
children: (K) => p(u, {
|
|
56
56
|
...v,
|
|
57
|
-
...
|
|
57
|
+
...K,
|
|
58
58
|
children: n({
|
|
59
59
|
_id: t._id,
|
|
60
60
|
_type: t._type,
|
|
61
|
-
...b(
|
|
62
|
-
repeaterItems: C(
|
|
63
|
-
$repeaterItemsKey:
|
|
64
|
-
repeaterTotalItems:
|
|
61
|
+
...b(f.repeaterItems) ? {
|
|
62
|
+
repeaterItems: C(f.repeaterItems, t),
|
|
63
|
+
$repeaterItemsKey: f.$repeaterItemsKey,
|
|
64
|
+
repeaterTotalItems: f.repeaterTotalItems ?? -1
|
|
65
65
|
} : {}
|
|
66
66
|
})
|
|
67
67
|
})
|
|
68
68
|
}
|
|
69
69
|
) });
|
|
70
70
|
}
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ m(A, { children: p(u, {
|
|
72
72
|
...v,
|
|
73
73
|
children: n({
|
|
74
74
|
_id: t._id,
|
|
75
75
|
_type: t._type,
|
|
76
|
-
...b(
|
|
77
|
-
repeaterItems: C(
|
|
78
|
-
$repeaterItemsKey:
|
|
79
|
-
repeaterTotalItems:
|
|
76
|
+
...b(f.repeaterItems) ? {
|
|
77
|
+
repeaterItems: C(f.repeaterItems, t),
|
|
78
|
+
$repeaterItemsKey: f.$repeaterItemsKey,
|
|
79
|
+
repeaterTotalItems: f.repeaterTotalItems ?? -1
|
|
80
80
|
} : {}
|
|
81
81
|
})
|
|
82
82
|
}) });
|
|
@@ -87,7 +87,7 @@ const ie = () => /* @__PURE__ */ f("div", {}), oe = (e) => {
|
|
|
87
87
|
"_id"
|
|
88
88
|
);
|
|
89
89
|
const o = (a) => S(t, (l) => l._parent === a).length > 0;
|
|
90
|
-
return (n === "Heading" || n === "Paragraph" || n === "Link") && (s = j(s)), U(s, (a) => a ? /* @__PURE__ */
|
|
90
|
+
return (n === "Heading" || n === "Paragraph" || n === "Link" || n === "Span") && (s = j(s)), U(s, (a) => a ? /* @__PURE__ */ p(oe, { ...e, key: a._id, block: a }, ({ _id: l, _type: k, repeaterItems: c, $repeaterItemsKey: u }) => k === "Repeater" ? b(c) && c.map((_, y) => /* @__PURE__ */ p(
|
|
91
91
|
F,
|
|
92
92
|
{
|
|
93
93
|
...e,
|
|
@@ -95,7 +95,7 @@ const ie = () => /* @__PURE__ */ f("div", {}), oe = (e) => {
|
|
|
95
95
|
key: `${d(a, "_parent", "root")}-${a._id}-${y}`,
|
|
96
96
|
repeaterData: { index: y, dataKey: u }
|
|
97
97
|
}
|
|
98
|
-
)) : o(l) ? /* @__PURE__ */
|
|
98
|
+
)) : o(l) ? /* @__PURE__ */ p(
|
|
99
99
|
F,
|
|
100
100
|
{
|
|
101
101
|
...e,
|
|
@@ -107,10 +107,10 @@ const ie = () => /* @__PURE__ */ f("div", {}), oe = (e) => {
|
|
|
107
107
|
) : null) : null);
|
|
108
108
|
}, V = (e, t, r) => h(r) ? {} : Object.entries(r).reduce((i, [n, s]) => {
|
|
109
109
|
const o = [];
|
|
110
|
-
let a =
|
|
110
|
+
let a = R(e, { _id: t });
|
|
111
111
|
for (; a; )
|
|
112
|
-
o.push(a), a =
|
|
113
|
-
const l =
|
|
112
|
+
o.push(a), a = R(e, { _id: a._parent });
|
|
113
|
+
const l = R(o, { _type: s.block });
|
|
114
114
|
return l && (i[n] = d(l, d(s, "prop"), null)), i;
|
|
115
115
|
}, {});
|
|
116
116
|
function Ce(e) {
|
|
@@ -119,7 +119,7 @@ function Ce(e) {
|
|
|
119
119
|
if (h(e.blocks))
|
|
120
120
|
return null;
|
|
121
121
|
const t = e.lang ?? "en", r = e.fallbackLang ?? t;
|
|
122
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ m(F, { ...e, lang: t, fallbackLang: r });
|
|
123
123
|
}
|
|
124
124
|
async function se(e) {
|
|
125
125
|
const t = await e.dataProvider;
|
|
@@ -127,7 +127,7 @@ async function se(e) {
|
|
|
127
127
|
...q(t, "$metadata")
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
const le = () => /* @__PURE__ */
|
|
130
|
+
const le = () => /* @__PURE__ */ m("div", {}), de = async (e) => {
|
|
131
131
|
const {
|
|
132
132
|
block: t,
|
|
133
133
|
lang: r,
|
|
@@ -139,77 +139,79 @@ const le = () => /* @__PURE__ */ f("div", {}), de = async (e) => {
|
|
|
139
139
|
pageProps: l,
|
|
140
140
|
dataProviderMetadataCallback: k,
|
|
141
141
|
dataProviders: c
|
|
142
|
-
} = e, u = $(t._type), _ = d(u, "component", null), y = d(e.repeaterData, "index", -1), M = d(e.repeaterData, "dataKey", ""),
|
|
142
|
+
} = e, u = $(t._type), _ = d(u, "component", null), y = d(e.repeaterData, "index", -1), M = d(e.repeaterData, "dataKey", ""), g = O(
|
|
143
143
|
N(t, r === i ? "" : r, u),
|
|
144
144
|
s,
|
|
145
145
|
{ index: y, key: M }
|
|
146
|
-
),
|
|
147
|
-
...
|
|
148
|
-
...
|
|
149
|
-
...
|
|
146
|
+
), x = E(t, !1), L = V(o, t._id, J(t._type)), B = P(u, "dataProvider") && w(u.dataProvider), v = {
|
|
147
|
+
...g,
|
|
148
|
+
...x,
|
|
149
|
+
...L
|
|
150
150
|
}, I = {
|
|
151
151
|
blockProps: {},
|
|
152
152
|
inBuilder: !1,
|
|
153
153
|
lang: r || i,
|
|
154
154
|
...v
|
|
155
|
-
},
|
|
156
|
-
if (H(_) || !
|
|
155
|
+
}, D = d(v, "_show", !0);
|
|
156
|
+
if (H(_) || !D) return null;
|
|
157
157
|
if (B) {
|
|
158
|
-
const
|
|
159
|
-
return /* @__PURE__ */
|
|
158
|
+
const K = d(c, t._id, Promise.resolve({})), G = d(u, "suspenseFallback", le);
|
|
159
|
+
return /* @__PURE__ */ m(A, { fallback: p(G), children: /* @__PURE__ */ m(
|
|
160
160
|
se,
|
|
161
161
|
{
|
|
162
162
|
lang: r,
|
|
163
163
|
pageProps: l,
|
|
164
164
|
block: v,
|
|
165
|
-
dataProvider:
|
|
165
|
+
dataProvider: K,
|
|
166
166
|
...k ? { dataProviderMetadataCallback: k } : {},
|
|
167
167
|
draft: a,
|
|
168
|
-
children: (z) =>
|
|
168
|
+
children: (z) => p(_, {
|
|
169
169
|
...I,
|
|
170
|
+
draft: a,
|
|
170
171
|
...z,
|
|
171
172
|
children: n({
|
|
172
173
|
_id: t._id,
|
|
173
174
|
_type: t._type,
|
|
174
|
-
...b(
|
|
175
|
-
repeaterItems: C(
|
|
176
|
-
$repeaterItemsKey:
|
|
177
|
-
repeaterTotalItems:
|
|
175
|
+
...b(g.repeaterItems) ? {
|
|
176
|
+
repeaterItems: C(g.repeaterItems, t),
|
|
177
|
+
$repeaterItemsKey: g.$repeaterItemsKey,
|
|
178
|
+
repeaterTotalItems: g.repeaterTotalItems ?? -1
|
|
178
179
|
} : {}
|
|
179
180
|
})
|
|
180
181
|
})
|
|
181
182
|
}
|
|
182
183
|
) });
|
|
183
184
|
}
|
|
184
|
-
return
|
|
185
|
+
return p(_, {
|
|
185
186
|
...I,
|
|
187
|
+
draft: a,
|
|
186
188
|
children: n({
|
|
187
189
|
_id: t._id,
|
|
188
190
|
_type: t._type,
|
|
189
|
-
...b(
|
|
190
|
-
repeaterItems: C(
|
|
191
|
-
$repeaterItemsKey:
|
|
192
|
-
repeaterTotalItems:
|
|
191
|
+
...b(g.repeaterItems) ? {
|
|
192
|
+
repeaterItems: C(g.repeaterItems, t),
|
|
193
|
+
$repeaterItemsKey: g.$repeaterItemsKey,
|
|
194
|
+
repeaterTotalItems: g.repeaterTotalItems ?? -1
|
|
193
195
|
} : {}
|
|
194
196
|
})
|
|
195
|
-
})
|
|
196
|
-
},
|
|
197
|
+
});
|
|
198
|
+
}, T = async (e) => {
|
|
197
199
|
const { blocks: t, parent: r, repeaterData: i, type: n } = e;
|
|
198
200
|
let s = W(
|
|
199
201
|
S(t, (a) => P(a, "_id") && (h(r) ? !a._parent : a._parent === r)),
|
|
200
202
|
"_id"
|
|
201
203
|
);
|
|
202
204
|
const o = (a) => S(t, (l) => l._parent === a).length > 0;
|
|
203
|
-
return (n === "Heading" || n === "Paragraph" || n === "Link") && (s = j(s)), U(s, (a) => a ? /* @__PURE__ */
|
|
204
|
-
|
|
205
|
+
return (n === "Heading" || n === "Paragraph" || n === "Link") && (s = j(s)), U(s, (a) => a ? /* @__PURE__ */ p(de, { dataProviders: e.dataProviders, ...e, key: a._id, block: a }, ({ _id: l, _type: k, repeaterItems: c, $repeaterItemsKey: u }) => k === "Repeater" ? b(c) && c.map((_, y) => /* @__PURE__ */ p(
|
|
206
|
+
T,
|
|
205
207
|
{
|
|
206
208
|
...e,
|
|
207
209
|
parent: a._id,
|
|
208
210
|
key: `${d(a, "_parent", "root")}-${a._id}-${y}`,
|
|
209
211
|
repeaterData: { index: y, dataKey: u }
|
|
210
212
|
}
|
|
211
|
-
)) : o(l) ? /* @__PURE__ */
|
|
212
|
-
|
|
213
|
+
)) : o(l) ? /* @__PURE__ */ p(
|
|
214
|
+
T,
|
|
213
215
|
{
|
|
214
216
|
...e,
|
|
215
217
|
parent: a._id,
|
|
@@ -226,7 +228,7 @@ async function $e(e) {
|
|
|
226
228
|
return null;
|
|
227
229
|
const t = e.lang ?? "en", r = e.fallbackLang ?? t;
|
|
228
230
|
if (e.dataProviders)
|
|
229
|
-
return /* @__PURE__ */
|
|
231
|
+
return /* @__PURE__ */ m(T, { ...e, lang: t, fallbackLang: r, dataProviders: e.dataProviders });
|
|
230
232
|
const n = e.blocks.filter((s) => {
|
|
231
233
|
const o = $(s._type);
|
|
232
234
|
return !!(P(o, "dataProvider") && w(o.dataProvider));
|
|
@@ -243,7 +245,7 @@ async function $e(e) {
|
|
|
243
245
|
},
|
|
244
246
|
{}
|
|
245
247
|
);
|
|
246
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ m(T, { ...e, lang: t, fallbackLang: r, dataProviders: n });
|
|
247
249
|
}
|
|
248
250
|
function Se(e, t) {
|
|
249
251
|
const r = e.filter(({ _type: i }) => i === "GlobalBlock" || i === "PartialBlock");
|
|
@@ -257,7 +259,7 @@ function Se(e, t) {
|
|
|
257
259
|
}
|
|
258
260
|
return e;
|
|
259
261
|
}
|
|
260
|
-
const
|
|
262
|
+
const Te = (e) => {
|
|
261
263
|
if (!e) return [];
|
|
262
264
|
try {
|
|
263
265
|
return JSON.parse(ce(e)).filter((r) => !r._type.startsWith("@chai"));
|
|
@@ -314,19 +316,20 @@ async function ue(e, t = [], r = !1) {
|
|
|
314
316
|
e
|
|
315
317
|
);
|
|
316
318
|
}
|
|
317
|
-
const
|
|
319
|
+
const pe = (e, t) => {
|
|
318
320
|
const r = JSON.stringify(e).replace(/#styles:([^"]*)/g, (i, n) => `#styles:${n.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
|
|
319
321
|
return ue([r], [], t);
|
|
320
|
-
},
|
|
322
|
+
}, xe = async (e, t = !1) => await pe(e, t);
|
|
321
323
|
export {
|
|
322
324
|
$e as AsyncRenderChaiBlocks,
|
|
323
325
|
Ce as RenderChaiBlocks,
|
|
324
326
|
Me as applyChaiDataBinding,
|
|
325
|
-
Oe as
|
|
326
|
-
|
|
327
|
+
Oe as applyDesignTokens,
|
|
328
|
+
Ne as convertHTMLToChaiBlocks,
|
|
329
|
+
Te as convertToBlocks,
|
|
327
330
|
Ke as getChaiThemeCssVariables,
|
|
328
331
|
Se as getMergedPartialBlocks,
|
|
329
|
-
|
|
332
|
+
xe as getStylesForBlocks,
|
|
330
333
|
Re as getThemeFontsCSSImport,
|
|
331
334
|
Ae as getThemeFontsLinkMarkup
|
|
332
335
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("./index-tOL3lzGY.cjs"),n=require("./tooltip-Ba1-8jmj.cjs");require("clsx");require("tailwind-merge");const S=({isOpen:m,onClose:l,editor:t,rteElement:f})=>{const r=u.usePageExternalData(),j=o=>{if(!t)return;const i=`{{${o}}}`;t.commands.focus();const{from:p,to:g}=t.state.selection;if(p!==g)t.chain().deleteSelection().insertContent(i).run();else{const{state:c}=t,s=c.selection.from,x=c.doc.textBetween(Math.max(0,s-1),s),a=c.doc.textBetween(s,Math.min(s+1,c.doc.content.size));let d="";s>0&&x!==" "&&!/[.,!?;:]/.test(x)&&(d=" ");let h="";a&&a!==" "&&!/[.,!?;:]/.test(a)&&(h=" "),t.chain().insertContent(d+i+h).run()}};return e.jsx(n.Dialog,{open:m,onOpenChange:o=>!o&&l(),children:e.jsxs(n.DialogContent,{className:"max-h-[90vh] overflow-y-auto sm:max-w-[800px]",children:[e.jsx(n.DialogHeader,{children:e.jsxs(n.DialogTitle,{className:"flex items-center justify-between pr-8",children:[e.jsx("span",{children:"Rich Text Editor"}),Object.keys(r).length>0&&e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"mr-2 text-sm text-muted-foreground",children:"Add field:"}),e.jsx("div",{className:"rte-path-selector",children:e.jsx(u.NestedPathSelector,{data:r,onSelect:j})})]})]})}),f,e.jsx("div",{className:"mt-4 flex justify-end",children:e.jsx(n.Button,{onClick:l,children:"Done"})})]})})};exports.default=S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { d as N, N as D } from "./index-
|
|
3
|
-
import { a1 as v, a3 as S, a6 as j, a9 as w, v as y } from "./tooltip-
|
|
2
|
+
import { d as N, N as D } from "./index-hrVqQhCa.js";
|
|
3
|
+
import { a1 as v, a3 as S, a6 as j, a9 as w, v as y } from "./tooltip-DUosa-uC.js";
|
|
4
4
|
import "clsx";
|
|
5
5
|
import "tailwind-merge";
|
|
6
6
|
const b = ({
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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 zt=d.Root,qt=d.Trigger,Lt=d.Group,Ht=d.Portal,Gt=d.Sub,Vt=d.RadioGroup,H=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"})]}));H.displayName=d.SubTrigger.displayName;const G=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}));G.displayName=d.SubContent.displayName;const V=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})}));V.displayName=d.Content.displayName;const O=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}));O.displayName=d.Item.displayName;const F=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]}));F.displayName=d.CheckboxItem.displayName;const B=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]}));B.displayName=d.RadioItem.displayName;const U=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}));U.displayName=d.Label.displayName;const E=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));E.displayName=d.Separator.displayName;const J=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});J.displayName="DropdownMenuShortcut";const Ot=b.Root,K=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Item,{ref:a,className:r("border-b",e),...t}));K.displayName="AccordionItem";const Q=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"})]})}));Q.displayName=b.Trigger.displayName;const W=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})}));W.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"}}),X=s.forwardRef(({className:e,variant:t,...a},n)=>o.jsx("div",{ref:n,role:"alert",className:r(Ft({variant:t}),e),...a}));X.displayName="Alert";const Y=s.forwardRef(({className:e,...t},a)=>o.jsx("h5",{ref:a,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));Y.displayName="AlertTitle";const Z=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm [&_p]:leading-relaxed",e),...t}));Z.displayName="AlertDescription";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"}}),$=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})});$.displayName="Button";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=W;exports.AccordionItem=K;exports.AccordionTrigger=Q;exports.Alert=X;exports.AlertDescription=Z;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=Y;exports.Avatar=de;exports.AvatarFallback=ce;exports.AvatarImage=le;exports.Badge=Et;exports.Button=$;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=F;exports.DropdownMenuContent=V;exports.DropdownMenuGroup=Lt;exports.DropdownMenuItem=O;exports.DropdownMenuLabel=U;exports.DropdownMenuPortal=Ht;exports.DropdownMenuRadioGroup=Vt;exports.DropdownMenuRadioItem=B;exports.DropdownMenuSeparator=E;exports.DropdownMenuShortcut=J;exports.DropdownMenuSub=Gt;exports.DropdownMenuSubContent=G;exports.DropdownMenuSubTrigger=H;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;
|