var t=class{constructor(e){this.workerMain=e;}onProcessingStarted(){this.workerMain.postCallbackMessage({type:"receiptScanningListenerOnProcessingStarted"});}onReceiptScanned(e){this.workerMain.postCallbackMessage({type:"receiptScanningListenerOnReceiptScanned",payload:{result:{storeName:e.storeName,storeCity:e.storeCity,storeAddress:e.storeAddress,date:e.date,time:e.time,paymentPreTaxTotal:e.paymentPreTaxTotal,paymentTax:e.paymentTax,paymentTotal:e.paymentTotal,loyaltyNumber:e.loyaltyNumber,lineItems:e.lineItems.map(n=>({name:n.name,unitPrice:n.unitPrice,discount:n.discount,quantity:n.quantity,totalPrice:n.totalPrice}))}}});}onReceiptScanningFailed(){this.workerMain.postCallbackMessage({type:"receiptScanningListenerOnReceiptScanningFailed"});}};export{t as a};