{"version":3,"file":"Max_Text.B-Nor-RX.mjs","names":[],"sources":["https:/framerusercontent.com/modules/G6piud4VwJj7wQ58jVb0/coSMbPhNwOrZAeLqBtAx/Max_Text.js"],"sourcesContent":["// Character Limit 20\nimport{jsx as _jsx}from\"react/jsx-runtime\";export function withCharacterLimit20(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=20// 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 30\nexport function withCharacterLimit25(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=25// 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 40\nexport 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\":{\"withCharacterLimit20\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit20\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit40\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit40\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit25\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit25\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit60\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit60\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit80\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit80\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit100\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit100\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Max_Text.map"],"mappings":"oGAC2C,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAAO,CACzG,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,EACtE,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,EACtE,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,EACtE,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,mBA/B3B"}