/* global React, BottomSheetModal */ // Yomee — Auth Sheets // Fake Google / Apple consent sheets used by SignUp/SignIn. const { useState: useStateAH, useEffect: useEffectAH } = React; const FAKE_USER = { google: { name: "María García", email: "maria.garcia@gmail.com", initial: "M", avatarBg: "linear-gradient(135deg, #5B8DEF, #B96DEF)", }, apple: { name: "María García", email: "mgarcia@icloud.com", initial: "M", avatarBg: "linear-gradient(135deg, #444, #1c1c1c)", }, }; function GoogleG({ size = 22 }) { return ( ); } function AppleLogo({ size = 22, color = "#fff" }) { return ( ); } function AccountRow({ user, onTap, brand = "google" }) { const [hover, setHover] = useStateAH(false); return ( ); } function GoogleAuthSheet({ open, onClose, onSuccess }) { const [phase, setPhase] = useStateAH("choose"); const user = FAKE_USER.google; useEffectAH(() => { if (!open) { const t = setTimeout(() => setPhase("choose"), 400); return () => clearTimeout(t); } }, [open]); function pickAccount() { setPhase("connecting"); setTimeout(() => onSuccess(user), 1300); } return (
{phase === "choose" && ( <>

Iniciar sesión

para continuar a yomee.ai

Al continuar, Google compartirá tu nombre,
dirección de correo electrónico e idioma con yomee.ai

)} {phase === "connecting" && }
); } function AppleAuthSheet({ open, onClose, onSuccess }) { const [phase, setPhase] = useStateAH("choose"); const user = FAKE_USER.apple; useEffectAH(() => { if (!open) { const t = setTimeout(() => setPhase("choose"), 400); return () => clearTimeout(t); } }, [open]); function pickAccount() { setPhase("authing"); setTimeout(() => { setPhase("connecting"); setTimeout(() => onSuccess(user), 900); }, 1100); } return (
{phase === "choose" && ( <>

Usar tu Apple ID

Inicia sesión en yomee.ai con tu Apple ID

Apple no compartirá tu actividad en yomee.ai
con otras apps ni servicios.

)} {phase === "authing" && } {phase === "connecting" && }
); } function FaceIDPanel() { return (

Mira para autenticarte

Face ID

); } function Connecting({ providerName, user }) { return (

Conectando con {providerName}…

{user.email}

); } window.GoogleAuthSheet = GoogleAuthSheet; window.AppleAuthSheet = AppleAuthSheet; window.AccountRow = AccountRow; window.FaceIDPanel = FaceIDPanel; window.Connecting = Connecting; window.GoogleG = GoogleG; window.AppleLogo = AppleLogo; window.FAKE_USER = FAKE_USER;