{"version":3,"file":"CheckoutPopup.BdeN0lmL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/N3MGJJgpCAxAh9Ga4FPB/u0qguf7K6l8Kpkzzsz3A/CheckoutPopup.js"],"sourcesContent":["// import type { ComponentType } from \"react\"\n// import { createStore } from \"https://framer.com/m/framer/store.js@^1.0.0\"\n// import { randomColor } from \"https://framer.com/m/framer/utils.js@^0.9.0\"\n// // Learn more: https://www.framer.com/docs/guides/overrides/\n// const useStore = createStore({\n//     background: \"#0099FF\",\n// })\n// export function withRotate(Component): ComponentType {\n//     return (props) => {\n//         return (\n//             <Component\n//                 {...props}\n//                 animate={{ rotate: 90 }}\n//                 transition={{ duration: 2 }}\n//             />\n//         )\n//     }\n// }\n// export function withHover(Component): ComponentType {\n//     return (props) => {\n//         return <Component {...props} whileHover={{ scale: 1.05 }} />\n//     }\n// }\n// export function withRandomColor(Component): ComponentType {\n//     return (props) => {\n//         const [store, setStore] = useStore()\n//         return (\n//             <Component\n//                 {...props}\n//                 animate={{\n//                     background: store.background,\n//                 }}\n//                 onClick={() => {\n//                     setStore({ background: randomColor() })\n//                 }}\n//             />\n//         )\n//     }\n// }\nimport{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":"mMAuCwE,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"}