{"version":3,"file":"SolicitaInfoButton.DRUHHspb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/s51u2ootzEnh95t2pE4I/azrhsUdlRAA7zIcNtZUP/SolicitaInfoButton.js"],"sourcesContent":["// 08/10/2026: tipografía única Inter (sistema de diseño UV rev. 13).\n// NORMA 05/10/2026: botones 14px/800/mayúsculas/0.06em, padding 12×18, radio 5, flecha ↗ salvo si hay otro icono; botón icono 40×40 negro r5; campos r5; cajas r10.\n// ICONOS (05/10/2026, prueba): Google Material Symbols Rounded 400 (Apache 2.0) — paths oficiales google/material-design-icons, 06/10/2026. Logos de marca aparte.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import IconoMaterialUV from\"https://framerusercontent.com/modules/o6NtSvBLlvPnKK6LAWIY/bZKTGoJGqkAy4jtvXwQF/IconoMaterialUV.js\";import IconoMarcaUV from\"https://framerusercontent.com/modules/EZOferTFc63guBGo2Ogl/RKM8izjX6zVj03hr336h/IconoMarcaUV.js\";function WaGlyph({size,fill}){return /*#__PURE__*/_jsx(IconoMarcaUV,{marca:\"whatsapp\",color:fill,size:size});}function Flecha(){return /*#__PURE__*/_jsx(\"span\",{className:\"uvbtn-arrow\",\"aria-hidden\":\"true\",style:{display:\"inline-flex\",flexShrink:0,transition:\"transform 220ms ease\"},children:/*#__PURE__*/_jsx(IconoMaterialUV,{icono:\"arrow_outward\",color:\"currentColor\",size:16})});}// Contador incremental para gtm.uniqueEventId\nlet uvBtnUid=1;// Especificación única de botón (norma 05/10/2026)\nconst BTN={radio:5,fontSize:14,fontWeight:800,letterSpacing:\"0.06em\",padding:\"12px 18px\",fuente:\"'Inter', sans-serif\"};// Empuja a dataLayer el clic del data-componente (formato del documento de\n// requisitos analíticos: event \"ShadowDOMClick\" + eventGtm* del bloque).\nfunction pushGtmClick(container,category,action,text){try{const w=window;w.dataLayer=w.dataLayer||[];w.dataLayer.push({eventGtmAction:action||\"\",eventGtmCategory:category||\"\",eventGtmContainer:container||\"\",eventClickId:\"\",eventClickClasses:\"\",eventClickText:text||\"\",eventClickDomain:w.location?w.location.hostname:\"\",eventClickOutbound:true,event:\"ShadowDOMClick\",\"gtm.uniqueEventId\":uvBtnUid++});}catch(e){}}/**\n * Botón \"Solicita info\". Al hacer clic dispara el evento global\n * \"uv-open-form\" (o el que se indique en openEvent), que abre el formulario\n * de la página en un popup centrado (ver FormPopupModa).\n *\n * Estilo según la NORMA de botones (05/10/2026): 14 px, peso 800,\n * mayúsculas, tracking 0.06em, padding 12×18, radio 5, Hanken Grotesk.\n * Con icono de WhatsApp activo no lleva flecha; sin icono lleva la flecha ↗\n * (se desplaza 3 px arriba-derecha en hover/foco, 220 ms). En móvil\n * (<810 px) el botón ocupa todo el ancho. Las props de tamaño, padding y\n * radio se conservan por compatibilidad pero ya no se usan.\n *\n * Analítica GTM: al hacer clic empuja un evento \"ShadowDOMClick\" con los\n * data-componentes del bloque (container/category/action). Por defecto\n * container \"hero\" (cámbialo a \"header\" o \"sticky\" según dónde se use).\n *\n * anchoAuto: con true el botón se ciñe a su contenido (en desktop/tablet).\n * mostrarIcono: oculta el glifo de WhatsApp en landings sin ese canal.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 240\n * @framerIntrinsicHeight 42\n */export default function SolicitaInfoButton(props){const{label,bg,textColor,iconColor,openEvent,gtmContainer,gtmCategory,gtmAction,anchoAuto,mostrarIcono,style}=props;const conIcono=mostrarIcono!==false;return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"uvbtn\",onClick:()=>{pushGtmClick(gtmContainer||\"hero\",gtmCategory||\"solicitud_info_contextual\",gtmAction||\"form_open\",label||\"\");if(typeof window!==\"undefined\"){window.dispatchEvent(new CustomEvent(openEvent||\"uv-open-form\"));}},style:{...style,// Debe ir DESPUÉS del spread: pisa el width:100% que inyecta\n// Framer en la instancia.\n...anchoAuto?{width:\"fit-content\",maxWidth:\"100%\"}:null,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,background:bg,color:textColor,border:\"none\",borderRadius:BTN.radio,padding:BTN.padding,fontFamily:BTN.fuente,fontSize:BTN.fontSize,fontWeight:BTN.fontWeight,letterSpacing:BTN.letterSpacing,textTransform:\"uppercase\",lineHeight:1.2,cursor:\"pointer\",whiteSpace:\"nowrap\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`.uvbtn:hover .uvbtn-arrow,.uvbtn:focus-visible .uvbtn-arrow{transform:translate(3px,-3px)}@media (max-width:809px){.uvbtn{width:100% !important}}`}),/*#__PURE__*/_jsx(\"span\",{children:label}),conIcono?/*#__PURE__*/_jsx(WaGlyph,{size:17,fill:iconColor}):/*#__PURE__*/_jsx(Flecha,{})]});}SolicitaInfoButton.defaultProps={label:\"Solicita informaci\\xf3n\",bg:\"rgb(0, 0, 0)\",textColor:\"rgb(255, 255, 255)\",iconColor:\"rgb(37, 211, 102)\",fontSize:14,paddingV:12,paddingH:18,gap:10,radius:5,openEvent:\"uv-open-form\",gtmContainer:\"hero\",gtmCategory:\"solicitud_info_contextual\",gtmAction:\"form_open\",anchoAuto:false,mostrarIcono:true};addPropertyControls(SolicitaInfoButton,{label:{type:ControlType.String,title:\"Texto\"},bg:{type:ControlType.Color,title:\"Fondo\"},textColor:{type:ControlType.Color,title:\"Texto color\"},mostrarIcono:{type:ControlType.Boolean,title:\"Icono WhatsApp\",defaultValue:true,enabledTitle:\"S\\xed\",disabledTitle:\"No\",description:\"Desact\\xedvalo en landings cuyo formulario no ofrezca WhatsApp. Sin icono, el bot\\xf3n lleva la flecha ↗.\"},iconColor:{type:ControlType.Color,title:\"Icono WhatsApp\",hidden:p=>p.mostrarIcono===false},fontSize:{type:ControlType.Number,title:\"Tama\\xf1o texto\",hidden:()=>true},paddingV:{type:ControlType.Number,title:\"Padding vertical\",hidden:()=>true},paddingH:{type:ControlType.Number,title:\"Padding horizontal\",hidden:()=>true},gap:{type:ControlType.Number,title:\"Espacio texto-icono\",hidden:()=>true},radius:{type:ControlType.Number,title:\"Radio\",hidden:()=>true},anchoAuto:{type:ControlType.Boolean,title:\"Ancho al contenido\",defaultValue:false,description:\"Si est\\xe1 activo, el bot\\xf3n no se estira: se ci\\xf1e al texto (en m\\xf3vil siempre va a todo el ancho).\"},openEvent:{type:ControlType.String,title:\"Evento\",description:\"Evento global que dispara al hacer clic\"},gtmContainer:{type:ControlType.Enum,title:\"GTM \\xb7 container\",options:[\"hero\",\"header\",\"sticky\"],optionTitles:[\"hero\",\"header\",\"sticky\"],defaultValue:\"hero\",description:\"Bloque donde est\\xe1 el bot\\xf3n (data-gtm-container).\"},gtmCategory:{type:ControlType.String,title:\"GTM \\xb7 category\",defaultValue:\"solicitud_info_contextual\"},gtmAction:{type:ControlType.String,title:\"GTM \\xb7 action\",defaultValue:\"form_open\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SolicitaInfoButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"240\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"42\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SolicitaInfoButton.map"],"mappings":"kSAGuW,SAAS,EAAQ,CAAC,OAAK,QAAM,CAAC,OAAoB,EAAK,EAAa,CAAC,MAAM,WAAW,MAAM,EAAU,MAAI,CAAC,CAAE,CAAC,SAAS,GAAQ,CAAC,OAAoB,EAAK,OAAO,CAAC,UAAU,cAAc,cAAc,OAAO,MAAM,CAAC,QAAQ,cAAc,WAAW,EAAE,WAAW,sBAAsB,EAAE,SAAsB,EAAK,EAAgB,CAAC,MAAM,gBAAgB,MAAM,eAAe,KAAK,EAAE,CAAC,CAAC,CAAC,CAAE,CAIruB,SAAS,EAAa,EAAU,EAAS,EAAO,EAAK,CAAC,GAAG,CAAC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