{"version":3,"file":"TruncateText.Cr7Orvid.mjs","names":[],"sources":["https:/framerusercontent.com/modules/NogVf4VJCzU5CnPAl8gD/OF5KVI2bZcXIlcUSoyOj/TruncateText.js"],"sourcesContent":["// This module provides code overrides to truncate text content to a specified number of lines.\n// Last updated by @joshua on 20241126.\nimport{jsx as _jsx}from\"react/jsx-runtime\";// Code override to truncate text content to one line with an ellipsis.\nexport function withOneLineTextTruncate(WrappedComponent){return props=>{// Define styles to truncate text to one line.\nconst componentStyle={...props.style,display:\"-webkit-box\",WebkitLineClamp:1,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(WrappedComponent,{...props,style:componentStyle});};}// Code override to truncate text content to two lines with an ellipsis.\nexport function withTwoLineTextTruncate(WrappedComponent){return props=>{// Define styles to truncate text to two lines.\nconst componentStyle={...props.style,display:\"-webkit-box\",WebkitLineClamp:2,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(WrappedComponent,{...props,style:componentStyle});};}// Code override to truncate text content to three lines with an ellipsis.\nexport function withThreeLineTextTruncate(WrappedComponent){return props=>{// Define styles to truncate text to three lines.\nconst componentStyle={...props.style,display:\"-webkit-box\",WebkitLineClamp:3,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(WrappedComponent,{...props,style:componentStyle});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTwoLineTextTruncate\":{\"type\":\"reactHoc\",\"name\":\"withTwoLineTextTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOneLineTextTruncate\":{\"type\":\"reactHoc\",\"name\":\"withOneLineTextTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withThreeLineTextTruncate\":{\"type\":\"reactHoc\",\"name\":\"withThreeLineTextTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TruncateText.map"],"mappings":"6EAOO,SAAS,EAA0B,EAAiB,CAAC,MAAO,CAAA,GAAO,CAC1E,IAAM,EAAe,CAAC,GAAG,EAAM,MAAM,QAAQ,cAAc,gBAAgB,EAAE,gBAAgB,WAAW,SAAS,SAAS,aAAa,UAAW,EAAC,MAAoB,GAAK,EAAiB,CAAC,GAAG,EAAM,MAAM,CAAe,EAAC,AAAE,CAAE,cANjO,GAA2C"}