import {Logger}from'@scandit/web-datacapture-core';var l=class{constructor(e){this.workerMain=e;}onFieldsScanned(e){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnFieldsScanned",payload:{fields:e.map(a=>({labelField:JSON.parse(a.getLabelField().toJson()),valid:a.isValid()}))}});}onScanTimeout(){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnScanTimeout"});}onLabelIsMissingRequiredField(e){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnLabelIsMissingRequiredField",payload:{fields:e.map(a=>({labelField:JSON.parse(a.getLabelField().toJson()),valid:a.isValid()}))}});}onCloudBackupServiceStartedForFields(e){Logger.warn("Cloud Backup feature is not available for the web yet.");}onCloudBackupServiceFailedForFields(e){Logger.warn("Cloud Backup feature is not available for the web yet.");}onStateChanged(e){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnStateChanged",payload:{state:e}});}};export{l as a};