import{r as e}from"./chunk-QTnfLwEv.js";import{n as t,t as n}from"./jsx-runtime-BWRPWl8p.js";import{a as r,r as i}from"./ThemeProvider-tBC-zLZT.js";import{t as a}from"./CardHeaderContext-Boguszdj.js";import{ba as o}from"./index-DccLTdzK.js";var s=e(t()),c=e(r()),l=n(),u=s.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},a)=>(t=i(t,`card-body`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));u.displayName=`CardBody`;var d=s.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},a)=>(t=i(t,`card-footer`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));d.displayName=`CardFooter`;var f=s.forwardRef(({bsPrefix:e,className:t,as:n=`div`,...r},o)=>{let u=i(e,`card-header`),d=(0,s.useMemo)(()=>({cardHeaderBsPrefix:u}),[u]);return(0,l.jsx)(a.Provider,{value:d,children:(0,l.jsx)(n,{ref:o,...r,className:(0,c.default)(t,u)})})});f.displayName=`CardHeader`;var p=s.forwardRef(({bsPrefix:e,className:t,variant:n,as:r=`img`,...a},o)=>{let s=i(e,`card-img`);return(0,l.jsx)(r,{ref:o,className:(0,c.default)(n?`${s}-${n}`:s,t),...a})});p.displayName=`CardImg`;var m=s.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},a)=>(t=i(t,`card-img-overlay`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));m.displayName=`CardImgOverlay`;var h=s.forwardRef(({className:e,bsPrefix:t,as:n=`a`,...r},a)=>(t=i(t,`card-link`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));h.displayName=`CardLink`;var g=o(`h6`),_=s.forwardRef(({className:e,bsPrefix:t,as:n=g,...r},a)=>(t=i(t,`card-subtitle`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));_.displayName=`CardSubtitle`;var v=s.forwardRef(({className:e,bsPrefix:t,as:n=`p`,...r},a)=>(t=i(t,`card-text`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));v.displayName=`CardText`;var y=o(`h5`),b=s.forwardRef(({className:e,bsPrefix:t,as:n=y,...r},a)=>(t=i(t,`card-title`),(0,l.jsx)(n,{ref:a,className:(0,c.default)(e,t),...r})));b.displayName=`CardTitle`;var x=s.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:a,body:o=!1,children:s,as:d=`div`,...f},p)=>{let m=i(e,`card`);return(0,l.jsx)(d,{ref:p,...f,className:(0,c.default)(t,m,n&&`bg-${n}`,r&&`text-${r}`,a&&`border-${a}`),children:o?(0,l.jsx)(u,{children:s}):s})});x.displayName=`Card`;var S=Object.assign(x,{Img:p,Title:b,Subtitle:_,Body:u,Link:h,Text:v,Header:f,Footer:d,ImgOverlay:m});export{S as t};