{"version":3,"file":"Text_turncate.B9hOU0ry.mjs","names":["_jsx","__esmMin","c","init_jsx_runtime","TruncatedText","Component","props","name","truncatedTextPrefix","lines","init_Text_turncate"],"sources":["https:/framerusercontent.com/modules/zqnql2CRnqPrNColtkjP/a9O50aapM8Ty2jgXL1mg/Text_turncate.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const truncatedTextPrefix=\"Lines:\"// Prefix the layer name with this to set the line limit\n;export function TruncatedText(Component){return props=>{const name=props[\"data-framer-name\"];if(name?.startsWith(truncatedTextPrefix)){const lines=name.replace(new RegExp(\"^\"+truncatedTextPrefix),\"\").trim();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"-webkit-box\",flex:1,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_turncate.map"],"mappings":"A,oGACC,SAAgBI,EAAcC,EAAU,CAAC,MAAOC,IAAO,CAAC,IAAMC,EAAKD,EAAM,oBAAoB,GAAGC,GAAM,WAAWC,CAAmB,EAAE,CAAC,IAAMC,EAAMF,EAAK,QAAQ,gBAAI,OAAO,SAAuB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,MAAoBP,gBAAKK,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,QAAQ,cAAc,KAAK,EAAE,gBAAgBG,EAAM,gBAAgB,WAAW,SAAS,SAAS,aAAa,UAAU,CAAC,CAAC,CAAE,CAAC,MAAoBT,gBAAKK,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,CAAE,C,wCAD/YE,EAAoB,Q"}