{"version":3,"file":"LayoutOverrides.DaUPAs1x.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JQ5ub40rJJAIGz8G9vcM/1xYKKRtuRwvQ5FyOqWty/LayoutOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Lets a CMS collection list share its parent's grid: the list's own box\n// disappears and its items become grid items of the parent, so a fixed tile\n// placed after the list sits right after the last item, on the same row.\nexport function withDisplayContents(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"contents\"}});}// Game links in \"Venue games\" are poteau.app/game/<id> (French landing). On\n// /en, /es and /it pages, send the visitor to poteau.app/<lang>/game/<id> so\n// the shared-link landing opens in their language.\nexport function withLocaleGameLink(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);const m=window.location.pathname.match(/^\\/(en|es|it)(\\/|$)/);if(!m)return;const a=e?.currentTarget?.closest?e.currentTarget.closest(\"a[href]\")||e.currentTarget:null;const href=a?.getAttribute?a.getAttribute(\"href\")||\"\":\"\";if(!/^https:\\/\\/poteau\\.app\\/game\\//.test(href))return;e.preventDefault();window.location.href=href.replace(\"https://poteau.app/game/\",`https://poteau.app/${m[1]}/game/`);}});}// A linked card that answers the pointer: it lifts a little on hover and\n// presses on tap, so the whole card reads as one button.\nexport function withHoverLift(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,whileHover:{y:-3,scale:1.015,boxShadow:\"0px 14px 34px rgba(0,0,0,0.35)\"},whileTap:{scale:.985},transition:{type:\"spring\",stiffness:380,damping:26}});}\nexport const __FramerMetadata__ = {\"exports\":{\"withLocaleGameLink\":{\"type\":\"reactHoc\",\"name\":\"withLocaleGameLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverLift\":{\"type\":\"reactHoc\",\"name\":\"withHoverLift\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDisplayContents\":{\"type\":\"reactHoc\",\"name\":\"withDisplayContents\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LayoutOverrides.map"],"mappings":"kHAGA,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,UAAU,CAAC,CAAC,CAAE,CAG/I,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAG,CAAI,EAAM,SAAQ,EAAM,QAAQ,CAAC,EAAE,IAAM,EAAE,EAAO,SAAS,SAAS,MAAM,qBAAqB,EAAE,GAAG,CAAC,EAAE,OAAO,IAAM,EAAE,GAAG,eAAe,QAAQ,EAAE,cAAc,QAAQ,SAAS,GAAG,EAAE,cAAc,KAAW,EAAK,GAAG,cAAa,EAAE,aAAa,MAAM,GAAM,GAAO,iCAAiC,KAAK,CAAI,IAAS,EAAE,eAAe,EAAE,EAAO,SAAS,KAAK,EAAK,QAAQ,2BAA2B,sBAAsB,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAE,CAE9hB,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,WAAW,CAAC,EAAE,GAAG,MAAM,MAAM,UAAU,gCAAgC,EAAE,SAAS,CAAC,MAAM,IAAI,EAAE,WAAW,CAAC,KAAK,SAAS,UAAU,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAE,qBARxM"}