@scandit/web-datacapture-label 8.0.0 → 8.1.0

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.
Files changed (199) hide show
  1. package/THIRD_PARTY.txt +201 -71
  2. package/build/js/{LabelCapture-r1VXyYY1.d.ts → LabelCapture-DGLkCHVN.d.ts} +1 -3
  3. package/build/js/{LabelCaptureAdvancedOverlay-CX1Nuzz9.d.ts → LabelCaptureAdvancedOverlay-B1hVlOzu.d.ts} +2 -2
  4. package/build/js/{LabelCaptureBasicOverlay-Dpxz5gik.d.ts → LabelCaptureBasicOverlay-BjmQOKkn.d.ts} +2 -2
  5. package/build/js/{NativeProxy-Dqn_Pwfi.d.ts → NativeProxy-B98bIlIp.d.ts} +203 -22
  6. package/build/js/api/AdaptiveRecognitionResult.d.ts +38 -0
  7. package/build/js/api/AdaptiveRecognitionResult.js +1 -0
  8. package/build/js/api/CustomBarcodeBuilder.js +1 -1
  9. package/build/js/api/CustomText.d.ts +2 -1
  10. package/build/js/api/CustomTextBuilder.d.ts +2 -1
  11. package/build/js/api/DateText.d.ts +2 -1
  12. package/build/js/api/DateTextBuilder.d.ts +2 -1
  13. package/build/js/api/DateTextBuilder.js +1 -1
  14. package/build/js/api/ExpiryDateText.d.ts +2 -1
  15. package/build/js/api/ExpiryDateTextBuilder.d.ts +2 -1
  16. package/build/js/api/ExpiryDateTextBuilder.js +1 -1
  17. package/build/js/api/ImeiOneBarcodeBuilder.js +1 -1
  18. package/build/js/api/LabelCapture.d.ts +3 -2
  19. package/build/js/api/LabelCapture.js +1 -1
  20. package/build/js/api/LabelCaptureAdaptiveRecognitionOverlay.d.ts +111 -0
  21. package/build/js/api/LabelCaptureAdaptiveRecognitionOverlay.js +1 -0
  22. package/build/js/api/LabelCaptureAdaptiveRecognitionSettings.d.ts +38 -0
  23. package/build/js/api/LabelCaptureAdaptiveRecognitionSettings.js +1 -0
  24. package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +4 -3
  25. package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +4 -3
  26. package/build/js/api/LabelCaptureBasicOverlay.d.ts +4 -3
  27. package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +4 -3
  28. package/build/js/api/LabelCaptureListener.d.ts +3 -2
  29. package/build/js/api/LabelCaptureOverlayJSON.d.ts +3 -1
  30. package/build/js/api/LabelCaptureSettings.d.ts +2 -1
  31. package/build/js/api/LabelCaptureValidationFlowOverlay.d.ts +7 -6
  32. package/build/js/api/LabelCaptureValidationFlowOverlay.js +1 -1
  33. package/build/js/api/LabelDefinition.d.ts +2 -1
  34. package/build/js/api/PackingDateText.d.ts +2 -1
  35. package/build/js/api/PackingDateTextBuilder.d.ts +2 -1
  36. package/build/js/api/PrivateReceiptScanningHandler.d.ts +76 -0
  37. package/build/js/api/PrivateReceiptScanningHandler.js +1 -0
  38. package/build/js/api/PrivateReceiptScanningListener.d.ts +59 -0
  39. package/build/js/api/PrivateReceiptScanningListener.js +0 -0
  40. package/build/js/api/ReceiptScanningLineItem.d.ts +39 -0
  41. package/build/js/api/ReceiptScanningLineItem.js +1 -0
  42. package/build/js/api/ReceiptScanningResult.d.ts +38 -0
  43. package/build/js/api/ReceiptScanningResult.js +1 -0
  44. package/build/js/api/TotalPriceText.d.ts +2 -1
  45. package/build/js/api/TotalPriceTextBuilder.d.ts +2 -1
  46. package/build/js/api/UnitPriceText.d.ts +2 -1
  47. package/build/js/api/UnitPriceTextBuilder.d.ts +2 -1
  48. package/build/js/api/WeightText.d.ts +2 -1
  49. package/build/js/api/WeightTextBuilder.d.ts +2 -1
  50. package/build/js/chunks/chunk-4PATACKR.js +1 -0
  51. package/build/js/chunks/chunk-5Q3VETGO.js +1 -0
  52. package/build/js/chunks/chunk-CUHE565K.js +1 -0
  53. package/build/js/chunks/chunk-D6QEVE6U.js +1 -0
  54. package/build/js/chunks/chunk-DDYADIOR.js +1 -0
  55. package/build/js/chunks/chunk-G37GYNDK.js +1 -0
  56. package/build/js/chunks/chunk-HVHZOWOI.js +1 -0
  57. package/build/js/chunks/chunk-IUFE5KAN.js +1 -0
  58. package/build/js/chunks/chunk-MMRF53YY.js +1 -0
  59. package/build/js/chunks/chunk-N2RCJCCU.js +1 -0
  60. package/build/js/chunks/chunk-OPQ56BH6.js +2 -0
  61. package/build/js/chunks/{chunk-3XCVMISO.js → chunk-PACXVWIU.js} +1 -1
  62. package/build/js/chunks/chunk-SFX2AZVU.js +1 -0
  63. package/build/js/chunks/{chunk-FEDVCTOM.js → chunk-T5PFYQ2F.js} +1 -1
  64. package/build/js/chunks/{chunk-TUGEFRT6.js → chunk-THXK2CAH.js} +1 -1
  65. package/build/js/chunks/{chunk-2JQJUKKV.js → chunk-U77DVACF.js} +1 -1
  66. package/build/js/chunks/{chunk-NJRLN3WA.js → chunk-VAZEF7GZ.js} +1 -1
  67. package/build/js/chunks/{chunk-TKET64Y7.js → chunk-ZVURFK6X.js} +1 -1
  68. package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.d.ts +4 -3
  69. package/build/js/djinni-types/sdcLabelInternalModuleCapture.d.ts +15 -2
  70. package/build/js/djinni-types/sdcLabelInternalModuleData.d.ts +20 -1
  71. package/build/js/djinni-types/sdcLabelInternalModuleUiOverlay.d.ts +18 -1
  72. package/build/js/index.d.ts +11 -9
  73. package/build/js/index.js +1 -1
  74. package/build/js/moduleLoader.js +1 -1
  75. package/build/js/private/PrivateLabelFieldDefinition.d.ts +2 -1
  76. package/build/js/private/createProxiedViewFinder.d.ts +4 -3
  77. package/build/js/private/viewfinderTranslator.js +1 -1
  78. package/build/js/ui/organisms/AdaptiveRecognitionOverlay.d.ts +25 -0
  79. package/build/js/ui/organisms/AdaptiveRecognitionOverlay.js +1 -0
  80. package/build/js/worker/LabelCaptureWorkerManager.d.ts +3 -1
  81. package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
  82. package/build/js/worker/WorkerMain.d.ts +10 -10
  83. package/build/js/worker/WorkerMain.js +1 -1
  84. package/build/js/worker/WorkerRegistry.d.ts +3 -1
  85. package/build/js/worker/dataCaptureEngine.d.ts +3 -1
  86. package/build/js/worker/dataCaptureEngine.js +1 -1
  87. package/build/js/worker/dataCaptureWorkerRelated.d.ts +3 -1
  88. package/build/js/worker/handlers/FieldBuilderHandler.d.ts +45 -0
  89. package/build/js/worker/handlers/FieldBuilderHandler.js +1 -0
  90. package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.d.ts +45 -0
  91. package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.js +1 -0
  92. package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.d.ts +61 -0
  93. package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.js +1 -0
  94. package/build/js/worker/handlers/LabelCaptureHandler.d.ts +51 -0
  95. package/build/js/worker/handlers/LabelCaptureHandler.js +1 -0
  96. package/build/js/worker/handlers/ReceiptScanningHandler.d.ts +52 -0
  97. package/build/js/worker/handlers/ReceiptScanningHandler.js +1 -0
  98. package/build/js/worker/handlers/SettingsHandler.d.ts +51 -0
  99. package/build/js/worker/handlers/SettingsHandler.js +1 -0
  100. package/build/js/worker/handlers/ValidationFlowHandler.d.ts +52 -0
  101. package/build/js/worker/handlers/ValidationFlowHandler.js +1 -0
  102. package/build/js/worker/labelCapture.inlineWorker.d.ts +3 -1
  103. package/build/js/worker/labelCapture.inlineWorker.js +1 -1
  104. package/build/js/worker/labelWorkerHandler.d.ts +3 -1
  105. package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +3 -1
  106. package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
  107. package/build/js/worker/proxies/BarcodeFieldProxy.d.ts +3 -1
  108. package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
  109. package/build/js/worker/proxies/CapturedLabelProxy.d.ts +3 -1
  110. package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
  111. package/build/js/worker/proxies/CustomBarcodeProxy.d.ts +9 -16
  112. package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
  113. package/build/js/worker/proxies/CustomTextProxy.d.ts +7 -14
  114. package/build/js/worker/proxies/CustomTextProxy.js +1 -1
  115. package/build/js/worker/proxies/DateTextProxy.d.ts +6 -12
  116. package/build/js/worker/proxies/DateTextProxy.js +1 -1
  117. package/build/js/worker/proxies/ExpiryDateTextProxy.d.ts +9 -15
  118. package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
  119. package/build/js/worker/proxies/ImeiOneBarcodeProxy.d.ts +9 -18
  120. package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
  121. package/build/js/worker/proxies/ImeiTwoBarcodeProxy.d.ts +9 -18
  122. package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
  123. package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.d.ts +3 -1
  124. package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
  125. package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.d.ts +3 -1
  126. package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
  127. package/build/js/worker/proxies/LabelCaptureHelperProxy.d.ts +3 -1
  128. package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
  129. package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.d.ts +6 -2
  130. package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
  131. package/build/js/worker/proxies/LabelCaptureProxy.d.ts +3 -1
  132. package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
  133. package/build/js/worker/proxies/LabelCaptureSessionProxy.d.ts +3 -1
  134. package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
  135. package/build/js/worker/proxies/LabelCaptureSettingsProxy.d.ts +3 -1
  136. package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
  137. package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +3 -1
  138. package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
  139. package/build/js/worker/proxies/LabelFieldDefinitionProxy.d.ts +3 -1
  140. package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
  141. package/build/js/worker/proxies/LabelFieldLocationProxy.d.ts +3 -1
  142. package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
  143. package/build/js/worker/proxies/LabelFieldProxy.d.ts +3 -1
  144. package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
  145. package/build/js/worker/proxies/NativeProxy.d.ts +3 -1
  146. package/build/js/worker/proxies/NativeProxy.js +1 -1
  147. package/build/js/worker/proxies/NoViewfinderProxy.d.ts +3 -1
  148. package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
  149. package/build/js/worker/proxies/PackingDateTextProxy.d.ts +12 -18
  150. package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
  151. package/build/js/worker/proxies/PartNumberBarcodeProxy.d.ts +9 -18
  152. package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
  153. package/build/js/worker/proxies/ReceiptScanningHandlerProxy.d.ts +52 -0
  154. package/build/js/worker/proxies/ReceiptScanningHandlerProxy.js +1 -0
  155. package/build/js/worker/proxies/ReceiptScanningOverlayProxy.d.ts +51 -0
  156. package/build/js/worker/proxies/ReceiptScanningOverlayProxy.js +1 -0
  157. package/build/js/worker/proxies/ReceiptScanningSettingsProxy.d.ts +48 -0
  158. package/build/js/worker/proxies/ReceiptScanningSettingsProxy.js +1 -0
  159. package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.d.ts +3 -1
  160. package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.js +1 -1
  161. package/build/js/worker/proxies/RectangularViewfinderProxy.d.ts +3 -1
  162. package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
  163. package/build/js/worker/proxies/SerialNumberBarcodeProxy.d.ts +9 -18
  164. package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
  165. package/build/js/worker/proxies/TotalPriceTextProxy.d.ts +7 -15
  166. package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
  167. package/build/js/worker/proxies/UnitPriceTextProxy.d.ts +7 -15
  168. package/build/js/worker/proxies/UnitPriceTextProxy.js +1 -1
  169. package/build/js/worker/proxies/ValidationFlowListenerProxy.d.ts +3 -1
  170. package/build/js/worker/proxies/ValidationFlowOverlayProxy.d.ts +3 -1
  171. package/build/js/worker/proxies/ValidationFlowOverlayProxy.js +1 -1
  172. package/build/js/worker/proxies/ValidationFlowSettingsProxy.d.ts +3 -1
  173. package/build/js/worker/proxies/ValidationFlowSettingsProxy.js +1 -1
  174. package/build/js/worker/proxies/WeightTextProxy.d.ts +19 -27
  175. package/build/js/worker/proxies/WeightTextProxy.js +1 -1
  176. package/build/js/worker/proxies/base/BarcodeFieldProxyBase.d.ts +57 -0
  177. package/build/js/worker/proxies/base/BarcodeFieldProxyBase.js +1 -0
  178. package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.d.ts +95 -0
  179. package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.js +1 -0
  180. package/build/js/worker/proxies/base/index.d.ts +40 -0
  181. package/build/js/worker/proxies/base/index.js +1 -0
  182. package/package.json +6 -6
  183. package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.77afd87bb1ae.model +0 -0
  184. package/sdc-lib/resources/models/invalidated_id_classification_default.655732a12364.model +0 -0
  185. package/sdc-lib/resources/models/ocr_barcode_semantics_default.afe40f85a32d.model +0 -0
  186. package/sdc-lib/scandit-datacapture-sdk-label-pthreads.js +1 -1
  187. package/sdc-lib/scandit-datacapture-sdk-label-pthreads.wasm +0 -0
  188. package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.js +1 -1
  189. package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.wasm +0 -0
  190. package/sdc-lib/scandit-datacapture-sdk-label-simd.js +1 -1
  191. package/sdc-lib/scandit-datacapture-sdk-label-simd.wasm +0 -0
  192. package/sdc-lib/scandit-datacapture-sdk-label.js +1 -1
  193. package/sdc-lib/scandit-datacapture-sdk-label.wasm +0 -0
  194. package/build/js/chunks/chunk-4VDTMXV4.js +0 -1
  195. package/build/js/chunks/chunk-6ZRD5AHI.js +0 -1
  196. package/build/js/chunks/chunk-BIHOAP6N.js +0 -2
  197. package/build/js/chunks/chunk-BMVC3AFP.js +0 -1
  198. package/sdc-lib/resources/models/invalidated_id_classification_default.373f114cb966.model +0 -0
  199. package/sdc-lib/resources/models/ocr_barcode_semantics_default.8c2870b758fd.model +0 -0
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-SYDG6PPD.js';import {a as a$2}from'./chunk-OHZCXBA4.js';import {a}from'./chunk-WX63L6GU.js';var o=class extends a{constructor(){super(...arguments);this.anchorRegexes=[];}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}async build(e){let a=await a$1().workerCommand("labelCaptureBuildImeiOneBarcode",{payload:{name:e,dataTypePatterns:this.anchorRegexes,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,symbologies:this.symbologies}}),i=a$2.forHandle(a);return i._isOptional=this._isOptional,i._name=e,i._valueRegexes=this.valueRegexes,i._symbologies=this.symbologySettings,i}getThis(){return this}};export{o as a};
1
+ import {a as a$2}from'./chunk-OHZCXBA4.js';import {a as a$1}from'./chunk-SYDG6PPD.js';import {a}from'./chunk-WX63L6GU.js';var o=class extends a{constructor(){super(...arguments);this.anchorRegexes=[];}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}async build(e){let a=await a$1().workerCommand("labelCaptureBuildImeiOneBarcode",{payload:{name:e,dataTypePatterns:this.anchorRegexes,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,symbologies:this.symbologies}}),i=a$2.forHandle(a);return i._isOptional=this._isOptional,i._name=e,i._valueRegexes=this.valueRegexes,i._symbologies=this.symbologySettings,i}getThis(){return this}};export{o as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-AVKEMR5W.js';import {a as a$1}from'./chunk-SYDG6PPD.js';import {a as a$2}from'./chunk-SQEDHQIB.js';var l=class extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var r,a;let h=await a$1().workerCommand("labelCaptureBuildExpiryDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:(r=this.labelDateFormat)==null?void 0:r.toJSONObject()}}),t=a$2.forHandle(h);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._dateFormat=this.labelDateFormat,t._anchorRegexes=(a=this.anchorRegexes)!=null?a:[],t}getThis(){return this}};export{l as a};
1
+ import {a}from'./chunk-AVKEMR5W.js';import {a as a$2}from'./chunk-SQEDHQIB.js';import {a as a$1}from'./chunk-SYDG6PPD.js';var l=class extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var r,a;let h=await a$1().workerCommand("labelCaptureBuildExpiryDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:(r=this.labelDateFormat)==null?void 0:r.toJSONObject()}}),t=a$2.forHandle(h);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._dateFormat=this.labelDateFormat,t._anchorRegexes=(a=this.anchorRegexes)!=null?a:[],t}getThis(){return this}};export{l as a};
@@ -1 +1 @@
1
- import {a as a$3}from'./chunk-7YYY7VA3.js';import {a as a$2}from'./chunk-RTUZ7UNX.js';import {a as a$4}from'./chunk-XW4HFTSX.js';import {b}from'./chunk-7W7VDXJD.js';import {a as a$9}from'./chunk-CWOXTL6A.js';import {a as a$1}from'./chunk-FLGWGEP3.js';import {a}from'./chunk-VSH23DF3.js';import {a as a$6}from'./chunk-2BXP3X3H.js';import {a as a$7}from'./chunk-SUEFKTEN.js';import {a as a$5}from'./chunk-SYDG6PPD.js';import {a as a$8}from'./chunk-ZU6C4VWO.js';import {Logger,Color,ScanditIconType,BrowserHelper,FrameSourceState}from'@scandit/web-datacapture-core';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';import {Backdrop}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardListEvents}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';import {SecondaryBlue60,SecondaryBlue10}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';function c(s){let t=btoa(s).replace(/=/g,"");return /^[a-z]/.test(t)?t:`id-${t}`}function D(s){return s?`${s.day} - ${s.month} - ${s.year}`:""}function q({name:s,type:t,label:a,value:e,errorMessage:i,loadingText:n,required:r}){let o=Card.create(),p=a$9.create(),l=a$4.create();return l.errorMessage=i,l.type=t,l.label=a,l.value=e,l.required=r,l.name=s,l.loadingText=n,p.append(l),o.append(p),o.backgroundColor=Color.fromHex("#fff"),o.id=c(s),o}var j={3:"Paused",4:"Finished",2:"In complete scan",1:"In partial scan",0:"Idle"};function w(s){return s.map(t=>a$7.fromJSONObject(t))}var B=class B{constructor(t,a$5,e){this.listener={onValidationFlowLabelCaptured:t=>{}};this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this.onInputManuallyButtonClickHandler=this.onInputManuallyButtonClick.bind(this);this.onSubmitButtonClickHandler=this.onSubmitButtonClick.bind(this);this.onRestartButtonClickHandler=this.onRestartButtonClick.bind(this);this.onBackButtonClickHandler=this.onBackButton.bind(this);this.onContextUpdatedListenerHandler=this.onContextUpdatedListener.bind(this);this.onTextInputAimerIconClickHandler=this.onTextInputAimerIconClick.bind(this);this.onTextInputClearIconClickHandler=this.onTextInputClearIconClick.bind(this);this.currentInput=null;this.onCardListClickHandler=this.onCardListClick.bind(this);this.onClickOutsideHandler=this.onClickOutside.bind(this);this.validationFieldsState=new Map;this.cloudBackupProcessingFields=new Set;this[nativeHandle]=t,this.validationFlowHandler=a$5,this.validationSettings=e;for(let i of [a,a$1,a$2,b,a$3,a$4])i.register();}static async withLabelCaptureForView(t,a){var o;let e=await a$5().workerCommand("validationFlowOverlayForLabelCapture",{payload:{labelCaptureHandle:t[nativeHandle]}}),i=await t.validationFlowHandler(),n=await a$6.create(),r=new B(e,i,n);return r.labelCapture=t,await a.addOverlay(r),(o=t.context)==null||o.updateListeners.add(r.onContextUpdatedListenerHandler),await r.mount(a),await r.goToCompleteScan(),r}async applySettings(t){this.validationSettings=t,await a$5().workerCommand("validationFlowOverlayApplySettings",{payload:{overlayHandle:this[nativeHandle],settingsHandle:t[nativeHandle]}}),this.inputManuallyButton.text=this.validationSettings.manualInputButtonText;}toJSONObject(){return {type:"ValidationFlowOverlay",nativeHandle:this[nativeHandle]}}async goToCompleteScan(){this.hideCardListAndShowInputManuallyButton(),await this.validationFlowHandler.startCompleteLabelScan("");let t=await this.validationFlowHandler.validationFlowFields();Logger.debug("ValidationFlowHandler::validationFlowFields",t),this.initializeCards(t),t.length===1&&(await this.onInputManuallyButtonClickHandler(),await this.onTextInputAimerIconClickHandler());}async mount(t){a$5().addWorkerListener(this.onWorkerMessageHandler),this.layout=a$3.create(),this.cardListContainer=b.create(),this.cardListContainer.slot="card-list",this.cardListContainer.hidden=true,this.backAndRestartButton=a$1.create(),this.backAndRestartButton.variant="restart",this.submitButton=a.create(),this.submitButton.ariaLabel="Submit",this.submitButton.backgroundColor=SecondaryBlue60,this.submitButton.iconColor=Color.fromHex("#fff"),this.submitButton.icon=ScanditIconType.Checkmark,this.cardListContainer.append(this.backAndRestartButton,this.submitButton),this.inputManuallyButton=a$2.create(),this.inputManuallyButton.slot="bottom-button",this.inputManuallyButton.text=this.validationSettings.manualInputButtonText,this.layout.append(this.cardListContainer,this.inputManuallyButton),this.backdrop=Backdrop.create(),this.backdrop.slot="backdrop",this.layout.append(this.backdrop),t.htmlElement.prepend(this.layout),this.inputManuallyButton.addEventListener("click",this.onInputManuallyButtonClickHandler),this.submitButton.addEventListener("click",this.onSubmitButtonClickHandler),this.backAndRestartButton.addEventListener("restart",this.onRestartButtonClickHandler),this.backAndRestartButton.addEventListener("back",this.onBackButtonClickHandler),this.layout.addEventListener("click",this.onClickOutsideHandler),this.cardListContainer.addEventListener("on-button-container-click",this.onClickOutsideHandler),this.cardListContainer.addEventListener(CardListEvents.Tap,this.onCardListClickHandler),this.cardListContainer.addEventListener("text-input-aimer-icon-click",this.onTextInputAimerIconClickHandler),this.cardListContainer.addEventListener("text-input-clear-icon-click",this.onTextInputClearIconClickHandler);}async unmount(){var t,a,e,i,n,r,o,p,l,g,I,H;a$5().removeWorkerListener(this.onWorkerMessageHandler),(a=(t=this.labelCapture)==null?void 0:t.context)==null||a.updateListeners.delete(this.onContextUpdatedListenerHandler),(e=this.inputManuallyButton)==null||e.removeEventListener("click",this.onInputManuallyButtonClickHandler),(i=this.submitButton)==null||i.removeEventListener("click",this.onSubmitButtonClickHandler),(n=this.backAndRestartButton)==null||n.removeEventListener("restart",this.onRestartButtonClickHandler),(r=this.backAndRestartButton)==null||r.removeEventListener("back",this.onBackButtonClickHandler),(o=this.layout)==null||o.removeEventListener("click",this.onClickOutsideHandler),(p=this.cardListContainer)==null||p.removeEventListener("on-button-container-click",this.onClickOutsideHandler),(l=this.cardListContainer)==null||l.removeEventListener(CardListEvents.Tap,this.onCardListClickHandler),(g=this.cardListContainer)==null||g.removeEventListener("text-input-aimer-icon-click",this.onTextInputAimerIconClickHandler),(I=this.cardListContainer)==null||I.removeEventListener("text-input-clear-icon-click",this.onTextInputClearIconClickHandler),(H=this.layout)==null||H.remove(),this.validationFieldsState.clear(),this.cloudBackupProcessingFields.clear();}async onContextUpdatedListener(t){t.type==="removeOverlay"&&t.newValue===this&&await this.unmount(),t.type==="modeEnabled"&&t.newValue&&(this.validationFlowHandlerState===4||this.validationFlowHandlerState===0)&&(Logger.debug("Validation flow overlay: mode enabled and validation flow finished, going to complete scan"),await this.goToCompleteScan());}hasClickedOutsideOfCardList(t){return t.type==="on-button-container-click"&&t.target instanceof b||t.type==="click"&&t.target instanceof a$3||t.type==="click"&&t.target instanceof Backdrop}async onClickOutside(t){if(this.hasClickedOutsideOfCardList(t)){if(this.cloudBackupProcessingFields.size>0){let a=[];for(let e of this.cloudBackupProcessingFields)a.push(this.validationFlowHandler.uncancelCloudBackupTaskForField(e));await Promise.all(a);}await this.onBackButtonClickHandler();}}initializeCards(t){var e;let a=[];for(let i of t){let n=i.getLabelField(),r=q({name:n.name,type:"text",label:n.isRequired?`${n.name} *`:n.name,loadingText:"Processing, tap to type manually",value:(e=n.text)!=null?e:"",errorMessage:n.isRequired?this.validationSettings.requiredFieldErrorText:this.validationSettings.validationErrorText,required:n.isRequired});a.push(r);}this.cardListContainer.renderCards(a);}async onCardListClick(t){let a=t.detail.card;if(this.currentInput=a==null?void 0:a.querySelector(a$4.tag),!a||!this.currentInput)return;let e=this.currentInput.name;if(this.cloudBackupProcessingFields.has(e)){await this.validationFlowHandler.cancelCloudBackupTaskForField(e),this.cloudBackupProcessingFields.delete(e);let i=this.cardListContainer.getCardBySelector(`#${c(e)}`);this.updateCard({card:i,value:"",state:"initial"});}this.currentInput.showKeyboard(BrowserHelper.isDesktopDevice()?0:1e3,()=>{this.cardListContainer.focusCard(a);}),this.updateCard({card:a,state:"initial"}),this.backAndRestartButton.variant="back",this.submitButton.hide(),this.cardListContainer.buttonSidePositionIfLandscape=true,await this.validationFlowHandler.pauseScan(),await this.cardListContainer.unshiftCard(a),await this.cardListContainer.collapse();}async onTextInputAimerIconClick(t){var e,i;this.currentInput=(e=t==null?void 0:t.detail.target)!=null?e:this.cardListContainer.cards[0].querySelector(a$4.tag);let a=(i=this.currentInput)==null?void 0:i.closest(Card.tag);a&&(await this.cardListContainer.unshiftCard(a),this.backAndRestartButton.variant="back",this.submitButton.hide(),this.cardListContainer.unfocusCard(a),await this.cardListContainer.collapse()),await this.validationFlowHandler.startPartialLabelScan([this.currentInput.name]);}async onTextInputClearIconClick(t){let a=t.detail.target.closest(Card.tag),e=t.detail.target;this.updateCard({card:a,value:"",state:"initial"}),await this.validationFlowHandler.pauseScan();let i=await this.validationFlowHandler.updateFieldValue(e.name,"");this.validationFieldsState.set(e,i),await this.cardListContainer.unshiftCard(a),await this.expandListAndShowSubmitAndRestartButton();}determineCardStateOnSubmit(t,a,e){let i=e!=="";return t?!i||!a?"error":"ready":i?a?"ready":"error":"initial"}async onInputManuallyButtonClick(){this.showCardListAndHideInputManuallyButton(),await this.validationFlowHandler.pauseScan();}async onSubmitButtonClick(){this.currentInput=null;let t=await this.validationFlowHandler.onFinishFlowRequested();if(t.type==="result"){let a=t.result.map(e=>a$7.fromJSONObject(e));this.hideCardListAndShowInputManuallyButton(),this.listener.onValidationFlowLabelCaptured(a.map(e=>e.getLabelField()));}else {for(let[a,e]of this.validationFieldsState.entries()){let i=a.closest(Card.tag);if(i!=null){let n=this.determineCardStateOnSubmit(a.required,e,a.value);this.updateCard({card:i,state:n});}}Logger.info("Validation flow overlay: on finish flow requested error:",t.error);}}async onRestartButtonClick(){this.resetAllCardsTextInputFields(),this.hideCardListAndShowInputManuallyButton(),this.submitButton.show(),this.validationFieldsState.clear(),await this.validationFlowHandler.pauseScan(),await this.validationFlowHandler.startCompleteLabelScan("");}async expandListAndShowSubmitAndRestartButton(){await this.cardListContainer.expand(),this.submitButton.show(),this.cardListContainer.buttonSidePositionIfLandscape=false,this.backAndRestartButton.variant="restart";}async onBackButton(){if(!this.currentInput)return;await this.validationFlowHandler.pauseScan();let t=await this.validationFlowHandler.updateFieldValue(this.currentInput.name,this.currentInput.value);if(this.validationFieldsState.set(this.currentInput,t),this.currentInput.value===""){await this.expandListAndShowSubmitAndRestartButton();return}let a=t?"ready":"error";this.updateCard({card:this.currentInput.closest(Card.tag),state:a}),t&&await this.expandListAndShowSubmitAndRestartButton();}resetAllCardsTextInputFields(){for(let t of this.cardListContainer.cards)this.updateCard({card:t,value:"",state:"initial"});}async standByCamera(){var t;this.labelCapture.context&&await((t=this.labelCapture.context.frameSource)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby));}async activateCamera(){var t;this.labelCapture.context&&await((t=this.labelCapture.context.frameSource)==null?void 0:t.switchToDesiredState(FrameSourceState.On));}updateCard({card:t,value:a,state:e="initial"}){if(!t)return;let i=t.querySelector(a$4.tag);if(i){switch(e){case "initial":this.setInitialState(t,i);break;case "ready":this.setReadyState(t,i);break;case "error":this.setErrorState(t,i);break;case "loading":this.setLoadingState(t,i);break}typeof a=="string"&&(i.value=a);}}setInitialState(t,a){t.backgroundColor=Color.fromHex("#fff"),t.border=false,a.invalid=false,a.errorMessage="",t.haloGlow=false,a.loading=false;}setReadyState(t,a){t.backgroundColor=SecondaryBlue10,t.haloGlow=false,a.loading=false,t.border=false,a.invalid=false,a.errorMessage="";}setErrorState(t,a){t.backgroundColor=Color.fromHex("#fff"),t.border=true,a.invalid=true,a.errorMessage=a.required?this.validationSettings.requiredFieldErrorText:this.validationSettings.validationErrorText;}setLoadingState(t,a){t.backgroundColor=Color.fromHex("#fff"),t.border=false,t.haloGlow=true,a.invalid=false,a.errorMessage="",a.loading=true;}async handleLabelIsMissingRequiredFieldState(t){for(let a of t){let e=this.cardListContainer.getCardBySelector(`#${c(a.getLabelField().name)}`);if(e!=null){let i=a.isValid()?"ready":"error";this.updateCard({card:e,state:i});}}}handleOnFinished(){this.backAndRestartButton.variant="restart";}showCardListAndHideInputManuallyButton(){this.cardListContainer.hidden=false,this.inputManuallyButton.hidden=true;}hideCardListAndShowInputManuallyButton(){this.cardListContainer.hidden=true,this.inputManuallyButton.hidden=false;}handleOnFieldsScanned(t){var a,e;this.cardListContainer.hidden&&this.showCardListAndHideInputManuallyButton();for(let i of t){let n=i.getLabelField(),r=this.cardListContainer.getCardBySelector(`#${c(n.name)}`);if(!r)continue;let o=i.isValid()?"ready":"initial";switch(n.type){case a$8.Text:{this.updateCard({card:r,state:o,value:n.text});break}case a$8.Barcode:{this.updateCard({card:r,state:o,value:((a=n.barcode)==null?void 0:a.data)||n.text});break}default:{this.updateCard({card:r,state:o,value:n.text||((e=n.barcode)==null?void 0:e.data)||D(n.date)});break}}}this.cardListContainer.isCollapsed()&&this.onBackButtonClickHandler();}async handleScanTimeout(){this.showCardListAndHideInputManuallyButton(),await this.validationFlowHandler.pauseScan();}async handleInPauseScan(){await Promise.all([this.backdrop.show(),this.standByCamera()]);}async handleInCompleteScan(){await Promise.all([this.backdrop.hide(),this.activateCamera()]);}async handleInPartialScan(){await Promise.all([this.backdrop.hide(),this.activateCamera()]);}handleOnCloudBackupServiceStartedForFields(t){for(let a of t){let{name:e,isRequired:i}=a.getLabelField();this.cloudBackupProcessingFields.add(e);let n=this.cardListContainer.getCardBySelector(`#${c(e)}`);i||this.updateCard({card:n,state:"loading"});}}handleOnCloudBackupServiceFailedForFields(t){for(let a of t){let e=a.getLabelField().name;this.cloudBackupProcessingFields.delete(e);let i=this.cardListContainer.getCardBySelector(`#${c(e)}`);this.updateCard({card:i,state:"initial"});}}async onWorkerMessage(t){switch(t.type){case "validationFlowListenerOnFieldsScanned":{this.labelCapture.emitFeedback(),this.handleOnFieldsScanned(w(t.payload.fields));break}case "validationFlowListenerOnScanTimeout":{await this.handleScanTimeout();break}case "validationFlowListenerOnLabelIsMissingRequiredField":{let a=w(t.payload.fields);await this.handleLabelIsMissingRequiredFieldState(a);break}case "validationFlowListenerOnStateChanged":switch(this.validationFlowHandlerState=t.payload.state,Logger.debug(`Validation flow overlay: entering in ${j[t.payload.state]} state`),t.payload.state){case 4:this.handleOnFinished();break;case 2:await this.handleInCompleteScan();break;case 1:await this.handleInPartialScan();break;case 3:await this.handleInPauseScan();break}break;case "validationFlowListenerOnCloudBackupServiceStartedForFields":this.handleOnCloudBackupServiceStartedForFields(w(t.payload.fields));break;case "validationFlowListenerOnCloudBackupServiceFailedForFields":this.handleOnCloudBackupServiceFailedForFields(w(t.payload.fields));break}}},O=B;export{O as a};
1
+ import {a as a$3}from'./chunk-7YYY7VA3.js';import {a as a$2}from'./chunk-RTUZ7UNX.js';import {a as a$4}from'./chunk-XW4HFTSX.js';import {b}from'./chunk-7W7VDXJD.js';import {a as a$9}from'./chunk-CWOXTL6A.js';import {a as a$1}from'./chunk-FLGWGEP3.js';import {a}from'./chunk-VSH23DF3.js';import {a as a$6}from'./chunk-2BXP3X3H.js';import {a as a$7}from'./chunk-SUEFKTEN.js';import {a as a$5}from'./chunk-SYDG6PPD.js';import {a as a$8}from'./chunk-ZU6C4VWO.js';import {Logger,Color,ScanditIconType,BrowserHelper,FrameSourceState}from'@scandit/web-datacapture-core';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';import {Backdrop}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardListEvents}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';import {SecondaryBlue60,SecondaryBlue10}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';function c(s){let t=btoa(s).replace(/=/g,"");return /^[a-z]/.test(t)?t:`id-${t}`}function D(s){return s?`${s.day} - ${s.month} - ${s.year}`:""}function q({name:s,type:t,label:a,value:e,errorMessage:i,loadingText:n,required:r}){let o=Card.create(),p=a$9.create(),l=a$4.create();return l.errorMessage=i,l.type=t,l.label=a,l.value=e,l.required=r,l.name=s,l.loadingText=n,p.append(l),o.append(p),o.backgroundColor=Color.fromHex("#fff"),o.id=c(s),o}var j={3:"Paused",4:"Finished",2:"In complete scan",1:"In partial scan",0:"Idle"};function k(s){return s.map(t=>a$7.fromJSONObject(t))}var B=class B{constructor(t,a$5,e){this.listener={onValidationFlowLabelCaptured:t=>{}};this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this.onInputManuallyButtonClickHandler=this.onInputManuallyButtonClick.bind(this);this.onSubmitButtonClickHandler=this.onSubmitButtonClick.bind(this);this.onRestartButtonClickHandler=this.onRestartButtonClick.bind(this);this.onBackButtonClickHandler=this.onBackButton.bind(this);this.onContextUpdatedListenerHandler=this.onContextUpdatedListener.bind(this);this.onTextInputAimerIconClickHandler=this.onTextInputAimerIconClick.bind(this);this.onTextInputClearIconClickHandler=this.onTextInputClearIconClick.bind(this);this.currentInput=null;this.onCardListClickHandler=this.onCardListClick.bind(this);this.onClickOutsideHandler=this.onClickOutside.bind(this);this.validationFieldsState=new Map;this.cloudBackupProcessingFields=new Set;this[nativeHandle]=t,this.validationFlowHandler=a$5,this.validationSettings=e;for(let i of [a,a$1,a$2,b,a$3,a$4])i.register();}static async withLabelCaptureForView(t,a){var o;let e=await a$5().workerCommand("validationFlowOverlayForLabelCapture",{payload:{labelCaptureHandle:t[nativeHandle]}}),i=await t.validationFlowHandler(),n=await a$6.create(),r=new B(e,i,n);return r.labelCapture=t,await a.addOverlay(r),(o=t.context)==null||o.updateListeners.add(r.onContextUpdatedListenerHandler),await r.mount(a),await r.goToCompleteScan(),r}async applySettings(t){this.validationSettings=t,await a$5().workerCommand("validationFlowOverlayApplySettings",{payload:{overlayHandle:this[nativeHandle],settingsHandle:t[nativeHandle]}}),this.inputManuallyButton.text=this.validationSettings.manualInputButtonText;}toJSONObject(){return {type:"ValidationFlowOverlay",nativeHandle:this[nativeHandle]}}async goToCompleteScan(){this.hideCardListAndShowInputManuallyButton(),await this.validationFlowHandler.startCompleteLabelScan("");let t=await this.validationFlowHandler.validationFlowFields();Logger.debug("ValidationFlowHandler::validationFlowFields",t),this.initializeCards(t),t.length===1&&(await this.onInputManuallyButtonClickHandler(),await this.onTextInputAimerIconClickHandler());}async mount(t){a$5().addWorkerListener(this.onWorkerMessageHandler),this.layout=a$3.create(),this.cardListContainer=b.create(),this.cardListContainer.slot="card-list",this.cardListContainer.hidden=true,this.backAndRestartButton=a$1.create(),this.backAndRestartButton.variant="restart",this.submitButton=a.create(),this.submitButton.ariaLabel="Submit",this.submitButton.backgroundColor=SecondaryBlue60,this.submitButton.iconColor=Color.fromHex("#fff"),this.submitButton.icon=ScanditIconType.Checkmark,this.cardListContainer.append(this.backAndRestartButton,this.submitButton),this.inputManuallyButton=a$2.create(),this.inputManuallyButton.slot="bottom-button",this.inputManuallyButton.text=this.validationSettings.manualInputButtonText,this.layout.append(this.cardListContainer,this.inputManuallyButton),this.backdrop=Backdrop.create(),this.backdrop.slot="backdrop",this.layout.append(this.backdrop),t.htmlElement.prepend(this.layout),this.inputManuallyButton.addEventListener("click",this.onInputManuallyButtonClickHandler),this.submitButton.addEventListener("click",this.onSubmitButtonClickHandler),this.backAndRestartButton.addEventListener("restart",this.onRestartButtonClickHandler),this.backAndRestartButton.addEventListener("back",this.onBackButtonClickHandler),this.layout.addEventListener("click",this.onClickOutsideHandler),this.cardListContainer.addEventListener("on-button-container-click",this.onClickOutsideHandler),this.cardListContainer.addEventListener(CardListEvents.Tap,this.onCardListClickHandler),this.cardListContainer.addEventListener("text-input-aimer-icon-click",this.onTextInputAimerIconClickHandler),this.cardListContainer.addEventListener("text-input-clear-icon-click",this.onTextInputClearIconClickHandler);}async unmount(){var t,a,e,i,n,r,o,p,l,g,I,H;a$5().removeWorkerListener(this.onWorkerMessageHandler),(a=(t=this.labelCapture)==null?void 0:t.context)==null||a.updateListeners.delete(this.onContextUpdatedListenerHandler),(e=this.inputManuallyButton)==null||e.removeEventListener("click",this.onInputManuallyButtonClickHandler),(i=this.submitButton)==null||i.removeEventListener("click",this.onSubmitButtonClickHandler),(n=this.backAndRestartButton)==null||n.removeEventListener("restart",this.onRestartButtonClickHandler),(r=this.backAndRestartButton)==null||r.removeEventListener("back",this.onBackButtonClickHandler),(o=this.layout)==null||o.removeEventListener("click",this.onClickOutsideHandler),(p=this.cardListContainer)==null||p.removeEventListener("on-button-container-click",this.onClickOutsideHandler),(l=this.cardListContainer)==null||l.removeEventListener(CardListEvents.Tap,this.onCardListClickHandler),(g=this.cardListContainer)==null||g.removeEventListener("text-input-aimer-icon-click",this.onTextInputAimerIconClickHandler),(I=this.cardListContainer)==null||I.removeEventListener("text-input-clear-icon-click",this.onTextInputClearIconClickHandler),(H=this.layout)==null||H.remove(),this.validationFieldsState.clear(),this.cloudBackupProcessingFields.clear();}async onContextUpdatedListener(t){t.type==="removeOverlay"&&t.newValue===this&&await this.unmount(),t.type==="modeEnabled"&&t.newValue&&(this.validationFlowHandlerState===4||this.validationFlowHandlerState===0)&&(Logger.debug("Validation flow overlay: mode enabled and validation flow finished, going to complete scan"),await this.goToCompleteScan());}hasClickedOutsideOfCardList(t){return t.type==="on-button-container-click"&&t.target instanceof b||t.type==="click"&&t.target instanceof a$3||t.type==="click"&&t.target instanceof Backdrop}async onClickOutside(t){if(this.hasClickedOutsideOfCardList(t)){if(this.cloudBackupProcessingFields.size>0){let a=[];for(let e of this.cloudBackupProcessingFields)a.push(this.validationFlowHandler.uncancelCloudBackupTaskForField(e));await Promise.all(a);}await this.onBackButtonClickHandler();}}initializeCards(t){var e;let a=[];for(let i of t){let n=i.getLabelField(),r=q({name:n.name,type:"text",label:n.isRequired?`${n.name} *`:n.name,loadingText:"Processing, tap to type manually",value:(e=n.text)!=null?e:"",errorMessage:n.isRequired?this.validationSettings.requiredFieldErrorText:this.validationSettings.validationErrorText,required:n.isRequired});a.push(r);}this.cardListContainer.renderCards(a);}async onCardListClick(t){let a=t.detail.card;if(this.currentInput=a==null?void 0:a.querySelector(a$4.tag),!a||!this.currentInput)return;let e=this.currentInput.name;if(this.cloudBackupProcessingFields.has(e)){await this.validationFlowHandler.cancelCloudBackupTaskForField(e),this.cloudBackupProcessingFields.delete(e);let i=this.cardListContainer.getCardBySelector(`#${c(e)}`);this.updateCard({card:i,value:"",state:"initial"});}this.currentInput.showKeyboard(BrowserHelper.isDesktopDevice()?0:1e3,()=>{this.cardListContainer.focusCard(a);}),this.updateCard({card:a,state:"initial"}),this.backAndRestartButton.variant="back",this.submitButton.hide(),this.cardListContainer.buttonSidePositionIfLandscape=true,await this.validationFlowHandler.pauseScan(),await this.cardListContainer.unshiftCard(a),await this.cardListContainer.collapse();}async onTextInputAimerIconClick(t){var e,i;this.currentInput=(e=t==null?void 0:t.detail.target)!=null?e:this.cardListContainer.cards[0].querySelector(a$4.tag);let a=(i=this.currentInput)==null?void 0:i.closest(Card.tag);a&&(await this.cardListContainer.unshiftCard(a),this.backAndRestartButton.variant="back",this.submitButton.hide(),this.cardListContainer.unfocusCard(a),await this.cardListContainer.collapse()),await this.validationFlowHandler.startPartialLabelScan([this.currentInput.name]);}async onTextInputClearIconClick(t){let a=t.detail.target.closest(Card.tag),e=t.detail.target;this.updateCard({card:a,value:"",state:"initial"}),await this.validationFlowHandler.pauseScan();let i=await this.validationFlowHandler.updateFieldValue(e.name,"");this.validationFieldsState.set(e,i),await this.cardListContainer.unshiftCard(a),await this.expandListAndShowSubmitAndRestartButton();}determineCardStateOnSubmit(t,a,e){let i=e!=="";return t?!i||!a?"error":"ready":i?a?"ready":"error":"initial"}async onInputManuallyButtonClick(){this.showCardListAndHideInputManuallyButton(),await this.validationFlowHandler.pauseScan();}async onSubmitButtonClick(){this.currentInput=null;let t=await this.validationFlowHandler.onFinishFlowRequested();if(t.type==="result"){let a=t.result.map(e=>a$7.fromJSONObject(e));this.hideCardListAndShowInputManuallyButton(),this.listener.onValidationFlowLabelCaptured(a.map(e=>e.getLabelField()));}else {for(let[a,e]of this.validationFieldsState.entries()){let i=a.closest(Card.tag);if(i!=null){let n=this.determineCardStateOnSubmit(a.required,e,a.value);this.updateCard({card:i,state:n});}}Logger.info("Validation flow overlay: on finish flow requested error:",t.error);}}async onRestartButtonClick(){this.resetAllCardsTextInputFields(),this.hideCardListAndShowInputManuallyButton(),this.submitButton.show(),this.validationFieldsState.clear(),await this.validationFlowHandler.pauseScan(),await this.validationFlowHandler.startCompleteLabelScan("");}async expandListAndShowSubmitAndRestartButton(){await this.cardListContainer.expand(),this.submitButton.show(),this.cardListContainer.buttonSidePositionIfLandscape=false,this.backAndRestartButton.variant="restart";}async onBackButton(){if(!this.currentInput)return;await this.validationFlowHandler.pauseScan();let t=await this.validationFlowHandler.updateFieldValue(this.currentInput.name,this.currentInput.value);if(this.validationFieldsState.set(this.currentInput,t),this.currentInput.value===""){await this.expandListAndShowSubmitAndRestartButton();return}let a=t?"ready":"error";this.updateCard({card:this.currentInput.closest(Card.tag),state:a}),t&&await this.expandListAndShowSubmitAndRestartButton();}resetAllCardsTextInputFields(){for(let t of this.cardListContainer.cards)this.updateCard({card:t,value:"",state:"initial"});}async standByCamera(){var t;this.labelCapture.context&&await((t=this.labelCapture.context.frameSource)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby));}async activateCamera(){var t;this.labelCapture.context&&await((t=this.labelCapture.context.frameSource)==null?void 0:t.switchToDesiredState(FrameSourceState.On));}updateCard({card:t,value:a,state:e="initial"}){if(!t)return;let i=t.querySelector(a$4.tag);if(i){switch(e){case "initial":this.setInitialState(t,i);break;case "ready":this.setReadyState(t,i);break;case "error":this.setErrorState(t,i);break;case "loading":this.setLoadingState(t,i);break}typeof a=="string"&&(i.value=a);}}setInitialState(t,a){t.backgroundColor=Color.fromHex("#fff"),t.border=false,a.invalid=false,a.errorMessage="",t.haloGlow=false,a.loading=false;}setReadyState(t,a){t.backgroundColor=SecondaryBlue10,t.haloGlow=false,a.loading=false,t.border=false,a.invalid=false,a.errorMessage="";}setErrorState(t,a){t.backgroundColor=Color.fromHex("#fff"),t.border=true,a.invalid=true,a.errorMessage=a.required?this.validationSettings.requiredFieldErrorText:this.validationSettings.validationErrorText;}setLoadingState(t,a){t.backgroundColor=Color.fromHex("#fff"),t.border=false,t.haloGlow=true,a.invalid=false,a.errorMessage="",a.loading=true;}async handleLabelIsMissingRequiredFieldState(t){for(let a of t){let e=this.cardListContainer.getCardBySelector(`#${c(a.getLabelField().name)}`);if(e!=null){let i=a.isValid()?"ready":"error";this.updateCard({card:e,state:i});}}}handleOnFinished(){this.backAndRestartButton.variant="restart";}showCardListAndHideInputManuallyButton(){this.cardListContainer.hidden=false,this.inputManuallyButton.hidden=true;}hideCardListAndShowInputManuallyButton(){this.cardListContainer.hidden=true,this.inputManuallyButton.hidden=false;}handleOnFieldsScanned(t){var a,e;this.cardListContainer.hidden&&this.showCardListAndHideInputManuallyButton();for(let i of t){let n=i.getLabelField(),r=this.cardListContainer.getCardBySelector(`#${c(n.name)}`);if(!r)continue;let o=i.isValid()?"ready":"initial";switch(n.type){case a$8.Text:{this.updateCard({card:r,state:o,value:n.text});break}case a$8.Barcode:{this.updateCard({card:r,state:o,value:((a=n.barcode)==null?void 0:a.data)||n.text});break}default:{this.updateCard({card:r,state:o,value:n.text||((e=n.barcode)==null?void 0:e.data)||D(n.date)});break}}}this.cardListContainer.isCollapsed()&&this.onBackButtonClickHandler();}async handleScanTimeout(){this.showCardListAndHideInputManuallyButton(),await this.validationFlowHandler.pauseScan();}async handleInPauseScan(){await Promise.all([this.backdrop.show(),this.standByCamera()]);}async handleInCompleteScan(){await Promise.all([this.backdrop.hide(),this.activateCamera()]);}async handleInPartialScan(){await Promise.all([this.backdrop.hide(),this.activateCamera()]);}handleOnCloudBackupServiceStartedForFields(t){for(let a of t){let{name:e,isRequired:i}=a.getLabelField();this.cloudBackupProcessingFields.add(e);let n=this.cardListContainer.getCardBySelector(`#${c(e)}`);i||this.updateCard({card:n,state:"loading"});}}handleOnCloudBackupServiceFailedForFields(t){for(let a of t){let e=a.getLabelField().name;this.cloudBackupProcessingFields.delete(e);let i=this.cardListContainer.getCardBySelector(`#${c(e)}`);this.updateCard({card:i,state:"initial"});}}async onWorkerMessage(t){switch(t.type){case "validationFlowListenerOnFieldsScanned":{this.handleOnFieldsScanned(k(t.payload.fields));break}case "validationFlowListenerOnScanTimeout":{await this.handleScanTimeout();break}case "validationFlowListenerOnLabelIsMissingRequiredField":{let a=k(t.payload.fields);await this.handleLabelIsMissingRequiredFieldState(a);break}case "validationFlowListenerOnStateChanged":switch(this.validationFlowHandlerState=t.payload.state,Logger.debug(`Validation flow overlay: entering in ${j[t.payload.state]} state`),t.payload.state){case 4:this.handleOnFinished();break;case 2:await this.handleInCompleteScan();break;case 1:await this.handleInPartialScan();break;case 3:await this.handleInPauseScan();break}break;case "validationFlowListenerOnCloudBackupServiceStartedForFields":this.handleOnCloudBackupServiceStartedForFields(k(t.payload.fields));break;case "validationFlowListenerOnCloudBackupServiceFailedForFields":this.handleOnCloudBackupServiceFailedForFields(k(t.payload.fields));break}}},O=B;export{O as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-BJFWGOUS.js';import {a as a$2}from'./chunk-BJSBS5IL.js';import {a as a$4}from'./chunk-DHFJ3EFE.js';import {a}from'./chunk-AVKEMR5W.js';import {a as a$3}from'./chunk-SYDG6PPD.js';var n=class h extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;this.labelDateFormat=h.defaultLabelDateFormat();}static defaultLabelDateFormat(){return new a$1(a$2.DMY,false)}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var a;let p=await a$3().workerCommand("labelCaptureBuildDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:this.labelDateFormat.toJSONObject()}}),t=a$4.forHandle(p);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._labelDateFormat=this.labelDateFormat,t._anchorRegexes=(a=this.anchorRegexes)!=null?a:[],t}getThis(){return this}};export{n as a};
1
+ import {a as a$2}from'./chunk-BJSBS5IL.js';import {a as a$1}from'./chunk-BJFWGOUS.js';import {a as a$4}from'./chunk-DHFJ3EFE.js';import {a}from'./chunk-AVKEMR5W.js';import {a as a$3}from'./chunk-SYDG6PPD.js';var n=class h extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;this.labelDateFormat=h.defaultLabelDateFormat();}static defaultLabelDateFormat(){return new a$1(a$2.DMY,false)}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var a;let p=await a$3().workerCommand("labelCaptureBuildDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:this.labelDateFormat.toJSONObject()}}),t=a$4.forHandle(p);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._labelDateFormat=this.labelDateFormat,t._anchorRegexes=(a=this.anchorRegexes)!=null?a:[],t}getThis(){return this}};export{n as a};
@@ -23,17 +23,18 @@ interface ImageBuffer {
23
23
  toBitmap(): Uint8Array;
24
24
  getBitmapRepresentationFromYUV(imageCrop: Rect): Uint8Array;
25
25
  }
26
- interface AsyncImageConverterInstance {
26
+ interface ImageConverterInstance {
27
27
  convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise<Uint8Array>;
28
28
  }
29
29
  interface ImageConverter {
30
30
  }
31
31
  interface ImageConverter_statics {
32
- setAsyncInstance(instance: AsyncImageConverterInstance): void;
32
+ setInstance(instance: ImageConverterInstance): void;
33
+ getInstance(): ImageConverterInstance;
33
34
  }
34
35
  interface SdcCoreInternalSdkCommonGeometry_statics {
35
36
  SizeWithUnitAndAspect: SizeWithUnitAndAspect_statics;
36
37
  ImageConverter: ImageConverter_statics;
37
38
  }
38
39
 
39
- export type { AsyncImageConverterInstance, ImageBuffer, ImageConverter, ImageConverter_statics, SdcCoreInternalSdkCommonGeometry_statics, SizeWithUnitAndAspect, SizeWithUnitAndAspect_statics };
40
+ export type { ImageBuffer, ImageConverter, ImageConverterInstance, ImageConverter_statics, SdcCoreInternalSdkCommonGeometry_statics, SizeWithUnitAndAspect, SizeWithUnitAndAspect_statics };
@@ -7,7 +7,7 @@ import { R as ResultOrError } from '../ResultOrError-wVDzYSuC.js';
7
7
  import { ExternalOcrBackend } from './sdcCoreInternalSdkOcr.js';
8
8
  import { Rect } from './sdcCoreCommonGeometry.js';
9
9
  import { LabelFieldLocationType, LabelDateComponentFormat, AdaptiveRecognitionMode } from './sdcLabelData.js';
10
- import { CapturedLabel, LabelField } from './sdcLabelInternalModuleData.js';
10
+ import { CapturedLabel, ReceiptScanningResult, LabelField } from './sdcLabelInternalModuleData.js';
11
11
  import './sdcCoreInternalSdkCommonGeometry.js';
12
12
  import './sdcCoreCommonGraphic.js';
13
13
  import './sdcCoreCommon.js';
@@ -25,6 +25,7 @@ interface LabelCapture {
25
25
  getContext(): DataCaptureContext;
26
26
  registerExternalOcrBackend(backend: ExternalOcrBackend): void;
27
27
  shouldUseEngineDrivenAnimations(): boolean;
28
+ receiptScanningHandler(): ReceiptScanningHandler;
28
29
  validationFlowHandler(): ValidationFlowHandler;
29
30
  }
30
31
  interface LabelCapture_statics {
@@ -46,6 +47,7 @@ interface LabelCaptureSettings {
46
47
  getIntProperty(key: string): number | undefined;
47
48
  setIntProperty(key: string, value: number): void;
48
49
  getBlueprintJson(): string;
50
+ getBasicOverlayAnimationMillis(): number | undefined;
49
51
  }
50
52
  interface LabelCaptureSettings_statics {
51
53
  loadFromString(description: string): ResultOrError<LabelCaptureSettings, string>;
@@ -375,6 +377,17 @@ interface LabelFieldLocation_statics {
375
377
  createWithType(locationType: LabelFieldLocationType): LabelFieldLocation;
376
378
  createWithRect(rect: Rect): LabelFieldLocation;
377
379
  }
380
+ interface ReceiptScanningListener {
381
+ onProcessingStarted(): void;
382
+ onReceiptScanned(result: ReceiptScanningResult): void;
383
+ onReceiptScanningFailed(): void;
384
+ }
385
+ interface ReceiptScanningHandler {
386
+ startFlow(): void;
387
+ finishFlow(): void;
388
+ addListener(listener: ReceiptScanningListener): void;
389
+ removeListener(listener: ReceiptScanningListener): void;
390
+ }
378
391
  declare enum ValidationFlowState {
379
392
  IDLE = 0,
380
393
  IN_PARTIAL_SCAN = 1,
@@ -429,4 +442,4 @@ interface SdcLabelInternalModuleCapture_statics {
429
442
  LabelFieldLocation: LabelFieldLocation_statics;
430
443
  }
431
444
 
432
- export { type BarcodeField, type BarcodeField_statics, type CustomBarcode, type CustomBarcode_statics, type CustomText, type CustomText_statics, type DateText, type DateText_statics, type ExpiryDateText, type ExpiryDateText_statics, type ImeiOneBarcode, type ImeiOneBarcode_statics, type ImeiTwoBarcode, type ImeiTwoBarcode_statics, type LabelCapture, type LabelCaptureHelper, type LabelCaptureHelper_statics, type LabelCaptureListener, type LabelCaptureSession, type LabelCaptureSettings, type LabelCaptureSettings_statics, type LabelCapture_statics, type LabelDateFormat, type LabelDefinition, type LabelDefinition_statics, type LabelFieldDefinition, type LabelFieldLocation, type LabelFieldLocation_statics, type PackingDateText, type PackingDateText_statics, type PartNumberBarcode, type PartNumberBarcode_statics, type SdcLabelInternalModuleCapture_statics, type SerialNumberBarcode, type SerialNumberBarcode_statics, type TextField, type TotalPriceText, type TotalPriceText_statics, type UnitPriceText, type UnitPriceText_statics, type ValidationFlowField, type ValidationFlowHandler, type ValidationFlowListener, ValidationFlowState, type WeightText, type WeightText_statics };
445
+ export { type BarcodeField, type BarcodeField_statics, type CustomBarcode, type CustomBarcode_statics, type CustomText, type CustomText_statics, type DateText, type DateText_statics, type ExpiryDateText, type ExpiryDateText_statics, type ImeiOneBarcode, type ImeiOneBarcode_statics, type ImeiTwoBarcode, type ImeiTwoBarcode_statics, type LabelCapture, type LabelCaptureHelper, type LabelCaptureHelper_statics, type LabelCaptureListener, type LabelCaptureSession, type LabelCaptureSettings, type LabelCaptureSettings_statics, type LabelCapture_statics, type LabelDateFormat, type LabelDefinition, type LabelDefinition_statics, type LabelFieldDefinition, type LabelFieldLocation, type LabelFieldLocation_statics, type PackingDateText, type PackingDateText_statics, type PartNumberBarcode, type PartNumberBarcode_statics, type ReceiptScanningHandler, type ReceiptScanningListener, type SdcLabelInternalModuleCapture_statics, type SerialNumberBarcode, type SerialNumberBarcode_statics, type TextField, type TotalPriceText, type TotalPriceText_statics, type UnitPriceText, type UnitPriceText_statics, type ValidationFlowField, type ValidationFlowHandler, type ValidationFlowListener, ValidationFlowState, type WeightText, type WeightText_statics };
@@ -40,7 +40,26 @@ interface CapturedLabel {
40
40
  isComplete(): boolean;
41
41
  toJson(): string;
42
42
  }
43
+ interface ReceiptScanningLineItem {
44
+ name: string;
45
+ unitPrice?: number;
46
+ discount?: number;
47
+ quantity: number;
48
+ totalPrice?: number;
49
+ }
50
+ interface ReceiptScanningResult {
51
+ storeName?: string;
52
+ storeCity?: string;
53
+ storeAddress?: string;
54
+ date?: string;
55
+ time?: string;
56
+ paymentPreTaxTotal?: number;
57
+ paymentTax?: number;
58
+ paymentTotal?: number;
59
+ loyaltyNumber?: number;
60
+ lineItems: Array<ReceiptScanningLineItem>;
61
+ }
43
62
  interface SdcLabelInternalModuleData_statics {
44
63
  }
45
64
 
46
- export { type CapturedLabel, type LabelDateResult, type LabelField, LabelFieldValueType, type SdcLabelInternalModuleData_statics };
65
+ export { type CapturedLabel, type LabelDateResult, type LabelField, LabelFieldValueType, type ReceiptScanningLineItem, type ReceiptScanningResult, type SdcLabelInternalModuleData_statics };
@@ -59,6 +59,8 @@ interface LabelCaptureOverlayHelper_statics {
59
59
  removeBasicOverlay(overlay: LabelCaptureBasicOverlay, view: DataCaptureView): void;
60
60
  addAdvancedOverlay(overlay: LabelCaptureAdvancedOverlay, view: DataCaptureView): void;
61
61
  removeAdvancedOverlay(overlay: LabelCaptureAdvancedOverlay, view: DataCaptureView): void;
62
+ addReceiptScanningOverlay(overlay: ReceiptScanningOverlay, view: DataCaptureView): void;
63
+ removeReceiptScanningOverlay(overlay: ReceiptScanningOverlay, view: DataCaptureView): void;
62
64
  addValidationFlowOverlay(overlay: ValidationFlowOverlay, view: DataCaptureView): void;
63
65
  removeValidationFlowOverlay(overlay: ValidationFlowOverlay, view: DataCaptureView): void;
64
66
  }
@@ -97,6 +99,19 @@ interface ValidationFlowOverlay {
97
99
  interface ValidationFlowOverlay_statics {
98
100
  create(mode: LabelCapture): ValidationFlowOverlay;
99
101
  }
102
+ interface ReceiptScanningSettings {
103
+ setProcessingHintText(text: string): void;
104
+ getProcessingHintText(): string;
105
+ }
106
+ interface ReceiptScanningSettings_statics {
107
+ create(): ReceiptScanningSettings;
108
+ }
109
+ interface ReceiptScanningOverlay {
110
+ applySettings(settings: ReceiptScanningSettings): void;
111
+ }
112
+ interface ReceiptScanningOverlay_statics {
113
+ create(labelCapture: LabelCapture): ReceiptScanningOverlay;
114
+ }
100
115
  interface SdcLabelInternalModuleUiOverlay_statics {
101
116
  LabelCaptureBasicOverlay: LabelCaptureBasicOverlay_statics;
102
117
  LabelCaptureAdvancedOverlay: LabelCaptureAdvancedOverlay_statics;
@@ -104,6 +119,8 @@ interface SdcLabelInternalModuleUiOverlay_statics {
104
119
  ValidationFlowSettingsDefaults: ValidationFlowSettingsDefaults_statics;
105
120
  ValidationFlowSettings: ValidationFlowSettings_statics;
106
121
  ValidationFlowOverlay: ValidationFlowOverlay_statics;
122
+ ReceiptScanningSettings: ReceiptScanningSettings_statics;
123
+ ReceiptScanningOverlay: ReceiptScanningOverlay_statics;
107
124
  }
108
125
 
109
- export type { LabelCaptureAdvancedOverlay, LabelCaptureAdvancedOverlay_statics, LabelCaptureBasicOverlay, LabelCaptureBasicOverlayListener, LabelCaptureBasicOverlay_statics, LabelCaptureOverlayHelper, LabelCaptureOverlayHelper_statics, SdcLabelInternalModuleUiOverlay_statics, ValidationFlowOverlay, ValidationFlowOverlay_statics, ValidationFlowSettings, ValidationFlowSettingsDefaults, ValidationFlowSettingsDefaults_statics, ValidationFlowSettings_statics };
126
+ export type { LabelCaptureAdvancedOverlay, LabelCaptureAdvancedOverlay_statics, LabelCaptureBasicOverlay, LabelCaptureBasicOverlayListener, LabelCaptureBasicOverlay_statics, LabelCaptureOverlayHelper, LabelCaptureOverlayHelper_statics, ReceiptScanningOverlay, ReceiptScanningOverlay_statics, ReceiptScanningSettings, ReceiptScanningSettings_statics, SdcLabelInternalModuleUiOverlay_statics, ValidationFlowOverlay, ValidationFlowOverlay_statics, ValidationFlowSettings, ValidationFlowSettingsDefaults, ValidationFlowSettingsDefaults_statics, ValidationFlowSettings_statics };
@@ -13,8 +13,8 @@ export { ImeiOneBarcode } from './api/ImeiOneBarcode.js';
13
13
  export { ImeiOneBarcodeBuilder } from './api/ImeiOneBarcodeBuilder.js';
14
14
  export { ImeiTwoBarcode } from './api/ImeiTwoBarcode.js';
15
15
  export { ImeiTwoBarcodeBuilder } from './api/ImeiTwoBarcodeBuilder.js';
16
- export { L as LabelCapture, a as LabelCaptureListener } from './LabelCapture-r1VXyYY1.js';
17
- export { L as LabelCaptureBasicOverlay, a as LabelCaptureBasicOverlayListener } from './LabelCaptureBasicOverlay-Dpxz5gik.js';
16
+ export { L as LabelCapture, a as LabelCaptureListener } from './LabelCapture-DGLkCHVN.js';
17
+ export { L as LabelCaptureBasicOverlay, a as LabelCaptureBasicOverlayListener } from './LabelCaptureBasicOverlay-BjmQOKkn.js';
18
18
  export { LabelCaptureFeedback, LabelCaptureFeedbackJSON } from './api/LabelCaptureFeedback.js';
19
19
  export { LabelCaptureSession, LabelCaptureSessionJSON } from './api/LabelCaptureSession.js';
20
20
  export { LabelCaptureSettings, LabelCaptureSettingsBuilder } from './api/LabelCaptureSettings.js';
@@ -42,15 +42,22 @@ export { UnitPriceText } from './api/UnitPriceText.js';
42
42
  export { UnitPriceTextBuilder } from './api/UnitPriceTextBuilder.js';
43
43
  export { WeightText } from './api/WeightText.js';
44
44
  export { WeightTextBuilder } from './api/WeightTextBuilder.js';
45
- export { L as LabelCaptureAdvancedOverlay, a as LabelCaptureAdvancedOverlayListener } from './LabelCaptureAdvancedOverlay-CX1Nuzz9.js';
45
+ export { L as LabelCaptureAdvancedOverlay, a as LabelCaptureAdvancedOverlayListener } from './LabelCaptureAdvancedOverlay-B1hVlOzu.js';
46
46
  export { labelCaptureLoader } from './moduleLoader.js';
47
47
  export { LabelCaptureValidationFlowListener, LabelCaptureValidationFlowOverlay, LabelCaptureValidationFlowOverlayJSON } from './api/LabelCaptureValidationFlowOverlay.js';
48
48
  export { LabelCaptureValidationFlowSettings } from './api/LabelCaptureValidationFlowSettings.js';
49
+ export { ReceiptScanningLineItem, ReceiptScanningLineItemJSON } from './api/ReceiptScanningLineItem.js';
50
+ export { b as AdaptiveRecognitionResult, A as AdaptiveRecognitionResultType, L as LabelCaptureAdaptiveRecognitionSettings, a as ReceiptScanningResult, R as ReceiptScanningResultJSON, c as ReceiptScanningSettingsJSON } from './NativeProxy-B98bIlIp.js';
51
+ export { LabelCaptureAdaptiveRecognitionListener, LabelCaptureAdaptiveRecognitionOverlay, LabelCaptureAdaptiveRecognitionOverlayJSON } from './api/LabelCaptureAdaptiveRecognitionOverlay.js';
49
52
  import '@scandit/web-datacapture-barcode';
50
53
  import '@scandit/web-datacapture-core';
51
54
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
52
55
  import './api/BarcodeFieldBuilder.js';
53
- import './NativeProxy-Dqn_Pwfi.js';
56
+ import './djinni-types/sdcLabelData.js';
57
+ import '@scandit/web-datacapture-core/build/js/private/Serializable';
58
+ import './api/LabelCaptureOverlayJSON.js';
59
+ import './api/LabelFieldValueType.js';
60
+ import '@scandit/web-datacapture-core/build/js/private/Serializable.js';
54
61
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
55
62
  import './djinni-types/sdcBarcodeInternalSdkData.js';
56
63
  import './djinni-types/sdcBarcodeData.js';
@@ -65,7 +72,6 @@ import './djinni-types/sdcCoreInternalSdkCommonAsync.js';
65
72
  import './ResultOrError-wVDzYSuC.js';
66
73
  import './djinni-types/sdcCoreInternalSdkOcr.js';
67
74
  import './djinni-types/sdcCoreCommon.js';
68
- import './djinni-types/sdcLabelData.js';
69
75
  import './djinni-types/sdcLabelInternalModuleData.js';
70
76
  import './djinni-types/sdcCoreInternalSdkUiViewfinder.js';
71
77
  import './djinni-types/sdcCoreInternalSdkCommonGraphics.js';
@@ -74,7 +80,3 @@ import './djinni-types/sdcCoreInternalSdkCapture.js';
74
80
  import './djinni-types/sdcCoreInternalSdkUiStyle.js';
75
81
  import './api/LabelFieldLocationType.js';
76
82
  import './api/ValidationFlowField.js';
77
- import '@scandit/web-datacapture-core/build/js/private/Serializable';
78
- import './api/LabelCaptureOverlayJSON.js';
79
- import './api/LabelFieldValueType.js';
80
- import '@scandit/web-datacapture-core/build/js/private/Serializable.js';
package/build/js/index.js CHANGED
@@ -1 +1 @@
1
- export{a as WeightTextBuilder}from'./chunks/chunk-YH6BNOYC.js';export{a as WeightText}from'./chunks/chunk-N4GW7RGB.js';export{a as SerialNumberBarcodeBuilder}from'./chunks/chunk-5CNHCL7M.js';export{a as SerialNumberBarcode}from'./chunks/chunk-UDGNT475.js';export{a as TotalPriceTextBuilder}from'./chunks/chunk-NAWWKVI5.js';export{a as TotalPriceText}from'./chunks/chunk-JF7J7XP2.js';export{a as UnitPriceTextBuilder}from'./chunks/chunk-PBTK3XKJ.js';export{a as UnitPriceText}from'./chunks/chunk-VDVJDXZY.js';export{a as LabelFieldState}from'./chunks/chunk-COOCFN2K.js';export{a as PackingDateTextBuilder}from'./chunks/chunk-CP4Y6VIT.js';export{a as PackingDateText}from'./chunks/chunk-4IN2HVLU.js';export{a as PartNumberBarcodeBuilder}from'./chunks/chunk-RMO2SLDR.js';export{a as PartNumberBarcode}from'./chunks/chunk-7M5DXL6F.js';export{a as LabelDefinition,b as LabelDefinitionBuilder}from'./chunks/chunk-XKSRWFDE.js';export{a as LabelFieldLocation}from'./chunks/chunk-BGVFXDGB.js';export{a as LabelCaptureSettings,b as LabelCaptureSettingsBuilder}from'./chunks/chunk-QRSFFB7W.js';export{a as LabelCaptureValidationFlowOverlay}from'./chunks/chunk-NJRLN3WA.js';export{a as LabelCaptureValidationFlowSettings}from'./chunks/chunk-2BXP3X3H.js';export{a as ImeiOneBarcodeBuilder}from'./chunks/chunk-TUGEFRT6.js';export{a as ImeiTwoBarcodeBuilder}from'./chunks/chunk-ZMEFT4CJ.js';export{a as ImeiTwoBarcode}from'./chunks/chunk-S7PTN3KC.js';export{a as LabelCapture}from'./chunks/chunk-6ZRD5AHI.js';export{a as LabelCaptureFeedback}from'./chunks/chunk-XETUH5HN.js';export{a as LabelCaptureAdvancedOverlay}from'./chunks/chunk-6WMMNFP2.js';export{a as LabelCaptureSession}from'./chunks/chunk-2WECOW4F.js';export{a as LabelCaptureBasicOverlay}from'./chunks/chunk-LVUNHV32.js';export{a as CustomBarcodeBuilder}from'./chunks/chunk-FEDVCTOM.js';export{a as CustomTextBuilder}from'./chunks/chunk-DV4WMUFU.js';export{a as CustomText}from'./chunks/chunk-K5Y26N6X.js';export{a as DateTextBuilder}from'./chunks/chunk-TKET64Y7.js';export{a as LabelDateFormat}from'./chunks/chunk-BJFWGOUS.js';export{a as LabelDateComponentFormat}from'./chunks/chunk-BJSBS5IL.js';export{a as DateText}from'./chunks/chunk-DHFJ3EFE.js';export{a as ExpiryDateTextBuilder}from'./chunks/chunk-2JQJUKKV.js';export{a as TextFieldBuilder}from'./chunks/chunk-AVKEMR5W.js';export{a as ExpiryDateText}from'./chunks/chunk-SQEDHQIB.js';export{a as ImeiOneBarcode}from'./chunks/chunk-OHZCXBA4.js';export{a as labelCaptureLoader}from'./chunks/chunk-3XCVMISO.js';export{a as AdaptiveRecognitionMode}from'./chunks/chunk-N7HKYUQ6.js';export{a as LabelFieldDefinitionBuilder}from'./chunks/chunk-W4ZKJPWB.js';export{a as CapturedLabel}from'./chunks/chunk-GOW3A5CW.js';export{a as LabelField}from'./chunks/chunk-WR7V5D4H.js';export{a as LabelFieldType}from'./chunks/chunk-ZU6C4VWO.js';export{a as LabelDateResult}from'./chunks/chunk-D5PIEZCN.js';export{a as CustomBarcode}from'./chunks/chunk-N2Q2DERV.js';
1
+ export{a as WeightTextBuilder}from'./chunks/chunk-YH6BNOYC.js';export{a as WeightText}from'./chunks/chunk-N4GW7RGB.js';export{a as SerialNumberBarcodeBuilder}from'./chunks/chunk-5CNHCL7M.js';export{a as TotalPriceTextBuilder}from'./chunks/chunk-NAWWKVI5.js';export{a as TotalPriceText}from'./chunks/chunk-JF7J7XP2.js';export{a as UnitPriceTextBuilder}from'./chunks/chunk-PBTK3XKJ.js';export{a as UnitPriceText}from'./chunks/chunk-VDVJDXZY.js';export{a as PartNumberBarcodeBuilder}from'./chunks/chunk-RMO2SLDR.js';export{a as PartNumberBarcode}from'./chunks/chunk-7M5DXL6F.js';export{a as SerialNumberBarcode}from'./chunks/chunk-UDGNT475.js';export{a as LabelFieldLocation}from'./chunks/chunk-BGVFXDGB.js';export{a as LabelFieldState}from'./chunks/chunk-COOCFN2K.js';export{a as PackingDateTextBuilder}from'./chunks/chunk-CP4Y6VIT.js';export{a as PackingDateText}from'./chunks/chunk-4IN2HVLU.js';export{a as LabelCaptureValidationFlowOverlay}from'./chunks/chunk-VAZEF7GZ.js';export{a as LabelCaptureValidationFlowSettings}from'./chunks/chunk-2BXP3X3H.js';export{a as LabelDefinition,b as LabelDefinitionBuilder}from'./chunks/chunk-XKSRWFDE.js';export{a as LabelCaptureBasicOverlay}from'./chunks/chunk-LVUNHV32.js';export{a as LabelCaptureSettings,b as LabelCaptureSettingsBuilder}from'./chunks/chunk-QRSFFB7W.js';export{a as ImeiOneBarcodeBuilder}from'./chunks/chunk-THXK2CAH.js';export{a as ImeiOneBarcode}from'./chunks/chunk-OHZCXBA4.js';export{a as ImeiTwoBarcodeBuilder}from'./chunks/chunk-ZMEFT4CJ.js';export{a as ImeiTwoBarcode}from'./chunks/chunk-S7PTN3KC.js';export{a as LabelCapture}from'./chunks/chunk-5Q3VETGO.js';export{a as ReceiptScanningResult}from'./chunks/chunk-CUHE565K.js';export{a as ReceiptScanningLineItem}from'./chunks/chunk-D6QEVE6U.js';export{a as LabelCaptureFeedback}from'./chunks/chunk-XETUH5HN.js';export{a as LabelCaptureAdaptiveRecognitionOverlay}from'./chunks/chunk-G37GYNDK.js';export{a as LabelCaptureAdvancedOverlay}from'./chunks/chunk-6WMMNFP2.js';export{a as LabelCaptureSession}from'./chunks/chunk-2WECOW4F.js';export{a as CustomBarcodeBuilder}from'./chunks/chunk-T5PFYQ2F.js';export{a as CustomBarcode}from'./chunks/chunk-N2Q2DERV.js';export{a as CustomTextBuilder}from'./chunks/chunk-DV4WMUFU.js';export{a as CustomText}from'./chunks/chunk-K5Y26N6X.js';export{a as DateTextBuilder}from'./chunks/chunk-ZVURFK6X.js';export{a as LabelDateComponentFormat}from'./chunks/chunk-BJSBS5IL.js';export{a as LabelDateFormat}from'./chunks/chunk-BJFWGOUS.js';export{a as DateText}from'./chunks/chunk-DHFJ3EFE.js';export{a as ExpiryDateTextBuilder}from'./chunks/chunk-U77DVACF.js';export{a as TextFieldBuilder}from'./chunks/chunk-AVKEMR5W.js';export{a as ExpiryDateText}from'./chunks/chunk-SQEDHQIB.js';export{a as labelCaptureLoader}from'./chunks/chunk-PACXVWIU.js';export{a as AdaptiveRecognitionMode}from'./chunks/chunk-N7HKYUQ6.js';export{a as AdaptiveRecognitionResult}from'./chunks/chunk-DDYADIOR.js';export{a as AdaptiveRecognitionResultType,b as LabelCaptureAdaptiveRecognitionSettings}from'./chunks/chunk-N2RCJCCU.js';export{a as LabelFieldDefinitionBuilder}from'./chunks/chunk-W4ZKJPWB.js';export{a as CapturedLabel}from'./chunks/chunk-GOW3A5CW.js';export{a as LabelField}from'./chunks/chunk-WR7V5D4H.js';export{a as LabelFieldType}from'./chunks/chunk-ZU6C4VWO.js';export{a as LabelDateResult}from'./chunks/chunk-D5PIEZCN.js';
@@ -1 +1 @@
1
- export{a as labelCaptureLoader}from'./chunks/chunk-3XCVMISO.js';
1
+ export{a as labelCaptureLoader}from'./chunks/chunk-PACXVWIU.js';
@@ -1,6 +1,6 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
2
  import { LabelFieldDefinition } from '../api/LabelFieldDefinition.js';
3
- import { N as NativeProxyHandle } from '../NativeProxy-Dqn_Pwfi.js';
3
+ import { N as NativeProxyHandle } from '../NativeProxy-B98bIlIp.js';
4
4
  import '@scandit/web-datacapture-barcode';
5
5
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
6
6
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -35,6 +35,7 @@ import '../api/LabelCaptureSession.js';
35
35
  import '../api/LabelDateFormat.js';
36
36
  import '../api/LabelDateComponentFormat.js';
37
37
  import '../api/LabelFieldLocationType.js';
38
+ import '../api/ReceiptScanningLineItem.js';
38
39
  import '../api/ValidationFlowField.js';
39
40
 
40
41
  interface PrivateLabelFieldDefinition extends LabelFieldDefinition {
@@ -1,5 +1,5 @@
1
1
  import { AimerViewfinder, RectangularViewfinder } from '@scandit/web-datacapture-core';
2
- import { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-Dpxz5gik.js';
2
+ import { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-BjmQOKkn.js';
3
3
  import { LabelCaptureWorkerManager } from '../worker/LabelCaptureWorkerManager.js';
4
4
  import '../djinni-types/sdcLabelData.js';
5
5
  import '@scandit/web-datacapture-core/build/js/private/Serializable';
@@ -11,7 +11,7 @@ import '../api/LabelFieldState.js';
11
11
  import '../api/LabelFieldType.js';
12
12
  import '../api/LabelFieldValueType.js';
13
13
  import '../api/LabelDateResult.js';
14
- import '../NativeProxy-Dqn_Pwfi.js';
14
+ import '../NativeProxy-B98bIlIp.js';
15
15
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
16
16
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
17
17
  import '../djinni-types/sdcBarcodeData.js';
@@ -37,8 +37,9 @@ import '../api/LabelCaptureSession.js';
37
37
  import '../api/LabelDateFormat.js';
38
38
  import '../api/LabelDateComponentFormat.js';
39
39
  import '../api/LabelFieldLocationType.js';
40
+ import '../api/ReceiptScanningLineItem.js';
40
41
  import '../api/ValidationFlowField.js';
41
- import '../LabelCapture-r1VXyYY1.js';
42
+ import '../LabelCapture-DGLkCHVN.js';
42
43
  import '../api/LabelCaptureFeedback.js';
43
44
  import '../api/LabelCaptureSettings.js';
44
45
  import '../api/LabelDefinition.js';
@@ -1 +1 @@
1
- export{L as nativeViewfinderFromJSON}from'../chunks/chunk-BMVC3AFP.js';
1
+ export{Y as nativeViewfinderFromJSON}from'../chunks/chunk-SFX2AZVU.js';
@@ -0,0 +1,25 @@
1
+ import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
2
+
3
+ declare class AdaptiveRecognitionOverlay extends ScanditHTMLElement {
4
+ static tag: "scandit-adaptive-recognition-overlay";
5
+ private _show;
6
+ private _pulseAnimation;
7
+ private _borderElement;
8
+ constructor();
9
+ get show(): boolean;
10
+ set show(value: boolean);
11
+ static get observedAttributes(): string[];
12
+ connectedCallback(): void;
13
+ disconnectedCallback(): void;
14
+ attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): Promise<void>;
15
+ static create(): AdaptiveRecognitionOverlay;
16
+ static register(): void;
17
+ private static createStyleElement;
18
+ }
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ [AdaptiveRecognitionOverlay.tag]: AdaptiveRecognitionOverlay;
22
+ }
23
+ }
24
+
25
+ export { AdaptiveRecognitionOverlay };
@@ -0,0 +1 @@
1
+ export{a as AdaptiveRecognitionOverlay}from'../../chunks/chunk-IUFE5KAN.js';
@@ -1,5 +1,5 @@
1
1
  import { DataCaptureLoader, DataCaptureLoaderOptions } from '@scandit/web-datacapture-core';
2
- import { D as DataCaptureWorker, a as DataCaptureActionMessageKey, W as WorkerCommandPayload, b as DataCaptureCallbackMessage } from '../NativeProxy-Dqn_Pwfi.js';
2
+ import { D as DataCaptureWorker, d as DataCaptureActionMessageKey, W as WorkerCommandPayload, e as DataCaptureCallbackMessage } from '../NativeProxy-B98bIlIp.js';
3
3
  import '@scandit/web-datacapture-barcode';
4
4
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
5
5
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -29,10 +29,12 @@ import '../api/LabelFieldState.js';
29
29
  import '../api/LabelFieldType.js';
30
30
  import '../api/LabelFieldValueType.js';
31
31
  import '../api/LabelDateResult.js';
32
+ import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
32
33
  import '../api/LabelCaptureSession.js';
33
34
  import '../api/LabelDateFormat.js';
34
35
  import '../api/LabelDateComponentFormat.js';
35
36
  import '../api/LabelFieldLocationType.js';
37
+ import '../api/ReceiptScanningLineItem.js';
36
38
  import '../api/ValidationFlowField.js';
37
39
 
38
40
  type WorkerListener = (event: DataCaptureCallbackMessage) => void;
@@ -1 +1 @@
1
- export{a as LabelCaptureWorkerManager}from'../chunks/chunk-BIHOAP6N.js';
1
+ export{a as LabelCaptureWorkerManager}from'../chunks/chunk-OPQ56BH6.js';
@@ -2,7 +2,7 @@ import { AugmentedWorker, ModuleHandler, WasmFrameData } from '@scandit/web-data
2
2
  import { WorkerMain as WorkerMain$1 } from '@scandit/web-datacapture-core/build/js/worker/index.js';
3
3
  import { LabelCaptureListener, LabelCapture, LabelCaptureSession } from '../djinni-types/sdcLabelInternalModuleCapture.js';
4
4
  import { DataCaptureEngine } from './dataCaptureEngine.js';
5
- import { M as Module, a as DataCaptureActionMessageKey, b as DataCaptureCallbackMessage, A as AnyDataCaptureActionMessage } from '../NativeProxy-Dqn_Pwfi.js';
5
+ import { M as Module, d as DataCaptureActionMessageKey, e as DataCaptureCallbackMessage, f as AnyDataCaptureActionMessage } from '../NativeProxy-B98bIlIp.js';
6
6
  import '../djinni-types/sdcBarcodeData.js';
7
7
  import '../djinni-types/sdcSymbologySettings.js';
8
8
  import '../djinni-types/sdcCoreInternalSdkArea.js';
@@ -32,18 +32,22 @@ import '../api/LabelFieldState.js';
32
32
  import '../api/LabelFieldType.js';
33
33
  import '../api/LabelFieldValueType.js';
34
34
  import '../api/LabelDateResult.js';
35
+ import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
35
36
  import '../api/LabelCaptureSession.js';
36
37
  import '../api/LabelDateFormat.js';
37
38
  import '../api/LabelDateComponentFormat.js';
38
39
  import '../api/LabelFieldLocationType.js';
40
+ import '../api/ReceiptScanningLineItem.js';
39
41
  import '../api/ValidationFlowField.js';
40
42
 
41
43
  declare class WorkerMain extends WorkerMain$1<DataCaptureEngine, Module> implements LabelCaptureListener {
42
- private labelCaptureBasicOverlayListener;
43
- private overlayListenerAdded;
44
- private labelBrushMap;
45
- private fieldBrushMap;
46
- private validationFlowHandlerListener;
44
+ private labelCaptureHandler;
45
+ private fieldBuilderHandler;
46
+ private settingsHandler;
47
+ private labelCaptureBasicOverlayHandler;
48
+ private labelCaptureAdvancedOverlayHandler;
49
+ private validationFlowHandler;
50
+ private receiptScanningHandler;
47
51
  constructor(workerSelf: AugmentedWorker<Module>, module: ModuleHandler<Module>);
48
52
  get Module(): Module;
49
53
  respondWith<T = unknown>(command: DataCaptureActionMessageKey, requestId: number, executor: () => T): Promise<void>;
@@ -52,10 +56,6 @@ declare class WorkerMain extends WorkerMain$1<DataCaptureEngine, Module> impleme
52
56
  onObservationStarted(): void;
53
57
  onObservationStopped(): void;
54
58
  onSessionUpdated(_mode: LabelCapture, session: LabelCaptureSession, data: WasmFrameData): void;
55
- private getFieldIdentifier;
56
- private getFieldIdentifierFromJSON;
57
- private getLabelIdentifier;
58
- private getLabelIdentifierFromJSON;
59
59
  }
60
60
 
61
61
  export { WorkerMain };
@@ -1 +1 @@
1
- export{D as WorkerMain}from'../chunks/chunk-BMVC3AFP.js';
1
+ export{Q as WorkerMain}from'../chunks/chunk-SFX2AZVU.js';
@@ -1,6 +1,6 @@
1
1
  import { LabelCaptureWorkerManager } from './LabelCaptureWorkerManager.js';
2
2
  import '@scandit/web-datacapture-core';
3
- import '../NativeProxy-Dqn_Pwfi.js';
3
+ import '../NativeProxy-B98bIlIp.js';
4
4
  import '@scandit/web-datacapture-barcode';
5
5
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
6
6
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -30,10 +30,12 @@ import '../api/LabelFieldState.js';
30
30
  import '../api/LabelFieldType.js';
31
31
  import '../api/LabelFieldValueType.js';
32
32
  import '../api/LabelDateResult.js';
33
+ import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
33
34
  import '../api/LabelCaptureSession.js';
34
35
  import '../api/LabelDateFormat.js';
35
36
  import '../api/LabelDateComponentFormat.js';
36
37
  import '../api/LabelFieldLocationType.js';
38
+ import '../api/ReceiptScanningLineItem.js';
37
39
  import '../api/ValidationFlowField.js';
38
40
 
39
41
  declare const WorkerRegistry: Map<string, LabelCaptureWorkerManager>;
@@ -1,6 +1,6 @@
1
1
  import { WorkerFunctions as WorkerFunctions$1, ModuleHandler, Vector, UpdateContextParameters, AddNativeOverlayAction, RemoveNativeOverlayAction } from '@scandit/web-datacapture-core/build/js/worker/index';
2
2
  import { DataCaptureEngine as DataCaptureEngine$1 } from '@scandit/web-datacapture-core/build/js/worker/index.js';
3
- import { M as Module, b as DataCaptureCallbackMessage } from '../NativeProxy-Dqn_Pwfi.js';
3
+ import { M as Module, e as DataCaptureCallbackMessage } from '../NativeProxy-B98bIlIp.js';
4
4
  import '@scandit/web-datacapture-barcode';
5
5
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
6
6
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -31,10 +31,12 @@ import '../api/LabelFieldState.js';
31
31
  import '../api/LabelFieldType.js';
32
32
  import '../api/LabelFieldValueType.js';
33
33
  import '../api/LabelDateResult.js';
34
+ import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
34
35
  import '../api/LabelCaptureSession.js';
35
36
  import '../api/LabelDateFormat.js';
36
37
  import '../api/LabelDateComponentFormat.js';
37
38
  import '../api/LabelFieldLocationType.js';
39
+ import '../api/ReceiptScanningLineItem.js';
38
40
  import '../api/ValidationFlowField.js';
39
41
 
40
42
  interface WorkerFunctions extends WorkerFunctions$1 {
@@ -1 +1 @@
1
- export{z as DataCaptureEngine}from'../chunks/chunk-BMVC3AFP.js';
1
+ export{F as DataCaptureEngine}from'../chunks/chunk-SFX2AZVU.js';
@@ -1,6 +1,6 @@
1
1
  import '@scandit/web-datacapture-barcode';
2
2
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
3
- export { A as AnyDataCaptureActionMessage, g as AugmentedCoreModule, e as AugmentedWorker, aA as BaseDataCaptureCallbackMessage, bb as CommandAndPayload, a4 as CreateLabelCaptureActionMessage, aS as CreateLabelCaptureCallbackMessage, l as DataCaptureActionMessage, a as DataCaptureActionMessageKey, b as DataCaptureCallbackMessage, az as DataCaptureCallbackMessageKeys, D as DataCaptureWorker, aa as LabelCaptureAddListenerActionMessage, aZ as LabelCaptureAddListenerCallbackMessage, a8 as LabelCaptureAddToContextActionMessage, aw as LabelCaptureAdvancedOverlayForLabelCaptureActionMessage, ay as LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage, ax as LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage, a7 as LabelCaptureApplySettingsActionMessage, aV as LabelCaptureApplySettingsCallbackMessage, aC as LabelCaptureBasicOverlayBrushForFieldCallbackMessage, aD as LabelCaptureBasicOverlayBrushForLabelCallbackMessage, aj as LabelCaptureBasicOverlayForLabelCaptureActionMessage, am as LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage, ao as LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage, as as LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage, au as LabelCaptureBasicOverlayGetViewfinderActionMessage, aB as LabelCaptureBasicOverlayOnLabelTappedCallbackMessage, ap as LabelCaptureBasicOverlaySetBrushForFieldActionMessage, aq as LabelCaptureBasicOverlaySetBrushForLabelActionMessage, al as LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage, an as LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage, ar as LabelCaptureBasicOverlaySetListenerActionMessage, at as LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage, av as LabelCaptureBasicOverlayUpdateViewfinderActionMessage, S as LabelCaptureBuildCustomBarcodeActionMessage, aG as LabelCaptureBuildCustomBarcodeCallbackMessage, T as LabelCaptureBuildCustomTextActionMessage, aH as LabelCaptureBuildCustomTextCallbackMessage, U as LabelCaptureBuildDateTextActionMessage, aI as LabelCaptureBuildDateTextCallbackMessage, X as LabelCaptureBuildExpiryDateTextActionMessage, aJ as LabelCaptureBuildExpiryDateTextCallbackMessage, Y as LabelCaptureBuildImeiOneBarcodeActionMessage, aK as LabelCaptureBuildImeiOneBarcodeCallbackMessage, Z as LabelCaptureBuildImeiTwoBarcodeActionMessage, aL as LabelCaptureBuildImeiTwoBarcodeCallbackMessage, O as LabelCaptureBuildLabelCaptureSettingsActionMessage, aE as LabelCaptureBuildLabelCaptureSettingsCallbackMessage, P as LabelCaptureBuildLabelDefinitionActionMessage, aF as LabelCaptureBuildLabelDefinitionCallbackMessage, ah as LabelCaptureBuildLabelFieldLocationActionMessage, b3 as LabelCaptureBuildLabelFieldLocationCallbackMessage, _ as LabelCaptureBuildPackingDateTextActionMessage, aM as LabelCaptureBuildPackingDateTextCallbackMessage, $ as LabelCaptureBuildPartNumberBarcodeActionMessage, aN as LabelCaptureBuildPartNumberBarcodeCallbackMessage, R as LabelCaptureBuildPriceCaptureDefinitionActionMessage, a0 as LabelCaptureBuildSerialNumberBarcodeActionMessage, aO as LabelCaptureBuildSerialNumberBarcodeCallbackMessage, a1 as LabelCaptureBuildTotalPriceTextActionMessage, aP as LabelCaptureBuildTotalPriceTextCallbackMessage, a2 as LabelCaptureBuildUnitPriceTextActionMessage, aQ as LabelCaptureBuildUnitPriceTextCallbackMessage, Q as LabelCaptureBuildVinLabelDefinitionActionMessage, a3 as LabelCaptureBuildWeightTextActionMessage, aR as LabelCaptureBuildWeightTextCallbackMessage, a5 as LabelCaptureIsEnabledActionMessage, aT as LabelCaptureIsEnabledCallbackMessage, L as LabelCaptureModule, aW as LabelCaptureOnObservationStartedCallbackMessage, aX as LabelCaptureOnObservationStoppedCallbackMessage, aY as LabelCaptureOnSessionUpdatedCallbackMessage, a9 as LabelCaptureRemoveFromContextActionMessage, ab as LabelCaptureRemoveListenerActionMessage, a_ as LabelCaptureRemoveListenerCallbackMessage, a6 as LabelCaptureSetEnabledActionMessage, aU as LabelCaptureSetEnabledCallbackMessage, af as LabelCaptureSettingsGetBlueprintJsonActionMessage, ac as LabelCaptureSettingsGetLocationSelectionActionMessage, a$ as LabelCaptureSettingsGetLocationSelectionCallbackMessage, ae as LabelCaptureSettingsGetPropertyActionMessage, b1 as LabelCaptureSettingsGetPropertyCallbackMessage, ad as LabelCaptureSettingsSetLocationSelectionActionMessage, b0 as LabelCaptureSettingsSetLocationSelectionCallbackMessage, ag as LabelCaptureSettingsSetPropertyActionMessage, b2 as LabelCaptureSettingsSetPropertyCallbackMessage, h as LabelData, ai as LabelDefinitionSetAdaptiveRecognitionModeActionMessage, i as LabelInternalModuleCapture, j as LabelInternalModuleData, M as Module, f as ModuleHandler, ba as PayloadForCommand, J as ValidationFlowHandlerCancelCloudBackupTaskForFieldActionMessage, z as ValidationFlowHandlerCreateActionMessage, F as ValidationFlowHandlerFinishFlowActionMessage, I as ValidationFlowHandlerGetValidationFlowFieldsActionMessage, G as ValidationFlowHandlerPauseScanActionMessage, H as ValidationFlowHandlerResumeScanActionMessage, B as ValidationFlowHandlerStartCompleteLabelScanActionMessage, C as ValidationFlowHandlerStartPartialLabelScanActionMessage, K as ValidationFlowHandlerUncancelCloudBackupTaskForFieldActionMessage, E as ValidationFlowHandlerUpdateFieldValueActionMessage, b8 as ValidationFlowListenerOnCloudBackupServiceFailedForFieldsCallbackMessage, b7 as ValidationFlowListenerOnCloudBackupServiceStartedForFieldsCallbackMessage, b4 as ValidationFlowListenerOnFieldsScannedCallbackMessage, b6 as ValidationFlowListenerOnLabelIsMissingRequiredFieldCallbackMessage, b5 as ValidationFlowListenerOnScanTimeoutCallbackMessage, b9 as ValidationFlowListenerOnStateChangedCallbackMessage, y as ValidationFlowOverlayApplySettingsActionMessage, ak as ValidationFlowOverlayForLabelCaptureActionMessage, V as ValidationFlowSettingsCreateActionMessage, x as ValidationFlowSettingsGetManualInputButtonTextActionMessage, n as ValidationFlowSettingsGetMissingFieldsHintTextActionMessage, v as ValidationFlowSettingsGetRequiredFieldErrorTextActionMessage, p as ValidationFlowSettingsGetStandbyHintTextActionMessage, t as ValidationFlowSettingsGetValidationErrorTextActionMessage, r as ValidationFlowSettingsGetValidationHintTextActionMessage, w as ValidationFlowSettingsSetManualInputButtonTextActionMessage, m as ValidationFlowSettingsSetMissingFieldsHintTextActionMessage, u as ValidationFlowSettingsSetRequiredFieldErrorTextActionMessage, o as ValidationFlowSettingsSetStandbyHintTextActionMessage, s as ValidationFlowSettingsSetValidationErrorTextActionMessage, q as ValidationFlowSettingsSetValidationHintTextActionMessage, W as WorkerCommandPayload, k as WorkerResponse } from '../NativeProxy-Dqn_Pwfi.js';
3
+ export { f as AnyDataCaptureActionMessage, l as AugmentedCoreModule, j as AugmentedWorker, aP as BaseDataCaptureCallbackMessage, bt as CommandAndPayload, aj as CreateLabelCaptureActionMessage, b5 as CreateLabelCaptureCallbackMessage, q as DataCaptureActionMessage, d as DataCaptureActionMessageKey, e as DataCaptureCallbackMessage, aO as DataCaptureCallbackMessageKeys, D as DataCaptureWorker, ap as LabelCaptureAddListenerActionMessage, bc as LabelCaptureAddListenerCallbackMessage, an as LabelCaptureAddToContextActionMessage, aL as LabelCaptureAdvancedOverlayForLabelCaptureActionMessage, aN as LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage, aM as LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage, am as LabelCaptureApplySettingsActionMessage, b8 as LabelCaptureApplySettingsCallbackMessage, aR as LabelCaptureBasicOverlayBrushForFieldCallbackMessage, aS as LabelCaptureBasicOverlayBrushForLabelCallbackMessage, ay as LabelCaptureBasicOverlayForLabelCaptureActionMessage, aB as LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage, aD as LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage, aH as LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage, aJ as LabelCaptureBasicOverlayGetViewfinderActionMessage, aQ as LabelCaptureBasicOverlayOnLabelTappedCallbackMessage, aE as LabelCaptureBasicOverlaySetBrushForFieldActionMessage, aF as LabelCaptureBasicOverlaySetBrushForLabelActionMessage, aA as LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage, aC as LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage, aG as LabelCaptureBasicOverlaySetListenerActionMessage, aI as LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage, aK as LabelCaptureBasicOverlayUpdateViewfinderActionMessage, a7 as LabelCaptureBuildCustomBarcodeActionMessage, aV as LabelCaptureBuildCustomBarcodeCallbackMessage, a8 as LabelCaptureBuildCustomTextActionMessage, aW as LabelCaptureBuildCustomTextCallbackMessage, a9 as LabelCaptureBuildDateTextActionMessage, aX as LabelCaptureBuildDateTextCallbackMessage, aa as LabelCaptureBuildExpiryDateTextActionMessage, aY as LabelCaptureBuildExpiryDateTextCallbackMessage, ab as LabelCaptureBuildImeiOneBarcodeActionMessage, aZ as LabelCaptureBuildImeiOneBarcodeCallbackMessage, ac as LabelCaptureBuildImeiTwoBarcodeActionMessage, a_ as LabelCaptureBuildImeiTwoBarcodeCallbackMessage, a3 as LabelCaptureBuildLabelCaptureSettingsActionMessage, aT as LabelCaptureBuildLabelCaptureSettingsCallbackMessage, a4 as LabelCaptureBuildLabelDefinitionActionMessage, aU as LabelCaptureBuildLabelDefinitionCallbackMessage, aw as LabelCaptureBuildLabelFieldLocationActionMessage, bi as LabelCaptureBuildLabelFieldLocationCallbackMessage, ad as LabelCaptureBuildPackingDateTextActionMessage, a$ as LabelCaptureBuildPackingDateTextCallbackMessage, ae as LabelCaptureBuildPartNumberBarcodeActionMessage, b0 as LabelCaptureBuildPartNumberBarcodeCallbackMessage, a6 as LabelCaptureBuildPriceCaptureDefinitionActionMessage, af as LabelCaptureBuildSerialNumberBarcodeActionMessage, b1 as LabelCaptureBuildSerialNumberBarcodeCallbackMessage, ag as LabelCaptureBuildTotalPriceTextActionMessage, b2 as LabelCaptureBuildTotalPriceTextCallbackMessage, ah as LabelCaptureBuildUnitPriceTextActionMessage, b3 as LabelCaptureBuildUnitPriceTextCallbackMessage, a5 as LabelCaptureBuildVinLabelDefinitionActionMessage, ai as LabelCaptureBuildWeightTextActionMessage, b4 as LabelCaptureBuildWeightTextCallbackMessage, ak as LabelCaptureIsEnabledActionMessage, b6 as LabelCaptureIsEnabledCallbackMessage, i as LabelCaptureModule, b9 as LabelCaptureOnObservationStartedCallbackMessage, ba as LabelCaptureOnObservationStoppedCallbackMessage, bb as LabelCaptureOnSessionUpdatedCallbackMessage, ao as LabelCaptureRemoveFromContextActionMessage, aq as LabelCaptureRemoveListenerActionMessage, bd as LabelCaptureRemoveListenerCallbackMessage, al as LabelCaptureSetEnabledActionMessage, b7 as LabelCaptureSetEnabledCallbackMessage, au as LabelCaptureSettingsGetBlueprintJsonActionMessage, ar as LabelCaptureSettingsGetLocationSelectionActionMessage, be as LabelCaptureSettingsGetLocationSelectionCallbackMessage, at as LabelCaptureSettingsGetPropertyActionMessage, bg as LabelCaptureSettingsGetPropertyCallbackMessage, as as LabelCaptureSettingsSetLocationSelectionActionMessage, bf as LabelCaptureSettingsSetLocationSelectionCallbackMessage, av as LabelCaptureSettingsSetPropertyActionMessage, bh as LabelCaptureSettingsSetPropertyCallbackMessage, m as LabelData, ax as LabelDefinitionSetAdaptiveRecognitionModeActionMessage, n as LabelInternalModuleCapture, o as LabelInternalModuleData, M as Module, k as ModuleHandler, bs as PayloadForCommand, Q as ReceiptScanningHandlerAddListenerActionMessage, P as ReceiptScanningHandlerFinishFlowActionMessage, S as ReceiptScanningHandlerRemoveListenerActionMessage, O as ReceiptScanningHandlerStartFlowActionMessage, bj as ReceiptScanningListenerOnProcessingStartedCallbackMessage, bk as ReceiptScanningListenerOnReceiptScannedCallbackMessage, bl as ReceiptScanningListenerOnReceiptScanningFailedCallbackMessage, H as ReceiptScanningOverlayApplySettingsActionMessage, G as ReceiptScanningOverlayForLabelCaptureActionMessage, I as ReceiptScanningSettingsCreateActionMessage, K as ReceiptScanningSettingsGetProcessingHintTextActionMessage, J as ReceiptScanningSettingsSetProcessingHintTextActionMessage, a1 as ValidationFlowHandlerCancelCloudBackupTaskForFieldActionMessage, T as ValidationFlowHandlerCreateActionMessage, Z as ValidationFlowHandlerFinishFlowActionMessage, a0 as ValidationFlowHandlerGetValidationFlowFieldsActionMessage, _ as ValidationFlowHandlerPauseScanActionMessage, $ as ValidationFlowHandlerResumeScanActionMessage, U as ValidationFlowHandlerStartCompleteLabelScanActionMessage, X as ValidationFlowHandlerStartPartialLabelScanActionMessage, a2 as ValidationFlowHandlerUncancelCloudBackupTaskForFieldActionMessage, Y as ValidationFlowHandlerUpdateFieldValueActionMessage, bq as ValidationFlowListenerOnCloudBackupServiceFailedForFieldsCallbackMessage, bp as ValidationFlowListenerOnCloudBackupServiceStartedForFieldsCallbackMessage, bm as ValidationFlowListenerOnFieldsScannedCallbackMessage, bo as ValidationFlowListenerOnLabelIsMissingRequiredFieldCallbackMessage, bn as ValidationFlowListenerOnScanTimeoutCallbackMessage, br as ValidationFlowListenerOnStateChangedCallbackMessage, F as ValidationFlowOverlayApplySettingsActionMessage, az as ValidationFlowOverlayForLabelCaptureActionMessage, V as ValidationFlowSettingsCreateActionMessage, E as ValidationFlowSettingsGetManualInputButtonTextActionMessage, s as ValidationFlowSettingsGetMissingFieldsHintTextActionMessage, B as ValidationFlowSettingsGetRequiredFieldErrorTextActionMessage, u as ValidationFlowSettingsGetStandbyHintTextActionMessage, y as ValidationFlowSettingsGetValidationErrorTextActionMessage, w as ValidationFlowSettingsGetValidationHintTextActionMessage, C as ValidationFlowSettingsSetManualInputButtonTextActionMessage, r as ValidationFlowSettingsSetMissingFieldsHintTextActionMessage, z as ValidationFlowSettingsSetRequiredFieldErrorTextActionMessage, t as ValidationFlowSettingsSetStandbyHintTextActionMessage, x as ValidationFlowSettingsSetValidationErrorTextActionMessage, v as ValidationFlowSettingsSetValidationHintTextActionMessage, W as WorkerCommandPayload, p as WorkerResponse } from '../NativeProxy-B98bIlIp.js';
4
4
  import '../djinni-types/sdcCoreCommonGeometry.js';
5
5
  import '../djinni-types/sdcCoreInternalSdkArea.js';
6
6
  import '../djinni-types/sdcCoreInternalSdkUiViewfinder.js';
@@ -19,6 +19,8 @@ import '../api/ValidationFlowField.js';
19
19
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
20
20
  import '../djinni-types/sdcBarcodeData.js';
21
21
  import '../djinni-types/sdcCoreCommonBuffer.js';
22
+ import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
23
+ import '../api/ReceiptScanningLineItem.js';
22
24
  import '../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
23
25
  import '../djinni-types/sdcCoreCommonGraphic.js';
24
26
  import '../djinni-types/sdcCoreInternalSdkCommonGraphics.js';