{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/D4az1yY802mcELN3aWtH/jMZrw6DZVDrKUPV9WB54/Character_Limit.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";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\";// Character limit function\nconst truncateText=(text,limit=50)=>{if(typeof text===\"string\"&&text.length>limit){return text.substring(0,limit)+\"...\";}return text;};const useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}// NEW: With Character Limit Override\nexport function withCharLimit(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,text:truncateText(props.text,100)});});}export function withCharLimitCategory(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,text:truncateText(props.text,35)});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharLimit\":{\"type\":\"reactHoc\",\"name\":\"withCharLimit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCharLimitCategory\":{\"type\":\"reactHoc\",\"name\":\"withCharLimitCategory\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Character_Limit.map"],
  "mappings": "sHACA,IAAMA,EAAa,CAACC,EAAKC,EAAM,KAAS,OAAOD,GAAO,UAAUA,EAAK,OAAOC,EAAcD,EAAK,UAAU,EAAEC,CAAK,EAAE,MAAcD,EAAaE,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EACjL,SAASC,EAAcC,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAA2BC,EAAKJ,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,KAAKG,EAAaH,EAAM,KAAK,GAAG,CAAC,CAAC,CAAG,CAAE,CAAQ,SAASI,EAAsBN,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAA2BC,EAAKJ,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,KAAKG,EAAaH,EAAM,KAAK,EAAE,CAAC,CAAC,CAAG,CAAE",
  "names": ["truncateText", "text", "limit", "useStore", "createStore", "withCharLimit", "Component", "Y", "props", "ref", "p", "truncateText", "withCharLimitCategory"]
}
