{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/lchTjSNpjDzgqaFNyFj9/ADTSrMerwZLMD2hFHdeW/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": "yCACkD,SAASA,EAAqBC,EAAU,CAAC,OAAOC,GAAO,CACzG,GAAK,CAAC,KAAAC,EAAK,GAAGC,CAAU,EAAEF,EAAYG,EAAM,GAExCC,EAAYH,EAAK,OAAsCA,GAAK,OAAQE,IAAOC,EAAYH,EAAK,MAAM,EAAEE,CAAK,EAAE,KAAK,EAEjHC,EAAY,SAAS,GAAG,IAAGA,EAAYA,EAAY,MAAM,EAAE,EAAE,EAAE,KAAK,GACrEA,GAAa,OACOC,EAAKN,EAAU,CAAC,GAAGG,EAAW,KAAKE,CAAW,CAAC,CAAE,CAAE,CAClE,SAASE,EAAqBP,EAAU,CAAC,OAAOC,GAAO,CAC9D,GAAK,CAAC,KAAAC,EAAK,GAAGC,CAAU,EAAEF,EAAYG,EAAM,GAExCC,EAAYH,EAAK,OAAsCA,GAAK,OAAQE,IAAOC,EAAYH,EAAK,MAAM,EAAEE,CAAK,EAAE,KAAK,EAEjHC,EAAY,SAAS,GAAG,IAAGA,EAAYA,EAAY,MAAM,EAAE,EAAE,EAAE,KAAK,GACrEA,GAAa,OACOC,EAAKN,EAAU,CAAC,GAAGG,EAAW,KAAKE,CAAW,CAAC,CAAE,CAAE,CAClE,SAASG,EAAqBR,EAAU,CAAC,OAAOC,GAAO,CAC9D,GAAK,CAAC,KAAAC,EAAK,GAAGC,CAAU,EAAEF,EAAYG,EAAM,GAExCC,EAAYH,EAAK,OAAsCA,GAAK,OAAQE,IAAOC,EAAYH,EAAK,MAAM,EAAEE,CAAK,EAAE,KAAK,EAEjHC,EAAY,SAAS,GAAG,IAAGA,EAAYA,EAAY,MAAM,EAAE,EAAE,EAAE,KAAK,GACrEA,GAAa,OACOC,EAAKN,EAAU,CAAC,GAAGG,EAAW,KAAKE,CAAW,CAAC,CAAE,CAAE,CAClE,SAASI,EAAsBT,EAAU,CAAC,OAAOC,GAAO,CAC/D,GAAK,CAAC,KAAAC,EAAK,GAAGC,CAAU,EAAEF,EAAYG,EAAM,IAExCC,EAAYH,EAAK,OAAsCA,GAAK,OAAQE,IAAOC,EAAYH,EAAK,MAAM,EAAEE,CAAK,EAAE,KAAK,EAEjHC,EAAY,SAAS,GAAG,IAAGA,EAAYA,EAAY,MAAM,EAAE,EAAE,EAAE,KAAK,GACrEA,GAAa,OACOC,EAAKN,EAAU,CAAC,GAAGG,EAAW,KAAKE,CAAW,CAAC,CAAE,CAAE",
  "names": ["withCharacterLimit40", "Component", "props", "text", "otherProps", "limit", "trimmedText", "p", "withCharacterLimit60", "withCharacterLimit80", "withCharacterLimit100"]
}
