"use strict";const a=require("react/jsx-runtime"),e=require("react"),H=require("@chakra-ui/react"),v=require("@chakra-ui/react/styled-system"),j=require("./stack-CIN13EDn.cjs.js"),d=require("./extract-style-props-DVhOcGEi.cjs.js"),{withProvider:q,withContext:P}=H.createSlotRecipeContext({key:"nimbusCard"}),h=q("div","root"),N=P("div","header"),$=P("div","content"),l=e.createContext(void 0),i=({ref:o,children:s,...t})=>{const n=v.useSlotRecipe({key:"nimbusCard"}),[r,c]=n.splitVariantProps(t),[y,m]=d.extractStyleProps(c),[S,p]=e.useState(null),[R,x]=e.useState(null),f=e.useMemo(()=>({setHeader:p,setContent:x}),[p,x]);return a.jsx(l.Provider,{value:f,children:a.jsxs(h,{ref:o,...r,...y,...m,children:[a.jsxs(j.Stack,{direction:"column",gap:"200",children:[S,R]}),s]})})};i.displayName="Card.Root";const u=({children:o,...s})=>{const t=e.useContext(l),[n,r]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx(N,{...n,...r,children:o});return t.setHeader(c),()=>t.setHeader(null)}},[o,n,r,t]),null};u.displayName="Card.Header";const C=({children:o,...s})=>{const t=e.useContext(l),[n,r]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx($,{...n,...r,children:o});return t.setContent(c),()=>t.setContent(null)}},[o,n,r,t]),null};C.displayName="Card.Content";const k={Root:i,Header:u,Content:C};exports.Card=k;exports.CardContent=C;exports.CardHeader=u;exports.CardRoot=i;
//# sourceMappingURL=card-CItWGkci.cjs.js.map
