@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
81 lines (79 loc) • 2.46 kB
JavaScript
/**
* 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.230.0-alpha.0
* BUILD_TIMESTAMP: 1778694697559
* BUILD_DATE: Wed May 13 2026 17:51:37 GMT+0000 (Coordinated Universal Time)
* BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
*/
import { m, j as e, P as u, n as x, o as f, F as o, V as I, a as j, p as E } from "../_mysheerid-preview.js";
import { E as M, P as h } from "./PersonalInfoStepSubmitButton-v_kWLmEw.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
};