@scandit/web-datacapture-core 7.1.0 → 7.2.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 (148) hide show
  1. package/build/electron/common.cjs +1 -1
  2. package/build/electron/constants.cjs +1 -1
  3. package/build/electron/main.cjs +1 -1
  4. package/build/electron/preload.cjs +1 -1
  5. package/build/js/AimerViewfinder.d.ts +1 -0
  6. package/build/js/AimerViewfinder.js +1 -1
  7. package/build/js/Brush.d.ts +1 -0
  8. package/build/js/Brush.js +1 -1
  9. package/build/js/{Camera-DsOMNsZu.d.ts → Camera-BbwZV9Lu.d.ts} +77 -12
  10. package/build/js/Camera.d.ts +3 -2
  11. package/build/js/Camera.js +1 -1
  12. package/build/js/CameraAccess.d.ts +3 -2
  13. package/build/js/CameraRelated.d.ts +3 -2
  14. package/build/js/CameraRelated.js +1 -1
  15. package/build/js/Common.js +1 -1
  16. package/build/js/DataCaptureContext.d.ts +2 -1
  17. package/build/js/DataCaptureContext.js +1 -1
  18. package/build/js/DataCaptureContextRelated.d.ts +3 -2
  19. package/build/js/DataCaptureVersion.js +1 -1
  20. package/build/js/DataCaptureView.d.ts +2 -1
  21. package/build/js/DataCaptureView.js +1 -1
  22. package/build/js/Defaults.d.ts +2 -1
  23. package/build/js/Defaults.js +1 -1
  24. package/build/js/Feedback.js +1 -1
  25. package/build/js/FrameData.d.ts +3 -2
  26. package/build/js/ImageFrameSource.d.ts +3 -2
  27. package/build/js/LocationSelection.js +1 -1
  28. package/build/js/RectangularViewfinder.d.ts +1 -0
  29. package/build/js/RectangularViewfinder.js +1 -1
  30. package/build/js/ScanditIcon.js +1 -1
  31. package/build/js/ScanditIconBuilder.js +1 -1
  32. package/build/js/SingleImageUploader.d.ts +3 -2
  33. package/build/js/SingleImageUploader.js +1 -1
  34. package/build/js/SingleImageUploaderSettings.js +1 -1
  35. package/build/js/Vibration.js +1 -1
  36. package/build/js/Viewfinder.d.ts +5 -0
  37. package/build/js/chunks/chunk-2IAGUFM2.js +1 -0
  38. package/build/js/chunks/{chunk-RIMH6UPR.js → chunk-3BBG6EVS.js} +1 -1
  39. package/build/js/chunks/{chunk-AD3CNBDO.js → chunk-3OBWS6CO.js} +1 -1
  40. package/build/js/chunks/{chunk-PWRWWFPG.js → chunk-4QDKNW3V.js} +1 -1
  41. package/build/js/chunks/{chunk-6MF4F3EH.js → chunk-5FUZURCZ.js} +1 -1
  42. package/build/js/chunks/{chunk-76CQG6HG.js → chunk-6FPW3MIJ.js} +1 -1
  43. package/build/js/chunks/chunk-6HLE7FER.js +4 -0
  44. package/build/js/chunks/chunk-77BBIAZE.js +1 -0
  45. package/build/js/chunks/chunk-ACXIZNMK.js +1 -0
  46. package/build/js/chunks/chunk-AIC4H5KG.js +2 -0
  47. package/build/js/chunks/chunk-AOSR5K23.js +1 -0
  48. package/build/js/chunks/{chunk-YGFWA4WG.js → chunk-AYWOZOZP.js} +1 -1
  49. package/build/js/chunks/chunk-BA3RP6L2.js +1 -0
  50. package/build/js/chunks/chunk-BYMYBEMT.js +1 -0
  51. package/build/js/chunks/{chunk-R2VJDRLZ.js → chunk-CBF2PLFL.js} +1 -1
  52. package/build/js/chunks/chunk-CWOHXN5B.js +1 -0
  53. package/build/js/chunks/chunk-CXBLYHGE.js +1 -0
  54. package/build/js/chunks/{chunk-JO2MKLMM.js → chunk-DCVQRKUG.js} +1 -1
  55. package/build/js/chunks/{chunk-ZDYFZYVT.js → chunk-DCZONWJ2.js} +1 -1
  56. package/build/js/chunks/{chunk-CAIEX6BZ.js → chunk-E3TDSWVQ.js} +1 -1
  57. package/build/js/chunks/{chunk-64US32RY.js → chunk-EXY5MS5K.js} +1 -1
  58. package/build/js/chunks/{chunk-JRBLEJMD.js → chunk-FSWALUUO.js} +1 -1
  59. package/build/js/chunks/chunk-IHTCYPDZ.js +1 -0
  60. package/build/js/chunks/chunk-JVZYXEYO.js +1 -0
  61. package/build/js/chunks/{chunk-BWOCR6MD.js → chunk-KRIYEHHW.js} +1 -1
  62. package/build/js/chunks/{chunk-HC2AMLBI.js → chunk-L7TY4UEP.js} +1 -1
  63. package/build/js/chunks/{chunk-YEMIFGKZ.js → chunk-LU4WMIH5.js} +1 -1
  64. package/build/js/chunks/{chunk-EFNSFA3N.js → chunk-ORCTCIRE.js} +2 -2
  65. package/build/js/chunks/{chunk-7LG2KINM.js → chunk-PGNGNB6M.js} +1 -1
  66. package/build/js/chunks/{chunk-4YVKSEZS.js → chunk-SEAKJV3R.js} +1 -1
  67. package/build/js/chunks/chunk-SH2KZV6C.js +1 -0
  68. package/build/js/chunks/{chunk-7ALHRD5L.js → chunk-T5FGQOCF.js} +1 -1
  69. package/build/js/chunks/{chunk-7B2VPGLP.js → chunk-TCJPGGHY.js} +1 -1
  70. package/build/js/chunks/{chunk-NQC64CT7.js → chunk-UD3Z45BT.js} +1 -1
  71. package/build/js/chunks/{chunk-FHGLVS66.js → chunk-WSR7IH2J.js} +1 -1
  72. package/build/js/chunks/{chunk-7JX43F4O.js → chunk-Y6NN3VBO.js} +1 -1
  73. package/build/js/chunks/{chunk-T5QHKJ2U.js → chunk-YKP6UYCY.js} +1 -1
  74. package/build/js/chunks/chunk-ZE2WH3AH.js +1 -0
  75. package/build/js/chunks/{chunk-5PHKPYK6.js → chunk-ZG2DNH5P.js} +1 -1
  76. package/build/js/index.d.ts +3 -2
  77. package/build/js/index.js +1 -1
  78. package/build/js/private/AnchorPositions.js +1 -1
  79. package/build/js/private/CameraAccess.d.ts +3 -2
  80. package/build/js/private/CameraManager.d.ts +3 -2
  81. package/build/js/private/CameraManager.js +1 -1
  82. package/build/js/private/CanvasDrawerWithMetrics.d.ts +3 -2
  83. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +3 -2
  84. package/build/js/private/CustomLocationsView.d.ts +12 -1
  85. package/build/js/private/CustomLocationsView.js +1 -1
  86. package/build/js/private/DataCaptureContextRelated.d.ts +3 -2
  87. package/build/js/private/FrameReaders/FrameReader.d.ts +3 -2
  88. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -1
  89. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +2 -1
  90. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  91. package/build/js/private/FrameReaders/index.d.ts +3 -2
  92. package/build/js/private/FrameReaders/index.js +1 -1
  93. package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
  94. package/build/js/private/GestureRecognizer/index.js +1 -1
  95. package/build/js/private/Helper.js +1 -1
  96. package/build/js/private/HtmlElementState.js +1 -1
  97. package/build/js/private/NormalizedConfigureOptions.d.ts +3 -2
  98. package/build/js/private/ViewControls+related.js +1 -1
  99. package/build/js/private/ViewControls_related.d.ts +3 -2
  100. package/build/js/private/ViewsRegistry.d.ts +3 -2
  101. package/build/js/private/nativeHandle.d.ts +4 -0
  102. package/build/js/private/nativeHandle.js +1 -0
  103. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  104. package/build/js/private/ui/atoms/ShutterButton.d.ts +1 -1
  105. package/build/js/private/ui/atoms/ShutterButton.js +22 -6
  106. package/build/js/private/ui/atoms/Toast.d.ts +3 -2
  107. package/build/js/private/ui/atoms/Toast.js +1 -1
  108. package/build/js/private/ui/colors.js +1 -1
  109. package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -1
  110. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  111. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  112. package/build/js/private/utils/index.js +1 -1
  113. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +21 -0
  114. package/build/js/private/utils/replaceImagesInViewUtils.js +1 -0
  115. package/build/js/private/utils/symbols.d.ts +7 -0
  116. package/build/js/private/utils/symbols.js +1 -0
  117. package/build/js/private/utils/warnMultithreadingUnavailable.d.ts +4 -0
  118. package/build/js/private/utils/warnMultithreadingUnavailable.js +2 -0
  119. package/build/js/sdk.d.ts +3 -2
  120. package/build/js/worker/WorkerMain.d.ts +3 -2
  121. package/build/js/worker/WorkerMain.js +1 -1
  122. package/build/js/worker/dataCapture.inlineWorker.d.ts +4 -3
  123. package/build/js/worker/dataCapture.inlineWorker.js +1 -1
  124. package/build/js/worker/dataCaptureEngine.d.ts +2 -1
  125. package/build/js/worker/dataCaptureEngine.js +1 -1
  126. package/build/js/worker/dataCaptureLoader.d.ts +3 -2
  127. package/build/js/worker/dataCaptureLoader.js +1 -1
  128. package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -1
  129. package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
  130. package/build/js/worker/helper.js +1 -1
  131. package/build/js/worker/helperFs.js +1 -1
  132. package/build/js/worker/importWasmScript.js +1 -1
  133. package/build/js/worker/index.d.ts +3 -2
  134. package/build/js/worker/index.js +1 -1
  135. package/package.json +2 -11
  136. package/build/js/chunks/chunk-2WN7BGOB.js +0 -1
  137. package/build/js/chunks/chunk-5DETRQ7Y.js +0 -1
  138. package/build/js/chunks/chunk-A4OAOJ72.js +0 -1
  139. package/build/js/chunks/chunk-BOCQXSFU.js +0 -1
  140. package/build/js/chunks/chunk-G33OCZIN.js +0 -1
  141. package/build/js/chunks/chunk-GAVFMG2G.js +0 -1
  142. package/build/js/chunks/chunk-GZ4F55TI.js +0 -1
  143. package/build/js/chunks/chunk-KRWPFM7Z.js +0 -1
  144. package/build/js/chunks/chunk-LDJ53PEJ.js +0 -1
  145. package/build/js/chunks/chunk-QK3D2DQM.js +0 -4
  146. package/build/js/chunks/chunk-RQQK6Z5F.js +0 -2
  147. package/build/js/chunks/chunk-TM7QAJVA.js +0 -1
  148. package/build/js/chunks/chunk-U2GDN6EV.js +0 -1
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-GZ4F55TI.js';import {d as d$1}from'./chunk-BIGR7VVJ.js';import {a}from'./chunk-XR65N6EG.js';import {a as a$2}from'./chunk-MU4VAJIM.js';import {f as f$1,g as g$1}from'./chunk-NQC64CT7.js';var S=(t=>(t.Idle="idle",t.Pressed="pressed",t))(S||{}),d=class{constructor(e,t){this.state="idle";this.isHover=!1;this.control=e,this.domHost=t,this.onTouchStartListener=this.onTouchStart.bind(this),this.onMouseEnterListener=this.onMouseEnter.bind(this),this.onMouseLeaveListener=this.onMouseLeave.bind(this),this.onClickListener=this.onClick.bind(this),this.setup();}get frameSource(){var e,t;return (t=(e=this.control.view)==null?void 0:e.getContext())==null?void 0:t.frameSource}get context(){var e;return (e=this.control.view)==null?void 0:e.getContext()}async install(){this.button||this.setup();let e=await this.canShow();return e?(this.updateButtonBackground(this.button,this.getImageFromState()),this.show()):this.hide(),e}remove(e=!1){e&&this.button?(this.button.removeEventListener("mouseenter",this.onMouseEnterListener),this.button.removeEventListener("mouseleave",this.onMouseLeaveListener),this.button.removeEventListener("touchstart",this.onTouchStartListener),this.button.removeEventListener("click",this.onClickListener),this.button.remove(),this.isHover=!1,this.button=void 0):this.hide();}hide(){this.button&&(this.button.style.display="none");}show(){this.button&&(this.button.style.display="block");}setupButton(){let e=document.createElement("button");return e.type="button",e.style.display="none",e.className=`scandit-control-widget scandit-control-widget-${this.control.type}`,this.updateButtonBackground(e,this.getImageFromState()),this.domHost.append(e),e.addEventListener("mouseenter",this.onMouseEnterListener),e.addEventListener("mouseleave",this.onMouseLeaveListener),a$2.isDesktopDevice()||e.addEventListener("touchstart",this.onTouchStartListener),e.addEventListener("click",this.onClickListener),e.setAttribute("aria-pressed",String(this.state==="pressed")),this.button=e,this.button}setup(){this.setupButton();}onTouchStart(){var e,t;(e=this.button)==null||e.removeEventListener("mouseenter",this.onMouseEnterListener),(t=this.button)==null||t.removeEventListener("mouseleave",this.onMouseLeaveListener);}onMouseEnter(){this.isHover=!0,this.updateButtonBackground(this.button,this.getImageFromState());}onMouseLeave(){this.isHover=!1,this.updateButtonBackground(this.button,this.getImageFromState());}onClick(){var e;this.state=this.state==="pressed"?"idle":"pressed",this.buttonClicked(),this.updateButtonBackground(this.button,this.getImageFromState()),(e=this.button)==null||e.setAttribute("aria-pressed",String(this.state==="pressed"));}updateButtonBackground(e,t){t!=null&&e!=null&&(e.style.backgroundImage=`url(${JSON.stringify(t)})`);}},C=class extends d{constructor(e,t){super(e,t);}async buttonClicked(){await this.frameSource.setDesiredTorchState(this.retrieveTorchState()==="on"?"off":"on");}async canShow(){return this.isTorchAvailable()}getImageFromState(){return this.retrieveTorchState()==="on"?this.isHover?this.control.torchOnPressedImage:this.control.torchOnImage:this.isHover?this.control.torchOffPressedImage:this.control.torchOffImage}setup(){if(this.control.torchOffImage==null||this.control.torchOnImage==null){a.log(a.Level.Warn,"TorchSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async isTorchAvailable(){return f$1(this.frameSource)?this.frameSource.isTorchAvailable():!1}retrieveTorchState(){return f$1(this.frameSource)?this.frameSource.getDesiredTorchState():"off"}},f=class o extends d{constructor(e,t){super(e,t);}static get CameraAccess(){return d$1}static get Camera(){return a$1}async canShow(){return (await o.CameraAccess.getCameras()).length>1}getImageFromState(){return this.isHover?this.control.pressedImage:this.control.idleImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getNextDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.idleImage==null){a.log(a.Level.Warn,"CameraSwitchControl idle icon is not set or is empty, the control will not be rendered.");return}super.setup();}async getNextDeviceCamera(){var s,n;let e=await o.CameraAccess.getCameras(),t=this.frameSource?this.frameSource:null,i=(s=t==null?void 0:t.cameraManager.activeCamera)==null?void 0:s.deviceId,r=e.findIndex(c=>c.deviceId===i);return r>-1?(n=e[r+1])!=null?n:e[0]:e.length>0?e[0]:null}async switchCameras(e){var n,c,u;this.isTransitioning=!0;let t=(n=this.context)==null?void 0:n.frameSource,i,r;t!=null&&(i=new g$1(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off"));let s=o.Camera.fromDeviceCamera(e);i!=null&&await s.applySettings(i),await((c=this.context)==null?void 0:c.setFrameSource(s)),await((u=this.context)==null?void 0:u.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=!1;}},g=class o extends d{constructor(e,t){super(e,t);}static get Camera(){return a$1}static get CameraAccess(){return d$1}async install(){let e=await super.install();return e&&await this.setInitialCamera(),e}async canShow(){return !a$2.isIOSDeviceWithExtendedCameraAccess()||!f$1(this.frameSource)?!1:d$1.isIOSBackDualWideCameraLabel(this.frameSource.label)||d$1.isIOSBackCameraLabel(this.frameSource.label)||d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label)}getImageFromState(){return this.isUltraWideBackCamera()?this.isHover?this.control.cameraFOVUltraWidePressedImage:this.control.cameraFOVUltraWideImage:this.isHover?this.control.cameraFOVWidePressedImage:this.control.cameraFOVWideImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getAlternativeDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.cameraFOVUltraWideImage==null||this.control.cameraFOVWideImage==null){a.log(a.Level.Warn,"CameraFOVSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async setInitialCamera(){var e,t;if(!this.isTransitioning&&!d$1.isIOSBackCameraLabel((t=(e=this.frameSource)==null?void 0:e.label)!=null?t:"")){let r=(await o.CameraAccess.getCameras()).find(s=>d$1.isIOSBackCameraLabel(s.label));r&&await this.switchCameras(r);}}isUltraWideBackCamera(){return f$1(this.frameSource)?d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label):!1}async getAlternativeDeviceCamera(){return (await o.CameraAccess.getCameras()).find(t=>this.isUltraWideBackCamera()?d$1.isIOSBackCameraLabel(t.label):d$1.isIOSUltraWideBackCameraLabel(t.label))}async switchCameras(e){var n,c,u;this.isTransitioning=!0;let t=(n=this.context)==null?void 0:n.frameSource,i,r;t!=null&&(i=new g$1(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off"));let s=o.Camera.fromDeviceCamera(e);i!=null&&await s.applySettings(i),await((c=this.context)==null?void 0:c.setFrameSource(s)),await((u=this.context)==null?void 0:u.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=!1;}};export{S as a,C as b,f as c,g as d};
1
+ import {a as a$1}from'./chunk-2IAGUFM2.js';import {d as d$1}from'./chunk-BIGR7VVJ.js';import {a}from'./chunk-XR65N6EG.js';import {a as a$2}from'./chunk-MU4VAJIM.js';import {f as f$1,g as g$1}from'./chunk-UD3Z45BT.js';var S=(t=>(t.Idle="idle",t.Pressed="pressed",t))(S||{}),d=class{constructor(e,t){this.state="idle";this.isHover=!1;this.control=e,this.domHost=t,this.onTouchStartListener=this.onTouchStart.bind(this),this.onMouseEnterListener=this.onMouseEnter.bind(this),this.onMouseLeaveListener=this.onMouseLeave.bind(this),this.onClickListener=this.onClick.bind(this),this.setup();}get frameSource(){var e,t;return (t=(e=this.control.view)==null?void 0:e.getContext())==null?void 0:t.frameSource}get context(){var e;return (e=this.control.view)==null?void 0:e.getContext()}async install(){this.button||this.setup();let e=await this.canShow();return e?(this.updateButtonBackground(this.button,this.getImageFromState()),this.show()):this.hide(),e}remove(e=!1){e&&this.button?(this.button.removeEventListener("mouseenter",this.onMouseEnterListener),this.button.removeEventListener("mouseleave",this.onMouseLeaveListener),this.button.removeEventListener("touchstart",this.onTouchStartListener),this.button.removeEventListener("click",this.onClickListener),this.button.remove(),this.isHover=!1,this.button=void 0):this.hide();}hide(){this.button&&(this.button.style.display="none");}show(){this.button&&(this.button.style.display="block");}setupButton(){let e=document.createElement("button");return e.type="button",e.style.display="none",e.className=`scandit-control-widget scandit-control-widget-${this.control.type}`,this.updateButtonBackground(e,this.getImageFromState()),this.domHost.append(e),e.addEventListener("mouseenter",this.onMouseEnterListener),e.addEventListener("mouseleave",this.onMouseLeaveListener),a$2.isDesktopDevice()||e.addEventListener("touchstart",this.onTouchStartListener),e.addEventListener("click",this.onClickListener),e.setAttribute("aria-pressed",String(this.state==="pressed")),this.button=e,this.button}setup(){this.setupButton();}onTouchStart(){var e,t;(e=this.button)==null||e.removeEventListener("mouseenter",this.onMouseEnterListener),(t=this.button)==null||t.removeEventListener("mouseleave",this.onMouseLeaveListener);}onMouseEnter(){this.isHover=!0,this.updateButtonBackground(this.button,this.getImageFromState());}onMouseLeave(){this.isHover=!1,this.updateButtonBackground(this.button,this.getImageFromState());}onClick(){var e;this.state=this.state==="pressed"?"idle":"pressed",this.buttonClicked(),this.updateButtonBackground(this.button,this.getImageFromState()),(e=this.button)==null||e.setAttribute("aria-pressed",String(this.state==="pressed"));}updateButtonBackground(e,t){t!=null&&e!=null&&(e.style.backgroundImage=`url(${JSON.stringify(t)})`);}},C=class extends d{constructor(e,t){super(e,t);}async buttonClicked(){await this.frameSource.setDesiredTorchState(this.retrieveTorchState()==="on"?"off":"on");}async canShow(){return this.isTorchAvailable()}getImageFromState(){return this.retrieveTorchState()==="on"?this.isHover?this.control.torchOnPressedImage:this.control.torchOnImage:this.isHover?this.control.torchOffPressedImage:this.control.torchOffImage}setup(){if(this.control.torchOffImage==null||this.control.torchOnImage==null){a.log(a.Level.Warn,"TorchSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async isTorchAvailable(){return f$1(this.frameSource)?this.frameSource.isTorchAvailable():!1}retrieveTorchState(){return f$1(this.frameSource)?this.frameSource.getDesiredTorchState():"off"}},f=class o extends d{constructor(e,t){super(e,t);}static get CameraAccess(){return d$1}static get Camera(){return a$1}async canShow(){return (await o.CameraAccess.getCameras()).length>1}getImageFromState(){return this.isHover?this.control.pressedImage:this.control.idleImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getNextDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.idleImage==null){a.log(a.Level.Warn,"CameraSwitchControl idle icon is not set or is empty, the control will not be rendered.");return}super.setup();}async getNextDeviceCamera(){var s,n;let e=await o.CameraAccess.getCameras(),t=this.frameSource?this.frameSource:null,i=(s=t==null?void 0:t.cameraManager.activeCamera)==null?void 0:s.deviceId,r=e.findIndex(c=>c.deviceId===i);return r>-1?(n=e[r+1])!=null?n:e[0]:e.length>0?e[0]:null}async switchCameras(e){var n,c,u;this.isTransitioning=!0;let t=(n=this.context)==null?void 0:n.frameSource,i,r;t!=null&&(i=new g$1(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off"));let s=o.Camera.fromDeviceCamera(e);i!=null&&await s.applySettings(i),await((c=this.context)==null?void 0:c.setFrameSource(s)),await((u=this.context)==null?void 0:u.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=!1;}},g=class o extends d{constructor(e,t){super(e,t);}static get Camera(){return a$1}static get CameraAccess(){return d$1}async install(){let e=await super.install();return e&&await this.setInitialCamera(),e}async canShow(){return !a$2.isIOSDeviceWithExtendedCameraAccess()||!f$1(this.frameSource)?!1:d$1.isIOSBackDualWideCameraLabel(this.frameSource.label)||d$1.isIOSBackCameraLabel(this.frameSource.label)||d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label)}getImageFromState(){return this.isUltraWideBackCamera()?this.isHover?this.control.cameraFOVUltraWidePressedImage:this.control.cameraFOVUltraWideImage:this.isHover?this.control.cameraFOVWidePressedImage:this.control.cameraFOVWideImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getAlternativeDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.cameraFOVUltraWideImage==null||this.control.cameraFOVWideImage==null){a.log(a.Level.Warn,"CameraFOVSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async setInitialCamera(){var e,t;if(!this.isTransitioning&&!d$1.isIOSBackCameraLabel((t=(e=this.frameSource)==null?void 0:e.label)!=null?t:"")){let r=(await o.CameraAccess.getCameras()).find(s=>d$1.isIOSBackCameraLabel(s.label));r&&await this.switchCameras(r);}}isUltraWideBackCamera(){return f$1(this.frameSource)?d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label):!1}async getAlternativeDeviceCamera(){return (await o.CameraAccess.getCameras()).find(t=>this.isUltraWideBackCamera()?d$1.isIOSBackCameraLabel(t.label):d$1.isIOSUltraWideBackCameraLabel(t.label))}async switchCameras(e){var n,c,u;this.isTransitioning=!0;let t=(n=this.context)==null?void 0:n.frameSource,i,r;t!=null&&(i=new g$1(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off"));let s=o.Camera.fromDeviceCamera(e);i!=null&&await s.applySettings(i),await((c=this.context)==null?void 0:c.setFrameSource(s)),await((u=this.context)==null?void 0:u.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=!1;}};export{S as a,C as b,f as c,g as d};
@@ -0,0 +1 @@
1
+ import {d}from'./chunk-AIC4H5KG.js';import {a as a$4}from'./chunk-ZE2WH3AH.js';import {a as a$5}from'./chunk-AYWOZOZP.js';import {c as c$1,a as a$6}from'./chunk-CWOHXN5B.js';import {c}from'./chunk-B5JOQVFY.js';import {a as a$2}from'./chunk-AOSR5K23.js';import {a as a$1}from'./chunk-O7TZTIHO.js';import {a}from'./chunk-XR65N6EG.js';import {a as a$3}from'./chunk-QCZSSQAQ.js';import {c as c$2,e}from'./chunk-H4TH4342.js';var D=class D{constructor(e,t){this.hintPresenterV2=null;this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL=10;this.redrawInterval=1e3/30;this.redrawRequests=[];this._isDrawLoopRunning=!1;this.frameDataPool=new Map;this.lastFrameCounter=-1;this.poorMansBenchmarkLogs=!1;this.writableDataPathStandard="/scandit_sync_folder";this.resourceFilesSubfolder="resources";this.performanceMetricsReporterTimer=void 0;this.performanceMetrics={frameDataPoolSize:0,processedFramesCount:0,redrawRequestsCount:0,actualRedrawsCount:0};this.gestureListener=null;this.webPlatformHintPresenter=null;this.moduleHandler=e,this.workerFunctions=t,this._loadProgressCallback=this._loadProgressCallback.bind(this),c(this.getWasmMetadata());}get Module(){return this.moduleHandler.get()}set isDrawLoopRunning(e){this._isDrawLoopRunning=e,!e&&typeof this.loopTimeoutId=="number"&&(clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0);}get isDrawLoopRunning(){return this._isDrawLoopRunning}convertToLoadableFrameData(e){let t=this.getNextFrameId();this.frameDataPool.set(t,new Uint8ClampedArray(e.getFrameData()));let s=this.lastUsedModuleMirrorAxis==null?!1:this.lastUsedModuleMirrorAxis!==this.Module.Axis.None;return {frameId:t,width:e.getWidth(),height:e.getHeight(),isFrameSourceMirrored:s}}createContext(e){var g,y,f,b,h;let t=this.getModeDeserializers(),s=c$1(location);(s==="localhost"||s==="127.0.0.1")&&navigator.userAgent.includes("Electron")&&e.appName!=null&&(s+=`-${e.appName}`),this.parentDomain=e.parentDomain,this.contextDeserializer=new this.Module.DataCaptureContextDeserializer(this.writableDataPath,e.deviceId,e.context.deviceModelName,s,this.parentDomain,t,e.delayedRegistration,e.highEndBlurryRecognition,this.resourcePath);let a=this.contextDeserializer.contextFromJson(JSON.stringify(e.context));if(a==null){let r=this.contextDeserializer.getLastError();throw new Error(`Could not create the context: ${r}`)}let i=a.getView();this.context=a.getContext(),a.delete();let d=this.Module.DataCaptureContextListener.extend("DataCaptureContextListener",{didChangeStatus:(r,o)=>{this.contextDidChangeStatus(JSON.parse(o.toJson())),r.delete();},didStartObservingContext:r=>{this.didStartObservingContext(),r.delete();},didStopObservingContext:r=>{r.delete();}}),p=this.Module.DataCaptureContextFrameListener.extend("DataCaptureContextFrameListener",{onObservationStarted:r=>{r.delete();},onObservationStopped:r=>{r.delete();},onFrameProcessingStarted:(r,o)=>{this.workerFunctions.postMessage({type:"onFrameProcessingStarted"}),o.delete(),r.delete();},onFrameProcessingFinished:(r,o)=>{this.workerFunctions.postMessage({type:"onFrameProcessingFinished"}),o.delete(),r.delete();},onFrameSkipped:(r,o)=>{this.workerFunctions.postMessage({type:"onFrameSkipped"}),o.delete(),r.delete();}}),m=this.Module.GestureRecognizer.extend("GestureRecognizer",{setGestureListener:(r,o)=>{var M;(M=this.gestureListener)==null||M.delete(),this.gestureListener=r.clone(),r.delete();}});(g=this.gestureRecognizer)==null||g.delete(),this.gestureRecognizer=new m;let u=new d;this.context.addListener(u),u.delete();let c=new p;this.context.addFrameListener(c),c.delete(),this.setView(i),(y=this.view)==null||y.setGestureRecognizer(this.gestureRecognizer);let w=this.Module.PlatformHintPresenter.extend("PlatformHintPresenter",{setHintPresenter:r=>{r.delete();},showToast:r=>{this.workerFunctions.postMessage({type:"showToast",payload:JSON.parse(r)});},hideToast:r=>{this.workerFunctions.postMessage({type:"hideToast",payload:JSON.parse(r)});},showGuidance:r=>{this.workerFunctions.postMessage({type:"showGuidance",payload:JSON.parse(r)});},hideGuidance:r=>{this.workerFunctions.postMessage({type:"hideGuidance",payload:JSON.parse(r)});},startUpdateTimer:r=>{this.workerFunctions.postMessage({type:"startUpdateTimer",payload:{duration:{unit:"ms",value:r}}});},stopUpdateTimer:()=>{this.workerFunctions.postMessage({type:"stopUpdateTimer"});}});(f=this.hintPresenterV2)==null||f.delete(),(b=this.webPlatformHintPresenter)==null||b.delete(),this.webPlatformHintPresenter=new w,this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter),(h=this.view)==null||h.setHintPresenterV2(this.hintPresenterV2);}onTap(e){var t;(t=this.gestureListener)==null||t.onTap(JSON.stringify(e));}hintPresenterV2Update(){var e;(e=this.hintPresenterV2)==null||e.update();}startReportingPerformanceMetrics(){this.performanceMetricsReporterTimer==null&&(this.performanceMetricsReporterTimer=setInterval(()=>{this.reportPerformanceMetrics();for(let e of Object.keys(this.performanceMetrics))this.performanceMetrics[e]=0;},1e3));}async reportPerformanceMetrics(){this.workerFunctions.postMessage({type:"performanceMetricsReport",payload:{...this.performanceMetrics}});}deleteFrameData(e){this.frameDataPool.delete(e);}dispose(){var e,t;this.context.dispose(),this.frameDataPool.clear(),this.isDrawLoopRunning=!1,this.lastFrameCounter=-1,(e=this.gestureRecognizer)==null||e.delete(),this.gestureRecognizer=null,(t=this.gestureListener)==null||t.delete(),this.gestureListener=null;}flushAnalytics(){this.context.flushAnalytics();}extractCentaurusLicense(e){return {payload:{centaurus:{licenseKey:this.Module.LicenseUtils[D.get3dPartyLicenseKeyMethodName](e)}}}}getModeDeserializers(){return new this.Module.VectorDataCaptureModeDeserializer}loadLibrary(e){return this.libraryLoadingPromise!=null?this.libraryLoadingPromise:(this.libraryLoadingPromise=this.setup(e),this.libraryLoadingPromise)}processFrame(e){var i;if(this.context==null)return {payload:e,transferables:[e.data.buffer]};let t=e.data,s=e.colorType==="GRAYSCALE"?this.Module.ImageBufferFormat.Grayscale8:this.Module.ImageBufferFormat.Rgba8888,a=this.Module.allocateUint8Array(t.byteLength);return this.Module.HEAPU8.set(t,a),(i=this.imageFrameSource)==null||i.outputFrame(a,e.width,e.height,s),{payload:e,transferables:[e.data.buffer]}}reportCameraProperties(e){this.context.setCameraProperties(e.deviceId,e.isFrontFacing,e.hasAutofocus);}requestFrameData(e){let t=this.frameDataPool.get(e);return t==null?{payload:{data:null}}:{payload:{data:t},transferables:[t.buffer]}}scheduleRedraw(e,t){this.addRedrawRequest(t),this.isDrawLoopRunning||this.startDrawLoop(e);}sendViewRefreshCommands(e){this.workerFunctions.postMessage({type:"draw",payload:e},[e.buffer]);}setFrameSource(e,t){var s;this.lastUsedModuleMirrorAxis=this.mapMirrorAxisOnModule(e),(s=this.imageFrameSource)==null||s.delete(),this.imageFrameSource=new this.Module.ImageBufferFrameSource(this.lastUsedModuleMirrorAxis,t,0),this.context.setFrameSource(this.imageFrameSource);}startDrawLoop(e){this.isDrawLoopRunning=!0;let t=i=>this.redrawRequests.length>0&&this.redrawRequests[0]<=i,s=i=>{for(;this.redrawRequests.length>0&&this.redrawRequests[0]<=i;)this.redrawRequests.shift();},a=()=>{this.loopTimeoutId=setTimeout(()=>{if(!this.isDrawLoopRunning)return;let i=performance.now();if(t(i)){s(i),e.draw();let d=e.getDrawCommands();this.sendViewRefreshCommands(new Uint8Array(d));}a();},this.redrawInterval);};a();}updateContext(e){if(this.context!=null&&this.contextDeserializer!=null){e.view!=null&&!e.view.visible&&this.context.flushAnalytics();let t=this.onBeforeUpdateContextHook(e),s=this.contextDeserializer.updateContextFromJson(this.context,this.view,JSON.stringify(t.context));if(s==null){let i=this.contextDeserializer.getLastError();throw new Error(`Could not update the context: ${i}`)}this.context.delete(),this.context=s.getContext();let a$1=s.getView();s.delete(),a$1!=null&&t.view!=null&&a$1.setViewSize(t.view.width,t.view.height,t.view.orientation),this.hintPresenterV2!=null&&(a$1==null||a$1.setHintPresenterV2(this.hintPresenterV2)),this.gestureRecognizer!=null&&(a$1==null||a$1.setGestureRecognizer(this.gestureRecognizer)),this.setView(a$1),a.debug("context updated",t);}}onBeforeUpdateContextHook(e){return e}onDocumentVisibilityChange(e){e==="hidden"&&this.context.flushAnalytics();}isFeatureSupported(e){return {payload:{supported:this.context.isFeatureSupported(e)}}}getViewfinderInfo(){var e,t;return {payload:{isDisplayingViewfinder:(t=(e=this.view)==null?void 0:e.isDisplayingViewfinder())!=null?t:!1,rect:JSON.parse(this.view.getViewfinderRect())}}}getOpenSourceSoftwareLicenseInfo(){return {payload:{licenseText:this.Module.OpenSourceSoftwareLicenseInfo.getLicenseText()}}}getNextFrameId(){return this.lastFrameCounter++,this.lastFrameCounter>=this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL&&(this.lastFrameCounter=0),this.lastFrameCounter}getWasmDynamicLibraries(e){return this.getWasmSideModuleFileName()==null?[]:[`${e.replace(/\/[^/]*$/,"/")}${this.getWasmSideModuleFileName()}`]}getWasmCoreExpectedHash(e,t){return t?e?globalThis.SDC_WASM_CORE_MT_SIMD_HASH:globalThis.SDC_WASM_CORE_MT_HASH:e?globalThis.SDC_WASM_CORE_SIMD_HASH:""}getWasmCoreFileName(e,t){return t?e?globalThis.SDC_WASM_CORE_MT_SIMD_FILE_NAME:globalThis.SDC_WASM_CORE_MT_FILE_NAME:e?globalThis.SDC_WASM_CORE_SIMD_FILE_NAME:""}getWasmMetadata(){return globalThis.WASM_METADATA}getWasmSideModuleFileName(){return ""}_loadProgressCallback(e){this.workerFunctions.postMessage({type:"loadLibraryProgress",payload:e});}addRedrawRequest(e){this.redrawRequests.push(Math.round(performance.now())+e),this.redrawRequests.sort((t,s)=>t-s);}contextDidChangeStatus(e){e.code===260?e.message=e.message.replace("domain name",`domain name (${c$1(location)})`):e.code===265&&(e.message=e.message.replace("domain name",`domain name (${this.parentDomain})`)),this.workerFunctions.postMessage({type:"contextDidChangeStatus",payload:e});}didStartObservingContext(){this.workerFunctions.postMessage({type:"didStartObservingContext"});}mapMirrorAxisOnModule(e){switch(e){case"None":return this.Module.Axis.None;case"X":return this.Module.Axis.X;case"Y":return this.Module.Axis.Y;default:return this.Module.Axis.None}}setView(e){this.view=e,this.setViewRefreshHandler(e),e==null&&(this.isDrawLoopRunning=!1,this.sendViewRefreshCommands(new Uint8Array([])));}addNativeOverlay(e){a.warn("addNativeOverlay has not been implemented for this module",e);}removeNativeOverlay(e){a.warn("removeNativeOverlay has not been implemented for this module",e);}setViewRefreshHandler(e){if(e==null||e.isViewRefreshHandlerSet)return;let t=this.Module.NeedsRedrawDelegate.extend("NeedsRedrawDelegate",{setNeedsRedrawIn:this.scheduleRedraw.bind(this,e)}),s=new t;e.setNeedsRedrawDelegate(s),e.isViewRefreshHandlerSet=!0;}setupDataDecoding(){let e=this.moduleHandler.get(),t=e.DataDecoding.extend("DataDecoding",{decode(s,a){try{let i=JSON.parse(a),d=[];for(let p of i){let m=new TextDecoder(p.ianaName,{fatal:!0});d.push(m.decode(s.slice(p.startIndex,p.endIndex)));}return d.join("")}catch(i){return ""}}});e.setDataDecoding(new t);}start(e,t,s){e&&t&&(this.setupDataDecoding(),this.moduleHandler.get().callMain(),this.moduleHandler.get().__emscripten_proxy_main!==void 0||s());}getWritableDataPath(e){return e!=null?(a.debug(`IndexedDB database name override in use to recover from blocked standard database: ${e}`),e):this.writableDataPathStandard}numOfMBToPages(e){return Math.ceil(1024*e*1024/64/1024)}async setup({libraryLocation:e$1,locationPath:t,writableDataPathOverride:s,overrideThreadsSupport:a$7,overrideSimdSupport:i,verifyResponseHash:d$1,referredOrigin:p,fixedWasmMemory:m}){var x;let u=!1,c=!1;this.writableDataPath=this.getWritableDataPath(s),this.resourcePath=`${e$1}${this.resourceFilesSubfolder}/`,globalThis.path=t;let{resolve:w,reject:g,promise:y}=new a$1,f=a$2.sdkVersion();if(f==="")throw new a$3({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let[b,h]=await Promise.all([c$2(),e()]);a$7!=="auto"&&(h=a$7==="on"),i!=="auto"&&(b=i==="on");let r=this.getWasmCoreFileName(b,h),o=d(f,e$1,r),{jsURI:M,wasmURI:P}=o,N={instantiateWasm:(l,W)=>(a$6({importObject:l,wasmURI:P,expectedHash:this.getWasmCoreExpectedHash(b,h),verifyResponseHash:d$1,successCallback:W,progressCallback:this._loadProgressCallback,referredOrigin:p}),{})},C=m===null?null:new WebAssembly.Memory({initial:this.numOfMBToPages(m),maximum:this.numOfMBToPages(m),shared:h});return C!==null&&a.log(a.Level.Debug,"Fixed wasmMemory set",C),this.moduleHandler.set({...C?{wasmMemory:C}:{},mainScriptUrlOrBlob:M,canvas:(x=this.workerFunctions.getOffscreenCanvas())!=null?x:{getContext:()=>null},...N,dynamicLibraries:this.getWasmDynamicLibraries(P),locateFile:l=>e$1+l,noInitialRun:!0,preRun:[async()=>{try{await a$4({writableDataPath:this.writableDataPath});}catch(l){if(l.name==="BlockedIndexedDB"){g(l.toString());return}a.log(a.Level.Debug,"No IndexedDB support, some data will not be persisted:",l);}c=!0,this.start(c,u,w);}],onMainComplete:()=>{if([u,c].includes(!1)){a.log(a.Level.Warn,{runtimeLoaded:u,fileSystemSynced:c},"Both runtimeLoaded and fileSystemSynced should be true when calling onMainComplete"),g("onMainComplete has been called but runtime or file system was not ready.");return}w();},onRuntimeInitialized:()=>{u=!0,this.start(c,u,w);},print:l=>{a.log(a.Level.Info,l);}}),await a$5(M,f)||g(`Couldn't retrieve Scandit Data Capture library at ${M}, did you configure the path for it correctly?`),y}};D.get3dPartyLicenseKeyMethodName=atob("Z2V0QmxpbmtJZExpY2Vuc2VLZXk=");var T=D;export{T as a};
@@ -1,4 +1,4 @@
1
- import {a as a$5}from'./chunk-76CQG6HG.js';import {a as a$6}from'./chunk-7XQ3GHYH.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$3}from'./chunk-3A4KLILV.js';import {a as a$2}from'./chunk-U6BTTEV6.js';import {a as a$4}from'./chunk-GE4CBD4E.js';var d="scandit-loading-overlay",t=class t extends a$1{constructor(){super();this._progressBar=null;this._label=null;let e=this.attachShadow({mode:"open"});e.innerHTML=a$2`
1
+ import {a as a$5}from'./chunk-6FPW3MIJ.js';import {a as a$6}from'./chunk-7XQ3GHYH.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$3}from'./chunk-3A4KLILV.js';import {a as a$2}from'./chunk-U6BTTEV6.js';import {a as a$4}from'./chunk-GE4CBD4E.js';var d="scandit-loading-overlay",t=class t extends a$1{constructor(){super();this._progressBar=null;this._label=null;let e=this.attachShadow({mode:"open"});e.innerHTML=a$2`
2
2
  <div class="loading-overlay">
3
3
  <label for="scandit-progress" class="message">Loading...</label>
4
4
  <scandit-progress-bar id="scandit-progress" min="0" max="100"></scandit-progress-bar>
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-MW5PTAU7.js';import {a as a$1}from'./chunk-QHBIT2WY.js';import {b,a as a$2}from'./chunk-SK6L34IF.js';var m=`
1
+ import {b,a as a$2}from'./chunk-SK6L34IF.js';import {a}from'./chunk-MW5PTAU7.js';import {a as a$1}from'./chunk-QHBIT2WY.js';var m=`
2
2
  attribute vec2 a_position;
3
3
  varying vec2 v_texcoord;
4
4
 
@@ -1 +1 @@
1
- import {d}from'./chunk-CAIEX6BZ.js';var u=(o=>(o.On="on",o.Off="off",o.Standby="standby",o.Starting="starting",o.Stopping="stopping",o.BootingUp="bootingUp",o.WakingUp="wakingUp",o.GoingToSleep="goingToSleep",o.ShuttingDown="shuttingDown",o))(u||{}),c=(t=>(t.On="on",t.Off="off",t))(c||{}),m=(t=>(t.WorldFacing="worldFacing",t.UserFacing="userFacing",t))(m||{}),p=(r=>(r.Auto="auto",r.HD="hd",r.FullHD="fullHd",r.UHD4K="uhd4k",r))(p||{}),g=(r=>(r.None="none",r.Manual="manual",r.ManualUntilCapture="manualUntilCapture",r.AutoOnLocation="autoOnLocation",r))(g||{});function f(a){var e;return ((e=a==null?void 0:a.toJSONObject())==null?void 0:e.type)==="camera"}var i=class a{constructor(e){this.preferredResolution=d.Camera.Settings.preferredResolution;this.zoomFactor=d.Camera.Settings.zoomFactor;this.zoomGestureZoomFactor=d.Camera.Settings.zoomGestureZoomFactor;this.focus={focusGestureStrategy:d.Camera.Settings.focusGestureStrategy};if(e!=null)for(let t of Object.getOwnPropertyNames(e))this[t]=e[t];}get focusGestureStrategy(){return this.focus.focusGestureStrategy}set focusGestureStrategy(e){this.focus.focusGestureStrategy=e;}static fromJSON(e){let t=new a;return t.preferredResolution=e.preferredResolution,t.zoomFactor=e.zoomFactor,t.zoomGestureZoomFactor=e.zoomGestureZoomFactor,t.focusGestureStrategy=e.focusGestureStrategy,t}setProperty(e,t){this[e]=t;}getProperty(e){return this[e]}toJSONObject(){let e={preferredResolution:this.preferredResolution,zoomFactor:this.zoomFactor,zoomGestureZoomFactor:this.zoomGestureZoomFactor,focus:{focusGestureStrategy:this.focus.focusGestureStrategy}},t={};for(let n of Object.keys(this))[...Object.keys(e),"focusGestureStrategy"].includes(n)||(t[n]=this[n]);return {...e,...t}}};export{u as a,c as b,m as c,p as d,g as e,f,i as g};
1
+ import {d}from'./chunk-E3TDSWVQ.js';var u=(o=>(o.On="on",o.Off="off",o.Standby="standby",o.Starting="starting",o.Stopping="stopping",o.BootingUp="bootingUp",o.WakingUp="wakingUp",o.GoingToSleep="goingToSleep",o.ShuttingDown="shuttingDown",o))(u||{}),c=(t=>(t.On="on",t.Off="off",t))(c||{}),m=(t=>(t.WorldFacing="worldFacing",t.UserFacing="userFacing",t))(m||{}),p=(r=>(r.Auto="auto",r.HD="hd",r.FullHD="fullHd",r.UHD4K="uhd4k",r))(p||{}),g=(r=>(r.None="none",r.Manual="manual",r.ManualUntilCapture="manualUntilCapture",r.AutoOnLocation="autoOnLocation",r))(g||{});function f(a){var e;return ((e=a==null?void 0:a.toJSONObject())==null?void 0:e.type)==="camera"}var i=class a{constructor(e){this.preferredResolution=d.Camera.Settings.preferredResolution;this.zoomFactor=d.Camera.Settings.zoomFactor;this.zoomGestureZoomFactor=d.Camera.Settings.zoomGestureZoomFactor;this.focus={focusGestureStrategy:d.Camera.Settings.focusGestureStrategy};if(e!=null)for(let t of Object.getOwnPropertyNames(e))this[t]=e[t];}get focusGestureStrategy(){return this.focus.focusGestureStrategy}set focusGestureStrategy(e){this.focus.focusGestureStrategy=e;}static fromJSON(e){let t=new a;return t.preferredResolution=e.preferredResolution,t.zoomFactor=e.zoomFactor,t.zoomGestureZoomFactor=e.zoomGestureZoomFactor,t.focusGestureStrategy=e.focusGestureStrategy,t}setProperty(e,t){this[e]=t;}getProperty(e){return this[e]}toJSONObject(){let e={preferredResolution:this.preferredResolution,zoomFactor:this.zoomFactor,zoomGestureZoomFactor:this.zoomGestureZoomFactor,focus:{focusGestureStrategy:this.focus.focusGestureStrategy}},t={};for(let n of Object.keys(this))[...Object.keys(e),"focusGestureStrategy"].includes(n)||(t[n]=this[n]);return {...e,...t}}};export{u as a,c as b,m as c,p as d,g as e,f,i as g};
@@ -1 +1 @@
1
- import {a}from'./chunk-U2GDN6EV.js';import {a as a$1}from'./chunk-QCRFVRSS.js';import {a as a$4}from'./chunk-AIRWHLJH.js';import {a as a$3}from'./chunk-FGO2SSRS.js';import {b}from'./chunk-FTD535WI.js';import {a as a$2}from'./chunk-XR65N6EG.js';var h=class{constructor(a$2,e){this.onMessageListener=this.onMessage.bind(this);this.workerSelf=a$2,this.dataCaptureInstance=new a(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),a$1(a$2)&&this.listenToMessages();}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",a=>{a$2.log(a$2.Level.Error,a);}),this.workerSelf.addEventListener("messageerror",a=>{a$2.log(a$2.Level.Error,a);});}postMessage(a,e){this.workerSelf.postMessage(a,e!=null?e:[]);}getOffscreenCanvas(){if(typeof this.workerSelf.OffscreenCanvas=="function")return new this.workerSelf.OffscreenCanvas(32,32)}hasPayload(a){return a$3(a)&&"payload"in a}hasTransferables(a){return a$3(a)&&Array.isArray(a.transferables)}async respondWith(a,e,u){let r=null,t;try{t=u(),t instanceof Promise&&(t=await t);}catch(l){t=void 0,r=a$4(l);}let i={type:"workerTaskId",command:a,id:e,payload:this.hasPayload(t)?t.payload:void 0};r!=null&&(i.error=r),this.postMessage(i,this.hasTransferables(t)?t.transferables:[]);}onMessage(a){switch(a.data.command){case"loadLibrary":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,writableDataPathOverride:e.writableDataPathOverride,overrideThreadsSupport:e.overrideThreadsSupport,overrideSimdSupport:e.overrideSimdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory}));}break}case"onTap":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point);});}break}case"hintPresenterV2update":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update();});}break}case"createContext":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain}));}break}case"setFrameSource":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource));}break}case"processFrame":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,width:e.width,height:e.height,colorType:e.colorType}));}break}case"requestFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId));}break}case"deleteFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId);});}break}case"updateContext":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e));}break}case"dispose":{this.respondWith(a.data.command,a.data.id,()=>this.dataCaptureInstance.dispose());break}case"flushAnalytics":{this.respondWith(a.data.command,a.data.id,()=>{this.dataCaptureInstance.flushAnalytics();});break}case"reportCameraProperties":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e));}break}case"setLogLevel":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{a$2.setLevel(e.level);});}break}case"extractCentaurusLicense":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey));}break}case"documentVisibility":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state);});}break}case"isFeatureSupported":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature));}break}case"getViewfinderInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo());}break}case"getOpenSourceSoftwareLicenseInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo());}break}default:return b(a.data),!1}return !0}};export{h as a};
1
+ import {a}from'./chunk-SH2KZV6C.js';import {a as a$4}from'./chunk-AIRWHLJH.js';import {a as a$3}from'./chunk-FGO2SSRS.js';import {a as a$1}from'./chunk-QCRFVRSS.js';import {b}from'./chunk-FTD535WI.js';import {a as a$2}from'./chunk-XR65N6EG.js';var h=class{constructor(a$2,e){this.onMessageListener=this.onMessage.bind(this);this.workerSelf=a$2,this.dataCaptureInstance=new a(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),a$1(a$2)&&this.listenToMessages();}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",a=>{a$2.log(a$2.Level.Error,a);}),this.workerSelf.addEventListener("messageerror",a=>{a$2.log(a$2.Level.Error,a);});}postMessage(a,e){this.workerSelf.postMessage(a,e!=null?e:[]);}getOffscreenCanvas(){if(typeof this.workerSelf.OffscreenCanvas=="function")return new this.workerSelf.OffscreenCanvas(32,32)}hasPayload(a){return a$3(a)&&"payload"in a}hasTransferables(a){return a$3(a)&&Array.isArray(a.transferables)}async respondWith(a,e,u){let r=null,t;try{t=u(),t instanceof Promise&&(t=await t);}catch(l){t=void 0,r=a$4(l);}let n={type:"workerTaskId",command:a,id:e,payload:this.hasPayload(t)?t.payload:void 0};r!=null&&(n.error=r),this.postMessage(n,this.hasTransferables(t)?t.transferables:[]);}onMessage(a){switch(a.data.command){case"loadLibrary":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,writableDataPathOverride:e.writableDataPathOverride,overrideThreadsSupport:e.overrideThreadsSupport,overrideSimdSupport:e.overrideSimdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory}));}break}case"onTap":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point);});}break}case"hintPresenterV2update":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update();});}break}case"createContext":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain}));}break}case"setFrameSource":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource));}break}case"processFrame":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,width:e.width,height:e.height,colorType:e.colorType}));}break}case"requestFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId));}break}case"deleteFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId);});}break}case"updateContext":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e));}break}case"dispose":{this.respondWith(a.data.command,a.data.id,()=>this.dataCaptureInstance.dispose());break}case"flushAnalytics":{this.respondWith(a.data.command,a.data.id,()=>{this.dataCaptureInstance.flushAnalytics();});break}case"reportCameraProperties":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e));}break}case"setLogLevel":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{a$2.setLevel(e.level);});}break}case"extractCentaurusLicense":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey));}break}case"documentVisibility":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state);});}break}case"isFeatureSupported":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature));}break}case"getViewfinderInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo());}break}case"getOpenSourceSoftwareLicenseInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo());}break}case"addNativeOverlay":this.dataCaptureInstance.addNativeOverlay(a);break;case"removeNativeOverlay":this.dataCaptureInstance.removeNativeOverlay(a);break;default:return b(a.data),!1}return !0}};export{h as a};
@@ -1 +1 @@
1
- import {d}from'./chunk-CAIEX6BZ.js';var l=class i{constructor(e){this.iconElement=d.SingleImageUploader.Settings.iconElement;this.informationElement=d.SingleImageUploader.Settings.informationElement;this.buttonElement=d.SingleImageUploader.Settings.buttonElement;this.containerStyle=d.SingleImageUploader.Settings.containerStyle;this.iconStyle=d.SingleImageUploader.Settings.iconStyle;this.informationStyle=d.SingleImageUploader.Settings.informationStyle;this.buttonStyle=d.SingleImageUploader.Settings.buttonStyle;this.onlyCameraCapture=d.SingleImageUploader.Settings.onlyCameraCapture;e!=null&&(this.iconElement=e.iconElement,this.informationElement=e.informationElement,this.buttonElement=e.buttonElement,this.containerStyle=e.containerStyle,this.iconStyle=e.iconStyle,this.informationStyle=e.informationStyle,this.buttonStyle=e.buttonStyle,this.onlyCameraCapture=e.onlyCameraCapture);}static fromJSON(e){let t=new i(null);return t.iconElement=document.createRange().createContextualFragment(e.iconElement).firstElementChild,t.informationElement=document.createRange().createContextualFragment(e.informationElement).firstElementChild,t.buttonElement=document.createRange().createContextualFragment(e.buttonElement).firstElementChild,t.containerStyle=e.containerStyle,t.iconStyle=e.iconStyle,t.informationStyle=e.informationStyle,t.buttonStyle=e.buttonStyle,t.onlyCameraCapture=e.onlyCameraCapture,t}toJSONObject(){return {iconElement:this.iconElement.outerHTML,informationElement:this.informationElement.outerHTML,buttonElement:this.buttonElement.outerHTML,containerStyle:{...this.containerStyle},iconStyle:{...this.iconStyle},informationStyle:{...this.informationStyle},buttonStyle:{...this.buttonStyle},onlyCameraCapture:this.onlyCameraCapture}}};export{l as a};
1
+ import {d}from'./chunk-E3TDSWVQ.js';var l=class i{constructor(e){this.iconElement=d.SingleImageUploader.Settings.iconElement;this.informationElement=d.SingleImageUploader.Settings.informationElement;this.buttonElement=d.SingleImageUploader.Settings.buttonElement;this.containerStyle=d.SingleImageUploader.Settings.containerStyle;this.iconStyle=d.SingleImageUploader.Settings.iconStyle;this.informationStyle=d.SingleImageUploader.Settings.informationStyle;this.buttonStyle=d.SingleImageUploader.Settings.buttonStyle;this.onlyCameraCapture=d.SingleImageUploader.Settings.onlyCameraCapture;e!=null&&(this.iconElement=e.iconElement,this.informationElement=e.informationElement,this.buttonElement=e.buttonElement,this.containerStyle=e.containerStyle,this.iconStyle=e.iconStyle,this.informationStyle=e.informationStyle,this.buttonStyle=e.buttonStyle,this.onlyCameraCapture=e.onlyCameraCapture);}static fromJSON(e){let t=new i(null);return t.iconElement=document.createRange().createContextualFragment(e.iconElement).firstElementChild,t.informationElement=document.createRange().createContextualFragment(e.informationElement).firstElementChild,t.buttonElement=document.createRange().createContextualFragment(e.buttonElement).firstElementChild,t.containerStyle=e.containerStyle,t.iconStyle=e.iconStyle,t.informationStyle=e.informationStyle,t.buttonStyle=e.buttonStyle,t.onlyCameraCapture=e.onlyCameraCapture,t}toJSONObject(){return {iconElement:this.iconElement.outerHTML,informationElement:this.informationElement.outerHTML,buttonElement:this.buttonElement.outerHTML,containerStyle:{...this.containerStyle},iconStyle:{...this.iconStyle},informationStyle:{...this.informationStyle},buttonStyle:{...this.buttonStyle},onlyCameraCapture:this.onlyCameraCapture}}};export{l as a};
@@ -1 +1 @@
1
- import {n as n$1}from'./chunk-LDJ53PEJ.js';var e=n$1.fromRGBA(46,193,206,1),n=n$1.fromRGBA(98,209,218,1),t=n$1.fromRGBA(151,224,230,1),c=n$1.fromRGBA(203,240,243,1),a=n$1.fromRGBA(18,22,25,1),m=n$1.fromRGBA(218,225,231,1),p=n$1.fromRGBA(40,211,128,1),G=n$1.fromRGBA(83,220,153,1),R=n$1.fromRGBA(126,229,179,1),f=n$1.fromRGBA(169,237,204,1),B=n$1.fromRGBA(212,246,230,1),s=n$1.fromRGBA(251,192,44,1),x=n$1.fromRGBA(252,205,86,1),y=n$1.fromRGBA(253,217,128,1),A=n$1.fromRGBA(254,230,171,1),d=n$1.fromRGBA(254,242,213,1),S=n$1.fromRGBA(250,68,70,1),g=n$1.fromRGBA(251,105,107,1),l=n$1.fromRGBA(252,143,144,1),i=n$1.fromRGBA(253,180,181,1),O=n$1.fromRGBA(254,218,218,1),T=n$1.fromRGBA(10,51,144,1);export{e as a,n as b,t as c,c as d,a as e,m as f,p as g,G as h,R as i,f as j,B as k,s as l,x as m,y as n,A as o,d as p,S as q,g as r,l as s,i as t,O as u,T as v};
1
+ import {n as n$1}from'./chunk-77BBIAZE.js';var e=n$1.fromRGBA(46,193,206,1),n=n$1.fromRGBA(98,209,218,1),t=n$1.fromRGBA(151,224,230,1),c=n$1.fromRGBA(203,240,243,1),a=n$1.fromRGBA(18,22,25,1),m=n$1.fromRGBA(218,225,231,1),p=n$1.fromRGBA(40,211,128,1),G=n$1.fromRGBA(83,220,153,1),R=n$1.fromRGBA(126,229,179,1),f=n$1.fromRGBA(169,237,204,1),B=n$1.fromRGBA(212,246,230,1),s=n$1.fromRGBA(251,192,44,1),x=n$1.fromRGBA(252,205,86,1),y=n$1.fromRGBA(253,217,128,1),A=n$1.fromRGBA(254,230,171,1),d=n$1.fromRGBA(254,242,213,1),S=n$1.fromRGBA(250,68,70,1),g=n$1.fromRGBA(251,105,107,1),l=n$1.fromRGBA(252,143,144,1),i=n$1.fromRGBA(253,180,181,1),O=n$1.fromRGBA(254,218,218,1),T=n$1.fromRGBA(10,51,144,1);export{e as a,n as b,t as c,c as d,a as e,m as f,p as g,G as h,R as i,f as j,B as k,s as l,x as m,y as n,A as o,d as p,S as q,g as r,l as s,i as t,O as u,T as v};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-QCZSSQAQ.js';var a=Promise.resolve(),c=!1,i=!1,n,l={writableDataPath:""};async function f(e){if(n==null)return;c=!0;let t=new Promise((r,o)=>{setTimeout(()=>{o(new a$1({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}));},1500);});try{await Promise.race([new Promise((r,o)=>{n==null||n(e,s=>{if(s!=null){o(s);return}r();});}),t]);}finally{c=!1;}}async function u(e){return i||(c?(i=!0,a=a.then(async()=>(i=!1,f(e)))):a=f(e)),a}async function p(e){l=e,n=FS.syncfs,FS.syncfs=(t,r)=>{let o=r,s=()=>{o();},S=m=>{o(m);};u(t).then(s).catch(S);};try{FS.mkdir(l.writableDataPath);}catch(t){if(t.code!=="EEXIST")throw n=void 0,t}return FS.mount(IDBFS,{},l.writableDataPath),u(!0)}export{p as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-7JX43F4O.js';var a=class n{constructor(){this.type="singleImageUploader";this._settings=new a$1(null);this._desiredState="off";this.listeners=[];this._context=null;this._view=void 0;}static get default(){return new n}get desiredState(){return this._desiredState}get settings(){return this._settings}get context(){return this._context}set context(e){this._context=e;}set currentState(e){e!==this._currentState&&(this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e}));}get currentState(){return this._currentState}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on"||this.currentState==="starting")return}else if(this.currentState==="off"||this.currentState==="stopping")return;return this._desiredState=e,this.setCurrentState(e==="on"?"starting":"off")}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){return this._settings=e,this.notifyContext({type:"singleImageModeUploaderSettings",newValue:this._settings})}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject(),desiredState:this.desiredState}}getCurrentState(){return this._currentState}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processUploadedFileCapture(e){var t,r;await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),this.currentState="starting",(r=this._view)==null||r.onAfterImageProcessed();}addView(e){this._view=e;}};export{a};
1
+ import {a as a$1}from'./chunk-Y6NN3VBO.js';var a=class n{constructor(){this.type="singleImageUploader";this._settings=new a$1(null);this._desiredState="off";this.listeners=[];this._context=null;this._view=void 0;}static get default(){return new n}get desiredState(){return this._desiredState}get settings(){return this._settings}get context(){return this._context}set context(e){this._context=e;}set currentState(e){e!==this._currentState&&(this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e}));}get currentState(){return this._currentState}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on"||this.currentState==="starting")return}else if(this.currentState==="off"||this.currentState==="stopping")return;return this._desiredState=e,this.setCurrentState(e==="on"?"starting":"off")}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){return this._settings=e,this.notifyContext({type:"singleImageModeUploaderSettings",newValue:this._settings})}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject(),desiredState:this.desiredState}}getCurrentState(){return this._currentState}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processUploadedFileCapture(e){var t,r;await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),this.currentState="starting",(r=this._view)==null||r.onAfterImageProcessed();}addView(e){this._view=e;}};export{a};
@@ -3,8 +3,8 @@ import { Logger } from './logger.js';
3
3
  export { WorkerMain } from './worker/WorkerMain.js';
4
4
  export { Anchor, Color, ColorJSON, Direction, JSONType, MarginsWithUnit, MarginsWithUnitJSON, MeasureUnit, NumberWithUnit, NumberWithUnitJSON, Orientation, Point, PointJSON, PointWithUnit, PointWithUnitJSON, Quadrilateral, QuadrilateralJSON, Rect, RectJSON, RectWithUnit, RectWithUnitJSON, Size, SizeJSON, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizeWithUnitAndAspectJSON, SizeWithUnitJSON, SizingMode } from './Common.js';
5
5
  export { OverrideState } from './worker/OverrideState.js';
6
- import { D as DataCaptureLoader } from './Camera-DsOMNsZu.js';
7
- export { g as Camera, m as CameraAccess, e as CameraJSON, C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, o as Change, H as ContextStatus, G as ContextStatusJSON, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, E as DataCaptureContextListener, R as DataCaptureLoaderOptions, q as DataCaptureMode, r as DataCaptureModeJSON, J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener, n as DeviceCamera, F as FocusGestureStrategy, N as FrameData, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse, O as PrivateLoadableFrameData, I as PrivateMirrorAxis, T as TorchState, f as VideoFrameResolution, V as VideoResolution, Q as convertToPublicFrameData, k as isCameraFrameSource } from './Camera-DsOMNsZu.js';
6
+ import { D as DataCaptureLoader } from './Camera-BbwZV9Lu.js';
7
+ export { g as Camera, m as CameraAccess, e as CameraJSON, C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, o as Change, H as ContextStatus, G as ContextStatusJSON, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, E as DataCaptureContextListener, S as DataCaptureLoaderOptions, q as DataCaptureMode, r as DataCaptureModeJSON, J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener, n as DeviceCamera, F as FocusGestureStrategy, O as FrameData, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, N as NativeDataCaptureMode, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse, Q as PrivateLoadableFrameData, I as PrivateMirrorAxis, T as TorchState, f as VideoFrameResolution, V as VideoResolution, R as convertToPublicFrameData, k as isCameraFrameSource } from './Camera-BbwZV9Lu.js';
8
8
  export { LoadingStatus, LoadingStatusSubscriber, ProgressInfo, default as loadingStatus } from './LoadingStatus.js';
9
9
  export { DeepMutable, DeepPartial, DistributiveKeyOf, MethodSignature, Mutable, Optional, Prettify, assert, assertUnreachable, assertUnreachableThrowException } from './tsHelper.js';
10
10
  export { AnchorPositions, AnchorPositionsJSON } from './private/AnchorPositions.js';
@@ -35,6 +35,7 @@ import './private/Serializable.js';
35
35
  import './private/FrameReaders/WatermarkStack.js';
36
36
  import './private/CustomLocationsView.js';
37
37
  import './private/View.js';
38
+ import './private/nativeHandle.js';
38
39
  import './license/OpenSourceSoftwareLicenseInfo.js';
39
40
  import './private/HtmlElementState.js';
40
41
  import './private/utils/ScanditHTMLElement.js';
package/build/js/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export{a as DataCaptureLoader}from'./chunks/chunk-5DETRQ7Y.js';export{a as WorkerMain}from'./chunks/chunk-FHGLVS66.js';export{a as OverrideState}from'./chunks/chunk-6W7FX6LD.js';import {a as a$3}from'./chunks/chunk-RQQK6Z5F.js';export{a as SingleImageUploader}from'./chunks/chunk-5PHKPYK6.js';export{a as SingleImageUploaderSettings}from'./chunks/chunk-7JX43F4O.js';export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-T5EUB6UG.js';export{a as NoViewfinder}from'./chunks/chunk-4ZMCJXZS.js';export{a as convertToPublicFrameData}from'./chunks/chunk-UHFABUTI.js';export{a as ImageFrameSource}from'./chunks/chunk-Q7NDC6TJ.js';export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-ZDYFZYVT.js';export{a as RectangularViewfinder}from'./chunks/chunk-YEMIFGKZ.js';export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-7LG2KINM.js';export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-AD3CNBDO.js';export{a as DataCaptureVersion}from'./chunks/chunk-A4OAOJ72.js';export{a as DataCaptureView}from'./chunks/chunk-EFNSFA3N.js';import {a as a$5}from'./chunks/chunk-N5YZEC56.js';export{a as AnchorPositions}from'./chunks/chunk-6MF4F3EH.js';import {a as a$2}from'./chunks/chunk-VJB527QZ.js';import {a as a$1}from'./chunks/chunk-7XQ3GHYH.js';export{a as Localization}from'./chunks/chunk-7XQ3GHYH.js';export{a as Feedback}from'./chunks/chunk-R2VJDRLZ.js';export{a as Sound}from'./chunks/chunk-GSJH2EXJ.js';export{a as Vibration}from'./chunks/chunk-JO2MKLMM.js';export{a as AimerViewfinder}from'./chunks/chunk-PWRWWFPG.js';export{a as Brush}from'./chunks/chunk-G33OCZIN.js';export{a as Camera}from'./chunks/chunk-GZ4F55TI.js';export{a as CameraAccess}from'./chunks/chunk-5TKCHVG2.js';export{a as DataCaptureContext}from'./chunks/chunk-QK3D2DQM.js';import {a as a$6,c}from'./chunks/chunk-EHMSDFH7.js';import {a}from'./chunks/chunk-NMROJLGQ.js';import {b}from'./chunks/chunk-6H6FKGVE.js';export{b as loadingStatus}from'./chunks/chunk-6H6FKGVE.js';export{a as DataCaptureContextSettings}from'./chunks/chunk-7SW2PEHB.js';export{a as assert,b as assertUnreachable,c as assertUnreachableThrowException}from'./chunks/chunk-FTD535WI.js';import {a as a$9}from'./chunks/chunk-GPJEB376.js';import {a as a$4}from'./chunks/chunk-XR65N6EG.js';export{a as Logger}from'./chunks/chunk-XR65N6EG.js';import {a as a$7}from'./chunks/chunk-QCZSSQAQ.js';export{a as DataCaptureError}from'./chunks/chunk-QCZSSQAQ.js';import {a as a$8}from'./chunks/chunk-MU4VAJIM.js';export{a as BrowserHelper}from'./chunks/chunk-MU4VAJIM.js';export{a as Feature}from'./chunks/chunk-5LIWL2C4.js';export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-NQC64CT7.js';export{c as RectangularViewfinderAnimation,b as RectangularViewfinderLineStyle,a as RectangularViewfinderStyle}from'./chunks/chunk-J2UL6U3I.js';export{a as LogoStyle,c as SwipeToZoom,b as TapToFocus}from'./chunks/chunk-GX4YCYCH.js';export{q as Anchor,n as Color,p as Direction,m as MarginsWithUnit,c as MeasureUnit,d as NumberWithUnit,o as Orientation,a as Point,e as PointWithUnit,b as Quadrilateral,f as Rect,g as RectWithUnit,i as Size,j as SizeWithAspect,h as SizeWithUnit,l as SizeWithUnitAndAspect,k as SizingMode}from'./chunks/chunk-LDJ53PEJ.js';export{a as ContextStatus,b as PrivateMirrorAxis}from'./chunks/chunk-WUHKODFA.js';var p=a;async function S(){var e;a.configurePhase="unconfigured",(e=p.mainDataCaptureLoader)!=null&&e.terminateDataCaptureWorker&&await p.mainDataCaptureLoader.terminateDataCaptureWorker(!0);}function l({percentage:e}){for(let r of a$5.values())r.setProgressBarPercentage(e);}function D(){var o,u;function e(P){return ["auto","off","on"].includes(P)}let r=new URLSearchParams(window.location.search),[a="auto",i="auto"]=[(o=r.get("pthreads"))==null?void 0:o.toLowerCase(),(u=r.get("simd"))==null?void 0:u.toLowerCase()];return {overrideThreadsSupport:e(a)?a:"auto",overrideSimdSupport:e(i)?i:"auto"}}async function O(e){if(a$6()&&typeof e.licenseDataPath!="string")throw new a$7({name:"MisconfigurationError",message:'"licenseDataPath" string is missing or not valid'});if(a$6()&&typeof e.licenseDataPath=="string"){let a=await c({licenseDataPath:e.licenseDataPath});if(a==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=a.licenseKey;}if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$7({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$7({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$7({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let r=e.moduleLoaders.map(a=>a.moduleName);if(!["BarcodeCapture","IdCapture"].includes(r[0]))throw new a$7({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}async function M(e,r){let a=new Map,i=new Map;for(let o of e)i.set(o.moduleName,o.load(r));await Promise.all(i.values());for(let[o,u]of i)a.set(o,await u);return a}async function Ye(e){var i;if(p.configurePhase!=="unconfigured"&&p.configurePromise!=null)return p.configurePromise;a$1.getInstance().updateIfMissing(a$2),await O(e);let r={...D(),...e,libraryLocation:a$3(e.libraryLocation),logLevel:(i=e.logLevel)!=null?i:a$4.Level.Debug,verifyResponseHash:!0,loadProgressNotifier:b.notify.bind(b)};a.userLicenseKey=r.licenseKey,a.libraryLocation=r.libraryLocation,a$4.setLevel(r.logLevel);async function a$5(){a.configurePhase="started",b.subscribe(l);let o=a$8.checkBrowserCompatibility();if(!o.fullSupport&&!o.scannerSupport)throw new a$9(o);a$8.isSupportedIOSVersion()||a$4.log(a$4.Level.Warn,`Warning: Minimum supported iOS version is 14.6.
1
+ export{a as DataCaptureLoader}from'./chunks/chunk-CXBLYHGE.js';export{a as WorkerMain}from'./chunks/chunk-WSR7IH2J.js';import {a as a$3}from'./chunks/chunk-AIC4H5KG.js';export{a as OverrideState}from'./chunks/chunk-6W7FX6LD.js';export{a as SingleImageUploader}from'./chunks/chunk-ZG2DNH5P.js';export{a as SingleImageUploaderSettings}from'./chunks/chunk-Y6NN3VBO.js';export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-T5EUB6UG.js';export{a as NoViewfinder}from'./chunks/chunk-4ZMCJXZS.js';export{a as convertToPublicFrameData}from'./chunks/chunk-UHFABUTI.js';export{a as ImageFrameSource}from'./chunks/chunk-Q7NDC6TJ.js';export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-DCZONWJ2.js';export{a as RectangularViewfinder}from'./chunks/chunk-LU4WMIH5.js';export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-PGNGNB6M.js';export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-3OBWS6CO.js';export{a as DataCaptureVersion}from'./chunks/chunk-AOSR5K23.js';export{a as DataCaptureView}from'./chunks/chunk-ORCTCIRE.js';import {a as a$5}from'./chunks/chunk-N5YZEC56.js';export{a as AnchorPositions}from'./chunks/chunk-5FUZURCZ.js';import {a as a$2}from'./chunks/chunk-VJB527QZ.js';import {a as a$1}from'./chunks/chunk-7XQ3GHYH.js';export{a as Localization}from'./chunks/chunk-7XQ3GHYH.js';export{a as Feedback}from'./chunks/chunk-CBF2PLFL.js';export{a as Sound}from'./chunks/chunk-GSJH2EXJ.js';export{a as Vibration}from'./chunks/chunk-DCVQRKUG.js';export{a as AimerViewfinder}from'./chunks/chunk-4QDKNW3V.js';export{a as Brush}from'./chunks/chunk-ACXIZNMK.js';export{a as Camera}from'./chunks/chunk-2IAGUFM2.js';export{a as CameraAccess}from'./chunks/chunk-5TKCHVG2.js';export{a as DataCaptureContext}from'./chunks/chunk-6HLE7FER.js';import {a as a$6,c}from'./chunks/chunk-EHMSDFH7.js';import {a}from'./chunks/chunk-NMROJLGQ.js';import {b}from'./chunks/chunk-6H6FKGVE.js';export{b as loadingStatus}from'./chunks/chunk-6H6FKGVE.js';export{a as DataCaptureContextSettings}from'./chunks/chunk-7SW2PEHB.js';export{a as assert,b as assertUnreachable,c as assertUnreachableThrowException}from'./chunks/chunk-FTD535WI.js';import {a as a$9}from'./chunks/chunk-GPJEB376.js';import {a as a$4}from'./chunks/chunk-XR65N6EG.js';export{a as Logger}from'./chunks/chunk-XR65N6EG.js';import {a as a$7}from'./chunks/chunk-QCZSSQAQ.js';export{a as DataCaptureError}from'./chunks/chunk-QCZSSQAQ.js';import {a as a$8}from'./chunks/chunk-MU4VAJIM.js';export{a as BrowserHelper}from'./chunks/chunk-MU4VAJIM.js';export{a as Feature}from'./chunks/chunk-5LIWL2C4.js';export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-UD3Z45BT.js';export{c as RectangularViewfinderAnimation,b as RectangularViewfinderLineStyle,a as RectangularViewfinderStyle}from'./chunks/chunk-J2UL6U3I.js';export{a as LogoStyle,c as SwipeToZoom,b as TapToFocus}from'./chunks/chunk-GX4YCYCH.js';export{q as Anchor,n as Color,p as Direction,m as MarginsWithUnit,c as MeasureUnit,d as NumberWithUnit,o as Orientation,a as Point,e as PointWithUnit,b as Quadrilateral,f as Rect,g as RectWithUnit,i as Size,j as SizeWithAspect,h as SizeWithUnit,l as SizeWithUnitAndAspect,k as SizingMode}from'./chunks/chunk-77BBIAZE.js';export{a as ContextStatus,b as PrivateMirrorAxis}from'./chunks/chunk-WUHKODFA.js';var p=a;async function S(){var e;a.configurePhase="unconfigured",(e=p.mainDataCaptureLoader)!=null&&e.terminateDataCaptureWorker&&await p.mainDataCaptureLoader.terminateDataCaptureWorker(!0);}function l({percentage:e}){for(let r of a$5.values())r.setProgressBarPercentage(e);}function D(){var o,u;function e(P){return ["auto","off","on"].includes(P)}let r=new URLSearchParams(window.location.search),[a="auto",i="auto"]=[(o=r.get("pthreads"))==null?void 0:o.toLowerCase(),(u=r.get("simd"))==null?void 0:u.toLowerCase()];return {overrideThreadsSupport:e(a)?a:"auto",overrideSimdSupport:e(i)?i:"auto"}}async function O(e){if(a$6()&&typeof e.licenseDataPath!="string")throw new a$7({name:"MisconfigurationError",message:'"licenseDataPath" string is missing or not valid'});if(a$6()&&typeof e.licenseDataPath=="string"){let a=await c({licenseDataPath:e.licenseDataPath});if(a==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=a.licenseKey;}if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$7({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$7({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$7({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let r=e.moduleLoaders.map(a=>a.moduleName);if(!["BarcodeCapture","IdCapture","LabelCapture"].includes(r[0]))throw new a$7({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}async function M(e,r){let a=new Map,i=new Map;for(let o of e)i.set(o.moduleName,o.load(r));await Promise.all(i.values());for(let[o,u]of i)a.set(o,await u);return a}async function Ye(e){var i;if(p.configurePhase!=="unconfigured"&&p.configurePromise!=null)return p.configurePromise;a$1.getInstance().updateIfMissing(a$2),await O(e);let r={...D(),...e,libraryLocation:a$3(e.libraryLocation),logLevel:(i=e.logLevel)!=null?i:a$4.Level.Debug,verifyResponseHash:!0,loadProgressNotifier:b.notify.bind(b)};a.userLicenseKey=r.licenseKey,a.libraryLocation=r.libraryLocation,a$4.setLevel(r.logLevel);async function a$5(){a.configurePhase="started",b.subscribe(l);let o=a$8.checkBrowserCompatibility();if(!o.fullSupport&&!o.scannerSupport)throw new a$9(o);a$8.isSupportedIOSVersion()||a$4.log(a$4.Level.Warn,`Warning: Minimum supported iOS version is 14.6.
2
2
  Please check the minimum system requirements here:
3
3
  https://docs.scandit.com/system-requirements#web-sdk`),a.dataCaptureLoaders=await M(r.moduleLoaders,r),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],a.configurePhase="done",b.unsubscribe(l);}return a.configurePromise=a$5().catch(o=>{throw S(),b.unsubscribe(l),o}),a.configurePromise}function Ze(e){a.mainDataCaptureLoader=e;}
4
4
  export{Ye as configure,S as resetConfigure,Ze as setMainDataCaptureLoader};
@@ -1 +1 @@
1
- export{a as AnchorPositions}from'../chunks/chunk-6MF4F3EH.js';
1
+ export{a as AnchorPositions}from'../chunks/chunk-5FUZURCZ.js';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="emscripten" />
2
- export { bo as AspectRatio, bq as CameraAccess, bm as CameraPosition, bn as CameraResolutionConstraint, bp as DeviceCamera } from '../Camera-DsOMNsZu.js';
2
+ export { br as AspectRatio, bt as CameraAccess, bp as CameraPosition, bq as CameraResolutionConstraint, bs as DeviceCamera } from '../Camera-BbwZV9Lu.js';
3
3
  import './Serializable.js';
4
+ import '../Common.js';
4
5
  import './FrameReaders/WatermarkStack.js';
5
6
  import '../tsHelper.js';
6
- import '../Common.js';
7
7
  import '../ScanditIcon.js';
8
8
  import './utils/ScanditHTMLElement.js';
9
9
  import '../DataCaptureContextSettings.js';
@@ -12,6 +12,7 @@ import '../ViewControls.js';
12
12
  import './CustomLocationsView.js';
13
13
  import './View.js';
14
14
  import './AnchorPositions.js';
15
+ import './nativeHandle.js';
15
16
  import '../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import './HtmlElementState.js';
17
18
  import '../worker/OverrideState.js';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="emscripten" />
2
- export { by as CameraManager, bw as CameraManagerEvent, bx as CameraManagerEventParameters, bs as CameraResolutionConstraint, bt as ExtendedMediaTrackCapabilities, bu as ExtendedMediaTrackConstraintSet, bk as FrameCapture, bv as GUI, br as MeteringMode } from '../Camera-DsOMNsZu.js';
2
+ export { bB as CameraManager, bz as CameraManagerEvent, bA as CameraManagerEventParameters, bv as CameraResolutionConstraint, bw as ExtendedMediaTrackCapabilities, bx as ExtendedMediaTrackConstraintSet, bn as FrameCapture, by as GUI, bu as MeteringMode } from '../Camera-BbwZV9Lu.js';
3
+ import '../Common.js';
3
4
  import './Serializable.js';
4
5
  import './FrameReaders/WatermarkStack.js';
5
6
  import '../tsHelper.js';
6
- import '../Common.js';
7
7
  import '../ScanditIcon.js';
8
8
  import './utils/ScanditHTMLElement.js';
9
9
  import '../DataCaptureContextSettings.js';
@@ -12,6 +12,7 @@ import '../ViewControls.js';
12
12
  import './CustomLocationsView.js';
13
13
  import './View.js';
14
14
  import './AnchorPositions.js';
15
+ import './nativeHandle.js';
15
16
  import '../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import './HtmlElementState.js';
17
18
  import '../worker/OverrideState.js';
@@ -1 +1 @@
1
- export{d as CameraManager,c as CameraManagerEvent,b as CameraResolutionConstraint,a as MeteringMode}from'../chunks/chunk-KRWPFM7Z.js';
1
+ export{d as CameraManager,c as CameraManagerEvent,b as CameraResolutionConstraint,a as MeteringMode}from'../chunks/chunk-BYMYBEMT.js';
@@ -1,19 +1,20 @@
1
1
  /// <reference types="emscripten" />
2
2
  import { PrivateCanvasDrawer } from './CanvasDrawer.js';
3
- import { S as PerformanceMetrics } from '../Camera-DsOMNsZu.js';
3
+ import { X as PerformanceMetrics } from '../Camera-BbwZV9Lu.js';
4
4
  import '../ScanditIcon.js';
5
5
  import './CavansDrawerAbstract.js';
6
6
  import './DrawCommandBuffer.js';
7
7
  import './Serializable.js';
8
+ import '../Common.js';
8
9
  import './FrameReaders/WatermarkStack.js';
9
10
  import '../tsHelper.js';
10
- import '../Common.js';
11
11
  import '../DataCaptureContextSettings.js';
12
12
  import '../DataCaptureViewPlusRelated.js';
13
13
  import '../ViewControls.js';
14
14
  import './CustomLocationsView.js';
15
15
  import './View.js';
16
16
  import './AnchorPositions.js';
17
+ import './nativeHandle.js';
17
18
  import '../license/OpenSourceSoftwareLicenseInfo.js';
18
19
  import './HtmlElementState.js';
19
20
  import '../worker/OverrideState.js';
@@ -2,11 +2,11 @@
2
2
  import { ModuleLicenseTextProvider } from './ModuleLicenseTextProvider.js';
3
3
  import { Logger } from '../logger.js';
4
4
  import { PartialSDKGlobals } from '../sdk.js';
5
- import '../Camera-DsOMNsZu.js';
5
+ import '../Camera-BbwZV9Lu.js';
6
6
  import './Serializable.js';
7
+ import '../Common.js';
7
8
  import './FrameReaders/WatermarkStack.js';
8
9
  import '../tsHelper.js';
9
- import '../Common.js';
10
10
  import '../ScanditIcon.js';
11
11
  import './utils/ScanditHTMLElement.js';
12
12
  import '../DataCaptureContextSettings.js';
@@ -15,6 +15,7 @@ import '../ViewControls.js';
15
15
  import './CustomLocationsView.js';
16
16
  import './View.js';
17
17
  import './AnchorPositions.js';
18
+ import './nativeHandle.js';
18
19
  import '../license/OpenSourceSoftwareLicenseInfo.js';
19
20
  import './HtmlElementState.js';
20
21
  import '../worker/OverrideState.js';
@@ -20,10 +20,20 @@ interface Item {
20
20
  anchor: Anchor;
21
21
  offset: PointWithUnit;
22
22
  }
23
+ interface ItemDomView {
24
+ identifier: string;
25
+ anchorPositions: AnchorPositions;
26
+ view: HTMLElement | null;
27
+ anchor: Anchor;
28
+ offset: PointWithUnit;
29
+ }
23
30
  interface StateToRender {
24
31
  removedIds: string[];
25
32
  elements: Item[];
26
33
  }
34
+ interface StateToRenderDomView {
35
+ elements: ItemDomView[];
36
+ }
27
37
  declare class CustomLocationsView implements View {
28
38
  private static readonly componentName;
29
39
  private static readonly elementSelectorPrefix;
@@ -39,9 +49,10 @@ declare class CustomLocationsView implements View {
39
49
  mount(htmlRoot: HTMLElement): void;
40
50
  unmount(): void;
41
51
  render(state: StateToRender): void;
52
+ renderDomView(state: StateToRenderDomView): void;
42
53
  mapViewAnchorPositionsForFramePoint: (anchorPositions: AnchorPositions) => AnchorPositions;
43
54
  private removeChildren;
44
55
  private adjustCoordinatesWithOffset;
45
56
  }
46
57
 
47
- export { CustomLocationsView, type DidTapCustomLocationsViewListener, type StateToRender };
58
+ export { CustomLocationsView, type DidTapCustomLocationsViewListener, type StateToRender, type StateToRenderDomView };
@@ -1 +1 @@
1
- export{a as CustomLocationsView}from'../chunks/chunk-GAVFMG2G.js';
1
+ export{a as CustomLocationsView}from'../chunks/chunk-JVZYXEYO.js';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="emscripten" />
2
- import { B as DataCaptureContext, N as FrameData } from '../Camera-DsOMNsZu.js';
2
+ import { B as DataCaptureContext, O as FrameData } from '../Camera-BbwZV9Lu.js';
3
3
  import './Serializable.js';
4
+ import '../Common.js';
4
5
  import './FrameReaders/WatermarkStack.js';
5
6
  import '../tsHelper.js';
6
- import '../Common.js';
7
7
  import '../ScanditIcon.js';
8
8
  import './utils/ScanditHTMLElement.js';
9
9
  import '../DataCaptureContextSettings.js';
@@ -12,6 +12,7 @@ import '../ViewControls.js';
12
12
  import './CustomLocationsView.js';
13
13
  import './View.js';
14
14
  import './AnchorPositions.js';
15
+ import './nativeHandle.js';
15
16
  import '../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import './HtmlElementState.js';
17
18
  import '../worker/OverrideState.js';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="emscripten" />
2
- export { bi as ColorType, bl as FrameReader } from '../../Camera-DsOMNsZu.js';
2
+ export { bl as ColorType, bo as FrameReader } from '../../Camera-BbwZV9Lu.js';
3
3
  import '../Serializable.js';
4
+ import '../../Common.js';
4
5
  import './WatermarkStack.js';
5
6
  import '../../tsHelper.js';
6
- import '../../Common.js';
7
7
  import '../../ScanditIcon.js';
8
8
  import '../utils/ScanditHTMLElement.js';
9
9
  import '../../DataCaptureContextSettings.js';
@@ -12,6 +12,7 @@ import '../../ViewControls.js';
12
12
  import '../CustomLocationsView.js';
13
13
  import '../View.js';
14
14
  import '../AnchorPositions.js';
15
+ import '../nativeHandle.js';
15
16
  import '../../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import '../HtmlElementState.js';
17
18
  import '../../worker/OverrideState.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { bh as FrameReaderAbstract, bj as PoolCapacityOptions } from '../../Camera-DsOMNsZu.js';
2
+ export { bk as FrameReaderAbstract, bm as PoolCapacityOptions } from '../../Camera-BbwZV9Lu.js';
3
3
  import './WatermarkStack.js';
4
4
  import '../../tsHelper.js';
5
5
  import '../Serializable.js';
@@ -12,6 +12,7 @@ import '../../ViewControls.js';
12
12
  import '../CustomLocationsView.js';
13
13
  import '../View.js';
14
14
  import '../AnchorPositions.js';
15
+ import '../nativeHandle.js';
15
16
  import '../../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import '../HtmlElementState.js';
17
18
  import '../../worker/OverrideState.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { bh as FrameReaderAbstract, bi as ColorType, bj as PoolCapacityOptions, bk as FrameCapture } from '../../Camera-DsOMNsZu.js';
2
+ import { bk as FrameReaderAbstract, bl as ColorType, bm as PoolCapacityOptions, bn as FrameCapture } from '../../Camera-BbwZV9Lu.js';
3
3
  import { WatermarkStack } from './WatermarkStack.js';
4
4
  import { Optional } from '../../tsHelper.js';
5
5
  import '../Serializable.js';
@@ -12,6 +12,7 @@ import '../../ViewControls.js';
12
12
  import '../CustomLocationsView.js';
13
13
  import '../View.js';
14
14
  import '../AnchorPositions.js';
15
+ import '../nativeHandle.js';
15
16
  import '../../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import '../HtmlElementState.js';
17
18
  import '../../worker/OverrideState.js';
@@ -1 +1 @@
1
- export{a as GrayScaleFrameReader}from'../../chunks/chunk-7B2VPGLP.js';
1
+ export{a as GrayScaleFrameReader}from'../../chunks/chunk-TCJPGGHY.js';
@@ -1,10 +1,10 @@
1
1
  /// <reference types="emscripten" />
2
- export { bl as FrameReader, bh as FrameReaderAbstract, bi as FrameReaderType } from '../../Camera-DsOMNsZu.js';
2
+ export { bo as FrameReader, bk as FrameReaderAbstract, bl as FrameReaderType } from '../../Camera-BbwZV9Lu.js';
3
3
  export { GrayScaleFrameReader } from './GrayScaleFrameReader.js';
4
4
  import '../Serializable.js';
5
+ import '../../Common.js';
5
6
  import './WatermarkStack.js';
6
7
  import '../../tsHelper.js';
7
- import '../../Common.js';
8
8
  import '../../ScanditIcon.js';
9
9
  import '../utils/ScanditHTMLElement.js';
10
10
  import '../../DataCaptureContextSettings.js';
@@ -13,6 +13,7 @@ import '../../ViewControls.js';
13
13
  import '../CustomLocationsView.js';
14
14
  import '../View.js';
15
15
  import '../AnchorPositions.js';
16
+ import '../nativeHandle.js';
16
17
  import '../../license/OpenSourceSoftwareLicenseInfo.js';
17
18
  import '../HtmlElementState.js';
18
19
  import '../../worker/OverrideState.js';
@@ -1 +1 @@
1
- export{a as GrayScaleFrameReader}from'../../chunks/chunk-7B2VPGLP.js';export{b as FrameReader,a as FrameReaderType}from'../../chunks/chunk-ULRY4SXF.js';
1
+ export{a as GrayScaleFrameReader}from'../../chunks/chunk-TCJPGGHY.js';export{b as FrameReader,a as FrameReaderType}from'../../chunks/chunk-ULRY4SXF.js';
@@ -1 +1 @@
1
- export{a as GestureRecognizer}from'../../chunks/chunk-RIMH6UPR.js';
1
+ export{a as GestureRecognizer}from'../../chunks/chunk-3BBG6EVS.js';
@@ -1 +1 @@
1
- export{a as GestureRecognizer}from'../../chunks/chunk-RIMH6UPR.js';
1
+ export{a as GestureRecognizer}from'../../chunks/chunk-3BBG6EVS.js';
@@ -1 +1 @@
1
- export{c as extractPackageNameFromURL,d as getLibraryLocationURIs,b as isCDNLocation,a as normalizeLibraryLocation}from'../chunks/chunk-RQQK6Z5F.js';
1
+ export{c as extractPackageNameFromURL,d as getLibraryLocationURIs,b as isCDNLocation,a as normalizeLibraryLocation}from'../chunks/chunk-AIC4H5KG.js';
@@ -1 +1 @@
1
- export{a as HTMLElementState}from'../chunks/chunk-JRBLEJMD.js';
1
+ export{a as HTMLElementState}from'../chunks/chunk-FSWALUUO.js';
@@ -4,11 +4,11 @@ import { ConfigureOptions } from '../index.js';
4
4
  import { Logger } from '../logger.js';
5
5
  import { OverrideState } from '../worker/OverrideState.js';
6
6
  import '../worker/WorkerMain.js';
7
- import '../Camera-DsOMNsZu.js';
7
+ import '../Camera-BbwZV9Lu.js';
8
8
  import './Serializable.js';
9
+ import '../Common.js';
9
10
  import './FrameReaders/WatermarkStack.js';
10
11
  import '../tsHelper.js';
11
- import '../Common.js';
12
12
  import '../ScanditIcon.js';
13
13
  import './utils/ScanditHTMLElement.js';
14
14
  import '../DataCaptureContextSettings.js';
@@ -17,6 +17,7 @@ import '../ViewControls.js';
17
17
  import './CustomLocationsView.js';
18
18
  import './View.js';
19
19
  import './AnchorPositions.js';
20
+ import './nativeHandle.js';
20
21
  import '../license/OpenSourceSoftwareLicenseInfo.js';
21
22
  import './HtmlElementState.js';
22
23
  import '../browserHelper.js';
@@ -1 +1 @@
1
- export{a as ButtonState,c as CameraSwitchControlWidget,d as PrivateCameraFOVSwitchControlWidget,b as PrivateTorchControlWidget}from'../chunks/chunk-4YVKSEZS.js';
1
+ export{a as ButtonState,c as CameraSwitchControlWidget,d as PrivateCameraFOVSwitchControlWidget,b as PrivateTorchControlWidget}from'../chunks/chunk-SEAKJV3R.js';
@@ -1,10 +1,10 @@
1
1
  /// <reference types="emscripten" />
2
- import { M as DataCaptureView, a as FrameSource, B as DataCaptureContext } from '../Camera-DsOMNsZu.js';
2
+ import { M as DataCaptureView, a as FrameSource, B as DataCaptureContext } from '../Camera-BbwZV9Lu.js';
3
3
  import { TorchSwitchControl, CameraSwitchControl, CameraFOVSwitchControl, Control } from '../ViewControls.js';
4
4
  import './Serializable.js';
5
+ import '../Common.js';
5
6
  import './FrameReaders/WatermarkStack.js';
6
7
  import '../tsHelper.js';
7
- import '../Common.js';
8
8
  import '../ScanditIcon.js';
9
9
  import './utils/ScanditHTMLElement.js';
10
10
  import '../DataCaptureContextSettings.js';
@@ -12,6 +12,7 @@ import '../DataCaptureViewPlusRelated.js';
12
12
  import './CustomLocationsView.js';
13
13
  import './View.js';
14
14
  import './AnchorPositions.js';
15
+ import './nativeHandle.js';
15
16
  import '../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import './HtmlElementState.js';
17
18
  import '../worker/OverrideState.js';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="emscripten" />
2
- import { M as DataCaptureView } from '../Camera-DsOMNsZu.js';
2
+ import { M as DataCaptureView } from '../Camera-BbwZV9Lu.js';
3
3
  import './Serializable.js';
4
+ import '../Common.js';
4
5
  import './FrameReaders/WatermarkStack.js';
5
6
  import '../tsHelper.js';
6
- import '../Common.js';
7
7
  import '../ScanditIcon.js';
8
8
  import './utils/ScanditHTMLElement.js';
9
9
  import '../DataCaptureContextSettings.js';
@@ -12,6 +12,7 @@ import '../ViewControls.js';
12
12
  import './CustomLocationsView.js';
13
13
  import './View.js';
14
14
  import './AnchorPositions.js';
15
+ import './nativeHandle.js';
15
16
  import '../license/OpenSourceSoftwareLicenseInfo.js';
16
17
  import './HtmlElementState.js';
17
18
  import '../worker/OverrideState.js';
@@ -0,0 +1,4 @@
1
+ /// <reference types="emscripten" />
2
+ declare const nativeHandle: unique symbol;
3
+
4
+ export { nativeHandle };
@@ -0,0 +1 @@
1
+ export{a as nativeHandle}from'../chunks/chunk-BA3RP6L2.js';
@@ -1 +1 @@
1
- export{a as ProgressBar}from'../../../chunks/chunk-76CQG6HG.js';
1
+ export{a as ProgressBar}from'../../../chunks/chunk-6FPW3MIJ.js';
@@ -24,7 +24,7 @@ declare class ShutterButton extends ScanditHTMLElement {
24
24
  get rotating(): boolean;
25
25
  static register(): void;
26
26
  static create(): ShutterButton;
27
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
27
+ attributeChangedCallback(name: string, _oldValue: string, newValue: string): void;
28
28
  private refreshButtonWidth;
29
29
  private connectedCallback;
30
30
  private isValidState;