
/**
 *   VERSION: 2.240.0-alpha.1
 *   BUILD_TIMESTAMP: 1780360168537
 *   BUILD_DATE: Tue Jun 02 2026 00:29:28 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 758cedd37e00f49a728d704d9ed36884f0f12d79
 */
import { d as l, j as s, b as p, c as m, E as g, e as h, l as u } from "../sheerid.js";
const v = (t) => {
  try {
    const e = t.target instanceof HTMLInputElement ? t.target : void 0;
    if (e && (e.id || e.name)) {
      const a = {
        eventName: g.FORM_PASTE,
        params: {
          id: e.id || e.name,
          queryLength: t.clipboardData.getData("text").length
        }
      };
      h(a);
    }
  } catch (e) {
    u.error(e);
  }
}, x = ({
  step: t,
  verificationService: e,
  className: a,
  children: r
}) => {
  const o = l(t).replace(/^collect-/, ""), n = [`sid-${o}-container`, "sid-l-container", "sid-left-align"];
  a && n.push(a);
  const c = () => {
    const { programTheme: i, verificationResponse: d } = e;
    m(i, d.verificationId);
  };
  return /* @__PURE__ */ s.jsxs(
    "div",
    {
      id: `sid-step-${o}`,
      className: n.join(" "),
      onPaste: v,
      onFocusCapture: c,
      children: [
        /* @__PURE__ */ s.jsx("div", { role: "main", children: r }),
        /* @__PURE__ */ s.jsx(p, { verificationService: e })
      ]
    }
  );
};
export {
  x as P
};
