scandit-capacitor-datacapture-barcode 8.5.3 → 8.6.0

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/dist/barcode.js CHANGED
@@ -1,4 +1,4 @@
1
- import { nameForSerialization, ignoreFromSerializationIfNull, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, Quadrilateral, Point, FactoryMaker, Feedback, BaseController, FrameDataController, CameraSettings, Observable, TextAlignment, FontFamily, AimerViewfinder, Brush, EventDataParser, SKIP, generateIdentifier, ScanditIcon, registerProxies, Color, NumberWithUnit } from 'scandit-capacitor-datacapture-core/dist/core';
1
+ import { nameForSerialization, ignoreFromSerializationIfNull, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, Quadrilateral, Point, FactoryMaker, Feedback, BaseController, FrameDataController, CameraSettings, Observable, TextAlignment, FontFamily, AimerViewfinder, Brush, EventDataParser, SKIP, generateIdentifier, ScanditIcon, registerProxies, Color, NumberWithUnit, PointWithUnit } from 'scandit-capacitor-datacapture-core/dist/core';
2
2
 
3
3
  var Symbology;
4
4
  (function (Symbology) {
@@ -669,6 +669,21 @@ class BarcodeProxyAdapter {
669
669
  return result;
670
670
  });
671
671
  }
672
+ /**
673
+ * Returns the BarcodeCaptureLicenseInfo JSON, or null when not available
674
+ * @param modeId Unique identifier of the barcode capture mode
675
+ */
676
+ getBarcodeCaptureLicenseInfo(_a) {
677
+ return __awaiter(this, arguments, void 0, function* ({ modeId }) {
678
+ const result = yield this.proxy.$executeBarcode({
679
+ moduleName: 'BarcodeCaptureModule',
680
+ methodName: 'getBarcodeCaptureLicenseInfo',
681
+ isEventRegistration: false,
682
+ modeId,
683
+ });
684
+ return result.data;
685
+ });
686
+ }
672
687
  /**
673
688
  * Register persistent event listener for barcode capture events
674
689
  * @param modeId Unique identifier of the barcode capture mode
@@ -1263,6 +1278,21 @@ class BarcodeProxyAdapter {
1263
1278
  return result;
1264
1279
  });
1265
1280
  }
1281
+ /**
1282
+ * Returns the BarcodeBatchLicenseInfo JSON, or null when not available
1283
+ * @param modeId Unique identifier of the barcode batch mode
1284
+ */
1285
+ getBarcodeBatchLicenseInfo(_a) {
1286
+ return __awaiter(this, arguments, void 0, function* ({ modeId }) {
1287
+ const result = yield this.proxy.$executeBarcode({
1288
+ moduleName: 'BarcodeBatchModule',
1289
+ methodName: 'getBarcodeBatchLicenseInfo',
1290
+ isEventRegistration: false,
1291
+ modeId,
1292
+ });
1293
+ return result.data;
1294
+ });
1295
+ }
1266
1296
  /**
1267
1297
  * Register persistent event listener for barcode batch events
1268
1298
  * @param modeId Unique identifier of the barcode batch mode
@@ -1746,6 +1776,82 @@ class BarcodeProxyAdapter {
1746
1776
  return result;
1747
1777
  });
1748
1778
  }
1779
+ /**
1780
+ * Finish callback for recognized barcode icon
1781
+ * @param viewId Unique identifier of the BarcodeCount view
1782
+ * @param iconJson BarcodeCountIcon configuration as JSON string, or null
1783
+ * @param trackedBarcodeId Unique identifier of the tracked barcode
1784
+ */
1785
+ finishBarcodeCountIconForRecognizedBarcode(_a) {
1786
+ return __awaiter(this, arguments, void 0, function* ({ viewId, iconJson, trackedBarcodeId, }) {
1787
+ const result = yield this.proxy.$executeBarcode({
1788
+ moduleName: 'BarcodeCountModule',
1789
+ methodName: 'finishBarcodeCountIconForRecognizedBarcode',
1790
+ isEventRegistration: false,
1791
+ viewId,
1792
+ iconJson,
1793
+ trackedBarcodeId,
1794
+ });
1795
+ return result;
1796
+ });
1797
+ }
1798
+ /**
1799
+ * Finish callback for recognized barcode not in list icon
1800
+ * @param viewId Unique identifier of the BarcodeCount view
1801
+ * @param iconJson BarcodeCountIcon configuration as JSON string, or null
1802
+ * @param trackedBarcodeId Unique identifier of the tracked barcode
1803
+ */
1804
+ finishBarcodeCountIconForRecognizedBarcodeNotInList(_a) {
1805
+ return __awaiter(this, arguments, void 0, function* ({ viewId, iconJson, trackedBarcodeId, }) {
1806
+ const result = yield this.proxy.$executeBarcode({
1807
+ moduleName: 'BarcodeCountModule',
1808
+ methodName: 'finishBarcodeCountIconForRecognizedBarcodeNotInList',
1809
+ isEventRegistration: false,
1810
+ viewId,
1811
+ iconJson,
1812
+ trackedBarcodeId,
1813
+ });
1814
+ return result;
1815
+ });
1816
+ }
1817
+ /**
1818
+ * Finish callback for accepted barcode icon
1819
+ * @param viewId Unique identifier of the BarcodeCount view
1820
+ * @param iconJson BarcodeCountIcon configuration as JSON string, or null
1821
+ * @param trackedBarcodeId Unique identifier of the tracked barcode
1822
+ */
1823
+ finishBarcodeCountIconForAcceptedBarcode(_a) {
1824
+ return __awaiter(this, arguments, void 0, function* ({ viewId, iconJson, trackedBarcodeId, }) {
1825
+ const result = yield this.proxy.$executeBarcode({
1826
+ moduleName: 'BarcodeCountModule',
1827
+ methodName: 'finishBarcodeCountIconForAcceptedBarcode',
1828
+ isEventRegistration: false,
1829
+ viewId,
1830
+ iconJson,
1831
+ trackedBarcodeId,
1832
+ });
1833
+ return result;
1834
+ });
1835
+ }
1836
+ /**
1837
+ * Finish callback for rejected barcode icon
1838
+ * @param viewId Unique identifier of the BarcodeCount view
1839
+ * @param iconJson BarcodeCountIcon configuration as JSON string, or null
1840
+ * @param trackedBarcodeId Unique identifier of the tracked barcode
1841
+ */
1842
+ finishBarcodeCountIconForRejectedBarcode(_a) {
1843
+ return __awaiter(this, arguments, void 0, function* ({ viewId, iconJson, trackedBarcodeId, }) {
1844
+ const result = yield this.proxy.$executeBarcode({
1845
+ moduleName: 'BarcodeCountModule',
1846
+ methodName: 'finishBarcodeCountIconForRejectedBarcode',
1847
+ isEventRegistration: false,
1848
+ viewId,
1849
+ iconJson,
1850
+ trackedBarcodeId,
1851
+ });
1852
+ return result;
1853
+ });
1854
+ }
1749
1855
  /**
1750
1856
  * Shows the BarcodeCount view
1751
1857
  * @param viewId Unique identifier of the BarcodeCount view
@@ -2333,6 +2439,21 @@ class BarcodeProxyAdapter {
2333
2439
  return result;
2334
2440
  });
2335
2441
  }
2442
+ /**
2443
+ * Returns the SparkScanLicenseInfo JSON, or null when not available
2444
+ * @param viewId Unique identifier of the SparkScan view
2445
+ */
2446
+ getSparkScanLicenseInfo(_a) {
2447
+ return __awaiter(this, arguments, void 0, function* ({ viewId }) {
2448
+ const result = yield this.proxy.$executeBarcode({
2449
+ moduleName: 'SparkScanModule',
2450
+ methodName: 'getSparkScanLicenseInfo',
2451
+ isEventRegistration: false,
2452
+ viewId,
2453
+ });
2454
+ return result.data;
2455
+ });
2456
+ }
2336
2457
  /**
2337
2458
  * Updates the SparkScan mode configuration
2338
2459
  * @param viewId Unique identifier of the SparkScan view
@@ -3431,6 +3552,36 @@ class BarcodeProxyAdapter {
3431
3552
  return result;
3432
3553
  });
3433
3554
  }
3555
+ /**
3556
+ * Shows the BarcodeAr view
3557
+ * @param viewId Unique identifier of the BarcodeAr view
3558
+ */
3559
+ showBarcodeArView(_a) {
3560
+ return __awaiter(this, arguments, void 0, function* ({ viewId }) {
3561
+ const result = yield this.proxy.$executeBarcode({
3562
+ moduleName: 'BarcodeArModule',
3563
+ methodName: 'showBarcodeArView',
3564
+ isEventRegistration: false,
3565
+ viewId,
3566
+ });
3567
+ return result;
3568
+ });
3569
+ }
3570
+ /**
3571
+ * Hides the BarcodeAr view
3572
+ * @param viewId Unique identifier of the BarcodeAr view
3573
+ */
3574
+ hideBarcodeArView(_a) {
3575
+ return __awaiter(this, arguments, void 0, function* ({ viewId }) {
3576
+ const result = yield this.proxy.$executeBarcode({
3577
+ moduleName: 'BarcodeArModule',
3578
+ methodName: 'hideBarcodeArView',
3579
+ isEventRegistration: false,
3580
+ viewId,
3581
+ });
3582
+ return result;
3583
+ });
3584
+ }
3434
3585
  /**
3435
3586
  * Resets the BarcodeAr view
3436
3587
  * @param viewId Unique identifier of the BarcodeAr view
@@ -3975,6 +4126,15 @@ class TrackedBarcode {
3975
4126
  trackedBarcode._sessionFrameSequenceID = sessionFrameSequenceID ? sessionFrameSequenceID : null;
3976
4127
  return trackedBarcode;
3977
4128
  }
4129
+ // Patches this instance's location in place from a repeat advanced-overlay event payload,
4130
+ // which only carries {identifier, location} for a TrackedBarcode whose full JSON has already
4131
+ // been emitted once. Keeps the same TrackedBarcode object identity that callers may already
4132
+ // hold, refreshed to the current-frame location. Accessed by
4133
+ // BarcodeBatchAdvancedOverlayController via bracket notation, following the same
4134
+ // private-but-internal-package convention as `fromJSON` above.
4135
+ _updateLocation(json) {
4136
+ this._location = Quadrilateral['fromJSON'](json);
4137
+ }
3978
4138
  }
3979
4139
 
3980
4140
  class TrackedObject {
@@ -4131,6 +4291,8 @@ function parseBarcodePickDefaults(jsonDefaults) {
4131
4291
  zoomButtonPosition: jsonDefaults.ViewSettings.zoomButtonPosition,
4132
4292
  showTorchButton: jsonDefaults.ViewSettings.showTorchButton,
4133
4293
  torchButtonPosition: jsonDefaults.ViewSettings.torchButtonPosition,
4294
+ logoStyle: jsonDefaults.ViewSettings.logoStyle,
4295
+ logoAnchor: jsonDefaults.ViewSettings.logoAnchor,
4134
4296
  tapShutterToPauseGuidelineText: jsonDefaults.ViewSettings.tapShutterToPauseGuidelineText,
4135
4297
  hardwareTriggerEnabled: jsonDefaults.ViewSettings.hardwareTriggerEnabled,
4136
4298
  uiButtonsOffset: jsonDefaults.ViewSettings.uiButtonsOffset
@@ -4164,6 +4326,7 @@ function parseBarcodeSelectionDefaults(jsonDefaults) {
4164
4326
  BarcodeSelectionSettings: {
4165
4327
  codeDuplicateFilter: jsonDefaults.BarcodeSelectionSettings.codeDuplicateFilter,
4166
4328
  singleBarcodeAutoDetection: jsonDefaults.BarcodeSelectionSettings.singleBarcodeAutoDetection,
4329
+ tapGestureForSelectionEnabled: jsonDefaults.BarcodeSelectionSettings.tapGestureForSelectionEnabled,
4167
4330
  selectionType: (fromJSON) => fromJSON(parseOrUse$3(jsonDefaults.BarcodeSelectionSettings.selectionType)),
4168
4331
  },
4169
4332
  BarcodeSelectionTapSelection: {
@@ -4340,7 +4503,7 @@ function parseOrUse$1(value) {
4340
4503
  return typeof value === 'string' ? JSON.parse(value) : value;
4341
4504
  }
4342
4505
  function parseBarcodeFindDefaults(jsonDefaults) {
4343
- var _a, _b, _c, _d, _e, _f, _g, _h;
4506
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
4344
4507
  const viewJsonDefaults = jsonDefaults.BarcodeFindView;
4345
4508
  const settingsJsonDefaults = jsonDefaults.BarcodeFindViewSettings;
4346
4509
  return {
@@ -4368,6 +4531,10 @@ function parseBarcodeFindDefaults(jsonDefaults) {
4368
4531
  textForTapShutterToPauseScreenHint: (_g = viewJsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !== void 0 ? _g : null,
4369
4532
  textForTapShutterToResumeSearchHint: (_h = viewJsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !== void 0 ? _h : null,
4370
4533
  torchControlPosition: viewJsonDefaults.torchControlPosition,
4534
+ logoStyle: viewJsonDefaults.logoStyle,
4535
+ logoAnchor: viewJsonDefaults.logoAnchor,
4536
+ // cameraStateOnStop is iOS-only; the Android defaults do not emit it.
4537
+ cameraStateOnStop: ((_j = viewJsonDefaults.cameraStateOnStop) !== null && _j !== void 0 ? _j : 'off'),
4371
4538
  },
4372
4539
  BarcodeFindViewSettings: {
4373
4540
  progressBarStartColor: Color['fromJSON'](settingsJsonDefaults.progressBarStartColor),
@@ -4397,6 +4564,9 @@ function parseBarcodeArDefaults(jsonDefaults) {
4397
4564
  scanned: Feedback['fromJSON'](parseOrUse(jsonDefaults.barcodeArFeedback).scanned),
4398
4565
  tapped: Feedback['fromJSON'](parseOrUse(jsonDefaults.barcodeArFeedback).tapped),
4399
4566
  },
4567
+ BarcodeArSettings: {
4568
+ expectOnlyUniqueBarcodes: jsonDefaults.BarcodeArSettings.expectOnlyUniqueBarcodes,
4569
+ },
4400
4570
  BarcodeArView: {
4401
4571
  circleHighlightPresets: parseCircleHighlightPresets(viewJsonDefaults.circleHighlightPresets),
4402
4572
  defaultBarcodeArPopoverAnnotationButtonEnabled: viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonEnabled,
@@ -4432,6 +4602,7 @@ function parseBarcodeArDefaults(jsonDefaults) {
4432
4602
  defaultResponsiveAnnotationThreshold: viewJsonDefaults.defaultResponsiveAnnotationThreshold,
4433
4603
  defaultResponsiveAnnotationTrigger: viewJsonDefaults.defaultResponsiveAnnotationTrigger,
4434
4604
  defaultIsEntirePopoverTappable: viewJsonDefaults.defaultIsEntirePopoverTappable,
4605
+ defaultPopoverAnnotationAnchor: viewJsonDefaults.defaultBarcodeArPopoverAnnotationAnchor,
4435
4606
  defaultPopoverAnnotationTrigger: viewJsonDefaults.defaultPopoverAnnotationTrigger,
4436
4607
  defaultRectangleHighlightBrush: parseBrush(parseOrUse(viewJsonDefaults.defaultRectangleHighlightBrush)),
4437
4608
  defaultShouldShowCameraSwitchControl: viewJsonDefaults.defaultShouldShowCameraSwitchControl,
@@ -4444,6 +4615,11 @@ function parseBarcodeArDefaults(jsonDefaults) {
4444
4615
  defaultStatusIconAnnotationText: viewJsonDefaults.defaultStatusIconAnnotationText || null,
4445
4616
  defaultStatusIconAnnotationTextColor: Color['fromJSON'](viewJsonDefaults.defaultStatusIconAnnotationTextColor),
4446
4617
  defaultStatusIconAnnotationTrigger: viewJsonDefaults.defaultStatusIconAnnotationTrigger,
4618
+ defaultStatusIconAnnotationAnchor: viewJsonDefaults.defaultStatusIconAnnotationAnchor,
4619
+ defaultZoomControlOrientation: viewJsonDefaults.defaultZoomControlOrientation,
4620
+ defaultLogoStyle: viewJsonDefaults.defaultLogoStyle,
4621
+ defaultLogoAnchor: viewJsonDefaults.defaultLogoAnchor,
4622
+ defaultLogoOffset: PointWithUnit['fromJSON'](parseOrUse(viewJsonDefaults.defaultLogoOffset)),
4447
4623
  defaultTorchControlPosition: viewJsonDefaults.defaultTorchControlPosition,
4448
4624
  defaultZoomControlPosition: viewJsonDefaults.defaultZoomControlPosition,
4449
4625
  defaultHighlightIcon: ScanditIcon['fromJSON'](viewJsonDefaults.defaultHighlightIcon) || null,
@@ -4677,6 +4853,21 @@ class BarcodeCaptureFeedback extends DefaultSerializeable {
4677
4853
  }
4678
4854
  }
4679
4855
 
4856
+ class BarcodeCaptureLicenseInfo {
4857
+ constructor() {
4858
+ this._licensedSymbologies = [];
4859
+ }
4860
+ get licensedSymbologies() {
4861
+ return this._licensedSymbologies;
4862
+ }
4863
+ static fromJSON(json) {
4864
+ var _a;
4865
+ const licenseInfo = new BarcodeCaptureLicenseInfo();
4866
+ licenseInfo._licensedSymbologies = ((_a = json.licensedSymbologies) !== null && _a !== void 0 ? _a : []).map(s => s);
4867
+ return licenseInfo;
4868
+ }
4869
+ }
4870
+
4680
4871
  class BarcodeCaptureSession {
4681
4872
  get newlyRecognizedBarcode() {
4682
4873
  return this._newlyRecognizedBarcode;
@@ -4735,6 +4926,15 @@ class BarcodeCaptureListenerController extends BaseController {
4735
4926
  updateBarcodeCaptureMode() {
4736
4927
  return this.adapter.updateBarcodeCaptureMode({ modeJson: JSON.stringify(this.mode.toJSON()) });
4737
4928
  }
4929
+ getBarcodeCaptureLicenseInfo() {
4930
+ return __awaiter(this, void 0, void 0, function* () {
4931
+ const json = yield this.adapter.getBarcodeCaptureLicenseInfo({ modeId: this.modeId });
4932
+ if (!json) {
4933
+ return null;
4934
+ }
4935
+ return BarcodeCaptureLicenseInfo.fromJSON(JSON.parse(json));
4936
+ });
4937
+ }
4738
4938
  applyBarcodeCaptureModeSettings(modeSettings) {
4739
4939
  return this.adapter.applyBarcodeCaptureModeSettings({
4740
4940
  modeId: this.modeId,
@@ -4885,6 +5085,10 @@ class BarcodeCapture extends DefaultSerializeable {
4885
5085
  return (_a = this.controller) === null || _a === void 0 ? void 0 : _a.applyBarcodeCaptureModeSettings(settings);
4886
5086
  });
4887
5087
  }
5088
+ getBarcodeCaptureLicenseInfo() {
5089
+ var _a, _b;
5090
+ return (_b = (_a = this.controller) === null || _a === void 0 ? void 0 : _a.getBarcodeCaptureLicenseInfo()) !== null && _b !== void 0 ? _b : Promise.resolve(null);
5091
+ }
4888
5092
  addListener(listener) {
4889
5093
  var _a;
4890
5094
  if (this.listeners.includes(listener)) {
@@ -5301,6 +5505,7 @@ class BarcodeArCircleHighlight extends Observable {
5301
5505
  constructor(barcode, preset) {
5302
5506
  super();
5303
5507
  this._type = 'barcodeArCircleHighlight';
5508
+ this._isPulsing = false;
5304
5509
  this._barcode = barcode;
5305
5510
  this._preset = preset;
5306
5511
  this._brush = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.circleHighlightPresets[preset].brush;
@@ -5331,6 +5536,13 @@ class BarcodeArCircleHighlight extends Observable {
5331
5536
  this._size = value;
5332
5537
  this.notifyListeners('size', value);
5333
5538
  }
5539
+ get isPulsing() {
5540
+ return this._isPulsing;
5541
+ }
5542
+ set isPulsing(value) {
5543
+ this._isPulsing = value;
5544
+ this.notifyListeners('isPulsing', value);
5545
+ }
5334
5546
  }
5335
5547
  __decorate([
5336
5548
  nameForSerialization('type')
@@ -5350,6 +5562,9 @@ __decorate([
5350
5562
  __decorate([
5351
5563
  nameForSerialization('size')
5352
5564
  ], BarcodeArCircleHighlight.prototype, "_size", void 0);
5565
+ __decorate([
5566
+ nameForSerialization('isPulsing')
5567
+ ], BarcodeArCircleHighlight.prototype, "_isPulsing", void 0);
5353
5568
  __decorate([
5354
5569
  ignoreFromSerialization
5355
5570
  ], BarcodeArCircleHighlight, "barcodeArDefaults", null);
@@ -5510,8 +5725,11 @@ __decorate([
5510
5725
  ], BarcodeArInfoAnnotation, "barcodeArDefaults", null);
5511
5726
 
5512
5727
  class BarcodeArInfoAnnotationBodyComponent extends Observable {
5728
+ static get barcodeArDefaults() {
5729
+ return getBarcodeArDefaults();
5730
+ }
5513
5731
  constructor() {
5514
- super(...arguments);
5732
+ super();
5515
5733
  this._isRightIconTappable = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView
5516
5734
  .defaultInfoAnnotationBodyElementRightIconTappable;
5517
5735
  this._isLeftIconTappable = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView
@@ -5524,9 +5742,6 @@ class BarcodeArInfoAnnotationBodyComponent extends Observable {
5524
5742
  this._textSize = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextSize;
5525
5743
  this._fontFamily = FontFamily.SystemDefault;
5526
5744
  }
5527
- static get barcodeArDefaults() {
5528
- return getBarcodeArDefaults();
5529
- }
5530
5745
  get isRightIconTappable() {
5531
5746
  return this._isRightIconTappable;
5532
5747
  }
@@ -5859,6 +6074,7 @@ class BarcodeArPopoverAnnotation extends Observable {
5859
6074
  super();
5860
6075
  this._type = 'barcodeArPopoverAnnotation';
5861
6076
  this._isEntirePopoverTappable = BarcodeArPopoverAnnotation.barcodeArDefaults.BarcodeArView.defaultIsEntirePopoverTappable;
6077
+ this._anchor = BarcodeArPopoverAnnotation.barcodeArDefaults.BarcodeArView.defaultPopoverAnnotationAnchor;
5862
6078
  this._listener = null;
5863
6079
  this._hasListener = false;
5864
6080
  this._annotationTrigger = BarcodeArPopoverAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationTrigger;
@@ -5883,6 +6099,13 @@ class BarcodeArPopoverAnnotation extends Observable {
5883
6099
  this._isEntirePopoverTappable = value;
5884
6100
  this.notifyListeners('isEntirePopoverTappable', value);
5885
6101
  }
6102
+ get anchor() {
6103
+ return this._anchor;
6104
+ }
6105
+ set anchor(value) {
6106
+ this._anchor = value;
6107
+ this.notifyListeners('anchor', value);
6108
+ }
5886
6109
  get listener() {
5887
6110
  return this._listener;
5888
6111
  }
@@ -5908,6 +6131,9 @@ __decorate([
5908
6131
  __decorate([
5909
6132
  nameForSerialization('isEntirePopoverTappable')
5910
6133
  ], BarcodeArPopoverAnnotation.prototype, "_isEntirePopoverTappable", void 0);
6134
+ __decorate([
6135
+ nameForSerialization('anchor')
6136
+ ], BarcodeArPopoverAnnotation.prototype, "_anchor", void 0);
5911
6137
  __decorate([
5912
6138
  ignoreFromSerialization
5913
6139
  ], BarcodeArPopoverAnnotation.prototype, "_listener", void 0);
@@ -5927,6 +6153,14 @@ __decorate([
5927
6153
  ignoreFromSerialization
5928
6154
  ], BarcodeArPopoverAnnotation, "barcodeArDefaults", null);
5929
6155
 
6156
+ var BarcodeArPopoverAnnotationAnchor;
6157
+ (function (BarcodeArPopoverAnnotationAnchor) {
6158
+ BarcodeArPopoverAnnotationAnchor["Left"] = "left";
6159
+ BarcodeArPopoverAnnotationAnchor["Right"] = "right";
6160
+ BarcodeArPopoverAnnotationAnchor["Bottom"] = "bottom";
6161
+ BarcodeArPopoverAnnotationAnchor["Top"] = "top";
6162
+ })(BarcodeArPopoverAnnotationAnchor || (BarcodeArPopoverAnnotationAnchor = {}));
6163
+
5930
6164
  class BarcodeArPopoverAnnotationButton extends Observable {
5931
6165
  static get barcodeArDefaults() {
5932
6166
  return getBarcodeArDefaults();
@@ -5936,9 +6170,17 @@ class BarcodeArPopoverAnnotationButton extends Observable {
5936
6170
  this._textColor = BarcodeArPopoverAnnotationButton.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextColor;
5937
6171
  this._textSize = BarcodeArPopoverAnnotationButton.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextSize;
5938
6172
  this._fontFamily = FontFamily.SystemDefault;
6173
+ this._enabled = BarcodeArPopoverAnnotationButton.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonEnabled;
5939
6174
  this._icon = icon;
5940
6175
  this._text = text;
5941
6176
  }
6177
+ get enabled() {
6178
+ return this._enabled;
6179
+ }
6180
+ set enabled(value) {
6181
+ this._enabled = value;
6182
+ this.notifyListeners('enabled', value);
6183
+ }
5942
6184
  get textColor() {
5943
6185
  return this._textColor;
5944
6186
  }
@@ -5982,6 +6224,9 @@ __decorate([
5982
6224
  __decorate([
5983
6225
  nameForSerialization('text')
5984
6226
  ], BarcodeArPopoverAnnotationButton.prototype, "_text", void 0);
6227
+ __decorate([
6228
+ nameForSerialization('enabled')
6229
+ ], BarcodeArPopoverAnnotationButton.prototype, "_enabled", void 0);
5985
6230
  __decorate([
5986
6231
  ignoreFromSerialization
5987
6232
  ], BarcodeArPopoverAnnotationButton, "barcodeArDefaults", null);
@@ -6087,10 +6332,20 @@ __decorate([
6087
6332
  ], BarcodeArSession.prototype, "sessionController", void 0);
6088
6333
 
6089
6334
  class BarcodeArSettings extends DefaultSerializeable {
6335
+ static get barcodeArDefaults() {
6336
+ return getBarcodeArDefaults();
6337
+ }
6090
6338
  constructor() {
6091
- super(...arguments);
6339
+ super();
6092
6340
  this.symbologies = {};
6093
6341
  this.properties = {};
6342
+ this._expectsOnlyUniqueBarcodes = BarcodeArSettings.barcodeArDefaults.BarcodeArSettings.expectOnlyUniqueBarcodes;
6343
+ }
6344
+ get expectsOnlyUniqueBarcodes() {
6345
+ return this._expectsOnlyUniqueBarcodes;
6346
+ }
6347
+ set expectsOnlyUniqueBarcodes(expectsOnlyUniqueBarcodes) {
6348
+ this._expectsOnlyUniqueBarcodes = expectsOnlyUniqueBarcodes;
6094
6349
  }
6095
6350
  get enabledSymbologies() {
6096
6351
  return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
@@ -6115,6 +6370,12 @@ class BarcodeArSettings extends DefaultSerializeable {
6115
6370
  return this.properties[name];
6116
6371
  }
6117
6372
  }
6373
+ __decorate([
6374
+ nameForSerialization('expectOnlyUniqueBarcodes')
6375
+ ], BarcodeArSettings.prototype, "_expectsOnlyUniqueBarcodes", void 0);
6376
+ __decorate([
6377
+ ignoreFromSerialization
6378
+ ], BarcodeArSettings, "barcodeArDefaults", null);
6118
6379
 
6119
6380
  class BarcodeArStatusIconAnnotation extends Observable {
6120
6381
  static get barcodeArDefaults() {
@@ -6129,6 +6390,7 @@ class BarcodeArStatusIconAnnotation extends Observable {
6129
6390
  this._textColor = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTextColor;
6130
6391
  this._backgroundColor = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationBackgroundColor;
6131
6392
  this._annotationTrigger = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTrigger;
6393
+ this._anchor = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationAnchor;
6132
6394
  this._barcode = barcode;
6133
6395
  }
6134
6396
  get barcode() {
@@ -6176,6 +6438,13 @@ class BarcodeArStatusIconAnnotation extends Observable {
6176
6438
  this._annotationTrigger = value;
6177
6439
  this.notifyListeners('annotationTrigger', value);
6178
6440
  }
6441
+ get anchor() {
6442
+ return this._anchor;
6443
+ }
6444
+ set anchor(value) {
6445
+ this._anchor = value;
6446
+ this.notifyListeners('anchor', value);
6447
+ }
6179
6448
  }
6180
6449
  __decorate([
6181
6450
  nameForSerialization('type')
@@ -6201,6 +6470,9 @@ __decorate([
6201
6470
  __decorate([
6202
6471
  nameForSerialization('annotationTrigger')
6203
6472
  ], BarcodeArStatusIconAnnotation.prototype, "_annotationTrigger", void 0);
6473
+ __decorate([
6474
+ nameForSerialization('anchor')
6475
+ ], BarcodeArStatusIconAnnotation.prototype, "_anchor", void 0);
6204
6476
  __decorate([
6205
6477
  ignoreFromSerialization
6206
6478
  ], BarcodeArStatusIconAnnotation, "barcodeArDefaults", null);
@@ -6626,14 +6898,16 @@ class BarcodeArViewController extends BaseController {
6626
6898
  this.eventHandlers = new BarcodeArViewEventHandlers(baseView, barcodeAr, this.adapter);
6627
6899
  }
6628
6900
  dispose() {
6629
- this.eventHandlers.clearCaches();
6630
- void this._proxy.$removeBarcodeArView({ viewId: this.baseView.viewId });
6631
- this._proxy.dispose();
6901
+ return __awaiter(this, void 0, void 0, function* () {
6902
+ this.eventHandlers.clearCaches();
6903
+ yield this._proxy.$removeBarcodeArView({ viewId: this.baseView.viewId });
6904
+ this._proxy.dispose();
6905
+ });
6632
6906
  }
6633
6907
  createNativeView() {
6634
6908
  return __awaiter(this, void 0, void 0, function* () {
6635
6909
  yield this.createView();
6636
- return this.initialize();
6910
+ yield this.initialize();
6637
6911
  });
6638
6912
  }
6639
6913
  setPositionAndSize(top, left, width, height, shouldBeUnderWebView) {
@@ -6661,10 +6935,10 @@ class BarcodeArViewController extends BaseController {
6661
6935
  if (!this.isModeListenerRegistered) {
6662
6936
  return Promise.resolve();
6663
6937
  }
6938
+ this.isModeListenerRegistered = false; // Set immediately to prevent race condition
6664
6939
  this._proxy.unsubscribeFromEvents(Object.values(BarcodeArEvents));
6665
6940
  this._proxy.eventEmitter.off(BarcodeArEvents.didUpdateSession, this.handleDidUpdateSessionWrapper);
6666
6941
  yield this.adapter.unregisterBarcodeArListener({ viewId: this.baseView.viewId });
6667
- this.isModeListenerRegistered = false;
6668
6942
  });
6669
6943
  }
6670
6944
  registerUiListener() {
@@ -6689,10 +6963,10 @@ class BarcodeArViewController extends BaseController {
6689
6963
  if (!this.isUiListenerRegistered) {
6690
6964
  return Promise.resolve();
6691
6965
  }
6966
+ this.isUiListenerRegistered = false; // Set immediately to prevent race condition
6692
6967
  this._proxy.unsubscribeFromEvents(Object.values(BarcodeArViewEvents));
6693
6968
  this._proxy.eventEmitter.off(BarcodeArViewEvents.didTapHighlightForBarcode, this.handleDidTapHighlightForBarcodeWrapper);
6694
6969
  yield this.adapter.unregisterBarcodeArViewUiListener({ viewId: this.baseView.viewId });
6695
- this.isUiListenerRegistered = false;
6696
6970
  });
6697
6971
  }
6698
6972
  registerAnnotationProvider() {
@@ -6724,6 +6998,7 @@ class BarcodeArViewController extends BaseController {
6724
6998
  if (!this.isAnnotationProviderRegistered) {
6725
6999
  return Promise.resolve();
6726
7000
  }
7001
+ this.isAnnotationProviderRegistered = false; // Set immediately to prevent race condition
6727
7002
  this._proxy.unsubscribeFromEvents(Object.values(BarcodeArAnnotationProviderEvents));
6728
7003
  this._proxy.eventEmitter.off(BarcodeArAnnotationProviderEvents.annotationForBarcode, this.handleAnnotationForBarcodeWrapper);
6729
7004
  this._proxy.eventEmitter.off(BarcodeArAnnotationProviderEvents.didTapPopoverEvent, this.handleDidTapPopoverEventWrapper);
@@ -6734,7 +7009,6 @@ class BarcodeArViewController extends BaseController {
6734
7009
  this._proxy.eventEmitter.off(BarcodeArAnnotationProviderEvents.didTapInfoAnnotationHeaderEvent, this.handleDidTapInfoAnnotationHeaderEventWrapper);
6735
7010
  this._proxy.eventEmitter.off(BarcodeArAnnotationProviderEvents.didTapInfoAnnotationFooterEvent, this.handleDidTapInfoAnnotationFooterEventWrapper);
6736
7011
  yield this.adapter.unregisterBarcodeArAnnotationProvider({ viewId: this.baseView.viewId });
6737
- this.isAnnotationProviderRegistered = false;
6738
7012
  });
6739
7013
  }
6740
7014
  registerHighlightProvider() {
@@ -6804,7 +7078,7 @@ class BarcodeArViewController extends BaseController {
6804
7078
  };
6805
7079
  this._proxy.eventEmitter.on(BarcodeArHighlightLifecycleEvents.hide, onHideWrapper);
6806
7080
  return () => {
6807
- this._proxy.eventEmitter.off(BarcodeArHighlightLifecycleEvents.show, onHideWrapper);
7081
+ this._proxy.eventEmitter.off(BarcodeArHighlightLifecycleEvents.hide, onHideWrapper);
6808
7082
  };
6809
7083
  }
6810
7084
  registerCustomHighlightShowEvent(onShow, barcodeId) {
@@ -6909,7 +7183,7 @@ class BarcodeArViewController extends BaseController {
6909
7183
  };
6910
7184
  this._proxy.eventEmitter.on(BarcodeArAnnotationLifecycleEvents.hide, onHideWrapper);
6911
7185
  return () => {
6912
- this._proxy.eventEmitter.off(BarcodeArAnnotationLifecycleEvents.show, onHideWrapper);
7186
+ this._proxy.eventEmitter.off(BarcodeArAnnotationLifecycleEvents.hide, onHideWrapper);
6913
7187
  };
6914
7188
  }
6915
7189
  registerCustomAnnotationShowEvent(onShow, barcodeId) {
@@ -6961,10 +7235,10 @@ class BarcodeArViewController extends BaseController {
6961
7235
  if (!this.isHighlightProviderRegistered) {
6962
7236
  return Promise.resolve();
6963
7237
  }
7238
+ this.isHighlightProviderRegistered = false; // Set immediately to prevent race condition
6964
7239
  this._proxy.unsubscribeFromEvents(Object.values(BarcodeArHighlightProviderEvents));
6965
7240
  this._proxy.eventEmitter.off(BarcodeArHighlightProviderEvents.highlightForBarcode, this.handleHighlightForBarcodeWrapper);
6966
7241
  yield this.adapter.unregisterBarcodeArHighlightProvider({ viewId: this.baseView.viewId });
6967
- this.isHighlightProviderRegistered = false;
6968
7242
  });
6969
7243
  }
6970
7244
  registerBarcodeFilter() {
@@ -6989,28 +7263,40 @@ class BarcodeArViewController extends BaseController {
6989
7263
  if (!this.isBarcodeFilterRegistered) {
6990
7264
  return;
6991
7265
  }
7266
+ this.isBarcodeFilterRegistered = false; // Set immediately to prevent race condition
6992
7267
  this._proxy.unsubscribeFromEvents(Object.values(BarcodeArFilterEvents));
6993
7268
  this._proxy.eventEmitter.off(BarcodeArFilterEvents.filterBarcodes, this.handleFilterBarcodesWrapper);
6994
7269
  yield this.adapter.unregisterBarcodeArFilter({ viewId: this.baseView.viewId });
6995
- this.isBarcodeFilterRegistered = false;
6996
7270
  });
6997
7271
  }
6998
7272
  start() {
6999
- this.eventHandlers.clearCaches();
7000
- return this.adapter.barcodeArViewStart({ viewId: this.baseView.viewId });
7273
+ return __awaiter(this, void 0, void 0, function* () {
7274
+ this.eventHandlers.clearCaches();
7275
+ yield this.adapter.barcodeArViewStart({ viewId: this.baseView.viewId });
7276
+ });
7001
7277
  }
7002
7278
  stop() {
7003
- this.eventHandlers.clearCaches();
7004
- return this.adapter.barcodeArViewStop({ viewId: this.baseView.viewId });
7279
+ return __awaiter(this, void 0, void 0, function* () {
7280
+ this.eventHandlers.clearCaches();
7281
+ yield this.adapter.barcodeArViewStop({ viewId: this.baseView.viewId });
7282
+ });
7005
7283
  }
7006
7284
  pause() {
7007
7285
  this.eventHandlers.clearCaches();
7008
7286
  return this.adapter.barcodeArViewPause({ viewId: this.baseView.viewId });
7009
7287
  }
7288
+ show() {
7289
+ return this.adapter.showBarcodeArView({ viewId: this.baseView.viewId });
7290
+ }
7291
+ hide() {
7292
+ return this.adapter.hideBarcodeArView({ viewId: this.baseView.viewId });
7293
+ }
7010
7294
  update() {
7011
- const barcodeArView = this.baseView.toJSON().View;
7012
- const json = JSON.stringify(barcodeArView);
7013
- return this.adapter.updateBarcodeArView({ viewId: this.baseView.viewId, viewJson: json });
7295
+ return __awaiter(this, void 0, void 0, function* () {
7296
+ const barcodeArView = this.baseView.toJSON().View;
7297
+ const json = JSON.stringify(barcodeArView);
7298
+ yield this.adapter.updateBarcodeArView({ viewId: this.baseView.viewId, viewJson: json });
7299
+ });
7014
7300
  }
7015
7301
  removeNativeView() {
7016
7302
  var _a;
@@ -7064,13 +7350,16 @@ class BarcodeArViewController extends BaseController {
7064
7350
  if (this.barcodeAr['_barcodeFilter']) {
7065
7351
  yield this.registerBarcodeFilter();
7066
7352
  }
7353
+ // Native ignores the mode JSON's feedback key, so the stored feedback must be flushed after view creation.
7354
+ // Non-fatal: the native view already exists at this point, so a failed flush must not fail createNativeView.
7355
+ yield this.updateFeedback(JSON.stringify(this.barcodeAr.feedback.toJSON())).catch(error => console.error('BarcodeArViewController: failed to flush feedback on view creation:', error));
7067
7356
  });
7068
7357
  }
7069
7358
  createView() {
7070
7359
  return __awaiter(this, void 0, void 0, function* () {
7071
7360
  const barcodeArView = this.baseView.toJSON();
7072
7361
  const viewJson = JSON.stringify(barcodeArView);
7073
- return this._proxy.$createBarcodeArView({ viewId: this.baseView.viewId, viewJson });
7362
+ yield this._proxy.$createBarcodeArView({ viewId: this.baseView.viewId, viewJson });
7074
7363
  });
7075
7364
  }
7076
7365
  get isViewCreated() {
@@ -7089,12 +7378,22 @@ class BaseBarcodeArView extends DefaultSerializeable {
7089
7378
  this._barcodeArViewUiListener = null;
7090
7379
  this._highlightProvider = null;
7091
7380
  this._isStarted = false;
7092
- this._shouldShowMacroControl = false;
7381
+ this._shouldShowCameraSwitchControl = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultShouldShowCameraSwitchControl;
7382
+ this._cameraSwitchControlPosition = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultCameraSwitchControlPosition;
7383
+ this._shouldShowMacroModeControl = false;
7093
7384
  this._macroModeControlPosition = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultCameraSwitchControlPosition;
7094
7385
  this._shouldShowTorchControl = false;
7095
7386
  this._torchControlPosition = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultTorchControlPosition;
7096
7387
  this._shouldShowZoomControl = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultShouldShowZoomControl;
7097
7388
  this._zoomControlPosition = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultZoomControlPosition;
7389
+ this._torchControlOffset = null;
7390
+ this._zoomControlOffset = null;
7391
+ this._cameraSwitchControlOffset = null;
7392
+ this._macroModeControlOffset = null;
7393
+ this._zoomControlOrientation = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultZoomControlOrientation;
7394
+ this._logoStyle = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultLogoStyle;
7395
+ this._logoAnchor = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultLogoAnchor;
7396
+ this._logoOffset = BaseBarcodeArView.barcodeArDefaults.BarcodeArView.defaultLogoOffset;
7098
7397
  this.isViewCreated = false;
7099
7398
  this._viewId = -1; // -1 means the view is not created yet
7100
7399
  this.registerCustomHighlightCreateEvent = (...args) => this.controller.registerCustomHighlightCreateEvent(...args);
@@ -7124,9 +7423,11 @@ class BaseBarcodeArView extends DefaultSerializeable {
7124
7423
  this._barcodeAr['controller'] = this.controller;
7125
7424
  }
7126
7425
  dispose() {
7127
- this.controller.dispose();
7128
- this.isViewCreated = false;
7129
- this._barcodeAr['unsubscribeNativeListeners']();
7426
+ return __awaiter(this, void 0, void 0, function* () {
7427
+ yield this.controller.dispose();
7428
+ this.isViewCreated = false;
7429
+ this._barcodeAr['unsubscribeNativeListeners']();
7430
+ });
7130
7431
  }
7131
7432
  createNativeView(viewId) {
7132
7433
  return __awaiter(this, void 0, void 0, function* () {
@@ -7201,6 +7502,12 @@ class BaseBarcodeArView extends DefaultSerializeable {
7201
7502
  reset() {
7202
7503
  return this.controller.reset();
7203
7504
  }
7505
+ show() {
7506
+ return this.controller.show();
7507
+ }
7508
+ hide() {
7509
+ return this.controller.hide();
7510
+ }
7204
7511
  get shouldShowTorchControl() {
7205
7512
  return this._shouldShowTorchControl;
7206
7513
  }
@@ -7229,25 +7536,81 @@ class BaseBarcodeArView extends DefaultSerializeable {
7229
7536
  this._zoomControlPosition = value;
7230
7537
  void this.updateNative();
7231
7538
  }
7539
+ get torchControlOffset() {
7540
+ return this._torchControlOffset;
7541
+ }
7542
+ set torchControlOffset(value) {
7543
+ this._torchControlOffset = value;
7544
+ void this.updateNative();
7545
+ }
7546
+ get zoomControlOffset() {
7547
+ return this._zoomControlOffset;
7548
+ }
7549
+ set zoomControlOffset(value) {
7550
+ this._zoomControlOffset = value;
7551
+ void this.updateNative();
7552
+ }
7553
+ get cameraSwitchControlOffset() {
7554
+ return this._cameraSwitchControlOffset;
7555
+ }
7556
+ set cameraSwitchControlOffset(value) {
7557
+ this._cameraSwitchControlOffset = value;
7558
+ void this.updateNative();
7559
+ }
7560
+ get macroModeControlOffset() {
7561
+ return this._macroModeControlOffset;
7562
+ }
7563
+ set macroModeControlOffset(value) {
7564
+ this._macroModeControlOffset = value;
7565
+ void this.updateNative();
7566
+ }
7567
+ get logoStyle() {
7568
+ return this._logoStyle;
7569
+ }
7570
+ set logoStyle(value) {
7571
+ this._logoStyle = value;
7572
+ void this.updateNative();
7573
+ }
7574
+ get zoomControlOrientation() {
7575
+ return this._zoomControlOrientation;
7576
+ }
7577
+ set zoomControlOrientation(value) {
7578
+ this._zoomControlOrientation = value;
7579
+ void this.updateNative();
7580
+ }
7581
+ get logoAnchor() {
7582
+ return this._logoAnchor;
7583
+ }
7584
+ set logoAnchor(value) {
7585
+ this._logoAnchor = value;
7586
+ void this.updateNative();
7587
+ }
7588
+ get logoOffset() {
7589
+ return this._logoOffset;
7590
+ }
7591
+ set logoOffset(value) {
7592
+ this._logoOffset = value;
7593
+ void this.updateNative();
7594
+ }
7232
7595
  get shouldShowCameraSwitchControl() {
7233
- return this._shouldShowMacroControl;
7596
+ return this._shouldShowCameraSwitchControl;
7234
7597
  }
7235
7598
  set shouldShowCameraSwitchControl(value) {
7236
- this._shouldShowMacroControl = value;
7599
+ this._shouldShowCameraSwitchControl = value;
7237
7600
  void this.updateNative();
7238
7601
  }
7239
7602
  get cameraSwitchControlPosition() {
7240
- return this._macroModeControlPosition;
7603
+ return this._cameraSwitchControlPosition;
7241
7604
  }
7242
7605
  set cameraSwitchControlPosition(value) {
7243
- this._macroModeControlPosition = value;
7606
+ this._cameraSwitchControlPosition = value;
7244
7607
  void this.updateNative();
7245
7608
  }
7246
7609
  get shouldShowMacroModeControl() {
7247
- return this._shouldShowMacroControl;
7610
+ return this._shouldShowMacroModeControl;
7248
7611
  }
7249
7612
  set shouldShowMacroModeControl(value) {
7250
- this._shouldShowMacroControl = value;
7613
+ this._shouldShowMacroModeControl = value;
7251
7614
  void this.updateNative();
7252
7615
  }
7253
7616
  get macroModeControlPosition() {
@@ -7264,14 +7627,17 @@ class BaseBarcodeArView extends DefaultSerializeable {
7264
7627
  const json = {
7265
7628
  View: {
7266
7629
  viewId: this._viewId,
7267
- barcodeArViewSettings: this._barcodeArViewSettings,
7630
+ viewSettings: this._barcodeArViewSettings,
7268
7631
  cameraSettings: this._cameraSettings,
7269
- shouldShowMacroControl: this._shouldShowMacroControl,
7632
+ shouldShowCameraSwitchControl: this._shouldShowCameraSwitchControl,
7633
+ cameraSwitchControlPosition: this._cameraSwitchControlPosition,
7634
+ shouldShowMacroModeControl: this._shouldShowMacroModeControl,
7270
7635
  macroModeControlPosition: this._macroModeControlPosition,
7271
7636
  shouldShowTorchControl: this._shouldShowTorchControl,
7272
7637
  torchControlPosition: this._torchControlPosition,
7273
7638
  shouldShowZoomControl: this._shouldShowZoomControl,
7274
7639
  zoomControlPosition: this._zoomControlPosition,
7640
+ zoomControlOrientation: this._zoomControlOrientation,
7275
7641
  annotationProvider: this._annotationProvider,
7276
7642
  barcodeArViewUiListener: this._barcodeArViewUiListener,
7277
7643
  highlightProvider: this._highlightProvider,
@@ -7316,8 +7682,14 @@ __decorate([
7316
7682
  nameForSerialization('dataCaptureContext')
7317
7683
  ], BaseBarcodeArView.prototype, "_dataCaptureContext", void 0);
7318
7684
  __decorate([
7319
- nameForSerialization('shouldShowMacroControl')
7320
- ], BaseBarcodeArView.prototype, "_shouldShowMacroControl", void 0);
7685
+ nameForSerialization('shouldShowCameraSwitchControl')
7686
+ ], BaseBarcodeArView.prototype, "_shouldShowCameraSwitchControl", void 0);
7687
+ __decorate([
7688
+ nameForSerialization('cameraSwitchControlPosition')
7689
+ ], BaseBarcodeArView.prototype, "_cameraSwitchControlPosition", void 0);
7690
+ __decorate([
7691
+ nameForSerialization('shouldShowMacroModeControl')
7692
+ ], BaseBarcodeArView.prototype, "_shouldShowMacroModeControl", void 0);
7321
7693
  __decorate([
7322
7694
  nameForSerialization('macroModeControlPosition')
7323
7695
  ], BaseBarcodeArView.prototype, "_macroModeControlPosition", void 0);
@@ -7333,6 +7705,34 @@ __decorate([
7333
7705
  __decorate([
7334
7706
  nameForSerialization('zoomControlPosition')
7335
7707
  ], BaseBarcodeArView.prototype, "_zoomControlPosition", void 0);
7708
+ __decorate([
7709
+ ignoreFromSerializationIfNull,
7710
+ nameForSerialization('torchControlOffset')
7711
+ ], BaseBarcodeArView.prototype, "_torchControlOffset", void 0);
7712
+ __decorate([
7713
+ ignoreFromSerializationIfNull,
7714
+ nameForSerialization('zoomControlOffset')
7715
+ ], BaseBarcodeArView.prototype, "_zoomControlOffset", void 0);
7716
+ __decorate([
7717
+ ignoreFromSerializationIfNull,
7718
+ nameForSerialization('cameraSwitchControlOffset')
7719
+ ], BaseBarcodeArView.prototype, "_cameraSwitchControlOffset", void 0);
7720
+ __decorate([
7721
+ ignoreFromSerializationIfNull,
7722
+ nameForSerialization('macroModeControlOffset')
7723
+ ], BaseBarcodeArView.prototype, "_macroModeControlOffset", void 0);
7724
+ __decorate([
7725
+ nameForSerialization('zoomControlOrientation')
7726
+ ], BaseBarcodeArView.prototype, "_zoomControlOrientation", void 0);
7727
+ __decorate([
7728
+ nameForSerialization('logoStyle')
7729
+ ], BaseBarcodeArView.prototype, "_logoStyle", void 0);
7730
+ __decorate([
7731
+ nameForSerialization('logoAnchor')
7732
+ ], BaseBarcodeArView.prototype, "_logoAnchor", void 0);
7733
+ __decorate([
7734
+ nameForSerialization('logoOffset')
7735
+ ], BaseBarcodeArView.prototype, "_logoOffset", void 0);
7336
7736
  __decorate([
7337
7737
  ignoreFromSerialization
7338
7738
  ], BaseBarcodeArView.prototype, "isViewCreated", void 0);
@@ -7386,6 +7786,7 @@ var BarcodeArAnnotationTrigger;
7386
7786
  (function (BarcodeArAnnotationTrigger) {
7387
7787
  BarcodeArAnnotationTrigger["HighlightTap"] = "highlightTap";
7388
7788
  BarcodeArAnnotationTrigger["HighlightTapAndBarcodeScan"] = "highlightTapAndBarcodeScan";
7789
+ BarcodeArAnnotationTrigger["BarcodeScan"] = "barcodeScan";
7389
7790
  })(BarcodeArAnnotationTrigger || (BarcodeArAnnotationTrigger = {}));
7390
7791
 
7391
7792
  var BarcodeArCircleHighlightPreset;
@@ -7409,6 +7810,14 @@ var BarcodeArInfoAnnotationWidthPreset;
7409
7810
  BarcodeArInfoAnnotationWidthPreset["Large"] = "large";
7410
7811
  })(BarcodeArInfoAnnotationWidthPreset || (BarcodeArInfoAnnotationWidthPreset = {}));
7411
7812
 
7813
+ var BarcodeArStatusIconAnnotationAnchor;
7814
+ (function (BarcodeArStatusIconAnnotationAnchor) {
7815
+ BarcodeArStatusIconAnnotationAnchor["Top"] = "top";
7816
+ BarcodeArStatusIconAnnotationAnchor["Bottom"] = "bottom";
7817
+ BarcodeArStatusIconAnnotationAnchor["Left"] = "left";
7818
+ BarcodeArStatusIconAnnotationAnchor["Right"] = "right";
7819
+ })(BarcodeArStatusIconAnnotationAnchor || (BarcodeArStatusIconAnnotationAnchor = {}));
7820
+
7412
7821
  class BarcodeSelectionFeedback extends DefaultSerializeable {
7413
7822
  constructor() {
7414
7823
  super(...arguments);
@@ -7613,6 +8022,21 @@ class BarcodeSelectionListenerController extends BaseController {
7613
8022
  }
7614
8023
  }
7615
8024
 
8025
+ class BarcodeSelectionLicenseInfo {
8026
+ constructor() {
8027
+ this._licensedSymbologies = [];
8028
+ }
8029
+ get licensedSymbologies() {
8030
+ return this._licensedSymbologies;
8031
+ }
8032
+ static fromJSON(json) {
8033
+ var _a;
8034
+ const licenseInfo = new BarcodeSelectionLicenseInfo();
8035
+ licenseInfo._licensedSymbologies = ((_a = json.licensedSymbologies) !== null && _a !== void 0 ? _a : []).map(s => s);
8036
+ return licenseInfo;
8037
+ }
8038
+ }
8039
+
7616
8040
  class BarcodeSelectionController extends BaseController {
7617
8041
  constructor(barcodeSelection) {
7618
8042
  super('BarcodeProxy');
@@ -7662,6 +8086,15 @@ class BarcodeSelectionController extends BaseController {
7662
8086
  updateFeedback(feedbackJson) {
7663
8087
  return this.adapter.updateBarcodeSelectionFeedback({ feedbackJson: feedbackJson, modeId: this.modeId });
7664
8088
  }
8089
+ getBarcodeSelectionLicenseInfo() {
8090
+ return __awaiter(this, void 0, void 0, function* () {
8091
+ const json = yield this.adapter.getBarcodeSelectionLicenseInfo({ modeId: this.modeId });
8092
+ if (!json) {
8093
+ return null;
8094
+ }
8095
+ return BarcodeSelectionLicenseInfo.fromJSON(JSON.parse(json));
8096
+ });
8097
+ }
7665
8098
  get modeId() {
7666
8099
  return this.barcodeSelection['modeId'];
7667
8100
  }
@@ -7785,6 +8218,9 @@ class BarcodeSelection extends DefaultSerializeable {
7785
8218
  increaseCountForBarcodes(barcodes) {
7786
8219
  return this.modeController.increaseCountForBarcodes(barcodes);
7787
8220
  }
8221
+ getBarcodeSelectionLicenseInfo() {
8222
+ return this.modeController.getBarcodeSelectionLicenseInfo();
8223
+ }
7788
8224
  }
7789
8225
  __decorate([
7790
8226
  nameForSerialization('parentId'),
@@ -8263,6 +8699,7 @@ class BarcodeSelectionSettings extends DefaultSerializeable {
8263
8699
  super();
8264
8700
  this.codeDuplicateFilter = BarcodeSelectionSettings.barcodeSelectionDefaults.BarcodeSelectionSettings.codeDuplicateFilter;
8265
8701
  this.singleBarcodeAutoDetection = BarcodeSelectionSettings.barcodeSelectionDefaults.BarcodeSelectionSettings.singleBarcodeAutoDetection;
8702
+ this.tapGestureForSelectionEnabled = BarcodeSelectionSettings.barcodeSelectionDefaults.BarcodeSelectionSettings.tapGestureForSelectionEnabled;
8266
8703
  this.selectionType = BarcodeSelectionSettings.barcodeSelectionDefaults.BarcodeSelectionSettings.selectionType((json) => PrivateBarcodeSelectionType.fromJSON(json));
8267
8704
  this.properties = {};
8268
8705
  this.symbologies = {};
@@ -11075,6 +11512,21 @@ var BarcodeBatchBasicOverlayStyle;
11075
11512
  BarcodeBatchBasicOverlayStyle["Dot"] = "dot";
11076
11513
  })(BarcodeBatchBasicOverlayStyle || (BarcodeBatchBasicOverlayStyle = {}));
11077
11514
 
11515
+ class BarcodeBatchLicenseInfo {
11516
+ constructor() {
11517
+ this._licensedSymbologies = [];
11518
+ }
11519
+ get licensedSymbologies() {
11520
+ return this._licensedSymbologies;
11521
+ }
11522
+ static fromJSON(json) {
11523
+ var _a;
11524
+ const licenseInfo = new BarcodeBatchLicenseInfo();
11525
+ licenseInfo._licensedSymbologies = ((_a = json.licensedSymbologies) !== null && _a !== void 0 ? _a : []).map(s => s);
11526
+ return licenseInfo;
11527
+ }
11528
+ }
11529
+
11078
11530
  class BarcodeBatchSession {
11079
11531
  get addedTrackedBarcodes() {
11080
11532
  return this._addedTrackedBarcodes;
@@ -11142,6 +11594,15 @@ class BarcodeBatchListenerController extends BaseController {
11142
11594
  updateBarcodeBatchMode() {
11143
11595
  return this.adapter.updateBarcodeBatchMode({ modeJson: JSON.stringify(this.mode.toJSON()) });
11144
11596
  }
11597
+ getBarcodeBatchLicenseInfo() {
11598
+ return __awaiter(this, void 0, void 0, function* () {
11599
+ const json = yield this.adapter.getBarcodeBatchLicenseInfo({ modeId: this.mode['modeId'] });
11600
+ if (!json) {
11601
+ return null;
11602
+ }
11603
+ return BarcodeBatchLicenseInfo.fromJSON(JSON.parse(json));
11604
+ });
11605
+ }
11145
11606
  applyBarcodeBatchModeSettings(newSettings) {
11146
11607
  return this.adapter.applyBarcodeBatchModeSettings({
11147
11608
  modeId: this.mode['modeId'],
@@ -11295,6 +11756,10 @@ class BarcodeBatch extends DefaultSerializeable {
11295
11756
  return (_a = this.controller) === null || _a === void 0 ? void 0 : _a.resetSession();
11296
11757
  });
11297
11758
  }
11759
+ getBarcodeBatchLicenseInfo() {
11760
+ var _a, _b;
11761
+ return (_b = (_a = this.controller) === null || _a === void 0 ? void 0 : _a.getBarcodeBatchLicenseInfo()) !== null && _b !== void 0 ? _b : Promise.resolve(null);
11762
+ }
11298
11763
  }
11299
11764
  __decorate([
11300
11765
  nameForSerialization('enabled')
@@ -11328,6 +11793,13 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11328
11793
  super('BarcodeProxy');
11329
11794
  this.hasListeners = false;
11330
11795
  this.hasPendingListenerRegistration = false;
11796
+ // Per-identifier cache of the last full TrackedBarcode received, so repeat payloads (which
11797
+ // only carry {identifier, location}) can patch the cached instance's location in place
11798
+ // instead of the native side re-sending the full ~1.1 KB JSON on every ask. Bounded with a
11799
+ // simple insertion-order eviction (matching the native gate's and the Dart cache's 256
11800
+ // bound), since tracked identifiers accumulate over a scanning session and would otherwise
11801
+ // grow unbounded.
11802
+ this.trackedBarcodeCache = new Map();
11331
11803
  this.handleViewForTrackedBarcodeWrapper = (ev) => __awaiter(this, void 0, void 0, function* () {
11332
11804
  return this.handleViewForTrackedBarcode(ev);
11333
11805
  });
@@ -11426,6 +11898,10 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11426
11898
  this._proxy.eventEmitter.off(BarcodeBatchAdvancedOverlayListenerEvents.offsetForTrackedBarcode, this.handleOffsetForTrackedBarcodeWrapper);
11427
11899
  this._proxy.eventEmitter.off(BarcodeBatchAdvancedOverlayListenerEvents.didTapViewForTrackedBarcode, this.handleDidTapViewForTrackedBarcodeWrapper);
11428
11900
  this.hasListeners = false;
11901
+ // A fresh subscription should not inherit stale TrackedBarcode instances from a previous
11902
+ // one - the native gate resets on re-registration too, so the next payloads seen here will
11903
+ // be full again.
11904
+ this.trackedBarcodeCache.clear();
11429
11905
  });
11430
11906
  }
11431
11907
  dispose() {
@@ -11472,6 +11948,43 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11472
11948
  }
11473
11949
  return true;
11474
11950
  }
11951
+ // Resolves the TrackedBarcode for an advanced-overlay event payload, transparently handling
11952
+ // both shapes: a full payload is parsed and cached by identifier; a repeat payload looks up
11953
+ // the cached instance and patches its location in place, so callers always get an up-to-date
11954
+ // TrackedBarcode without native re-sending the full JSON. A repeat payload with no matching
11955
+ // cache entry (e.g. a stale JS-side cache after a reload) logs a warning and returns null -
11956
+ // no listener invocation, no throw.
11957
+ resolveTrackedBarcode(payload) {
11958
+ if ('trackedBarcode' in payload) {
11959
+ const trackedBarcode = TrackedBarcode['fromJSON'](JSON.parse(payload.trackedBarcode));
11960
+ // Re-inserting moves the key to the end of the Map's insertion order, giving simple
11961
+ // least-recently-inserted eviction below.
11962
+ this.trackedBarcodeCache.delete(trackedBarcode.identifier);
11963
+ this.trackedBarcodeCache.set(trackedBarcode.identifier, trackedBarcode);
11964
+ if (this.trackedBarcodeCache.size > BarcodeBatchAdvancedOverlayController.maxTrackedBarcodeCacheSize) {
11965
+ this.trackedBarcodeCache.delete(this.trackedBarcodeCache.keys().next().value);
11966
+ }
11967
+ return trackedBarcode;
11968
+ }
11969
+ if (typeof payload.identifier !== 'number' || typeof payload.location !== 'string') {
11970
+ console.warn('BarcodeBatchAdvancedOverlayController received a malformed advanced-overlay event payload; skipping.');
11971
+ return null;
11972
+ }
11973
+ const cached = this.trackedBarcodeCache.get(payload.identifier);
11974
+ if (cached == null) {
11975
+ console.warn(`BarcodeBatchAdvancedOverlayController received a repeat payload for unknown tracked barcode ` +
11976
+ `identifier ${payload.identifier}; skipping.`);
11977
+ return null;
11978
+ }
11979
+ // Bump recency on repeat hits too: the native gate is access-ordered (a repeat ask keeps
11980
+ // its identifier hot and never re-sends full), so this cache must age entries the same
11981
+ // way or an actively-asked identifier could be evicted here while still gated natively,
11982
+ // permanently stranding its repeats.
11983
+ this.trackedBarcodeCache.delete(payload.identifier);
11984
+ this.trackedBarcodeCache.set(payload.identifier, cached);
11985
+ cached['_updateLocation'](JSON.parse(payload.location));
11986
+ return cached;
11987
+ }
11475
11988
  handleViewForTrackedBarcode(ev) {
11476
11989
  return __awaiter(this, void 0, void 0, function* () {
11477
11990
  const payload = EventDataParser.parseIfShouldHandle(ev, {
@@ -11484,7 +11997,10 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11484
11997
  console.error('BarcodeBatchAdvancedOverlayController viewForTrackedBarcode payload is null');
11485
11998
  return;
11486
11999
  }
11487
- const trackedBarcode = TrackedBarcode['fromJSON'](JSON.parse(payload.trackedBarcode));
12000
+ const trackedBarcode = this.resolveTrackedBarcode(payload);
12001
+ if (trackedBarcode === null) {
12002
+ return;
12003
+ }
11488
12004
  if (this.overlay.listener && this.overlay.listener.viewForTrackedBarcode) {
11489
12005
  const view = yield this.overlay.listener.viewForTrackedBarcode(this.overlay, trackedBarcode);
11490
12006
  void this.adapter.setViewForTrackedBarcode({
@@ -11507,7 +12023,10 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11507
12023
  console.error('BarcodeBatchAdvancedOverlayController anchorForTrackedBarcode payload is null');
11508
12024
  return;
11509
12025
  }
11510
- const trackedBarcode = TrackedBarcode['fromJSON'](JSON.parse(payload.trackedBarcode));
12026
+ const trackedBarcode = this.resolveTrackedBarcode(payload);
12027
+ if (trackedBarcode === null) {
12028
+ return;
12029
+ }
11511
12030
  if (this.overlay.listener && this.overlay.listener.anchorForTrackedBarcode) {
11512
12031
  const anchor = this.overlay.listener.anchorForTrackedBarcode(this.overlay, trackedBarcode);
11513
12032
  yield this.setAnchorForTrackedBarcode(anchor, trackedBarcode);
@@ -11526,7 +12045,10 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11526
12045
  console.error('BarcodeBatchAdvancedOverlayController offsetForTrackedBarcode payload is null');
11527
12046
  return;
11528
12047
  }
11529
- const trackedBarcode = TrackedBarcode['fromJSON'](JSON.parse(payload.trackedBarcode));
12048
+ const trackedBarcode = this.resolveTrackedBarcode(payload);
12049
+ if (trackedBarcode === null) {
12050
+ return;
12051
+ }
11530
12052
  if (this.overlay.listener && this.overlay.listener.offsetForTrackedBarcode) {
11531
12053
  const offset = this.overlay.listener.offsetForTrackedBarcode(this.overlay, trackedBarcode);
11532
12054
  yield this.setOffsetForTrackedBarcode(offset, trackedBarcode);
@@ -11545,7 +12067,10 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11545
12067
  console.error('BarcodeBatchAdvancedOverlayController didTapViewForTrackedBarcode payload is null');
11546
12068
  return;
11547
12069
  }
11548
- const trackedBarcode = TrackedBarcode['fromJSON'](JSON.parse(payload.trackedBarcode));
12070
+ const trackedBarcode = this.resolveTrackedBarcode(payload);
12071
+ if (trackedBarcode === null) {
12072
+ return;
12073
+ }
11549
12074
  (_b = (_a = this.overlay.listener) === null || _a === void 0 ? void 0 : _a.didTapViewForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a, this.overlay, trackedBarcode);
11550
12075
  }
11551
12076
  get dataCaptureViewId() {
@@ -11560,6 +12085,7 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
11560
12085
  });
11561
12086
  }
11562
12087
  }
12088
+ BarcodeBatchAdvancedOverlayController.maxTrackedBarcodeCacheSize = 256;
11563
12089
 
11564
12090
  var BarcodeBatchBasicOverlayListenerEvents;
11565
12091
  (function (BarcodeBatchBasicOverlayListenerEvents) {
@@ -12090,6 +12616,10 @@ class SparkScan extends DefaultSerializeable {
12090
12616
  return this.didChange();
12091
12617
  });
12092
12618
  }
12619
+ getSparkScanLicenseInfo() {
12620
+ var _a, _b;
12621
+ return (_b = (_a = this.controller) === null || _a === void 0 ? void 0 : _a.getSparkScanLicenseInfo()) !== null && _b !== void 0 ? _b : Promise.resolve(null);
12622
+ }
12093
12623
  addListener(listener) {
12094
12624
  if (this.listeners.includes(listener)) {
12095
12625
  return;
@@ -12132,6 +12662,21 @@ __decorate([
12132
12662
  ignoreFromSerialization
12133
12663
  ], SparkScan.prototype, "controller", void 0);
12134
12664
 
12665
+ class SparkScanLicenseInfo {
12666
+ constructor() {
12667
+ this._licensedSymbologies = [];
12668
+ }
12669
+ get licensedSymbologies() {
12670
+ return this._licensedSymbologies;
12671
+ }
12672
+ static fromJSON(json) {
12673
+ var _a;
12674
+ const licenseInfo = new SparkScanLicenseInfo();
12675
+ licenseInfo._licensedSymbologies = ((_a = json.licensedSymbologies) !== null && _a !== void 0 ? _a : []).map(s => s);
12676
+ return licenseInfo;
12677
+ }
12678
+ }
12679
+
12135
12680
  var SparkScanMiniPreviewSize;
12136
12681
  (function (SparkScanMiniPreviewSize) {
12137
12682
  SparkScanMiniPreviewSize["Regular"] = "regular";
@@ -13253,6 +13798,18 @@ class SparkScanViewController extends BaseController {
13253
13798
  yield this.adapter.updateSparkScanMode({ viewId: this.viewInstanceId, modeJson: json });
13254
13799
  });
13255
13800
  }
13801
+ getSparkScanLicenseInfo() {
13802
+ return __awaiter(this, void 0, void 0, function* () {
13803
+ if (!this.isViewCreated) {
13804
+ return null; // view not created yet
13805
+ }
13806
+ const licenseInfoJson = yield this.adapter.getSparkScanLicenseInfo({ viewId: this.viewInstanceId });
13807
+ if (!licenseInfoJson) {
13808
+ return null;
13809
+ }
13810
+ return SparkScanLicenseInfo.fromJSON(JSON.parse(licenseInfoJson));
13811
+ });
13812
+ }
13256
13813
  subscribeModeListener() {
13257
13814
  return __awaiter(this, void 0, void 0, function* () {
13258
13815
  if (!this.isViewCreated || this.hasNativeModeListenerSubscriptions)
@@ -13476,6 +14033,9 @@ class BaseSparkScanView {
13476
14033
  void this._controller.unsubscribeViewListeners();
13477
14034
  }
13478
14035
  }
14036
+ get viewSettings() {
14037
+ return this._viewSettings;
14038
+ }
13479
14039
  static withProps(props) {
13480
14040
  const view = new BaseSparkScanView({
13481
14041
  context: props.context,
@@ -15981,6 +16541,8 @@ class BarcodePickViewSettings extends DefaultSerializeable {
15981
16541
  this._showTorchButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showTorchButton;
15982
16542
  this._torchButtonPosition = BarcodePickViewSettings.barcodePickDefaults.ViewSettings
15983
16543
  .torchButtonPosition;
16544
+ this._logoStyle = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.logoStyle;
16545
+ this._logoAnchor = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.logoAnchor;
15984
16546
  this._tapShutterToPauseGuidelineText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.tapShutterToPauseGuidelineText;
15985
16547
  this._hardwareTriggerEnabled = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.hardwareTriggerEnabled;
15986
16548
  this._filterHighlightSettings = BarcodePickViewSettings.barcodePickDefaults.BarcodePickSettings.filterHighlightSettings;
@@ -16095,6 +16657,18 @@ class BarcodePickViewSettings extends DefaultSerializeable {
16095
16657
  set torchButtonPosition(position) {
16096
16658
  this._torchButtonPosition = position;
16097
16659
  }
16660
+ get logoStyle() {
16661
+ return this._logoStyle;
16662
+ }
16663
+ set logoStyle(style) {
16664
+ this._logoStyle = style;
16665
+ }
16666
+ get logoAnchor() {
16667
+ return this._logoAnchor;
16668
+ }
16669
+ set logoAnchor(anchor) {
16670
+ this._logoAnchor = anchor;
16671
+ }
16098
16672
  get tapShutterToPauseGuidelineText() {
16099
16673
  return this._tapShutterToPauseGuidelineText;
16100
16674
  }
@@ -16180,6 +16754,12 @@ __decorate([
16180
16754
  __decorate([
16181
16755
  nameForSerialization('torchButtonPosition')
16182
16756
  ], BarcodePickViewSettings.prototype, "_torchButtonPosition", void 0);
16757
+ __decorate([
16758
+ nameForSerialization('logoStyle')
16759
+ ], BarcodePickViewSettings.prototype, "_logoStyle", void 0);
16760
+ __decorate([
16761
+ nameForSerialization('logoAnchor')
16762
+ ], BarcodePickViewSettings.prototype, "_logoAnchor", void 0);
16183
16763
  __decorate([
16184
16764
  nameForSerialization('tapShutterToPauseGuidelineText')
16185
16765
  ], BarcodePickViewSettings.prototype, "_tapShutterToPauseGuidelineText", void 0);
@@ -17133,6 +17713,9 @@ class BaseBarcodeFindView {
17133
17713
  this.isViewCreated = false;
17134
17714
  this._startSearching = false;
17135
17715
  this._isInitialized = false;
17716
+ this._logoStyle = BaseBarcodeFindView.barcodeFindViewDefaults.logoStyle;
17717
+ this._logoAnchor = BaseBarcodeFindView.barcodeFindViewDefaults.logoAnchor;
17718
+ this._cameraStateOnStop = BaseBarcodeFindView.barcodeFindViewDefaults.cameraStateOnStop;
17136
17719
  this._viewId = -1; // -1 means the view is not created yet
17137
17720
  this._barcodeFindViewUiListener = null;
17138
17721
  this._dataCaptureContext = props.context;
@@ -17303,6 +17886,27 @@ class BaseBarcodeFindView {
17303
17886
  BaseBarcodeFindView.barcodeFindViewDefaults.textForTapShutterToResumeSearchHint = value;
17304
17887
  void this.update();
17305
17888
  }
17889
+ get logoStyle() {
17890
+ return this._logoStyle;
17891
+ }
17892
+ set logoStyle(value) {
17893
+ this._logoStyle = value;
17894
+ void this.update();
17895
+ }
17896
+ get logoAnchor() {
17897
+ return this._logoAnchor;
17898
+ }
17899
+ set logoAnchor(value) {
17900
+ this._logoAnchor = value;
17901
+ void this.update();
17902
+ }
17903
+ get cameraStateOnStop() {
17904
+ return this._cameraStateOnStop;
17905
+ }
17906
+ set cameraStateOnStop(value) {
17907
+ this._cameraStateOnStop = value;
17908
+ void this.update();
17909
+ }
17306
17910
  dispose() {
17307
17911
  this.controller.dispose();
17308
17912
  this.isViewCreated = false;
@@ -17327,6 +17931,9 @@ class BaseBarcodeFindView {
17327
17931
  textForMoveCloserToBarcodesHint: this.textForMoveCloserToBarcodesHint,
17328
17932
  textForTapShutterToPauseScreenHint: this.textForTapShutterToPauseScreenHint,
17329
17933
  textForTapShutterToResumeSearchHint: this.textForTapShutterToResumeSearchHint,
17934
+ logoStyle: this._logoStyle,
17935
+ logoAnchor: this._logoAnchor,
17936
+ cameraStateOnStop: this._cameraStateOnStop, // iOS only
17330
17937
  startSearching: this._startSearching,
17331
17938
  viewSettings: undefined,
17332
17939
  CameraSettings: undefined,
@@ -17639,4 +18246,4 @@ function registerBarcodeProxies(provider) {
17639
18246
  registerProxies(BARCODE_PROXY_TYPE_NAMES, provider);
17640
18247
  }
17641
18248
 
17642
- export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, BARCODE_PROXY_TYPE_NAMES, Barcode, BarcodeAr, BarcodeArAnnotationLifecycleEvents, BarcodeArAnnotationProviderEvents, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArEvents, BarcodeArFeedback, BarcodeArFilterEvents, BarcodeArHighlightLifecycleEvents, BarcodeArHighlightProviderEvents, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayController, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountModeListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountUiListenerEvents, BarcodeCountViewController, BarcodeCountViewListenerEvents, BarcodeCountViewStyle, BarcodeDefaultsType, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewController, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionEvents, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderEvents, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningEvents, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewController, BarcodePickViewEventHandlers, BarcodePickViewEvents, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewEvents, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleEvents, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodePickViewUiEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, ensureBarcodeDefaults, ensureBarcodeDefaultsFor, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, getSymbologySettingsFromBarcodePickDefaults, getSymbologySettingsFromDefaults, loadAllBarcodeDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults, registerBarcodeProxies, setBarcodeDefaultsLoader };
18249
+ export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, BARCODE_PROXY_TYPE_NAMES, Barcode, BarcodeAr, BarcodeArAnnotationLifecycleEvents, BarcodeArAnnotationProviderEvents, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArEvents, BarcodeArFeedback, BarcodeArFilterEvents, BarcodeArHighlightLifecycleEvents, BarcodeArHighlightProviderEvents, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationAnchor, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArStatusIconAnnotationAnchor, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchLicenseInfo, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureLicenseInfo, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayController, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountModeListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountUiListenerEvents, BarcodeCountViewController, BarcodeCountViewListenerEvents, BarcodeCountViewStyle, BarcodeDefaultsType, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewController, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionEvents, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderEvents, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningEvents, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewController, BarcodePickViewEventHandlers, BarcodePickViewEvents, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewEvents, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleEvents, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodePickViewUiEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionLicenseInfo, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanLicenseInfo, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, ensureBarcodeDefaults, ensureBarcodeDefaultsFor, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, getSymbologySettingsFromBarcodePickDefaults, getSymbologySettingsFromDefaults, loadAllBarcodeDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults, registerBarcodeProxies, setBarcodeDefaultsLoader };