import {a as a$5}from'./chunks/chunk-GC2ECHKL.js';import {a as a$4}from'./chunks/chunk-ACFJP5SR.js';export{a as DataCaptureLoader}from'./chunks/chunk-VGSPU525.js';export{a as WorkerMain}from'./chunks/chunk-TFMMD7RK.js';export{a as OverrideState}from'./chunks/chunk-6W7FX6LD.js';import {a as a$6}from'./chunks/chunk-AIC4H5KG.js';export{a as NotificationBuilder}from'./chunks/chunk-VBRTZG3W.js';export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-W2FVIH2I.js';export{a as SingleImageUploader}from'./chunks/chunk-4TDWWHP2.js';export{a as SingleImageUploaderSettings}from'./chunks/chunk-5S5BT5PK.js';export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-FS52JIW4.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-BS7MAI4E.js';export{a as LaserlineViewfinder}from'./chunks/chunk-H75G3H4R.js';import {a as a$1}from'./chunks/chunk-JQDTJGOT.js';export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-AKDTQZ73.js';export{a as RectangularViewfinder}from'./chunks/chunk-6NVWG2LP.js';export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-27Z5CYJL.js';export{a as DataCaptureVersion}from'./chunks/chunk-JG5IRF3D.js';export{a as DataCaptureView}from'./chunks/chunk-6QDI75SI.js';import {a as a$a}from'./chunks/chunk-N5YZEC56.js';export{a as NotificationConfiguration}from'./chunks/chunk-KUVVZN66.js';export{a as NotificationStyle}from'./chunks/chunk-RXT3JWWR.js';export{a as AnchorPositions}from'./chunks/chunk-EKOWJS3E.js';import {a as a$3}from'./chunks/chunk-VJB527QZ.js';import {a as a$2}from'./chunks/chunk-GHTCNOQN.js';export{a as Localization}from'./chunks/chunk-GHTCNOQN.js';export{a as Feedback}from'./chunks/chunk-N2GWO3EX.js';export{a as Sound}from'./chunks/chunk-AUWF33RB.js';export{a as Vibration}from'./chunks/chunk-SJJGHQ52.js';export{a as AimerViewfinder}from'./chunks/chunk-26DQPDMK.js';export{a as Brush}from'./chunks/chunk-PUP3NNKU.js';export{a as Camera}from'./chunks/chunk-CYWUCE5E.js';export{a as CameraAccess}from'./chunks/chunk-DFFYK2ZZ.js';export{a as DataCaptureContext}from'./chunks/chunk-7BQCEIHQ.js';import {a as a$b,c}from'./chunks/chunk-LISC6VSM.js';import {a}from'./chunks/chunk-GNA6ZKV3.js';export{a as DataCaptureContextSettings}from'./chunks/chunk-7SW2PEHB.js';export{a as ScanditHTMLElement}from'./chunks/chunk-EV4OEANA.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$c}from'./chunks/chunk-QCZSSQAQ.js';export{a as DataCaptureError}from'./chunks/chunk-QCZSSQAQ.js';import {a as a$8}from'./chunks/chunk-UCD6YLP3.js';export{a as BrowserHelper}from'./chunks/chunk-UCD6YLP3.js';export{a as Feature}from'./chunks/chunk-NVK73TNL.js';import {a as a$7}from'./chunks/chunk-XR65N6EG.js';export{a as Logger}from'./chunks/chunk-XR65N6EG.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-7ELPJFJV.js';export{c as RectangularViewfinderAnimation,b as RectangularViewfinderLineStyle,a as RectangularViewfinderStyle}from'./chunks/chunk-WGLHZXRT.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-TPQTY3KB.js';export{a as ContextStatus,b as PrivateMirrorAxis}from'./chunks/chunk-WUHKODFA.js';var t=a.getInstance(),p=a$1.getInstance();async function A(){var e;t.configurePhase="unconfigured",t.configurePromise=null,(e=t.mainDataCaptureLoader)!=null&&e.terminateDataCaptureWorker&&await t.mainDataCaptureLoader.terminateDataCaptureWorker(true);}function y({percentage:e}){for(let r of a$a.values())r.setProgressBarPercentage(e);}function B(){var n,s,m;function e(f){return ["auto","off","on"].includes(f)}let r=new URLSearchParams(window.location.search),[o="auto",a="auto",i=false]=[(n=r.get("pthreads"))==null?void 0:n.toLowerCase(),(s=r.get("simd"))==null?void 0:s.toLowerCase(),((m=r.get("forceAllPolyfills"))==null?void 0:m.toLowerCase())==="true"];return {overrideThreadsSupport:e(o)?o:"auto",overrideSimdSupport:e(a)?a:"auto",forceAllPolyfills:i}}async function z(e){if(a$b()&&typeof e.licenseDataPath!="string")throw new a$c({name:"MisconfigurationError",message:'"licenseDataPath" string is missing or not valid'});if(a$b()&&typeof e.licenseDataPath=="string"){let o=await c({licenseDataPath:e.licenseDataPath});if(o==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=o.licenseKey;}if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$c({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$c({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$c({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let r=e.moduleLoaders.map(o=>o.moduleName);if(!["BarcodeCapture","IdCapture","LabelCapture"].includes(r[0]))throw new a$c({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}async function T(e,r){let o=new Map,a=new Map;for(let i of e)a.set(i.moduleName,i.load(r));await Promise.all(a.values());for(let[i,n]of a)o.set(i,await n);return o}async function mr(e){if(t.configurePhase!=="unconfigured"&&t.configurePromise!=null)return t.configurePromise;a$2.getInstance().updateIfMissing(a$3);let r=a.getInstance();async function o(){var f;a$4(),r.configurePhase="started";let{forceAllPolyfills:a,overrideThreadsSupport:i,overrideSimdSupport:n}=B();await a$5({forceAllPolyfills:a}),await z(e);let s={overrideThreadsSupport:i,overrideSimdSupport:n,...e,libraryLocation:a$6(e.libraryLocation),logLevel:(f=e.logLevel)!=null?f:a$7.Level.Debug,verifyResponseHash:true,loadProgressNotifier:p.notify.bind(p)};a$7.setLevel(s.logLevel),r.userLicenseKey=s.licenseKey,r.libraryLocation=s.libraryLocation,p.subscribe(y);let m=a$8.checkBrowserCompatibility();if(!m.fullSupport&&!m.scannerSupport)throw new a$9(m);a$8.isSupportedIOSVersion()||a$7.log(a$7.Level.Warn,`Warning: Minimum supported iOS version is 14.6.
Please check the minimum system requirements here:
https://docs.scandit.com/system-requirements#web-sdk`),r.dataCaptureLoaders=await T(s.moduleLoaders,s),r.mainDataCaptureLoader=[...r.dataCaptureLoaders.entries()][0][1],r.configurePhase="done",p.unsubscribe(y);}return r.configurePromise=o().catch(a=>{throw A(),a$1.getInstance().unsubscribe(y),a}),r.configurePromise}function ur(e,r){switch(t.configurePhase=e,e){case "done":r&&(t.mainDataCaptureLoader=r),t.configurePromise=Promise.resolve();break;case "unconfigured":t.configurePromise=null;break;default:throw new Error(`Invalid configure phase: ${e}`)}}
export{ur as __setConfigurePhase,mr as configure,p as loadingStatus,A as resetConfigure};