import{D as E,A as h,b as N,R as C,B as b,e as R,r as P,P as _,g as w,C as B}from "./index-y8OWP3zI.js";const[A,j]=E("Card component was not found in tree");var u={root:"m_e615b15f",section:"m_599a2148"};const D={},o=h((s, t)=>{const a=N("CardSection",D,s),{classNames:n,className:c,style:d,styles:i,vars:l,withBorder:p,inheritPadding:m,mod:v,...y}=a,r=j();return C.createElement(b,{ref:t,mod:[{"with-border":p,"inherit-padding":m},v],...r.getStyles("section",{className:c,style:d,styles:i,classNames:n}),...y})});o.classes=u;o.displayName="@mantine/core/CardSection";const F={},V=w((s, {padding:t})=>({root:{"--card-padding":B(t)}})),g=h((s, t)=>{const a=N("Card",F,s),{classNames:n,className:c,style:d,styles:i,unstyled:l,vars:p,children:m,padding:v,...y}=a,r=R({name:"Card",props:a,classes:u,className:c,style:d,classNames:n,styles:i,unstyled:l,vars:p,varsResolver:V}),f=P.Children.toArray(m),x=f.map((e, S)=>typeof e=="object"&&e&&"type"in e&&e.type===o?P.cloneElement(e,{"data-first-section":S===0||void 0,"data-last-section":S===f.length-1||void 0}):e);return C.createElement(A,{value:{getStyles:r}},C.createElement(_,{ref:t,unstyled:l,...r("root"),...y},x))});g.classes=u;g.displayName="@mantine/core/Card";g.Section=o;export{g as C};
