{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/CRNhpgX8jqm17DajDiLI/njE1SvMZPAHQNtGvXplg/Character_limit_15.js", "ssg:https://framerusercontent.com/modules/wok4HAWNX8uOB32IU6sr/Izfz8f81xmDkgUmlTIWX/Character_limit_20.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}// Setting Maximum Text Character Limit in Framer CMS by Doruk Kavcioglu\n// Framer.guide | Framer Course - Coming Soon\nexport function withCharacterLimit(Component){return props=>{// Extract text property\nconst{text,...otherProps}=props;const limit=13// 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\":{\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Character_limit_15.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}// Setting Maximum Text Character Limit in Framer CMS by Doruk Kavcioglu\n// Framer.guide | Framer Course - Coming Soon\nexport function withCharacterLimit(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===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\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharacterLimit\":{\"type\":\"reactHoc\",\"name\":\"withCharacterLimit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Character_limit_20.map"],
  "mappings": "kFACA,IAAMA,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAE1C,SAASC,EAAmBC,EAAU,CAAC,OAAOC,GAAO,CAC5D,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,CCTzE,IAAME,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAE1C,SAASC,EAAmBC,EAAU,CAAC,OAAOC,GAAO,CAC5D,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",
  "names": ["useStore", "createStore", "withCharacterLimit", "Component", "props", "text", "otherProps", "limit", "trimmedText", "p", "useStore", "createStore", "withCharacterLimit", "Component", "props", "text", "otherProps", "limit", "trimmedText", "p"]
}
