{"version":3,"file":"Examples.DUPFuQpV.mjs","names":["hash","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/FzqjGRiJ2499EJoxy4RE/Lt7HkZH1QH2OLGSXXCnC/Examples.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; }`,];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 const GoBackOverride=()=>{const handleClick=()=>{console.log(\"Going back!\");// Go back to the previous page\nwindow.history.back();};return{onClick:handleClick,cursor:\"pointer\"};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withGoBackOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GoBackOverride(props)});};}withGoBackOverride.displayName=\"GoBackOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"useTruncation\":{\"type\":\"reactHoc\",\"name\":\"useTruncation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GoBackOverride\":{\"type\":\"override\",\"name\":\"GoBackOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoBackOverride\":{\"type\":\"reactHoc\",\"name\":\"withGoBackOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"2OAAka,SAAgB,EAAc,EAAU,CAA+C,IAAM,EAAU,YAAhDA,EAAK,EAAe,SAAS,CAAqC,IAAgE,EAAgB,EAAQ,EAA1E,EAAe,IAAI,GAAG,IAAI,EAAU,GAAG,GAA+C,CAAC,EAAE,MAAO,IAA6B,EAAK,EAAgB,CAAC,GAAG,EAAM,UAAU,GAAG,EAAM,UAAU,GAAG,GAAW,CAAC,CAAI,CAC3hB,SAAgB,EAAmB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAe,CAAK,CAAC,CAAC,EAAI,yBADlW,IAA4B,IAAgC,IACgC,EADzB,EAAe,CAAC,yEAAyE,yEAAyE,yEAAyE,uEAAwE,EAAmW,OACruB,CAAC,YAD8wB,CAAC,QAAQ,IAAI,aAAa,EACv0B,EAAO,QAAQ,KAAK,CAAE,EAA6B,OAAO,SAAS,GAA0U,EAAmB,YAAY"}