"use client"
import{a as s}from"./chunk-UU646SWK.mjs";import{j as e}from"./chunk-5TQDAWS6.mjs";import{cva as C}from"class-variance-authority";import{createContext as u,useContext as m,useState as v}from"react";import{jsx as t}from"react/jsx-runtime";var x=C("w-full group/card border-gray-200 bg-white",{variants:{variant:{compact:"first-of-type:rounded-t-xl last-of-type:rounded-b-xl first-of-type:border-t border-b border-x hover:bg-gray-50 transition-colors",loose:"border rounded-xl transition-[filter] hover:[filter:drop-shadow(0_8px_12px_#222A350d)_drop-shadow(0_32px_80px_#2f30370f)]"}}}),h="w-full py-2.5 px-4",b=u({hovered:!1});function N({outerClassName:d,innerClassName:l,children:p,onClick:o}){let{variant:f}=m(s),[c,a]=v(!1);return t("li",{className:e(x({variant:f}),d),onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),children:t("div",{className:e(h,l),onClick:o?n=>{for(let r=n.target,i=0;r!==n.currentTarget&&i<100;r=r.parentElement,i++)if(["button","a","input","textarea"].includes(r.tagName.toLowerCase()))return;o()}:void 0,children:t(b.Provider,{value:{hovered:c},children:p})})})}export{b as a,N as b};
