@jaak.ai/stamps 2.1.0-dev.15 → 2.1.0-dev.17

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.
@@ -2731,6 +2731,12 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
2731
2731
  try {
2732
2732
  // Close the selector immediately when user selects a camera
2733
2733
  this.showCameraSelector = false;
2734
+ // Check if user selected the same camera that's already active
2735
+ const currentCameraId = this.cameraService.getSelectedCameraId();
2736
+ if (currentCameraId === cameraId) {
2737
+ // Same camera selected, just close the selector without switching
2738
+ return;
2739
+ }
2734
2740
  this.isSwitchingCamera = true;
2735
2741
  // Stop current video stream
2736
2742
  if (this.videoStream) {
@@ -2776,6 +2782,11 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
2776
2782
  this.hasDocumentDetected = false;
2777
2783
  // Reset sistema simplificado
2778
2784
  this.processedFramesCount = 0;
2785
+ // Reset manual capture and performance degraded mode flags
2786
+ this.showManualCaptureButton = false;
2787
+ this.performanceDegradedMode = false;
2788
+ this.showPerformanceMessage = false;
2789
+ this.processingButton = null;
2779
2790
  this.slowFrameCount = 0;
2780
2791
  // Reset performance degradation state
2781
2792
  this.hasAutoSwitchedToManual = false;