@microblink/blinkid-ux-manager 7.7.3 → 7.8.0
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";(r=>{window.__blinkidUxManagerCssCode=r})("*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}.dialog-description{margin-top:1em;text-align:center;text-wrap:pretty;font-size:1em;--un-text-opacity:1;color:rgb(var(--color-gray-500-rgb-value) / var(--un-text-opacity));line-height:calc(1em + .5rem)}.btn{height:2.5rem;-webkit-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:calc(var(--mb-size)*2.5rem);border-style:none;padding-left:calc(var(--mb-size)*1.5rem);padding-right:calc(var(--mb-size)*1.5rem);padding-top:calc(var(--mb-size)*.25rem);padding-bottom:calc(var(--mb-size)*.25rem);text-wrap:nowrap;font-size:calc(var(--mb-size)*.875rem);line-height:calc(var(--mb-size)*1.25rem);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.1s}.btn:disabled{cursor:not-allowed}.btn-primary{--un-bg-opacity:1;background-color:rgb(var(--color-primary) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--color-white-rgb-value) / var(--un-text-opacity))}.btn-secondary{background-color:transparent;--un-text-opacity:1;color:rgb(var(--color-primary) / var(--un-text-opacity));--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-opacity:1;--un-ring-color:rgb(var(--color-primary) / var(--un-ring-opacity)) }.btn-primary:enabled:hover{--un-bg-opacity:1;background-color:rgb(var(--color-accent-700-rgb-value) / var(--un-bg-opacity))}.btn-secondary:enabled:hover{--un-bg-opacity:1;background-color:rgb(var(--color-accent-25-rgb-value) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--color-accent-700-rgb-value) / var(--un-text-opacity));--un-ring-opacity:1;--un-ring-color:rgb(var(--color-accent-700-rgb-value) / var(--un-ring-opacity)) }.btn-primary:enabled:active{--un-bg-opacity:1;background-color:rgb(var(--color-accent-800-rgb-value) / var(--un-bg-opacity))}.btn-secondary:enabled:active{--un-bg-opacity:1;background-color:rgb(var(--color-accent-50-rgb-value) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--color-accent-800-rgb-value) / var(--un-text-opacity));--un-ring-opacity:1;--un-ring-color:rgb(var(--color-accent-800-rgb-value) / var(--un-ring-opacity)) }.btn-primary:disabled{--un-bg-opacity:1;background-color:rgb(var(--color-gray-300-rgb-value) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--color-gray-500-rgb-value) / var(--un-text-opacity))}.dialog-title{text-align:center;text-wrap:pretty;font-size:1.5em;--un-text-opacity:1;color:rgb(var(--color-gray-700-rgb-value) / var(--un-text-opacity));font-weight:700;line-height:calc(1em + .5rem)}.btn-secondary:disabled{--un-text-opacity:1;color:rgb(var(--color-gray-400-rgb-value) / var(--un-text-opacity));--un-ring-opacity:1;--un-ring-color:rgb(var(--color-gray-400-rgb-value) / var(--un-ring-opacity)) }.btn:enabled:focus-visible{outline-width:2px;--un-outline-color-opacity:1;outline-color:rgb(var(--color-primary) / var(--un-outline-color-opacity));outline-offset:4px;outline-style:solid}.btn-focus:enabled:focus-visible{outline-width:2px;--un-outline-color-opacity:1;outline-color:rgb(var(--color-primary) / var(--un-outline-color-opacity));outline-offset:4px;outline-style:solid}@media (min-width: 380px){.container{max-width:380px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\[--arrow-background\\:rgb\\(var\\(--color-primary\\)\\)\\]{--arrow-background:rgb(var(--color-primary))}.\\[--arrow-size\\:0\\.5rem\\]{--arrow-size:.5rem}.\\[--modal-t\\:0\\]{--modal-t:0}.contain-strict{contain:strict}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.invisible{visibility:hidden}.backface-hidden{backface-visibility:hidden}.absolute,.pos-absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.bottom-0{bottom:calc(var(--mb-size)*0rem)}.bottom-4{bottom:calc(var(--mb-size)*1rem)}.left-0{left:calc(var(--mb-size)*0rem)}.right-2\\.5{right:.625rem}.right-4{right:calc(var(--mb-size)*1rem)}.top-\\[15\\%\\]{top:15%}.top-0{top:calc(var(--mb-size)*0rem)}.top-2\\.5{top:.625rem}.z-10{z-index:10}.grid{display:grid}.grid-rows-\\[minmax\\(0\\,1fr\\)_auto\\]{grid-template-rows:minmax(0,1fr) auto}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-area-\\[1\\/1\\]{grid-area:1/1}.m-x-auto{margin-left:auto;margin-right:auto}.ms{margin-inline-start:1rem}.mt-3{margin-top:calc(var(--mb-size)*.75rem)}.\\[\\&_svg\\]\\:size-7 svg{width:calc(var(--mb-size)*1.75rem);height:calc(var(--mb-size)*1.75rem)}.size-\\[9px\\]{width:9px;height:9px}.size-12{width:calc(var(--mb-size)*3rem);height:calc(var(--mb-size)*3rem)}.size-24{width:calc(var(--mb-size)*6rem);height:calc(var(--mb-size)*6rem)}.size-9{width:calc(var(--mb-size)*2.25rem);height:calc(var(--mb-size)*2.25rem)}.size-full{width:100%;height:100%}.h-3\\.5{height:.875rem}.h-8{height:calc(var(--mb-size)*2rem)}.h-full{height:100%}.max-h-full{max-height:100%}.max-w-\\[17\\.5rem\\]{max-width:17.5rem}.max-w-\\[30ch\\]{max-width:30ch}.max-w-45{max-width:calc(var(--mb-size)*11.25rem)}.min-h-0{min-height:calc(var(--mb-size)*0rem)}.min-w-0{min-width:calc(var(--mb-size)*0rem)}.w-\\[min\\(540px\\,100\\%\\)\\]{width:min(540px,100%)}.w-100dvw{width:100dvw}.w-24{width:calc(var(--mb-size)*6rem)}.w-3\\.5{width:.875rem}.w-8{width:calc(var(--mb-size)*2rem)}.w-full{width:100%}.flex{display:flex}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.perspective-300px{-webkit-perspective:300px;perspective:300px}.rotate-y-180{--un-rotate:0;--un-rotate-y:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-130{--un-scale-x:1.3;--un-scale-y:1.3;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.preserve-3d{transform-style:preserve-3d}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.select-none{-webkit-user-select:none;user-select:none}.appearance-none{-webkit-appearance:none;appearance:none}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:calc(var(--mb-size)*.25rem)}.gap-2{gap:calc(var(--mb-size)*.5rem)}.gap-3{gap:calc(var(--mb-size)*.75rem)}.gap-6{gap:calc(var(--mb-size)*1.5rem)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2{border-radius:calc(var(--mb-size)*.5rem)}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border-none{border-style:none}.bg-black{--un-bg-opacity:1;background-color:rgb(var(--color-black-rgb-value) / var(--un-bg-opacity))}.bg-error-400\\/60{background-color:rgb(var(--color-error-400-rgb-value) / .6)}.bg-gray-300{--un-bg-opacity:1;background-color:rgb(var(--color-gray-300-rgb-value) / var(--un-bg-opacity))}.bg-gray-550\\/50{background-color:rgb(var(--color-gray-550-rgb-value) / .5)}.bg-gray-550\\/90{background-color:rgb(var(--color-gray-550-rgb-value) / .9)}.bg-primary{--un-bg-opacity:1;background-color:rgb(var(--color-primary) / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--un-bg-opacity:1;background-color:rgb(var(--color-white-rgb-value) / var(--un-bg-opacity))}.hover\\:bg-gray-100:hover{--un-bg-opacity:1;background-color:rgb(var(--color-gray-100-rgb-value) / var(--un-bg-opacity))}.active\\:bg-gray-200:active{--un-bg-opacity:1;background-color:rgb(var(--color-gray-200-rgb-value) / var(--un-bg-opacity))}.bg-opacity-50{--un-bg-opacity:.5}.\\[\\&\\>path\\]\\:fill-\\[currentColor\\]>path{fill:currentColor}.\\[\\&\\>path\\]\\:fill-\\[initial\\]>path{fill:initial}.p-\\[clamp\\(1\\.5rem\\,6dvmin\\,3rem\\)\\]{padding:clamp(1.5rem,6dvmin,3rem)}.p-2{padding:calc(var(--mb-size)*.5rem)}.px-2{padding-left:calc(var(--mb-size)*.5rem);padding-right:calc(var(--mb-size)*.5rem)}.py-3{padding-top:calc(var(--mb-size)*.75rem);padding-bottom:calc(var(--mb-size)*.75rem)}.p-inline-4{padding-inline-start:calc(var(--mb-size)*1rem);padding-inline-end:calc(var(--mb-size)*1rem)}.text-align-center,.text-center{text-align:center}.text-balance{text-wrap:balance}.text-base{font-size:calc(var(--mb-size)*1rem);line-height:calc(var(--mb-size)*1.5rem)}.text-sm{font-size:calc(var(--mb-size)*.875rem);line-height:calc(var(--mb-size)*1.25rem)}.text-\\[calc\\(0\\.875rem\\+0\\.125rem\\*var\\(--modal-t\\)\\)\\]{font-size:calc(.875rem + .125rem * var(--modal-t))}.color-white,.text-white{--un-text-opacity:1;color:rgb(var(--color-white-rgb-value) / var(--un-text-opacity))}.color-dark-900{--un-text-opacity:1;color:rgb(15 15 15 / var(--un-text-opacity))}.font-bold{font-weight:700}.text-shadow-\\[0_1px_4px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{text-shadow:0 1px 4px rgba(0,0,0,.1)}.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.backdrop-blur-sm{--un-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-blur-xl{--un-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.drop-shadow-\\[0_0_15px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--un-drop-shadow:drop-shadow(0 0 15px rgba(0,0,0,.1));filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.drop-shadow-md{--un-drop-shadow:drop-shadow(0 4px 3px var(--un-drop-shadow-color, rgb(0 0 0 / .07))) drop-shadow(0 2px 2px var(--un-drop-shadow-color, rgb(0 0 0 / .06)));filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-duration-100{transition-duration:.1s}.ease,.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}.h-100dvh{height:100dvh}@media (max-height: 639.9px){.lt-h-sm\\:gap-4{gap:calc(var(--mb-size)*1rem)}}@media (max-height: 639.9px) and (min-width: 380px){.compact\\:col-start-1{grid-column-start:1}.compact\\:col-start-2{grid-column-start:2}.compact\\:grid-cols-\\[minmax\\(7rem\\,11\\.25rem\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(7rem,11.25rem) minmax(0,1fr)}.compact\\:grid-rows-\\[minmax\\(0\\,1fr\\)\\]{grid-template-rows:minmax(0,1fr)}.compact\\:h-full{height:100%}.compact\\:max-w-\\[11\\.25rem\\]{max-width:11.25rem}.compact\\:min-h-0{min-height:calc(var(--mb-size)*0rem)}.compact\\:self-start{align-self:flex-start}.compact\\:overflow-hidden{overflow:hidden}.compact\\:overflow-y-auto{overflow-y:auto}.compact\\:\\!text-left{text-align:left!important}}")})();
|
|
2
2
|
import { AnalyticService as m1, getDeviceInfo as _1 } from "@microblink/blinkid-core";
|
|
3
3
|
import { insert as S, createComponent as l, use as Ht, template as _, isServer as de, mergeProps as ve, Dynamic as rt, spread as k, effect as Re, Portal as v1, setAttribute as He, memo as y1 } from "solid-js/web";
|
|
4
|
-
import { createRoot as qe, createSignal as L, onMount as zt, Show as W, createContext as xe, createEffect as
|
|
4
|
+
import { createRoot as qe, createSignal as L, onMount as zt, Show as W, createContext as xe, createEffect as z, useContext as De, createMemo as ye, on as at, onCleanup as re, $TRACK as E1, untrack as Se, useTransition as T1, createComputed as b1, batch as Pe, splitProps as $t, Switch as Bt, Match as K, createUniqueId as w1, Index as ft } from "solid-js";
|
|
5
5
|
import { cameraManagerStore as gt } from "@microblink/camera-manager";
|
|
6
6
|
import { EnvironmentProvider as A1 } from "@ark-ui/solid/environment";
|
|
7
7
|
import { createWithSignal as pt } from "solid-zustand";
|
|
@@ -113,7 +113,7 @@ function Te(...t) {
|
|
|
113
113
|
}), selections: r };
|
|
114
114
|
}, getSelectionKeys: () => [e ?? ke].concat(n === void 0 ? [] : x(n)) }) });
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function $(t) {
|
|
117
117
|
return typeof t == "number";
|
|
118
118
|
}
|
|
119
119
|
function Q(t) {
|
|
@@ -136,7 +136,7 @@ const jt = U(v(function(t) {
|
|
|
136
136
|
}, regex: (e) => {
|
|
137
137
|
return X(O(t, (n = e, v((i) => Q(i) && !!i.match(n)))));
|
|
138
138
|
var n;
|
|
139
|
-
} }), R1 = X(v(Q)),
|
|
139
|
+
} }), R1 = X(v(Q)), B = (t) => Object.assign(U(t), { between: (e, n) => B(O(t, ((i, r) => v((a) => $(a) && i <= a && r >= a))(e, n))), lt: (e) => B(O(t, ((n) => v((i) => $(i) && i < n))(e))), gt: (e) => B(O(t, ((n) => v((i) => $(i) && i > n))(e))), lte: (e) => B(O(t, ((n) => v((i) => $(i) && i <= n))(e))), gte: (e) => B(O(t, ((n) => v((i) => $(i) && i >= n))(e))), int: () => B(O(t, v((e) => $(e) && Number.isInteger(e)))), finite: () => B(O(t, v((e) => $(e) && Number.isFinite(e)))), positive: () => B(O(t, v((e) => $(e) && e > 0))), negative: () => B(O(t, v((e) => $(e) && e < 0))) }), D1 = B(v($)), Z = (t) => Object.assign(U(t), { between: (e, n) => Z(O(t, ((i, r) => v((a) => Y(a) && i <= a && r >= a))(e, n))), lt: (e) => Z(O(t, ((n) => v((i) => Y(i) && i < n))(e))), gt: (e) => Z(O(t, ((n) => v((i) => Y(i) && i > n))(e))), lte: (e) => Z(O(t, ((n) => v((i) => Y(i) && i <= n))(e))), gte: (e) => Z(O(t, ((n) => v((i) => Y(i) && i >= n))(e))), positive: () => Z(O(t, v((e) => Y(e) && e > 0))), negative: () => Z(O(t, v((e) => Y(e) && e < 0))) }), P1 = Z(v(Y)), I1 = U(v(function(t) {
|
|
140
140
|
return typeof t == "boolean";
|
|
141
141
|
})), k1 = U(v(function(t) {
|
|
142
142
|
return typeof t == "symbol";
|
|
@@ -1189,21 +1189,21 @@ function en(t, e = 25, n = {}) {
|
|
|
1189
1189
|
...n
|
|
1190
1190
|
}, !Number.isFinite(e)) throw new TypeError("Expected `wait` to be a finite number");
|
|
1191
1191
|
let i, r, a = [], s, o;
|
|
1192
|
-
const u = (g,
|
|
1192
|
+
const u = (g, p) => (s = tn(t, g, p), s.finally(() => {
|
|
1193
1193
|
if (s = null, n.trailing && o && !r) {
|
|
1194
1194
|
const h = u(g, o);
|
|
1195
1195
|
return o = null, h;
|
|
1196
1196
|
}
|
|
1197
1197
|
}), s), c = function(...g) {
|
|
1198
|
-
return n.trailing && (o = g), s || new Promise((
|
|
1198
|
+
return n.trailing && (o = g), s || new Promise((p) => {
|
|
1199
1199
|
const h = !r && n.leading;
|
|
1200
1200
|
clearTimeout(r), r = setTimeout(() => {
|
|
1201
1201
|
r = null;
|
|
1202
1202
|
const f = n.leading ? i : u(this, g);
|
|
1203
1203
|
o = null;
|
|
1204
|
-
for (const
|
|
1204
|
+
for (const m of a) m(f);
|
|
1205
1205
|
a = [];
|
|
1206
|
-
}, e), h ? (i = u(this, g),
|
|
1206
|
+
}, e), h ? (i = u(this, g), p(i)) : a.push(p);
|
|
1207
1207
|
});
|
|
1208
1208
|
}, d = (g) => {
|
|
1209
1209
|
g && (clearTimeout(g), r = null);
|
|
@@ -1425,8 +1425,8 @@ class an {
|
|
|
1425
1425
|
(h) => h.playbackState,
|
|
1426
1426
|
(h) => {
|
|
1427
1427
|
console.debug(`⏯️ ${h}`);
|
|
1428
|
-
const f = e !== void 0 && e !== "idle",
|
|
1429
|
-
!f &&
|
|
1428
|
+
const f = e !== void 0 && e !== "idle", m = h !== "idle", T = h === "capturing" && e !== "capturing";
|
|
1429
|
+
!f && m ? (this.#e.logCameraStartedEvent(), this.#e.sendPinglets()) : f && !m && (this.#e.logCameraClosedEvent(), this.#e.sendPinglets()), T && this.#s === this.uiState.key && (this.feedbackStabilizer.restartCurrentStateTimer(), this.#s = void 0), e = h, this.#l !== null && (h !== "capturing" ? this.clearScanTimeout() : (console.debug("🔁 continuing timeout"), this.#R(this.uiState)));
|
|
1430
1430
|
}
|
|
1431
1431
|
);
|
|
1432
1432
|
this.#n.add(n);
|
|
@@ -1435,8 +1435,8 @@ class an {
|
|
|
1435
1435
|
(h) => {
|
|
1436
1436
|
const f = new Set(
|
|
1437
1437
|
h.map((A) => j1(A))
|
|
1438
|
-
),
|
|
1439
|
-
if (h.length === 0 && !
|
|
1438
|
+
), m = this.cameraManager.getState();
|
|
1439
|
+
if (h.length === 0 && !m.videoElement) {
|
|
1440
1440
|
this.#y = f;
|
|
1441
1441
|
return;
|
|
1442
1442
|
}
|
|
@@ -1513,13 +1513,13 @@ class an {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
);
|
|
1515
1515
|
this.#n.add(g);
|
|
1516
|
-
const
|
|
1516
|
+
const p = this.cameraManager.subscribe(
|
|
1517
1517
|
(h) => h.videoElement,
|
|
1518
1518
|
(h) => {
|
|
1519
1519
|
h || (console.debug("Removing camera manager subscriptions"), this.destroy());
|
|
1520
1520
|
}
|
|
1521
1521
|
);
|
|
1522
|
-
this.#n.add(
|
|
1522
|
+
this.#n.add(p), this.#n.add(() => {
|
|
1523
1523
|
this.stopUiUpdateLoop();
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
@@ -2247,7 +2247,7 @@ const Xt = (t) => {
|
|
|
2247
2247
|
...cn,
|
|
2248
2248
|
...t.userStrings
|
|
2249
2249
|
});
|
|
2250
|
-
|
|
2250
|
+
z(() => {
|
|
2251
2251
|
n(i());
|
|
2252
2252
|
});
|
|
2253
2253
|
const r = {
|
|
@@ -2292,17 +2292,17 @@ function dn(t, e, n, i = {}) {
|
|
|
2292
2292
|
if (!r.size || u) {
|
|
2293
2293
|
u?.dispose(), r.delete(ze);
|
|
2294
2294
|
for (let d = 0; d < s.length; d++) {
|
|
2295
|
-
const g = s[d],
|
|
2296
|
-
a(o, g, d,
|
|
2295
|
+
const g = s[d], p = e(g, d);
|
|
2296
|
+
a(o, g, d, p);
|
|
2297
2297
|
}
|
|
2298
2298
|
return o;
|
|
2299
2299
|
}
|
|
2300
2300
|
const c = new Set(r.keys());
|
|
2301
2301
|
for (let d = 0; d < s.length; d++) {
|
|
2302
|
-
const g = s[d],
|
|
2303
|
-
c.delete(
|
|
2304
|
-
const h = r.get(
|
|
2305
|
-
h ? (o[d] = h.mapped, h.setIndex?.(d), h.setItem(() => g)) : a(o, g, d,
|
|
2302
|
+
const g = s[d], p = e(g, d);
|
|
2303
|
+
c.delete(p);
|
|
2304
|
+
const h = r.get(p);
|
|
2305
|
+
h ? (o[d] = h.mapped, h.setIndex?.(d), h.setItem(() => g)) : a(o, g, d, p);
|
|
2306
2306
|
}
|
|
2307
2307
|
for (const d of c)
|
|
2308
2308
|
r.get(d)?.dispose(), r.delete(d);
|
|
@@ -2311,10 +2311,10 @@ function dn(t, e, n, i = {}) {
|
|
|
2311
2311
|
};
|
|
2312
2312
|
function a(s, o, u, c) {
|
|
2313
2313
|
qe((d) => {
|
|
2314
|
-
const [g,
|
|
2314
|
+
const [g, p] = L(o), h = { setItem: p, dispose: d };
|
|
2315
2315
|
if (n.length > 1) {
|
|
2316
|
-
const [f,
|
|
2317
|
-
h.setIndex =
|
|
2316
|
+
const [f, m] = L(u);
|
|
2317
|
+
h.setIndex = m, h.mapped = n(g, f);
|
|
2318
2318
|
} else
|
|
2319
2319
|
h.mapped = n(g);
|
|
2320
2320
|
r.set(c, h), s[u] = h.mapped;
|
|
@@ -2437,22 +2437,22 @@ function wt(t) {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
class Cn {
|
|
2439
2439
|
constructor(e, n = [0, 1], { easing: i, duration: r = H.duration, delay: a = H.delay, endDelay: s = H.endDelay, repeat: o = H.repeat, offset: u, direction: c = "normal", autoplay: d = !0 } = {}) {
|
|
2440
|
-
if (this.startTime = null, this.rate = 1, this.t = 0, this.cancelTimestamp = null, this.easing = J, this.duration = 0, this.totalDuration = 0, this.repeat = 0, this.playState = "idle", this.finished = new Promise((
|
|
2441
|
-
this.resolve =
|
|
2440
|
+
if (this.startTime = null, this.rate = 1, this.t = 0, this.cancelTimestamp = null, this.easing = J, this.duration = 0, this.totalDuration = 0, this.repeat = 0, this.playState = "idle", this.finished = new Promise((p, h) => {
|
|
2441
|
+
this.resolve = p, this.reject = h;
|
|
2442
2442
|
}), i = i || H.easing, Ze(i)) {
|
|
2443
|
-
const
|
|
2444
|
-
i =
|
|
2443
|
+
const p = i.createAnimation(n);
|
|
2444
|
+
i = p.easing, n = p.keyframes || n, r = p.duration || r;
|
|
2445
2445
|
}
|
|
2446
2446
|
this.repeat = o, this.easing = le(i) ? J : wt(i), this.updateDuration(r);
|
|
2447
2447
|
const g = En(n, u, le(i) ? i.map(wt) : J);
|
|
2448
|
-
this.tick = (
|
|
2448
|
+
this.tick = (p) => {
|
|
2449
2449
|
var h;
|
|
2450
2450
|
a = a;
|
|
2451
2451
|
let f = 0;
|
|
2452
|
-
this.pauseTime !== void 0 ? f = this.pauseTime : f = (
|
|
2453
|
-
const
|
|
2454
|
-
let T = Math.floor(
|
|
2455
|
-
!A &&
|
|
2452
|
+
this.pauseTime !== void 0 ? f = this.pauseTime : f = (p - this.startTime) * this.rate, this.t = f, f /= 1e3, f = Math.max(f - a, 0), this.playState === "finished" && this.pauseTime === void 0 && (f = this.totalDuration);
|
|
2453
|
+
const m = f / this.duration;
|
|
2454
|
+
let T = Math.floor(m), A = m % 1;
|
|
2455
|
+
!A && m >= 1 && (A = 1), A === 1 && T--;
|
|
2456
2456
|
const N = T % 2;
|
|
2457
2457
|
(c === "reverse" || c === "alternate" && N || c === "alternate-reverse" && !N) && (A = 1 - A);
|
|
2458
2458
|
const w = f >= this.totalDuration ? 1 : Math.min(A, 1), R = g(this.easing(w));
|
|
@@ -2644,37 +2644,37 @@ function Wn() {
|
|
|
2644
2644
|
}
|
|
2645
2645
|
function jn(t, e, n, i = {}, r) {
|
|
2646
2646
|
const a = Wn(), s = i.record !== !1 && a;
|
|
2647
|
-
let o, { duration: u = H.duration, delay: c = H.delay, endDelay: d = H.endDelay, repeat: g = H.repeat, easing:
|
|
2647
|
+
let o, { duration: u = H.duration, delay: c = H.delay, endDelay: d = H.endDelay, repeat: g = H.repeat, easing: p = H.easing, persist: h = !1, direction: f, offset: m, allowWebkitAcceleration: T = !1, autoplay: A = !0 } = i;
|
|
2648
2648
|
const N = o1(t), w = ct(e);
|
|
2649
2649
|
let R = oe.waapi();
|
|
2650
2650
|
w && Un(t, e);
|
|
2651
2651
|
const y = et(e), D = Dn(N.values, y), E = ue.get(y);
|
|
2652
|
-
return Vn(D.animation, !(Ze(
|
|
2652
|
+
return Vn(D.animation, !(Ze(p) && D.generator) && i.record !== !1), () => {
|
|
2653
2653
|
const P = () => {
|
|
2654
2654
|
var C, q;
|
|
2655
2655
|
return (q = (C = _e.get(t, y)) !== null && C !== void 0 ? C : E?.initialValue) !== null && q !== void 0 ? q : 0;
|
|
2656
2656
|
};
|
|
2657
2657
|
let b = $n(Bn(n), P);
|
|
2658
2658
|
const j = Kn(b, E);
|
|
2659
|
-
if (Ze(
|
|
2660
|
-
const C =
|
|
2661
|
-
|
|
2659
|
+
if (Ze(p)) {
|
|
2660
|
+
const C = p.createAnimation(b, e !== "opacity", P, y, D);
|
|
2661
|
+
p = C.easing, b = C.keyframes || b, u = C.duration || u;
|
|
2662
2662
|
}
|
|
2663
|
-
if (Je(y) && (oe.cssRegisterProperty() ? xn(y) : R = !1), w && !oe.linearEasing() && (we(
|
|
2663
|
+
if (Je(y) && (oe.cssRegisterProperty() ? xn(y) : R = !1), w && !oe.linearEasing() && (we(p) || le(p) && p.some(we)) && (R = !1), R) {
|
|
2664
2664
|
E && (b = b.map((te) => be(te) ? E.toDefaultUnit(te) : te)), b.length === 1 && (!oe.partialKeyframes() || s) && b.unshift(P());
|
|
2665
2665
|
const C = {
|
|
2666
2666
|
delay: $e.ms(c),
|
|
2667
2667
|
duration: $e.ms(u),
|
|
2668
2668
|
endDelay: $e.ms(d),
|
|
2669
|
-
easing: le(
|
|
2669
|
+
easing: le(p) ? void 0 : Mt(p, u),
|
|
2670
2670
|
direction: f,
|
|
2671
2671
|
iterations: g + 1,
|
|
2672
2672
|
fill: "both"
|
|
2673
2673
|
};
|
|
2674
2674
|
o = t.animate({
|
|
2675
2675
|
[y]: b,
|
|
2676
|
-
offset:
|
|
2677
|
-
easing: le(
|
|
2676
|
+
offset: m,
|
|
2677
|
+
easing: le(p) ? p.map((te) => Mt(te, u)) : void 0
|
|
2678
2678
|
}, C), o.finished || (o.finished = new Promise((te, p1) => {
|
|
2679
2679
|
o.onfinish = te, o.oncancel = p1;
|
|
2680
2680
|
}));
|
|
@@ -2687,7 +2687,7 @@ function jn(t, e, n, i = {}, r) {
|
|
|
2687
2687
|
_e.set(t, y, j ? j(C) : C);
|
|
2688
2688
|
}, b, Object.assign(Object.assign({}, i), {
|
|
2689
2689
|
duration: u,
|
|
2690
|
-
easing:
|
|
2690
|
+
easing: p
|
|
2691
2691
|
}));
|
|
2692
2692
|
else {
|
|
2693
2693
|
const C = b[b.length - 1];
|
|
@@ -2696,9 +2696,9 @@ function jn(t, e, n, i = {}, r) {
|
|
|
2696
2696
|
return s && a(t, e, b, {
|
|
2697
2697
|
duration: u,
|
|
2698
2698
|
delay: c,
|
|
2699
|
-
easing:
|
|
2699
|
+
easing: p,
|
|
2700
2700
|
repeat: g,
|
|
2701
|
-
offset:
|
|
2701
|
+
offset: m
|
|
2702
2702
|
}, "motion-one"), D.setAnimation(o), o && !A && o.pause(), o;
|
|
2703
2703
|
};
|
|
2704
2704
|
}
|
|
@@ -2734,8 +2734,8 @@ function Xn(t, e, { root: n, margin: i, amount: r = "any" } = {}) {
|
|
|
2734
2734
|
const g = s.get(d.target);
|
|
2735
2735
|
if (d.isIntersecting !== !!g)
|
|
2736
2736
|
if (d.isIntersecting) {
|
|
2737
|
-
const
|
|
2738
|
-
we(
|
|
2737
|
+
const p = e(d);
|
|
2738
|
+
we(p) ? s.set(d.target, p) : u.unobserve(d.target);
|
|
2739
2739
|
} else g && (g(d), s.delete(d.target));
|
|
2740
2740
|
});
|
|
2741
2741
|
}, u = new IntersectionObserver(o, {
|
|
@@ -2823,13 +2823,13 @@ const ai = {
|
|
|
2823
2823
|
function li(t = {}, e) {
|
|
2824
2824
|
let n, i = e ? e.getDepth() + 1 : 0;
|
|
2825
2825
|
const r = { initial: !0, animate: !0 }, a = {}, s = {};
|
|
2826
|
-
for (const
|
|
2827
|
-
s[
|
|
2826
|
+
for (const m of kt)
|
|
2827
|
+
s[m] = typeof t[m] == "string" ? t[m] : e?.getContext()[m];
|
|
2828
2828
|
const o = t.initial === !1 ? "animate" : "initial";
|
|
2829
2829
|
let u = Ct(t[o] || s[o], t.variants) || {}, c = c1(u, ["transition"]);
|
|
2830
2830
|
const d = Object.assign({}, c);
|
|
2831
2831
|
function* g() {
|
|
2832
|
-
var
|
|
2832
|
+
var m, T;
|
|
2833
2833
|
const A = c;
|
|
2834
2834
|
c = {};
|
|
2835
2835
|
const N = {};
|
|
@@ -2839,7 +2839,7 @@ function li(t = {}, e) {
|
|
|
2839
2839
|
const P = Ct(t[E]);
|
|
2840
2840
|
if (P)
|
|
2841
2841
|
for (const b in P)
|
|
2842
|
-
b !== "transition" && (c[b] = P[b], N[b] = qn((T = (
|
|
2842
|
+
b !== "transition" && (c[b] = P[b], N[b] = qn((T = (m = P.transition) !== null && m !== void 0 ? m : t.transition) !== null && T !== void 0 ? T : {}, b));
|
|
2843
2843
|
}
|
|
2844
2844
|
const w = /* @__PURE__ */ new Set([
|
|
2845
2845
|
...Object.keys(c),
|
|
@@ -2857,29 +2857,29 @@ function li(t = {}, e) {
|
|
|
2857
2857
|
n.dispatchEvent(Dt("motioncomplete", D));
|
|
2858
2858
|
}).catch(n1);
|
|
2859
2859
|
}
|
|
2860
|
-
const
|
|
2861
|
-
r[
|
|
2860
|
+
const p = (m, T) => () => {
|
|
2861
|
+
r[m] = T, We(f);
|
|
2862
2862
|
}, h = () => {
|
|
2863
|
-
for (const
|
|
2864
|
-
const T = Ce[
|
|
2865
|
-
T && !A ? a[
|
|
2866
|
-
enable: m
|
|
2867
|
-
disable: m
|
|
2868
|
-
}, t) : !T && A && (A(), delete a[
|
|
2863
|
+
for (const m in Ce) {
|
|
2864
|
+
const T = Ce[m].isActive(t), A = a[m];
|
|
2865
|
+
T && !A ? a[m] = Ce[m].subscribe(n, {
|
|
2866
|
+
enable: p(m, !0),
|
|
2867
|
+
disable: p(m, !1)
|
|
2868
|
+
}, t) : !T && A && (A(), delete a[m]);
|
|
2869
2869
|
}
|
|
2870
2870
|
}, f = {
|
|
2871
|
-
update: (
|
|
2872
|
-
n && (t =
|
|
2871
|
+
update: (m) => {
|
|
2872
|
+
n && (t = m, h(), We(f));
|
|
2873
2873
|
},
|
|
2874
|
-
setActive: (
|
|
2875
|
-
n && (r[
|
|
2874
|
+
setActive: (m, T) => {
|
|
2875
|
+
n && (r[m] = T, We(f));
|
|
2876
2876
|
},
|
|
2877
2877
|
animateUpdates: g,
|
|
2878
2878
|
getDepth: () => i,
|
|
2879
2879
|
getTarget: () => c,
|
|
2880
2880
|
getOptions: () => t,
|
|
2881
2881
|
getContext: () => s,
|
|
2882
|
-
mount: (
|
|
2882
|
+
mount: (m) => (s1(!!m, "Animation state must be mounted with valid Element"), n = m, nt.set(n, f), h(), () => {
|
|
2883
2883
|
nt.delete(n), ni(f);
|
|
2884
2884
|
for (const T in a)
|
|
2885
2885
|
a[T]();
|
|
@@ -2927,37 +2927,37 @@ function hi(t, e) {
|
|
|
2927
2927
|
e.appear ? [] : i
|
|
2928
2928
|
), [u] = T1();
|
|
2929
2929
|
let c, d = !1;
|
|
2930
|
-
function g(f,
|
|
2930
|
+
function g(f, m) {
|
|
2931
2931
|
if (!f)
|
|
2932
|
-
return
|
|
2932
|
+
return m && m();
|
|
2933
2933
|
d = !0, a(f, () => {
|
|
2934
2934
|
Pe(() => {
|
|
2935
|
-
d = !1, o((T) => T.filter((A) => A !== f)),
|
|
2935
|
+
d = !1, o((T) => T.filter((A) => A !== f)), m && m();
|
|
2936
2936
|
});
|
|
2937
2937
|
});
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2940
|
-
const
|
|
2941
|
-
if (!
|
|
2939
|
+
function p(f) {
|
|
2940
|
+
const m = c;
|
|
2941
|
+
if (!m)
|
|
2942
2942
|
return f && f();
|
|
2943
|
-
c = void 0, o((T) => [
|
|
2943
|
+
c = void 0, o((T) => [m, ...T]), r(m, f ?? di);
|
|
2944
2944
|
}
|
|
2945
2945
|
const h = e.mode === "out-in" ? (
|
|
2946
2946
|
// exit -> enter
|
|
2947
|
-
(f) => d || g(f,
|
|
2947
|
+
(f) => d || g(f, p)
|
|
2948
2948
|
) : e.mode === "in-out" ? (
|
|
2949
2949
|
// enter -> exit
|
|
2950
|
-
(f) =>
|
|
2950
|
+
(f) => p(() => g(f))
|
|
2951
2951
|
) : (
|
|
2952
2952
|
// exit & enter
|
|
2953
2953
|
(f) => {
|
|
2954
|
-
g(f),
|
|
2954
|
+
g(f), p();
|
|
2955
2955
|
}
|
|
2956
2956
|
);
|
|
2957
2957
|
return b1(
|
|
2958
2958
|
(f) => {
|
|
2959
|
-
const
|
|
2960
|
-
return Se(u) ? (u(), f) : (
|
|
2959
|
+
const m = t();
|
|
2960
|
+
return Se(u) ? (u(), f) : (m !== f && (c = m, Pe(() => Se(() => h(f)))), m);
|
|
2961
2961
|
},
|
|
2962
2962
|
e.appear ? void 0 : n
|
|
2963
2963
|
), s;
|
|
@@ -2992,10 +2992,10 @@ function gi(t, e, n, i) {
|
|
|
2992
2992
|
...e(),
|
|
2993
2993
|
initial: !1
|
|
2994
2994
|
} : e(), i);
|
|
2995
|
-
return
|
|
2995
|
+
return z(() => {
|
|
2996
2996
|
if (n && !n.mount()) return;
|
|
2997
2997
|
const a = t(), s = r.mount(a);
|
|
2998
|
-
|
|
2998
|
+
z(() => r.update(e())), re(() => {
|
|
2999
2999
|
n && e().exit ? (r.setActive("exit", !0), a.addEventListener("motioncomplete", s)) : s();
|
|
3000
3000
|
});
|
|
3001
3001
|
}), [r, ci(r.getTarget())];
|
|
@@ -3021,7 +3021,7 @@ var pi = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "va
|
|
|
3021
3021
|
}));
|
|
3022
3022
|
}
|
|
3023
3023
|
});
|
|
3024
|
-
},
|
|
3024
|
+
}, V = new Proxy(Gt, {
|
|
3025
3025
|
get: (t, e) => (n) => l(Gt, ve(n, {
|
|
3026
3026
|
tag: e
|
|
3027
3027
|
}))
|
|
@@ -3213,7 +3213,7 @@ const Li = (t) => {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
}), null), r;
|
|
3215
3215
|
})();
|
|
3216
|
-
}, Hi = () => l(
|
|
3216
|
+
}, Hi = () => l(V, {
|
|
3217
3217
|
initial: {
|
|
3218
3218
|
opacity: 0,
|
|
3219
3219
|
scale: 0.5
|
|
@@ -3239,7 +3239,7 @@ const Li = (t) => {
|
|
|
3239
3239
|
const t = "backface-hidden drop-shadow-[0_0_15px_rgba(0,0,0,0.1)]";
|
|
3240
3240
|
return (() => {
|
|
3241
3241
|
var e = h1();
|
|
3242
|
-
return S(e, l(
|
|
3242
|
+
return S(e, l(V, {
|
|
3243
3243
|
class: "relative preserve-3d w-24",
|
|
3244
3244
|
initial: {
|
|
3245
3245
|
opacity: 0
|
|
@@ -3285,7 +3285,7 @@ const Li = (t) => {
|
|
|
3285
3285
|
};
|
|
3286
3286
|
return (() => {
|
|
3287
3287
|
var n = h1();
|
|
3288
|
-
return S(n, l(
|
|
3288
|
+
return S(n, l(V, {
|
|
3289
3289
|
class: "relative",
|
|
3290
3290
|
initial: {
|
|
3291
3291
|
opacity: 0
|
|
@@ -3301,7 +3301,7 @@ const Li = (t) => {
|
|
|
3301
3301
|
},
|
|
3302
3302
|
get children() {
|
|
3303
3303
|
var i = Ui();
|
|
3304
|
-
return S(i, l(
|
|
3304
|
+
return S(i, l(V, {
|
|
3305
3305
|
class: "w-24",
|
|
3306
3306
|
initial: {
|
|
3307
3307
|
opacity: 0.3
|
|
@@ -3320,7 +3320,7 @@ const Li = (t) => {
|
|
|
3320
3320
|
class: "[&>path]:fill-[currentColor] drop-shadow-[0_0_15px_rgba(0,0,0,0.1)]"
|
|
3321
3321
|
});
|
|
3322
3322
|
}
|
|
3323
|
-
}), null), S(i, l(
|
|
3323
|
+
}), null), S(i, l(V, {
|
|
3324
3324
|
class: "w-24",
|
|
3325
3325
|
initial: {
|
|
3326
3326
|
opacity: 1
|
|
@@ -3339,7 +3339,7 @@ const Li = (t) => {
|
|
|
3339
3339
|
class: "[&>path]:fill-[currentColor] drop-shadow-[0_0_15px_rgba(0,0,0,0.1)]"
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
|
-
}), null), S(i, l(
|
|
3342
|
+
}), null), S(i, l(V, {
|
|
3343
3343
|
class: "absolute bottom-0 w-full",
|
|
3344
3344
|
initial: {
|
|
3345
3345
|
y: "0"
|
|
@@ -3362,7 +3362,7 @@ const Li = (t) => {
|
|
|
3362
3362
|
}
|
|
3363
3363
|
})), n;
|
|
3364
3364
|
})();
|
|
3365
|
-
}, dt = (t) => l(
|
|
3365
|
+
}, dt = (t) => l(V.div, {
|
|
3366
3366
|
get class() {
|
|
3367
3367
|
return ut("absolute bottom-0 grid size-full place-items-center rounded-full backdrop-blur-xl", t.type === "error" ? "bg-error-400/60 " : "bg-gray-550/50");
|
|
3368
3368
|
},
|
|
@@ -3384,7 +3384,7 @@ const Li = (t) => {
|
|
|
3384
3384
|
}), Bi = () => l(dt, {
|
|
3385
3385
|
type: "searching",
|
|
3386
3386
|
get children() {
|
|
3387
|
-
return l(
|
|
3387
|
+
return l(V, {
|
|
3388
3388
|
class: "will-change-transform",
|
|
3389
3389
|
animate: {
|
|
3390
3390
|
opacity: 1,
|
|
@@ -3414,7 +3414,7 @@ const Li = (t) => {
|
|
|
3414
3414
|
}), Ki = () => l(dt, {
|
|
3415
3415
|
type: "processing",
|
|
3416
3416
|
get children() {
|
|
3417
|
-
return l(
|
|
3417
|
+
return l(V, {
|
|
3418
3418
|
animate: {
|
|
3419
3419
|
opacity: 1,
|
|
3420
3420
|
rotate: "360deg"
|
|
@@ -3454,7 +3454,7 @@ const Li = (t) => {
|
|
|
3454
3454
|
return n();
|
|
3455
3455
|
},
|
|
3456
3456
|
get children() {
|
|
3457
|
-
return l(
|
|
3457
|
+
return l(V.div, {
|
|
3458
3458
|
initial: {
|
|
3459
3459
|
opacity: 0,
|
|
3460
3460
|
transform: "translateY(2rem)"
|
|
@@ -3571,11 +3571,11 @@ function rr(t, e, n) {
|
|
|
3571
3571
|
return;
|
|
3572
3572
|
const i = /* @__PURE__ */ new WeakMap(), { observe: r, unobserve: a } = ir((s) => {
|
|
3573
3573
|
for (const o of s) {
|
|
3574
|
-
const { contentRect: u, target: c } = o, d = Math.round(u.width), g = Math.round(u.height),
|
|
3575
|
-
(!
|
|
3574
|
+
const { contentRect: u, target: c } = o, d = Math.round(u.width), g = Math.round(u.height), p = i.get(c);
|
|
3575
|
+
(!p || p.width !== d || p.height !== g) && (e(u, c, o), i.set(c, { width: d, height: g }));
|
|
3576
3576
|
}
|
|
3577
3577
|
}, n);
|
|
3578
|
-
|
|
3578
|
+
z((s) => {
|
|
3579
3579
|
const o = Ji(tr(er(t)));
|
|
3580
3580
|
return nr(o, s, r, a), o;
|
|
3581
3581
|
}, []);
|
|
@@ -3675,7 +3675,7 @@ const ht = (t) => {
|
|
|
3675
3675
|
children: (c) => {
|
|
3676
3676
|
const d = () => {
|
|
3677
3677
|
const {
|
|
3678
|
-
label:
|
|
3678
|
+
label: p,
|
|
3679
3679
|
...h
|
|
3680
3680
|
} = c().action;
|
|
3681
3681
|
return h;
|
|
@@ -3809,14 +3809,14 @@ const Ar = (t) => {
|
|
|
3809
3809
|
}]), d = () => {
|
|
3810
3810
|
n.blinkIdUxManager.analytics.logHelpClosedEvent(o()), a(0);
|
|
3811
3811
|
};
|
|
3812
|
-
|
|
3812
|
+
z(at(() => s(), (f) => {
|
|
3813
3813
|
f ? n.blinkIdUxManager.analytics.logHelpOpenedEvent() : d();
|
|
3814
3814
|
}, {
|
|
3815
3815
|
defer: !0
|
|
3816
3816
|
})), re(() => {
|
|
3817
3817
|
d();
|
|
3818
3818
|
});
|
|
3819
|
-
const g = w1(), [
|
|
3819
|
+
const g = w1(), [p, h] = L(null);
|
|
3820
3820
|
return l(ht, {
|
|
3821
3821
|
get mountTarget() {
|
|
3822
3822
|
return n.cameraManagerComponent.overlayLayerNode;
|
|
@@ -3827,7 +3827,7 @@ const Ar = (t) => {
|
|
|
3827
3827
|
showCloseButton: !0,
|
|
3828
3828
|
onEscapeKeyDown: () => u(),
|
|
3829
3829
|
onCloseClicked: () => u(),
|
|
3830
|
-
initialFocusEl: () =>
|
|
3830
|
+
initialFocusEl: () => p(),
|
|
3831
3831
|
get "aria-label"() {
|
|
3832
3832
|
return e.scanning_help;
|
|
3833
3833
|
},
|
|
@@ -3848,7 +3848,7 @@ const Ar = (t) => {
|
|
|
3848
3848
|
};
|
|
3849
3849
|
},
|
|
3850
3850
|
get children() {
|
|
3851
|
-
var f = Tr(),
|
|
3851
|
+
var f = Tr(), m = f.firstChild, T = m.firstChild, A = m.nextSibling;
|
|
3852
3852
|
return S(T, l(ft, {
|
|
3853
3853
|
get each() {
|
|
3854
3854
|
return c();
|
|
@@ -3900,19 +3900,19 @@ const Ar = (t) => {
|
|
|
3900
3900
|
h && h > 0 && (c = window.setTimeout(() => {
|
|
3901
3901
|
a(!1);
|
|
3902
3902
|
}, h));
|
|
3903
|
-
},
|
|
3903
|
+
}, p = () => {
|
|
3904
3904
|
const h = n.helpTooltipShowDelay;
|
|
3905
3905
|
h && h > 0 && (u = window.setTimeout(() => {
|
|
3906
3906
|
a(!0), o(!0), g();
|
|
3907
3907
|
}, h));
|
|
3908
3908
|
};
|
|
3909
|
-
return re(d),
|
|
3909
|
+
return re(d), z(() => {
|
|
3910
3910
|
if (!t.isProcessing) {
|
|
3911
3911
|
a(!1), o(!1), d();
|
|
3912
3912
|
return;
|
|
3913
3913
|
}
|
|
3914
|
-
!r() && !s() &&
|
|
3915
|
-
}),
|
|
3914
|
+
!r() && !s() && p();
|
|
3915
|
+
}), z(() => {
|
|
3916
3916
|
r() && n.blinkIdUxManager.analytics.logHelpTooltipDisplayedEvent();
|
|
3917
3917
|
}), l(ae.Root, {
|
|
3918
3918
|
positioning: {
|
|
@@ -3981,7 +3981,7 @@ const Ir = (t) => {
|
|
|
3981
3981
|
showOnboardingGuide: !1
|
|
3982
3982
|
});
|
|
3983
3983
|
};
|
|
3984
|
-
return
|
|
3984
|
+
return z(at(() => r(), (s) => {
|
|
3985
3985
|
s && n.blinkIdUxManager.analytics.logOnboardingDisplayedEvent();
|
|
3986
3986
|
})), l(ht, {
|
|
3987
3987
|
get mountTarget() {
|
|
@@ -4045,19 +4045,21 @@ const Ur = (t) => {
|
|
|
4045
4045
|
n({
|
|
4046
4046
|
documentFiltered: !0
|
|
4047
4047
|
}), e.blinkIdUxManager.analytics.logAlertDisplayedEvent("DocumentClassNotAllowed");
|
|
4048
|
-
}), o = pt(gt)((w) => w.playbackState), u = pt(gt)((w) => w.errorState), c = () => o() === "capturing", d = () => !f(), g = () => !!e.showTimeoutModal && e.errorState === "timeout",
|
|
4048
|
+
}), o = pt(gt)((w) => w.playbackState), u = pt(gt)((w) => w.errorState), c = () => o() === "capturing", d = () => !f(), g = () => !!e.showTimeoutModal && e.errorState === "timeout", p = () => !!e.showUnsupportedDocumentModal && e.errorState === "unsupported_document", h = () => !!e.showDocumentFilteredModal && e.documentFiltered, f = () => g() || h() || p() || // TODO: Unify modal dialogs in blinkid UX manager
|
|
4049
4049
|
!!e.showOnboardingGuide || !!e.showHelpModal || // camera manager
|
|
4050
4050
|
!!u();
|
|
4051
|
-
|
|
4051
|
+
z(() => {
|
|
4052
4052
|
f() ? (e.blinkIdUxManager.cameraManager.stopFrameCapture(), e.blinkIdUxManager.stopUiUpdateLoop()) : (e.blinkIdUxManager.cameraManager.startFrameCapture(), e.blinkIdUxManager.startUiUpdateLoop());
|
|
4053
4053
|
});
|
|
4054
|
-
const
|
|
4054
|
+
const m = () => e.blinkIdUxManager.showDemoOverlay, T = () => e.blinkIdUxManager.showProductionOverlay, A = e.blinkIdUxManager.addOnUiStateChangedCallback(r);
|
|
4055
4055
|
re(() => {
|
|
4056
4056
|
A(), a(), s();
|
|
4057
4057
|
});
|
|
4058
4058
|
const N = () => e.blinkIdUxManager.deviceInfo?.derivedDeviceInfo.formFactors.includes("Desktop");
|
|
4059
|
-
return
|
|
4059
|
+
return z(() => {
|
|
4060
4060
|
g() && e.blinkIdUxManager.analytics.logAlertDisplayedEvent("StepTimeout");
|
|
4061
|
+
}), z(() => {
|
|
4062
|
+
p() && e.blinkIdUxManager.analytics.logAlertDisplayedEvent("DocumentNotSupported");
|
|
4061
4063
|
}), (() => {
|
|
4062
4064
|
var w = kr(), R = w.firstChild;
|
|
4063
4065
|
return Ht((y) => {
|
|
@@ -4093,7 +4095,7 @@ const Ur = (t) => {
|
|
|
4093
4095
|
}
|
|
4094
4096
|
}), l(K, {
|
|
4095
4097
|
get when() {
|
|
4096
|
-
return
|
|
4098
|
+
return p();
|
|
4097
4099
|
},
|
|
4098
4100
|
get children() {
|
|
4099
4101
|
return l(je, {
|
|
@@ -4139,7 +4141,7 @@ const Ur = (t) => {
|
|
|
4139
4141
|
}
|
|
4140
4142
|
}), l(W, {
|
|
4141
4143
|
get when() {
|
|
4142
|
-
return
|
|
4144
|
+
return m();
|
|
4143
4145
|
},
|
|
4144
4146
|
get children() {
|
|
4145
4147
|
var D = Nr();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microblink/blinkid-ux-manager",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"author": "Microblink",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/blinkid-ux-manager.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"types"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@microblink/blinkid-core": "^7.
|
|
14
|
+
"@microblink/blinkid-core": "^7.8.0",
|
|
15
15
|
"@microblink/camera-manager": "^7.3.2",
|
|
16
16
|
"type-fest": "^4.35.0"
|
|
17
17
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlinkIdFeedbackUi.d.ts","sourceRoot":"","sources":["../../src/ui/BlinkIdFeedbackUi.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAY1C,OAAO,EAEL,mBAAmB,EAEpB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,iBAAiB,CAAC;AASzB;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC7C,
|
|
1
|
+
{"version":3,"file":"BlinkIdFeedbackUi.d.ts","sourceRoot":"","sources":["../../src/ui/BlinkIdFeedbackUi.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAY1C,OAAO,EAEL,mBAAmB,EAEpB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,iBAAiB,CAAC;AASzB;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC7C,CAoNA,CAAC"}
|