import * as p from 'react';
import * as B from '@radix-ui/react-label';
import { cva } from 'class-variance-authority';
import { clsx } from 'clsx';
import { jsx, jsxs } from 'react/jsx-runtime';
import * as z from '@radix-ui/react-switch';
import * as v from '@radix-ui/react-tabs';
import * as g from '@radix-ui/react-scroll-area';
import { Slot } from '@radix-ui/react-slot';
import { ArrowLeftIcon, ArrowRightIcon, CaretSortIcon, ChevronUpIcon, ChevronDownIcon, CheckIcon } from '@radix-ui/react-icons';
import Mt from 'embla-carousel-react';
import * as l from '@radix-ui/react-select';
import * as m from '@radix-ui/react-navigation-menu';

var st=Object.defineProperty,lt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var H=(t,e,r)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n=(t,e)=>{for(var r in e||(e={}))j.call(e,r)&&H(t,r,e[r]);if(L)for(var r of L(e))F.call(e,r)&&H(t,r,e[r]);return t},c=(t,e)=>lt(t,dt(e));var s=(t,e)=>{var r={};for(var o in t)j.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&L)for(var o of L(t))e.indexOf(o)<0&&F.call(t,o)&&(r[o]=t[o]);return r};function i(...t){return clsx(t)}var pt=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ft=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(B.Root,n({ref:r,className:i(pt(),t)},e))});ft.displayName=B.Root.displayName;var wt=p.forwardRef((a,o)=>{var d=a,{className:t,children:e}=d,r=s(d,["className","children"]);return jsx(z.Root,c(n({className:i("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",t)},r),{ref:o,children:jsx(z.Thumb,{className:i("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}))});wt.displayName=z.Root.displayName;var we=v.Root,gt=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(v.List,n({ref:r,className:i("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-0 text-muted-foreground",t)},e))});gt.displayName=v.List.displayName;var ht=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(v.Trigger,n({ref:r,className:i("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","h-full",t)},e))});ht.displayName=v.Trigger.displayName;var vt=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(v.Content,n({ref:r,className:i("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t)},e))});vt.displayName=v.Content.displayName;var bt=p.forwardRef((d,a)=>{var w=d,{className:t,children:e,viewportProps:r}=w,o=s(w,["className","children","viewportProps"]);return jsxs(g.Root,c(n({ref:a,className:i("relative overflow-hidden h-full w-full max-h-full",t)},o),{children:[jsx(g.Viewport,c(n({className:i("h-full w-full rounded-[inherit]",r==null?void 0:r.className)},r),{children:e})),jsx(q,{}),jsx(g.Corner,{})]}))});bt.displayName=g.Root.displayName;var q=p.forwardRef((a,o)=>{var d=a,{className:t,orientation:e="vertical"}=d,r=s(d,["className","orientation"]);return jsx(g.ScrollAreaScrollbar,c(n({ref:o,orientation:e,className:i("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t)},r),{children:jsx(g.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}))});q.displayName=g.ScrollAreaScrollbar.displayName;var kt=cva("inline-flex items-center justify-center 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",{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"}}),A=p.forwardRef((w,d)=>{var h=w,{className:t,variant:e,size:r,asChild:o=!1}=h,a=s(h,["className","variant","size","asChild"]);return jsx(o?Slot:"button",n({className:i(kt({variant:e,size:r,className:t})),ref:d},a))});A.displayName="Button";var Nt=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 Le(o){var a=o,{className:t,variant:e}=a,r=s(a,["className","variant"]);return jsx("div",n({className:i(Nt({variant:e}),t)},r))}var Q=p.createContext(null);function I(){let t=p.useContext(Q);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}var Lt=p.forwardRef((N,h)=>{var P=N,{orientation:t="horizontal",opts:e,setApi:r,plugins:o,className:a,children:d}=P,w=s(P,["orientation","opts","setApi","plugins","className","children"]);let[et,f]=Mt(c(n({},e),{axis:t==="horizontal"?"x":"y"}),o),[rt,at]=p.useState(!1),[ot,it]=p.useState(!1),C=p.useCallback(R=>{R&&(at(R.canScrollPrev()),it(R.canScrollNext()));},[]),W=p.useCallback(()=>{f==null||f.scrollPrev();},[f]),K=p.useCallback(()=>{f==null||f.scrollNext();},[f]),nt=p.useCallback(R=>{R.key==="ArrowLeft"?(R.preventDefault(),W()):R.key==="ArrowRight"&&(R.preventDefault(),K());},[W,K]);return p.useEffect(()=>{!f||!r||r(f);},[f,r]),p.useEffect(()=>{if(f)return C(f),f.on("reInit",C),f.on("select",C),()=>{f==null||f.off("select",C);}},[f,C]),jsxs(Q.Provider,{value:{carouselRef:et,api:f,opts:e,orientation:t||((e==null?void 0:e.axis)==="y"?"vertical":"horizontal"),scrollPrev:W,scrollNext:K,canScrollPrev:rt,canScrollNext:ot},children:[jsx("div",{className:i("hidden","basis-0","basis-1/1","basis-1/2","basis-1/3","basis-1/4","basis-1/5","basis-1/6","basis-1/7","basis-1/8","basis-1/9","basis-1/10","basis-1/11","basis-1/12","basis-1/13","basis-1/14","basis-1/15","basis-1/16","basis-1/17","basis-1/18","basis-1/19","basis-1/20")}),jsx("div",c(n({ref:h,onKeyDownCapture:nt,className:i("relative","w-full",a),role:"region","aria-roledescription":"carousel"},w),{children:d}))]})});Lt.displayName="Carousel";var Et=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);let{carouselRef:d,orientation:w}=I();return jsx("div",{ref:d,className:"overflow-hidden",children:jsx("div",n({ref:r,className:i("flex",w==="horizontal"?"-ml-4":"-mt-4 flex-col",t)},e))})});Et.displayName="CarouselContent";var At=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);let{orientation:d}=I();return jsx("div",n({ref:r,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",d==="horizontal"?"pl-4":"pt-4",t)},e))});At.displayName="CarouselItem";var It=p.forwardRef((d,a)=>{var w=d,{className:t,variant:e="outline",size:r="icon"}=w,o=s(w,["className","variant","size"]);let{orientation:h,scrollPrev:N,canScrollPrev:P}=I();return jsxs(A,c(n({ref:a,variant:e,size:r,className:i("absolute  h-8 w-8 rounded-full",h==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!P,onClick:N},o),{children:[jsx(ArrowLeftIcon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Previous slide"})]}))});It.displayName="CarouselPrevious";var Wt=p.forwardRef((d,a)=>{var w=d,{className:t,variant:e="outline",size:r="icon"}=w,o=s(w,["className","variant","size"]);let{orientation:h,scrollNext:N,canScrollNext:P}=I();return jsxs(A,c(n({ref:a,variant:e,size:r,className:i("absolute h-8 w-8 rounded-full",h==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!P,onClick:N},o),{children:[jsx(ArrowRightIcon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Next slide"})]}))});Wt.displayName="CarouselNext";var je=l.Root,Fe=t=>jsx(l.Group,c(n({},t),{className:i(t.className,"text-popovertext")})),Oe=l.Value,Yt=p.forwardRef((a,o)=>{var d=a,{className:t,children:e}=d,r=s(d,["className","children"]);return jsxs(l.Trigger,c(n({ref:o,className:i("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 placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t)},r),{children:[e,jsx(l.Icon,{asChild:!0,children:jsx(CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}))});Yt.displayName=l.Trigger.displayName;var Ge=p.forwardRef((a,o)=>{var d=a,{className:t,children:e}=d,r=s(d,["className","children"]);return jsx(l.Trigger,c(n({asChild:!0,ref:o,className:i("flex h-9 w-full items-center justify-center whitespace-nowrap disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t)},r),{children:e}))}),Z=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(l.ScrollUpButton,c(n({ref:r,className:i("flex cursor-default items-center justify-center py-1",t)},e),{children:jsx(ChevronUpIcon,{})}))});Z.displayName=l.ScrollUpButton.displayName;var $=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(l.ScrollDownButton,c(n({ref:r,className:i("flex cursor-default items-center justify-center py-1",t)},e),{children:jsx(ChevronDownIcon,{})}))});$.displayName=l.ScrollDownButton.displayName;var Dt=p.forwardRef((w,d)=>{var h=w,{className:t,children:e,position:r="popper",viewportClassName:o}=h,a=s(h,["className","children","position","viewportClassName"]);return jsx(l.Portal,{children:jsxs(l.Content,c(n({ref:d,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden 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"," border-border border-[1px]",r==="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"," z-50",t),position:r},a),{children:[jsx(Z,{className:" text-popover-foreground"}),jsx(l.Viewport,{className:i("py-[16px]",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",o),children:e}),jsx($,{})]}))})});Dt.displayName=l.Content.displayName;var Ut=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(l.Label,n({ref:r,className:i("px-2 py-1.5 text-sm font-semibold",t)},e))});Ut.displayName=l.Label.displayName;var Ht=p.forwardRef((a,o)=>{var d=a,{className:t,children:e}=d,r=s(d,["className","children"]);return jsxs(l.Item,c(n({ref:o,className:i("relative flex w-full  select-none items-center rounded-sm py-1.5 px-[12px] pr-[22px]  text-sm outline-none focus:bg-accent text-popovertext   focus:text-accent-foreground cursor-pointer  data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t)},r),{children:[jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center ",children:jsx(l.ItemIndicator,{children:jsx(CheckIcon,{className:"h-4 w-4"})})}),jsx(l.ItemText,{className:"",children:e})]}))});Ht.displayName=l.Item.displayName;var jt=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(l.Separator,n({ref:r,className:i("-mx-1 my-1 h-px bg-muted",t)},e))});jt.displayName=l.Separator.displayName;function M(r){var o=r,{className:t}=o,e=s(o,["className"]);return jsx("div",n({className:i("Skeleton","animate-pulse",t)},e))}var Ft=()=>jsx(M,{className:"rounded-full"}),er=({children:t,loading:e=!0,isEmpty:r=!1})=>e?jsx("div",{className:"SkeletonKitFlexWrap",children:jsxs("div",{className:"SkeletonKitWrap",children:[jsxs("div",{className:"SkeletonKit",children:[jsx(Ft,{}),jsxs("div",{className:"SkeletonKitRight",children:[jsx(M,{className:"SkeletonKitRightLine1"}),jsx(M,{className:"SkeletonKitRightLine2"})]})]}),jsx(M,{className:"SkeletonKitRightLine3"}),jsx(M,{className:"SkeletonKitRightLine3"})]})}):r?jsx("div",{className:"SkeletonKitFlexWrap",children:jsx("span",{className:"SkeletonKitEmptySpan",children:"\u6682\u65E0\u6570\u636E"})}):t;var Gt=p.forwardRef((a,o)=>{var d=a,{className:t,children:e}=d,r=s(d,["className","children"]);return jsxs(m.Root,c(n({ref:o,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",t)},r),{children:[e,jsx(tt,{})]}))});Gt.displayName=m.Root.displayName;var _t=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(m.List,n({ref:r,className:i("group flex flex-1 list-none items-center justify-center",t)},e))});_t.displayName=m.List.displayName;var sr=m.Item,qt=cva("group inline-flex w-max items-center justify-center rounded-md transition-colors  disabled:pointer-events-none disabled:opacity-50"),Jt=p.forwardRef((d,a)=>{var w=d,{className:t,children:e,asChild:r}=w,o=s(w,["className","children","asChild"]);return jsx(m.Trigger,c(n({ref:a,className:i(qt(),"group",t)},o),{children:e}))});Jt.displayName=m.Trigger.displayName;var Qt=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(m.Content,n({ref:r,className:i("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t)},e))});Qt.displayName=m.Content.displayName;var lr=m.Link,tt=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx("div",{className:i("absolute left-0 top-full flex  justify-center","w-full"),children:jsx(m.Viewport,n({className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:r},e))})});tt.displayName=m.Viewport.displayName;var Zt=p.forwardRef((o,r)=>{var a=o,{className:t}=a,e=s(a,["className"]);return jsx(m.Indicator,c(n({ref:r,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t)},e),{children:jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}))});Zt.displayName=m.Indicator.displayName;

export { Le as Badge, A as Button, Lt as Carousel, Et as CarouselContent, At as CarouselItem, Wt as CarouselNext, It as CarouselPrevious, ft as Label, Gt as NavigationMenu, Qt as NavigationMenuContent, Zt as NavigationMenuIndicator, sr as NavigationMenuItem, lr as NavigationMenuLink, _t as NavigationMenuList, Jt as NavigationMenuTrigger, tt as NavigationMenuViewport, bt as ScrollArea, q as ScrollBar, je as Select, Dt as SelectContent, Fe as SelectGroup, Ht as SelectItem, Ut as SelectLabel, $ as SelectScrollDownButton, Z as SelectScrollUpButton, jt as SelectSeparator, Yt as SelectTrigger, Ge as SelectTriggerOnlyChildren, Oe as SelectValue, M as Skeleton, er as SkeletonKit, Ft as SkeletonRoundFull, wt as Switch, we as Tabs, vt as TabsContent, gt as TabsList, ht as TabsTrigger, Nt as badgeVariants, kt as buttonVariants, qt as navigationMenuTriggerStyle };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.js.map