import{j as e}from"./ui-vendor-Dps19aRv.js";import{W as a}from"./WhatsAppFormDialog-MU_OfETm.js";import{c as s}from"./icons-CBa6FzIr.js";import{u as t}from"./react-vendor-DQeVoJII.js";import"./dialog-tW7kX9-i.js";import"./index-QzKGhXcV.js";import"./supabase-vendor-Csw5BXqd.js";import"./input-Br6ZKJn8.js";import"./label-D5GKuKWZ.js";import"./validators-B6ObMgjW.js";import"./useMutation-Bfd1vN05.js";import"./registrarLead-P5V7pFVA.js";import"./http-CTepsKBQ.js";const o=()=>{const o=t();if(o.pathname.startsWith("/admin"))return null;const i=`Lead Floating WhatsApp - ${"/"===o.pathname?"home":o.pathname.slice(1).replace(/\//g,"-")}`;return e.jsx("div",{className:"fixed right-6 z-50",style:{bottom:"calc(1.5rem + env(safe-area-inset-bottom, 0px))"},children:e.jsx(a,{whatsappUrl:"https://wa.me/558001118686",formName:i,formId:"floating_whatsapp_form",servico:"institucional",message:"Antes de iniciar a conversa, deixe seus dados pra gente continuar mesmo se cair sua chamada. Em seguida abrimos o WhatsApp pra você.",whatsappMessage:`Olá! Vim pelo botão flutuante do site Sempre Comigo (${o.pathname}) e gostaria de conhecer as soluções.`,children:e.jsxs("button",{type:"button","aria-label":"Falar com a Sempre Comigo no WhatsApp",className:"group flex items-center gap-3 bg-[#25D366] hover:bg-[#1ebe5d] text-white shadow-lg hover:shadow-xl transition-all duration-300 rounded-full px-4 py-3 md:px-5 md:py-4",children:[e.jsx(s,{className:"w-6 h-6 md:w-7 md:h-7",strokeWidth:2.2}),e.jsx("span",{className:"hidden md:inline-block font-medium text-sm whitespace-nowrap",children:"Fale conosco"}),e.jsxs("span",{className:"absolute -top-1 -right-1 flex h-3 w-3",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]})]})})})};export{o as FloatingWhatsAppButton,o as default};