{"version":3,"file":"Examples.-80gtYrT.mjs","names":["__legacyOverrideHOC_DataObserverContext"],"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":"oUAAya,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,GAA6B,EAAK,EAAgB,CAAC,GAAG,EAAM,WAAW,EAAE,EAAM,UAAU,GAAG,EAAU,CAAE,EAAC,AAAI,CACrhB,SAAS,EAAmB,EAAE,CAAC,MAAO,CAAA,IAAQ,EAA+BA,EAAwC,CAAQ,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAe,EAAM,AAAC,EAAC,CAAI,kBAAA,AAEzW,IAHpC,GAA2C,IAA4B,IAAgC,CAChC,GAAgE,CAD1B,EAAe,mSAAqS,EAAkW,EAAe,IAAI,CAAC,IAAM,EAAY,IAAI,CAC7yB,AAD8yB,QAAQ,IAAI,cAAc,CACx0B,EAAO,QAAQ,MAAM,AAAE,EAAC,MAAM,CAAC,QAAQ,EAAY,OAAO,SAAU,CAAE,EAAuU,EAAmB,YAAY"}