UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

77 lines (75 loc) 2.25 kB
/** * VERSION: 2.130.0-alpha.4 * BUILD_TIMESTAMP: 1759000374473 * BUILD_DATE: Sat Sep 27 2025 19:12:54 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: be6ef87ab40e8747994d32363389cf39e36a4326 */ import { k as m, j as e, m as u, E as x, n as f, o as I, p as j, V as E, q as M, r as h } from "./es6-N0LU_o1K.js"; import { FormattedHTMLMessage as o } from "react-intl"; const C = ({ verificationService: t }) => { const s = t.viewModel, { fieldValidationErrors: a } = t, l = t.verificationResponse, d = m(l), i = (n, r) => { const p = h( s, (c) => { c[n] = 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( x, { value: s.email, isErrored: !!a.email, explanation: /* @__PURE__ */ e.jsx( o, { id: "step.collectIdentifier.inputExplanation", defaultMessage: "Needed to send authentication code" } ), onChange: (n) => { i("email", n), I("email", n, t); }, onKeyDown: (n) => f(n) } ), /* @__PURE__ */ e.jsx( j, { step: E.collectIdentifier, verificationService: t, viewModel: s, failedInstantMatch: d, buttonText: /* @__PURE__ */ e.jsx( o, { id: "step.personalInfo.submitButtonText", defaultMessage: "Verify and continue" } ) } ) ] }), /* @__PURE__ */ e.jsx(M, { verificationService: t }) ] } ); }, w = C; export { w as default };