"use strict";var y=Object.create;var d=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var R=(t,e)=>{for(var a in e)d(t,a,{get:e[a],enumerable:!0})},l=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of b(e))!w.call(t,m)&&m!==a&&d(t,m,{get:()=>e[m],enumerable:!(s=h(e,m))||s.enumerable});return t};var k=(t,e,a)=>(a=t!=null?y(x(t)):{},l(e||!t||!t.__esModule?d(a,"default",{value:t,enumerable:!0}):a,t)),C=t=>l(d({},"__esModule",{value:!0}),t);var L={};R(L,{NavigationMenu:()=>g,NavigationMenuContent:()=>M,NavigationMenuIndicator:()=>P,NavigationMenuItem:()=>I,NavigationMenuLink:()=>E,NavigationMenuList:()=>p,NavigationMenuTrigger:()=>c,NavigationMenuViewport:()=>v,navigationMenuTriggerStyle:()=>N});module.exports=C(L);var u=require("@radix-ui/react-icons"),i=k(require("@radix-ui/react-navigation-menu"),1),r=require("react"),f=require("tailwind-variants"),n=require("@gmana/utils"),o=require("react/jsx-runtime"),g=(0,r.forwardRef)(({className:t,children:e,...a},s)=>(0,o.jsxs)(i.Root,{ref:s,className:(0,n.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...a,children:[e,(0,o.jsx)(v,{})]}));g.displayName=i.Root.displayName;var p=(0,r.forwardRef)(({className:t,...e},a)=>(0,o.jsx)(i.List,{ref:a,className:(0,n.cn)("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));p.displayName=i.List.displayName;var I=i.Item,N=(0,f.tv)({base:"group inline-flex h-9 w-max items-center justify-center rounded-md bg-white px-4 py-2 text-sm font-medium transition-colors hover:bg-slate-100 hover:text-slate-900 focus:bg-slate-100 focus:text-slate-900 focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-slate-100/50 data-[state=open]:bg-slate-100/50 dark:bg-slate-950 dark:hover:bg-slate-800 dark:hover:text-slate-50 dark:focus:bg-slate-800 dark:focus:text-slate-50 dark:data-[active]:bg-slate-800/50 dark:data-[state=open]:bg-slate-800/50"}),c=(0,r.forwardRef)(({className:t,children:e,...a},s)=>(0,o.jsxs)(i.Trigger,{ref:s,className:(0,n.cn)(N(),"group",t),...a,children:[e,"",(0,o.jsx)(u.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));c.displayName=i.Trigger.displayName;var M=(0,r.forwardRef)(({className:t,...e},a)=>(0,o.jsx)(i.Content,{ref:a,className:(0,n.cn)("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}));M.displayName=i.Content.displayName;var E=i.Link,v=(0,r.forwardRef)(({className:t,...e},a)=>(0,o.jsx)("div",{className:(0,n.cn)("absolute left-0 top-full flex justify-center"),children:(0,o.jsx)(i.Viewport,{className:(0,n.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border border-slate-200 bg-white text-slate-950 shadow 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)] dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",t),ref:a,...e})}));v.displayName=i.Viewport.displayName;var P=(0,r.forwardRef)(({className:t,...e},a)=>(0,o.jsx)(i.Indicator,{ref:a,className:(0,n.cn)("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:(0,o.jsx)("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-slate-200 shadow-md dark:bg-slate-800"})}));P.displayName=i.Indicator.displayName;0&&(module.exports={NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle});