{"version":3,"file":"TextoFormatoInterno.Duj-OU5_.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_DcGZRLrs","addPropertyControls","ControlType","TextoFormatoInterno","props","Tag","etiqueta","tipografia","estilo","fuente","ESTILOS","render","raw","p","contenido","bold","acento","colorAcento","i","align","style","texto","FAMILIA","init_TextoFormatoInterno"],"sources":["https:/framerusercontent.com/modules/ZtOm49O9XUEmAaF7Y1NN/Bza6G9PpRAURsb6CDwlp/TextoFormatoInterno.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const FAMILIA='\"Inter Display\", \"Inter\", sans-serif';const ESTILOS={cuerpo:{fontFamily:FAMILIA,fontSize:\"clamp(14px, 1.1vw, 15px)\",fontWeight:400,lineHeight:1.5,letterSpacing:\"-.01em\"},textogrande:{fontFamily:FAMILIA,fontSize:\"clamp(15px, 1.5vw, 17px)\",fontWeight:400,lineHeight:1.5,letterSpacing:\"-0.01em\"},chico:{fontFamily:FAMILIA,fontSize:\"clamp(13px, 0.9vw, 15px)\",fontWeight:400,lineHeight:1.4,letterSpacing:\"0em\"}};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function TextoFormatoInterno(props){const{texto,estilo,fuente,etiqueta,color,colorAcento,align,style}=props;const Tag=etiqueta||\"p\";const tipografia=estilo===\"personalizado\"?fuente||{}:ESTILOS[estilo]||{};const render=raw=>{const partes=(raw||\"\").split(/(\\*\\*.*?\\*\\*|==.*?==)/g);return partes.map((p,i)=>{if(!p)return null;let contenido=p;let bold=false;let acento=false;if(contenido.startsWith(\"**\")&&contenido.endsWith(\"**\")){contenido=contenido.slice(2,-2);bold=true;}if(contenido.startsWith(\"==\")&&contenido.endsWith(\"==\")){contenido=contenido.slice(2,-2);acento=true;}if(!bold&&!acento)return contenido;const estiloSpan={fontWeight:bold?600:\"inherit\",color:acento?colorAcento:\"inherit\"};return bold?/*#__PURE__*/_jsx(\"strong\",{style:estiloSpan,children:contenido},i):/*#__PURE__*/_jsx(\"span\",{style:estiloSpan,children:contenido},i);});};return /*#__PURE__*/_jsx(Tag,{style:{...tipografia,color,textAlign:align,whiteSpace:\"pre-wrap\",margin:0,width:\"100%\",...style},children:render(texto)});}TextoFormatoInterno.defaultProps={texto:\"Texto base con una **palabra en negrita** y otra ==en rojo==.\",estilo:\"cuerpo\",etiqueta:\"p\",color:\"#111111\",colorAcento:\"#E52329\",align:\"left\"};addPropertyControls(TextoFormatoInterno,{texto:{type:ControlType.String,title:\"Texto\",displayTextArea:true},etiqueta:{type:ControlType.Enum,title:\"Etiqueta\",options:[\"p\",\"h1\",\"h2\",\"h3\",\"h4\"],optionTitles:[\"P\\xe1rrafo\",\"H1\",\"H2\",\"H3\",\"H4\"]},estilo:{type:ControlType.Enum,title:\"Estilo\",options:[\"cuerpo\",\"textogrande\",\"chico\",\"personalizado\"],optionTitles:[\"Cuerpo\",\"Texto Grande\",\"Chico\",\"Personalizado\"]},fuente:{type:ControlType.Font,title:\"Fuente\",controls:\"extended\",defaultFontType:\"sans-serif\",hidden:props=>props.estilo!==\"personalizado\"},color:{type:ControlType.Color,title:\"Color\"},colorAcento:{type:ControlType.Color,title:\"Acento\"},align:{type:ControlType.Enum,title:\"Alineaci\\xf3n\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Izq\",\"Centro\",\"Der\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextoFormatoInterno\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextoFormatoInterno.map"],"mappings":"A,4JAGG,SAAwBM,EAAoB,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,SAAO,WAAS,QAAM,cAAY,QAAM,SAAOC,EAAYC,EAAIC,GAAU,IAAUC,EAAWC,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