{"version":3,"file":"CheckoutPopup.Ba-Rkmkf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ydMUYyoixcVse60QnHXM/8smgksZgJ7JIXrwcsd3Y/CheckoutPopup.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";function useEmbed(){useEffect(()=>{var _window;if((_window=window)===null||_window===void 0?void 0:_window.checkoutPage)return;const script=document.createElement(\"script\");script.src=\"https://checkoutpage.co/js/overlay.js\";script.async=true;document.body.appendChild(script);return()=>{document.body.removeChild(script);};},[]);return null;}export function withCheckoutPopup(Component){return props=>{useEmbed();props.className+=\" cp-button\";return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCheckoutPopup\":{\"type\":\"reactHoc\",\"name\":\"withCheckoutPopup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CheckoutPopup.map"],"mappings":"gIAAwE,SAAS,GAAU,CAAsT,OAArT,MAAc,CAAa,GAAY,GAAgD,aAAa,OAAO,IAAM,EAAO,SAAS,cAAc,SAAS,CAAwG,MAAvG,GAAO,IAAI,wCAAwC,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAQ,KAAM,SAAgB,EAAkB,EAAU,CAAC,MAAO,KAAQ,GAAU,CAAC,EAAM,WAAW,aAAiC,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,uBAAtgB,IAA6B"}