UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

80 lines (78 loc) 2.4 kB
/** * 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.154.0-alpha.1 * BUILD_TIMESTAMP: 1763401584959 * BUILD_DATE: Mon Nov 17 2025 17:46:24 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 "../_mysheerid-preview.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 };