{"version":3,"file":"Truncate.DeEJSrYl.mjs","names":[],"sources":["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":"kOAAoxC,SAAS,EAAc,EAAU,CAA2I,IAApI,EAAQ,EAAK,EAAe,UAAU,CAAC,CAAO,GAAW,WAAW,EAAQ,EAAQ,EAAI,EAAe,IAAI,IAAI,GAAG,EAAU,GAAG,EAAE,EAAE,CAAO,EAAgB,EAAQ,EAAU,EAAI,CAAC,MAAO,CAAA,GAA4B,EAAK,EAAgB,CAAC,GAAG,EAAM,WAAW,EAAE,EAAM,UAAU,GAAG,EAAU,CAAE,EAAC,AAAI,CAAO,SAAS,EAAsB,EAAU,CAAyJ,IAAlJ,EAAQ,EAAK,EAAsB,UAAU,CAAC,CAAO,GAAW,WAAW,EAAQ,EAAQ,EAAI,EAAsB,IAAI,IAAI,GAAG,EAAU,GAAG,EAAE,EAAE,CAAO,EAAgB,EAAQ,EAAU,EAAI,CAAC,MAAO,CAAA,GAA4B,EAAK,EAAgB,CAAC,GAAG,EAAM,WAAW,EAAE,EAAM,UAAU,GAAG,EAAU,CAAE,EAAC,AAAI,kBAAliD,AAAva,GAA2C,IAA4B,IAAgC,CAAM,EAAe,mSAAoS,EAAO,EAAsB,uZAAwZ"}