UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

76 lines (74 loc) 2.19 kB
/** * VERSION: 2.130.0-alpha.4 * BUILD_TIMESTAMP: 1759000305348 * BUILD_DATE: Sat Sep 27 2025 19:11:45 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: be6ef87ab40e8747994d32363389cf39e36a4326 */ import { h as m, j as t, P as u, E as x, e as f, f as I, b as a, k as j, V as h, m as E, n as M } from "../sheerid.js"; const C = ({ verificationService: e }) => { const n = e.viewModel, { fieldValidationErrors: o } = e, l = e.verificationResponse, d = m(l), i = (s, r) => { const p = M( 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( x, { value: n.email, isErrored: !!o.email, explanation: /* @__PURE__ */ t.jsx( a, { 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( a, { id: "step.personalInfo.submitButtonText", defaultMessage: "Verify and continue" } ) } ) ] }), /* @__PURE__ */ t.jsx(E, { verificationService: e }) ] } ); }, V = C; export { V as default };