{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/E3EXmX9K0jwKkgFy3auP/oDL7UPX17uVoGyPLDeer/TextTruncate.js"],
  "sourcesContent": ["// Text Truncate Component\n// Shows a single-line text with ellipsis if it overflows\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * TextTruncate\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function TextTruncate(props){const{text,color,font,style,maxWidth,maxChars}=props;const displayText=typeof maxChars===\"number\"&&maxChars>0&&text.length>maxChars?text.slice(0,maxChars)+\"\u2026\":text;return /*#__PURE__*/_jsx(\"span\",{style:{...font,color,width:\"100%\",display:\"inline-block\",whiteSpace:maxWidth>0?\"nowrap\":\"pre-line\",overflow:\"hidden\",textOverflow:maxWidth>0?\"ellipsis\":undefined,verticalAlign:\"top\",maxWidth:maxWidth>0?maxWidth:undefined,...style},title:text,children:displayText});}addPropertyControls(TextTruncate,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a long text that will be truncated if it overflows the container.\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},maxWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:0,min:0,max:2e3,unit:\"px\",displayStepper:true},maxChars:{type:ControlType.Number,title:\"Max Chars\",defaultValue:0,min:0,max:1e3,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextTruncate\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextTruncate.map"],
  "mappings": "kGAAAA,IAOkB,SAARC,EAA8BC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,MAAAC,EAAM,KAAAC,EAAK,MAAAC,EAAM,SAAAC,EAAS,SAAAC,CAAQ,EAAEN,EAAYO,EAAY,OAAOD,GAAW,UAAUA,EAAS,GAAGL,EAAK,OAAOK,EAASL,EAAK,MAAM,EAAEK,CAAQ,EAAE,SAAIL,EAAK,OAAoBO,EAAK,OAAO,CAAC,MAAM,CAAC,GAAGL,EAAK,MAAAD,EAAM,MAAM,OAAO,QAAQ,eAAe,WAAWG,EAAS,EAAE,SAAS,WAAW,SAAS,SAAS,aAAaA,EAAS,EAAE,WAAW,OAAU,cAAc,MAAM,SAASA,EAAS,EAAEA,EAAS,OAAU,GAAGD,CAAK,EAAE,MAAMH,EAAK,SAASM,CAAW,CAAC,CAAE,CAACE,EAAoBV,EAAa,CAAC,KAAK,CAAC,KAAKW,EAAY,OAAO,MAAM,OAAO,aAAa,2EAA2E,EAAE,MAAM,CAAC,KAAKA,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,KAAK,CAAC,KAAKA,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,UAAU,cAAc,UAAU,WAAW,OAAO,CAAC,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,IAAI,EAAE,IAAI,IAAI,KAAK,KAAK,eAAe,EAAI,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,IAAI,EAAE,IAAI,IAAI,eAAe,EAAI,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "TextTruncate", "props", "text", "color", "font", "style", "maxWidth", "maxChars", "displayText", "p", "addPropertyControls", "ControlType"]
}
