@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
76 lines (74 loc) • 2.19 kB
JavaScript
/**
* VERSION: 2.154.0-alpha.1
* BUILD_TIMESTAMP: 1763401515326
* BUILD_DATE: Mon Nov 17 2025 17:45:15 GMT+0000 (Coordinated Universal Time)
* BUILD_COMMIT: 73f4468155aaed0f31ab0d59dc3394018b939b6d
*/
import { h as m, j as t, P as u, E as x, f, k as I, c as o, m as j, V as h, n as E, o as M } from "../sheerid.js";
const C = ({ verificationService: e }) => {
const n = e.viewModel, { fieldValidationErrors: a } = e, l = e.verificationResponse, d = m(l), i = (s, r) => {
const c = M(
n,
(p) => {
p[s] = r;
}
);
e.updateViewModel(c);
};
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(
x,
{
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), I("email", s, e);
},
onKeyDown: (s) => f(s)
}
),
/* @__PURE__ */ t.jsx(
j,
{
step: h.collectIdentifier,
verificationService: e,
viewModel: n,
failedInstantMatch: d,
buttonText: /* @__PURE__ */ t.jsx(
o,
{
id: "step.personalInfo.submitButtonText",
defaultMessage: "Verify and continue"
}
)
}
)
] }),
/* @__PURE__ */ t.jsx(E, { verificationService: e })
]
}
);
}, V = C;
export {
V as default
};