@exige/web-scanner-sdk 0.2.38 → 0.2.39
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/{driver-license-DC8Jb0DE.js → driver-license-BmeEh0a_.js} +16 -8
- package/dist/{driver-license-DC8Jb0DE.js.map → driver-license-BmeEh0a_.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react/guidance.d.ts +1 -0
- package/dist/react/types.d.ts +2 -2
- package/dist/react.js +424 -409
- package/dist/react.js.map +1 -1
- package/dist/scanner-sdk.js +3 -3
- package/dist/sdk/driver-license.d.ts +6 -1
- package/package.json +1 -1
|
@@ -3027,7 +3027,11 @@ function li(e, t) {
|
|
|
3027
3027
|
t?.addEventListener("abort", a, { once: !0 });
|
|
3028
3028
|
});
|
|
3029
3029
|
}
|
|
3030
|
-
|
|
3030
|
+
var ui = 1600;
|
|
3031
|
+
function di(e) {
|
|
3032
|
+
return li(ui, e);
|
|
3033
|
+
}
|
|
3034
|
+
async function fi(e, t = {}) {
|
|
3031
3035
|
let n = t.intervalMs ?? 140;
|
|
3032
3036
|
for (await Hn();;) {
|
|
3033
3037
|
if (t.signal?.aborted) throw $();
|
|
@@ -3047,7 +3051,7 @@ async function ui(e, t = {}) {
|
|
|
3047
3051
|
await li(n, t.signal);
|
|
3048
3052
|
}
|
|
3049
3053
|
}
|
|
3050
|
-
async function
|
|
3054
|
+
async function pi(e, t) {
|
|
3051
3055
|
if (!e.width || !e.height) return {
|
|
3052
3056
|
status: "backFailed",
|
|
3053
3057
|
fields: {},
|
|
@@ -3083,21 +3087,25 @@ async function di(e, t) {
|
|
|
3083
3087
|
back: r
|
|
3084
3088
|
};
|
|
3085
3089
|
}
|
|
3086
|
-
function
|
|
3090
|
+
function mi(e) {
|
|
3087
3091
|
return e === "back" ? 0 : void 0;
|
|
3088
3092
|
}
|
|
3089
|
-
function
|
|
3093
|
+
function hi(e, t) {
|
|
3090
3094
|
return e === "front" ? {
|
|
3091
3095
|
title: "Scan a driver’s license",
|
|
3092
3096
|
headline: "Show the front of the license.",
|
|
3093
3097
|
detail: t ? "Take a photo of the front. There is no live document guide." : "Place the front of the license in the frame."
|
|
3098
|
+
} : e === "flip" ? {
|
|
3099
|
+
title: "Scan a driver’s license",
|
|
3100
|
+
headline: "Turn your license over and scan the back.",
|
|
3101
|
+
detail: t ? "The PDF417 barcode is on the back. Take a photo of the entire code next." : "The PDF417 barcode is on the back. Hold the whole code in view next."
|
|
3094
3102
|
} : {
|
|
3095
3103
|
title: "Scan a driver’s license",
|
|
3096
3104
|
headline: "Hold the whole barcode in view",
|
|
3097
3105
|
detail: t ? "Take a photo of the entire PDF417 barcode. There is no document outline." : "Keep the entire PDF417 in the preview. Closer is fine if the whole code is visible."
|
|
3098
3106
|
};
|
|
3099
3107
|
}
|
|
3100
|
-
async function
|
|
3108
|
+
async function gi(e = {}) {
|
|
3101
3109
|
await x("scan"), await x("ocr");
|
|
3102
3110
|
let t = "front", n, r = !1;
|
|
3103
3111
|
return {
|
|
@@ -3114,7 +3122,7 @@ async function mi(e = {}) {
|
|
|
3114
3122
|
let r = await ci(i, a, e.scan);
|
|
3115
3123
|
return r.kind === "need-back" && (n = r.front, t = "back"), r;
|
|
3116
3124
|
}
|
|
3117
|
-
let o = await
|
|
3125
|
+
let o = await pi(i, n ?? {});
|
|
3118
3126
|
return o.status === "backFailed" ? {
|
|
3119
3127
|
kind: "retry",
|
|
3120
3128
|
status: "backFailed",
|
|
@@ -3130,6 +3138,6 @@ async function mi(e = {}) {
|
|
|
3130
3138
|
};
|
|
3131
3139
|
}
|
|
3132
3140
|
//#endregion
|
|
3133
|
-
export {
|
|
3141
|
+
export { o as $, $e as A, Le as B, Mt as C, Xe as D, zt as E, _e as F, Re as G, xe as H, Oe as I, de as J, ue as K, N as L, pt as M, ft as N, dt as O, ve as P, a as Q, O as R, Nt as S, St as T, be as U, le as V, j as W, ye as X, Ie as Y, ie as Z, Dt as _, gi as a, wt as b, ei as c, nr as d, x as et, ur as f, H as g, Ln as h, oi as i, t as it, R as j, ut as k, ri as l, Zn as m, mi as n, y as nt, fi as o, Mn as p, fe as q, hi as r, e as rt, di as s, Q as t, b as tt, Pr as u, Ft as v, Pt as w, Ct as x, Et as y, ce as z };
|
|
3134
3142
|
|
|
3135
|
-
//# sourceMappingURL=driver-license-
|
|
3143
|
+
//# sourceMappingURL=driver-license-BmeEh0a_.js.map
|