UNPKG

@seontechnologies/seon-id-verification

Version:

An advanced SDK featuring web components for natural person identification through document scanning, facial recognition, hand gesture, and face turning detection, designed for secure and efficient user verification.

41 lines (40 loc) 2.11 kB
import { a as r, l as e, j as s, S as a } from "./index-oGnhSncZ.mjs"; import { C as u } from "./CardContentWrapper-CkWrRMQr.mjs"; import { T as k } from "./TextWIcon-wzcHnhrW.mjs"; const f = ({ onNext: _, onBack: c }) => { var i, n; const t = { title: "", description: "", list: [], nextButtonText: "", backButtonText: "" }; switch ((n = (i = r.config) == null ? void 0 : i.livenessCheckSettings) == null ? void 0 : n.verificationMethod) { case "BASIC": t.title = e.liveness_check_selfie_title, t.description = e.liveness_check_selfie_description, t.list = [ e.liveness_check_selfie_list_1, e.liveness_check_selfie_list_2, e.liveness_check_selfie_list_3 ], t.nextButtonText = e.liveness_check_selfie_button, t.backButtonText = e.back_to_previous_step_button; break; case "GESTURE_MATCH": t.title = e.liveness_check_gesture_title, t.description = e.liveness_check_gesture_description, t.list = [ e.liveness_check_gesture_list_1, e.liveness_check_gesture_list_2, e.liveness_check_gesture_list_3 ], t.nextButtonText = e.liveness_check_gesture_button, t.backButtonText = e.back_to_previous_step_button; break; case "DIRECTION_MATCH": t.title = e.liveness_check_face_turning_title, t.description = e.liveness_check_face_turning_description, t.list = [ e.liveness_check_face_turning_list_1, e.liveness_check_face_turning_list_2, e.liveness_check_face_turning_list_3 ], t.nextButtonText = e.liveness_check_face_turning_button, t.backButtonText = e.back_to_previous_step_button; break; } return s.jsx(a, { stepOf: "liveness-verification", className: "tw-w-full", children: s.jsx(u, { idPrefix: "liveness-verification-tutorial", description: t.description, backButtonText: t.backButtonText, nextButtonText: t.nextButtonText, onBack: c, onNext: _, title: t.title, className: "tw-gap-12", children: s.jsx("div", { className: "tw-flex tw-flex-col tw-gap-3", children: t.list.map((l, o) => s.jsx(k, { text: l }, o)) }) }) }); }; export { f as default };