@incodetech/welcome 1.85.0-20251212230726.0 → 1.85.0-20251212230841.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.
|
@@ -2,6 +2,10 @@ import { default as React, ReactNode } from 'react';
|
|
|
2
2
|
import { DetectionOrientation } from '../../../detection/IdDetectionManager';
|
|
3
3
|
|
|
4
4
|
export declare const Frame: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const Bottom: ({ orientation, children, }: {
|
|
6
|
+
orientation: DetectionOrientation;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
9
|
type CaptureOverlayProps = {
|
|
6
10
|
isWrongSide: boolean;
|
|
7
11
|
isIdle: boolean;
|
package/dist/onBoarding.mjs
CHANGED
|
@@ -8350,7 +8350,7 @@ class MlWasmJSApi {
|
|
|
8350
8350
|
);
|
|
8351
8351
|
}
|
|
8352
8352
|
}
|
|
8353
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8353
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251212230841.0";
|
|
8354
8354
|
function e$2(Be, Le) {
|
|
8355
8355
|
return function(Ye, tt) {
|
|
8356
8356
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -202184,7 +202184,23 @@ function useIdDetection({ getCanvas: Be, onCapture: Le, mode: Ye }) {
|
|
|
202184
202184
|
}
|
|
202185
202185
|
};
|
|
202186
202186
|
}
|
|
202187
|
-
const
|
|
202187
|
+
const SvgLockIcon = (Be) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...Be }, /* @__PURE__ */ React.createElement("path", { d: "M8 2.83368C9.38071 2.83368 10.5 3.95297 10.5 5.33368V6.66669H11.333C11.7012 6.66669 12 6.96549 12 7.33368V11.9997C12 12.3679 11.7012 12.6667 11.333 12.6667H4.66699C4.2988 12.6667 4 12.3679 4 11.9997V7.33368C4 6.96549 4.2988 6.66669 4.66699 6.66669H5.5V5.33368C5.5 3.95297 6.61929 2.83368 8 2.83368ZM8 3.83368C7.17157 3.83368 6.5 4.50525 6.5 5.33368V6.66669H9.5V5.33368C9.5 4.50525 8.82843 3.83368 8 3.83368Z", fill: "#FCFCFD" })), EncryptionLabel = () => {
|
|
202188
|
+
const { t: Be } = useTranslation$1(), Le = useTokens();
|
|
202189
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { align: "center", gap: Le.spacing[1], children: [
|
|
202190
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgLockIcon, {}),
|
|
202191
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
202192
|
+
Text$7,
|
|
202193
|
+
{
|
|
202194
|
+
color: Le.color.surface.neutral.light,
|
|
202195
|
+
fontWeight: 400,
|
|
202196
|
+
fontSize: Le.typography.fontSize.sm,
|
|
202197
|
+
letterSpacing: "0.14px",
|
|
202198
|
+
lineHeight: Le.spacing[5],
|
|
202199
|
+
children: Be("encryptionLabel.encryptedPhotos")
|
|
202200
|
+
}
|
|
202201
|
+
)
|
|
202202
|
+
] });
|
|
202203
|
+
}, ratios = {
|
|
202188
202204
|
horizontal: { id: 22 / 35, passport: 30 / 42 },
|
|
202189
202205
|
vertical: { id: 35 / 22, passport: 42 / 30 }
|
|
202190
202206
|
}, getRatioValue = (Be, Le = "id") => ratios[Be][Le];
|
|
@@ -202358,7 +202374,22 @@ const TopText = ({ title: Be, subtitle: Le, orientation: Ye }) => {
|
|
|
202358
202374
|
-o-aspect-ratio: 30 / 42;
|
|
202359
202375
|
}
|
|
202360
202376
|
}
|
|
202361
|
-
`,
|
|
202377
|
+
`, BottomContainer$1 = dt.div`
|
|
202378
|
+
position: absolute;
|
|
202379
|
+
left: 0;
|
|
202380
|
+
right: 0;
|
|
202381
|
+
display: flex;
|
|
202382
|
+
justify-content: center;
|
|
202383
|
+
align-items: center;
|
|
202384
|
+
z-index: 100;
|
|
202385
|
+
`, Bottom = ({
|
|
202386
|
+
orientation: Be,
|
|
202387
|
+
children: Le
|
|
202388
|
+
}) => {
|
|
202389
|
+
var ft, ht;
|
|
202390
|
+
const Ye = idFlowManager.getParentSize(), tt = Be === "vertical" ? (ft = idFlowManager.getVerticalFrameSize()) == null ? void 0 : ft.height : ((ht = idFlowManager.getHorizontalFrameSize()) == null ? void 0 : ht.width) * ratios.horizontal.id, nt = Ye && tt ? `${Ye.height / 2 + tt / 2 + 16}px` : "calc(50% + 16px)";
|
|
202391
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BottomContainer$1, { style: { top: nt }, children: Le });
|
|
202392
|
+
}, StyledFrameBorder = dt.div`
|
|
202362
202393
|
position: absolute;
|
|
202363
202394
|
inset: 0;
|
|
202364
202395
|
border: 4px solid ${({ $frameColor: Be }) => Be};
|
|
@@ -202479,7 +202510,8 @@ const TopText = ({ title: Be, subtitle: Le, orientation: Ye }) => {
|
|
|
202479
202510
|
}
|
|
202480
202511
|
)
|
|
202481
202512
|
}
|
|
202482
|
-
)
|
|
202513
|
+
),
|
|
202514
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Bottom, { orientation: xt, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EncryptionLabel, {}) })
|
|
202483
202515
|
] }) });
|
|
202484
202516
|
}
|
|
202485
202517
|
);
|
|
@@ -203536,32 +203568,35 @@ const FrameContainer = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.j
|
|
|
203536
203568
|
left: 0,
|
|
203537
203569
|
top: 0,
|
|
203538
203570
|
children: [
|
|
203539
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
203540
|
-
|
|
203541
|
-
|
|
203542
|
-
|
|
203543
|
-
|
|
203544
|
-
|
|
203545
|
-
|
|
203546
|
-
|
|
203547
|
-
|
|
203548
|
-
|
|
203549
|
-
|
|
203550
|
-
|
|
203551
|
-
|
|
203552
|
-
|
|
203553
|
-
|
|
203554
|
-
|
|
203555
|
-
|
|
203556
|
-
|
|
203557
|
-
|
|
203558
|
-
|
|
203559
|
-
|
|
203560
|
-
|
|
203561
|
-
|
|
203562
|
-
|
|
203563
|
-
|
|
203564
|
-
|
|
203571
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(FrameContainer, { children: [
|
|
203572
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203573
|
+
Frame,
|
|
203574
|
+
{
|
|
203575
|
+
className: Le,
|
|
203576
|
+
ref: ht,
|
|
203577
|
+
style: {
|
|
203578
|
+
height: gt ? `${gt}px` : void 0,
|
|
203579
|
+
width: At ? `${At}px` : void 0
|
|
203580
|
+
},
|
|
203581
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203582
|
+
Box,
|
|
203583
|
+
{
|
|
203584
|
+
position: "absolute",
|
|
203585
|
+
inset: 0,
|
|
203586
|
+
borderWidth: 1,
|
|
203587
|
+
borderStyle: "solid",
|
|
203588
|
+
borderColor: tt,
|
|
203589
|
+
borderRadius: "10px",
|
|
203590
|
+
boxShadow: `0 0 0 9999px ${ft.color.surface.neutral.dark}`,
|
|
203591
|
+
zIndex: 3,
|
|
203592
|
+
hFull: !0,
|
|
203593
|
+
wFull: !0
|
|
203594
|
+
}
|
|
203595
|
+
)
|
|
203596
|
+
}
|
|
203597
|
+
),
|
|
203598
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Bottom, { orientation: Le, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EncryptionLabel, {}) })
|
|
203599
|
+
] }),
|
|
203565
203600
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203566
203601
|
Image$e,
|
|
203567
203602
|
{
|