UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

77 lines (75 loc) 2.25 kB
/** * VERSION: 2.113.0-alpha.0 * BUILD_TIMESTAMP: 1750184680813 * BUILD_DATE: Tue Jun 17 2025 18:24:40 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88 */ import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-B9qAIX4x.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 };