{"version":3,"file":"TruncateText.BcdELDIB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kSe9RQq3emjrJKMII9k4/NonL2i914dqRnYWpGK49/TruncateText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function withTruncateText(props){const{text,truncateNumber,fontFamily,textFontSize,textColor}=props;const truncateStyle={overflow:\"hidden\",display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:truncateNumber};return /*#__PURE__*/_jsx(\"p\",{style:{...truncateStyle,fontFamily:fontFamily,fontSize:textFontSize,margin:0,color:textColor},children:text});}addPropertyControls(withTruncateText,{text:{title:\"Text\",type:ControlType.String},truncateNumber:{title:\"Truncate Number\",type:ControlType.Number,defaultValue:2},fontFamily:{title:\"Font\",type:ControlType.Font,defaultValue:{fontFamily:\"Switzer\",fontWeight:\"normal\"}},textFontSize:{title:\"Font Size\",type:ControlType.Number,defaultValue:16,unit:\"px\"},textColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"#fff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"withTruncateText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TruncateText.map"],"mappings":"4JAGG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,OAAK,iBAAe,aAAW,eAAa,aAAW,EAA8H,OAAoB,EAAK,IAAI,CAAC,MAAM,CAAvI,SAAS,SAAS,QAAQ,cAAc,gBAAgB,WAAW,gBAAgB,EAAiF,aAAW,SAAS,EAAa,OAAO,EAAE,MAAM,EAAU,CAAC,SAAS,EAAK,CAAC,kBAH9U,IAAoD,CAG4R,EAAoB,EAAiB,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,CAAC,eAAe,CAAC,MAAM,kBAAkB,KAAK,EAAY,OAAO,aAAa,EAAE,CAAC,WAAW,CAAC,MAAM,OAAO,KAAK,EAAY,KAAK,aAAa,CAAC,WAAW,UAAU,WAAW,SAAS,CAAC,CAAC,aAAa,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,aAAa,GAAG,KAAK,KAAK,CAAC,UAAU,CAAC,MAAM,QAAQ,KAAK,EAAY,MAAM,aAAa,OAAO,CAAC,CAAC"}