{"version":3,"file":"FramerButton.CABbCxrA.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/GWcemHdE2Pytc5OQGqaS/AxT8LvSkquQzMVQTTesq/FramerButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";export default function FramerButton(props){const{horizontal,vertical}=props;// State for opacity\nconst[opacity,setOpacity]=React.useState(0);const cssContent=`\n    #__framer-badge-container {\n      ${horizontal===\"left\"?\"justify-content: flex-start !important;\":\"justify-content: flex-end !important;\"}\n      ${vertical===\"top\"?\"top: 0 !important;\":\"bottom: 0 !important;\"}\n      opacity: ${opacity} !important;\n      z-index: -1 !important; // Added z-index: -1\n\n    }\n  `;React.useEffect(()=>{const styleSheet=document.createElement(\"style\");styleSheet.type=\"text/css\";styleSheet.innerText=cssContent;document.head.appendChild(styleSheet);const intervalId=setInterval(()=>{const badgeContainer=document.querySelector(\"#__framer-badge-container\");if(badgeContainer){const framerLink=badgeContainer.querySelector(\"a[href='https://amadorcampos.com/']\");if(framerLink){framerLink.href=\"https://www.framer.com?via=vmador_campos\";clearInterval(intervalId);}}},500);return()=>{document.head.removeChild(styleSheet);clearInterval(intervalId);};},[horizontal,vertical,opacity]);return /*#__PURE__*/_jsx(motion.div,{});}FramerButton.defaultProps={horizontal:\"left\",vertical:\"top\"};addPropertyControls(FramerButton,{horizontal:{type:ControlType.Enum,title:\"Horizontal Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\"},vertical:{type:ControlType.Enum,title:\"Vertical Position\",options:[\"top\",\"bottom\"],optionTitles:[\"Top\",\"Bottom\"],defaultValue:\"top\"},opacity:{type:ControlType.Number,title:\"Opacity\",min:0,max:1,step:.01,defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\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