@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
133 lines (131 loc) • 5.19 kB
JavaScript
/**
* VERSION: 2.154.0-alpha.1
* BUILD_TIMESTAMP: 1763401626706
* BUILD_DATE: Mon Nov 17 2025 17:47:06 GMT+0000 (Coordinated Universal Time)
* BUILD_COMMIT: 73f4468155aaed0f31ab0d59dc3394018b939b6d
*/
import { j as e, q as c, t as n, G as l, A as p, H as h } from "./es6-OV3Jb0XZ.js";
import d from "react";
import { FormattedMessage as t, FormattedHTMLMessage as o } from "react-intl";
const u = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(c, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
t,
{
id: "step.idCheckLoop.regula.terms",
defaultMessage: 'By clicking "Continue", you agree you have read, understand, and accept the {privacyPolicyLink} and {termsOfService}.',
values: {
privacyPolicyLink: /* @__PURE__ */ e.jsx(
"a",
{
href: "https://regulaforensics.com/privacy/",
target: "_blank",
rel: "noopener noreferrer",
className: "sid-link",
children: /* @__PURE__ */ e.jsx(
t,
{
id: "step.idCheckLoop.privacyPolicy",
defaultMessage: "Privacy Policy"
}
)
}
),
termsOfService: /* @__PURE__ */ e.jsx(
"a",
{
href: "https://regulaforensics.com/terms-of-use/",
target: "_blank",
rel: "noopener noreferrer",
className: "sid-link",
children: /* @__PURE__ */ e.jsx(
t,
{
id: "step.idCheckLoop.termsOfService",
defaultMessage: "Terms of Service"
}
)
}
)
}
}
) }),
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(t, { id: "companyName", defaultMessage: "{Company}", children: (i) => /* @__PURE__ */ e.jsx(
t,
{
id: "step.idCheckLoop.disclaimer",
defaultMessage: "SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.",
values: {
serviceType: "Regula",
companyName: i
}
}
) }) })
] }) }), x = ({ verificationService: s }) => {
const i = s.verificationResponse, [a, r] = d.useState(!1);
return d.useEffect(() => {
i && i?.errorIds?.length > 0 && r(!0);
}, [i]), /* @__PURE__ */ e.jsxs("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: [
/* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center", children: /* @__PURE__ */ e.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ e.jsx(n, { verificationService: s }) }) }),
a ? /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(l, { verificationService: s }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
/* @__PURE__ */ e.jsxs("div", { role: "main", children: [
/* @__PURE__ */ e.jsx(p, { align: "center", children: /* @__PURE__ */ e.jsx(
o,
{
id: "step.idCheckLoop.regula.title",
defaultMessage: "To continue, we need to verify your identity."
}
) }),
/* @__PURE__ */ e.jsx("div", { className: "sid-header__subtitle sid-l-horz-center sid-l-space-btm-md", children: /* @__PURE__ */ e.jsx(
o,
{
id: "step.idCheckLoop.subtitle",
defaultMessage: "To complete the verification process, we ask that you provide us with:"
}
) }),
/* @__PURE__ */ e.jsx("div", { className: "sid-identity-check-steps", children: /* @__PURE__ */ e.jsx(
h,
{
title: /* @__PURE__ */ e.jsx(
o,
{
id: "step.idCheckLoop.regula.info.title",
defaultMessage: "Photo of a government-issued ID"
}
),
subtitle: /* @__PURE__ */ e.jsx(
o,
{
id: "step.idCheckLoop.regula.info.subtitle",
defaultMessage: "Drivers license, state ID, passport, or residence permit."
}
),
icon: /* @__PURE__ */ e.jsx(
"img",
{
className: "sid-identity-check-steps__icon",
alt: "",
src: "https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg"
}
),
isHighlighted: !0
},
""
) }),
/* @__PURE__ */ e.jsx("div", { className: "sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md", children: /* @__PURE__ */ e.jsx(
"button",
{
onClick: () => r(!a),
type: "button",
className: "sid-btn sid-btn--dark",
"aria-label": "submit",
children: /* @__PURE__ */ e.jsx(o, { id: "step.idCheckLoop.continue", defaultMessage: "Continue" })
}
) })
] }),
/* @__PURE__ */ e.jsx(u, { verificationService: s })
] })
] });
};
export {
x as default
};