idmission-web-sdk 2.2.164 → 2.2.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -0
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayLegacy.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureModelsProvider.d.ts +1 -0
- package/dist/components/id_capture/IdCaptureModelsProvider.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -0
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayLegacy.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +1 -0
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts.map +1 -1
- package/dist/contexts/AuthStateContext.d.ts.map +1 -1
- package/dist/lib/locales/de.d.ts +3 -1
- package/dist/lib/locales/de.d.ts.map +1 -1
- package/dist/lib/locales/es.d.ts +1 -1
- package/dist/lib/locales/fr.d.ts +3 -1
- package/dist/lib/locales/fr.d.ts.map +1 -1
- package/dist/lib/locales/index.d.ts +21 -7
- package/dist/lib/locales/index.d.ts.map +1 -1
- package/dist/lib/locales/it.d.ts +3 -1
- package/dist/lib/locales/it.d.ts.map +1 -1
- package/dist/lib/locales/ja.d.ts +3 -1
- package/dist/lib/locales/ja.d.ts.map +1 -1
- package/dist/lib/locales/pt.d.ts +3 -1
- package/dist/lib/locales/pt.d.ts.map +1 -1
- package/dist/lib/locales/ru.d.ts +2 -0
- package/dist/lib/locales/ru.d.ts.map +1 -1
- package/dist/lib/locales/zh.d.ts +3 -1
- package/dist/lib/locales/zh.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +379 -285
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +379 -286
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +397 -290
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -1
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.166';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1066,38 +1066,60 @@
|
|
|
1066
1066
|
}, retryText)))));
|
|
1067
1067
|
};
|
|
1068
1068
|
|
|
1069
|
-
var
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1069
|
+
var LogLevel;
|
|
1070
|
+
(function (LogLevel) {
|
|
1071
|
+
LogLevel[LogLevel["Off"] = 0] = "Off";
|
|
1072
|
+
LogLevel[LogLevel["Error"] = 1] = "Error";
|
|
1073
|
+
LogLevel[LogLevel["Warn"] = 2] = "Warn";
|
|
1074
|
+
LogLevel[LogLevel["Info"] = 3] = "Info";
|
|
1075
|
+
LogLevel[LogLevel["Debug"] = 4] = "Debug";
|
|
1076
|
+
})(LogLevel || (LogLevel = {}));
|
|
1077
|
+
var logLevel = LogLevel.Warn;
|
|
1078
|
+
function useLogLevel(newLogLevel) {
|
|
1079
|
+
React.useEffect(function () {
|
|
1080
|
+
var oldLogLevel = logLevel;
|
|
1081
|
+
if (newLogLevel === oldLogLevel) return;
|
|
1082
|
+
logLevel = newLogLevel;
|
|
1083
|
+
return function () {
|
|
1084
|
+
logLevel = oldLogLevel;
|
|
1085
|
+
};
|
|
1086
|
+
}, [newLogLevel]);
|
|
1087
|
+
}
|
|
1088
|
+
function useDebugLogging(enabled) {
|
|
1089
|
+
useLogLevel(enabled ? LogLevel.Debug : logLevel);
|
|
1090
|
+
}
|
|
1091
|
+
function debug() {
|
|
1092
|
+
var parts = [];
|
|
1093
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1094
|
+
parts[_i] = arguments[_i];
|
|
1095
|
+
}
|
|
1096
|
+
if (logLevel < LogLevel.Debug) return;
|
|
1097
|
+
console.debug.apply(console, parts); // eslint-disable-line no-console
|
|
1098
|
+
}
|
|
1099
|
+
function log() {
|
|
1100
|
+
var parts = [];
|
|
1101
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1102
|
+
parts[_i] = arguments[_i];
|
|
1103
|
+
}
|
|
1104
|
+
if (logLevel < LogLevel.Info) return;
|
|
1105
|
+
console.log.apply(console, parts); // eslint-disable-line no-console
|
|
1106
|
+
}
|
|
1107
|
+
function warn() {
|
|
1108
|
+
var parts = [];
|
|
1109
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1110
|
+
parts[_i] = arguments[_i];
|
|
1111
|
+
}
|
|
1112
|
+
if (logLevel < LogLevel.Warn) return;
|
|
1113
|
+
console.warn.apply(console, parts); // eslint-disable-line no-console
|
|
1114
|
+
}
|
|
1115
|
+
function error() {
|
|
1116
|
+
var parts = [];
|
|
1117
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1118
|
+
parts[_i] = arguments[_i];
|
|
1119
|
+
}
|
|
1120
|
+
if (logLevel < LogLevel.Error) return;
|
|
1121
|
+
console.error.apply(console, parts); // eslint-disable-line no-console
|
|
1122
|
+
}
|
|
1101
1123
|
|
|
1102
1124
|
exports.defaultAuthUrl = 'https://portal-api.idmission.com';
|
|
1103
1125
|
var allowedAuthUrls = ['https://portal-api.idmission.com', 'https://portal-api-uat.idmission.com', 'https://portal-api-demo.idmission.com', 'https://portal-api-dev.idmission.com', 'http://localhost:10000'];
|
|
@@ -1136,8 +1158,95 @@
|
|
|
1136
1158
|
return state;
|
|
1137
1159
|
}
|
|
1138
1160
|
};
|
|
1161
|
+
function makeValidateSessionRequest(authUrl_1, sessionId_1) {
|
|
1162
|
+
return __awaiter(this, arguments, void 0, function (authUrl, sessionId, retryCount) {
|
|
1163
|
+
var maxRetries, baseDelay, response, delay_1, error_1, delay_2;
|
|
1164
|
+
if (retryCount === void 0) {
|
|
1165
|
+
retryCount = 0;
|
|
1166
|
+
}
|
|
1167
|
+
return __generator(this, function (_a) {
|
|
1168
|
+
switch (_a.label) {
|
|
1169
|
+
case 0:
|
|
1170
|
+
maxRetries = 10;
|
|
1171
|
+
baseDelay = 1000 // 1 second
|
|
1172
|
+
;
|
|
1173
|
+
_a.label = 1;
|
|
1174
|
+
case 1:
|
|
1175
|
+
_a.trys.push([1, 4,, 6]);
|
|
1176
|
+
return [4 /*yield*/, fetch("".concat(authUrl, "/portal.sessions.v1.SessionsService/ValidateSession"), {
|
|
1177
|
+
method: 'POST',
|
|
1178
|
+
headers: {
|
|
1179
|
+
'Content-Type': 'application/json'
|
|
1180
|
+
},
|
|
1181
|
+
body: JSON.stringify({
|
|
1182
|
+
id: sessionId
|
|
1183
|
+
})
|
|
1184
|
+
})
|
|
1185
|
+
// If the request was successful or we've hit max retries, return the response
|
|
1186
|
+
];
|
|
1187
|
+
case 2:
|
|
1188
|
+
response = _a.sent();
|
|
1189
|
+
// If the request was successful or we've hit max retries, return the response
|
|
1190
|
+
if (response.ok || retryCount >= maxRetries) {
|
|
1191
|
+
return [2 /*return*/, response];
|
|
1192
|
+
}
|
|
1193
|
+
delay_1 = baseDelay * Math.pow(2, retryCount) // Exponential backoff
|
|
1194
|
+
;
|
|
1195
|
+
return [4 /*yield*/, new Promise(function (resolve) {
|
|
1196
|
+
return setTimeout(resolve, delay_1);
|
|
1197
|
+
})];
|
|
1198
|
+
case 3:
|
|
1199
|
+
_a.sent();
|
|
1200
|
+
return [2 /*return*/, makeValidateSessionRequest(authUrl, sessionId, retryCount + 1)];
|
|
1201
|
+
case 4:
|
|
1202
|
+
error_1 = _a.sent();
|
|
1203
|
+
// If we've hit max retries, throw the error
|
|
1204
|
+
if (retryCount >= maxRetries) {
|
|
1205
|
+
throw error_1;
|
|
1206
|
+
}
|
|
1207
|
+
delay_2 = baseDelay * Math.pow(2, retryCount);
|
|
1208
|
+
return [4 /*yield*/, new Promise(function (resolve) {
|
|
1209
|
+
return setTimeout(resolve, delay_2);
|
|
1210
|
+
})];
|
|
1211
|
+
case 5:
|
|
1212
|
+
_a.sent();
|
|
1213
|
+
return [2 /*return*/, makeValidateSessionRequest(authUrl, sessionId, retryCount + 1)];
|
|
1214
|
+
case 6:
|
|
1215
|
+
return [2 /*return*/];
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
function validateSession(authUrl, sessionId) {
|
|
1221
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1222
|
+
var resp, respText, message, valid, respJson;
|
|
1223
|
+
return __generator(this, function (_a) {
|
|
1224
|
+
switch (_a.label) {
|
|
1225
|
+
case 0:
|
|
1226
|
+
return [4 /*yield*/, makeValidateSessionRequest(authUrl, sessionId)];
|
|
1227
|
+
case 1:
|
|
1228
|
+
resp = _a.sent();
|
|
1229
|
+
return [4 /*yield*/, resp.text()];
|
|
1230
|
+
case 2:
|
|
1231
|
+
respText = _a.sent();
|
|
1232
|
+
message = respText;
|
|
1233
|
+
valid = false;
|
|
1234
|
+
try {
|
|
1235
|
+
respJson = JSON.parse(respText);
|
|
1236
|
+
message = respJson.message;
|
|
1237
|
+
valid = respJson.valid;
|
|
1238
|
+
} catch (e) {
|
|
1239
|
+
warn('Failed to parse session validation response', e);
|
|
1240
|
+
}
|
|
1241
|
+
if (!resp.ok) {
|
|
1242
|
+
throw new SessionValidationFailedError(new Error(message), authUrl);
|
|
1243
|
+
}
|
|
1244
|
+
return [2 /*return*/, valid];
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1139
1249
|
function useAuthReducer(authUrl, sessionId) {
|
|
1140
|
-
var _this = this;
|
|
1141
1250
|
if (authUrl === void 0) {
|
|
1142
1251
|
authUrl = exports.defaultAuthUrl;
|
|
1143
1252
|
}
|
|
@@ -1183,51 +1292,17 @@
|
|
|
1183
1292
|
type: 'setCheckState',
|
|
1184
1293
|
payload: 'RUNNING'
|
|
1185
1294
|
});
|
|
1186
|
-
(function () {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
switch (_b.label) {
|
|
1191
|
-
case 0:
|
|
1192
|
-
_b.trys.push([0, 3,, 4]);
|
|
1193
|
-
return [4 /*yield*/, fetch("".concat(authUrl, "/portal.sessions.v1.SessionsService/ValidateSession"), {
|
|
1194
|
-
method: 'POST',
|
|
1195
|
-
headers: {
|
|
1196
|
-
'Content-Type': 'application/json'
|
|
1197
|
-
},
|
|
1198
|
-
body: JSON.stringify({
|
|
1199
|
-
id: resolvedSessionId
|
|
1200
|
-
})
|
|
1201
|
-
})];
|
|
1202
|
-
case 1:
|
|
1203
|
-
resp = _b.sent();
|
|
1204
|
-
return [4 /*yield*/, resp.json()];
|
|
1205
|
-
case 2:
|
|
1206
|
-
_a = _b.sent(), valid = _a.valid, message = _a.message;
|
|
1207
|
-
if (!resp.ok) {
|
|
1208
|
-
dispatch({
|
|
1209
|
-
type: 'setError',
|
|
1210
|
-
payload: new SessionValidationFailedError(new Error(message), authUrl)
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
dispatch({
|
|
1214
|
-
type: 'setCheckState',
|
|
1215
|
-
payload: valid ? 'PASSED' : 'FAILED'
|
|
1216
|
-
});
|
|
1217
|
-
return [3 /*break*/, 4];
|
|
1218
|
-
case 3:
|
|
1219
|
-
e_1 = _b.sent();
|
|
1220
|
-
dispatch({
|
|
1221
|
-
type: 'setError',
|
|
1222
|
-
payload: new SessionValidationFailedError(e_1, authUrl)
|
|
1223
|
-
});
|
|
1224
|
-
return [3 /*break*/, 4];
|
|
1225
|
-
case 4:
|
|
1226
|
-
return [2 /*return*/];
|
|
1227
|
-
}
|
|
1228
|
-
});
|
|
1295
|
+
validateSession(authUrl, resolvedSessionId).then(function (valid) {
|
|
1296
|
+
dispatch({
|
|
1297
|
+
type: 'setCheckState',
|
|
1298
|
+
payload: valid ? 'PASSED' : 'FAILED'
|
|
1229
1299
|
});
|
|
1230
|
-
})()
|
|
1300
|
+
})["catch"](function (e) {
|
|
1301
|
+
dispatch({
|
|
1302
|
+
type: 'setError',
|
|
1303
|
+
payload: new SessionValidationFailedError(e, authUrl)
|
|
1304
|
+
});
|
|
1305
|
+
});
|
|
1231
1306
|
}
|
|
1232
1307
|
}, [authUrl, sessionCheckState, resolvedSessionId, sessionId]);
|
|
1233
1308
|
return [state, dispatch];
|
|
@@ -1268,9 +1343,6 @@
|
|
|
1268
1343
|
}
|
|
1269
1344
|
});
|
|
1270
1345
|
}
|
|
1271
|
-
if (state.sessionCheckState === 'READY' || state.sessionCheckState === 'RUNNING') return /*#__PURE__*/React.createElement(PageContainer, {
|
|
1272
|
-
className: "flex"
|
|
1273
|
-
}, /*#__PURE__*/React.createElement(Spinner$1, null));
|
|
1274
1346
|
return /*#__PURE__*/React.createElement(AuthStateContext.Provider, {
|
|
1275
1347
|
value: state
|
|
1276
1348
|
}, /*#__PURE__*/React.createElement(AuthDispatchContext.Provider, {
|
|
@@ -1278,61 +1350,6 @@
|
|
|
1278
1350
|
}, children));
|
|
1279
1351
|
}
|
|
1280
1352
|
|
|
1281
|
-
var LogLevel;
|
|
1282
|
-
(function (LogLevel) {
|
|
1283
|
-
LogLevel[LogLevel["Off"] = 0] = "Off";
|
|
1284
|
-
LogLevel[LogLevel["Error"] = 1] = "Error";
|
|
1285
|
-
LogLevel[LogLevel["Warn"] = 2] = "Warn";
|
|
1286
|
-
LogLevel[LogLevel["Info"] = 3] = "Info";
|
|
1287
|
-
LogLevel[LogLevel["Debug"] = 4] = "Debug";
|
|
1288
|
-
})(LogLevel || (LogLevel = {}));
|
|
1289
|
-
var logLevel = LogLevel.Warn;
|
|
1290
|
-
function useLogLevel(newLogLevel) {
|
|
1291
|
-
React.useEffect(function () {
|
|
1292
|
-
var oldLogLevel = logLevel;
|
|
1293
|
-
if (newLogLevel === oldLogLevel) return;
|
|
1294
|
-
logLevel = newLogLevel;
|
|
1295
|
-
return function () {
|
|
1296
|
-
logLevel = oldLogLevel;
|
|
1297
|
-
};
|
|
1298
|
-
}, [newLogLevel]);
|
|
1299
|
-
}
|
|
1300
|
-
function useDebugLogging(enabled) {
|
|
1301
|
-
useLogLevel(enabled ? LogLevel.Debug : logLevel);
|
|
1302
|
-
}
|
|
1303
|
-
function debug() {
|
|
1304
|
-
var parts = [];
|
|
1305
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1306
|
-
parts[_i] = arguments[_i];
|
|
1307
|
-
}
|
|
1308
|
-
if (logLevel < LogLevel.Debug) return;
|
|
1309
|
-
console.debug.apply(console, parts); // eslint-disable-line no-console
|
|
1310
|
-
}
|
|
1311
|
-
function log() {
|
|
1312
|
-
var parts = [];
|
|
1313
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1314
|
-
parts[_i] = arguments[_i];
|
|
1315
|
-
}
|
|
1316
|
-
if (logLevel < LogLevel.Info) return;
|
|
1317
|
-
console.log.apply(console, parts); // eslint-disable-line no-console
|
|
1318
|
-
}
|
|
1319
|
-
function warn() {
|
|
1320
|
-
var parts = [];
|
|
1321
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1322
|
-
parts[_i] = arguments[_i];
|
|
1323
|
-
}
|
|
1324
|
-
if (logLevel < LogLevel.Warn) return;
|
|
1325
|
-
console.warn.apply(console, parts); // eslint-disable-line no-console
|
|
1326
|
-
}
|
|
1327
|
-
function error() {
|
|
1328
|
-
var parts = [];
|
|
1329
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1330
|
-
parts[_i] = arguments[_i];
|
|
1331
|
-
}
|
|
1332
|
-
if (logLevel < LogLevel.Error) return;
|
|
1333
|
-
console.error.apply(console, parts); // eslint-disable-line no-console
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
1353
|
var sparkMd5 = {exports: {}};
|
|
1337
1354
|
|
|
1338
1355
|
(function (module, exports) {
|
|
@@ -3469,7 +3486,7 @@
|
|
|
3469
3486
|
function n(t, e) {
|
|
3470
3487
|
return e = String.fromCharCode.apply(null, e), null == t ? e : t + e;
|
|
3471
3488
|
}
|
|
3472
|
-
var r, s;
|
|
3489
|
+
var r$1, s;
|
|
3473
3490
|
var i = "undefined" != typeof TextDecoder;
|
|
3474
3491
|
var o;
|
|
3475
3492
|
var a = "undefined" != typeof TextEncoder;
|
|
@@ -3878,17 +3895,17 @@
|
|
|
3878
3895
|
try {
|
|
3879
3896
|
var u = h.decode(c);
|
|
3880
3897
|
} catch (t) {
|
|
3881
|
-
if (void 0 === r) {
|
|
3898
|
+
if (void 0 === r$1) {
|
|
3882
3899
|
try {
|
|
3883
3900
|
h.decode(new Uint8Array([128]));
|
|
3884
3901
|
} catch (t) {}
|
|
3885
3902
|
try {
|
|
3886
|
-
h.decode(new Uint8Array([97])), r = !0;
|
|
3903
|
+
h.decode(new Uint8Array([97])), r$1 = !0;
|
|
3887
3904
|
} catch (t) {
|
|
3888
|
-
r = !1;
|
|
3905
|
+
r$1 = !1;
|
|
3889
3906
|
}
|
|
3890
3907
|
}
|
|
3891
|
-
throw !r && (s = void 0), t;
|
|
3908
|
+
throw !r$1 && (s = void 0), t;
|
|
3892
3909
|
}
|
|
3893
3910
|
} else {
|
|
3894
3911
|
o = (u = a) + o, a = [];
|
|
@@ -7967,7 +7984,7 @@
|
|
|
7967
7984
|
return [frameWidth, frameHeight];
|
|
7968
7985
|
}
|
|
7969
7986
|
|
|
7970
|
-
var InvisibleCanvas = styled.canvas(templateObject_1$
|
|
7987
|
+
var InvisibleCanvas = styled.canvas(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
|
|
7971
7988
|
function drawToCanvas(canvas, frame, width, height) {
|
|
7972
7989
|
if (!canvas) return;
|
|
7973
7990
|
var ctx = canvas.getContext('2d');
|
|
@@ -7987,7 +8004,7 @@
|
|
|
7987
8004
|
var _a;
|
|
7988
8005
|
(_a = canvas === null || canvas === void 0 ? void 0 : canvas.getContext('2d')) === null || _a === void 0 ? void 0 : _a.clearRect(0, 0, canvas === null || canvas === void 0 ? void 0 : canvas.width, canvas === null || canvas === void 0 ? void 0 : canvas.height);
|
|
7989
8006
|
}
|
|
7990
|
-
var templateObject_1$
|
|
8007
|
+
var templateObject_1$K;
|
|
7991
8008
|
|
|
7992
8009
|
function cropToShoulders(rawCanvas, cropCanvas, resizeCanvas, frame, face, quality, maxHeight) {
|
|
7993
8010
|
if (quality === void 0) {
|
|
@@ -12294,7 +12311,7 @@
|
|
|
12294
12311
|
'Document is not centered': 'Documento no centrado',
|
|
12295
12312
|
'Document too close please back up': 'Documento muy cerca, favor de alejarse',
|
|
12296
12313
|
'Please hold your ID document steady': 'Por favor, hay que mantener firme su identificación',
|
|
12297
|
-
'Document out of focus
|
|
12314
|
+
'Document out of focus - try improving the lighting': 'Documento no enfocado, hay que tratar de mejorar la iluminación',
|
|
12298
12315
|
'ID card front detected - please flip your ID card': 'Frente de la ID detectado, por favor hay que voltearla',
|
|
12299
12316
|
'ID card back detected - please flip your ID card': 'Reverso de la ID detectado, por favor hay que voltearla',
|
|
12300
12317
|
'ID card detected please scan a passport instead': 'Se ha detectado una credencial, por favor hay que escanear un pasaporte',
|
|
@@ -12421,7 +12438,7 @@
|
|
|
12421
12438
|
'Document is not centered': 'Dokument ist nicht zentriert',
|
|
12422
12439
|
'Document too close please back up': 'Dokument ist zu nah, bitte Abstand vergrößern',
|
|
12423
12440
|
'Please hold your ID document steady': 'Ihr Ausweisdokument ruhig halten',
|
|
12424
|
-
'Document out of focus
|
|
12441
|
+
'Document out of focus - try improving the lighting': 'Dokument unscharf - versuchen Sie, die Beleuchtung zu verbessern',
|
|
12425
12442
|
'ID card front detected - please flip your ID card': 'Vorderseite des Ausweises erkannt - bitte Ihren Ausweis umdrehen',
|
|
12426
12443
|
'ID card back detected - please flip your ID card': 'Rückseite des Ausweises erkannt - bitte Ihren Ausweis umdrehen',
|
|
12427
12444
|
'ID card detected please scan a passport instead': 'Ausweis erkannt, bitte stattdessen einen Pass scannen',
|
|
@@ -12504,7 +12521,7 @@
|
|
|
12504
12521
|
'Camera ready': 'Kamera bereit',
|
|
12505
12522
|
'Loading guided capture experience...': 'Geführte Erfassung wird geladen...',
|
|
12506
12523
|
'Guided capture experience ready': 'Geführte Erfassung bereit',
|
|
12507
|
-
"Let's Go!":
|
|
12524
|
+
"Let's Go!": "Los geht's!",
|
|
12508
12525
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'Wir haben Probleme, die richtige Seite Ihres Ausweises zu erkennen. Möchten Sie dennoch mit der Erfassung fortfahren?',
|
|
12509
12526
|
OK: 'OK',
|
|
12510
12527
|
'Capture with Camera': 'Mit der Kamera aufnehmen',
|
|
@@ -12516,7 +12533,9 @@
|
|
|
12516
12533
|
'Upload ID Front': 'Vorderseite der ID hochladen',
|
|
12517
12534
|
'Upload ID Back': 'Rückseite der ID hochladen',
|
|
12518
12535
|
Cancel: 'Abbrechen',
|
|
12519
|
-
'Upload the back of the ID if it is not included in the front image.': 'Laden Sie die Rückseite des Ausweises hoch, wenn diese nicht im Bild der Vorderseite enthalten ist
|
|
12536
|
+
'Upload the back of the ID if it is not included in the front image.': 'Laden Sie die Rückseite des Ausweises hoch, wenn diese nicht im Bild der Vorderseite enthalten ist.',
|
|
12537
|
+
'Camera tampering detected': 'Kamera manipuliert',
|
|
12538
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Leider scheint die Kamera manipuliert zu werden. Bitte prüfen Sie Ihr Gerät und laden Sie die Seite neu.'
|
|
12520
12539
|
};
|
|
12521
12540
|
|
|
12522
12541
|
var fr = {
|
|
@@ -12546,7 +12565,7 @@
|
|
|
12546
12565
|
'Document is not centered': "Le document n'est pas centré",
|
|
12547
12566
|
'Document too close please back up': 'Document trop proche, veuillez sauvegarder',
|
|
12548
12567
|
'Please hold your ID document steady': "Veuillez maintenir fermement votre pièce d'identité",
|
|
12549
|
-
'Document out of focus
|
|
12568
|
+
'Document out of focus - try improving the lighting': "Document flou - essayez d'améliorer l'éclairage",
|
|
12550
12569
|
'ID card front detected - please flip your ID card': "Recto de la carte d'identité détecté - veuillez retourner votre carte d'identité",
|
|
12551
12570
|
'ID card back detected - please flip your ID card': "Verso de la carte d'identité détectée - veuillez retourner votre carte d'identité",
|
|
12552
12571
|
'ID card detected please scan a passport instead': "Carte d'identité détectée, veuillez scanner plutôt un passeport",
|
|
@@ -12561,7 +12580,7 @@
|
|
|
12561
12580
|
'ID card front captured.': "Recto de la carte d'identité capturé.",
|
|
12562
12581
|
'ID card back captured.': "Verso de la carte d'identité capturé.",
|
|
12563
12582
|
'ID Capture Successful': "Capture d'identité réussie",
|
|
12564
|
-
'Verify the entire ID was captured clearly with no glare.': "Vérifiez que l'intégralité de la pièce d
|
|
12583
|
+
'Verify the entire ID was captured clearly with no glare.': "Vérifiez que l'intégralité de la pièce d'identité a été capturée clairement, sans reflet.",
|
|
12565
12584
|
Submit: 'Soumettre',
|
|
12566
12585
|
'Submitting...': 'Soumission en cours...',
|
|
12567
12586
|
'Use your device camera to capture your face': 'Utilisez la caméra de votre appareil pour capturer votre visage',
|
|
@@ -12605,20 +12624,20 @@
|
|
|
12605
12624
|
'Display the back of your ID card...': "Affichez le verso de votre carte d'identité...",
|
|
12606
12625
|
'Display the ID page of your passport...': "Montrez la page d'identité de votre passeport...",
|
|
12607
12626
|
'Please move your face to the center...': 'Veuillez déplacer votre visage vers le centre...',
|
|
12608
|
-
'Searching for ID card...': "Recherche d
|
|
12627
|
+
'Searching for ID card...': "Recherche d'une carte d'identité...",
|
|
12609
12628
|
'Please read the following text aloud': 'Veuillez lire le texte suivant à voix haute',
|
|
12610
|
-
'Video ID has been successfully captured!': '
|
|
12611
|
-
'ID Front Image':
|
|
12612
|
-
'ID Back Image':
|
|
12629
|
+
'Video ID has been successfully captured!': "L'ID vidéo a été capturé avec succès!",
|
|
12630
|
+
'ID Front Image': "Image recto de la pièce d'identité",
|
|
12631
|
+
'ID Back Image': "Image verso de la pièce d'identité",
|
|
12613
12632
|
"We're having some trouble.": 'Nous rencontrons quelques problèmes.',
|
|
12614
12633
|
'On-device capture guidance failed please capture a selfie manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer un selfie manuellement.",
|
|
12615
12634
|
'Verifying...': 'Vérification en cours...',
|
|
12616
12635
|
'Please capture the front of your ID card.': "Veuillez capturer le recto de votre carte d'identité.",
|
|
12617
12636
|
'Please capture the back of your ID card.': "Veuillez capturer le verso de votre carte d'identité.",
|
|
12618
|
-
'Please capture the front of your ID card, or the ID page of your passport.':
|
|
12619
|
-
'Please capture the back of your ID card, or click Done if submitting a passport.':
|
|
12637
|
+
'Please capture the front of your ID card, or the ID page of your passport.': "Veuillez capturer le recto de votre carte d'identité ou la page d'identité de votre passeport.",
|
|
12638
|
+
'Please capture the back of your ID card, or click Done if submitting a passport.': "Veuillez capturer le verso de votre carte d'identité ou cliquer sur Terminé si vous soumettez un passeport.",
|
|
12620
12639
|
'Please capture the ID page of your passport.': "Veuillez capturer la page d'identité de votre passeport.",
|
|
12621
|
-
'On-device capture guidance failed please capture a photo of your ID card manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer une photo de votre pièce d
|
|
12640
|
+
'On-device capture guidance failed please capture a photo of your ID card manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer une photo de votre pièce d'identité manuellement.",
|
|
12622
12641
|
'On-device capture guidance failed please capture a photo of your passport manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer une photo de votre passeport manuellement.",
|
|
12623
12642
|
'On-device capture guidance failed please capture photos of your ID card and passport manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer manuellement des photos de votre carte d'identité et de votre passeport.",
|
|
12624
12643
|
'On-device capture guidance failed please capture photos of your ID card or passport manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer manuellement des photos de votre carte d'identité ou de votre passeport.",
|
|
@@ -12641,7 +12660,9 @@
|
|
|
12641
12660
|
'Upload ID Front': "Télécharger le recto de la pièce d'identité",
|
|
12642
12661
|
'Upload ID Back': "Télécharger le verso de la pièce d'identité",
|
|
12643
12662
|
Cancel: 'Annuler',
|
|
12644
|
-
'Upload the back of the ID if it is not included in the front image.': "Téléchargez le verso de la pièce d'identité si ce n'est pas inclus dans l'image du recto."
|
|
12663
|
+
'Upload the back of the ID if it is not included in the front image.': "Téléchargez le verso de la pièce d'identité si ce n'est pas inclus dans l'image du recto.",
|
|
12664
|
+
'Camera tampering detected': 'Manipulation de la caméra détectée',
|
|
12665
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Nous sommes désolés, mais il semble que la caméra soit manipulée. Veuillez vérifier votre appareil et réessayer en rechargeant la page.'
|
|
12645
12666
|
};
|
|
12646
12667
|
|
|
12647
12668
|
var it = {
|
|
@@ -12664,27 +12685,27 @@
|
|
|
12664
12685
|
'Scan the front of ID': 'Scansiona il fronte del documento',
|
|
12665
12686
|
'Scan the back of ID': 'Scansiona il retro del documento',
|
|
12666
12687
|
'Scan the ID page of passport': 'Scansione la pagina identificativa del passaporto',
|
|
12667
|
-
'ID Card Front':
|
|
12668
|
-
'ID Card Back':
|
|
12688
|
+
'ID Card Front': "Fronte documento d'identità",
|
|
12689
|
+
'ID Card Back': "Retro documento d'identità",
|
|
12669
12690
|
Passport: 'Passaporto',
|
|
12670
12691
|
'Document not detected': 'Documento non rilevato',
|
|
12671
12692
|
'Document is not centered': 'Documento non centrato',
|
|
12672
12693
|
'Document too close please back up': 'Documento troppo vicino, allontanarlo',
|
|
12673
|
-
'Please hold your ID document steady':
|
|
12674
|
-
'Document out of focus
|
|
12675
|
-
'ID card front detected - please flip your ID card':
|
|
12676
|
-
'ID card back detected - please flip your ID card':
|
|
12677
|
-
'ID card detected please scan a passport instead':
|
|
12678
|
-
'Passport detected please scan an ID card instead':
|
|
12694
|
+
'Please hold your ID document steady': "Tenere il documento d'identità fermo",
|
|
12695
|
+
'Document out of focus - try improving the lighting': "Documento fuori fuoco - provare a migliorare l'illuminazione",
|
|
12696
|
+
'ID card front detected - please flip your ID card': "Fronte del documento d'identità rilevato - Girare il documento d'identità",
|
|
12697
|
+
'ID card back detected - please flip your ID card': "Retro del documento d'identità rilevato - Girare il documento d'identità",
|
|
12698
|
+
'ID card detected please scan a passport instead': "Documento d'identità rilevato, scansionare un passaporto al suo posto",
|
|
12699
|
+
'Passport detected please scan an ID card instead': "Passaporto rilevato, scansionare una documento d'identità al suo posto",
|
|
12679
12700
|
'Document detected, hold still...': 'Documento rilevato, tenere fermo...',
|
|
12680
|
-
'ID card front detected, hold still...':
|
|
12681
|
-
'ID card back detected, hold still...':
|
|
12701
|
+
'ID card front detected, hold still...': "Fronte documento d'identità rilevato, tenere fermo...",
|
|
12702
|
+
'ID card back detected, hold still...': "Retro documento d'identità rilevato, tenere fermo...",
|
|
12682
12703
|
'Passport detected, hold still...': 'Passaporto rilevato, tenere fermo...',
|
|
12683
12704
|
'Capturing...': 'Acquisizione...',
|
|
12684
12705
|
'Capture failed!': 'Acquisizione non riuscita!',
|
|
12685
|
-
'Please flip your ID card...':
|
|
12686
|
-
'ID card front captured.':
|
|
12687
|
-
'ID card back captured.':
|
|
12706
|
+
'Please flip your ID card...': "Capovolgere il documento d'identità",
|
|
12707
|
+
'ID card front captured.': "Fronte documento d'identità acquisito.",
|
|
12708
|
+
'ID card back captured.': "Retro documento d'identità acquisito.",
|
|
12688
12709
|
'ID Capture Successful': 'Acquisizione documento riuscita',
|
|
12689
12710
|
'Verify the entire ID was captured clearly with no glare.': 'Verificare che tutto il documento sia acquisito chiaramente e senza riflessi.',
|
|
12690
12711
|
Submit: 'Invia',
|
|
@@ -12726,29 +12747,29 @@
|
|
|
12726
12747
|
'Uploading...': 'Caricamento...',
|
|
12727
12748
|
'Upload succeeded!': 'Caricamento riuscito!',
|
|
12728
12749
|
'Performing facial recognition, please hold still...': 'Riconoscimento volto in corso, tenere fermo...',
|
|
12729
|
-
'Display the front of your ID card...':
|
|
12730
|
-
'Display the back of your ID card...':
|
|
12750
|
+
'Display the front of your ID card...': "Mostrare il fronte del documento d'identità...",
|
|
12751
|
+
'Display the back of your ID card...': "Mostrare il retro della documento d'identità...",
|
|
12731
12752
|
'Display the ID page of your passport...': 'Mostrare la pagina identificativa del passaporto...',
|
|
12732
12753
|
'Please move your face to the center...': 'Spostare il volto al centro...',
|
|
12733
|
-
'Searching for ID card...':
|
|
12754
|
+
'Searching for ID card...': "Ricerca documento d'identità in corso...",
|
|
12734
12755
|
'Please read the following text aloud': 'Leggere il testo seguente a voce alta',
|
|
12735
|
-
'Video ID has been successfully captured!': '
|
|
12736
|
-
'ID Front Image':
|
|
12737
|
-
'ID Back Image':
|
|
12756
|
+
'Video ID has been successfully captured!': "L'ID video è stato acquisito correttamente!",
|
|
12757
|
+
'ID Front Image': "Immagine fronte documento d'identità",
|
|
12758
|
+
'ID Back Image': "Immagine retro documento d'identità",
|
|
12738
12759
|
"We're having some trouble.": 'Si è verificato un problema.',
|
|
12739
12760
|
'On-device capture guidance failed please capture a selfie manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Scattare un selfie manualmente.",
|
|
12740
12761
|
'Verifying...': 'Verifica...',
|
|
12741
|
-
'Please capture the front of your ID card.':
|
|
12742
|
-
'Please capture the back of your ID card.':
|
|
12743
|
-
'Please capture the front of your ID card, or the ID page of your passport.':
|
|
12744
|
-
'Please capture the back of your ID card, or click Done if submitting a passport.':
|
|
12762
|
+
'Please capture the front of your ID card.': "Acquisire il fronte del documento d'identità.",
|
|
12763
|
+
'Please capture the back of your ID card.': "Acquisire il retro del documento d'identità.",
|
|
12764
|
+
'Please capture the front of your ID card, or the ID page of your passport.': "Acquisire il fronte del documento d'identità o la pagina identificativa del passaporto.",
|
|
12765
|
+
'Please capture the back of your ID card, or click Done if submitting a passport.': "Acquisire il retro del documento d'identità o fare clic su Fatto se si invia un passaporto.",
|
|
12745
12766
|
'Please capture the ID page of your passport.': 'Acquisire la pagina identificativa del passaporto.',
|
|
12746
|
-
'On-device capture guidance failed please capture a photo of your ID card manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire una foto del documento d
|
|
12767
|
+
'On-device capture guidance failed please capture a photo of your ID card manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire una foto del documento d'identità manualmente.",
|
|
12747
12768
|
'On-device capture guidance failed please capture a photo of your passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire una foto del passaporto manualmente.",
|
|
12748
|
-
'On-device capture guidance failed please capture photos of your ID card and passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento d
|
|
12749
|
-
'On-device capture guidance failed please capture photos of your ID card or passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento d
|
|
12769
|
+
'On-device capture guidance failed please capture photos of your ID card and passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento d'identità e del passaporto manualmente.",
|
|
12770
|
+
'On-device capture guidance failed please capture photos of your ID card or passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento d'identità o del passaporto manualmente.",
|
|
12750
12771
|
'Capture ID page of passport': 'Acquisisci pagina identificativa del passaporto',
|
|
12751
|
-
'Capture back of ID card':
|
|
12772
|
+
'Capture back of ID card': "Acquisisci retro del documento d'identità",
|
|
12752
12773
|
'Downloading...': 'Download in corso...',
|
|
12753
12774
|
'Accessing camera...': 'Accesso alla fotocamera...',
|
|
12754
12775
|
'Camera ready': 'Fotocamera pronta',
|
|
@@ -12766,7 +12787,9 @@
|
|
|
12766
12787
|
'Upload ID Front': "Carica il fronte dell'ID",
|
|
12767
12788
|
'Upload ID Back': "Carica il retro dell'ID",
|
|
12768
12789
|
Cancel: 'Annulla',
|
|
12769
|
-
'Upload the back of the ID if it is not included in the front image.': "Carica il retro dell'ID se non è incluso nell'immagine del fronte
|
|
12790
|
+
'Upload the back of the ID if it is not included in the front image.': "Carica il retro dell'ID se non è incluso nell'immagine del fronte.",
|
|
12791
|
+
'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
|
|
12792
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Siamo spiacenti, ma sembra che la fotocamera stia venendo manipolata. Controlla il tuo dispositivo e riprova ricaricando la pagina.'
|
|
12770
12793
|
};
|
|
12771
12794
|
|
|
12772
12795
|
var ja = {
|
|
@@ -12796,7 +12819,7 @@
|
|
|
12796
12819
|
'Document is not centered': 'ドキュメントが中央に合っていません',
|
|
12797
12820
|
'Document too close please back up': 'ドキュメントが近すぎます。遠ざけてください',
|
|
12798
12821
|
'Please hold your ID document steady': '身分証が動かないように押さえてください',
|
|
12799
|
-
'Document out of focus
|
|
12822
|
+
'Document out of focus - try improving the lighting': 'ドキュメントの焦点がぼやけています。照明を調節してください',
|
|
12800
12823
|
'ID card front detected - please flip your ID card': '身分証の正面が検出されました。身分証を裏返してください',
|
|
12801
12824
|
'ID card back detected - please flip your ID card': '身分証の背面が検出されました。身分証を裏返してください',
|
|
12802
12825
|
'ID card detected please scan a passport instead': '身分証が検出されました。パスポートをスキャンしてください',
|
|
@@ -12891,7 +12914,9 @@
|
|
|
12891
12914
|
'Upload ID Front': '身分証明書の表面をアップロード',
|
|
12892
12915
|
'Upload ID Back': '身分証明書の裏面をアップロード',
|
|
12893
12916
|
Cancel: 'キャンセル',
|
|
12894
|
-
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。'
|
|
12917
|
+
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
|
|
12918
|
+
'Camera tampering detected': 'カメラの操作が検出されました',
|
|
12919
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'カメラの操作が検出されました。デバイスを確認し、ページを再読み込みしてください。'
|
|
12895
12920
|
};
|
|
12896
12921
|
|
|
12897
12922
|
var pt = {
|
|
@@ -12921,7 +12946,7 @@
|
|
|
12921
12946
|
'Document is not centered': 'Documento não está centralizado',
|
|
12922
12947
|
'Document too close please back up': 'Documento muito próximo, recue',
|
|
12923
12948
|
'Please hold your ID document steady': 'Segure seu documento de identificação com firmeza',
|
|
12924
|
-
'Document out of focus
|
|
12949
|
+
'Document out of focus - try improving the lighting': 'Documento fora de foco - tente melhorar a iluminação',
|
|
12925
12950
|
'ID card front detected - please flip your ID card': 'Detectada a frente da carteira de identidade - vire a carteira de identidade',
|
|
12926
12951
|
'ID card back detected - please flip your ID card': 'Detectado o verso da carteira de identidade - vire a carteira de identidade',
|
|
12927
12952
|
'ID card detected please scan a passport instead': 'Detectada a carteira de identidade - escaneie um passaporte em seu lugar',
|
|
@@ -13016,7 +13041,9 @@
|
|
|
13016
13041
|
'Upload ID Front': 'Carregar frente do ID',
|
|
13017
13042
|
'Upload ID Back': 'Carregar verso do ID',
|
|
13018
13043
|
Cancel: 'Cancelar',
|
|
13019
|
-
'Upload the back of the ID if it is not included in the front image.': 'Carregue o verso do ID se não estiver incluído na imagem da frente.'
|
|
13044
|
+
'Upload the back of the ID if it is not included in the front image.': 'Carregue o verso do ID se não estiver incluído na imagem da frente.',
|
|
13045
|
+
'Camera tampering detected': 'Manipulação da câmera detectada',
|
|
13046
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Lamentamos, mas parece que a câmera está sendo manipulada. Verifique seu dispositivo e tente novamente recarregando a página.'
|
|
13020
13047
|
};
|
|
13021
13048
|
|
|
13022
13049
|
var ru = {
|
|
@@ -13141,7 +13168,9 @@
|
|
|
13141
13168
|
'Upload ID Front': 'Загрузить переднюю сторону удостоверения личности',
|
|
13142
13169
|
'Upload ID Back': 'Загрузить заднюю сторону удостоверения личности',
|
|
13143
13170
|
Cancel: 'Отменить',
|
|
13144
|
-
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней
|
|
13171
|
+
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
|
|
13172
|
+
'Camera tampering detected': 'Обнаружена манипуляция с камерой',
|
|
13173
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'К сожалению, кажется, что камера подвергается манипуляциям. Пожалуйста, проверьте свое устройство и попробуйте снова, перезагрузив страницу.'
|
|
13145
13174
|
};
|
|
13146
13175
|
|
|
13147
13176
|
var zh = {
|
|
@@ -13171,7 +13200,7 @@
|
|
|
13171
13200
|
'Document is not centered': '文件未置中',
|
|
13172
13201
|
'Document too close please back up': '文件太近,請後退',
|
|
13173
13202
|
'Please hold your ID document steady': '請拿穩證件',
|
|
13174
|
-
'Document out of focus
|
|
13203
|
+
'Document out of focus - try improving the lighting': '文件失焦 - 請嘗試改善燈光',
|
|
13175
13204
|
'ID card front detected - please flip your ID card': '偵測到證件正面 - 請將證件翻面',
|
|
13176
13205
|
'ID card back detected - please flip your ID card': '偵測到證件背面 - 請將證件翻面',
|
|
13177
13206
|
'ID card detected please scan a passport instead': '偵測到證件,請掃描護照',
|
|
@@ -13232,7 +13261,7 @@
|
|
|
13232
13261
|
'Please move your face to the center...': '請將臉部移至中心...',
|
|
13233
13262
|
'Searching for ID card...': '正在搜尋證件...',
|
|
13234
13263
|
'Please read the following text aloud': '請大聲讀出以下文字',
|
|
13235
|
-
'Video ID has been successfully captured!': '已成功拍攝影片 ID
|
|
13264
|
+
'Video ID has been successfully captured!': '已成功拍攝影片 ID!',
|
|
13236
13265
|
'ID Front Image': '證件正面影像',
|
|
13237
13266
|
'ID Back Image': '證件背面影像',
|
|
13238
13267
|
"We're having some trouble.": '發生一些問題。',
|
|
@@ -13266,7 +13295,9 @@
|
|
|
13266
13295
|
'Upload ID Front': '上传身份证正面',
|
|
13267
13296
|
'Upload ID Back': '上传身份证背面',
|
|
13268
13297
|
Cancel: '取消',
|
|
13269
|
-
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。'
|
|
13298
|
+
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
|
|
13299
|
+
'Camera tampering detected': '檢測到相機被篡改',
|
|
13300
|
+
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": '很抱歉,看起來相機被篡改了。請檢查您的設備並重新載入頁面。'
|
|
13270
13301
|
};
|
|
13271
13302
|
|
|
13272
13303
|
var resources = {
|
|
@@ -13787,14 +13818,14 @@
|
|
|
13787
13818
|
className: classNames.message
|
|
13788
13819
|
}, messageText)));
|
|
13789
13820
|
}
|
|
13790
|
-
var StyledOverlayInner$4 = styled(OverlayInner$2)(templateObject_1$
|
|
13791
|
-
var StyledOverlayHeading = styled.h3(templateObject_2$
|
|
13821
|
+
var StyledOverlayInner$4 = styled(OverlayInner$2)(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
13822
|
+
var StyledOverlayHeading = styled.h3(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
13792
13823
|
function useCameraStore(selector) {
|
|
13793
13824
|
var store = React.useContext(CameraStoreContext);
|
|
13794
13825
|
if (!store) throw new Error('useCameraStore cannot be used without Provider');
|
|
13795
13826
|
return useStore(store, selector);
|
|
13796
13827
|
}
|
|
13797
|
-
var templateObject_1$
|
|
13828
|
+
var templateObject_1$J, templateObject_2$B;
|
|
13798
13829
|
|
|
13799
13830
|
var DocumentDetectionModelContext = /*#__PURE__*/React.createContext({
|
|
13800
13831
|
startDocumentDetection: function startDocumentDetection() {
|
|
@@ -14293,6 +14324,13 @@
|
|
|
14293
14324
|
props = __rest(_a, ["children"]);
|
|
14294
14325
|
return /*#__PURE__*/React.createElement(DocumentDetectionModelProvider, _assign({}, props), /*#__PURE__*/React.createElement(FocusModelProvider, _assign({}, props), /*#__PURE__*/React.createElement(IdCaptureModelsProviderInner, _assign({}, props), children)));
|
|
14295
14326
|
}
|
|
14327
|
+
function useIdCaptureModelsContext() {
|
|
14328
|
+
var context = React.useContext(IdCaptureModelsContext);
|
|
14329
|
+
if (!context) {
|
|
14330
|
+
throw new Error('useIdCaptureModelsContext must be used within an IdCaptureModelsProvider');
|
|
14331
|
+
}
|
|
14332
|
+
return context;
|
|
14333
|
+
}
|
|
14296
14334
|
|
|
14297
14335
|
function c(e, u, c) {
|
|
14298
14336
|
var i = this,
|
|
@@ -15115,12 +15153,12 @@
|
|
|
15115
15153
|
if (!portalLocation) return element;
|
|
15116
15154
|
return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
|
|
15117
15155
|
}
|
|
15118
|
-
var DebugStatsPaneDiv = styled.span(templateObject_1$
|
|
15119
|
-
var ObjectDetectionDebugOverlayDiv = styled.div(templateObject_2$
|
|
15156
|
+
var DebugStatsPaneDiv = styled.span(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n"], ["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n"])));
|
|
15157
|
+
var ObjectDetectionDebugOverlayDiv = styled.div(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n position: absolute;\n z-index: 1001;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n transform-style: preserve-3d;\n"], ["\n position: absolute;\n z-index: 1001;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n transform-style: preserve-3d;\n"])), function (_a) {
|
|
15120
15158
|
var $flipX = _a.$flipX;
|
|
15121
15159
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
15122
15160
|
});
|
|
15123
|
-
var ObjectDetectionDebugBox = styled.div(templateObject_3$
|
|
15161
|
+
var ObjectDetectionDebugBox = styled.div(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"], ["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_a) {
|
|
15124
15162
|
var $color = _a.$color;
|
|
15125
15163
|
return $color !== null && $color !== void 0 ? $color : 'green';
|
|
15126
15164
|
}, function (_a) {
|
|
@@ -15130,7 +15168,7 @@
|
|
|
15130
15168
|
var $flipX = _a.$flipX;
|
|
15131
15169
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
15132
15170
|
});
|
|
15133
|
-
var FaceDetectionKeypointMarker = styled.div(templateObject_4$
|
|
15171
|
+
var FaceDetectionKeypointMarker = styled.div(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n position: absolute;\n width: 4px;\n height: 4px;\n border: 2px solid ", ";\n font: 10px monospace;\n color: ", ";\n border-radius: 50%;\n ", "\n transform-style: preserve-3d;\n"], ["\n position: absolute;\n width: 4px;\n height: 4px;\n border: 2px solid ", ";\n font: 10px monospace;\n color: ", ";\n border-radius: 50%;\n ", "\n transform-style: preserve-3d;\n"])), function (_a) {
|
|
15134
15172
|
var $color = _a.$color;
|
|
15135
15173
|
return $color !== null && $color !== void 0 ? $color : 'red';
|
|
15136
15174
|
}, function (_a) {
|
|
@@ -15321,9 +15359,9 @@
|
|
|
15321
15359
|
}
|
|
15322
15360
|
});
|
|
15323
15361
|
}
|
|
15324
|
-
var templateObject_1$
|
|
15362
|
+
var templateObject_1$I, templateObject_2$A, templateObject_3$r, templateObject_4$l;
|
|
15325
15363
|
|
|
15326
|
-
var GuidanceMessageContainerDiv = styled.div(templateObject_1$
|
|
15364
|
+
var GuidanceMessageContainerDiv = styled.div(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"])), function (_a) {
|
|
15327
15365
|
var $top = _a.$top;
|
|
15328
15366
|
return $top !== null && $top !== void 0 ? $top : '10vh';
|
|
15329
15367
|
}, function (_a) {
|
|
@@ -15336,14 +15374,14 @@
|
|
|
15336
15374
|
if (!portalLocation) return element;
|
|
15337
15375
|
return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
|
|
15338
15376
|
};
|
|
15339
|
-
var GuidanceMessage = styled.div(templateObject_2$
|
|
15377
|
+
var GuidanceMessage = styled.div(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n padding: 10px 12px 8px;\n border-radius: 8px;\n z-index: 10001;\n"], ["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n padding: 10px 12px 8px;\n border-radius: 8px;\n z-index: 10001;\n"])), function (props) {
|
|
15340
15378
|
var _a, _b, _c, _d, _e, _f;
|
|
15341
15379
|
return (_f = (_a = props.$background) !== null && _a !== void 0 ? _a : (_e = (_c = (_b = props.theme) === null || _b === void 0 ? void 0 : _b.guidanceMessages) === null || _c === void 0 ? void 0 : _c[(_d = props.$variant) !== null && _d !== void 0 ? _d : 'default']) === null || _e === void 0 ? void 0 : _e.backgroundColor) !== null && _f !== void 0 ? _f : '#ccc';
|
|
15342
15380
|
}, function (props) {
|
|
15343
15381
|
var _a, _b, _c, _d, _e, _f;
|
|
15344
15382
|
return (_f = (_a = props.$textColor) !== null && _a !== void 0 ? _a : (_e = (_c = (_b = props.theme) === null || _b === void 0 ? void 0 : _b.guidanceMessages) === null || _c === void 0 ? void 0 : _c[(_d = props.$variant) !== null && _d !== void 0 ? _d : 'default']) === null || _e === void 0 ? void 0 : _e.textColor) !== null && _f !== void 0 ? _f : 'black';
|
|
15345
15383
|
});
|
|
15346
|
-
var templateObject_1$
|
|
15384
|
+
var templateObject_1$H, templateObject_2$z;
|
|
15347
15385
|
|
|
15348
15386
|
function OverrideWrongDocumentTypeGuidanceDialog(_a) {
|
|
15349
15387
|
var _b = _a.classNames,
|
|
@@ -15376,18 +15414,18 @@
|
|
|
15376
15414
|
}
|
|
15377
15415
|
}, verbiage.buttonText))));
|
|
15378
15416
|
}
|
|
15379
|
-
var Container$2 = styled.div(templateObject_1$
|
|
15417
|
+
var Container$2 = styled.div(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n position: fixed;\n left: 0;\n bottom: 0;\n width: 100dvw;\n background: ", ";\n color: ", ";\n display: flex;\n z-index: 100001;\n"], ["\n position: fixed;\n left: 0;\n bottom: 0;\n width: 100dvw;\n background: ", ";\n color: ", ";\n display: flex;\n z-index: 100001;\n"])), function (props) {
|
|
15380
15418
|
var _a, _b, _c;
|
|
15381
15419
|
return (_c = (_b = (_a = props.theme.idCapture) === null || _a === void 0 ? void 0 : _a.overrideWrongDocumentTypeGuidance) === null || _b === void 0 ? void 0 : _b.backgroundColor) !== null && _c !== void 0 ? _c : '#eed202';
|
|
15382
15420
|
}, function (props) {
|
|
15383
15421
|
var _a, _b, _c;
|
|
15384
15422
|
return (_c = (_b = (_a = props.theme.idCapture) === null || _a === void 0 ? void 0 : _a.overrideWrongDocumentTypeGuidance) === null || _b === void 0 ? void 0 : _b.textColor) !== null && _c !== void 0 ? _c : 'black';
|
|
15385
15423
|
});
|
|
15386
|
-
var InnerContainer = styled.div(templateObject_2$
|
|
15387
|
-
var Message = styled.span(templateObject_3$
|
|
15388
|
-
var ButtonContainer = styled.div(templateObject_4$
|
|
15424
|
+
var InnerContainer = styled.div(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
|
|
15425
|
+
var Message = styled.span(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n display: block;\n margin: auto 12px auto 0;\n"], ["\n display: block;\n margin: auto 12px auto 0;\n"])));
|
|
15426
|
+
var ButtonContainer = styled.div(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["\n display: flex;\n margin-left: auto;\n"], ["\n display: flex;\n margin-left: auto;\n"])));
|
|
15389
15427
|
var Button$1 = styled(LoaderButton)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n white-space: nowrap;\n margin: auto;\n"], ["\n white-space: nowrap;\n margin: auto;\n"])));
|
|
15390
|
-
var templateObject_1$
|
|
15428
|
+
var templateObject_1$G, templateObject_2$y, templateObject_3$q, templateObject_4$k, templateObject_5$c;
|
|
15391
15429
|
|
|
15392
15430
|
// This is a simplified version of https://github.com/ZeeCoder/use-resize-observer.
|
|
15393
15431
|
// We have removed all options and made it compliant with React Compiler/React 19.
|
|
@@ -15668,6 +15706,21 @@
|
|
|
15668
15706
|
return Math.abs(new Date().getTime() - t.getTime());
|
|
15669
15707
|
};
|
|
15670
15708
|
|
|
15709
|
+
function r(e) {
|
|
15710
|
+
var t,
|
|
15711
|
+
f,
|
|
15712
|
+
n = "";
|
|
15713
|
+
if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
15714
|
+
var o = e.length;
|
|
15715
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
15716
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
15717
|
+
return n;
|
|
15718
|
+
}
|
|
15719
|
+
function clsx() {
|
|
15720
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
15721
|
+
return n;
|
|
15722
|
+
}
|
|
15723
|
+
|
|
15671
15724
|
var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_a) {
|
|
15672
15725
|
var _b;
|
|
15673
15726
|
var _c = _a.assets,
|
|
@@ -15709,13 +15762,13 @@
|
|
|
15709
15762
|
finished: true
|
|
15710
15763
|
}, verbiage.retryBtnText)));
|
|
15711
15764
|
};
|
|
15712
|
-
var StyledOverlayInner$3 = styled(OverlayInner$2)(templateObject_1$
|
|
15713
|
-
var StyledOverlayImageContainer$3 = styled(OverlayImageContainer)(templateObject_2$
|
|
15714
|
-
var Description$4 = styled.p(templateObject_3$
|
|
15715
|
-
var RetryButton$1 = styled(LoaderButton)(templateObject_4$
|
|
15716
|
-
var templateObject_1$
|
|
15765
|
+
var StyledOverlayInner$3 = styled(OverlayInner$2)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"], ["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
|
|
15766
|
+
var StyledOverlayImageContainer$3 = styled(OverlayImageContainer)(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n flex-grow: 0;\n"], ["\n flex-grow: 0;\n"])));
|
|
15767
|
+
var Description$4 = styled.p(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n line-height: 1.5;\n margin-bottom: 50px;\n"], ["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
|
|
15768
|
+
var RetryButton$1 = styled(LoaderButton)(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n width: 200px;\n margin: 0 auto;\n"], ["\n width: 200px;\n margin: 0 auto;\n"])));
|
|
15769
|
+
var templateObject_1$F, templateObject_2$x, templateObject_3$p, templateObject_4$j;
|
|
15717
15770
|
|
|
15718
|
-
var ExitCaptureStyledButton = styled.button(templateObject_1$
|
|
15771
|
+
var ExitCaptureStyledButton = styled.button(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n position: absolute;\n top: 12px;\n right: 12px;\n font-size: 20px;\n width: 32px;\n height: 32px;\n font-family: monospace;\n z-index: 1002;\n border: none;\n border-radius: 4px;\n background: #ccc;\n cursor: pointer;\n padding: 8px;\n box-sizing: border-box;\n display: flex;\n\n &:hover {\n background: #ddd;\n }\n\n & > svg {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n"], ["\n position: absolute;\n top: 12px;\n right: 12px;\n font-size: 20px;\n width: 32px;\n height: 32px;\n font-family: monospace;\n z-index: 1002;\n border: none;\n border-radius: 4px;\n background: #ccc;\n cursor: pointer;\n padding: 8px;\n box-sizing: border-box;\n display: flex;\n\n &:hover {\n background: #ddd;\n }\n\n & > svg {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n"])));
|
|
15719
15772
|
var ExitCaptureButton = function ExitCaptureButton(_a) {
|
|
15720
15773
|
var onClick = _a.onClick,
|
|
15721
15774
|
className = _a.className;
|
|
@@ -15759,10 +15812,10 @@
|
|
|
15759
15812
|
y2: "19.75"
|
|
15760
15813
|
}))));
|
|
15761
15814
|
};
|
|
15762
|
-
var templateObject_1$
|
|
15815
|
+
var templateObject_1$E;
|
|
15763
15816
|
|
|
15764
|
-
var ButtonsRow = styled.div(templateObject_1$
|
|
15765
|
-
var templateObject_1$
|
|
15817
|
+
var ButtonsRow = styled.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"], ["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"])));
|
|
15818
|
+
var templateObject_1$D;
|
|
15766
15819
|
|
|
15767
15820
|
function IdCaptureLoadingGraphic(props) {
|
|
15768
15821
|
var isMobile = window.innerHeight > window.innerWidth;
|
|
@@ -16243,21 +16296,21 @@
|
|
|
16243
16296
|
fill: "white"
|
|
16244
16297
|
}))));
|
|
16245
16298
|
}
|
|
16246
|
-
var LoadingGraphicWrapper = styled.div(templateObject_1$
|
|
16247
|
-
var LoadingGraphicSvg = styled.svg(templateObject_2$
|
|
16299
|
+
var LoadingGraphicWrapper = styled.div(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n display: flex;\n width: 100%;\n height: 100%;\n"], ["\n display: flex;\n width: 100%;\n height: 100%;\n"])));
|
|
16300
|
+
var LoadingGraphicSvg = styled.svg(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n"], ["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n"])), function (props) {
|
|
16248
16301
|
return props.$frame > 1 ? 1 : props.$frame === 1 ? 1.25 : 0.75;
|
|
16249
16302
|
}, function (props) {
|
|
16250
16303
|
return props.$frame >= 5 ? 10 : 0;
|
|
16251
16304
|
}, function (props) {
|
|
16252
16305
|
return props.$borderColor;
|
|
16253
16306
|
});
|
|
16254
|
-
var LoadingGraphicCardGroup = styled.g(templateObject_3$
|
|
16307
|
+
var LoadingGraphicCardGroup = styled.g(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"], ["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
|
|
16255
16308
|
return props.$offScreen ? '-500px' : '0';
|
|
16256
16309
|
});
|
|
16257
|
-
var LoadingGraphicPhoneGroup = styled.g(templateObject_4$
|
|
16310
|
+
var LoadingGraphicPhoneGroup = styled.g(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"], ["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
|
|
16258
16311
|
return props.$offScreen ? '40px' : '0';
|
|
16259
16312
|
});
|
|
16260
|
-
var templateObject_1$
|
|
16313
|
+
var templateObject_1$C, templateObject_2$w, templateObject_3$o, templateObject_4$i;
|
|
16261
16314
|
|
|
16262
16315
|
function LoadingListItemIndicator(_a) {
|
|
16263
16316
|
var _b = _a.state,
|
|
@@ -16308,34 +16361,42 @@
|
|
|
16308
16361
|
}))))));
|
|
16309
16362
|
}
|
|
16310
16363
|
|
|
16364
|
+
var wavesAnimation = styled.keyframes(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"], ["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
|
|
16365
|
+
var progressBarAnimation = styled.keyframes(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"], ["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
16366
|
+
var dualRingSpinnerAnimation = styled.keyframes(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
16367
|
+
var progressBorderAnimation = styled.keyframes(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n to {\n stroke-dashoffset: 0;\n }\n"], ["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
16368
|
+
var templateObject_1$B, templateObject_2$v, templateObject_3$n, templateObject_4$h;
|
|
16369
|
+
|
|
16311
16370
|
var legacyInstructionImageUrl$1 = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png");
|
|
16312
16371
|
var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a) {
|
|
16313
|
-
var _b, _c, _d, _e
|
|
16372
|
+
var _b, _c, _d, _e;
|
|
16314
16373
|
var onDismissed = _a.onDismissed,
|
|
16315
16374
|
onUserCancel = _a.onUserCancel,
|
|
16316
16375
|
instructions = _a.instructions,
|
|
16317
|
-
|
|
16318
|
-
rotateImage =
|
|
16319
|
-
|
|
16320
|
-
assets =
|
|
16321
|
-
|
|
16322
|
-
classNames =
|
|
16323
|
-
|
|
16324
|
-
colors =
|
|
16325
|
-
|
|
16326
|
-
rawVerbiage =
|
|
16376
|
+
_f = _a.rotateImage,
|
|
16377
|
+
rotateImage = _f === void 0 ? false : _f,
|
|
16378
|
+
_g = _a.assets,
|
|
16379
|
+
assets = _g === void 0 ? {} : _g,
|
|
16380
|
+
_h = _a.classNames,
|
|
16381
|
+
classNames = _h === void 0 ? {} : _h,
|
|
16382
|
+
_j = _a.colors,
|
|
16383
|
+
colors = _j === void 0 ? {} : _j,
|
|
16384
|
+
_k = _a.verbiage,
|
|
16385
|
+
rawVerbiage = _k === void 0 ? {} : _k,
|
|
16327
16386
|
customOverlayContent = _a.customOverlayContent;
|
|
16328
|
-
var
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16387
|
+
var sessionCheckState = useAuthContext()[0].sessionCheckState;
|
|
16388
|
+
var sessionReady = sessionCheckState === 'PASSED';
|
|
16389
|
+
var _l = useIdCaptureModelsContext(),
|
|
16390
|
+
modelsReady = _l.ready,
|
|
16391
|
+
modelDownloadProgress = _l.modelDownloadProgress;
|
|
16392
|
+
var _m = useCameraStore(),
|
|
16393
|
+
cameraReady = _m.cameraReady,
|
|
16394
|
+
cameraAccessDenied = _m.cameraAccessDenied,
|
|
16395
|
+
iphoneContinuityCameraAvailable = _m.iphoneContinuityCameraAvailable,
|
|
16396
|
+
setIphoneContinuityCameraAllowed = _m.setIphoneContinuityCameraAllowed;
|
|
16397
|
+
var _o = React.useState(false),
|
|
16398
|
+
dismissed = _o[0],
|
|
16399
|
+
setDismissed = _o[1];
|
|
16339
16400
|
assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
|
|
16340
16401
|
var verbiage = useTranslations(rawVerbiage, {
|
|
16341
16402
|
headingText: 'Use your device camera to capture your ID',
|
|
@@ -16345,19 +16406,21 @@
|
|
|
16345
16406
|
modelsReadyText: 'Guided capture experience ready',
|
|
16346
16407
|
cameraInitializingText: 'Camera initializing...',
|
|
16347
16408
|
cameraInitializedText: 'Camera ready',
|
|
16348
|
-
continueText: "Let's Go!"
|
|
16409
|
+
continueText: "Let's Go!",
|
|
16410
|
+
sessionCheckingText: 'Checking session...'
|
|
16349
16411
|
});
|
|
16412
|
+
var ready = sessionReady && modelsReady && cameraReady;
|
|
16350
16413
|
React.useEffect(function () {
|
|
16351
|
-
if (
|
|
16414
|
+
if (ready) return function () {
|
|
16352
16415
|
return null;
|
|
16353
16416
|
};
|
|
16354
16417
|
var t = setTimeout(function () {
|
|
16355
|
-
setDismissed(false);
|
|
16418
|
+
return setDismissed(false);
|
|
16356
16419
|
}, 500);
|
|
16357
16420
|
return function () {
|
|
16358
|
-
clearTimeout(t);
|
|
16421
|
+
return clearTimeout(t);
|
|
16359
16422
|
};
|
|
16360
|
-
}, [
|
|
16423
|
+
}, [ready]);
|
|
16361
16424
|
var imageRef = React.useRef(null);
|
|
16362
16425
|
if (dismissed) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
16363
16426
|
if (cameraAccessDenied) {
|
|
@@ -16430,18 +16493,18 @@
|
|
|
16430
16493
|
}, /*#__PURE__*/React.createElement(LoadingList$1, {
|
|
16431
16494
|
className: classNames.loadingList
|
|
16432
16495
|
}, /*#__PURE__*/React.createElement(LoadingListItem$1, {
|
|
16433
|
-
className:
|
|
16496
|
+
className: clsx(classNames.loadingListItem, cameraReady ? 'done' : 'running')
|
|
16434
16497
|
}, /*#__PURE__*/React.createElement(LoadingListItemIndicator, {
|
|
16435
16498
|
className: classNames.loadingListItemIndicator,
|
|
16436
16499
|
state: cameraReady ? 'done' : 'running'
|
|
16437
16500
|
}), cameraReady ? verbiage.cameraInitializedText : verbiage.cameraInitializingText), /*#__PURE__*/React.createElement(LoadingListItem$1, {
|
|
16438
|
-
className:
|
|
16501
|
+
className: clsx(classNames.loadingListItem, sessionReady && modelsReady ? 'done' : 'running')
|
|
16439
16502
|
}, /*#__PURE__*/React.createElement(LoadingListItemIndicator, {
|
|
16440
16503
|
className: classNames.loadingListItemIndicator,
|
|
16441
|
-
state: modelsReady ? 'done' : 'running'
|
|
16442
|
-
}), modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(ContinueButtonContainer$1, {
|
|
16504
|
+
state: sessionReady && modelsReady ? 'done' : 'running'
|
|
16505
|
+
}), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(ContinueButtonContainer$1, {
|
|
16443
16506
|
className: classNames.continueBtnContainer
|
|
16444
|
-
},
|
|
16507
|
+
}, ready && ( /*#__PURE__*/React.createElement(ContinueButton$1, {
|
|
16445
16508
|
autoFocus: true,
|
|
16446
16509
|
finished: true,
|
|
16447
16510
|
className: classNames.continueBtn,
|
|
@@ -16453,7 +16516,7 @@
|
|
|
16453
16516
|
}
|
|
16454
16517
|
}, verbiage.continueText))))));
|
|
16455
16518
|
};
|
|
16456
|
-
var OverlayInner$1 = styled.div(templateObject_1$
|
|
16519
|
+
var OverlayInner$1 = styled.div(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
16457
16520
|
var _a, _b, _c, _d;
|
|
16458
16521
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
|
|
16459
16522
|
}, function (props) {
|
|
@@ -16508,9 +16571,9 @@
|
|
|
16508
16571
|
var _a, _b, _c, _d, _e, _f;
|
|
16509
16572
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
|
|
16510
16573
|
});
|
|
16511
|
-
var templateObject_1$
|
|
16574
|
+
var templateObject_1$A, templateObject_2$u, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18;
|
|
16512
16575
|
|
|
16513
|
-
var ContinuityCameraCheckboxContainer = styled.div(templateObject_1$
|
|
16576
|
+
var ContinuityCameraCheckboxContainer = styled.div(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
|
|
16514
16577
|
var ContinuityCameraCheckbox = styled.input(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
16515
16578
|
var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_a) {
|
|
16516
16579
|
var _b, _c, _d, _e;
|
|
@@ -16527,7 +16590,9 @@
|
|
|
16527
16590
|
colors = _j === void 0 ? {} : _j,
|
|
16528
16591
|
_k = _a.verbiage,
|
|
16529
16592
|
rawVerbiage = _k === void 0 ? {} : _k;
|
|
16530
|
-
var
|
|
16593
|
+
var sessionCheckState = useAuthContext()[0].sessionCheckState;
|
|
16594
|
+
var sessionReady = sessionCheckState === 'PASSED';
|
|
16595
|
+
var _l = useIdCaptureModelsContext(),
|
|
16531
16596
|
modelsReady = _l.ready,
|
|
16532
16597
|
modelDownloadProgress = _l.modelDownloadProgress;
|
|
16533
16598
|
var _m = useCameraStore(useShallow(function (state) {
|
|
@@ -16554,17 +16619,18 @@
|
|
|
16554
16619
|
cameraInitializingText: 'Camera initializing...',
|
|
16555
16620
|
continueText: 'Continue'
|
|
16556
16621
|
});
|
|
16622
|
+
var ready = sessionReady && modelsReady && cameraReady;
|
|
16557
16623
|
React.useEffect(function () {
|
|
16558
|
-
if (
|
|
16624
|
+
if (ready) return function () {
|
|
16559
16625
|
return null;
|
|
16560
16626
|
};
|
|
16561
16627
|
var t = setTimeout(function () {
|
|
16562
|
-
setDismissed(false);
|
|
16628
|
+
return setDismissed(false);
|
|
16563
16629
|
}, 500);
|
|
16564
16630
|
return function () {
|
|
16565
|
-
clearTimeout(t);
|
|
16631
|
+
return clearTimeout(t);
|
|
16566
16632
|
};
|
|
16567
|
-
}, [
|
|
16633
|
+
}, [ready]);
|
|
16568
16634
|
var imageRef = React.useRef(null);
|
|
16569
16635
|
if (dismissed) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
16570
16636
|
if (cameraAccessDenied) {
|
|
@@ -16620,16 +16686,16 @@
|
|
|
16620
16686
|
}, verbiage.useContinuityCameraText)))), /*#__PURE__*/React.createElement(LoaderButton, {
|
|
16621
16687
|
className: classNames.continueBtn,
|
|
16622
16688
|
variant: "positive",
|
|
16623
|
-
disabled: !
|
|
16624
|
-
finished:
|
|
16689
|
+
disabled: !ready,
|
|
16690
|
+
finished: ready,
|
|
16625
16691
|
colors: colors.continueBtn,
|
|
16626
16692
|
onClick: function onClick() {
|
|
16627
16693
|
setDismissed(true);
|
|
16628
16694
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
16629
16695
|
}
|
|
16630
|
-
},
|
|
16696
|
+
}, ready ? verbiage.continueText : modelsReady ? verbiage.cameraInitializingText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)"))));
|
|
16631
16697
|
};
|
|
16632
|
-
var templateObject_1$
|
|
16698
|
+
var templateObject_1$z, templateObject_2$t;
|
|
16633
16699
|
|
|
16634
16700
|
var components$1 = {
|
|
16635
16701
|
"default": IdCaptureLoadingOverlayDefault,
|
|
@@ -16687,9 +16753,9 @@
|
|
|
16687
16753
|
});
|
|
16688
16754
|
};
|
|
16689
16755
|
|
|
16690
|
-
var Card = styled.div(templateObject_1$
|
|
16756
|
+
var Card = styled.div(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100dvw - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"], ["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100dvw - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
|
|
16691
16757
|
var FlexCard = styled(Card)(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
16692
|
-
var templateObject_1$
|
|
16758
|
+
var templateObject_1$y, templateObject_2$s;
|
|
16693
16759
|
|
|
16694
16760
|
var IdCaptureSuccess = function IdCaptureSuccess(_a) {
|
|
16695
16761
|
var capturedDocuments = _a.capturedDocuments,
|
|
@@ -16748,13 +16814,13 @@
|
|
|
16748
16814
|
finished: true
|
|
16749
16815
|
}, verbiage.retryText)))));
|
|
16750
16816
|
};
|
|
16751
|
-
var Heading$a = styled.h1(templateObject_1$
|
|
16817
|
+
var Heading$a = styled.h1(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"], ["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
|
|
16752
16818
|
var ImagesContainer = styled(OverlayImageContainer)(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"], ["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
|
|
16753
16819
|
var ImageRow = styled(OverlayImageRow)(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n"], ["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n"])));
|
|
16754
16820
|
var ImageCol$1 = styled.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n width: 100%;\n max-height: none !important;\n"], ["\n width: 100%;\n max-height: none !important;\n"])));
|
|
16755
16821
|
var StyledImage = styled(CapturedDocumentImg)(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
16756
16822
|
var DebugPre = styled.pre(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"], ["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"])));
|
|
16757
|
-
var templateObject_1$
|
|
16823
|
+
var templateObject_1$x, templateObject_2$r, templateObject_3$l, templateObject_4$f, templateObject_5$a, templateObject_6$8;
|
|
16758
16824
|
|
|
16759
16825
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
16760
16826
|
var _this = this;
|
|
@@ -16806,7 +16872,7 @@
|
|
|
16806
16872
|
canvas.style.height = '0';
|
|
16807
16873
|
}
|
|
16808
16874
|
|
|
16809
|
-
var IdCardGuideImageContainer = styled(IdCardBorder)(templateObject_1$
|
|
16875
|
+
var IdCardGuideImageContainer = styled(IdCardBorder)(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n position: relative;\n ", "\n box-sizing: border-box;\n"], ["\n position: relative;\n ", "\n box-sizing: border-box;\n"])), function (props) {
|
|
16810
16876
|
return props.$isVisible ? '' : 'opacity: 0;';
|
|
16811
16877
|
});
|
|
16812
16878
|
var IdCardGuideImage = styled.img(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n transform-style: preserve-3d;\n ", "\n ", "\n"], ["\n transform-style: preserve-3d;\n ", "\n ", "\n"])), function (props) {
|
|
@@ -16962,7 +17028,7 @@
|
|
|
16962
17028
|
var _a;
|
|
16963
17029
|
return (_a = props.$fillMode) !== null && _a !== void 0 ? _a : 'forwards';
|
|
16964
17030
|
});
|
|
16965
|
-
var templateObject_1$
|
|
17031
|
+
var templateObject_1$w, templateObject_2$q, templateObject_3$k, templateObject_4$e, templateObject_5$9;
|
|
16966
17032
|
|
|
16967
17033
|
var defaultIdCaptureGuideImages = {
|
|
16968
17034
|
portrait: {
|
|
@@ -17138,12 +17204,12 @@
|
|
|
17138
17204
|
style: imageStyle
|
|
17139
17205
|
})));
|
|
17140
17206
|
};
|
|
17141
|
-
var FlipImageContainer = styled(IdCardGuideImageContainer)(templateObject_1$
|
|
17207
|
+
var FlipImageContainer = styled(IdCardGuideImageContainer)(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n backface-visibility: hidden;\n transition: transform ", "s;\n transform: ", ";\n transform-style: preserve-3d;\n position: absolute;\n display: block;\n top: 0;\n width: 100%;\n max-height: 100%;\n"], ["\n backface-visibility: hidden;\n transition: transform ", "s;\n transform: ", ";\n transform-style: preserve-3d;\n position: absolute;\n display: block;\n top: 0;\n width: 100%;\n max-height: 100%;\n"])), function (props) {
|
|
17142
17208
|
return props.$transitionTime;
|
|
17143
17209
|
}, function (props) {
|
|
17144
17210
|
return props.$transforms;
|
|
17145
17211
|
});
|
|
17146
|
-
var templateObject_1$
|
|
17212
|
+
var templateObject_1$v;
|
|
17147
17213
|
|
|
17148
17214
|
var GuideOrientationContext = /*#__PURE__*/React.createContext({
|
|
17149
17215
|
orientation: 'landscape',
|
|
@@ -17430,7 +17496,7 @@
|
|
|
17430
17496
|
return v;
|
|
17431
17497
|
}).join(' ');
|
|
17432
17498
|
};
|
|
17433
|
-
var StyledPageContainer = styled(PageContainerDiv)(templateObject_1$
|
|
17499
|
+
var StyledPageContainer = styled(PageContainerDiv)(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n z-index: 1000;\n overflow-y: hidden;\n"], ["\n z-index: 1000;\n overflow-y: hidden;\n"])));
|
|
17434
17500
|
var GuidesContainer = styled.div(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n width: 100dvw;\n height: 100dvh;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n width: 100dvw;\n height: 100dvh;\n"])));
|
|
17435
17501
|
var GuideCenterRow = styled.div(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"], ["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
|
|
17436
17502
|
var GuideRegion = styled.div(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
|
|
@@ -17458,7 +17524,7 @@
|
|
|
17458
17524
|
});
|
|
17459
17525
|
var GuideText = styled.span(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"], ["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"])));
|
|
17460
17526
|
var GuideCenterInner = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n"], ["\n position: relative;\n margin: auto;\n"])));
|
|
17461
|
-
var templateObject_1$
|
|
17527
|
+
var templateObject_1$u, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$2, templateObject_9$2;
|
|
17462
17528
|
|
|
17463
17529
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
|
|
17464
17530
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
@@ -17599,11 +17665,11 @@
|
|
|
17599
17665
|
progress: progress
|
|
17600
17666
|
}));
|
|
17601
17667
|
};
|
|
17602
|
-
var CanvasWrapper$1 = styled.div(templateObject_1$
|
|
17668
|
+
var CanvasWrapper$1 = styled.div(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n z-index: -1;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n z-index: -1;\n"])), function (props) {
|
|
17603
17669
|
return props.$maskColor;
|
|
17604
17670
|
});
|
|
17605
17671
|
var Canvas$1 = styled.canvas(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n display: block;\n"], ["\n display: block;\n"])));
|
|
17606
|
-
var templateObject_1$
|
|
17672
|
+
var templateObject_1$t, templateObject_2$o;
|
|
17607
17673
|
|
|
17608
17674
|
function IdCaptureGuides(_a) {
|
|
17609
17675
|
var _b = _a.guideType,
|
|
@@ -17659,6 +17725,33 @@
|
|
|
17659
17725
|
})));
|
|
17660
17726
|
}
|
|
17661
17727
|
|
|
17728
|
+
var Spinner$1 = styled.div(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n display: inline-block;\n width: ", "px;\n height: ", "px;\n margin: auto;\n\n &:after {\n content: ' ';\n display: block;\n width: ", "px;\n height: ", "px;\n margin: 8px;\n border-radius: 50%;\n border: ", "px solid\n ", ";\n border-color: ", " transparent\n ", " transparent;\n animation: ", " 1.2s linear infinite;\n box-sizing: content-box;\n }\n"], ["\n display: inline-block;\n width: ", "px;\n height: ", "px;\n margin: auto;\n\n &:after {\n content: ' ';\n display: block;\n width: ", "px;\n height: ", "px;\n margin: 8px;\n border-radius: 50%;\n border: ", "px solid\n ", ";\n border-color: ", " transparent\n ", " transparent;\n animation: ", " 1.2s linear infinite;\n box-sizing: content-box;\n }\n"])), function (_a) {
|
|
17729
|
+
var $size = _a.$size;
|
|
17730
|
+
return $size !== null && $size !== void 0 ? $size : 80;
|
|
17731
|
+
}, function (_a) {
|
|
17732
|
+
var $size = _a.$size;
|
|
17733
|
+
return $size !== null && $size !== void 0 ? $size : 80;
|
|
17734
|
+
}, function (_a) {
|
|
17735
|
+
var $size = _a.$size;
|
|
17736
|
+
return ($size !== null && $size !== void 0 ? $size : 80) - 16;
|
|
17737
|
+
}, function (_a) {
|
|
17738
|
+
var $size = _a.$size;
|
|
17739
|
+
return ($size !== null && $size !== void 0 ? $size : 80) - 16;
|
|
17740
|
+
}, function (_a) {
|
|
17741
|
+
var $thickness = _a.$thickness;
|
|
17742
|
+
return $thickness !== null && $thickness !== void 0 ? $thickness : 6;
|
|
17743
|
+
}, function (_a) {
|
|
17744
|
+
var $color = _a.$color;
|
|
17745
|
+
return $color !== null && $color !== void 0 ? $color : '#888';
|
|
17746
|
+
}, function (_a) {
|
|
17747
|
+
var $color = _a.$color;
|
|
17748
|
+
return $color !== null && $color !== void 0 ? $color : '#888';
|
|
17749
|
+
}, function (_a) {
|
|
17750
|
+
var $color = _a.$color;
|
|
17751
|
+
return $color !== null && $color !== void 0 ? $color : '#888';
|
|
17752
|
+
}, dualRingSpinnerAnimation);
|
|
17753
|
+
var templateObject_1$s;
|
|
17754
|
+
|
|
17662
17755
|
var IdCaptureImagePreview = function IdCaptureImagePreview(_a) {
|
|
17663
17756
|
var _b = _a.classNames,
|
|
17664
17757
|
classNames = _b === void 0 ? {} : _b,
|
|
@@ -20330,6 +20423,13 @@
|
|
|
20330
20423
|
ref: canvasRef
|
|
20331
20424
|
}), children);
|
|
20332
20425
|
}
|
|
20426
|
+
function useSelfieGuidanceModelsContext() {
|
|
20427
|
+
var context = React__namespace.useContext(SelfieGuidanceModelsContext);
|
|
20428
|
+
if (!context) {
|
|
20429
|
+
throw new Error('useSelfieGuidanceModelsContext must be used within a SelfieGuidanceModelsProvider');
|
|
20430
|
+
}
|
|
20431
|
+
return context;
|
|
20432
|
+
}
|
|
20333
20433
|
|
|
20334
20434
|
var useTimeout = function useTimeout(durationMs, onTimeout, timeoutAverted, shouldWaitLonger, shouldStart) {
|
|
20335
20435
|
if (shouldStart === void 0) {
|
|
@@ -21205,6 +21305,8 @@
|
|
|
21205
21305
|
colors = _e === void 0 ? {} : _e,
|
|
21206
21306
|
_f = _a.verbiage,
|
|
21207
21307
|
rawVerbiage = _f === void 0 ? {} : _f;
|
|
21308
|
+
var sessionCheckState = useAuthContext()[0].sessionCheckState;
|
|
21309
|
+
var sessionReady = sessionCheckState === 'PASSED';
|
|
21208
21310
|
var _g = useCameraStore(useShallow(function (state) {
|
|
21209
21311
|
return {
|
|
21210
21312
|
cameraReady: state.cameraReady,
|
|
@@ -21215,7 +21317,7 @@
|
|
|
21215
21317
|
cameraReady = _g.cameraReady,
|
|
21216
21318
|
cameraAccessDenied = _g.cameraAccessDenied,
|
|
21217
21319
|
microphoneAccessDenied = _g.microphoneAccessDenied;
|
|
21218
|
-
var _h =
|
|
21320
|
+
var _h = useSelfieGuidanceModelsContext(),
|
|
21219
21321
|
modelsReady = _h.ready,
|
|
21220
21322
|
modelDownloadProgress = _h.modelDownloadProgress;
|
|
21221
21323
|
var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
|
|
@@ -21250,6 +21352,7 @@
|
|
|
21250
21352
|
});
|
|
21251
21353
|
}
|
|
21252
21354
|
var allModelsReady = modelsReady && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
|
|
21355
|
+
var ready = sessionReady && allModelsReady && cameraReady;
|
|
21253
21356
|
return /*#__PURE__*/React.createElement(OverlayContainer, {
|
|
21254
21357
|
className: classNames.container
|
|
21255
21358
|
}, /*#__PURE__*/React.createElement(OverlayInner$2, {
|
|
@@ -21269,15 +21372,15 @@
|
|
|
21269
21372
|
className: classNames.buttonsRow
|
|
21270
21373
|
}, /*#__PURE__*/React.createElement(LoaderButton, {
|
|
21271
21374
|
variant: "positive",
|
|
21272
|
-
disabled: !
|
|
21273
|
-
finished:
|
|
21375
|
+
disabled: !ready,
|
|
21376
|
+
finished: ready,
|
|
21274
21377
|
className: classNames.continueBtn,
|
|
21275
21378
|
colors: colors.continueBtn,
|
|
21276
21379
|
onClick: function onClick() {
|
|
21277
21380
|
setDismissed(true);
|
|
21278
21381
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
21279
21382
|
}
|
|
21280
|
-
},
|
|
21383
|
+
}, ready ? verbiage.continueText : allModelsReady ? verbiage.cameraInitializingText : modelDownloadProgress >= 100 ? "".concat(verbiage.modelsWarmingUpText) : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))));
|
|
21281
21384
|
};
|
|
21282
21385
|
var StyledGuidanceMessage$1 = styled(GuidanceMessage)(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"], ["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
|
|
21283
21386
|
var StyledButtonsRow$6 = styled(ButtonsRow)(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n flex-direction: column;\n padding-top: 25px;\n"], ["\n flex-direction: column;\n padding-top: 25px;\n"])));
|
|
@@ -21305,6 +21408,8 @@
|
|
|
21305
21408
|
colors = _e === void 0 ? {} : _e,
|
|
21306
21409
|
_f = _a.verbiage,
|
|
21307
21410
|
rawVerbiage = _f === void 0 ? {} : _f;
|
|
21411
|
+
var sessionCheckState = useAuthContext()[0].sessionCheckState;
|
|
21412
|
+
var sessionReady = sessionCheckState === 'PASSED';
|
|
21308
21413
|
var _g = useCameraStore(useShallow(function (state) {
|
|
21309
21414
|
return {
|
|
21310
21415
|
cameraReady: state.cameraReady,
|
|
@@ -21315,7 +21420,7 @@
|
|
|
21315
21420
|
cameraReady = _g.cameraReady,
|
|
21316
21421
|
cameraAccessDenied = _g.cameraAccessDenied,
|
|
21317
21422
|
microphoneAccessDenied = _g.microphoneAccessDenied;
|
|
21318
|
-
var _h =
|
|
21423
|
+
var _h = useSelfieGuidanceModelsContext(),
|
|
21319
21424
|
modelsReady = _h.ready,
|
|
21320
21425
|
modelDownloadProgress = _h.modelDownloadProgress;
|
|
21321
21426
|
var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
|
|
@@ -21328,7 +21433,8 @@
|
|
|
21328
21433
|
cameraInitializedText: 'Camera ready',
|
|
21329
21434
|
downloadingText: 'Downloading...',
|
|
21330
21435
|
modelsWarmingUpText: 'Loading guided capture experience...',
|
|
21331
|
-
modelsReadyText: 'Guided capture experience ready'
|
|
21436
|
+
modelsReadyText: 'Guided capture experience ready',
|
|
21437
|
+
sessionCheckingText: 'Checking session...'
|
|
21332
21438
|
});
|
|
21333
21439
|
var _j = React.useState(0),
|
|
21334
21440
|
headingTextIndex = _j[0],
|
|
@@ -21362,6 +21468,7 @@
|
|
|
21362
21468
|
});
|
|
21363
21469
|
}
|
|
21364
21470
|
var allModelsReady = modelsReady && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
|
|
21471
|
+
var ready = sessionReady && allModelsReady && cameraReady;
|
|
21365
21472
|
return /*#__PURE__*/React.createElement(OverlayContainer, {
|
|
21366
21473
|
className: classNames.container
|
|
21367
21474
|
}, /*#__PURE__*/React.createElement(OverlayInner, {
|
|
@@ -21397,18 +21504,18 @@
|
|
|
21397
21504
|
}, /*#__PURE__*/React.createElement(LoadingList, {
|
|
21398
21505
|
className: classNames.loadingList
|
|
21399
21506
|
}, /*#__PURE__*/React.createElement(LoadingListItem, {
|
|
21400
|
-
className:
|
|
21507
|
+
className: clsx(classNames.loadingListItem, cameraReady ? 'done' : 'running')
|
|
21401
21508
|
}, /*#__PURE__*/React.createElement(LoadingListItemIndicator, {
|
|
21402
21509
|
className: classNames.loadingListItemIndicator,
|
|
21403
21510
|
state: cameraReady ? 'done' : 'running'
|
|
21404
21511
|
}), cameraReady ? verbiage.cameraInitializedText : verbiage.cameraInitializingText), /*#__PURE__*/React.createElement(LoadingListItem, {
|
|
21405
|
-
className:
|
|
21512
|
+
className: clsx(classNames.loadingListItem, sessionReady && allModelsReady ? 'done' : 'running')
|
|
21406
21513
|
}, /*#__PURE__*/React.createElement(LoadingListItemIndicator, {
|
|
21407
21514
|
className: classNames.loadingListItemIndicator,
|
|
21408
|
-
state: allModelsReady ? 'done' : 'running'
|
|
21409
|
-
}), allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(ContinueButtonContainer, {
|
|
21515
|
+
state: sessionReady && allModelsReady ? 'done' : 'running'
|
|
21516
|
+
}), !sessionReady ? verbiage.sessionCheckingText : !allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(ContinueButtonContainer, {
|
|
21410
21517
|
className: classNames.continueBtnContainer
|
|
21411
|
-
},
|
|
21518
|
+
}, ready && ( /*#__PURE__*/React.createElement(ContinueButton, {
|
|
21412
21519
|
autoFocus: true,
|
|
21413
21520
|
finished: true,
|
|
21414
21521
|
className: classNames.continueBtn,
|