import{l as y,f as z,b as S,e as $,R as T,B as b,g as w}from "./index-y8OWP3zI.js";const x=["h1","h2","h3","h4","h5","h6"];function R(t, n){const e=n!==void 0?n:`h${t}`;return x.includes(e)?{fontSize:`var(--mantine-${e}-font-size)`,fontWeight:`var(--mantine-${e}-font-weight)`,lineHeight:`var(--mantine-${e}-line-height)`}:{fontSize:y(e),fontWeight:`var(--mantine-h${t}-font-weight)`,lineHeight:`var(--mantine-h${t}-line-height)`}}var r={root:"m_8a5d1357"};const W={order:1},H=w((t, {order:n,size:e,lineClamp:s,textWrap:a})=>{const i=R(n,e);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof s=="number"?s.toString():void 0,"--title-text-wrap":a}}}),l=z((t, n)=>{const e=S("Title",W,t),{classNames:s,className:a,style:i,styles:h,unstyled:c,order:o,vars:m,size:f,variant:g,lineClamp:u,textWrap:N,mod:p,...v}=e,d=$({name:"Title",props:e,classes:r,className:a,style:i,classNames:s,styles:h,unstyled:c,vars:m,varsResolver:H});return[1,2,3,4,5,6].includes(o)?T.createElement(b,{...d("root"),component:`h${o}`,variant:g,ref:n,mod:[{order:o,"data-line-clamp":typeof u=="number"},p],size:f,...v}):null});l.classes=r;l.displayName="@mantine/core/Title";export{l as T};
