@scandit/web-datacapture-barcode 7.2.0 → 7.3.0-beta.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 (347) hide show
  1. package/build/js/ArucoDictionary.d.ts +20 -0
  2. package/build/js/ArucoDictionary.js +1 -0
  3. package/build/js/ArucoDictionaryPreset.d.ts +11 -0
  4. package/build/js/ArucoDictionaryPreset.js +1 -0
  5. package/build/js/ArucoMarker.d.ts +16 -0
  6. package/build/js/ArucoMarker.js +1 -0
  7. package/build/js/Barcode.d.ts +5 -4
  8. package/build/js/Barcode.js +1 -1
  9. package/build/js/BarcodeAr-02zxFUGP.d.ts +47 -0
  10. package/build/js/{BarcodeBatchMode-NmloM1Y4.d.ts → BarcodeArMode-BgcsdSqd.d.ts} +27 -27
  11. package/build/js/{BarcodeBatch-Byl-P99I.d.ts → BarcodeBatch-BEVGY-bY.d.ts} +2 -2
  12. package/build/js/BarcodeBatch.d.ts +5 -1
  13. package/build/js/BarcodeBatch.js +1 -1
  14. package/build/js/BarcodeBatchAdvancedOverlay.d.ts +6 -2
  15. package/build/js/BarcodeBatchBasicOverlay.d.ts +5 -1
  16. package/build/js/BarcodeBatchBasicOverlay.js +1 -1
  17. package/build/js/BarcodeBatchSession.d.ts +1 -1
  18. package/build/js/BarcodeBatchSession.js +1 -1
  19. package/build/js/BarcodeBatchSettings.d.ts +7 -0
  20. package/build/js/BarcodeBatchSettings.js +1 -1
  21. package/build/js/BarcodeCapture.d.ts +7 -3
  22. package/build/js/BarcodeCapture.js +1 -1
  23. package/build/js/BarcodeCaptureOverlay.d.ts +4 -0
  24. package/build/js/BarcodeCaptureOverlay.js +1 -1
  25. package/build/js/BarcodeCaptureSession.d.ts +2 -2
  26. package/build/js/BarcodeCaptureSession.js +1 -1
  27. package/build/js/BarcodeCaptureSettings.d.ts +7 -0
  28. package/build/js/BarcodeCaptureSettings.js +1 -1
  29. package/build/js/Defaults.js +1 -1
  30. package/build/js/PrivateBarcodeBatchAdvancedOverlayListener.d.ts +5 -1
  31. package/build/js/PrivateBarcodeBatchBasicOverlayListener.d.ts +5 -1
  32. package/build/js/PrivateBarcodeBatchBasicOverlayListener.js +1 -1
  33. package/build/js/{SparkScanView-BHTEutX-.d.ts → SparkScanView-CInaxmG9.d.ts} +4 -0
  34. package/build/js/SymbologyDescription.d.ts +1 -1
  35. package/build/js/TrackedBarcode.d.ts +2 -2
  36. package/build/js/TrackedBarcode.js +1 -1
  37. package/build/js/TrackedBarcodeView.d.ts +1 -1
  38. package/build/js/{check/BarcodeCheck.d.ts → ar/BarcodeAr.d.ts} +4 -4
  39. package/build/js/ar/BarcodeAr.js +1 -0
  40. package/build/js/ar/BarcodeArAnnotationProvider.d.ts +13 -0
  41. package/build/js/ar/BarcodeArFeedback.d.ts +11 -0
  42. package/build/js/ar/BarcodeArFeedback.js +1 -0
  43. package/build/js/{check/BarcodeCheckHighlightProvider.d.ts → ar/BarcodeArHighlightProvider.d.ts} +5 -5
  44. package/build/js/{check/BarcodeCheckListener.d.ts → ar/BarcodeArListener.d.ts} +4 -4
  45. package/build/js/ar/BarcodeArPresenter.d.ts +43 -0
  46. package/build/js/ar/BarcodeArPresenter.js +1 -0
  47. package/build/js/{check/BarcodeCheckSession.d.ts → ar/BarcodeArSession.d.ts} +4 -4
  48. package/build/js/ar/BarcodeArSession.js +1 -0
  49. package/build/js/{check/BarcodeCheckSettings.d.ts → ar/BarcodeArSettings.d.ts} +4 -4
  50. package/build/js/ar/BarcodeArSettings.js +1 -0
  51. package/build/js/{check/BarcodeCheckView.d.ts → ar/BarcodeArView.d.ts} +22 -34
  52. package/build/js/ar/BarcodeArView.js +1 -0
  53. package/build/js/{check/BarcodeCheckViewSettings.d.ts → ar/BarcodeArViewSettings.d.ts} +2 -2
  54. package/build/js/ar/BarcodeArViewSettings.js +1 -0
  55. package/build/js/{check → ar}/Defaults.js +1 -1
  56. package/build/js/ar/hashedId.js +1 -0
  57. package/build/js/{check/ui/atoms/BarcodeCheckInfoAnnotationBodyComponent.d.ts → ar/ui/atoms/BarcodeArInfoAnnotationBodyComponent.d.ts} +5 -5
  58. package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationBodyComponent.js +1 -0
  59. package/build/js/{check/ui/atoms/BarcodeCheckInfoAnnotationFooter.d.ts → ar/ui/atoms/BarcodeArInfoAnnotationFooter.d.ts} +5 -5
  60. package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationFooter.js +1 -0
  61. package/build/js/{check/ui/atoms/BarcodeCheckInfoAnnotationHeader.d.ts → ar/ui/atoms/BarcodeArInfoAnnotationHeader.d.ts} +5 -5
  62. package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationHeader.js +1 -0
  63. package/build/js/ar/ui/atoms/private/Backdrop.js +1 -0
  64. package/build/js/{check/ui/atoms/private/BarcodeCheckInfoAnnotationHeaderFooterUtils.js → ar/ui/atoms/private/BarcodeArInfoAnnotationHeaderFooterUtils.js} +1 -1
  65. package/build/js/{check → ar}/ui/atoms/private/BarcodeStatusIconContainer.js +1 -1
  66. package/build/js/ar/ui/atoms/private/CssArrows.js +1 -0
  67. package/build/js/ar/ui/molecules/private/CameraSwitchButton.js +1 -0
  68. package/build/js/ar/ui/molecules/private/ZoomSwitchButton.js +1 -0
  69. package/build/js/ar/ui/organisms/BarcodeArAnnotation.d.ts +29 -0
  70. package/build/js/ar/ui/organisms/BarcodeArAnnotation.js +1 -0
  71. package/build/js/{check/ui/organisms/BarcodeCheckCircleHighlight.d.ts → ar/ui/organisms/BarcodeArCircleHighlight.d.ts} +9 -10
  72. package/build/js/ar/ui/organisms/BarcodeArCircleHighlight.js +1 -0
  73. package/build/js/{check/ui/organisms/BarcodeCheckHighlight.d.ts → ar/ui/organisms/BarcodeArHighlight.d.ts} +7 -7
  74. package/build/js/ar/ui/organisms/BarcodeArInfoAnnotation.d.ts +81 -0
  75. package/build/js/ar/ui/organisms/BarcodeArInfoAnnotation.js +1 -0
  76. package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotation.d.ts +48 -0
  77. package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotation.js +1 -0
  78. package/build/js/{check/ui/organisms/BarcodeCheckPopoverAnnotationButton.d.ts → ar/ui/organisms/BarcodeArPopoverAnnotationButton.d.ts} +5 -5
  79. package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotationButton.js +1 -0
  80. package/build/js/{check/ui/organisms/BarcodeCheckRectangleHighlight.d.ts → ar/ui/organisms/BarcodeArRectangleHighlight.d.ts} +12 -11
  81. package/build/js/ar/ui/organisms/BarcodeArRectangleHighlight.js +1 -0
  82. package/build/js/{check/ui/organisms/BarcodeCheckStatusIconAnnotation.d.ts → ar/ui/organisms/BarcodeArStatusIconAnnotation.d.ts} +16 -13
  83. package/build/js/ar/ui/organisms/BarcodeArStatusIconAnnotation.js +1 -0
  84. package/build/js/ar/ui/organisms/private/AnchorAndDirectionUtils.d.ts +10 -0
  85. package/build/js/ar/ui/organisms/private/AnchorAndDirectionUtils.js +1 -0
  86. package/build/js/ar/ui/organisms/private/CheckLayout.js +1 -0
  87. package/build/js/ar/ui/organisms/private/updatePosition.d.ts +5 -0
  88. package/build/js/ar/ui/organisms/private/updatePosition.js +1 -0
  89. package/build/js/chunks/chunk-2A2DLPAB.js +4 -0
  90. package/build/js/chunks/chunk-2QO7W23V.js +1 -0
  91. package/build/js/chunks/chunk-2ZSOWJ2F.js +1 -1
  92. package/build/js/chunks/chunk-4KRKVW3B.js +1 -0
  93. package/build/js/chunks/chunk-4QSEBPWB.js +1 -0
  94. package/build/js/chunks/chunk-4WEBA3WR.js +1 -0
  95. package/build/js/chunks/chunk-5CKMOWBK.js +14 -0
  96. package/build/js/chunks/chunk-5DP5VNWQ.js +1 -1
  97. package/build/js/chunks/chunk-5HCHOM4R.js +1 -0
  98. package/build/js/chunks/chunk-62I36ZHW.js +1 -0
  99. package/build/js/chunks/chunk-644ETSOC.js +1 -1
  100. package/build/js/chunks/chunk-6BIERYLN.js +1 -0
  101. package/build/js/chunks/chunk-7E3OQ2ZA.js +7 -0
  102. package/build/js/chunks/chunk-7GJVUU3G.js +1 -0
  103. package/build/js/chunks/chunk-7J6MRLL2.js +1 -1
  104. package/build/js/chunks/{chunk-GOGBXJU7.js → chunk-7JPCVI74.js} +1 -1
  105. package/build/js/chunks/{chunk-EISL6ITI.js → chunk-7MDNYMWU.js} +1 -1
  106. package/build/js/chunks/chunk-7O2NHA3I.js +1 -1
  107. package/build/js/chunks/{chunk-75VI6EZ2.js → chunk-ACNWENKW.js} +1 -1
  108. package/build/js/chunks/chunk-AJ5TJUFZ.js +1 -0
  109. package/build/js/chunks/chunk-AOYPDGOI.js +1 -0
  110. package/build/js/chunks/chunk-BH3OZS63.js +1 -0
  111. package/build/js/chunks/chunk-BRRT6GC7.js +1 -1
  112. package/build/js/chunks/chunk-CYVVGAZ4.js +1 -0
  113. package/build/js/chunks/{chunk-VIFEECK7.js → chunk-D26TRBZS.js} +1 -1
  114. package/build/js/chunks/chunk-D66HVQKO.js +1 -0
  115. package/build/js/chunks/chunk-DCUKY2F4.js +1 -0
  116. package/build/js/chunks/chunk-DGF7ODRH.js +1 -0
  117. package/build/js/chunks/chunk-DHCNYKSL.js +1 -0
  118. package/build/js/chunks/chunk-DQVSIMLI.js +4 -0
  119. package/build/js/chunks/{chunk-Y5LNDJE7.js → chunk-EUPONI3T.js} +7 -7
  120. package/build/js/chunks/chunk-GBKJMQMZ.js +1 -0
  121. package/build/js/chunks/chunk-I3E2HP2L.js +1 -0
  122. package/build/js/chunks/chunk-ICRLCCOF.js +1 -0
  123. package/build/js/chunks/{chunk-H5VEANGI.js → chunk-IHTTMWUR.js} +1 -1
  124. package/build/js/chunks/chunk-JSJOGGUQ.js +5 -0
  125. package/build/js/chunks/chunk-JUHE2NBW.js +1 -0
  126. package/build/js/chunks/{chunk-DORFGC2X.js → chunk-L2JLFSNM.js} +1 -1
  127. package/build/js/chunks/chunk-LGBIU7XO.js +211 -0
  128. package/build/js/chunks/chunk-LKQMBRKB.js +1 -0
  129. package/build/js/chunks/{chunk-2ZPG257B.js → chunk-LN6NHJTD.js} +1 -1
  130. package/build/js/chunks/chunk-LTNZJEG4.js +1 -1
  131. package/build/js/chunks/chunk-MAA4EROF.js +5 -0
  132. package/build/js/chunks/chunk-MMMW73IQ.js +1 -0
  133. package/build/js/chunks/chunk-NGJSRAXL.js +1 -0
  134. package/build/js/chunks/chunk-NKRL5HIU.js +1 -0
  135. package/build/js/chunks/chunk-NR73P4OZ.js +1 -0
  136. package/build/js/chunks/chunk-NRT6IOL4.js +9 -0
  137. package/build/js/chunks/{chunk-FPZJIOQH.js → chunk-OLFIL5XY.js} +1 -1
  138. package/build/js/chunks/chunk-OTZPCIBD.js +1 -1
  139. package/build/js/chunks/{chunk-HKWMKBIV.js → chunk-P4F5WUAR.js} +1 -1
  140. package/build/js/chunks/{chunk-5DXIU4KL.js → chunk-PGZPJXZN.js} +1 -1
  141. package/build/js/chunks/chunk-POONUNDO.js +1 -1
  142. package/build/js/chunks/chunk-QBMLA2J7.js +1 -1
  143. package/build/js/chunks/chunk-R3B72E4T.js +1 -0
  144. package/build/js/chunks/chunk-RWDAYBTQ.js +1 -0
  145. package/build/js/chunks/chunk-S5FTF2QC.js +1 -0
  146. package/build/js/chunks/chunk-SSODGMFG.js +1 -0
  147. package/build/js/chunks/chunk-TJML3UCN.js +2 -0
  148. package/build/js/chunks/chunk-UKOWYLLZ.js +1 -0
  149. package/build/js/chunks/{chunk-I22E7AYH.js → chunk-UZD5DJXU.js} +1 -1
  150. package/build/js/chunks/chunk-VINHRCNE.js +1 -0
  151. package/build/js/chunks/chunk-VR4NB4EY.js +1 -0
  152. package/build/js/chunks/chunk-WHWR5LBU.js +1 -0
  153. package/build/js/chunks/chunk-WLVAYFWF.js +1 -0
  154. package/build/js/chunks/chunk-WRTJHOS5.js +1 -1
  155. package/build/js/chunks/chunk-WVIC3JWX.js +1 -1
  156. package/build/js/chunks/chunk-WYDK7FDG.js +1 -0
  157. package/build/js/chunks/{chunk-QHNNJFNX.js → chunk-XS6RV73B.js} +1 -1
  158. package/build/js/chunks/chunk-XSJEGOGN.js +1 -1
  159. package/build/js/chunks/chunk-XTOFHCOV.js +1 -0
  160. package/build/js/chunks/chunk-XUOTM7YW.js +7 -0
  161. package/build/js/chunks/{chunk-XY65BTLP.js → chunk-YJ42KEYE.js} +2 -3
  162. package/build/js/chunks/chunk-YQNNEW67.js +2 -2
  163. package/build/js/chunks/chunk-YVLM2PPO.js +1 -0
  164. package/build/js/chunks/chunk-YWCXI7D5.js +1 -1
  165. package/build/js/chunks/chunk-ZBWUSH2F.js +1 -0
  166. package/build/js/chunks/{chunk-NENGQZSC.js → chunk-ZF7YEGPW.js} +1 -1
  167. package/build/js/chunks/chunk-ZI75KHWU.js +1 -0
  168. package/build/js/chunks/{chunk-EEWERXCW.js → chunk-ZLTEXTBH.js} +1 -1
  169. package/build/js/chunks/chunk-ZPCWOA3Y.js +1 -0
  170. package/build/js/chunks/{chunk-BPHHLTR2.js → chunk-ZQ3QRLEZ.js} +1 -1
  171. package/build/js/chunks/{chunk-UHJ3O2ZT.js → chunk-ZZQLFO35.js} +1 -1
  172. package/build/js/find/BarcodeFind.d.ts +2 -2
  173. package/build/js/find/BarcodeFind.js +1 -1
  174. package/build/js/find/BarcodeFindFeedback.js +1 -1
  175. package/build/js/find/BarcodeFindPresenter.js +1 -1
  176. package/build/js/find/BarcodeFindSession.d.ts +1 -1
  177. package/build/js/find/BarcodeFindSession.js +1 -1
  178. package/build/js/find/BarcodeFindSettings.js +1 -1
  179. package/build/js/find/BarcodeFindView.js +1 -1
  180. package/build/js/find/index.js +1 -1
  181. package/build/js/find/ui/molecules/CardListContainer.d.ts +2 -2
  182. package/build/js/find/ui/molecules/CardListContainer.js +1 -1
  183. package/build/js/find/ui/molecules/ImageAndTextCardLayout.d.ts +18 -0
  184. package/build/js/find/ui/molecules/ImageAndTextCardLayout.js +1 -0
  185. package/build/js/find/ui/molecules/TorchIconButton.js +1 -1
  186. package/build/js/find/ui/organisms/FindLayout.js +1 -1
  187. package/build/js/index.d.ts +37 -33
  188. package/build/js/index.js +1 -1
  189. package/build/js/moduleLoader.js +1 -1
  190. package/build/js/spark/SparkScan.d.ts +2 -2
  191. package/build/js/spark/SparkScan.js +1 -1
  192. package/build/js/spark/SparkScanBarcodeFeedback.d.ts +1 -1
  193. package/build/js/spark/SparkScanBarcodeFeedback.js +1 -1
  194. package/build/js/spark/SparkScanOverlay.js +1 -1
  195. package/build/js/spark/SparkScanSession.d.ts +1 -1
  196. package/build/js/spark/SparkScanSession.js +1 -1
  197. package/build/js/spark/SparkScanSettings.js +1 -1
  198. package/build/js/spark/SparkScanTargetAimerViewfinder.js +1 -1
  199. package/build/js/spark/index.d.ts +1 -1
  200. package/build/js/spark/index.js +1 -1
  201. package/build/js/spark/ui/SparkScanView.d.ts +1 -1
  202. package/build/js/spark/ui/SparkScanView.js +1 -1
  203. package/build/js/spark/ui/SparkScanViewFeedbackManager.js +1 -1
  204. package/build/js/spark/ui/SparkScanViewMiniPreview.d.ts +2 -0
  205. package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -1
  206. package/build/js/spark/ui/SparkScanViewPresenter.d.ts +2 -1
  207. package/build/js/spark/ui/SparkScanViewPresenter.js +1 -1
  208. package/build/js/spark/ui/SparkScanViewSettings.js +1 -1
  209. package/build/js/spark/ui/SparkScanViewTriggerButton.d.ts +1 -0
  210. package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
  211. package/build/js/spark/ui/SparkScanViewUiListener.d.ts +1 -1
  212. package/build/js/spark/ui/SparkScanViewVisualFeedback.js +1 -1
  213. package/build/js/spark/ui/controllers/DragController.d.ts +2 -1
  214. package/build/js/spark/ui/controllers/DragController.js +1 -1
  215. package/build/js/spark/ui/index.d.ts +1 -1
  216. package/build/js/spark/ui/index.js +1 -1
  217. package/build/js/worker/{BarcodeCheckMode.d.ts → BarcodeArMode.d.ts} +5 -5
  218. package/build/js/worker/BarcodeArMode.js +1 -0
  219. package/build/js/worker/BarcodeBatchMode.d.ts +4 -4
  220. package/build/js/worker/BarcodeCaptureMode.d.ts +4 -4
  221. package/build/js/worker/BarcodeCaptureWorkerManager.d.ts +3 -3
  222. package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
  223. package/build/js/worker/BarcodeFindMode.d.ts +5 -5
  224. package/build/js/worker/SparkScanMode.d.ts +4 -4
  225. package/build/js/worker/WorkerMain.d.ts +4 -4
  226. package/build/js/worker/WorkerMain.js +1 -1
  227. package/build/js/worker/barcodeCapture.inlineWorker.js +1 -0
  228. package/build/js/worker/dataCaptureEngine.d.ts +5 -5
  229. package/build/js/worker/dataCaptureEngine.js +1 -1
  230. package/build/js/worker/dataCaptureWorkerRelated.d.ts +36 -36
  231. package/build/js/worker/index.d.ts +4 -4
  232. package/package.json +2 -2
  233. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.js +1 -1
  234. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.wasm +0 -0
  235. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.js +1 -1
  236. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.wasm +0 -0
  237. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.js +1 -1
  238. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.wasm +0 -0
  239. package/sdc-lib/scandit-datacapture-sdk-barcode.js +1 -1
  240. package/sdc-lib/scandit-datacapture-sdk-barcode.wasm +0 -0
  241. package/build/js/BarcodeCheck-ByBEYHcL.d.ts +0 -47
  242. package/build/js/BarcodeCheckAnnotation-DmEb-lMw.d.ts +0 -93
  243. package/build/js/check/BarcodeCheck.js +0 -1
  244. package/build/js/check/BarcodeCheckAnnotationProvider.d.ts +0 -16
  245. package/build/js/check/BarcodeCheckFeedback.d.ts +0 -11
  246. package/build/js/check/BarcodeCheckFeedback.js +0 -1
  247. package/build/js/check/BarcodeCheckPresenter.d.ts +0 -48
  248. package/build/js/check/BarcodeCheckPresenter.js +0 -1
  249. package/build/js/check/BarcodeCheckSession.js +0 -1
  250. package/build/js/check/BarcodeCheckSettings.js +0 -1
  251. package/build/js/check/BarcodeCheckView.js +0 -1
  252. package/build/js/check/BarcodeCheckViewSettings.js +0 -1
  253. package/build/js/check/hashedId.js +0 -1
  254. package/build/js/check/ui/atoms/BarcodeCheckInfoAnnotationBodyComponent.js +0 -1
  255. package/build/js/check/ui/atoms/BarcodeCheckInfoAnnotationFooter.js +0 -1
  256. package/build/js/check/ui/atoms/BarcodeCheckInfoAnnotationHeader.js +0 -1
  257. package/build/js/check/ui/atoms/private/Backdrop.js +0 -1
  258. package/build/js/check/ui/atoms/private/CssArrows.js +0 -1
  259. package/build/js/check/ui/molecules/private/CameraSwitchButton.js +0 -1
  260. package/build/js/check/ui/molecules/private/ZoomSwitchButton.js +0 -1
  261. package/build/js/check/ui/organisms/BarcodeCheckAnnotation.d.ts +0 -10
  262. package/build/js/check/ui/organisms/BarcodeCheckAnnotation.js +0 -1
  263. package/build/js/check/ui/organisms/BarcodeCheckCircleHighlight.js +0 -1
  264. package/build/js/check/ui/organisms/BarcodeCheckInfoAnnotation.d.ts +0 -10
  265. package/build/js/check/ui/organisms/BarcodeCheckInfoAnnotation.js +0 -1
  266. package/build/js/check/ui/organisms/BarcodeCheckPopoverAnnotation.d.ts +0 -43
  267. package/build/js/check/ui/organisms/BarcodeCheckPopoverAnnotation.js +0 -1
  268. package/build/js/check/ui/organisms/BarcodeCheckPopoverAnnotationButton.js +0 -1
  269. package/build/js/check/ui/organisms/BarcodeCheckRectangleHighlight.js +0 -1
  270. package/build/js/check/ui/organisms/BarcodeCheckStatusIconAnnotation.js +0 -1
  271. package/build/js/check/ui/organisms/private/AnchorAndDirectionUtils.d.ts +0 -17
  272. package/build/js/check/ui/organisms/private/AnchorAndDirectionUtils.js +0 -1
  273. package/build/js/check/ui/organisms/private/CheckLayout.js +0 -1
  274. package/build/js/chunks/chunk-2RKBANN2.js +0 -1
  275. package/build/js/chunks/chunk-3V5ISRFO.js +0 -1
  276. package/build/js/chunks/chunk-4XFE7YMP.js +0 -1
  277. package/build/js/chunks/chunk-5KVH2XIO.js +0 -1
  278. package/build/js/chunks/chunk-5N7ZBGWC.js +0 -1
  279. package/build/js/chunks/chunk-63KZV5XE.js +0 -1
  280. package/build/js/chunks/chunk-65DU26S5.js +0 -4
  281. package/build/js/chunks/chunk-7JOXKPVL.js +0 -1
  282. package/build/js/chunks/chunk-7PUNN73L.js +0 -1
  283. package/build/js/chunks/chunk-A2FMQ67Y.js +0 -1
  284. package/build/js/chunks/chunk-A2JYXIGU.js +0 -1
  285. package/build/js/chunks/chunk-BAOM24RT.js +0 -1
  286. package/build/js/chunks/chunk-BBJPGTUG.js +0 -1
  287. package/build/js/chunks/chunk-BDRKVLLV.js +0 -7
  288. package/build/js/chunks/chunk-BG7VNYCV.js +0 -1
  289. package/build/js/chunks/chunk-BTRDH2AV.js +0 -7
  290. package/build/js/chunks/chunk-C5GWADSL.js +0 -1
  291. package/build/js/chunks/chunk-CONYPETL.js +0 -1
  292. package/build/js/chunks/chunk-DFIOIHPG.js +0 -5
  293. package/build/js/chunks/chunk-DOA33NUL.js +0 -1
  294. package/build/js/chunks/chunk-DQW2EMPB.js +0 -1
  295. package/build/js/chunks/chunk-FJ4SOETD.js +0 -1
  296. package/build/js/chunks/chunk-HFF47NXN.js +0 -5
  297. package/build/js/chunks/chunk-HL6L6Q2I.js +0 -1
  298. package/build/js/chunks/chunk-IC4MKVBG.js +0 -1
  299. package/build/js/chunks/chunk-ILGTNFTI.js +0 -1
  300. package/build/js/chunks/chunk-IQEPXI6U.js +0 -1
  301. package/build/js/chunks/chunk-J3I6TRKT.js +0 -1
  302. package/build/js/chunks/chunk-JKO4EZPZ.js +0 -1
  303. package/build/js/chunks/chunk-KYQRFAWX.js +0 -1
  304. package/build/js/chunks/chunk-L6RFD252.js +0 -1
  305. package/build/js/chunks/chunk-LAWBMRSV.js +0 -1
  306. package/build/js/chunks/chunk-LCXQXE27.js +0 -1
  307. package/build/js/chunks/chunk-NNMXFRC2.js +0 -1
  308. package/build/js/chunks/chunk-OMY3KC7L.js +0 -1
  309. package/build/js/chunks/chunk-PE6EDL2S.js +0 -1
  310. package/build/js/chunks/chunk-PUMPP7D6.js +0 -1
  311. package/build/js/chunks/chunk-QGAFQZJW.js +0 -2
  312. package/build/js/chunks/chunk-QJOHE5A3.js +0 -14
  313. package/build/js/chunks/chunk-R5ROT3AK.js +0 -1
  314. package/build/js/chunks/chunk-RMCPFLAA.js +0 -211
  315. package/build/js/chunks/chunk-S2PGFYJU.js +0 -1
  316. package/build/js/chunks/chunk-SN5VMVMZ.js +0 -9
  317. package/build/js/chunks/chunk-SNJABJAZ.js +0 -1
  318. package/build/js/chunks/chunk-TLDFT6RG.js +0 -1
  319. package/build/js/chunks/chunk-TYVQVFM4.js +0 -1
  320. package/build/js/chunks/chunk-WL3PKWFT.js +0 -4
  321. package/build/js/chunks/chunk-Y2XISTOT.js +0 -1
  322. package/build/js/find/ui/atoms/Card.d.ts +0 -18
  323. package/build/js/find/ui/atoms/Card.js +0 -1
  324. package/build/js/find/ui/atoms/CardList.d.ts +0 -56
  325. package/build/js/find/ui/atoms/CardList.js +0 -1
  326. package/build/js/worker/BarcodeCheckMode.js +0 -1
  327. package/build/js/worker/dataCapture.inlineWorker.js +0 -1
  328. /package/build/js/{check/BarcodeCheckAnnotationProvider.js → ar/BarcodeArAnnotationProvider.js} +0 -0
  329. /package/build/js/{check/BarcodeCheckHighlightProvider.js → ar/BarcodeArHighlightProvider.js} +0 -0
  330. /package/build/js/{check/BarcodeCheckListener.js → ar/BarcodeArListener.js} +0 -0
  331. /package/build/js/{check → ar}/Defaults.d.ts +0 -0
  332. /package/build/js/{check → ar}/assets/checkSound.d.ts +0 -0
  333. /package/build/js/{check → ar}/assets/checkSound.js +0 -0
  334. /package/build/js/{check → ar}/hashedId.d.ts +0 -0
  335. /package/build/js/{check → ar}/ui/atoms/private/Backdrop.d.ts +0 -0
  336. /package/build/js/{check/ui/atoms/private/BarcodeCheckInfoAnnotationHeaderFooterUtils.d.ts → ar/ui/atoms/private/BarcodeArInfoAnnotationHeaderFooterUtils.d.ts} +0 -0
  337. /package/build/js/{check → ar}/ui/atoms/private/BarcodeStatusIconContainer.d.ts +0 -0
  338. /package/build/js/{check → ar}/ui/atoms/private/CssArrows.d.ts +0 -0
  339. /package/build/js/{check → ar}/ui/molecules/private/CameraSwitchButton.d.ts +0 -0
  340. /package/build/js/{check → ar}/ui/molecules/private/ZoomSwitchButton.d.ts +0 -0
  341. /package/build/js/{check/ui/organisms/BarcodeCheckHighlight.js → ar/ui/organisms/BarcodeArHighlight.js} +0 -0
  342. /package/build/js/{check → ar}/ui/organisms/private/CheckLayout.d.ts +0 -0
  343. /package/build/js/chunks/{chunk-43WBSXOM.js → chunk-EWNVCDJ6.js} +0 -0
  344. /package/build/js/chunks/{chunk-E2UNDLF3.js → chunk-LAYALN2H.js} +0 -0
  345. /package/build/js/chunks/{chunk-PWPSTL4C.js → chunk-NDQSQK6H.js} +0 -0
  346. /package/build/js/chunks/{chunk-YM4T55CK.js → chunk-UJWVVADW.js} +0 -0
  347. /package/build/js/worker/{dataCapture.inlineWorker.d.ts → barcodeCapture.inlineWorker.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ import {DataCaptureLoader,Logger}from'@scandit/web-datacapture-core';function n(r){let s=URL.createObjectURL(new Blob(['"use strict";(()=>{var p={"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:6892166},"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:6979986},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:6770770},"scandit-datacapture-sdk-barcode.wasm":{bytes:6859072}};function F(t){return typeof t=="object"&&t!=null}function C(t){if(typeof t=="string")return t;if(F(t)){if(typeof t.message=="string")return t.message}else if(typeof t?.toString=="function")return t.toString();return"unknown error"}var l;(t=>{(c=>(c.Debug="debug",c.Info="info",c.Warn="warn",c.Error="error",c.Quiet="quiet"))(t.Level||(t.Level={}));let e=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),r="debug";function a(c){r=c}t.setLevel=a;function s(c,...h){if(!(e.get(r)>e.get(c)))switch(c){case"debug":{console.debug(...h);break}case"info":{console.log(...h);break}case"warn":{console.warn(...h);break}case"error":{console.error(...h);break}}}t.log=s;function i(...c){s("warn",...c)}t.warn=i;function n(...c){s("debug",...c)}t.debug=n;function o(...c){s("info",...c)}t.info=o;function d(...c){s("error",...c)}t.error=d})(l||(l={}));var B=class re extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,re.prototype),this.name=e.name}toString(){return`${this.name}: ${this.message}`}};var P=Promise.resolve(),G=!1,$=!1,k,j={writableDataPath:""};async function ae(t){if(k==null)return;G=!0;let e=new Promise((r,a)=>{setTimeout(()=>{a(new B({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}))},1500)});try{await Promise.race([new Promise((r,a)=>{k?.(t,s=>{if(s!=null){a(s);return}r()})}),e])}finally{G=!1}}async function se(t){return $||(G?($=!0,P=P.then(async()=>($=!1,ae(t)))):P=ae(t)),P}async function ie(t){j=t,k=FS.syncfs,FS.syncfs=(e,r)=>{let a=r,s=()=>{a()},i=n=>{a(n)};se(e).then(s).catch(i)};try{FS.mkdir(j.writableDataPath)}catch(e){if(e.code!=="EEXIST")throw k=void 0,e}return FS.mount(IDBFS,{},j.writableDataPath),se(!0)}var q=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t);var K=function(t,e){this[0]=t,this[1]=e},ne=(t,e,r)=>{var a=(n,o,d,c)=>{try{var h=r[n](o),m=(o=h.value)instanceof K,g=h.done;Promise.resolve(m?o[0]:o).then(b=>m?a(n==="return"?n:"next",o[1]?{done:b.done,value:b.value}:b,d,c):d({value:b,done:g})).catch(b=>a("throw",b,d,c))}catch(b){c(b)}},s=n=>i[n]=o=>new Promise((d,c)=>a(n,o,d,c)),i={};return r=r.apply(t,e),i[q("asyncIterator")]=()=>i,s("next"),s("throw"),s("return"),i},oe=(t,e,r)=>(e=t[q("asyncIterator")])?e.call(t):(t=t[q("iterator")](),e={},r=(a,s)=>(s=t[a])&&(e[a]=i=>new Promise((n,o,d)=>(i=s.call(t,i),d=i.done,Promise.resolve(i.value).then(c=>n({value:c,done:d}),o)))),r("next"),r("return"),e);var de={};function Le(t){return[...new Uint8Array(t)].map(e=>{let r=e.toString(16);return r.length===1?`0${r}`:r}).join("")}function Te(t){return ne(this,null,function*(){let e=t.getReader();try{for(;;){let{done:r,value:a}=yield new K(e.read());if(r)return;yield a}}finally{e.releaseLock()}})}async function We(t){let e=[],r=0,a=0;try{for(var s=oe(Te(t)),i,n,o;i=!(n=await s.next()).done;i=!1){let c=n.value;e.push(c),r+=c.length}}catch(c){o=[c]}finally{try{i&&(n=s.return)&&await n.call(s)}finally{if(o)throw o[0]}}let d=new Uint8Array(r);for(let c of e)d.set(c,a),a+=c.length;return d.buffer}var Ee=(t=>(t.VALID="VALID",t.INVALID="INVALID",t.NOT_VERIFIABLE="NOT_VERIFIABLE",t))(Ee||{});async function Re(t,e,r){if(typeof crypto.subtle.digest!="function")return l.log(l.Level.Warn,`Insecure context (see https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts): The hash of the Scandit Data Capture library WASM file found at ${r} could not be verified`),"NOT_VERIFIABLE";try{let a=t instanceof Promise?await t:t,s=await crypto.subtle.digest("SHA-256",a),i=Le(s);return e==null?(l.log(l.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):i===e?(l.log(l.Level.Debug,`Data Capture library WASM integrity found at ${r} has been verified correctly.`),"VALID"):(l.log(l.Level.Warn,`The Scandit Data Capture library WASM file found at ${r} seems invalid: expected file hash doesn\'t match (received: ${i}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(a){return l.log(l.Level.Warn,"Wasm response could not be verified",a),"NOT_VERIFIABLE"}}var X=new Map([["br",4.4],["gzip",2.9],["none",1]]);function Ne(t){var e;let r="content-encoding";if(t==null||t.get(r)==null)return X.get("none");let a=new Set(((e=t.get(r))!=null?e:"").split(",").map(s=>s.trim()));for(let[s,i]of X)if(a.has(s))return i;return X.get("none")}function He(t){var e,r;if(t==null)return 0;let a=(e=Ne(t))!=null?e:1,s=Number.parseInt((r=t.get("content-length"))!=null?r:"0",10);return Number.isNaN(s)?0:Math.floor(s*a*100)/100}function _e(t){let{pathname:e}=new URL(t);for(let[r,a]of Object.entries(de))if(e.endsWith(r))return a.bytes;return 0}function ce(t){de=t}var ze=(t,e)=>{let r=He(e);return r===0?_e(t):r};function Ve(t,e,r,{onProgress:a,onError:s,onComplete:i}){if(!e.body)return[e];let n=ze(t,e.headers),o=0,d=0,[c,h]=r?e.body.tee():[e.body],m=c.pipeThrough(new TransformStream({async transform(g,b){try{o+=g.length,d=Number((o/n*100).toFixed(2)),n>0&&g.length>0&&d<100?a?.({percentage:d,loadedBytes:o,privateUri:t}):n===0&&g.length>0&&a?.({percentage:null,loadedBytes:o,privateUri:t}),b.enqueue(g)}catch(v){b.error(v),s?.({error:v})}},flush(g){a?.({percentage:100,loadedBytes:o,privateUri:t}),i?.({percentage:100,loadedBytes:o,privateUri:t}),g.terminate()}}));return[new Response(m,{headers:new Headers(e.headers),status:e.status,statusText:e.statusText}),h]}async function Y({wasmURI:t,expectedHash:e,verifyResponseHash:r,onProgress:a,onComplete:s,onError:i,referredOrigin:n}){let o=await fetch(t,{referrerPolicy:"origin",referrer:n??""});if(!o.ok)throw new Error(`HTTP status code is not ok: ${o.status}, ${o.statusText}`);let[d,c]=Ve(t,o,r,{onProgress:a,onError:i,onComplete:s});return c!=null&&Re(We(c),e,t),d}function le({wasmURI:t,expectedHash:e,verifyResponseHash:r,progressCallback:a,successCallback:s,errorCallback:i,importObject:n,referredOrigin:o}){async function d(h){try{let m=await Y({wasmURI:t,expectedHash:e,verifyResponseHash:r,onProgress:a,referredOrigin:o}),g=await(h??m).arrayBuffer(),b=await globalThis.WebAssembly.instantiate(g,n);s(b.instance,b.module)}catch(m){l.log(l.Level.Error,m),l.log(l.Level.Error,`Couldn\'t instantiate Scandit SDK DataCapture library at ${t}, did you configure the path for it correctly?`),i?.(m)}}async function c(){let h;try{h=await Y({wasmURI:t,expectedHash:e,verifyResponseHash:r,onProgress:a,referredOrigin:o});let m=await globalThis.WebAssembly.instantiateStreaming(h,n);s(m.instance,m.module)}catch(m){l.log(l.Level.Warn,m),l.log(l.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),d(h?.bodyUsed===!0?void 0:h)}}typeof globalThis.WebAssembly.instantiateStreaming=="function"?c():d()}async function Z(t,e,r,a){return new Promise((s,i)=>{t().then(s).catch(n=>{let o=e*2;if(o>r){i(n);return}a(n),globalThis.setTimeout(()=>{Z(t,o,r,a).then(s).catch(i)},e)})})}function Q(t){var e,r;let a="";if((e=t.href)!=null&&e.startsWith("blob:null/"))a="localhost";else{let s=((r=t.pathname)==null?void 0:r.length)>1&&!t.pathname.startsWith("/");a=new URL(s?t.pathname:t.origin).hostname}return a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1)),a}async function ue(t,e){async function r(){return importScripts(t)}try{await Z(r,250,4e3,s=>{l.log(l.Level.Warn,s),l.log(l.Level.Warn,`Couldn\'t retrieve Scandit Data Capture library at ${t}, retrying...`)}),self.Module.mainScriptUrlOrBlob=t;let a=globalThis.SDC_WASM_JS_VERSION;return a!==e&&l.log(l.Level.Warn,`The Scandit Data Capture library JS file found at ${t} seems invalid: expected version doesn\'t match (received: ${a}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(a){return l.log(l.Level.Error,a),!1}}function Je(t){return/^https?:\\/\\/(?:[^./]*\\.)*cdn.jsdelivr.net\\//.test(t)?{result:!0,cdnBaseURL:"https://cdn.jsdelivr.net/npm/"}:/^https?:\\/\\/(?:[^./]*\\.)*unpkg.com\\//.test(t)?{result:!0,cdnBaseURL:"https://unpkg.com/"}:{result:!1,cdnBaseURL:""}}function Ue(t){let e=/@scandit\\/web-datacapture-[a-z]+/i.exec(t);return e?e[0]:null}function pe(t,e,r){let a=e,s=Je(a);if(s.result){let n=Ue(a);n!=null&&(a=`${s.cdnBaseURL}${n}@${t}/sdc-lib/`)}let i=r.replace(".wasm","");return s.result?{jsURI:`${a}${i}.js`,wasmURI:`${a}${i}.wasm`}:{jsURI:`${a}${i}.js?v=${t}`,wasmURI:`${a}${i}.wasm?v=${t}`}}var I;(t=>{function e(){return"7.3.0-beta.1"}t.sdkVersion=e})(I||(I={}));var he=class{constructor(){this.promise=new Promise((t,e)=>{this.reject=e,this.resolve=t})}};var $e=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),je=()=>(async t=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(t)}catch{return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));function Ge(){return typeof crossOriginIsolated>"u"?!1:crossOriginIsolated}function qe(){try{return new WebAssembly.Memory({initial:1,maximum:1,shared:!0}).buffer.constructor.name==="SharedArrayBuffer"}catch{return!1}}async function me(){return $e()}async function Ke(){if(!await je())return!1;let t=null;try{t=new Worker(URL.createObjectURL(new Blob([\'postMessage("Worker" in self);\'],{type:"text/javascript"})),{name:"nestedWorkerTest"})}catch{return!1}return new Promise(e=>{if(t==null){e(!1);return}t.onmessage=r=>{t?.terminate(),e(r.data)}})}async function be(){let t=await Ke();return Ge()&&qe()&&t}var ge=class fe{constructor(e,r){this.hintPresenterV2=null,this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL=10,this.redrawInterval=1e3/30,this.redrawRequests=[],this._isDrawLoopRunning=!1,this.frameDataPool=new Map,this.lastFrameCounter=-1,this.poorMansBenchmarkLogs=!1,this.writableDataPathStandard="/scandit_sync_folder",this.resourceFilesSubfolder="resources",this.performanceMetricsReporterTimer=void 0,this.performanceMetrics={frameDataPoolSize:0,processedFramesCount:0,redrawRequestsCount:0,actualRedrawsCount:0},this.gestureListener=null,this.webPlatformHintPresenter=null,this.moduleHandler=e,this.workerFunctions=r,this._loadProgressCallback=this._loadProgressCallback.bind(this),ce(this.getWasmMetadata())}get Module(){return this.moduleHandler.get()}set isDrawLoopRunning(e){this._isDrawLoopRunning=e,!e&&typeof this.loopTimeoutId=="number"&&(clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0)}get isDrawLoopRunning(){return this._isDrawLoopRunning}convertToLoadableFrameData(e){let r=this.getNextFrameId();this.frameDataPool.set(r,new Uint8ClampedArray(e.getFrameData()));let a=this.lastUsedModuleMirrorAxis==null?!1:this.lastUsedModuleMirrorAxis!==this.Module.Axis.None;return{frameId:r,width:e.getWidth(),height:e.getHeight(),isFrameSourceMirrored:a}}createContext(e){var r,a,s,i,n;let o=this.getModeDeserializers(),d=Q(location);(d==="localhost"||d==="127.0.0.1")&&navigator.userAgent.includes("Electron")&&e.appName!=null&&(d+=`-${e.appName}`),this.parentDomain=e.parentDomain,this.contextDeserializer=new this.Module.DataCaptureContextDeserializer(this.writableDataPath,e.deviceId,e.context.deviceModelName,d,this.parentDomain,o,e.delayedRegistration,e.highEndBlurryRecognition,this.resourcePath);let c=this.contextDeserializer.contextFromJson(JSON.stringify(e.context));if(c==null){let u=this.contextDeserializer.getLastError();throw new Error(`Could not create the context: ${u}`)}let h=c.getView();this.context=c.getContext(),c.delete();let m=this.Module.DataCaptureContextListener.extend("DataCaptureContextListener",{didChangeStatus:(u,f)=>{this.contextDidChangeStatus(JSON.parse(f.toJson())),u.delete()},didStartObservingContext:u=>{this.didStartObservingContext(),u.delete()},didStopObservingContext:u=>{u.delete()}}),g=this.Module.DataCaptureContextFrameListener.extend("DataCaptureContextFrameListener",{onObservationStarted:u=>{u.delete()},onObservationStopped:u=>{u.delete()},onFrameProcessingStarted:(u,f)=>{this.workerFunctions.postMessage({type:"onFrameProcessingStarted"}),f.delete(),u.delete()},onFrameProcessingFinished:(u,f)=>{this.workerFunctions.postMessage({type:"onFrameProcessingFinished"}),f.delete(),u.delete()},onFrameSkipped:(u,f)=>{this.workerFunctions.postMessage({type:"onFrameSkipped"}),f.delete(),u.delete()}}),b=this.Module.GestureRecognizer.extend("GestureRecognizer",{setGestureListener:(u,f)=>{var O;(O=this.gestureListener)==null||O.delete(),this.gestureListener=u.clone(),u.delete()}});(r=this.gestureRecognizer)==null||r.delete(),this.gestureRecognizer=new b;let v=new m;this.context.addListener(v),v.delete();let w=new g;this.context.addFrameListener(w),w.delete(),this.setView(h),(a=this.view)==null||a.setGestureRecognizer(this.gestureRecognizer);let M=this.Module.PlatformHintPresenter.extend("PlatformHintPresenter",{setHintPresenter:u=>{u.delete()},showToast:u=>{this.workerFunctions.postMessage({type:"showToast",payload:JSON.parse(u)})},hideToast:u=>{this.workerFunctions.postMessage({type:"hideToast",payload:JSON.parse(u)})},showGuidance:u=>{this.workerFunctions.postMessage({type:"showGuidance",payload:JSON.parse(u)})},hideGuidance:u=>{this.workerFunctions.postMessage({type:"hideGuidance",payload:JSON.parse(u)})},startUpdateTimer:u=>{this.workerFunctions.postMessage({type:"startUpdateTimer",payload:{duration:{unit:"ms",value:u}}})},stopUpdateTimer:()=>{this.workerFunctions.postMessage({type:"stopUpdateTimer"})}});(s=this.hintPresenterV2)==null||s.delete(),(i=this.webPlatformHintPresenter)==null||i.delete(),this.webPlatformHintPresenter=new M,this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter),(n=this.view)==null||n.setHintPresenterV2(this.hintPresenterV2)}onTap(e){var r;(r=this.gestureListener)==null||r.onTap(JSON.stringify(e))}hintPresenterV2Update(){var e;(e=this.hintPresenterV2)==null||e.update()}startReportingPerformanceMetrics(){this.performanceMetricsReporterTimer==null&&(this.performanceMetricsReporterTimer=setInterval(()=>{this.reportPerformanceMetrics();for(let e of Object.keys(this.performanceMetrics))this.performanceMetrics[e]=0},1e3))}async reportPerformanceMetrics(){this.workerFunctions.postMessage({type:"performanceMetricsReport",payload:{...this.performanceMetrics}})}deleteFrameData(e){this.frameDataPool.delete(e)}dispose(){var e,r;this.context.dispose(),this.frameDataPool.clear(),this.isDrawLoopRunning=!1,this.lastFrameCounter=-1,(e=this.gestureRecognizer)==null||e.delete(),this.gestureRecognizer=null,(r=this.gestureListener)==null||r.delete(),this.gestureListener=null}flushAnalytics(){this.context.flushAnalytics()}extractCentaurusLicense(e){return{payload:{centaurus:{licenseKey:this.Module.LicenseUtils[fe.get3dPartyLicenseKeyMethodName](e)}}}}getModeDeserializers(){return new this.Module.VectorDataCaptureModeDeserializer}loadLibrary(e){return this.libraryLoadingPromise!=null?this.libraryLoadingPromise:(this.libraryLoadingPromise=this.setup(e),this.libraryLoadingPromise)}processFrame(e){var r;if(this.context==null)return{payload:e,transferables:[e.data.buffer]};let a=e.data,s=e.colorType==="GRAYSCALE"?this.Module.ImageBufferFormat.Grayscale8:this.Module.ImageBufferFormat.Rgba8888,i=this.Module.allocateUint8Array(a.byteLength);return this.Module.HEAPU8.set(a,i),(r=this.imageFrameSource)==null||r.outputFrame(i,e.width,e.height,s),{payload:e,transferables:[e.data.buffer]}}reportCameraProperties(e){this.context.setCameraProperties(e.deviceId,e.isFrontFacing,e.hasAutofocus)}requestFrameData(e){let r=this.frameDataPool.get(e);return r==null?{payload:{data:null}}:{payload:{data:r},transferables:[r.buffer]}}scheduleRedraw(e,r){this.addRedrawRequest(r),this.isDrawLoopRunning||this.startDrawLoop(e)}sendViewRefreshCommands(e){this.workerFunctions.postMessage({type:"draw",payload:e},[e.buffer])}setFrameSource(e,r){var a;this.lastUsedModuleMirrorAxis=this.mapMirrorAxisOnModule(e),(a=this.imageFrameSource)==null||a.delete(),this.imageFrameSource=new this.Module.ImageBufferFrameSource(this.lastUsedModuleMirrorAxis,r,0),this.context.setFrameSource(this.imageFrameSource)}startDrawLoop(e){this.isDrawLoopRunning=!0;let r=i=>this.redrawRequests.length>0&&this.redrawRequests[0]<=i,a=i=>{for(;this.redrawRequests.length>0&&this.redrawRequests[0]<=i;)this.redrawRequests.shift()},s=()=>{this.loopTimeoutId=setTimeout(()=>{if(!this.isDrawLoopRunning)return;let i=performance.now();if(r(i)){a(i),e.draw();let n=e.getDrawCommands();this.sendViewRefreshCommands(new Uint8Array(n))}s()},this.redrawInterval)};s()}updateContext(e){if(this.context!=null&&this.contextDeserializer!=null){e.view!=null&&!e.view.visible&&this.context.flushAnalytics();let r=this.onBeforeUpdateContextHook(e),a=this.contextDeserializer.updateContextFromJson(this.context,this.view,JSON.stringify(r.context));if(a==null){let i=this.contextDeserializer.getLastError();throw new Error(`Could not update the context: ${i}`)}this.context.delete(),this.context=a.getContext();let s=a.getView();a.delete(),s!=null&&r.view!=null&&s.setViewSize(r.view.width,r.view.height,r.view.orientation),this.hintPresenterV2!=null&&s?.setHintPresenterV2(this.hintPresenterV2),this.gestureRecognizer!=null&&s?.setGestureRecognizer(this.gestureRecognizer),this.setView(s),l.debug("context updated",r)}}onBeforeUpdateContextHook(e){return e}onDocumentVisibilityChange(e){e==="hidden"&&this.context.flushAnalytics()}isFeatureSupported(e){return{payload:{supported:this.context.isFeatureSupported(e)}}}getViewfinderInfo(){var e,r;return{payload:{isDisplayingViewfinder:(r=(e=this.view)==null?void 0:e.isDisplayingViewfinder())!=null?r:!1,rect:JSON.parse(this.view.getViewfinderRect())}}}getOpenSourceSoftwareLicenseInfo(){return{payload:{licenseText:this.Module.OpenSourceSoftwareLicenseInfo.getLicenseText()}}}getNextFrameId(){return this.lastFrameCounter++,this.lastFrameCounter>=this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL&&(this.lastFrameCounter=0),this.lastFrameCounter}getWasmDynamicLibraries(e){return this.getWasmSideModuleFileName()==null?[]:[`${e.replace(/\\/[^/]*$/,"/")}${this.getWasmSideModuleFileName()}`]}getWasmCoreExpectedHash(e,r){return r?e?"8ac882e50ba88fc341fbf5ecd57884bf34b6a6cdf7d30fc8e24d1dc14c9a76ba":"517ab94a19c7ab71786fae04033a980c054ded17a8285d877ff95b178ddc14c4":e?"8f7cb4234f848774e599659ec12607e6c9de81a94776275dcac3058503e34019":""}getWasmCoreFileName(e,r){return r?e?"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":"scandit-datacapture-sdk-barcode-pthreads.wasm":e?"scandit-datacapture-sdk-barcode-simd.wasm":""}getWasmMetadata(){return p}getWasmSideModuleFileName(){return""}_loadProgressCallback(e){this.workerFunctions.postMessage({type:"loadLibraryProgress",payload:e})}addRedrawRequest(e){this.redrawRequests.push(Math.round(performance.now())+e),this.redrawRequests.sort((r,a)=>r-a)}contextDidChangeStatus(e){e.code===260?e.message=e.message.replace("domain name",`domain name (${Q(location)})`):e.code===265&&(e.message=e.message.replace("domain name",`domain name (${this.parentDomain})`)),this.workerFunctions.postMessage({type:"contextDidChangeStatus",payload:e})}didStartObservingContext(){this.workerFunctions.postMessage({type:"didStartObservingContext"})}mapMirrorAxisOnModule(e){switch(e){case"None":return this.Module.Axis.None;case"X":return this.Module.Axis.X;case"Y":return this.Module.Axis.Y;default:return this.Module.Axis.None}}setView(e){this.view=e,this.setViewRefreshHandler(e),e==null&&(this.isDrawLoopRunning=!1,this.sendViewRefreshCommands(new Uint8Array([])))}addNativeOverlay(e){l.warn("addNativeOverlay has not been implemented for this module",e)}removeNativeOverlay(e){l.warn("removeNativeOverlay has not been implemented for this module",e)}setViewRefreshHandler(e){if(e==null||e.isViewRefreshHandlerSet)return;let r=this.Module.NeedsRedrawDelegate.extend("NeedsRedrawDelegate",{setNeedsRedrawIn:this.scheduleRedraw.bind(this,e)}),a=new r;e.setNeedsRedrawDelegate(a),e.isViewRefreshHandlerSet=!0}setupDataDecoding(){let e=this.moduleHandler.get(),r=e.DataDecoding.extend("DataDecoding",{decode(a,s){try{let i=JSON.parse(s),n=[];for(let o of i){let d=new TextDecoder(o.ianaName,{fatal:!0});n.push(d.decode(a.slice(o.startIndex,o.endIndex)))}return n.join("")}catch{return""}}});e.setDataDecoding(new r)}start(e,r,a){e&&r&&(this.setupDataDecoding(),this.moduleHandler.get().callMain(),this.moduleHandler.get().__emscripten_proxy_main!==void 0||a())}getWritableDataPath(e){return e!=null?(l.debug(`IndexedDB database name override in use to recover from blocked standard database: ${e}`),e):this.writableDataPathStandard}numOfMBToPages(e){return Math.ceil(1024*e*1024/64/1024)}async setup({libraryLocation:e,locationPath:r,writableDataPathOverride:a,overrideThreadsSupport:s,overrideSimdSupport:i,verifyResponseHash:n,referredOrigin:o,fixedWasmMemory:d}){var c;let h=!1,m=!1;this.writableDataPath=this.getWritableDataPath(a),this.resourcePath=`${e}${this.resourceFilesSubfolder}/`,globalThis.path=r;let{resolve:g,reject:b,promise:v}=new he,w=I.sdkVersion();if(w==="")throw new B({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let[M,u]=await Promise.all([me(),be()]);s!=="auto"&&(u=s==="on"),i!=="auto"&&(M=i==="on");let f=this.getWasmCoreFileName(M,u),O=pe(w,e,f),{jsURI:U,wasmURI:te}=O,Ae={instantiateWasm:(S,Be)=>(le({importObject:S,wasmURI:te,expectedHash:this.getWasmCoreExpectedHash(M,u),verifyResponseHash:n,successCallback:Be,progressCallback:this._loadProgressCallback,errorCallback:Pe=>{b(Pe)},referredOrigin:o}),{})},A=d===null?null:new WebAssembly.Memory({initial:this.numOfMBToPages(d),maximum:this.numOfMBToPages(300),shared:u});return A!==null&&l.log(l.Level.Debug,"Fixed wasmMemory set",A),this.moduleHandler.set({...A?{wasmMemory:A}:{},mainScriptUrlOrBlob:U,canvas:(c=this.workerFunctions.getOffscreenCanvas())!=null?c:{getContext:()=>null},...Ae,dynamicLibraries:this.getWasmDynamicLibraries(te),locateFile:S=>e+S,noInitialRun:!0,preRun:[async()=>{try{await ie({writableDataPath:this.writableDataPath})}catch(S){if(S.name==="BlockedIndexedDB"){b(S.toString());return}l.log(l.Level.Debug,"No IndexedDB support, some data will not be persisted:",S)}m=!0,this.start(m,h,g)}],onMainComplete:()=>{if([h,m].includes(!1)){l.log(l.Level.Warn,{runtimeLoaded:h,fileSystemSynced:m},"Both runtimeLoaded and fileSystemSynced should be true when calling onMainComplete"),b("onMainComplete has been called but runtime or file system was not ready.");return}g()},onRuntimeInitialized:()=>{h=!0,this.start(m,h,g)},print:S=>{l.log(l.Level.Info,S)}}),await ue(U,w)||b(`Couldn\'t retrieve Scandit Data Capture library at ${U}, did you configure the path for it correctly?`),v}};ge.get3dPartyLicenseKeyMethodName=atob("Z2V0QmxpbmtJZExpY2Vuc2VLZXk=");var D=ge;function ye(t){return typeof t=="object"&&t!=null&&t.document==null&&"addEventListener"in t&&typeof t.importScripts=="function"}function Se(t){console.warn("Reached unexpected case",t)}var ee=class{constructor(t,e){this.onMessageListener=this.onMessage.bind(this),this.workerSelf=t,this.dataCaptureInstance=new D(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),ye(t)&&this.listenToMessages()}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",t=>{l.log(l.Level.Error,t)}),this.workerSelf.addEventListener("messageerror",t=>{l.log(l.Level.Error,t)})}postMessage(t,e){this.workerSelf.postMessage(t,e??[])}getOffscreenCanvas(){if(typeof this.workerSelf.OffscreenCanvas=="function")return new this.workerSelf.OffscreenCanvas(32,32)}hasPayload(t){return F(t)&&"payload"in t}hasTransferables(t){return F(t)&&Array.isArray(t.transferables)}async respondWith(t,e,r){let a=null,s;try{s=r(),s instanceof Promise&&(s=await s)}catch(n){s=void 0,a=C(n)}let i={type:"workerTaskId",command:t,id:e,payload:this.hasPayload(s)?s.payload:void 0};a!=null&&(i.error=a),this.postMessage(i,this.hasTransferables(s)?s.transferables:[])}onMessage(t){switch(t.data.command){case"loadLibrary":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,writableDataPathOverride:e.writableDataPathOverride,overrideThreadsSupport:e.overrideThreadsSupport,overrideSimdSupport:e.overrideSimdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory}))}break}case"onTap":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point)})}break}case"hintPresenterV2update":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update()})}break}case"createContext":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain}))}break}case"setFrameSource":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource))}break}case"processFrame":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,width:e.width,height:e.height,colorType:e.colorType}))}break}case"requestFrameData":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId))}break}case"deleteFrameData":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId)})}break}case"updateContext":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e))}break}case"dispose":{this.respondWith(t.data.command,t.data.id,()=>this.dataCaptureInstance.dispose());break}case"flushAnalytics":{this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.flushAnalytics()});break}case"reportCameraProperties":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e))}break}case"setLogLevel":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{l.setLevel(e.level)})}break}case"extractCentaurusLicense":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey))}break}case"documentVisibility":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state)})}break}case"isFeatureSupported":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature))}break}case"getViewfinderInfo":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo())}break}case"getOpenSourceSoftwareLicenseInfo":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo())}break}case"addNativeOverlay":this.dataCaptureInstance.addNativeOverlay(t);break;case"removeNativeOverlay":this.dataCaptureInstance.removeNativeOverlay(t);break;default:return Se(t.data),!1}return!0}};var ve=(t=>(t.Body="body",t.Footnote="footnote",t))(ve||{}),L=(t=>(t.Start="start",t.Center="center",t.End="end",t))(L||{}),we=(t=>(t.Normal="normal",t.Wider="wider",t.FitText="fitText",t))(we||{}),Me=(t=>(t.Normal="normal",t.Taller="taller",t))(Me||{}),Fe=(t=>(t.Square="square",t.Rounded="rounded",t))(Fe||{}),T=(t=>(t.None="none",t.Check="check",t.ExclamationMark="exclamationMark",t))(T||{}),W=(t=>(t.Top="top",t.AboveViewFinder="aboveViewFinder",t.BelowViewFinder="belowViewFinder",t))(W||{}),Ce=(t=>(t.AboveViewFinder="aboveViewFinder",t.BelowViewFinder="belowViewFinder",t))(Ce||{}),ke=(t=>(t.BlackOnWhite="blackOnWhite",t.WhiteOnBlack="whiteOnBlack",t.Transparent="transparent",t))(ke||{}),x=(t=>(t.Success="success",t.Error="error",t.Warning="warning",t.Info="info",t.Notification="notification",t))(x||{}),De=(t=>(t[t.Ocr=0]="Ocr",t[t.HideLogo=1]="HideLogo",t[t.ShowTestLicenseMessage=2]="ShowTestLicenseMessage",t[t.AugmentedReality=5]="AugmentedReality",t[t.ActivityPingStatsAddon=8]="ActivityPingStatsAddon",t[t.ActivityPing=9]="ActivityPing",t[t.Registration=10]="Registration",t[t.Parser=11]="Parser",t[t.BarcodeCapture=14]="BarcodeCapture",t[t.Analytics=17]="Analytics",t[t.AnalyticsBatchMode=18]="AnalyticsBatchMode",t[t.AnalyticsScanContent=19]="AnalyticsScanContent",t[t.AnalyticsOnlineVerification=20]="AnalyticsOnlineVerification",t[t.SparkScan=21]="SparkScan",t[t.AamvaIdBarcodeVerification=22]="AamvaIdBarcodeVerification",t[t.MappingForTracking=23]="MappingForTracking",t[t.BarcodeFind=24]="BarcodeFind",t[t.MandatoryRegistration=25]="MandatoryRegistration",t[t.FeatureTracking=26]="FeatureTracking",t[t.IdCaptureViz=27]="IdCaptureViz",t[t.IdCaptureMrz=28]="IdCaptureMrz",t[t.IdCaptureBarcode=29]="IdCaptureBarcode",t[t.BarcodeSelectionAimToScan=30]="BarcodeSelectionAimToScan",t[t.BarcodeSelectionTapToScan=31]="BarcodeSelectionTapToScan",t[t.BarcodeCount=32]="BarcodeCount",t[t.BarcodePick=33]="BarcodePick",t[t.IdVerificationDataComparison=34]="IdVerificationDataComparison",t[t.SmartLabelBarcode=35]="SmartLabelBarcode",t[t.SmartLabelText=36]="SmartLabelText",t[t.VoidedIdDetection=37]="VoidedIdDetection",t[t.BarcodeArFull=38]="BarcodeArFull",t))(De||{});var E=class{constructor(e,r,a){this.barcodeAr=null;this.coreEngine=e,this.Module=r,this.workerFunctions=a}async forSettings(e){this.barcodeAr?.delete(),this.barcodeAr=new this.Module.BarcodeAr(this.coreEngine.context,JSON.stringify(e));let r=this.Module.BarcodeArListener.extend("BarcodeArListener",{didUpdateSession:(a,s,i)=>{let n=this.coreEngine.convertToLoadableFrameData(i);this.workerFunctions.postMessage({type:"barcodeArDidUpdateSession",payload:{session:JSON.parse(s.toJson()),frameData:n}}),a.delete(),s.delete(),i.delete()}});this.barcodeAr.addListener(new r,1),this.Module.addBarcodeArToContext(this.coreEngine.context,this.barcodeAr)}start(){this.barcodeAr?.start()}pause(){this.barcodeAr?.pause()}stop(){this.barcodeAr?.stop()}setEnabled(e){this.barcodeAr?.setEnabled(e)}async removeMode(){this.barcodeAr!=null&&this.Module.removeBarcodeArFromContext(this.coreEngine.context,this.barcodeAr)}applySettings(e){this.barcodeAr?.applySettings(JSON.stringify(e))}};var R=class{constructor(e,r,a){this.trackingListenerSet=!1;this.coreEngine=e,this.Module=r,this.workerFunctions=a,this.setup()}barcodeBatchDidUpdateSession(e){this.workerFunctions.postMessage({type:"barcodeBatchDidUpdateSession",payload:JSON.parse(e.toJson())})}getBatchDeserializer(){return this.barcodeBatchDeserializer}setup(){let e=this.Module.BarcodeBatchListener.extend("BarcodeTrackingListener",{didUpdateSession:(a,s,i)=>{this.barcodeBatchDidUpdateSession(s),a.delete(),s.delete(),i.delete()},onTrackedBarcodeTapped:(a,s)=>{this.onTrackedBarcodeTapped(s),a.delete(),s.delete()}}),r=this.Module.BarcodeBatchDeserializerListener.extend("BarcodeTrackingDeserializerListener",{onModeDeserializationFinished:(a,s,i)=>{this.trackingListenerSet||(s.addListener(new e,1),this.trackingListenerSet=!0),a.delete(),s.delete(),i.delete()},onModeDeserializationStarted(a,s,i){a.delete(),s.delete(),i.delete()},onSettingsDeserializationStarted(a,s,i){a.delete(),s.delete(),i.delete()},onSettingsDeserializationFinished(a,s,i){a.delete(),s.delete(),i.delete()}});this.barcodeBatchDeserializer=new this.Module.BarcodeBatchDeserializer,this.barcodeBatchDeserializer.setListener(new r)}onTrackedBarcodeTapped(e){this.workerFunctions.postMessage({type:"didTapTrackedBarcode",payload:JSON.parse(e.toJson())})}};var N=class{constructor(e,r,a){this.captureListenerSet=!1;this.coreEngine=e,this.Module=r,this.workerFunctions=a,this.setup()}barcodeCaptureDidUpdateSession(e){this.workerFunctions.postMessage({type:"barcodeCaptureDidUpdateSession",payload:JSON.parse(e.toJson())})}barcodeBatchDidUpdateSession(e){this.workerFunctions.postMessage({type:"barcodeBatchDidUpdateSession",payload:JSON.parse(e.toJson())})}getCaptureDeserializer(){return this.barcodeCaptureDeserializer}getTrackingDeserializer(){return this.barcodeBatchDeserializer}setup(){let e=this.Module.BarcodeCaptureListener.extend("BarcodeCaptureListener",{didScan:(n,o,d)=>{this.barcodeCaptureDidScan(o,d),n.delete(),d.delete(),o.delete()},didUpdateSession:(n,o,d)=>{this.barcodeCaptureDidUpdateSession(o),n.delete(),d.delete(),o.delete()}}),r=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback()}}),a=new e,s=new r,i=this.Module.BarcodeCaptureDeserializerListener.extend("BarcodeCaptureDeserializerListener",{onModeDeserializationFinished:(n,o,d)=>{o.addListener(a,1),o.setSuccessFeedback(s),n.delete(),o.delete(),d.delete()},onModeDeserializationStarted(n,o,d){n.delete(),o.delete(),d.delete()},onSettingsDeserializationStarted(n,o,d){n.delete(),o.delete(),d.delete()},onSettingsDeserializationFinished(n,o,d){n.delete(),o.delete(),d.delete()}});this.barcodeCaptureDeserializer=new this.Module.BarcodeCaptureDeserializer,this.barcodeCaptureDeserializer.setListener(new i)}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"})}barcodeCaptureDidScan(e,r){let a=this.coreEngine.convertToLoadableFrameData(r);this.workerFunctions.postMessage({type:"barcodeCaptureDidScan",payload:{session:JSON.parse(e.toJson()),frameData:a}})}};function Xe(t){return t.charAt(0).toUpperCase()+t.slice(1)}function xe(t){return t}var H=class{constructor(e,r,a){this.barcodeFind=null;this.basicOverlay=null;this.transparentGuidanceHintStyle={backgroundColor:"00000000",cornerRadius:4,fitToText:!1,isAnimatedToView:!1,textAlignment:L.Center,hintIcon:T.None,hintAnchor:W.AboveViewFinder,hintAnchorOffset:-12,horizontalMargin:0,iconColor:"00000000",lineHeight:-1,maxLines:1,maxWidthFraction:.8,textColor:"ffffffff",textSize:15,textWeight:600};this.customerTransformation=xe;this.coreEngine=e,this.Module=r,this.workerFunctions=a}async forSettings(e){this.barcodeFind?.delete(),this.barcodeFind=new this.Module.BarcodeFind(this.coreEngine.context,JSON.stringify(e));let r=this.Module.Feedback.extend("Feedback",{emit:()=>{this.listUpdatedFeedback()}}),a=this.Module.Feedback.extend("Feedback",{emit:()=>{this.barcodeFindFeedback()}}),s=this.Module.BarcodeFindTransformer.extend("BarcodeFindTransformer",{transformBarcodeData:n=>this.customerTransformation(n)}),i=this.Module.BarcodeFindListener.extend("BarcodeFindListener",{didUpdateSession:(n,o,d)=>{let c=this.coreEngine.convertToLoadableFrameData(d);this.workerFunctions.postMessage({type:"barcodeFindDidUpdateSession",payload:{session:JSON.parse(o.toJson()),frameData:c}}),n.delete(),o.delete(),d.delete()},onSearchPaused:n=>{let o=[];for(let d=0;d<n.size();d++)o.push(n.get(d));this.workerFunctions.postMessage({type:"barcodeFindSearchPaused",payload:{foundItems:o}})},onSearchStopped:n=>{let o=[];for(let d=0;d<n.size();d++)o.push(n.get(d));this.workerFunctions.postMessage({type:"barcodeFindSearchStopped",payload:{foundItems:o}})},onSearchStarted:()=>{this.workerFunctions.postMessage({type:"barcodeFindSearchStarted",payload:{}})}});this.barcodeFind.setBarcodeFindTransformer(new s),this.barcodeFind.addListener(new i,1),this.barcodeFind.setItemListUpdatedFeedback(new r),this.barcodeFind.setFeedback(new a),this.Module.addBarcodeFindToContext(this.coreEngine.context,this.barcodeFind)}barcodeFindFeedback(){this.workerFunctions.postMessage({type:"barcodeFindFeedback",payload:{}})}start(){this.barcodeFind?.start()}stop(){this.barcodeFind?.stop()}pause(){this.barcodeFind?.pause()}setEnabled(e){this.barcodeFind?.setEnabled(e)}setItemList(e){this.barcodeFind?.setItemList(JSON.stringify(e))}async removeMode(){this.barcodeFind!=null&&this.Module.removeBarcodeFindFromContext(this.coreEngine.context,this.barcodeFind)}addBasicOverlay(){this.basicOverlay?.delete(),this.basicOverlay=null,this.barcodeFind!=null&&(this.basicOverlay=new this.Module.BarcodeFindBasicOverlay(this.barcodeFind)),this.coreEngine.view!=null&&this.basicOverlay!=null&&(this.basicOverlay.setGuidanceHandler(this.createWebFindGuidanceHandler()),this.Module.addBarcodeFindBasicOverlayToView(this.coreEngine.view,this.basicOverlay))}removeBasicOverlay(){this.coreEngine.view!=null&&this.basicOverlay!=null&&this.Module.removeBarcodeFindBasicOverlayFromView(this.coreEngine.view,this.basicOverlay)}async applySettings(e){this.barcodeFind?.applySettings(JSON.stringify(e))}updateBasicOverlay(e){let r=Object.entries(e).filter(([a,s])=>a!=="type");for(let[a,s]of r){let i=`set${Xe(a)}`;this.basicOverlay!=null&&typeof this.basicOverlay[i]=="function"&&s!=null&&this.basicOverlay[i](s)}}setTransformerFunction(e){this.customerTransformation=e??xe}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"})}listUpdatedFeedback(){this.workerFunctions.postMessage({type:"barcodeFindListUpdatedFeedback",payload:{}})}setToast(e,r){let a=this.coreEngine.hintPresenterV2;e?a?.showToast(JSON.stringify(r)):a?.hideToast(r.tag)}setGuidance(e,r,a){let s={tag:a,text:r,hintStyle:this.transparentGuidanceHintStyle};this.workerFunctions.postMessage({type:e?"showGuidance":"hideGuidance",payload:s})}createWebFindGuidanceHandler(){let e=this.Module.BarcodeFindGuidanceHandler.extend("BarcodeFindGuidanceHandler",{setInitialGuidance:(r,a)=>{this.setGuidance(r,a,"InitialGuidance")},setMoveCloserGuidance:(r,a)=>{this.setGuidance(!1,a,"InitialGuidance"),this.setGuidance(r,a,"MoveCloserGuidance")},setAllItemsFound:(r,a)=>{let s={text:a,toastHintStyle:x.Success,tag:"AllItemsFound"};this.setToast(r,s)},setTapShutterToPause:(r,a)=>{this.setGuidance(!1,a,"InitialGuidance"),this.setGuidance(r,a,"TapShutterToPause")},setTapShutterToResume:(r,a)=>{this.setGuidance(!1,a,"InitialGuidance"),this.setGuidance(r,a,"TapShutterResume")},setItemListUpdated:(r,a)=>{let s={text:a,toastHintStyle:x.Info,tag:"ItemListUpdated"};this.setToast(r,s)}});return new e}};var y=class{constructor(e){this.subscribers=new Set;this.property={key:e,value:null}}addSubscriber(e){this.subscribers.add(e),e.onPropertyChanged?.(this.property)}removeSubscriber(e){this.subscribers.delete(e)}setProperty(e){if(this.property.value!==e.value){this.property={key:this.property.key,value:e.value};for(let r of this.subscribers)r.onPropertyChanged?.(this.property)}}};var Ye={torch_state:new y("torch_state"),scanning_mode:new y("scanning_mode"),sound_enabled:new y("sound_enabled"),haptic_enabled:new y("haptic_enabled"),hand_mode:new y("hand_mode"),session_stop_reason:new y("session_stop_reason"),camera_position:new y("camera_position")},_=class{getBehaviorSubject(e){return Ye[e]}};var z=class{constructor(e,r,a){this.captureListenerSet=!1;this.propertyPushSource=new _;this.coreEngine=e,this.Module=r,this.workerFunctions=a,this.setup()}sparkScanDidUpdateSession(e){this.workerFunctions.postMessage({type:"sparkScanDidUpdateSession",payload:JSON.parse(e.toJson())})}getSparkScanDeserializer(){return this.sparkScanDeserializer}setup(){let e=this.Module.SparkScanListener.extend("SparkScanListener",{didScan:(s,i,n)=>{this.sparkScanDidScan(i,n),s.delete(),i.delete(),n.delete()},didUpdateSession:(s,i,n)=>{this.sparkScanDidUpdateSession(i),s.delete(),i.delete(),n.delete()}}),r=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback()}}),a=this.Module.SparkScanDeserializerListener.extend("SparkScanDeserializerListener",{onModeDeserializationFinished:(s,i,n)=>{this.captureListenerSet||(i.addListener(new e,1),i.setSuccessFeedback(new r),i.setPropertyPushSource(this.propertyPushSource),this.captureListenerSet=!0),s.delete(),i.delete(),n.delete()},onModeDeserializationStarted(s,i,n){s.delete(),i.delete(),n.delete()},onSettingsDeserializationStarted(s,i,n){s.delete(),i.delete(),n.delete()},onSettingsDeserializationFinished(s,i,n){s.delete(),i.delete(),n.delete()},onOverlayDeserializationStarted(s,i,n){s.delete(),i.delete(),n.delete()},onOverlayDeserializationFinished:(s,i,n)=>{this.sparkScanOverlay?.delete(),this.sparkScanOverlay=i,s.delete(),n.delete()}});this.sparkScanDeserializer=new this.Module.SparkScanDeserializer,this.sparkScanDeserializer.setListener(new a)}emitErrorFeedback(e){this.sparkScanOverlay?.onErrorFeedbackEmitted(e)}overlayReadyForDraw(){this.sparkScanOverlay?.onReadyForNewData()}analyticsManagerPropertyChanged(e){this.propertyPushSource.getBehaviorSubject(e.key).setProperty(e)}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"})}sparkScanDidScan(e,r){let a=this.coreEngine.convertToLoadableFrameData(r);this.workerFunctions.postMessage({type:"sparkScanDidScan",payload:{session:JSON.parse(e.toJson()),frameData:a}})}};var V=class extends D{constructor(e,r){super(e,r)}getModeDeserializers(){this.barcodeCaptureMode=new N(this,this.Module,this.workerFunctions),this.barcodeBatchMode=new R(this,this.Module,this.workerFunctions),this.sparkScanMode=new z(this,this.Module,this.workerFunctions),this.barcodeFindMode=new H(this,this.Module,this.workerFunctions),this.barcodeArMode=new E(this,this.Module,this.workerFunctions);let e=super.getModeDeserializers();return e.push_back(this.barcodeCaptureMode.getCaptureDeserializer()),e.push_back(this.barcodeBatchMode.getBatchDeserializer()),e.push_back(this.sparkScanMode.getSparkScanDeserializer()),e}getWasmSideModuleFileName(){return""}getWasmCoreFileName(e,r){return r?e?"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":"scandit-datacapture-sdk-barcode-pthreads.wasm":e?"scandit-datacapture-sdk-barcode-simd.wasm":"scandit-datacapture-sdk-barcode.wasm"}getWasmCoreExpectedHash(e,r){return r?e?"8ac882e50ba88fc341fbf5ecd57884bf34b6a6cdf7d30fc8e24d1dc14c9a76ba":"517ab94a19c7ab71786fae04033a980c054ded17a8285d877ff95b178ddc14c4":e?"8f7cb4234f848774e599659ec12607e6c9de81a94776275dcac3058503e34019":"c6de50c857b6809783418314b7e41ef212370d575f2a17672ae3349518e8dbaa"}getWasmMetadata(){return p}};function Ze(t){return(r=>/^[$A-Z_a-z][\\w$]*\\s*\\(.*\\)\\s*\\{/.test(r)&&!r.startsWith("function"))(t)?`function ${t}`:t}var Qe=["fetch","XMLHttpRequest","eval","Function","self","globalThis","Module","importScripts","this","console","window","document","import","Worker","ServiceWorker"];function et(t){return Qe.map(r=>new RegExp(`\\\\b${r}\\\\b`,"g")).some(r=>r.test(t))}function Oe(t){if(t==null)return null;let e=Ze(t);if(et(e))throw new Error("Function should be pure. Shouldn\'t introduce side effects, or rely on global scope");let r=`\'use strict\';\n return (${e});`;try{return new Function(r)()}catch{return null}}var J=class extends ee{constructor(e,r){super(e,r),this.dataCaptureInstance=new V(r,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)})}async respondWith(e,r,a){let s=null,i;try{i=a(),i instanceof Promise&&(i=await i)}catch(o){i=void 0,s=C(o)}let n={type:"workerTaskId",command:e,id:r,payload:this.hasPayload(i)?i.payload:void 0};s!=null&&(n.error=s),this.postMessage(n,this.hasTransferables(i)?i.transferables:[])}onMessage(e){switch(e.data.command){case"sparkScanEmitErrorFeedback":{let{data:r}=e;return this.respondWith(r.command,r.id,()=>{this.dataCaptureInstance.sparkScanMode.emitErrorFeedback(r.shouldRemoveBrush)}),!0}case"sparkScanOverlayReadyForDraw":{let{data:r}=e;return this.respondWith(r.command,r.id,()=>{this.dataCaptureInstance.sparkScanMode.overlayReadyForDraw()}),!0}case"sparkScanAnalyticsManagerPropertyChanged":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.sparkScanMode.analyticsManagerPropertyChanged(r.property)}),!0}case"barcodeFindForSettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeFindMode.forSettings(r.settings)),!0}case"barcodeFindModeRemove":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeFindMode.removeMode()),!0}case"barcodeFindSearchStart":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.start()}),!0;case"barcodeFindSearchPause":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.pause()}),!0;case"barcodeFindSearchStop":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.stop()}),!0;case"barcodeFindSetItemList":{let{data:r}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setItemList(r.itemList)}),!0}case"barcodeFindSetEnabled":{let{data:r}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setEnabled(r.enabled)}),!0}case"barcodeFindApplySettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeFindMode.applySettings(r.settings)),!0}case"barcodeFindAddBasicOverlay":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeFindMode.addBasicOverlay()}),!0}case"barcodeFindRemoveBasicOverlay":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeFindMode.removeBasicOverlay()}),!0}case"barcodeFindUpdateBasicOverlay":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeFindMode.updateBasicOverlay(r.jsonOverlay)}),!0}case"barcodeFindSetTransformerFunction":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{let a=Oe(r.functionAsString);this.dataCaptureInstance.barcodeFindMode.setTransformerFunction(a)}),!0}case"barcodeArForSettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeArMode.forSettings(r.settings)),!0}case"barcodeArModeRemove":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeArMode.removeMode()),!0}case"barcodeArSearchStart":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.start()}),!0;case"barcodeArSearchPause":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.pause()}),!0;case"barcodeArSearchStop":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.stop()}),!0;case"barcodeArSetEnabled":{let{data:r}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.setEnabled(r.enabled)}),!0}case"barcodeArApplySettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeArMode.applySettings(r.settings)}),!0}default:return super.onMessage(e)}}};var ea=new J(globalThis,{get:()=>globalThis.Module,set:t=>{globalThis.Module=t}});function ta(t){}})();\n'],{type:"application/javascript"})),e=new Worker(s,r);return URL.revokeObjectURL(s),e}var o=class r extends DataCaptureLoader{constructor(){super(...arguments);this._name="BarcodeCapture";}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=n({name:this.name})),this._dataCaptureWorker}get name(){return this._name}static async create(e){var a;let t=new r(e);return await t.workerCommand("setLogLevel",{level:(a=e.logLevel)!=null?a:Logger.Level.Debug}),await t.load(),t}async workerCommand(e,t,a){return new Promise((d,c)=>{let i=this.workerCommandId++;this.workerTasks.set(i,{resolve:d,reject:c,command:e});let l={...t,command:e,id:i};this.dataCaptureWorker.postMessage(l,a);})}};
2
+ export{o as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-ZF7YEGPW.js';import {b}from'./chunk-DHCNYKSL.js';import {Brush}from'@scandit/web-datacapture-core';var s=class o{constructor(){this.type="sparkScan";this._shouldShowScanAreaGuides=false;this._shouldRemoveLocationsAfterScan=true;this._shouldDrawViewfinder=false;this._style=b.SparkScan.SparkScanOverlay.defaultStyle;this._viewfinder=new a;}get style(){return this._style}static async withSparkScanForView(a,r){let t=new o;return t.sparkScan=a,await t.setBrush(new Brush(b.SparkScan.SparkScanOverlay.DefaultBrush.fillColor,b.SparkScan.SparkScanOverlay.DefaultBrush.strokeColor,b.SparkScan.SparkScanOverlay.DefaultBrush.strokeWidth)),r&&await r.addOverlay(t),t}setRadius(a){this._viewfinder.radius=a;}getBrush(){return this._brush}async setBrush(a){this._brush=a,await this.sparkScan.notifyContext();}async overlayReadyForDraw(){await this.sparkScan.workerCommand("sparkScanOverlayReadyForDraw",{});}async setErrorBrush(a){this._errorBrush=a,await this.sparkScan.notifyContext();}async setShouldShowScanAreaGuides(a){this._shouldShowScanAreaGuides=a,await this.sparkScan.notifyContext();}async setShouldRemoveLocationsAfterScan(a){this._shouldRemoveLocationsAfterScan=a,await this.sparkScan.notifyContext();}async setShouldDrawViewfinder(a){this._shouldDrawViewfinder=a,await this.sparkScan.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var a,r;return {type:this.type,brush:this._brush.toJSONObject(),errorBrush:(r=(a=this._errorBrush)==null?void 0:a.toJSONObject())!=null?r:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:this._viewfinder.toJSONObject(),style:this.style,shouldDrawViewfinder:this._shouldDrawViewfinder}}};export{s as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-2RKBANN2.js';var i=class{constructor(){this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>this.symbologies[e].isEnabled)}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,!0);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}toJSONObject(){return {properties:this.properties,symbologies:Object.keys(this.symbologies).reduce((e,o)=>(e[o]=this.symbologies[o].toJSONObject(),e),{})}}};export{i as a};
1
+ import {b}from'./chunk-DHCNYKSL.js';var i=class{constructor(){this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>this.symbologies[e].isEnabled)}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,true);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}toJSONObject(){return {properties:this.properties,symbologies:Object.keys(this.symbologies).reduce((e,o)=>(e[o]=this.symbologies[o].toJSONObject(),e),{})}}};export{i as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-ZBWUSH2F.js';import {b}from'./chunk-DHCNYKSL.js';import {Brush}from'@scandit/web-datacapture-core';var h=(a=>(a.Frame="frame",a.Dot="dot",a))(h||{}),o=class c{constructor(){this.type="barcodeTrackingBasic";this._style=b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle;this._shouldShowScanAreaGuides=false;this._brushesForBarcodes=new Map;}get style(){return this._style}get listener(){return this._listener}set listener(e){this._listener=e;}get brush(){return this._brush}static async withBarcodeBatch(e){return c.withBarcodeBatchForView(e,null)}static async withBarcodeBatchForView(e,a){return c.withBarcodeBatchForViewWithStyle(e,a,b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle)}static async withBarcodeBatchForViewWithStyle(e,a$1,s){let r=new c;return r.barcodeBatch=e,r._style=s,r._brush=new Brush(b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.fillColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeWidth),a$1&&await a$1.addOverlay(r),r.privateListener=new a(r),e.addPrivateListener(r.privateListener),r}async setBrush(e){this._brush=e,await this.barcodeBatch.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}async setShouldShowScanAreaGuides(e){this._shouldShowScanAreaGuides=e,await this.barcodeBatch.notifyContext();}async setBrushForTrackedBarcode(e,a){this._brushesForBarcodes.set(a.identifier,e),await this.barcodeBatch.notifyContext();}async clearTrackedBarcodeBrushes(){this._brushesForBarcodes.clear(),await this.barcodeBatch.notifyContext();}toJSONObject(){return {type:this.type,brush:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,style:this._style,brushesForBarcodes:[...this._brushesForBarcodes.entries()].reduce((e,[a,s])=>(e[a]=s.toJSONObject(),e),{})}}};export{h as a,o as b};
@@ -0,0 +1 @@
1
+ import {a as a$2}from'./chunk-OTZPCIBD.js';import {a as a$3}from'./chunk-NKRL5HIU.js';import {a}from'./chunk-QCD3RIT4.js';import {c as c$1,b as b$3}from'./chunk-SZUPDKV5.js';import {a as a$4}from'./chunk-XTOFHCOV.js';import {b}from'./chunk-JMUNN3HX.js';import {a as a$1,c,b as b$1}from'./chunk-P4F5WUAR.js';import {a as a$5}from'./chunk-UKOWYLLZ.js';import {b as b$2}from'./chunk-DHCNYKSL.js';import {DataCaptureView,Anchor,LogoStyle,CameraAccess,Camera,isCameraFrameSource,FrameSourceState,Color,CameraPosition,TorchState,Logger,NumberWithUnit,RadiusLocationSelection}from'@scandit/web-datacapture-core';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var P=class O{constructor(a$4,e,t,i){this.cameras=[];this.preferenceManager=new a(localStorage);this.defaultSuccessBrush=a$1.defaultSuccessBrush();this.defaultErrorBrush=a$1.defaultErrorBrush();this.sparkScanView=a$4,this.context=e,this.sparkScan=t,this.sparkScanViewSettings=i,this.stateManager=new a$2(this.sparkScanViewSettings,this.preferenceManager),this.feedbackManager=a$3.withDefaults(i.soundEnabled,i.hapticEnabled),this.analyticsManager=b.forContext(e),this.triggerButtonCollapseTimeout=new Timeout(this.sparkScanViewSettings.triggerButtonCollapseTimeout,async()=>{this.stateManager.state!=="idle"&&await this.switchToIdleState({sessionStopReason:"timeout"});}),this.inactiveStateTimeout=new Timeout(i.inactiveStateTimeout,async()=>{this.stateManager.state!=="inactive"&&!this.stateManager.holdingToScan&&await this.switchToInactiveState({sessionStopReason:"timeout"});}),this.switchToIdleState();}get portraitOrientationTriggerButtonTranslateX(){var a;return (a=this.stateManager.portraitOrientationTriggerButtonTranslateX)!=null?a:this.defaultTriggerButtonTranslateX}get portraitOrientationTriggerButtonTranslateY(){var a;return (a=this.stateManager.portraitOrientationTriggerButtonTranslateY)!=null?a:this.defaultTriggerButtonTranslateY}get landscapeOrientationTriggerButtonTranslateX(){var a;return (a=this.stateManager.landscapeOrientationTriggerButtonTranslateX)!=null?a:this.defaultTriggerButtonTranslateX}get landscapeOrientationTriggerButtonTranslateY(){var a;return (a=this.stateManager.landscapeOrientationTriggerButtonTranslateY)!=null?a:this.defaultTriggerButtonTranslateY}get portraitOrientationMiniPreviewTranslateX(){var a;return (a=this.stateManager.portraitOrientationMiniPreviewTranslateX)!=null?a:this.defaultMiniPreviewTranslateX}get portraitOrientationMiniPreviewTranslateY(){var a;return (a=this.stateManager.portraitOrientationMiniPreviewTranslateY)!=null?a:this.defaultMiniPreviewTranslateY}get landscapeOrientationMiniPreviewTranslateX(){var a;return (a=this.stateManager.landscapeOrientationMiniPreviewTranslateX)!=null?a:this.defaultMiniPreviewTranslateX}get landscapeOrientationMiniPreviewTranslateY(){var a;return (a=this.stateManager.landscapeOrientationMiniPreviewTranslateY)!=null?a:this.defaultMiniPreviewTranslateY}get defaultTriggerButtonTranslateX(){return this.parentViewSizes.width-Math.min(this.parentViewSizes.width/3,110)-90/2}get defaultTriggerButtonTranslateY(){return this.parentViewSizes.height-Math.min(this.parentViewSizes.height/3,250)-90/2}get defaultMiniPreviewTranslateX(){return this.parentViewSizes.width-225-16}get parentViewSizes(){var a,e;return {width:(a=this.sparkScanView.parentElement.clientWidth)!=null?a:window.innerWidth,height:(e=this.sparkScanView.parentElement.clientHeight)!=null?e:window.innerHeight}}get defaultMiniPreviewTranslateY(){return 16}static forView(a,e,t,i){return new O(a,e,t,i)}async prepareScanning(a){var i;this.context.addListener(this),this.dataCaptureView=await DataCaptureView.forContext(this.context),this.dataCaptureView.logoAnchor=Anchor.BottomCenter,this.dataCaptureView.logoStyle=LogoStyle.Minimal,this.dataCaptureView.setHiddenProperty("stopVideoTracksOnVisibilityChange",false),this.dataCaptureView.setHiddenProperty("freezeFrameWhenStoppingFrameSource",false),this.dataCaptureView.connectToElement(a);let e=await CameraAccess.getCameras();this.cameras=e.map(r=>Camera.fromDeviceCamera(r)),this.camera=isCameraFrameSource(this.context.frameSource)?this.context.frameSource:(i=this.cameras.find(r=>r.position===this.sparkScanViewSettings.defaultCameraPosition))!=null?i:Camera.default,await this.camera.applySettings(a$4.recommendedCameraSettings),await this.context.setFrameSource(this.camera),await this.camera.switchToDesiredState(FrameSourceState.Standby);let t=await this.camera.isTorchAvailable();this.sparkScanView.setTorchAvailable(t),this.sparkScanView.setZoomAvailable(this.camera.isZoomAvailable()),this.sparkScanView.cameraSwitchButtonTapped(t,this.camera.position),await this.context.addMode(this.sparkScan),this.sparkScan.addListener(this),this.sparkScanOverlay=await a$5.withSparkScanForView(this.sparkScan,this.dataCaptureView),await this.sparkScanOverlay.setShouldRemoveLocationsAfterScan(this.stateManager.scanningBehavior==="continuous"),this.analyticsManager.startSession({cameraPosition:this.camera.position,handMode:"right",hapticEnabled:this.sparkScanViewSettings.hapticEnabled,scanningMode:this.stateManager.scanningMode,soundEnabled:this.sparkScanViewSettings.soundEnabled,torchState:this.camera.getDesiredTorchState()}),await this.applyPreferences();}async startScanning(){await this.switchToActiveState();}async pauseScanning(){await this.switchToInactiveState({sessionStopReason:"user"});}async stopScanning(a){var e;await this.sparkScan.setEnabled(false),this.sparkScan.removeListener(this),await((e=this.camera)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),this.dataCaptureView.detachFromElement(),this.context.removeListener(this),this.analyticsManager.setSessionStopReason(a.sessionStopReason);}async onTriggerButtonPointerDown(){await this.sparkScan.setResultSuppressionEnabled(true);}async onTriggerButtonTap(){switch(await this.sparkScan.setResultSuppressionEnabled(false),this.stateManager.state){case "Initial":return;case "idle":case "inactive":case "error":{await this.switchToActiveState({barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)});return}case "active":await(this.stateManager.continuousModeEnabled?this.switchToInactiveState({sessionStopReason:"user",barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)}):this.switchToActiveState({barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)}));}}async onTriggerButtonLongPressStart(){var a;await this.sparkScan.setResultSuppressionEnabled(false),this.sparkScanViewSettings.holdToScanEnabled&&(this.scanningBehaviorCache=this.stateManager.scanningBehavior,this.stateManager.scanningBehavior="continuous",this.stateManager.holdingToScan=true,await((a=this.sparkScanOverlay)==null?void 0:a.setShouldRemoveLocationsAfterScan(true)),await this.switchToActiveState({barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)}));}async onTriggerButtonLongPressEnd(){var a,e;this.sparkScanViewSettings.holdToScanEnabled&&this.stateManager.state!=="error"&&(this.stateManager.scanningBehavior=(a=this.scanningBehaviorCache)!=null?a:"single",this.stateManager.holdingToScan=false,await((e=this.sparkScanOverlay)==null?void 0:e.setShouldRemoveLocationsAfterScan(this.stateManager.continuousModeEnabled)),await this.switchToInactiveState({sessionStopReason:"user",barcodeFeedback:new b$1("",0,Color.fromRGBA(0,0,0,0),this.defaultErrorBrush,this.feedbackManager.noFeedback)}));}async onClickOutside(){this.stateManager.idleState||await this.switchToIdleState();}async onVisibilityChange(){await this.switchToIdleState();}async onTargetModeButtonTap(a,e=this.feedbackManager.tapFeedback,t=true){var h,s,p;let i=String(a),r={true:a&&this.stateManager.scanningMode instanceof b$3,false:!a&&this.stateManager.scanningMode instanceof c$1}[i];r&&(this.stateManager.scanningMode=this.stateManager.scanningMode.changeMode()),this.enableTargetMode(a),await((h=this.sparkScanOverlay)==null?void 0:h.setShouldDrawViewfinder(a)),e.emit(),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.sparkScanView.targetModeButtonTapped(a,t),r&&((p=(s=this.listener)==null?void 0:s.didChangeScanningMode)==null||p.call(s,this.stateManager.scanningMode),this.analyticsManager.setScanningMode(this.stateManager.scanningMode));}async onScanningBehaviorButtonTap(a,e=this.feedbackManager.tapFeedback,t=true){var i;e.emit(),this.stateManager.scanningMode=this.stateManager.scanningMode.copyWith(a?"continuous":"single"),await((i=this.sparkScanOverlay)==null?void 0:i.setShouldRemoveLocationsAfterScan(a)),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.sparkScanView.scanningBehaviorButtonTapped(a,t),this.analyticsManager.setScanningMode(this.stateManager.scanningMode);}async onBarcodeFindButtonTap(){var a,e;await this.switchToIdleState({sessionStopReason:"user"}),(e=(a=this.listener)==null?void 0:a.didTapBarcodeFindButton)==null||e.call(a,this.sparkScanView),this.restartTimeouts();}async onLabelCaptureButtonTap(){var a,e;await this.switchToIdleState({sessionStopReason:"user"}),(e=(a=this.listener)==null?void 0:a.didTapLabelCaptureButton)==null||e.call(a,this.sparkScanView),this.restartTimeouts();}async onCameraSwitchButtonTap(){if(this.feedbackManager.emitTapFeedback(),this.restartTimeouts(),!this.camera||this.stateManager.state==="error")return;let a={[CameraPosition.WorldFacing]:CameraPosition.UserFacing,[CameraPosition.UserFacing]:CameraPosition.WorldFacing}[this.camera.position],e=this.cameras.find(t=>t.position===a);e&&(await this.camera.switchToDesiredState(FrameSourceState.Off),await e.applySettings(this.camera.settings),await this.context.setFrameSource(e),await e.switchToDesiredState(FrameSourceState.On),this.sparkScanView.cameraSwitchButtonTapped(await e.isTorchAvailable(),a),this.analyticsManager.setCameraPosition(a),this.camera=e);}async onTorchButtonTap(a,e=this.feedbackManager.tapFeedback,t=true){var i;e.emit(),this.stateManager.torchState=a?TorchState.On:TorchState.Off,((i=this.camera)==null?void 0:i.getCurrentState())===FrameSourceState.On&&await this.camera.setDesiredTorchState(this.stateManager.torchState),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.sparkScanView.torchButtonTapped(a,t),this.analyticsManager.setTorchState(this.stateManager.torchState);}restartTimeouts(){for(let a of [this.triggerButtonCollapseTimeout,this.inactiveStateTimeout,this.resumeCapturingTimeout])(a==null?void 0:a.running)===true&&a.start();}async onMiniPreviewCloseButtonTap(){await this.switchToIdleState({sessionStopReason:"user"});}onMiniPreviewResizeButtonTap(){this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.feedbackManager.emitTapFeedback(),this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start());}async onMiniPreviewZoomButtonTap(a){this.feedbackManager.emitTapFeedback(),this.stateManager.zoomFactor=a,this.camera&&(this.camera.settings.zoomFactor=a,await this.camera.applySettings(this.camera.settings)),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start());}async onMiniPreviewDrag(a,e){switch(this.stateManager.state==="active"&&await this.sparkScan.setEnabled(false),e){case "landscape-primary":case "landscape-secondary":{this.stateManager.landscapeOrientationMiniPreviewTranslateX=a.x,this.stateManager.landscapeOrientationMiniPreviewTranslateY=a.y;break}case "portrait-primary":case "portrait-secondary":{this.stateManager.portraitOrientationMiniPreviewTranslateX=a.x,this.stateManager.portraitOrientationMiniPreviewTranslateY=a.y;break}}this.restartTimeouts();}onMiniPreviewPointerMove(){this.restartTimeouts();}async onMiniPreviewPointerUp(){await this.switchToActiveState();}async onMiniPreviewDragEnd(){this.stateManager.state==="active"&&await this.sparkScan.setEnabled(true);}onTriggerButtonDrag(a,e){switch(e){case "landscape-primary":case "landscape-secondary":{this.stateManager.landscapeOrientationTriggerButtonTranslateX=a.x,this.stateManager.landscapeOrientationTriggerButtonTranslateY=a.y;break}case "portrait-primary":case "portrait-secondary":{this.stateManager.portraitOrientationTriggerButtonTranslateX=a.x,this.stateManager.portraitOrientationTriggerButtonTranslateY=a.y;break}}}async onOrientationChange(){this.stateManager.state==="error"&&await this.switchToInactiveState({sessionStopReason:"user"});}async didScan(a,e){if(!e.newlyRecognizedBarcode)return;let t=this.sparkScanView.feedbackDelegate.getFeedbackForBarcode(e.newlyRecognizedBarcode);t instanceof b$1?await this.switchToErrorState({barcodeFeedback:t}):t instanceof c&&await(this.stateManager.continuousModeEnabled?this.switchToActiveState({barcodeFeedback:t}):this.switchToInactiveState({sessionStopReason:"user",barcodeFeedback:t,emitSuccessFeedback:true})),this.restartTimeouts();}didChangeFrameSource(a,e){var t;if(isCameraFrameSource(e))this.camera=e;else {let i=(t=e==null?void 0:e.toJSONObject().type)!=null?t:"unknown";Logger.warn(`SparkScanView instances require a camera frame source to work, but a frame source of type "${i}" was found.`);}}setListener(a){this.listener=a;}brushForFeedback(a){return a.brush}async switchToIdleState(a={}){var e,t,i;this.feedbackManager.emitTapFeedback(),await((e=this.sparkScanOverlay)==null?void 0:e.overlayReadyForDraw()),this.setState("idle"),await this.sparkScan.setEnabled(false),await((t=this.camera)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby)),this.triggerButtonCollapseTimeout.stop(),this.inactiveStateTimeout.stop(),(i=this.resumeCapturingTimeout)==null||i.stop(),this.sparkScanView.switchToIdleState(),a.sessionStopReason!=null&&this.analyticsManager.setSessionStopReason(a.sessionStopReason);}async switchToActiveState(a={}){var t,i,r,o,h,s,p;let e=this.stateManager.state;await((t=this.camera)==null?void 0:t.switchToDesiredState(FrameSourceState.On)),await((i=this.camera)==null?void 0:i.setDesiredTorchState(this.stateManager.torchState)),a.barcodeFeedback&&await((r=this.sparkScanOverlay)==null?void 0:r.setBrush(this.brushForFeedback(a.barcodeFeedback))),await((o=this.sparkScanOverlay)==null?void 0:o.setShouldRemoveLocationsAfterScan(this.stateManager.continuousModeEnabled)),await((h=this.sparkScanOverlay)==null?void 0:h.overlayReadyForDraw()),this.feedbackManager.emitBarcodeFeedback(a.barcodeFeedback),this.stateManager.holdingToScan||this.inactiveStateTimeout.start(),this.triggerButtonCollapseTimeout.stop(),(s=this.resumeCapturingTimeout)==null||s.stop(),await this.sparkScanView.switchToActiveState(this.sparkScanViewSettings.visualFeedbackEnabled&&a.barcodeFeedback instanceof c,this.stateManager.scanningBehavior,(p=a.barcodeFeedback)==null?void 0:p.visualFeedbackColor,this.stateManager.zoomedIn&&e!=="active"),await this.sparkScan.setEnabled(true),this.setState("active");}async switchToInactiveState(a){var t,i,r,o,h,s;(a.emitSuccessFeedback)!=null||(a.emitSuccessFeedback=true),this.setState("inactive"),a.barcodeFeedback&&await((t=this.sparkScanOverlay)==null?void 0:t.setBrush(this.brushForFeedback(a.barcodeFeedback))),await this.sparkScan.setEnabled(false),this.stateManager.scanningMode.previewBehavior==="persistent"?a.barcodeFeedback instanceof c&&await((i=this.sparkScanOverlay)==null?void 0:i.setShouldRemoveLocationsAfterScan(true)):await((r=this.camera)==null?void 0:r.switchToDesiredState(FrameSourceState.Standby)),this.feedbackManager.emitBarcodeFeedback(a.barcodeFeedback),await((o=this.sparkScanOverlay)==null?void 0:o.overlayReadyForDraw()),this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.stop(),(h=this.resumeCapturingTimeout)==null||h.stop(),await this.sparkScanView.switchToInactiveState(this.sparkScanViewSettings.visualFeedbackEnabled&&a.barcodeFeedback instanceof c&&a.emitSuccessFeedback,this.stateManager.scanningBehavior,this.stateManager.previewBehavior,(s=a.barcodeFeedback)==null?void 0:s.visualFeedbackColor),this.analyticsManager.setSessionStopReason(a.sessionStopReason);}async switchToErrorState(a){var t,i,r,o;let e=a.barcodeFeedback.resumeCapturingDelay>0;e&&(this.setState("error"),this.stateManager.scanningBehavior="single",await this.sparkScan.setEnabled(false),await((t=this.camera)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby)),this.resumeCapturingTimeout=new Timeout(a.barcodeFeedback.resumeCapturingDelay,async()=>{this.stateManager.state!=="active"&&await this.switchToActiveState();}),this.resumeCapturingTimeout.start()),await((i=this.sparkScanOverlay)==null?void 0:i.setErrorBrush(a.barcodeFeedback.brush)),await((r=this.sparkScanOverlay)==null?void 0:r.overlayReadyForDraw()),await((o=this.sparkScanOverlay)==null?void 0:o.setShouldRemoveLocationsAfterScan(a.barcodeFeedback.resumeCapturingDelay===0)),await this.sparkScan.workerCommand("sparkScanEmitErrorFeedback",{shouldRemoveBrush:!e}),this.feedbackManager.emitBarcodeFeedback(a.barcodeFeedback),this.triggerButtonCollapseTimeout.stop(),this.inactiveStateTimeout.stop(),await this.sparkScanView.switchToErrorState(a.barcodeFeedback,this.sparkScanViewSettings.visualFeedbackEnabled);}enableTargetModeLocationSelection(a){var r;let e=a?b$2.SparkScan.SparkScanSettings.targetModeLocationSelection.radius:b$2.SparkScan.SparkScanSettings.locationSelection.radius,t=a?b$2.SparkScan.SparkScanSettings.targetModeLocationSelection.unit:b$2.SparkScan.SparkScanSettings.locationSelection.unit,i=new NumberWithUnit(e,t);this.sparkScan.settings.locationSelection=new RadiusLocationSelection(i),(r=this.sparkScanOverlay)==null||r.setRadius(i);}enableTargetMode(a){this.enableTargetModeLocationSelection(a);}async applyPreferences(){await this.onTargetModeButtonTap(this.stateManager.targetModeEnabled,this.feedbackManager.noFeedback,false),await this.onScanningBehaviorButtonTap(this.stateManager.continuousModeEnabled,this.feedbackManager.noFeedback,false),await this.onTorchButtonTap(this.stateManager.torchEnabled,this.feedbackManager.noFeedback,false);}setState(a){var e,t;a!==this.stateManager.state&&(this.stateManager.state=a,(t=(e=this.listener)==null?void 0:e.didChangeViewState)==null||t.call(e,a));}};export{P as a};
@@ -0,0 +1 @@
1
+ var c={"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:6892166},"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:6979986},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:6770770},"scandit-datacapture-sdk-barcode.wasm":{bytes:6859072}};export{c as a};
@@ -0,0 +1 @@
1
+ import {a as a$1,b as b$1}from'./chunk-HTKUJZG2.js';import {a}from'./chunk-ACNWENKW.js';import {a as a$2}from'./chunk-7JPCVI74.js';import {b}from'./chunk-DHCNYKSL.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var l=class b$2{constructor(){this.feedback=a.createDefaultFeedback();this.skipSerialization=true;this.type="barcodeFind";this._isEnabled=true;this._context=null;this.listeners=new Set;this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);this._transformer=null;}static get recommendedCameraSettings(){let e=new CameraSettings(b.BarcodeFind.CameraSettings.settings);for(let[r,a]of Object.entries(b.BarcodeFind.CameraSettings.hiddenProperties))e.setProperty(r,a);return e}get context(){return this._context}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forSettings(e){warnMultithreadingUnavailable();let r=new b$2;return r.settings=e,r}isEnabled(){return this._isEnabled}async setEnabled(e){this._isEnabled=e,await this.workerCommand("barcodeFindSetEnabled",{enabled:e});}async applySettings(e){this.settings=e,await this.workerCommand("barcodeFindApplySettings",{settings:e.toJSONObject()});}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}async setItemList(e){var r;for(let a of this.privateListeners)(r=a.onSetItemList)==null||r.call(a,e);return this.workerCommand("barcodeFindSetItemList",{itemList:e.map(a=>a.toJSONObject())})}async setBarcodeTransformer(e){var r;return this._transformer=e,this.workerCommand("barcodeFindSetTransformerFunction",{functionAsString:(r=this._transformer)==null?void 0:r.transformBarcodeData.toString()})}async start(){return this.workerCommand("barcodeFindSearchStart",{})}async stop(){return this.workerCommand("barcodeFindSearchStop",{})}async pause(){return this.workerCommand("barcodeFindSearchPause",{})}toJSONObject(){return {type:this.type,enabled:this.isEnabled(),settings:this.settings.toJSONObject()}}async workerCommand(e,r){this.context!=null&&await this.context.workerCommand(e,r);}async attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener),await this.workerCommand("barcodeFindForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeFindModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async onWorkerMessage(e){var r,a,c;switch(e.type){case "barcodeFindDidUpdateSession":{if(this._context==null)return;for(let t of this.allListeners)(r=t.onDidUpdateSession)==null||r.call(t,this,a$2.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}case "barcodeFindSearchPaused":{for(let t of this.allListeners){let i=e.payload.foundItems.map(o=>new a$1(new b$1(o),null));t.didPauseSearch(i);}break}case "barcodeFindSearchStarted":{for(let t of this.allListeners)t.didStartSearch();break}case "barcodeFindSearchStopped":{for(let t of this.allListeners){let i=e.payload.foundItems.map(o=>new a$1(new b$1(o),null));t.didStopSearch(i);}break}case "barcodeFindListUpdatedFeedback":{for(let t of this.allListeners)(a=t.onFindListUpdatedFeedback)==null||a.call(t);break}case "barcodeFindFeedback":{for(let t of this.allListeners)(c=t.onFeedback)==null||c.call(t);break}}}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}};export{l as a};
@@ -3,4 +3,4 @@ import {ProgressBar}from'@scandit/web-datacapture-core/build/js/private/ui/atoms
3
3
  <${ProgressBar.tag} id="scandit-progress" variant="gradient" min="0" max="1" value="0"></${ProgressBar.tag}>
4
4
  <label for="scandit-progress" class="message">0 / 0</label>
5
5
  </div>
6
- `,t=class t extends ScanditHTMLElement{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=o,e.append(t.createStyleElement().cloneNode(!0));}get value(){return Number(this.getAttribute("value"))}set value(e){this.setAttribute("value",e.toString());}get max(){return Number(this.getAttribute("max"))}set max(e){this.setAttribute("max",e.toString());}get progressBar(){var e;return (e=this.shadowRoot)==null?void 0:e.querySelector(ProgressBar.tag)}get label(){var e;return (e=this.shadowRoot)==null?void 0:e.querySelector("label")}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`.progress-container{align-items:center;display:flex;flex-direction:row;gap:.5rem;justify-content:center}.progress-container label{color:#fff;font-family:SF Pro Display,sans-serif;font-weight:500;white-space:nowrap}`}connectedCallback(){this.render();}attributeChangedCallback(){this.render();}render(){this.progressBar==null||this.label==null||(this.progressBar.value=this.value,this.progressBar.max=this.max,this.label.textContent=`${this.progressBar.value} / ${this.progressBar.max}`);}};t.tag="scandit-find-progress-bar-with-label",t.observedAttributes=["value","max"];var a=t;a.register();export{a};
6
+ `,t=class t extends ScanditHTMLElement{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=o,e.append(t.createStyleElement().cloneNode(true));}get value(){return Number(this.getAttribute("value"))}set value(e){this.setAttribute("value",e.toString());}get max(){return Number(this.getAttribute("max"))}set max(e){this.setAttribute("max",e.toString());}get progressBar(){var e;return (e=this.shadowRoot)==null?void 0:e.querySelector(ProgressBar.tag)}get label(){var e;return (e=this.shadowRoot)==null?void 0:e.querySelector("label")}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`.progress-container{align-items:center;display:flex;flex-direction:row;gap:.5rem;justify-content:center}.progress-container label{color:#fff;font-family:SF Pro Display,sans-serif;font-weight:500;white-space:nowrap}`}connectedCallback(){this.render();}attributeChangedCallback(){this.render();}render(){this.progressBar==null||this.label==null||(this.progressBar.value=this.value,this.progressBar.max=this.max,this.label.textContent=`${this.progressBar.value} / ${this.progressBar.max}`);}};t.tag="scandit-find-progress-bar-with-label",t.observedAttributes=["value","max"];var a=t;a.register();export{a};
@@ -1 +1 @@
1
- var o=class{constructor(r,s,i){this.captureListenerSet=!1;this.coreEngine=r,this.Module=s,this.workerFunctions=i,this.setup();}barcodeCaptureDidUpdateSession(r){this.workerFunctions.postMessage({type:"barcodeCaptureDidUpdateSession",payload:JSON.parse(r.toJson())});}barcodeBatchDidUpdateSession(r){this.workerFunctions.postMessage({type:"barcodeBatchDidUpdateSession",payload:JSON.parse(r.toJson())});}getCaptureDeserializer(){return this.barcodeCaptureDeserializer}getTrackingDeserializer(){return this.barcodeBatchDeserializer}setup(){let r=this.Module.BarcodeCaptureListener.extend("BarcodeCaptureListener",{didScan:(a,e,t)=>{this.barcodeCaptureDidScan(e,t),a.delete(),t.delete(),e.delete();},didUpdateSession:(a,e,t)=>{this.barcodeCaptureDidUpdateSession(e),a.delete(),t.delete(),e.delete();}}),s=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback();}}),i=new r,d=new s,n=this.Module.BarcodeCaptureDeserializerListener.extend("BarcodeCaptureDeserializerListener",{onModeDeserializationFinished:(a,e,t)=>{e.addListener(i,1),e.setSuccessFeedback(d),a.delete(),e.delete(),t.delete();},onModeDeserializationStarted(a,e,t){a.delete(),e.delete(),t.delete();},onSettingsDeserializationStarted(a,e,t){a.delete(),e.delete(),t.delete();},onSettingsDeserializationFinished(a,e,t){a.delete(),e.delete(),t.delete();}});this.barcodeCaptureDeserializer=new this.Module.BarcodeCaptureDeserializer,this.barcodeCaptureDeserializer.setListener(new n);}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}barcodeCaptureDidScan(r,s){let i=this.coreEngine.convertToLoadableFrameData(s);this.workerFunctions.postMessage({type:"barcodeCaptureDidScan",payload:{session:JSON.parse(r.toJson()),frameData:i}});}};export{o as a};
1
+ var o=class{constructor(r,s,i){this.captureListenerSet=false;this.coreEngine=r,this.Module=s,this.workerFunctions=i,this.setup();}barcodeCaptureDidUpdateSession(r){this.workerFunctions.postMessage({type:"barcodeCaptureDidUpdateSession",payload:JSON.parse(r.toJson())});}barcodeBatchDidUpdateSession(r){this.workerFunctions.postMessage({type:"barcodeBatchDidUpdateSession",payload:JSON.parse(r.toJson())});}getCaptureDeserializer(){return this.barcodeCaptureDeserializer}getTrackingDeserializer(){return this.barcodeBatchDeserializer}setup(){let r=this.Module.BarcodeCaptureListener.extend("BarcodeCaptureListener",{didScan:(a,e,t)=>{this.barcodeCaptureDidScan(e,t),a.delete(),t.delete(),e.delete();},didUpdateSession:(a,e,t)=>{this.barcodeCaptureDidUpdateSession(e),a.delete(),t.delete(),e.delete();}}),s=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback();}}),i=new r,d=new s,n=this.Module.BarcodeCaptureDeserializerListener.extend("BarcodeCaptureDeserializerListener",{onModeDeserializationFinished:(a,e,t)=>{e.addListener(i,1),e.setSuccessFeedback(d),a.delete(),e.delete(),t.delete();},onModeDeserializationStarted(a,e,t){a.delete(),e.delete(),t.delete();},onSettingsDeserializationStarted(a,e,t){a.delete(),e.delete(),t.delete();},onSettingsDeserializationFinished(a,e,t){a.delete(),e.delete(),t.delete();}});this.barcodeCaptureDeserializer=new this.Module.BarcodeCaptureDeserializer,this.barcodeCaptureDeserializer.setListener(new n);}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}barcodeCaptureDidScan(r,s){let i=this.coreEngine.convertToLoadableFrameData(s);this.workerFunctions.postMessage({type:"barcodeCaptureDidScan",payload:{session:JSON.parse(r.toJson()),frameData:i}});}};export{o as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-WPSMXGDG.js';import {a as a$1}from'./chunk-OLFIL5XY.js';import {b}from'./chunk-DHCNYKSL.js';import {CameraSettings,convertToPublicFrameData,Logger}from'@scandit/web-datacapture-core';var p=class u{constructor(){this.type="barcodeCapture";this._isEnabled=true;this._feedback=a.default;this._context=null;this.listeners=new Set;this.allowedRemainingWorkerMessages=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){return new CameraSettings(b.BarcodeCapture.RecommendedCameraSettings)}get context(){return this._context}get feedback(){return this._feedback}static async forContext(e,a){let t=new u;return t.settings=a,e&&await e.addMode(t),t}async setFeedback(e){return this._feedback=e,this.notifyContext()}isEnabled(){return this._isEnabled}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.has(e)||this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,feedback:this.feedback.toJSONObject(),settings:this.settings.toJSONObject()}}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}async detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}sendClearFrameDataRequest(e){setTimeout(()=>{var a;(a=this.context)==null||a.workerCommand("deleteFrameData",{frameId:e});},0);}async onDidScan(e){if(this.context==null)return;let a=a$1.fromJSON(e.payload.session),{frameData:t}=e.payload;if(!this._isEnabled){this.sendClearFrameDataRequest(t.frameId),this.allowedRemainingWorkerMessages.clear();return}this.allowedRemainingWorkerMessages.add("successFeedback");let o=[];for(let r of this.listeners)if(r.didScan)try{let s=r.didScan(this,a,convertToPublicFrameData(t,this.context));s instanceof Promise&&await s;}catch(s){o.push(s);}this.sendClearFrameDataRequest(t.frameId),this.allowedRemainingWorkerMessages.add("barcodeCaptureDidUpdateSession");for(let r of o)Logger.log(Logger.Level.Error,r);}onDidUpdateSession(e){let a=a$1.fromJSON(e.payload);if(!(!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type))){this.allowedRemainingWorkerMessages.delete(e.type);for(let t of this.listeners)t.didUpdateSession&&t.didUpdateSession(this,a);}}onSuccessFeedback(e){!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type)||(this.allowedRemainingWorkerMessages.delete(e.type),this.feedback.success.emit());}async onWorkerMessage(e){switch(e.type){case "barcodeCaptureDidScan":{this.onDidScan(e);break}case "barcodeCaptureDidUpdateSession":{this.onDidUpdateSession(e);break}case "successFeedback":{this.onSuccessFeedback(e);break}}}async notifyContext(){this.context!=null&&await this.context.update();}};export{p as a};
@@ -1 +1 @@
1
- import {e}from'./chunk-PE6EDL2S.js';var n=class o{static fromJSON(e$1){let r=new o;return e$1.newlyRecognizedBarcode&&(r.newlyRecognizedBarcode=e.fromJSON(e$1.newlyRecognizedBarcode)),r.frameSequenceID=e$1.frameSequenceId,r}};export{n as a};
1
+ import {e}from'./chunk-R3B72E4T.js';var n=class o{static fromJSON(e$1){let r=new o;return e$1.newlyRecognizedBarcode&&(r.newlyRecognizedBarcode=e.fromJSON(e$1.newlyRecognizedBarcode)),r.frameSequenceID=e$1.frameSequenceId,r}};export{n as a};
@@ -1,4 +1,4 @@
1
- import {e}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,defineCustomElements,Timeout,html}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var i=class i extends ScanditHTMLElement{get type(){var e;return (e=this.getAttribute("type"))!=null?e:"info"}set type(e){this.setAttribute("type",e);}get message(){var e;return (e=this.getAttribute("message"))!=null?e:""}set message(e){this.setAttribute("message",e);}get visible(){return this.hasAttribute("visible")}set visible(e){this.toggleAttribute("visible",e);}static create(){return defineCustomElements({[e]:i}),document.createElement(e)}show(e,s,a){this.hide(),this.type=e,this.message=s,this.visible=!0,this.timeout=new Timeout(a,this.hide.bind(this)),this.timeout.start();}hide(){var e;(e=this.timeout)==null||e.stop(),this.visible=!1;}render(){this.innerHTML=html`
1
+ import {e}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,defineCustomElements,Timeout,html}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var i=class i extends ScanditHTMLElement{get type(){var e;return (e=this.getAttribute("type"))!=null?e:"info"}set type(e){this.setAttribute("type",e);}get message(){var e;return (e=this.getAttribute("message"))!=null?e:""}set message(e){this.setAttribute("message",e);}get visible(){return this.hasAttribute("visible")}set visible(e){this.toggleAttribute("visible",e);}static create(){return defineCustomElements({[e]:i}),document.createElement(e)}show(e,s,a){this.hide(),this.type=e,this.message=s,this.visible=true,this.timeout=new Timeout(a,this.hide.bind(this)),this.timeout.start();}hide(){var e;(e=this.timeout)==null||e.stop(),this.visible=false;}render(){this.innerHTML=html`
2
2
  <div class="${e} ${e}--${this.type}">${this.message}</div>
3
3
 
4
4
  <style>
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-XS6RV73B.js';import {b}from'./chunk-DHCNYKSL.js';import {CameraSettings,convertToPublicFrameData,Logger}from'@scandit/web-datacapture-core';var p=class c{constructor(){this.type="sparkScan";this._synchronousFrameFlow=false;this._isEnabled=true;this._isSuppressed=false;this._context=null;this.listeners=new Set;this.allowedRemainingWorkerMessages=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){return new CameraSettings(b.SparkScan.CameraSettings.settings)}get context(){return this._context}static forSettings(e){let a=new c;return a.settings=e,a}isEnabled(){return this._isEnabled&&!this._isSuppressed}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async setResultSuppressionEnabled(e){this._isSuppressed=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject(),isSuppressed:this._isSuppressed}}async workerCommand(e,a){this.context&&await this.context.workerCommand(e,a);}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}async detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}sendClearFrameDataRequest(e){queueMicrotask(()=>{var a;console.log("sendClearFrameDataRequest: queueMicrotask"),(a=this.context)==null||a.workerCommand("deleteFrameData",{frameId:e});});}async onDidScan(e){if(this.context==null)return;let{frameData:a$1}=e.payload;if(!this._isEnabled){this.sendClearFrameDataRequest(a$1.frameId),this.allowedRemainingWorkerMessages.clear();return}this.allowedRemainingWorkerMessages.add("successFeedback");let t=[],s=a.fromJSON(e.payload.session);for(let r of this.listeners)if(r.didScan)try{let i=r.didScan(this,s,convertToPublicFrameData(a$1,this.context));i instanceof Promise&&await i;}catch(i){t.push(i);}this.sendClearFrameDataRequest(a$1.frameId),this.allowedRemainingWorkerMessages.add("sparkScanDidUpdateSession");for(let r of t)Logger.error(r);}onDidUpdateSession(e){var t;if(!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type))return;this.allowedRemainingWorkerMessages.delete(e.type);let a$1=a.fromJSON(e.payload);for(let s of this.listeners)(t=s.didUpdateSession)==null||t.call(s,this,a$1);}async onWorkerMessage(e){switch(e.type){case "sparkScanDidScan":{this.onDidScan(e);break}case "sparkScanDidUpdateSession":{this.onDidUpdateSession(e);break}}}async notifyContext(){this.context&&await this.context.update();}};export{p as a};
@@ -0,0 +1,7 @@
1
+ import {a as a$1}from'./chunk-LAYALN2H.js';import {gray900}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {Color}from'@scandit/web-datacapture-core';var e=class e extends ScanditHTMLElement{constructor(){super();this.onToggleListener=this.onToggle.bind(this);let t=this.attachShadow({mode:"open"});t.innerHTML=html`<div class="container">
2
+ <span class="ghost-arrow arw-bottom-center"></span>
3
+ <div class="icon-container">
4
+ <slot name="barcode-icon"></slot>
5
+ </div>
6
+ <span class="text"></span>
7
+ </div>`,this.containerElement=t.querySelector(".container"),this.textContainer=this.containerElement.querySelector(".text"),t.append(e.createStyleElement().cloneNode(true)),t.append(a$1());}set text(t){this.updateText(t);}get text(){var t;return (t=this.textContainer.textContent)!=null?t:""}set tip(t){this.toggleTip(t);}get tip(){var t,i;return (i=(t=this.containerElement.querySelector(".ghost-arrow"))==null?void 0:t.classList.value.includes("arw-"))!=null?i:false}set textColor(t){this.style.setProperty("--text-color",`#${t.toJSON()}`);}get textColor(){return Color.fromJSON(this.style.getPropertyValue("--text-color"))}static create(){return document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}static createStyleElement(){return css`:host{display:inline-flex;--size:32px;--padding:0px;--background-color:#fff;--text-color:#${gray900.toJSON()};--expanded-width:190px;--arrow-size:calc(var(--size)/5);--arrow-background-color:#fff;--arrow-offset:0px;cursor:pointer;font-family:SF Pro Text,sans-serif;font-size:1rem;font-style:normal;font-weight:600;transition:transform .25s ease-in-out;user-select:none;-webkit-tap-highlight-color:transparent}.ghost-arrow{height:var(--size);left:0;position:absolute;top:-2px;width:var(--size)}:host([hidden]){display:none}.container{background-color:var(--background-color);border-radius:calc(var(--size) + var(--padding)/2);box-shadow:0 1px 2px 0 #${gray900.withAlpha(.3).toJSON()};display:inline-flex;flex-direction:row;gap:10px;padding:var(--padding);position:relative;transition:width .25s ease-in-out;white-space:nowrap}.container,.icon-container{align-items:center;height:var(--size);width:var(--size)}.icon-container{display:flex;justify-content:center;position:absolute}.container span.text{color:var(--text-color);max-width:0;opacity:0;overflow:hidden;position:absolute;transform:translateX(0);transition:opacity .25s ease-in-out,transform .25s ease-in-out,max-width .25s ease-in-out;white-space:nowrap}:host([expanded]) .container span.text{max-width:calc(var(--expanded-width) - var(--size) - 2px);opacity:1;transform:translateX(var(--size))}:host([expanded]){transform:translateX(calc(var(--expanded-width) - 50% - 2px - var(--size)/2))}:host([expanded]) .container{width:var(--expanded-width)}`}onToggle(){this.toggleAttribute("expanded");}connectedCallback(){this.setAttribute("tip","true"),this.addEventListener("pointerup",this.onToggleListener);}disconnectedCallback(){this.removeEventListener("pointerup",this.onToggleListener);}attributeChangedCallback(t,i,o){t==="text"?this.updateText(o):t==="tip"&&this.toggleTip(o==="true"||o==="");}updateText(t){this.textContainer.textContent=t.slice(0,20);}toggleTip(t){var i;(i=this.containerElement.querySelector(".ghost-arrow"))==null||i.classList.toggle("arw-bottom-center",t);}};e.tag="scandit-status-icon-container",e.observedAttributes=["text","tip"];var a=e;export{a};
@@ -1,8 +1,7 @@
1
- import {Orientation}from'@scandit/web-datacapture-core';import {GestureRecognizer}from'@scandit/web-datacapture-core/build/js/private/GestureRecognizer/GestureRecognizer.js';import {OrientationObserver,orientationChangeEvent}from'@scandit/web-datacapture-core/build/js/private/OrientationObserver.js';import {ScanditHTMLElement,debounce,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var L=(r=>(r.onTap="onlayouttap",r))(L||{}),n=class n extends ScanditHTMLElement{constructor(){super();this.orientationObserver=new OrientationObserver;this.onOrientationChangeHandler=debounce(this.onOrientationChange.bind(this),50);let t=this.attachShadow({mode:"open"});t.append(n.createStyleElement().cloneNode(!0));let e=document.createElement("div");e.id="root",this.absoluteContainer=document.createElement("div"),this.absoluteContainer.classList.add("absolute-container"),this.absoluteContainer.innerHTML="<slot></slot>",t.insertBefore(this.absoluteContainer,e.nextElementSibling),e.innerHTML=html`
1
+ import {Orientation}from'@scandit/web-datacapture-core';import {GestureRecognizer}from'@scandit/web-datacapture-core/build/js/private/GestureRecognizer/GestureRecognizer.js';import {OrientationObserver,orientationChangeEvent}from'@scandit/web-datacapture-core/build/js/private/OrientationObserver.js';import {ScanditHTMLElement,debounce,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var L=(r=>(r.onTap="onlayouttap",r))(L||{}),n=class n extends ScanditHTMLElement{constructor(){super();this.orientationObserver=new OrientationObserver;this.onOrientationChangeHandler=debounce(this.onOrientationChange.bind(this),50);let t=this.attachShadow({mode:"open"});t.append(n.createStyleElement().cloneNode(true));let e=document.createElement("div");e.id="root",this.absoluteContainer=document.createElement("div"),this.absoluteContainer.classList.add("absolute-container"),this.absoluteContainer.innerHTML="<slot></slot>",t.insertBefore(this.absoluteContainer,e.nextElementSibling),e.innerHTML=html`
2
2
  <div class="wrapper">
3
3
  <div class="header">
4
4
  <slot name="progress"></slot>
5
- <slot name="notification-list"></slot>
6
5
  <div class="controls top">
7
6
  <div class="control left">
8
7
  <slot name="top-controls-left"></slot>
@@ -30,4 +29,4 @@ import {Orientation}from'@scandit/web-datacapture-core';import {GestureRecognize
30
29
  <slot name="bottom-controls-right"></slot>
31
30
  </div>
32
31
  </div>
33
- `,t.append(e),this.gestureRecognizer=new GestureRecognizer(this.absoluteContainer);}get cardListContainer(){return this.querySelector('[slot="card-list"]')}get main(){var t;return (t=this.shadowRoot)==null?void 0:t.querySelector(".main")}static create(){return document.createElement(n.tag)}static register(){defineCustomElements({[n.tag]:n});}static createStyleElement(){return css`:host{inset:0;overflow:hidden;position:absolute;z-index:1}:host #root{--padding:1rem;box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;height:100%;justify-content:space-between;margin:0 auto;max-width:960px;padding:calc(var(--padding))}:host .absolute-container{height:100%;overflow:hidden;position:absolute;width:100%}.main{overflow:hidden}.main,.wrapper{display:flex;flex-direction:column;height:100%}.wrapper{gap:.5rem;justify-content:space-between}.controls{align-items:center;display:flex;flex-direction:row;justify-content:space-evenly;min-height:85px;z-index:1}@media (orientation:landscape){.controls{flex-direction:column}.wrapper{flex:0 70%;margin:0 auto}:host #root{flex-direction:row}}.controls .control{align-items:center;display:flex;flex:1 1 25%;flex-direction:row;justify-content:center}.controls .control.center{flex:1 1 50%;max-width:5rem}.controls.top{min-height:auto}.controls.top .control.left{justify-content:flex-start}.controls.top .control.right{justify-content:flex-end}.header{display:flex;flex-direction:column;gap:1.5rem;position:relative}::slotted([slot=notification-list]){position:absolute;top:calc(var(--padding)*2);width:100%;z-index:1}`}connectedCallback(){this.orientationObserver.addEventListener(orientationChangeEvent,this.onOrientationChangeHandler),this.orientationObserver.register(),this.gestureRecognizer.addListener(this);}disconnectedCallback(){this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(orientationChangeEvent,this.onOrientationChangeHandler),this.gestureRecognizer.removeListener(this);}toggleVisibility(t,e){var o;(o=this.querySelector(t))==null||o.toggleAttribute("hidden",!e);}onTap(t,e){let o=new CustomEvent("onlayouttap",{detail:{point:t,target:e.target}});this.dispatchEvent(o);}onOrientationChange(t){var o,a,s,l,c,d,p,m,u;let e=this.shadowRoot.querySelector(".controls.top");t.detail.value===Orientation.Portrait?(a=(o=this.shadowRoot)==null?void 0:o.querySelector(".header"))==null||a.append(e):(l=(s=this.shadowRoot)==null?void 0:s.querySelector("#root"))==null||l.prepend(e),(c=this.main)==null||c.style.setProperty("height","100%"),(m=this.cardListContainer)==null||m.updateHeight((p=(d=this.main)==null?void 0:d.getBoundingClientRect().height)!=null?p:0),(u=this.main)==null||u.style.setProperty("height","unset");}};n.tag="scandit-find-layout";var i=n;i.register();export{L as a,i as b};
32
+ `,t.append(e),this.gestureRecognizer=new GestureRecognizer(this.absoluteContainer);}get cardListContainer(){return this.querySelector('[slot="card-list"]')}get main(){var t;return (t=this.shadowRoot)==null?void 0:t.querySelector(".main")}static create(){return document.createElement(n.tag)}static register(){defineCustomElements({[n.tag]:n});}static createStyleElement(){return css`:host{inset:0;overflow:hidden;position:absolute;z-index:1}:host #root{--padding:1rem;box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;height:100%;justify-content:space-between;margin:0 auto;max-width:960px;padding:calc(var(--padding))}:host .absolute-container{height:100%;overflow:hidden;position:absolute;width:100%}.main{overflow:hidden}.main,.wrapper{display:flex;flex-direction:column}.wrapper{gap:.5rem;height:100%;justify-content:space-between}.controls{align-items:center;display:flex;flex-direction:row;justify-content:space-evenly;min-height:85px;z-index:1}@media (orientation:landscape){.controls{flex-direction:column}.wrapper{flex:0 70%;margin:0 auto}:host #root{flex-direction:row}}.controls .control{align-items:center;display:flex;flex:1 1 25%;flex-direction:row;justify-content:center}.controls .control.center{flex:1 1 50%;max-width:5rem}.controls.top{min-height:auto}.controls.top .control.left{justify-content:flex-start}.controls.top .control.right{justify-content:flex-end}.header{display:flex;flex-direction:column;gap:1.5rem;position:relative}`}connectedCallback(){this.orientationObserver.addEventListener(orientationChangeEvent,this.onOrientationChangeHandler),this.orientationObserver.register(),this.gestureRecognizer.addListener(this);}disconnectedCallback(){this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(orientationChangeEvent,this.onOrientationChangeHandler),this.gestureRecognizer.removeListener(this);}toggleVisibility(t,e){var o;(o=this.querySelector(t))==null||o.toggleAttribute("hidden",!e);}onTap(t,e){let o=new CustomEvent("onlayouttap",{detail:{point:t,target:e.target}});this.dispatchEvent(o);}onOrientationChange(t){var o,a,s,l,c,d,p,m,u;let e=this.shadowRoot.querySelector(".controls.top");t.detail.value===Orientation.Portrait?(a=(o=this.shadowRoot)==null?void 0:o.querySelector(".header"))==null||a.append(e):(l=(s=this.shadowRoot)==null?void 0:s.querySelector("#root"))==null||l.prepend(e),(c=this.main)==null||c.style.setProperty("height","100%"),(m=this.cardListContainer)==null||m.updateHeight((p=(d=this.main)==null?void 0:d.getBoundingClientRect().height)!=null?p:0),(u=this.main)==null||u.style.setProperty("height","unset");}};n.tag="scandit-find-layout";var i=n;i.register();export{L as a,i as b};
@@ -1,4 +1,4 @@
1
- import {b as b$1,a as a$2}from'./chunk-3A6GSH7S.js';import {h,i}from'./chunk-DVHTYKDX.js';import {a as a$1}from'./chunk-DOA2Q3CZ.js';import {d,c,k as k$1,l,m as m$1,e,b}from'./chunk-4JEIREAU.js';import {c as c$1,a}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,defineCustomElements,html}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var m=class m extends ScanditHTMLElement{constructor(){super(...arguments);this.targetModeButtonTapListener=this.onTargetModeButtonTap.bind(this);this.scanningBehaviorButtonTapListener=this.onScanningBehaviorButtonTap.bind(this);this.barcodeFindButtonTapListener=this.onBarcodeFindButtonTap.bind(this);this.labelCaptureButtonTapListener=this.onLabelCaptureButtonTap.bind(this);this.cameraSwitchButtonTapListener=this.onCameraSwitchButtonTap.bind(this);this.computedStyle=getComputedStyle(this);}get[d](){return this.hasAttribute(d)}set[d](t){this.toggleAttribute(d,t);}get[c](){return this.hasAttribute(c)}set[c](t){this.toggleAttribute(c,t);}get[k$1](){return this.hasAttribute(k$1)}set[k$1](t){this.toggleAttribute(k$1,t);}get[l](){return this.hasAttribute(l)}set[l](t){this.toggleAttribute(l,t);}get[m$1](){return this.hasAttribute(m$1)}set[m$1](t){this.toggleAttribute(m$1,t);}get[e](){return this.hasAttribute(e)}set[e](t){this.toggleAttribute(e,t),this.targetModeButtonIcon&&(this.targetModeButtonIcon.fill=t?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}get[b](){var t;return (t=this.getAttribute(b))!=null?t:"single"}set[b](t){this.setAttribute(b,t),this.scanningBehaviorButtonIcon&&(this.scanningBehaviorButtonIcon.fill=t==="continuous"?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}get visibleButtonCount(){return [c,d,m$1].filter(t=>this[t]===!0).length}get visibleModeButtonCount(){return [k$1,l].filter(t=>this[t]===!0).length}get allVisibleButtonsCount(){return this.visibleButtonCount+this.visibleModeButtonCount}static create(){return defineCustomElements({[c$1]:m,[a]:a$1}),document.createElement(c$1)}enableCameraSwitchButton(t){this.cameraSwitchButtonIcon&&(this.cameraSwitchButtonIcon.fill=t?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}render(){var c$2,p,v,S,T,w,y,C;let t=this[e]?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i),b$1=this[b]==="continuous"?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i);this.innerHTML=html`
1
+ import {b as b$1,a as a$2}from'./chunk-3A6GSH7S.js';import {h,i}from'./chunk-DVHTYKDX.js';import {a}from'./chunk-DOA2Q3CZ.js';import {d,c,k as k$1,l,m as m$1,e,b}from'./chunk-4JEIREAU.js';import {a as a$1,c as c$1}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,defineCustomElements,html}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var m=class m extends ScanditHTMLElement{constructor(){super(...arguments);this.targetModeButtonTapListener=this.onTargetModeButtonTap.bind(this);this.scanningBehaviorButtonTapListener=this.onScanningBehaviorButtonTap.bind(this);this.barcodeFindButtonTapListener=this.onBarcodeFindButtonTap.bind(this);this.labelCaptureButtonTapListener=this.onLabelCaptureButtonTap.bind(this);this.cameraSwitchButtonTapListener=this.onCameraSwitchButtonTap.bind(this);this.computedStyle=getComputedStyle(this);}get[d](){return this.hasAttribute(d)}set[d](t){this.toggleAttribute(d,t);}get[c](){return this.hasAttribute(c)}set[c](t){this.toggleAttribute(c,t);}get[k$1](){return this.hasAttribute(k$1)}set[k$1](t){this.toggleAttribute(k$1,t);}get[l](){return this.hasAttribute(l)}set[l](t){this.toggleAttribute(l,t);}get[m$1](){return this.hasAttribute(m$1)}set[m$1](t){this.toggleAttribute(m$1,t);}get[e](){return this.hasAttribute(e)}set[e](t){this.toggleAttribute(e,t),this.targetModeButtonIcon&&(this.targetModeButtonIcon.fill=t?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}get[b](){var t;return (t=this.getAttribute(b))!=null?t:"single"}set[b](t){this.setAttribute(b,t),this.scanningBehaviorButtonIcon&&(this.scanningBehaviorButtonIcon.fill=t==="continuous"?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}get visibleButtonCount(){return [c,d,m$1].filter(t=>this[t]===true).length}get visibleModeButtonCount(){return [k$1,l].filter(t=>this[t]===true).length}get allVisibleButtonsCount(){return this.visibleButtonCount+this.visibleModeButtonCount}static create(){return defineCustomElements({[c$1]:m,[a$1]:a}),document.createElement(c$1)}enableCameraSwitchButton(t){this.cameraSwitchButtonIcon&&(this.cameraSwitchButtonIcon.fill=t?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}render(){var c$2,p,v,S,T,w,y,C;let t=this[e]?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i),b$1=this[b]==="continuous"?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i);this.innerHTML=html`
2
2
  <div class="container">
3
3
  <div class="${c$1}">
4
4
  ${this[k$1]?html`<button
@@ -114,4 +114,4 @@ import {b as b$1,a as a$2}from'./chunk-3A6GSH7S.js';import {h,i}from'./chunk-DVH
114
114
  border-radius: 50%;
115
115
  }
116
116
  </style>
117
- `,this.targetModeButton=this.querySelector("#targetModeButton"),(c$2=this.targetModeButton)==null||c$2.addEventListener("pointerup",this.targetModeButtonTapListener),this.targetModeButtonIcon=(p=this.targetModeButton)==null?void 0:p.querySelector(a),this.scanningBehaviorButton=this.querySelector("#scanningBehaviorButton"),(v=this.scanningBehaviorButton)==null||v.addEventListener("pointerup",this.scanningBehaviorButtonTapListener),this.scanningBehaviorButtonIcon=(S=this.scanningBehaviorButton)==null?void 0:S.querySelector(a),this.barcodeFindButton=this.querySelector("#barcodeFindButton"),(T=this.barcodeFindButton)==null||T.addEventListener("pointerup",this.barcodeFindButtonTapListener),this.labelCaptureButton=this.querySelector("#labelCaptureButton"),(w=this.labelCaptureButton)==null||w.addEventListener("pointerup",this.labelCaptureButtonTapListener),this.cameraSwitchButton=this.querySelector("#cameraSwitchButton"),(y=this.cameraSwitchButton)==null||y.addEventListener("pointerup",this.cameraSwitchButtonTapListener),this.cameraSwitchButtonIcon=(C=this.cameraSwitchButton)==null?void 0:C.querySelector(a);}connectedCallback(){this[d]=!0,this[m$1]=!0,this.render();}disconnectedCallback(){var t,b,c,p,v;(t=this.targetModeButton)==null||t.removeEventListener("pointerup",this.targetModeButtonTapListener),(b=this.scanningBehaviorButton)==null||b.removeEventListener("pointerup",this.scanningBehaviorButtonTapListener),(c=this.barcodeFindButton)==null||c.removeEventListener("pointerup",this.barcodeFindButtonTapListener),(p=this.labelCaptureButton)==null||p.removeEventListener("pointerup",this.labelCaptureButtonTapListener),(v=this.cameraSwitchButton)==null||v.removeEventListener("pointerup",this.cameraSwitchButtonTapListener);}attributeChangedCallback(t,b,c){if(c!==b){this.render();let p=this.hidden;this.hidden=this.visibleModeButtonCount+this.allVisibleButtonsCount===0,this.hidden!==p&&this.dispatchEvent(new CustomEvent(b$1));}}onTargetModeButtonTap(t){t.stopPropagation(),this[e]=!this[e],this.dispatchEvent(new CustomEvent(a$2,{bubbles:!0,detail:{tapped:"targetModeButton",enabled:this[e]}}));}onScanningBehaviorButtonTap(t){t.stopPropagation(),this[b]=this[b]==="continuous"?"single":"continuous",this.dispatchEvent(new CustomEvent(a$2,{bubbles:!0,detail:{tapped:"scanningBehaviorButton",enabled:this[b]==="continuous"}}));}onBarcodeFindButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:!0,detail:{tapped:"barcodeFindButton"}}));}onLabelCaptureButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:!0,detail:{tapped:"labelCaptureButton"}}));}onCameraSwitchButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:!0,detail:{tapped:"cameraSwitchButton"}}));}};m.observedAttributes=[d,c,k$1,l,m$1];var k=m;export{k as a};
117
+ `,this.targetModeButton=this.querySelector("#targetModeButton"),(c$2=this.targetModeButton)==null||c$2.addEventListener("pointerup",this.targetModeButtonTapListener),this.targetModeButtonIcon=(p=this.targetModeButton)==null?void 0:p.querySelector(a$1),this.scanningBehaviorButton=this.querySelector("#scanningBehaviorButton"),(v=this.scanningBehaviorButton)==null||v.addEventListener("pointerup",this.scanningBehaviorButtonTapListener),this.scanningBehaviorButtonIcon=(S=this.scanningBehaviorButton)==null?void 0:S.querySelector(a$1),this.barcodeFindButton=this.querySelector("#barcodeFindButton"),(T=this.barcodeFindButton)==null||T.addEventListener("pointerup",this.barcodeFindButtonTapListener),this.labelCaptureButton=this.querySelector("#labelCaptureButton"),(w=this.labelCaptureButton)==null||w.addEventListener("pointerup",this.labelCaptureButtonTapListener),this.cameraSwitchButton=this.querySelector("#cameraSwitchButton"),(y=this.cameraSwitchButton)==null||y.addEventListener("pointerup",this.cameraSwitchButtonTapListener),this.cameraSwitchButtonIcon=(C=this.cameraSwitchButton)==null?void 0:C.querySelector(a$1);}connectedCallback(){this[d]=true,this[m$1]=true,this.render();}disconnectedCallback(){var t,b,c,p,v;(t=this.targetModeButton)==null||t.removeEventListener("pointerup",this.targetModeButtonTapListener),(b=this.scanningBehaviorButton)==null||b.removeEventListener("pointerup",this.scanningBehaviorButtonTapListener),(c=this.barcodeFindButton)==null||c.removeEventListener("pointerup",this.barcodeFindButtonTapListener),(p=this.labelCaptureButton)==null||p.removeEventListener("pointerup",this.labelCaptureButtonTapListener),(v=this.cameraSwitchButton)==null||v.removeEventListener("pointerup",this.cameraSwitchButtonTapListener);}attributeChangedCallback(t,b,c){if(c!==b){this.render();let p=this.hidden;this.hidden=this.visibleModeButtonCount+this.allVisibleButtonsCount===0,this.hidden!==p&&this.dispatchEvent(new CustomEvent(b$1));}}onTargetModeButtonTap(t){t.stopPropagation(),this[e]=!this[e],this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"targetModeButton",enabled:this[e]}}));}onScanningBehaviorButtonTap(t){t.stopPropagation(),this[b]=this[b]==="continuous"?"single":"continuous",this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"scanningBehaviorButton",enabled:this[b]==="continuous"}}));}onBarcodeFindButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"barcodeFindButton"}}));}onLabelCaptureButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"labelCaptureButton"}}));}onCameraSwitchButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"cameraSwitchButton"}}));}};m.observedAttributes=[d,c,k$1,l,m$1];var k=m;export{k as a};
@@ -0,0 +1 @@
1
+ import {a as a$5}from'./chunk-AJ5TJUFZ.js';import {a as a$8}from'./chunk-ZPCWOA3Y.js';import {a as a$7}from'./chunk-DQVSIMLI.js';import {a}from'./chunk-ZZQLFO35.js';import {a as a$a}from'./chunk-GBKJMQMZ.js';import {b as b$1}from'./chunk-4KRKVW3B.js';import {b}from'./chunk-DGF7ODRH.js';import {a as a$6}from'./chunk-7GJVUU3G.js';import {a as a$1}from'./chunk-I53W7VSB.js';import {a as a$9}from'./chunk-NDQSQK6H.js';import {a as a$2}from'./chunk-4WEBA3WR.js';import {a as a$4}from'./chunk-LKQMBRKB.js';import {a as a$3}from'./chunk-2QO7W23V.js';import {Anchor,DataCaptureView,Direction,Point,Size}from'@scandit/web-datacapture-core';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {css}from'@scandit/web-datacapture-core/build/js/private/utils/css.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {calculateWidth,calculateHeight}from'@scandit/web-datacapture-core/build/js/private/utils/quadrilateralUtils.js';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var q={async highlightForBarcode(R,w){let t=a$a.create(R);w(t);}},d=class d extends ScanditHTMLElement{constructor(){super(...arguments);this.torchIconButton=null;this.cameraSwitchButton=null;this.zoomButton=null;this.onTorchButtonClickHandler=this.onTorchButtonClick.bind(this);this.onCameraSwitchButtonHandler=this.onCameraSwitchButtonClick.bind(this);this.onZoomButtonHandler=this.onZoomButtonClick.bind(this);this.onLayoutPointerDownHandler=this.onLayoutPointerDown.bind(this);this.onInfoAnnotationTapHandler=this.onInfoAnnotationTap.bind(this);this.pendingDeletionTimeout=null;}set shouldShowZoomControl(t){this.zoomButton&&(this.zoomButton.hidden=!t);}get shouldShowZoomControl(){return this.zoomButton===null?false:!this.zoomButton.hidden}set shouldShowCameraSwitchControl(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}get shouldShowCameraSwitchControl(){return this.cameraSwitchButton===null?false:!this.cameraSwitchButton.hidden}set shouldShowTorchControl(t){this.torchIconButton!==null&&(this.torchIconButton.hidden=!t);}get shouldShowTorchControl(){return this.torchIconButton===null?false:!this.torchIconButton.hidden}set torchControlPosition(t){var o;(o=this.torchIconButton)==null||o.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.TopLeft:t}`);}get torchControlPosition(){var o,e;let t=(e=(o=this.torchIconButton)==null?void 0:o.getAttribute("slot"))!=null?e:"";return t===""?Anchor.TopLeft:t.replace("controls-","")}set zoomControlPosition(t){var o;(o=this.zoomButton)==null||o.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.BottomRight:t}`);}get zoomControlPosition(){var o,e;let t=(e=(o=this.zoomButton)==null?void 0:o.getAttribute("slot"))!=null?e:"";return t===""?Anchor.BottomRight:t.replace("controls-","")}set cameraSwitchControlPosition(t){var o;(o=this.cameraSwitchButton)==null||o.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.TopRight:t}`);}get cameraSwitchControlPosition(){var o,e;let t=(e=(o=this.zoomButton)==null?void 0:o.getAttribute("slot"))!=null?e:"";return t===""?Anchor.TopRight:t.replace("controls-","")}static async createWithSettings(t,o,e,r,n){d.register();let i=document.createElement(d.tag);return i.barcodeArViewSettings=r,i.layout=a.create(),i.append(i.layout),a$1(t)?(i.dataCaptureView=t,i.dataCaptureView.containerElement.prepend(i),await t.setContext(o)):(i.dataCaptureView=await DataCaptureView.forContext(o),i.dataCaptureView.connectToElement(t),i.dataCaptureView.containerElement.prepend(i)),i.presenter=new a$2(i,o,e,r,n!=null?n:a$3.createRecommendedCameraSettings()),await i.presenter.prepare(),i}static async create(t,o,e){return d.createWithSettings(t,o,e,new a$4)}static register(){defineCustomElements({[a.tag]:a,[a$8.tag]:a$8,[a$7.tag]:a$7,[a$6.tag]:a$6,[d.tag]:d,[a$5.tag]:a$5});}static createStyleElement(){return css`[data-could-be-deleted=true]{display:none!important}[data-on-foreground=true]{z-index:3}${d.tag}{inset:0;position:absolute;z-index:1}`}async start(){return this.presenter.startSearching()}async stop(){return this.presenter.stopSearching()}async pause(){return this.presenter.pauseSearching()}reset(){this.deletePendingViews(),this.deleteAllViews();}toggleTorchIcon(t){this.torchIconButton!==null&&(this.torchIconButton.state=t);}onTorchButtonClick(){this.presenter.onTorchButtonClicked();}onCameraSwitchButtonClick(){this.presenter.onCameraSwitchButtonClicked();}onZoomButtonClick(){this.presenter.onZoomButtonClicked();}changeZoomButtonIcon(t){this.zoomButton&&(this.zoomButton.zoom=`${t}x`);}connectedCallback(){this.torchIconButton=a$6.create(),this.torchIconButton.slot=`controls-${this.torchControlPosition}`,this.torchIconButton.hidden=true,this.torchIconButton.addEventListener("pointerdown",this.onTorchButtonClickHandler),this.cameraSwitchButton=a$8.create(),this.cameraSwitchButton.slot=`controls-${this.cameraSwitchControlPosition}`,this.cameraSwitchButton.hidden=true,this.cameraSwitchButton.addEventListener("pointerdown",this.onCameraSwitchButtonHandler),this.zoomButton=a$7.create(),this.zoomButton.slot=`controls-${this.zoomControlPosition}`,this.zoomButton.hidden=true,this.zoomButton.addEventListener("pointerdown",this.onZoomButtonHandler),this.layout.append(this.torchIconButton,this.cameraSwitchButton,this.zoomButton),this.layout.addEventListener("pointerdown",this.onLayoutPointerDownHandler),this.layout.addEventListener("BarcodeArInfoAnnotationEventTap",this.onInfoAnnotationTapHandler),this.backdrop=a$5.create(),this.layout.append(this.backdrop),this.pendingDeletionTimeout=new Timeout(1e3,()=>{this.deletePendingViews();}),this.prepend(d.createStyleElement());}disconnectedCallback(){var t,o,e;this.deleteAllViews(),(t=this.torchIconButton)==null||t.removeEventListener("pointerdown",this.onTorchButtonClickHandler),(o=this.cameraSwitchButton)==null||o.removeEventListener("pointerdown",this.onCameraSwitchButtonHandler),(e=this.zoomButton)==null||e.removeEventListener("pointerdown",this.onZoomButtonHandler),this.layout.removeEventListener("pointerdown",this.onLayoutPointerDownHandler),this.layout.removeEventListener("BarcodeArInfoAnnotationEventTap",this.onInfoAnnotationTapHandler);}isPopoverAnnotation(t){return t instanceof b}isAnnotation(t){var o;return ((o=t.dataset)==null?void 0:o.identifier)==null?false:t.dataset.identifier.endsWith("-annotation")}areMultiplePopoverAllowed(){for(let t of this.layout.querySelectorAll("[data-identifier$='-annotation']"))if(t&&this.isPopoverAnnotation(t)&&t.annotationTrigger==="highlightTapAndBarcodeScan")return true;return false}async onLayoutPointerDown(t){let o=t.target,e=o==null?void 0:o.closest("[data-identifier$='-highlight']"),r=o==null?void 0:o.closest(b.tag);if((e==null?void 0:e.dataset.id)!=null){await this.handleHighlightClick(e);return}if((r==null?void 0:r.dataset.id)!=null){await this.handleAnnotationClick(r);return}await this.handleClickOutside();}async handleHighlightClick(t){this.presenter.emitTappedFeedback();let o=this.queryAnnotationByDataIdentifier(t.dataset.identifier.replace("-highlight",""));o&&(this.isPopoverAnnotation(o)?await this.handlePopoverHighlightClick(o,t):o.hidden=!o.hidden);}async handlePopoverHighlightClick(t,o){var e;if(!this.areMultiplePopoverAllowed()){let r=this.layout.querySelector(`${b.tag}[data-on-foreground="true"]`),n=(e=r==null?void 0:r.dataset.identifier)==null?void 0:e.replace("-annotation","-highlight"),i=this.layout.querySelector(`[data-identifier="${n}"]`);r!=null&&i!=null&&await this.hideBarcodeArPopover(r,i,false);}await this.toggleBarcodeArPopover(t,o);}async handleAnnotationClick(t){var r;let o=(r=t.dataset.identifier)==null?void 0:r.replace("-annotation","-highlight"),e=this.layout.querySelector(`[data-identifier="${o}"]`);e&&await this.toggleBarcodeArPopover(t,e);}async handleClickOutside(){var r;if(this.areMultiplePopoverAllowed())return;let t=this.layout.querySelector(`${b.tag}[data-on-foreground="true"]`);if(!t)return;let o=(r=t.dataset.identifier)==null?void 0:r.replace("-annotation","-highlight"),e=this.layout.querySelector(`[data-identifier="${o}"]`);e&&await this.hideBarcodeArPopover(t,e);}onInfoAnnotationTap(){this.presenter.emitTappedFeedback();}async showBarcodeArPopover(t,o){t.dataset.onForeground="true",t.hidden=false,o.dataset.onForeground="true",this.backdrop.open=true;}async hideBarcodeArPopover(t,o,e=true){t.dataset.onForeground="false",t.hidden=true,o&&(o.dataset.onForeground="false"),e&&this.hideBackdropIfNoPopovers();}hideBackdropIfNoPopovers(){[...this.layout.querySelectorAll(`${b.tag}`)].every(o=>o.hidden)&&(this.backdrop.open=false);}async toggleBarcodeArPopover(t,o){t.hidden?await this.showBarcodeArPopover(t,o):await this.hideBarcodeArPopover(t,o);}deleteAllViews(){for(let t of this.layout.querySelectorAll("[data-identifier]"))t.remove();}deletePendingViews(){for(let t of this.layout.querySelectorAll("[data-could-be-deleted='true']"))t.remove();this.hideBackdropIfNoPopovers();}identifierForHighlight(t){return `${t}-highlight`}identifierForAnnotation(t){return `${t}-annotation`}async onHighlightsOrAnnotationForTrackedBarcode(t){var o,e,r;await((e=(o=this.highlightProvider)!=null?o:q)==null?void 0:e.highlightForBarcode(t.barcode,async n=>this.onHighlight(t,n))),await((r=this.annotationProvider)==null?void 0:r.annotationForBarcode(t.barcode,async n=>this.onAnnotation(t,n)));}async onAnnotation(t,o){let e=o,r=a$9(t),n=this.queryAnnotationByDataId(r);if(n)n.dataset.couldBeDeleted="false";else {if(e.dataset.id=r,e.dataset.identifier=this.identifierForAnnotation(t.identifier),e.hidden=true,this.layout.append(e),this.isPopoverAnnotation(e)){if(e.direction=Direction.Vertical,e.anchor==null&&(e.anchor="bottom-center"),this.areMultiplePopoverAllowed()||e.annotationTrigger==="highlightTapAndBarcodeScan"){let i=this.queryHighlightByDataId(r);if(!i)return;this.showBarcodeArPopover(e,i);}}else {let i=e;i.hidden=i.annotationTrigger==="highlightTap";}this.updateAnnotationPosition(t,e);}}async onHighlight(t,o){let e=a$9(t),r=this.queryHighlightByDataId(e);r?r.dataset.couldBeDeleted="false":(o.dataset.id=e,o.dataset.identifier=this.identifierForHighlight(t.identifier),this.updateHighlightPosition(t,o),this.layout.append(o));}queryHighlightByDataIdentifier(t){return this.layout.querySelector(`[data-identifier$="${t}-highlight"]`)}queryAnnotationByDataIdentifier(t){return this.layout.querySelector(`[data-identifier$="${t}-annotation"]`)}queryHighlightByDataId(t){return this.layout.querySelector(`[data-identifier$="-highlight"][data-id="${t}"]`)}queryAnnotationByDataId(t){return this.layout.querySelector(`[data-identifier$="-annotation"][data-id="${t}"]`)}updateRemovedTrackedBarcodes(t){var r,n,i,f,h;let o=this.querySelectorAll("[data-identifier]");if(Object.keys(t.allTrackedBarcodes).length===0){for(let u of o)u.dataset.couldBeDeleted="true";(r=this.pendingDeletionTimeout)!=null&&r.running||(n=this.pendingDeletionTimeout)==null||n.start();return}let e=new Set(t.removedTrackedBarcodes);for(let u of o){let p=(i=u.dataset.identifier)==null?void 0:i.replace("-highlight","").replace("-annotation","");p!=null&&e.has(p)&&(u.dataset.couldBeDeleted="true");}(f=this.pendingDeletionTimeout)!=null&&f.running||(h=this.pendingDeletionTimeout)==null||h.start();}render(t){for(let[o,e]of Object.entries(t.allTrackedBarcodes)){t.addedTrackedBarcodes[o]!=null&&this.onHighlightsOrAnnotationForTrackedBarcode(e);let r=a$9(e),n=this.queryAnnotationByDataId(r),i=this.queryHighlightByDataId(r);i&&(this.updateBrushSize(i,e),this.updateHighlightPosition(e,i)),n&&this.updateAnnotationPosition(e,n,i);}this.updateRemovedTrackedBarcodes(t);}updateHighlightPosition(t,o,e="center"){if(o.hidden)return;let r=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions),n=this.normalizedViewPointFromFrameAnchorPositions(r,e);o.updatePosition(n,new Point(-50,-50),this.calculateRotationAngle(r.topLeft,r.topRight));}updateBrushSize(t,o){if(t.width==null||t.height==null)return;let e=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(o.anchorPositions),r=Math.round(calculateWidth(e)),n=Math.round(calculateHeight(e));t.width!==r&&(t.width=r),t.height!==n&&(t.height=n);}getTransformOrigin(t){return {"top-center":new Point(-50,0),"bottom-center":new Point(-50,-100),"left-center":new Point(0,-50),"right-center":new Point(-100,-50)}[t]}calculateAnnotationPosition(t,o,e){var p,y;let n=t.orderVerticesByPosition(),i=this.normalizedViewPointFromFrameAnchorPositions(t,"center"),h={"bottom-center":()=>{let s=this.normalizedViewPointFromFrameAnchorPositions(n,"topCenter");return new Point(s.x,s.y-7)},"top-center":()=>{let s=this.normalizedViewPointFromFrameAnchorPositions(n,"bottomCenter");return new Point(s.x,s.y+7)},"right-center":()=>{let s=this.normalizedViewPointFromFrameAnchorPositions(n,"centerLeft");return new Point(s.x-7,s.y)},"left-center":()=>{let s=this.normalizedViewPointFromFrameAnchorPositions(n,"centerRight");return new Point(s.x+7,s.y)}}[o]();return e?e instanceof b$1?(p={"bottom-center":new Point(i.x,i.y-7-e.clientHeight/2),"top-center":new Point(i.x,i.y+7+e.clientHeight/2),"right-center":new Point(i.x-7-e.clientWidth/2,i.y),"left-center":new Point(i.x+7+e.clientWidth/2,i.y)}[o])!=null?p:h:(y={"bottom-center":new Point(i.x,i.y-7-e.clientHeight/2),"top-center":new Point(i.x,i.y+7+e.clientHeight/2),"right-center":new Point(i.x-7-e.clientWidth/2,i.y),"left-center":new Point(i.x+7+e.clientWidth/2,i.y)}[o])!=null?y:h:h}updateAnnotationPosition(t,o,e){let r=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions);o.anchor||(o.anchor="top-center");let n=this.getTransformOrigin(o.anchor),i=this.calculateAnnotationPosition(r,o.anchor,e);o.updatePosition(i,n,this.calculateRotationAngle(r.topLeft,r.topRight));}normalizedViewPointFromFrameAnchorPositions(t,o="center"){let e=this.presenter.currentCamera.getMirrorImageEnabled(),r=new Size(this.dataCaptureView.width,this.dataCaptureView.height);if(e){let i=t[{centerLeft:"centerRight",centerRight:"centerLeft",center:"center",topCenter:"topCenter",bottomCenter:"bottomCenter"}[o]];return Point.mirrorX(i,r)}return t[o]}calculateRotationAngle(t,o){let e=o.x-t.x,r=-(o.y-t.y),n=Math.atan2(r,e);return Math.round(n*(180/Math.PI))}};d.tag="scandit-barcode-ar-view";var k=d;export{k as a};
@@ -3,4 +3,4 @@ import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datac
3
3
  <slot name="icon"></slot>
4
4
  <slot></slot>
5
5
  </button>
6
- `,e.append(t.createStyleElement().cloneNode(!0));}async connectedCallback(){let o=await new ScanditIconBuilder().withIcon(ScanditIconType.ChevronDown).withIconColor(Color.fromHex("#3D4852").withAlpha(.8)).withWidth(24).withHeight(24).withIconSize(20).build();o.setAttribute("slot","icon"),this.append(o);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`:host{display:inline-block;font-family:SF Pro Text,sans-serif}:host button{align-items:center;background-color:hsla(0,0%,100%,.9);border:none;border-radius:1rem;color:rgba(61,72,82,.8);display:flex;font-size:.688rem;font-weight:600;gap:.25rem;justify-content:center;min-width:140px;min-width:100px;padding:.25rem .5rem}`}};t.tag="scandit-find-card-list-button";var n=t;n.register();export{n as a};
6
+ `,e.append(t.createStyleElement().cloneNode(true));}async connectedCallback(){let o=await new ScanditIconBuilder().withIcon(ScanditIconType.ChevronDown).withIconColor(Color.fromHex("#3D4852").withAlpha(.8)).withWidth(24).withHeight(24).withIconSize(20).build();o.setAttribute("slot","icon"),this.append(o);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`:host{display:inline-block;font-family:SF Pro Text,sans-serif}:host button{align-items:center;background-color:hsla(0,0%,100%,.9);border:none;border-radius:1rem;color:rgba(61,72,82,.8);display:flex;font-size:.688rem;font-weight:600;gap:.25rem;justify-content:center;min-width:140px;min-width:100px;padding:.25rem .5rem}`}};t.tag="scandit-find-card-list-button";var n=t;n.register();export{n as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-L2JLFSNM.js';import {Brush}from'@scandit/web-datacapture-core';var l=class{constructor(r){this.basicOverlay=r;}didTapTrackedBarcode(r){var a$1,e;this.basicOverlay.listener!=null&&((e=(a$1=this.basicOverlay.listener).didTapTrackedBarcode)==null||e.call(a$1,this.basicOverlay,a.fromJSON(r)));}didUpdateSession(r,a){var i,o,s,d;if(this.basicOverlay.listener==null)return;let e=false;for(let c of Object.values(a.trackedBarcodes)){let t=(s=(o=(i=this.basicOverlay.listener).brushForTrackedBarcode)==null?void 0:o.call(i,this.basicOverlay,c))!=null?s:null;if(t!=null){let n=(d=this.basicOverlay._brushesForBarcodes.get(c.identifier))!=null?d:null;Brush.areEquals(t,n)||(this.basicOverlay._brushesForBarcodes.set(c.identifier,t),e=true);}}e&&this.basicOverlay.barcodeBatch.notifyContext();}};export{l as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-2RKBANN2.js';import {NumberWithUnit}from'@scandit/web-datacapture-core';var i=class{constructor(){this.radius=new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit);this.type="targetAimer";}toJSONObject(){return {type:this.type,radius:this.radius.toJSONObject()}}};export{i as a};
1
+ import {b}from'./chunk-DHCNYKSL.js';import {NumberWithUnit}from'@scandit/web-datacapture-core';var i=class{constructor(){this.radius=new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit);this.type="targetAimer";}toJSONObject(){return {type:this.type,radius:this.radius.toJSONObject()}}};export{i as a};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-DHCNYKSL.js';import {a}from'./chunk-IHTTMWUR.js';import {CameraSettings}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var o=class n{constructor(){this.type="barcodeTracking";this._isEnabled=true;this._context=null;this.listeners=[];this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){let e=new CameraSettings(b.BarcodeBatch.RecommendedCameraSettings);return e.setProperty("grayScaleFrameReader",true),e}get context(){return this._context}set context(e){this._context=e;}static async forContext(e,a){warnMultithreadingUnavailable();let t=new n;return t.settings=a,e!=null&&await e.addMode(t),t}isEnabled(){return this._isEnabled}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject()}}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}async onWorkerMessage(e){var a$1;switch(e.type){case "barcodeBatchDidUpdateSession":{{let t=a.fromJSON(e.payload);if(!this._isEnabled)return;for(let r of [...this.privateListeners,...this.listeners])r.didUpdateSession&&r.didUpdateSession(this,t);}break}case "didTapTrackedBarcode":{for(let t of this.privateListeners)(a$1=t.didTapTrackedBarcode)==null||a$1.call(t,e.payload);break}}}async notifyContext(){if(this.context)return this.context.update()}};export{o as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-QGAFQZJW.js';import {a}from'./chunk-LKZBVQXD.js';import {Localization}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function b(r){return Localization.getInstance().updateIfMissing({...a}),r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"BarcodeCapture",load:async n=>{var e,o;let a=n;return await a$1.create({...a,libraryLocation:(e=r==null?void 0:r.libraryLocation)!=null?e:a.libraryLocation,highEndBlurryRecognition:(o=r==null?void 0:r.highEndBlurryRecognition)!=null?o:!1})}}}export{b as a};
1
+ import {a as a$1}from'./chunk-TJML3UCN.js';import {a}from'./chunk-LKZBVQXD.js';import {Localization}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function b(r){return Localization.getInstance().updateIfMissing({...a}),r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"BarcodeCapture",load:async n=>{var e,o;let a=n;return await a$1.create({...a,libraryLocation:(e=r==null?void 0:r.libraryLocation)!=null?e:a.libraryLocation,highEndBlurryRecognition:(o=r==null?void 0:r.highEndBlurryRecognition)!=null?o:false})}}}export{b as a};
@@ -0,0 +1 @@
1
+ import {Color,ScanditIconBuilder,ScanditIconType,ScanditIconShape}from'@scandit/web-datacapture-core';import {gray900}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var r=Color.fromRGBA(255,255,255,1),e=class e extends ScanditHTMLElement{constructor(){super();this.onPressedHandler=this.onPressed.bind(this);this.onReleasedHandler=this.onReleased.bind(this);let t=this.attachShadow({mode:"open"});t.innerHTML=html`<button type="button"><slot></slot></button>`,t.append(e.createStyleElement().cloneNode(true));}static create(){return document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}static createStyleElement(){return css`:host[hidden]{display:none}:host button{background:none;border:none;display:flex;margin:0;outline:none;padding:0;-webkit-tap-highlight-color:transparent}`}async connectedCallback(){var o,n,i;let t=new ScanditIconBuilder;this.icon=await t.withIcon(ScanditIconType.CameraSwitch).withBackgroundShape(ScanditIconShape.Circle).withBackgroundColor(gray900.withAlpha(.3)).withBackgroundStrokeColor(gray900).withWidth(36).withHeight(36).withIconSize(28).build(),(o=this.shadowRoot)==null||o.append(this.icon),(n=this.shadowRoot)==null||n.addEventListener("pointerdown",this.onPressedHandler),(i=this.shadowRoot)==null||i.addEventListener("pointerup",this.onReleasedHandler);}disconnectedCallback(){var t,o;(t=this.shadowRoot)==null||t.removeEventListener("pointerdown",this.onPressedHandler),(o=this.shadowRoot)==null||o.removeEventListener("pointerup",this.onReleasedHandler);}onPressed(){this.icon.iconColor=r.withAlpha(.3);}onReleased(){this.icon.iconColor=r;}};e.tag="scandit-check-switch-camera-button";var s=e;export{s as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-BRRT6GC7.js';import {b as b$1}from'./chunk-SZUPDKV5.js';import {b}from'./chunk-2RKBANN2.js';var n=class{constructor(){this.defaultHandMode=b.SparkScan.SparkScanViewSettings.defaultHandMode;this.defaultScanningMode=new b$1("single","default");this.defaultTorchState=b.SparkScan.SparkScanViewSettings.defaultTorchState;this.defaultMiniPreviewSize=b.SparkScan.SparkScanViewSettings.defaultMiniPreviewSize;this.defaultCameraPosition=b.SparkScan.SparkScanViewSettings.defaultCameraPosition;this.hapticEnabled=b.SparkScan.SparkScanViewSettings.hapticEnabled;this.holdToScanEnabled=b.SparkScan.SparkScanViewSettings.holdToScanEnabled;this.inactiveStateTimeout=b.SparkScan.SparkScanViewSettings.inactiveStateTimeout;this.soundEnabled=b.SparkScan.SparkScanViewSettings.soundEnabled;this.toastSettings=new a;this.triggerButtonCollapseTimeout=b.SparkScan.SparkScanViewSettings.triggerButtonCollapseTimeout;this.visualFeedbackEnabled=b.SparkScan.SparkScanViewSettings.visualFeedbackEnabled;this.zoomFactorIn=b.SparkScan.SparkScanViewSettings.zoomFactorIn;this.zoomFactorOut=b.SparkScan.SparkScanViewSettings.zoomFactorOut;}toJSONObject(){return {defaultHandMode:this.defaultHandMode,defaultScanningMode:this.defaultScanningMode.toJSONObject(),defaultTorchState:this.defaultTorchState,defaultMiniPreviewSize:this.defaultMiniPreviewSize,defaultCameraPosition:this.defaultCameraPosition,hapticEnabled:this.hapticEnabled,holdToScanEnabled:this.holdToScanEnabled,inactiveStateTimeout:this.inactiveStateTimeout,soundEnabled:this.soundEnabled,toastSettings:this.toastSettings.toJSONObject(),triggerButtonCollapseTimeout:this.triggerButtonCollapseTimeout,visualFeedbackEnabled:this.visualFeedbackEnabled,zoomFactorIn:this.zoomFactorIn,zoomFactorOut:this.zoomFactorOut}}};export{n as a};
1
+ import {a}from'./chunk-BRRT6GC7.js';import {b as b$1}from'./chunk-SZUPDKV5.js';import {b}from'./chunk-DHCNYKSL.js';var n=class{constructor(){this.defaultHandMode=b.SparkScan.SparkScanViewSettings.defaultHandMode;this.defaultScanningMode=new b$1("single","default");this.defaultTorchState=b.SparkScan.SparkScanViewSettings.defaultTorchState;this.defaultMiniPreviewSize=b.SparkScan.SparkScanViewSettings.defaultMiniPreviewSize;this.defaultCameraPosition=b.SparkScan.SparkScanViewSettings.defaultCameraPosition;this.hapticEnabled=b.SparkScan.SparkScanViewSettings.hapticEnabled;this.holdToScanEnabled=b.SparkScan.SparkScanViewSettings.holdToScanEnabled;this.inactiveStateTimeout=b.SparkScan.SparkScanViewSettings.inactiveStateTimeout;this.soundEnabled=b.SparkScan.SparkScanViewSettings.soundEnabled;this.toastSettings=new a;this.triggerButtonCollapseTimeout=b.SparkScan.SparkScanViewSettings.triggerButtonCollapseTimeout;this.visualFeedbackEnabled=b.SparkScan.SparkScanViewSettings.visualFeedbackEnabled;this.zoomFactorIn=b.SparkScan.SparkScanViewSettings.zoomFactorIn;this.zoomFactorOut=b.SparkScan.SparkScanViewSettings.zoomFactorOut;}toJSONObject(){return {defaultHandMode:this.defaultHandMode,defaultScanningMode:this.defaultScanningMode.toJSONObject(),defaultTorchState:this.defaultTorchState,defaultMiniPreviewSize:this.defaultMiniPreviewSize,defaultCameraPosition:this.defaultCameraPosition,hapticEnabled:this.hapticEnabled,holdToScanEnabled:this.holdToScanEnabled,inactiveStateTimeout:this.inactiveStateTimeout,soundEnabled:this.soundEnabled,toastSettings:this.toastSettings.toJSONObject(),triggerButtonCollapseTimeout:this.triggerButtonCollapseTimeout,visualFeedbackEnabled:this.visualFeedbackEnabled,zoomFactorIn:this.zoomFactorIn,zoomFactorOut:this.zoomFactorOut}}};export{n as a};
@@ -1,4 +1,4 @@
1
- import {Anchor}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var o=class o extends ScanditHTMLElement{constructor(){super();let l=this.attachShadow({mode:"open"});l.append(o.createStyleElement().cloneNode(!0));let e=document.createElement("div");e.id="root",e.innerHTML=html`
1
+ import {Anchor}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var o=class o extends ScanditHTMLElement{constructor(){super();let l=this.attachShadow({mode:"open"});l.append(o.createStyleElement().cloneNode(true));let e=document.createElement("div");e.id="root",e.innerHTML=html`
2
2
  <slot></slot>
3
3
  <div class="controls-wrapper">
4
4
  <div class="controls top">
@@ -1,10 +1,10 @@
1
- import { FrameData, DataCaptureMode, CameraSettings, DataCaptureContext, DataCaptureModeJSON } from '@scandit/web-datacapture-core';
1
+ import { DataCaptureMode, DataCaptureModeJSON, CameraSettings, DataCaptureContext, FrameData } from '@scandit/web-datacapture-core';
2
2
  import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Serializable';
3
3
  import { BarcodeFindFeedback } from './BarcodeFindFeedback.js';
4
4
  import { BarcodeFindItem } from './BarcodeFindItem.js';
5
5
  import { BarcodeFindSession } from './BarcodeFindSession.js';
6
6
  import { BarcodeFindTransformer } from './BarcodeFindTransformer.js';
7
- import { BarcodeFindSettings, BarcodeFindSettingsJSON } from './BarcodeFindSettings.js';
7
+ import { BarcodeFindSettingsJSON, BarcodeFindSettings } from './BarcodeFindSettings.js';
8
8
  import '../TrackedBarcode.js';
9
9
  import '../Barcode.js';
10
10
  import '../EncodingRange.js';
@@ -1 +1 @@
1
- export{a as BarcodeFind}from'../chunks/chunk-5KVH2XIO.js';
1
+ export{a as BarcodeFind}from'../chunks/chunk-WLVAYFWF.js';
@@ -1 +1 @@
1
- export{a as BarcodeFindFeedback}from'../chunks/chunk-75VI6EZ2.js';
1
+ export{a as BarcodeFindFeedback}from'../chunks/chunk-ACNWENKW.js';
@@ -1 +1 @@
1
- export{b as BarcodeFindPresenter,a as ViewState}from'../chunks/chunk-IC4MKVBG.js';
1
+ export{b as BarcodeFindPresenter,a as ViewState}from'../chunks/chunk-6BIERYLN.js';
@@ -1,4 +1,4 @@
1
- import { TrackedBarcodeJSON, TrackedBarcode } from '../TrackedBarcode.js';
1
+ import { TrackedBarcode, TrackedBarcodeJSON } from '../TrackedBarcode.js';
2
2
  import '@scandit/web-datacapture-core';
3
3
  import '../Barcode.js';
4
4
  import '@scandit/web-datacapture-core/build/js/private/Serializable';
@@ -1 +1 @@
1
- export{a as BarcodeFindSession}from'../chunks/chunk-GOGBXJU7.js';
1
+ export{a as BarcodeFindSession}from'../chunks/chunk-7JPCVI74.js';
@@ -1 +1 @@
1
- export{a as BarcodeFindSettings}from'../chunks/chunk-TYVQVFM4.js';
1
+ export{a as BarcodeFindSettings}from'../chunks/chunk-7MDNYMWU.js';
@@ -1 +1 @@
1
- export{a as BarcodeFindView}from'../chunks/chunk-BTRDH2AV.js';
1
+ export{a as BarcodeFindView}from'../chunks/chunk-7E3OQ2ZA.js';
@@ -1 +1 @@
1
- export{a as BarcodeFindSettings}from'../chunks/chunk-TYVQVFM4.js';export{a as BarcodeFindView}from'../chunks/chunk-BTRDH2AV.js';export{a as BarcodeFind}from'../chunks/chunk-5KVH2XIO.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'../chunks/chunk-HTKUJZG2.js';export{a as BarcodeFindViewSettings}from'../chunks/chunk-4PTIOBXM.js';
1
+ export{a as BarcodeFindSettings}from'../chunks/chunk-7MDNYMWU.js';export{a as BarcodeFindView}from'../chunks/chunk-7E3OQ2ZA.js';export{a as BarcodeFind}from'../chunks/chunk-WLVAYFWF.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'../chunks/chunk-HTKUJZG2.js';export{a as BarcodeFindViewSettings}from'../chunks/chunk-4PTIOBXM.js';
@@ -1,5 +1,5 @@
1
1
  import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
2
- import { Card } from '../atoms/Card.js';
2
+ import { Card } from '@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';
3
3
 
4
4
  declare enum CardListContainerAttribute {
5
5
  TextForCollapseCardsButton = "text-for-collapse-cards-button"
@@ -21,13 +21,13 @@ declare class CardListContainer extends ScanditHTMLElement {
21
21
  private static createStyleElement;
22
22
  attributeChangeCallback(name: keyof CardListContainer, _oldValue: string, newValue: string): void;
23
23
  connectedCallback(): void;
24
- updateHeight(height: number): void;
25
24
  disconnectedCallback(): void;
26
25
  collapse(): void;
27
26
  expand(): void;
28
27
  renderCards(cards: Card[]): void;
29
28
  unshiftCard(card: Card): Promise<void>;
30
29
  getCardBySelector(selector: string): Card | null;
30
+ updateHeight(height: number): void;
31
31
  private onCardListWillExpand;
32
32
  private onCarListTap;
33
33
  private onCarouselButtonClick;
@@ -1 +1 @@
1
- export{b as CardListContainer,a as CardListContainerAttribute}from'../../../chunks/chunk-DFIOIHPG.js';
1
+ export{b as CardListContainer,a as CardListContainerAttribute}from'../../../chunks/chunk-MAA4EROF.js';
@@ -0,0 +1,18 @@
1
+ import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
2
+
3
+ declare class ImageAndTextCardLayout extends ScanditHTMLElement {
4
+ static tag: "scandit-image-and-text-card-layout";
5
+ constructor();
6
+ set title(text: string);
7
+ set subtitle(text: string);
8
+ static create(): ImageAndTextCardLayout;
9
+ static register(): void;
10
+ private static createStyleElement;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ [ImageAndTextCardLayout.tag]: ImageAndTextCardLayout;
15
+ }
16
+ }
17
+
18
+ export { ImageAndTextCardLayout };
@@ -0,0 +1 @@
1
+ export{a as ImageAndTextCardLayout}from'../../../chunks/chunk-5CKMOWBK.js';
@@ -1 +1 @@
1
- export{a as TorchIconButton}from'../../../chunks/chunk-JKO4EZPZ.js';
1
+ export{a as TorchIconButton}from'../../../chunks/chunk-7GJVUU3G.js';
@@ -1 +1 @@
1
- export{b as FindLayout,a as FindLayoutEvents}from'../../../chunks/chunk-XY65BTLP.js';
1
+ export{b as FindLayout,a as FindLayoutEvents}from'../../../chunks/chunk-YJ42KEYE.js';