{"version":3,"file":"TextTruncateOverride.DXco8hU5.mjs","names":["useMemo","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","c","fontStore","init_framer_DKtAEkcX","fonts","css","className","init_KYqLA3XfV","withTruncateText","lineName","props","lineCount","match","LINE_REGEX","Component","init_TextTruncateOverride"],"sources":["https:/framerusercontent.com/modules/Z4uHWbVatfZ5m4Wk1Wz2/59RSGi5CFePBNbNTI6J2/KYqLA3XfV.js","https:/framerusercontent.com/modules/xpGOFRYFpBlvlQ8s4ATG/aVYcuckbetkq2RaUWeCZ/TextTruncateOverride.js"],"sourcesContent":["// Generated by Framer (f58a639)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-cTNUq .framer-styles-preset-krhpcx:not(.rich-text-wrapper), .framer-cTNUq .framer-styles-preset-krhpcx.rich-text-wrapper a { --framer-link-hover-text-color: #757776; transition-delay: 0s; transition-duration: 0.2s; transition-property: color; transition-timing-function: cubic-bezier(0.44, 0, 0.56, 1); }\"];export const className=\"framer-cTNUq\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";const LINE_REGEX=/lines?:\\s*(\\d+)/i;export function withTruncateText(Component){return props=>{const lineName=props[\"data-framer-name\"]||props.name||\"\";const lineCount=useMemo(()=>{const match=lineName.match(LINE_REGEX);return match?parseInt(match[3],10):3;},[lineName]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,overflow:\"hidden\",display:\"-webkit-box\",WebkitLineClamp:lineCount,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",whiteSpace:\"normal\",wordBreak:\"break-word\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTruncateText\":{\"type\":\"reactHoc\",\"name\":\"withTruncateText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextTruncateOverride.map"],"mappings":"A,+MAC8BM,EAAU,UAAU,CAAC,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,0TAA0T,EAAe,EAAU,c,OCDpW,SAAgBM,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMC,EAASC,EAAM,qBAAqBA,EAAM,MAAM,GAASC,EAAUf,MAAY,CAAC,IAAMgB,EAAMH,EAAS,MAAMI,CAAU,EAAE,OAAOD,EAAM,SAASA,EAAM,GAAG,EAAE,EAAE,CAAE,EAAE,CAACH,CAAQ,CAAC,EAAE,MAAoB,gBAAKK,EAAU,CAAC,GAAGJ,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgBC,EAAU,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAY,CAAC,CAAC,CAAE,CAAE,C,4CAAjf,EAAW,kB"}