
/**
 *   VERSION: 2.240.0-alpha.1
 *   BUILD_TIMESTAMP: 1780360168537
 *   BUILD_DATE: Tue Jun 02 2026 00:29:28 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 758cedd37e00f49a728d704d9ed36884f0f12d79
 */
import { k as m, j as e, P as u, m as x, u as f, F as o, V as I, b as j, n as E } from "../sheerid.js";
import { E as M, P as h } from "./PersonalInfoStepSubmitButton-q2ua_b8H.js";
const C = ({ verificationService: t }) => {
  const n = t.viewModel, { fieldValidationErrors: a } = t, l = t.verificationResponse, d = m(l), i = (s, r) => {
    const p = E(
      n,
      (c) => {
        c[s] = r;
      }
    );
    t.updateViewModel(p);
  };
  return /* @__PURE__ */ e.jsxs(
    "div",
    {
      id: "sid-step-collect-transaction-id",
      className: "sid-step-collect-transaction-id-container sid-l-container",
      children: [
        /* @__PURE__ */ e.jsxs("div", { role: "main", children: [
          /* @__PURE__ */ e.jsx(
            u,
            {
              verificationService: t,
              classNameIdentifier: "step-collect-transaction-id"
            }
          ),
          /* @__PURE__ */ e.jsx(
            M,
            {
              value: n.email,
              isErrored: !!a.email,
              explanation: /* @__PURE__ */ e.jsx(
                o,
                {
                  id: "step.collectIdentifier.inputExplanation",
                  defaultMessage: "Needed to send authentication code"
                }
              ),
              onChange: (s) => {
                i("email", s), f("email", s, t);
              },
              onKeyDown: (s) => x(s)
            }
          ),
          /* @__PURE__ */ e.jsx(
            h,
            {
              step: I.collectIdentifier,
              verificationService: t,
              viewModel: n,
              failedInstantMatch: d,
              buttonText: /* @__PURE__ */ e.jsx(
                o,
                {
                  id: "step.personalInfo.submitButtonText",
                  defaultMessage: "Verify and continue"
                }
              )
            }
          )
        ] }),
        /* @__PURE__ */ e.jsx(j, { verificationService: t })
      ]
    }
  );
}, w = C;
export {
  w as default
};
