{"version":3,"file":"Max_Text.CMDVxh7V.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3nk8t1AGJkTzUBR7lL68/nbm8O6nNNDlIi7VPPUtc/Max_Text.js"],"sourcesContent":["// Character Limit 40\nimport{jsx as _jsx}from\"react/jsx-runtime\";export function withCharacterLimit40(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=40// Set character limit\n;// Check if text is longer than limit, if so, trim it\nlet trimmedText=text;if(text?.length>limit){trimmedText=text.slice(0,limit).trim()// Trim extra spaces\n;// Check if trimmed text ends with dot\nif(trimmedText.endsWith(\".\")){trimmedText=trimmedText.slice(0,-1).trim()// Remove extra dot if it ends with a dot\n;}trimmedText+=\"...\"// Add three dots\n;}return /*#__PURE__*/_jsx(Component,{...otherProps,text:trimmedText});};}// Character Limit 60\nexport function withCharacterLimit60(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=60// Set character limit\n;// Check if text is longer than limit, if so, trim it\nlet trimmedText=text;if(text?.length>limit){trimmedText=text.slice(0,limit).trim()// Trim extra spaces\n;// Check if trimmed text ends with dot\nif(trimmedText.endsWith(\".\")){trimmedText=trimmedText.slice(0,-1).trim()// Remove extra dot if it ends with a dot\n;}trimmedText+=\"...\"// Add three dots\n;}return /*#__PURE__*/_jsx(Component,{...otherProps,text:trimmedText});};}// Character Limit 80\nexport function withCharacterLimit80(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=80// Set character limit\n;// Check if text is longer than limit, if so, trim it\nlet trimmedText=text;if(text?.length>limit){trimmedText=text.slice(0,limit).trim()// Trim extra spaces\n;// Check if trimmed text ends with dot\nif(trimmedText.endsWith(\".\")){trimmedText=trimmedText.slice(0,-1).trim()// Remove extra dot if it ends with a dot\n;}trimmedText+=\"...\"// Add three dots\n;}return /*#__PURE__*/_jsx(Component,{...otherProps,text:trimmedText});};}// Character Limit 100\nexport function withCharacterLimit100(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=100// Set character limit\n;// Check if text is longer than limit, if so, trim it\nlet trimmedText=text;if(text?.length>limit){trimmedText=text.slice(0,limit).trim()// Trim extra spaces\n;// Check if trimmed text ends with dot\nif(trimmedText.endsWith(\".\")){trimmedText=trimmedText.slice(0,-1).trim()// Remove extra dot if it ends with a dot\n;}trimmedText+=\"...\"// Add three dots\n;}return /*#__PURE__*/_jsx(Component,{...otherProps,text:trimmedText});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCharacterLimit60\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit60\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit100\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit100\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit80\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit80\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit40\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit40\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Max_Text.map"],"mappings":"oGASA,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAAO,CAC9D,GAAK,CAAC,OAAK,GAAG,GAAY,EAEtB,EAAY,EAId,OAJsB,GAAM,OAAO,KAAO,EAAY,EAAK,MAAM,EAAE,GAAM,CAAC,MAAM,CAE/E,EAAY,SAAS,IAAI,GAAE,EAAY,EAAY,MAAM,EAAE,GAAG,CAAC,MAAM,EACtE,GAAa,OACO,EAAK,EAAU,CAAC,GAAG,EAAW,KAAK,EAAY,CAAC,mBAf3B"}