import {a as a$1}from'./chunk-SUEFKTEN.js';import {a}from'./chunk-SYDG6PPD.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var r=class r{constructor(a){this[nativeHandle]=a;}static async create(a$1){let i=await a().workerCommand("validationFlowHandlerCreate",{payload:{labelCaptureHandle:a$1[nativeHandle]}});return new r(i)}async startCompleteLabelScan(a$1){await a().workerCommand("validationFlowHandlerStartCompleteLabelScan",{payload:{labelCaptureHandle:this[nativeHandle],labelName:a$1}});}async startPartialLabelScan(a$1){await a().workerCommand("validationFlowHandlerStartPartialLabelScan",{payload:{labelCaptureHandle:this[nativeHandle],fieldNames:a$1}});}async updateFieldValue(a$1,i){return await a().workerCommand("validationFlowHandlerUpdateFieldValue",{payload:{labelCaptureHandle:this[nativeHandle],fieldName:a$1,value:i}})}async onFinishFlowRequested(){return await a().workerCommand("validationFlowHandlerFinishFlow",{payload:{labelCaptureHandle:this[nativeHandle]}})}async pauseScan(){await a().workerCommand("validationFlowHandlerPauseScan",{payload:{labelCaptureHandle:this[nativeHandle]}});}async resumeScan(){await a().workerCommand("validationFlowHandlerResumeScan",{payload:{labelCaptureHandle:this[nativeHandle]}});}async validationFlowFields(){return (await a().workerCommand("validationFlowHandlerGetValidationFlowFields",{payload:{labelCaptureHandle:this[nativeHandle]}})).map(i=>a$1.fromJSONObject(i))}},t=r;export{t as a};