bry-biometric-collector
Version:
BRy web-collector component for biometric capture.
287 lines (286 loc) • 11.7 kB
JavaScript
const e = {
title: "Error",
text: "A forbidden finger was detected! Please check that it is this person's turn to capture their finger.",
retry: "Capture again",
cancel: "Cancel"
}, t = {
title: "Error",
text: "Finger collected with insuficient quality!",
retry: "Capture again",
cancel: "Cancel",
deny: "Try another finger"
}, a = {
title: "Error",
text: "Duplicate finger detected! This finger has already been collected in this session, please collect the indicated finger.",
retry: "Capture again",
cancel: "Cancel",
deny: "Try another finger"
}, n = {
title: "Error",
text: "The extension module hasn't been installed!",
ok: "Ok"
}, i = {
title: "Error",
text: "Attention AGR, the collected finger does not belong to you or is in the wrong position. Please collect your finger in the indicated position.",
retry: "Capture again",
cancel: "Cancel"
}, o = {
title: "Error",
text: "Attention AGR, the collected finger belongs to you! Please do customer pickup at this time!",
retry: "Capture again",
cancel: "Cancel"
}, r = {
title: "Error",
text: "Duplicate finger detected! The <b>{finger1}</b> and the <b>{finger2}</b> are the same!",
retry: "Capture again",
cancel: "Cancel",
LEFT_HAND_PINKY: "Left Pinky Finger",
LEFT_HAND_RING: "Left Ring Finger",
LEFT_HAND_MIDDLE: "Left Middle Finger",
LEFT_HAND_INDEX: "Left Index Finger",
LEFT_HAND_THUMB: "Left Thumb",
RIGHT_HAND_THUMB: "Right Thumb",
RIGHT_HAND_INDEX: "Right Index Finger",
RIGHT_HAND_MIDDLE: "Right Middle Finger",
RIGHT_HAND_RING: "Right Ring Finger",
RIGHT_HAND_PINKY: "Right Pinky Finger",
LEFT_HAND: "Left Hand",
RIGHT_HAND: "Right Hand"
}, s = {
title: "Error",
text: "Duplicate finger detected! The <b>{finger1}</b> and the <b>{finger2}</b> are the same!",
retry: "Capture again",
cancel: "Cancel",
LEFT_HAND_PINKY: "Left Pinky Finger",
LEFT_HAND_RING: "Left Ring Finger",
LEFT_HAND_MIDDLE: "Left Middle Finger",
LEFT_HAND_INDEX: "Left Index Finger",
LEFT_HAND_THUMB: "Left Thumb",
RIGHT_HAND_THUMB: "Right Thumb",
RIGHT_HAND_INDEX: "Right Index Finger",
RIGHT_HAND_MIDDLE: "Right Middle Finger",
RIGHT_HAND_RING: "Right Ring Finger",
RIGHT_HAND_PINKY: "Right Pinky Finger",
LEFT_HAND: "Left Hand",
RIGHT_HAND: "Right Hand"
}, l = {
title: "Attention",
text: "There are no more available suggested fingers to capture.",
ok: "Ok"
}, c = {
title: "Attention",
text: "User failed to remove their finger from the scanner. The scanner may be dirty and should be cleaned now.",
ok: "Ok"
}, d = {
title: "The scanner isn't connected",
text: "Please check that the scanner is properly connected and that the driver is installed."
}, u = {
clickOnSomething: "To begin, select a finger or click on Automatic capture.",
unscannedFinger: "Click on collect to capture this finger",
loadingGif: "Validating fingerprint...",
promptGif: "Scan the finger",
liftFinger: "Remove the finger from the collector",
cancelling: "Cancelling...",
fingerImage: "Fingerprint quality rating:"
}, g = {
available: "Available",
missing: "Missing",
unavailable: "Unavailable",
randomize: "Randomize",
automatic: {
text: "Automatic Capture",
tooltip: "Capture each suggested finger in order."
},
clear: "Clear",
cancel: "Cancel",
capture: "Capture",
theme: "Theme",
finish: "Finish",
startCapture: "I'm ready"
}, p = {
extensionNotFound: "The extension couldn't be identified. Please install it from here",
extension: "extension"
}, h = {
permissionNotGranted: "Permission to access the camera was denied, please enable and refresh."
}, m = {
illumination: "Heterogeneous illumination",
openEyes: "Eyes closed",
redEyes: "Red eyes",
lookingAtCamera: "Not looking at camera",
eyeObstruction: "Eyes obstructed",
pixelated: "Pixelated image",
reflection: "Reflection",
openMouth: "Open mouth",
nonNeutralExpression: "Non-neutral expression",
faceNotDetected: "Face not detected",
nonFrontalPosition: "Non frontal position",
tooClose: "Too close",
tooFar: "Too far",
shadesOfGray: "Image with shades of gray",
skinSaturation: "Skin saturation",
nonUniformBackground: "Non uniform background",
outOfFrame: "Out of frame",
lackOfSharpness: "Lack of sharpness",
unnaturalColoring: "Unnatural coloring",
initiatingCamera: "Initiating video...",
obtainingPicture: "Obtaining photo...",
faceTooSmall: "The face is too far from the camera, please get closer."
}, f = {
error: {
error: "Error",
faceTooClose: "The face is too close to the camera, please move away.",
faceTooCloseToBorder: "The face is not centered, please center it.",
faceCropped: "The face is cropped in the capture, please center it.",
faceOccluded: "The face is occluded, please remove the obstruction.",
faceNotFound: "Insufficient quality or face not found, please retake the photo.",
multipleFaces: "More than one face detected, please show only one face in the capture.",
faceTooSmall: "The face is too far from the camera, please get closer.",
faceAngleTooLarge: "The face is too tilted, please straighten it.",
eyesClosed: "The eyes are closed, please open them.",
invalidConfig: "Failed to perform liveness validation, please try again. ERR01",
invalidMeta: "Failed to perform liveness validation, please try again. ERR02",
failedToReadImg: "Failed to perform liveness validation, please try again. ERR03",
failedToWriteImg: "Failed to perform liveness validation, please try again. ERR04",
licenseError: "Failed to perform liveness validation, please try again. ERR05",
failToReadModel: "Failed to perform liveness validation, please try again. ERR06",
failedToAllocate: "Failed to perform liveness validation, please try again. ERR07",
noSuchObjectInBuild: "Failed to perform liveness validation, please try again. ERR08",
failedToPreprocessImgWhilePredict: "Liveness prediction failed, please try again. ERR09",
failedToPreprocessImgWhileDetect: "Failed to detect face, please try again. ERR10",
failedToPredictLandMarks: "Facial landmarks prediction failed, please try again. ERR11",
invalidFuseMode: "Failed to perform liveness validation, please try again. ERR12",
nullptr: "Failed to perform liveness validation, please try again. ERR13",
unknown: "Failed to perform liveness validation, please try again. ERR14.",
faceQualityInsufficient: "The quality of the captured photo does not meet the minimum requirements listed above. Please recapture.",
darkImage: "The captured image is too dark, please increase the lighting.",
faceBlurry: "The captured image is blurry, please recapture.",
mouthOpen: "Your mouth is open, please close it.",
sunglassesDetected: "Sunglasses detected, please remove them.",
faceNotCentered: "Your face is not centered, please center it."
},
contactAdmin: "Please contact the system administrator about this error."
}, y = {
capturing: "Capturing",
justification: "Justification",
captured: "Face captured!",
retakePhoto: "Retake photo",
finish: "Finish",
thisInformationIsRequired: "This information is required.",
mouthOpen: "Mouth open",
closedMouth: "Closed mouth",
tooFar: "Too far",
tooClose: "Too close",
okDistance: "Distance: Ok",
framing: "Framing",
validating: "Validating",
lowQualityCapture: "Picture taken with insufficient quality, please capture again!",
everythingOk: "Great picture!",
noNonconformity: "No nonconformity",
previewCapture: "Capture preview",
unconformities: "Unconformities",
provideAReasonForTheLowQualityCapture: "Please provide a reason for the low quality capture.",
yourJustification: "Your justification",
unaliveCapture: "Capture didn't pass the liveness test.",
unableToCompleteRequest: "Unable to complete the request to the photo validation service, please try again or contact the system administrator.",
stayStill: "Stay still",
moveAwayCamera: "Move away",
comeCloserCamera: "Come closer",
dontOpenMouth: "Close your mouth",
stayInFrame: "Center your face",
loading: "Loading...",
capture: "Capture",
faceWasNotFound: "Face not found",
illuminationTooLow: "Lighting too low",
illuminationTooHigh: "Lighting too high",
lowSharpness: "Low sharpness"
}, T = {
captured: "Document captured!",
comeCloserCamera: "Get closer",
moveAwayCamera: "Move away",
stayInFrame: "Center the document",
capture: "Capture",
docWasNotFound: "Document not found",
docNotFound: "Document not found, please retake the photo!"
}, R = {
close: "close",
instructions: "To download the driver for your scanner, please select the brand of your scanner:",
obs: "Please also do not forget to disconnect your scanner before installing the driver.",
language: "Language Select",
driver: "Driver Download",
automaticCapture: "Automatic Capture",
cameraOptionsTab: "Camera settings",
deviceSelect: "Video Source",
en: "English",
pt: "Português",
es: "Spanish"
}, F = {
evaluateBiometricsTimeout: "The server has exceeded its time limit to respond. Please try again or contact the system administrator.",
genericNetworkError: "There was an error processing your request. Please try again or contact the system administrator.",
genericError: "There was an unexpected error. Please try again or contact the system administrator."
}, C = {
cameraPermission: "Please grant camera access permission.",
cameraNotSupported: "The camera does not meet the necessary requirements.",
cameraNotDetected: "Camera not detected.",
clickRestartButton: "After granting permission, click the Restart button.",
restart: "Restart",
connectCameraAndRestart: "Please connect your camera, wait a moment, and click the Restart button.",
cameraInUse: "The camera is in use.",
ensureCameraNotInUse: "Ensure no other application is using the camera and click the button below.",
stayOnSameTab: "Please remain on the same tab during biometric collection.",
clickRestartToRecapture: "Click the Restart button to recapture.",
deviceMustBeInPortrait: "Turn your device to the vertical position",
deviceMustBeInLandscape: "Turn your device to the horizontal position",
rotateDevice: "Please rotate the device to capture the photo.",
adjustOrientation: "Adjust Orientation",
connectAnotherCamera: "Please connect another camera and try again.",
biometricCapture: "Now, let's perform your biometric capture.",
startCapture: "Start Capture"
}, v = {
forbiddenFingerSwal: e,
badFingerQualitySwal: t,
unknownDuplicateFingerSwal: a,
signerNotInstalledSwal: n,
agrFingerNotMatched: i,
agrFinger: o,
duplicateFingerSwal: r,
easterEggduplicateFingerSwal: s,
automaticHasAlreadyRunSwal: l,
dirtyScannerSwal: c,
missingScannerSwal: d,
fingerDisplayArea: u,
buttons: g,
alertExtension: p,
alertCameraDisallowed: h,
unconformities: m,
liveness: f,
faceCollector: y,
docCollector: T,
configModal: R,
toast: F,
cameraStatus: C
};
export {
o as agrFinger,
i as agrFingerNotMatched,
h as alertCameraDisallowed,
p as alertExtension,
l as automaticHasAlreadyRunSwal,
t as badFingerQualitySwal,
g as buttons,
C as cameraStatus,
R as configModal,
v as default,
c as dirtyScannerSwal,
T as docCollector,
r as duplicateFingerSwal,
s as easterEggduplicateFingerSwal,
y as faceCollector,
u as fingerDisplayArea,
e as forbiddenFingerSwal,
f as liveness,
d as missingScannerSwal,
n as signerNotInstalledSwal,
F as toast,
m as unconformities,
a as unknownDuplicateFingerSwal
};