import{j as e}from"./ui-vendor-4PEuZeLa.js";import{W as a}from"./WhatsAppFormDialog-CD7SMr6Z.js";import{u as s}from"./react-vendor-SJkaNtXX.js";import{c as o}from"./icons-DwRt140y.js";import"./dialog-3z_uVkkX.js";import"./index-D849YDwH.js";import"./supabase-vendor-CdxEYpYJ.js";import"./input-D0jgsy4m.js";import"./label-DF-VtJLN.js";import"./validators-B6ObMgjW.js";import"./useMutation-D7lRUxMF.js";const t=()=>{const t=s();if(t.pathname.startsWith("/admin"))return null;const i=`Lead Floating WhatsApp - ${"/"===t.pathname?"home":t.pathname.slice(1).replace(/\//g,"-")}`;return e.jsx("div",{className:"fixed bottom-6 right-6 z-50",children:e.jsx(a,{whatsappUrl:"https://wa.me/558001118686",formName:i,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 (${t.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(o,{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{t as FloatingWhatsAppButton,t as default};