{"version":3,"file":"Truncate.NJeACx3K.mjs","names":["hash"],"sources":["https:/framerusercontent.com/modules/1uRYwRsr3FSpRqqNlVRf/ed1uYwpiAp0QXHVxSFHx/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; }`];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}`});};}\nexport const __FramerMetadata__ = {\"exports\":{\"useTruncationTwoLines\":{\"type\":\"reactHoc\",\"name\":\"useTruncationTwoLines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useTruncation\":{\"type\":\"reactHoc\",\"name\":\"useTruncation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Truncate.map"],"mappings":"+QAAs1B,SAAgB,EAAc,EAAU,CAA+C,IAAM,EAAU,YAAhDA,EAAK,EAAe,UAAU,CAAC,GAA6C,EAAI,EAAe,IAAI,GAAG,IAAI,EAAU,GAAG,IAAI,CAAO,EAAgB,EAAQ,EAAU,EAAI,CAAC,MAAO,IAA4B,EAAK,EAAgB,CAAC,GAAG,EAAM,UAAU,GAAG,EAAM,UAAU,GAAG,IAAY,CAAC,CAAI,SAAgB,EAAsB,EAAU,CAAsD,IAAM,EAAU,YAAvDA,EAAK,EAAsB,UAAU,CAAC,GAA6C,EAAI,EAAsB,IAAI,GAAG,IAAI,EAAU,GAAG,IAAI,CAAO,EAAgB,EAAQ,EAAU,EAAI,CAAC,MAAO,IAA4B,EAAK,EAAgB,CAAC,GAAG,EAAM,UAAU,GAAG,EAAM,UAAU,GAAG,IAAY,CAAC,sBAAn+C,IAA4B,IAAgC,CAAM,EAAe,CAAC,yEAAyE,yEAAyE,yEAAyE,wEAAwE,CAAO,EAAsB,CAAC,sGAAsG,sGAAsG,sGAAsG,qGAAqG"}