{"version":3,"file":"WAButton.BD0aIZCE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/RmNuByTH03TVSdZ0gbJG/TNfoxNvz03CN6XAamfqx/WAButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * WAButton — botón CTA con mensaje pre-filled de WhatsApp configurable.\n * El campo \"Mensaje WA\" aparece en el sidebar de Framer por instancia.\n */export default function WAButton({label=\"Quiero mi an\\xe1lisis gratis\",waMessage=\"Hola Joaqu\\xedn! Quiero llegar al top 3 de Google. Te paso mis datos para el an\\xe1lisis.\\nNombre: \\nNegocio: \",variant=\"primary\"}){const handleClick=()=>{if(typeof fbq!==\"undefined\"){fbq(\"track\",\"Lead\");}window.location.href=`https://wa.me/595976103411?text=${encodeURIComponent(waMessage)}`;};const bg=variant===\"primary\"?\"rgb(10, 30, 63)\":variant===\"secondary\"?\"rgb(255, 255, 255)\":\"rgba(255, 255, 255, 0.07)\";const textColor=variant===\"secondary\"?\"rgb(10, 30, 63)\":\"rgb(255, 255, 255)\";const iconBg=variant===\"secondary\"?\"rgb(10, 30, 63)\":\"rgb(255, 255, 255)\";const iconColor=variant===\"secondary\"?\"rgb(255, 255, 255)\":\"rgb(10, 30, 63)\";return /*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,style:{display:\"inline-flex\",alignItems:\"center\",gap:\"10px\",backgroundColor:bg,borderRadius:\"1000px\",padding:\"3px 3px 3px 14px\",cursor:\"pointer\",userSelect:\"none\",width:\"fit-content\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:\"Inter, sans-serif\",fontSize:\"16px\",lineHeight:\"1.5em\",letterSpacing:\"-0.05em\",color:textColor,whiteSpace:\"nowrap\"},children:label}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"33px\",height:\"32px\",borderRadius:\"1000px\",backgroundColor:iconBg,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",height:\"17\",viewBox:\"0 -960 960 960\",width:\"17\",fill:iconColor,children:/*#__PURE__*/_jsx(\"path\",{d:\"m600-200-57-56 184-184H80v-80h647L544-704l56-56 280 280-280 280Z\"})})})]});}addPropertyControls(WAButton,{label:{type:ControlType.String,title:\"Texto\",defaultValue:\"Quiero mi an\\xe1lisis gratis\"},waMessage:{type:ControlType.String,title:\"Mensaje WA\",defaultValue:\"Hola Joaqu\\xedn! Quiero llegar al top 3 de Google. Te paso mis datos para el an\\xe1lisis.\\nNombre: \\nNegocio: \",displayTextArea:true},variant:{type:ControlType.Enum,title:\"Variante\",options:[\"primary\",\"secondary\",\"tertiary\"],optionTitles:[\"Primary\",\"Secondary\",\"Tertiary\"],defaultValue:\"primary\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WAButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WAButton.map"],"mappings":"iLAGG,SAAwB,EAAS,CAAC,QAAM,4BAA+B,YAAU;;WAAiH,UAAQ,WAAW,CAA8f,OAAoB,EAAM,MAAM,CAAC,YAAxgB,CAAI,OAAO,IAAM,KAAa,IAAI,QAAQ,OAAO,CAAE,EAAO,SAAS,KAAK,mCAAmC,mBAAmB,EAAU,IAAoZ,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,IAAI,OAAO,gBAAlc,IAAU,UAAU,kBAAkB,IAAU,YAAY,qBAAqB,4BAAoY,aAAa,SAAS,QAAQ,mBAAmB,OAAO,UAAU,WAAW,OAAO,MAAM,cAAc,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,oBAAoB,SAAS,OAAO,WAAW,QAAQ,cAAc,UAAU,MAAtkB,IAAU,YAAY,kBAAkB,qBAA8iB,WAAW,SAAS,CAAC,SAAS,EA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