@scandit/web-datacapture-core 8.2.1 → 8.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/electron/common.cjs +1 -1
- package/build/electron/constants.cjs +1 -1
- package/build/electron/main.cjs +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/js/{Camera-DhGjpcjv.d.ts → Camera-BnPnXqAt.d.ts} +1 -1
- package/build/js/Camera.d.ts +1 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraRelated.d.ts +1 -1
- package/build/js/{DataCaptureContext-Dvdr7st4.d.ts → DataCaptureContext-LM_Re1B4.d.ts} +42 -4
- package/build/js/DataCaptureContext.d.ts +4 -2
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +5 -3
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +5 -3
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +4 -2
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +4 -2
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +4 -2
- package/build/js/NotificationPresenter/private/presets.d.ts +4 -2
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.d.ts +10 -0
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-UQVVJP5Z.js → chunk-2OCDIZIS.js} +1 -1
- package/build/js/chunks/{chunk-QFSNPY5Y.js → chunk-2SGKGZ6F.js} +1 -1
- package/build/js/chunks/{chunk-O7EM4VIM.js → chunk-33ZWDLU7.js} +1 -1
- package/build/js/chunks/{chunk-3MKSI2DV.js → chunk-6IM6NGGI.js} +1 -1
- package/build/js/chunks/{chunk-WVVNJRUA.js → chunk-7EGT56UE.js} +1 -1
- package/build/js/chunks/chunk-7JVAQ2A3.js +1 -0
- package/build/js/chunks/{chunk-HQKKXJJY.js → chunk-7ZU6DPLL.js} +1 -1
- package/build/js/chunks/{chunk-7HYFN4JO.js → chunk-A3ZT7PJA.js} +1 -1
- package/build/js/chunks/chunk-A5G2NHT2.js +1 -0
- package/build/js/chunks/{chunk-DGIQ3GF7.js → chunk-ARODHCN7.js} +1 -1
- package/build/js/chunks/chunk-BQO4QYI6.js +1 -0
- package/build/js/chunks/{chunk-QUWP3ILW.js → chunk-BSX3V75N.js} +1 -1
- package/build/js/chunks/chunk-BV63CXZF.js +1 -0
- package/build/js/chunks/{chunk-5OF76LWH.js → chunk-DQ5X7FNV.js} +1 -1
- package/build/js/chunks/chunk-DZE2EYSZ.js +1 -0
- package/build/js/chunks/{chunk-SYGWA3T6.js → chunk-E7IMQECS.js} +1 -1
- package/build/js/chunks/{chunk-VSROWPI6.js → chunk-FCXZZH3O.js} +1 -1
- package/build/js/chunks/{chunk-O4HDBWKK.js → chunk-FMOB7R2T.js} +1 -1
- package/build/js/chunks/{chunk-U7ETOWGJ.js → chunk-GS7VZDY5.js} +1 -1
- package/build/js/chunks/{chunk-6JHZVRXK.js → chunk-H7FKC2FI.js} +1 -1
- package/build/js/chunks/{chunk-NXAYIU7F.js → chunk-IASACVTH.js} +1 -1
- package/build/js/chunks/chunk-IVQL2BYY.js +1 -0
- package/build/js/chunks/chunk-KUAZYGPM.js +1 -0
- package/build/js/chunks/{chunk-DTREAYZQ.js → chunk-KVRNF3VA.js} +1 -1
- package/build/js/chunks/{chunk-UERKPMRV.js → chunk-L66S4DN2.js} +1 -1
- package/build/js/chunks/chunk-M2ZQCUEL.js +1 -0
- package/build/js/chunks/{chunk-YE2GYNRP.js → chunk-NMXQDQYI.js} +1 -1
- package/build/js/chunks/{chunk-BBOKPRKO.js → chunk-O5D4KVS5.js} +1 -1
- package/build/js/chunks/{chunk-GLSB4QTY.js → chunk-OCKYBUXO.js} +1 -1
- package/build/js/chunks/{chunk-XYZYNUX3.js → chunk-RXDVYEE5.js} +1 -1
- package/build/js/chunks/{chunk-QUBJJDLC.js → chunk-RYXKMXTY.js} +1 -1
- package/build/js/chunks/{chunk-RP4YFAF2.js → chunk-SSTFVERQ.js} +1 -1
- package/build/js/chunks/{chunk-7OFC24NE.js → chunk-SX5ZLP2O.js} +1 -1
- package/build/js/chunks/{chunk-V2OKMBZD.js → chunk-UJYGOVXB.js} +1 -1
- package/build/js/chunks/chunk-W3X3ZRQZ.js +1 -0
- package/build/js/chunks/chunk-WBYBTOBZ.js +1 -0
- package/build/js/chunks/{chunk-JCP7NQPV.js → chunk-WFKB322J.js} +1 -1
- package/build/js/chunks/{chunk-VJ7ZYB4V.js → chunk-WJOT37ST.js} +1 -1
- package/build/js/chunks/{chunk-I4F6XB6S.js → chunk-XVH5A2QH.js} +1 -1
- package/build/js/chunks/{chunk-4J3Y5IIL.js → chunk-XW3Z6KKS.js} +1 -1
- package/build/js/chunks/{chunk-QPR2YHD4.js → chunk-YJNJGCAN.js} +1 -1
- package/build/js/chunks/chunk-YMM2PV73.js +6 -0
- package/build/js/chunks/chunk-YONR3EGV.js +2 -0
- package/build/js/chunks/{chunk-6EEMWSEO.js → chunk-YP53ND2Q.js} +1 -1
- package/build/js/chunks/{chunk-NT5WI2PS.js → chunk-YUZDO2PC.js} +1 -1
- package/build/js/chunks/{chunk-NY2HBST4.js → chunk-YXXMWHFX.js} +1 -1
- package/build/js/controls/CameraFOVSwitchControl.d.ts +4 -2
- package/build/js/controls/CameraFOVSwitchControl.js +1 -1
- package/build/js/controls/CameraSwitchControl.d.ts +4 -2
- package/build/js/controls/CameraSwitchControl.js +1 -1
- package/build/js/controls/TorchSwitchControl.d.ts +4 -2
- package/build/js/controls/TorchSwitchControl.js +1 -1
- package/build/js/controls/common.d.ts +4 -2
- package/build/js/controls/index.d.ts +4 -2
- package/build/js/controls/index.js +1 -1
- package/build/js/defaults/DefaultsCamera.d.ts +4 -2
- package/build/js/defaults/DefaultsCameraSettings.d.ts +1 -1
- package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
- package/build/js/index.d.ts +5 -3
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +4 -2
- package/build/js/private/AdditionalLayerPosition.d.ts +6 -0
- package/build/js/private/AdditionalLayerPosition.js +1 -0
- package/build/js/private/BatteryInterface.d.ts +81 -0
- package/build/js/private/BatteryInterface.js +1 -0
- package/build/js/private/CameraAccess.d.ts +1 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +5 -3
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +4 -2
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +4 -2
- package/build/js/private/FrameReaders/FrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +4 -2
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +4 -2
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/SingleImageUploaderView.d.ts +4 -2
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +4 -2
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -2
- package/build/js/private/customHowler.d.ts +27 -0
- package/build/js/private/customHowler.js +1 -0
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +4 -2
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +4 -2
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +4 -2
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/ImageConverterForwarder.d.ts +4 -2
- package/build/js/worker/ViewInfoHelper.d.ts +4 -2
- package/build/js/worker/WorkerMain.d.ts +4 -2
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -2
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +4 -2
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +4 -2
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -2
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/index.d.ts +4 -2
- package/build/js/worker/index.js +1 -1
- package/package.json +6 -6
- package/build/js/chunks/chunk-A225YZFY.js +0 -2
- package/build/js/chunks/chunk-LH2NI5UL.js +0 -2
- package/build/js/chunks/chunk-Q5WJX5JB.js +0 -1
- package/build/js/chunks/chunk-RVAHEVSC.js +0 -1
- package/build/js/chunks/chunk-TR5HATUD.js +0 -1
- package/build/js/chunks/chunk-TTMLHWYT.js +0 -6
- package/build/js/chunks/chunk-UOQFOEG6.js +0 -1
- package/build/js/chunks/chunk-VQYVIA64.js +0 -1
- package/build/js/chunks/chunk-ZDROGZFO.js +0 -1
- /package/build/js/chunks/{chunk-TU2LKPHV.js → chunk-FHNMZZV2.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,n,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,c,n,l)=>{if(c&&"object"==typeof c||"function"==typeof c)for(let u of o(c))p.call(e,u)||u===n||t(e,u,{get:()=>c[u],enumerable:!(l=r(c,u))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,p={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(p,{CHN:()=>y,Id:()=>i,K:()=>l}),module.exports=(e=p,((e,p,a,l)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of o(p))n.call(e,i)||i===a||t(e,i,{get:()=>p[i],enumerable:!(l=r(p,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=String.fromCodePoint,l=a.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),i=a.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),y=a.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);
|
package/build/electron/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r=Object.defineProperty,
|
|
1
|
+
"use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,i)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let l of n(p))o.call(e,l)||l===a||r(e,l,{get:()=>p[l],enumerable:!(i=t(p,l))||i.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),i=String.fromCodePoint,l=i.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),y=i.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=i.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(l,Object.freeze(function(e){return{getAppInfo:async()=>new Promise((r,t)=>{e.once(c,(e,n)=>{d(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)}),e.send(c,{type:"get-app-info",senderId:y})}),getKey:async r=>new Promise((t,n)=>{e.once(c,(e,r)=>{d(r)&&n(r.payload.error),"get-license-key"===r.type&&t(r.payload)}),e.send(c,{type:"get-license-key",senderId:y,payload:r})})}}(e)))}
|
|
@@ -391,4 +391,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
391
391
|
private isZoomAvailable;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
export { AspectRatio as A,
|
|
394
|
+
export { AspectRatio as A, Camera as C, type DeviceCamera as D, FocusGestureStrategy as F, type PrivateCameraExtraProperties as P, TorchState as T, type VideoFrameResolution as V, type CameraJSON as a, CameraPosition as b, CameraSettings as c, type CameraSettingsFromJSON as d, type CameraSettingsJSON as e, type CameraSettingsJSONBase as f, type FrameSource as g, type FrameSourceJSON as h, type FrameSourceListener as i, FrameSourceState as j, VideoResolution as k, isCameraFrameSource as l, CameraAccess as m, CameraPosition$1 as n, CameraResolutionConstraint as o };
|
package/build/js/Camera.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export {
|
|
2
|
+
export { C as Camera, a as CameraJSON, V as VideoFrameResolution } from './Camera-BnPnXqAt.js';
|
|
3
3
|
import './commons/Rect.js';
|
|
4
4
|
import './private/privateAccess.js';
|
|
5
5
|
import './private/Serializable.js';
|
package/build/js/Camera.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Camera}from'./chunks/chunk-
|
|
1
|
+
export{a as Camera}from'./chunks/chunk-XW3Z6KKS.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { b as CameraPosition,
|
|
2
|
+
export { b as CameraPosition, c as CameraSettings, d as CameraSettingsFromJSON, e as CameraSettingsJSON, f as CameraSettingsJSONBase, F as FocusGestureStrategy, g as FrameSource, h as FrameSourceJSON, i as FrameSourceListener, j as FrameSourceState, P as PrivateCameraExtraProperties, T as TorchState, k as VideoResolution, l as isCameraFrameSource } from './Camera-BnPnXqAt.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './commons/Rect.js';
|
|
5
5
|
import './commons/Point.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { C as Camera, D as DeviceCamera, c as CameraSettings, b as CameraPosition, g as FrameSource, h as FrameSourceJSON } from './Camera-BnPnXqAt.js';
|
|
3
3
|
import { DataCaptureContextSettingsJSON, DataCaptureContextSettings } from './DataCaptureContextSettings.js';
|
|
4
4
|
import { LogoStyle, FocusGestureJSON, ZoomGestureJSON, FocusGesture, ZoomGesture } from './DataCaptureViewPlusRelated.js';
|
|
5
5
|
import { NotificationPresenter } from './NotificationPresenter/NotificationPresenter.js';
|
|
@@ -14,11 +14,14 @@ import { Serializable } from './private/Serializable.js';
|
|
|
14
14
|
import { DidTapCustomLocationsViewListener, StateToRender, StateToRenderDomView } from './private/CustomLocationsView.js';
|
|
15
15
|
import { nativeHandle } from './private/nativeHandle.js';
|
|
16
16
|
import { AnchorPositions } from './private/AnchorPositions.js';
|
|
17
|
+
import { INTERNAL_ACCESS } from './private/privateAccess.js';
|
|
18
|
+
import { AdditionalLayerPosition } from './private/AdditionalLayerPosition.js';
|
|
17
19
|
import { JSONType } from './commons/JSONType.js';
|
|
18
20
|
import { OpenSourceSoftwareLicenseInfo } from './license/OpenSourceSoftwareLicenseInfo.js';
|
|
19
21
|
import { Logger } from './logger.js';
|
|
20
22
|
import { ColorType } from './private/FrameReaders/ColorType.js';
|
|
21
23
|
import { RectJSON, Rect } from './commons/Rect.js';
|
|
24
|
+
import { BatteryInfo } from './private/BatteryInterface.js';
|
|
22
25
|
import { ProgressInfo } from './LoadingStatus.js';
|
|
23
26
|
import { ScanditIcon } from './ScanditIcon.js';
|
|
24
27
|
import { ScanditHTMLElement } from './private/utils/ScanditHTMLElement.js';
|
|
@@ -101,6 +104,9 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
101
104
|
private htmlElementDidChangeHandler;
|
|
102
105
|
private htmlElementDisconnectedHandler;
|
|
103
106
|
private notificationPresenter;
|
|
107
|
+
[INTERNAL_ACCESS]: {
|
|
108
|
+
attachAdditionalLayer: (layer: HTMLElement, position: AdditionalLayerPosition) => void;
|
|
109
|
+
};
|
|
104
110
|
constructor();
|
|
105
111
|
get scanAreaMargins(): MarginsWithUnit;
|
|
106
112
|
set scanAreaMargins(margins: MarginsWithUnit);
|
|
@@ -202,7 +208,7 @@ interface PrivateControl extends Control, PrivateBaseControl {
|
|
|
202
208
|
/**
|
|
203
209
|
* MESSAGES (ACTIONS) SENT TO THE WORKER
|
|
204
210
|
*/
|
|
205
|
-
type DataCaptureActionMessageKey = "convertToJPEGResult" | "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
|
|
211
|
+
type DataCaptureActionMessageKey = "convertToJPEGResult" | "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateBatteryInfo" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
|
|
206
212
|
interface ExtractCentaurusLicenseResponse {
|
|
207
213
|
centaurus: {
|
|
208
214
|
licenseKey: string;
|
|
@@ -283,6 +289,10 @@ type SetLogLevelDataCaptureAction = DataCaptureActionMessage & {
|
|
|
283
289
|
command: "setLogLevel";
|
|
284
290
|
level: Logger.Level;
|
|
285
291
|
};
|
|
292
|
+
type UpdateBatteryInfoDataCaptureAction = DataCaptureActionMessage & {
|
|
293
|
+
command: "updateBatteryInfo";
|
|
294
|
+
batteryInfo: BatteryInfo;
|
|
295
|
+
};
|
|
286
296
|
type ExtractCentaurusLicenseDataCaptureAction = DataCaptureActionMessage & {
|
|
287
297
|
command: "extractCentaurusLicense";
|
|
288
298
|
licenseKey: string;
|
|
@@ -314,7 +324,7 @@ type RemoveNativeOverlayAction = DataCaptureActionMessage & {
|
|
|
314
324
|
id: number;
|
|
315
325
|
};
|
|
316
326
|
};
|
|
317
|
-
type AnyDataCaptureActionMessage = ConvertToJPEGResultDataCaptureAction | CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
|
|
327
|
+
type AnyDataCaptureActionMessage = ConvertToJPEGResultDataCaptureAction | CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateBatteryInfoDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
|
|
318
328
|
/**
|
|
319
329
|
* MESSAGES EMITTED BY THE WORKER
|
|
320
330
|
*/
|
|
@@ -525,6 +535,13 @@ interface WasmFrameData extends EmscriptenClassHandle {
|
|
|
525
535
|
getMirrorAxis: () => unknown;
|
|
526
536
|
getOrientation: () => unknown;
|
|
527
537
|
}
|
|
538
|
+
interface BatteryData {
|
|
539
|
+
percentage: number;
|
|
540
|
+
}
|
|
541
|
+
interface DeviceInterfaceInstance extends EmscriptenClassHandle {
|
|
542
|
+
getBatteryData(): BatteryData | undefined;
|
|
543
|
+
isTablet(): boolean;
|
|
544
|
+
}
|
|
528
545
|
declare enum HintFont {
|
|
529
546
|
Body = "body",
|
|
530
547
|
Footnote = "footnote"
|
|
@@ -741,6 +758,16 @@ interface Module extends EmscriptenModule {
|
|
|
741
758
|
}) => new () => EmscriptenClassHandle;
|
|
742
759
|
};
|
|
743
760
|
setDataDecoding: (decoder: unknown) => void;
|
|
761
|
+
BatteryData: new (percentage: number) => BatteryData;
|
|
762
|
+
DeviceInterface: {
|
|
763
|
+
extend: (target: "DeviceInterface", methods: {
|
|
764
|
+
getBatteryData: () => BatteryData | undefined;
|
|
765
|
+
isTablet: () => boolean;
|
|
766
|
+
}) => new () => DeviceInterfaceInstance;
|
|
767
|
+
};
|
|
768
|
+
DeviceHolder: {
|
|
769
|
+
setCurrentDevice: (device: DeviceInterfaceInstance) => void;
|
|
770
|
+
};
|
|
744
771
|
LicenseUtils: {
|
|
745
772
|
getBlinkIdLicenseKey: (scanditLicense: string) => string;
|
|
746
773
|
};
|
|
@@ -793,6 +820,8 @@ interface CreateContextParameters {
|
|
|
793
820
|
highEndBlurryRecognition: boolean;
|
|
794
821
|
appName: string | null;
|
|
795
822
|
parentDomain: string;
|
|
823
|
+
isTablet: boolean;
|
|
824
|
+
batteryInfo: BatteryInfo;
|
|
796
825
|
}
|
|
797
826
|
interface UpdateContextParameters {
|
|
798
827
|
context: DataCaptureContextJSON;
|
|
@@ -882,6 +911,8 @@ declare class DataCaptureEngine<M extends Module> {
|
|
|
882
911
|
protected gestureRecognizer: GestureRecognizer | null;
|
|
883
912
|
private gestureListener;
|
|
884
913
|
private webPlatformHintPresenter;
|
|
914
|
+
private deviceInstance;
|
|
915
|
+
private deviceInfo;
|
|
885
916
|
private webImageConverterInstance;
|
|
886
917
|
private lastViewInfo;
|
|
887
918
|
constructor(moduleHandler: ModuleHandler<M>, workerFunctions: WorkerFunctions);
|
|
@@ -986,6 +1017,10 @@ declare class DataCaptureEngine<M extends Module> {
|
|
|
986
1017
|
removeNativeOverlay(event: MessageEvent<AnyDataCaptureActionMessage>): void;
|
|
987
1018
|
private setViewRefreshHandler;
|
|
988
1019
|
private setupDataDecoding;
|
|
1020
|
+
private getBatteryData;
|
|
1021
|
+
private isTablet;
|
|
1022
|
+
private setupDeviceInterface;
|
|
1023
|
+
updateBatteryInfo(batteryInfo: BatteryInfo): void;
|
|
989
1024
|
private start;
|
|
990
1025
|
private getWritableDataPath;
|
|
991
1026
|
private numOfMBToPages;
|
|
@@ -1564,10 +1599,12 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1564
1599
|
private readonly cameraAccessErrorListener;
|
|
1565
1600
|
private readonly onWorkerMessageListener;
|
|
1566
1601
|
private readonly onVisibilityChangeListener;
|
|
1602
|
+
private readonly batteryChangeListener;
|
|
1567
1603
|
private dataCaptureInstance;
|
|
1568
1604
|
private readonly pendingWorkerMessageListeners;
|
|
1569
1605
|
private delayedRegistration;
|
|
1570
1606
|
private highEndBlurryRecognition;
|
|
1607
|
+
private webBatteryInterface;
|
|
1571
1608
|
private readonly _frameHandlers;
|
|
1572
1609
|
/**
|
|
1573
1610
|
* When synchronous, only one frame is processed at a time by the capture mode, the frame source will wait until the
|
|
@@ -1651,6 +1688,7 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1651
1688
|
private sendFrameToSDC;
|
|
1652
1689
|
private registerFrameHandler;
|
|
1653
1690
|
private unregisterFrameHandler;
|
|
1691
|
+
private onBatteryChange;
|
|
1654
1692
|
private onVisibilityChange;
|
|
1655
1693
|
private getImageConverterInstance;
|
|
1656
1694
|
private onWorkerMessage;
|
|
@@ -1679,4 +1717,4 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1679
1717
|
protected isFeatureSupported(feature: LicensedFeature): Promise<boolean>;
|
|
1680
1718
|
}
|
|
1681
1719
|
|
|
1682
|
-
export { type
|
|
1720
|
+
export { type ConvertToJPEGResultDataCaptureAction as $, type PrivateFrameHandlerResponse as A, type PrivateLoadableFrameData as B, type Control as C, type DataCaptureComponent as D, PrivateMirrorAxis as E, type FrameData as F, convertToPublicFrameData as G, HintPresenter as H, type PerformanceMetrics as I, type FrameId as J, DataCaptureEngine as K, type Module as L, type ModuleLoader as M, type GenericHint as N, type FrameCapture as O, type PrivateCapabilityInfo as P, type AnyDataCaptureActionMessage as Q, type AugmentedWorker as R, type ModuleHandler as S, type DataCaptureCallbackMessage as T, type DataCaptureActionMessageKey as U, type ViewInfo as V, type WorkerFunctions as W, type EngineWorkerResponse as X, type AddNativeOverlayAction as Y, type BatteryData as Z, type CaptureModeDeserializerInstance as _, type ControlType as a, type SetLogLevelDataCaptureAction as a$, type CreateContextDataCaptureAction as a0, type CreateContextParameters as a1, type DataCaptureCallbackMessageKeys as a2, type DataCaptureContext$1 as a3, type DataCaptureContextDeserializer as a4, type DataCaptureContextDeserializerResult as a5, type DataCaptureImageBufferFrameSource as a6, type DataCaptureView as a7, type DataCaptureWorker as a8, type DeleteFrameDataDataCaptureAction as a9, type HintStyle as aA, HintTextAlignment as aB, HintWidth as aC, type IsFeatureSupportedAction as aD, type IsFeatureSupportedMessage as aE, type IsFeatureSupportedResponse as aF, type JSONParseable as aG, LicensedFeature as aH, type LoadLibraryDataCaptureAction as aI, type LoadLibraryParameters as aJ, type ModuleMirrorAxis as aK, type OnFrameProcessingFinishedMessage as aL, type OnFrameProcessingStartedMessage as aM, type OnFrameSkippedMessage as aN, type OnTapAction as aO, type PayloadForCommand as aP, type PerformanceMetricsReportMessage as aQ, type PlatformHintPresenter as aR, type ProcessFrameDataCaptureAction as aS, type ProcessFrameParameters as aT, type RemoveNativeOverlayAction as aU, type ReportCameraPropertiesDataCaptureAction as aV, type ReportCameraPropertiesParameters as aW, type RequestFrameDataDataCaptureAction as aX, type RequestFrameDataResponse as aY, type SetFrameSourceDataCaptureAction as aZ, type SetFrameSourceParameters as a_, type DeviceInterfaceInstance as aa, type DidTapTrackedBarcode as ab, type DisposeDataCaptureAction as ac, type EmscriptenClassHandle as ad, type ExtractCentaurusLicenseDataCaptureAction as ae, type ExtractCentaurusLicenseResponse as af, type FlushAnalyticsDataCaptureAction as ag, type GestureListener as ah, type GestureRecognizer as ai, type GetOpenSourceSoftwareLicenseInfoAction as aj, type GetOpenSourceSoftwareLicenseInfoResponse as ak, type GetViewfinderInfoAction as al, type GetViewfinderInfoResponse as am, type GuidanceHint as an, GuidanceHintAnchor as ao, GuidanceHintStyle as ap, type HideGuidanceMessage as aq, type HideHintWorkerMessage as ar, type HideToastMessage as as, HintAnchor as at, HintCornerStyle as au, HintFont as av, HintHeight as aw, HintIcon as ax, type HintPresenterV2 as ay, type HintPresenterV2updateAction as az, type Change as b, type ShowGuidanceMessage as b0, type ShowHintWorkerMessage as b1, type ShowToastMessage as b2, type StartUpdateTimerMessage as b3, type StopUpdateTimerMessage as b4, type SuccessFeedbackWorkerMessage as b5, type ToastHint as b6, ToastHintStyle as b7, type UpdateBatteryInfoDataCaptureAction as b8, type UpdateContextDataCaptureAction as b9, type UpdateContextParameters as ba, type UpdateHintWorkerMessage as bb, type Vector as bc, type ViewSizeChangedMessage as bd, type VisibilityChangeAction as be, type WasmFrameData as bf, type WorkerResponse as bg, type PrivateBaseControl as bh, type PrivateControl as bi, CameraManager as bj, CameraManagerEvent as bk, type CameraManagerEventParameters as bl, CameraResolutionConstraint as bm, type ExtendedMediaTrackCapabilities as bn, type ExtendedMediaTrackConstraintSet as bo, type GUI as bp, MeteringMode as bq, createFrameId as br, HintPresenterEvents as bs, ContextStatus as c, type ContextStatusJSON as d, type DataCaptureComponentJSON as e, DataCaptureContext as f, type DataCaptureContextCreationOptions as g, type DataCaptureContextJSON as h, type DataCaptureContextListener as i, type DataCaptureContextState as j, DataCaptureLoader as k, type DataCaptureLoaderOptions as l, type DataCaptureMode as m, type DataCaptureModeJSON as n, type DataCaptureOverlay as o, DataCaptureView$1 as p, type DataCaptureViewConnectOptions as q, type DataCaptureViewJSON as r, type DataCaptureViewListener as s, type ModuleLoaderOptions as t, type PrivateChangeSet as u, type PrivateDataCaptureComponent as v, type PrivateDataCaptureContext as w, type PrivateDataCaptureContextOptions as x, type PrivateDataCaptureMode as y, type PrivateFrameHandler as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import './Camera-
|
|
3
|
-
export { b as Change,
|
|
2
|
+
import './Camera-BnPnXqAt.js';
|
|
3
|
+
export { b as Change, D as DataCaptureComponent, e as DataCaptureComponentJSON, f as DataCaptureContext, g as DataCaptureContextCreationOptions, h as DataCaptureContextJSON, j as DataCaptureContextState, m as DataCaptureMode, n as DataCaptureModeJSON, t as ModuleLoaderOptions, P as PrivateCapabilityInfo, u as PrivateChangeSet, v as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, x as PrivateDataCaptureContextOptions, y as PrivateDataCaptureMode, z as PrivateFrameHandler, A as PrivateFrameHandlerResponse } from './DataCaptureContext-LM_Re1B4.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './commons/JSONType.js';
|
|
6
6
|
import './commons/Orientation.js';
|
|
@@ -31,7 +31,9 @@ import './commons/Quadrilateral.js';
|
|
|
31
31
|
import './private/CustomLocationsView.js';
|
|
32
32
|
import './private/View.js';
|
|
33
33
|
import './private/AnchorPositions.js';
|
|
34
|
+
import './private/AdditionalLayerPosition.js';
|
|
34
35
|
import './private/FrameReaders/ColorType.js';
|
|
36
|
+
import './private/BatteryInterface.js';
|
|
35
37
|
import './LoadingStatus.js';
|
|
36
38
|
import './private/djinni-types/index.js';
|
|
37
39
|
import './commons/SizeWithUnit.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as DataCaptureContext}from'./chunks/chunk-
|
|
1
|
+
export{b as DataCaptureContext}from'./chunks/chunk-YMM2PV73.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export {
|
|
3
|
-
import './Camera-
|
|
2
|
+
export { c as ContextStatus, d as ContextStatusJSON, i as DataCaptureContextListener, E as PrivateMirrorAxis } from './DataCaptureContext-LM_Re1B4.js';
|
|
3
|
+
import './Camera-BnPnXqAt.js';
|
|
4
4
|
import './ScanditIcon.js';
|
|
5
5
|
import './DataCaptureContextSettings.js';
|
|
6
6
|
import './commons/JSONType.js';
|
|
@@ -24,14 +24,16 @@ import './private/CustomLocationsView.js';
|
|
|
24
24
|
import './private/View.js';
|
|
25
25
|
import './private/AnchorPositions.js';
|
|
26
26
|
import './private/nativeHandle.js';
|
|
27
|
+
import './private/privateAccess.js';
|
|
28
|
+
import './private/AdditionalLayerPosition.js';
|
|
27
29
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
28
30
|
import './logger.js';
|
|
29
31
|
import './private/FrameReaders/ColorType.js';
|
|
30
32
|
import './commons/Rect.js';
|
|
33
|
+
import './private/BatteryInterface.js';
|
|
31
34
|
import './LoadingStatus.js';
|
|
32
35
|
import './private/djinni-types/index.js';
|
|
33
36
|
import './private/HtmlElementState.js';
|
|
34
37
|
import './commons/SizeWithUnit.js';
|
|
35
38
|
import './private/utils/AsyncStateMachine.js';
|
|
36
39
|
import './tsHelper.js';
|
|
37
|
-
import './private/privateAccess.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureVersion}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-7JVAQ2A3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import './Camera-
|
|
3
|
-
export {
|
|
2
|
+
import './Camera-BnPnXqAt.js';
|
|
3
|
+
export { o as DataCaptureOverlay, p as DataCaptureView, q as DataCaptureViewConnectOptions, r as DataCaptureViewJSON, s as DataCaptureViewListener } from './DataCaptureContext-LM_Re1B4.js';
|
|
4
4
|
import './DataCaptureViewPlusRelated.js';
|
|
5
5
|
import './NotificationPresenter/NotificationPresenter.js';
|
|
6
6
|
import './commons/Anchor.js';
|
|
@@ -14,13 +14,15 @@ import './private/CustomLocationsView.js';
|
|
|
14
14
|
import './private/Serializable.js';
|
|
15
15
|
import './private/nativeHandle.js';
|
|
16
16
|
import './private/AnchorPositions.js';
|
|
17
|
-
import './commons/Rect.js';
|
|
18
17
|
import './private/privateAccess.js';
|
|
18
|
+
import './private/AdditionalLayerPosition.js';
|
|
19
|
+
import './commons/Rect.js';
|
|
19
20
|
import './DataCaptureContextSettings.js';
|
|
20
21
|
import './commons/JSONType.js';
|
|
21
22
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
22
23
|
import './logger.js';
|
|
23
24
|
import './private/FrameReaders/ColorType.js';
|
|
25
|
+
import './private/BatteryInterface.js';
|
|
24
26
|
import './LoadingStatus.js';
|
|
25
27
|
import './ScanditIcon.js';
|
|
26
28
|
import './commons/Color.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-BQO4QYI6.js';
|
package/build/js/Feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Feedback}from'./chunks/chunk-
|
|
1
|
+
export{a as Feedback}from'./chunks/chunk-7EGT56UE.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { F as FrameData,
|
|
2
|
+
export { F as FrameData, B as PrivateLoadableFrameData, G as convertToPublicFrameData } from './DataCaptureContext-LM_Re1B4.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
|
-
import './Camera-
|
|
4
|
+
import './Camera-BnPnXqAt.js';
|
|
5
5
|
import './commons/Rect.js';
|
|
6
6
|
import './private/Serializable.js';
|
|
7
7
|
import './commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import './private/CustomLocationsView.js';
|
|
|
26
26
|
import './private/View.js';
|
|
27
27
|
import './private/AnchorPositions.js';
|
|
28
28
|
import './private/nativeHandle.js';
|
|
29
|
+
import './private/AdditionalLayerPosition.js';
|
|
29
30
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import './logger.js';
|
|
31
32
|
import './private/FrameReaders/ColorType.js';
|
|
33
|
+
import './private/BatteryInterface.js';
|
|
32
34
|
import './LoadingStatus.js';
|
|
33
35
|
import './private/djinni-types/index.js';
|
|
34
36
|
import './private/HtmlElementState.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { g as FrameSource,
|
|
2
|
+
import { g as FrameSource, j as FrameSourceState, i as FrameSourceListener } from './Camera-BnPnXqAt.js';
|
|
3
3
|
import { Serializable } from './private/Serializable.js';
|
|
4
4
|
import './commons/Rect.js';
|
|
5
5
|
import './commons/Point.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ImageFrameSource}from'./chunks/chunk-
|
|
1
|
+
export{a as ImageFrameSource}from'./chunks/chunk-OCKYBUXO.js';
|
|
@@ -8,8 +8,8 @@ import '../commons/Color.js';
|
|
|
8
8
|
import '../private/Serializable.js';
|
|
9
9
|
import '../ScanditIcon.js';
|
|
10
10
|
import '../private/utils/ScanditHTMLElement.js';
|
|
11
|
-
import '../DataCaptureContext-
|
|
12
|
-
import '../Camera-
|
|
11
|
+
import '../DataCaptureContext-LM_Re1B4.js';
|
|
12
|
+
import '../Camera-BnPnXqAt.js';
|
|
13
13
|
import '../commons/Rect.js';
|
|
14
14
|
import '../commons/Point.js';
|
|
15
15
|
import '../commons/Size.js';
|
|
@@ -28,9 +28,11 @@ import '../private/CustomLocationsView.js';
|
|
|
28
28
|
import '../private/View.js';
|
|
29
29
|
import '../private/AnchorPositions.js';
|
|
30
30
|
import '../private/nativeHandle.js';
|
|
31
|
+
import '../private/AdditionalLayerPosition.js';
|
|
31
32
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
32
33
|
import '../logger.js';
|
|
33
34
|
import '../private/FrameReaders/ColorType.js';
|
|
35
|
+
import '../private/BatteryInterface.js';
|
|
34
36
|
import '../LoadingStatus.js';
|
|
35
37
|
import '../private/djinni-types/index.js';
|
|
36
38
|
import '../private/HtmlElementState.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { H as HintPresenter } from '../../DataCaptureContext-
|
|
2
|
+
import { H as HintPresenter } from '../../DataCaptureContext-LM_Re1B4.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import { NotificationPresenter } from '../NotificationPresenter.js';
|
|
5
|
-
import '../../Camera-
|
|
5
|
+
import '../../Camera-BnPnXqAt.js';
|
|
6
6
|
import '../../commons/Rect.js';
|
|
7
7
|
import '../../private/Serializable.js';
|
|
8
8
|
import '../../commons/Point.js';
|
|
@@ -22,9 +22,11 @@ import '../../private/CustomLocationsView.js';
|
|
|
22
22
|
import '../../private/View.js';
|
|
23
23
|
import '../../private/AnchorPositions.js';
|
|
24
24
|
import '../../private/nativeHandle.js';
|
|
25
|
+
import '../../private/AdditionalLayerPosition.js';
|
|
25
26
|
import '../../license/OpenSourceSoftwareLicenseInfo.js';
|
|
26
27
|
import '../../logger.js';
|
|
27
28
|
import '../../private/FrameReaders/ColorType.js';
|
|
29
|
+
import '../../private/BatteryInterface.js';
|
|
28
30
|
import '../../LoadingStatus.js';
|
|
29
31
|
import '../../ScanditIcon.js';
|
|
30
32
|
import '../../commons/Color.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { N as GenericHint } from '../../DataCaptureContext-
|
|
2
|
+
import { N as GenericHint } from '../../DataCaptureContext-LM_Re1B4.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
|
-
import '../../Camera-
|
|
4
|
+
import '../../Camera-BnPnXqAt.js';
|
|
5
5
|
import '../../commons/Rect.js';
|
|
6
6
|
import '../../private/Serializable.js';
|
|
7
7
|
import '../../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../../private/View.js';
|
|
27
27
|
import '../../private/AnchorPositions.js';
|
|
28
28
|
import '../../private/nativeHandle.js';
|
|
29
|
+
import '../../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../../logger.js';
|
|
31
32
|
import '../../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../../private/BatteryInterface.js';
|
|
32
34
|
import '../../LoadingStatus.js';
|
|
33
35
|
import '../../private/djinni-types/index.js';
|
|
34
36
|
import '../../private/HtmlElementState.js';
|
package/build/js/ScanditIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-
|
|
1
|
+
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-FMOB7R2T.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-
|
|
1
|
+
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-DQ5X7FNV.js';export{a as ScanditIconShape}from'./chunks/chunk-FMOB7R2T.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { g as FrameSource, h as FrameSourceJSON, j as FrameSourceState, i as FrameSourceListener } from './Camera-BnPnXqAt.js';
|
|
3
3
|
import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
|
|
4
4
|
import { Serializable } from './private/Serializable.js';
|
|
5
5
|
import './commons/Rect.js';
|
package/build/js/Sound.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Sound}from'./chunks/chunk-
|
|
1
|
+
export{a as Sound}from'./chunks/chunk-BV63CXZF.js';
|
package/build/js/Vibration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Vibration}from'./chunks/chunk-
|
|
1
|
+
export{a as Vibration}from'./chunks/chunk-IASACVTH.js';
|
|
@@ -146,6 +146,16 @@ declare namespace BrowserHelper {
|
|
|
146
146
|
* @hidden
|
|
147
147
|
*/
|
|
148
148
|
export function isIosWebView(): boolean;
|
|
149
|
+
/**
|
|
150
|
+
* @hidden
|
|
151
|
+
*/
|
|
152
|
+
export function isAndroid(): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Check if the device is a tablet.
|
|
155
|
+
* @returns Whether the device is a tablet.
|
|
156
|
+
* @hidden
|
|
157
|
+
*/
|
|
158
|
+
export function isTablet(): boolean;
|
|
149
159
|
/**
|
|
150
160
|
* Check if the document is served by an Android web view.
|
|
151
161
|
* @returns Whether the document is served by an Android web view.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-
|
|
1
|
+
export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-YONR3EGV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$2}from'./chunk-BDGRWHLY.js';import {a as a$1}from'./chunk-MA6UDVDJ.js';var a={focusGesture:null,zoomGesture:null,logoAnchor:"bottomRight",logoStyle:"extended",logoOffset:a$2.fromJSON({x:{value:0,unit:"fraction"},y:{value:0,unit:"fraction"}}),pointOfInterest:a$2.fromJSON({x:{value:.5,unit:"fraction"},y:{value:.5,unit:"fraction"}}),scanAreaMargins:a$1.fromJSON({left:{value:0,unit:"fraction"},right:{value:0,unit:"fraction"},top:{value:0,unit:"fraction"},bottom:{value:0,unit:"fraction"}}),cameraRecoveryText:"(This text is updated from translations)"};export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-UWBNF47P.js';import {a
|
|
1
|
+
import {a as a$3}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=this.render(),e.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return t.register(),document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var o=t;export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-UWBNF47P.js';import {a
|
|
1
|
+
import {a as a$2}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$1}from'./chunk-3A4KLILV.js';var r="inline-style",e=class e extends a{get fill(){var t;return (t=this.getAttribute("fill"))!=null?t:"black"}set fill(t){this.setAttribute("fill",t);}get size(){var t;return Number((t=this.getAttribute("size"))!=null?t:"32")}set size(t){this.setAttribute("size",t.toString());}get[r](){return this.getAttribute(r)}set[r](t){t==null?this.removeAttribute(r):this.setAttribute(r,t);}static register(){a$1({[e.tag]:e});}static create(){return e.register(),document.createElement(e.tag)}render(){return a$2`<div></div>`}heightForViewbox(t,i){return this.size*this.aspectRatioForViewbox(t,i)}aspectRatioForViewbox(t,i){return i/t}connectedCallback(){this.innerHTML=this.render();}attributeChangedCallback(t,i,b){b!==i&&(this.innerHTML=this.render());}};e.tag="scandit-svg-icon",e.observedAttributes=["fill","size"];var u=e;export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-33ZWDLU7.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return e.register(),document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7C11.4477 7 11 7.44772 11 8V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V8C13 7.44772 12.5523 7 12 7ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-exclamation-mark-icon";var r=e;export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-BV63CXZF.js';import {a}from'./chunk-IASACVTH.js';var o=class r{constructor(i,e){this._vibration=null;this._sound=null;this._vibration=i,this._sound=e;}static get defaultFeedback(){return new r(a.defaultVibration,a$1.defaultSound)}get vibration(){return this._vibration}get sound(){return this._sound}emit(){this.sound&&this.sound.play(),this.vibration&&this.vibration.vibrate();}toJSONObject(){let i={};return this.sound!==null&&(i.sound=this.sound.toJSONObject()),this.vibration!==null&&(i.vibration=this.vibration.toJSONObject()),i}};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e;(o=>{function i(){let r="8.3.0-beta.1";return r}o.sdkVersion=i;})(e||(e={}));export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-XW3Z6KKS.js';import {d}from'./chunk-YUZDO2PC.js';import {b}from'./chunk-YONR3EGV.js';import {f,g}from'./chunk-3D2HNEVH.js';var c=class{constructor(){this.type="camera-fov";this.customIcons={wide:{idle:"",pressed:""},ultraWide:{idle:"",pressed:""}};this.fovSwitchButton=void 0;this.CameraFOVSwitchButtonClass=void 0;this.currentFrameSource=null;this.view=void 0;this.onCameraFOVChanged=this.handleCameraFOVChanged.bind(this);this.isTransitioning=false;}get cameraFOVWideImage(){return this.customIcons.wide.idle}set cameraFOVWideImage(e){this.customIcons.wide.idle=e,this.applyCustomImagesToButton();}get cameraFOVWidePressedImage(){return this.customIcons.wide.pressed}set cameraFOVWidePressedImage(e){this.customIcons.wide.pressed=e,this.applyCustomImagesToButton();}get cameraFOVUltraWideImage(){return this.customIcons.ultraWide.idle}set cameraFOVUltraWideImage(e){this.customIcons.ultraWide.idle=e,this.applyCustomImagesToButton();}get cameraFOVUltraWidePressedImage(){return this.customIcons.ultraWide.pressed}set cameraFOVUltraWidePressedImage(e){this.customIcons.ultraWide.pressed=e,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(e){var a,r,n;this.CameraFOVSwitchButtonClass||(this.CameraFOVSwitchButtonClass=await import('../private/ui/molecules/CameraFOVSwitchButton.js').then(d=>d.CameraFOVSwitchButton),(a=this.CameraFOVSwitchButtonClass)==null||a.register()),this.view=e,this.currentFrameSource=(n=(r=e.getContext())==null?void 0:r.frameSource)!=null?n:null,this.fovSwitchButton=this.CameraFOVSwitchButtonClass.create(),this.fovSwitchButton.slot="bottomRight",this.fovSwitchButton.hidden=true,this.updateButtonMode(),this.fovSwitchButton.addEventListener("camera-fov-changed",this.onCameraFOVChanged);let t=e.controlsElement;return t&&t.append(this.fovSwitchButton),this.applyCustomImagesToButton(),await this.canShow()&&(await this.setInitialWideCamera(),this.updateButtonVisibility(true)),true}remove(e){e&&this.fovSwitchButton&&(this.fovSwitchButton.removeEventListener("camera-fov-changed",this.onCameraFOVChanged),this.fovSwitchButton.remove(),this.fovSwitchButton=null,this.currentFrameSource=null,this.view=void 0);}async update(e){var i,a;this.currentFrameSource=(a=(i=e.getContext())==null?void 0:i.frameSource)!=null?a:null,this.view=e,this.updateButtonMode();let t=await this.canShow();this.updateButtonVisibility(t);}updateButtonMode(){if(!this.fovSwitchButton)return;let t=this.isUltraWideBackCamera()?"0.5x":"1.0x";this.fovSwitchButton.mode=t;}applyCustomImagesToButton(){if(!this.fovSwitchButton)return;this.customIcons.wide.idle||this.customIcons.wide.pressed||this.customIcons.ultraWide.idle||this.customIcons.ultraWide.pressed?this.fovSwitchButton.setCustomImages(this.customIcons):this.fovSwitchButton.useCustomImages=false;}updateButtonVisibility(e){this.fovSwitchButton&&(this.fovSwitchButton.hidden=!e);}async canShow(){if(!b.isIOSDeviceWithExtendedCameraAccess())return false;let e=this.currentFrameSource;return e===null||!f(e)?false:d.isIOSBackDualWideCameraLabel(e.label)||d.isIOSBackCameraLabel(e.label)||d.isIOSUltraWideBackCameraLabel(e.label)}isUltraWideBackCamera(){let e=this.currentFrameSource;return f(e)?d.isIOSUltraWideBackCameraLabel(e.label):false}async handleCameraFOVChanged(e){await this.handleCameraFOVSwitch(),this.updateButtonMode();}async setInitialWideCamera(){var e,t;if(!this.isTransitioning&&!d.isIOSBackCameraLabel((t=(e=this.currentFrameSource)==null?void 0:e.label)!=null?t:"")){let a$1=(await a.getAll()).find(r=>d.isIOSBackCameraLabel(r.label));a$1&&await this.switchCameras(a$1);}}async handleCameraFOVSwitch(){if(this.isTransitioning)return false;let e=await this.getAlternativeCamera();return e?(await this.switchCameras(e),true):false}async getAlternativeCamera(){return (await a.getAll()).find(t=>this.isUltraWideBackCamera()?d.isIOSBackCameraLabel(t.label):d.isIOSUltraWideBackCameraLabel(t.label))}async switchCameras(e){var n;this.isTransitioning=true;let t=(n=this.view)==null?void 0:n.getContext(),i=t==null?void 0:t.frameSource,a,r;i!=null&&(a=new g(i.settings),r=i.desiredState),await(i==null?void 0:i.switchToDesiredState("off")),a!=null&&await e.applySettings(a),await(t==null?void 0:t.setFrameSource(e)),await(t==null?void 0:t.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-33ZWDLU7.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.625 15C17.3844 15 18 15.6156 18 16.375C18 17.1344 17.3844 17.75 16.625 17.75C15.8656 17.75 15.25 17.1344 15.25 16.375C15.25 15.6156 15.8656 15 16.625 15ZM20.75 16.375C20.75 14.0968 18.9032 12.25 16.625 12.25C14.3468 12.25 12.5 14.0968 12.5 16.375C12.5 18.6532 14.3468 20.5 16.625 20.5C18.9032 20.5 20.75 18.6532 20.75 16.375Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7223 13.2223C10.1853 13.7592 9.3147 13.7592 8.77773 13.2223C8.24076 12.6853 8.24076 11.8147 8.77773 11.2777L9.18046 10.875H8.375C7.61561 10.875 7 11.4906 7 12.25V21.875C7 22.6344 7.61561 23.25 8.375 23.25H16.625C17.3844 23.25 18 23.8656 18 24.625C18 25.3844 17.3844 26 16.625 26H8.375C6.09683 26 4.25 24.1532 4.25 21.875V12.25C4.25 9.97183 6.09683 8.125 8.375 8.125H9.18046L8.77773 7.72227C8.24076 7.1853 8.24076 6.3147 8.77773 5.77773C9.3147 5.24076 10.1853 5.24076 10.7223 5.77773L13.4723 8.52773C13.7301 8.78559 13.875 9.13533 13.875 9.5C13.875 9.86467 13.7301 10.2144 13.4723 10.4723L10.7223 13.2223Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 7.4375C20.75 7.0578 20.4422 6.75 20.0625 6.75H13.875C13.1156 6.75 12.5 6.13439 12.5 5.375C12.5 4.61561 13.1156 4 13.875 4H20.0625C21.961 4 23.5 5.53902 23.5 7.4375C23.5 7.8172 23.8078 8.125 24.1875 8.125H24.875C27.1532 8.125 29 9.97183 29 12.25V21.875C29 24.1532 27.1532 26 24.875 26H24.0695L24.4723 26.4027C25.0092 26.9397 25.0092 27.8103 24.4723 28.3473C23.9353 28.8842 23.0647 28.8842 22.5277 28.3473L19.7777 25.5973C19.2408 25.0603 19.2408 24.1897 19.7777 23.6527L22.5277 20.9027C23.0647 20.3658 23.9353 20.3658 24.4723 20.9027C25.0092 21.4397 25.0092 22.3103 24.4723 22.8473L24.0695 23.25H24.875C25.6344 23.25 26.25 22.6344 26.25 21.875V12.25C26.25 11.4906 25.6344 10.875 24.875 10.875H24.1875C22.289 10.875 20.75 9.33598 20.75 7.4375Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-camera-switch-icon";var C=e;export{C as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-TPHGDMKG.js';import {a as a$2}from'./chunk-LSZZVJ6B.js';function a(){let i=a$2`@keyframes scandit-rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.${a$1.CONTAINER_CLASS_NAME}{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.${a$1.CONTAINER_CLASS_NAME}:before{animation:scandit-rotation 1s linear infinite;background-color:#fff;content:" ";height:1px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;width:1px}`,o=a$2`.${a$1.PAINTBOARDS_CONTAINER_CLASS_NAME}{height:inherit;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}{aspect-ratio:16/9;background-color:#000;height:100%;min-height:1px;min-width:1px;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.PAINTBOARD_CLASS_NAME_STATE_ON}{aspect-ratio:auto}.${a$1.PAINTBOARD_CLASS_NAME} video{display:block;height:100%;object-fit:cover;transition:opacity .3s;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.MIRRORED_CLASS_NAME}{transform:scaleX(-1)}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}{align-items:center;background-color:#000;color:#fff;cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;transition:background-color .2s;width:100%;z-index:5}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}:focus-visible{outline:2px solid #06c;outline-offset:-4px}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}:hover:not([hidden]){background-color:#000c}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{align-items:center;background-color:#00000080;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:6}.${a$1.CAMERA_RECOVERY_CLASS_NAME}[hidden],.${a$1.ERROR_CLASS_NAME}[hidden]{display:none}.${a$1.PAINTBOARD_CLASS_NAME} canvas{height:100%;left:0;object-fit:cover;pointer-events:none;position:absolute;top:0;transition:opacity .3s;width:100%}`,n=a$2`.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME}{-webkit-tap-highlight-color:rgba(255,255,255,0);align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label input[type=file]{position:absolute;top:-9999px}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label button{pointer-events:none}`,A=a$2`.${a$1.FROZEN_FRAME}{height:100%;left:0;object-fit:cover;opacity:1;position:absolute;top:0;width:100%}.${a$1.FROZEN_FRAME}[hidden]{opacity:0;pointer-events:none;visibility:hidden}`;return [i,o,n,A]}export{a};
|