var o=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(),isProcessingInCloud:a.isProcessingInCloud()}))}});}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(),isProcessingInCloud:a.isProcessingInCloud()}))}});}onManualInput(e,a,l){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnManualInput",payload:{field:{labelField:JSON.parse(e.getLabelField().toJson()),valid:e.isValid(),isProcessingInCloud:e.isProcessingInCloud()},oldValue:a,newValue:l}});}onCloudBackupServiceStarted(){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnCloudBackupServiceStarted"});}onCloudBackupServiceStopped(){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnCloudBackupServiceStopped"});}onStateChanged(e){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnStateChanged",payload:{state:e}});}onResultUpdate(e,a,l){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnResultUpdate",payload:{updateType:e.type,fields:a.map(i=>({labelField:JSON.parse(i.getLabelField().toJson()),valid:i.isValid(),isProcessingInCloud:i.isProcessingInCloud()}))}});}};export{o as a};