{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/UBaRMlPACT0Yo3L4cJm7/liONRQsIrzmker2KQ8TR/Truncate.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { withCSS } from \"framer\";\nimport hash from \"@emotion/hash\";\nconst truncateStyles = [`h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }`, `h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }`, `h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }`, `p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }`];\nexport function useTruncation(Component) {\n  const postfix = hash(truncateStyles.toString());\n  const className = `truncate-${postfix}`;\n  const css = truncateStyles.map(s => `.${className} ${s}`);\n  const StyledComponent = withCSS(Component, css);\n  return props => {\n    return /*#__PURE__*/_jsx(StyledComponent, {\n      ...props,\n      className: `${props.className} ${className}`\n    });\n  };\n}\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"useTruncation\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"useTruncation\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Truncate.map"],
  "mappings": "qKAAAA,IAGA,IAAMC,EAAiB,CAAC,yEAA0E,yEAA0E,yEAA0E,uEAAuE,EACtT,SAASC,EAAcC,EAAW,CAEvC,IAAMC,EAAY,YADFC,EAAKJ,EAAe,SAAS,CAAC,IAExCK,EAAML,EAAe,IAAIM,GAAK,IAAIH,KAAaG,GAAG,EAClDC,EAAkBC,EAAQN,EAAWG,CAAG,EAC9C,OAAOI,GACeC,EAAKH,EAAiB,CACxC,GAAGE,EACH,UAAW,GAAGA,EAAM,aAAaN,GACnC,CAAC,CAEL",
  "names": ["init_shims", "truncateStyles", "useTruncation", "Component", "className", "murmur2", "css", "s", "StyledComponent", "withCSS", "props", "p"]
}
