@scandit/web-datacapture-barcode 7.0.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 (360) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +3 -0
  3. package/THIRD-PARTY.txt +73 -0
  4. package/build/js/Barcode.d.ts +114 -0
  5. package/build/js/Barcode.js +1 -0
  6. package/build/js/BarcodeBatch-Byl-P99I.d.ts +90 -0
  7. package/build/js/BarcodeBatch.d.ts +10 -0
  8. package/build/js/BarcodeBatch.js +1 -0
  9. package/build/js/BarcodeBatchAdvancedOverlay.d.ts +63 -0
  10. package/build/js/BarcodeBatchAdvancedOverlay.js +1 -0
  11. package/build/js/BarcodeBatchBasicOverlay.d.ts +10 -0
  12. package/build/js/BarcodeBatchBasicOverlay.js +1 -0
  13. package/build/js/BarcodeBatchMode-Dwx2kMQZ.d.ts +115 -0
  14. package/build/js/BarcodeBatchSession.d.ts +29 -0
  15. package/build/js/BarcodeBatchSession.js +1 -0
  16. package/build/js/BarcodeBatchSettings.d.ts +25 -0
  17. package/build/js/BarcodeBatchSettings.js +1 -0
  18. package/build/js/BarcodeCapture.d.ts +53 -0
  19. package/build/js/BarcodeCapture.js +1 -0
  20. package/build/js/BarcodeCaptureFeedback.d.ts +13 -0
  21. package/build/js/BarcodeCaptureFeedback.js +1 -0
  22. package/build/js/BarcodeCaptureOverlay.d.ts +49 -0
  23. package/build/js/BarcodeCaptureOverlay.js +1 -0
  24. package/build/js/BarcodeCaptureSession.d.ts +24 -0
  25. package/build/js/BarcodeCaptureSession.js +1 -0
  26. package/build/js/BarcodeCaptureSettings.d.ts +36 -0
  27. package/build/js/BarcodeCaptureSettings.js +1 -0
  28. package/build/js/Defaults.d.ts +256 -0
  29. package/build/js/Defaults.js +1 -0
  30. package/build/js/EncodingRange.d.ts +19 -0
  31. package/build/js/EncodingRange.js +1 -0
  32. package/build/js/LocalizedOnlyBarcode.d.ts +17 -0
  33. package/build/js/LocalizedOnlyBarcode.js +1 -0
  34. package/build/js/PrivateBarcodeBatchAdvancedOverlayListener.d.ts +21 -0
  35. package/build/js/PrivateBarcodeBatchAdvancedOverlayListener.js +1 -0
  36. package/build/js/PrivateBarcodeBatchBasicOverlayListener.d.ts +10 -0
  37. package/build/js/PrivateBarcodeBatchBasicOverlayListener.js +1 -0
  38. package/build/js/Range.d.ts +23 -0
  39. package/build/js/Range.js +1 -0
  40. package/build/js/ScanIntention.d.ts +6 -0
  41. package/build/js/ScanIntention.js +1 -0
  42. package/build/js/SparkScanView-DEmQKYC3.d.ts +152 -0
  43. package/build/js/StructuredAppendData.d.ts +32 -0
  44. package/build/js/StructuredAppendData.js +1 -0
  45. package/build/js/SymbologyDescription.d.ts +40 -0
  46. package/build/js/SymbologyDescription.js +1 -0
  47. package/build/js/SymbologySettings.d.ts +28 -0
  48. package/build/js/SymbologySettings.js +1 -0
  49. package/build/js/TrackedBarcode.d.ts +33 -0
  50. package/build/js/TrackedBarcode.js +1 -0
  51. package/build/js/TrackedBarcodeView.d.ts +40 -0
  52. package/build/js/TrackedBarcodeView.js +1 -0
  53. package/build/js/chunks/chunk-3A6GSH7S.js +3 -0
  54. package/build/js/chunks/chunk-42SQROQE.js +7 -0
  55. package/build/js/chunks/chunk-4BSKZNBG.js +1 -0
  56. package/build/js/chunks/chunk-4EGODYYJ.js +7 -0
  57. package/build/js/chunks/chunk-4PTIOBXM.js +5 -0
  58. package/build/js/chunks/chunk-5DP5VNWQ.js +7 -0
  59. package/build/js/chunks/chunk-5SHGJJGR.js +11 -0
  60. package/build/js/chunks/chunk-6GFA45IH.js +3 -0
  61. package/build/js/chunks/chunk-6VT7IT5G.js +108 -0
  62. package/build/js/chunks/chunk-7N3BO7YB.js +1 -0
  63. package/build/js/chunks/chunk-7SWSAHI5.js +3 -0
  64. package/build/js/chunks/chunk-ADMKAYF6.js +21 -0
  65. package/build/js/chunks/chunk-AF2UZ65J.js +3 -0
  66. package/build/js/chunks/chunk-ALOQUGSU.js +8 -0
  67. package/build/js/chunks/chunk-AW7K3C63.js +6 -0
  68. package/build/js/chunks/chunk-BRRT6GC7.js +3 -0
  69. package/build/js/chunks/chunk-C52THG7K.js +3 -0
  70. package/build/js/chunks/chunk-CLMAF253.js +15 -0
  71. package/build/js/chunks/chunk-CYUXFHBE.js +5 -0
  72. package/build/js/chunks/chunk-DFK7AQTK.js +3 -0
  73. package/build/js/chunks/chunk-DP5UA6QA.js +7 -0
  74. package/build/js/chunks/chunk-DTO5ICFV.js +252 -0
  75. package/build/js/chunks/chunk-DVHTYKDX.js +3 -0
  76. package/build/js/chunks/chunk-E5OIMFVX.js +6 -0
  77. package/build/js/chunks/chunk-ECL3JBWQ.js +9 -0
  78. package/build/js/chunks/chunk-EMJS3UT7.js +3 -0
  79. package/build/js/chunks/chunk-FFSV4P4N.js +3 -0
  80. package/build/js/chunks/chunk-FJ4SOETD.js +8 -0
  81. package/build/js/chunks/chunk-FLTJ6FPP.js +5 -0
  82. package/build/js/chunks/chunk-FMYIZSF5.js +1 -0
  83. package/build/js/chunks/chunk-FPZJIOQH.js +6 -0
  84. package/build/js/chunks/chunk-GBSISAJA.js +1 -0
  85. package/build/js/chunks/chunk-GOVBKIEO.js +5 -0
  86. package/build/js/chunks/chunk-GR7V7CUW.js +11 -0
  87. package/build/js/chunks/chunk-HEJKMZ7P.js +8 -0
  88. package/build/js/chunks/chunk-HNWVLPRV.js +9 -0
  89. package/build/js/chunks/chunk-HTKUJZG2.js +3 -0
  90. package/build/js/chunks/chunk-I54U6QKJ.js +1 -0
  91. package/build/js/chunks/chunk-I5BAO2RI.js +8 -0
  92. package/build/js/chunks/chunk-IEE5MKEA.js +5 -0
  93. package/build/js/chunks/chunk-IILNTCMF.js +7 -0
  94. package/build/js/chunks/chunk-IMYBB4ZA.js +3 -0
  95. package/build/js/chunks/chunk-INRFTFPK.js +5 -0
  96. package/build/js/chunks/chunk-J4VFWBJ7.js +3 -0
  97. package/build/js/chunks/chunk-JMWBOJQR.js +5 -0
  98. package/build/js/chunks/chunk-JQF6P6X7.js +5 -0
  99. package/build/js/chunks/chunk-K3EIYQPY.js +11 -0
  100. package/build/js/chunks/chunk-K4MHNZXA.js +46 -0
  101. package/build/js/chunks/chunk-KBO3YYBN.js +5 -0
  102. package/build/js/chunks/chunk-KQ3LRAYO.js +4 -0
  103. package/build/js/chunks/chunk-L6IZLBEM.js +3 -0
  104. package/build/js/chunks/chunk-LBAL6OCN.js +3 -0
  105. package/build/js/chunks/chunk-LFPKKGQH.js +7 -0
  106. package/build/js/chunks/chunk-LKZBVQXD.js +3 -0
  107. package/build/js/chunks/chunk-MUX2WWWH.js +5 -0
  108. package/build/js/chunks/chunk-MVDPXLVX.js +3 -0
  109. package/build/js/chunks/chunk-NDT5RS4B.js +224 -0
  110. package/build/js/chunks/chunk-NH3EDXZZ.js +3 -0
  111. package/build/js/chunks/chunk-NK2XCY5M.js +142 -0
  112. package/build/js/chunks/chunk-OHSTP7TM.js +3 -0
  113. package/build/js/chunks/chunk-OON6VEAR.js +5 -0
  114. package/build/js/chunks/chunk-OPL5NVVM.js +5 -0
  115. package/build/js/chunks/chunk-OTZPCIBD.js +6 -0
  116. package/build/js/chunks/chunk-OXLBBRZT.js +18 -0
  117. package/build/js/chunks/chunk-PE6EDL2S.js +7 -0
  118. package/build/js/chunks/chunk-POONUNDO.js +3 -0
  119. package/build/js/chunks/chunk-PTJJ3JDE.js +7 -0
  120. package/build/js/chunks/chunk-PVBCYBUX.js +1 -0
  121. package/build/js/chunks/chunk-QCD3RIT4.js +3 -0
  122. package/build/js/chunks/chunk-QHNNJFNX.js +5 -0
  123. package/build/js/chunks/chunk-QKP2VQEV.js +3 -0
  124. package/build/js/chunks/chunk-QPNMXE7H.js +23 -0
  125. package/build/js/chunks/chunk-QT54I6KA.js +3 -0
  126. package/build/js/chunks/chunk-R2D7ULOM.js +6 -0
  127. package/build/js/chunks/chunk-SJ4RDJQU.js +6 -0
  128. package/build/js/chunks/chunk-SZUPDKV5.js +3 -0
  129. package/build/js/chunks/chunk-T2Y2C76P.js +3 -0
  130. package/build/js/chunks/chunk-TBCQMBEE.js +6 -0
  131. package/build/js/chunks/chunk-TBXQSBKX.js +7 -0
  132. package/build/js/chunks/chunk-TXVV2KVE.js +1 -0
  133. package/build/js/chunks/chunk-URV3CVLG.js +7 -0
  134. package/build/js/chunks/chunk-VI6FIL4E.js +26 -0
  135. package/build/js/chunks/chunk-VTHL2LZD.js +7 -0
  136. package/build/js/chunks/chunk-VWY7QHPJ.js +21 -0
  137. package/build/js/chunks/chunk-W3YHPFLY.js +6 -0
  138. package/build/js/chunks/chunk-W7TZ36EI.js +5 -0
  139. package/build/js/chunks/chunk-WBSINSMA.js +21 -0
  140. package/build/js/chunks/chunk-WIIZ53ZJ.js +27 -0
  141. package/build/js/chunks/chunk-WMUD7V77.js +3 -0
  142. package/build/js/chunks/chunk-WMVYFKGM.js +3 -0
  143. package/build/js/chunks/chunk-WPSMXGDG.js +5 -0
  144. package/build/js/chunks/chunk-WTBGDD52.js +8 -0
  145. package/build/js/chunks/chunk-X2KFZW3W.js +7 -0
  146. package/build/js/chunks/chunk-X2U6LCRU.js +11 -0
  147. package/build/js/chunks/chunk-X5RHQLWP.js +10 -0
  148. package/build/js/chunks/chunk-XCZGCZ5K.js +8 -0
  149. package/build/js/chunks/chunk-XFKSWDGT.js +6 -0
  150. package/build/js/chunks/chunk-XGYKHOFE.js +6 -0
  151. package/build/js/chunks/chunk-XM2UJIDT.js +6 -0
  152. package/build/js/chunks/chunk-Y5ZY6264.js +3 -0
  153. package/build/js/chunks/chunk-Y6DC25EF.js +3 -0
  154. package/build/js/chunks/chunk-YBD5JYCX.js +3 -0
  155. package/build/js/chunks/chunk-YQVJWYOP.js +3 -0
  156. package/build/js/chunks/chunk-ZDBP2TPZ.js +40 -0
  157. package/build/js/chunks/chunk-ZDTUEAKJ.js +17 -0
  158. package/build/js/chunks/chunk-ZLYZOIU3.js +3 -0
  159. package/build/js/find/BarcodeFind.d.ts +60 -0
  160. package/build/js/find/BarcodeFind.js +1 -0
  161. package/build/js/find/BarcodeFindBasicOverlay.d.ts +58 -0
  162. package/build/js/find/BarcodeFindBasicOverlay.js +1 -0
  163. package/build/js/find/BarcodeFindFeedback.d.ts +17 -0
  164. package/build/js/find/BarcodeFindFeedback.js +1 -0
  165. package/build/js/find/BarcodeFindItem.d.ts +35 -0
  166. package/build/js/find/BarcodeFindItem.js +1 -0
  167. package/build/js/find/BarcodeFindPresenter.d.ts +55 -0
  168. package/build/js/find/BarcodeFindPresenter.js +1 -0
  169. package/build/js/find/BarcodeFindSession.d.ts +35 -0
  170. package/build/js/find/BarcodeFindSession.js +1 -0
  171. package/build/js/find/BarcodeFindSettings.d.ts +25 -0
  172. package/build/js/find/BarcodeFindSettings.js +1 -0
  173. package/build/js/find/BarcodeFindTransformer.d.ts +5 -0
  174. package/build/js/find/BarcodeFindTransformer.js +1 -0
  175. package/build/js/find/BarcodeFindView.d.ts +98 -0
  176. package/build/js/find/BarcodeFindView.js +1 -0
  177. package/build/js/find/BarcodeFindViewSettings.d.ts +20 -0
  178. package/build/js/find/BarcodeFindViewSettings.js +1 -0
  179. package/build/js/find/BarcodeFindViewUiListener.d.ts +7 -0
  180. package/build/js/find/BarcodeFindViewUiListener.js +1 -0
  181. package/build/js/find/index.d.ts +17 -0
  182. package/build/js/find/index.js +5 -0
  183. package/build/js/find/ui/atoms/ArrowDownSvgIcon.d.ts +15 -0
  184. package/build/js/find/ui/atoms/ArrowDownSvgIcon.js +1 -0
  185. package/build/js/find/ui/atoms/Card.d.ts +18 -0
  186. package/build/js/find/ui/atoms/Card.js +1 -0
  187. package/build/js/find/ui/atoms/CardList.d.ts +56 -0
  188. package/build/js/find/ui/atoms/CardList.js +1 -0
  189. package/build/js/find/ui/atoms/CardListButton.d.ts +16 -0
  190. package/build/js/find/ui/atoms/CardListButton.js +1 -0
  191. package/build/js/find/ui/atoms/Dot.d.ts +34 -0
  192. package/build/js/find/ui/atoms/Dot.js +1 -0
  193. package/build/js/find/ui/atoms/ExitSvgIcon.d.ts +16 -0
  194. package/build/js/find/ui/atoms/ExitSvgIcon.js +1 -0
  195. package/build/js/find/ui/atoms/ItemFoundSvgIcon.d.ts +15 -0
  196. package/build/js/find/ui/atoms/ItemFoundSvgIcon.js +1 -0
  197. package/build/js/find/ui/atoms/TorchOffSvgIcon.d.ts +15 -0
  198. package/build/js/find/ui/atoms/TorchOffSvgIcon.js +1 -0
  199. package/build/js/find/ui/atoms/TorchOnSvgIcon.d.ts +15 -0
  200. package/build/js/find/ui/atoms/TorchOnSvgIcon.js +1 -0
  201. package/build/js/find/ui/molecules/CardListContainer.d.ts +41 -0
  202. package/build/js/find/ui/molecules/CardListContainer.js +1 -0
  203. package/build/js/find/ui/molecules/ProgressBarWithLabel.d.ts +26 -0
  204. package/build/js/find/ui/molecules/ProgressBarWithLabel.js +1 -0
  205. package/build/js/find/ui/molecules/TorchIconButton.d.ts +24 -0
  206. package/build/js/find/ui/molecules/TorchIconButton.js +1 -0
  207. package/build/js/find/ui/organisms/FindLayout.d.ts +39 -0
  208. package/build/js/find/ui/organisms/FindLayout.js +1 -0
  209. package/build/js/global.d.d.ts +36 -0
  210. package/build/js/global.d.js +1 -0
  211. package/build/js/index.d.ts +58 -0
  212. package/build/js/index.js +38 -0
  213. package/build/js/moduleLoader.d.ts +8 -0
  214. package/build/js/moduleLoader.js +1 -0
  215. package/build/js/private/sandbox.d.ts +5 -0
  216. package/build/js/private/sandbox.js +1 -0
  217. package/build/js/private/symbols.d.ts +6 -0
  218. package/build/js/private/symbols.js +1 -0
  219. package/build/js/private/utils/trackedBarcodeViewUtils.d.ts +14 -0
  220. package/build/js/private/utils/trackedBarcodeViewUtils.js +1 -0
  221. package/build/js/spark/SparkScan.d.ts +43 -0
  222. package/build/js/spark/SparkScan.js +1 -0
  223. package/build/js/spark/SparkScanAnalyticsManager.d.ts +27 -0
  224. package/build/js/spark/SparkScanAnalyticsManager.js +1 -0
  225. package/build/js/spark/SparkScanBarcodeFeedback.d.ts +50 -0
  226. package/build/js/spark/SparkScanBarcodeFeedback.js +1 -0
  227. package/build/js/spark/SparkScanFeedbackDelegate.d.ts +12 -0
  228. package/build/js/spark/SparkScanFeedbackDelegate.js +1 -0
  229. package/build/js/spark/SparkScanOverlay.d.ts +49 -0
  230. package/build/js/spark/SparkScanOverlay.js +1 -0
  231. package/build/js/spark/SparkScanOverlayStyle.d.ts +5 -0
  232. package/build/js/spark/SparkScanOverlayStyle.js +1 -0
  233. package/build/js/spark/SparkScanPreviewBehavior.d.ts +6 -0
  234. package/build/js/spark/SparkScanPreviewBehavior.js +1 -0
  235. package/build/js/spark/SparkScanScanningBehavior.d.ts +6 -0
  236. package/build/js/spark/SparkScanScanningBehavior.js +1 -0
  237. package/build/js/spark/SparkScanScanningMode.d.ts +36 -0
  238. package/build/js/spark/SparkScanScanningMode.js +1 -0
  239. package/build/js/spark/SparkScanSession.d.ts +17 -0
  240. package/build/js/spark/SparkScanSession.js +1 -0
  241. package/build/js/spark/SparkScanSettings.d.ts +34 -0
  242. package/build/js/spark/SparkScanSettings.js +1 -0
  243. package/build/js/spark/SparkScanTargetAimerViewfinder.d.ts +14 -0
  244. package/build/js/spark/SparkScanTargetAimerViewfinder.js +1 -0
  245. package/build/js/spark/assets/sounds.d.ts +4 -0
  246. package/build/js/spark/assets/sounds.js +1 -0
  247. package/build/js/spark/index.d.ts +31 -0
  248. package/build/js/spark/index.js +12 -0
  249. package/build/js/spark/sounds.d.ts +6 -0
  250. package/build/js/spark/sounds.js +1 -0
  251. package/build/js/spark/ui/SparkScanMiniPreviewSize.d.ts +6 -0
  252. package/build/js/spark/ui/SparkScanMiniPreviewSize.js +1 -0
  253. package/build/js/spark/ui/SparkScanToastSettings.d.ts +32 -0
  254. package/build/js/spark/ui/SparkScanToastSettings.js +1 -0
  255. package/build/js/spark/ui/SparkScanView.d.ts +23 -0
  256. package/build/js/spark/ui/SparkScanView.js +1 -0
  257. package/build/js/spark/ui/SparkScanViewFeedbackManager.d.ts +24 -0
  258. package/build/js/spark/ui/SparkScanViewFeedbackManager.js +1 -0
  259. package/build/js/spark/ui/SparkScanViewHandMode.d.ts +9 -0
  260. package/build/js/spark/ui/SparkScanViewHandMode.js +1 -0
  261. package/build/js/spark/ui/SparkScanViewIcon.d.ts +42 -0
  262. package/build/js/spark/ui/SparkScanViewIcon.js +1 -0
  263. package/build/js/spark/ui/SparkScanViewMiniPreview.d.ts +111 -0
  264. package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -0
  265. package/build/js/spark/ui/SparkScanViewPreferenceManager.d.ts +39 -0
  266. package/build/js/spark/ui/SparkScanViewPreferenceManager.js +1 -0
  267. package/build/js/spark/ui/SparkScanViewPresenter.d.ts +98 -0
  268. package/build/js/spark/ui/SparkScanViewPresenter.js +1 -0
  269. package/build/js/spark/ui/SparkScanViewSettings.d.ts +46 -0
  270. package/build/js/spark/ui/SparkScanViewSettings.js +1 -0
  271. package/build/js/spark/ui/SparkScanViewState.d.ts +9 -0
  272. package/build/js/spark/ui/SparkScanViewState.js +1 -0
  273. package/build/js/spark/ui/SparkScanViewStateManager.d.ts +50 -0
  274. package/build/js/spark/ui/SparkScanViewStateManager.js +1 -0
  275. package/build/js/spark/ui/SparkScanViewToast.d.ts +28 -0
  276. package/build/js/spark/ui/SparkScanViewToast.js +1 -0
  277. package/build/js/spark/ui/SparkScanViewToolbar.d.ts +60 -0
  278. package/build/js/spark/ui/SparkScanViewToolbar.js +1 -0
  279. package/build/js/spark/ui/SparkScanViewTriggerButton.d.ts +45 -0
  280. package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -0
  281. package/build/js/spark/ui/SparkScanViewUiListener.d.ts +23 -0
  282. package/build/js/spark/ui/SparkScanViewUiListener.js +1 -0
  283. package/build/js/spark/ui/SparkScanViewVisualFeedback.d.ts +23 -0
  284. package/build/js/spark/ui/SparkScanViewVisualFeedback.js +1 -0
  285. package/build/js/spark/ui/constants/attributes.d.ts +15 -0
  286. package/build/js/spark/ui/constants/attributes.js +1 -0
  287. package/build/js/spark/ui/constants/colors.d.ts +6 -0
  288. package/build/js/spark/ui/constants/colors.js +1 -0
  289. package/build/js/spark/ui/constants/constants.d.ts +5 -0
  290. package/build/js/spark/ui/constants/constants.js +1 -0
  291. package/build/js/spark/ui/constants/cssVariables.d.ts +13 -0
  292. package/build/js/spark/ui/constants/cssVariables.js +1 -0
  293. package/build/js/spark/ui/constants/events.d.ts +12 -0
  294. package/build/js/spark/ui/constants/events.js +1 -0
  295. package/build/js/spark/ui/constants/tags.d.ts +9 -0
  296. package/build/js/spark/ui/constants/tags.js +1 -0
  297. package/build/js/spark/ui/controllers/DragController.d.ts +36 -0
  298. package/build/js/spark/ui/controllers/DragController.js +1 -0
  299. package/build/js/spark/ui/controllers/LongPressController.d.ts +31 -0
  300. package/build/js/spark/ui/controllers/LongPressController.js +1 -0
  301. package/build/js/spark/ui/index.d.ts +36 -0
  302. package/build/js/spark/ui/index.js +15 -0
  303. package/build/js/spark/ui/utils/didDrag.d.ts +3 -0
  304. package/build/js/spark/ui/utils/didDrag.js +1 -0
  305. package/build/js/spark/ui/utils/html.d.ts +3 -0
  306. package/build/js/spark/ui/utils/html.js +1 -0
  307. package/build/js/translations.d.ts +4 -0
  308. package/build/js/translations.js +1 -0
  309. package/build/js/worker/BarcodeBatchMode.d.ts +48 -0
  310. package/build/js/worker/BarcodeBatchMode.js +1 -0
  311. package/build/js/worker/BarcodeCaptureMode.d.ts +48 -0
  312. package/build/js/worker/BarcodeCaptureMode.js +1 -0
  313. package/build/js/worker/BarcodeCaptureWorkerManager.d.ts +59 -0
  314. package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -0
  315. package/build/js/worker/BarcodeFindMode.d.ts +48 -0
  316. package/build/js/worker/BarcodeFindMode.js +1 -0
  317. package/build/js/worker/PropertyBehaviorSubject.d.ts +17 -0
  318. package/build/js/worker/PropertyBehaviorSubject.js +1 -0
  319. package/build/js/worker/PropertyPushSource.d.ts +16 -0
  320. package/build/js/worker/PropertyPushSource.js +1 -0
  321. package/build/js/worker/SparkScanMode.d.ts +48 -0
  322. package/build/js/worker/SparkScanMode.js +1 -0
  323. package/build/js/worker/WorkerMain.d.ts +56 -0
  324. package/build/js/worker/WorkerMain.js +1 -0
  325. package/build/js/worker/dataCapture.inlineWorker.d.ts +3 -0
  326. package/build/js/worker/dataCapture.inlineWorker.js +5 -0
  327. package/build/js/worker/dataCaptureEngine.d.ts +48 -0
  328. package/build/js/worker/dataCaptureEngine.js +1 -0
  329. package/build/js/worker/dataCaptureWorkerRelated.d.ts +311 -0
  330. package/build/js/worker/dataCaptureWorkerRelated.js +1 -0
  331. package/build/js/worker/index.d.ts +45 -0
  332. package/build/js/worker/index.js +1 -0
  333. package/build/js/worker/inlineWorker.d.d.ts +4 -0
  334. package/build/js/worker/inlineWorker.d.js +1 -0
  335. package/package.json +110 -0
  336. package/sdc-lib/resources/models/barcode_classification_default_model.5ed1ecfaacbd108767a80013d11d9af73b8e1d5e.model +0 -0
  337. package/sdc-lib/resources/models/barcode_localization_default_model.f88251f1bff0c68526d9898ef4c8f3b411c3c59e.model +0 -0
  338. package/sdc-lib/resources/models/barcode_localization_dpm_default_model.acd01c12893d98af3a7e472200dbce4afd57631d.model +0 -0
  339. package/sdc-lib/resources/models/barcode_localization_french_post_default_model.e1d7ffb4d1fb636b1c267d2da0ad6003584e668d.model +0 -0
  340. package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default_model.7852c9b58cc2d253466ca3ea60bbd02ca09533ca.model +0 -0
  341. package/sdc-lib/resources/models/barcode_localization_oned_default_model.058a356e6c57475ec928de2f95440aefa46ed5fe.model +0 -0
  342. package/sdc-lib/resources/models/barcode_localization_twod_default_model.54c8ddfd8620c8b508f4108fcba6529ce45f8440.model +0 -0
  343. package/sdc-lib/resources/models/barcode_localization_upu_enhanced_orange.656bffc22efe3137515d791184b1aa471d439310.model +0 -0
  344. package/sdc-lib/resources/models/eu_dl_localization_model.579be0f8cae6c931b93e199d1afec3b61542474c.model +0 -0
  345. package/sdc-lib/resources/models/id_ocr_model.f5b3ffba2d21fa97fa4945f0bb0c1cff9651c677.model +0 -0
  346. package/sdc-lib/resources/models/invalidated_id_classification_default.1f8f6e0345ece7d50a7126f2e5d15aa6b2e2a9bf.model +0 -0
  347. package/sdc-lib/resources/models/mrz_line_localization_model.98a5b38e889546c69f1d43beeda91071ad132340.model +0 -0
  348. package/sdc-lib/resources/models/mrz_localization_model.87d7e0dacb3845548449cc8ccb78526d93212cff.model +0 -0
  349. package/sdc-lib/resources/models/ocr_mrz_default_model.e0dd4c48916ff4ee266439f87cc68eb1793093c3.model +0 -0
  350. package/sdc-lib/resources/models/uk_dl_code_localization_model.579be0f8cae6c931b93e199d1afec3b61542474c.model +0 -0
  351. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.js +1 -0
  352. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.wasm +0 -0
  353. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.worker.js +1 -0
  354. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.js +1 -0
  355. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.wasm +0 -0
  356. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.worker.js +1 -0
  357. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.js +1 -0
  358. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.wasm +0 -0
  359. package/sdc-lib/scandit-datacapture-sdk-barcode.js +1 -0
  360. package/sdc-lib/scandit-datacapture-sdk-barcode.wasm +0 -0
@@ -0,0 +1,5 @@
1
+ import { HintTextAlignment, HintIcon, HintAnchor, ToastHintStyle } from '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated.js';
2
+
3
+ function m(r){return r.charAt(0).toUpperCase()+r.slice(1)}function u(r){return r}var p=class{constructor(e,t,i){this.barcodeFind=null;this.basicOverlay=null;this.transparentGuidanceHintStyle={backgroundColor:"00000000",cornerRadius:4,fitToText:!1,isAnimatedToView:!1,textAlignment:HintTextAlignment.Center,hintIcon:HintIcon.None,hintAnchor:HintAnchor.AboveViewFinder,hintAnchorOffset:-12,horizontalMargin:0,iconColor:"00000000",lineHeight:-1,maxLines:1,maxWidthFraction:.8,textColor:"ffffffff",textSize:15,textWeight:600};this.customerTransformation=u;this.coreEngine=e,this.Module=t,this.workerFunctions=i;}async forSettings(e){var c;(c=this.barcodeFind)==null||c.delete(),this.barcodeFind=new this.Module.BarcodeFind(this.coreEngine.context,JSON.stringify(e));let t=this.Module.Feedback.extend("Feedback",{emit:()=>{this.listUpdatedFeedback();}}),i=this.Module.Feedback.extend("Feedback",{emit:()=>{this.barcodeFindFeedback();}}),a=this.Module.BarcodeFindTransformer.extend("BarcodeFindTransformer",{transformBarcodeData:s=>this.customerTransformation(s)}),d=this.Module.BarcodeFindListener.extend("BarcodeFindListener",{didUpdateSession:(s,o,n)=>{let h=this.coreEngine.convertToLoadableFrameData(n);this.workerFunctions.postMessage({type:"barcodeFindDidUpdateSession",payload:{session:JSON.parse(o.toJson()),frameData:h}});},onSearchPaused:s=>{let o=[];for(let n=0;n<s.size();n++)o.push(s.get(n));this.workerFunctions.postMessage({type:"barcodeFindSearchPaused",payload:{foundItems:o}});},onSearchStopped:s=>{let o=[];for(let n=0;n<s.size();n++)o.push(s.get(n));this.workerFunctions.postMessage({type:"barcodeFindSearchStopped",payload:{foundItems:o}});},onSearchStarted:()=>{this.workerFunctions.postMessage({type:"barcodeFindSearchStarted",payload:{}});}});this.barcodeFind.setBarcodeFindTransformer(new a),this.barcodeFind.addListener(new d,1),this.barcodeFind.setItemListUpdatedFeedback(new t),this.barcodeFind.setFeedback(new i),this.Module.addBarcodeFindToContext(this.coreEngine.context,this.barcodeFind);}barcodeFindFeedback(){this.workerFunctions.postMessage({type:"barcodeFindFeedback",payload:{}});}start(){var e;(e=this.barcodeFind)==null||e.start();}stop(){var e;(e=this.barcodeFind)==null||e.stop();}pause(){var e;(e=this.barcodeFind)==null||e.pause();}setEnabled(e){var t;(t=this.barcodeFind)==null||t.setEnabled(e);}setItemList(e){var t;(t=this.barcodeFind)==null||t.setItemList(JSON.stringify(e));}async removeMode(){this.barcodeFind!=null&&this.Module.removeBarcodeFindFromContext(this.coreEngine.context,this.barcodeFind);}addBasicOverlay(){var e;(e=this.basicOverlay)==null||e.delete(),this.basicOverlay=null,this.barcodeFind!=null&&(this.basicOverlay=new this.Module.BarcodeFindBasicOverlay(this.barcodeFind)),this.coreEngine.view!=null&&this.basicOverlay!=null&&(this.basicOverlay.setGuidanceHandler(this.createWebFindGuidanceHandler()),this.Module.addBarcodeFindBasicOverlayToView(this.coreEngine.view,this.basicOverlay));}removeBasicOverlay(){this.coreEngine.view!=null&&this.basicOverlay!=null&&this.Module.removeBarcodeFindBasicOverlayFromView(this.coreEngine.view,this.basicOverlay);}async applySettings(e){var t;(t=this.barcodeFind)==null||t.applySettings(JSON.stringify(e));}updateBasicOverlay(e){let t=Object.entries(e).filter(([i,a])=>i!=="type");for(let[i,a]of t){let d=`set${m(i)}`;this.basicOverlay!=null&&typeof this.basicOverlay[d]=="function"&&a!=null&&this.basicOverlay[d](a);}}setTransformerFunction(e){this.customerTransformation=e!=null?e:u;}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}listUpdatedFeedback(){this.workerFunctions.postMessage({type:"barcodeFindListUpdatedFeedback",payload:{}});}setToast(e,t){let i=this.coreEngine.hintPresenterV2;e?i==null||i.showToast(JSON.stringify(t)):i==null||i.hideToast(t.tag);}setGuidance(e,t,i){let a={tag:i,text:t,hintStyle:this.transparentGuidanceHintStyle};this.workerFunctions.postMessage({type:e?"showGuidance":"hideGuidance",payload:a});}createWebFindGuidanceHandler(){let e=this.Module.BarcodeFindGuidanceHandler.extend("BarcodeFindGuidanceHandler",{setInitialGuidance:(t,i)=>{this.setGuidance(t,i,"InitialGuidance");},setMoveCloserGuidance:(t,i)=>{this.setGuidance(!1,i,"InitialGuidance"),this.setGuidance(t,i,"MoveCloserGuidance");},setAllItemsFound:(t,i)=>{let a={text:i,toastHintStyle:ToastHintStyle.Success,tag:"AllItemsFound"};this.setToast(t,a);},setTapShutterToPause:(t,i)=>{this.setGuidance(!1,i,"InitialGuidance"),this.setGuidance(t,i,"TapShutterToPause");},setTapShutterToResume:(t,i)=>{this.setGuidance(!1,i,"InitialGuidance"),this.setGuidance(t,i,"TapShutterResume");},setItemListUpdated:(t,i)=>{let a={text:i,toastHintStyle:ToastHintStyle.Info,tag:"ItemListUpdated"};this.setToast(t,a);}});return new e}};
4
+
5
+ export { p as a };
@@ -0,0 +1,5 @@
1
+ import { a } from './chunk-QKP2VQEV.js';
2
+
3
+ var t=(o=>(o.TorchState="torch_state",o.ScanningMode="scanning_mode",o.SoundEnabled="sound_enabled",o.HapticEnabled="haptic_enabled",o.HandMode="hand_mode",o.SessionStopReason="session_stop_reason",o.CameraPosition="camera_position",o))(t||{}),r={torch_state:new a("torch_state"),scanning_mode:new a("scanning_mode"),sound_enabled:new a("sound_enabled"),haptic_enabled:new a("haptic_enabled"),hand_mode:new a("hand_mode"),session_stop_reason:new a("session_stop_reason"),camera_position:new a("camera_position")},n=class{getBehaviorSubject(a){return r[a]}};
4
+
5
+ export { t as a, n as b };
@@ -0,0 +1,11 @@
1
+ import { Color } from '@scandit/web-datacapture-core';
2
+ import { primaryTeal100, gray900 } from '@scandit/web-datacapture-core/build/js/private/ui/colors.js';
3
+ import { ScanditHTMLElement, html, defineCustomElements, css } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
4
+
5
+ var i=class i extends ScanditHTMLElement{constructor(){super();let t=this.attachShadow({mode:"open"});t.innerHTML=html`
6
+ <div class="dot">
7
+ <div class="inner-dot"></div>
8
+ </div>
9
+ `,t.append(i.createStyleElement().cloneNode(!0));}set size(t){this.render({propChanged:"size",value:String(t)});}get size(){return Number(this.getAttribute("size"))}get variant(){return this.getAttribute("variant")}set variant(t){this.render({propChanged:"variant",value:t});}get pulse(){return !!this.getAttribute("pulse")}set pulse(t){this.render({propChanged:"pulse",value:t.toString()});}static create(){return i.createWithColors(primaryTeal100,Color.fromHex("#ffff"))}static createWithColors(t,r){let e=document.createElement(i.tag);return e.setPrimaryColor(t),e.setSecondaryColor(r),e}static register(){defineCustomElements({[i.tag]:i});}static createStyleElement(){return css`:host{display:block;--size:14px}.dot{--primary:#${primaryTeal100.toJSON()};--secondary:#${primaryTeal100.toJSON()};--primary-no-opacity:#${primaryTeal100.withAlpha(0).toJSON()};background-color:#fff;border-radius:50%;box-shadow:0 1px 2px 0 #${gray900.withAlpha(.3).toJSON()};height:var(--size);position:relative;width:var(--size)}.dot.pulse{animation:pulse 2s infinite}.dot.target{height:calc(var(--size) + var(--size)*1/1.285);width:calc(var(--size) + var(--size)*1/1.285)}.dot.target .inner-dot{background-color:var(--primary);height:calc(var(--size) + var(--size)*1/3);width:calc(var(--size) + var(--size)*1/3)}.inner-dot{background-color:var(--secondary);border-radius:50%;height:var(--size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--size)}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--primary)}70%{box-shadow:0 0 0 var(--size) var(--primary-no-opacity)}to{box-shadow:0 0 0 0 var(--primary-no-opacity)}}`}connectedCallback(){}setPrimaryColor(t){var e;let r=(e=this.shadowRoot)==null?void 0:e.querySelector(".dot");r&&(r.style.setProperty("--primary",`#${t.toJSON()}`),r.style.setProperty("--primary-no-opacity",`#${t.withAlpha(0).toJSON()}`));}setSecondaryColor(t){var e;let r=(e=this.shadowRoot)==null?void 0:e.querySelector(".dot");r&&r.style.setProperty("--secondary",`#${t.toJSON()}`);}render({propChanged:t,value:r}){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector(".dot");switch(t){case"size":{e==null||e.style.setProperty("--size",`${r}px`);break}case"variant":{e==null||e.classList.toggle("target",r==="target");break}case"pulse":{e==null||e.classList.toggle("pulse",r==="true"||this.hasAttribute("pulse"));break}}}attributeChangedCallback(t,r,e){this.render({propChanged:t,value:e});}};i.tag="scandit-find-dot",i.observedAttributes=["size","variant","pulse"];var a=i;a.register();
10
+
11
+ export { a };
@@ -0,0 +1,46 @@
1
+ import { e } from './chunk-YBD5JYCX.js';
2
+ import { ScanditHTMLElement, defineCustomElements, Timeout, html } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
3
+
4
+ var a=class extends ScanditHTMLElement{get type(){var e;return (e=this.getAttribute("type"))!=null?e:"info"}set type(e){this.setAttribute("type",e);}get message(){var e;return (e=this.getAttribute("message"))!=null?e:""}set message(e){this.setAttribute("message",e);}get visible(){return this.hasAttribute("visible")}set visible(e){this.toggleAttribute("visible",e);}static create(){return defineCustomElements({[e]:this}),document.createElement(e)}show(e,i,s){this.hide(),this.type=e,this.message=i,this.visible=!0,this.timeout=new Timeout(s,this.hide.bind(this)),this.timeout.start();}hide(){var e;(e=this.timeout)==null||e.stop(),this.visible=!1;}render(){this.innerHTML=html`
5
+ <div class="${e} ${e}--${this.type}">${this.message}</div>
6
+
7
+ <style>
8
+ ${e} {
9
+ width: fit-content;
10
+ min-width: calc(100% - 32px);
11
+ opacity: 0;
12
+ transition: 0.3s ease;
13
+ user-select: none;
14
+ pointer-events: none;
15
+ }
16
+
17
+ ${e}[visible] {
18
+ opacity: 1;
19
+ }
20
+
21
+ .${e} {
22
+ width: fit-content;
23
+ padding: 8px 12px;
24
+ margin: 0 auto;
25
+ border-radius: 4px;
26
+ font-family: sans-serif;
27
+ font-size: 14px;
28
+ font-weight: 500;
29
+ }
30
+
31
+ .${e}--${"info"} {
32
+ background: rgba(255, 255, 255, 1);
33
+ }
34
+
35
+ .${e}--${"warning"} {
36
+ background: rgba(251, 192, 44, 1);
37
+ }
38
+
39
+ .${e}--${"error"} {
40
+ background: rgba(250, 68, 70, 1);
41
+ color: white;
42
+ }
43
+ </style>
44
+ `;}connectedCallback(){this.render();}disconnectedCallback(){this.hide();}attributeChangedCallback(e,i,s){s!==i&&this.render();}};a.observedAttributes=["type","message"];
45
+
46
+ export { a };
@@ -0,0 +1,5 @@
1
+ import { a } from './chunk-7SWSAHI5.js';
2
+
3
+ var o=class t{constructor(e){if(e!=null)return t.all[t.all.findIndex(i=>i.identifier===e)]}static get all(){return this.defaults().SymbologyDescriptions}get activeSymbolCountRange(){return this._activeSymbolCountRange}get defaultSymbolCountRange(){return this._defaultSymbolCountRange}get identifier(){return this._identifier}get isAvailable(){return this._isAvailable}get isColorInvertible(){return this._isColorInvertible}get readableName(){return this._readableName}get supportedExtensions(){return [...this._supportedExtensions]}get symbology(){return this.identifier}static forIdentifier(e){return t.all.findIndex(r=>r.identifier===e)===-1?null:new t(e)}static fromJSON(e){let i=new t;return i._identifier=e.identifier,i._readableName=e.readableName,i._isAvailable=e.isAvailable,i._isColorInvertible=e.isColorInvertible,i._activeSymbolCountRange=a.fromJSON(e.activeSymbolCountRange),i._defaultSymbolCountRange=a.fromJSON(e.defaultSymbolCountRange),i._supportedExtensions=new Set(e.supportedExtensions),i}};
4
+
5
+ export { o as a };
@@ -0,0 +1,4 @@
1
+ function r(t){return (n=>/^[$A-Z_a-z][\w$]*\s*\(.*\)\s*\{/.test(n)&&!n.startsWith("function"))(t)?`function ${t}`:t}var e=["fetch","XMLHttpRequest","eval","Function","self","globalThis","Module","importScripts","this","console","window","document","import","Worker","ServiceWorker"];function s(t){return e.map(n=>new RegExp(`\\b${n}\\b`,"g")).some(n=>n.test(t))}function l(t){if(t==null)return null;let o=r(t);if(s(o))throw new Error("Function should be pure. Shouldn't introduce side effects, or rely on global scope");let n=`'use strict';
2
+ return (${o});`;try{return new Function(n)()}catch(i){return null}}
3
+
4
+ export { l as a };
@@ -0,0 +1,3 @@
1
+ var l=(i=>(i.Initial="Initial",i.Idle="idle",i.Active="active",i.Inactive="inactive",i.Error="error",i))(l||{});
2
+
3
+ export { l as a };
@@ -0,0 +1,3 @@
1
+ var s=class o{get enabledExtensions(){return [...this.extensions]}get symbology(){return this._symbology}static fromJSON(e){let t=new o;return t.extensions=new Set(e.extensions),t.isEnabled=e.enabled,t.isColorInvertedEnabled=e.colorInvertedEnabled,t.checksums=new Set(e.checksums),t.activeSymbolCounts=e.activeSymbolCounts,t}setExtensionEnabled(e,t){t?this.extensions.add(e):this.extensions.delete(e);}toJSONObject(){return {activeSymbolCounts:[...this.activeSymbolCounts],checksums:[...this.checksums],colorInvertedEnabled:this.isColorInvertedEnabled,enabled:this.isEnabled,extensions:[...this.extensions]}}};
2
+
3
+ export { s as a };
@@ -0,0 +1,7 @@
1
+ import { a } from './chunk-W3YHPFLY.js';
2
+ import { b } from './chunk-XCZGCZ5K.js';
3
+ import { Brush } from '@scandit/web-datacapture-core';
4
+
5
+ var h=(a=>(a.Frame="frame",a.Dot="dot",a))(h||{}),o=class s{constructor(){this.type="barcodeTrackingBasic";this._style=b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle;this._shouldShowScanAreaGuides=!1;this._brushesForBarcodes=new Map;}get style(){return this._style}get listener(){return this._listener}set listener(e){this._listener=e;}get brush(){return this._brush}static async withBarcodeBatch(e){return s.withBarcodeBatchForView(e,null)}static async withBarcodeBatchForView(e,a){return this.withBarcodeBatchForViewWithStyle(e,a,b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle)}static async withBarcodeBatchForViewWithStyle(e,a$1,c){let r=new s;return r.barcodeBatch=e,r._style=c,r._brush=new Brush(b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.fillColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeWidth),a$1&&await a$1.addOverlay(r),r.privateListener=new a(r),e.addPrivateListener(r.privateListener),r}async setBrush(e){this._brush=e,await this.barcodeBatch.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}async setShouldShowScanAreaGuides(e){this._shouldShowScanAreaGuides=e,await this.barcodeBatch.notifyContext();}async setBrushForTrackedBarcode(e,a){this._brushesForBarcodes.set(a.identifier,e),await this.barcodeBatch.notifyContext();}async clearTrackedBarcodeBrushes(){this._brushesForBarcodes.clear(),await this.barcodeBatch.notifyContext();}toJSONObject(){return {type:this.type,brush:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,style:this._style,brushesForBarcodes:[...this._brushesForBarcodes.entries()].reduce((e,[a,c])=>(e[a]=c.toJSONObject(),e),{})}}};
6
+
7
+ export { h as a, o as b };
@@ -0,0 +1,3 @@
1
+ var n={};
2
+
3
+ export { n as a };
@@ -0,0 +1,5 @@
1
+ import { Quadrilateral } from '@scandit/web-datacapture-core';
2
+
3
+ var r=class t{get frameID(){return this._frameID}get location(){return this._location}static fromJSON(e){let a=new t;return a._location=Quadrilateral.fromJSON(e.location),a._frameID=e.frameId,a}toJSONObject(){return {frameId:this.frameID,location:this.location.toJSONObject()}}};
4
+
5
+ export { r as a };
@@ -0,0 +1,3 @@
1
+ var u=(d=>(d.Regular="regular",d.Expanded="expanded",d))(u||{});
2
+
3
+ export { u as a };
@@ -0,0 +1,224 @@
1
+ import { a as a$3 } from './chunk-K4MHNZXA.js';
2
+ import { a as a$4 } from './chunk-6VT7IT5G.js';
3
+ import { b, a as a$6 } from './chunk-FJ4SOETD.js';
4
+ import { b as b$1 } from './chunk-5DP5VNWQ.js';
5
+ import { a as a$5, b as b$3 } from './chunk-OPL5NVVM.js';
6
+ import { g as g$1 } from './chunk-3A6GSH7S.js';
7
+ import { a as a$2 } from './chunk-DTO5ICFV.js';
8
+ import { j, i, f as f$1, a, g, m } from './chunk-Y6DC25EF.js';
9
+ import { b as b$2, a as a$1, e, c } from './chunk-YBD5JYCX.js';
10
+ import { Point } from '@scandit/web-datacapture-core';
11
+ import { ScanditHTMLElement, defineCustomElements, html, Timeout } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
12
+
13
+ var V=(n=>(n.ResizeButton="resizeButton",n.ZoomButton="zoomButton",n.TorchButton="torchButton",n.CloseButton="closeButton",n))(V||{}),M=1200,f=class 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.dragController=new b(this);this.longPressController=new b$1(this);}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t);}get size(){return this.expanded?"expanded":"regular"}set size(t){this.toggleAttribute("expanded",t==="expanded");let i=this.getNextTranslate();this.dragController.translateTo(i,!1).then(async()=>this.dragController.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$1](){return this.hasAttribute(f$1)}set[f$1](t){this.toggleAttribute(f$1,t);}get[m](){return this.hasAttribute(m)}set[m](t){this.toggleAttribute(m,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$2]:this,[a$1]:a$2,[e]:a$3,[c]:a$4}),document.createElement(b$2)}showToast(t,i,n){this.toast.show(t,i,n);}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=!1;}catch(t){}}cancelFadeOut(){var t;(t=this.replayFadeOutTimeout)==null||t.stop(),this.fadeOutAnimation.cancel();}async rewindAnimation(){var t,i;(((t=this.replayFadeOutTimeout)==null?void 0:t.running)===!0||this.fadeOutAnimation.playState!=="idle")&&(this.cancelFadeOut(),(i=this.replayFadeOutTimeout)==null||i.start());}translateTo(t){this.dragController.translateTo(t,!1);}render(){var t,i$1,n,u,c$1,v,B;this.innerHTML=html`
14
+ <spark-scan-view-toast></spark-scan-view-toast>
15
+ <div id="host"></div>
16
+ <div id="controls">
17
+ <div id="button-container-list">
18
+ <div class="button-container">
19
+ <button id="torchButton" class="${b$2}__button">
20
+ <spark-scan-view-icon icon="torchOff" fill="white" size="9"></spark-scan-view-icon>
21
+ </button>
22
+ <button id="closeButton" class="${b$2}__button">
23
+ <spark-scan-view-icon icon="close" fill="white" size="9"></spark-scan-view-icon>
24
+ </button>
25
+ </div>
26
+ <div class="button-container">
27
+ <button id="resizeButton" class="${b$2}__button">
28
+ <spark-scan-view-icon icon="expand" fill="white" size="14"></spark-scan-view-icon>
29
+ </button>
30
+ <button id="zoomButton" class="${b$2}__button">
31
+ ${this[a]}x
32
+ </button>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ <spark-scan-view-toolbar></spark-scan-view-toolbar>
37
+ <div id="overlay"></div>
38
+
39
+ <style>
40
+ ${b$2} {
41
+ position: fixed;
42
+ top: 0;
43
+ left: 0;
44
+ display: none;
45
+ background: black;
46
+ border-radius: 16px;
47
+ filter: drop-shadow(0px 2px 6px #${a$5.toJSON()})
48
+ drop-shadow(0px 1px 2px #${b$3.toJSON()});
49
+ transition: filter 0.3s ease;
50
+ z-index: 100;
51
+ }
52
+
53
+ ${b$2},
54
+ ${b$2} #overlay {
55
+ width: 50dvw;
56
+ height: 50dvw;
57
+ min-width: 192px;
58
+ min-height: 192px;
59
+ max-width: min(250px, 50dvw);
60
+ max-height: min(250px, 50dvw);
61
+ }
62
+
63
+ @media (orientation: landscape) {
64
+ ${b$2},
65
+ ${b$2} #overlay {
66
+ width: 50dvh;
67
+ height: 50dvh;
68
+ max-width: min(250px, 50dvh);
69
+ max-height: min(250px, 50dvh);
70
+ }
71
+ }
72
+
73
+ @media screen (min-width: 768px) and (orientation: portrait) {
74
+ ${b$2},
75
+ ${b$2} #overlay {
76
+ max-width: min(375px, 50dvw);
77
+ max-height: min(375px, 50dvw);
78
+ }
79
+ }
80
+
81
+ @media screen (min-width: 768px) and (orientation: landscape) {
82
+ ${b$2},
83
+ ${b$2} #overlay {
84
+ max-width: min(375px, 50dvh);
85
+ max-height: min(375px, 50dvh);
86
+ }
87
+ }
88
+
89
+ ${b$2}[visible] {
90
+ display: flex;
91
+ flex-flow: column;
92
+ }
93
+
94
+ ${b$2}[expanded],
95
+ ${b$2}[expanded] #overlay {
96
+ width: calc(100dvw - ${32}px);
97
+ height: calc(50dvh - ${32}px);
98
+ max-width: min(400px, calc(100dvw - ${32}px));
99
+ max-height: min(400px, calc(50dvh - ${32}px));
100
+ }
101
+
102
+ ${b$2}[pressed] {
103
+ filter: drop-shadow(0px 4px 4px #${b$3.toJSON()})
104
+ drop-shadow(0px 8px 12px #${a$5.toJSON()});
105
+ }
106
+
107
+ @media (orientation: landscape) {
108
+ ${b$2}[expanded],
109
+ ${b$2}[expanded] #overlay {
110
+ width: calc(50dvw - ${32}px);
111
+ height: calc(100dvh - ${32}px);
112
+ max-width: min(400px, calc(50dvw - ${32}px));
113
+ max-height: min(400px, calc(100dvh - ${32}px));
114
+ }
115
+ }
116
+
117
+ spark-scan-view-toast {
118
+ position: absolute;
119
+ top: 16px;
120
+ left: 50%;
121
+ transform: translateX(-50%);
122
+ z-index: 20;
123
+ }
124
+
125
+ ${b$2} #host,
126
+ ${b$2} #host * {
127
+ width: 100%;
128
+ border-radius: 16px;
129
+ }
130
+
131
+ ${b$2} #host {
132
+ height: calc(100% - 48px);
133
+ }
134
+
135
+ ${b$2}[cover] #host {
136
+ height: 100%;
137
+ }
138
+
139
+ ${b$2} #controls {
140
+ position: absolute;
141
+ top: 0;
142
+ width: 100%;
143
+ height: 100%;
144
+ display: grid;
145
+ grid-template-rows: auto max-content;
146
+ box-sizing: border-box;
147
+ }
148
+
149
+ ${b$2} #button-container-list {
150
+ width: 100%;
151
+ height: calc(100% - 48px);
152
+ display: flex;
153
+ flex-flow: column;
154
+ justify-content: space-between;
155
+ }
156
+
157
+ ${b$2}[cover] #button-container-list {
158
+ height: 100%;
159
+ }
160
+
161
+ ${b$2} .button-container {
162
+ padding: 12px;
163
+ display: flex;
164
+ justify-content: flex-end;
165
+ align-items: center;
166
+ }
167
+
168
+ ${b$2}[${f$1}] .button-container:first-of-type,
169
+ ${b$2}[${j}] .button-container:nth-of-type(2) {
170
+ justify-content: space-between;
171
+ }
172
+
173
+ .${b$2}__button {
174
+ display: flex;
175
+ justify-content: center;
176
+ align-items: center;
177
+ width: 24px;
178
+ height: 24px;
179
+ border: none;
180
+ background: rgba(18, 22, 25, 0.5);
181
+ color: white;
182
+ font-family: Arial, Helvetica, sans-serif;
183
+ font-size: 14px;
184
+ font-weight: 500;
185
+ border-radius: 50%;
186
+ }
187
+
188
+ ${b$2} #torchButton,
189
+ ${b$2} #closeButton,
190
+ ${b$2} #resizeButton,
191
+ ${b$2} #zoomButton {
192
+ display: none;
193
+ }
194
+
195
+ ${b$2}[${f$1}] #torchButton,
196
+ ${b$2}[${j}] #resizeButton {
197
+ display: flex;
198
+ }
199
+
200
+ ${b$2}[${m}] #closeButton,
201
+ ${b$2}[${i}] #zoomButton {
202
+ display: flex;
203
+ align-self: end;
204
+ }
205
+
206
+ ${b$2} #overlay {
207
+ position: fixed;
208
+ z-index: 10;
209
+ top: 0;
210
+ left: 0;
211
+ background: black;
212
+ border-radius: 16px;
213
+ opacity: 0;
214
+ transition: opacity 0.3s ease;
215
+ pointer-events: none;
216
+ }
217
+
218
+ ${b$2}[darkened] #overlay {
219
+ opacity: 0.3;
220
+ }
221
+ </style>
222
+ `,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=(i$1=this.resizeButton)==null?void 0:i$1.querySelector("spark-scan-view-icon"),this.zoomButton=this.querySelector("#zoomButton"),(n=this.zoomButton)==null||n.addEventListener("pointerup",this.zoomButtonTapListener),this.torchButton=this.querySelector("#torchButton"),(u=this.torchButton)==null||u.addEventListener("pointerup",this.torchButtonTapListener),this.torchButtonIcon=(c$1=this.torchButton)==null?void 0:c$1.querySelector("spark-scan-view-icon"),this.closeButton=this.querySelector("#closeButton"),(v=this.closeButton)==null||v.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$1,{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$1,{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$1,{detail:{tapped:"torchButton",enabled:this[g]}}));}onCloseButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(g$1,{detail:{tapped:"closeButton"}}));}onPointerDown(){this.dragController.draggable=!1,this.rewindAnimation();}onLongPressStart(){this.dragController.draggable=!0,this.pressed=!0;}onLongPressEnd(){this.pressed=!1;}onDragEnd(t){t instanceof a$6&&(this.lastKnownTranslate=t.point);}onToolbarVisibilityChange(){this.cover=!this.toolbar||this.toolbar.hidden;}connectedCallback(){var t;this.replayFadeOutTimeout=new Timeout(M,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&&((t=this.toolbar)!=null&&t.firstElementChild)&&(this.longPressController.elementsAllowedToTriggerLongPressEvents.add(this.buttonContainerList),this.longPressController.elementsAllowedToTriggerLongPressEvents.add(this.toolbar.firstElementChild)),this.dragController.margin=new Point(16,16);}disconnectedCallback(){var t,i,n,u,c,v;(t=this.resizeButton)==null||t.removeEventListener("pointerup",this.resizeButtonTapListener),(i=this.zoomButton)==null||i.removeEventListener("pointerup",this.zoomButtonTapListener),(n=this.torchButton)==null||n.removeEventListener("pointerup",this.torchButtonTapListener),(u=this.closeButton)==null||u.removeEventListener("pointerup",this.closeButtonTapListener),(c=this.toolbar)==null||c.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(),(v=this.replayFadeOutTimeout)==null||v.stop(),this.dragController.disconnect(),this.longPressController.disconnect();}getNextTranslate(){var i;if(this.size==="regular")return (i=this.lastKnownTranslate)!=null?i:this.dragController.translate;this.lastKnownTranslate=this.dragController.translate;let t=this.dragController.translate;return (this.orientation==="portrait-primary"||this.orientation==="portrait-secondary")&&this.dragController.translate.x>16&&(t=new Point(16,t.y)),(this.orientation==="landscape-primary"||this.orientation==="landscape-secondary")&&this.dragController.translate.x>window.innerWidth-this.clientWidth-16&&(t=new Point(window.innerWidth-this.clientWidth-16,t.y)),this.dragController.translate.y>window.innerHeight-this.clientHeight-16&&(t=new Point(t.x,window.innerHeight-this.clientHeight-16)),t}};f.observedAttributes=[j,i,f$1];
223
+
224
+ export { V as a, f as b };
@@ -0,0 +1,3 @@
1
+ var m=(a=>(a.Manual="manual",a.Smart="smart",a))(m||{});
2
+
3
+ export { m as a };
@@ -0,0 +1,142 @@
1
+ import { a } from './chunk-OHSTP7TM.js';
2
+ import { b as b$1 } from './chunk-FJ4SOETD.js';
3
+ import { b as b$2 } from './chunk-5DP5VNWQ.js';
4
+ import { a as a$3 } from './chunk-T2Y2C76P.js';
5
+ import { a as a$2, b as b$3 } from './chunk-OPL5NVVM.js';
6
+ import { e, f as f$1, a as a$1, b as b$4, d, c } from './chunk-DVHTYKDX.js';
7
+ import { f } from './chunk-YBD5JYCX.js';
8
+ import { Point } from '@scandit/web-datacapture-core';
9
+ import { ScanditHTMLElement, defineCustomElements } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
10
+
11
+ var b=class C 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]:C}),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();}translateTo(t){this._dragController.translateTo(t,!1);}setImage(t){var s;let r=this.querySelector("div");(s=r.firstElementChild)==null||s.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`
12
+ <div>
13
+ <div class="pulse"></div>
14
+ <svg width="49" height="26" viewBox="0 0 49 26" fill="none" xmlns="http://www.w3.org/2000/svg">
15
+ <rect
16
+ x="7.57422"
17
+ y="-0.00390625"
18
+ width="3.20017"
19
+ height="25.7171"
20
+ rx="0.5"
21
+ fill="white"
22
+ style="fill: var(${f$1})"
23
+ />
24
+ <path
25
+ d="M44.8418 0.496094C44.8418 0.219952 45.0657 -0.00390625 45.3418 -0.00390625H48.001C48.2771 -0.00390625 48.501 0.219951 48.501 0.496094V25.2132C48.501 25.4894 48.2771 25.7132 48.001 25.7132H45.3418C45.0657 25.7132 44.8418 25.4894 44.8418 25.2132V0.496094Z"
26
+ fill="white"
27
+ style="fill: var(${f$1})"
28
+ />
29
+ <path
30
+ d="M33.8271 0.896094C33.8271 0.399038 34.2301 -0.00390625 34.7271 -0.00390625H39.1368C39.6338 -0.00390625 40.0368 0.399038 40.0368 0.896094V24.8132C40.0368 25.3103 39.6338 25.7132 39.1368 25.7132H34.7271C34.2301 25.7132 33.8271 25.3103 33.8271 24.8132V0.896094Z"
31
+ fill="white"
32
+ style="fill: var(${f$1})"
33
+ />
34
+ <path
35
+ d="M16.3154 0.746095C16.3154 0.331881 16.6512 -0.00390625 17.0654 -0.00390625H20.1879C20.6021 -0.00390625 20.9379 0.33188 20.9379 0.746094V24.9632C20.9379 25.3774 20.6021 25.7132 20.1879 25.7132H17.0654C16.6512 25.7132 16.3154 25.3774 16.3154 24.9632V0.746095Z"
36
+ fill="white"
37
+ style="fill: var(${f$1})"
38
+ />
39
+ <path
40
+ d="M0.5 0.246094C0.5 0.108023 0.611929 -0.00390625 0.75 -0.00390625H2.2897C2.42777 -0.00390625 2.5397 0.108023 2.5397 0.246094V25.4632C2.5397 25.6013 2.42777 25.7132 2.2897 25.7132H0.75C0.611929 25.7132 0.5 25.6013 0.5 25.4632V0.246094Z"
41
+ fill="white"
42
+ style="fill: var(${f$1})"
43
+ />
44
+ <rect
45
+ x="25.9688"
46
+ y="-0.00390625"
47
+ width="3.05794"
48
+ height="25.7171"
49
+ rx="0.5"
50
+ fill="white"
51
+ style="fill: var(${f$1})"
52
+ />
53
+ </svg>
54
+ </div>
55
+
56
+ <style>
57
+ ${f} {
58
+ position: fixed;
59
+ top: 0;
60
+ left: 0;
61
+ width: 90px;
62
+ height: 90px;
63
+ display: none;
64
+ background: rgba(0, 0, 0, 0);
65
+ border-radius: 50%;
66
+ z-index: 10;
67
+ }
68
+
69
+ ${f}[expanded] {
70
+ width: 220px;
71
+ height: 220px;
72
+ margin-top: -65px;
73
+ margin-left: -65px;
74
+ }
75
+
76
+ ${f}[visible] {
77
+ display: flex;
78
+ justify-content: center;
79
+ align-items: center;
80
+ }
81
+
82
+ ${f} div {
83
+ position: relative;
84
+ width: 90px;
85
+ height: 90px;
86
+ background: var(${a$1});
87
+ border-radius: 50%;
88
+ filter: drop-shadow(0px 2px 6px #${a$2.toJSON()})
89
+ drop-shadow(0px 1px 2px #${b$3.toJSON()});
90
+ transition: filter 0.3s ease;
91
+ }
92
+
93
+ ${f} div .pulse {
94
+ position: fixed;
95
+ top: 50%;
96
+ left: 50%;
97
+ width: 100%;
98
+ height: 100%;
99
+ background: transparent;
100
+ opacity: 0.3;
101
+ pointer-events: none;
102
+ transform: translate(-50%, -50%);
103
+ z-index: -1;
104
+ }
105
+
106
+ ${f}[pressed] div {
107
+ background: var(${b$4});
108
+ filter: drop-shadow(0px 4px 4px #${a$2.toJSON()})
109
+ drop-shadow(0px 8px 12px #${b$3.toJSON()});
110
+ }
111
+
112
+ ${f}[pressed][expanded] div {
113
+ background: var(${d});
114
+ }
115
+
116
+ ${f}[expanded] div {
117
+ width: 200px;
118
+ height: 200px;
119
+ background: var(${c});
120
+ }
121
+
122
+ ${f} div img,
123
+ ${f} div svg {
124
+ position: absolute;
125
+ top: 50%;
126
+ left: 50%;
127
+ width: 100%;
128
+ height: auto;
129
+ max-width: 48px;
130
+ max-height: 48px;
131
+ transform: translate(-50%, -50%);
132
+ }
133
+
134
+ ${f}[expanded] div img,
135
+ ${f}[expanded] div svg {
136
+ max-width: 64px;
137
+ max-height: 64px;
138
+ }
139
+ </style>
140
+ `}onPointerDown(t){t instanceof PointerEvent&&(this._dragController.draggable=this.minimized,this.expanded&&this.dispatchEvent(new CustomEvent("tap")));}onPointerUp(t){t instanceof PointerEvent&&((!this._dragController.pointerDownEvent||!a$3(this._dragController.pointerDownEvent,t))&&this.minimized&&this.dispatchEvent(new CustomEvent("tap")),this.pressed=!1);}onLongPressStart(){this._dragController.draggable=!0,this.pressed=!0;}};
141
+
142
+ export { b as a };
@@ -0,0 +1,3 @@
1
+ function l(n,...r){let t=document.createElement("template");return t.innerHTML=n.reduce((a,m,c)=>{var e;let o=(e=r.at(c))!=null?e:"";return a+m+String(o)},""),t.content}
2
+
3
+ export { l as a };
@@ -0,0 +1,5 @@
1
+ import { b } from './chunk-XCZGCZ5K.js';
2
+
3
+ var i=class{constructor(){this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>this.symbologies[e].isEnabled)}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,!0);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}toJSONObject(){return {properties:this.properties,symbologies:Object.keys(this.symbologies).reduce((e,o)=>(e[o]=this.symbologies[o].toJSONObject(),e),{})}}};
4
+
5
+ export { i as a };
@@ -0,0 +1,5 @@
1
+ import { gray900 } from '@scandit/web-datacapture-core/build/js/private/ui/colors.js';
2
+
3
+ var t=gray900.withAlpha(.15),h=gray900.withAlpha(.3);
4
+
5
+ export { t as a, h as b };
@@ -0,0 +1,6 @@
1
+ import { c } from './chunk-SZUPDKV5.js';
2
+ import { TorchState } from '@scandit/web-datacapture-core';
3
+
4
+ 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;}};
5
+
6
+ export { t as a };
@@ -0,0 +1,18 @@
1
+ import { html, ScanditHTMLElement, defineCustomElements, css } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
2
+
3
+ var d=html`
4
+ <div id="container" role="listitem">
5
+ <div class="left">
6
+ <div class="rect"></div>
7
+ </div>
8
+ <div class="middle">
9
+ <div class="title overflow-text-mask"></div>
10
+ <div class="subtitle overflow-text-mask"></div>
11
+ </div>
12
+ <div class="right">
13
+ <slot name="right"></slot>
14
+ </div>
15
+ </div>
16
+ `,t=class t extends ScanditHTMLElement{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=d,e.append(t.createStyleElement().cloneNode(!0));}set title(e){var r;let i=(r=this.shadowRoot)==null?void 0:r.querySelector(".title");i!=null&&(i.textContent=e);}set subtitle(e){var r;let i=(r=this.shadowRoot)==null?void 0:r.querySelector(".subtitle");i!=null&&(i.textContent=e);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`:host{backdrop-filter:saturate(180%) blur(20px);background-color:hsla(0,0%,100%,.9);border-radius:.75rem;box-shadow:0 2px 6px 0 rgba(18,22,25,.15);display:block;font-family:SF Pro Text,sans-serif}#container{align-items:center;display:flex;flex-direction:row;gap:.625rem;justify-content:center;max-height:100px;min-height:50px;min-width:200px;padding:1rem}.overflow-text-mask{-webkit-mask-image:linear-gradient(90deg,#000 95%,transparent);mask-image:linear-gradient(90deg,#000 95%,transparent);overflow-x:auto;padding-right:.3rem}#container>div{display:flex;flex:1 1 17.5%;justify-content:center}#container>div.middle{flex:1 1 65%;flex-direction:column;overflow:hidden}#container>div .rect{background:gray;height:50px;width:50px}#container .title{color:#121619;font-size:.938rem;font-weight:600}#container .subtitle{font-size:.75rem;font-weight:400;margin-top:.25rem}`}};t.tag="scandit-find-card";var a=t;a.register();
17
+
18
+ export { a };
@@ -0,0 +1,7 @@
1
+ import { a as a$1 } from './chunk-IEE5MKEA.js';
2
+ import { a } from './chunk-J4VFWBJ7.js';
3
+ import { Quadrilateral } from '@scandit/web-datacapture-core';
4
+
5
+ var l=(t=>(t.EAN13UPCA="ean13Upca",t.UPCE="upce",t.EAN8="ean8",t.Code39="code39",t.Code93="code93",t.Code128="code128",t.Code11="code11",t.Code25="code25",t.Codabar="codabar",t.InterleavedTwoOfFive="interleavedTwoOfFive",t.MSIPlessey="msiPlessey",t.QR="qr",t.DataMatrix="dataMatrix",t.Aztec="aztec",t.MaxiCode="maxicode",t.DotCode="dotcode",t.KIX="kix",t.RM4SCC="rm4scc",t.GS1Databar="databar",t.GS1DatabarExpanded="databarExpanded",t.GS1DatabarLimited="databarLimited",t.PDF417="pdf417",t.MicroPDF417="microPdf417",t.MicroQR="microQr",t.Code32="code32",t.Lapa4SC="lapa4sc",t.IATATwoOfFive="iata2of5",t.MatrixTwoOfFive="matrix2of5",t.USPSIntelligentMail="uspsIntelligentMail",t))(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 a$2=new c;return a$2._symbology=e.symbology,a$2._data=e.data,a$2._rawData=e.rawData,a$2._compositeData=e.compositeData,a$2._compositeRawData=e.compositeRawData,a$2._addOnData=(r=e.addOnData)!=null?r:null,a$2._isGS1DataCarrier=e.isGS1DataCarrier,a$2._compositeFlag=e.compositeFlag,a$2._isColorInverted=e.isColorInverted,a$2._symbolCount=e.symbolCount,a$2._frameID=e.frameId,a$2._encodingRanges=e.encodingRanges.map(o=>a.fromJSON(o)),a$2._location=Quadrilateral.fromJSON(e.location),a$2._structuredAppendData=a$1.fromJSON(e.structuredAppendData),a$2}toJSONObject(){var e,a,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=(a=this.structuredAppendData)==null?void 0:a.toJSONObject())!=null?r:null}}};
6
+
7
+ export { l as a, D as b, m as c, g as d, s as e };
@@ -0,0 +1,3 @@
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()})}};
2
+
3
+ export { i as a };
@@ -0,0 +1,7 @@
1
+ import { a, b as b$1 } from './chunk-E5OIMFVX.js';
2
+ import { b } from './chunk-XCZGCZ5K.js';
3
+ import { Vibration, Feedback, Brush, Color } from '@scandit/web-datacapture-core';
4
+
5
+ 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()}}}};
6
+
7
+ export { r as a, k as b, u as c };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,3 @@
1
+ var n=class{constructor(e){this.storage=e;}get scanningBehavior(){return this.getItem("scanningBehavior")}set scanningBehavior(e){this.setItem("scanningBehavior",e);}get portraitOrientationTriggerButtonTranslateX(){return this.getItem("portraitOrientationTriggerButtonTranslateX")}set portraitOrientationTriggerButtonTranslateX(e){this.setItem("portraitOrientationTriggerButtonTranslateX",e);}get portraitOrientationTriggerButtonTranslateY(){return this.getItem("portraitOrientationTriggerButtonTranslateY")}set portraitOrientationTriggerButtonTranslateY(e){this.setItem("portraitOrientationTriggerButtonTranslateY",e);}get landscapeOrientationTriggerButtonTranslateX(){return this.getItem("landscapeOrientationTriggerButtonTranslateX")}set landscapeOrientationTriggerButtonTranslateX(e){this.setItem("landscapeOrientationTriggerButtonTranslateX",e);}get landscapeOrientationTriggerButtonTranslateY(){return this.getItem("landscapeOrientationTriggerButtonTranslateY")}set landscapeOrientationTriggerButtonTranslateY(e){this.setItem("landscapeOrientationTriggerButtonTranslateY",e);}get portraitOrientationMiniPreviewTranslateX(){return this.getItem("portraitOrientationMiniPreviewTranslateX")}set portraitOrientationMiniPreviewTranslateX(e){this.setItem("portraitOrientationMiniPreviewTranslateX",e);}get portraitOrientationMiniPreviewTranslateY(){return this.getItem("portraitOrientationMiniPreviewTranslateY")}set portraitOrientationMiniPreviewTranslateY(e){this.setItem("portraitOrientationMiniPreviewTranslateY",e);}get landscapeOrientationMiniPreviewTranslateX(){return this.getItem("landscapeOrientationMiniPreviewTranslateX")}set landscapeOrientationMiniPreviewTranslateX(e){this.setItem("landscapeOrientationMiniPreviewTranslateX",e);}get landscapeOrientationMiniPreviewTranslateY(){return this.getItem("landscapeOrientationMiniPreviewTranslateY")}set landscapeOrientationMiniPreviewTranslateY(e){this.setItem("landscapeOrientationMiniPreviewTranslateY",e);}getItem(e){let t=this.storage.getItem(e);if(t!=null)return JSON.parse(t)}setItem(e,t){this.storage.setItem(e,JSON.stringify(t));}};
2
+
3
+ export { n as a };
@@ -0,0 +1,5 @@
1
+ import { e } from './chunk-PE6EDL2S.js';
2
+
3
+ var n=class o{static fromJSON(e$1){let r=new o;return e$1.newlyRecognizedBarcode&&(r.newlyRecognizedBarcode=e.fromJSON(e$1.newlyRecognizedBarcode)),r.frameSequenceID=e$1.frameSequenceId,r}};
4
+
5
+ export { n as a };