package com.kofax.kmc.kui.uicontrols.captureanimations; import android.content.Context; import com.kofax.kmc.kui.uicontrols.ImageCaptureView; import com.kofax.kmc.kui.uicontrols.captureanimations.CaptureMessage; import com.kofax.mobile.sdk._internal.dagger.Injector; import com.kofax.mobile.sdk.ak.c; import com.kofax.mobile.sdk.ak.e; import com.kofax.mobile.sdk.l.d; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class FixedAspectRatioCaptureExperience extends DocumentBaseCaptureExperience { private FixedAspectRatioExperienceCriteriaHolder ng; @InterfaceC13391fZD d nh; @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public void setCenterMessage(CaptureMessage captureMessage) { } @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public void setRotateMessage(CaptureMessage captureMessage) { } @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public void setZoomInMessage(CaptureMessage captureMessage) { } @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public void setZoomOutMessage(CaptureMessage captureMessage) { } public FixedAspectRatioCaptureExperience(ImageCaptureView imageCaptureView) { this(imageCaptureView, a((FixedAspectRatioExperienceCriteriaHolder) null), false); } public FixedAspectRatioCaptureExperience(ImageCaptureView imageCaptureView, FixedAspectRatioExperienceCriteriaHolder fixedAspectRatioExperienceCriteriaHolder) { this(imageCaptureView, a(fixedAspectRatioExperienceCriteriaHolder), true); } private static FixedAspectRatioExperienceCriteriaHolder a(FixedAspectRatioExperienceCriteriaHolder fixedAspectRatioExperienceCriteriaHolder) { return fixedAspectRatioExperienceCriteriaHolder != null ? fixedAspectRatioExperienceCriteriaHolder : new FixedAspectRatioExperienceCriteriaHolder(); } private FixedAspectRatioCaptureExperience(ImageCaptureView imageCaptureView, FixedAspectRatioExperienceCriteriaHolder fixedAspectRatioExperienceCriteriaHolder, boolean z) { super(imageCaptureView, fixedAspectRatioExperienceCriteriaHolder); Injector.getInjector(this._ctx.getApplicationContext()).injectMembers(this); initBase(imageCaptureView, this.nh, fixedAspectRatioExperienceCriteriaHolder); a(fixedAspectRatioExperienceCriteriaHolder, z); this._captureController.setUserInstructionMessage(e.b(imageCaptureView.getContext(), "cap_guide_fill_with_doc")); CaptureMessage centerMessage = this._overlayViewInternal.getCenterMessage(); centerMessage.setVisibility(false); this._overlayViewInternal.setCenterMessage(centerMessage); CaptureMessage zoomInMessage = this._overlayViewInternal.getZoomInMessage(); zoomInMessage.setVisibility(false); this._overlayViewInternal.setZoomInMessage(zoomInMessage); CaptureMessage zoomOutMessage = this._overlayViewInternal.getZoomOutMessage(); zoomOutMessage.setVisibility(false); this._overlayViewInternal.setZoomOutMessage(zoomOutMessage); CaptureMessage rotateMessage = this._overlayViewInternal.getRotateMessage(); rotateMessage.setVisibility(false); this._overlayViewInternal.setRotateMessage(rotateMessage); CaptureMessage steadyMessage = this._overlayViewInternal.getSteadyMessage(); steadyMessage.setOrientation(CaptureMessage.KUIMessageOrientation.PORTRAIT); this._overlayViewInternal.setSteadyMessage(steadyMessage); CaptureMessage holdParallelMessage = this._overlayViewInternal.getHoldParallelMessage(); holdParallelMessage.setOrientation(CaptureMessage.KUIMessageOrientation.PORTRAIT); this._overlayViewInternal.setHoldParallelMessage(holdParallelMessage); CaptureMessage capturedMessage = this._overlayViewInternal.getCapturedMessage(); capturedMessage.setOrientation(CaptureMessage.KUIMessageOrientation.PORTRAIT); this._overlayViewInternal.setCapturedMessage(capturedMessage); CaptureMessage tutorialDismissMessage = this._overlayViewInternal.getTutorialDismissMessage(); tutorialDismissMessage.setOrientation(CaptureMessage.KUIMessageOrientation.PORTRAIT); this._overlayViewInternal.setTutorialDismissMessage(tutorialDismissMessage); CaptureMessage userInstructionMessage = this._overlayViewInternal.getUserInstructionMessage(); userInstructionMessage.setOrientation(CaptureMessage.KUIMessageOrientation.PORTRAIT); this._overlayViewInternal.setUserInstructionMessage(userInstructionMessage); } public void setCaptureCriteria(FixedAspectRatioExperienceCriteriaHolder fixedAspectRatioExperienceCriteriaHolder) { a(fixedAspectRatioExperienceCriteriaHolder, true); } private void a(FixedAspectRatioExperienceCriteriaHolder fixedAspectRatioExperienceCriteriaHolder, boolean z) { if (fixedAspectRatioExperienceCriteriaHolder == null) { throw new IllegalArgumentException("criteria is null"); } FixedAspectRatioExperienceCriteriaHolder fixedAspectRatioExperienceCriteriaHolder2 = new FixedAspectRatioExperienceCriteriaHolder(fixedAspectRatioExperienceCriteriaHolder); this.ng = fixedAspectRatioExperienceCriteriaHolder2; super.a((DocumentBaseCaptureExperienceCriteriaHolder) fixedAspectRatioExperienceCriteriaHolder2); this.nh.c(this.ng.getDetectionSettings()); if (this._captureController.hasDocumentSampleImage() || !z) { return; } c(this._ctx); } public FixedAspectRatioExperienceCriteriaHolder getCaptureCriteria() { return new FixedAspectRatioExperienceCriteriaHolder(this.ng); } private void c(Context context) { setDocumentSampleImage(c.a(context, "document_sample")); } @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public CaptureMessage getHoldSteadyMessage() { return super.getHoldSteadyMessage(); } @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public CaptureMessage getHoldParallelMessage() { return super.getHoldParallelMessage(); } @Override // com.kofax.kmc.kui.uicontrols.captureanimations.DocumentBaseCaptureExperience public CaptureMessage getCapturedMessage() { return super.getCapturedMessage(); } }