{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/UBaRMlPACT0Yo3L4cJm7/W0bFCREcPzWNwPdbznaL/Truncate.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{withCSS}from\"framer\";import hash from\"@emotion/hash\";const 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; }`];const truncateTwoLineStyles=[`h1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }`,`h2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }`,`h3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }`,`p { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }`];const truncateThreeLineStyles=[`h1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }`,`h2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }`,`h3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }`,`p { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }`];export function useTruncation(Component){const postfix=hash(truncateStyles.toString());const className=`truncate-${postfix}`;const css=truncateStyles.map(s=>`.${className} ${s}`);const StyledComponent=withCSS(Component,css);return props=>{return /*#__PURE__*/_jsx(StyledComponent,{...props,className:`${props.className} ${className}`});};}export function useTruncationTwoLines(Component){const postfix=hash(truncateTwoLineStyles.toString());const className=`truncate-${postfix}`;const css=truncateTwoLineStyles.map(s=>`.${className} ${s}`);const StyledComponent=withCSS(Component,css);return props=>{return /*#__PURE__*/_jsx(StyledComponent,{...props,className:`${props.className} ${className}`});};}export function useTruncationThreeLines(Component){const postfix=hash(truncateThreeLineStyles.toString());const className=`truncate-${postfix}`;const css=truncateThreeLineStyles.map(s=>`.${className} ${s}`);const StyledComponent=withCSS(Component,css);return props=>{return /*#__PURE__*/_jsx(StyledComponent,{...props,className:`${props.className} ${className}`});};}\nexport const __FramerMetadata__ = {\"exports\":{\"useTruncation\":{\"type\":\"reactHoc\",\"name\":\"useTruncation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useTruncationTwoLines\":{\"type\":\"reactHoc\",\"name\":\"useTruncationTwoLines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useTruncationThreeLines\":{\"type\":\"reactHoc\",\"name\":\"useTruncationThreeLines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Truncate.map"],
  "mappings": "qKAAAA,IAAuG,IAAMC,EAAe,CAAC,yEAAyE,yEAAyE,yEAAyE,uEAAuE,EAAQC,EAAsB,CAAC,sGAAsG,sGAAsG,sGAAsG,oGAAoG,EAAgc,SAASC,EAAcC,EAAU,CAA+C,IAAMC,EAAU,YAAhDC,EAAKC,EAAe,SAAS,CAAC,CAAqC,GAASC,EAAID,EAAe,IAAIE,GAAG,IAAIJ,CAAS,IAAII,CAAC,EAAE,EAAQC,EAAgBC,EAAQP,EAAUI,CAAG,EAAE,OAAOI,GAA4BC,EAAKH,EAAgB,CAAC,GAAGE,EAAM,UAAU,GAAGA,EAAM,SAAS,IAAIP,CAAS,EAAE,CAAC,CAAI,CAAQ,SAASS,EAAsBV,EAAU,CAAsD,IAAMC,EAAU,YAAvDC,EAAKS,EAAsB,SAAS,CAAC,CAAqC,GAASP,EAAIO,EAAsB,IAAIN,GAAG,IAAIJ,CAAS,IAAII,CAAC,EAAE,EAAQC,EAAgBC,EAAQP,EAAUI,CAAG,EAAE,OAAOI,GAA4BC,EAAKH,EAAgB,CAAC,GAAGE,EAAM,UAAU,GAAGA,EAAM,SAAS,IAAIP,CAAS,EAAE,CAAC,CAAI",
  "names": ["init_ssg_sandbox_shims", "truncateStyles", "truncateTwoLineStyles", "useTruncation", "Component", "className", "murmur2", "truncateStyles", "css", "s", "StyledComponent", "withCSS", "props", "p", "useTruncationTwoLines", "truncateTwoLineStyles"]
}
