@scandit/web-datacapture-label 7.3.0-beta.2 → 7.3.1

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 (114) hide show
  1. package/build/js/{LabelCaptureAdvancedOverlay-CQsy_KsL.d.ts → LabelCaptureAdvancedOverlay-Ce_nh3U3.d.ts} +1 -1
  2. package/build/js/{LabelCaptureBasicOverlay-4JorH1kZ.d.ts → LabelCaptureBasicOverlay-C3cbNhm8.d.ts} +1 -1
  3. package/build/js/{NativeProxy-CsndagT7.d.ts → NativeProxy-LMnx6HJm.d.ts} +3 -3
  4. package/build/js/api/CustomText.d.ts +1 -1
  5. package/build/js/api/CustomTextBuilder.d.ts +1 -1
  6. package/build/js/api/ExpiryDateText.d.ts +1 -1
  7. package/build/js/api/ExpiryDateTextBuilder.d.ts +1 -1
  8. package/build/js/api/LabelCapture.d.ts +1 -1
  9. package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +2 -2
  10. package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +2 -2
  11. package/build/js/api/LabelCaptureBasicOverlay.d.ts +2 -2
  12. package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +2 -2
  13. package/build/js/api/LabelCaptureListener.d.ts +1 -1
  14. package/build/js/api/LabelCaptureOverlayJSON.d.ts +1 -1
  15. package/build/js/api/LabelCaptureSettings.d.ts +1 -1
  16. package/build/js/api/LabelDefinition.d.ts +1 -1
  17. package/build/js/api/PackingDateText.d.ts +1 -1
  18. package/build/js/api/PackingDateTextBuilder.d.ts +1 -1
  19. package/build/js/api/TotalPriceText.d.ts +1 -1
  20. package/build/js/api/TotalPriceTextBuilder.d.ts +1 -1
  21. package/build/js/api/UnitPriceText.d.ts +1 -1
  22. package/build/js/api/UnitPriceTextBuilder.d.ts +1 -1
  23. package/build/js/api/WeightText.d.ts +1 -1
  24. package/build/js/api/WeightTextBuilder.d.ts +1 -1
  25. package/build/js/chunks/chunk-CN22WUCY.js +1 -0
  26. package/build/js/chunks/chunk-FINXT6JZ.js +1 -0
  27. package/build/js/chunks/chunk-PN3HJLEL.js +2 -0
  28. package/build/js/chunks/{chunk-PEJQTQB4.js → chunk-SIXIQOLG.js} +1 -1
  29. package/build/js/index.d.ts +3 -3
  30. package/build/js/index.js +1 -1
  31. package/build/js/moduleLoader.js +1 -1
  32. package/build/js/private/PrivateLabelFieldDefinition.d.ts +1 -1
  33. package/build/js/private/createProxiedViewFinder.d.ts +2 -2
  34. package/build/js/private/viewfinderTranslator.js +1 -1
  35. package/build/js/ui/molecules/CardListContainer.js +1 -1
  36. package/build/js/worker/LabelCaptureWorkerManager.d.ts +1 -1
  37. package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
  38. package/build/js/worker/WorkerMain.d.ts +1 -1
  39. package/build/js/worker/WorkerMain.js +1 -1
  40. package/build/js/worker/WorkerRegistry.d.ts +1 -1
  41. package/build/js/worker/dataCaptureEngine.d.ts +1 -1
  42. package/build/js/worker/dataCaptureEngine.js +1 -1
  43. package/build/js/worker/dataCaptureWorkerRelated.d.ts +1 -1
  44. package/build/js/worker/labelCapture.inlineWorker.d.ts +1 -1
  45. package/build/js/worker/labelCapture.inlineWorker.js +1 -1
  46. package/build/js/worker/labelWorkerHandler.d.ts +1 -1
  47. package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +1 -1
  48. package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
  49. package/build/js/worker/proxies/BarcodeFieldProxy.d.ts +1 -1
  50. package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
  51. package/build/js/worker/proxies/CapturedLabelProxy.d.ts +1 -1
  52. package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
  53. package/build/js/worker/proxies/CustomBarcodeProxy.d.ts +1 -1
  54. package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
  55. package/build/js/worker/proxies/CustomTextProxy.d.ts +1 -1
  56. package/build/js/worker/proxies/CustomTextProxy.js +1 -1
  57. package/build/js/worker/proxies/ExpiryDateTextProxy.d.ts +1 -1
  58. package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
  59. package/build/js/worker/proxies/ImeiOneBarcodeProxy.d.ts +1 -1
  60. package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
  61. package/build/js/worker/proxies/ImeiTwoBarcodeProxy.d.ts +1 -1
  62. package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
  63. package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.d.ts +1 -1
  64. package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
  65. package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.d.ts +1 -1
  66. package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
  67. package/build/js/worker/proxies/LabelCaptureHelperProxy.d.ts +1 -1
  68. package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
  69. package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.d.ts +1 -1
  70. package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
  71. package/build/js/worker/proxies/LabelCaptureProxy.d.ts +1 -1
  72. package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
  73. package/build/js/worker/proxies/LabelCaptureSessionProxy.d.ts +1 -1
  74. package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
  75. package/build/js/worker/proxies/LabelCaptureSettingsProxy.d.ts +1 -1
  76. package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
  77. package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +1 -1
  78. package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
  79. package/build/js/worker/proxies/LabelFieldDefinitionProxy.d.ts +1 -1
  80. package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
  81. package/build/js/worker/proxies/LabelFieldLocationProxy.d.ts +1 -1
  82. package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
  83. package/build/js/worker/proxies/LabelFieldProxy.d.ts +1 -1
  84. package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
  85. package/build/js/worker/proxies/NativeProxy.d.ts +1 -1
  86. package/build/js/worker/proxies/NativeProxy.js +1 -1
  87. package/build/js/worker/proxies/NoViewfinderProxy.d.ts +1 -1
  88. package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
  89. package/build/js/worker/proxies/PackingDateTextProxy.d.ts +1 -1
  90. package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
  91. package/build/js/worker/proxies/PartNumberBarcodeProxy.d.ts +1 -1
  92. package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
  93. package/build/js/worker/proxies/RectangularViewfinderProxy.d.ts +1 -1
  94. package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
  95. package/build/js/worker/proxies/SerialNumberBarcodeProxy.d.ts +1 -1
  96. package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
  97. package/build/js/worker/proxies/TotalPriceTextProxy.d.ts +1 -1
  98. package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
  99. package/build/js/worker/proxies/UnitPriceTextProxy.d.ts +1 -1
  100. package/build/js/worker/proxies/UnitPriceTextProxy.js +1 -1
  101. package/build/js/worker/proxies/WeightTextProxy.d.ts +1 -1
  102. package/build/js/worker/proxies/WeightTextProxy.js +1 -1
  103. package/package.json +2 -2
  104. package/sdc-lib/scandit-datacapture-sdk-label-pthreads.js +1 -1
  105. package/sdc-lib/scandit-datacapture-sdk-label-pthreads.wasm +0 -0
  106. package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.js +1 -1
  107. package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.wasm +0 -0
  108. package/sdc-lib/scandit-datacapture-sdk-label-simd.js +1 -1
  109. package/sdc-lib/scandit-datacapture-sdk-label-simd.wasm +0 -0
  110. package/sdc-lib/scandit-datacapture-sdk-label.js +1 -1
  111. package/sdc-lib/scandit-datacapture-sdk-label.wasm +0 -0
  112. package/build/js/chunks/chunk-6QS527PW.js +0 -1
  113. package/build/js/chunks/chunk-BUOQJS6T.js +0 -2
  114. package/build/js/chunks/chunk-ZOJBHF75.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { Anchor, PointWithUnit, DataCaptureOverlay, DataCaptureView } from '@scandit/web-datacapture-core';
2
2
  import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Serializable';
3
3
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
4
- import { N as NativeProxyHandle } from './NativeProxy-CsndagT7.js';
4
+ import { N as NativeProxyHandle } from './NativeProxy-LMnx6HJm.js';
5
5
  import { CapturedLabel } from './api/CapturedLabel.js';
6
6
  import { L as LabelCapture } from './LabelCapture-DDlDP--7.js';
7
7
  import { LabelCaptureOverlayJSON } from './api/LabelCaptureOverlayJSON.js';
@@ -4,7 +4,7 @@ import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Ser
4
4
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
5
  import { CapturedLabel } from './api/CapturedLabel.js';
6
6
  import { LabelField } from './api/LabelField.js';
7
- import { N as NativeProxyHandle } from './NativeProxy-CsndagT7.js';
7
+ import { N as NativeProxyHandle } from './NativeProxy-LMnx6HJm.js';
8
8
  import { L as LabelCapture } from './LabelCapture-DDlDP--7.js';
9
9
  import { LabelCaptureOverlayJSON } from './api/LabelCaptureOverlayJSON.js';
10
10
 
@@ -1,5 +1,5 @@
1
1
  import { Symbology } from '@scandit/web-datacapture-barcode';
2
- import { DataCaptureCallbackMessage as DataCaptureCallbackMessage$1, DataCaptureCallbackMessageKeys as DataCaptureCallbackMessageKeys$1, AnyDataCaptureActionMessage as AnyDataCaptureActionMessage$1, DataCaptureActionMessageKey as DataCaptureActionMessageKey$1, Module as Module$1, WorkerResponse as WorkerResponse$1 } from '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
2
+ import { AnyDataCaptureActionMessage as AnyDataCaptureActionMessage$1, DataCaptureActionMessageKey as DataCaptureActionMessageKey$1, DataCaptureCallbackMessage as DataCaptureCallbackMessage$1, DataCaptureCallbackMessageKeys as DataCaptureCallbackMessageKeys$1, Module as Module$1, WorkerResponse as WorkerResponse$1 } from '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
3
3
  import { Barcode } from './djinni-types/sdcBarcodeInternalSdkData.js';
4
4
  import { FloatWithUnit, MeasureUnit, Quadrilateral } from './djinni-types/sdcCoreCommonGeometry.js';
5
5
  import { BarcodeField, BarcodeField_statics, CustomBarcode, CustomBarcode_statics, CustomText, CustomText_statics, ExpiryDateText, ExpiryDateText_statics, ImeiOneBarcode, ImeiOneBarcode_statics, ImeiTwoBarcode, ImeiTwoBarcode_statics, LabelCapture, LabelCapture_statics, LabelCaptureHelper, LabelCaptureHelper_statics, LabelCaptureListener, LabelCaptureSession, LabelCaptureSettings, LabelCaptureSettings_statics, LabelDefinition, LabelDefinition_statics, LabelFieldDefinition, LabelFieldLocation, LabelFieldLocation_statics, PackingDateText, PackingDateText_statics, PartNumberBarcode, PartNumberBarcode_statics, SerialNumberBarcode, SerialNumberBarcode_statics, TextField, TotalPriceText, TotalPriceText_statics, UnitPriceText, UnitPriceText_statics, WeightText, WeightText_statics } from './djinni-types/sdcLabelInternalModuleCapture.js';
@@ -8,7 +8,7 @@ import { RectangularLocationSelection, RectangularLocationSelection_statics } fr
8
8
  import { RectangularViewfinder, RectangularViewfinder_statics, AimerViewfinder, AimerViewfinder_statics, NoViewfinder, NoViewfinder_statics } from './djinni-types/sdcCoreInternalSdkUiViewfinder.js';
9
9
  import { LabelFieldLocationType, LabelFieldState, LabelFieldType } from './djinni-types/sdcLabelData.js';
10
10
  import { LabelCaptureOverlayHelper, LabelCaptureOverlayHelper_statics, LabelCaptureBasicOverlay, LabelCaptureBasicOverlay_statics, LabelCaptureAdvancedOverlay, LabelCaptureAdvancedOverlay_statics } from './djinni-types/sdcLabelInternalModuleUiOverlay.js';
11
- import { PrivateLoadableFrameData, LocationSelectionJSON, RectJSON, BrushJSON, RectangularViewfinderJSON, AimerViewfinderJSON } from '@scandit/web-datacapture-core';
11
+ import { LocationSelectionJSON, RectJSON, BrushJSON, RectangularViewfinderJSON, AimerViewfinderJSON, PrivateLoadableFrameData } from '@scandit/web-datacapture-core';
12
12
  import { CapturedLabelJSON } from './api/CapturedLabel.js';
13
13
  import { LabelCaptureSessionJSON } from './api/LabelCaptureSession.js';
14
14
  import { LabelFieldJSON } from './api/LabelField.js';
@@ -542,4 +542,4 @@ declare abstract class NativeProxyAdapter<NativeClass extends object> {
542
542
  handleFromNativeImplementation(nativeImplementation: NativeClass): NativeProxyHandle;
543
543
  }
544
544
 
545
- export { type LabelCaptureBasicOverlayUpdateViewfinderActionMessage as $, type AnyDataCaptureActionMessage as A, type LabelCaptureIsEnabledActionMessage as B, type LabelCaptureSetEnabledActionMessage as C, type DataCaptureCallbackMessage as D, type LabelCaptureApplySettingsActionMessage as E, type LabelCaptureAddListenerActionMessage as F, type LabelCaptureRemoveListenerActionMessage as G, type LabelCaptureSettingsGetLocationSelectionActionMessage as H, type LabelCaptureSettingsSetLocationSelectionActionMessage as I, type LabelCaptureSettingsGetPropertyActionMessage as J, type LabelCaptureSettingsSetPropertyActionMessage as K, type LabelCaptureModule as L, type Module as M, type NativeProxyHandle as N, type LabelCaptureBuildLabelFieldLocationActionMessage as O, type LabelCaptureBasicOverlayForLabelCaptureActionMessage as P, type LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage as Q, type LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage as R, type LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage as S, type LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage as T, type LabelCaptureBasicOverlaySetBrushForFieldActionMessage as U, type LabelCaptureBasicOverlaySetBrushForLabelActionMessage as V, type WorkerCommandPayload as W, type LabelCaptureBasicOverlaySetListenerActionMessage as X, type LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage as Y, type LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage as Z, type LabelCaptureBasicOverlayGetViewfinderActionMessage as _, type DataCaptureWorker as a, type LabelCaptureAdvancedOverlayForLabelCaptureActionMessage as a0, type LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage as a1, type LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage as a2, type DataCaptureCallbackMessageKeys as a3, type BaseDataCaptureCallbackMessage as a4, type LabelCaptureBasicOverlayOnLabelTappedCallbackMessage as a5, type LabelCaptureBasicOverlayBrushForFieldCallbackMessage as a6, type LabelCaptureBasicOverlayBrushForLabelCallbackMessage as a7, type LabelCaptureBuildLabelCaptureSettingsCallbackMessage as a8, type LabelCaptureBuildLabelDefinitionCallbackMessage as a9, type CommandAndPayload as aA, type NativeProxyMethod as aB, type LabelCaptureBuildCustomBarcodeCallbackMessage as aa, type LabelCaptureBuildCustomTextCallbackMessage as ab, type LabelCaptureBuildExpiryDateTextCallbackMessage as ac, type LabelCaptureBuildImeiOneBarcodeCallbackMessage as ad, type LabelCaptureBuildImeiTwoBarcodeCallbackMessage as ae, type LabelCaptureBuildPackingDateTextCallbackMessage as af, type LabelCaptureBuildPartNumberBarcodeCallbackMessage as ag, type LabelCaptureBuildSerialNumberBarcodeCallbackMessage as ah, type LabelCaptureBuildTotalPriceTextCallbackMessage as ai, type LabelCaptureBuildUnitPriceTextCallbackMessage as aj, type LabelCaptureBuildWeightTextCallbackMessage as ak, type LabelCaptureForContextCallbackMessage as al, type LabelCaptureIsEnabledCallbackMessage as am, type LabelCaptureSetEnabledCallbackMessage as an, type LabelCaptureApplySettingsCallbackMessage as ao, type LabelCaptureOnObservationStartedCallbackMessage as ap, type LabelCaptureOnObservationStoppedCallbackMessage as aq, type LabelCaptureOnSessionUpdatedCallbackMessage as ar, type LabelCaptureAddListenerCallbackMessage as as, type LabelCaptureRemoveListenerCallbackMessage as at, type LabelCaptureSettingsGetLocationSelectionCallbackMessage as au, type LabelCaptureSettingsSetLocationSelectionCallbackMessage as av, type LabelCaptureSettingsGetPropertyCallbackMessage as aw, type LabelCaptureSettingsSetPropertyCallbackMessage as ax, type LabelCaptureBuildLabelFieldLocationCallbackMessage as ay, type PayloadForCommand as az, type DataCaptureActionMessageKey as b, NativeProxyAdapter as c, type NativeProxy as d, type AugmentedWorker as e, type ModuleHandler as f, type AugmentedCoreModule as g, type LabelData as h, type LabelInternalModuleCapture as i, type LabelInternalModuleData as j, type WorkerResponse as k, type DataCaptureActionMessage as l, type LabelCaptureBuildLabelCaptureSettingsActionMessage as m, type LabelCaptureBuildLabelDefinitionActionMessage as n, type LabelCaptureBuildCustomBarcodeActionMessage as o, type LabelCaptureBuildCustomTextActionMessage as p, type LabelCaptureBuildExpiryDateTextActionMessage as q, type LabelCaptureBuildImeiOneBarcodeActionMessage as r, type LabelCaptureBuildImeiTwoBarcodeActionMessage as s, type LabelCaptureBuildPackingDateTextActionMessage as t, type LabelCaptureBuildPartNumberBarcodeActionMessage as u, type LabelCaptureBuildSerialNumberBarcodeActionMessage as v, type LabelCaptureBuildTotalPriceTextActionMessage as w, type LabelCaptureBuildUnitPriceTextActionMessage as x, type LabelCaptureBuildWeightTextActionMessage as y, type LabelCaptureForContextActionMessage as z };
545
+ export { type LabelCaptureBasicOverlayUpdateViewfinderActionMessage as $, type AnyDataCaptureActionMessage as A, type LabelCaptureIsEnabledActionMessage as B, type LabelCaptureSetEnabledActionMessage as C, type DataCaptureWorker as D, type LabelCaptureApplySettingsActionMessage as E, type LabelCaptureAddListenerActionMessage as F, type LabelCaptureRemoveListenerActionMessage as G, type LabelCaptureSettingsGetLocationSelectionActionMessage as H, type LabelCaptureSettingsSetLocationSelectionActionMessage as I, type LabelCaptureSettingsGetPropertyActionMessage as J, type LabelCaptureSettingsSetPropertyActionMessage as K, type LabelCaptureModule as L, type Module as M, type NativeProxyHandle as N, type LabelCaptureBuildLabelFieldLocationActionMessage as O, type LabelCaptureBasicOverlayForLabelCaptureActionMessage as P, type LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage as Q, type LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage as R, type LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage as S, type LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage as T, type LabelCaptureBasicOverlaySetBrushForFieldActionMessage as U, type LabelCaptureBasicOverlaySetBrushForLabelActionMessage as V, type WorkerCommandPayload as W, type LabelCaptureBasicOverlaySetListenerActionMessage as X, type LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage as Y, type LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage as Z, type LabelCaptureBasicOverlayGetViewfinderActionMessage as _, type DataCaptureActionMessageKey as a, type LabelCaptureAdvancedOverlayForLabelCaptureActionMessage as a0, type LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage as a1, type LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage as a2, type DataCaptureCallbackMessageKeys as a3, type BaseDataCaptureCallbackMessage as a4, type LabelCaptureBasicOverlayOnLabelTappedCallbackMessage as a5, type LabelCaptureBasicOverlayBrushForFieldCallbackMessage as a6, type LabelCaptureBasicOverlayBrushForLabelCallbackMessage as a7, type LabelCaptureBuildLabelCaptureSettingsCallbackMessage as a8, type LabelCaptureBuildLabelDefinitionCallbackMessage as a9, type CommandAndPayload as aA, type NativeProxyMethod as aB, type LabelCaptureBuildCustomBarcodeCallbackMessage as aa, type LabelCaptureBuildCustomTextCallbackMessage as ab, type LabelCaptureBuildExpiryDateTextCallbackMessage as ac, type LabelCaptureBuildImeiOneBarcodeCallbackMessage as ad, type LabelCaptureBuildImeiTwoBarcodeCallbackMessage as ae, type LabelCaptureBuildPackingDateTextCallbackMessage as af, type LabelCaptureBuildPartNumberBarcodeCallbackMessage as ag, type LabelCaptureBuildSerialNumberBarcodeCallbackMessage as ah, type LabelCaptureBuildTotalPriceTextCallbackMessage as ai, type LabelCaptureBuildUnitPriceTextCallbackMessage as aj, type LabelCaptureBuildWeightTextCallbackMessage as ak, type LabelCaptureForContextCallbackMessage as al, type LabelCaptureIsEnabledCallbackMessage as am, type LabelCaptureSetEnabledCallbackMessage as an, type LabelCaptureApplySettingsCallbackMessage as ao, type LabelCaptureOnObservationStartedCallbackMessage as ap, type LabelCaptureOnObservationStoppedCallbackMessage as aq, type LabelCaptureOnSessionUpdatedCallbackMessage as ar, type LabelCaptureAddListenerCallbackMessage as as, type LabelCaptureRemoveListenerCallbackMessage as at, type LabelCaptureSettingsGetLocationSelectionCallbackMessage as au, type LabelCaptureSettingsSetLocationSelectionCallbackMessage as av, type LabelCaptureSettingsGetPropertyCallbackMessage as aw, type LabelCaptureSettingsSetPropertyCallbackMessage as ax, type LabelCaptureBuildLabelFieldLocationCallbackMessage as ay, type PayloadForCommand as az, type DataCaptureCallbackMessage as b, NativeProxyAdapter as c, type NativeProxy as d, type AugmentedWorker as e, type ModuleHandler as f, type AugmentedCoreModule as g, type LabelData as h, type LabelInternalModuleCapture as i, type LabelInternalModuleData as j, type WorkerResponse as k, type DataCaptureActionMessage as l, type LabelCaptureBuildLabelCaptureSettingsActionMessage as m, type LabelCaptureBuildLabelDefinitionActionMessage as n, type LabelCaptureBuildCustomBarcodeActionMessage as o, type LabelCaptureBuildCustomTextActionMessage as p, type LabelCaptureBuildExpiryDateTextActionMessage as q, type LabelCaptureBuildImeiOneBarcodeActionMessage as r, type LabelCaptureBuildImeiTwoBarcodeActionMessage as s, type LabelCaptureBuildPackingDateTextActionMessage as t, type LabelCaptureBuildPartNumberBarcodeActionMessage as u, type LabelCaptureBuildSerialNumberBarcodeActionMessage as v, type LabelCaptureBuildTotalPriceTextActionMessage as w, type LabelCaptureBuildUnitPriceTextActionMessage as x, type LabelCaptureBuildWeightTextActionMessage as y, type LabelCaptureForContextActionMessage as z };
@@ -1,5 +1,5 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
2
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
3
3
  import { LabelFieldLocation } from './LabelFieldLocation.js';
4
4
  import { TextField } from './TextField.js';
5
5
  import '@scandit/web-datacapture-barcode';
@@ -2,7 +2,7 @@ import { CustomText } from './CustomText.js';
2
2
  import { TextFieldBuilder } from './TextFieldBuilder.js';
3
3
  import { LabelFieldLocation } from './LabelFieldLocation.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
- import '../NativeProxy-CsndagT7.js';
5
+ import '../NativeProxy-LMnx6HJm.js';
6
6
  import '@scandit/web-datacapture-barcode';
7
7
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
8
8
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -1,5 +1,5 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
2
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
3
3
  import { LabelDateFormat } from './LabelDateFormat.js';
4
4
  import { TextField } from './TextField.js';
5
5
  import '@scandit/web-datacapture-barcode';
@@ -2,7 +2,7 @@ import { ExpiryDateText } from './ExpiryDateText.js';
2
2
  import { TextFieldBuilder } from './TextFieldBuilder.js';
3
3
  import { LabelDateFormat } from './LabelDateFormat.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
- import '../NativeProxy-CsndagT7.js';
5
+ import '../NativeProxy-LMnx6HJm.js';
6
6
  import '@scandit/web-datacapture-barcode';
7
7
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
8
8
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -9,7 +9,7 @@ import './BarcodeField.js';
9
9
  import './LabelFieldDefinition.js';
10
10
  import './LabelFieldLocation.js';
11
11
  import './CustomText.js';
12
- import '../NativeProxy-CsndagT7.js';
12
+ import '../NativeProxy-LMnx6HJm.js';
13
13
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
14
14
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
15
15
  import '../djinni-types/sdcBarcodeData.js';
@@ -1,10 +1,10 @@
1
1
  import '@scandit/web-datacapture-core';
2
2
  import '@scandit/web-datacapture-core/build/js/private/Serializable';
3
3
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
4
- import '../NativeProxy-CsndagT7.js';
4
+ import '../NativeProxy-LMnx6HJm.js';
5
5
  import './CapturedLabel.js';
6
6
  import '../LabelCapture-DDlDP--7.js';
7
- export { L as LabelCaptureAdvancedOverlay } from '../LabelCaptureAdvancedOverlay-CQsy_KsL.js';
7
+ export { L as LabelCaptureAdvancedOverlay } from '../LabelCaptureAdvancedOverlay-Ce_nh3U3.js';
8
8
  import './LabelCaptureOverlayJSON.js';
9
9
  import './LabelField.js';
10
10
  import '@scandit/web-datacapture-barcode';
@@ -1,6 +1,6 @@
1
1
  import '@scandit/web-datacapture-core';
2
2
  import './CapturedLabel.js';
3
- export { a as LabelCaptureAdvancedOverlayListener } from '../LabelCaptureAdvancedOverlay-CQsy_KsL.js';
3
+ export { a as LabelCaptureAdvancedOverlayListener } from '../LabelCaptureAdvancedOverlay-Ce_nh3U3.js';
4
4
  import './LabelField.js';
5
5
  import '@scandit/web-datacapture-barcode';
6
6
  import './LabelFieldState.js';
@@ -8,7 +8,7 @@ import './LabelFieldType.js';
8
8
  import './LabelDateResult.js';
9
9
  import '@scandit/web-datacapture-core/build/js/private/Serializable';
10
10
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
11
- import '../NativeProxy-CsndagT7.js';
11
+ import '../NativeProxy-LMnx6HJm.js';
12
12
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
13
13
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
14
14
  import '../djinni-types/sdcBarcodeData.js';
@@ -4,9 +4,9 @@ import '@scandit/web-datacapture-core/build/js/private/Serializable';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
5
  import './CapturedLabel.js';
6
6
  import './LabelField.js';
7
- import '../NativeProxy-CsndagT7.js';
7
+ import '../NativeProxy-LMnx6HJm.js';
8
8
  import '../LabelCapture-DDlDP--7.js';
9
- export { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-4JorH1kZ.js';
9
+ export { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-C3cbNhm8.js';
10
10
  import './LabelCaptureOverlayJSON.js';
11
11
  import '@scandit/web-datacapture-barcode';
12
12
  import './LabelFieldState.js';
@@ -1,7 +1,7 @@
1
1
  import '@scandit/web-datacapture-core';
2
2
  import './CapturedLabel.js';
3
3
  import './LabelField.js';
4
- export { a as LabelCaptureBasicOverlayListener } from '../LabelCaptureBasicOverlay-4JorH1kZ.js';
4
+ export { a as LabelCaptureBasicOverlayListener } from '../LabelCaptureBasicOverlay-C3cbNhm8.js';
5
5
  import '@scandit/web-datacapture-barcode';
6
6
  import './LabelFieldState.js';
7
7
  import './LabelFieldType.js';
@@ -9,7 +9,7 @@ import './LabelDateResult.js';
9
9
  import '../djinni-types/sdcLabelData.js';
10
10
  import '@scandit/web-datacapture-core/build/js/private/Serializable';
11
11
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
12
- import '../NativeProxy-CsndagT7.js';
12
+ import '../NativeProxy-LMnx6HJm.js';
13
13
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
14
14
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
15
15
  import '../djinni-types/sdcBarcodeData.js';
@@ -15,7 +15,7 @@ import './BarcodeField.js';
15
15
  import './LabelFieldDefinition.js';
16
16
  import './LabelFieldLocation.js';
17
17
  import './CustomText.js';
18
- import '../NativeProxy-CsndagT7.js';
18
+ import '../NativeProxy-LMnx6HJm.js';
19
19
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
20
20
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
21
21
  import '../djinni-types/sdcBarcodeData.js';
@@ -1,4 +1,4 @@
1
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
1
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
2
2
  import '@scandit/web-datacapture-barcode';
3
3
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
4
4
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -7,7 +7,7 @@ import './BarcodeField.js';
7
7
  import './LabelFieldDefinition.js';
8
8
  import './LabelFieldLocation.js';
9
9
  import './CustomText.js';
10
- import '../NativeProxy-CsndagT7.js';
10
+ import '../NativeProxy-LMnx6HJm.js';
11
11
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
12
12
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
13
13
  import '../djinni-types/sdcBarcodeData.js';
@@ -15,7 +15,7 @@ import '@scandit/web-datacapture-barcode';
15
15
  import './BarcodeField.js';
16
16
  import './LabelFieldLocation.js';
17
17
  import '@scandit/web-datacapture-core';
18
- import '../NativeProxy-CsndagT7.js';
18
+ import '../NativeProxy-LMnx6HJm.js';
19
19
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
20
20
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
21
21
  import '../djinni-types/sdcBarcodeData.js';
@@ -1,5 +1,5 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
2
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
3
3
  import { LabelDateFormat } from './LabelDateFormat.js';
4
4
  import { TextField } from './TextField.js';
5
5
  import '@scandit/web-datacapture-barcode';
@@ -2,7 +2,7 @@ import { PackingDateText } from './PackingDateText.js';
2
2
  import { TextFieldBuilder } from './TextFieldBuilder.js';
3
3
  import { LabelDateFormat } from './LabelDateFormat.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
- import '../NativeProxy-CsndagT7.js';
5
+ import '../NativeProxy-LMnx6HJm.js';
6
6
  import '@scandit/web-datacapture-barcode';
7
7
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
8
8
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -1,5 +1,5 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
2
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
3
3
  import { TextField } from './TextField.js';
4
4
  import '@scandit/web-datacapture-barcode';
5
5
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
@@ -2,7 +2,7 @@ import { TextFieldBuilder } from './TextFieldBuilder.js';
2
2
  import { TotalPriceText } from './TotalPriceText.js';
3
3
  import './LabelFieldDefinitionBuilder.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
- import '../NativeProxy-CsndagT7.js';
5
+ import '../NativeProxy-LMnx6HJm.js';
6
6
  import '@scandit/web-datacapture-barcode';
7
7
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
8
8
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -1,5 +1,5 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
2
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
3
3
  import { TextField } from './TextField.js';
4
4
  import '@scandit/web-datacapture-barcode';
5
5
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
@@ -2,7 +2,7 @@ import { TextFieldBuilder } from './TextFieldBuilder.js';
2
2
  import { UnitPriceText } from './UnitPriceText.js';
3
3
  import './LabelFieldDefinitionBuilder.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
- import '../NativeProxy-CsndagT7.js';
5
+ import '../NativeProxy-LMnx6HJm.js';
6
6
  import '@scandit/web-datacapture-barcode';
7
7
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
8
8
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -1,5 +1,5 @@
1
1
  import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
2
- import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
2
+ import { N as NativeProxyHandle } from '../NativeProxy-LMnx6HJm.js';
3
3
  import { TextField } from './TextField.js';
4
4
  import '@scandit/web-datacapture-barcode';
5
5
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
@@ -2,7 +2,7 @@ import { TextFieldBuilder } from './TextFieldBuilder.js';
2
2
  import { WeightText } from './WeightText.js';
3
3
  import './LabelFieldDefinitionBuilder.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
5
- import '../NativeProxy-CsndagT7.js';
5
+ import '../NativeProxy-LMnx6HJm.js';
6
6
  import '@scandit/web-datacapture-barcode';
7
7
  import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
8
8
  import '../djinni-types/sdcBarcodeInternalSdkData.js';
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-JO7OMLH3.js';import {a as a$1}from'./chunk-VNO3A222.js';import {b as b$1}from'./chunk-DY7YMUCC.js';import {b as b$2}from'./chunk-VSEPEYHT.js';import {a as a$2}from'./chunk-ZRDTJCIB.js';import {d,c as c$1,b as b$3}from'./chunk-L3YJ62IW.js';import {a as a$3}from'./chunk-FINXT6JZ.js';import {unknownErrorToString}from'@scandit/web-datacapture-core/build/js/private/utils/unknownErrorToString.js';import {WorkerMain,DataCaptureEngine}from'@scandit/web-datacapture-core/build/js/worker/index.js';import {Color}from'@scandit/web-datacapture-core';var z=class extends o{constructor(){super(...arguments);this.handle={className:"CustomBarcode",id:0};}async create(e,t){let a=this.Module.CustomBarcode.create(e,t);return this.mapNativeImplementationToHandle(a)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async getSymbologies(e){return this.nativeImplementationFromHandle(e).getSymbologies()}async setSymbologies(e,t){throw new Error("This method must be implemented manually.")}async setLocation(e,t){this.nativeImplementationFromHandle(e).setLocation(b.nativeImplementationFromHandle(t));}async getDataTypePatterns(e){return this.nativeImplementationFromHandle(e).getDataTypePatterns()}async setDataTypePatterns(e,t){this.nativeImplementationFromHandle(e).setDataTypePatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},A=new z;var G=class extends o{constructor(){super(...arguments);this.handle={className:"CustomText",id:0};}async create(e){let t=this.Module.CustomText.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){this.nativeImplementationFromHandle(e).setLocation(b.nativeImplementationFromHandle(t));}async getDataTypePatterns(e){return this.nativeImplementationFromHandle(e).getDataTypePatterns()}async setDataTypePatterns(e,t){this.nativeImplementationFromHandle(e).setDataTypePatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},M=new G;var K=class extends o{constructor(){super(...arguments);this.handle={className:"ExpiryDateText",id:0};}async create(e){let t=this.Module.ExpiryDateText.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async asLabelFieldDefinition(e){return this.nativeImplementationFromHandle(e).asLabelFieldDefinition()}async setLabelDateFormat(e,t){this.nativeImplementationFromHandle(e).setLabelDateFormat(t);}async getLabelDateFormat(e){return this.nativeImplementationFromHandle(e).getLabelDateFormat()}async getLocation(e){return this.nativeImplementationFromHandle(e).getLocation()}async setLocation(e,t){this.nativeImplementationFromHandle(e).setLocation(t);}async getDataTypePatterns(e){return this.nativeImplementationFromHandle(e).getDataTypePatterns()}async setDataTypePatterns(e,t){this.nativeImplementationFromHandle(e).setDataTypePatterns(t);}async resetDataTypePatterns(e){this.nativeImplementationFromHandle(e).resetDataTypePatterns();}},B=new K;var $=class extends o{constructor(){super(...arguments);this.handle={className:"ImeiOneBarcode",id:0};}async create(e){let t=this.Module.ImeiOneBarcode.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getSymbologies(e){return this.nativeImplementationFromHandle(e).getSymbologies()}async setSymbologies(e,t){this.nativeImplementationFromHandle(e).setSymbologies(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},P=new $;var Q=class extends o{constructor(){super(...arguments);this.handle={className:"ImeiTwoBarcode",id:0};}async create(e){let t=this.Module.ImeiTwoBarcode.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getSymbologies(e){return this.nativeImplementationFromHandle(e).getSymbologies()}async setSymbologies(e,t){this.nativeImplementationFromHandle(e).setSymbologies(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},H=new Q;var q=class extends o{constructor(){super(...arguments);this.handle={className:"PackingDateText",id:0};}async create(e){let t=this.Module.PackingDateText.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}async setLabelDateFormat(e,t){throw new Error("setLabelDateFormat must be implemented manually.")}async getLabelDateFormat(e){throw new Error("getLabelDateFormat must be implemented manually.")}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async resetDataTypePatterns(e){throw new Error("resetDataTypePatterns must be implemented manually.")}},_=new q;var X=class extends o{constructor(){super(...arguments);this.handle={className:"PartNumberBarcode",id:0};}async create(e){let t=this.Module.PartNumberBarcode.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getSymbologies(e){return this.nativeImplementationFromHandle(e).getSymbologies()}async setSymbologies(e,t){this.nativeImplementationFromHandle(e).setSymbologies(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},N=new X;var Y=class extends o{constructor(){super(...arguments);this.handle={className:"SerialNumberBarcode",id:0};}async create(e){let t=this.Module.SerialNumberBarcode.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getSymbologies(e){return this.nativeImplementationFromHandle(e).getSymbologies()}async setSymbologies(e,t){this.nativeImplementationFromHandle(e).setSymbologies(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},g=new Y;var Z=class extends o{constructor(){super(...arguments);this.handle={className:"TotalPriceText",id:0};}async create(e){let t=this.Module.TotalPriceText.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},f=new Z;var ee=class extends o{constructor(){super(...arguments);this.handle={className:"UnitPriceText",id:0};}async create(e){let t=this.Module.UnitPriceText.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},w=new ee;var te=class extends o{constructor(){super(...arguments);this.handle={className:"WeightText",id:0};}async create(e){let t=this.Module.WeightText.create(e);return this.mapNativeImplementationToHandle(t)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){this.nativeImplementationFromHandle(e).setOptional(t);}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){this.nativeImplementationFromHandle(e).setPatterns(t);}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async asLabelFieldDefinition(e){throw new Error("This method must be implemented manually.")}},L=new te;var ae=class extends o{constructor(){super(...arguments);this.handle={className:"LabelFieldDefinition",id:0};this.concreteImplementationRegistry=new Map([["CustomBarcode",A],["CustomText",M],["ExpiryDateText",B],["ImeiOneBarcode",P],["ImeiTwoBarcode",H],["PackingDateText",_],["PartNumberBarcode",N],["SerialNumberBarcode",g],["TotalPriceText",f],["UnitPriceText",w],["WeightText",L]]);}nativeImplementationFromHandle(e){let t=this.concreteImplementationRegistry.get(e.className);if(!t)throw new Error("Handle doesn't point to a concrete implementation of LabelFieldDefinition.");return t.nativeImplementationFromHandle(e)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async isOptional(e){return this.nativeImplementationFromHandle(e).isOptional()}async setOptional(e,t){throw new Error("This method must be implemented manually.")}async getPatterns(e){return this.nativeImplementationFromHandle(e).getPatterns()}async setPatterns(e,t){throw new Error("This method must be implemented manually.")}async getHiddenProperties(e){throw new Error("This method must be implemented manually.")}async setHiddenProperties(e,t){throw new Error("This method must be implemented manually.")}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}},He=new ae;var ie=class extends o{constructor(){super(...arguments);this.handle={className:"LabelDefinition",id:0};}async create(e,t){let a=this.Module.LabelDefinition.create(e,t.map(n=>He.nativeImplementationFromHandle(n)));return this.mapNativeImplementationToHandle(a)}async getName(e){return this.nativeImplementationFromHandle(e).getName()}async getFieldDefinitions(e){throw new Error("This method must be implemented manually.")}async getHiddenProperties(e){return this.nativeImplementationFromHandle(e).getHiddenProperties()}async setHiddenProperties(e,t){this.nativeImplementationFromHandle(e).setHiddenProperties(t);}},E=new ie;var ne=r=>r.result!=null&&r.error==null,re=class extends o{constructor(){super(...arguments);this.handle={className:"LabelCaptureSettings",id:0};}async loadFromString(e){let t=this.Module.LabelCaptureSettings.loadFromString(e);if(!ne(t))throw new Error(t.error);let a=t.result;return this.mapNativeImplementationToHandle(a)}async createFromLabelDefinitions(e){let t=this.Module.LabelCaptureSettings.createFromLabelDefinitions(e.map(n=>E.nativeImplementationFromHandle(n)));if(!ne(t))throw new Error(t.error);let a=t.result;return this.mapNativeImplementationToHandle(a)}async create(e,t,a){let n=this.Module.LabelCaptureSettings.create(e.map(d=>E.nativeImplementationFromHandle(d)),t,a);if(!ne(n))throw new Error(n.error);let l=n.result;return this.mapNativeImplementationToHandle(l)}async setLocationSelection(e,t){this.nativeImplementationFromHandle(e).setLocationSelection(t);}async getLocationSelection(e){throw new Error("This method must be implemented manually.")}async getLicenseKey(e){return this.nativeImplementationFromHandle(e).getLicenseKey()}async setLicenseKey(e,t){this.nativeImplementationFromHandle(e).setLicenseKey(t);}async getLicensee(e){return this.nativeImplementationFromHandle(e).getLicensee()}async setLicensee(e,t){this.nativeImplementationFromHandle(e).setLicensee(t);}async getIntProperty(e,t){return this.nativeImplementationFromHandle(e).getIntProperty(t)}async setIntProperty(e,t,a){this.nativeImplementationFromHandle(e).setIntProperty(t,a);}async getBlueprintJson(e){throw new Error("This method must be implemented manually.")}},h=new re;var oe=class extends o{constructor(){super(...arguments);this.handle={className:"LabelCapture",id:0};}async create(e,t){let a=h.nativeImplementationFromHandle(t),n=this.Module.LabelCapture.create(e,a);return this.mapNativeImplementationToHandle(n)}async isEnabled(e){return this.nativeImplementationFromHandle(e).isEnabled()}async setEnabled(e,t){this.nativeImplementationFromHandle(e).setEnabled(t);}async isAttachedToContext(e){return this.nativeImplementationFromHandle(e).isAttachedToContext()}async addListenerAsync(e,t,a){this.nativeImplementationFromHandle(e).addListenerAsync(t,a);}async removeListenerAsync(e,t){this.nativeImplementationFromHandle(e).removeListenerAsync(t);}async getSession(e){throw new Error("This method must be implemented manually.")}async shouldUseEngineDrivenAnimations(e){return this.nativeImplementationFromHandle(e).shouldUseEngineDrivenAnimations()}async applySettingsWrapped(e,t){let a$1=this.nativeImplementationFromHandle(e).applySettingsWrapped(t);await a(a$1,"Failed to apply settings");}async getContext(e){return this.nativeImplementationFromHandle(e).getContext()}async registerExternalOcrBackend(e,t){this.nativeImplementationFromHandle(e).registerExternalOcrBackend(t);}},c=new oe;var le=class extends o{constructor(){super(...arguments);this.handle={className:"LabelCaptureAdvancedOverlay",id:0};}async setShouldShowScanAreaGuides(e,t){return this.nativeImplementationFromHandle(e).setShouldShowScanAreaGuides(t)}async getShouldShowScanAreaGuides(e){return this.nativeImplementationFromHandle(e).getShouldShowScanAreaGuides()}async requireArFeatureAvailabilityFromContext(e){return this.nativeImplementationFromHandle(e).requireArFeatureAvailabilityFromContext()}create(e){let t=c.nativeImplementationFromHandle(e),a=this.Module.LabelCaptureAdvancedOverlay.create(t);return this.mapNativeImplementationToHandle(a)}},C=new le;var se=class extends o{constructor(){super(...arguments);this.handle={className:"LabelCaptureBasicOverlay",id:0};}async create(e){let t=c.nativeImplementationFromHandle(e),a=this.Module.LabelCaptureBasicOverlay.create(t);return this.mapNativeImplementationToHandle(a)}async setDefaultFieldBrush(e,t,a){this.nativeImplementationFromHandle(e).setDefaultFieldBrush(t,a);}async getDefaultFieldBrush(e,t){return this.nativeImplementationFromHandle(e).getDefaultFieldBrush(t)}async setDefaultLabelBrush(e,t){this.nativeImplementationFromHandle(e).setDefaultLabelBrush(t);}async getDefaultLabelBrush(e){return this.nativeImplementationFromHandle(e).getDefaultLabelBrush()}async setBrushForField(e,t,a,n){this.nativeImplementationFromHandle(e).setBrushForField(t,a,n);}async setBrushForLabel(e,t,a){this.nativeImplementationFromHandle(e).setBrushForLabel(t,a);}async setListener(e,t){this.nativeImplementationFromHandle(e).setListener(t);}async getListener(e){return this.nativeImplementationFromHandle(e).getListener()}async setShouldShowScanAreaGuides(e,t){this.nativeImplementationFromHandle(e).setShouldShowScanAreaGuides(t);}async getShouldShowScanAreaGuides(e){return this.nativeImplementationFromHandle(e).getShouldShowScanAreaGuides()}async getViewfinder(e){return this.nativeImplementationFromHandle(e).getViewfinder()}async setViewfinder(e,t){this.nativeImplementationFromHandle(e).setViewfinder(t);}},m=new se;var de=class extends o{constructor(){super(...arguments);this.handle={className:"LabelCaptureOverlayHelper",id:0};}addBasicOverlay(e,t){this.Module.LabelCaptureOverlayHelper.addBasicOverlay(e,t);}removeBasicOverlay(e,t){this.Module.LabelCaptureOverlayHelper.removeBasicOverlay(e,t);}addAdvancedOverlay(e,t){this.Module.LabelCaptureOverlayHelper.addAdvancedOverlay(e,t);}removeAdvancedOverlay(e,t){this.Module.LabelCaptureOverlayHelper.removeAdvancedOverlay(e,t);}},W=new de;var R=class extends DataCaptureEngine{constructor(i,e){super(i,e);}getModeDeserializers(){return super.getModeDeserializers()}getWasmSideModuleFileName(){return ""}getWasmCoreFileName(i,e){return e?i?"scandit-datacapture-sdk-label-simd-pthreads.wasm":"scandit-datacapture-sdk-label-pthreads.wasm":i?"scandit-datacapture-sdk-label-simd.wasm":"scandit-datacapture-sdk-label.wasm"}getWasmCoreExpectedHash(i,e){return e?i?"9ee282c8f24b344da11fe7d0eadc928475808051ab317c3e71be0075d421c4fc":"a487c0b5588a2e8c91c09b0d9f91b936ace39a30b5ca275057ef158655f3a06e":i?"afd2309e041ff144bf21e4c30fc0117ffc92b0e06d6fa348971bfd39ade7cc13":"9ab7e675c11abdc53e47a535931708697fba5d7aa761f0514bbe9edf53263846"}onBeforeUpdateContextHook(i){var e;return ((e=i.context.view)==null?void 0:e.overlays)!=null&&(i.context.view.overlays=void 0),i}addNativeOverlay(i){if(!this.view)throw new Error("View is not set");i.data.overlayHandle.className==="LabelCaptureBasicOverlay"?W.addBasicOverlay(m.nativeImplementationFromHandle(i.data.overlayHandle),this.view):i.data.overlayHandle.className==="LabelCaptureAdvancedOverlay"&&W.addAdvancedOverlay(C.nativeImplementationFromHandle(i.data.overlayHandle),this.view);}removeNativeOverlay(i){if(!this.view)throw new Error("View is not set");i.data.overlayHandle.className==="LabelCaptureBasicOverlay"?W.removeBasicOverlay(m.nativeImplementationFromHandle(i.data.overlayHandle),this.view):i.data.overlayHandle.className==="LabelCaptureAdvancedOverlay"&&W.removeAdvancedOverlay(C.nativeImplementationFromHandle(i.data.overlayHandle),this.view);}getWasmMetadata(){return a$3}};var me=class extends o{constructor(){super(...arguments);this.handle={className:"AimerViewfinder",id:0};}create(){let e=this.Module.AimerViewfinder.create();return this.mapNativeImplementationToHandle(e)}async setFrameColor(e,t){this.nativeImplementationFromHandle(e).setFrameColor(t);}async getFrameColor(e){return this.nativeImplementationFromHandle(e).getFrameColor()}async setDotColor(e,t){this.nativeImplementationFromHandle(e).setDotColor(t);}async getDotColor(e){return this.nativeImplementationFromHandle(e).getDotColor()}async getDotColorDefault(){return this.Module.AimerViewfinder.getDotColorDefault()}async getFrameColorDefault(){return this.Module.AimerViewfinder.getFrameColorDefault()}},k=new me;var pe=class extends o{constructor(){super(...arguments);this.handle={className:"NoViewfinder",id:0};}create(){let e=this.Module.NoViewfinder.create();return this.mapNativeImplementationToHandle(e)}},ye=new pe;var ce=class extends o{constructor(){super(...arguments);this.handle={className:"RectangularViewfinder",id:0};}create(){let e=this.Module.RectangularViewfinder.create();return this.mapNativeImplementationToHandle(e)}createForStyles(e,t){let a=this.Module.RectangularViewfinder.createForStyles(e,t);return this.mapNativeImplementationToHandle(a)}async setWidthAndHeight(e,t,a){this.nativeImplementationFromHandle(e).setWidthAndHeight(t,a);}async setWidthAndAspectRatio(e,t,a){this.nativeImplementationFromHandle(e).setWidthAndAspectRatio(t,a);}async setHeightAndAspectRatio(e,t,a){this.nativeImplementationFromHandle(e).setHeightAndAspectRatio(t,a);}async setShorterDimensionAndAspectRatio(e,t,a){this.nativeImplementationFromHandle(e).setShorterDimensionAndAspectRatio(t,a);}async getSizeWithUnitAndAspect(e){return this.nativeImplementationFromHandle(e).getSizeWithUnitAndAspect()}async setColor(e,t){this.nativeImplementationFromHandle(e).setColor(t);}async getColor(e){return this.nativeImplementationFromHandle(e).getColor()}async setDisabledColor(e,t){this.nativeImplementationFromHandle(e).setDisabledColor(t);}async getDisabledColor(e){return this.nativeImplementationFromHandle(e).getDisabledColor()}async getStyle(e){return this.nativeImplementationFromHandle(e).getStyle()}async setAnimation(e,t){this.nativeImplementationFromHandle(e).setAnimation(t);}async getAnimation(e){return this.nativeImplementationFromHandle(e).getAnimation()}async setDimming(e,t){this.nativeImplementationFromHandle(e).setDimming(t);}async getDimming(e){return this.nativeImplementationFromHandle(e).getDimming()}async setDisabledDimming(e,t){this.nativeImplementationFromHandle(e).setDisabledDimming(t);}async getDisabledDimming(e){return this.nativeImplementationFromHandle(e).getDisabledDimming()}async getLineStyle(e){return this.nativeImplementationFromHandle(e).getLineStyle()}},u=new ce;async function Ne(r){if(r.type==="rectangular"){let i=u.createForStyles(r.style==="rounded"?1:0,r.lineStyle==="light"?1:0),e=[];return r.size.width&&r.size.height?e.push(u.setWidthAndHeight(i,b$2(r.size.width),b$2(r.size.height))):r.size.width&&r.size.aspect?e.push(u.setWidthAndAspectRatio(i,b$2(r.size.width),r.size.aspect)):r.size.height&&r.size.aspect&&e.push(u.setHeightAndAspectRatio(i,b$2(r.size.height),r.size.aspect)),e.push(u.setColor(i,b$3(Color.fromJSON(r.color)))),e.push(u.setDisabledColor(i,b$3(Color.fromJSON(r.disabledColor)))),e.push(u.setDimming(i,r.dimming)),e.push(u.setAnimation(i,{isLooping(){var t,a;return (a=(t=r.animation)==null?void 0:t.looping)!=null?a:false},toJson(){return JSON.stringify({looping:this.isLooping()})}})),await Promise.all(e),u.nativeImplementationFromHandle(i)}if(r.type==="aimer"){let i=k.create(),e=[];return e.push(k.setFrameColor(i,b$3(Color.fromJSON(r.frameColor)))),e.push(k.setDotColor(i,b$3(Color.fromJSON(r.dotColor)))),await Promise.all(e),k.nativeImplementationFromHandle(i)}return ye.nativeImplementationFromHandle(ye.create())}var ue=class extends o{constructor(){super(...arguments);this.handle={className:"BarcodeField",id:0};}async defaultSymbologies(e){return this.Module.BarcodeField.defaultSymbologies(e)}async getSymbologies(e){throw new Error("This method must be implemented manually.")}async setSymbologies(e,t){throw new Error("This method must be implemented manually.")}async getName(e){throw new Error("This method must be implemented manually.")}async isOptional(e){throw new Error("This method must be implemented manually.")}async setOptional(e,t){throw new Error("This method must be implemented manually.")}async getPatterns(e){throw new Error("This method must be implemented manually.")}async setPatterns(e,t){throw new Error("This method must be implemented manually.")}async getDataTypePatterns(e){throw new Error("This method must be implemented manually.")}async setDataTypePatterns(e,t){throw new Error("This method must be implemented manually.")}async getHiddenProperties(e){throw new Error("This method must be implemented manually.")}async setHiddenProperties(e,t){throw new Error("This method must be implemented manually.")}async getLocation(e){throw new Error("This method must be implemented manually.")}async setLocation(e,t){throw new Error("This method must be implemented manually.")}},I=new ue;var ve=class extends o{constructor(){super(...arguments);this.handle={className:"LabelCaptureHelper",id:0};}async addLabelCaptureToContext(e,t){this.Module.LabelCaptureHelper.addLabelCaptureToContext(e,t);}},ge=new ve;var J=class extends WorkerMain{constructor(e,t){super(e,t);this.overlayListenerAdded=false;this.labelBrushMap=new Map;this.fieldBrushMap=new Map;this.dataCaptureInstance=new R(t,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),this.labelCaptureBasicOverlayListener={onLabelTapped:(a,n)=>{this.postCallbackMessage({type:"labelCaptureBasicOverlayOnLabelTapped",payload:{labelJSON:JSON.parse(n.toJson())}});},brushForField:(a,n,l)=>{this.postCallbackMessage({type:"labelCaptureBasicOverlayBrushForField",payload:{fieldJSON:JSON.parse(n.toJson()),labelJSON:JSON.parse(l.toJson())}});let d=this.getFieldIdentifier(l,n);return this.fieldBrushMap.get(d)},brushForLabel:(a,n)=>{this.postCallbackMessage({type:"labelCaptureBasicOverlayBrushForLabel",payload:{labelJSON:JSON.parse(n.toJson())}});let l=this.getLabelIdentifier(n);return this.labelBrushMap.get(l)}};}get Module(){return this.dataCaptureInstance.Module}async respondWith(e,t,a){let n=null,l;try{l=a(),l instanceof Promise&&(l=await l);}catch(p){l=void 0,n=unknownErrorToString(p);}let d={type:"workerTaskId",command:e,id:t,payload:this.hasPayload(l)?l.payload:void 0};n!=null&&(d.error=n),this.postMessage(d,this.hasTransferables(l)?l.transferables:[]);}postCallbackMessage(e,t){this.postMessage(e,t);}onMessage(e){switch(e.data.command){case "labelCaptureForContext":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await c.create(this.dataCaptureInstance.context,t.payload.settingsHandle);return await ge.addLabelCaptureToContext(c.nativeImplementationFromHandle(a),this.dataCaptureInstance.context),{payload:a}}),true}case "labelCaptureIsEnabled":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await c.isEnabled(t.payload.labelCaptureHandle)})),true}case "labelCaptureSetEnabled":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await c.setEnabled(t.payload.labelCaptureHandle,t.payload.enabled);}),true}case "labelCaptureApplySettings":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await c.applySettingsWrapped(t.payload.labelCaptureHandle,h.nativeImplementationFromHandle(t.payload.settingsHandle));}),true}case "labelCaptureAddListener":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await c.nativeImplementationFromHandle(t.payload.labelCaptureHandle).addListenerAsync(this,1);}),true}case "labelCaptureRemoveListener":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await c.nativeImplementationFromHandle(t.payload.labelCaptureHandle).removeListenerAsync(this);}),true}case "labelCaptureBuildLabelCaptureSettings":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let{hiddenProperties:a,labelDefinitionHandles:n,labelProperties:l}=t.payload;return {payload:await h.create(n,JSON.stringify(a),l?JSON.stringify(l):"")}}),true}case "labelCaptureBuildLabelDefinition":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await E.create(t.payload.name,t.payload.fieldDefinitionHandles)})),true}case "labelCaptureBuildCustomBarcode":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await A.create(t.payload.name,await I.defaultSymbologies(t.payload.symbologies.map(l=>a$2(l)))),n=A.nativeImplementationFromHandle(a);if(n.setOptional(t.payload.isOptional),t.payload.patterns.length>0&&n.setPatterns(t.payload.patterns),t.payload.locationHandle){let l=b.nativeImplementationFromHandle(t.payload.locationHandle);n.setLocation(l);}return t.payload.dataTypePatterns.length>0&&n.setDataTypePatterns(t.payload.dataTypePatterns),Object.keys(t.payload.hiddenProperties).length>0&&n.setHiddenProperties(JSON.stringify(t.payload.hiddenProperties)),{payload:a}}),true}case "labelCaptureBuildCustomText":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await M.create(t.payload.name),n=M.nativeImplementationFromHandle(a);if(n.setOptional(t.payload.isOptional),t.payload.patterns.length>0&&n.setPatterns(t.payload.patterns),t.payload.locationHandle){let l=b.nativeImplementationFromHandle(t.payload.locationHandle);n.setLocation(l);}return t.payload.dataTypePatterns.length>0&&n.setDataTypePatterns(t.payload.dataTypePatterns),Object.keys(t.payload.hiddenProperties).length>0&&n.setHiddenProperties(JSON.stringify(t.payload.hiddenProperties)),{payload:a}}),true}case "labelCaptureBuildExpiryDateText":{let{data:t}=e,{name:a,isOptional:n,patterns:l,labelDateFormat:d,hiddenProperties:p,dataTypePatterns:v,shouldResetDataTypePatterns:j}=t.payload;return this.respondWith(t.command,t.id,async()=>{let S=await B.create(a),y=B.nativeImplementationFromHandle(S);return y.setOptional(n),d&&y.setLabelDateFormat(d),l.length>0&&y.setPatterns(l),j?y.resetDataTypePatterns():v&&v.length>0&&y.setDataTypePatterns(v),Object.keys(p).length>0&&y.setHiddenProperties(JSON.stringify(p)),{payload:S}}),true}case "labelCaptureBuildImeiOneBarcode":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await P.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await P.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await P.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await P.setPatterns(a,t.payload.patterns),await P.setSymbologies(a,await I.defaultSymbologies(t.payload.symbologies.map(n=>a$2(n)))),{payload:a}}),true}case "labelCaptureBuildImeiTwoBarcode":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await H.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await H.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await H.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await H.setPatterns(a,t.payload.patterns),await H.setSymbologies(a,await I.defaultSymbologies(t.payload.symbologies.map(n=>a$2(n)))),{payload:a}}),true}case "labelCaptureBuildPackingDateText":{let{data:t}=e,{name:a,isOptional:n,patterns:l,labelDateFormat:d,hiddenProperties:p,dataTypePatterns:v,shouldResetDataTypePatterns:j}=t.payload;return this.respondWith(t.command,t.id,async()=>{let S=await _.create(a),y=_.nativeImplementationFromHandle(S);return y.setOptional(n),d&&y.setLabelDateFormat(d),l.length>0&&y.setPatterns(l),j?y.resetDataTypePatterns():v&&v.length>0&&y.setDataTypePatterns(v),Object.keys(p).length>0&&y.setHiddenProperties(JSON.stringify(p)),{payload:S}}),true}case "labelCaptureBuildPartNumberBarcode":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await N.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await N.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await N.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await N.setPatterns(a,t.payload.patterns),await N.setSymbologies(a,await I.defaultSymbologies(t.payload.symbologies.map(n=>a$2(n)))),{payload:a}}),true}case "labelCaptureBuildSerialNumberBarcode":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await g.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await g.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await g.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await g.setPatterns(a,t.payload.patterns),await g.setSymbologies(a,await I.defaultSymbologies(t.payload.symbologies.map(n=>a$2(n)))),{payload:a}}),true}case "labelCaptureBuildTotalPriceText":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await f.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await f.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await f.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await f.setPatterns(a,t.payload.patterns),{payload:a}}),true}case "labelCaptureBuildUnitPriceText":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await w.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await w.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await w.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await w.setPatterns(a,t.payload.patterns),{payload:a}}),true}case "labelCaptureBuildWeightText":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await L.create(t.payload.name);return Object.keys(t.payload.hiddenProperties).length>0&&await L.setHiddenProperties(a,JSON.stringify(t.payload.hiddenProperties)),await L.setOptional(a,t.payload.isOptional),t.payload.patterns.length>0&&await L.setPatterns(a,t.payload.patterns),{payload:a}}),true}case "labelCaptureSettingsGetLocationSelection":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let n=await h.nativeImplementationFromHandle(t.payload.settingsHandle).getLocationSelection();return {payload:n?JSON.parse(n.toJson()):void 0}}),true}case "labelCaptureSettingsSetLocationSelection":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{if(t.payload.locationSelection.type==="rectangular"){let a=t.payload.locationSelection,n=this.Module.RectangularLocationSelection.create();if(a.size.width&&a.size.aspect){let d=b$1(a.size.width);n.setWidthAndAspectRatio(d,a.size.aspect);}if(a.size.height&&a.size.aspect){let d=b$1(a.size.height);n.setHeightAndAspectRatio(d,a.size.aspect);}if(a.size.width&&a.size.height){let d=b$1(a.size.width),p=b$1(a.size.height);n.setWidthAndHeight(d,p);}h.nativeImplementationFromHandle(t.payload.settingsHandle).setLocationSelection(n);}}),true}case "labelCaptureSettingsGetProperty":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=h.nativeImplementationFromHandle(t.payload.settingsHandle);return {payload:(()=>{switch(t.payload.key){case "licenseKey":return a.getLicenseKey();case "licensee":return a.getLicensee();default:return a.getIntProperty(t.payload.key)}})()}}),true}case "labelCaptureSettingsSetProperty":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=h.nativeImplementationFromHandle(t.payload.settingsHandle);switch(t.payload.key){case "licenseKey":typeof t.payload.value=="string"&&await a.setLicenseKey(t.payload.value);break;case "licensee":typeof t.payload.value=="string"&&await a.setLicensee(t.payload.value);break;default:typeof t.payload.value=="number"&&Number.isInteger(t.payload.value)&&await a.setIntProperty(t.payload.key,t.payload.value);break}}),true}case "labelCaptureBuildLabelFieldLocation":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a;if(t.payload.rect)a=await b.createWithRect(t.payload.rect);else if(t.payload.locationType)a=await b.createWithType(a$1(t.payload.locationType));else throw new Error("Cannot build a LabelFieldLocation without specifying a rect or locationType");return {payload:a}}),true}case "labelCaptureBasicOverlayForLabelCapture":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await m.create(t.payload.labelCaptureHandle)})),true}case "labelCaptureBasicOverlaySetDefaultFieldBrush":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{m.setDefaultFieldBrush(t.payload.labelCaptureBasicOverlayHandle,t.payload.labelFieldState,t.payload.brush?d(t.payload.brush):void 0);}),true}case "labelCaptureBasicOverlayGetDefaultFieldBrush":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await m.getDefaultFieldBrush(t.payload.labelCaptureBasicOverlayHandle,t.payload.labelFieldState);return {payload:a?c$1(a):void 0}}),true}case "labelCaptureBasicOverlaySetDefaultLabelBrush":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{m.setDefaultLabelBrush(t.payload.labelCaptureBasicOverlayHandle,t.payload.brush?d(t.payload.brush):void 0);}),true}case "labelCaptureBasicOverlayGetDefaultLabelBrush":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await m.getDefaultLabelBrush(t.payload.labelCaptureBasicOverlayHandle);return {payload:a?c$1(a):void 0}}),true}case "labelCaptureBasicOverlaySetBrushForField":{let{data:t}=e,{brush:a,fieldJSON:n,labelCaptureBasicOverlayHandle:l,labelJSON:d$1}=t.payload;return this.respondWith(t.command,t.id,async()=>{if(this.overlayListenerAdded){let p=this.getFieldIdentifierFromJSON(d$1,n);if(a){let v=d(a);this.fieldBrushMap.set(p,v);}else this.fieldBrushMap.delete(p);return}await m.setBrushForField(l,a?d(a):void 0,n,d$1);}),true}case "labelCaptureBasicOverlaySetBrushForLabel":{let{data:t}=e,{brush:a,labelCaptureBasicOverlayHandle:n,labelJSON:l}=t.payload;return this.respondWith(t.command,t.id,async()=>{if(this.overlayListenerAdded){let d$1=this.getLabelIdentifierFromJSON(l);if(a){let p=d(a);this.labelBrushMap.set(d$1,p);}else this.labelBrushMap.delete(d$1);return}await m.setBrushForLabel(n,a?d(a):void 0,l);}),true}case "labelCaptureBasicOverlaySetListener":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await m.setListener(t.payload.labelCaptureBasicOverlayHandle,this.labelCaptureBasicOverlayListener),this.overlayListenerAdded=true;}),true}case "labelCaptureBasicOverlaySetShouldShowScanAreaGuides":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await m.setShouldShowScanAreaGuides(t.payload.labelCaptureBasicOverlayHandle,t.payload.show);}),true}case "labelCaptureBasicOverlayGetShouldShowScanAreaGuides":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await m.getShouldShowScanAreaGuides(t.payload.labelCaptureBasicOverlayHandle)})),true}case "labelCaptureBasicOverlayGetViewfinder":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await m.getViewfinder(t.payload.labelCaptureBasicOverlayHandle)})),true}case "labelCaptureBasicOverlayUpdateViewfinder":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{let a=await Ne(t.payload.viewfinderJSON);await m.setViewfinder(t.payload.labelCaptureBasicOverlayHandle,a);}),true}case "addNativeOverlay":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{this.dataCaptureInstance.addNativeOverlay(e);}),true}case "removeNativeOverlay":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{this.dataCaptureInstance.removeNativeOverlay(e);}),true}case "labelCaptureAdvancedOverlayForLabelCapture":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await C.create(t.payload.labelCaptureHandle)})),true}case "labelCaptureAdvancedOverlaySetShouldShowScanAreaGuides":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>{await C.setShouldShowScanAreaGuides(t.payload.labelCaptureAdvancedOverlayHandle,t.payload.show);}),true}case "labelCaptureAdvancedOverlayGetShouldShowScanAreaGuides":{let{data:t}=e;return this.respondWith(t.command,t.id,async()=>({payload:await C.getShouldShowScanAreaGuides(t.payload.labelCaptureAdvancedOverlayHandle)})),true}default:return super.onMessage(e)}}onObservationStarted(){this.postCallbackMessage({type:"labelCaptureOnObservationStarted"});}onObservationStopped(){this.postCallbackMessage({type:"labelCaptureOnObservationStopped"});}onSessionUpdated(e,t,a){this.postCallbackMessage({type:"labelCaptureOnSessionUpdated",payload:{session:JSON.parse(t.toJson()),data:this.dataCaptureInstance.convertToLoadableFrameData(a)}}),a.delete();}getFieldIdentifier(e,t){var a;return `${e.getTrackingId()}-${t.getName()}-${(a=t.getText())!=null?a:""}`}getFieldIdentifierFromJSON(e,t){var a;return `${e.trackingId}-${t.name}-${(a=t.text)!=null?a:""}`}getLabelIdentifier(e){return e.getTrackingId()}getLabelIdentifierFromJSON(e){return e.trackingId}};var xe=new J(globalThis,{get:()=>globalThis.Module,set:r=>{globalThis.Module=r;}});function qa(r){}var o=class{constructor(){this.handleToNativeImplementationMap=new Map;this.nativeImplementationToHandleMap=new WeakMap;}get Module(){return xe.Module}mapNativeImplementationToHandle(i){this.handleToNativeImplementationMap.set(this.handle.id,i),this.nativeImplementationToHandleMap.set(i,this.handle);let e={...this.handle};return this.handle={...e,id:e.id+1},e}nativeImplementationFromHandle(i){let e=this.handleToNativeImplementationMap.get(i.id);if(!e)throw new Error("Invalid handle.");return e}handleFromNativeImplementation(i){let e=this.nativeImplementationToHandleMap.get(i);if(e==null)throw new Error("Invalid native implementation.");return e}};var be=class extends o{constructor(){super(...arguments);this.handle={className:"LabelFieldLocation",id:0};}async createWithType(e){let t=this.Module.LabelFieldLocation.createWithType(e);return this.mapNativeImplementationToHandle(t)}async createWithRect(e){let t=this.Module.LabelFieldLocation.createWithRect(e);return this.mapNativeImplementationToHandle(t)}async getLabelFieldLocationType(e){throw new Error("This method must be implemented manually.")}async getRect(e){throw new Error("This method must be implemented manually.")}},b=new be;export{qa as A,o as B,k as C,ye as D,u as E,Ne as F,b as a,A as b,M as c,B as d,P as e,H as f,_ as g,N as h,g as i,f as j,w as k,L as l,He as m,E as n,h as o,c as p,le as q,C as r,se as s,m as t,W as u,R as v,I as w,ge as x,J as y,xe as z};
@@ -0,0 +1 @@
1
+ var c={"scandit-datacapture-sdk-label-pthreads.wasm":{bytes:7612472},"scandit-datacapture-sdk-label-simd-pthreads.wasm":{bytes:7523413},"scandit-datacapture-sdk-label-simd.wasm":{bytes:7404371},"scandit-datacapture-sdk-label.wasm":{bytes:7493906}};export{c as a};