{"version":3,"file":"shared-lib.L2EB_BsV.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/VuDXMR47iDu65pqnw6lY/uvp6sP2R7FmRiESeYVGj/Shinypixel.js","https:/framerusercontent.com/modules/vUWdN4FJ8EhVbjoUJmLA/La7PHhlhKuIF1tlcKW8Q/CuentaAtras.js","https:/framerusercontent.com/modules/zsfDLA2kqkGwPbNIkS7w/TwfjqG3it4aZBP66gokp/jlThEpdax.js","https:/framerusercontent.com/modules/kS6Lpt6dhRpji4eLQGx1/Dr3HMpwVduGu0u5GCo6t/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export function BotonUnirse(props){const{text,link,background,textColor,fontSize,borderRadius,paddingX,paddingY,shineColor,pixelID,token}=props;const handleClick=async()=>{if(pixelID&&token){await fetch(`https://graph.facebook.com/v18.0/${pixelID}/events?access_token=${token}`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({data:[{event_name:\"Lead\",event_time:Math.floor(Date.now()/1e3),action_source:\"website\"}]})});}};return /*#__PURE__*/_jsxs(motion.a,{href:link,target:\"_blank\",rel:\"noopener noreferrer\",onClick:handleClick,whileHover:{scale:1.05},whileTap:{scale:.95},style:{position:\"relative\",overflow:\"hidden\",background,color:textColor,fontWeight:\"bold\",fontSize,padding:`${paddingY}px ${paddingX}px`,borderRadius,textDecoration:\"none\",display:\"inline-block\",fontFamily:\"inherit\",textTransform:\"uppercase\",cursor:\"pointer\",width:\"fit-content\"},children:[text,/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:\"-50%\",width:\"50%\",height:\"100%\",background:`linear-gradient(120deg, transparent, ${shineColor}, transparent)`,transform:\"skewX(-20deg)\",pointerEvents:\"none\"},animate:{left:[\"-50%\",\"125%\"]},transition:{duration:2,repeat:Infinity}})]});}addPropertyControls(BotonUnirse,{text:{type:ControlType.String,title:\"Texto\",defaultValue:\"UNIRSE GRATIS\"},link:{type:ControlType.String,title:\"Enlace\",defaultValue:\"https://tucanal.com\"},background:{type:ControlType.Color,title:\"Fondo\",defaultValue:\"#1DA1F2\"},textColor:{type:ControlType.Color,title:\"Color texto\",defaultValue:\"#FFFFFF\"},fontSize:{type:ControlType.Number,title:\"Tama\\xf1o texto\",defaultValue:14},borderRadius:{type:ControlType.Number,title:\"Borde redondeado\",defaultValue:999},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:24},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:12},shineColor:{type:ControlType.Color,title:\"Color brillo\",defaultValue:\"#ffffff80\"},pixelID:{type:ControlType.String,title:\"Pixel ID\"},token:{type:ControlType.String,title:\"Access Token\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"BotonUnirse\":{\"type\":\"reactComponent\",\"name\":\"BotonUnirse\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shinypixel.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function CuentaAtras({durationInSeconds,fontSize,color}){const[targetDate,setTargetDate]=useState(new Date(Date.now()+durationInSeconds*1e3));const[timeLeft,setTimeLeft]=useState(\"\");useEffect(()=>{const interval=setInterval(()=>{const now=new Date;const diff=targetDate.getTime()-now.getTime();if(diff<=0){// Reiniciar cuenta atrás\nconst next=new Date(now.getTime()+durationInSeconds*1e3);setTargetDate(next);return;}const hours=Math.floor(diff/(1e3*60*60));const minutes=Math.floor(diff%(1e3*60*60)/(1e3*60));const seconds=Math.floor(diff%(1e3*60)/1e3);setTimeLeft(`${hours}h ${minutes}m ${seconds}s`);},1e3);return()=>clearInterval(interval);},[targetDate,durationInSeconds]);return /*#__PURE__*/_jsx(\"div\",{style:{fontSize,color,fontFamily:\"inherit\"},children:timeLeft});}addPropertyControls(CuentaAtras,{durationInSeconds:{type:ControlType.Number,title:\"Duraci\\xf3n (s)\",defaultValue:3600,min:1,step:1},fontSize:{type:ControlType.Number,title:\"Tama\\xf1o\",defaultValue:32},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"CuentaAtras\":{\"type\":\"reactComponent\",\"name\":\"CuentaAtras\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CuentaAtras.map","// Generated by Framer (e0ec254)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-cjbBC .framer-styles-preset-hj96q4:not(.rich-text-wrapper), .framer-cjbBC .framer-styles-preset-hj96q4.rich-text-wrapper a { --framer-link-current-text-color: #111111; --framer-link-current-text-decoration: underline; --framer-link-hover-text-color: #0088ff; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #0099ff; --framer-link-text-decoration: none; }\"];export const className=\"framer-cjbBC\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (506606a)\nexport default function metadata(params,activeLocale){return{favicon:\"https://framerusercontent.com/assets/zuxiFxh0BHAsFxayB89p4JAmg.png\",robots:\"max-image-preview:large\",title:\"Ryan Tips\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"gXAA+I,SAA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