{"version":3,"file":"CheckoutEmbed.DkPIq2ze.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fZj3rsXh2VNn6ea11Yn1/zvuBnjo9pEFZrRVUV2Me/CheckoutEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function useEmbed(){useEffect(()=>{if(window?.checkoutPage)return;const script=document.createElement(\"script\");script.src=\"https://assets.checkoutpage.com/overlay.js\";script.async=true;document.body.appendChild(script);return()=>{document.body.removeChild(script);};},[]);return null;}export default function CheckoutEmbed({checkout,backgroundColor,borderRadius,style}){useEmbed();useEffect(()=>{window?.checkoutPage?.initEmbeds();},[checkout]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,backgroundColor,borderRadius,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"cp-checkout\",\"data-checkout\":checkout})});}addPropertyControls(CheckoutEmbed,{checkout:{title:\"Checkout\",type:ControlType.String,placeholder:\"Your checkout link\",defaultValue:\"https://pay.aros.com.br/start\"},backgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#ffffff\"},borderRadius:{title:\"Radius\",type:ControlType.Number,defaultValue:8,min:0,max:50,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CheckoutEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CheckoutEmbed.map"],"mappings":"mLAA4H,SAAS,GAAU,CAA8P,OAA7P,MAAc,CAAC,GAAG,GAAQ,aAAa,OAAO,IAAM,EAAO,SAAS,cAAc,SAAS,CAA6G,MAA5G,GAAO,IAAI,6CAA6C,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAQ,KAAM,SAAwB,EAAc,CAAC,WAAS,kBAAgB,eAAa,SAAO,CAA4E,OAA3E,GAAU,CAAC,MAAc,CAAC,GAAQ,cAAc,YAAY,EAAG,CAAC,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,kBAAgB,eAAa,SAAS,SAAS,CAAC,SAAsB,EAAK,MAAM,CAAC,UAAU,cAAc,gBAAgB,EAAS,CAAC,CAAC,CAAC,sBAArsB,IAA6B,IAAoD,CAAsnB,EAAoB,EAAc,CAAC,SAAS,CAAC,MAAM,WAAW,KAAK,EAAY,OAAO,YAAY,qBAAqB,aAAa,gCAAgC,CAAC,gBAAgB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,aAAa,CAAC,MAAM,SAAS,KAAK,EAAY,OAAO,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC"}