UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

40 lines (38 loc) 1.13 kB
/** * VERSION: 2.230.0-alpha.0 * BUILD_TIMESTAMP: 1778694684677 * BUILD_DATE: Wed May 13 2026 17:51:24 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9 */ import { d as i, j as s, a as d, E as c, r as l, l as m } from "../sheerid.js"; const p = (t) => { try { const e = t.target instanceof HTMLInputElement ? t.target : void 0; if (e && (e.id || e.name)) { const a = { eventName: c.FORM_PASTE, params: { id: e.id || e.name, queryLength: t.clipboardData.getData("text").length } }; l(a); } } catch (e) { m.error(e); } }, h = ({ step: t, verificationService: e, className: a, children: r }) => { const n = i(t).replace(/^collect-/, ""), o = [`sid-${n}-container`, "sid-l-container", "sid-left-align"]; return a && o.push(a), /* @__PURE__ */ s.jsxs("div", { id: `sid-step-${n}`, className: o.join(" "), onPaste: p, children: [ /* @__PURE__ */ s.jsx("div", { role: "main", children: r }), /* @__PURE__ */ s.jsx(d, { verificationService: e }) ] }); }; export { h as P };