@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
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-OHSTP7TM.js';import {b as b$1}from'./chunk-FJ4SOETD.js';import {b as b$2}from'./chunk-5DP5VNWQ.js';import {a as a$3}from'./chunk-T2Y2C76P.js';import {a as a$2,b as b$3}from'./chunk-OPL5NVVM.js';import {e,f as f$1,a as a$1,b as b$4,d,c}from'./chunk-DVHTYKDX.js';import {f}from'./chunk-YBD5JYCX.js';import {Point}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var b=class f$2 extends ScanditHTMLElement{constructor(){super(...arguments);this._pointerDownListener=this.onPointerDown.bind(this);this._pointerUpListener=this.onPointerUp.bind(this);this._dragController=new b$1(this);this._longPressController=new b$2(this);this._longPressStartListener=this.onLongPressStart.bind(this);}get minimized(){return !this.hasAttribute("expanded")}set minimized(t){this.toggleAttribute("minimized",!t);}get expanded(){return this.hasAttribute("expanded")}set expanded(t){this.toggleAttribute("expanded",t),this._dragController.margin=t?new Point(-65,-65):new Point(0,0),this._dragController.repositionIfOutOfBounds();}get pressed(){return this.hasAttribute("pressed")}set pressed(t){this.toggleAttribute("pressed",t);}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t);}static create(){return defineCustomElements({[f]:f$2}),document.createElement(f)}connectedCallback(){this.append(this.render()),this.addEventListener("pointerdown",this._pointerDownListener),this.addEventListener("pointerup",this._pointerUpListener),this.addEventListener("longpressstart",this._longPressStartListener),this._dragController.connect(),this._longPressController.connect(),this._longPressController.elementsAllowedToTriggerLongPressEvents.add(this),this._pulse=this.querySelector(".pulse"),this._pulseAnimation=new Animation(new KeyframeEffect(this._pulse,[{background:"rgba(0, 0, 0, 0)"},{background:`var(${e})`,transform:"translate(-50%, -50%) scale(1.1)"},{background:"rgba(0, 0, 0, 0)"}],{duration:1100,easing:"ease-out",iterations:Number.POSITIVE_INFINITY}));}disconnectedCallback(){this.removeEventListener("pointerdown",this._pointerDownListener),this.removeEventListener("pointerup",this._pointerUpListener),this.removeEventListener("longpressstart",this._longPressStartListener),this._dragController.disconnect(),this._longPressController.disconnect(),this.innerHTML="";}translateTo(t){this._dragController.translateTo(t,!1);}setImage(t){var n;let r=this.querySelector("div");(n=r.firstElementChild)==null||n.remove(),t&&r.append(t);}startPulsating(){var t;(t=this._pulseAnimation)==null||t.play();}stopPulsating(){this._pulseAnimation&&(this._pulseAnimation.cancel(),this._pulseAnimation.currentTime=0);}render(){return a`
1
+ import {a as a$2}from'./chunk-OHSTP7TM.js';import {b as b$2}from'./chunk-RWDAYBTQ.js';import {b as b$1}from'./chunk-5DP5VNWQ.js';import {a as a$3}from'./chunk-T2Y2C76P.js';import {a as a$1,b as b$3}from'./chunk-OPL5NVVM.js';import {e,f as f$1,a,b as b$4,d,c}from'./chunk-DVHTYKDX.js';import {f}from'./chunk-YBD5JYCX.js';import {Point}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var b=class f$2 extends ScanditHTMLElement{constructor(){super(...arguments);this._pointerDownListener=this.onPointerDown.bind(this);this._pointerUpListener=this.onPointerUp.bind(this);this._longPressController=new b$1(this);this._longPressStartListener=this.onLongPressStart.bind(this);}get minimized(){return !this.hasAttribute("expanded")}set minimized(t){this.toggleAttribute("minimized",!t);}get expanded(){return this.hasAttribute("expanded")}set expanded(t){this.toggleAttribute("expanded",t),this._dragController&&(this._dragController.margin=t?new Point(-65,-65):new Point(0,0),this._dragController.repositionIfOutOfBounds());}get pressed(){return this.hasAttribute("pressed")}set pressed(t){this.toggleAttribute("pressed",t);}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t);}static create(){return defineCustomElements({[f]:f$2}),document.createElement(f)}connectedCallback(){var t;this.append(this.render()),this._dragController=new b$2(this,(t=this.parentElement)==null?void 0:t.parentElement),this._dragController.connect(),this.addEventListener("pointerdown",this._pointerDownListener),this.addEventListener("pointerup",this._pointerUpListener),this.addEventListener("longpressstart",this._longPressStartListener),this._longPressController.connect(),this._longPressController.elementsAllowedToTriggerLongPressEvents.add(this),this._pulse=this.querySelector(".pulse"),this._pulseAnimation=new Animation(new KeyframeEffect(this._pulse,[{background:"rgba(0, 0, 0, 0)"},{background:`var(${e})`,transform:"translate(-50%, -50%) scale(1.1)"},{background:"rgba(0, 0, 0, 0)"}],{duration:1100,easing:"ease-out",iterations:Number.POSITIVE_INFINITY}));}disconnectedCallback(){var t;this.removeEventListener("pointerdown",this._pointerDownListener),this.removeEventListener("pointerup",this._pointerUpListener),this.removeEventListener("longpressstart",this._longPressStartListener),(t=this._dragController)==null||t.disconnect(),this._longPressController.disconnect(),this.innerHTML="";}repositionIfOutOfBounds(){var t;(t=this._dragController)==null||t.repositionIfOutOfBounds();}translateTo(t){var i;(i=this._dragController)==null||i.translateTo(t,false);}setImage(t){var n;let i=this.querySelector("div");(n=i.firstElementChild)==null||n.remove(),t&&i.append(t);}startPulsating(){var t;(t=this._pulseAnimation)==null||t.play();}stopPulsating(){this._pulseAnimation&&(this._pulseAnimation.cancel(),this._pulseAnimation.currentTime=0);}render(){return a$2`
2
2
  <div>
3
3
  <div class="pulse"></div>
4
4
  <svg width="49" height="26" viewBox="0 0 49 26" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -45,7 +45,7 @@ import {a}from'./chunk-OHSTP7TM.js';import {b as b$1}from'./chunk-FJ4SOETD.js';i
45
45
 
46
46
  <style>
47
47
  ${f} {
48
- position: fixed;
48
+ position: absolute;
49
49
  top: 0;
50
50
  left: 0;
51
51
  width: 90px;
@@ -73,15 +73,15 @@ import {a}from'./chunk-OHSTP7TM.js';import {b as b$1}from'./chunk-FJ4SOETD.js';i
73
73
  position: relative;
74
74
  width: 90px;
75
75
  height: 90px;
76
- background: var(${a$1});
76
+ background: var(${a});
77
77
  border-radius: 50%;
78
- filter: drop-shadow(0px 2px 6px #${a$2.toJSON()})
78
+ filter: drop-shadow(0px 2px 6px #${a$1.toJSON()})
79
79
  drop-shadow(0px 1px 2px #${b$3.toJSON()});
80
80
  transition: filter 0.3s ease;
81
81
  }
82
82
 
83
83
  ${f} div .pulse {
84
- position: fixed;
84
+ position: absolute;
85
85
  top: 50%;
86
86
  left: 50%;
87
87
  width: 100%;
@@ -95,7 +95,7 @@ import {a}from'./chunk-OHSTP7TM.js';import {b as b$1}from'./chunk-FJ4SOETD.js';i
95
95
 
96
96
  ${f}[pressed] div {
97
97
  background: var(${b$4});
98
- filter: drop-shadow(0px 4px 4px #${a$2.toJSON()})
98
+ filter: drop-shadow(0px 4px 4px #${a$1.toJSON()})
99
99
  drop-shadow(0px 8px 12px #${b$3.toJSON()});
100
100
  }
101
101
 
@@ -127,4 +127,4 @@ import {a}from'./chunk-OHSTP7TM.js';import {b as b$1}from'./chunk-FJ4SOETD.js';i
127
127
  max-height: 64px;
128
128
  }
129
129
  </style>
130
- `}onPointerDown(t){t instanceof PointerEvent&&(this._dragController.draggable=this.minimized,this._holdStart=Date.now(),this.setPointerCapture(t.pointerId));}onPointerUp(t){if(t instanceof PointerEvent){let r=this._holdStart!=null&&Date.now()-this._holdStart<400,n=!this._dragController.pointerDownEvent||!a$3(this._dragController.pointerDownEvent,t);r&&n&&this.dispatchEvent(new CustomEvent("tap")),this.pressed=!1,this._holdStart=void 0,this.releasePointerCapture(t.pointerId);}}onLongPressStart(){this._dragController.draggable=!0,this.pressed=!0,this._holdStart=void 0;}};export{b as a};
130
+ `}onPointerDown(t){t instanceof PointerEvent&&(this._dragController&&(this._dragController.draggable=this.minimized),this._holdStart=Date.now(),this.setPointerCapture(t.pointerId));}onPointerUp(t){var i;if(t instanceof PointerEvent){let n=this._holdStart!=null&&Date.now()-this._holdStart<400,C=!((i=this._dragController)!=null&&i.pointerDownEvent)||!a$3(this._dragController.pointerDownEvent,t);n&&C&&this.dispatchEvent(new CustomEvent("tap")),this.pressed=false,this._holdStart=void 0,this.releasePointerCapture(t.pointerId);}}onLongPressStart(){this._dragController&&(this._dragController.draggable=true),this.pressed=true,this._holdStart=void 0;}};export{b as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-CYVVGAZ4.js';import {Brush,Color,ScanditIconBuilder,ScanditIconShape}from'@scandit/web-datacapture-core';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';var r=class r extends ScanditHTMLElement{constructor(){super(...arguments);this._brush=new Brush(Color.fromHex("#00FFFF").withAlpha(.45),Color.fromHex("#00FFFF"),2);this.brushAsDom=null;this._icon=null;}set barcode(i){this._barcode=i;}get barcode(){return this._barcode}set brush(i){this._brush=i,this.updateBrushColor();}get brush(){return this._brush}set icon(i){var t;this._icon=i,i==null?(t=this._icon)==null||t.remove():(this._icon=i,this.append(this._icon)),this.updateBrushColor();}get icon(){return this._icon}set width(i){this.brushAsDom!=null&&(this.brushAsDom.width=i),this._icon!=null&&(this._icon.width=i);}set height(i){this.brushAsDom!=null&&(this.brushAsDom.height=i),this._icon!=null&&(this._icon.height=i);}get height(){return this.brushAsDom!=null?this.brushAsDom.height:this._icon!=null?this._icon.height:0}get width(){return this.brushAsDom!=null?this.brushAsDom.width:this._icon!=null?this._icon.width:0}static create(i){r.register();let t=document.createElement(r.tag);return t.barcode=i,t}static register(){defineCustomElements({[r.tag]:r});}async connectedCallback(){this.iconBuilder=new ScanditIconBuilder().withBackgroundShape(ScanditIconShape.Square).withBackgroundColor(this.brush.fillColor).withBackgroundStrokeColor(this.brush.strokeColor).withBackgroundStrokeWidth(this.brush.strokeWidth),this._icon==null?(this.brushAsDom=await this.iconBuilder.build(),this.append(this.brushAsDom)):this.append(this._icon),this.updateBrushColor();}updateBrushColor(){this.brushAsDom!=null&&(this.brushAsDom.backgroundColor=this._brush.fillColor,this.brushAsDom.backgroundStrokeColor=this._brush.strokeColor,this.brushAsDom.backgroundStrokeWidth=this._brush.strokeWidth),this._icon!=null&&(this._icon.backgroundColor=this._brush.fillColor,this._icon.backgroundStrokeColor=this._brush.strokeColor,this._icon.backgroundStrokeWidth=this._brush.strokeWidth);}updatePosition(i,t,h){a(this,i,t,h);}};r.tag="scandit-barcode-ar-rectangle-highlight";var s=r;export{s as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-DCUKY2F4.js';import {b}from'./chunk-DHCNYKSL.js';import {PrivateNoneLocationSelection}from'@scandit/web-datacapture-core';var S=class{constructor(){this.codeDuplicateFilter=b.BarcodeCapture.BarcodeCaptureSettings.codeDuplicateFilter;this.locationSelection=null;this.enabledCompositeTypes=[];this.scanIntention="manual";this.properties={};this.symbologies={};this._arucoDictionary=null;}get enabledSymbologies(){return Object.keys(this.symbologies).filter(o=>{var e;return (e=this.symbologies[o])==null?void 0:e.isEnabled})}get compositeTypeDescriptions(){return b.CompositeTypeDescriptions.reduce((o,e)=>(o[e.types[0]]=e,o),{})}settingsForSymbology(o){if(!this.symbologies[o]){let e=b.SymbologySettings[o];e._symbology=o,this.symbologies[o]=e;}return this.symbologies[o]}setProperty(o,e){this.properties[o]=e;}getProperty(o){return this.properties[o]}enableSymbologies(o){for(let e of o)this.enableSymbology(e,true);}enableSymbology(o,e){this.settingsForSymbology(o).isEnabled=e,o==="aruco"&&(this._arucoDictionary=a.fromPreset("5X5_50"));}enableSymbologiesForCompositeTypes(o){for(let e of o)this.enableSymbologies(this.compositeTypeDescriptions[e].symbologies);}setArucoDictionary(o){this._arucoDictionary=o;}toJSONObject(){var e,i,r,n,s;let o={};return {codeDuplicateFilter:this.codeDuplicateFilter,enabledCompositeTypes:[...this.enabledCompositeTypes],locationSelection:(i=(e=this.locationSelection)==null?void 0:e.toJSONObject())!=null?i:PrivateNoneLocationSelection,properties:{...this.properties},symbologies:Object.keys(this.symbologies).reduce((c,l)=>{var a;let y=(a=this.symbologies[l])==null?void 0:a.toJSONObject();return y&&(c[l]=y),c},o),scanIntention:(r=this.scanIntention)!=null?r:null,arucoDictionary:(s=(n=this._arucoDictionary)==null?void 0:n.toJSONObject())!=null?s:null}}};export{S as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-XUOTM7YW.js';import {a as a$2}from'./chunk-CYVVGAZ4.js';import {SecondaryOrange100,gray900}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {ScanditIcon,ScanditIconBuilder,ScanditIconType,ScanditIconShape}from'@scandit/web-datacapture-core';var c=(o=>(o[o.Top="top-center"]="Top",o[o.Bottom="bottom-center"]="Bottom",o[o.Left="left-center"]="Left",o[o.Right="right-center"]="Right",o))(c||{}),i=class i extends ScanditHTMLElement{constructor(){super();this.annotationTrigger="highlightTapAndBarcodeScan";this.anchor=c.Bottom;this.statusIconContainer=a$1.create();}get barcode(){return this._barcode}set barcode(t){this._barcode=t;}set text(t){this.statusIconContainer.text=t;}get text(){return this.statusIconContainer.text}set hasTip(t){this.statusIconContainer.toggleAttribute("tip",t);}get hasTip(){return this.statusIconContainer.hasAttribute("tip")}set icon(t){this.icon.remove(),t.slot="barcode-icon",t.width=24,t.height=24,t.setIconSize(16),this.statusIconContainer.append(t);}get icon(){return this.statusIconContainer.querySelector(ScanditIcon.tag)}set backgroundColor(t){this.icon.backgroundColor=t;}get backgroundColor(){return this.icon.backgroundColor}set textColor(t){this.statusIconContainer.textColor=t;}get textColor(){return this.statusIconContainer.textColor}static create(t){i.register();let e=document.createElement(i.tag);return e.barcode=t,e}static register(){defineCustomElements({[a$1.tag]:a$1,[i.tag]:i});}async connectedCallback(){let e=await new ScanditIconBuilder().withIcon(ScanditIconType.ExclamationMark).withBackgroundShape(ScanditIconShape.Circle).withBackgroundColor(SecondaryOrange100).withIconColor(gray900).withWidth(24).withHeight(24).withIconSize(16).build();e.slot="barcode-icon",this.append(this.statusIconContainer),this.statusIconContainer.append(e);}updatePosition(t,e,o){a$2(this,t,e,o);}};i.tag="scandit-barcode-ar-status-icon-annotation";var a=i;export{c as a,a as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-DORFGC2X.js';var t=class s{get addedTrackedBarcodes(){return this._addedTrackedBarcodes}get removedTrackedBarcodes(){return this._removedTrackedBarcodes}get updatedTrackedBarcodes(){return this._updatedTrackedBarcodes}get trackedBarcodes(){return this._trackedBarcodes}get frameSequenceID(){return this._frameSequenceID}static fromJSON(r){let d=new s;d._addedTrackedBarcodes=r.addedTrackedBarcodes.map(e=>a.fromJSON(e));for(let e of d._addedTrackedBarcodes)e.sessionFrameSequenceID=`${r.frameSequenceId}`;d._removedTrackedBarcodes=r.removedTrackedBarcodes,d._updatedTrackedBarcodes=r.updatedTrackedBarcodes.map(e=>a.fromJSON(e));for(let e of d._updatedTrackedBarcodes)e.sessionFrameSequenceID=`${r.frameSequenceId}`;return d._trackedBarcodes=Object.keys(r.trackedBarcodes).reduce((e,c)=>{let o=a.fromJSON(r.trackedBarcodes[c]);return o.sessionFrameSequenceID=`${r.frameSequenceId}`,e[c]=o,e},{}),d._frameSequenceID=r.frameSequenceId,d}};export{t as a};
1
+ import {a}from'./chunk-L2JLFSNM.js';var t=class s{get addedTrackedBarcodes(){return this._addedTrackedBarcodes}get removedTrackedBarcodes(){return this._removedTrackedBarcodes}get updatedTrackedBarcodes(){return this._updatedTrackedBarcodes}get trackedBarcodes(){return this._trackedBarcodes}get frameSequenceID(){return this._frameSequenceID}static fromJSON(r){let d=new s;d._addedTrackedBarcodes=r.addedTrackedBarcodes.map(e=>a.fromJSON(e));for(let e of d._addedTrackedBarcodes)e.sessionFrameSequenceID=`${r.frameSequenceId}`;d._removedTrackedBarcodes=r.removedTrackedBarcodes,d._updatedTrackedBarcodes=r.updatedTrackedBarcodes.map(e=>a.fromJSON(e));for(let e of d._updatedTrackedBarcodes)e.sessionFrameSequenceID=`${r.frameSequenceId}`;return d._trackedBarcodes=Object.keys(r.trackedBarcodes).reduce((e,c)=>{let o=a.fromJSON(r.trackedBarcodes[c]);return o.sessionFrameSequenceID=`${r.frameSequenceId}`,e[c]=o,e},{}),d._frameSequenceID=r.frameSequenceId,d}};export{t as a};
@@ -0,0 +1,5 @@
1
+ import {Color}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 n=class n extends ScanditHTMLElement{constructor(){super();this.isLeftIconTappable=true;this.isRightIconTappable=true;let t=this.attachShadow({mode:"open"});t.innerHTML=html`<div class="container">
2
+ <slot name="left-barcode-icon"></slot>
3
+ <div class="text"></div>
4
+ <slot name="right-barcode-icon"></slot>
5
+ </div>`,t.append(n.createStyleElement().cloneNode(true)),this.textElement=t.querySelector(".text");}set rightIcon(t){var o;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("[slot='right-barcode-icon']");(e==null?void 0:e.assignedSlot)!==t&&(e&&t==null&&e.remove(),t&&(t.slot="right-barcode-icon",this.append(t)));}get rightIcon(){var t,e,o;return ((o=(e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot[name='right-barcode-icon']"))==null?void 0:e.assignedElements())!=null?o:[])[0]}set leftIcon(t){var o;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("[slot='left-barcode-icon']");(e==null?void 0:e.assignedSlot)!==t&&(e&&t==null&&e.remove(),t&&(t.slot="left-barcode-icon",this.append(t)));}get leftIcon(){var t,e,o;return ((o=(e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot[name='left-barcode-icon']"))==null?void 0:e.assignedElements())!=null?o:[])[0]}get text(){var t;return (t=this.textElement.textContent)!=null?t:""}set text(t){this.textElement.textContent=t;}get textSize(){return Number.parseInt(this.style.getPropertyValue("--text-size"),10)}set textSize(t){this.style.setProperty("--text-size",`${t}px`);}get textAlignment(){return this.textElement.style.textAlign===""?"start":this.textElement.style.textAlign}set textAlignment(t){this.textElement.style.textAlign=t;}get textColor(){let t=this.style.getPropertyValue("--text-color");return t===""?Color.fromRGBA(0,0,0,1):Color.fromHex(t)}set textColor(t){this.style.setProperty("--text-color",`#${t.toJSON()}`);}static create(){return n.register(),document.createElement(n.tag)}static register(){defineCustomElements({[n.tag]:n});}static createStyleElement(){return css`:host{--text-color:#${gray900.toJSON()};--text-size:14px}.container{align-items:center;display:flex;font-size:var(--text-size);gap:.75rem;justify-content:center;padding:1rem 1rem 0}.text{color:var(--text-color);text-align:center}`}};n.tag="scandit-barcode-ar-info-annotation-body";var l=n;export{l as a};
@@ -0,0 +1 @@
1
+ import {Vibration,Feedback,Sound}from'@scandit/web-datacapture-core';import {throttle}from'@scandit/web-datacapture-core/build/js/private/utils/throttle.js';var r=Vibration.withPattern([300]),l=500,c=class a{constructor(t,e,n){this.scanned=new Feedback(e?r:null,t?n:null),this.tapped=new Feedback(e?r:null,null),this.scanned.emit=throttle(this.scanned.emit.bind(this.scanned),l);}static async createWithOptions(t,e){let{scanSound:n}=await import('../ar/assets/checkSound.js');return new a(t,e,new Sound(n))}static async createDefaultBarcodeArFeedback(){let{scanSound:t}=await import('../ar/assets/checkSound.js');return new a(true,true,new Sound(t))}};export{c as a};
@@ -1 +1 @@
1
- import {e}from'./chunk-PE6EDL2S.js';import {AnchorPositions,Quadrilateral}from'@scandit/web-datacapture-core';var o=class i{get barcode(){return this._barcode}get deltaTime(){return this._deltaTime}get identifier(){return this._identifier}get location(){return this._location}get shouldAnimateFromPreviousToNextState(){return this._shouldAnimateFromPreviousToNextState}get anchorPositions(){return this._anchorPositions}static fromJSON(e$1){let r=new i;return r._deltaTime=e$1.deltaTime,r._identifier=Number.parseInt(e$1.identifier,10),r._shouldAnimateFromPreviousToNextState=e$1.shouldAnimateFromPreviousToNextState,r._barcode=e.fromJSON(e$1.barcode),r._anchorPositions=AnchorPositions.fromJSON(e$1.anchorPositions),r._location=Quadrilateral.fromJSON(e$1.location),r}getAnchorPosition(e){return this._anchorPositions[e]}};export{o as a};
1
+ import {e}from'./chunk-R3B72E4T.js';import {AnchorPositions,Quadrilateral}from'@scandit/web-datacapture-core';var o=class i{get barcode(){return this._barcode}get deltaTime(){return this._deltaTime}get identifier(){return this._identifier}get location(){return this._location}get shouldAnimateFromPreviousToNextState(){return this._shouldAnimateFromPreviousToNextState}get anchorPositions(){return this._anchorPositions}static fromJSON(e$1){let r=new i;return r._deltaTime=e$1.deltaTime,r._identifier=Number.parseInt(e$1.identifier,10),r._shouldAnimateFromPreviousToNextState=e$1.shouldAnimateFromPreviousToNextState,r._barcode=e.fromJSON(e$1.barcode),r._anchorPositions=AnchorPositions.fromJSON(e$1.anchorPositions),r._location=Quadrilateral.fromJSON(e$1.location),r}getAnchorPosition(e){return this._anchorPositions[e]}};export{o as a};
@@ -0,0 +1,211 @@
1
+ import {a as a$2}from'./chunk-XSJEGOGN.js';import {a as a$1}from'./chunk-YQNNEW67.js';import {a as a$6,b as b$3}from'./chunk-RWDAYBTQ.js';import {b}from'./chunk-5DP5VNWQ.js';import {a as a$5,b as b$2}from'./chunk-OPL5NVVM.js';import {g as g$2}from'./chunk-3A6GSH7S.js';import {g as g$1}from'./chunk-DVHTYKDX.js';import {a as a$3}from'./chunk-DOA2Q3CZ.js';import {j,i,f,a,g,n}from'./chunk-4JEIREAU.js';import {c,e,a as a$4,b as b$1}from'./chunk-YBD5JYCX.js';import {Point}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,defineCustomElements,html,Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var H=(i=>(i.ResizeButton="resizeButton",i.ZoomButton="zoomButton",i.TorchButton="torchButton",i.CloseButton="closeButton",i))(H||{}),I=1200,w=class w extends ScanditHTMLElement{constructor(){super(...arguments);this.resizeButtonTapListener=this.onResizeButtonTap.bind(this);this.zoomButtonTapListener=this.onZoomButtonTap.bind(this);this.torchButtonTapListener=this.onTorchButtonTap.bind(this);this.closeButtonTapListener=this.onCloseButtonTap.bind(this);this.pointerDownListener=this.onPointerDown.bind(this);this.longPressStartListener=this.onLongPressStart.bind(this);this.toolbarVisibilityChangeListener=this.onToolbarVisibilityChange.bind(this);this.longPressEndListener=this.onLongPressEnd.bind(this);this.dragEndListener=this.onDragEnd.bind(this);this.fadeOutAnimation=new Animation(new KeyframeEffect(this,[{opacity:1},{opacity:0}],{duration:500,fill:"both"}));this.replayFadeOutTimeout=null;this.longPressController=new b(this);}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t);}get size(){return this.expanded?"expanded":"regular"}set size(t){var i;this.toggleAttribute("expanded",t==="expanded");let o=this.getNextTranslate();(i=this.dragController)==null||i.translateTo(o,false).then(async()=>{var n;return (n=this.dragController)==null?void 0:n.repositionIfOutOfBounds()});}get expanded(){return this.hasAttribute("expanded")}get[a](){var t;return Number((t=this.getAttribute(a))!=null?t:"1")}set[a](t){this.setAttribute(a,String(t));}get darkened(){return this.hasAttribute("darkened")}set darkened(t){this.toggleAttribute("darkened",t);}get orientation(){var t;return (t=this.getAttribute("orientation"))!=null?t:"portrait-primary"}set orientation(t){this.setAttribute("orientation",t);}get[g](){return this.hasAttribute(g)}set[g](t){this.toggleAttribute(g,t);}get[j](){return this.hasAttribute(j)}set[j](t){this.toggleAttribute(j,t);}get[i](){return this.hasAttribute(i)}set[i](t){this.toggleAttribute(i,t);}get[f](){return this.hasAttribute(f)}set[f](t){this.toggleAttribute(f,t);}get[n](){return this.hasAttribute(n)}set[n](t){this.toggleAttribute(n,t);}get cover(){return this.hasAttribute("cover")}set cover(t){this.toggleAttribute("cover",t);}get pressed(){return this.hasAttribute("pressed")}set pressed(t){this.toggleAttribute("pressed",t);}static create(){return defineCustomElements({[b$1]:w,[a$4]:a$3,[e]:a$2,[c]:a$1}),document.createElement(b$1)}repositionIfOutOfBounds(){var t;(t=this.dragController)==null||t.repositionIfOutOfBounds();}showToast(t,o,i){this.toast.show(t,o,i);}hideToast(){this.toast.hide();}zoomIn(){this.zoomButton&&(this[a]=2,this.zoomButton.textContent="2x",this.showToast("warning","2x zoom",1e3));}zoomOut(){this.zoomButton&&(this[a]=1,this.zoomButton.textContent="1x",this.showToast("info","1x zoom",1e3));}async fadeOut(){try{this.fadeOutAnimation.play(),await this.fadeOutAnimation.finished,this.visible=false;}catch(t){}}cancelFadeOut(){var t;(t=this.replayFadeOutTimeout)==null||t.stop(),this.fadeOutAnimation.cancel();}async rewindAnimation(){var t,o;(((t=this.replayFadeOutTimeout)==null?void 0:t.running)===true||this.fadeOutAnimation.playState!=="idle")&&(this.cancelFadeOut(),(o=this.replayFadeOutTimeout)==null||o.start());}translateTo(t){var o;(o=this.dragController)==null||o.translateTo(t,false);}render(){var t,o,i$1,n$1,a$1,l,b;this.innerHTML=html`
2
+ <spark-scan-view-toast></spark-scan-view-toast>
3
+ <div id="host"></div>
4
+ <div id="controls">
5
+ <div id="button-container-list">
6
+ <div class="button-container">
7
+ <button id="torchButton" class="${b$1}__button">
8
+ <spark-scan-view-icon icon="torchOff" fill="white" size="9"></spark-scan-view-icon>
9
+ </button>
10
+ <button id="closeButton" class="${b$1}__button">
11
+ <spark-scan-view-icon icon="close" fill="white" size="9"></spark-scan-view-icon>
12
+ </button>
13
+ </div>
14
+ <div class="button-container">
15
+ <button id="resizeButton" class="${b$1}__button">
16
+ <spark-scan-view-icon icon="expand" fill="white" size="14"></spark-scan-view-icon>
17
+ </button>
18
+ <button id="zoomButton" class="${b$1}__button">
19
+ ${this[a]}x
20
+ </button>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <spark-scan-view-toolbar></spark-scan-view-toolbar>
25
+ <div id="overlay"></div>
26
+
27
+ <style>
28
+ ${b$1} {
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ display: none;
33
+ background: var(${g$1});
34
+ border-radius: 16px;
35
+ filter: drop-shadow(0px 2px 6px #${a$5.toJSON()})
36
+ drop-shadow(0px 1px 2px #${b$2.toJSON()});
37
+ transition: filter 0.3s ease;
38
+ z-index: 100;
39
+ }
40
+
41
+ ${b$1},
42
+ ${b$1} #overlay {
43
+ width: var(--dvw-half);
44
+ height: var(--dvw-half);
45
+ min-width: 192px;
46
+ min-height: 192px;
47
+ max-width: min(250px, var(--dvw-half));
48
+ max-height: min(250px, var(--dvw-half));
49
+ }
50
+
51
+ @media (orientation: landscape) {
52
+ ${b$1},
53
+ ${b$1} #overlay {
54
+ width: var(--dvh-half);
55
+ height: var(--dvh-half);
56
+ max-width: min(250px, var(--dvh-half));
57
+ max-height: min(250px, var(--dvh-half));
58
+ }
59
+ }
60
+
61
+ @media screen (min-width: 768px) and (orientation: portrait) {
62
+ ${b$1},
63
+ ${b$1} #overlay {
64
+ max-width: min(375px, var(--dvw-half));
65
+ max-height: min(375px, var(--dvw-half));
66
+ }
67
+ }
68
+
69
+ @media screen (min-width: 768px) and (orientation: landscape) {
70
+ ${b$1},
71
+ ${b$1} #overlay {
72
+ max-width: min(375px, var(--dvh-half));
73
+ max-height: min(375px, var(--dvh-half));
74
+ }
75
+ }
76
+
77
+ ${b$1}[visible] {
78
+ display: flex;
79
+ flex-flow: column;
80
+ }
81
+
82
+ ${b$1}[expanded],
83
+ ${b$1}[expanded] #overlay {
84
+ width: calc(var(--dvw) - ${32}px);
85
+ height: calc(var(--dvh-half) - ${32}px);
86
+ max-width: min(400px, calc(var(--dvw) - ${32}px));
87
+ max-height: min(400px, calc(var(--dvh-half) - ${32}px));
88
+ }
89
+
90
+ ${b$1}[pressed] {
91
+ filter: drop-shadow(0px 4px 4px #${b$2.toJSON()})
92
+ drop-shadow(0px 8px 12px #${a$5.toJSON()});
93
+ }
94
+
95
+ @media (orientation: landscape) {
96
+ ${b$1}[expanded],
97
+ ${b$1}[expanded] #overlay {
98
+ width: calc(var(--dvh-half) - ${32}px);
99
+ height: calc(var(--dvh) - ${32}px);
100
+ max-width: min(400px, calc(var(--dvh-half) - ${32}px));
101
+ max-height: min(400px, calc(var(--dvh) - ${32}px));
102
+ }
103
+ }
104
+
105
+ spark-scan-view-toast {
106
+ position: absolute;
107
+ top: 16px;
108
+ left: 50%;
109
+ transform: translateX(-50%);
110
+ z-index: 20;
111
+ }
112
+
113
+ ${b$1} #host,
114
+ ${b$1} #host * {
115
+ width: 100%;
116
+ border-radius: 16px;
117
+ }
118
+
119
+ ${b$1} #host {
120
+ height: calc(100% - 48px);
121
+ z-index: -10;
122
+ }
123
+
124
+ ${b$1}[cover] #host {
125
+ height: 100%;
126
+ }
127
+
128
+ ${b$1} #controls {
129
+ position: absolute;
130
+ top: 0;
131
+ width: 100%;
132
+ height: 100%;
133
+ display: grid;
134
+ grid-template-rows: auto max-content;
135
+ box-sizing: border-box;
136
+ }
137
+
138
+ ${b$1} #button-container-list {
139
+ width: 100%;
140
+ height: calc(100% - 48px);
141
+ display: flex;
142
+ flex-flow: column;
143
+ justify-content: space-between;
144
+ }
145
+
146
+ ${b$1}[cover] #button-container-list {
147
+ height: 100%;
148
+ }
149
+
150
+ ${b$1} .button-container {
151
+ padding: 12px;
152
+ display: flex;
153
+ justify-content: flex-end;
154
+ align-items: center;
155
+ }
156
+
157
+ ${b$1}[${f}] .button-container:first-of-type,
158
+ ${b$1}[${j}] .button-container:nth-of-type(2) {
159
+ justify-content: space-between;
160
+ }
161
+
162
+ .${b$1}__button {
163
+ display: flex;
164
+ justify-content: center;
165
+ align-items: center;
166
+ width: 24px;
167
+ height: 24px;
168
+ border: none;
169
+ background: rgba(18, 22, 25, 0.5);
170
+ color: white;
171
+ font-family: Arial, Helvetica, sans-serif;
172
+ font-size: 14px;
173
+ font-weight: 500;
174
+ border-radius: 50%;
175
+ }
176
+
177
+ ${b$1} #torchButton,
178
+ ${b$1} #closeButton,
179
+ ${b$1} #resizeButton,
180
+ ${b$1} #zoomButton {
181
+ display: none;
182
+ }
183
+
184
+ ${b$1}[${f}] #torchButton,
185
+ ${b$1}[${j}] #resizeButton {
186
+ display: flex;
187
+ }
188
+
189
+ ${b$1}[${n}] #closeButton,
190
+ ${b$1}[${i}] #zoomButton {
191
+ display: flex;
192
+ align-self: end;
193
+ }
194
+
195
+ ${b$1} #overlay {
196
+ position: absolute;
197
+ z-index: 10;
198
+ top: 0;
199
+ left: 0;
200
+ background: black;
201
+ border-radius: 16px;
202
+ opacity: 0;
203
+ transition: opacity 0.3s ease;
204
+ pointer-events: none;
205
+ }
206
+
207
+ ${b$1}[darkened] #overlay {
208
+ opacity: 0.3;
209
+ }
210
+ </style>
211
+ `,this.toast=this.querySelector("spark-scan-view-toast"),this.host=this.querySelector("#host"),this.resizeButton=this.querySelector("#resizeButton"),(t=this.resizeButton)==null||t.addEventListener("pointerup",this.resizeButtonTapListener),this.resizeButtonIcon=(o=this.resizeButton)==null?void 0:o.querySelector("spark-scan-view-icon"),this.zoomButton=this.querySelector("#zoomButton"),(i$1=this.zoomButton)==null||i$1.addEventListener("pointerup",this.zoomButtonTapListener),this.torchButton=this.querySelector("#torchButton"),(n$1=this.torchButton)==null||n$1.addEventListener("pointerup",this.torchButtonTapListener),this.torchButtonIcon=(a$1=this.torchButton)==null?void 0:a$1.querySelector("spark-scan-view-icon"),this.closeButton=this.querySelector("#closeButton"),(l=this.closeButton)==null||l.addEventListener("pointerup",this.closeButtonTapListener),this.toolbar=this.querySelector(c),(b=this.toolbar)==null||b.addEventListener("toolbarvisibilitychange",this.toolbarVisibilityChangeListener),this.buttonContainerList=this.querySelector("#button-container-list");}onResizeButtonTap(t){t.stopPropagation(),this.size={regular:"expanded",expanded:"regular"}[this.size],this.resizeButtonIcon&&(this.resizeButtonIcon.icon=this.expanded?"shrink":"expand"),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"resizeButton",expanded:this.expanded}}));}onZoomButtonTap(t){switch(t.stopPropagation(),this[a]){case 1:{this.zoomIn();break}case 2:{this.zoomOut();break}}this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"zoomButton",zoomFactor:this[a]}}));}onTorchButtonTap(t){t.stopPropagation(),this[g]=!this[g],this.torchButtonIcon&&(this.torchButtonIcon.icon=this[g]?"torchOn":"torchOff"),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"torchButton",enabled:this[g]}}));}onCloseButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"closeButton"}}));}onPointerDown(){this.dragController&&(this.dragController.draggable=false),this.rewindAnimation();}onLongPressStart(){this.dragController&&(this.dragController.draggable=true),this.pressed=true;}onLongPressEnd(){this.pressed=false;}onDragEnd(t){t instanceof a$6&&(this.lastKnownTranslate=t.point);}onToolbarVisibilityChange(){this.cover=!this.toolbar||this.toolbar.hidden;}connectedCallback(){var t,o;this.rootElement=(t=this.parentElement)==null?void 0:t.parentElement,this.dragController=new b$3(this,this.rootElement),this.replayFadeOutTimeout=new Timeout(I,async()=>{await this.fadeOut();}),this.render(),this.addEventListener("pointerdown",this.pointerDownListener),this.addEventListener("longpressstart",this.longPressStartListener),this.addEventListener("longpressend",this.longPressEndListener),this.addEventListener("dragend",this.dragEndListener),this.dragController.connect(),this.longPressController.connect(),this.buttonContainerList&&((o=this.toolbar)!=null&&o.firstElementChild)&&(this.longPressController.elementsAllowedToTriggerLongPressEvents.add(this.buttonContainerList),this.longPressController.elementsAllowedToTriggerLongPressEvents.add(this.toolbar.firstElementChild)),this.dragController.margin=new Point(16,16);}disconnectedCallback(){var t,o,i,n,a,l,b;(t=this.resizeButton)==null||t.removeEventListener("pointerup",this.resizeButtonTapListener),(o=this.zoomButton)==null||o.removeEventListener("pointerup",this.zoomButtonTapListener),(i=this.torchButton)==null||i.removeEventListener("pointerup",this.torchButtonTapListener),(n=this.closeButton)==null||n.removeEventListener("pointerup",this.closeButtonTapListener),(a=this.toolbar)==null||a.removeEventListener("toolbarvisibilitychange",this.toolbarVisibilityChangeListener),this.removeEventListener("pointerdown",this.pointerDownListener),this.removeEventListener("longpressstart",this.longPressStartListener),this.removeEventListener("longpressend",this.longPressEndListener),this.removeEventListener("dragend",this.dragEndListener),this.fadeOutAnimation.cancel(),(l=this.replayFadeOutTimeout)==null||l.stop(),(b=this.dragController)==null||b.disconnect(),this.longPressController.disconnect();}getNextTranslate(){var n,a,l;let t=((n=this.rootElement)==null?void 0:n.clientWidth)||document.body.clientWidth,o=((a=this.rootElement)==null?void 0:a.clientHeight)||document.body.clientHeight;if(!this.dragController)return new Point(0,0);if(this.size==="regular")return (l=this.lastKnownTranslate)!=null?l:this.dragController.translate;this.lastKnownTranslate=this.dragController.translate;let i=this.dragController.translate;return (this.orientation==="portrait-primary"||this.orientation==="portrait-secondary")&&this.dragController.translate.x>16&&(i=new Point(16,i.y)),(this.orientation==="landscape-primary"||this.orientation==="landscape-secondary")&&this.dragController.translate.x>t-this.clientWidth-16&&(i=new Point(t-this.clientWidth-16,i.y)),this.dragController.translate.y>o-this.clientHeight-16&&(i=new Point(i.x,o-this.clientHeight-16)),i}};w.observedAttributes=[j,i,f];var P=w;export{H as a,P as b};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-EWNVCDJ6.js';var a=class{constructor(){this.soundEnabled=true;this.hapticEnabled=true;this.defaultCameraPosition=a$1;}};export{a};
@@ -1 +1 @@
1
- import {b}from'./chunk-2RKBANN2.js';import {RadiusLocationSelection,NumberWithUnit}from'@scandit/web-datacapture-core';var S=class{constructor(){this.codeDuplicateFilter=b.SparkScan.SparkScanSettings.codeDuplicateFilter;this.scanIntention="manual";this.locationSelection=new RadiusLocationSelection(new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit));this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(t=>{var e;return (e=this.symbologies[t])==null?void 0:e.isEnabled})}settingsForSymbology(o){if(!this.symbologies[o]){let t=b.SymbologySettings[o];t._symbology=o,this.symbologies[o]=t;}return this.symbologies[o]}setProperty(o,t){this.properties[o]=t;}getProperty(o){return this.properties[o]}enableSymbologies(o){for(let t of o)this.enableSymbology(t,!0);}enableSymbology(o,t){this.settingsForSymbology(o).isEnabled=t;}toJSONObject(){var e;let o={},t=Object.keys(this.symbologies);return {codeDuplicateFilter:this.codeDuplicateFilter,locationSelection:this.locationSelection.toJSONObject(),properties:{...this.properties},symbologies:t.reduce((n,s)=>{var r;let l=(r=this.symbologies[s])==null?void 0:r.toJSONObject();return l&&(n[s]=l),n},o),scanIntention:(e=this.scanIntention)!=null?e:null}}};export{S as a};
1
+ import {b}from'./chunk-DHCNYKSL.js';import {RadiusLocationSelection,NumberWithUnit}from'@scandit/web-datacapture-core';var S=class{constructor(){this.codeDuplicateFilter=b.SparkScan.SparkScanSettings.codeDuplicateFilter;this.scanIntention="manual";this.locationSelection=new RadiusLocationSelection(new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit));this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(t=>{var e;return (e=this.symbologies[t])==null?void 0:e.isEnabled})}settingsForSymbology(o){if(!this.symbologies[o]){let t=b.SymbologySettings[o];t._symbology=o,this.symbologies[o]=t;}return this.symbologies[o]}setProperty(o,t){this.properties[o]=t;}getProperty(o){return this.properties[o]}enableSymbologies(o){for(let t of o)this.enableSymbology(t,true);}enableSymbology(o,t){this.settingsForSymbology(o).isEnabled=t;}toJSONObject(){var e;let o={},t=Object.keys(this.symbologies);return {codeDuplicateFilter:this.codeDuplicateFilter,locationSelection:this.locationSelection.toJSONObject(),properties:{...this.properties},symbologies:t.reduce((n,s)=>{var r;let l=(r=this.symbologies[s])==null?void 0:r.toJSONObject();return l&&(n[s]=l),n},o),scanIntention:(e=this.scanIntention)!=null?e:null}}};export{S as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-JQF6P6X7.js';var c=class{constructor(r,s,i){this.captureListenerSet=!1;this.propertyPushSource=new b;this.coreEngine=r,this.Module=s,this.workerFunctions=i,this.setup();}sparkScanDidUpdateSession(r){this.workerFunctions.postMessage({type:"sparkScanDidUpdateSession",payload:JSON.parse(r.toJson())});}getSparkScanDeserializer(){return this.sparkScanDeserializer}setup(){let r=this.Module.SparkScanListener.extend("SparkScanListener",{didScan:(t,e,a)=>{this.sparkScanDidScan(e,a),t.delete(),e.delete(),a.delete();},didUpdateSession:(t,e,a)=>{this.sparkScanDidUpdateSession(e),t.delete(),e.delete(),a.delete();}}),s=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback();}}),i=this.Module.SparkScanDeserializerListener.extend("SparkScanDeserializerListener",{onModeDeserializationFinished:(t,e,a)=>{this.captureListenerSet||(e.addListener(new r,1),e.setSuccessFeedback(new s),e.setPropertyPushSource(this.propertyPushSource),this.captureListenerSet=!0),t.delete(),e.delete(),a.delete();},onModeDeserializationStarted(t,e,a){t.delete(),e.delete(),a.delete();},onSettingsDeserializationStarted(t,e,a){t.delete(),e.delete(),a.delete();},onSettingsDeserializationFinished(t,e,a){t.delete(),e.delete(),a.delete();},onOverlayDeserializationStarted(t,e,a){t.delete(),e.delete(),a.delete();},onOverlayDeserializationFinished:(t,e,a)=>{var n;(n=this.sparkScanOverlay)==null||n.delete(),this.sparkScanOverlay=e,t.delete(),a.delete();}});this.sparkScanDeserializer=new this.Module.SparkScanDeserializer,this.sparkScanDeserializer.setListener(new i);}emitErrorFeedback(r){var s;(s=this.sparkScanOverlay)==null||s.onErrorFeedbackEmitted(r);}overlayReadyForDraw(){var r;(r=this.sparkScanOverlay)==null||r.onReadyForNewData();}analyticsManagerPropertyChanged(r){this.propertyPushSource.getBehaviorSubject(r.key).setProperty(r);}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}sparkScanDidScan(r,s){let i=this.coreEngine.convertToLoadableFrameData(s);this.workerFunctions.postMessage({type:"sparkScanDidScan",payload:{session:JSON.parse(r.toJson()),frameData:i}});}};export{c as a};
1
+ import {b}from'./chunk-JQF6P6X7.js';var c=class{constructor(r,s,i){this.captureListenerSet=false;this.propertyPushSource=new b;this.coreEngine=r,this.Module=s,this.workerFunctions=i,this.setup();}sparkScanDidUpdateSession(r){this.workerFunctions.postMessage({type:"sparkScanDidUpdateSession",payload:JSON.parse(r.toJson())});}getSparkScanDeserializer(){return this.sparkScanDeserializer}setup(){let r=this.Module.SparkScanListener.extend("SparkScanListener",{didScan:(t,e,a)=>{this.sparkScanDidScan(e,a),t.delete(),e.delete(),a.delete();},didUpdateSession:(t,e,a)=>{this.sparkScanDidUpdateSession(e),t.delete(),e.delete(),a.delete();}}),s=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback();}}),i=this.Module.SparkScanDeserializerListener.extend("SparkScanDeserializerListener",{onModeDeserializationFinished:(t,e,a)=>{this.captureListenerSet||(e.addListener(new r,1),e.setSuccessFeedback(new s),e.setPropertyPushSource(this.propertyPushSource),this.captureListenerSet=true),t.delete(),e.delete(),a.delete();},onModeDeserializationStarted(t,e,a){t.delete(),e.delete(),a.delete();},onSettingsDeserializationStarted(t,e,a){t.delete(),e.delete(),a.delete();},onSettingsDeserializationFinished(t,e,a){t.delete(),e.delete(),a.delete();},onOverlayDeserializationStarted(t,e,a){t.delete(),e.delete(),a.delete();},onOverlayDeserializationFinished:(t,e,a)=>{var n;(n=this.sparkScanOverlay)==null||n.delete(),this.sparkScanOverlay=e,t.delete(),a.delete();}});this.sparkScanDeserializer=new this.Module.SparkScanDeserializer,this.sparkScanDeserializer.setListener(new i);}emitErrorFeedback(r){var s;(s=this.sparkScanOverlay)==null||s.onErrorFeedbackEmitted(r);}overlayReadyForDraw(){var r;(r=this.sparkScanOverlay)==null||r.onReadyForNewData();}analyticsManagerPropertyChanged(r){this.propertyPushSource.getBehaviorSubject(r.key).setProperty(r);}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}sparkScanDidScan(r,s){let i=this.coreEngine.convertToLoadableFrameData(s);this.workerFunctions.postMessage({type:"sparkScanDidScan",payload:{session:JSON.parse(r.toJson()),frameData:i}});}};export{c as a};
@@ -0,0 +1,5 @@
1
+ import {a}from'./chunk-YWCXI7D5.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardList,CardListEvents}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';var l="cubic-bezier(0.4, 0, 0.2, 1)",L=(n=>(n.TextForCollapseCardsButton="text-for-collapse-cards-button",n))(L||{}),i=class i extends ScanditHTMLElement{constructor(){super();this.onCarListTapHandler=this.onCarListTap.bind(this);this.onCardListWillExpandHandler=this.onCardListWillExpand.bind(this);this.onCarouselButtonClickHandler=this.onCarouselButtonClick.bind(this);this.textNode=document.createTextNode("");let t=this.attachShadow({mode:"open"});t.append(i.createStyleElement().cloneNode(true));let s=document.createElement("div");s.id="root",s.innerHTML=html`
2
+ <${a.tag} class="hide">
3
+ </${a.tag}>
4
+ <${CardList.tag} collapsed></${CardList.tag}>
5
+ `,t.append(s),this.carouselButton.append(this.textNode);}set"text-for-collapse-cards-button"(t){this.textNode.textContent=t;}get"text-for-collapse-cards-button"(){return this.textNode.textContent}get cardsList(){return this.shadowRoot.querySelector(CardList.tag)}get carouselButton(){return this.shadowRoot.querySelector(a.tag)}static create(){return document.createElement(i.tag)}static register(){defineCustomElements({[i.tag]:i,[a.tag]:a,[CardList.tag]:CardList,[Card.tag]:Card});}static createStyleElement(){return css`:host #root{align-items:center;display:flex;flex-direction:column;gap:.5rem;height:100%}:host #root ${a.tag}{opacity:1;transform:translateY(0);transition:opacity ${l} .5s,transform ${l} .5s}:host #root ${a.tag}.hide{opacity:0;transform:translateY(100%)}`}attributeChangeCallback(t,s,c){t==="text-for-collapse-cards-button"&&(this["text-for-collapse-cards-button"]=c);}connectedCallback(){this.textNode.textContent=this.getAttribute("text-for-collapse-cards-button"),this.carouselButton.addEventListener("click",this.onCarouselButtonClickHandler),this.cardsList.addEventListener(CardListEvents.Tap,this.onCarListTapHandler),this.cardsList.addEventListener(CardListEvents.WillExpand,this.onCardListWillExpandHandler);}disconnectedCallback(){this.carouselButton.removeEventListener("click",this.onCarouselButtonClickHandler),this.cardsList.removeEventListener(CardListEvents.Tap,this.onCarListTapHandler),this.cardsList.removeEventListener(CardListEvents.WillExpand,this.onCardListWillExpandHandler);}collapse(){this.carouselButton.classList.add("hide"),this.cardsList.collapsed=true;}expand(){this.carouselButton.classList.remove("hide"),this.cardsList.collapsed=false;}renderCards(t){this.cardsList.clearCards(),this.cardsList.renderCards(t);}async unshiftCard(t){return this.cardsList.unshift(t)}getCardBySelector(t){return this.cardsList.querySelector(t)}updateHeight(t){let s=this.carouselButton.clientHeight;this.cardsList.style.setProperty("--list-height",`${t}px`),this.cardsList.style.setProperty("--top-offset",`calc(${s===0?32:s}px + 5rem)`);}onCardListWillExpand(){this.carouselButton.classList.remove("hide");}onCarListTap(){this.cardsList.collapsed=false;}onCarouselButtonClick(){this.carouselButton.classList.add("hide"),this.cardsList.collapsed=true;}};i.tag="scandit-find-card-list-container",i.observedAttributes=["text-for-collapse-cards-button"];var o=i;o.register();export{L as a,o as b};
@@ -0,0 +1 @@
1
+ var i=(e=>(e.HighlightTap="highlightTap",e.HighlightTapAndBarcodeScan="highlightTapAndBarcodeScan",e))(i||{}),n=(t=>(t.Top="top-center",t.Bottom="bottom-center",t.Left="left-center",t.Right="right-center",t))(n||{});export{i as a,n as b};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-EUPONI3T.js';import {a as a$2}from'./chunk-62I36ZHW.js';import {b}from'./chunk-LGBIU7XO.js';import {a as a$6}from'./chunk-RWDAYBTQ.js';import {a as a$5,c,e,f,g,h,i,j,k,b as b$1,d as d$2}from'./chunk-DVHTYKDX.js';import {n,j as j$1,i as i$1,d as d$1,c as c$1,k as k$1,l,m,f as f$1,b as b$2,e as e$1,g as g$1}from'./chunk-4JEIREAU.js';import {d}from'./chunk-YBD5JYCX.js';import {a as a$3}from'./chunk-VR4NB4EY.js';import {a as a$4}from'./chunk-ZQ3QRLEZ.js';import {a}from'./chunk-P4F5WUAR.js';import {Point,CameraPosition,Color}from'@scandit/web-datacapture-core';import {OrientationObserver,orientationChangeEvent}from'@scandit/web-datacapture-core/build/js/private/OrientationObserver.js';import {ScanditHTMLElement,Timeout,defineCustomElements,css,clamp}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var _=class v extends ScanditHTMLElement{constructor(){super(...arguments);this.targetModeButtonVisible=false;this.scanningBehaviorButtonVisible=false;this.torchControlVisible=true;this.zoomSwitchControlVisible=true;this.previewSizeControlVisible=true;this.barcodeFindButtonVisible=false;this.labelCaptureButtonVisible=false;this.cameraSwitchButtonVisible=false;this.previewCloseControlVisible=true;this.triggerButtonVisible=true;this.feedbackDelegate={getFeedbackForBarcode:()=>a.success()};this.torchButtonVisible=true;this.handModeButtonVisible=false;this.resizeObserver=null;this.onResizeHandler=this.onResize.bind(this);this.miniPreview=b.create();this.triggerButton=a$1.create();this.visualFeedback=a$2.create();this.miniPreviewTimeout=new Timeout(500,this.onMiniPreviewTimeoutFinished.bind(this));this.orientationObserver=new OrientationObserver;this.miniPreviewPointerUpListener=this.onMiniPreviewPointerUp.bind(this);this.miniPreviewPointerMoveListener=this.onMiniPreviewPointerMove.bind(this);this.miniPreviewButtonTapListener=this.onMiniPreviewButtonTap.bind(this);this.miniPreviewDragListener=this.onMiniPreviewDrag.bind(this);this.miniPreviewDragEndListener=this.onMiniPreviewDragEnd.bind(this);this.triggerButtonPointerDownListener=this.onTriggerButtonPointerDown.bind(this);this.triggerButtonTapListener=this.onTriggerButtonTap.bind(this);this.triggerButtonLongPressStartListener=this.onTriggerButtonLongPressStart.bind(this);this.triggerButtonLongPressEndListener=this.onTriggerButtonLongPressEnd.bind(this);this.triggerButtonDragListener=this.onTriggerButtonDrag.bind(this);this.toolbarButtonTapListener=this.onToolbarButtonTap.bind(this);this.clickOutsideListener=this.onClickOutside.bind(this);this.visibilityChangeListener=this.onVisibilityChange.bind(this);this.orientationChangeListener=this.onOrientationChange.bind(this);this.holdingToScan=false;}get _targetModeEnabledMessage(){var e;return (e=this.settings.toastSettings.targetModeEnabledMessage)!=null?e:"Aimer on"}get _targetModeDisabledMessage(){var e;return (e=this.settings.toastSettings.targetModeDisabledMessage)!=null?e:"Aimer off"}get _continuousModeEnabledMessage(){var e;return (e=this.settings.toastSettings.continuousModeEnabledMessage)!=null?e:"Continuous mode on"}get _continuousModeDisabledMessage(){var e;return (e=this.settings.toastSettings.continuousModeDisabledMessage)!=null?e:"Continuous mode off"}get _scanPausedMessage(){var e;return (e=this.settings.toastSettings.scanPausedMessage)!=null?e:"Scan paused"}get _torchEnabledMessage(){var e;return (e=this.settings.toastSettings.torchEnabledMessage)!=null?e:"Torch on"}get _torchDisabledMessage(){var e;return (e=this.settings.toastSettings.torchDisabledMessage)!=null?e:"Torch off"}get _zoomedInMessage(){var e;return (e=this.settings.toastSettings.zoomedInMessage)!=null?e:"2x zoom"}get _zoomedOutMessage(){var e;return (e=this.settings.toastSettings.zoomedOutMessage)!=null?e:"1x zoom"}static forElement(e,r,t,i){let n=v.create();return n.presenter=a$3.forView(n,r,t,i!=null?i:new a$4),n.settings=n.presenter.sparkScanViewSettings,n.append(n.miniPreview,n.triggerButton,n.visualFeedback,v.createStyleElement().cloneNode(true)),n.hidden=true,e.append(n),n}static create(){return defineCustomElements({[d]:v}),document.createElement("spark-scan-view")}static createStyleElement(){return css`:root{${a$5}:#12161966;${c}:#12161966;${e}:#5b707f4d;${f}:#fff;${g}:#121619cc;${h}:#fbc02c;${i}:#fff;${j}:#2ec1ce;${k}:#fa4446}${d}{position:relative}`}async prepareScanning(){this.mount(),this.hidden=false,await this.presenter.prepareScanning(this.miniPreview.host);}async startScanning(){await this.presenter.startScanning();}async pauseScanning(){await this.presenter.pauseScanning();}async stopScanning(){await this.presenter.stopScanning({sessionStopReason:"user"});}showToast(e){this.miniPreview.showToast("info",e,1e3);}setListener(e){this.presenter.setListener(e);}setTriggerButtonImage(e){this.triggerButton.setImage(e);}setWidthAndHeightCssStyleProperties(){var t,i;let e=((t=this.parentElement)==null?void 0:t.clientWidth)||document.body.clientWidth,r=((i=this.parentElement)==null?void 0:i.clientHeight)||document.body.clientHeight;this.style.setProperty("--dvw",`${e}px`),this.style.setProperty("--dvh",`${r}px`),this.style.setProperty("--dvw-half","calc(var(--dvw) / 2)"),this.style.setProperty("--dvh-half","calc(var(--dvh) / 2)");}onResize(){this.setWidthAndHeightCssStyleProperties(),this.triggerButton.repositionIfOutOfBounds(),this.miniPreview.repositionIfOutOfBounds();}mount(){this.unmount(),this.resizeObserver=new ResizeObserver(this.onResizeHandler),this.resizeObserver.observe(this.parentElement),this.miniPreview[n]=this.previewCloseControlVisible,this.miniPreview[j$1]=this.previewSizeControlVisible,this.miniPreview[i$1]=this.zoomSwitchControlVisible,this.miniPreview.size=this.settings.defaultMiniPreviewSize,this.miniPreview.toolbar&&(this.miniPreview.toolbar[d$1]=this.targetModeButtonVisible,this.miniPreview.toolbar[c$1]=this.scanningBehaviorButtonVisible,this.miniPreview.toolbar[k$1]=this.barcodeFindButtonVisible,this.miniPreview.toolbar[l]=this.labelCaptureButtonVisible,this.miniPreview.toolbar[m]=this.cameraSwitchButtonVisible),this.triggerButton.visible=this.triggerButtonVisible;for(let[e$1,r]of [[this.triggerButtonCollapsedColor,a$5],[this.triggerButtonExpandedColor,c],[this.triggerButtonAnimationColor,e],[this.triggerButtonTintColor,f],[this.toolbarBackgroundColor,g],[this.toolbarIconActiveTintColor,h],[this.toolbarIconInactiveTintColor,i]])e$1&&this.style.setProperty(r,`#${e$1.toJSON()}`);this.setTriggerButtonPressedColor("triggerButtonCollapsedColor",a$5,b$1),this.setTriggerButtonPressedColor("triggerButtonExpandedColor",c,d$2),this.miniPreview.addEventListener("pointerup",this.miniPreviewPointerUpListener),this.miniPreview.addEventListener("pointermove",this.miniPreviewPointerMoveListener),this.miniPreview.addEventListener("minipreviewbuttontap",this.miniPreviewButtonTapListener),this.miniPreview.addEventListener("toolbarbuttontap",this.toolbarButtonTapListener),this.miniPreview.addEventListener("drag",this.miniPreviewDragListener),this.miniPreview.addEventListener("dragend",this.miniPreviewDragEndListener),this.triggerButton.addEventListener("pointerdown",this.triggerButtonPointerDownListener),this.triggerButton.addEventListener("tap",this.triggerButtonTapListener),this.triggerButton.addEventListener("longpressstart",this.triggerButtonLongPressStartListener),this.triggerButton.addEventListener("longpressend",this.triggerButtonLongPressEndListener),this.triggerButton.addEventListener("drag",this.triggerButtonDragListener),this.orientationObserver.register(),this.orientationObserver.addEventListener(orientationChangeEvent,this.orientationChangeListener),this.orientationObserver.dispatchOrientationChangeEvent(this.orientationObserver.orientation),document.addEventListener("pointerup",this.clickOutsideListener),document.addEventListener("visibilitychange",this.visibilityChangeListener),this.setWidthAndHeightCssStyleProperties();}unmount(){var e;(e=this.resizeObserver)==null||e.disconnect(),this.miniPreview.removeEventListener("pointerup",this.miniPreviewPointerUpListener),this.miniPreview.removeEventListener("pointermove",this.miniPreviewPointerMoveListener),this.miniPreview.removeEventListener("minipreviewbuttontap",this.miniPreviewButtonTapListener),this.miniPreview.removeEventListener("toolbarbuttontap",this.toolbarButtonTapListener),this.miniPreview.removeEventListener("drag",this.miniPreviewDragListener),this.miniPreview.removeEventListener("dragend",this.miniPreviewDragEndListener),this.triggerButton.removeEventListener("pointerdown",this.triggerButtonPointerDownListener),this.triggerButton.removeEventListener("tap",this.triggerButtonTapListener),this.triggerButton.removeEventListener("holdstart",this.triggerButtonLongPressStartListener),this.triggerButton.removeEventListener("holdend",this.triggerButtonLongPressEndListener),this.triggerButton.removeEventListener("drag",this.triggerButtonDragListener),this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(orientationChangeEvent,this.orientationChangeListener),document.removeEventListener("pointerup",this.clickOutsideListener),document.removeEventListener("visibilitychange",this.visibilityChangeListener),this.miniPreviewTimeout.stop();}connectedCallback(){this.mount();}disconnectedCallback(){this.unmount();}setTorchAvailable(e){this.miniPreview.toolbar&&(this.miniPreview[f$1]=this.torchControlVisible&&e);}setZoomAvailable(e){this.miniPreview[i$1]=this.zoomSwitchControlVisible&&e;}switchToIdleState(){this.miniPreview.darkened=false,this.miniPreview.visible=false,this.miniPreview.hideToast(),this.triggerButton.expanded=false,this.triggerButton.stopPulsating();}async switchToActiveState(e,r,t,i){this.miniPreviewTimeout.stop(),this.miniPreview.hideToast(),this.miniPreview.cancelFadeOut(),this.miniPreview.darkened=false,this.miniPreview.visible=true,this.triggerButton.expanded=true,this.triggerButton.startPulsating(),this.miniPreview.toolbar&&(this.miniPreview.toolbar[b$2]=r),e&&(t&&this.style.setProperty(j,`#${t.toJSON()}`),await this.visualFeedback.emitSuccessFeedback()),i===true&&this.miniPreview.showToast("warning",this._zoomedInMessage,1e3);}async switchToInactiveState(e,r,t,i){this.miniPreview.darkened=t==="persistent"||e,this.miniPreview.visible=t==="persistent"||e,this.triggerButton.expanded=true,this.triggerButton.stopPulsating(),this.miniPreview.toolbar&&(this.miniPreview.toolbar[b$2]=r),e&&(i&&this.style.setProperty(j,`#${i.toJSON()}`),await this.visualFeedback.emitSuccessFeedback(),t==="default"&&this.miniPreviewTimeout.start()),t==="persistent"&&this.miniPreview.showToast("warning",this._scanPausedMessage,Number.POSITIVE_INFINITY);}async switchToErrorState(e,r){e.resumeCapturingDelay>0&&(this.triggerButton.stopPulsating(),this.miniPreview.showToast("error",e.message,e.resumeCapturingDelay)),r&&(this.style.setProperty(k,`#${e.visualFeedbackColor.toJSON()}`),await this.visualFeedback.emitErrorFeedback());}async onMiniPreviewPointerUp(){await this.presenter.onMiniPreviewPointerUp();}onMiniPreviewPointerMove(){this.presenter.onMiniPreviewPointerMove();}async onMiniPreviewButtonTap(e){switch(e.detail.tapped){case "torchButton":{await this.presenter.onTorchButtonTap(e.detail.enabled);break}case "closeButton":{await this.presenter.onMiniPreviewCloseButtonTap();break}case "resizeButton":{this.presenter.onMiniPreviewResizeButtonTap();break}case "zoomButton":{await this.presenter.onMiniPreviewZoomButtonTap(e.detail.zoomFactor);break}}this.miniPreviewTimeout.running&&this.miniPreviewTimeout.start();}async onMiniPreviewDrag(e){e instanceof a$6&&await this.presenter.onMiniPreviewDrag(e.point,this.orientationObserver.orientation.type);}async onMiniPreviewDragEnd(e){e instanceof a$6&&await this.presenter.onMiniPreviewDragEnd();}async onTriggerButtonPointerDown(){await this.presenter.onTriggerButtonPointerDown();}async onTriggerButtonTap(){await this.presenter.onTriggerButtonTap();}async onTriggerButtonLongPressStart(){this.holdingToScan||(this.holdingToScan=true,await this.presenter.onTriggerButtonLongPressStart());}async onTriggerButtonLongPressEnd(){this.holdingToScan&&(this.holdingToScan=false,await this.presenter.onTriggerButtonLongPressEnd());}onTriggerButtonDrag(e){e instanceof a$6&&this.presenter.onTriggerButtonDrag(e.point,this.orientationObserver.orientation.type);}async onToolbarButtonTap(e){switch(this.miniPreview.rewindAnimation(),e.detail.tapped){case "targetModeButton":{await this.onTargetModeButtonTap(e);return}case "scanningBehaviorButton":{await this.onScanningBehaviorButtonTap(e);return}case "barcodeFindButton":{await this.onBarcodeFindButtonTap();return}case "labelCaptureButton":{await this.onLabelCaptureButtonTap();return}case "cameraSwitchButton":await this.onCameraSwitchButtonTap();}}async onClickOutside(e){e.composedPath().includes(this)||await this.presenter.onClickOutside();}async onVisibilityChange(){document.visibilityState==="hidden"&&await this.presenter.onVisibilityChange();}async onTargetModeButtonTap(e){await this.presenter.onTargetModeButtonTap(e.detail.enabled);}async onScanningBehaviorButtonTap(e){await this.presenter.onScanningBehaviorButtonTap(e.detail.enabled);}async onBarcodeFindButtonTap(){await this.presenter.onBarcodeFindButtonTap();}async onLabelCaptureButtonTap(){await this.presenter.onLabelCaptureButtonTap();}async onCameraSwitchButtonTap(){this.miniPreview[f$1]=false,await this.presenter.onCameraSwitchButtonTap();}async onTorchButtonTap(e){await this.presenter.onTorchButtonTap(e.detail.enabled);}async onMiniPreviewTimeoutFinished(){await this.miniPreview.fadeOut();}async onOrientationChange(e){this.setWidthAndHeightCssStyleProperties(),this.miniPreview.orientation=e.detail.type;let r,t,i,n;switch(e.detail.type){case "landscape-primary":case "landscape-secondary":{r=this.presenter.landscapeOrientationTriggerButtonTranslateX,t=this.presenter.landscapeOrientationTriggerButtonTranslateY,i=this.presenter.landscapeOrientationMiniPreviewTranslateX,n=this.presenter.landscapeOrientationMiniPreviewTranslateY;break}case "portrait-primary":case "portrait-secondary":{r=this.presenter.portraitOrientationTriggerButtonTranslateX,t=this.presenter.portraitOrientationTriggerButtonTranslateY,i=this.presenter.portraitOrientationMiniPreviewTranslateX,n=this.presenter.portraitOrientationMiniPreviewTranslateY;break}}this.triggerButton.translateTo(new Point(r,t)),this.miniPreview.translateTo(new Point(i,n)),await this.presenter.onOrientationChange();}targetModeButtonTapped(e,r=true){if(r){let t=e?"warning":"info",i=e?this._targetModeEnabledMessage:this._targetModeDisabledMessage;this.miniPreview.showToast(t,i,1e3);}this.miniPreview.toolbar&&(this.miniPreview.toolbar[e$1]=e),this.miniPreviewTimeout.running&&this.miniPreviewTimeout.start();}scanningBehaviorButtonTapped(e,r=true){if(r){let t=e?"warning":"info",i=e?this._continuousModeEnabledMessage:this._continuousModeDisabledMessage;this.miniPreview.showToast(t,i,1e3);}this.miniPreview.toolbar&&(this.miniPreview.toolbar[b$2]=e?"continuous":"single"),this.miniPreviewTimeout.running&&this.miniPreviewTimeout.start();}torchButtonTapped(e,r=true){if(r){let t=e?"warning":"info",i=e?this._torchEnabledMessage:this._torchDisabledMessage;this.miniPreview.showToast(t,i,1e3);}this.miniPreview.toolbar&&(this.miniPreview[g$1]=e),this.miniPreviewTimeout.running&&this.miniPreviewTimeout.start();}cameraSwitchButtonTapped(e,r){var t;this.miniPreview[f$1]=this.torchControlVisible&&e,(t=this.miniPreview.toolbar)==null||t.enableCameraSwitchButton(r===CameraPosition.UserFacing);}getDefaultCssVariableValue(e){return window.getComputedStyle(this).getPropertyValue(e)}setTriggerButtonPressedColor(e,r,t){var B;let i=(B=this[e])!=null?B:Color.fromHex(this.getDefaultCssVariableValue(r)),n=clamp(i.alpha+i.alpha*.25,i.alpha,255),U=i.withAlpha(n);this.style.setProperty(t,`#${U.toJSON()}`);}};export{_ as a};
@@ -0,0 +1 @@
1
+ import {a,b}from'./chunk-E5OIMFVX.js';import {b as b$1}from'./chunk-DHCNYKSL.js';import {Vibration,Feedback}from'@scandit/web-datacapture-core';var o=Vibration.withPattern([40]),c=class b$2{constructor(i,t){this.soundEnabled=true;this.hapticEnabled=true;this.tapVibration=this.hapticEnabled?o:null;this.tapFeedback=new Feedback(this.tapVibration,null);this.successSound=this.soundEnabled?a:null;this.successVibration=this.hapticEnabled?o:null;this.successFeedback=new Feedback(this.successVibration,this.successSound);this.errorSound=this.soundEnabled?b:null;this.noFeedback=new Feedback(null,null);this.errorVibration=this.hapticEnabled?Vibration.withPattern(b$1.SparkScan.SparkScanFeedback.errorVibrationPattern):null;this.errorFeedback=new Feedback(this.errorVibration,this.errorSound);this.soundEnabled=i,this.hapticEnabled=t;}static withDefaults(i,t){return new b$2(i,t)}setSoundEnabled(i){this.soundEnabled=i,this.successSound=i?a:null,this.successFeedback=new Feedback(this.successVibration,this.successSound),this.errorSound=i?b:null,this.errorFeedback=new Feedback(this.errorVibration,this.errorSound);}setHapticEnabled(i){this.hapticEnabled=i,this.tapVibration=i?o:null,this.tapFeedback=new Feedback(this.tapVibration,null),this.successVibration=i?Vibration.defaultVibration:null,this.successFeedback=new Feedback(this.successVibration,this.successSound),this.errorVibration=i?Vibration.withPattern(b$1.SparkScan.SparkScanFeedback.errorVibrationPattern):null,this.errorFeedback=new Feedback(this.errorVibration,this.errorSound);}emitTapFeedback(){this.tapFeedback.emit();}emitBarcodeFeedback(i){var l,u;new Feedback(this.hapticEnabled&&(l=i==null?void 0:i.feedback.vibration)!=null?l:null,this.soundEnabled&&(u=i==null?void 0:i.feedback.sound)!=null?u:null).emit();}};export{c as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-WVIC3JWX.js';import {a as a$3}from'./chunk-7O2NHA3I.js';import {a as a$2}from'./chunk-LTNZJEG4.js';import {a as a$4}from'./chunk-4QSEBPWB.js';import {a as a$1}from'./chunk-2ZSOWJ2F.js';import {a as a$5}from'./chunk-WHWR5LBU.js';import {DataCaptureEngine}from'@scandit/web-datacapture-core/build/js/worker/index.js';var c=class extends DataCaptureEngine{constructor(e,r){super(e,r);}getModeDeserializers(){this.barcodeCaptureMode=new a(this,this.Module,this.workerFunctions),this.barcodeBatchMode=new a$1(this,this.Module,this.workerFunctions),this.sparkScanMode=new a$2(this,this.Module,this.workerFunctions),this.barcodeFindMode=new a$3(this,this.Module,this.workerFunctions),this.barcodeArMode=new a$4(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 a$5}};export{c as a};
@@ -0,0 +1,9 @@
1
+ import {a}from'./chunk-LAYALN2H.js';import {a as a$4}from'./chunk-JSJOGGUQ.js';import {a as a$2}from'./chunk-PGZPJXZN.js';import {a as a$3}from'./chunk-AOYPDGOI.js';import {a as a$1}from'./chunk-CYVVGAZ4.js';import {Color,ScanditIcon}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var m=(o=>(o[o.Top="top-center"]="Top",o[o.Bottom="bottom-center"]="Bottom",o[o.Left="left-center"]="Left",o[o.Right="right-center"]="Right",o))(m||{}),U=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(U||{}),N=(y=>(y.InfoAnnotationTap="BarcodeArInfoAnnotationEventTap",y))(N||{}),p="slot[name='header']",h="slot[name='footer']",T="--arrow-background-color",s=class s extends ScanditHTMLElement{constructor(){super();this.isEntireAnnotationTappable=false;this.annotationTrigger="highlightTapAndBarcodeScan";this.onPointerUpListener=this.onPointerUp.bind(this);this.onSlotChangeListener=this.onSlotChange.bind(this);this.highlightableElementListenerMap=new Map;let t=this.attachShadow({mode:"open"});t.innerHTML=html`<div
2
+ class="container arw-${m.Bottom} ${"small"}"
3
+ >
4
+ <slot name="header"></slot>
5
+ <div class="body-container">
6
+ <slot></slot>
7
+ </div>
8
+ <slot name="footer"></slot>
9
+ </div>`,this.containerElement=t.querySelector(".container"),t.append(s.createStyleElement().cloneNode(true)),t.append(a());}get barcode(){return this._barcode}set barcode(t){this._barcode=t;}updatePosition(t,e,o){a$1(this,t,e,o);}set anchor(t){for(let e of Object.values(m))this.containerElement.classList.remove(`arw-${e}`);this.containerElement.classList.add(`arw-${t}`),this.updateArrowColor();}get anchor(){for(let t of Object.values(m))if(this.containerElement.classList.contains(`arw-${t}`))return t;return m.Bottom}set widthPreset(t){this.containerElement.classList.remove("small","medium","large"),this.containerElement.classList.add(t);}get widthPreset(){switch(true){case this.containerElement.classList.contains("small"):return "small";case this.containerElement.classList.contains("medium"):return "medium";case this.containerElement.classList.contains("large"):return "large";default:return "small"}}get backgroundColor(){let t=this.containerElement.style.getPropertyValue("--background-color");return Color.fromHex(t)}set backgroundColor(t){this.containerElement.style.setProperty("--background-color",`#${t.toJSON()}`);}set body(t){this.append(...t);}get body(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot:not([name])");return (o=t==null?void 0:t.assignedElements({flatten:true}))!=null?o:[]}set header(t){let e=this.querySelector(p);t!=null&&(e==null?void 0:e.assignedElements()[0])!==t&&(e==null||e.remove(),t.setAttribute("slot","header"),this.append(t));}get header(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(p);return ((o=t==null?void 0:t.assignedElements())!=null?o:[])[0]}set footer(t){let e=this.querySelector(h);t!=null&&(e==null?void 0:e.assignedElements()[0])!==t&&(e==null||e.remove(),t.setAttribute("slot","footer"),this.append(t));}get footer(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(h);return ((o=t==null?void 0:t.assignedElements())!=null?o:[])[0]}set hasTip(t){this.containerElement.classList.toggle(`arw-${this.anchor}`,t);}get hasTip(){return this.containerElement.classList.contains(`arw-${this.anchor}`)}static create(t){s.register();let e=document.createElement(s.tag);return e.barcode=t,e}static register(){defineCustomElements({[a$4.tag]:a$4,[a$3.tag]:a$3,[a$2.tag]:a$2,[s.tag]:s});}static createStyleElement(){return css`:host{--background-color:#fff;--arrow-size:7px;--arrow-background-color:var(--background-color);--arrow-offset:10px;font-family:SF Pro Display,sans-serif}.container{background-color:var(--background-color);border-radius:16px;display:flex;flex-direction:column;min-width:100px;position:relative;transition:opacity .3s ease;width:100%}.container.highlighted{opacity:.75}.container.${"small"}{width:180px}.container.${"medium"}{width:210px}.container.${"large"}{width:240px}.body-container{padding-bottom:24px}`}connectedCallback(){var o,n;this.addEventListener("pointerup",this.onPointerUpListener);let t=(o=this.shadowRoot)==null?void 0:o.querySelector(p),e=(n=this.shadowRoot)==null?void 0:n.querySelector(h);t==null||t.addEventListener("slotchange",this.onSlotChangeListener),e==null||e.addEventListener("slotchange",this.onSlotChangeListener),this.onSlotChange(),this.isEntireAnnotationTappable&&this.makeHighlightable(this.containerElement);}disconnectedCallback(){var o,n;let t=(o=this.shadowRoot)==null?void 0:o.querySelector(p),e=(n=this.shadowRoot)==null?void 0:n.querySelector(h);t==null||t.removeEventListener("slotchange",this.onSlotChangeListener),e==null||e.removeEventListener("slotchange",this.onSlotChangeListener),this.removeEventListener("pointerup",this.onPointerUpListener);for(let[i,r]of this.highlightableElementListenerMap)i.removeEventListener("pointerdown",r.pointerdown),i.removeEventListener("pointerup",r.pointerup);}onSlotChange(){var i,r,c,d;let t=(i=this.shadowRoot)==null?void 0:i.querySelector(p),e=(r=this.shadowRoot)==null?void 0:r.querySelector(h),o=(c=t==null?void 0:t.assignedElements())!=null?c:[],n=(d=e==null?void 0:e.assignedElements())!=null?d:[];for(let a of o)a.style.setProperty("--top-left-corner-radius","16px"),a.style.setProperty("--top-right-corner-radius","16px"),this.isEntireAnnotationTappable||this.makeHighlightable(a);for(let a of n)a.style.setProperty("--bottom-left-corner-radius","16px"),a.style.setProperty("--bottom-right-corner-radius","16px"),this.isEntireAnnotationTappable||this.makeHighlightable(a);this.updateArrowColor();}updateArrowColor(){this.style.removeProperty(T),(this.header||this.footer)&&(this.header&&this.anchor.startsWith("top")?this.style.setProperty(T,`#${this.header.backgroundColor.toJSON()}`):this.footer&&this.anchor.startsWith("bottom")&&this.style.setProperty(T,`#${this.footer.backgroundColor.toJSON()}`));}makeHighlightable(t){var i;let e=t.classList.contains("container")?t:(i=t.shadowRoot)==null?void 0:i.querySelector(".container");if(!e||this.highlightableElementListenerMap.has(e))return;let o=()=>{e.classList.add("highlighted");},n=()=>{e.classList.remove("highlighted");};e.addEventListener("pointerdown",o),e.addEventListener("pointerup",n),this.highlightableElementListenerMap.set(e,{pointerdown:o,pointerup:n});}onPointerUp(t){var r,c,d,a,B,f,I,u,S,g,w,b,M;let e=(r=t.target)==null?void 0:r.closest(a$3.tag),o=(c=t.target)==null?void 0:c.closest(a$2.tag),n=(d=t.target)==null?void 0:d.closest(`${a$4.tag} ${ScanditIcon.tag}`),i=new CustomEvent("BarcodeArInfoAnnotationEventTap",{bubbles:true});if(e&&((B=(a=this.listener)==null?void 0:a.onInfoAnnotationHeaderTapped)==null||B.call(a,this),this.dispatchEvent(i)),o&&((I=(f=this.listener)==null?void 0:f.onInfoAnnotationFooterTapped)==null||I.call(f,this),this.dispatchEvent(i)),(n==null?void 0:n.slot)==="left-barcode-icon"){let l=this.body.findIndex(v=>v.contains(n));this.body[l].isLeftIconTappable&&((S=(u=this.listener)==null?void 0:u.onInfoAnnotationLeftIconTapped)==null||S.call(u,this,this.body[l],l),this.dispatchEvent(i));}if((n==null?void 0:n.slot)==="right-barcode-icon"){let l=this.body.findIndex(v=>v.contains(n));this.body[l].isRightIconTappable&&((w=(g=this.listener)==null?void 0:g.onInfoAnnotationRightIconTapped)==null||w.call(g,this,this.body[l],l),this.dispatchEvent(i));}this.isEntireAnnotationTappable&&((M=(b=this.listener)==null?void 0:b.onInfoAnnotationTapped)==null||M.call(b,this),this.dispatchEvent(i));}};s.tag="scandit-barcode-ar-info-annotation";var H=s;export{m as a,U as b,N as c,H as d};
@@ -1 +1 @@
1
- import {a}from'./chunk-MUX2WWWH.js';import {e}from'./chunk-PE6EDL2S.js';var i=class n{get newlyRecognizedBarcode(){return this._newlyRecognizedBarcode}get newlyLocalizedBarcodes(){return this._newlyLocalizedBarcodes}get frameSequenceID(){return this._frameSequenceID}static fromJSON(e$1){let r=new n;return e$1.newlyRecognizedBarcode&&(r._newlyRecognizedBarcode=e.fromJSON(e$1.newlyRecognizedBarcode)),r._newlyLocalizedBarcodes=e$1.newlyLocalizedBarcodes.map(a$1=>a.fromJSON(a$1)),r._frameSequenceID=e$1.frameSequenceId,r}toJSON(){var e,r;return JSON.stringify({newlyLocalizedBarcodes:this.newlyLocalizedBarcodes.map(a=>a.toJSONObject()),newlyRecognizedBarcode:(r=(e=this.newlyRecognizedBarcode)==null?void 0:e.toJSONObject())!=null?r:null,frameSequenceId:this.frameSequenceID})}};export{i as a};
1
+ import {a}from'./chunk-MUX2WWWH.js';import {e}from'./chunk-R3B72E4T.js';var i=class n{get newlyRecognizedBarcode(){return this._newlyRecognizedBarcode}get newlyLocalizedBarcodes(){return this._newlyLocalizedBarcodes}get frameSequenceID(){return this._frameSequenceID}static fromJSON(e$1){let r=new n;return e$1.newlyRecognizedBarcode&&(r._newlyRecognizedBarcode=e.fromJSON(e$1.newlyRecognizedBarcode)),r._newlyLocalizedBarcodes=e$1.newlyLocalizedBarcodes.map(a$1=>a.fromJSON(a$1)),r._frameSequenceID=e$1.frameSequenceId,r}toJSON(){var e,r;return JSON.stringify({newlyLocalizedBarcodes:this.newlyLocalizedBarcodes.map(a=>a.toJSONObject()),newlyRecognizedBarcode:(r=(e=this.newlyRecognizedBarcode)==null?void 0:e.toJSONObject())!=null?r:null,frameSequenceId:this.frameSequenceID})}};export{i as a};
@@ -1 +1 @@
1
- import {c}from'./chunk-SZUPDKV5.js';import {TorchState}from'@scandit/web-datacapture-core';var t=class{constructor(e,n){this.viewSettings=e,this.preferenceManager=n,this.state="Initial",this.scanningMode=e.defaultScanningMode.copyWith(n.scanningBehavior),this.zoomFactor=e.zoomFactorOut,this.holdingToScan=!1,this.torchState=e.defaultTorchState;}get targetModeEnabled(){return this.scanningMode instanceof c}get scanningBehavior(){return this.scanningMode.scanningBehavior}set scanningBehavior(e){this.scanningMode=this.scanningMode.copyWith(e);}get previewBehavior(){return this.scanningMode.previewBehavior}set previewBehavior(e){this.scanningMode=this.scanningMode.copyWith(this.scanningBehavior,e);}get zoomedIn(){return this.zoomFactor===this.viewSettings.zoomFactorIn}get zoomedOut(){return this.zoomFactor===this.viewSettings.zoomFactorOut}get idleState(){return this.state==="idle"}get torchEnabled(){return this.torchState===TorchState.On}get continuousModeEnabled(){return this.scanningBehavior==="continuous"}get portraitOrientationTriggerButtonTranslateX(){return this.preferenceManager.portraitOrientationTriggerButtonTranslateX}set portraitOrientationTriggerButtonTranslateX(e){this.preferenceManager.portraitOrientationTriggerButtonTranslateX=e;}get portraitOrientationTriggerButtonTranslateY(){return this.preferenceManager.portraitOrientationTriggerButtonTranslateY}set portraitOrientationTriggerButtonTranslateY(e){this.preferenceManager.portraitOrientationTriggerButtonTranslateY=e;}get landscapeOrientationTriggerButtonTranslateX(){return this.preferenceManager.landscapeOrientationTriggerButtonTranslateX}set landscapeOrientationTriggerButtonTranslateX(e){this.preferenceManager.landscapeOrientationTriggerButtonTranslateX=e;}get landscapeOrientationTriggerButtonTranslateY(){return this.preferenceManager.landscapeOrientationTriggerButtonTranslateY}set landscapeOrientationTriggerButtonTranslateY(e){this.preferenceManager.landscapeOrientationTriggerButtonTranslateY=e;}get portraitOrientationMiniPreviewTranslateX(){return this.preferenceManager.portraitOrientationMiniPreviewTranslateX}set portraitOrientationMiniPreviewTranslateX(e){this.preferenceManager.portraitOrientationMiniPreviewTranslateX=e;}get portraitOrientationMiniPreviewTranslateY(){return this.preferenceManager.portraitOrientationMiniPreviewTranslateY}set portraitOrientationMiniPreviewTranslateY(e){this.preferenceManager.portraitOrientationMiniPreviewTranslateY=e;}get landscapeOrientationMiniPreviewTranslateX(){return this.preferenceManager.landscapeOrientationMiniPreviewTranslateX}set landscapeOrientationMiniPreviewTranslateX(e){this.preferenceManager.landscapeOrientationMiniPreviewTranslateX=e;}get landscapeOrientationMiniPreviewTranslateY(){return this.preferenceManager.landscapeOrientationMiniPreviewTranslateY}set landscapeOrientationMiniPreviewTranslateY(e){this.preferenceManager.landscapeOrientationMiniPreviewTranslateY=e;}};export{t as a};
1
+ import {c}from'./chunk-SZUPDKV5.js';import {TorchState}from'@scandit/web-datacapture-core';var t=class{constructor(e,n){this.viewSettings=e,this.preferenceManager=n,this.state="Initial",this.scanningMode=e.defaultScanningMode.copyWith(n.scanningBehavior),this.zoomFactor=e.zoomFactorOut,this.holdingToScan=false,this.torchState=e.defaultTorchState;}get targetModeEnabled(){return this.scanningMode instanceof c}get scanningBehavior(){return this.scanningMode.scanningBehavior}set scanningBehavior(e){this.scanningMode=this.scanningMode.copyWith(e);}get previewBehavior(){return this.scanningMode.previewBehavior}set previewBehavior(e){this.scanningMode=this.scanningMode.copyWith(this.scanningBehavior,e);}get zoomedIn(){return this.zoomFactor===this.viewSettings.zoomFactorIn}get zoomedOut(){return this.zoomFactor===this.viewSettings.zoomFactorOut}get idleState(){return this.state==="idle"}get torchEnabled(){return this.torchState===TorchState.On}get continuousModeEnabled(){return this.scanningBehavior==="continuous"}get portraitOrientationTriggerButtonTranslateX(){return this.preferenceManager.portraitOrientationTriggerButtonTranslateX}set portraitOrientationTriggerButtonTranslateX(e){this.preferenceManager.portraitOrientationTriggerButtonTranslateX=e;}get portraitOrientationTriggerButtonTranslateY(){return this.preferenceManager.portraitOrientationTriggerButtonTranslateY}set portraitOrientationTriggerButtonTranslateY(e){this.preferenceManager.portraitOrientationTriggerButtonTranslateY=e;}get landscapeOrientationTriggerButtonTranslateX(){return this.preferenceManager.landscapeOrientationTriggerButtonTranslateX}set landscapeOrientationTriggerButtonTranslateX(e){this.preferenceManager.landscapeOrientationTriggerButtonTranslateX=e;}get landscapeOrientationTriggerButtonTranslateY(){return this.preferenceManager.landscapeOrientationTriggerButtonTranslateY}set landscapeOrientationTriggerButtonTranslateY(e){this.preferenceManager.landscapeOrientationTriggerButtonTranslateY=e;}get portraitOrientationMiniPreviewTranslateX(){return this.preferenceManager.portraitOrientationMiniPreviewTranslateX}set portraitOrientationMiniPreviewTranslateX(e){this.preferenceManager.portraitOrientationMiniPreviewTranslateX=e;}get portraitOrientationMiniPreviewTranslateY(){return this.preferenceManager.portraitOrientationMiniPreviewTranslateY}set portraitOrientationMiniPreviewTranslateY(e){this.preferenceManager.portraitOrientationMiniPreviewTranslateY=e;}get landscapeOrientationMiniPreviewTranslateX(){return this.preferenceManager.landscapeOrientationMiniPreviewTranslateX}set landscapeOrientationMiniPreviewTranslateX(e){this.preferenceManager.landscapeOrientationMiniPreviewTranslateX=e;}get landscapeOrientationMiniPreviewTranslateY(){return this.preferenceManager.landscapeOrientationMiniPreviewTranslateY}set landscapeOrientationMiniPreviewTranslateY(e){this.preferenceManager.landscapeOrientationMiniPreviewTranslateY=e;}};export{t as a};
@@ -1 +1 @@
1
- import {a,b as b$1}from'./chunk-E5OIMFVX.js';import {b}from'./chunk-2RKBANN2.js';import {Vibration,Feedback,Brush,Color}from'@scandit/web-datacapture-core';var r=class{constructor(e,c){this.visualFeedbackColor=e,this.feedback=c;}static defaultSuccessFeedback(){let e=Vibration.withPattern([300]);return new Feedback(e,a)}static defaultErrorFeedback(){let e=Vibration.withPattern(b.SparkScan.SparkScanFeedback.errorVibrationPattern);return new Feedback(e,b$1)}static defaultSuccessBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,250,250,1),3)}static defaultErrorBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,68,70,1),1)}static success(){return new u}},k=class extends r{constructor(e,c,a,s,o){super(a!=null?a:Color.fromRGBA(250,68,70,1),o!=null?o:r.defaultErrorFeedback()),this.message=e,this.resumeCapturingDelay=c,this.brush=s!=null?s:r.defaultErrorBrush();}toJSONObject(){return {type:"error",barcodeFeedback:{feedback:this.feedback.toJSONObject(),message:this.message,resumeCapturingDelay:this.resumeCapturingDelay,visualFeedbackColor:this.visualFeedbackColor.toJSON(),brush:this.brush.toJSONObject()}}}},u=class extends r{constructor(e,c,a){super(e!=null?e:Color.fromRGBA(46,193,206,1),a!=null?a:r.defaultSuccessFeedback()),this.brush=c!=null?c:r.defaultSuccessBrush();}toJSONObject(){return {type:"success",barcodeFeedback:{visualFeedbackColor:this.visualFeedbackColor.toJSON(),feedback:this.feedback.toJSONObject(),brush:this.brush.toJSONObject()}}}};export{r as a,k as b,u as c};
1
+ import {a,b as b$1}from'./chunk-E5OIMFVX.js';import {b}from'./chunk-DHCNYKSL.js';import {Vibration,Feedback,Brush,Color}from'@scandit/web-datacapture-core';var r=class{constructor(e,c){this.visualFeedbackColor=e,this.feedback=c;}static defaultSuccessFeedback(){let e=Vibration.withPattern([300]);return new Feedback(e,a)}static defaultErrorFeedback(){let e=Vibration.withPattern(b.SparkScan.SparkScanFeedback.errorVibrationPattern);return new Feedback(e,b$1)}static defaultSuccessBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,250,250,1),3)}static defaultErrorBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,68,70,1),1)}static success(){return new u}},k=class extends r{constructor(e,c,a,s,o){super(a!=null?a:Color.fromRGBA(250,68,70,1),o!=null?o:r.defaultErrorFeedback()),this.message=e,this.resumeCapturingDelay=c,this.brush=s!=null?s:r.defaultErrorBrush();}toJSONObject(){return {type:"error",barcodeFeedback:{feedback:this.feedback.toJSONObject(),message:this.message,resumeCapturingDelay:this.resumeCapturingDelay,visualFeedbackColor:this.visualFeedbackColor.toJSON(),brush:this.brush.toJSONObject()}}}},u=class extends r{constructor(e,c,a){super(e!=null?e:Color.fromRGBA(46,193,206,1),a!=null?a:r.defaultSuccessFeedback()),this.brush=c!=null?c:r.defaultSuccessBrush();}toJSONObject(){return {type:"success",barcodeFeedback:{visualFeedbackColor:this.visualFeedbackColor.toJSON(),feedback:this.feedback.toJSONObject(),brush:this.brush.toJSONObject()}}}};export{r as a,k as b,u as c};
@@ -1 +1 @@
1
- import {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-YM4T55CK.js';import {Color}from'@scandit/web-datacapture-core';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var e=class e extends ScanditHTMLElement{constructor(){super();this._defaultBackgroundColor=Color.fromHex("#000000");this._defaultTextColor=Color.fromHex("#FFFFFF");let t=this.attachShadow({mode:"open"});t.innerHTML=d(),t.append(e$1()),this.containerElement=t.querySelector(a),this.textElement=t.querySelector(c);}static create(){return e.register(),document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}set icon(t){g(this,t);}get icon(){return f(this)}get backgroundColor(){return h(this,this._defaultBackgroundColor)}set backgroundColor(t){i(this,t);}get text(){return n(this.textElement)}set text(t){o(this.textElement,t);}get textColor(){return j(this,this._defaultTextColor)}set textColor(t){k(this,t);}get textSize(){return l(this)}set textSize(t){m(this,t);}connectedCallback(){this.backgroundColor=this.backgroundColor,this.textColor=this.textColor;}};e.tag="scandit-barcode-info-annotation-footer";var x=e;export{x as a};
1
+ import {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-UJWVVADW.js';import {Color}from'@scandit/web-datacapture-core';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var e=class e extends ScanditHTMLElement{constructor(){super();this._defaultBackgroundColor=Color.fromHex("#000000");this._defaultTextColor=Color.fromHex("#FFFFFF");let t=this.attachShadow({mode:"open"});t.innerHTML=d(),t.append(e$1()),this.containerElement=t.querySelector(a),this.textElement=t.querySelector(c);}static create(){return e.register(),document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}set icon(t){g(this,t);}get icon(){return f(this)}get backgroundColor(){return h(this,this._defaultBackgroundColor)}set backgroundColor(t){i(this,t);}get text(){return n(this.textElement)}set text(t){o(this.textElement,t);}get textColor(){return j(this,this._defaultTextColor)}set textColor(t){k(this,t);}get textSize(){return l(this)}set textSize(t){m(this,t);}connectedCallback(){this.backgroundColor=this.backgroundColor,this.textColor=this.textColor;}};e.tag="scandit-barcode-ar-info-annotation-footer";var x=e;export{x as a};
@@ -1 +1 @@
1
- var i=class r{constructor(){this.type="barcodeFindBasicOverlay";this.shouldShowScanAreaGuides=!1;this.userGuidanceEnabled=!0;this.textForAllItemsFoundSuccessfullyHint=null;this.textForPointAtBarcodesToSearchHint=null;this.textForMoveCloserToBarcodesHint=null;this.textForTapShutterToPauseScreenHint=null;this.textForTapShutterToResumeScreenHint=null;this.textForItemListUpdatedHint=null;this.textForItemListUpdatedWhenPausedHint=null;this.shouldShowHint=!0;}static async withBarcodeFind(t,o){let e=new r;return e.barcodeFind=t,e.view=o,await t.workerCommand("barcodeFindAddBasicOverlay",{}),await e.notify(),e}async setShouldShowScanAreaGuides(t){return this.shouldShowScanAreaGuides=t,this.notify()}getShouldShowScanAreaGuides(){return this.shouldShowScanAreaGuides}async setUserGuidanceEnabled(t){return this.userGuidanceEnabled=t,this.notify()}async setTextForAllItemsFoundSuccessfullyHint(t){return this.textForAllItemsFoundSuccessfullyHint=t,this.notify()}async setTextForPointAtBarcodesToSearchHint(t){return this.textForPointAtBarcodesToSearchHint=t,this.notify()}async setTextForMoveCloserToBarcodesHint(t){return this.textForMoveCloserToBarcodesHint=t,this.notify()}async setTextForTapShutterToPauseScreenHint(t){return this.textForTapShutterToPauseScreenHint=t,this.notify()}async setTextForTapShutterToResumeScreenHint(t){return this.textForTapShutterToResumeScreenHint=t,this.notify()}async setTextForItemListUpdatedHint(t){return this.textForItemListUpdatedHint=t,this.notify()}async setTextForItemListUpdatedWhenPausedHint(t){return this.textForItemListUpdatedWhenPausedHint=t,this.notify()}async setShouldShowHint(t){return this.shouldShowHint=t,this.notify()}toJSONObject(){return {type:this.type,shouldShowScanAreaGuides:this.shouldShowScanAreaGuides,shouldShowHint:this.shouldShowHint,userGuidanceEnabled:this.userGuidanceEnabled,textForAllItemsFoundSuccessfullyHint:this.textForAllItemsFoundSuccessfullyHint,textForPointAtBarcodesToSearchHint:this.textForPointAtBarcodesToSearchHint,textForMoveCloserToBarcodesHint:this.textForMoveCloserToBarcodesHint,textForTapShutterToPauseScreenHint:this.textForTapShutterToPauseScreenHint,textForTapShutterToResumeScreenHint:this.textForTapShutterToResumeScreenHint,textForItemListUpdatedHint:this.textForItemListUpdatedHint,textForItemListUpdatedWhenPausedHint:this.textForItemListUpdatedWhenPausedHint}}async notify(){return this.barcodeFind.workerCommand("barcodeFindUpdateBasicOverlay",{jsonOverlay:this.toJSONObject()})}};export{i as a};
1
+ var i=class r{constructor(){this.type="barcodeFindBasicOverlay";this.shouldShowScanAreaGuides=false;this.userGuidanceEnabled=true;this.textForAllItemsFoundSuccessfullyHint=null;this.textForPointAtBarcodesToSearchHint=null;this.textForMoveCloserToBarcodesHint=null;this.textForTapShutterToPauseScreenHint=null;this.textForTapShutterToResumeScreenHint=null;this.textForItemListUpdatedHint=null;this.textForItemListUpdatedWhenPausedHint=null;this.shouldShowHint=true;}static async withBarcodeFind(t,o){let e=new r;return e.barcodeFind=t,e.view=o,await t.workerCommand("barcodeFindAddBasicOverlay",{}),await e.notify(),e}async setShouldShowScanAreaGuides(t){return this.shouldShowScanAreaGuides=t,this.notify()}getShouldShowScanAreaGuides(){return this.shouldShowScanAreaGuides}async setUserGuidanceEnabled(t){return this.userGuidanceEnabled=t,this.notify()}async setTextForAllItemsFoundSuccessfullyHint(t){return this.textForAllItemsFoundSuccessfullyHint=t,this.notify()}async setTextForPointAtBarcodesToSearchHint(t){return this.textForPointAtBarcodesToSearchHint=t,this.notify()}async setTextForMoveCloserToBarcodesHint(t){return this.textForMoveCloserToBarcodesHint=t,this.notify()}async setTextForTapShutterToPauseScreenHint(t){return this.textForTapShutterToPauseScreenHint=t,this.notify()}async setTextForTapShutterToResumeScreenHint(t){return this.textForTapShutterToResumeScreenHint=t,this.notify()}async setTextForItemListUpdatedHint(t){return this.textForItemListUpdatedHint=t,this.notify()}async setTextForItemListUpdatedWhenPausedHint(t){return this.textForItemListUpdatedWhenPausedHint=t,this.notify()}async setShouldShowHint(t){return this.shouldShowHint=t,this.notify()}toJSONObject(){return {type:this.type,shouldShowScanAreaGuides:this.shouldShowScanAreaGuides,shouldShowHint:this.shouldShowHint,userGuidanceEnabled:this.userGuidanceEnabled,textForAllItemsFoundSuccessfullyHint:this.textForAllItemsFoundSuccessfullyHint,textForPointAtBarcodesToSearchHint:this.textForPointAtBarcodesToSearchHint,textForMoveCloserToBarcodesHint:this.textForMoveCloserToBarcodesHint,textForTapShutterToPauseScreenHint:this.textForTapShutterToPauseScreenHint,textForTapShutterToResumeScreenHint:this.textForTapShutterToResumeScreenHint,textForItemListUpdatedHint:this.textForItemListUpdatedHint,textForItemListUpdatedWhenPausedHint:this.textForItemListUpdatedWhenPausedHint}}async notify(){return this.barcodeFind.workerCommand("barcodeFindUpdateBasicOverlay",{jsonOverlay:this.toJSONObject()})}};export{i as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-C52THG7K.js';import {NumberWithUnit,MeasureUnit,PointWithUnit,Anchor}from'@scandit/web-datacapture-core';var f=new NumberWithUnit(0,MeasureUnit.Pixel),F=new PointWithUnit(f,f),m=Anchor.Center,p=class v{constructor(){this.listener=null;this.type="barcodeTrackingAdvanced";this._shouldShowScanAreaGuides=!1;this._viewForBarcode=new Map;this._anchorForBarcode=new Map;this._offsetForBarcode=new Map;this._viewForBarcodeFromListener=new Map;this._anchorForBarcodeFromListener=new Map;this._offsetForBarcodeFromListener=new Map;this._anchorPositions=new Map;this._barcodeForId=new Map;}get shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}set shouldShowScanAreaGuides(a){this._shouldShowScanAreaGuides=a,this.barcodeBatch.notifyContext();}static async withBarcodeBatchForView(a$1,r){let e=new v;return e.barcodeBatch=a$1,r&&(await r.addOverlay(e),e.view=r,e.privateListener=new a(e),a$1.addPrivateListener(e.privateListener),e.view.setDidTapCustomLocationsViewListener({didTapView:n=>{var t,d;let o=e.getTrackedBarcodeForIdentifier(n);o&&((d=(t=e.listener)==null?void 0:t.didTapViewForTrackedBarcode)==null||d.call(t,e,o));}})),e}async setViewForTrackedBarcode(a,r){if(a==null){this._viewForBarcode.set(r.identifier,null);return}let e=await a;e!=null&&this._viewForBarcode.set(r.identifier,e),this.barcodeBatch.isEnabled()||this.update();}setAnchorForTrackedBarcode(a,r){this._anchorForBarcode.set(r.identifier,a),this.barcodeBatch.isEnabled()||this.update();}setOffsetForTrackedBarcode(a,r){this._offsetForBarcode.set(r.identifier,a),this.barcodeBatch.isEnabled()||this.update();}clearTrackedBarcodeViews(){this._viewForBarcode.clear(),this.barcodeBatch.isEnabled()||this.update();}toJSONObject(){return {type:this.type,shouldShowScanAreaGuides:this._shouldShowScanAreaGuides}}getTrackedBarcodeForIdentifier(a){return this._barcodeForId.get(a)}async setViewForTrackedBarcodeFromListener(a,r){if(a==null){this._viewForBarcodeFromListener.set(r.identifier,null);return}let e=await a;e!=null&&this._viewForBarcodeFromListener.set(r.identifier,e);}processRemovedBarcodes(a){for(let r of a){let e=Number.parseInt(r,10);this._viewForBarcode.delete(e),this._anchorForBarcode.delete(e),this._offsetForBarcode.delete(e),this._anchorPositions.delete(e),this._viewForBarcodeFromListener.delete(e),this._anchorForBarcodeFromListener.delete(e),this._offsetForBarcodeFromListener.delete(e);}}processAddedBarcodes(a){var r,e,n,o,t,d,h;for(let i of a){if(this._anchorPositions.set(i.identifier,i.anchorPositions),this._barcodeForId.set(i.identifier,i),!this._viewForBarcodeFromListener.has(i.identifier)){let c=(n=(e=(r=this.listener)==null?void 0:r.viewForTrackedBarcode)==null?void 0:e.call(r,this,i))!=null?n:Promise.resolve(null);this.setViewForTrackedBarcodeFromListener(c,i);}if(!this._offsetForBarcodeFromListener.has(i.identifier)){let c=(t=(o=this.listener)==null?void 0:o.offsetForTrackedBarcode)==null?void 0:t.call(o,this,i);c!=null&&this._offsetForBarcodeFromListener.set(i.identifier,c);}if(!this._anchorForBarcodeFromListener.has(i.identifier)){let c=(h=(d=this.listener)==null?void 0:d.anchorForTrackedBarcode)==null?void 0:h.call(d,this,i);c!=null&&this._anchorForBarcodeFromListener.set(i.identifier,c);}}}processUpdatedTrackedBarcodes(a){for(let r of a)this._anchorPositions.set(r.identifier,r.anchorPositions),this._barcodeForId.set(r.identifier,r);}update(a){var n,o,t,d,h,i;a!=null&&(this.lastSession=a);let r=this.view;if(r===null)return;this.processRemovedBarcodes(this.lastSession.removedTrackedBarcodes),this.processAddedBarcodes(this.lastSession.addedTrackedBarcodes),this.processUpdatedTrackedBarcodes(this.lastSession.updatedTrackedBarcodes);let e={removedIds:this.lastSession.removedTrackedBarcodes,elements:[]};for(let c of Object.keys(this.lastSession.trackedBarcodes)){let s=Number.parseInt(c,10),B=(o=(n=this._viewForBarcode.get(s))!=null?n:this._viewForBarcodeFromListener.get(s))==null?void 0:o.toJSONObject();B!=null&&e.elements.push({view:B,identifier:s,anchor:(d=(t=this._anchorForBarcode.get(s))!=null?t:this._anchorForBarcodeFromListener.get(s))!=null?d:m,offset:(i=(h=this._offsetForBarcode.get(s))!=null?h:this._offsetForBarcodeFromListener.get(s))!=null?i:F,anchorPositions:this._anchorPositions.get(s)});}r.renderCustomLocationsView(e);}};export{p as a};
1
+ import {a}from'./chunk-C52THG7K.js';import {NumberWithUnit,MeasureUnit,PointWithUnit,Anchor}from'@scandit/web-datacapture-core';var f=new NumberWithUnit(0,MeasureUnit.Pixel),F=new PointWithUnit(f,f),m=Anchor.Center,p=class v{constructor(){this.listener=null;this.type="barcodeTrackingAdvanced";this._shouldShowScanAreaGuides=false;this._viewForBarcode=new Map;this._anchorForBarcode=new Map;this._offsetForBarcode=new Map;this._viewForBarcodeFromListener=new Map;this._anchorForBarcodeFromListener=new Map;this._offsetForBarcodeFromListener=new Map;this._anchorPositions=new Map;this._barcodeForId=new Map;}get shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}set shouldShowScanAreaGuides(a){this._shouldShowScanAreaGuides=a,this.barcodeBatch.notifyContext();}static async withBarcodeBatchForView(a$1,r){let e=new v;return e.barcodeBatch=a$1,r&&(await r.addOverlay(e),e.view=r,e.privateListener=new a(e),a$1.addPrivateListener(e.privateListener),e.view.setDidTapCustomLocationsViewListener({didTapView:n=>{var t,d;let o=e.getTrackedBarcodeForIdentifier(n);o&&((d=(t=e.listener)==null?void 0:t.didTapViewForTrackedBarcode)==null||d.call(t,e,o));}})),e}async setViewForTrackedBarcode(a,r){if(a==null){this._viewForBarcode.set(r.identifier,null);return}let e=await a;e!=null&&this._viewForBarcode.set(r.identifier,e),this.barcodeBatch.isEnabled()||this.update();}setAnchorForTrackedBarcode(a,r){this._anchorForBarcode.set(r.identifier,a),this.barcodeBatch.isEnabled()||this.update();}setOffsetForTrackedBarcode(a,r){this._offsetForBarcode.set(r.identifier,a),this.barcodeBatch.isEnabled()||this.update();}clearTrackedBarcodeViews(){this._viewForBarcode.clear(),this.barcodeBatch.isEnabled()||this.update();}toJSONObject(){return {type:this.type,shouldShowScanAreaGuides:this._shouldShowScanAreaGuides}}getTrackedBarcodeForIdentifier(a){return this._barcodeForId.get(a)}async setViewForTrackedBarcodeFromListener(a,r){if(a==null){this._viewForBarcodeFromListener.set(r.identifier,null);return}let e=await a;e!=null&&this._viewForBarcodeFromListener.set(r.identifier,e);}processRemovedBarcodes(a){for(let r of a){let e=Number.parseInt(r,10);this._viewForBarcode.delete(e),this._anchorForBarcode.delete(e),this._offsetForBarcode.delete(e),this._anchorPositions.delete(e),this._viewForBarcodeFromListener.delete(e),this._anchorForBarcodeFromListener.delete(e),this._offsetForBarcodeFromListener.delete(e);}}processAddedBarcodes(a){var r,e,n,o,t,d,h;for(let i of a){if(this._anchorPositions.set(i.identifier,i.anchorPositions),this._barcodeForId.set(i.identifier,i),!this._viewForBarcodeFromListener.has(i.identifier)){let c=(n=(e=(r=this.listener)==null?void 0:r.viewForTrackedBarcode)==null?void 0:e.call(r,this,i))!=null?n:Promise.resolve(null);this.setViewForTrackedBarcodeFromListener(c,i);}if(!this._offsetForBarcodeFromListener.has(i.identifier)){let c=(t=(o=this.listener)==null?void 0:o.offsetForTrackedBarcode)==null?void 0:t.call(o,this,i);c!=null&&this._offsetForBarcodeFromListener.set(i.identifier,c);}if(!this._anchorForBarcodeFromListener.has(i.identifier)){let c=(h=(d=this.listener)==null?void 0:d.anchorForTrackedBarcode)==null?void 0:h.call(d,this,i);c!=null&&this._anchorForBarcodeFromListener.set(i.identifier,c);}}}processUpdatedTrackedBarcodes(a){for(let r of a)this._anchorPositions.set(r.identifier,r.anchorPositions),this._barcodeForId.set(r.identifier,r);}update(a){var n,o,t,d,h,i;a!=null&&(this.lastSession=a);let r=this.view;if(r===null)return;this.processRemovedBarcodes(this.lastSession.removedTrackedBarcodes),this.processAddedBarcodes(this.lastSession.addedTrackedBarcodes),this.processUpdatedTrackedBarcodes(this.lastSession.updatedTrackedBarcodes);let e={removedIds:this.lastSession.removedTrackedBarcodes,elements:[]};for(let c of Object.keys(this.lastSession.trackedBarcodes)){let s=Number.parseInt(c,10),B=(o=(n=this._viewForBarcode.get(s))!=null?n:this._viewForBarcodeFromListener.get(s))==null?void 0:o.toJSONObject();B!=null&&e.elements.push({view:B,identifier:s,anchor:(d=(t=this._anchorForBarcode.get(s))!=null?t:this._anchorForBarcodeFromListener.get(s))!=null?d:m,offset:(i=(h=this._offsetForBarcode.get(s))!=null?h:this._offsetForBarcodeFromListener.get(s))!=null?i:F,anchorPositions:this._anchorPositions.get(s)});}r.renderCustomLocationsView(e);}};export{p as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-IEE5MKEA.js';import {a}from'./chunk-J4VFWBJ7.js';import {Quadrilateral}from'@scandit/web-datacapture-core';var l=(a=>(a.EAN13UPCA="ean13Upca",a.UPCE="upce",a.EAN8="ean8",a.Code39="code39",a.Code93="code93",a.Code128="code128",a.Code11="code11",a.Code25="code25",a.Codabar="codabar",a.InterleavedTwoOfFive="interleavedTwoOfFive",a.MSIPlessey="msiPlessey",a.QR="qr",a.DataMatrix="dataMatrix",a.Aztec="aztec",a.MaxiCode="maxicode",a.DotCode="dotcode",a.KIX="kix",a.RM4SCC="rm4scc",a.GS1Databar="databar",a.GS1DatabarExpanded="databarExpanded",a.GS1DatabarLimited="databarLimited",a.PDF417="pdf417",a.MicroPDF417="microPdf417",a.MicroQR="microQr",a.Code32="code32",a.Lapa4SC="lapa4sc",a.IATATwoOfFive="iata2of5",a.MatrixTwoOfFive="matrix2of5",a.USPSIntelligentMail="uspsIntelligentMail",a.ArUco="aruco",a))(l||{}),D=(r=>(r.A="A",r.B="B",r.C="C",r))(D||{}),m=(i=>(i.Mod10="mod10",i.Mod11="mod11",i.Mod16="mod16",i.Mod43="mod43",i.Mod47="mod47",i.Mod103="mod103",i.Mod10AndMod11="mod1110",i.Mod10AndMod10="mod1010",i))(m||{}),g=(n=>(n.None="none",n.Unknown="unknown",n.Linked="linked",n.GS1TypeA="gs1TypeA",n.GS1TypeB="gs1TypeB",n.GS1TypeC="gs1TypeC",n))(g||{}),s=class c{get isStructuredAppend(){return this._structuredAppendData!=null}get structuredAppendData(){return this._structuredAppendData}get addOnData(){return this._addOnData}get compositeData(){return this._compositeData}get compositeFlag(){return this._compositeFlag}get compositeRawData(){return this._compositeRawData}get data(){return this._data}get encodingRanges(){return this._encodingRanges}get frameID(){return this._frameID}get isColorInverted(){return this._isColorInverted}get isGS1DataCarrier(){return this._isGS1DataCarrier}get location(){return this._location}get rawData(){return this._rawData}get symbolCount(){return this._symbolCount}get symbology(){return this._symbology}static fromJSON(e){var r;let t=new c;return t._symbology=e.symbology,t._data=e.data,t._rawData=e.rawData,t._compositeData=e.compositeData,t._compositeRawData=e.compositeRawData,t._addOnData=(r=e.addOnData)!=null?r:null,t._isGS1DataCarrier=e.isGS1DataCarrier,t._compositeFlag=e.compositeFlag,t._isColorInverted=e.isColorInverted,t._symbolCount=e.symbolCount,t._frameID=e.frameId,t._encodingRanges=e.encodingRanges.map(o=>a.fromJSON(o)),t._location=Quadrilateral.fromJSON(e.location),t._structuredAppendData=a$1.fromJSON(e.structuredAppendData),t}toJSONObject(){var e,t,r;return {symbology:this.symbology.toString(),data:this.data,rawData:this.rawData,compositeData:this.compositeData,compositeRawData:this.compositeRawData,addOnData:(e=this.addOnData)!=null?e:null,isGS1DataCarrier:this.isGS1DataCarrier,compositeFlag:this.compositeFlag.toString(),isColorInverted:this.isColorInverted,symbolCount:this.symbolCount,frameId:this.frameID,encodingRanges:this.encodingRanges.map(o=>o.toJSONObject()),location:this.location.toJSONObject(),structuredAppendData:(r=(t=this.structuredAppendData)==null?void 0:t.toJSONObject())!=null?r:null}}};export{l as a,D as b,m as c,g as d,s as e};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-T2Y2C76P.js';import {Point}from'@scandit/web-datacapture-core';import {clamp}from'@scandit/web-datacapture-core/build/js/private/utils/clamp.js';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var s=class extends Event{constructor(t,e){super(t),this.point=e;}},l=class{constructor(t,e){this.translate=new Point(0,0);this.draggable=false;this.pointerDownListener=this.onPointerDown.bind(this);this.pointerMoveListener=this.onPointerMove.bind(this);this.pointerUpListener=this.onPointerUp.bind(this);this.touchStartListener=this.onTouchStart.bind(this);this.resizeListener=this.onResize.bind(this);this.repositioningTimeout=new Timeout(500,this.repositionIfOutOfBounds.bind(this));this.margin=new Point(0,0);this.element=t,this.boundaryElement=e!=null&&e.clientWidth&&(e!=null&&e.clientHeight)?e:document.body;}get translateWithMargin(){return new Point(this.translate.x+this.margin.x,this.translate.y+this.margin.y)}connect(){this.render(),this.element.addEventListener("pointerdown",this.pointerDownListener),this.element.addEventListener("pointermove",this.pointerMoveListener),this.element.addEventListener("pointerup",this.pointerUpListener),this.element.addEventListener("touchstart",this.touchStartListener),window.addEventListener("resize",this.resizeListener);}disconnect(){this.element.removeEventListener("pointerdown",this.pointerDownListener),this.element.removeEventListener("pointermove",this.pointerMoveListener),this.element.removeEventListener("pointerup",this.pointerUpListener),this.element.removeEventListener("touchstart",this.touchStartListener),window.removeEventListener("resize",this.resizeListener),this.repositioningTimeout.stop();}getBoundedTranslate(){let{width:t,height:e}=this.element.getBoundingClientRect(),n=this.boundaryElement.clientWidth,c=this.boundaryElement.clientHeight,o=clamp(this.translate.x,Math.abs(this.margin.x),n-t-this.margin.x),r=clamp(this.translate.y,Math.abs(this.margin.y),c-e-this.margin.y);if(this.translate.x!==o||this.translate.y!==r)return new Point(o,r)}async translateTo(t,e){if(this.translate=t,e){let n=this.element.animate([{transform:`translate(${this.translate.x}px, ${this.translate.y}px)`}],{duration:200,easing:"ease"});n.play(),await n.finished;}this.render(),this.element.dispatchEvent(new s("drag",t));}render(){this.element.style.setProperty("transform",`translate(${this.translate.x}px, ${this.translate.y}px)`);}async repositionIfOutOfBounds(){let t=this.getBoundedTranslate();t&&await this.translateTo(t,true);}onPointerDown(t){t instanceof PointerEvent&&(this.offset=new Point(this.translate.x-t.clientX,this.translate.y-t.clientY),this.pointerDownEvent=t);}onPointerMove(t){t instanceof PointerEvent&&this.offset&&this.draggable&&this.translateTo(new Point(this.offset.x+t.clientX,this.offset.y+t.clientY),false);}async onPointerUp(t){t instanceof PointerEvent&&this.pointerDownEvent&&a(this.pointerDownEvent,t)&&(await this.repositionIfOutOfBounds(),this.offset=void 0,this.draggable=false,this.element.dispatchEvent(new s("dragend",this.translate)));}onTouchStart(t){t.returnValue=false;}onResize(){this.repositioningTimeout.start();}};export{s as a,l as b};
@@ -0,0 +1 @@
1
+ var X=(_=>(_.ArucoDictionaryPreset_5X5_50="5X5_50",_.ArucoDictionaryPreset_5X5_100="5X5_100",_.ArucoDictionaryPreset_5X5_250="5X5_250",_.ArucoDictionaryPreset_5X5_1000="5X5_1000",_.ArucoDictionaryPreset_5X5_1023="5X5_1023",_.ArucoDictionaryPreset_4X4_250="4X4_250",_.ArucoDictionaryPreset_6X6_250="6X6_250",_))(X||{});export{X as a};
@@ -0,0 +1 @@
1
+ var e=class a{constructor(){this.markerData="";this.markerSize=0;}get size(){return this.markerSize}get data(){return this.markerData}static create(t,i){let r=new a;return r.markerSize=t||0,r.markerData=i||"",r}toJSONObject(){return {markerData:this.markerData,markerSize:this.markerSize}}};export{e as a};