import {c}from'./chunk-SZUPDKV5.js';import {TorchState}from'@scandit/web-datacapture-core';var t=class{constructor(e,n){this.viewSettings=e,this.preferenceManager=n,this.state="Initial",this.scanningMode=e.defaultScanningMode.copyWith(n.scanningBehavior),this.zoomFactor=e.zoomFactorOut,this.holdingToScan=false,this.torchState=e.defaultTorchState;}get targetModeEnabled(){return this.scanningMode instanceof c}get scanningBehavior(){return this.scanningMode.scanningBehavior}set scanningBehavior(e){this.scanningMode=this.scanningMode.copyWith(e);}get previewBehavior(){return this.scanningMode.previewBehavior}set previewBehavior(e){this.scanningMode=this.scanningMode.copyWith(this.scanningBehavior,e);}get zoomedIn(){return this.zoomFactor===this.viewSettings.zoomFactorIn}get zoomedOut(){return this.zoomFactor===this.viewSettings.zoomFactorOut}get idleState(){return this.state==="idle"}get torchEnabled(){return this.torchState===TorchState.On}get continuousModeEnabled(){return this.scanningBehavior==="continuous"}get portraitOrientationTriggerButtonTranslateX(){return this.preferenceManager.portraitOrientationTriggerButtonTranslateX}set portraitOrientationTriggerButtonTranslateX(e){this.preferenceManager.portraitOrientationTriggerButtonTranslateX=e;}get portraitOrientationTriggerButtonTranslateY(){return this.preferenceManager.portraitOrientationTriggerButtonTranslateY}set portraitOrientationTriggerButtonTranslateY(e){this.preferenceManager.portraitOrientationTriggerButtonTranslateY=e;}get landscapeOrientationTriggerButtonTranslateX(){return this.preferenceManager.landscapeOrientationTriggerButtonTranslateX}set landscapeOrientationTriggerButtonTranslateX(e){this.preferenceManager.landscapeOrientationTriggerButtonTranslateX=e;}get landscapeOrientationTriggerButtonTranslateY(){return this.preferenceManager.landscapeOrientationTriggerButtonTranslateY}set landscapeOrientationTriggerButtonTranslateY(e){this.preferenceManager.landscapeOrientationTriggerButtonTranslateY=e;}get portraitOrientationMiniPreviewTranslateX(){return this.preferenceManager.portraitOrientationMiniPreviewTranslateX}set portraitOrientationMiniPreviewTranslateX(e){this.preferenceManager.portraitOrientationMiniPreviewTranslateX=e;}get portraitOrientationMiniPreviewTranslateY(){return this.preferenceManager.portraitOrientationMiniPreviewTranslateY}set portraitOrientationMiniPreviewTranslateY(e){this.preferenceManager.portraitOrientationMiniPreviewTranslateY=e;}get landscapeOrientationMiniPreviewTranslateX(){return this.preferenceManager.landscapeOrientationMiniPreviewTranslateX}set landscapeOrientationMiniPreviewTranslateX(e){this.preferenceManager.landscapeOrientationMiniPreviewTranslateX=e;}get landscapeOrientationMiniPreviewTranslateY(){return this.preferenceManager.landscapeOrientationMiniPreviewTranslateY}set landscapeOrientationMiniPreviewTranslateY(e){this.preferenceManager.landscapeOrientationMiniPreviewTranslateY=e;}};export{t as a};