import { n as useTranslation } from "./i18n-DoP1NB7u.js";
import { c as z, h as q, l as A, m as g, o as P, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
import { c as useManager, o as useModuleTerminalCallbacks, r as useIsMobileDeviceWidth } from "./hooks-Da_yP_Dr.js";
import { t as IncodeComponent } from "./incodeComponent-CCP7GTMj.js";
import { n as cn, r as Spacer } from "./loadingIcon-B0ysgiNq.js";
import { t as Page } from "./page-DidH_RkX.js";
import { b as Overlay, d as CameraOverlayHeader, f as CameraOverlay, l as CaptureFooter, p as CameraFrame, u as CameraView, y as ProgressBar } from "./extensibility-DesSYynI.js";
import { t as Spinner } from "./spinner-DqB4SGUV.js";
import { t as Button } from "./button-BMYTQ8fc.js";
import { a as FileIcon, p as CameraIcon, r as LockIcon } from "./icons-CJJbIpBq.js";
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
import { o as ErrorContent, r as Permissions } from "./tutorial-D3BW5BZn.js";
import { t as BottomSheet } from "./bottomSheet-CnWbbUAM.js";
import { t as registerIncodeModuleElement } from "./incodeModule-M8DszCee.js";
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
//#region src/modules/document-capture/documentCameraView.tsx
function captureFrameFromVideo(video) {
	if (video.readyState < 2 || video.videoWidth === 0 || video.videoHeight === 0) return null;
	const canvas = document.createElement("canvas");
	canvas.width = video.videoWidth;
	canvas.height = video.videoHeight;
	const ctx = canvas.getContext("2d");
	if (!ctx) return null;
	ctx.drawImage(video, 0, 0);
	return canvas.toDataURL("image/jpeg", .92).split(",")[1] ?? null;
}
var DocumentCameraView = ({ stream, manager, onOpenHelp }) => {
	const { t } = useTranslation();
	const videoRef = A(null);
	const handleCapture = q(() => {
		const video = videoRef.current;
		if (!video) return;
		const base64 = captureFrameFromVideo(video);
		if (!base64) return;
		const blob = new Blob([Uint8Array.from(atob(base64), (c) => c.charCodeAt(0))], { type: "image/jpeg" });
		const file = new File([blob], "document.jpg", { type: "image/jpeg" });
		manager.setFile(file, `data:image/jpeg;base64,${base64}`);
	}, [manager]);
	return /* @__PURE__ */ u(CameraView, {
		stream,
		videoRef,
		"data-testid": "document-capture-camera",
		children: /* @__PURE__ */ u(CameraOverlay, { children: [
			/* @__PURE__ */ u(CameraOverlayHeader, {
				title: t("documentCapture.camera.title"),
				subtitle: t("documentCapture.camera.subtitle")
			}),
			/* @__PURE__ */ u(Spacer, { size: 16 }),
			/* @__PURE__ */ u(CameraFrame, { variant: "fill" }),
			/* @__PURE__ */ u(CaptureFooter, {
				onOpenHelp,
				onCapture: handleCapture,
				isManualCapture: true,
				captureAriaLabel: t("manualCapture.ariaLabel"),
				helpAriaLabel: t("documentCapture.needHelp.open"),
				encryptionLabel: t("encryptionLabel.encryptedPhotos")
			})
		] })
	});
};
//#endregion
//#region src/modules/document-capture/commonIssuesIcons.tsx
var FarIcon = () => /* @__PURE__ */ u("svg", {
	width: "24",
	height: "24",
	viewBox: "0 0 24 24",
	fill: "none",
	"aria-hidden": true,
	children: [
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M17.1072 2.54785H15.8492C15.4352 2.54785 15.0992 2.88385 15.0992 3.29785C15.0992 3.71185 15.4352 4.04785 15.8492 4.04785H17.1072C18.8392 4.04785 20.2502 5.45785 20.2502 7.19085V8.76785C20.2502 9.18185 20.5862 9.51785 21.0002 9.51785C21.4142 9.51785 21.7502 9.18185 21.7502 8.76785V7.19085C21.7502 4.63085 19.6672 2.54785 17.1072 2.54785Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M2.99976 9.51785C3.41376 9.51785 3.74976 9.18185 3.74976 8.76785V7.19085C3.74976 5.45785 5.15976 4.04785 6.89276 4.04785H8.18176C8.59576 4.04785 8.93176 3.71185 8.93176 3.29785C8.93176 2.88385 8.59576 2.54785 8.18176 2.54785H6.89276C4.33276 2.54785 2.24976 4.63085 2.24976 7.19085V8.76785C2.24976 9.18185 2.58576 9.51785 2.99976 9.51785Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M8.15012 20.553H6.89212C5.16012 20.553 3.75012 19.143 3.75012 17.411V15.834C3.75012 15.42 3.41412 15.084 3.00012 15.084C2.58612 15.084 2.25012 15.42 2.25012 15.834V17.411C2.25012 19.97 4.33312 22.053 6.89212 22.053H8.15012C8.56412 22.053 8.90012 21.717 8.90012 21.303C8.90012 20.889 8.56412 20.553 8.15012 20.553Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M20.9997 15.083C20.5857 15.083 20.2497 15.419 20.2497 15.833V17.41C20.2497 19.143 18.8397 20.552 17.1067 20.552H15.8177C15.4037 20.552 15.0677 20.888 15.0677 21.302C15.0677 21.716 15.4037 22.052 15.8177 22.052H17.1067C19.6667 22.052 21.7497 19.97 21.7497 17.41V15.833C21.7497 15.419 21.4137 15.083 20.9997 15.083Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M17.0984 12.2984C17.0984 10.7004 15.7974 9.40039 14.1994 9.40039H9.80037C8.20237 9.40039 6.90137 10.7004 6.90137 12.2984C6.90137 13.8974 8.20237 15.1974 9.80037 15.1974H14.1994C15.7974 15.1974 17.0984 13.8974 17.0984 12.2984Z",
			fill: "currentColor"
		})
	]
});
var FoldedIcon = () => /* @__PURE__ */ u("svg", {
	width: "24",
	height: "24",
	viewBox: "0 0 24 24",
	fill: "none",
	"aria-hidden": true,
	children: [
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M3.20994 9.27056H18.8829C19.0379 9.27056 19.1849 9.20144 19.2789 9.08239C19.3739 8.96431 19.4059 8.81071 19.3659 8.66671L18.3169 4.90447C18.0499 3.94831 17.4109 3.1496 16.5179 2.65424C15.6249 2.15984 14.5849 2.02736 13.5879 2.28464L5.45694 4.37552C3.40094 4.90544 2.17694 6.94159 2.72694 8.9144C2.78594 9.12464 2.98294 9.27056 3.20994 9.27056Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M20.5679 14.3484H4.89485C4.73985 14.3484 4.59285 14.4175 4.49885 14.5365C4.40385 14.6546 4.37185 14.8082 4.41185 14.9522L5.46085 18.7135C5.92185 20.3676 7.48585 21.461 9.19185 21.461C9.52085 21.461 9.85585 21.4207 10.1899 21.3343L18.3209 19.2425C19.3169 18.9871 20.1499 18.3737 20.6649 17.5164C21.1809 16.6591 21.3179 15.6597 21.0509 14.7045C20.9919 14.4943 20.7949 14.3484 20.5679 14.3484Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M13.603 11.0906C13.189 11.0906 12.853 11.4131 12.853 11.8106C12.853 12.208 13.189 12.5306 13.603 12.5306H15.7C16.114 12.5306 16.45 12.208 16.45 11.8106C16.45 11.4131 16.114 11.0906 15.7 11.0906H13.603Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M20.9999 11.0906H18.9029C18.4889 11.0906 18.1529 11.4131 18.1529 11.8106C18.1529 12.208 18.4889 12.5306 18.9029 12.5306H20.9999C21.4139 12.5306 21.7499 12.208 21.7499 11.8106C21.7499 11.4131 21.4139 11.0906 20.9999 11.0906Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M8.29977 11.0906C7.88577 11.0906 7.54977 11.4131 7.54977 11.8106C7.54977 12.208 7.88577 12.5306 8.29977 12.5306H10.3968C10.8108 12.5306 11.1468 12.208 11.1468 11.8106C11.1468 11.4131 10.8108 11.0906 10.3968 11.0906H8.29977Z",
			fill: "currentColor"
		}),
		/* @__PURE__ */ u("path", {
			"fill-rule": "evenodd",
			"clip-rule": "evenodd",
			d: "M5.84709 11.8106C5.84709 11.4131 5.51109 11.0906 5.09709 11.0906H3.00009C2.58609 11.0906 2.25009 11.4131 2.25009 11.8106C2.25009 12.208 2.58609 12.5306 3.00009 12.5306H5.09709C5.51109 12.5306 5.84709 12.208 5.84709 11.8106Z",
			fill: "currentColor"
		})
	]
});
var ShadowIcon = () => /* @__PURE__ */ u("svg", {
	width: "24",
	height: "24",
	viewBox: "0 0 24 24",
	fill: "none",
	"aria-hidden": true,
	children: [/* @__PURE__ */ u("path", {
		"fill-rule": "evenodd",
		"clip-rule": "evenodd",
		d: "M20.2262 14.0884C20.2153 14.0934 20.2052 14.0984 20.1943 14.1044C17.2803 15.6594 13.6082 15.1114 11.2653 12.7724C8.92225 10.4234 8.36725 6.75042 9.92525 3.82142C10.0192 3.62542 9.99525 3.39742 9.86125 3.22742C9.73525 3.06742 9.46825 2.97642 9.27125 3.03442C5.22925 4.19442 2.40625 7.94142 2.40625 12.1454C2.40625 17.3724 6.65725 21.6254 11.8833 21.6254C16.0913 21.6254 19.8372 18.7984 20.9963 14.7464C21.0473 14.5604 20.9672 14.3004 20.8202 14.1754C20.6742 14.0494 20.4012 14.0094 20.2262 14.0884Z",
		fill: "currentColor"
	}), /* @__PURE__ */ u("path", {
		"fill-rule": "evenodd",
		"clip-rule": "evenodd",
		d: "M11.8748 2.375C11.4608 2.375 11.1248 2.711 11.1248 3.125C11.1248 3.539 11.4608 3.875 11.8748 3.875C16.4068 3.875 20.0938 7.562 20.0938 12.095C20.0938 12.509 20.4298 12.845 20.8438 12.845C21.2578 12.845 21.5938 12.509 21.5938 12.095C21.5938 6.735 17.2338 2.375 11.8748 2.375Z",
		fill: "currentColor"
	})]
});
var DirtyIcon = () => /* @__PURE__ */ u("svg", {
	width: "24",
	height: "24",
	viewBox: "0 0 24 24",
	fill: "none",
	"aria-hidden": true,
	children: /* @__PURE__ */ u("path", {
		"fill-rule": "evenodd",
		"clip-rule": "evenodd",
		d: "M14.314 13.9858C14.607 14.2671 14.607 14.7231 14.314 15.0043C14.168 15.1445 13.976 15.2146 13.784 15.2146C13.592 15.2146 13.4 15.1445 13.253 15.0043L12 13.8005L10.744 15.0063C10.597 15.1474 10.405 15.2175 10.213 15.2175C10.022 15.2175 9.83 15.1474 9.683 15.0063C9.39 14.7259 9.39 14.269 9.683 13.9887L10.939 12.7829L9.683 11.5771C9.39 11.2959 9.39 10.8408 9.683 10.5595C9.976 10.2783 10.451 10.2783 10.744 10.5595L12 11.7653L13.253 10.5624C13.546 10.2811 14.021 10.2811 14.314 10.5624C14.607 10.8437 14.607 11.2997 14.314 11.581L13.061 12.7829L14.314 13.9858ZM17.957 6.57747C17.594 6.56403 17.255 6.41811 17.013 6.17427C16.968 6.12723 16.791 5.91507 16.376 5.16819C15.898 4.31187 14.974 3.78003 13.964 3.78003H10.053C9.058 3.78003 8.142 4.29939 7.661 5.13459C7.224 5.89395 7.043 6.11763 6.995 6.16947C6.744 6.42195 6.405 6.56787 6.062 6.58227C4.1 6.58227 2.502 8.11443 2.5 9.99795V15.4143C2.5 17.8527 4.566 19.837 7.106 19.837H16.894C19.433 19.837 21.5 17.8527 21.5 15.4143V9.99603C21.5 8.11059 19.902 6.57747 17.957 6.57747Z",
		fill: "currentColor"
	})
});
//#endregion
//#region src/modules/document-capture/documentCommonIssues.tsx
var ISSUES = [
	{
		titleKey: "documentCapture.commonIssues.farPresent",
		bodyKey: "documentCapture.commonIssues.farPresentDescription",
		Icon: FarIcon
	},
	{
		titleKey: "documentCapture.commonIssues.foldedIdPresent",
		bodyKey: "documentCapture.commonIssues.foldedIdPresentDescription",
		Icon: FoldedIcon
	},
	{
		titleKey: "documentCapture.commonIssues.shadowPresent",
		bodyKey: "documentCapture.commonIssues.shadowPresentDescription",
		Icon: ShadowIcon
	},
	{
		titleKey: "documentCapture.commonIssues.dirtyPresent",
		bodyKey: "documentCapture.commonIssues.dirtyPresentDescription",
		Icon: DirtyIcon
	}
];
var DocumentCommonIssues = ({ onClose }) => {
	const { t } = useTranslation();
	return /* @__PURE__ */ u(Overlay, {
		"aria-labelledby": "document-common-issues-title",
		children: [
			/* @__PURE__ */ u("h2", {
				id: "document-common-issues-title",
				class: "IncodeDocumentCommonIssuesTitle",
				children: t("commonIssues.commonIssues")
			}),
			/* @__PURE__ */ u(Spacer, { size: 32 }),
			/* @__PURE__ */ u("div", {
				class: "IncodeDocumentCommonIssuesCards",
				children: ISSUES.map((issue) => /* @__PURE__ */ u("div", {
					class: "IncodeDocumentCommonIssuesCard",
					children: [/* @__PURE__ */ u("div", {
						class: "IncodeDocumentCommonIssuesCardIcon",
						children: /* @__PURE__ */ u(issue.Icon, {})
					}), /* @__PURE__ */ u("div", {
						class: "IncodeDocumentCommonIssuesCardText",
						children: [/* @__PURE__ */ u("h5", {
							class: "IncodeDocumentCommonIssuesCardTitle",
							children: t(issue.titleKey)
						}), /* @__PURE__ */ u("p", {
							class: "IncodeDocumentCommonIssuesCardBody",
							children: t(issue.bodyKey)
						})]
					})]
				}, issue.titleKey))
			}),
			/* @__PURE__ */ u("div", {
				class: "IncodeDocumentCommonIssuesButtons",
				children: /* @__PURE__ */ u(Button, {
					onClick: onClose,
					children: t("commonIssues.tryAgain")
				})
			})
		]
	});
};
//#endregion
//#region src/modules/document-capture/previewFooter.tsx
var PreviewFooter = ({ manager }) => {
	const { t } = useTranslation();
	return /* @__PURE__ */ u("div", {
		class: "IncodeDocumentCaptureActionRow",
		children: [/* @__PURE__ */ u(Button, {
			variant: "secondary",
			onClick: () => manager.retake(),
			"data-testid": "document-capture-retake-button",
			children: t("documentCapture.review.replace")
		}), /* @__PURE__ */ u(Button, {
			onClick: () => manager.accept(),
			"data-testid": "document-capture-accept-button",
			children: t("documentCapture.review.continue")
		})]
	});
};
//#endregion
//#region src/modules/document-capture/previewHeader.tsx
var PreviewHeader = ({ isFilePdf }) => {
	const { t } = useTranslation();
	return /* @__PURE__ */ u(k, { children: [
		/* @__PURE__ */ u("h2", {
			class: "IncodeDocumentCaptureReviewTitle",
			children: isFilePdf ? t("documentCapture.review.titlePdfUpload") : t("documentCapture.review.titleCaptured")
		}),
		/* @__PURE__ */ u(Spacer, { size: 12 }),
		/* @__PURE__ */ u("p", {
			class: "IncodeDocumentCaptureReviewSubtitle",
			children: isFilePdf ? t("documentCapture.review.subtitlePdfUpload") : t("documentCapture.review.subtitleCaptured")
		})
	] });
};
//#endregion
//#region src/modules/document-capture/successFooter.tsx
var SuccessFooter = ({ manager }) => {
	const { t } = useTranslation();
	return /* @__PURE__ */ u(Button, {
		onClick: () => manager.continue(),
		"data-testid": "document-capture-continue-button",
		children: t("documentCapture.review.continue")
	});
};
//#endregion
//#region src/modules/document-capture/successHeader.tsx
var SuccessHeader = () => {
	const { t } = useTranslation();
	return /* @__PURE__ */ u(k, { children: [
		/* @__PURE__ */ u(SuccessIcon, { size: 30 }),
		/* @__PURE__ */ u(Spacer, { size: 16 }),
		/* @__PURE__ */ u("h2", {
			class: "IncodeDocumentCaptureReviewTitle",
			children: t("documentCapture.review.successTitle")
		})
	] });
};
//#endregion
//#region src/modules/document-capture/uploadingHeader.tsx
var UploadingHeader = ({ progress, isFilePdf }) => {
	const { t } = useTranslation();
	const label = isFilePdf ? t("documentCapture.review.uploading") : t("documentCapture.review.analyzing");
	return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 8 }), /* @__PURE__ */ u(ProgressBar, {
		progress,
		label
	})] });
};
//#endregion
//#region src/modules/document-capture/documentReview.tsx
var PdfViewer = z(() => import("./pdfViewer-D2gNFPfI.js").then((n) => n.n).then((m) => ({ default: m.PdfViewer })));
var DocumentReview = ({ state, manager }) => {
	const { t } = useTranslation();
	if (state.status === "failure") return /* @__PURE__ */ u(ErrorContent, {
		"data-testid": "document-capture-error",
		title: t("documentCapture.review.error.title"),
		description: state.attemptsRemaining <= 0 ? t("notifications.noTries") : t("documentCapture.review.error.description"),
		attemptsRemaining: state.attemptsRemaining,
		onButtonClick: () => manager.retry()
	});
	const isFilePdf = state.fileType === "application/pdf" || state.imageBase64.startsWith("data:application/pdf");
	const { fileName } = state;
	const isPreview = state.status === "preview";
	const isUploading = state.status === "uploading";
	const isSuccess = state.status === "success";
	const isNextPage = state.status === "nextPage";
	const showSuccessChrome = isSuccess || isNextPage;
	return /* @__PURE__ */ u(Page, {
		hideHeader: true,
		hideFooterBranding: true,
		className: "IncodeDocumentCapturePage IncodeDocumentCaptureReviewPage",
		"data-testid": "document-capture-review",
		children: /* @__PURE__ */ u("div", {
			class: "IncodeDocumentCaptureReviewLayout",
			children: [
				/* @__PURE__ */ u("div", {
					class: "IncodeDocumentCaptureReviewHeader",
					children: [
						isPreview ? /* @__PURE__ */ u(PreviewHeader, { isFilePdf }) : null,
						isUploading ? /* @__PURE__ */ u(UploadingHeader, {
							progress: state.progress,
							isFilePdf
						}) : null,
						showSuccessChrome ? /* @__PURE__ */ u(SuccessHeader, {}) : null
					]
				}),
				/* @__PURE__ */ u("div", {
					class: cn("IncodeDocumentCaptureReviewPreview", isFilePdf && "IncodeDocumentCaptureReviewPreviewPdf"),
					children: [
						isFilePdf ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
							class: "IncodeDocumentCapturePdfCard",
							children: [/* @__PURE__ */ u("div", {
								class: "ImageDocumentCapturePdfPreviewContainer",
								children: /* @__PURE__ */ u(P, {
									fallback: null,
									children: /* @__PURE__ */ u(PdfViewer, {
										url: state.imageBase64,
										mode: "thumbnail",
										"aria-label": t("documentCapture.review.titlePdfUpload"),
										className: "ImageDocumentCapturePdfPreview"
									})
								})
							}), /* @__PURE__ */ u("p", {
								class: "IncodeDocumentCapturePdfFileName",
								children: fileName
							})]
						}), /* @__PURE__ */ u(Spacer, { size: 16 })] }) : state.imageBase64 ? /* @__PURE__ */ u("div", {
							class: "IncodeDocumentCaptureReviewImageContainer",
							children: /* @__PURE__ */ u("img", {
								src: state.imageBase64,
								alt: "",
								class: cn("IncodeDocumentCaptureReviewImage", showSuccessChrome && "IncodeDocumentCaptureSuccessBorder"),
								"data-testid": "document-capture-review-image"
							})
						}) : null,
						/* @__PURE__ */ u(Spacer, { size: 8 }),
						/* @__PURE__ */ u("div", {
							class: "IncodeCaptureEncryptionLabel",
							children: [/* @__PURE__ */ u(LockIcon, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: [" ", t("encryptionLabel.encryptedPhotos")] })]
						}),
						/* @__PURE__ */ u(Spacer, { size: 8 })
					]
				}),
				/* @__PURE__ */ u(Spacer, { size: 24 }),
				/* @__PURE__ */ u("div", {
					class: cn("IncodeDocumentCaptureReviewFooter", isUploading && "IncodeDocumentCaptureReviewFooterEmpty"),
					children: [isPreview ? /* @__PURE__ */ u(PreviewFooter, { manager }) : null, isSuccess ? /* @__PURE__ */ u(SuccessFooter, { manager }) : null]
				})
			]
		})
	});
};
//#endregion
//#region src/modules/document-capture/assets/document-capture-tutorial.svg?react
var SvgDocumentCaptureTutorial = (props) => /* @__PURE__ */ u("svg", {
	viewBox: "0 0 292 305",
	fill: "none",
	xmlns: "http://www.w3.org/2000/svg",
	...props,
	children: [
		/* @__PURE__ */ u("circle", {
			cx: 145.743,
			cy: 152.074,
			r: 139.295,
			fill: "#E5F0FF"
		}),
		/* @__PURE__ */ u("g", {
			filter: "url(#filter0_d_4533_6792)",
			children: [/* @__PURE__ */ u("path", {
				d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z",
				fill: "white"
			}), /* @__PURE__ */ u("path", {
				d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z",
				fill: "black",
				fillOpacity: .01
			})]
		}),
		/* @__PURE__ */ u("g", {
			opacity: .5,
			children: [
				/* @__PURE__ */ u("path", {
					fillRule: "evenodd",
					clipRule: "evenodd",
					d: "M73.4139 60.0905C73.4139 59.62 73.7953 59.2385 74.2658 59.2385H216.865C217.336 59.2385 217.717 59.62 217.717 60.0905V62.7331C217.717 63.2036 217.336 63.585 216.865 63.585H74.2658C73.7953 63.585 73.4139 63.2036 73.4139 62.7331V60.0905Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					fillRule: "evenodd",
					clipRule: "evenodd",
					d: "M73.4139 220.911C73.4139 220.44 73.7953 220.059 74.2658 220.059H216.865C217.336 220.059 217.717 220.44 217.717 220.911V223.553C217.717 224.024 217.336 224.405 216.865 224.405H74.2658C73.7953 224.405 73.4139 224.024 73.4139 223.553V220.911Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					d: "M73.4139 83.5619C73.4139 83.0914 73.7953 82.7099 74.2658 82.7099H130.805C131.275 82.7099 131.657 83.0914 131.657 83.5619V91.4202C131.657 91.8907 131.275 92.2722 130.805 92.2722H74.2658C73.7953 92.2722 73.4139 91.8907 73.4139 91.4202L73.4139 83.5619Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					d: "M73.4138 101.817C73.4138 101.347 73.7953 100.965 74.2658 100.965H130.805C131.275 100.965 131.657 101.347 131.657 101.817V109.676C131.657 110.146 131.275 110.528 130.805 110.528H74.2658C73.7953 110.528 73.4138 110.146 73.4138 109.676L73.4138 101.817Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					d: "M73.399 120.072C73.4072 119.601 73.7952 119.227 74.2657 119.235L154.263 120.631C154.734 120.639 155.109 121.028 155.1 121.498L154.963 129.355C154.955 129.826 154.567 130.2 154.097 130.192L74.0988 128.796C73.6284 128.787 73.2536 128.399 73.2619 127.929L73.399 120.072Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					d: "M73.399 138.327C73.4072 137.857 73.7952 137.482 74.2657 137.49L97.7678 137.9C98.2383 137.909 98.613 138.297 98.6048 138.767L98.498 144.886C98.4897 145.356 98.1017 145.731 97.6313 145.723L74.1292 145.313C73.6587 145.304 73.284 144.916 73.2922 144.446L73.399 138.327Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					d: "M73.4139 38.3582C73.4139 37.8877 73.7953 37.5063 74.2658 37.5063H180.355C180.825 37.5063 181.207 37.8877 181.207 38.3582V47.0859C181.207 47.5564 180.825 47.9378 180.355 47.9378H74.2658C73.7953 47.9378 73.4139 47.5564 73.4139 47.0859V38.3582Z",
					fill: "#C6C8D2"
				}),
				/* @__PURE__ */ u("path", {
					d: "M195.985 37.4887C195.985 37.0182 196.366 36.6367 196.837 36.6367H216.865C217.336 36.6367 217.717 37.0182 217.717 37.4887V46.2163C217.717 46.6868 217.336 47.0683 216.865 47.0683H196.837C196.366 47.0683 195.985 46.6868 195.985 46.2163V37.4887Z",
					fill: "#C6C8D2"
				})
			]
		}),
		/* @__PURE__ */ u("mask", {
			id: "path-4-inside-1_4533_6792",
			fill: "white",
			children: /* @__PURE__ */ u("path", { d: "M63.8701 255.593C60.0041 255.593 56.8701 252.459 56.8701 248.593L56.8701 32.5516C56.8701 28.6856 60.0041 25.5516 63.8701 25.5516L227.68 25.5516C231.546 25.5516 234.68 28.6856 234.68 32.5516V248.593C234.68 252.459 231.546 255.593 227.68 255.593L63.8701 255.593Z" })
		}),
		/* @__PURE__ */ u("g", {
			clipPath: "url(#paint0_diamond_4533_6792_clip_path)",
			"data-figma-skip-parse": "true",
			mask: "url(#path-4-inside-1_4533_6792)",
			children: /* @__PURE__ */ u("g", {
				transform: "matrix(0.0908399 -0.0986632 0.220271 0.965929 54.935 239.235)",
				children: [
					/* @__PURE__ */ u("rect", {
						x: 0,
						y: 0,
						width: 2037.51,
						height: 179.024,
						fill: "url(#paint0_diamond_4533_6792)",
						opacity: 1,
						shapeRendering: "crispEdges"
					}),
					/* @__PURE__ */ u("rect", {
						x: 0,
						y: 0,
						width: 2037.51,
						height: 179.024,
						transform: "scale(1 -1)",
						fill: "url(#paint0_diamond_4533_6792)",
						opacity: 1,
						shapeRendering: "crispEdges"
					}),
					/* @__PURE__ */ u("rect", {
						x: 0,
						y: 0,
						width: 2037.51,
						height: 179.024,
						transform: "scale(-1 1)",
						fill: "url(#paint0_diamond_4533_6792)",
						opacity: 1,
						shapeRendering: "crispEdges"
					}),
					/* @__PURE__ */ u("rect", {
						x: 0,
						y: 0,
						width: 2037.51,
						height: 179.024,
						transform: "scale(-1)",
						fill: "url(#paint0_diamond_4533_6792)",
						opacity: 1,
						shapeRendering: "crispEdges"
					})
				]
			})
		}),
		/* @__PURE__ */ u("path", {
			d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z",
			"data-figma-gradient-fill": "{\"type\":\"GRADIENT_DIAMOND\",\"stops\":[{\"color\":{\"r\":1.0,\"g\":1.0,\"b\":1.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":1.0,\"g\":1.0,\"b\":1.0,\"a\":0.0},\"position\":1.0},{\"color\":{\"r\":1.0,\"g\":1.0,\"b\":1.0,\"a\":0.54000002145767212},\"position\":1.0}],\"stopsVar\":[],\"transform\":{\"m00\":181.67984008789062,\"m01\":440.54235839843750,\"m02\":-256.17605590820312,\"m10\":-197.32632446289062,\"m11\":1931.8571777343750,\"m12\":-628.03063964843750},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}",
			mask: "url(#path-4-inside-1_4533_6792)"
		}),
		/* @__PURE__ */ u("path", {
			d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z",
			fill: "white",
			fillOpacity: .5,
			mask: "url(#path-4-inside-1_4533_6792)"
		}),
		/* @__PURE__ */ u("defs", { children: [
			/* @__PURE__ */ u("filter", {
				id: "filter0_d_4533_6792",
				x: 34.6299,
				y: 6.61426,
				width: 221.387,
				height: 273.626,
				filterUnits: "userSpaceOnUse",
				colorInterpolationFilters: "sRGB",
				children: [
					/* @__PURE__ */ u("feFlood", {
						floodOpacity: 0,
						result: "BackgroundImageFix"
					}),
					/* @__PURE__ */ u("feColorMatrix", {
						in: "SourceAlpha",
						type: "matrix",
						values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
						result: "hardAlpha"
					}),
					/* @__PURE__ */ u("feOffset", { dy: 3 }),
					/* @__PURE__ */ u("feGaussianBlur", { stdDeviation: 12 }),
					/* @__PURE__ */ u("feColorMatrix", {
						type: "matrix",
						values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"
					}),
					/* @__PURE__ */ u("feBlend", {
						mode: "normal",
						in2: "BackgroundImageFix",
						result: "effect1_dropShadow_4533_6792"
					}),
					/* @__PURE__ */ u("feBlend", {
						mode: "normal",
						in: "SourceGraphic",
						in2: "effect1_dropShadow_4533_6792",
						result: "shape"
					})
				]
			}),
			/* @__PURE__ */ u("clipPath", {
				id: "paint0_diamond_4533_6792_clip_path",
				children: /* @__PURE__ */ u("path", {
					d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z",
					mask: "url(#path-4-inside-1_4533_6792)"
				})
			}),
			/* @__PURE__ */ u("linearGradient", {
				id: "paint0_diamond_4533_6792",
				x1: 0,
				y1: 0,
				x2: 500,
				y2: 500,
				gradientUnits: "userSpaceOnUse",
				children: [
					/* @__PURE__ */ u("stop", { stopColor: "white" }),
					/* @__PURE__ */ u("stop", {
						offset: 1,
						stopColor: "white",
						stopOpacity: 0
					}),
					/* @__PURE__ */ u("stop", {
						offset: 1,
						stopColor: "white",
						stopOpacity: .54
					})
				]
			})
		] })
	]
});
//#endregion
//#region src/modules/document-capture/documentCaptureBottomSheet.tsx
var DocumentCaptureBottomSheet = ({ isOpen, onClose, onCameraClick, onUploadClick, cameraOptionTestId, uploadOptionTestId }) => {
	const { t } = useTranslation();
	const labelledById = g();
	if (!isOpen) return null;
	return /* @__PURE__ */ u(BottomSheet, {
		isOpen,
		onClose,
		labelledById,
		children: /* @__PURE__ */ u("div", {
			class: "IncodeDocumentCaptureBottomSheetOptions",
			children: [/* @__PURE__ */ u("button", {
				type: "button",
				class: "IncodeDocumentCaptureBottomSheetOption",
				onClick: onCameraClick,
				"data-testid": `document-capture-${cameraOptionTestId}`,
				children: [/* @__PURE__ */ u(CameraIcon, {}), /* @__PURE__ */ u("span", {
					id: labelledById,
					children: t("documentCapture.tutorial.takePhoto")
				})]
			}), /* @__PURE__ */ u("button", {
				type: "button",
				class: "IncodeDocumentCaptureBottomSheetOption",
				onClick: onUploadClick,
				"data-testid": `document-capture-${uploadOptionTestId}`,
				children: [/* @__PURE__ */ u(FileIcon, {}), /* @__PURE__ */ u("span", { children: t("documentCapture.tutorial.uploadDocument") })]
			})]
		})
	});
};
//#endregion
//#region src/modules/document-capture/documentCapture.helpers.ts
function fileToBase64(file) {
	return new Promise((resolve, reject) => {
		const reader = new FileReader();
		reader.onload = () => resolve(reader.result);
		reader.onerror = reject;
		reader.readAsDataURL(file);
	});
}
//#endregion
//#region src/modules/document-capture/documentTutorial.tsx
var DocumentTutorial = ({ manager, title: titleProp, text: textProp, allowSkipDocumentCapture, captureMode, error, pageNumber }) => {
	const { t } = useTranslation();
	const isMobileWidth = useIsMobileDeviceWidth();
	const fileInputRef = A(null);
	const [isBottomSheetOpen, setIsBottomSheetOpen] = d(false);
	const prefix = pageNumber > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial";
	const title = titleProp?.trim() ? titleProp : t(`${prefix}.title`);
	const text = textProp?.trim() ? textProp : t(`${prefix}.subtitle`);
	const showBottomSheet = captureMode === "camera" && isMobileWidth;
	const closeBottomSheet = q(() => setIsBottomSheetOpen(false), []);
	const openFilePicker = () => {
		fileInputRef.current?.click();
	};
	const handlePrimaryClick = () => {
		if (showBottomSheet) setIsBottomSheetOpen(true);
		else openFilePicker();
	};
	const handleFileChange = async (e) => {
		const target = e.target;
		const file = target.files?.[0];
		if (file) {
			const base64 = await fileToBase64(file);
			manager.setFile(file, base64);
			if (showBottomSheet) closeBottomSheet();
		}
		target.value = "";
	};
	const handleCameraClick = () => {
		closeBottomSheet();
		manager.capture();
	};
	return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Page, {
		className: "IncodeDocumentCapturePageTutorial",
		title,
		subtitle: text,
		"data-testid": "document-capture-tutorial",
		children: [
			/* @__PURE__ */ u("input", {
				ref: fileInputRef,
				type: "file",
				accept: "image/*,application/pdf",
				onChange: handleFileChange,
				"aria-hidden": true,
				tabIndex: -1,
				class: "IncodeDocumentCaptureFileInput"
			}),
			/* @__PURE__ */ u("div", {
				class: "IncodeDocumentCaptureTutorialContent",
				children: /* @__PURE__ */ u("div", {
					class: "IncodeDocumentCaptureTutorialIllustration",
					"aria-hidden": true,
					children: /* @__PURE__ */ u(SvgDocumentCaptureTutorial, { class: "IncodeDocumentCaptureTutorialImage" })
				})
			}),
			error ? /* @__PURE__ */ u("p", {
				class: "IncodeDocumentCaptureError",
				role: "alert",
				children: t("nativeCamera.maximumSize")
			}) : null,
			/* @__PURE__ */ u("div", {
				class: "IncodeDocumentCaptureActions",
				children: [/* @__PURE__ */ u(Button, {
					onClick: handlePrimaryClick,
					"data-testid": "document-capture-continue-button",
					children: t("documentCapture.tutorial.continue")
				}), allowSkipDocumentCapture ? /* @__PURE__ */ u("div", {
					class: "IncodeDocumentCaptureSkipWrapper",
					children: /* @__PURE__ */ u(Button, {
						variant: "link",
						onClick: () => manager.skip(),
						"data-testid": "document-capture-skip-button",
						children: t("documentCapture.tutorial.skipButton")
					})
				}) : null]
			})
		]
	}), showBottomSheet ? /* @__PURE__ */ u(DocumentCaptureBottomSheet, {
		isOpen: isBottomSheetOpen,
		onClose: closeBottomSheet,
		onCameraClick: handleCameraClick,
		onUploadClick: openFilePicker,
		cameraOptionTestId: "camera-option",
		uploadOptionTestId: "file-option"
	}) : null] });
};
//#endregion
//#region src/modules/document-capture/nextDocumentPage.tsx
var NextDocumentPage = ({ manager, nextPageType, captureMode }) => {
	const { t } = useTranslation();
	const isMobileWidth = useIsMobileDeviceWidth();
	const fileInputRef = A(null);
	const [isBottomSheetOpen, setIsBottomSheetOpen] = d(false);
	const prefix = "documentCapture.tutorial.multiPageDocument";
	const subtitle = t(nextPageType === "optional" ? `${prefix}.optionalPage.subtitle` : `${prefix}.subtitle`);
	const showBottomSheet = captureMode === "camera" && isMobileWidth;
	const closeBottomSheet = q(() => setIsBottomSheetOpen(false), []);
	const openFilePicker = () => {
		fileInputRef.current?.click();
	};
	const handlePrimaryClick = () => {
		if (showBottomSheet) setIsBottomSheetOpen(true);
		else openFilePicker();
	};
	const handleNextPageFileChange = async (e) => {
		const target = e.target;
		const file = target.files?.[0];
		if (file) {
			closeBottomSheet();
			const base64 = await fileToBase64(file);
			manager.captureNextPageFromFile();
			manager.setFile(file, base64);
		}
		target.value = "";
	};
	const handleCameraClick = () => {
		closeBottomSheet();
		manager.captureNextPageFromCamera();
	};
	return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Page, {
		className: "IncodeDocumentCapturePageTutorial",
		title: t("documentCapture.tutorial.multiPageDocument.title"),
		subtitle,
		"data-testid": "document-capture-tutorial",
		children: [
			/* @__PURE__ */ u("input", {
				ref: fileInputRef,
				type: "file",
				accept: "image/jpeg,image/png",
				onChange: handleNextPageFileChange,
				"aria-hidden": true,
				tabIndex: -1,
				class: "IncodeDocumentCaptureFileInput"
			}),
			/* @__PURE__ */ u("div", {
				class: "IncodeDocumentCaptureTutorialContent",
				children: /* @__PURE__ */ u("div", {
					class: "IncodeDocumentCaptureTutorialIllustration",
					"aria-hidden": true,
					children: /* @__PURE__ */ u(SvgDocumentCaptureTutorial, { class: "IncodeDocumentCaptureTutorialImage" })
				})
			}),
			/* @__PURE__ */ u(Button, {
				onClick: handlePrimaryClick,
				"data-testid": "document-capture-add-next-page-button",
				children: t("documentCapture.button.nextPage")
			}),
			/* @__PURE__ */ u(Spacer, { size: 12 }),
			nextPageType === "optional" && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Button, {
				variant: "link",
				onClick: () => manager.finishPageCapture(),
				"data-testid": "document-capture-finish-pages-button",
				children: t("documentCapture.button.allPagesCaptured")
			}), /* @__PURE__ */ u(Spacer, { size: 16 })] })
		]
	}), showBottomSheet ? /* @__PURE__ */ u(DocumentCaptureBottomSheet, {
		isOpen: isBottomSheetOpen,
		onClose: closeBottomSheet,
		onCameraClick: handleCameraClick,
		onUploadClick: openFilePicker,
		cameraOptionTestId: "next-page-camera-option",
		uploadOptionTestId: "next-page-upload-document-option"
	}) : null] });
};
//#endregion
//#region src/modules/document-capture/documentCaptureLoading.tsx
var DocumentCaptureLoading = ({ title }) => {
	return /* @__PURE__ */ u(Page, {
		hideHeader: true,
		hideFooterBranding: true,
		className: "IncodeDocumentCapturePage",
		children: /* @__PURE__ */ u("div", {
			class: "IncodeDocumentCaptureCentered",
			children: /* @__PURE__ */ u(Spinner, {
				size: "large",
				title
			})
		})
	});
};
//#endregion
//#region src/modules/document-capture/documentCapture.tsx
var DocumentCaptureContent = ({ config, onFinish, onError }) => {
	const [state, manager] = useManager(() => createDocumentCaptureManager({ config }));
	const [isCommonIssuesOpen, setIsCommonIssuesOpen] = d(false);
	const { t } = useTranslation();
	useModuleTerminalCallbacks({
		status: state.status,
		onFinish,
		onError: onError ? (error) => onError(error) : void 0
	});
	if (state.status === "finished" || state.status === "closed") return null;
	if (state.status === "tutorial") return /* @__PURE__ */ u(DocumentTutorial, {
		manager,
		title: state.title,
		text: state.text,
		allowSkipDocumentCapture: state.allowSkipDocumentCapture,
		captureMode: state.captureMode,
		error: state.error,
		pageNumber: state.pageNumber
	});
	if (state.status === "nextPage") return /* @__PURE__ */ u(NextDocumentPage, {
		manager,
		nextPageType: state.nextPageType,
		captureMode: state.captureMode
	});
	if (state.status === "capturing" && state.captureMode === "file") return /* @__PURE__ */ u(DocumentTutorial, {
		manager,
		title: config.title,
		text: config.text,
		allowSkipDocumentCapture: false,
		captureMode: "file",
		error: state.error,
		pageNumber: state.pageNumber
	});
	if (state.status === "permissions") return /* @__PURE__ */ u(Permissions, {
		manager,
		permissionStatus: state.permissionStatus
	});
	if (state.status === "initializingCamera") return /* @__PURE__ */ u(DocumentCaptureLoading, {});
	if (state.status === "capturing" && state.captureMode === "camera") {
		if (!state.stream) return /* @__PURE__ */ u(DocumentCaptureLoading, {});
		return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(DocumentCameraView, {
			stream: state.stream,
			manager,
			onOpenHelp: () => setIsCommonIssuesOpen(true)
		}), isCommonIssuesOpen ? /* @__PURE__ */ u(DocumentCommonIssues, { onClose: () => setIsCommonIssuesOpen(false) }) : null] });
	}
	if (state.status === "finalizing") return /* @__PURE__ */ u(DocumentCaptureLoading, { title: t("common.processing") });
	if (state.status === "preview" || state.status === "uploading" || state.status === "success" || state.status === "failure") return /* @__PURE__ */ u(DocumentReview, {
		state,
		manager
	});
	return null;
};
var DocumentCapture = ({ config, onFinish, onError }) => {
	return /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(DocumentCaptureContent, {
		config,
		onFinish,
		onError
	}) : null });
};
registerIncodeModuleElement(DocumentCapture, "incode-document-capture");
//#endregion
export { DocumentCapture as t };
