@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
119 lines (117 loc) • 4.54 kB
JavaScript
/**
* 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 { j as e, p as n, D as l, A as p, G as m } from "./es6-B9qAIX4x.js";
import c from "react";
import { FormattedMessage as i, FormattedHTMLMessage as r } from "react-intl";
const h = ({ verificationService: t }) => /* @__PURE__ */ e.jsx(n, { verificationService: t, children: /* @__PURE__ */ e.jsxs("div", { children: [
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
i,
{
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(
i,
{
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(
i,
{
id: "step.idCheckLoop.termsOfService",
defaultMessage: "Terms of Service"
}
)
}
)
}
}
) }),
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(i, { id: "companyName", defaultMessage: "{Company}", children: (s) => /* @__PURE__ */ e.jsx(
i,
{
id: "step.idCheckLoop.disclaimer",
defaultMessage: "SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.",
values: {
serviceType: "Regula",
companyName: s
}
}
) }) })
] }) }), x = ({ verificationService: t }) => {
const s = t.verificationResponse, [o, a] = c.useState(!1);
return c.useEffect(() => {
var d;
s && ((d = s == null ? void 0 : s.errorIds) == null ? void 0 : d.length) > 0 && a(!0);
}, [s]), /* @__PURE__ */ e.jsx("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: o ? /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(l, { verificationService: t }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
/* @__PURE__ */ e.jsxs("div", { role: "main", children: [
/* @__PURE__ */ e.jsx(p, { align: "center", children: /* @__PURE__ */ e.jsx(
r,
{
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(
r,
{
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(
m,
{
title: "Photo of a government-issued ID",
subtitle: "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: () => a(!o),
type: "button",
className: "sid-btn sid-btn--dark",
"aria-label": "submit",
children: /* @__PURE__ */ e.jsx(r, { id: "step.idCheckLoop.continue", defaultMessage: "Continue" })
}
) })
] }),
/* @__PURE__ */ e.jsx(h, { verificationService: t })
] }) });
};
export {
x as default
};