
/**
 *   WARNING: This file is intended to be used within MySheerID.
 *   This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
 */ 
/**
 *   VERSION: 2.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780013005605
 *   BUILD_DATE: Fri May 29 2026 00:03:25 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
import { h as m, j as t, P as u, e as x, u as f, F as o, V as I, f as j, k as h } from "../_mysheerid-preview.js";
import { E, P as M } from "./PersonalInfoStepSubmitButton-Z9sp6sjQ.js";
const C = ({ verificationService: e }) => {
  const n = e.viewModel, { fieldValidationErrors: a } = e, l = e.verificationResponse, d = m(l), i = (s, r) => {
    const p = h(
      n,
      (c) => {
        c[s] = r;
      }
    );
    e.updateViewModel(p);
  };
  return /* @__PURE__ */ t.jsxs(
    "div",
    {
      id: "sid-step-collect-transaction-id",
      className: "sid-step-collect-transaction-id-container sid-l-container",
      children: [
        /* @__PURE__ */ t.jsxs("div", { role: "main", children: [
          /* @__PURE__ */ t.jsx(
            u,
            {
              verificationService: e,
              classNameIdentifier: "step-collect-transaction-id"
            }
          ),
          /* @__PURE__ */ t.jsx(
            E,
            {
              value: n.email,
              isErrored: !!a.email,
              explanation: /* @__PURE__ */ t.jsx(
                o,
                {
                  id: "step.collectIdentifier.inputExplanation",
                  defaultMessage: "Needed to send authentication code"
                }
              ),
              onChange: (s) => {
                i("email", s), f("email", s, e);
              },
              onKeyDown: (s) => x(s)
            }
          ),
          /* @__PURE__ */ t.jsx(
            M,
            {
              step: I.collectIdentifier,
              verificationService: e,
              viewModel: n,
              failedInstantMatch: d,
              buttonText: /* @__PURE__ */ t.jsx(
                o,
                {
                  id: "step.personalInfo.submitButtonText",
                  defaultMessage: "Verify and continue"
                }
              )
            }
          )
        ] }),
        /* @__PURE__ */ t.jsx(j, { verificationService: e })
      ]
    }
  );
}, w = C;
export {
  w as default
};
