{"version":3,"file":"Max_Text.ktF4EV6d.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hUFWZKbIMj0Ko2UwM5HA/mHwrAjDBm85E3qkoRBHv/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===null||text===void 0?void 0: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===null||text===void 0?void 0: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===null||text===void 0?void 0: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===null||text===void 0?void 0: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\"}},\"withCharacterLimit80\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit80\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit100\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit100\",\"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,OAJuB,GAAuC,OAAQ,KAAO,EAAY,EAAK,MAAM,EAAE,GAAM,CAAC,MAAM,CAElH,EAAY,SAAS,IAAI,GAAE,EAAY,EAAY,MAAM,EAAE,GAAG,CAAC,MAAM,EACtE,GAAa,OACO,EAAK,EAAU,CAAC,GAAG,EAAW,KAAK,EAAY,CAAC,EACtE,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAAO,CAC9D,GAAK,CAAC,OAAK,GAAG,GAAY,EAEtB,EAAY,EAId,OAJuB,GAAuC,OAAQ,KAAO,EAAY,EAAK,MAAM,EAAE,GAAM,CAAC,MAAM,CAElH,EAAY,SAAS,IAAI,GAAE,EAAY,EAAY,MAAM,EAAE,GAAG,CAAC,MAAM,EACtE,GAAa,OACO,EAAK,EAAU,CAAC,GAAG,EAAW,KAAK,EAAY,CAAC,mBAvB3B"}