@sekyro/web 0.1.0-rc.23 → 0.1.0-rc.25
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/CHANGELOG.md +18 -0
- package/README.md +34 -2
- package/dist/{capture-session-doc-BBDKMEAP.js → capture-session-doc-O33KRXH7.js} +1 -1
- package/dist/{capture-session-v3-CFXYS0Pg.d.cts → capture-session-v3-BoGn8vLv.d.cts} +1 -1
- package/dist/{capture-session-v3-DID39wUZ.d.ts → capture-session-v3-C0bbHvDc.d.ts} +1 -1
- package/dist/challenge-frame-NUGPTWFP.js +1 -0
- package/dist/{chunk-LFMIFR6T.js → chunk-24F6JCVH.js} +1 -1
- package/dist/chunk-4ESM6SSR.js +1 -0
- package/dist/chunk-6XXMWK72.js +1 -0
- package/dist/{chunk-JWEHH2MS.js → chunk-7HV77AOV.js} +1 -1
- package/dist/{chunk-5DTWBDCP.js → chunk-DIKSFEYQ.js} +1 -1
- package/dist/{chunk-JYU5YHXN.js → chunk-EHKCOBE2.js} +1 -1
- package/dist/chunk-GLXOSYBH.js +3 -0
- package/dist/chunk-HVW2AB35.js +1 -0
- package/dist/{chunk-PBLZ5W7P.js → chunk-J4S3QMK6.js} +1 -1
- package/dist/{chunk-YWGW63B3.js → chunk-MGO2ME5X.js} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +1 -1
- package/dist/{create-document-capture-K5PDVOGV.js → create-document-capture-OLKNUVTU.js} +1 -1
- package/dist/{create-verification-BP2L4rzV.d.cts → create-verification-D5CrT5f5.d.cts} +66 -10
- package/dist/{create-verification-Dc1Rd-4T.d.ts → create-verification-DOBYRCV_.d.ts} +66 -10
- package/dist/{icao-gate-COt4O4h_.d.ts → icao-gate-CJPTgKFb.d.ts} +1 -1
- package/dist/{icao-gate-CIXjbPCL.d.cts → icao-gate-DGtY696t.d.cts} +1 -1
- package/dist/{icao-policy-Cizs5guu.d.cts → icao-policy-Bm0rG91t.d.cts} +2 -2
- package/dist/{icao-policy-DI4kU6Mv.d.ts → icao-policy-D8domgld.d.ts} +2 -2
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +3 -1
- package/dist/internal/index.d.cts +7 -52
- package/dist/internal/index.d.ts +7 -52
- package/dist/internal/index.js +1 -1
- package/dist/{plan-runner-AD2JTMC7.js → plan-runner-VKPRZ3AD.js} +1 -1
- package/dist/{types-Cjnp1o8i.d.cts → types-ZBcpvLdo.d.cts} +34 -23
- package/dist/{types-Cjnp1o8i.d.ts → types-ZBcpvLdo.d.ts} +34 -23
- package/package.json +1 -1
- package/sbom.cdx.json +10 -10
- package/dist/chunk-72LG73YL.js +0 -1
- package/dist/chunk-RPVI2OGR.js +0 -1
- package/dist/chunk-U3NYGTX7.js +0 -1
- package/dist/chunk-X6UIO5E3.js +0 -1
- package/dist/turnstile-F4DS2L3F.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-
|
|
2
|
-
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AcceptedDocumentType,
|
|
1
|
+
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-D5CrT5f5.cjs';
|
|
2
|
+
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChallengeErrorCode, n as ChoiceOptionSnapshot, o as ChoiceSnapshot, p as ChoiceStepHandle, q as ContactChoiceSnapshot, r as ContactChoiceStepHandle, s as DEFAULT_API_ORIGIN, t as DOCUMENT_TYPE_ORDER, u as DeriveStepEnv, v as DocumentCaptureEvents, w as DocumentCaptureState, x as DocumentFeedback, y as DocumentFeedbackKey, z as DocumentGateUpdate, B as DocumentGuide, E as DocumentGuideMeasure, F as DocumentLiveMrzOptions, G as DocumentMrzUpdate, H as DocumentPoint, I as DocumentQuad, J as DocumentReticle, K as DocumentScanPhase, L as DocumentScanUpdate, M as DocumentSide, N as DocumentSnapshot, O as DocumentStepHandle, Q as EidSnapshot, R as EidStepHandle, S as EmailOtpSnapshot, T as EmailOtpStepHandle, U as EmailSource, V as GateHint, W as GateUpdate, X as ISSUER_CODES, Y as IdentitySummarySnapshot, Z as IdentitySummaryStepHandle, _ as InLaneSwitch, $ as LivePhotoGateUpdate, a0 as LivePhotoPlan, a1 as LivenessAssetsStatus, a2 as LivenessCaptureEvents, a3 as LivenessCaptureHandle, a4 as LivenessCaptureOptions, a5 as LivenessSnapshot, a6 as LivenessStartOptions, a7 as LivenessStepHandle, a8 as MethodSnapshot, a9 as MethodStepHandle, aa as MobileRequiredSnapshot, ab as MobileRequiredStepHandle, ac as OtpChannel, ad as OtpNumberSource, ae as PLATFORM_UNSUPPORTED, af as PhoneOtpSnapshot, ag as PhoneOtpStepHandle, ah as PhotoSourceState, ai as PlanChoiceSnapshot, aj as PortraitCaptureEvents, ak as PortraitCaptureState, al as PortraitGateUpdate, am as PortraitSnapshot, an as PortraitStartOptions, ao as PortraitStepHandle, ap as PreloadLivenessAssetsOptions, aq as ProcessingSnapshot, ar as ProcessingStepHandle, as as ReasonCode, at as RegistrySnapshot, au as RegistrySource, av as RegistryStepHandle, aw as ResultDisplay, ax as ResultSnapshot, ay as ResultStepHandle, az as SdkFailureReason, aA as StepAttempts, aB as StepContext, aC as StepSnapshot, aD as UnsupportedReason, aE as UnsupportedSnapshot, aF as UnsupportedStepHandle, aG as Verification, aH as VerificationBusy, aI as VerificationEvents, aJ as VerificationLocale, aK as VerificationOptions, aL as VerificationResult, aM as VerificationStatus, aN as VerificationStep, aO as WEB_IDENTITY_METHODS, aP as acceptedIssuers, aQ as acceptedTypesFor, aR as cameraUnavailableCauseOf, aS as createLivenessCapture, aT as createVerification, aU as deriveStep, aV as flagOf, aW as getLivenessAssetsStatus, aX as laneOf, aY as otherOptions, aZ as preloadLivenessAssets, a_ as releaseLivenessAssets, a$ as resolveAcceptedDocuments, b0 as sectionOf, b1 as subscribeLivenessAssets } from './create-verification-D5CrT5f5.cjs';
|
|
3
|
+
import { aO as ScreenRampColour } from './types-ZBcpvLdo.cjs';
|
|
4
|
+
export { A as AcceptedDocumentType, aP as AgeEstimationReason, aQ as CameraUnavailableCause, aR as CaptureIssueReport, b as CaptureMode, aS as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, H as HostedAcceptedDocuments, aT as HostedBranding, aU as HostedBrandingColorKey, v as HostedCaptureTuning, w as HostedChallengeView, x as HostedConsentView, y as HostedDocumentCaptureTuning, z as HostedDocumentScanTuning, B as HostedDocumentsView, G as HostedEidView, I as HostedEmailOtpView, J as HostedFlowRef, K as HostedIcaoPolicy, L as HostedIntegrity, M as HostedLivePhotoTuning, aV as HostedLivenessCaptureTuning, N as HostedNativeCaptureTuning, O as HostedOcrTuning, P as HostedOtpView, Q as HostedPlanView, R as HostedPortraitPendingFix, S as HostedPortraitView, T as HostedSessionView, U as HostedSimulationView, V as HostedStepView, W as HostedTesterGateView, X as HostedVoiceLocale, Y as HostedVoiceView, aW as IcaoCaptureTuning, Z as IcaoCriterion, _ as IcaoReportEntry, $ as IdentityConfirmDecision, a0 as IdentityMethod, a1 as IdentitySummarySource, a2 as IdentitySummaryView, a5 as LivenessReason, a6 as MatchReason, a8 as MethodChoiceView, a9 as NationalEidOption, aa as NfcChipReason, ab as NfcStepView, ac as OtpChoiceView, ad as PhoneCountryRule, ae as PhoneFormat, ag as PhoneOtpReason, ah as PhotoSource, ai as PhotoSourcePick, aj as PlanAttempts, ak as PlanChoiceKind, al as PlanChoiceOption, am as PlanChoiceView, an as PlanSectionView, ao as PlanStepView, aq as PopulationReason, ar as PortraitFix, as as PortraitFixReviewInput, at as PortraitIcaoInput, au as PortraitIcaoReason, av as PortraitOutputFormat, az as ResolvedCaptureMode, aX as RetakeHint, aY as ScreenRampChallenge, aZ as ScreenRampPaint, a_ as ScreenRampRendered, a$ as ScreenRampReport, aA as SessionDecidingStep, aB as SessionFailureReason, aC as SessionReason, aD as SessionStatus, aG as SimulatedCaptureInput, aH as StepResult, aI as StepSection, aK as TesterGateInput, aL as TesterGateResponse, aM as VerificationAssurance, aN as VerificationLevel } from './types-ZBcpvLdo.cjs';
|
|
5
5
|
export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
|
|
6
|
-
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-
|
|
7
|
-
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-
|
|
6
|
+
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-Bm0rG91t.cjs';
|
|
7
|
+
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-DGtY696t.cjs';
|
|
8
8
|
import './detect-worker-CHqsPJoM.cjs';
|
|
9
|
-
import './capture-session-v3-
|
|
9
|
+
import './capture-session-v3-BoGn8vLv.cjs';
|
|
10
10
|
|
|
11
11
|
/** The closed palette, in the order the backend lists it. */
|
|
12
12
|
declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-
|
|
2
|
-
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AcceptedDocumentType,
|
|
1
|
+
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-DOBYRCV_.js';
|
|
2
|
+
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChallengeErrorCode, n as ChoiceOptionSnapshot, o as ChoiceSnapshot, p as ChoiceStepHandle, q as ContactChoiceSnapshot, r as ContactChoiceStepHandle, s as DEFAULT_API_ORIGIN, t as DOCUMENT_TYPE_ORDER, u as DeriveStepEnv, v as DocumentCaptureEvents, w as DocumentCaptureState, x as DocumentFeedback, y as DocumentFeedbackKey, z as DocumentGateUpdate, B as DocumentGuide, E as DocumentGuideMeasure, F as DocumentLiveMrzOptions, G as DocumentMrzUpdate, H as DocumentPoint, I as DocumentQuad, J as DocumentReticle, K as DocumentScanPhase, L as DocumentScanUpdate, M as DocumentSide, N as DocumentSnapshot, O as DocumentStepHandle, Q as EidSnapshot, R as EidStepHandle, S as EmailOtpSnapshot, T as EmailOtpStepHandle, U as EmailSource, V as GateHint, W as GateUpdate, X as ISSUER_CODES, Y as IdentitySummarySnapshot, Z as IdentitySummaryStepHandle, _ as InLaneSwitch, $ as LivePhotoGateUpdate, a0 as LivePhotoPlan, a1 as LivenessAssetsStatus, a2 as LivenessCaptureEvents, a3 as LivenessCaptureHandle, a4 as LivenessCaptureOptions, a5 as LivenessSnapshot, a6 as LivenessStartOptions, a7 as LivenessStepHandle, a8 as MethodSnapshot, a9 as MethodStepHandle, aa as MobileRequiredSnapshot, ab as MobileRequiredStepHandle, ac as OtpChannel, ad as OtpNumberSource, ae as PLATFORM_UNSUPPORTED, af as PhoneOtpSnapshot, ag as PhoneOtpStepHandle, ah as PhotoSourceState, ai as PlanChoiceSnapshot, aj as PortraitCaptureEvents, ak as PortraitCaptureState, al as PortraitGateUpdate, am as PortraitSnapshot, an as PortraitStartOptions, ao as PortraitStepHandle, ap as PreloadLivenessAssetsOptions, aq as ProcessingSnapshot, ar as ProcessingStepHandle, as as ReasonCode, at as RegistrySnapshot, au as RegistrySource, av as RegistryStepHandle, aw as ResultDisplay, ax as ResultSnapshot, ay as ResultStepHandle, az as SdkFailureReason, aA as StepAttempts, aB as StepContext, aC as StepSnapshot, aD as UnsupportedReason, aE as UnsupportedSnapshot, aF as UnsupportedStepHandle, aG as Verification, aH as VerificationBusy, aI as VerificationEvents, aJ as VerificationLocale, aK as VerificationOptions, aL as VerificationResult, aM as VerificationStatus, aN as VerificationStep, aO as WEB_IDENTITY_METHODS, aP as acceptedIssuers, aQ as acceptedTypesFor, aR as cameraUnavailableCauseOf, aS as createLivenessCapture, aT as createVerification, aU as deriveStep, aV as flagOf, aW as getLivenessAssetsStatus, aX as laneOf, aY as otherOptions, aZ as preloadLivenessAssets, a_ as releaseLivenessAssets, a$ as resolveAcceptedDocuments, b0 as sectionOf, b1 as subscribeLivenessAssets } from './create-verification-DOBYRCV_.js';
|
|
3
|
+
import { aO as ScreenRampColour } from './types-ZBcpvLdo.js';
|
|
4
|
+
export { A as AcceptedDocumentType, aP as AgeEstimationReason, aQ as CameraUnavailableCause, aR as CaptureIssueReport, b as CaptureMode, aS as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, H as HostedAcceptedDocuments, aT as HostedBranding, aU as HostedBrandingColorKey, v as HostedCaptureTuning, w as HostedChallengeView, x as HostedConsentView, y as HostedDocumentCaptureTuning, z as HostedDocumentScanTuning, B as HostedDocumentsView, G as HostedEidView, I as HostedEmailOtpView, J as HostedFlowRef, K as HostedIcaoPolicy, L as HostedIntegrity, M as HostedLivePhotoTuning, aV as HostedLivenessCaptureTuning, N as HostedNativeCaptureTuning, O as HostedOcrTuning, P as HostedOtpView, Q as HostedPlanView, R as HostedPortraitPendingFix, S as HostedPortraitView, T as HostedSessionView, U as HostedSimulationView, V as HostedStepView, W as HostedTesterGateView, X as HostedVoiceLocale, Y as HostedVoiceView, aW as IcaoCaptureTuning, Z as IcaoCriterion, _ as IcaoReportEntry, $ as IdentityConfirmDecision, a0 as IdentityMethod, a1 as IdentitySummarySource, a2 as IdentitySummaryView, a5 as LivenessReason, a6 as MatchReason, a8 as MethodChoiceView, a9 as NationalEidOption, aa as NfcChipReason, ab as NfcStepView, ac as OtpChoiceView, ad as PhoneCountryRule, ae as PhoneFormat, ag as PhoneOtpReason, ah as PhotoSource, ai as PhotoSourcePick, aj as PlanAttempts, ak as PlanChoiceKind, al as PlanChoiceOption, am as PlanChoiceView, an as PlanSectionView, ao as PlanStepView, aq as PopulationReason, ar as PortraitFix, as as PortraitFixReviewInput, at as PortraitIcaoInput, au as PortraitIcaoReason, av as PortraitOutputFormat, az as ResolvedCaptureMode, aX as RetakeHint, aY as ScreenRampChallenge, aZ as ScreenRampPaint, a_ as ScreenRampRendered, a$ as ScreenRampReport, aA as SessionDecidingStep, aB as SessionFailureReason, aC as SessionReason, aD as SessionStatus, aG as SimulatedCaptureInput, aH as StepResult, aI as StepSection, aK as TesterGateInput, aL as TesterGateResponse, aM as VerificationAssurance, aN as VerificationLevel } from './types-ZBcpvLdo.js';
|
|
5
5
|
export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
|
|
6
|
-
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-
|
|
7
|
-
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-
|
|
6
|
+
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-D8domgld.js';
|
|
7
|
+
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-CJPTgKFb.js';
|
|
8
8
|
import './detect-worker-CHqsPJoM.js';
|
|
9
|
-
import './capture-session-v3-
|
|
9
|
+
import './capture-session-v3-C0bbHvDc.js';
|
|
10
10
|
|
|
11
11
|
/** The closed palette, in the order the backend lists it. */
|
|
12
12
|
declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as j,c as $}from"./chunk-LJYMZQY2.js";import{a as _,f as Z,h as Y,i as f,j as y,k as h,l as P,m as v,n as z,o as W,p as J,q,r as Q,t as X}from"./chunk-
|
|
1
|
+
import{a as j,c as $}from"./chunk-LJYMZQY2.js";import{a as _,f as Z,h as Y,i as f,j as y,k as h,l as P,m as v,n as z,o as W,p as J,q,r as Q,t as X}from"./chunk-GLXOSYBH.js";import{D as C,E as S}from"./chunk-4ESM6SSR.js";import{e as b,f as V,g as G,h as U,o as B}from"./chunk-DIKSFEYQ.js";import{b as T,c as N,d as x}from"./chunk-7QZWBDI5.js";import{o as O,p as I}from"./chunk-J4S3QMK6.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{a as w,b as F,c as K,h as k}from"./chunk-7HV77AOV.js";import"./chunk-TSA6GHUG.js";import"./chunk-EHKCOBE2.js";import"./chunk-FSSMUAKC.js";function ee(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var te=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,oe=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>te.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"});function re(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ne=Object.freeze({normalize:e=>e.trim(),check:e=>re(e),registrySources:Object.freeze(["MR.anrpts"]),describe:"number must be the 10-digit Mauritanian national ID number with a valid check digit"}),ie=Object.freeze({"MR:national_id":ne});function m(e,t){return ie[`${e.toUpperCase()}:${t}`]??oe}var ae=Object.freeze({MRT:"MR"});function R(e,t){let r=e.trim().toUpperCase();return m(ae[r]??r,t)}function se(e){let t=R(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function pe(e){return m("MR","national_id").check(e)}function g(e){let t="";for(let r of e){let n=r.codePointAt(0)??0;n>=1632&&n<=1641?t+=String(n-1632):n>=1776&&n<=1785?t+=String(n-1776):r!==" "&&r!=="-"&&r!==" "&&(t+=r)}return t}function ue(e){return g(e)}var De=f,Ae=y,Le=h,Oe=P,Ie=v;var M=()=>import("./create-document-capture-OLKNUVTU.js");function E(e){let t=null,r=null,n=!1,u=null,l=null,d=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=M().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of d)c.removed||i(c,s);return u!==null&&s.setSide(u),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of d)!o.removed&&o.event==="error"&&o.handler({kind:"generic",retryable:!0});return null});return{get state(){return t?.state??"idle"},on:(o,s)=>{let c={event:o,handler:s,off:null,removed:!1};return d.push(c),t!==null&&i(c,t),()=>{c.removed=!0,c.off?.()}},start:async()=>{let o=await p();o!==null&&!n&&await o.start()},retry:()=>{t!==null?t.retry():p().then(o=>o?.start())},setSide:o=>{t!==null?t.setSide(o):u=o},shutter:()=>t?.shutter(),setTorch:o=>t?.setTorch(o),focusAt:(o,s)=>t?.focusAt(o,s),setGuide:o=>{t!==null?t.setGuide(o):l={guide:o}},destroy:()=>{n=!0,t?.destroy(),t=null,d.length=0}}}function H(){M().then(e=>e.warmDocumentCapture()).catch(()=>{})}function Ve(e){return E(e)}function Ge(){H()}var D=()=>import("./create-portrait-capture-5VGYZUOK.js");function A(e){let t=null,r=null,n=!1,u=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},d=()=>(r??(r=D().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of u)p.removed||l(p,a);return t=a,a})),r);return{get state(){return t?.state??"idle"},get captureMode(){return t?.captureMode??"self"},get facingMode(){return t?.facingMode??"user"},on:(i,a)=>{let p={event:i,handler:a,off:null,removed:!1};return u.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await d();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():d().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,canSwitchCaptureMode:async()=>!1,setCaptureMode:async()=>!1,destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function L(){D().then(e=>e.warmPortraitCapture()).catch(()=>{})}function Ke(e){return A(e)}function ke(){L()}export{_ as DEFAULT_API_ORIGIN,De as DOCUMENT_TYPE_ORDER,K as HostedApiError,Y as ISSUER_CODES,C as InvalidInputError,w as KNOWN_CODES,S as OtpInputError,W as PLATFORM_UNSUPPORTED,O as SCREEN_RAMP_COLOURS,j as SEKYRO_EVENTS,z as WEB_IDENTITY_METHODS,Le as acceptedIssuers,Ae as acceptedTypesFor,ee as cameraUnavailableCauseOf,Ve as createDocumentCapture,B as createLivenessCapture,Ke as createPortraitCapture,Z as createVerification,X as deriveStep,Ie as flagOf,V as getLivenessAssetsStatus,x as hasMultipleCameras,k as icaoPolicyOf,F as isKnownCode,se as isValidIdNumber,pe as isValidNni,q as laneOf,g as normalizeDigits,ue as normalizeNni,$ as openHosted,Q as otherOptions,b as preloadLivenessAssets,T as queryCameraPermission,U as releaseLivenessAssets,Oe as resolveAcceptedDocuments,I as screenRampColourValue,J as sectionOf,N as subscribeCameraPermission,G as subscribeLivenessAssets,Ge as warmDocumentCapture,ke as warmPortraitCapture};
|