import{r as R,A as N,b as U,e as _,R as z,B,g as E,a4 as F,a7 as P,a8 as V,t as A}from "./index-y8OWP3zI.js";function k({value:t,defaultValue:r,finalValue:s,onChange:e=()=>{}}){const[a,o]=R.useState(r!==void 0?r:s),n=(i, ...l)=>{o(i),e==null||e(i,...l)};return t!==void 0?[t,e,!0]:[a,n,!1]}var c={root:"m_b6d8b162"};function G(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const H={inherit:!1},L=E((t, {variant:r,lineClamp:s,gradient:e,size:a,color:o})=>({root:{"--text-fz":F(a),"--text-lh":P(a),"--text-gradient":r==="gradient"?V(e,t):void 0,"--text-line-clamp":typeof s=="number"?s.toString():void 0,"--text-color":o?A(o,t):void 0}})),d=N((t, r)=>{const s=U("Text",H,t),{lineClamp:e,truncate:a,inline:o,inherit:n,gradient:i,span:l,__staticSelector:u,vars:p,className:m,style:x,classNames:f,styles:v,unstyled:y,variant:g,mod:T,size:b,...S}=s,h=_({name:["Text",u],props:s,classes:c,className:m,style:x,classNames:f,styles:v,unstyled:y,vars:p,varsResolver:L});return z.createElement(B,{...h("root",{focusable:!0}),ref:r,component:l?"span":"p",variant:g,mod:[{"data-truncate":G(a),"data-line-clamp":typeof e=="number","data-inline":o,"data-inherit":n},T],size:b,...S})});d.classes=c;d.displayName="@mantine/core/Text";export{d as T,k as u};
