{"version":3,"file":"shared-lib.MHury4An.mjs","names":["useState","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/VuDXMR47iDu65pqnw6lY/uvp6sP2R7FmRiESeYVGj/Shinypixel.js","https:/framerusercontent.com/modules/OmLg3AnoGTpGr45zmsZQ/rCELL8FIKwNIo9aLTodw/CuentaAtras.js","https:/framerusercontent.com/modules/WRfB134h8KJBzMbkH4Pt/58QBTqlo6roarnNIzzu3/jlThEpdax.js","https:/framerusercontent.com/modules/UYWGTcxfUua1C8OaD6lJ/jdabD7UwHc2cI7HqnERV/TZnZDt98M.js","https:/framerusercontent.com/modules/48WRJhz5tcMgoFBWdTkt/3BPobVZxS5tfNNY8sfw8/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 (e0ec254)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;ADLaM Display-regular\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"ADLaM Display\",openType:true,source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/adlamdisplay/v1/KFOhCnGXkPOLlhx6jD8_b1ZECsTYkYBPY3o.woff2\",weight:\"400\"}]}];export const css=[\".framer-dgyDO .framer-styles-preset-o2khxa:not(.rich-text-wrapper), .framer-dgyDO .framer-styles-preset-o2khxa.rich-text-wrapper p { --framer-font-family: \\\"ADLaM Display\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\"];export const className=\"framer-dgyDO\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (a7a4a3d)\nexport default function metadata(params,activeLocale){return{favicon:\"https://framerusercontent.com/assets/EW1Wa2nxF7JNcGC2WLD8R32Xg0.png\",robots:\"max-image-preview:large\",title:\"Mat\\xedas Oficial\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2OAA+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,QAAQ,SAA3X,CAAI,GAAS,GAAO,MAAM,MAAM,oCAAoC,EAAQ,uBAAuB,I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