/* global React, OnboardingHeader, PrimaryButton */
// Yomee — Extraction Review (Confidence Gate)
// /onboarding/review
//
// Inserted between Upload and Radiografía when the user has uploaded
// exactly 3 files (the full UPLOAD_SEQUENCE). The screen shows a single
// low-confidence (65%) extraction card for the THIRD uploaded file and
// asks the user to confirm 3 hardcoded fields before continuing.
//
// Design notes:
// • Tokens come from colors_and_type.css. The original brief was
// written in Tailwind shorthand (bg-primary, font-heading, etc.) —
// we translate to the existing var(--yo-*) tokens so this screen
// matches the rest of the app rather than introducing a new system.
// • Mascot uses pocopin-3.png (the existing mascot in this repo).
// • CTA uses PrimaryButton variant="primary" — the disabled state is
// the system's standard 22%-ink fill, not a gradient.
//
// Analytics: track() calls are stubbed (window.track || no-op) and fire
// on mount + on the CONTINUAR tap.
const { useState: useStateER, useEffect: useEffectER } = React;
// Hardcoded extraction values — prototype only. Per the brief these are
// matched to the third uploaded file (Nu) regardless of which actual
// file ended up in slot [2] of the UPLOAD_SEQUENCE.
const REVIEW_FILE = {
name: "Nu_Morada_Feb2026.pdf",
bank: "Nu",
};
const REVIEW_FIELDS = [
{ key: "deuda", label: "Deuda total detectada", value: "$22,146" },
{ key: "intereses", label: "Intereses y comisiones detectados", value: "$7,887" },
{ key: "minimo", label: "Pago mínimo detectado", value: "$1,987" },
];
const _track = (...args) => {
if (typeof window !== "undefined" && typeof window.track === "function") {
window.track(...args);
}
};
// ────────────────────────────────────────────────
// SuccessCheckSmall — green circle + white checkmark for the inline
// Pocopin tip card. Smaller than the file-row check in UploadScreen.
// ────────────────────────────────────────────────
function ReviewSuccessCheck() {
return (