1import{j as e,a$ as b,r as d,b3 as x}from"./vendor-BxD0qQMk.js";import{S as N}from"./SEO-BKqxB0L3.js";import{D as v,a as k,c as A,d as S}from"./dialog-Bwc31pF6.js";import{S as _,z as I,y as C}from"./index-7Ro889YK.js";import{M as L}from"./MeetHero-BjVHZOKi.js";import"./vendor-radix-DzFOfswg.js";import"./button-ffeUHgPw.js";import"./input-eWHy7t8m.js";const O=({open:a,onOpenChange:r,prefilledUsername:o})=>e.jsx(v,{open:a,onOpenChange:r,children:e.jsxs(k,{className:"max-w-[400px] p-8 rounded-2xl border border-gray-200",style:{background:"#ffffff"},children:[e.jsx(A,{className:"sr-only",children:"Log in or sign up"}),e.jsx(S,{className:"sr-only",children:"Sign in with Google, Microsoft, LinkedIn, or email to start your meeting."}),e.jsxs("div",{className:"w-full flex flex-col items-center",children:[e.jsx("img",{src:"/Waterr-ai-main-logo.png",className:"h-10 object-contain mb-6",alt:"Waterr AI"}),e.jsx("h2",{className:"text-[20px] font-normal tracking-[-0.01em] mb-1.5 text-center",style:{fontFamily:"'DM Sans', sans-serif",color:"#1a1a1a"},children:"Log In or Sign Up"}),e.jsx("p",{className:"text-[13px] mb-6 text-center",style:{fontFamily:"'DM Sans', sans-serif",color:"#999"},children:"To access the best way to work with AI"}),e.jsx(_,{prefilledUsername:o})]})]})}),h="https://accounts.google.com/gsi/client",F="985834162217-f6gs8bn9j37sd2nc7o674j4qr4iepc5c.apps.googleusercontent.com",q=()=>{const a=b(),{user:r,loading:o,login:f}=I(),[D,m]=d.useState(!1),[w,p]=d.useState(!1),g=d.useRef(null);d.useEffect(()=>{o||r&&a("/create",{replace:!0})},[r,o,a]);const l=()=>{if(r){a("/auth");return}p(!0)},j=async c=>{var u,n;if(c){m(!0);try{const t=await fetch(`${C.backendUrl}/auth/google/one-tap`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({credential:c})});if(!t.ok){const y=await t.text().catch(()=>"");console.error("One Tap sign-in failed",t.status,y),x.error("Google sign-in failed. Please try again.");return}const s=await t.json();f(s.user,s.token);const i=((u=s.user)==null?void 0:u.is_onboarded)===!1||((n=s.user)==null?void 0:n.user_name)==null;a(i?"/onboarding":"/create")}catch(t){console.error("One Tap network error",t),x.error("Couldn't reach the sign-in service. Please try again.")}finally{m(!1)}}};return d.useEffect(()=>{if(o||r)return;const c=()=>{var t,s;if((s=(t=window.google)==null?void 0:t.accounts)!=null&&s.id){if(window.google.accounts.id.initialize({client_id:F,callback:i=>{j(i.credential)},auto_select:!0,cancel_on_tap_outside:!1,use_fedcm_for_prompt:!0,context:"signup",itp_support:!0}),g.current){g.current.innerHTML="";const i=typeof window<"u"&&window.innerWidth<640;window.google.accounts.id.renderButton(g.current,{type:"standard",theme:"outline",size:i?"medium":"large",text:i?"signin_with":"continue_with",shape:"pill",logo_alignment:"left"})}window.google.accounts.id.prompt()}};if(document.querySelector(`script[src="${h}"]`)){c();return}const n=document.createElement("script");n.src=h,n.async=!0,n.defer=!0,n.onload=c,document.head.appendChild(n)},[r,o]),e.jsxs(e.Fragment,{children:[e.jsx(N,{noindex:!0,title:"Waterr â Send an agent to take meetings and video calls",description:"Agents see, hear & speak with humans, built for lively connect & extraordinary coordination with AI."}),e.jsxs("div",{className:"min-h-screen w-full bg-[#FAFAFA] dark:bg-background flex flex-col",style:{backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0)",backgroundSize:"40px 40px",fontFamily:"'Inter', sans-serif"},children:[e.jsx("div",{className:"w-full bg-[#FAFAFA]/80 backdrop-blur-md sticky top-0 z-50 transition-colors duration-200",children:e.jsxs("header",{className:"w-full py-1.5 md:py-2 px-4 md:px-6 lg:px-10 flex items-center justify-between",children:[e.jsx("a",{href:"/",className:"inline-flex items-center","aria-label":"Go to homepage",children:e.jsx("img",{src:"/header-logo.png",alt:"Waterr AI Logo",className:"h-8 sm:h-10 md:h-12 w-auto",style:{filter:"brightness(0.8)"}})}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx("div",{ref:g,"aria-label":"Continue with Google"})})]})}),e.jsx(L,{heading:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"lg:whitespace-nowrap",children:"Send an agent to take"}),e.jsx("br",{}),"meetings and video calls"]}),showInstantCall:!1,onCreateLink:l,onInstantCall:l,onSchedule:l,onJoinCode:()=>l(),onInvalidJoin:l,showLearnMore:!0}),e.jsx("div",{className:"w-full px-4 py-1.5 flex justify-center",children:e.jsxs("p",{className:"text-[11px] text-gray-500",children:["Use it via Claude Code, Codex, or the Developer APIs."," ",e.jsx("a",{href:"https://docs.waterr.ai/api-reference/quickstart",target:"_blank",rel:"noopener noreferrer",className:"text-[#1A73E8] hover:underline",children:"Learn more"})]})}),e.jsx("footer",{className:"py-1.5",children:e.jsx("div",{className:"max-w-5xl mx-auto px-6 md:px-12",children:e.jsxs("div",{className:"flex flex-row justify-between items-center gap-2 text-[10px] text-gray-500",children:[e.jsxs("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[e.jsx("a",{href:"/terms",className:"hover:text-gray-900 transition-colors",children:"Terms"}),e.jsx("a",{href:"/policy",className:"hover:text-gray-900 transition-colors",children:"Privacy"}),e.jsx("a",{href:"/blog",className:"hover:text-gray-900 transition-colors",children:"Blog"})]}),e.jsx("div",{className:"whitespace-nowrap",children:"© 2026 WaterrAI Lab Pvt. Ltd."})]})})})]}),e.jsx(O,{open:w,onOpenChange:p})]})};export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.