"use client"
import{a as i}from"./chunk-UU646SWK.mjs";import{j as e}from"./chunk-5TQDAWS6.mjs";import{cva as m}from"class-variance-authority";import{createContext as u,useContext as C,useState as x}from"react";import{jsx as t}from"react/jsx-runtime";var v=m("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)]"}}}),g="w-full py-2.5 px-4",b=u({hovered:!1});function P({outerClassName:s,innerClassName:l,children:p,onClick:o}){let{variant:c}=C(i),[f,a]=x(!1);return t("li",{className:e(v({variant:c}),s),onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),children:t("div",{className:e(g,l),onClick:o?n=>{if(!document.getElementById("modal-backdrop")){for(let r=n.target,d=0;r&&r!==n.currentTarget&&d<100;r=r.parentElement,d++)if(["button","a","input","textarea"].includes(r.tagName.toLowerCase()))return;o()}}:void 0,children:t(b.Provider,{value:{hovered:f},children:p})})})}export{b as a,P as b};
