@scandit/web-datacapture-core 8.2.1 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/build/js/{Camera-DhGjpcjv.d.ts → Camera-Cc__1Nc-.d.ts} +3 -1
  2. package/build/js/Camera.d.ts +1 -1
  3. package/build/js/Camera.js +1 -1
  4. package/build/js/CameraRelated.d.ts +1 -1
  5. package/build/js/{DataCaptureContext-Dvdr7st4.d.ts → DataCaptureContext-BcSpF9Dt.d.ts} +43 -4
  6. package/build/js/DataCaptureContext.d.ts +4 -2
  7. package/build/js/DataCaptureContext.js +1 -1
  8. package/build/js/DataCaptureContextRelated.d.ts +5 -3
  9. package/build/js/DataCaptureVersion.js +1 -1
  10. package/build/js/DataCaptureView.d.ts +5 -3
  11. package/build/js/DataCaptureView.js +1 -1
  12. package/build/js/Feedback.js +1 -1
  13. package/build/js/FrameData.d.ts +4 -2
  14. package/build/js/ImageFrameSource.d.ts +1 -1
  15. package/build/js/ImageFrameSource.js +1 -1
  16. package/build/js/NotificationPresenter/index.d.ts +4 -2
  17. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +4 -2
  18. package/build/js/NotificationPresenter/private/presets.d.ts +4 -2
  19. package/build/js/ScanditIcon.js +1 -1
  20. package/build/js/ScanditIconBuilder.js +1 -1
  21. package/build/js/SingleImageUploader.d.ts +1 -1
  22. package/build/js/Sound.d.ts +4 -0
  23. package/build/js/Sound.js +1 -1
  24. package/build/js/Vibration.js +1 -1
  25. package/build/js/browserHelper.d.ts +10 -0
  26. package/build/js/browserHelper.js +1 -1
  27. package/build/js/chunks/chunk-22UMTZI6.js +1 -0
  28. package/build/js/chunks/{chunk-6JHZVRXK.js → chunk-2MK5Y4IL.js} +1 -1
  29. package/build/js/chunks/{chunk-UQVVJP5Z.js → chunk-2OCDIZIS.js} +1 -1
  30. package/build/js/chunks/{chunk-QFSNPY5Y.js → chunk-2SGKGZ6F.js} +1 -1
  31. package/build/js/chunks/{chunk-O7EM4VIM.js → chunk-33ZWDLU7.js} +1 -1
  32. package/build/js/chunks/chunk-6AQGNP4S.js +1 -0
  33. package/build/js/chunks/chunk-6IHWEHG3.js +1 -0
  34. package/build/js/chunks/{chunk-3MKSI2DV.js → chunk-6IM6NGGI.js} +1 -1
  35. package/build/js/chunks/{chunk-7HYFN4JO.js → chunk-A3ZT7PJA.js} +1 -1
  36. package/build/js/chunks/chunk-A5G2NHT2.js +1 -0
  37. package/build/js/chunks/chunk-AAPD5YU3.js +1 -0
  38. package/build/js/chunks/chunk-AKGGJKCA.js +35 -0
  39. package/build/js/chunks/{chunk-DGIQ3GF7.js → chunk-ARODHCN7.js} +1 -1
  40. package/build/js/chunks/{chunk-QUWP3ILW.js → chunk-BSX3V75N.js} +1 -1
  41. package/build/js/chunks/chunk-DZE2EYSZ.js +1 -0
  42. package/build/js/chunks/chunk-EEWGHHL4.js +1 -0
  43. package/build/js/chunks/{chunk-GLSB4QTY.js → chunk-EIOVYBFS.js} +1 -1
  44. package/build/js/chunks/chunk-EYBP3672.js +1 -0
  45. package/build/js/chunks/chunk-F3Y2X52X.js +1 -0
  46. package/build/js/chunks/{chunk-VSROWPI6.js → chunk-FCXZZH3O.js} +1 -1
  47. package/build/js/chunks/{chunk-O4HDBWKK.js → chunk-FMOB7R2T.js} +1 -1
  48. package/build/js/chunks/{chunk-U7ETOWGJ.js → chunk-GS7VZDY5.js} +1 -1
  49. package/build/js/chunks/chunk-HHA4HDG5.js +6 -0
  50. package/build/js/chunks/{chunk-QUBJJDLC.js → chunk-HILZP6OW.js} +1 -1
  51. package/build/js/chunks/{chunk-NXAYIU7F.js → chunk-IASACVTH.js} +1 -1
  52. package/build/js/chunks/{chunk-DTREAYZQ.js → chunk-KVRNF3VA.js} +1 -1
  53. package/build/js/chunks/{chunk-UERKPMRV.js → chunk-L66S4DN2.js} +1 -1
  54. package/build/js/chunks/chunk-LV6LGCDC.js +1 -0
  55. package/build/js/chunks/{chunk-YE2GYNRP.js → chunk-NMXQDQYI.js} +1 -1
  56. package/build/js/chunks/chunk-NYYGU4ZV.js +1 -0
  57. package/build/js/chunks/{chunk-BBOKPRKO.js → chunk-O5D4KVS5.js} +1 -1
  58. package/build/js/chunks/{chunk-I4F6XB6S.js → chunk-PDJEYYPX.js} +1 -1
  59. package/build/js/chunks/chunk-QHBYNYWX.js +1 -0
  60. package/build/js/chunks/chunk-QHNV2CFJ.js +1 -0
  61. package/build/js/chunks/{chunk-WVVNJRUA.js → chunk-QMLTR5JH.js} +1 -1
  62. package/build/js/chunks/chunk-QWKATH4N.js +1 -0
  63. package/build/js/chunks/{chunk-XYZYNUX3.js → chunk-RXDVYEE5.js} +1 -1
  64. package/build/js/chunks/chunk-RY2EW3RR.js +1 -0
  65. package/build/js/chunks/chunk-S2GRD6GO.js +1 -0
  66. package/build/js/chunks/chunk-SJIN27Q5.js +1 -0
  67. package/build/js/chunks/{chunk-RP4YFAF2.js → chunk-SSTFVERQ.js} +1 -1
  68. package/build/js/chunks/{chunk-7OFC24NE.js → chunk-SX5ZLP2O.js} +1 -1
  69. package/build/js/chunks/{chunk-V2OKMBZD.js → chunk-UJYGOVXB.js} +1 -1
  70. package/build/js/chunks/{chunk-HQKKXJJY.js → chunk-VWEJFI2M.js} +1 -1
  71. package/build/js/chunks/chunk-W3X3ZRQZ.js +1 -0
  72. package/build/js/chunks/{chunk-JCP7NQPV.js → chunk-WFKB322J.js} +1 -1
  73. package/build/js/chunks/{chunk-VJ7ZYB4V.js → chunk-WJOT37ST.js} +1 -1
  74. package/build/js/chunks/{chunk-NY2HBST4.js → chunk-X653DLOR.js} +1 -1
  75. package/build/js/chunks/chunk-Y3TODCJD.js +1 -0
  76. package/build/js/chunks/{chunk-QPR2YHD4.js → chunk-YJNJGCAN.js} +1 -1
  77. package/build/js/chunks/chunk-YONR3EGV.js +2 -0
  78. package/build/js/chunks/{chunk-6EEMWSEO.js → chunk-YP53ND2Q.js} +1 -1
  79. package/build/js/chunks/{chunk-NT5WI2PS.js → chunk-YUZDO2PC.js} +1 -1
  80. package/build/js/chunks/chunk-ZAXZRQYF.js +1 -0
  81. package/build/js/chunks/{chunk-5OF76LWH.js → chunk-ZCEA7BEH.js} +1 -1
  82. package/build/js/controls/CameraFOVSwitchControl.d.ts +4 -2
  83. package/build/js/controls/CameraFOVSwitchControl.js +1 -1
  84. package/build/js/controls/CameraSwitchControl.d.ts +4 -2
  85. package/build/js/controls/CameraSwitchControl.js +1 -1
  86. package/build/js/controls/TorchSwitchControl.d.ts +4 -2
  87. package/build/js/controls/TorchSwitchControl.js +1 -1
  88. package/build/js/controls/common.d.ts +4 -2
  89. package/build/js/controls/index.d.ts +4 -2
  90. package/build/js/controls/index.js +1 -1
  91. package/build/js/defaults/DefaultsCamera.d.ts +4 -2
  92. package/build/js/defaults/DefaultsCameraSettings.d.ts +1 -1
  93. package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
  94. package/build/js/global.d.d.ts +1 -0
  95. package/build/js/index.d.ts +5 -3
  96. package/build/js/index.js +1 -1
  97. package/build/js/moduleLoader.d.ts +4 -2
  98. package/build/js/private/AdditionalLayerPosition.d.ts +6 -0
  99. package/build/js/private/AdditionalLayerPosition.js +1 -0
  100. package/build/js/private/BatteryInterface.d.ts +81 -0
  101. package/build/js/private/BatteryInterface.js +1 -0
  102. package/build/js/private/CameraAccess.d.ts +1 -1
  103. package/build/js/private/CameraAccess.js +1 -1
  104. package/build/js/private/CameraManager.d.ts +5 -3
  105. package/build/js/private/CameraManager.js +1 -1
  106. package/build/js/private/CameraPool.d.ts +5 -2
  107. package/build/js/private/CameraPool.js +1 -1
  108. package/build/js/private/CanvasDrawerWithMetrics.d.ts +4 -2
  109. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +4 -2
  110. package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
  111. package/build/js/private/CustomLocationsView.js +1 -1
  112. package/build/js/private/DataCaptureContextRelated.d.ts +4 -2
  113. package/build/js/private/FrameReaders/FrameReader.d.ts +4 -2
  114. package/build/js/private/FrameReaders/FrameReader.js +1 -1
  115. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -2
  116. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -2
  117. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  118. package/build/js/private/FrameReaders/index.d.ts +4 -2
  119. package/build/js/private/FrameReaders/index.js +1 -1
  120. package/build/js/private/NormalizedModuleLoaderOptions.d.ts +4 -2
  121. package/build/js/private/OrientationObserver.js +1 -1
  122. package/build/js/private/SingleImageUploaderView.d.ts +4 -2
  123. package/build/js/private/SingleImageUploaderView.js +1 -1
  124. package/build/js/private/ViewControls+related.js +1 -1
  125. package/build/js/private/ViewControls_related.d.ts +4 -2
  126. package/build/js/private/ViewStyles.js +1 -1
  127. package/build/js/private/ViewsRegistry.d.ts +4 -2
  128. package/build/js/private/customHowler/AudioCache.d.ts +37 -0
  129. package/build/js/private/customHowler/AudioCache.js +1 -0
  130. package/build/js/private/customHowler/Howl.d.ts +189 -0
  131. package/build/js/private/customHowler/Howl.js +1 -0
  132. package/build/js/private/customHowler/HowlRegistry.d.ts +18 -0
  133. package/build/js/private/customHowler/HowlRegistry.js +1 -0
  134. package/build/js/private/customHowler/Html5Sound.d.ts +52 -0
  135. package/build/js/private/customHowler/Html5Sound.js +1 -0
  136. package/build/js/private/customHowler/UnlockManager.d.ts +39 -0
  137. package/build/js/private/customHowler/UnlockManager.js +1 -0
  138. package/build/js/private/customHowler/WebAudioContextManager.d.ts +161 -0
  139. package/build/js/private/customHowler/WebAudioContextManager.js +1 -0
  140. package/build/js/private/customHowler/debug.d.ts +28 -0
  141. package/build/js/private/customHowler/debug.js +1 -0
  142. package/build/js/private/customHowler/index.d.ts +2 -0
  143. package/build/js/private/customHowler/index.js +1 -0
  144. package/build/js/private/customHowler/setup.d.ts +55 -0
  145. package/build/js/private/customHowler/setup.js +1 -0
  146. package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
  147. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
  148. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
  149. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
  150. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
  151. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
  152. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  153. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  154. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
  155. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
  156. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
  157. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
  158. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
  159. package/build/js/private/ui/atoms/Card.js +1 -1
  160. package/build/js/private/ui/atoms/CardList.js +1 -1
  161. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
  162. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
  163. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
  164. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
  165. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
  166. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
  167. package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
  168. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
  169. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
  170. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
  171. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
  172. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
  173. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
  174. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
  175. package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
  176. package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
  177. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  178. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
  179. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
  180. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  181. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
  182. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  183. package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
  184. package/build/js/private/ui/atoms/ShutterButton.js +1 -1
  185. package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
  186. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
  187. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
  188. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
  189. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  190. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
  191. package/build/js/private/ui/atoms/Toast.d.ts +4 -2
  192. package/build/js/private/ui/atoms/Toast.js +1 -1
  193. package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
  194. package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
  195. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
  196. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
  197. package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
  198. package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
  199. package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
  200. package/build/js/private/ui/molecules/HintPresenter.d.ts +4 -2
  201. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  202. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  203. package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +1 -1
  204. package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
  205. package/build/js/private/utils/index.js +1 -1
  206. package/build/js/private/utils/polyfillLoader.js +1 -1
  207. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +4 -2
  208. package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
  209. package/build/js/worker/ImageConverterForwarder.d.ts +4 -2
  210. package/build/js/worker/ViewInfoHelper.d.ts +4 -2
  211. package/build/js/worker/WorkerMain.d.ts +4 -2
  212. package/build/js/worker/WorkerMain.js +1 -1
  213. package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -2
  214. package/build/js/worker/coreCapture.inlineWorker.js +1 -1
  215. package/build/js/worker/dataCaptureEngine.d.ts +4 -2
  216. package/build/js/worker/dataCaptureEngine.js +1 -1
  217. package/build/js/worker/dataCaptureLoader.d.ts +4 -2
  218. package/build/js/worker/dataCaptureLoader.js +1 -1
  219. package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -2
  220. package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
  221. package/build/js/worker/index.d.ts +4 -2
  222. package/build/js/worker/index.js +1 -1
  223. package/package.json +6 -6
  224. package/build/js/chunks/chunk-4J3Y5IIL.js +0 -1
  225. package/build/js/chunks/chunk-A225YZFY.js +0 -2
  226. package/build/js/chunks/chunk-IBDUCVB4.js +0 -1
  227. package/build/js/chunks/chunk-LH2NI5UL.js +0 -2
  228. package/build/js/chunks/chunk-Q5WJX5JB.js +0 -1
  229. package/build/js/chunks/chunk-RVAHEVSC.js +0 -1
  230. package/build/js/chunks/chunk-SYGWA3T6.js +0 -35
  231. package/build/js/chunks/chunk-TR5HATUD.js +0 -1
  232. package/build/js/chunks/chunk-TTMLHWYT.js +0 -6
  233. package/build/js/chunks/chunk-UOQFOEG6.js +0 -1
  234. package/build/js/chunks/chunk-VQYVIA64.js +0 -1
  235. package/build/js/chunks/chunk-ZDROGZFO.js +0 -1
  236. /package/build/js/chunks/{chunk-TU2LKPHV.js → chunk-YRQQE3NR.js} +0 -0
@@ -307,6 +307,7 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
307
307
  private _isAndroidWebView?;
308
308
  [INTERNAL_ACCESS]: {
309
309
  markAsUnmappedToDeviceCameras: () => void;
310
+ resetUnmappedState: () => void;
310
311
  setDeviceId: (deviceId: string) => void;
311
312
  setLabel: (label: string) => void;
312
313
  markAsBestGuess: () => void;
@@ -369,6 +370,7 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
369
370
  */
370
371
  private setupCamera;
371
372
  private markAsUnmappedToDeviceCameras;
373
+ private resetUnmappedState;
372
374
  private markAsBestGuess;
373
375
  private notifyContext;
374
376
  private notifyListeners;
@@ -391,4 +393,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
391
393
  private isZoomAvailable;
392
394
  }
393
395
 
394
- export { AspectRatio as A, type CameraJSON as C, type DeviceCamera as D, FrameSourceState as F, type PrivateCameraExtraProperties as P, TorchState as T, type VideoFrameResolution as V, Camera as a, CameraPosition as b, VideoResolution as c, FocusGestureStrategy as d, type FrameSourceListener as e, type FrameSourceJSON as f, type FrameSource as g, type CameraSettingsJSONBase as h, type CameraSettingsFromJSON as i, type CameraSettingsJSON as j, isCameraFrameSource as k, CameraSettings as l, CameraPosition$1 as m, CameraResolutionConstraint as n, CameraAccess as o };
396
+ export { AspectRatio as A, Camera as C, type DeviceCamera as D, FocusGestureStrategy as F, type PrivateCameraExtraProperties as P, TorchState as T, type VideoFrameResolution as V, type CameraJSON as a, CameraPosition as b, CameraSettings as c, type CameraSettingsFromJSON as d, type CameraSettingsJSON as e, type CameraSettingsJSONBase as f, type FrameSource as g, type FrameSourceJSON as h, type FrameSourceListener as i, FrameSourceState as j, VideoResolution as k, isCameraFrameSource as l, CameraAccess as m, CameraPosition$1 as n, CameraResolutionConstraint as o };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { a as Camera, C as CameraJSON, V as VideoFrameResolution } from './Camera-DhGjpcjv.js';
2
+ export { C as Camera, a as CameraJSON, V as VideoFrameResolution } from './Camera-Cc__1Nc-.js';
3
3
  import './commons/Rect.js';
4
4
  import './private/privateAccess.js';
5
5
  import './private/Serializable.js';
@@ -1 +1 @@
1
- export{a as Camera}from'./chunks/chunk-4J3Y5IIL.js';
1
+ export{a as Camera}from'./chunks/chunk-RY2EW3RR.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { b as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, d as FocusGestureStrategy, g as FrameSource, f as FrameSourceJSON, e as FrameSourceListener, F as FrameSourceState, P as PrivateCameraExtraProperties, T as TorchState, c as VideoResolution, k as isCameraFrameSource } from './Camera-DhGjpcjv.js';
2
+ export { b as CameraPosition, c as CameraSettings, d as CameraSettingsFromJSON, e as CameraSettingsJSON, f as CameraSettingsJSONBase, F as FocusGestureStrategy, g as FrameSource, h as FrameSourceJSON, i as FrameSourceListener, j as FrameSourceState, P as PrivateCameraExtraProperties, T as TorchState, k as VideoResolution, l as isCameraFrameSource } from './Camera-Cc__1Nc-.js';
3
3
  import './private/Serializable.js';
4
4
  import './commons/Rect.js';
5
5
  import './commons/Point.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { a as Camera, D as DeviceCamera, l as CameraSettings, b as CameraPosition, g as FrameSource, f as FrameSourceJSON } from './Camera-DhGjpcjv.js';
2
+ import { C as Camera, D as DeviceCamera, c as CameraSettings, b as CameraPosition, g as FrameSource, h as FrameSourceJSON } from './Camera-Cc__1Nc-.js';
3
3
  import { DataCaptureContextSettingsJSON, DataCaptureContextSettings } from './DataCaptureContextSettings.js';
4
4
  import { LogoStyle, FocusGestureJSON, ZoomGestureJSON, FocusGesture, ZoomGesture } from './DataCaptureViewPlusRelated.js';
5
5
  import { NotificationPresenter } from './NotificationPresenter/NotificationPresenter.js';
@@ -14,11 +14,14 @@ import { Serializable } from './private/Serializable.js';
14
14
  import { DidTapCustomLocationsViewListener, StateToRender, StateToRenderDomView } from './private/CustomLocationsView.js';
15
15
  import { nativeHandle } from './private/nativeHandle.js';
16
16
  import { AnchorPositions } from './private/AnchorPositions.js';
17
+ import { INTERNAL_ACCESS } from './private/privateAccess.js';
18
+ import { AdditionalLayerPosition } from './private/AdditionalLayerPosition.js';
17
19
  import { JSONType } from './commons/JSONType.js';
18
20
  import { OpenSourceSoftwareLicenseInfo } from './license/OpenSourceSoftwareLicenseInfo.js';
19
21
  import { Logger } from './logger.js';
20
22
  import { ColorType } from './private/FrameReaders/ColorType.js';
21
23
  import { RectJSON, Rect } from './commons/Rect.js';
24
+ import { BatteryInfo } from './private/BatteryInterface.js';
22
25
  import { ProgressInfo } from './LoadingStatus.js';
23
26
  import { ScanditIcon } from './ScanditIcon.js';
24
27
  import { ScanditHTMLElement } from './private/utils/ScanditHTMLElement.js';
@@ -101,6 +104,9 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
101
104
  private htmlElementDidChangeHandler;
102
105
  private htmlElementDisconnectedHandler;
103
106
  private notificationPresenter;
107
+ [INTERNAL_ACCESS]: {
108
+ attachAdditionalLayer: (layer: HTMLElement, position: AdditionalLayerPosition) => void;
109
+ };
104
110
  constructor();
105
111
  get scanAreaMargins(): MarginsWithUnit;
106
112
  set scanAreaMargins(margins: MarginsWithUnit);
@@ -202,7 +208,7 @@ interface PrivateControl extends Control, PrivateBaseControl {
202
208
  /**
203
209
  * MESSAGES (ACTIONS) SENT TO THE WORKER
204
210
  */
205
- type DataCaptureActionMessageKey = "convertToJPEGResult" | "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
211
+ type DataCaptureActionMessageKey = "convertToJPEGResult" | "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateBatteryInfo" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
206
212
  interface ExtractCentaurusLicenseResponse {
207
213
  centaurus: {
208
214
  licenseKey: string;
@@ -283,6 +289,10 @@ type SetLogLevelDataCaptureAction = DataCaptureActionMessage & {
283
289
  command: "setLogLevel";
284
290
  level: Logger.Level;
285
291
  };
292
+ type UpdateBatteryInfoDataCaptureAction = DataCaptureActionMessage & {
293
+ command: "updateBatteryInfo";
294
+ batteryInfo: BatteryInfo;
295
+ };
286
296
  type ExtractCentaurusLicenseDataCaptureAction = DataCaptureActionMessage & {
287
297
  command: "extractCentaurusLicense";
288
298
  licenseKey: string;
@@ -314,7 +324,7 @@ type RemoveNativeOverlayAction = DataCaptureActionMessage & {
314
324
  id: number;
315
325
  };
316
326
  };
317
- type AnyDataCaptureActionMessage = ConvertToJPEGResultDataCaptureAction | CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
327
+ type AnyDataCaptureActionMessage = ConvertToJPEGResultDataCaptureAction | CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateBatteryInfoDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
318
328
  /**
319
329
  * MESSAGES EMITTED BY THE WORKER
320
330
  */
@@ -525,6 +535,13 @@ interface WasmFrameData extends EmscriptenClassHandle {
525
535
  getMirrorAxis: () => unknown;
526
536
  getOrientation: () => unknown;
527
537
  }
538
+ interface BatteryData {
539
+ percentage: number;
540
+ }
541
+ interface DeviceInterfaceInstance extends EmscriptenClassHandle {
542
+ getBatteryData(): BatteryData | undefined;
543
+ isTablet(): boolean;
544
+ }
528
545
  declare enum HintFont {
529
546
  Body = "body",
530
547
  Footnote = "footnote"
@@ -741,6 +758,16 @@ interface Module extends EmscriptenModule {
741
758
  }) => new () => EmscriptenClassHandle;
742
759
  };
743
760
  setDataDecoding: (decoder: unknown) => void;
761
+ BatteryData: new (percentage: number) => BatteryData;
762
+ DeviceInterface: {
763
+ extend: (target: "DeviceInterface", methods: {
764
+ getBatteryData: () => BatteryData | undefined;
765
+ isTablet: () => boolean;
766
+ }) => new () => DeviceInterfaceInstance;
767
+ };
768
+ DeviceHolder: {
769
+ setCurrentDevice: (device: DeviceInterfaceInstance) => void;
770
+ };
744
771
  LicenseUtils: {
745
772
  getBlinkIdLicenseKey: (scanditLicense: string) => string;
746
773
  };
@@ -793,6 +820,8 @@ interface CreateContextParameters {
793
820
  highEndBlurryRecognition: boolean;
794
821
  appName: string | null;
795
822
  parentDomain: string;
823
+ isTablet: boolean;
824
+ batteryInfo: BatteryInfo;
796
825
  }
797
826
  interface UpdateContextParameters {
798
827
  context: DataCaptureContextJSON;
@@ -882,6 +911,8 @@ declare class DataCaptureEngine<M extends Module> {
882
911
  protected gestureRecognizer: GestureRecognizer | null;
883
912
  private gestureListener;
884
913
  private webPlatformHintPresenter;
914
+ private deviceInstance;
915
+ private deviceInfo;
885
916
  private webImageConverterInstance;
886
917
  private lastViewInfo;
887
918
  constructor(moduleHandler: ModuleHandler<M>, workerFunctions: WorkerFunctions);
@@ -986,6 +1017,10 @@ declare class DataCaptureEngine<M extends Module> {
986
1017
  removeNativeOverlay(event: MessageEvent<AnyDataCaptureActionMessage>): void;
987
1018
  private setViewRefreshHandler;
988
1019
  private setupDataDecoding;
1020
+ private getBatteryData;
1021
+ private isTablet;
1022
+ private setupDeviceInterface;
1023
+ updateBatteryInfo(batteryInfo: BatteryInfo): void;
989
1024
  private start;
990
1025
  private getWritableDataPath;
991
1026
  private numOfMBToPages;
@@ -1143,6 +1178,7 @@ declare class CameraManager {
1143
1178
  private get canvas2dContext();
1144
1179
  private get canvasWebGLContext();
1145
1180
  static instance(): CameraManager;
1181
+ dispose(): void;
1146
1182
  recycle(pixelsData: Uint8ClampedArray): void;
1147
1183
  getCurrentFrame(): FrameCapture | undefined;
1148
1184
  requestVideoFrame(scheduledFunction: FrameRequestCallback | VideoFrameRequestCallback, videoElement?: HTMLVideoElement): number;
@@ -1564,10 +1600,12 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
1564
1600
  private readonly cameraAccessErrorListener;
1565
1601
  private readonly onWorkerMessageListener;
1566
1602
  private readonly onVisibilityChangeListener;
1603
+ private readonly batteryChangeListener;
1567
1604
  private dataCaptureInstance;
1568
1605
  private readonly pendingWorkerMessageListeners;
1569
1606
  private delayedRegistration;
1570
1607
  private highEndBlurryRecognition;
1608
+ private webBatteryInterface;
1571
1609
  private readonly _frameHandlers;
1572
1610
  /**
1573
1611
  * When synchronous, only one frame is processed at a time by the capture mode, the frame source will wait until the
@@ -1651,6 +1689,7 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
1651
1689
  private sendFrameToSDC;
1652
1690
  private registerFrameHandler;
1653
1691
  private unregisterFrameHandler;
1692
+ private onBatteryChange;
1654
1693
  private onVisibilityChange;
1655
1694
  private getImageConverterInstance;
1656
1695
  private onWorkerMessage;
@@ -1679,4 +1718,4 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
1679
1718
  protected isFeatureSupported(feature: LicensedFeature): Promise<boolean>;
1680
1719
  }
1681
1720
 
1682
- export { type GetViewfinderInfoResponse as $, convertToPublicFrameData as A, type ModuleLoader as B, type Control as C, type DataCaptureContextState as D, type DataCaptureLoaderOptions as E, type FrameData as F, DataCaptureLoader as G, HintPresenter as H, type PerformanceMetrics as I, type FrameId as J, DataCaptureEngine as K, type Module as L, type ModuleLoaderOptions as M, type GenericHint as N, type FrameCapture as O, type PrivateChangeSet as P, type AnyDataCaptureActionMessage as Q, type AugmentedWorker as R, type ModuleHandler as S, type DataCaptureCallbackMessage as T, type DataCaptureActionMessageKey as U, type ViewInfo as V, type WorkerFunctions as W, type EngineWorkerResponse as X, type ExtractCentaurusLicenseResponse as Y, type RequestFrameDataResponse as Z, type IsFeatureSupportedResponse as _, type ControlType as a, type HintStyle as a$, type GetOpenSourceSoftwareLicenseInfoResponse as a0, type WorkerResponse as a1, type LoadLibraryDataCaptureAction as a2, type ConvertToJPEGResultDataCaptureAction as a3, type CreateContextDataCaptureAction as a4, type SetFrameSourceDataCaptureAction as a5, type ProcessFrameDataCaptureAction as a6, type RequestFrameDataDataCaptureAction as a7, type DeleteFrameDataDataCaptureAction as a8, type VisibilityChangeAction as a9, type ShowGuidanceMessage as aA, type HideGuidanceMessage as aB, type StartUpdateTimerMessage as aC, type StopUpdateTimerMessage as aD, type ViewSizeChangedMessage as aE, type PayloadForCommand as aF, type DataCaptureWorker as aG, type EmscriptenClassHandle as aH, type DataCaptureContext$1 as aI, type DataCaptureImageBufferFrameSource as aJ, type GestureListener as aK, type GestureRecognizer as aL, type DataCaptureView as aM, type JSONParseable as aN, type DataCaptureContextDeserializerResult as aO, type DataCaptureContextDeserializer as aP, type CaptureModeDeserializerInstance as aQ, type ModuleMirrorAxis as aR, type Vector as aS, type WasmFrameData as aT, HintFont as aU, HintTextAlignment as aV, HintWidth as aW, HintHeight as aX, HintCornerStyle as aY, HintIcon as aZ, HintAnchor as a_, type IsFeatureSupportedAction as aa, type UpdateContextDataCaptureAction as ab, type DisposeDataCaptureAction as ac, type FlushAnalyticsDataCaptureAction as ad, type ReportCameraPropertiesDataCaptureAction as ae, type SetLogLevelDataCaptureAction as af, type ExtractCentaurusLicenseDataCaptureAction as ag, type OnTapAction as ah, type HintPresenterV2updateAction as ai, type GetViewfinderInfoAction as aj, type GetOpenSourceSoftwareLicenseInfoAction as ak, type AddNativeOverlayAction as al, type RemoveNativeOverlayAction as am, type DataCaptureCallbackMessageKeys as an, type SuccessFeedbackWorkerMessage as ao, type ShowHintWorkerMessage as ap, type UpdateHintWorkerMessage as aq, type IsFeatureSupportedMessage as ar, type HideHintWorkerMessage as as, type PerformanceMetricsReportMessage as at, type DidTapTrackedBarcode as au, type OnFrameProcessingStartedMessage as av, type OnFrameProcessingFinishedMessage as aw, type OnFrameSkippedMessage as ax, type ShowToastMessage as ay, type HideToastMessage as az, type Change as b, GuidanceHintAnchor as b0, GuidanceHintStyle as b1, type GuidanceHint as b2, ToastHintStyle as b3, type ToastHint as b4, LicensedFeature as b5, type HintPresenterV2 as b6, type PlatformHintPresenter as b7, type LoadLibraryParameters as b8, type CreateContextParameters as b9, type UpdateContextParameters as ba, type SetFrameSourceParameters as bb, type ProcessFrameParameters as bc, type ReportCameraPropertiesParameters as bd, type PrivateBaseControl as be, type PrivateControl as bf, MeteringMode as bg, CameraResolutionConstraint as bh, type ExtendedMediaTrackCapabilities as bi, type ExtendedMediaTrackConstraintSet as bj, type GUI as bk, createFrameId as bl, CameraManagerEvent as bm, type CameraManagerEventParameters as bn, CameraManager as bo, HintPresenterEvents as bp, type DataCaptureMode as c, type PrivateDataCaptureMode as d, type DataCaptureModeJSON as e, type PrivateDataCaptureComponent as f, type DataCaptureComponentJSON as g, type DataCaptureComponent as h, type PrivateDataCaptureContextOptions as i, type PrivateDataCaptureContext as j, type DataCaptureContextCreationOptions as k, type PrivateCapabilityInfo as l, type DataCaptureContextJSON as m, type PrivateFrameHandlerResponse as n, type PrivateFrameHandler as o, DataCaptureContext as p, type DataCaptureContextListener as q, type ContextStatusJSON as r, ContextStatus as s, PrivateMirrorAxis as t, type DataCaptureOverlay as u, type DataCaptureViewListener as v, type DataCaptureViewJSON as w, type DataCaptureViewConnectOptions as x, DataCaptureView$1 as y, type PrivateLoadableFrameData as z };
1721
+ export { type ConvertToJPEGResultDataCaptureAction as $, type PrivateFrameHandlerResponse as A, type PrivateLoadableFrameData as B, type Control as C, type DataCaptureComponent as D, PrivateMirrorAxis as E, type FrameData as F, convertToPublicFrameData as G, HintPresenter as H, type PerformanceMetrics as I, type FrameId as J, DataCaptureEngine as K, type Module as L, type ModuleLoader as M, type GenericHint as N, type FrameCapture as O, type PrivateCapabilityInfo as P, type AnyDataCaptureActionMessage as Q, type AugmentedWorker as R, type ModuleHandler as S, type DataCaptureCallbackMessage as T, type DataCaptureActionMessageKey as U, type ViewInfo as V, type WorkerFunctions as W, type EngineWorkerResponse as X, type AddNativeOverlayAction as Y, type BatteryData as Z, type CaptureModeDeserializerInstance as _, type ControlType as a, type SetLogLevelDataCaptureAction as a$, type CreateContextDataCaptureAction as a0, type CreateContextParameters as a1, type DataCaptureCallbackMessageKeys as a2, type DataCaptureContext$1 as a3, type DataCaptureContextDeserializer as a4, type DataCaptureContextDeserializerResult as a5, type DataCaptureImageBufferFrameSource as a6, type DataCaptureView as a7, type DataCaptureWorker as a8, type DeleteFrameDataDataCaptureAction as a9, type HintStyle as aA, HintTextAlignment as aB, HintWidth as aC, type IsFeatureSupportedAction as aD, type IsFeatureSupportedMessage as aE, type IsFeatureSupportedResponse as aF, type JSONParseable as aG, LicensedFeature as aH, type LoadLibraryDataCaptureAction as aI, type LoadLibraryParameters as aJ, type ModuleMirrorAxis as aK, type OnFrameProcessingFinishedMessage as aL, type OnFrameProcessingStartedMessage as aM, type OnFrameSkippedMessage as aN, type OnTapAction as aO, type PayloadForCommand as aP, type PerformanceMetricsReportMessage as aQ, type PlatformHintPresenter as aR, type ProcessFrameDataCaptureAction as aS, type ProcessFrameParameters as aT, type RemoveNativeOverlayAction as aU, type ReportCameraPropertiesDataCaptureAction as aV, type ReportCameraPropertiesParameters as aW, type RequestFrameDataDataCaptureAction as aX, type RequestFrameDataResponse as aY, type SetFrameSourceDataCaptureAction as aZ, type SetFrameSourceParameters as a_, type DeviceInterfaceInstance as aa, type DidTapTrackedBarcode as ab, type DisposeDataCaptureAction as ac, type EmscriptenClassHandle as ad, type ExtractCentaurusLicenseDataCaptureAction as ae, type ExtractCentaurusLicenseResponse as af, type FlushAnalyticsDataCaptureAction as ag, type GestureListener as ah, type GestureRecognizer as ai, type GetOpenSourceSoftwareLicenseInfoAction as aj, type GetOpenSourceSoftwareLicenseInfoResponse as ak, type GetViewfinderInfoAction as al, type GetViewfinderInfoResponse as am, type GuidanceHint as an, GuidanceHintAnchor as ao, GuidanceHintStyle as ap, type HideGuidanceMessage as aq, type HideHintWorkerMessage as ar, type HideToastMessage as as, HintAnchor as at, HintCornerStyle as au, HintFont as av, HintHeight as aw, HintIcon as ax, type HintPresenterV2 as ay, type HintPresenterV2updateAction as az, type Change as b, type ShowGuidanceMessage as b0, type ShowHintWorkerMessage as b1, type ShowToastMessage as b2, type StartUpdateTimerMessage as b3, type StopUpdateTimerMessage as b4, type SuccessFeedbackWorkerMessage as b5, type ToastHint as b6, ToastHintStyle as b7, type UpdateBatteryInfoDataCaptureAction as b8, type UpdateContextDataCaptureAction as b9, type UpdateContextParameters as ba, type UpdateHintWorkerMessage as bb, type Vector as bc, type ViewSizeChangedMessage as bd, type VisibilityChangeAction as be, type WasmFrameData as bf, type WorkerResponse as bg, type PrivateBaseControl as bh, type PrivateControl as bi, CameraManager as bj, CameraManagerEvent as bk, type CameraManagerEventParameters as bl, CameraResolutionConstraint as bm, type ExtendedMediaTrackCapabilities as bn, type ExtendedMediaTrackConstraintSet as bo, type GUI as bp, MeteringMode as bq, createFrameId as br, HintPresenterEvents as bs, ContextStatus as c, type ContextStatusJSON as d, type DataCaptureComponentJSON as e, DataCaptureContext as f, type DataCaptureContextCreationOptions as g, type DataCaptureContextJSON as h, type DataCaptureContextListener as i, type DataCaptureContextState as j, DataCaptureLoader as k, type DataCaptureLoaderOptions as l, type DataCaptureMode as m, type DataCaptureModeJSON as n, type DataCaptureOverlay as o, DataCaptureView$1 as p, type DataCaptureViewConnectOptions as q, type DataCaptureViewJSON as r, type DataCaptureViewListener as s, type ModuleLoaderOptions as t, type PrivateChangeSet as u, type PrivateDataCaptureComponent as v, type PrivateDataCaptureContext as w, type PrivateDataCaptureContextOptions as x, type PrivateDataCaptureMode as y, type PrivateFrameHandler as z };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
- import './Camera-DhGjpcjv.js';
3
- export { b as Change, h as DataCaptureComponent, g as DataCaptureComponentJSON, p as DataCaptureContext, k as DataCaptureContextCreationOptions, m as DataCaptureContextJSON, D as DataCaptureContextState, c as DataCaptureMode, e as DataCaptureModeJSON, M as ModuleLoaderOptions, l as PrivateCapabilityInfo, P as PrivateChangeSet, f as PrivateDataCaptureComponent, j as PrivateDataCaptureContext, i as PrivateDataCaptureContextOptions, d as PrivateDataCaptureMode, o as PrivateFrameHandler, n as PrivateFrameHandlerResponse } from './DataCaptureContext-Dvdr7st4.js';
2
+ import './Camera-Cc__1Nc-.js';
3
+ export { b as Change, D as DataCaptureComponent, e as DataCaptureComponentJSON, f as DataCaptureContext, g as DataCaptureContextCreationOptions, h as DataCaptureContextJSON, j as DataCaptureContextState, m as DataCaptureMode, n as DataCaptureModeJSON, t as ModuleLoaderOptions, P as PrivateCapabilityInfo, u as PrivateChangeSet, v as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, x as PrivateDataCaptureContextOptions, y as PrivateDataCaptureMode, z as PrivateFrameHandler, A as PrivateFrameHandlerResponse } from './DataCaptureContext-BcSpF9Dt.js';
4
4
  import './DataCaptureContextSettings.js';
5
5
  import './commons/JSONType.js';
6
6
  import './commons/Orientation.js';
@@ -31,7 +31,9 @@ import './commons/Quadrilateral.js';
31
31
  import './private/CustomLocationsView.js';
32
32
  import './private/View.js';
33
33
  import './private/AnchorPositions.js';
34
+ import './private/AdditionalLayerPosition.js';
34
35
  import './private/FrameReaders/ColorType.js';
36
+ import './private/BatteryInterface.js';
35
37
  import './LoadingStatus.js';
36
38
  import './private/djinni-types/index.js';
37
39
  import './commons/SizeWithUnit.js';
@@ -1 +1 @@
1
- export{b as DataCaptureContext}from'./chunks/chunk-TTMLHWYT.js';
1
+ export{b as DataCaptureContext}from'./chunks/chunk-HHA4HDG5.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
- export { s as ContextStatus, r as ContextStatusJSON, q as DataCaptureContextListener, t as PrivateMirrorAxis } from './DataCaptureContext-Dvdr7st4.js';
3
- import './Camera-DhGjpcjv.js';
2
+ export { c as ContextStatus, d as ContextStatusJSON, i as DataCaptureContextListener, E as PrivateMirrorAxis } from './DataCaptureContext-BcSpF9Dt.js';
3
+ import './Camera-Cc__1Nc-.js';
4
4
  import './ScanditIcon.js';
5
5
  import './DataCaptureContextSettings.js';
6
6
  import './commons/JSONType.js';
@@ -24,14 +24,16 @@ import './private/CustomLocationsView.js';
24
24
  import './private/View.js';
25
25
  import './private/AnchorPositions.js';
26
26
  import './private/nativeHandle.js';
27
+ import './private/privateAccess.js';
28
+ import './private/AdditionalLayerPosition.js';
27
29
  import './license/OpenSourceSoftwareLicenseInfo.js';
28
30
  import './logger.js';
29
31
  import './private/FrameReaders/ColorType.js';
30
32
  import './commons/Rect.js';
33
+ import './private/BatteryInterface.js';
31
34
  import './LoadingStatus.js';
32
35
  import './private/djinni-types/index.js';
33
36
  import './private/HtmlElementState.js';
34
37
  import './commons/SizeWithUnit.js';
35
38
  import './private/utils/AsyncStateMachine.js';
36
39
  import './tsHelper.js';
37
- import './private/privateAccess.js';
@@ -1 +1 @@
1
- export{a as DataCaptureVersion}from'./chunks/chunk-TR5HATUD.js';
1
+ export{a as DataCaptureVersion}from'./chunks/chunk-EYBP3672.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
- import './Camera-DhGjpcjv.js';
3
- export { u as DataCaptureOverlay, y as DataCaptureView, x as DataCaptureViewConnectOptions, w as DataCaptureViewJSON, v as DataCaptureViewListener } from './DataCaptureContext-Dvdr7st4.js';
2
+ import './Camera-Cc__1Nc-.js';
3
+ export { o as DataCaptureOverlay, p as DataCaptureView, q as DataCaptureViewConnectOptions, r as DataCaptureViewJSON, s as DataCaptureViewListener } from './DataCaptureContext-BcSpF9Dt.js';
4
4
  import './DataCaptureViewPlusRelated.js';
5
5
  import './NotificationPresenter/NotificationPresenter.js';
6
6
  import './commons/Anchor.js';
@@ -14,13 +14,15 @@ import './private/CustomLocationsView.js';
14
14
  import './private/Serializable.js';
15
15
  import './private/nativeHandle.js';
16
16
  import './private/AnchorPositions.js';
17
- import './commons/Rect.js';
18
17
  import './private/privateAccess.js';
18
+ import './private/AdditionalLayerPosition.js';
19
+ import './commons/Rect.js';
19
20
  import './DataCaptureContextSettings.js';
20
21
  import './commons/JSONType.js';
21
22
  import './license/OpenSourceSoftwareLicenseInfo.js';
22
23
  import './logger.js';
23
24
  import './private/FrameReaders/ColorType.js';
25
+ import './private/BatteryInterface.js';
24
26
  import './LoadingStatus.js';
25
27
  import './ScanditIcon.js';
26
28
  import './commons/Color.js';
@@ -1 +1 @@
1
- export{a as DataCaptureView}from'./chunks/chunk-ZDROGZFO.js';
1
+ export{a as DataCaptureView}from'./chunks/chunk-F3Y2X52X.js';
@@ -1 +1 @@
1
- export{a as Feedback}from'./chunks/chunk-WVVNJRUA.js';
1
+ export{a as Feedback}from'./chunks/chunk-QMLTR5JH.js';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="emscripten" />
2
- export { F as FrameData, z as PrivateLoadableFrameData, A as convertToPublicFrameData } from './DataCaptureContext-Dvdr7st4.js';
2
+ export { F as FrameData, B as PrivateLoadableFrameData, G as convertToPublicFrameData } from './DataCaptureContext-BcSpF9Dt.js';
3
3
  import './ScanditIcon.js';
4
- import './Camera-DhGjpcjv.js';
4
+ import './Camera-Cc__1Nc-.js';
5
5
  import './commons/Rect.js';
6
6
  import './private/Serializable.js';
7
7
  import './commons/Point.js';
@@ -26,9 +26,11 @@ import './private/CustomLocationsView.js';
26
26
  import './private/View.js';
27
27
  import './private/AnchorPositions.js';
28
28
  import './private/nativeHandle.js';
29
+ import './private/AdditionalLayerPosition.js';
29
30
  import './license/OpenSourceSoftwareLicenseInfo.js';
30
31
  import './logger.js';
31
32
  import './private/FrameReaders/ColorType.js';
33
+ import './private/BatteryInterface.js';
32
34
  import './LoadingStatus.js';
33
35
  import './private/djinni-types/index.js';
34
36
  import './private/HtmlElementState.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { g as FrameSource, F as FrameSourceState, e as FrameSourceListener } from './Camera-DhGjpcjv.js';
2
+ import { g as FrameSource, j as FrameSourceState, i as FrameSourceListener } from './Camera-Cc__1Nc-.js';
3
3
  import { Serializable } from './private/Serializable.js';
4
4
  import './commons/Rect.js';
5
5
  import './commons/Point.js';
@@ -1 +1 @@
1
- export{a as ImageFrameSource}from'./chunks/chunk-GLSB4QTY.js';
1
+ export{a as ImageFrameSource}from'./chunks/chunk-EIOVYBFS.js';
@@ -8,8 +8,8 @@ import '../commons/Color.js';
8
8
  import '../private/Serializable.js';
9
9
  import '../ScanditIcon.js';
10
10
  import '../private/utils/ScanditHTMLElement.js';
11
- import '../DataCaptureContext-Dvdr7st4.js';
12
- import '../Camera-DhGjpcjv.js';
11
+ import '../DataCaptureContext-BcSpF9Dt.js';
12
+ import '../Camera-Cc__1Nc-.js';
13
13
  import '../commons/Rect.js';
14
14
  import '../commons/Point.js';
15
15
  import '../commons/Size.js';
@@ -28,9 +28,11 @@ import '../private/CustomLocationsView.js';
28
28
  import '../private/View.js';
29
29
  import '../private/AnchorPositions.js';
30
30
  import '../private/nativeHandle.js';
31
+ import '../private/AdditionalLayerPosition.js';
31
32
  import '../license/OpenSourceSoftwareLicenseInfo.js';
32
33
  import '../logger.js';
33
34
  import '../private/FrameReaders/ColorType.js';
35
+ import '../private/BatteryInterface.js';
34
36
  import '../LoadingStatus.js';
35
37
  import '../private/djinni-types/index.js';
36
38
  import '../private/HtmlElementState.js';
@@ -1,8 +1,8 @@
1
1
  /// <reference types="emscripten" />
2
- import { H as HintPresenter } from '../../DataCaptureContext-Dvdr7st4.js';
2
+ import { H as HintPresenter } from '../../DataCaptureContext-BcSpF9Dt.js';
3
3
  import { NotificationConfiguration } from '../NotificationConfiguration.js';
4
4
  import { NotificationPresenter } from '../NotificationPresenter.js';
5
- import '../../Camera-DhGjpcjv.js';
5
+ import '../../Camera-Cc__1Nc-.js';
6
6
  import '../../commons/Rect.js';
7
7
  import '../../private/Serializable.js';
8
8
  import '../../commons/Point.js';
@@ -22,9 +22,11 @@ import '../../private/CustomLocationsView.js';
22
22
  import '../../private/View.js';
23
23
  import '../../private/AnchorPositions.js';
24
24
  import '../../private/nativeHandle.js';
25
+ import '../../private/AdditionalLayerPosition.js';
25
26
  import '../../license/OpenSourceSoftwareLicenseInfo.js';
26
27
  import '../../logger.js';
27
28
  import '../../private/FrameReaders/ColorType.js';
29
+ import '../../private/BatteryInterface.js';
28
30
  import '../../LoadingStatus.js';
29
31
  import '../../ScanditIcon.js';
30
32
  import '../../commons/Color.js';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="emscripten" />
2
- import { N as GenericHint } from '../../DataCaptureContext-Dvdr7st4.js';
2
+ import { N as GenericHint } from '../../DataCaptureContext-BcSpF9Dt.js';
3
3
  import { NotificationConfiguration } from '../NotificationConfiguration.js';
4
- import '../../Camera-DhGjpcjv.js';
4
+ import '../../Camera-Cc__1Nc-.js';
5
5
  import '../../commons/Rect.js';
6
6
  import '../../private/Serializable.js';
7
7
  import '../../commons/Point.js';
@@ -26,9 +26,11 @@ import '../../private/CustomLocationsView.js';
26
26
  import '../../private/View.js';
27
27
  import '../../private/AnchorPositions.js';
28
28
  import '../../private/nativeHandle.js';
29
+ import '../../private/AdditionalLayerPosition.js';
29
30
  import '../../license/OpenSourceSoftwareLicenseInfo.js';
30
31
  import '../../logger.js';
31
32
  import '../../private/FrameReaders/ColorType.js';
33
+ import '../../private/BatteryInterface.js';
32
34
  import '../../LoadingStatus.js';
33
35
  import '../../private/djinni-types/index.js';
34
36
  import '../../private/HtmlElementState.js';
@@ -1 +1 @@
1
- export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-O4HDBWKK.js';
1
+ export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-FMOB7R2T.js';
@@ -1 +1 @@
1
- export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-5OF76LWH.js';export{a as ScanditIconShape}from'./chunks/chunk-O4HDBWKK.js';
1
+ export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-ZCEA7BEH.js';export{a as ScanditIconShape}from'./chunks/chunk-FMOB7R2T.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { f as FrameSourceJSON, F as FrameSourceState, g as FrameSource, e as FrameSourceListener } from './Camera-DhGjpcjv.js';
2
+ import { g as FrameSource, h as FrameSourceJSON, j as FrameSourceState, i as FrameSourceListener } from './Camera-Cc__1Nc-.js';
3
3
  import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
4
4
  import { Serializable } from './private/Serializable.js';
5
5
  import './commons/Rect.js';
@@ -11,6 +11,10 @@ declare class Sound implements Serializable<SoundJSON> {
11
11
  constructor(resource: string | null);
12
12
  static get defaultSound(): Sound;
13
13
  toJSONObject(): SoundJSON;
14
+ /**
15
+ * Play the sound using Web Audio API.
16
+ * Audio operations run off the main thread for smooth performance.
17
+ */
14
18
  private play;
15
19
  }
16
20
 
package/build/js/Sound.js CHANGED
@@ -1 +1 @@
1
- export{a as Sound}from'./chunks/chunk-LH2NI5UL.js';
1
+ export{a as Sound}from'./chunks/chunk-QWKATH4N.js';
@@ -1 +1 @@
1
- export{a as Vibration}from'./chunks/chunk-NXAYIU7F.js';
1
+ export{a as Vibration}from'./chunks/chunk-IASACVTH.js';
@@ -146,6 +146,16 @@ declare namespace BrowserHelper {
146
146
  * @hidden
147
147
  */
148
148
  export function isIosWebView(): boolean;
149
+ /**
150
+ * @hidden
151
+ */
152
+ export function isAndroid(): boolean;
153
+ /**
154
+ * Check if the device is a tablet.
155
+ * @returns Whether the device is a tablet.
156
+ * @hidden
157
+ */
158
+ export function isTablet(): boolean;
149
159
  /**
150
160
  * Check if the document is served by an Android web view.
151
161
  * @returns Whether the document is served by an Android web view.
@@ -1 +1 @@
1
- export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-A225YZFY.js';
1
+ export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-YONR3EGV.js';
@@ -0,0 +1 @@
1
+ import {c,b}from'./chunk-Y3TODCJD.js';import {c as c$1}from'./chunk-ZAXZRQYF.js';import {a}from'./chunk-LV6LGCDC.js';import {a as a$1}from'./chunk-SJIN27Q5.js';var i=new a,o=null;function m(){return o||(o=new c),o}function h(){var t,e;let u=c$1();for(let c of u)c.dispose();(t=a$1)==null||t(`\u{1F3B5} Disposed ${u.length} Howl instances`),i.reset(),o&&(o.dispose(),o=null),b().clear(),(e=a$1)==null||e("\u{1F3A7} Audio buffer cache cleared during disposal");}function k(){h();}function w(){var t;if(i.isSetupComplete()||typeof document>"u")return;i.markSetupComplete(),(t=a$1)==null||t("\u{1F3A7} Setting up audio unlock event listeners");let u=e=>{var l,s,r,a,d;(d=a$1)==null||d(`\u{1F446} User ${e.type} detected at (${(s=(l=e.touches)==null?void 0:l[0])==null?void 0:s.clientX}, ${(a=(r=e.touches)==null?void 0:r[0])==null?void 0:a.clientY}), unlocking audio...`),m().unlock(),i.reset();};i.setup(u);}export{m as a,h as b,k as c,w as d};
@@ -1 +1 @@
1
- import {a}from'./chunk-4J3Y5IIL.js';import {d}from'./chunk-NT5WI2PS.js';import {f,g}from'./chunk-3D2HNEVH.js';var u=class{constructor(){this.type="camera";this.customImages={idle:"",pressed:""};this.cameraSwitchButton=void 0;this.CameraSwitchButtonClass=void 0;this.currentFrameSource=null;this.view=void 0;this.onCameraSwitched=this.handleCameraSwitched.bind(this);this.isTransitioning=false;}get idleImage(){return this.customImages.idle}set idleImage(t){this.customImages.idle=t,this.applyCustomImagesToButton();}get pressedImage(){return this.customImages.pressed}set pressedImage(t){this.customImages.pressed=t,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(t){var i,r,s;this.CameraSwitchButtonClass||(this.CameraSwitchButtonClass=await import('../private/ui/molecules/CameraSwitchButton.js').then(l=>l.CameraSwitchButton),(i=this.CameraSwitchButtonClass)==null||i.register()),this.view=t,this.currentFrameSource=(s=(r=t.getContext())==null?void 0:r.frameSource)!=null?s:null,this.cameraSwitchButton=this.CameraSwitchButtonClass.create(),this.cameraSwitchButton.slot="topRight",this.cameraSwitchButton.hidden=true,this.cameraSwitchButton.addEventListener("camera-switched",this.onCameraSwitched);let e=t.controlsElement;e&&e.append(this.cameraSwitchButton),this.applyCustomImagesToButton();let a=await this.canShow();return this.updateButtonVisibility(a),true}remove(t){t&&this.cameraSwitchButton&&(this.cameraSwitchButton.removeEventListener("camera-switched",this.onCameraSwitched),this.cameraSwitchButton.remove(),this.cameraSwitchButton=null,this.currentFrameSource=null,this.view=void 0);}async update(t){var a,i;this.currentFrameSource=(i=(a=t.getContext())==null?void 0:a.frameSource)!=null?i:null,this.view=t;let e=await this.canShow();this.updateButtonVisibility(e);}updateButtonVisibility(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}applyCustomImagesToButton(){if(!this.cameraSwitchButton)return;this.customImages.idle||this.customImages.pressed?this.cameraSwitchButton.setCustomImages(this.customImages):this.cameraSwitchButton.useCustomImages=false;}async canShow(){if(!f(this.currentFrameSource)||this.currentFrameSource.getCurrentState()!=="on")return false;try{return (await d.getCameras(false,true)).length>1}catch{return false}}handleCameraSwitched(t){let{currentMode:e}=t.detail,a=e==="back"?"front":"back";this.cameraSwitchButton.mode=a,this.handleCameraSwitch();}async handleCameraSwitch(){if(this.isTransitioning)return;let t=await this.getNextDeviceCamera();t&&await this.switchCameras(t);}async getNextDeviceCamera(){var r;let t=await a.getAll(false,true),e=this.currentFrameSource?this.currentFrameSource:null,a$1=e==null?void 0:e.deviceId,i=t.findIndex(s=>s.deviceId===a$1);return i>-1?(r=t[i+1])!=null?r:t[0]:t.length>0?t[0]:null}async switchCameras(t){var s;this.isTransitioning=true;let e=(s=this.view)==null?void 0:s.getContext(),a=e==null?void 0:e.frameSource,i,r;a!=null&&(i=new g(a.settings),r=a.desiredState),await(a==null?void 0:a.switchToDesiredState("off")),i!=null&&await t.applySettings(i),await(e==null?void 0:e.setFrameSource(t)),await(e==null?void 0:e.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{u as a};
1
+ import {a}from'./chunk-RY2EW3RR.js';import {d}from'./chunk-YUZDO2PC.js';import {f,g}from'./chunk-3D2HNEVH.js';var u=class{constructor(){this.type="camera";this.customImages={idle:"",pressed:""};this.cameraSwitchButton=void 0;this.CameraSwitchButtonClass=void 0;this.currentFrameSource=null;this.view=void 0;this.onCameraSwitched=this.handleCameraSwitched.bind(this);this.isTransitioning=false;}get idleImage(){return this.customImages.idle}set idleImage(t){this.customImages.idle=t,this.applyCustomImagesToButton();}get pressedImage(){return this.customImages.pressed}set pressedImage(t){this.customImages.pressed=t,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(t){var i,r,s;this.CameraSwitchButtonClass||(this.CameraSwitchButtonClass=await import('../private/ui/molecules/CameraSwitchButton.js').then(l=>l.CameraSwitchButton),(i=this.CameraSwitchButtonClass)==null||i.register()),this.view=t,this.currentFrameSource=(s=(r=t.getContext())==null?void 0:r.frameSource)!=null?s:null,this.cameraSwitchButton=this.CameraSwitchButtonClass.create(),this.cameraSwitchButton.slot="topRight",this.cameraSwitchButton.hidden=true,this.cameraSwitchButton.addEventListener("camera-switched",this.onCameraSwitched);let e=t.controlsElement;e&&e.append(this.cameraSwitchButton),this.applyCustomImagesToButton();let a=await this.canShow();return this.updateButtonVisibility(a),true}remove(t){t&&this.cameraSwitchButton&&(this.cameraSwitchButton.removeEventListener("camera-switched",this.onCameraSwitched),this.cameraSwitchButton.remove(),this.cameraSwitchButton=null,this.currentFrameSource=null,this.view=void 0);}async update(t){var a,i;this.currentFrameSource=(i=(a=t.getContext())==null?void 0:a.frameSource)!=null?i:null,this.view=t;let e=await this.canShow();this.updateButtonVisibility(e);}updateButtonVisibility(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}applyCustomImagesToButton(){if(!this.cameraSwitchButton)return;this.customImages.idle||this.customImages.pressed?this.cameraSwitchButton.setCustomImages(this.customImages):this.cameraSwitchButton.useCustomImages=false;}async canShow(){if(!f(this.currentFrameSource)||this.currentFrameSource.getCurrentState()!=="on")return false;try{return (await d.getCameras(false,true)).length>1}catch{return false}}handleCameraSwitched(t){let{currentMode:e}=t.detail,a=e==="back"?"front":"back";this.cameraSwitchButton.mode=a,this.handleCameraSwitch();}async handleCameraSwitch(){if(this.isTransitioning)return;let t=await this.getNextDeviceCamera();t&&await this.switchCameras(t);}async getNextDeviceCamera(){var r;let t=await a.getAll(false,true),e=this.currentFrameSource?this.currentFrameSource:null,a$1=e==null?void 0:e.deviceId,i=t.findIndex(s=>s.deviceId===a$1);return i>-1?(r=t[i+1])!=null?r:t[0]:t.length>0?t[0]:null}async switchCameras(t){var s;this.isTransitioning=true;let e=(s=this.view)==null?void 0:s.getContext(),a=e==null?void 0:e.frameSource,i,r;a!=null&&(i=new g(a.settings),r=a.desiredState),await(a==null?void 0:a.switchToDesiredState("off")),i!=null&&await t.applySettings(i),await(e==null?void 0:e.setFrameSource(t)),await(e==null?void 0:e.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{u as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-MA6UDVDJ.js';import {a as a$2}from'./chunk-BDGRWHLY.js';var a={focusGesture:null,zoomGesture:null,logoAnchor:"bottomRight",logoStyle:"extended",logoOffset:a$2.fromJSON({x:{value:0,unit:"fraction"},y:{value:0,unit:"fraction"}}),pointOfInterest:a$2.fromJSON({x:{value:.5,unit:"fraction"},y:{value:.5,unit:"fraction"}}),scanAreaMargins:a$1.fromJSON({left:{value:0,unit:"fraction"},right:{value:0,unit:"fraction"},top:{value:0,unit:"fraction"},bottom:{value:0,unit:"fraction"}}),cameraRecoveryText:"(This text is updated from translations)"};export{a};
1
+ import {a as a$2}from'./chunk-BDGRWHLY.js';import {a as a$1}from'./chunk-MA6UDVDJ.js';var a={focusGesture:null,zoomGesture:null,logoAnchor:"bottomRight",logoStyle:"extended",logoOffset:a$2.fromJSON({x:{value:0,unit:"fraction"},y:{value:0,unit:"fraction"}}),pointOfInterest:a$2.fromJSON({x:{value:.5,unit:"fraction"},y:{value:.5,unit:"fraction"}}),scanAreaMargins:a$1.fromJSON({left:{value:0,unit:"fraction"},right:{value:0,unit:"fraction"},top:{value:0,unit:"fraction"},bottom:{value:0,unit:"fraction"}}),cameraRecoveryText:"(This text is updated from translations)"};export{a};
@@ -1 +1 @@
1
- import {a as a$3}from'./chunk-UWBNF47P.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=this.render(),e.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return t.register(),document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var o=t;export{o as a};
1
+ import {a as a$3}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=this.render(),e.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return t.register(),document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var o=t;export{o as a};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';var r="inline-style",e=class e extends a{get fill(){var t;return (t=this.getAttribute("fill"))!=null?t:"black"}set fill(t){this.setAttribute("fill",t);}get size(){var t;return Number((t=this.getAttribute("size"))!=null?t:"32")}set size(t){this.setAttribute("size",t.toString());}get[r](){return this.getAttribute(r)}set[r](t){t==null?this.removeAttribute(r):this.setAttribute(r,t);}static register(){a$1({[e.tag]:e});}static create(){return e.register(),document.createElement(e.tag)}render(){return a$2`<div></div>`}heightForViewbox(t,i){return this.size*this.aspectRatioForViewbox(t,i)}aspectRatioForViewbox(t,i){return i/t}connectedCallback(){this.innerHTML=this.render();}attributeChangedCallback(t,i,b){b!==i&&(this.innerHTML=this.render());}};e.tag="scandit-svg-icon",e.observedAttributes=["fill","size"];var u=e;export{u as a};
1
+ import {a as a$2}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$1}from'./chunk-3A4KLILV.js';var r="inline-style",e=class e extends a{get fill(){var t;return (t=this.getAttribute("fill"))!=null?t:"black"}set fill(t){this.setAttribute("fill",t);}get size(){var t;return Number((t=this.getAttribute("size"))!=null?t:"32")}set size(t){this.setAttribute("size",t.toString());}get[r](){return this.getAttribute(r)}set[r](t){t==null?this.removeAttribute(r):this.setAttribute(r,t);}static register(){a$1({[e.tag]:e});}static create(){return e.register(),document.createElement(e.tag)}render(){return a$2`<div></div>`}heightForViewbox(t,i){return this.size*this.aspectRatioForViewbox(t,i)}aspectRatioForViewbox(t,i){return i/t}connectedCallback(){this.innerHTML=this.render();}attributeChangedCallback(t,i,b){b!==i&&(this.innerHTML=this.render());}};e.tag="scandit-svg-icon",e.observedAttributes=["fill","size"];var u=e;export{u as a};
@@ -0,0 +1 @@
1
+ import {b,c,d}from'./chunk-22UMTZI6.js';function n(){b();}function p(){c();}function i(){d();}export{n as a,p as b,i as c};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-X653DLOR.js';var t=new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function l(e){}export{t as a,l as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return e.register(),document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7C11.4477 7 11 7.44772 11 8V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V8C13 7.44772 12.5523 7 12 7ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-exclamation-mark-icon";var r=e;export{r as a};
1
+ import {a}from'./chunk-33ZWDLU7.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return e.register(),document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7C11.4477 7 11 7.44772 11 8V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V8C13 7.44772 12.5523 7 12 7ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-exclamation-mark-icon";var r=e;export{r as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.625 15C17.3844 15 18 15.6156 18 16.375C18 17.1344 17.3844 17.75 16.625 17.75C15.8656 17.75 15.25 17.1344 15.25 16.375C15.25 15.6156 15.8656 15 16.625 15ZM20.75 16.375C20.75 14.0968 18.9032 12.25 16.625 12.25C14.3468 12.25 12.5 14.0968 12.5 16.375C12.5 18.6532 14.3468 20.5 16.625 20.5C18.9032 20.5 20.75 18.6532 20.75 16.375Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7223 13.2223C10.1853 13.7592 9.3147 13.7592 8.77773 13.2223C8.24076 12.6853 8.24076 11.8147 8.77773 11.2777L9.18046 10.875H8.375C7.61561 10.875 7 11.4906 7 12.25V21.875C7 22.6344 7.61561 23.25 8.375 23.25H16.625C17.3844 23.25 18 23.8656 18 24.625C18 25.3844 17.3844 26 16.625 26H8.375C6.09683 26 4.25 24.1532 4.25 21.875V12.25C4.25 9.97183 6.09683 8.125 8.375 8.125H9.18046L8.77773 7.72227C8.24076 7.1853 8.24076 6.3147 8.77773 5.77773C9.3147 5.24076 10.1853 5.24076 10.7223 5.77773L13.4723 8.52773C13.7301 8.78559 13.875 9.13533 13.875 9.5C13.875 9.86467 13.7301 10.2144 13.4723 10.4723L10.7223 13.2223Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 7.4375C20.75 7.0578 20.4422 6.75 20.0625 6.75H13.875C13.1156 6.75 12.5 6.13439 12.5 5.375C12.5 4.61561 13.1156 4 13.875 4H20.0625C21.961 4 23.5 5.53902 23.5 7.4375C23.5 7.8172 23.8078 8.125 24.1875 8.125H24.875C27.1532 8.125 29 9.97183 29 12.25V21.875C29 24.1532 27.1532 26 24.875 26H24.0695L24.4723 26.4027C25.0092 26.9397 25.0092 27.8103 24.4723 28.3473C23.9353 28.8842 23.0647 28.8842 22.5277 28.3473L19.7777 25.5973C19.2408 25.0603 19.2408 24.1897 19.7777 23.6527L22.5277 20.9027C23.0647 20.3658 23.9353 20.3658 24.4723 20.9027C25.0092 21.4397 25.0092 22.3103 24.4723 22.8473L24.0695 23.25H24.875C25.6344 23.25 26.25 22.6344 26.25 21.875V12.25C26.25 11.4906 25.6344 10.875 24.875 10.875H24.1875C22.289 10.875 20.75 9.33598 20.75 7.4375Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-camera-switch-icon";var C=e;export{C as a};
1
+ import {a}from'./chunk-33ZWDLU7.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.625 15C17.3844 15 18 15.6156 18 16.375C18 17.1344 17.3844 17.75 16.625 17.75C15.8656 17.75 15.25 17.1344 15.25 16.375C15.25 15.6156 15.8656 15 16.625 15ZM20.75 16.375C20.75 14.0968 18.9032 12.25 16.625 12.25C14.3468 12.25 12.5 14.0968 12.5 16.375C12.5 18.6532 14.3468 20.5 16.625 20.5C18.9032 20.5 20.75 18.6532 20.75 16.375Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7223 13.2223C10.1853 13.7592 9.3147 13.7592 8.77773 13.2223C8.24076 12.6853 8.24076 11.8147 8.77773 11.2777L9.18046 10.875H8.375C7.61561 10.875 7 11.4906 7 12.25V21.875C7 22.6344 7.61561 23.25 8.375 23.25H16.625C17.3844 23.25 18 23.8656 18 24.625C18 25.3844 17.3844 26 16.625 26H8.375C6.09683 26 4.25 24.1532 4.25 21.875V12.25C4.25 9.97183 6.09683 8.125 8.375 8.125H9.18046L8.77773 7.72227C8.24076 7.1853 8.24076 6.3147 8.77773 5.77773C9.3147 5.24076 10.1853 5.24076 10.7223 5.77773L13.4723 8.52773C13.7301 8.78559 13.875 9.13533 13.875 9.5C13.875 9.86467 13.7301 10.2144 13.4723 10.4723L10.7223 13.2223Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 7.4375C20.75 7.0578 20.4422 6.75 20.0625 6.75H13.875C13.1156 6.75 12.5 6.13439 12.5 5.375C12.5 4.61561 13.1156 4 13.875 4H20.0625C21.961 4 23.5 5.53902 23.5 7.4375C23.5 7.8172 23.8078 8.125 24.1875 8.125H24.875C27.1532 8.125 29 9.97183 29 12.25V21.875C29 24.1532 27.1532 26 24.875 26H24.0695L24.4723 26.4027C25.0092 26.9397 25.0092 27.8103 24.4723 28.3473C23.9353 28.8842 23.0647 28.8842 22.5277 28.3473L19.7777 25.5973C19.2408 25.0603 19.2408 24.1897 19.7777 23.6527L22.5277 20.9027C23.0647 20.3658 23.9353 20.3658 24.4723 20.9027C25.0092 21.4397 25.0092 22.3103 24.4723 22.8473L24.0695 23.25H24.875C25.6344 23.25 26.25 22.6344 26.25 21.875V12.25C26.25 11.4906 25.6344 10.875 24.875 10.875H24.1875C22.289 10.875 20.75 9.33598 20.75 7.4375Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-camera-switch-icon";var C=e;export{C as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-TPHGDMKG.js';import {a as a$2}from'./chunk-LSZZVJ6B.js';function a(){let i=a$2`@keyframes scandit-rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.${a$1.CONTAINER_CLASS_NAME}{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.${a$1.CONTAINER_CLASS_NAME}:before{animation:scandit-rotation 1s linear infinite;background-color:#fff;content:" ";height:1px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;width:1px}`,o=a$2`.${a$1.PAINTBOARDS_CONTAINER_CLASS_NAME}{height:inherit;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}{aspect-ratio:16/9;background-color:#000;height:100%;min-height:1px;min-width:1px;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.PAINTBOARD_CLASS_NAME_STATE_ON}{aspect-ratio:auto}.${a$1.PAINTBOARD_CLASS_NAME} video{display:block;height:100%;object-fit:cover;transition:opacity .3s;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.MIRRORED_CLASS_NAME}{transform:scaleX(-1)}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}{align-items:center;background-color:#000;color:#fff;cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;transition:background-color .2s;width:100%;z-index:5}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}:focus-visible{outline:2px solid #06c;outline-offset:-4px}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}:hover:not([hidden]){background-color:#000c}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{align-items:center;background-color:#00000080;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:6}.${a$1.CAMERA_RECOVERY_CLASS_NAME}[hidden],.${a$1.ERROR_CLASS_NAME}[hidden]{display:none}.${a$1.PAINTBOARD_CLASS_NAME} canvas{height:100%;left:0;object-fit:cover;pointer-events:none;position:absolute;top:0;transition:opacity .3s;width:100%}`,n=a$2`.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME}{-webkit-tap-highlight-color:rgba(255,255,255,0);align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label input[type=file]{position:absolute;top:-9999px}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label button{pointer-events:none}`,A=a$2`.${a$1.FROZEN_FRAME}{height:100%;left:0;object-fit:cover;opacity:1;position:absolute;top:0;width:100%}.${a$1.FROZEN_FRAME}[hidden]{opacity:0;pointer-events:none;visibility:hidden}`;return [i,o,n,A]}export{a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-SJIN27Q5.js';import {a as a$1}from'./chunk-CX2R2XQK.js';var d=class{constructor(e,n){this._paused=true;this._ended=false;this._seek=0;this.onEndedHandler=this.onEnded.bind(this);this.onPauseHandler=this.onPause.bind(this);this.onPlayHandler=this.onPlay.bind(this);this.node=new Audio,this.node.src=e,this.onInactive=n,this.node.addEventListener("ended",this.onEndedHandler),this.node.addEventListener("pause",this.onPauseHandler),this.node.addEventListener("play",this.onPlayHandler);}onEnded(){var e,n;this._paused=true,this._ended=true,(e=a)==null||e("\u{1F3B5} HTML5Sound: Playback ended"),(n=this.onInactive)==null||n.call(this,this);}onPause(){var e,n;this._paused=true,(e=a)==null||e("\u{1F3B5} HTML5Sound: Paused"),(n=this.onInactive)==null||n.call(this,this);}onPlay(){var e;this._paused=false,this._ended=false,(e=a)==null||e("\u{1F3B5} HTML5Sound: Playing");}play(){this._seek=0,this._paused=false,this._ended=false,this.node.currentTime=0,this.node.volume=1,a$1(()=>{let e=this.node.play();e&&e.catch(n=>{var s;n instanceof DOMException&&n.name==="AbortError"||(s=a)==null||s(`\u274C HTML5Sound.play() failed: ${n instanceof Error?n.message:String(n)}`);});});}pause(){this._paused||(this._paused=true,this._seek=this.node.currentTime,this.node.pause());}stop(){this._paused=true,this._ended=true,this._seek=0,this.node.currentTime=0,this.node.pause();}dispose(){var e;this.node.removeEventListener("ended",this.onEndedHandler),this.node.removeEventListener("pause",this.onPauseHandler),this.node.removeEventListener("play",this.onPlayHandler),(e=a)==null||e("\u{1F3B5} HTML5Sound: Disposed");}};export{d as a};