{"version":3,"file":"God_mode.F2LFlHT9.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/5jEzWzZzjrJjVTP8RypI/PiuJym9gkxvKp6jArIoA/God_mode.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 GodMode(props){const{horizontal,vertical,opacity:initialOpacity,editorBarMode}=props;const[opacity,setOpacity]=React.useState(initialOpacity);const selector=editorBarMode?\"#__framer-editorbar\":\"#__framer-badge-container\";const cssContent=`\n    ${selector} {\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;\n    }\n  `;React.useEffect(()=>{const styleSheet=document.createElement(\"style\");styleSheet.type=\"text/css\";styleSheet.innerText=cssContent;document.head.appendChild(styleSheet);// Solo ejecutar la modificación del enlace si no estamos en modo editorBar\nlet intervalId;if(!editorBarMode){intervalId=setInterval(()=>{const container=document.querySelector(selector);if(container){const framerLink=container.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);if(intervalId)clearInterval(intervalId);};},[horizontal,vertical,opacity,editorBarMode]);return /*#__PURE__*/_jsx(motion.div,{});}GodMode.defaultProps={horizontal:\"left\",vertical:\"top\",opacity:0,editorBarMode:false};addPropertyControls(GodMode,{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},editorBarMode:{type:ControlType.Boolean,title:\"Editor Bar Mode\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GodMode\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./God_mode.map"],"mappings":"mOAA6J,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,aAAW,WAAS,QAAQ,EAAe,iBAAe,EAAW,CAAC,EAAQ,GAAYA,EAAe,EAAe,CAAO,EAAS,EAAc,sBAAsB,4BAAkC,EAAW;MAC7Z,EAAS;QACP,IAAa,OAAO,0CAA0C,wCAAwC;QACtG,IAAW,MAAM,qBAAqB,wBAAwB;iBACrD,EAAQ;;;IAI4a,OADjc,MAAoB,CAAC,IAAM,EAAW,SAAS,cAAc,QAAQ,CAAC,EAAW,KAAK,WAAW,EAAW,UAAU,EAAW,SAAS,KAAK,YAAY,EAAW,CAC1K,IAAI,EAAuT,OAAxS,IAAe,EAAW,gBAAgB,CAAC,IAAM,EAAU,SAAS,cAAc,EAAS,CAAC,GAAG,EAAU,CAAC,IAAM,EAAW,EAAU,cAAc,sCAAsC,CAAI,IAAY,EAAW,KAAK,2CAA2C,cAAc,EAAW,IAAK,IAAI,MAAY,CAAC,SAAS,KAAK,YAAY,EAAW,CAAI,GAAW,cAAc,EAAW,GAAK,CAAC,EAAW,EAAS,EAAQ,EAAc,CAAC,CAAqB,EAAK,EAAO,IAAI,EAAE,CAAC,kBARjc,IAA4B,IAAoD,IAAkC,CAQiV,EAAQ,aAAa,CAAC,WAAW,OAAO,SAAS,MAAM,QAAQ,EAAE,cAAc,GAAM,CAAC,EAAoB,EAAQ,CAAC,WAAW,CAAC,KAAK,EAAY,KAAK,MAAM,sBAAsB,QAAQ,CAAC,OAAO,QAAQ,CAAC,aAAa,CAAC,OAAO,QAAQ,CAAC,aAAa,OAAO,CAAC,SAAS,CAAC,KAAK,EAAY,KAAK,MAAM,oBAAoB,QAAQ,CAAC,MAAM,SAAS,CAAC,aAAa,CAAC,MAAM,SAAS,CAAC,aAAa,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,aAAa,EAAE,CAAC,cAAc,CAAC,KAAK,EAAY,QAAQ,MAAM,kBAAkB,aAAa,GAAM,CAAC,CAAC"}