{"version":3,"file":"shared-lib.D072NIn3.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xDToyJ9ssGtgSWe9mcCf/6lxgfZnd0hdjatHRmTJY/Shinypixel.js","https:/framerusercontent.com/modules/eFCgzMUhabELE0bOs7Xb/vSpiBENfSjbNNghb4QE1/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","// Generated by Framer (a9443c1)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:\"<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s)\\n{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};\\nif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\\nn.queue=[];t=b.createElement(e);t.async=!0;\\nt.src=v;s=b.getElementsByTagName(e)[0];\\ns.parentNode.insertBefore(t,s)}(window, document,'script',\\n'https://connect.facebook.net/en_US/fbevents.js');\\nfbq('init', '664548662918789');\\nfbq('init', '1743709619893710');\\nfbq('track', 'PageView');\\n</script>\\n<noscript></noscript>\",customHTMLHeadStart:\"<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s)\\n{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};\\nif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\\nn.queue=[];t=b.createElement(e);t.async=!0;\\nt.src=v;s=b.getElementsByTagName(e)[0];\\ns.parentNode.insertBefore(t,s)}(window, document,'script',\\n'https://connect.facebook.net/en_US/fbevents.js');\\nfbq('init', '664548662918789');\\nfbq('init', '1743709619893710');\\nfbq('track', 'PageView');\\n</script>\\n<noscript></noscript>\",favicon:\"https://framerusercontent.com/assets/2jMZTgAxYdAossN2j2XkK4dGjc.png\",robots:\"max-image-preview:large\",title:\"Mat\\xedasTips\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oNAA+I,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,aAAW,YAAU,WAAS,eAAa,WAAS,WAAS,aAAW,UAAQ,SAAO,EAA4T,OAAoB,EAAM,EAAO,EAAE,CAAC,KAAK,EAAK,OAAO,SAAS,IAAI,sBAAsB,QAA5X,SAAS,CAAI,GAAS,GAAO,MAAM,MAAM,oCAAoC,EAAQ,uBAAuB,IAAQ,CAAC,OAAO,OAAO,QAAQ,CAAC,eAAe,mBAAmB,CAAC,KAAK,KAAK,UAAU,CAAC,KAAK,CAAC,CAAC,WAAW,OAAO,WAAW,KAAK,MAAM,KAAK,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAgH,WAAW,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,SAAS,SAAS,aAAW,MAAM,EAAU,WAAW,OAAO,WAAS,QAAQ,GAAG,EAAS,KAAK,EAAS,IAAI,eAAa,eAAe,OAAO,QAAQ,eAAe,WAAW,UAAU,cAAc,YAAY,OAAO,UAAU,MAAM,cAAc,CAAC,SAAS,CAAC,EAAkB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,OAAO,MAAM,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