{"version":3,"file":"Text.U71teveb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/C6z9YPubtCPSErasVcP1/WKUpIV9apCaW5MmZgIS5/Text.js"],"sourcesContent":["//In your Framer project, create a new custom code override named Text.tsx.\n//Copy the code from the remixed project into your Text.tsx file.\n//The code override contains a function called withTruncateText. Apply this function to any text you want to truncate.\n//After applying the withTruncateText function to a text element, rename the text element to specify the number of lines using the following format: Lines:[value]\nimport{jsx as _jsx}from\"react/jsx-runtime\";export function TruncatedText(Component){return props=>{const truncatedTextPrefix=\"Lines:\";const name=props[\"data-framer-name\"];if(name===null||name===void 0?void 0:name.startsWith(truncatedTextPrefix)){const lines=name.replace(new RegExp(\"^\"+truncatedTextPrefix),\"\").trim();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"-webkit-box\",WebkitLineClamp:lines,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\"}});}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"TruncatedText\":{\"type\":\"reactHoc\",\"name\":\"TruncatedText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text.map"],"mappings":"oGAI2C,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAyC,EAAK,EAAM,oBAAoB,GAAG,GAAuC,WAAW,QAAmB,EAAE,CAAC,IAAM,EAAM,EAAK,QAAY,OAAO,SAAuB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,cAAc,gBAAgB,EAAM,gBAAgB,WAAW,SAAS,SAAS,aAAa,UAAU,CAAC,CAAC,CAAE,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAE,CAAE,iBAA7f"}