{"version":3,"file":"TextInetrcative.Bo5s64fW.mjs","names":["React.useState","React.useCallback"],"sources":["https:/framerusercontent.com/modules/DlRd0b7mKzKmkBUU0Uzn/lx9ikbKcC7VUJ7woZjsR/TextInetrcative.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function HoverTextLink(props){const{text,font,fontSize,color,hoverColor,tapColor,letterSpacing,lineHeight,underline,link,openInNewTab}=props;const[isHovered,setIsHovered]=React.useState(false);const[isPressed,setIsPressed]=React.useState(false);const fontFamily=font?.fontFamily||\"Inter\";const fontWeight=font?.fontWeight||400;const fontStyle=font?.fontStyle||\"normal\";const currentColor=isPressed?tapColor:isHovered?hoverColor:color;const goToLink=React.useCallback(()=>{if(!link)return;if(openInNewTab){window.open(link,\"_blank\",\"noopener,noreferrer\");}else{window.location.href=link;}},[link,openInNewTab]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"flex-start\"},children:/*#__PURE__*/_jsx(\"span\",{onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>{setIsHovered(false);setIsPressed(false);},onMouseDown:()=>setIsPressed(true),onMouseUp:()=>setIsPressed(false),onTouchStart:()=>setIsPressed(true),onTouchEnd:()=>{setTimeout(goToLink,120);},onTouchCancel:()=>setIsPressed(false),onClick:e=>{e.preventDefault();goToLink();},style:{fontFamily,fontWeight,fontStyle,fontSize:`${fontSize}px`,letterSpacing:`${letterSpacing}px`,lineHeight,color:currentColor,textDecoration:underline?\"underline\":\"none\",cursor:link?\"pointer\":\"default\",transition:\"color 0.18s ease\",userSelect:\"none\",WebkitTapHighlightColor:\"transparent\",display:\"inline-block\",whiteSpace:\"pre-wrap\"},children:text})});}HoverTextLink.defaultProps={text:\"Tu texto aqu\\xed\",font:{fontFamily:\"Inter\",fontWeight:400},fontSize:18,color:\"#111111\",hoverColor:\"#ff3b30\",tapColor:\"#00aaff\",letterSpacing:-2,lineHeight:\"1.2em\",underline:false,link:\"\",openInNewTab:false};addPropertyControls(HoverTextLink,{text:{type:ControlType.String,title:\"Text\"},font:{type:ControlType.Font,title:\"Font\"},fontSize:{type:ControlType.Number,title:\"Size\",defaultValue:18,min:8,max:200,step:1},color:{type:ControlType.Color,title:\"Color\"},hoverColor:{type:ControlType.Color,title:\"Hover\"},tapColor:{type:ControlType.Color,title:\"Tap\"},// 🔥 AQUÍ EL CAMBIO IMPORTANTE\nletterSpacing:{type:ControlType.Number,title:\"Spacing\",defaultValue:-2,min:-20,max:50,step:.1,unit:\"px\"},lineHeight:{type:ControlType.String,title:\"Line\",defaultValue:\"1.2em\"},underline:{type:ControlType.Boolean,title:\"Underline\"},link:{type:ControlType.String,title:\"Link\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HoverTextLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextInetrcative.map"],"mappings":"+LAA2H,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,WAAS,QAAM,aAAW,WAAS,gBAAc,aAAW,YAAU,OAAK,gBAAc,EAAW,CAAC,EAAU,GAAcA,EAAe,EAAK,EAAO,CAAC,EAAU,GAAcA,EAAe,EAAK,EAAQ,EAAW,GAAM,YAAY,QAAc,EAAW,GAAM,YAAY,IAAU,EAAU,GAAM,WAAW,SAAe,EAAa,EAAU,EAAS,EAAU,EAAW,EAAY,EAASC,MAAsB,CAAK,IAAe,EAAc,EAAO,KAAK,EAAK,SAAS,qBAAqB,EAAQ,EAAO,SAAS,KAAK,EAAM,EAAE,CAAC,EAAK,CAAY,CAAC,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS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