scandit-capacitor-datacapture-barcode 7.2.0 → 7.3.0-beta.1

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
@@ -99,13 +99,13 @@ class Range extends DefaultSerializeable {
99
99
  }
100
100
  __decorate([
101
101
  nameForSerialization('minimum')
102
- ], Range.prototype, "_minimum", undefined);
102
+ ], Range.prototype, "_minimum", void 0);
103
103
  __decorate([
104
104
  nameForSerialization('maximum')
105
- ], Range.prototype, "_maximum", undefined);
105
+ ], Range.prototype, "_maximum", void 0);
106
106
  __decorate([
107
107
  nameForSerialization('step')
108
- ], Range.prototype, "_step", undefined);
108
+ ], Range.prototype, "_step", void 0);
109
109
 
110
110
  class SymbologyDescription {
111
111
  static get all() {
@@ -195,13 +195,13 @@ class SymbologySettings extends DefaultSerializeable {
195
195
  }
196
196
  __decorate([
197
197
  ignoreFromSerialization
198
- ], SymbologySettings.prototype, "_symbology", undefined);
198
+ ], SymbologySettings.prototype, "_symbology", void 0);
199
199
  __decorate([
200
200
  nameForSerialization('enabled')
201
- ], SymbologySettings.prototype, "isEnabled", undefined);
201
+ ], SymbologySettings.prototype, "isEnabled", void 0);
202
202
  __decorate([
203
203
  nameForSerialization('colorInvertedEnabled')
204
- ], SymbologySettings.prototype, "isColorInvertedEnabled", undefined);
204
+ ], SymbologySettings.prototype, "isColorInvertedEnabled", void 0);
205
205
 
206
206
  class Ean13UpcaClassification {
207
207
  static isUpca(barcode) {
@@ -209,14 +209,14 @@ class Ean13UpcaClassification {
209
209
  if (barcode.symbology !== Symbology.EAN13UPCA) {
210
210
  return false;
211
211
  }
212
- return ((_a = barcode.data) === null || _a === undefined ? undefined : _a.length) === 12 || (((_b = barcode.data) === null || _b === undefined ? undefined : _b.length) === 13 && ((_c = barcode.data) === null || _c === undefined ? undefined : _c.charAt(0)) === '0');
212
+ return ((_a = barcode.data) === null || _a === void 0 ? void 0 : _a.length) === 12 || (((_b = barcode.data) === null || _b === void 0 ? void 0 : _b.length) === 13 && ((_c = barcode.data) === null || _c === void 0 ? void 0 : _c.charAt(0)) === '0');
213
213
  }
214
214
  static isEan13(barcode) {
215
215
  var _a, _b;
216
216
  if (barcode.symbology !== Symbology.EAN13UPCA) {
217
217
  return false;
218
218
  }
219
- return ((_a = barcode.data) === null || _a === undefined ? undefined : _a.length) === 13 && ((_b = barcode.data) === null || _b === undefined ? undefined : _b.charAt(0)) !== '0';
219
+ return ((_a = barcode.data) === null || _a === void 0 ? void 0 : _a.length) === 13 && ((_b = barcode.data) === null || _b === void 0 ? void 0 : _b.charAt(0)) !== '0';
220
220
  }
221
221
  }
222
222
 
@@ -240,13 +240,13 @@ class ArucoDictionary {
240
240
  }
241
241
  __decorate([
242
242
  nameForSerialization('preset')
243
- ], ArucoDictionary.prototype, "_preset", undefined);
243
+ ], ArucoDictionary.prototype, "_preset", void 0);
244
244
  __decorate([
245
245
  nameForSerialization('markers')
246
- ], ArucoDictionary.prototype, "_markers", undefined);
246
+ ], ArucoDictionary.prototype, "_markers", void 0);
247
247
  __decorate([
248
248
  nameForSerialization('markerSize')
249
- ], ArucoDictionary.prototype, "_markerSize", undefined);
249
+ ], ArucoDictionary.prototype, "_markerSize", void 0);
250
250
 
251
251
  var ArucoDictionaryPreset;
252
252
  (function (ArucoDictionaryPreset) {
@@ -275,10 +275,10 @@ class ArucoMarker extends DefaultSerializeable {
275
275
  }
276
276
  __decorate([
277
277
  nameForSerialization('markerData')
278
- ], ArucoMarker.prototype, "_markerData", undefined);
278
+ ], ArucoMarker.prototype, "_markerData", void 0);
279
279
  __decorate([
280
280
  nameForSerialization('markerSize')
281
- ], ArucoMarker.prototype, "_markerSize", undefined);
281
+ ], ArucoMarker.prototype, "_markerSize", void 0);
282
282
 
283
283
  function getBarcodeDefaults() {
284
284
  return FactoryMaker.getInstance('BarcodeDefaults');
@@ -332,8 +332,8 @@ function parseBarcodeCaptureDefaults(jsonDefaults) {
332
332
  return barcodeCaptureDefaults;
333
333
  }
334
334
 
335
- function getBarcodeCheckDefaults() {
336
- return FactoryMaker.getInstance('BarcodeCheckDefaults');
335
+ function getBarcodeArDefaults() {
336
+ return FactoryMaker.getInstance('BarcodeArDefaults');
337
337
  }
338
338
  function parseCircleHighlightPresets(jsonPresets) {
339
339
  const presets = {};
@@ -345,21 +345,21 @@ function parseCircleHighlightPresets(jsonPresets) {
345
345
  function parseBrush$1(brushJson) {
346
346
  return new Brush(brushJson.fill.color, brushJson.stroke.color, brushJson.stroke.width);
347
347
  }
348
- function parseBarcodeCheckDefaults(jsonDefaults) {
349
- const viewJsonDefaults = jsonDefaults.BarcodeCheckView;
350
- const barcodeCheckDefaults = {
348
+ function parseBarcodeArDefaults(jsonDefaults) {
349
+ const viewJsonDefaults = jsonDefaults.BarcodeArView;
350
+ const barcodeArDefaults = {
351
351
  RecommendedCameraSettings: CameraSettings
352
352
  .fromJSON(jsonDefaults.RecommendedCameraSettings),
353
353
  Feedback: {
354
- scanned: Feedback.fromJSON(JSON.parse(jsonDefaults.barcodeCheckFeedback).scanned),
355
- tapped: Feedback.fromJSON(JSON.parse(jsonDefaults.barcodeCheckFeedback).tapped)
354
+ scanned: Feedback.fromJSON(JSON.parse(jsonDefaults.barcodeArFeedback).scanned),
355
+ tapped: Feedback.fromJSON(JSON.parse(jsonDefaults.barcodeArFeedback).tapped)
356
356
  },
357
- BarcodeCheckView: {
357
+ BarcodeArView: {
358
358
  circleHighlightPresets: parseCircleHighlightPresets(viewJsonDefaults.circleHighlightPresets),
359
- defaultBarcodeCheckPopoverAnnotationButtonEnabled: viewJsonDefaults.defaultBarcodeCheckPopoverAnnotationButtonEnabled,
360
- defaultBarcodeCheckPopoverAnnotationButtonTextColor: Color
361
- .fromJSON(viewJsonDefaults.defaultBarcodeCheckPopoverAnnotationButtonTextColor),
362
- defaultBarcodeCheckPopoverAnnotationButtonTextSize: viewJsonDefaults.defaultBarcodeCheckPopoverAnnotationButtonTextSize,
359
+ defaultBarcodeArPopoverAnnotationButtonEnabled: viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonEnabled,
360
+ defaultBarcodeArPopoverAnnotationButtonTextColor: Color
361
+ .fromJSON(viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonTextColor),
362
+ defaultBarcodeArPopoverAnnotationButtonTextSize: viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonTextSize,
363
363
  defaultCameraPosition: viewJsonDefaults.defaultCameraPosition,
364
364
  defaultCameraSwitchControlPosition: viewJsonDefaults.defaultCameraSwitchControlPosition,
365
365
  defaultHapticsEnabled: viewJsonDefaults.defaultHapticsEnabled,
@@ -419,7 +419,7 @@ function parseBarcodeCheckDefaults(jsonDefaults) {
419
419
  .fromJSON(viewJsonDefaults.defaultHighlightIcon) || null,
420
420
  }
421
421
  };
422
- return barcodeCheckDefaults;
422
+ return barcodeArDefaults;
423
423
  }
424
424
 
425
425
  function getBarcodeSelectionDefaults() {
@@ -523,7 +523,7 @@ class BarcodeCountFeedback extends DefaultSerializeable {
523
523
  }
524
524
  updateFeedback() {
525
525
  var _a;
526
- (_a = this.listenerController) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
526
+ (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
527
527
  }
528
528
  static fromJSON(json) {
529
529
  const success = Feedback.fromJSON(json.success);
@@ -544,13 +544,13 @@ class BarcodeCountFeedback extends DefaultSerializeable {
544
544
  }
545
545
  __decorate([
546
546
  ignoreFromSerialization
547
- ], BarcodeCountFeedback.prototype, "listenerController", undefined);
547
+ ], BarcodeCountFeedback.prototype, "listenerController", void 0);
548
548
  __decorate([
549
549
  nameForSerialization('success')
550
- ], BarcodeCountFeedback.prototype, "_success", undefined);
550
+ ], BarcodeCountFeedback.prototype, "_success", void 0);
551
551
  __decorate([
552
552
  nameForSerialization('failure')
553
- ], BarcodeCountFeedback.prototype, "_failure", undefined);
553
+ ], BarcodeCountFeedback.prototype, "_failure", void 0);
554
554
  __decorate([
555
555
  ignoreFromSerialization
556
556
  ], BarcodeCountFeedback, "barcodeCountDefaults", null);
@@ -576,12 +576,12 @@ class BarcodeCountCaptureListSession extends DefaultSerializeable {
576
576
  }
577
577
  static fromJSON(json) {
578
578
  var _a, _b, _c, _d, _e, _f;
579
- const correctBarcodes = (_a = json.correctBarcodes) !== null && _a !== undefined ? _a : [];
580
- const wrongBarcodes = (_b = json.wrongBarcodes) !== null && _b !== undefined ? _b : [];
581
- const missingBarcodes = (_c = json.missingBarcodes) !== null && _c !== undefined ? _c : [];
582
- const additionalBarcodes = (_d = json.additionalBarcodes) !== null && _d !== undefined ? _d : [];
583
- const acceptedBarcodes = (_e = json.acceptedBarcodes) !== null && _e !== undefined ? _e : [];
584
- const rejectedBarcodes = (_f = json.rejectedBarcodes) !== null && _f !== undefined ? _f : [];
579
+ const correctBarcodes = (_a = json.correctBarcodes) !== null && _a !== void 0 ? _a : [];
580
+ const wrongBarcodes = (_b = json.wrongBarcodes) !== null && _b !== void 0 ? _b : [];
581
+ const missingBarcodes = (_c = json.missingBarcodes) !== null && _c !== void 0 ? _c : [];
582
+ const additionalBarcodes = (_d = json.additionalBarcodes) !== null && _d !== void 0 ? _d : [];
583
+ const acceptedBarcodes = (_e = json.acceptedBarcodes) !== null && _e !== void 0 ? _e : [];
584
+ const rejectedBarcodes = (_f = json.rejectedBarcodes) !== null && _f !== void 0 ? _f : [];
585
585
  return new BarcodeCountCaptureListSession({
586
586
  correctBarcodes,
587
587
  wrongBarcodes,
@@ -603,22 +603,22 @@ class BarcodeCountCaptureListSession extends DefaultSerializeable {
603
603
  }
604
604
  __decorate([
605
605
  nameForSerialization('correctBarcodes')
606
- ], BarcodeCountCaptureListSession.prototype, "_correctBarcodes", undefined);
606
+ ], BarcodeCountCaptureListSession.prototype, "_correctBarcodes", void 0);
607
607
  __decorate([
608
608
  nameForSerialization('wrongBarcodes')
609
- ], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes", undefined);
609
+ ], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes", void 0);
610
610
  __decorate([
611
611
  nameForSerialization('missingBarcodes')
612
- ], BarcodeCountCaptureListSession.prototype, "_missingBarcodes", undefined);
612
+ ], BarcodeCountCaptureListSession.prototype, "_missingBarcodes", void 0);
613
613
  __decorate([
614
614
  nameForSerialization('additionalBarcodes')
615
- ], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes", undefined);
615
+ ], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes", void 0);
616
616
  __decorate([
617
617
  nameForSerialization('acceptedBarcodes')
618
- ], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes", undefined);
618
+ ], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes", void 0);
619
619
  __decorate([
620
620
  nameForSerialization('rejectedBarcodes')
621
- ], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes", undefined);
621
+ ], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes", void 0);
622
622
 
623
623
  class EncodingRange {
624
624
  get ianaName() { return this._ianaName; }
@@ -696,46 +696,46 @@ class Barcode extends DefaultSerializeable {
696
696
  }
697
697
  __decorate([
698
698
  nameForSerialization('symbology')
699
- ], Barcode.prototype, "_symbology", undefined);
699
+ ], Barcode.prototype, "_symbology", void 0);
700
700
  __decorate([
701
701
  nameForSerialization('data')
702
- ], Barcode.prototype, "_data", undefined);
702
+ ], Barcode.prototype, "_data", void 0);
703
703
  __decorate([
704
704
  nameForSerialization('rawData')
705
- ], Barcode.prototype, "_rawData", undefined);
705
+ ], Barcode.prototype, "_rawData", void 0);
706
706
  __decorate([
707
707
  nameForSerialization('compositeData')
708
- ], Barcode.prototype, "_compositeData", undefined);
708
+ ], Barcode.prototype, "_compositeData", void 0);
709
709
  __decorate([
710
710
  nameForSerialization('compositeRawData')
711
- ], Barcode.prototype, "_compositeRawData", undefined);
711
+ ], Barcode.prototype, "_compositeRawData", void 0);
712
712
  __decorate([
713
713
  nameForSerialization('addOnData')
714
- ], Barcode.prototype, "_addOnData", undefined);
714
+ ], Barcode.prototype, "_addOnData", void 0);
715
715
  __decorate([
716
716
  nameForSerialization('encodingRanges')
717
- ], Barcode.prototype, "_encodingRanges", undefined);
717
+ ], Barcode.prototype, "_encodingRanges", void 0);
718
718
  __decorate([
719
719
  nameForSerialization('location')
720
- ], Barcode.prototype, "_location", undefined);
720
+ ], Barcode.prototype, "_location", void 0);
721
721
  __decorate([
722
722
  nameForSerialization('isGS1DataCarrier')
723
- ], Barcode.prototype, "_isGS1DataCarrier", undefined);
723
+ ], Barcode.prototype, "_isGS1DataCarrier", void 0);
724
724
  __decorate([
725
725
  nameForSerialization('compositeFlag')
726
- ], Barcode.prototype, "_compositeFlag", undefined);
726
+ ], Barcode.prototype, "_compositeFlag", void 0);
727
727
  __decorate([
728
728
  nameForSerialization('isColorInverted')
729
- ], Barcode.prototype, "_isColorInverted", undefined);
729
+ ], Barcode.prototype, "_isColorInverted", void 0);
730
730
  __decorate([
731
731
  nameForSerialization('symbolCount')
732
- ], Barcode.prototype, "_symbolCount", undefined);
732
+ ], Barcode.prototype, "_symbolCount", void 0);
733
733
  __decorate([
734
734
  nameForSerialization('frameID')
735
- ], Barcode.prototype, "_frameID", undefined);
735
+ ], Barcode.prototype, "_frameID", void 0);
736
736
  __decorate([
737
737
  nameForSerialization('structuredAppendData')
738
- ], Barcode.prototype, "_structuredAppendData", undefined);
738
+ ], Barcode.prototype, "_structuredAppendData", void 0);
739
739
 
740
740
  var BatterySavingMode;
741
741
  (function (BatterySavingMode) {
@@ -792,10 +792,10 @@ class TargetBarcode extends DefaultSerializeable {
792
792
  }
793
793
  __decorate([
794
794
  nameForSerialization('data')
795
- ], TargetBarcode.prototype, "_data", undefined);
795
+ ], TargetBarcode.prototype, "_data", void 0);
796
796
  __decorate([
797
797
  nameForSerialization('quantity')
798
- ], TargetBarcode.prototype, "_quantity", undefined);
798
+ ], TargetBarcode.prototype, "_quantity", void 0);
799
799
 
800
800
  class TrackedBarcode {
801
801
  get barcode() { return this._barcode; }
@@ -855,13 +855,13 @@ class BarcodeSpatialGrid extends DefaultSerializeable {
855
855
  }
856
856
  __decorate([
857
857
  nameForSerialization('rows')
858
- ], BarcodeSpatialGrid.prototype, "_rows", undefined);
858
+ ], BarcodeSpatialGrid.prototype, "_rows", void 0);
859
859
  __decorate([
860
860
  nameForSerialization('columns')
861
- ], BarcodeSpatialGrid.prototype, "_columns", undefined);
861
+ ], BarcodeSpatialGrid.prototype, "_columns", void 0);
862
862
  __decorate([
863
863
  nameForSerialization('grid')
864
- ], BarcodeSpatialGrid.prototype, "_grid", undefined);
864
+ ], BarcodeSpatialGrid.prototype, "_grid", void 0);
865
865
 
866
866
  class BarcodeCountSessionController extends BaseController {
867
867
  constructor() {
@@ -871,7 +871,7 @@ class BarcodeCountSessionController extends BaseController {
871
871
  return this._proxy.$resetSession();
872
872
  }
873
873
  getSpatialMap() {
874
- return __awaiter(this, undefined, undefined, function* () {
874
+ return __awaiter(this, void 0, void 0, function* () {
875
875
  const result = yield this._proxy.$getSpatialMap();
876
876
  if (result) {
877
877
  const payload = JSON.parse(result.data);
@@ -880,7 +880,7 @@ class BarcodeCountSessionController extends BaseController {
880
880
  });
881
881
  }
882
882
  getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
883
- return __awaiter(this, undefined, undefined, function* () {
883
+ return __awaiter(this, void 0, void 0, function* () {
884
884
  const result = yield this._proxy.$getSpatialMapWithHints({ expectedNumberOfRows, expectedNumberOfColumns });
885
885
  if (result) {
886
886
  const payload = JSON.parse(result.data);
@@ -898,7 +898,7 @@ class BarcodeCountSession extends DefaultSerializeable {
898
898
  session._frameSequenceID = sessionJson.frameSequenceId;
899
899
  session._additionalBarcodes = sessionJson.additionalBarcodes;
900
900
  session._recognizedBarcodes = sessionJson.recognizedBarcodes.map(Barcode.fromJSON);
901
- session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
901
+ session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
902
902
  return session;
903
903
  }
904
904
  constructor() {
@@ -918,33 +918,33 @@ class BarcodeCountSession extends DefaultSerializeable {
918
918
  return this.sessionController.resetSession();
919
919
  }
920
920
  getSpatialMap() {
921
- return __awaiter(this, undefined, undefined, function* () {
921
+ return __awaiter(this, void 0, void 0, function* () {
922
922
  var _a;
923
- return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== undefined ? _a : null;
923
+ return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== void 0 ? _a : null;
924
924
  });
925
925
  }
926
926
  getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
927
- return __awaiter(this, undefined, undefined, function* () {
927
+ return __awaiter(this, void 0, void 0, function* () {
928
928
  var _a;
929
- return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !== undefined ? _a : null;
929
+ return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !== void 0 ? _a : null;
930
930
  });
931
931
  }
932
932
  }
933
933
  __decorate([
934
934
  nameForSerialization('recognizedBarcodes')
935
- ], BarcodeCountSession.prototype, "_recognizedBarcodes", undefined);
935
+ ], BarcodeCountSession.prototype, "_recognizedBarcodes", void 0);
936
936
  __decorate([
937
937
  nameForSerialization('additionalBarcodes')
938
- ], BarcodeCountSession.prototype, "_additionalBarcodes", undefined);
938
+ ], BarcodeCountSession.prototype, "_additionalBarcodes", void 0);
939
939
  __decorate([
940
940
  nameForSerialization('frameSequenceID')
941
- ], BarcodeCountSession.prototype, "_frameSequenceID", undefined);
941
+ ], BarcodeCountSession.prototype, "_frameSequenceID", void 0);
942
942
  __decorate([
943
943
  ignoreFromSerialization
944
- ], BarcodeCountSession.prototype, "sessionController", undefined);
944
+ ], BarcodeCountSession.prototype, "sessionController", void 0);
945
945
  __decorate([
946
946
  ignoreFromSerialization
947
- ], BarcodeCountSession.prototype, "frameId", undefined);
947
+ ], BarcodeCountSession.prototype, "frameId", void 0);
948
948
 
949
949
  var BarcodeCountListenerEvents;
950
950
  (function (BarcodeCountListenerEvents) {
@@ -972,9 +972,9 @@ class BarcodeCountListenerController extends BaseController {
972
972
  this._proxy.$setBarcodeCountModeEnabledState({ isEnabled: enabled });
973
973
  }
974
974
  subscribeListener() {
975
- return __awaiter(this, undefined, undefined, function* () {
975
+ return __awaiter(this, void 0, void 0, function* () {
976
976
  yield this._proxy.$registerBarcodeCountListener();
977
- this._proxy.on$didScan = (ev) => __awaiter(this, undefined, undefined, function* () {
977
+ this._proxy.on$didScan = (ev) => __awaiter(this, void 0, void 0, function* () {
978
978
  const payload = EventDataParser.parse(ev.data);
979
979
  if (payload === null) {
980
980
  console.error('BarcodeCountListenerController didScan payload is null');
@@ -984,7 +984,7 @@ class BarcodeCountListenerController extends BaseController {
984
984
  yield this.notifyListenersOfDidScanSession(session);
985
985
  yield this._proxy.$finishBarcodeCountOnScan();
986
986
  });
987
- this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
987
+ this._proxy.on$didUpdateSession = (ev) => __awaiter(this, void 0, void 0, function* () {
988
988
  const payload = EventDataParser.parse(ev.data);
989
989
  if (payload === null) {
990
990
  console.error('BarcodeCountListenerController.subscribeListener: didListSessionUpdate payload is null');
@@ -997,7 +997,7 @@ class BarcodeCountListenerController extends BaseController {
997
997
  });
998
998
  }
999
999
  unsubscribeListener() {
1000
- return __awaiter(this, undefined, undefined, function* () {
1000
+ return __awaiter(this, void 0, void 0, function* () {
1001
1001
  yield this._proxy.$unregisterBarcodeCountListener();
1002
1002
  this._proxy.dispose();
1003
1003
  });
@@ -1016,7 +1016,7 @@ class BarcodeCountListenerController extends BaseController {
1016
1016
  this._proxy.$setBarcodeCountCaptureList({ captureListJson: JSON.stringify(barcodeCountCaptureList.targetBarcodes) });
1017
1017
  }
1018
1018
  notifyListenersOfDidScanSession(session) {
1019
- return __awaiter(this, undefined, undefined, function* () {
1019
+ return __awaiter(this, void 0, void 0, function* () {
1020
1020
  const mode = this.barcodeCount;
1021
1021
  for (const listener of mode.listeners) {
1022
1022
  if (listener.didScan) {
@@ -1027,9 +1027,9 @@ class BarcodeCountListenerController extends BaseController {
1027
1027
  }
1028
1028
  notifyListenersOfDidListSessionUpdate(session) {
1029
1029
  var _a;
1030
- const barcodeCountCaptureListListener = (_a = this._barcodeCountCaptureList) === null || _a === undefined ? undefined : _a.listener;
1031
- if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === undefined ? undefined : barcodeCountCaptureListListener.didUpdateSession)) {
1032
- barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === undefined ? undefined : barcodeCountCaptureListListener.didUpdateSession(this._barcodeCountCaptureList, session);
1030
+ const barcodeCountCaptureListListener = (_a = this._barcodeCountCaptureList) === null || _a === void 0 ? void 0 : _a.listener;
1031
+ if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession)) {
1032
+ barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession(this._barcodeCountCaptureList, session);
1033
1033
  }
1034
1034
  }
1035
1035
  }
@@ -1138,22 +1138,22 @@ class BarcodeCount extends DefaultSerializeable {
1138
1138
  }
1139
1139
  __decorate([
1140
1140
  nameForSerialization('feedback')
1141
- ], BarcodeCount.prototype, "_feedback", undefined);
1141
+ ], BarcodeCount.prototype, "_feedback", void 0);
1142
1142
  __decorate([
1143
1143
  ignoreFromSerialization
1144
- ], BarcodeCount.prototype, "_isEnabled", undefined);
1144
+ ], BarcodeCount.prototype, "_isEnabled", void 0);
1145
1145
  __decorate([
1146
1146
  ignoreFromSerialization
1147
- ], BarcodeCount.prototype, "listeners", undefined);
1147
+ ], BarcodeCount.prototype, "listeners", void 0);
1148
1148
  __decorate([
1149
1149
  nameForSerialization('additionalBarcodes')
1150
- ], BarcodeCount.prototype, "_additionalBarcodes", undefined);
1150
+ ], BarcodeCount.prototype, "_additionalBarcodes", void 0);
1151
1151
  __decorate([
1152
1152
  ignoreFromSerialization
1153
- ], BarcodeCount.prototype, "privateContext", undefined);
1153
+ ], BarcodeCount.prototype, "privateContext", void 0);
1154
1154
  __decorate([
1155
1155
  ignoreFromSerialization
1156
- ], BarcodeCount.prototype, "listenerController", undefined);
1156
+ ], BarcodeCount.prototype, "listenerController", void 0);
1157
1157
  __decorate([
1158
1158
  ignoreFromSerialization
1159
1159
  ], BarcodeCount, "barcodeCountDefaults", null);
@@ -1236,13 +1236,13 @@ class BarcodeCountSettings extends DefaultSerializeable {
1236
1236
  }
1237
1237
  __decorate([
1238
1238
  nameForSerialization('barcodeFilterSettings')
1239
- ], BarcodeCountSettings.prototype, "_filterSettings", undefined);
1239
+ ], BarcodeCountSettings.prototype, "_filterSettings", void 0);
1240
1240
  __decorate([
1241
1241
  nameForSerialization('expectOnlyUniqueBarcodes')
1242
- ], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes", undefined);
1242
+ ], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes", void 0);
1243
1243
  __decorate([
1244
1244
  nameForSerialization('mappingEnabled')
1245
- ], BarcodeCountSettings.prototype, "_mappingEnabled", undefined);
1245
+ ], BarcodeCountSettings.prototype, "_mappingEnabled", void 0);
1246
1246
  __decorate([
1247
1247
  ignoreFromSerialization
1248
1248
  ], BarcodeCountSettings, "barcodeCountDefaults", null);
@@ -1311,7 +1311,7 @@ class BarcodeCountViewController extends BaseController {
1311
1311
  this.barcodeCount = barcodeCount;
1312
1312
  }
1313
1313
  initialize(autoCreateNativeView) {
1314
- return __awaiter(this, undefined, undefined, function* () {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
1315
  const context = this.view.context;
1316
1316
  yield context.update();
1317
1317
  if (autoCreateNativeView) {
@@ -1330,19 +1330,14 @@ class BarcodeCountViewController extends BaseController {
1330
1330
  }
1331
1331
  removeNativeView() {
1332
1332
  var _a, _b, _c;
1333
- return (_c = (_b = (_a = this._proxy).$removeBarcodeCountView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
1333
+ return (_c = (_b = (_a = this._proxy).$removeBarcodeCountView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
1334
1334
  }
1335
1335
  createView() {
1336
- const barcodeCountViewSerialized = this.view.toJSON();
1337
- const barcodeCountSerialized = this.view._barcodeCount.toJSON();
1338
- const viewJson = JSON.stringify({
1339
- BarcodeCount: barcodeCountSerialized,
1340
- View: barcodeCountViewSerialized
1341
- });
1342
- return this._proxy.$createBarcodeCountView({ viewJson });
1336
+ const barcodeCountViewJson = this.view.toJSON();
1337
+ return this._proxy.$createBarcodeCountView({ viewJson: JSON.stringify(barcodeCountViewJson) });
1343
1338
  }
1344
1339
  setUiListener(listener) {
1345
- return __awaiter(this, undefined, undefined, function* () {
1340
+ return __awaiter(this, void 0, void 0, function* () {
1346
1341
  if (listener != null) {
1347
1342
  yield this._proxy.$registerBarcodeCountViewUiListener();
1348
1343
  }
@@ -1352,7 +1347,7 @@ class BarcodeCountViewController extends BaseController {
1352
1347
  });
1353
1348
  }
1354
1349
  setViewListener(listener) {
1355
- return __awaiter(this, undefined, undefined, function* () {
1350
+ return __awaiter(this, void 0, void 0, function* () {
1356
1351
  if (listener != null) {
1357
1352
  yield this._proxy.$registerBarcodeCountViewListener();
1358
1353
  }
@@ -1362,12 +1357,12 @@ class BarcodeCountViewController extends BaseController {
1362
1357
  });
1363
1358
  }
1364
1359
  clearHighlights() {
1365
- return __awaiter(this, undefined, undefined, function* () {
1360
+ return __awaiter(this, void 0, void 0, function* () {
1366
1361
  yield this._proxy.$clearBarcodeCountHighlights();
1367
1362
  });
1368
1363
  }
1369
1364
  dispose() {
1370
- return __awaiter(this, undefined, undefined, function* () {
1365
+ return __awaiter(this, void 0, void 0, function* () {
1371
1366
  yield this.unsubscribeListeners();
1372
1367
  });
1373
1368
  }
@@ -1412,21 +1407,21 @@ class BarcodeCountViewController extends BaseController {
1412
1407
  };
1413
1408
  }
1414
1409
  subscribeListeners() {
1415
- return __awaiter(this, undefined, undefined, function* () {
1410
+ return __awaiter(this, void 0, void 0, function* () {
1416
1411
  yield this._proxy.$registerBarcodeCountViewListener();
1417
1412
  this._proxy.on$singleScanButtonTapped = () => {
1418
1413
  var _a, _b;
1419
- (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapSingleScanButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
1414
+ (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapSingleScanButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view.nativeView);
1420
1415
  };
1421
1416
  this._proxy.on$listButtonTapped = () => {
1422
1417
  var _a, _b;
1423
- (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapListButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
1418
+ (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapListButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view.nativeView);
1424
1419
  };
1425
1420
  this._proxy.on$exitButtonTapped = () => {
1426
1421
  var _a, _b;
1427
- (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapExitButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
1422
+ (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapExitButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view.nativeView);
1428
1423
  };
1429
- this._proxy.on$brushForRecognizedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
1424
+ this._proxy.on$brushForRecognizedBarcode = (ev) => __awaiter(this, void 0, void 0, function* () {
1430
1425
  const payload = EventDataParser.parse(ev.data);
1431
1426
  if (payload === null) {
1432
1427
  console.error('BarcodeCountViewController brushForRecognizedBarcode payload is null');
@@ -1441,7 +1436,7 @@ class BarcodeCountViewController extends BaseController {
1441
1436
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1442
1437
  yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1443
1438
  });
1444
- this._proxy.on$brushForRecognizedBarcodeNotInList = (ev) => __awaiter(this, undefined, undefined, function* () {
1439
+ this._proxy.on$brushForRecognizedBarcodeNotInList = (ev) => __awaiter(this, void 0, void 0, function* () {
1445
1440
  const payload = EventDataParser.parse(ev.data);
1446
1441
  if (payload === null) {
1447
1442
  console.error('BarcodeCountViewController brushForRecognizedBarcodeNotInList payload is null');
@@ -1456,7 +1451,7 @@ class BarcodeCountViewController extends BaseController {
1456
1451
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1457
1452
  yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcodeNotInList({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1458
1453
  });
1459
- this._proxy.on$brushForAcceptedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
1454
+ this._proxy.on$brushForAcceptedBarcode = (ev) => __awaiter(this, void 0, void 0, function* () {
1460
1455
  const payload = EventDataParser.parse(ev.data);
1461
1456
  if (payload === null) {
1462
1457
  console.error('BarcodeCountViewController brushForAcceptedBarcode payload is null');
@@ -1471,7 +1466,7 @@ class BarcodeCountViewController extends BaseController {
1471
1466
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1472
1467
  yield this._proxy.$finishBarcodeCountBrushForAcceptedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1473
1468
  });
1474
- this._proxy.on$brushForRejectedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
1469
+ this._proxy.on$brushForRejectedBarcode = (ev) => __awaiter(this, void 0, void 0, function* () {
1475
1470
  const payload = EventDataParser.parse(ev.data);
1476
1471
  if (payload === null) {
1477
1472
  console.error('BarcodeCountViewController brushForRejectedBarcode payload is null');
@@ -1486,7 +1481,7 @@ class BarcodeCountViewController extends BaseController {
1486
1481
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1487
1482
  yield this._proxy.$finishBarcodeCountBrushForRejectedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1488
1483
  });
1489
- this._proxy.on$filteredBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1484
+ this._proxy.on$filteredBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
1490
1485
  const payload = EventDataParser.parse(ev.data);
1491
1486
  if (payload === null) {
1492
1487
  console.error('BarcodeCountViewController filteredBarcodeTapped payload is null');
@@ -1498,7 +1493,7 @@ class BarcodeCountViewController extends BaseController {
1498
1493
  this.view.listener.didTapFilteredBarcode(this.view.nativeView, trackedBarcode);
1499
1494
  }
1500
1495
  });
1501
- this._proxy.on$recognizedBarcodeNotInListTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1496
+ this._proxy.on$recognizedBarcodeNotInListTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
1502
1497
  const payload = EventDataParser.parse(ev.data);
1503
1498
  if (payload === null) {
1504
1499
  console.error('BarcodeCountViewController recognizedBarcodeNotInListTapped payload is null');
@@ -1510,7 +1505,7 @@ class BarcodeCountViewController extends BaseController {
1510
1505
  this.view.listener.didTapRecognizedBarcodeNotInList(this.view.nativeView, trackedBarcode);
1511
1506
  }
1512
1507
  });
1513
- this._proxy.on$recognizedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1508
+ this._proxy.on$recognizedBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
1514
1509
  const payload = EventDataParser.parse(ev.data);
1515
1510
  if (payload === null) {
1516
1511
  console.error('BarcodeCountViewController recognizedBarcodeTapped payload is null');
@@ -1522,7 +1517,7 @@ class BarcodeCountViewController extends BaseController {
1522
1517
  this.view.listener.didTapRecognizedBarcode(this.view.nativeView, trackedBarcode);
1523
1518
  }
1524
1519
  });
1525
- this._proxy.on$acceptedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1520
+ this._proxy.on$acceptedBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
1526
1521
  const payload = EventDataParser.parse(ev.data);
1527
1522
  if (payload === null) {
1528
1523
  console.error('BarcodeCountViewController acceptedBarcodeTapped payload is null');
@@ -1534,7 +1529,7 @@ class BarcodeCountViewController extends BaseController {
1534
1529
  this.view.listener.didTapAcceptedBarcode(this.view.nativeView, trackedBarcode);
1535
1530
  }
1536
1531
  });
1537
- this._proxy.on$rejectedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1532
+ this._proxy.on$rejectedBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
1538
1533
  const payload = EventDataParser.parse(ev.data);
1539
1534
  if (payload === null) {
1540
1535
  console.error('BarcodeCountViewController rejectedBarcodeTapped payload is null');
@@ -1554,7 +1549,7 @@ class BarcodeCountViewController extends BaseController {
1554
1549
  });
1555
1550
  }
1556
1551
  unsubscribeListeners() {
1557
- return __awaiter(this, undefined, undefined, function* () {
1552
+ return __awaiter(this, void 0, void 0, function* () {
1558
1553
  this._proxy.dispose();
1559
1554
  yield this._proxy.$unregisterBarcodeCountViewListener();
1560
1555
  yield this._proxy.$unregisterBarcodeCountViewUiListener();
@@ -1677,49 +1672,49 @@ class BarcodeCountNotInListActionSettings extends DefaultSerializeable {
1677
1672
  }
1678
1673
  __decorate([
1679
1674
  nameForSerialization('enabled')
1680
- ], BarcodeCountNotInListActionSettings.prototype, "_enabled", undefined);
1675
+ ], BarcodeCountNotInListActionSettings.prototype, "_enabled", void 0);
1681
1676
  __decorate([
1682
1677
  nameForSerialization('acceptButtonText')
1683
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText", undefined);
1678
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText", void 0);
1684
1679
  __decorate([
1685
1680
  nameForSerialization('acceptButtonAccessibilityLabel')
1686
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel", undefined);
1681
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel", void 0);
1687
1682
  __decorate([
1688
1683
  nameForSerialization('acceptButtonAccessibilityHint')
1689
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint", undefined);
1684
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint", void 0);
1690
1685
  __decorate([
1691
1686
  nameForSerialization('acceptButtonContentDescription')
1692
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription", undefined);
1687
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription", void 0);
1693
1688
  __decorate([
1694
1689
  nameForSerialization('rejectButtonText')
1695
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText", undefined);
1690
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText", void 0);
1696
1691
  __decorate([
1697
1692
  nameForSerialization('rejectButtonAccessibilityLabel')
1698
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel", undefined);
1693
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel", void 0);
1699
1694
  __decorate([
1700
1695
  nameForSerialization('rejectButtonAccessibilityHint')
1701
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint", undefined);
1696
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint", void 0);
1702
1697
  __decorate([
1703
1698
  nameForSerialization('rejectButtonContentDescription')
1704
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription", undefined);
1699
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription", void 0);
1705
1700
  __decorate([
1706
1701
  nameForSerialization('cancelButtonText')
1707
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText", undefined);
1702
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText", void 0);
1708
1703
  __decorate([
1709
1704
  nameForSerialization('cancelButtonAccessibilityLabel')
1710
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel", undefined);
1705
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel", void 0);
1711
1706
  __decorate([
1712
1707
  nameForSerialization('cancelButtonAccessibilityHint')
1713
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint", undefined);
1708
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint", void 0);
1714
1709
  __decorate([
1715
1710
  nameForSerialization('cancelButtonContentDescription')
1716
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription", undefined);
1711
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription", void 0);
1717
1712
  __decorate([
1718
1713
  nameForSerialization('barcodeAcceptedHint')
1719
- ], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint", undefined);
1714
+ ], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint", void 0);
1720
1715
  __decorate([
1721
1716
  nameForSerialization('barcodeRejectedHint')
1722
- ], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint", undefined);
1717
+ ], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint", void 0);
1723
1718
 
1724
1719
  class BaseBarcodeCountView {
1725
1720
  static get defaultRecognizedBrush() {
@@ -2154,7 +2149,7 @@ class BaseBarcodeCountView {
2154
2149
  this._controller.initialize(autoCreateNativeView);
2155
2150
  }
2156
2151
  dispose() {
2157
- return __awaiter(this, undefined, undefined, function* () {
2152
+ return __awaiter(this, void 0, void 0, function* () {
2158
2153
  yield this._controller.dispose();
2159
2154
  this.isViewCreated = false;
2160
2155
  });
@@ -2191,7 +2186,7 @@ class BaseBarcodeCountView {
2191
2186
  return this._controller.enableHardwareTrigger(hardwareTriggerKeyCode);
2192
2187
  }
2193
2188
  createNativeView() {
2194
- return __awaiter(this, undefined, undefined, function* () {
2189
+ return __awaiter(this, void 0, void 0, function* () {
2195
2190
  if (this.isViewCreated) {
2196
2191
  return Promise.resolve();
2197
2192
  }
@@ -2200,7 +2195,7 @@ class BaseBarcodeCountView {
2200
2195
  });
2201
2196
  }
2202
2197
  removeNativeView() {
2203
- return __awaiter(this, undefined, undefined, function* () {
2198
+ return __awaiter(this, void 0, void 0, function* () {
2204
2199
  yield this._controller.removeNativeView();
2205
2200
  this.isViewCreated = false;
2206
2201
  });
@@ -2224,16 +2219,16 @@ class BaseBarcodeCountView {
2224
2219
  shouldShowFloatingShutterButton: this.shouldShowFloatingShutterButton,
2225
2220
  shouldShowToolbar: this.shouldShowToolbar,
2226
2221
  shouldShowScanAreaGuides: this.shouldShowScanAreaGuides,
2227
- toolbarSettings: (_a = this._toolbarSettings) === null || _a === undefined ? undefined : _a.toJSON(),
2222
+ toolbarSettings: (_a = this._toolbarSettings) === null || _a === void 0 ? void 0 : _a.toJSON(),
2228
2223
  shouldShowTorchControl: this.shouldShowTorchControl,
2229
2224
  torchControlPosition: this.torchControlPosition,
2230
2225
  tapToUncountEnabled: this.tapToUncountEnabled,
2231
2226
  textForTapToUncountHint: this.textForTapToUncountHint,
2232
2227
  barcodeNotInListActionSettings: this.barcodeNotInListActionSettings.toJSON(),
2233
- recognizedBrush: (_b = this.recognizedBrush) === null || _b === undefined ? undefined : _b.toJSON(),
2234
- notInListBrush: (_c = this.notInListBrush) === null || _c === undefined ? undefined : _c.toJSON(),
2235
- acceptedBrush: (_d = this.acceptedBrush) === null || _d === undefined ? undefined : _d.toJSON(),
2236
- rejectedBrush: (_e = this.rejectedBrush) === null || _e === undefined ? undefined : _e.toJSON(),
2228
+ recognizedBrush: (_b = this.recognizedBrush) === null || _b === void 0 ? void 0 : _b.toJSON(),
2229
+ notInListBrush: (_c = this.notInListBrush) === null || _c === void 0 ? void 0 : _c.toJSON(),
2230
+ acceptedBrush: (_d = this.acceptedBrush) === null || _d === void 0 ? void 0 : _d.toJSON(),
2231
+ rejectedBrush: (_e = this.rejectedBrush) === null || _e === void 0 ? void 0 : _e.toJSON(),
2237
2232
  hardwareTriggerEnabled: this._hardwareTriggerEnabled
2238
2233
  },
2239
2234
  BarcodeCount: this._barcodeCount.toJSON()
@@ -2314,23 +2309,23 @@ class BaseBarcodeCountView {
2314
2309
  json.View.shouldShowListProgressBar = this.shouldShowListProgressBar;
2315
2310
  }
2316
2311
  if (this.recognizedBrush) {
2317
- json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f === undefined ? undefined : _f.toJSON();
2312
+ json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f === void 0 ? void 0 : _f.toJSON();
2318
2313
  }
2319
2314
  if (this.notInListBrush) {
2320
- json.View.notInListBrush = (_g = this.notInListBrush) === null || _g === undefined ? undefined : _g.toJSON();
2315
+ json.View.notInListBrush = (_g = this.notInListBrush) === null || _g === void 0 ? void 0 : _g.toJSON();
2321
2316
  }
2322
2317
  if (this.filterSettings) {
2323
- json.View.filterSettings = (_h = this.filterSettings) === null || _h === undefined ? undefined : _h.toJSON();
2318
+ json.View.filterSettings = (_h = this.filterSettings) === null || _h === void 0 ? void 0 : _h.toJSON();
2324
2319
  }
2325
2320
  return json;
2326
2321
  }
2327
2322
  }
2328
2323
  __decorate([
2329
2324
  ignoreFromSerialization
2330
- ], BaseBarcodeCountView.prototype, "isViewCreated", undefined);
2325
+ ], BaseBarcodeCountView.prototype, "isViewCreated", void 0);
2331
2326
  __decorate([
2332
2327
  ignoreFromSerialization
2333
- ], BaseBarcodeCountView.prototype, "autoCreateNativeView", undefined);
2328
+ ], BaseBarcodeCountView.prototype, "autoCreateNativeView", void 0);
2334
2329
  __decorate([
2335
2330
  ignoreFromSerialization
2336
2331
  ], BaseBarcodeCountView, "barcodeCountDefaults", null);
@@ -2354,10 +2349,10 @@ class BarcodeFilterHighlightSettingsBrush extends DefaultSerializeable {
2354
2349
  }
2355
2350
  __decorate([
2356
2351
  nameForSerialization('highlightType')
2357
- ], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType", undefined);
2352
+ ], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType", void 0);
2358
2353
  __decorate([
2359
2354
  nameForSerialization('brush')
2360
- ], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", undefined);
2355
+ ], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", void 0);
2361
2356
 
2362
2357
  class BarcodeFilterSettings extends DefaultSerializeable {
2363
2358
  get excludeEan13() {
@@ -2414,19 +2409,19 @@ class BarcodeFilterSettings extends DefaultSerializeable {
2414
2409
  }
2415
2410
  __decorate([
2416
2411
  nameForSerialization('excludeEan13')
2417
- ], BarcodeFilterSettings.prototype, "_excludeEan13", undefined);
2412
+ ], BarcodeFilterSettings.prototype, "_excludeEan13", void 0);
2418
2413
  __decorate([
2419
2414
  nameForSerialization('excludeUpca')
2420
- ], BarcodeFilterSettings.prototype, "_excludeUpca", undefined);
2415
+ ], BarcodeFilterSettings.prototype, "_excludeUpca", void 0);
2421
2416
  __decorate([
2422
2417
  nameForSerialization('excludedCodesRegex')
2423
- ], BarcodeFilterSettings.prototype, "_excludedCodesRegex", undefined);
2418
+ ], BarcodeFilterSettings.prototype, "_excludedCodesRegex", void 0);
2424
2419
  __decorate([
2425
2420
  nameForSerialization('excludedSymbolCounts')
2426
- ], BarcodeFilterSettings.prototype, "_excludedSymbolCounts", undefined);
2421
+ ], BarcodeFilterSettings.prototype, "_excludedSymbolCounts", void 0);
2427
2422
  __decorate([
2428
2423
  nameForSerialization('excludedSymbologies')
2429
- ], BarcodeFilterSettings.prototype, "_excludedSymbologies", undefined);
2424
+ ], BarcodeFilterSettings.prototype, "_excludedSymbologies", void 0);
2430
2425
 
2431
2426
  function getBarcodeCountDefaults() {
2432
2427
  return FactoryMaker.getInstance('BarcodeCountDefaults');
@@ -2587,8 +2582,9 @@ function parseBarcodePickDefaults(jsonDefaults) {
2587
2582
  highlightStyle: JSON.parse(jsonDefaults.ViewSettings.HighlightStyle),
2588
2583
  initialGuidelineText: jsonDefaults.ViewSettings.initialGuidelineText,
2589
2584
  moveCloserGuidelineText: jsonDefaults.ViewSettings.moveCloserGuidelineText,
2590
- loadingDialogText: jsonDefaults.ViewSettings.loadingDialogText,
2591
2585
  showLoadingDialog: jsonDefaults.ViewSettings.showLoadingDialog,
2586
+ loadingDialogTextForPicking: jsonDefaults.ViewSettings.loadingDialogTextForPicking,
2587
+ loadingDialogTextForUnpicking: jsonDefaults.ViewSettings.loadingDialogTextForUnpicking,
2592
2588
  onFirstItemPickCompletedHintText: jsonDefaults.ViewSettings.onFirstItemPickCompletedHintText,
2593
2589
  onFirstItemToPickFoundHintText: jsonDefaults.ViewSettings.onFirstItemToPickFoundHintText,
2594
2590
  onFirstItemUnpickCompletedHintText: jsonDefaults.ViewSettings.onFirstItemUnpickCompletedHintText,
@@ -2638,14 +2634,14 @@ function parseBarcodeFindDefaults(jsonDefaults) {
2638
2634
  shouldShowUserGuidanceView: jsonDefaults.shouldShowUserGuidanceView,
2639
2635
  shouldShowTorchControl: jsonDefaults.shouldShowTorchControl,
2640
2636
  shouldShowZoomControl: jsonDefaults.shouldShowZoomControl,
2641
- textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !== undefined ? _a : null,
2642
- textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !== undefined ? _b : null,
2643
- textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !== undefined ? _c : null,
2644
- textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !== undefined ? _d : null,
2645
- textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !== undefined ? _e : null,
2646
- textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !== undefined ? _f : null,
2647
- textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !== undefined ? _g : null,
2648
- textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !== undefined ? _h : null,
2637
+ textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !== void 0 ? _a : null,
2638
+ textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !== void 0 ? _b : null,
2639
+ textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !== void 0 ? _c : null,
2640
+ textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !== void 0 ? _d : null,
2641
+ textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !== void 0 ? _e : null,
2642
+ textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !== void 0 ? _f : null,
2643
+ textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !== void 0 ? _g : null,
2644
+ textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !== void 0 ? _h : null,
2649
2645
  torchControlPosition: jsonDefaults.torchControlPosition,
2650
2646
  }
2651
2647
  };
@@ -2747,9 +2743,9 @@ function loadBarcodeCaptureDefaults(jsonDefaults) {
2747
2743
  const defaults = parseBarcodeCaptureDefaults(jsonDefaults);
2748
2744
  FactoryMaker.bindInstanceIfNotExists('BarcodeCaptureDefaults', defaults);
2749
2745
  }
2750
- function loadBarcodeCheckDefaults(jsonDefaults) {
2751
- const defaults = parseBarcodeCheckDefaults(jsonDefaults);
2752
- FactoryMaker.bindInstanceIfNotExists('BarcodeCheckDefaults', defaults);
2746
+ function loadBarcodeArDefaults(jsonDefaults) {
2747
+ const defaults = parseBarcodeArDefaults(jsonDefaults);
2748
+ FactoryMaker.bindInstanceIfNotExists('BarcodeArDefaults', defaults);
2753
2749
  }
2754
2750
  function loadBarcodeCountDefaults(jsonDefaults) {
2755
2751
  const defaults = parseBarcodeCountDefaults(jsonDefaults);
@@ -2796,7 +2792,7 @@ class BarcodeCaptureSession {
2796
2792
  session._newlyLocalizedBarcodes = sessionJson.newlyLocalizedBarcodes
2797
2793
  .map(LocalizedOnlyBarcode.fromJSON);
2798
2794
  session._frameSequenceID = sessionJson.frameSequenceId;
2799
- session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
2795
+ session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
2800
2796
  return session;
2801
2797
  }
2802
2798
  reset() {
@@ -2835,7 +2831,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
2835
2831
  }
2836
2832
  subscribeListener() {
2837
2833
  this._proxy.$registerBarcodeCaptureListenerForEvents();
2838
- this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
2834
+ this._proxy.on$didUpdateSession = (ev) => __awaiter(this, void 0, void 0, function* () {
2839
2835
  const payload = EventDataParser.parse(ev.data);
2840
2836
  if (payload === null) {
2841
2837
  console.error('BarcodeCaptureListenerController.subscribeListener: didUpdateSession payload is null');
@@ -2845,7 +2841,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
2845
2841
  yield this.notifyListenersOfDidUpdateSession(session);
2846
2842
  this._proxy.$finishBarcodeCaptureDidUpdateSession({ enabled: this.barcodeCapture.isEnabled });
2847
2843
  });
2848
- this._proxy.on$didScan = (ev) => __awaiter(this, undefined, undefined, function* () {
2844
+ this._proxy.on$didScan = (ev) => __awaiter(this, void 0, void 0, function* () {
2849
2845
  const payload = EventDataParser.parse(ev.data);
2850
2846
  if (payload === null) {
2851
2847
  console.error('BarcodeCaptureListenerController.subscribeListener: didScan payload is null');
@@ -2861,7 +2857,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
2861
2857
  this._proxy.dispose();
2862
2858
  }
2863
2859
  notifyListenersOfDidUpdateSession(session) {
2864
- return __awaiter(this, undefined, undefined, function* () {
2860
+ return __awaiter(this, void 0, void 0, function* () {
2865
2861
  const mode = this.barcodeCapture;
2866
2862
  for (const listener of mode.listeners) {
2867
2863
  if (listener.didUpdateSession) {
@@ -2871,7 +2867,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
2871
2867
  });
2872
2868
  }
2873
2869
  notifyListenersOfDidScan(session) {
2874
- return __awaiter(this, undefined, undefined, function* () {
2870
+ return __awaiter(this, void 0, void 0, function* () {
2875
2871
  const mode = this.barcodeCapture;
2876
2872
  for (const listener of mode.listeners) {
2877
2873
  if (listener.didScan) {
@@ -2953,19 +2949,19 @@ class BarcodeCapture extends DefaultSerializeable {
2953
2949
  }
2954
2950
  __decorate([
2955
2951
  ignoreFromSerialization
2956
- ], BarcodeCapture.prototype, "_isEnabled", undefined);
2952
+ ], BarcodeCapture.prototype, "_isEnabled", void 0);
2957
2953
  __decorate([
2958
2954
  nameForSerialization('feedback')
2959
- ], BarcodeCapture.prototype, "_feedback", undefined);
2955
+ ], BarcodeCapture.prototype, "_feedback", void 0);
2960
2956
  __decorate([
2961
2957
  ignoreFromSerialization
2962
- ], BarcodeCapture.prototype, "privateContext", undefined);
2958
+ ], BarcodeCapture.prototype, "privateContext", void 0);
2963
2959
  __decorate([
2964
2960
  ignoreFromSerialization
2965
- ], BarcodeCapture.prototype, "listeners", undefined);
2961
+ ], BarcodeCapture.prototype, "listeners", void 0);
2966
2962
  __decorate([
2967
2963
  ignoreFromSerialization
2968
- ], BarcodeCapture.prototype, "controller", undefined);
2964
+ ], BarcodeCapture.prototype, "controller", void 0);
2969
2965
  __decorate([
2970
2966
  ignoreFromSerialization
2971
2967
  ], BarcodeCapture, "barcodeCaptureDefaults", null);
@@ -3047,26 +3043,26 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
3047
3043
  }
3048
3044
  __decorate([
3049
3045
  ignoreFromSerialization
3050
- ], BarcodeCaptureOverlay.prototype, "barcodeCapture", undefined);
3046
+ ], BarcodeCaptureOverlay.prototype, "barcodeCapture", void 0);
3051
3047
  __decorate([
3052
3048
  ignoreFromSerialization
3053
- ], BarcodeCaptureOverlay.prototype, "view", undefined);
3049
+ ], BarcodeCaptureOverlay.prototype, "view", void 0);
3054
3050
  __decorate([
3055
3051
  nameForSerialization('shouldShowScanAreaGuides')
3056
- ], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
3052
+ ], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
3057
3053
  __decorate([
3058
3054
  serializationDefault(NoViewfinder),
3059
3055
  nameForSerialization('viewfinder')
3060
- ], BarcodeCaptureOverlay.prototype, "_viewfinder", undefined);
3056
+ ], BarcodeCaptureOverlay.prototype, "_viewfinder", void 0);
3061
3057
  __decorate([
3062
3058
  nameForSerialization('style')
3063
- ], BarcodeCaptureOverlay.prototype, "_style", undefined);
3059
+ ], BarcodeCaptureOverlay.prototype, "_style", void 0);
3064
3060
  __decorate([
3065
3061
  ignoreFromSerialization
3066
- ], BarcodeCaptureOverlay.prototype, "eventEmitter", undefined);
3062
+ ], BarcodeCaptureOverlay.prototype, "eventEmitter", void 0);
3067
3063
  __decorate([
3068
3064
  nameForSerialization('brush')
3069
- ], BarcodeCaptureOverlay.prototype, "_brush", undefined);
3065
+ ], BarcodeCaptureOverlay.prototype, "_brush", void 0);
3070
3066
  __decorate([
3071
3067
  ignoreFromSerialization
3072
3068
  ], BarcodeCaptureOverlay, "barcodeCaptureDefaults", null);
@@ -3145,13 +3141,13 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
3145
3141
  }
3146
3142
  __decorate([
3147
3143
  serializationDefault(NoneLocationSelection)
3148
- ], BarcodeCaptureSettings.prototype, "locationSelection", undefined);
3144
+ ], BarcodeCaptureSettings.prototype, "locationSelection", void 0);
3149
3145
  __decorate([
3150
3146
  nameForSerialization('codeDuplicateFilter')
3151
- ], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter", undefined);
3147
+ ], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter", void 0);
3152
3148
  __decorate([
3153
3149
  nameForSerialization('arucoDictionary')
3154
- ], BarcodeCaptureSettings.prototype, "_arucoDictionary", undefined);
3150
+ ], BarcodeCaptureSettings.prototype, "_arucoDictionary", void 0);
3155
3151
  __decorate([
3156
3152
  ignoreFromSerialization
3157
3153
  ], BarcodeCaptureSettings, "barcodeDefaults", null);
@@ -3159,77 +3155,19 @@ __decorate([
3159
3155
  ignoreFromSerialization
3160
3156
  ], BarcodeCaptureSettings, "barcodeCaptureDefaults", null);
3161
3157
 
3162
- class BarcodeCheckFeedback extends DefaultSerializeable {
3163
- static get defaultFeedback() {
3164
- const feedback = new BarcodeCheckFeedback();
3165
- feedback.scanned = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.scanned;
3166
- feedback.tapped = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.tapped;
3167
- return feedback;
3168
- }
3169
- static get barcodeCheckDefaults() {
3170
- return getBarcodeCheckDefaults();
3171
- }
3172
- static fromJSON(json) {
3173
- const scanned = Feedback.fromJSON(json.scanned);
3174
- const tapped = Feedback.fromJSON(json.tapped);
3175
- const feedback = new BarcodeCheckFeedback();
3176
- feedback.scanned = scanned;
3177
- feedback.tapped = tapped;
3178
- return feedback;
3179
- }
3180
- get scanned() {
3181
- return this._scanned;
3182
- }
3183
- set scanned(scanned) {
3184
- this._scanned = scanned;
3185
- this.updateFeedback();
3186
- }
3187
- get tapped() {
3188
- return this._tapped;
3189
- }
3190
- set tapped(tapped) {
3191
- this._tapped = tapped;
3192
- this.updateFeedback();
3193
- }
3194
- updateFeedback() {
3195
- var _a;
3196
- (_a = this.listenerController) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
3197
- }
3198
- constructor() {
3199
- super();
3200
- this.listenerController = null;
3201
- this._scanned = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.scanned;
3202
- this._tapped = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.tapped;
3203
- this.scanned = new Feedback(null, null);
3204
- this.tapped = new Feedback(null, null);
3205
- }
3206
- }
3207
- __decorate([
3208
- ignoreFromSerialization
3209
- ], BarcodeCheckFeedback.prototype, "listenerController", undefined);
3210
- __decorate([
3211
- nameForSerialization('scanned')
3212
- ], BarcodeCheckFeedback.prototype, "_scanned", undefined);
3213
- __decorate([
3214
- nameForSerialization('tapped')
3215
- ], BarcodeCheckFeedback.prototype, "_tapped", undefined);
3216
- __decorate([
3217
- ignoreFromSerialization
3218
- ], BarcodeCheckFeedback, "barcodeCheckDefaults", null);
3219
-
3220
- class BarcodeCheckSessionController {
3158
+ class BarcodeArSessionController {
3221
3159
  get _proxy() {
3222
- return FactoryMaker.getInstance('BarcodeCheckSessionProxy');
3160
+ return FactoryMaker.getInstance('BarcodeArSessionProxy');
3223
3161
  }
3224
3162
  resetSession() {
3225
3163
  return this._proxy.resetSession();
3226
3164
  }
3227
3165
  }
3228
3166
 
3229
- class BarcodeCheckSession extends DefaultSerializeable {
3167
+ class BarcodeArSession extends DefaultSerializeable {
3230
3168
  static fromJSON(json) {
3231
3169
  const sessionJson = JSON.parse(json);
3232
- const session = new BarcodeCheckSession();
3170
+ const session = new BarcodeArSession();
3233
3171
  session._addedTrackedBarcodes = sessionJson.addedTrackedBarcodes
3234
3172
  .map((trackedBarcodeJSON) => {
3235
3173
  return TrackedBarcode
@@ -3246,7 +3184,7 @@ class BarcodeCheckSession extends DefaultSerializeable {
3246
3184
  }
3247
3185
  constructor() {
3248
3186
  super();
3249
- this.sessionController = new BarcodeCheckSessionController();
3187
+ this.sessionController = new BarcodeArSessionController();
3250
3188
  }
3251
3189
  get addedTrackedBarcodes() {
3252
3190
  return this._addedTrackedBarcodes;
@@ -3263,73 +3201,73 @@ class BarcodeCheckSession extends DefaultSerializeable {
3263
3201
  }
3264
3202
  __decorate([
3265
3203
  nameForSerialization('addedTrackedBarcodes')
3266
- ], BarcodeCheckSession.prototype, "_addedTrackedBarcodes", undefined);
3204
+ ], BarcodeArSession.prototype, "_addedTrackedBarcodes", void 0);
3267
3205
  __decorate([
3268
3206
  nameForSerialization('removedTrackedBarcodes')
3269
- ], BarcodeCheckSession.prototype, "_removedTrackedBarcodes", undefined);
3207
+ ], BarcodeArSession.prototype, "_removedTrackedBarcodes", void 0);
3270
3208
  __decorate([
3271
3209
  nameForSerialization('trackedBarcodes')
3272
- ], BarcodeCheckSession.prototype, "_trackedBarcodes", undefined);
3210
+ ], BarcodeArSession.prototype, "_trackedBarcodes", void 0);
3273
3211
  __decorate([
3274
3212
  ignoreFromSerialization
3275
- ], BarcodeCheckSession.prototype, "sessionController", undefined);
3213
+ ], BarcodeArSession.prototype, "sessionController", void 0);
3276
3214
 
3277
- var BarcodeCheckListenerEvents;
3278
- (function (BarcodeCheckListenerEvents) {
3279
- BarcodeCheckListenerEvents["didUpdateSession"] = "BarcodeCheckListener.didUpdateSession";
3280
- })(BarcodeCheckListenerEvents || (BarcodeCheckListenerEvents = {}));
3281
- class BarcodeCheckListenerController {
3215
+ var BarcodeArListenerEvents;
3216
+ (function (BarcodeArListenerEvents) {
3217
+ BarcodeArListenerEvents["didUpdateSession"] = "BarcodeArListener.didUpdateSession";
3218
+ })(BarcodeArListenerEvents || (BarcodeArListenerEvents = {}));
3219
+ class BarcodeArListenerController {
3282
3220
  constructor() {
3283
3221
  this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
3284
3222
  }
3285
- static forBarcodeCheck(barcodeCheck) {
3286
- const controller = new BarcodeCheckListenerController();
3287
- controller.barcodeCheck = barcodeCheck;
3223
+ static forBarcodeAr(barcodeAr) {
3224
+ const controller = new BarcodeArListenerController();
3225
+ controller.barcodeAr = barcodeAr;
3288
3226
  return controller;
3289
3227
  }
3290
3228
  update() {
3291
- const barcodeCheck = this.barcodeCheck.toJSON();
3292
- const json = JSON.stringify(barcodeCheck);
3229
+ const barcodeAr = this.barcodeAr.toJSON();
3230
+ const json = JSON.stringify(barcodeAr);
3293
3231
  return this._proxy.updateMode(json);
3294
3232
  }
3295
3233
  reset() {
3296
- return this._proxy.resetBarcodeCheck();
3234
+ return this._proxy.resetBarcodeAr();
3297
3235
  }
3298
3236
  setModeEnabledState(enabled) {
3299
3237
  this._proxy.setModeEnabledState(enabled);
3300
3238
  }
3301
3239
  subscribeListener() {
3302
3240
  var _a, _b;
3303
- this._proxy.registerBarcodeCheckListener();
3304
- (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === undefined ? undefined : _b.call(_a);
3305
- this.eventEmitter.on(BarcodeCheckListenerEvents.didUpdateSession, (data) => __awaiter(this, undefined, undefined, function* () {
3241
+ this._proxy.registerBarcodeArListener();
3242
+ (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === void 0 ? void 0 : _b.call(_a);
3243
+ this.eventEmitter.on(BarcodeArListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
3306
3244
  const payload = EventDataParser.parse(data);
3307
3245
  if (payload === null) {
3308
- console.error('BarcodeCheckListenerController didUpdateSession payload is null');
3246
+ console.error('BarcodeArListenerController didUpdateSession payload is null');
3309
3247
  return;
3310
3248
  }
3311
- const session = BarcodeCheckSession.fromJSON(payload.session);
3249
+ const session = BarcodeArSession.fromJSON(payload.session);
3312
3250
  yield this.notifyListenersOfDidUpdateSession(session, payload.frameId);
3313
3251
  this._proxy.finishOnDidUpdateSession();
3314
3252
  }));
3315
3253
  }
3316
3254
  unsubscribeListener() {
3317
- this._proxy.unregisterBarcodeCheckListener();
3318
- this.eventEmitter.removeAllListeners(BarcodeCheckListenerEvents.didUpdateSession);
3255
+ this._proxy.unregisterBarcodeArListener();
3256
+ this.eventEmitter.removeAllListeners(BarcodeArListenerEvents.didUpdateSession);
3319
3257
  }
3320
3258
  updateFeedback(feedbackJson) {
3321
3259
  this._proxy.updateFeedback(feedbackJson);
3322
3260
  }
3323
3261
  get _proxy() {
3324
- return FactoryMaker.getInstance('BarcodeCheckListenerProxy');
3262
+ return FactoryMaker.getInstance('BarcodeArListenerProxy');
3325
3263
  }
3326
3264
  notifyListenersOfDidUpdateSession(session, frameId) {
3327
- return __awaiter(this, undefined, undefined, function* () {
3328
- const mode = this.barcodeCheck;
3265
+ return __awaiter(this, void 0, void 0, function* () {
3266
+ const mode = this.barcodeAr;
3329
3267
  mode.isInListenerCallback = true;
3330
3268
  for (const listener of mode.listeners) {
3331
3269
  if (listener.didUpdateSession) {
3332
- yield listener.didUpdateSession(this.barcodeCheck, session, () => CameraController.getFrame(frameId));
3270
+ yield listener.didUpdateSession(this.barcodeAr, session, () => CameraController.getFrame(frameId));
3333
3271
  }
3334
3272
  }
3335
3273
  mode.isInListenerCallback = false;
@@ -3337,26 +3275,84 @@ class BarcodeCheckListenerController {
3337
3275
  }
3338
3276
  }
3339
3277
 
3340
- class BarcodeCheck extends DefaultSerializeable {
3341
- static get barcodeCheckDefaults() {
3342
- return getBarcodeCheckDefaults();
3278
+ class BarcodeArFeedback extends DefaultSerializeable {
3279
+ static get defaultFeedback() {
3280
+ const feedback = new BarcodeArFeedback();
3281
+ feedback.scanned = BarcodeArFeedback.barcodeArDefaults.Feedback.scanned;
3282
+ feedback.tapped = BarcodeArFeedback.barcodeArDefaults.Feedback.tapped;
3283
+ return feedback;
3284
+ }
3285
+ static get barcodeArDefaults() {
3286
+ return getBarcodeArDefaults();
3287
+ }
3288
+ static fromJSON(json) {
3289
+ const scanned = Feedback.fromJSON(json.scanned);
3290
+ const tapped = Feedback.fromJSON(json.tapped);
3291
+ const feedback = new BarcodeArFeedback();
3292
+ feedback.scanned = scanned;
3293
+ feedback.tapped = tapped;
3294
+ return feedback;
3295
+ }
3296
+ get scanned() {
3297
+ return this._scanned;
3298
+ }
3299
+ set scanned(scanned) {
3300
+ this._scanned = scanned;
3301
+ this.updateFeedback();
3302
+ }
3303
+ get tapped() {
3304
+ return this._tapped;
3305
+ }
3306
+ set tapped(tapped) {
3307
+ this._tapped = tapped;
3308
+ this.updateFeedback();
3309
+ }
3310
+ updateFeedback() {
3311
+ var _a;
3312
+ (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
3313
+ }
3314
+ constructor() {
3315
+ super();
3316
+ this.listenerController = null;
3317
+ this._scanned = BarcodeArFeedback.barcodeArDefaults.Feedback.scanned;
3318
+ this._tapped = BarcodeArFeedback.barcodeArDefaults.Feedback.tapped;
3319
+ this.scanned = new Feedback(null, null);
3320
+ this.tapped = new Feedback(null, null);
3321
+ }
3322
+ }
3323
+ __decorate([
3324
+ ignoreFromSerialization
3325
+ ], BarcodeArFeedback.prototype, "listenerController", void 0);
3326
+ __decorate([
3327
+ nameForSerialization('scanned')
3328
+ ], BarcodeArFeedback.prototype, "_scanned", void 0);
3329
+ __decorate([
3330
+ nameForSerialization('tapped')
3331
+ ], BarcodeArFeedback.prototype, "_tapped", void 0);
3332
+ __decorate([
3333
+ ignoreFromSerialization
3334
+ ], BarcodeArFeedback, "barcodeArDefaults", null);
3335
+
3336
+ class BarcodeAr extends DefaultSerializeable {
3337
+ static get barcodeArDefaults() {
3338
+ return getBarcodeArDefaults();
3343
3339
  }
3344
3340
  static get recommendedCameraSettings() {
3345
- return BarcodeCheck.barcodeCheckDefaults.RecommendedCameraSettings;
3341
+ return BarcodeAr.barcodeArDefaults.RecommendedCameraSettings;
3346
3342
  }
3347
3343
  static forContext(context, settings) {
3348
- return new BarcodeCheck(context, settings);
3344
+ return new BarcodeAr(context, settings);
3349
3345
  }
3350
3346
  constructor(context, settings) {
3351
3347
  super();
3352
- this.type = 'barcodeCheck';
3348
+ this.type = 'barcodeAr';
3353
3349
  this.privateContext = null;
3354
3350
  this.isInListenerCallback = false;
3355
- this._feedback = BarcodeCheckFeedback.defaultFeedback;
3351
+ this._feedback = BarcodeArFeedback.defaultFeedback;
3356
3352
  this.listeners = [];
3357
3353
  this._context = context;
3358
3354
  this._settings = settings;
3359
- this.listenerController = BarcodeCheckListenerController.forBarcodeCheck(this);
3355
+ this.listenerController = BarcodeArListenerController.forBarcodeAr(this);
3360
3356
  this._feedback.listenerController = this.listenerController;
3361
3357
  }
3362
3358
  applySettings(settings) {
@@ -3413,38 +3409,38 @@ class BarcodeCheck extends DefaultSerializeable {
3413
3409
  }
3414
3410
  __decorate([
3415
3411
  ignoreFromSerialization
3416
- ], BarcodeCheck.prototype, "privateContext", undefined);
3412
+ ], BarcodeAr.prototype, "privateContext", void 0);
3417
3413
  __decorate([
3418
3414
  ignoreFromSerialization
3419
- ], BarcodeCheck.prototype, "listenerController", undefined);
3415
+ ], BarcodeAr.prototype, "listenerController", void 0);
3420
3416
  __decorate([
3421
3417
  ignoreFromSerialization
3422
- ], BarcodeCheck.prototype, "isInListenerCallback", undefined);
3418
+ ], BarcodeAr.prototype, "isInListenerCallback", void 0);
3423
3419
  __decorate([
3424
3420
  nameForSerialization('feedback')
3425
- ], BarcodeCheck.prototype, "_feedback", undefined);
3421
+ ], BarcodeAr.prototype, "_feedback", void 0);
3426
3422
  __decorate([
3427
3423
  nameForSerialization('settings')
3428
- ], BarcodeCheck.prototype, "_settings", undefined);
3424
+ ], BarcodeAr.prototype, "_settings", void 0);
3429
3425
  __decorate([
3430
3426
  ignoreFromSerialization
3431
- ], BarcodeCheck.prototype, "listeners", undefined);
3427
+ ], BarcodeAr.prototype, "listeners", void 0);
3432
3428
  __decorate([
3433
3429
  ignoreFromSerialization
3434
- ], BarcodeCheck, "barcodeCheckDefaults", null);
3430
+ ], BarcodeAr, "barcodeArDefaults", null);
3435
3431
 
3436
- class BarcodeCheckCircleHighlight extends Observable {
3437
- static get barcodeCheckDefaults() {
3438
- return getBarcodeCheckDefaults();
3432
+ class BarcodeArCircleHighlight extends Observable {
3433
+ static get barcodeArDefaults() {
3434
+ return getBarcodeArDefaults();
3439
3435
  }
3440
3436
  constructor(barcode, preset) {
3441
3437
  super();
3442
- this._type = 'barcodeCheckCircleHighlight';
3438
+ this._type = 'barcodeArCircleHighlight';
3443
3439
  this._barcode = barcode;
3444
3440
  this._preset = preset;
3445
- this._brush = BarcodeCheckCircleHighlight.barcodeCheckDefaults.BarcodeCheckView.circleHighlightPresets[preset].brush;
3446
- this._size = BarcodeCheckCircleHighlight.barcodeCheckDefaults.BarcodeCheckView.circleHighlightPresets[preset].size;
3447
- this._icon = BarcodeCheckCircleHighlight.barcodeCheckDefaults.BarcodeCheckView.defaultHighlightIcon;
3441
+ this._brush = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.circleHighlightPresets[preset].brush;
3442
+ this._size = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.circleHighlightPresets[preset].size;
3443
+ this._icon = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.defaultHighlightIcon;
3448
3444
  }
3449
3445
  get barcode() {
3450
3446
  return this._barcode;
@@ -3473,49 +3469,49 @@ class BarcodeCheckCircleHighlight extends Observable {
3473
3469
  }
3474
3470
  __decorate([
3475
3471
  nameForSerialization('type')
3476
- ], BarcodeCheckCircleHighlight.prototype, "_type", undefined);
3472
+ ], BarcodeArCircleHighlight.prototype, "_type", void 0);
3477
3473
  __decorate([
3478
3474
  ignoreFromSerialization
3479
- ], BarcodeCheckCircleHighlight.prototype, "_barcode", undefined);
3475
+ ], BarcodeArCircleHighlight.prototype, "_barcode", void 0);
3480
3476
  __decorate([
3481
3477
  nameForSerialization('brush')
3482
- ], BarcodeCheckCircleHighlight.prototype, "_brush", undefined);
3478
+ ], BarcodeArCircleHighlight.prototype, "_brush", void 0);
3483
3479
  __decorate([
3484
3480
  nameForSerialization('icon')
3485
- ], BarcodeCheckCircleHighlight.prototype, "_icon", undefined);
3481
+ ], BarcodeArCircleHighlight.prototype, "_icon", void 0);
3486
3482
  __decorate([
3487
3483
  nameForSerialization('preset')
3488
- ], BarcodeCheckCircleHighlight.prototype, "_preset", undefined);
3484
+ ], BarcodeArCircleHighlight.prototype, "_preset", void 0);
3489
3485
  __decorate([
3490
3486
  nameForSerialization('size')
3491
- ], BarcodeCheckCircleHighlight.prototype, "_size", undefined);
3487
+ ], BarcodeArCircleHighlight.prototype, "_size", void 0);
3492
3488
  __decorate([
3493
3489
  ignoreFromSerialization
3494
- ], BarcodeCheckCircleHighlight, "barcodeCheckDefaults", null);
3490
+ ], BarcodeArCircleHighlight, "barcodeArDefaults", null);
3495
3491
 
3496
- class BarcodeCheckInfoAnnotation extends Observable {
3497
- static get barcodeCheckDefaults() {
3498
- return getBarcodeCheckDefaults();
3492
+ class BarcodeArInfoAnnotation extends Observable {
3493
+ static get barcodeArDefaults() {
3494
+ return getBarcodeArDefaults();
3499
3495
  }
3500
3496
  constructor(barcode) {
3501
3497
  super();
3502
- this._type = 'barcodeCheckInfoAnnotation';
3503
- this._annotationTrigger = BarcodeCheckInfoAnnotation.barcodeCheckDefaults
3504
- .BarcodeCheckView.defaultInfoAnnotationTrigger;
3505
- this._anchor = BarcodeCheckInfoAnnotation.barcodeCheckDefaults
3506
- .BarcodeCheckView.defaultInfoAnnotationAnchor;
3507
- this._backgroundColor = BarcodeCheckInfoAnnotation.barcodeCheckDefaults
3508
- .BarcodeCheckView.defaultInfoAnnotationBackgroundColor;
3498
+ this._type = 'barcodeArInfoAnnotation';
3499
+ this._annotationTrigger = BarcodeArInfoAnnotation.barcodeArDefaults
3500
+ .BarcodeArView.defaultInfoAnnotationTrigger;
3501
+ this._anchor = BarcodeArInfoAnnotation.barcodeArDefaults
3502
+ .BarcodeArView.defaultInfoAnnotationAnchor;
3503
+ this._backgroundColor = BarcodeArInfoAnnotation.barcodeArDefaults
3504
+ .BarcodeArView.defaultInfoAnnotationBackgroundColor;
3509
3505
  this._body = [];
3510
3506
  this._footer = null;
3511
- this._hasTip = BarcodeCheckInfoAnnotation.barcodeCheckDefaults
3512
- .BarcodeCheckView.defaultInfoAnnotationHasTip;
3507
+ this._hasTip = BarcodeArInfoAnnotation.barcodeArDefaults
3508
+ .BarcodeArView.defaultInfoAnnotationHasTip;
3513
3509
  this._header = null;
3514
- this._isEntireAnnotationTappable = BarcodeCheckInfoAnnotation.barcodeCheckDefaults
3515
- .BarcodeCheckView.defaultInfoAnnotationEntireAnnotationTappable;
3510
+ this._isEntireAnnotationTappable = BarcodeArInfoAnnotation.barcodeArDefaults
3511
+ .BarcodeArView.defaultInfoAnnotationEntireAnnotationTappable;
3516
3512
  this._listener = null;
3517
3513
  this._hasListener = false;
3518
- this._width = BarcodeCheckInfoAnnotation.barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationWidth;
3514
+ this._width = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationWidth;
3519
3515
  this.footerChangedListener = () => {
3520
3516
  this.notifyListeners('footer', this._footer);
3521
3517
  };
@@ -3565,9 +3561,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
3565
3561
  }
3566
3562
  set footer(newValue) {
3567
3563
  var _a, _b;
3568
- (_a = this._footer) === null || _a === undefined ? undefined : _a.removeListener(this.footerChangedListener);
3564
+ (_a = this._footer) === null || _a === void 0 ? void 0 : _a.removeListener(this.footerChangedListener);
3569
3565
  this._footer = newValue;
3570
- (_b = this._footer) === null || _b === undefined ? undefined : _b.addListener(this.footerChangedListener);
3566
+ (_b = this._footer) === null || _b === void 0 ? void 0 : _b.addListener(this.footerChangedListener);
3571
3567
  this.notifyListeners('footer', newValue);
3572
3568
  }
3573
3569
  get hasTip() {
@@ -3582,9 +3578,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
3582
3578
  }
3583
3579
  set header(newValue) {
3584
3580
  var _a, _b;
3585
- (_a = this._header) === null || _a === undefined ? undefined : _a.removeListener(this.headerChangedListener);
3581
+ (_a = this._header) === null || _a === void 0 ? void 0 : _a.removeListener(this.headerChangedListener);
3586
3582
  this._header = newValue;
3587
- (_b = this._header) === null || _b === undefined ? undefined : _b.addListener(this.headerChangedListener);
3583
+ (_b = this._header) === null || _b === void 0 ? void 0 : _b.addListener(this.headerChangedListener);
3588
3584
  this.notifyListeners('header', newValue);
3589
3585
  }
3590
3586
  get isEntireAnnotationTappable() {
@@ -3612,69 +3608,69 @@ class BarcodeCheckInfoAnnotation extends Observable {
3612
3608
  }
3613
3609
  __decorate([
3614
3610
  ignoreFromSerialization
3615
- ], BarcodeCheckInfoAnnotation.prototype, "_barcode", undefined);
3611
+ ], BarcodeArInfoAnnotation.prototype, "_barcode", void 0);
3616
3612
  __decorate([
3617
3613
  nameForSerialization('type')
3618
- ], BarcodeCheckInfoAnnotation.prototype, "_type", undefined);
3614
+ ], BarcodeArInfoAnnotation.prototype, "_type", void 0);
3619
3615
  __decorate([
3620
3616
  nameForSerialization('annotationTrigger')
3621
- ], BarcodeCheckInfoAnnotation.prototype, "_annotationTrigger", undefined);
3617
+ ], BarcodeArInfoAnnotation.prototype, "_annotationTrigger", void 0);
3622
3618
  __decorate([
3623
3619
  nameForSerialization('anchor')
3624
- ], BarcodeCheckInfoAnnotation.prototype, "_anchor", undefined);
3620
+ ], BarcodeArInfoAnnotation.prototype, "_anchor", void 0);
3625
3621
  __decorate([
3626
3622
  nameForSerialization('backgroundColor')
3627
- ], BarcodeCheckInfoAnnotation.prototype, "_backgroundColor", undefined);
3623
+ ], BarcodeArInfoAnnotation.prototype, "_backgroundColor", void 0);
3628
3624
  __decorate([
3629
3625
  nameForSerialization('body')
3630
- ], BarcodeCheckInfoAnnotation.prototype, "_body", undefined);
3626
+ ], BarcodeArInfoAnnotation.prototype, "_body", void 0);
3631
3627
  __decorate([
3632
3628
  nameForSerialization('footer')
3633
- ], BarcodeCheckInfoAnnotation.prototype, "_footer", undefined);
3629
+ ], BarcodeArInfoAnnotation.prototype, "_footer", void 0);
3634
3630
  __decorate([
3635
3631
  nameForSerialization('hasTip')
3636
- ], BarcodeCheckInfoAnnotation.prototype, "_hasTip", undefined);
3632
+ ], BarcodeArInfoAnnotation.prototype, "_hasTip", void 0);
3637
3633
  __decorate([
3638
3634
  nameForSerialization('header')
3639
- ], BarcodeCheckInfoAnnotation.prototype, "_header", undefined);
3635
+ ], BarcodeArInfoAnnotation.prototype, "_header", void 0);
3640
3636
  __decorate([
3641
3637
  nameForSerialization('isEntireAnnotationTappable')
3642
- ], BarcodeCheckInfoAnnotation.prototype, "_isEntireAnnotationTappable", undefined);
3638
+ ], BarcodeArInfoAnnotation.prototype, "_isEntireAnnotationTappable", void 0);
3643
3639
  __decorate([
3644
3640
  ignoreFromSerialization
3645
- ], BarcodeCheckInfoAnnotation.prototype, "_listener", undefined);
3641
+ ], BarcodeArInfoAnnotation.prototype, "_listener", void 0);
3646
3642
  __decorate([
3647
3643
  nameForSerialization('hasListener')
3648
- ], BarcodeCheckInfoAnnotation.prototype, "_hasListener", undefined);
3644
+ ], BarcodeArInfoAnnotation.prototype, "_hasListener", void 0);
3649
3645
  __decorate([
3650
3646
  nameForSerialization('width')
3651
- ], BarcodeCheckInfoAnnotation.prototype, "_width", undefined);
3647
+ ], BarcodeArInfoAnnotation.prototype, "_width", void 0);
3652
3648
  __decorate([
3653
3649
  ignoreFromSerialization
3654
- ], BarcodeCheckInfoAnnotation, "barcodeCheckDefaults", null);
3650
+ ], BarcodeArInfoAnnotation, "barcodeArDefaults", null);
3655
3651
 
3656
- class BarcodeCheckInfoAnnotationBodyComponent extends Observable {
3652
+ class BarcodeArInfoAnnotationBodyComponent extends Observable {
3657
3653
  constructor() {
3658
3654
  super(...arguments);
3659
- this._isRightIconTappable = BarcodeCheckInfoAnnotationBodyComponent
3660
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementRightIconTappable;
3661
- this._isLeftIconTappable = BarcodeCheckInfoAnnotationBodyComponent
3662
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementLeftIconTappable;
3663
- this._rightIcon = BarcodeCheckInfoAnnotationBodyComponent
3664
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementRightIcon;
3665
- this._leftIcon = BarcodeCheckInfoAnnotationBodyComponent
3666
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementLeftIcon;
3667
- this._text = BarcodeCheckInfoAnnotationBodyComponent
3668
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementText;
3655
+ this._isRightIconTappable = BarcodeArInfoAnnotationBodyComponent
3656
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementRightIconTappable;
3657
+ this._isLeftIconTappable = BarcodeArInfoAnnotationBodyComponent
3658
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementLeftIconTappable;
3659
+ this._rightIcon = BarcodeArInfoAnnotationBodyComponent
3660
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementRightIcon;
3661
+ this._leftIcon = BarcodeArInfoAnnotationBodyComponent
3662
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementLeftIcon;
3663
+ this._text = BarcodeArInfoAnnotationBodyComponent
3664
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementText;
3669
3665
  this._textAlign = TextAlignment.Center;
3670
- this._textColor = BarcodeCheckInfoAnnotationBodyComponent
3671
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementTextColor;
3672
- this._textSize = BarcodeCheckInfoAnnotationBodyComponent
3673
- .barcodeCheckDefaults.BarcodeCheckView.defaultInfoAnnotationBodyElementTextSize;
3666
+ this._textColor = BarcodeArInfoAnnotationBodyComponent
3667
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextColor;
3668
+ this._textSize = BarcodeArInfoAnnotationBodyComponent
3669
+ .barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextSize;
3674
3670
  this._fontFamily = FontFamily.SystemDefault;
3675
3671
  }
3676
- static get barcodeCheckDefaults() {
3677
- return getBarcodeCheckDefaults();
3672
+ static get barcodeArDefaults() {
3673
+ return getBarcodeArDefaults();
3678
3674
  }
3679
3675
  get isRightIconTappable() {
3680
3676
  return this._isRightIconTappable;
@@ -3742,51 +3738,51 @@ class BarcodeCheckInfoAnnotationBodyComponent extends Observable {
3742
3738
  }
3743
3739
  __decorate([
3744
3740
  nameForSerialization('isRightIconTappable')
3745
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isRightIconTappable", undefined);
3741
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_isRightIconTappable", void 0);
3746
3742
  __decorate([
3747
3743
  nameForSerialization('isLeftIconTappable')
3748
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable", undefined);
3744
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable", void 0);
3749
3745
  __decorate([
3750
3746
  nameForSerialization('rightIcon')
3751
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_rightIcon", undefined);
3747
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_rightIcon", void 0);
3752
3748
  __decorate([
3753
3749
  nameForSerialization('leftIcon')
3754
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_leftIcon", undefined);
3750
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_leftIcon", void 0);
3755
3751
  __decorate([
3756
3752
  nameForSerialization('text')
3757
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_text", undefined);
3753
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_text", void 0);
3758
3754
  __decorate([
3759
3755
  nameForSerialization('textAlign')
3760
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textAlign", undefined);
3756
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_textAlign", void 0);
3761
3757
  __decorate([
3762
3758
  nameForSerialization('textColor')
3763
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textColor", undefined);
3759
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_textColor", void 0);
3764
3760
  __decorate([
3765
3761
  nameForSerialization('textSize')
3766
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textSize", undefined);
3762
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_textSize", void 0);
3767
3763
  __decorate([
3768
3764
  nameForSerialization('fontFamily')
3769
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_fontFamily", undefined);
3765
+ ], BarcodeArInfoAnnotationBodyComponent.prototype, "_fontFamily", void 0);
3770
3766
  __decorate([
3771
3767
  ignoreFromSerialization
3772
- ], BarcodeCheckInfoAnnotationBodyComponent, "barcodeCheckDefaults", null);
3768
+ ], BarcodeArInfoAnnotationBodyComponent, "barcodeArDefaults", null);
3773
3769
 
3774
- class BarcodeCheckInfoAnnotationFooter extends Observable {
3775
- static get barcodeCheckDefaults() {
3776
- return getBarcodeCheckDefaults();
3770
+ class BarcodeArInfoAnnotationFooter extends Observable {
3771
+ static get barcodeArDefaults() {
3772
+ return getBarcodeArDefaults();
3777
3773
  }
3778
3774
  constructor() {
3779
3775
  super();
3780
- this._text = BarcodeCheckInfoAnnotationFooter.barcodeCheckDefaults
3781
- .BarcodeCheckView.defaultInfoAnnotationFooterText;
3782
- this._icon = BarcodeCheckInfoAnnotationFooter.barcodeCheckDefaults
3783
- .BarcodeCheckView.defaultInfoAnnotationFooterIcon;
3784
- this._textSize = BarcodeCheckInfoAnnotationFooter.barcodeCheckDefaults
3785
- .BarcodeCheckView.defaultInfoAnnotationFooterTextSize;
3786
- this._textColor = BarcodeCheckInfoAnnotationFooter.barcodeCheckDefaults
3787
- .BarcodeCheckView.defaultInfoAnnotationFooterTextColor;
3788
- this._backgroundColor = BarcodeCheckInfoAnnotationFooter.barcodeCheckDefaults
3789
- .BarcodeCheckView.defaultInfoAnnotationFooterBackgroundColor;
3776
+ this._text = BarcodeArInfoAnnotationFooter.barcodeArDefaults
3777
+ .BarcodeArView.defaultInfoAnnotationFooterText;
3778
+ this._icon = BarcodeArInfoAnnotationFooter.barcodeArDefaults
3779
+ .BarcodeArView.defaultInfoAnnotationFooterIcon;
3780
+ this._textSize = BarcodeArInfoAnnotationFooter.barcodeArDefaults
3781
+ .BarcodeArView.defaultInfoAnnotationFooterTextSize;
3782
+ this._textColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults
3783
+ .BarcodeArView.defaultInfoAnnotationFooterTextColor;
3784
+ this._backgroundColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults
3785
+ .BarcodeArView.defaultInfoAnnotationFooterBackgroundColor;
3790
3786
  this._fontFamily = FontFamily.SystemDefault;
3791
3787
  }
3792
3788
  get text() {
@@ -3834,42 +3830,42 @@ class BarcodeCheckInfoAnnotationFooter extends Observable {
3834
3830
  }
3835
3831
  __decorate([
3836
3832
  nameForSerialization('text')
3837
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_text", undefined);
3833
+ ], BarcodeArInfoAnnotationFooter.prototype, "_text", void 0);
3838
3834
  __decorate([
3839
3835
  nameForSerialization('icon')
3840
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_icon", undefined);
3836
+ ], BarcodeArInfoAnnotationFooter.prototype, "_icon", void 0);
3841
3837
  __decorate([
3842
3838
  nameForSerialization('textSize')
3843
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_textSize", undefined);
3839
+ ], BarcodeArInfoAnnotationFooter.prototype, "_textSize", void 0);
3844
3840
  __decorate([
3845
3841
  nameForSerialization('textColor')
3846
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_textColor", undefined);
3842
+ ], BarcodeArInfoAnnotationFooter.prototype, "_textColor", void 0);
3847
3843
  __decorate([
3848
3844
  nameForSerialization('backgroundColor')
3849
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_backgroundColor", undefined);
3845
+ ], BarcodeArInfoAnnotationFooter.prototype, "_backgroundColor", void 0);
3850
3846
  __decorate([
3851
3847
  nameForSerialization('fontFamily')
3852
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_fontFamily", undefined);
3848
+ ], BarcodeArInfoAnnotationFooter.prototype, "_fontFamily", void 0);
3853
3849
  __decorate([
3854
3850
  ignoreFromSerialization
3855
- ], BarcodeCheckInfoAnnotationFooter, "barcodeCheckDefaults", null);
3851
+ ], BarcodeArInfoAnnotationFooter, "barcodeArDefaults", null);
3856
3852
 
3857
- class BarcodeCheckInfoAnnotationHeader extends Observable {
3858
- static get barcodeCheckDefaults() {
3859
- return getBarcodeCheckDefaults();
3853
+ class BarcodeArInfoAnnotationHeader extends Observable {
3854
+ static get barcodeArDefaults() {
3855
+ return getBarcodeArDefaults();
3860
3856
  }
3861
3857
  constructor() {
3862
3858
  super();
3863
- this._text = BarcodeCheckInfoAnnotationHeader.barcodeCheckDefaults
3864
- .BarcodeCheckView.defaultInfoAnnotationHeaderText;
3865
- this._icon = BarcodeCheckInfoAnnotationHeader.barcodeCheckDefaults
3866
- .BarcodeCheckView.defaultInfoAnnotationHeaderIcon;
3867
- this._textSize = BarcodeCheckInfoAnnotationHeader.barcodeCheckDefaults
3868
- .BarcodeCheckView.defaultInfoAnnotationHeaderTextSize;
3869
- this._textColor = BarcodeCheckInfoAnnotationHeader.barcodeCheckDefaults
3870
- .BarcodeCheckView.defaultInfoAnnotationHeaderTextColor;
3871
- this._backgroundColor = BarcodeCheckInfoAnnotationHeader.barcodeCheckDefaults
3872
- .BarcodeCheckView.defaultInfoAnnotationHeaderBackgroundColor;
3859
+ this._text = BarcodeArInfoAnnotationHeader.barcodeArDefaults
3860
+ .BarcodeArView.defaultInfoAnnotationHeaderText;
3861
+ this._icon = BarcodeArInfoAnnotationHeader.barcodeArDefaults
3862
+ .BarcodeArView.defaultInfoAnnotationHeaderIcon;
3863
+ this._textSize = BarcodeArInfoAnnotationHeader.barcodeArDefaults
3864
+ .BarcodeArView.defaultInfoAnnotationHeaderTextSize;
3865
+ this._textColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults
3866
+ .BarcodeArView.defaultInfoAnnotationHeaderTextColor;
3867
+ this._backgroundColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults
3868
+ .BarcodeArView.defaultInfoAnnotationHeaderBackgroundColor;
3873
3869
  this._fontFamily = FontFamily.SystemDefault;
3874
3870
  }
3875
3871
  get text() {
@@ -3917,39 +3913,39 @@ class BarcodeCheckInfoAnnotationHeader extends Observable {
3917
3913
  }
3918
3914
  __decorate([
3919
3915
  nameForSerialization('text')
3920
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_text", undefined);
3916
+ ], BarcodeArInfoAnnotationHeader.prototype, "_text", void 0);
3921
3917
  __decorate([
3922
3918
  nameForSerialization('icon')
3923
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_icon", undefined);
3919
+ ], BarcodeArInfoAnnotationHeader.prototype, "_icon", void 0);
3924
3920
  __decorate([
3925
3921
  nameForSerialization('textSize')
3926
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_textSize", undefined);
3922
+ ], BarcodeArInfoAnnotationHeader.prototype, "_textSize", void 0);
3927
3923
  __decorate([
3928
3924
  nameForSerialization('textColor')
3929
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_textColor", undefined);
3925
+ ], BarcodeArInfoAnnotationHeader.prototype, "_textColor", void 0);
3930
3926
  __decorate([
3931
3927
  nameForSerialization('backgroundColor')
3932
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_backgroundColor", undefined);
3928
+ ], BarcodeArInfoAnnotationHeader.prototype, "_backgroundColor", void 0);
3933
3929
  __decorate([
3934
3930
  nameForSerialization('fontFamily')
3935
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_fontFamily", undefined);
3931
+ ], BarcodeArInfoAnnotationHeader.prototype, "_fontFamily", void 0);
3936
3932
  __decorate([
3937
3933
  ignoreFromSerialization
3938
- ], BarcodeCheckInfoAnnotationHeader, "barcodeCheckDefaults", null);
3934
+ ], BarcodeArInfoAnnotationHeader, "barcodeArDefaults", null);
3939
3935
 
3940
- class BarcodeCheckPopoverAnnotation extends Observable {
3941
- static get barcodeCheckDefaults() {
3942
- return getBarcodeCheckDefaults();
3936
+ class BarcodeArPopoverAnnotation extends Observable {
3937
+ static get barcodeArDefaults() {
3938
+ return getBarcodeArDefaults();
3943
3939
  }
3944
3940
  constructor(barcode, buttons) {
3945
3941
  super();
3946
- this._type = 'barcodeCheckPopoverAnnotation';
3947
- this._isEntirePopoverTappable = BarcodeCheckPopoverAnnotation.barcodeCheckDefaults
3948
- .BarcodeCheckView.defaultIsEntirePopoverTappable;
3942
+ this._type = 'barcodeArPopoverAnnotation';
3943
+ this._isEntirePopoverTappable = BarcodeArPopoverAnnotation.barcodeArDefaults
3944
+ .BarcodeArView.defaultIsEntirePopoverTappable;
3949
3945
  this._listener = null;
3950
3946
  this._hasListener = false;
3951
- this._annotationTrigger = BarcodeCheckPopoverAnnotation.barcodeCheckDefaults
3952
- .BarcodeCheckView.defaultInfoAnnotationTrigger;
3947
+ this._annotationTrigger = BarcodeArPopoverAnnotation.barcodeArDefaults
3948
+ .BarcodeArView.defaultInfoAnnotationTrigger;
3953
3949
  this.buttonChangedListener = (property, index) => {
3954
3950
  this.notifyListeners(property, index);
3955
3951
  };
@@ -3957,7 +3953,7 @@ class BarcodeCheckPopoverAnnotation extends Observable {
3957
3953
  this._buttons = buttons;
3958
3954
  for (const button of buttons) {
3959
3955
  button.addListener(() => {
3960
- this.buttonChangedListener('BarcodeCheckPopoverAnnotation.button', buttons.indexOf(button));
3956
+ this.buttonChangedListener('BarcodeArPopoverAnnotation.button', buttons.indexOf(button));
3961
3957
  });
3962
3958
  }
3963
3959
  }
@@ -3992,39 +3988,39 @@ class BarcodeCheckPopoverAnnotation extends Observable {
3992
3988
  }
3993
3989
  __decorate([
3994
3990
  nameForSerialization('type')
3995
- ], BarcodeCheckPopoverAnnotation.prototype, "_type", undefined);
3991
+ ], BarcodeArPopoverAnnotation.prototype, "_type", void 0);
3996
3992
  __decorate([
3997
3993
  nameForSerialization('isEntirePopoverTappable')
3998
- ], BarcodeCheckPopoverAnnotation.prototype, "_isEntirePopoverTappable", undefined);
3994
+ ], BarcodeArPopoverAnnotation.prototype, "_isEntirePopoverTappable", void 0);
3999
3995
  __decorate([
4000
3996
  ignoreFromSerialization
4001
- ], BarcodeCheckPopoverAnnotation.prototype, "_listener", undefined);
3997
+ ], BarcodeArPopoverAnnotation.prototype, "_listener", void 0);
4002
3998
  __decorate([
4003
3999
  nameForSerialization('hasListener')
4004
- ], BarcodeCheckPopoverAnnotation.prototype, "_hasListener", undefined);
4000
+ ], BarcodeArPopoverAnnotation.prototype, "_hasListener", void 0);
4005
4001
  __decorate([
4006
4002
  nameForSerialization('annotationTrigger')
4007
- ], BarcodeCheckPopoverAnnotation.prototype, "_annotationTrigger", undefined);
4003
+ ], BarcodeArPopoverAnnotation.prototype, "_annotationTrigger", void 0);
4008
4004
  __decorate([
4009
4005
  ignoreFromSerialization
4010
- ], BarcodeCheckPopoverAnnotation.prototype, "_barcode", undefined);
4006
+ ], BarcodeArPopoverAnnotation.prototype, "_barcode", void 0);
4011
4007
  __decorate([
4012
4008
  nameForSerialization('buttons')
4013
- ], BarcodeCheckPopoverAnnotation.prototype, "_buttons", undefined);
4009
+ ], BarcodeArPopoverAnnotation.prototype, "_buttons", void 0);
4014
4010
  __decorate([
4015
4011
  ignoreFromSerialization
4016
- ], BarcodeCheckPopoverAnnotation, "barcodeCheckDefaults", null);
4012
+ ], BarcodeArPopoverAnnotation, "barcodeArDefaults", null);
4017
4013
 
4018
- class BarcodeCheckPopoverAnnotationButton extends Observable {
4019
- static get barcodeCheckDefaults() {
4020
- return getBarcodeCheckDefaults();
4014
+ class BarcodeArPopoverAnnotationButton extends Observable {
4015
+ static get barcodeArDefaults() {
4016
+ return getBarcodeArDefaults();
4021
4017
  }
4022
4018
  constructor(icon, text) {
4023
4019
  super();
4024
- this._textColor = BarcodeCheckPopoverAnnotationButton
4025
- .barcodeCheckDefaults.BarcodeCheckView.defaultBarcodeCheckPopoverAnnotationButtonTextColor;
4026
- this._textSize = BarcodeCheckPopoverAnnotationButton
4027
- .barcodeCheckDefaults.BarcodeCheckView.defaultBarcodeCheckPopoverAnnotationButtonTextSize;
4020
+ this._textColor = BarcodeArPopoverAnnotationButton
4021
+ .barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextColor;
4022
+ this._textSize = BarcodeArPopoverAnnotationButton
4023
+ .barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextSize;
4028
4024
  this._fontFamily = FontFamily.SystemDefault;
4029
4025
  this._icon = icon;
4030
4026
  this._text = text;
@@ -4059,34 +4055,34 @@ class BarcodeCheckPopoverAnnotationButton extends Observable {
4059
4055
  }
4060
4056
  __decorate([
4061
4057
  nameForSerialization('textColor')
4062
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_textColor", undefined);
4058
+ ], BarcodeArPopoverAnnotationButton.prototype, "_textColor", void 0);
4063
4059
  __decorate([
4064
4060
  nameForSerialization('textSize')
4065
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_textSize", undefined);
4061
+ ], BarcodeArPopoverAnnotationButton.prototype, "_textSize", void 0);
4066
4062
  __decorate([
4067
4063
  nameForSerialization('fontFamily')
4068
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_fontFamily", undefined);
4064
+ ], BarcodeArPopoverAnnotationButton.prototype, "_fontFamily", void 0);
4069
4065
  __decorate([
4070
4066
  nameForSerialization('icon')
4071
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_icon", undefined);
4067
+ ], BarcodeArPopoverAnnotationButton.prototype, "_icon", void 0);
4072
4068
  __decorate([
4073
4069
  nameForSerialization('text')
4074
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_text", undefined);
4070
+ ], BarcodeArPopoverAnnotationButton.prototype, "_text", void 0);
4075
4071
  __decorate([
4076
4072
  ignoreFromSerialization
4077
- ], BarcodeCheckPopoverAnnotationButton, "barcodeCheckDefaults", null);
4073
+ ], BarcodeArPopoverAnnotationButton, "barcodeArDefaults", null);
4078
4074
 
4079
- class BarcodeCheckRectangleHighlight extends Observable {
4080
- static get barcodeCheckDefaults() {
4081
- return getBarcodeCheckDefaults();
4075
+ class BarcodeArRectangleHighlight extends Observable {
4076
+ static get barcodeArDefaults() {
4077
+ return getBarcodeArDefaults();
4082
4078
  }
4083
4079
  constructor(barcode) {
4084
4080
  super();
4085
- this._type = 'barcodeCheckRectangleHighlight';
4086
- this._brush = BarcodeCheckRectangleHighlight
4087
- .barcodeCheckDefaults.BarcodeCheckView.defaultRectangleHighlightBrush;
4088
- this._icon = BarcodeCheckRectangleHighlight
4089
- .barcodeCheckDefaults.BarcodeCheckView.defaultHighlightIcon;
4081
+ this._type = 'barcodeArRectangleHighlight';
4082
+ this._brush = BarcodeArRectangleHighlight
4083
+ .barcodeArDefaults.BarcodeArView.defaultRectangleHighlightBrush;
4084
+ this._icon = BarcodeArRectangleHighlight
4085
+ .barcodeArDefaults.BarcodeArView.defaultHighlightIcon;
4090
4086
  this._barcode = barcode;
4091
4087
  }
4092
4088
  get barcode() {
@@ -4109,21 +4105,21 @@ class BarcodeCheckRectangleHighlight extends Observable {
4109
4105
  }
4110
4106
  __decorate([
4111
4107
  ignoreFromSerialization
4112
- ], BarcodeCheckRectangleHighlight.prototype, "_barcode", undefined);
4108
+ ], BarcodeArRectangleHighlight.prototype, "_barcode", void 0);
4113
4109
  __decorate([
4114
4110
  nameForSerialization('type')
4115
- ], BarcodeCheckRectangleHighlight.prototype, "_type", undefined);
4111
+ ], BarcodeArRectangleHighlight.prototype, "_type", void 0);
4116
4112
  __decorate([
4117
4113
  nameForSerialization('brush')
4118
- ], BarcodeCheckRectangleHighlight.prototype, "_brush", undefined);
4114
+ ], BarcodeArRectangleHighlight.prototype, "_brush", void 0);
4119
4115
  __decorate([
4120
4116
  nameForSerialization('icon')
4121
- ], BarcodeCheckRectangleHighlight.prototype, "_icon", undefined);
4117
+ ], BarcodeArRectangleHighlight.prototype, "_icon", void 0);
4122
4118
  __decorate([
4123
4119
  ignoreFromSerialization
4124
- ], BarcodeCheckRectangleHighlight, "barcodeCheckDefaults", null);
4120
+ ], BarcodeArRectangleHighlight, "barcodeArDefaults", null);
4125
4121
 
4126
- class BarcodeCheckSettings extends DefaultSerializeable {
4122
+ class BarcodeArSettings extends DefaultSerializeable {
4127
4123
  constructor() {
4128
4124
  super(...arguments);
4129
4125
  this.symbologies = {};
@@ -4138,7 +4134,7 @@ class BarcodeCheckSettings extends DefaultSerializeable {
4138
4134
  }
4139
4135
  settingsForSymbology(symbology) {
4140
4136
  if (!this.symbologies[symbology]) {
4141
- const symbologySettings = BarcodeCheckSettings.barcodeDefaults.SymbologySettings[symbology];
4137
+ const symbologySettings = BarcodeArSettings.barcodeDefaults.SymbologySettings[symbology];
4142
4138
  symbologySettings._symbology = symbology;
4143
4139
  this.symbologies[symbology] = symbologySettings;
4144
4140
  }
@@ -4159,27 +4155,27 @@ class BarcodeCheckSettings extends DefaultSerializeable {
4159
4155
  }
4160
4156
  __decorate([
4161
4157
  ignoreFromSerialization
4162
- ], BarcodeCheckSettings, "barcodeDefaults", null);
4158
+ ], BarcodeArSettings, "barcodeDefaults", null);
4163
4159
 
4164
- class BarcodeCheckStatusIconAnnotation extends Observable {
4165
- static get barcodeCheckDefaults() {
4166
- return getBarcodeCheckDefaults();
4160
+ class BarcodeArStatusIconAnnotation extends Observable {
4161
+ static get barcodeArDefaults() {
4162
+ return getBarcodeArDefaults();
4167
4163
  }
4168
4164
  constructor(barcode) {
4169
4165
  super();
4170
- this._type = 'barcodeCheckStatusIconAnnotation';
4171
- this._hasTip = BarcodeCheckStatusIconAnnotation
4172
- .barcodeCheckDefaults.BarcodeCheckView.defaultStatusIconAnnotationHasTip;
4173
- this._icon = BarcodeCheckStatusIconAnnotation
4174
- .barcodeCheckDefaults.BarcodeCheckView.defaultStatusIconAnnotationIcon;
4175
- this._text = BarcodeCheckStatusIconAnnotation
4176
- .barcodeCheckDefaults.BarcodeCheckView.defaultStatusIconAnnotationText;
4177
- this._textColor = BarcodeCheckStatusIconAnnotation
4178
- .barcodeCheckDefaults.BarcodeCheckView.defaultStatusIconAnnotationTextColor;
4179
- this._backgroundColor = BarcodeCheckStatusIconAnnotation
4180
- .barcodeCheckDefaults.BarcodeCheckView.defaultStatusIconAnnotationBackgroundColor;
4181
- this._annotationTrigger = BarcodeCheckStatusIconAnnotation
4182
- .barcodeCheckDefaults.BarcodeCheckView.defaultStatusIconAnnotationTrigger;
4166
+ this._type = 'barcodeArStatusIconAnnotation';
4167
+ this._hasTip = BarcodeArStatusIconAnnotation
4168
+ .barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationHasTip;
4169
+ this._icon = BarcodeArStatusIconAnnotation
4170
+ .barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationIcon;
4171
+ this._text = BarcodeArStatusIconAnnotation
4172
+ .barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationText;
4173
+ this._textColor = BarcodeArStatusIconAnnotation
4174
+ .barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTextColor;
4175
+ this._backgroundColor = BarcodeArStatusIconAnnotation
4176
+ .barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationBackgroundColor;
4177
+ this._annotationTrigger = BarcodeArStatusIconAnnotation
4178
+ .barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTrigger;
4183
4179
  this._barcode = barcode;
4184
4180
  }
4185
4181
  get barcode() {
@@ -4230,48 +4226,48 @@ class BarcodeCheckStatusIconAnnotation extends Observable {
4230
4226
  }
4231
4227
  __decorate([
4232
4228
  nameForSerialization('type')
4233
- ], BarcodeCheckStatusIconAnnotation.prototype, "_type", undefined);
4229
+ ], BarcodeArStatusIconAnnotation.prototype, "_type", void 0);
4234
4230
  __decorate([
4235
4231
  nameForSerialization('barcode')
4236
- ], BarcodeCheckStatusIconAnnotation.prototype, "_barcode", undefined);
4232
+ ], BarcodeArStatusIconAnnotation.prototype, "_barcode", void 0);
4237
4233
  __decorate([
4238
4234
  nameForSerialization('hasTip')
4239
- ], BarcodeCheckStatusIconAnnotation.prototype, "_hasTip", undefined);
4235
+ ], BarcodeArStatusIconAnnotation.prototype, "_hasTip", void 0);
4240
4236
  __decorate([
4241
4237
  nameForSerialization('icon')
4242
- ], BarcodeCheckStatusIconAnnotation.prototype, "_icon", undefined);
4238
+ ], BarcodeArStatusIconAnnotation.prototype, "_icon", void 0);
4243
4239
  __decorate([
4244
4240
  nameForSerialization('text')
4245
- ], BarcodeCheckStatusIconAnnotation.prototype, "_text", undefined);
4241
+ ], BarcodeArStatusIconAnnotation.prototype, "_text", void 0);
4246
4242
  __decorate([
4247
4243
  nameForSerialization('textColor')
4248
- ], BarcodeCheckStatusIconAnnotation.prototype, "_textColor", undefined);
4244
+ ], BarcodeArStatusIconAnnotation.prototype, "_textColor", void 0);
4249
4245
  __decorate([
4250
4246
  nameForSerialization('backgroundColor')
4251
- ], BarcodeCheckStatusIconAnnotation.prototype, "_backgroundColor", undefined);
4247
+ ], BarcodeArStatusIconAnnotation.prototype, "_backgroundColor", void 0);
4252
4248
  __decorate([
4253
4249
  nameForSerialization('annotationTrigger')
4254
- ], BarcodeCheckStatusIconAnnotation.prototype, "_annotationTrigger", undefined);
4255
- __decorate([
4256
- ignoreFromSerialization
4257
- ], BarcodeCheckStatusIconAnnotation, "barcodeCheckDefaults", null);
4258
-
4259
- var BarcodeCheckViewEvents;
4260
- (function (BarcodeCheckViewEvents) {
4261
- BarcodeCheckViewEvents["didTapHighlightForBarcode"] = "BarcodeCheckViewUiListener.didTapHighlightForBarcode";
4262
- BarcodeCheckViewEvents["highlightForBarcode"] = "BarcodeCheckHighlightProvider.highlightForBarcode";
4263
- BarcodeCheckViewEvents["annotationForBarcode"] = "BarcodeCheckAnnotationProvider.annotationForBarcode";
4264
- BarcodeCheckViewEvents["didTapPopoverEvent"] = "BarcodeCheckPopoverAnnotationListener.didTapPopover";
4265
- BarcodeCheckViewEvents["didTapPopoverButtonEvent"] = "BarcodeCheckPopoverAnnotationListener.didTapPopoverButton";
4266
- BarcodeCheckViewEvents["didTapInfoAnnotationRightIconEvent"] = "BarcodeCheckInfoAnnotationListener.didTapInfoAnnotationRightIcon";
4267
- BarcodeCheckViewEvents["didTapInfoAnnotationLeftIconEvent"] = "BarcodeCheckInfoAnnotationListener.didTapInfoAnnotationLeftIcon";
4268
- BarcodeCheckViewEvents["didTapInfoAnnotationEvent"] = "BarcodeCheckInfoAnnotationListener.didTapInfoAnnotation";
4269
- BarcodeCheckViewEvents["didTapInfoAnnotationHeaderEvent"] = "BarcodeCheckInfoAnnotationListener.didTapInfoAnnotationHeader";
4270
- BarcodeCheckViewEvents["didTapInfoAnnotationFooterEvent"] = "BarcodeCheckInfoAnnotationListener.didTapInfoAnnotationFooter";
4271
- })(BarcodeCheckViewEvents || (BarcodeCheckViewEvents = {}));
4272
- class BarcodeCheckViewController extends BaseController {
4250
+ ], BarcodeArStatusIconAnnotation.prototype, "_annotationTrigger", void 0);
4251
+ __decorate([
4252
+ ignoreFromSerialization
4253
+ ], BarcodeArStatusIconAnnotation, "barcodeArDefaults", null);
4254
+
4255
+ var BarcodeArViewEvents;
4256
+ (function (BarcodeArViewEvents) {
4257
+ BarcodeArViewEvents["didTapHighlightForBarcode"] = "BarcodeArViewUiListener.didTapHighlightForBarcode";
4258
+ BarcodeArViewEvents["highlightForBarcode"] = "BarcodeArHighlightProvider.highlightForBarcode";
4259
+ BarcodeArViewEvents["annotationForBarcode"] = "BarcodeArAnnotationProvider.annotationForBarcode";
4260
+ BarcodeArViewEvents["didTapPopoverEvent"] = "BarcodeArPopoverAnnotationListener.didTapPopover";
4261
+ BarcodeArViewEvents["didTapPopoverButtonEvent"] = "BarcodeArPopoverAnnotationListener.didTapPopoverButton";
4262
+ BarcodeArViewEvents["didTapInfoAnnotationRightIconEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationRightIcon";
4263
+ BarcodeArViewEvents["didTapInfoAnnotationLeftIconEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationLeftIcon";
4264
+ BarcodeArViewEvents["didTapInfoAnnotationEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotation";
4265
+ BarcodeArViewEvents["didTapInfoAnnotationHeaderEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationHeader";
4266
+ BarcodeArViewEvents["didTapInfoAnnotationFooterEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationFooter";
4267
+ })(BarcodeArViewEvents || (BarcodeArViewEvents = {}));
4268
+ class BarcodeArViewController extends BaseController {
4273
4269
  constructor() {
4274
- super('BarcodeCheckViewProxy');
4270
+ super('BarcodeArViewProxy');
4275
4271
  this.autoCreateNativeView = true;
4276
4272
  this.isListenerEnabled = false;
4277
4273
  this.highlightCache = {};
@@ -4284,13 +4280,13 @@ class BarcodeCheckViewController extends BaseController {
4284
4280
  this.setAnnotationProvider(null);
4285
4281
  this.setUiListener(null);
4286
4282
  }
4287
- static forBarcodeCheckView(barcodeCheck, baseView, autoCreateNativeView = true) {
4288
- const viewController = new BarcodeCheckViewController();
4283
+ static forBarcodeArView(barcodeAr, baseView, autoCreateNativeView = true) {
4284
+ const viewController = new BarcodeArViewController();
4289
4285
  viewController.baseView = baseView;
4290
4286
  viewController.autoCreateNativeView = autoCreateNativeView;
4291
- viewController.barcodeCheck = barcodeCheck;
4287
+ viewController.barcodeAr = barcodeAr;
4292
4288
  viewController.initialize();
4293
- if (baseView.barcodeCheckViewUiListener) {
4289
+ if (baseView.barcodeArViewUiListener) {
4294
4290
  viewController.subscribeForUiListenerEvents();
4295
4291
  }
4296
4292
  if (baseView.annotationProvider) {
@@ -4302,7 +4298,7 @@ class BarcodeCheckViewController extends BaseController {
4302
4298
  return viewController;
4303
4299
  }
4304
4300
  initialize() {
4305
- return __awaiter(this, undefined, undefined, function* () {
4301
+ return __awaiter(this, void 0, void 0, function* () {
4306
4302
  yield this.baseView.context.update();
4307
4303
  if (this.autoCreateNativeView) {
4308
4304
  yield this.createView();
@@ -4310,22 +4306,22 @@ class BarcodeCheckViewController extends BaseController {
4310
4306
  });
4311
4307
  }
4312
4308
  createView() {
4313
- return __awaiter(this, undefined, undefined, function* () {
4314
- const barcodeCheckView = this.baseView.toJSON();
4315
- const json = JSON.stringify(barcodeCheckView);
4309
+ return __awaiter(this, void 0, void 0, function* () {
4310
+ const barcodeArView = this.baseView.toJSON();
4311
+ const json = JSON.stringify(barcodeArView);
4316
4312
  return this._proxy.createView(this.baseView.nativeView, json);
4317
4313
  });
4318
4314
  }
4319
4315
  subscribeForUiListenerEvents() {
4320
4316
  this.unsubscribeForUiListenerEvents();
4321
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapHighlightForBarcode, (data) => {
4317
+ this.eventEmitter.on(BarcodeArViewEvents.didTapHighlightForBarcode, (data) => {
4322
4318
  var _a, _b;
4323
- if (!this.baseView.barcodeCheckViewUiListener) {
4319
+ if (!this.baseView.barcodeArViewUiListener) {
4324
4320
  return;
4325
4321
  }
4326
4322
  const payload = EventDataParser.parse(data);
4327
4323
  if (payload === null) {
4328
- console.error('BarcodeCheckViewController didTapHighlightForBarcode payload is null');
4324
+ console.error('BarcodeArViewController didTapHighlightForBarcode payload is null');
4329
4325
  return;
4330
4326
  }
4331
4327
  const barcodeJson = JSON.parse(payload.barcode);
@@ -4334,31 +4330,31 @@ class BarcodeCheckViewController extends BaseController {
4334
4330
  if (!highlight) {
4335
4331
  return;
4336
4332
  }
4337
- (_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.barcodeCheckViewUiListener) === null || _b === undefined ? undefined : _b.didTapHighlightForBarcode(this.barcodeCheck, barcode, highlight);
4333
+ (_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.barcodeArViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapHighlightForBarcode(this.barcodeAr, barcode, highlight);
4338
4334
  });
4339
4335
  this._proxy.subscribeViewListeners();
4340
4336
  }
4341
4337
  unsubscribeForUiListenerEvents() {
4342
4338
  this._proxy.unsubscribeViewListeners();
4343
- this.eventEmitter.off(BarcodeCheckViewEvents.didTapHighlightForBarcode);
4339
+ this.eventEmitter.off(BarcodeArViewEvents.didTapHighlightForBarcode);
4344
4340
  }
4345
4341
  subscribeForAnnotationProviderEvents() {
4346
4342
  this.unsubscribeForAnnotationProviderEvents();
4347
- this.eventEmitter.on(BarcodeCheckViewEvents.annotationForBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
4343
+ this.eventEmitter.on(BarcodeArViewEvents.annotationForBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
4348
4344
  var _a, _b;
4349
4345
  const payload = EventDataParser.parse(data);
4350
4346
  if (payload === null) {
4351
- console.error('BarcodeCheckViewController annotationForBarcode payload is null');
4347
+ console.error('BarcodeArViewController annotationForBarcode payload is null');
4352
4348
  return;
4353
4349
  }
4354
4350
  const barcodeJson = JSON.parse(payload.barcode);
4355
4351
  const barcode = Barcode.fromJSON(barcodeJson);
4356
4352
  barcode.barcodeId = payload.barcodeId;
4357
- const annotation = yield ((_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.annotationProvider) === null || _b === undefined ? undefined : _b.annotationForBarcode(barcode));
4353
+ const annotation = yield ((_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.annotationProvider) === null || _b === void 0 ? void 0 : _b.annotationForBarcode(barcode));
4358
4354
  if (annotation) {
4359
4355
  this.annotationsCache[payload.barcodeId] = annotation;
4360
4356
  annotation.addListener((property, value) => {
4361
- if (property === 'BarcodeCheckPopoverAnnotation.button') {
4357
+ if (property === 'BarcodeArPopoverAnnotation.button') {
4362
4358
  const popover = annotation;
4363
4359
  const button = popover.buttons[value];
4364
4360
  const buttonJson = button.toJSON();
@@ -4377,28 +4373,28 @@ class BarcodeCheckViewController extends BaseController {
4377
4373
  }
4378
4374
  const result = {
4379
4375
  barcodeId: payload.barcodeId,
4380
- annotation: annotation === null || annotation === undefined ? undefined : annotation.toJSON()
4376
+ annotation: annotation === null || annotation === void 0 ? void 0 : annotation.toJSON()
4381
4377
  };
4382
4378
  this._proxy.finishAnnotationForBarcode(JSON.stringify(result));
4383
4379
  }));
4384
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4380
+ this.eventEmitter.on(BarcodeArViewEvents.didTapPopoverEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4385
4381
  var _a, _b;
4386
4382
  const payload = EventDataParser.parse(data);
4387
4383
  if (payload === null) {
4388
- console.error('BarcodeCheckViewController didTapPopoverEvent payload is null');
4384
+ console.error('BarcodeArViewController didTapPopoverEvent payload is null');
4389
4385
  return;
4390
4386
  }
4391
4387
  const popover = this.annotationsCache[payload.barcodeId];
4392
4388
  if (!popover) {
4393
4389
  return;
4394
4390
  }
4395
- (_b = (_a = popover.listener) === null || _a === undefined ? undefined : _a.didTap) === null || _b === undefined ? undefined : _b.call(_a, popover);
4391
+ (_b = (_a = popover.listener) === null || _a === void 0 ? void 0 : _a.didTap) === null || _b === void 0 ? void 0 : _b.call(_a, popover);
4396
4392
  }));
4397
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4393
+ this.eventEmitter.on(BarcodeArViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4398
4394
  var _a, _b;
4399
4395
  const payload = EventDataParser.parse(data);
4400
4396
  if (payload === null) {
4401
- console.error('BarcodeCheckViewController didTapPopoverButtonEvent payload is null');
4397
+ console.error('BarcodeArViewController didTapPopoverButtonEvent payload is null');
4402
4398
  return;
4403
4399
  }
4404
4400
  const popover = this.annotationsCache[payload.barcodeId];
@@ -4406,13 +4402,13 @@ class BarcodeCheckViewController extends BaseController {
4406
4402
  return;
4407
4403
  }
4408
4404
  const button = popover.buttons[payload.index];
4409
- (_b = (_a = popover.listener) === null || _a === undefined ? undefined : _a.didTapButton) === null || _b === undefined ? undefined : _b.call(_a, popover, button, payload.index);
4405
+ (_b = (_a = popover.listener) === null || _a === void 0 ? void 0 : _a.didTapButton) === null || _b === void 0 ? void 0 : _b.call(_a, popover, button, payload.index);
4410
4406
  }));
4411
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4407
+ this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4412
4408
  var _a, _b;
4413
4409
  const payload = EventDataParser.parse(data);
4414
4410
  if (payload === null) {
4415
- console.error('BarcodeCheckViewController didTapInfoAnnotationRightIconEvent payload is null');
4411
+ console.error('BarcodeArViewController didTapInfoAnnotationRightIconEvent payload is null');
4416
4412
  return;
4417
4413
  }
4418
4414
  const infoAnnotation = this.annotationsCache[payload.barcodeId];
@@ -4420,13 +4416,13 @@ class BarcodeCheckViewController extends BaseController {
4420
4416
  return;
4421
4417
  }
4422
4418
  const component = infoAnnotation.body[payload.componentIndex];
4423
- (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapRightIcon) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation, component, payload.componentIndex);
4419
+ (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapRightIcon) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation, component, payload.componentIndex);
4424
4420
  }));
4425
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4421
+ this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4426
4422
  var _a, _b;
4427
4423
  const payload = EventDataParser.parse(data);
4428
4424
  if (payload === null) {
4429
- console.error('BarcodeCheckViewController didTapInfoAnnotationLeftIconEvent payload is null');
4425
+ console.error('BarcodeArViewController didTapInfoAnnotationLeftIconEvent payload is null');
4430
4426
  return;
4431
4427
  }
4432
4428
  const infoAnnotation = this.annotationsCache[payload.barcodeId];
@@ -4434,66 +4430,66 @@ class BarcodeCheckViewController extends BaseController {
4434
4430
  return;
4435
4431
  }
4436
4432
  const component = infoAnnotation.body[payload.componentIndex];
4437
- (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapLeftIcon) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation, component, payload.componentIndex);
4433
+ (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapLeftIcon) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation, component, payload.componentIndex);
4438
4434
  }));
4439
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4435
+ this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4440
4436
  var _a, _b;
4441
4437
  const payload = EventDataParser.parse(data);
4442
4438
  if (payload === null) {
4443
- console.error('BarcodeCheckViewController didTapInfoAnnotationEvent payload is null');
4439
+ console.error('BarcodeArViewController didTapInfoAnnotationEvent payload is null');
4444
4440
  return;
4445
4441
  }
4446
4442
  const infoAnnotation = this.annotationsCache[payload.barcodeId];
4447
4443
  if (infoAnnotation == null) {
4448
4444
  return;
4449
4445
  }
4450
- (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTap) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
4446
+ (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTap) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
4451
4447
  }));
4452
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4448
+ this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4453
4449
  var _a, _b;
4454
4450
  const payload = EventDataParser.parse(data);
4455
4451
  if (payload === null) {
4456
- console.error('BarcodeCheckViewController didTapInfoAnnotationHeaderEvent payload is null');
4452
+ console.error('BarcodeArViewController didTapInfoAnnotationHeaderEvent payload is null');
4457
4453
  return;
4458
4454
  }
4459
4455
  const infoAnnotation = this.annotationsCache[payload.barcodeId];
4460
4456
  if (infoAnnotation == null) {
4461
4457
  return;
4462
4458
  }
4463
- (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapHeader) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
4459
+ (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapHeader) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
4464
4460
  }));
4465
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4461
+ this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4466
4462
  var _a, _b;
4467
4463
  const payload = EventDataParser.parse(data);
4468
4464
  if (payload === null) {
4469
- console.error('BarcodeCheckViewController didTapInfoAnnotationFooterEvent payload is null');
4465
+ console.error('BarcodeArViewController didTapInfoAnnotationFooterEvent payload is null');
4470
4466
  return;
4471
4467
  }
4472
4468
  const infoAnnotation = this.annotationsCache[payload.barcodeId];
4473
4469
  if (infoAnnotation == null) {
4474
4470
  return;
4475
4471
  }
4476
- (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapFooter) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
4472
+ (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapFooter) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
4477
4473
  }));
4478
4474
  this._proxy.subscribeToAnnotationProviderEvents();
4479
4475
  }
4480
4476
  unsubscribeForAnnotationProviderEvents() {
4481
4477
  this._proxy.unsubscribeFromAnnotationProviderEvents();
4482
- this.eventEmitter.off(BarcodeCheckViewEvents.annotationForBarcode);
4478
+ this.eventEmitter.off(BarcodeArViewEvents.annotationForBarcode);
4483
4479
  }
4484
4480
  subscribeForHighlightProviderEvents() {
4485
4481
  this.unsubscribeForHighlightProviderEvents();
4486
- this.eventEmitter.on(BarcodeCheckViewEvents.highlightForBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
4482
+ this.eventEmitter.on(BarcodeArViewEvents.highlightForBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
4487
4483
  var _a, _b;
4488
4484
  const payload = EventDataParser.parse(data);
4489
4485
  if (payload === null) {
4490
- console.error('BarcodeCheckViewController highlightForBarcode payload is null');
4486
+ console.error('BarcodeArViewController highlightForBarcode payload is null');
4491
4487
  return;
4492
4488
  }
4493
4489
  const barcodeJson = JSON.parse(payload.barcode);
4494
4490
  const barcode = Barcode.fromJSON(barcodeJson);
4495
4491
  barcode.barcodeId = payload.barcodeId;
4496
- const highlight = yield ((_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.highlightProvider) === null || _b === undefined ? undefined : _b.highlightForBarcode(barcode));
4492
+ const highlight = yield ((_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.highlightProvider) === null || _b === void 0 ? void 0 : _b.highlightForBarcode(barcode));
4497
4493
  if (highlight) {
4498
4494
  this.highlightCache[payload.barcodeId] = highlight;
4499
4495
  highlight.addListener(() => {
@@ -4504,7 +4500,7 @@ class BarcodeCheckViewController extends BaseController {
4504
4500
  }
4505
4501
  const result = {
4506
4502
  barcodeId: payload.barcodeId,
4507
- highlight: highlight === null || highlight === undefined ? undefined : highlight.toJSON()
4503
+ highlight: highlight === null || highlight === void 0 ? void 0 : highlight.toJSON()
4508
4504
  };
4509
4505
  this._proxy.finishHighlightForBarcode(JSON.stringify(result));
4510
4506
  }));
@@ -4512,10 +4508,10 @@ class BarcodeCheckViewController extends BaseController {
4512
4508
  }
4513
4509
  unsubscribeForHighlightProviderEvents() {
4514
4510
  this._proxy.unsubscribeFromHighlightProviderEvents();
4515
- this.eventEmitter.off(BarcodeCheckViewEvents.highlightForBarcode);
4511
+ this.eventEmitter.off(BarcodeArViewEvents.highlightForBarcode);
4516
4512
  }
4517
4513
  setUiListener(listener) {
4518
- return __awaiter(this, undefined, undefined, function* () {
4514
+ return __awaiter(this, void 0, void 0, function* () {
4519
4515
  if (listener && !this.isListenerEnabled) {
4520
4516
  this.isListenerEnabled = true;
4521
4517
  this.subscribeForUiListenerEvents();
@@ -4527,25 +4523,25 @@ class BarcodeCheckViewController extends BaseController {
4527
4523
  });
4528
4524
  }
4529
4525
  setAnnotationProvider(provider) {
4530
- return __awaiter(this, undefined, undefined, function* () {
4526
+ return __awaiter(this, void 0, void 0, function* () {
4531
4527
  if (provider != null) {
4532
- yield this._proxy.registerBarcodeCheckAnnotationProvider();
4528
+ yield this._proxy.registerBarcodeArAnnotationProvider();
4533
4529
  this.subscribeForAnnotationProviderEvents();
4534
4530
  }
4535
4531
  else {
4536
- yield this._proxy.unregisterBarcodeCheckAnnotationProvider();
4532
+ yield this._proxy.unregisterBarcodeArAnnotationProvider();
4537
4533
  this.unsubscribeForAnnotationProviderEvents();
4538
4534
  }
4539
4535
  });
4540
4536
  }
4541
4537
  setHighlightProvider(provider) {
4542
- return __awaiter(this, undefined, undefined, function* () {
4538
+ return __awaiter(this, void 0, void 0, function* () {
4543
4539
  if (provider != null) {
4544
- yield this._proxy.registerBarcodeCheckHighlightProvider();
4540
+ yield this._proxy.registerBarcodeArHighlightProvider();
4545
4541
  this.subscribeForHighlightProviderEvents();
4546
4542
  }
4547
4543
  else {
4548
- yield this._proxy.unregisterBarcodeCheckHighlightProvider();
4544
+ yield this._proxy.unregisterBarcodeArHighlightProvider();
4549
4545
  this.unsubscribeForHighlightProviderEvents();
4550
4546
  }
4551
4547
  });
@@ -4566,71 +4562,71 @@ class BarcodeCheckViewController extends BaseController {
4566
4562
  return this._proxy.pause();
4567
4563
  }
4568
4564
  update() {
4569
- const barcodeCheckView = this.baseView.toJSON().View;
4570
- const json = JSON.stringify(barcodeCheckView);
4565
+ const barcodeArView = this.baseView.toJSON().View;
4566
+ const json = JSON.stringify(barcodeArView);
4571
4567
  return this._proxy.update(json);
4572
4568
  }
4573
4569
  reset() {
4574
4570
  this.highlightCache = {};
4575
4571
  this.annotationsCache = {};
4576
- return this._proxy.barcodeCheckViewReset();
4572
+ return this._proxy.barcodeArViewReset();
4577
4573
  }
4578
4574
  }
4579
4575
  __decorate([
4580
4576
  ignoreFromSerialization
4581
- ], BarcodeCheckViewController.prototype, "autoCreateNativeView", undefined);
4577
+ ], BarcodeArViewController.prototype, "autoCreateNativeView", void 0);
4582
4578
  __decorate([
4583
4579
  ignoreFromSerialization
4584
- ], BarcodeCheckViewController.prototype, "highlightCache", undefined);
4580
+ ], BarcodeArViewController.prototype, "highlightCache", void 0);
4585
4581
  __decorate([
4586
4582
  ignoreFromSerialization
4587
- ], BarcodeCheckViewController.prototype, "annotationsCache", undefined);
4583
+ ], BarcodeArViewController.prototype, "annotationsCache", void 0);
4588
4584
 
4589
- class BaseBarcodeCheckView extends DefaultSerializeable {
4590
- static get barcodeCheckDefaults() {
4591
- return getBarcodeCheckDefaults();
4585
+ class BaseBarcodeArView extends DefaultSerializeable {
4586
+ static get barcodeArDefaults() {
4587
+ return getBarcodeArDefaults();
4592
4588
  }
4593
- constructor(context, barcodeCheck, nativeView = null, barcodeCheckViewSettings, cameraSettings, annotationProvider, highlightProvider, uiListener, autoCreateNativeView = true) {
4589
+ constructor(context, barcodeAr, nativeView = null, barcodeArViewSettings, cameraSettings, annotationProvider, highlightProvider, uiListener, autoCreateNativeView = true) {
4594
4590
  super();
4595
4591
  this._autoCreateNativeView = true;
4596
4592
  this._annotationProvider = null;
4597
- this._barcodeCheckViewUiListener = null;
4593
+ this._barcodeArViewUiListener = null;
4598
4594
  this._highlightProvider = null;
4599
4595
  this.nativeView = null;
4600
4596
  this._isStarted = false;
4601
4597
  this._shouldShowMacroControl = false;
4602
- this._macroModeControlPosition = BaseBarcodeCheckView
4603
- .barcodeCheckDefaults.BarcodeCheckView.defaultCameraSwitchControlPosition;
4598
+ this._macroModeControlPosition = BaseBarcodeArView
4599
+ .barcodeArDefaults.BarcodeArView.defaultCameraSwitchControlPosition;
4604
4600
  this._shouldShowTorchControl = false;
4605
- this._torchControlPosition = BaseBarcodeCheckView
4606
- .barcodeCheckDefaults.BarcodeCheckView.defaultTorchControlPosition;
4607
- this._shouldShowZoomControl = BaseBarcodeCheckView
4608
- .barcodeCheckDefaults.BarcodeCheckView.defaultShouldShowZoomControl;
4609
- this._zoomControlPosition = BaseBarcodeCheckView
4610
- .barcodeCheckDefaults.BarcodeCheckView.defaultZoomControlPosition;
4601
+ this._torchControlPosition = BaseBarcodeArView
4602
+ .barcodeArDefaults.BarcodeArView.defaultTorchControlPosition;
4603
+ this._shouldShowZoomControl = BaseBarcodeArView
4604
+ .barcodeArDefaults.BarcodeArView.defaultShouldShowZoomControl;
4605
+ this._zoomControlPosition = BaseBarcodeArView
4606
+ .barcodeArDefaults.BarcodeArView.defaultZoomControlPosition;
4611
4607
  this._dataCaptureContext = context;
4612
- this._barcodeCheck = barcodeCheck;
4613
- this._barcodeCheckViewSettings = barcodeCheckViewSettings;
4608
+ this._barcodeAr = barcodeAr;
4609
+ this._barcodeArViewSettings = barcodeArViewSettings;
4614
4610
  this._cameraSettings = cameraSettings;
4615
4611
  this._autoCreateNativeView = autoCreateNativeView;
4616
- this._annotationProvider = annotationProvider !== null && annotationProvider !== undefined ? annotationProvider : null;
4617
- this._highlightProvider = highlightProvider !== null && highlightProvider !== undefined ? highlightProvider : null;
4618
- this._barcodeCheckViewUiListener = uiListener !== null && uiListener !== undefined ? uiListener : null;
4612
+ this._annotationProvider = annotationProvider !== null && annotationProvider !== void 0 ? annotationProvider : null;
4613
+ this._highlightProvider = highlightProvider !== null && highlightProvider !== void 0 ? highlightProvider : null;
4614
+ this._barcodeArViewUiListener = uiListener !== null && uiListener !== void 0 ? uiListener : null;
4619
4615
  this.nativeView = nativeView;
4620
- this.controller = BarcodeCheckViewController.forBarcodeCheckView(this._barcodeCheck, this, this._autoCreateNativeView);
4616
+ this.controller = BarcodeArViewController.forBarcodeArView(this._barcodeAr, this, this._autoCreateNativeView);
4621
4617
  }
4622
4618
  dispose() {
4623
4619
  this.controller.dispose();
4624
- this._barcodeCheck.unsubscribeNativeListeners();
4620
+ this._barcodeAr.unsubscribeNativeListeners();
4625
4621
  }
4626
4622
  updateNative() {
4627
4623
  return this.controller.update();
4628
4624
  }
4629
- get barcodeCheckViewUiListener() {
4630
- return this._barcodeCheckViewUiListener;
4625
+ get barcodeArViewUiListener() {
4626
+ return this._barcodeArViewUiListener;
4631
4627
  }
4632
- set barcodeCheckViewUiListener(value) {
4633
- this._barcodeCheckViewUiListener = value;
4628
+ set barcodeArViewUiListener(value) {
4629
+ this._barcodeArViewUiListener = value;
4634
4630
  this.controller.setUiListener(value);
4635
4631
  }
4636
4632
  get annotationProvider() {
@@ -4724,7 +4720,7 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
4724
4720
  toJSON() {
4725
4721
  const json = {
4726
4722
  View: {
4727
- barcodeCheckViewSettings: this._barcodeCheckViewSettings,
4723
+ barcodeArViewSettings: this._barcodeArViewSettings,
4728
4724
  cameraSettings: this._cameraSettings,
4729
4725
  shouldShowMacroControl: this._shouldShowMacroControl,
4730
4726
  macroModeControlPosition: this._macroModeControlPosition,
@@ -4733,82 +4729,82 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
4733
4729
  shouldShowZoomControl: this._shouldShowZoomControl,
4734
4730
  zoomControlPosition: this._zoomControlPosition,
4735
4731
  annotationProvider: this._annotationProvider,
4736
- barcodeCheckViewUiListener: this._barcodeCheckViewUiListener,
4732
+ barcodeArViewUiListener: this._barcodeArViewUiListener,
4737
4733
  highlightProvider: this._highlightProvider,
4738
4734
  isStarted: this._isStarted,
4739
- hasUiListener: this._barcodeCheckViewUiListener != null,
4735
+ hasUiListener: this._barcodeArViewUiListener != null,
4740
4736
  hasHighlightProvider: this._highlightProvider != null,
4741
4737
  hasAnnotationProvider: this._annotationProvider != null,
4742
4738
  },
4743
- BarcodeCheck: this._barcodeCheck.toJSON(),
4739
+ BarcodeAr: this._barcodeAr.toJSON(),
4744
4740
  };
4745
4741
  return json;
4746
4742
  }
4747
4743
  }
4748
4744
  __decorate([
4749
4745
  ignoreFromSerialization
4750
- ], BaseBarcodeCheckView.prototype, "_autoCreateNativeView", undefined);
4746
+ ], BaseBarcodeArView.prototype, "_autoCreateNativeView", void 0);
4751
4747
  __decorate([
4752
4748
  ignoreFromSerialization
4753
- ], BaseBarcodeCheckView.prototype, "_annotationProvider", undefined);
4749
+ ], BaseBarcodeArView.prototype, "_annotationProvider", void 0);
4754
4750
  __decorate([
4755
4751
  ignoreFromSerialization
4756
- ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewUiListener", undefined);
4752
+ ], BaseBarcodeArView.prototype, "_barcodeArViewUiListener", void 0);
4757
4753
  __decorate([
4758
4754
  ignoreFromSerialization
4759
- ], BaseBarcodeCheckView.prototype, "_highlightProvider", undefined);
4755
+ ], BaseBarcodeArView.prototype, "_highlightProvider", void 0);
4760
4756
  __decorate([
4761
4757
  ignoreFromSerialization
4762
- ], BaseBarcodeCheckView.prototype, "nativeView", undefined);
4758
+ ], BaseBarcodeArView.prototype, "nativeView", void 0);
4763
4759
  __decorate([
4764
- nameForSerialization('barcodeCheck')
4765
- ], BaseBarcodeCheckView.prototype, "_barcodeCheck", undefined);
4760
+ nameForSerialization('barcodeAr')
4761
+ ], BaseBarcodeArView.prototype, "_barcodeAr", void 0);
4766
4762
  __decorate([
4767
4763
  nameForSerialization('isStarted')
4768
- ], BaseBarcodeCheckView.prototype, "_isStarted", undefined);
4764
+ ], BaseBarcodeArView.prototype, "_isStarted", void 0);
4769
4765
  __decorate([
4770
4766
  nameForSerialization('viewSettings')
4771
- ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewSettings", undefined);
4767
+ ], BaseBarcodeArView.prototype, "_barcodeArViewSettings", void 0);
4772
4768
  __decorate([
4773
4769
  nameForSerialization('cameraSettings')
4774
- ], BaseBarcodeCheckView.prototype, "_cameraSettings", undefined);
4770
+ ], BaseBarcodeArView.prototype, "_cameraSettings", void 0);
4775
4771
  __decorate([
4776
4772
  nameForSerialization('dataCaptureContext')
4777
- ], BaseBarcodeCheckView.prototype, "_dataCaptureContext", undefined);
4773
+ ], BaseBarcodeArView.prototype, "_dataCaptureContext", void 0);
4778
4774
  __decorate([
4779
4775
  nameForSerialization('shouldShowMacroControl')
4780
- ], BaseBarcodeCheckView.prototype, "_shouldShowMacroControl", undefined);
4776
+ ], BaseBarcodeArView.prototype, "_shouldShowMacroControl", void 0);
4781
4777
  __decorate([
4782
4778
  nameForSerialization('macroModeControlPosition')
4783
- ], BaseBarcodeCheckView.prototype, "_macroModeControlPosition", undefined);
4779
+ ], BaseBarcodeArView.prototype, "_macroModeControlPosition", void 0);
4784
4780
  __decorate([
4785
4781
  nameForSerialization('shouldShowTorchControl')
4786
- ], BaseBarcodeCheckView.prototype, "_shouldShowTorchControl", undefined);
4782
+ ], BaseBarcodeArView.prototype, "_shouldShowTorchControl", void 0);
4787
4783
  __decorate([
4788
4784
  nameForSerialization('torchControlPosition')
4789
- ], BaseBarcodeCheckView.prototype, "_torchControlPosition", undefined);
4785
+ ], BaseBarcodeArView.prototype, "_torchControlPosition", void 0);
4790
4786
  __decorate([
4791
4787
  nameForSerialization('shouldShowZoomControl')
4792
- ], BaseBarcodeCheckView.prototype, "_shouldShowZoomControl", undefined);
4788
+ ], BaseBarcodeArView.prototype, "_shouldShowZoomControl", void 0);
4793
4789
  __decorate([
4794
4790
  nameForSerialization('zoomControlPosition')
4795
- ], BaseBarcodeCheckView.prototype, "_zoomControlPosition", undefined);
4791
+ ], BaseBarcodeArView.prototype, "_zoomControlPosition", void 0);
4796
4792
  __decorate([
4797
4793
  ignoreFromSerialization
4798
- ], BaseBarcodeCheckView, "barcodeCheckDefaults", null);
4794
+ ], BaseBarcodeArView, "barcodeArDefaults", null);
4799
4795
 
4800
- class BarcodeCheckViewSettings extends DefaultSerializeable {
4801
- static get barcodeCheckDefaults() {
4802
- return getBarcodeCheckDefaults();
4796
+ class BarcodeArViewSettings extends DefaultSerializeable {
4797
+ static get barcodeArDefaults() {
4798
+ return getBarcodeArDefaults();
4803
4799
  }
4804
4800
  constructor() {
4805
4801
  super();
4806
- this._soundEnabled = BarcodeCheckViewSettings
4807
- .barcodeCheckDefaults.BarcodeCheckView.defaultSoundEnabled;
4808
- this._hapticEnabled = BarcodeCheckViewSettings
4809
- .barcodeCheckDefaults.BarcodeCheckView.defaultHapticsEnabled;
4810
- this._defaultCameraPosition = BarcodeCheckViewSettings
4811
- .barcodeCheckDefaults.BarcodeCheckView.defaultCameraPosition;
4802
+ this._soundEnabled = BarcodeArViewSettings
4803
+ .barcodeArDefaults.BarcodeArView.defaultSoundEnabled;
4804
+ this._hapticEnabled = BarcodeArViewSettings
4805
+ .barcodeArDefaults.BarcodeArView.defaultHapticsEnabled;
4806
+ this._defaultCameraPosition = BarcodeArViewSettings
4807
+ .barcodeArDefaults.BarcodeArView.defaultCameraPosition;
4812
4808
  }
4813
4809
  get soundEnabled() {
4814
4810
  return this._soundEnabled;
@@ -4831,43 +4827,43 @@ class BarcodeCheckViewSettings extends DefaultSerializeable {
4831
4827
  }
4832
4828
  __decorate([
4833
4829
  nameForSerialization("soundEnabled")
4834
- ], BarcodeCheckViewSettings.prototype, "_soundEnabled", undefined);
4830
+ ], BarcodeArViewSettings.prototype, "_soundEnabled", void 0);
4835
4831
  __decorate([
4836
4832
  nameForSerialization("hapticEnabled")
4837
- ], BarcodeCheckViewSettings.prototype, "_hapticEnabled", undefined);
4833
+ ], BarcodeArViewSettings.prototype, "_hapticEnabled", void 0);
4838
4834
  __decorate([
4839
4835
  nameForSerialization("defaultCameraPosition")
4840
- ], BarcodeCheckViewSettings.prototype, "_defaultCameraPosition", undefined);
4841
- __decorate([
4842
- ignoreFromSerialization
4843
- ], BarcodeCheckViewSettings, "barcodeCheckDefaults", null);
4844
-
4845
- var BarcodeCheckAnnotationTrigger;
4846
- (function (BarcodeCheckAnnotationTrigger) {
4847
- BarcodeCheckAnnotationTrigger["HighlightTap"] = "highlightTap";
4848
- BarcodeCheckAnnotationTrigger["HighlightTapAndBarcodeScan"] = "highlightTapAndBarcodeScan";
4849
- })(BarcodeCheckAnnotationTrigger || (BarcodeCheckAnnotationTrigger = {}));
4850
-
4851
- var BarcodeCheckCircleHighlightPreset;
4852
- (function (BarcodeCheckCircleHighlightPreset) {
4853
- BarcodeCheckCircleHighlightPreset["Dot"] = "dot";
4854
- BarcodeCheckCircleHighlightPreset["Icon"] = "icon";
4855
- })(BarcodeCheckCircleHighlightPreset || (BarcodeCheckCircleHighlightPreset = {}));
4856
-
4857
- var BarcodeCheckInfoAnnotationAnchor;
4858
- (function (BarcodeCheckInfoAnnotationAnchor) {
4859
- BarcodeCheckInfoAnnotationAnchor["Top"] = "top";
4860
- BarcodeCheckInfoAnnotationAnchor["Bottom"] = "bottom";
4861
- BarcodeCheckInfoAnnotationAnchor["Left"] = "left";
4862
- BarcodeCheckInfoAnnotationAnchor["Right"] = "right";
4863
- })(BarcodeCheckInfoAnnotationAnchor || (BarcodeCheckInfoAnnotationAnchor = {}));
4864
-
4865
- var BarcodeCheckInfoAnnotationWidthPreset;
4866
- (function (BarcodeCheckInfoAnnotationWidthPreset) {
4867
- BarcodeCheckInfoAnnotationWidthPreset["Small"] = "small";
4868
- BarcodeCheckInfoAnnotationWidthPreset["Medium"] = "medium";
4869
- BarcodeCheckInfoAnnotationWidthPreset["Large"] = "large";
4870
- })(BarcodeCheckInfoAnnotationWidthPreset || (BarcodeCheckInfoAnnotationWidthPreset = {}));
4836
+ ], BarcodeArViewSettings.prototype, "_defaultCameraPosition", void 0);
4837
+ __decorate([
4838
+ ignoreFromSerialization
4839
+ ], BarcodeArViewSettings, "barcodeArDefaults", null);
4840
+
4841
+ var BarcodeArAnnotationTrigger;
4842
+ (function (BarcodeArAnnotationTrigger) {
4843
+ BarcodeArAnnotationTrigger["HighlightTap"] = "highlightTap";
4844
+ BarcodeArAnnotationTrigger["HighlightTapAndBarcodeScan"] = "highlightTapAndBarcodeScan";
4845
+ })(BarcodeArAnnotationTrigger || (BarcodeArAnnotationTrigger = {}));
4846
+
4847
+ var BarcodeArCircleHighlightPreset;
4848
+ (function (BarcodeArCircleHighlightPreset) {
4849
+ BarcodeArCircleHighlightPreset["Dot"] = "dot";
4850
+ BarcodeArCircleHighlightPreset["Icon"] = "icon";
4851
+ })(BarcodeArCircleHighlightPreset || (BarcodeArCircleHighlightPreset = {}));
4852
+
4853
+ var BarcodeArInfoAnnotationAnchor;
4854
+ (function (BarcodeArInfoAnnotationAnchor) {
4855
+ BarcodeArInfoAnnotationAnchor["Top"] = "top";
4856
+ BarcodeArInfoAnnotationAnchor["Bottom"] = "bottom";
4857
+ BarcodeArInfoAnnotationAnchor["Left"] = "left";
4858
+ BarcodeArInfoAnnotationAnchor["Right"] = "right";
4859
+ })(BarcodeArInfoAnnotationAnchor || (BarcodeArInfoAnnotationAnchor = {}));
4860
+
4861
+ var BarcodeArInfoAnnotationWidthPreset;
4862
+ (function (BarcodeArInfoAnnotationWidthPreset) {
4863
+ BarcodeArInfoAnnotationWidthPreset["Small"] = "small";
4864
+ BarcodeArInfoAnnotationWidthPreset["Medium"] = "medium";
4865
+ BarcodeArInfoAnnotationWidthPreset["Large"] = "large";
4866
+ })(BarcodeArInfoAnnotationWidthPreset || (BarcodeArInfoAnnotationWidthPreset = {}));
4871
4867
 
4872
4868
  class BarcodeSelectionFeedback extends DefaultSerializeable {
4873
4869
  constructor() {
@@ -4890,15 +4886,15 @@ class BarcodeSelectionFeedback extends DefaultSerializeable {
4890
4886
  }
4891
4887
  updateFeedback() {
4892
4888
  var _a;
4893
- (_a = this.controller) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
4889
+ (_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
4894
4890
  }
4895
4891
  }
4896
4892
  __decorate([
4897
4893
  ignoreFromSerialization
4898
- ], BarcodeSelectionFeedback.prototype, "controller", undefined);
4894
+ ], BarcodeSelectionFeedback.prototype, "controller", void 0);
4899
4895
  __decorate([
4900
4896
  nameForSerialization('selection')
4901
- ], BarcodeSelectionFeedback.prototype, "_selection", undefined);
4897
+ ], BarcodeSelectionFeedback.prototype, "_selection", void 0);
4902
4898
  __decorate([
4903
4899
  ignoreFromSerialization
4904
4900
  ], BarcodeSelectionFeedback, "barcodeSelectionDefaults", null);
@@ -4927,7 +4923,7 @@ class BarcodeSelectionSession {
4927
4923
  session._newlyUnselectedBarcodes = sessionJson.newlyUnselectedBarcodes
4928
4924
  .map(Barcode.fromJSON);
4929
4925
  session._frameSequenceID = sessionJson.frameSequenceId;
4930
- session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
4926
+ session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
4931
4927
  return session;
4932
4928
  }
4933
4929
  getCount(barcode) {
@@ -4954,7 +4950,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
4954
4950
  super('BarcodeSelectionListenerProxy');
4955
4951
  }
4956
4952
  getCount(barcode) {
4957
- return __awaiter(this, undefined, undefined, function* () {
4953
+ return __awaiter(this, void 0, void 0, function* () {
4958
4954
  const result = yield this._proxy.$getCountForBarcodeInBarcodeSelectionSession({ selectionIdentifier: barcode.selectionIdentifier });
4959
4955
  if (result == null) {
4960
4956
  return 0;
@@ -4967,7 +4963,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
4967
4963
  }
4968
4964
  subscribeListener() {
4969
4965
  this._proxy.$registerBarcodeSelectionListenerForEvents();
4970
- this._proxy.on$didUpdateSelection = (ev) => __awaiter(this, undefined, undefined, function* () {
4966
+ this._proxy.on$didUpdateSelection = (ev) => __awaiter(this, void 0, void 0, function* () {
4971
4967
  const payload = EventDataParser.parse(ev.data);
4972
4968
  if (payload === null) {
4973
4969
  console.error('BarcodeSelectionListenerController didUpdateSelection payload is null');
@@ -4978,7 +4974,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
4978
4974
  yield this.notifyListenersOfDidUpdateSelection(session);
4979
4975
  this._proxy.$finishBarcodeSelectionDidSelect({ enabled: this.barcodeSelection.isEnabled });
4980
4976
  });
4981
- this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
4977
+ this._proxy.on$didUpdateSession = (ev) => __awaiter(this, void 0, void 0, function* () {
4982
4978
  const payload = EventDataParser.parse(ev.data);
4983
4979
  if (payload === null) {
4984
4980
  console.error('BarcodeSelectionListenerController didUpdateSession payload is null');
@@ -4995,7 +4991,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
4995
4991
  this._proxy.dispose();
4996
4992
  }
4997
4993
  notifyListenersOfDidUpdateSelection(session) {
4998
- return __awaiter(this, undefined, undefined, function* () {
4994
+ return __awaiter(this, void 0, void 0, function* () {
4999
4995
  const mode = this.barcodeSelection;
5000
4996
  for (const listener of mode.listeners) {
5001
4997
  if (listener.didUpdateSelection) {
@@ -5005,7 +5001,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
5005
5001
  });
5006
5002
  }
5007
5003
  notifyListenersOfDidUpdateSession(session) {
5008
- return __awaiter(this, undefined, undefined, function* () {
5004
+ return __awaiter(this, void 0, void 0, function* () {
5009
5005
  const mode = this.barcodeSelection;
5010
5006
  for (const listener of mode.listeners) {
5011
5007
  if (listener.didUpdateSession) {
@@ -5167,25 +5163,25 @@ class BarcodeSelection extends DefaultSerializeable {
5167
5163
  }
5168
5164
  __decorate([
5169
5165
  ignoreFromSerialization
5170
- ], BarcodeSelection.prototype, "_isEnabled", undefined);
5166
+ ], BarcodeSelection.prototype, "_isEnabled", void 0);
5171
5167
  __decorate([
5172
5168
  nameForSerialization('feedback')
5173
- ], BarcodeSelection.prototype, "_feedback", undefined);
5169
+ ], BarcodeSelection.prototype, "_feedback", void 0);
5174
5170
  __decorate([
5175
5171
  nameForSerialization('pointOfInterest')
5176
- ], BarcodeSelection.prototype, "_pointOfInterest", undefined);
5172
+ ], BarcodeSelection.prototype, "_pointOfInterest", void 0);
5177
5173
  __decorate([
5178
5174
  ignoreFromSerialization
5179
- ], BarcodeSelection.prototype, "privateContext", undefined);
5175
+ ], BarcodeSelection.prototype, "privateContext", void 0);
5180
5176
  __decorate([
5181
5177
  ignoreFromSerialization
5182
- ], BarcodeSelection.prototype, "listeners", undefined);
5178
+ ], BarcodeSelection.prototype, "listeners", void 0);
5183
5179
  __decorate([
5184
5180
  ignoreFromSerialization
5185
- ], BarcodeSelection.prototype, "listenerController", undefined);
5181
+ ], BarcodeSelection.prototype, "listenerController", void 0);
5186
5182
  __decorate([
5187
5183
  ignoreFromSerialization
5188
- ], BarcodeSelection.prototype, "modeController", undefined);
5184
+ ], BarcodeSelection.prototype, "modeController", void 0);
5189
5185
  __decorate([
5190
5186
  ignoreFromSerialization
5191
5187
  ], BarcodeSelection, "barcodeSelectionDefaults", null);
@@ -5230,7 +5226,7 @@ class BarcodeSelectionOverlayController extends BaseNewController {
5230
5226
  super('BarcodeSelectionOverlayProxy');
5231
5227
  }
5232
5228
  setTextForAimToSelectAutoHint(text) {
5233
- return __awaiter(this, undefined, undefined, function* () {
5229
+ return __awaiter(this, void 0, void 0, function* () {
5234
5230
  return yield this._proxy.$setTextForAimToSelectAutoHint({ text });
5235
5231
  });
5236
5232
  }
@@ -5385,37 +5381,37 @@ class BarcodeSelectionBasicOverlay extends DefaultSerializeable {
5385
5381
  }
5386
5382
  __decorate([
5387
5383
  ignoreFromSerialization
5388
- ], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection", undefined);
5384
+ ], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection", void 0);
5389
5385
  __decorate([
5390
5386
  ignoreFromSerialization
5391
- ], BarcodeSelectionBasicOverlay.prototype, "overlayController", undefined);
5387
+ ], BarcodeSelectionBasicOverlay.prototype, "overlayController", void 0);
5392
5388
  __decorate([
5393
5389
  ignoreFromSerialization
5394
- ], BarcodeSelectionBasicOverlay.prototype, "view", undefined);
5390
+ ], BarcodeSelectionBasicOverlay.prototype, "view", void 0);
5395
5391
  __decorate([
5396
5392
  nameForSerialization('shouldShowScanAreaGuides')
5397
- ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
5393
+ ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
5398
5394
  __decorate([
5399
5395
  nameForSerialization('shouldShowHints')
5400
- ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints", undefined);
5396
+ ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints", void 0);
5401
5397
  __decorate([
5402
5398
  nameForSerialization('viewfinder')
5403
- ], BarcodeSelectionBasicOverlay.prototype, "_viewfinder", undefined);
5399
+ ], BarcodeSelectionBasicOverlay.prototype, "_viewfinder", void 0);
5404
5400
  __decorate([
5405
5401
  nameForSerialization('style')
5406
- ], BarcodeSelectionBasicOverlay.prototype, "_style", undefined);
5402
+ ], BarcodeSelectionBasicOverlay.prototype, "_style", void 0);
5407
5403
  __decorate([
5408
5404
  nameForSerialization('trackedBrush')
5409
- ], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush", undefined);
5405
+ ], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush", void 0);
5410
5406
  __decorate([
5411
5407
  nameForSerialization('aimedBrush')
5412
- ], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush", undefined);
5408
+ ], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush", void 0);
5413
5409
  __decorate([
5414
5410
  nameForSerialization('selectedBrush')
5415
- ], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush", undefined);
5411
+ ], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush", void 0);
5416
5412
  __decorate([
5417
5413
  nameForSerialization('selectingBrush')
5418
- ], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush", undefined);
5414
+ ], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush", void 0);
5419
5415
  __decorate([
5420
5416
  ignoreFromSerialization
5421
5417
  ], BarcodeSelectionBasicOverlay, "barcodeSelectionDefaults", null);
@@ -5561,7 +5557,7 @@ class BarcodeSelectionSettings extends DefaultSerializeable {
5561
5557
  }
5562
5558
  __decorate([
5563
5559
  nameForSerialization('singleBarcodeAutoDetectionEnabled')
5564
- ], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection", undefined);
5560
+ ], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection", void 0);
5565
5561
  __decorate([
5566
5562
  ignoreFromSerialization
5567
5563
  ], BarcodeSelectionSettings, "barcodeSelectionDefaults", null);
@@ -5622,7 +5618,7 @@ class BarcodeBatchSession {
5622
5618
  .fromJSON(sessionJson.trackedBarcodes[identifier], sessionJson.frameSequenceId);
5623
5619
  return trackedBarcodes;
5624
5620
  }, {});
5625
- session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
5621
+ session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
5626
5622
  return session;
5627
5623
  }
5628
5624
  reset() {
@@ -5654,11 +5650,11 @@ class BarcodeBatchListenerController {
5654
5650
  subscribeListener() {
5655
5651
  var _a, _b;
5656
5652
  this._proxy.registerListenerForEvents();
5657
- (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === undefined ? undefined : _b.call(_a);
5653
+ (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === void 0 ? void 0 : _b.call(_a);
5658
5654
  this.eventEmitter.on(BarcodeBatchListenerEvents.inCallback, (value) => {
5659
5655
  this.barcodeBatch.isInListenerCallback = value;
5660
5656
  });
5661
- this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, undefined, undefined, function* () {
5657
+ this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
5662
5658
  const payload = EventDataParser.parse(data);
5663
5659
  if (payload === null) {
5664
5660
  console.error('BarcodeBatchListenerController didUpdateSession payload is null');
@@ -5684,7 +5680,7 @@ class BarcodeBatchListenerController {
5684
5680
  return this._proxy.applyBarcodeBatchModeSettings(JSON.stringify(newSettings.toJSON()));
5685
5681
  }
5686
5682
  notifyListenersOfDidUpdateSession(session) {
5687
- return __awaiter(this, undefined, undefined, function* () {
5683
+ return __awaiter(this, void 0, void 0, function* () {
5688
5684
  const mode = this.barcodeBatch;
5689
5685
  mode.isInListenerCallback = true;
5690
5686
  for (const listener of mode.listeners) {
@@ -5761,24 +5757,24 @@ class BarcodeBatch extends DefaultSerializeable {
5761
5757
  }
5762
5758
  reset() {
5763
5759
  var _a, _b;
5764
- return (_b = (_a = this.listenerController) === null || _a === undefined ? undefined : _a.resetSession()) !== null && _b !== undefined ? _b : Promise.resolve();
5760
+ return (_b = (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.resetSession()) !== null && _b !== void 0 ? _b : Promise.resolve();
5765
5761
  }
5766
5762
  }
5767
5763
  __decorate([
5768
5764
  ignoreFromSerialization
5769
- ], BarcodeBatch.prototype, "_isEnabled", undefined);
5765
+ ], BarcodeBatch.prototype, "_isEnabled", void 0);
5770
5766
  __decorate([
5771
5767
  ignoreFromSerialization
5772
- ], BarcodeBatch.prototype, "privateContext", undefined);
5768
+ ], BarcodeBatch.prototype, "privateContext", void 0);
5773
5769
  __decorate([
5774
5770
  ignoreFromSerialization
5775
- ], BarcodeBatch.prototype, "listeners", undefined);
5771
+ ], BarcodeBatch.prototype, "listeners", void 0);
5776
5772
  __decorate([
5777
5773
  ignoreFromSerialization
5778
- ], BarcodeBatch.prototype, "listenerController", undefined);
5774
+ ], BarcodeBatch.prototype, "listenerController", void 0);
5779
5775
  __decorate([
5780
5776
  ignoreFromSerialization
5781
- ], BarcodeBatch.prototype, "isInListenerCallback", undefined);
5777
+ ], BarcodeBatch.prototype, "isInListenerCallback", void 0);
5782
5778
  __decorate([
5783
5779
  ignoreFromSerialization
5784
5780
  ], BarcodeBatch, "barcodeBatchDefaults", null);
@@ -5806,7 +5802,7 @@ class BarcodeBatchAdvancedOverlayController {
5806
5802
  return this._proxy.setBrushForTrackedBarcode(JSON.stringify(brush.toJSON()), trackedBarcode.sessionFrameSequenceID, trackedBarcode.identifier);
5807
5803
  }
5808
5804
  setViewForTrackedBarcode(view, trackedBarcode) {
5809
- return __awaiter(this, undefined, undefined, function* () {
5805
+ return __awaiter(this, void 0, void 0, function* () {
5810
5806
  const awitedView = yield view;
5811
5807
  const viewJson = this._proxy.getJSONStringForView(awitedView);
5812
5808
  return this._proxy.setViewForTrackedBarcode(viewJson, trackedBarcode.identifier, trackedBarcode.sessionFrameSequenceID);
@@ -5827,11 +5823,11 @@ class BarcodeBatchAdvancedOverlayController {
5827
5823
  subscribeListener() {
5828
5824
  var _a, _b, _c, _d, _e, _f, _g, _h;
5829
5825
  this._proxy.registerListenerForAdvancedOverlayEvents();
5830
- (_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a);
5831
- (_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d === undefined ? undefined : _d.call(_c);
5832
- (_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f === undefined ? undefined : _f.call(_e);
5833
- (_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h === undefined ? undefined : _h.call(_g);
5834
- this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
5826
+ (_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a);
5827
+ (_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d === void 0 ? void 0 : _d.call(_c);
5828
+ (_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f === void 0 ? void 0 : _f.call(_e);
5829
+ (_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h === void 0 ? void 0 : _h.call(_g);
5830
+ this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
5835
5831
  const payload = EventDataParser.parse(data);
5836
5832
  if (payload === null) {
5837
5833
  console.error('BarcodeBatchAdvancedOverlayController viewForTrackedBarcode payload is null');
@@ -5881,7 +5877,7 @@ class BarcodeBatchAdvancedOverlayController {
5881
5877
  }
5882
5878
  const trackedBarcode = TrackedBarcode
5883
5879
  .fromJSON(JSON.parse(payload.trackedBarcode));
5884
- (_b = (_a = this.overlay.listener) === null || _a === undefined ? undefined : _a.didTapViewForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a, this.overlay, trackedBarcode);
5880
+ (_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);
5885
5881
  });
5886
5882
  }
5887
5883
  unsubscribeListener() {
@@ -5921,8 +5917,8 @@ class BarcodeBatchBasicOverlayController {
5921
5917
  subscribeListener() {
5922
5918
  var _a, _b, _c, _d;
5923
5919
  this._proxy.registerListenerForBasicOverlayEvents();
5924
- (_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a);
5925
- (_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d === undefined ? undefined : _d.call(_c);
5920
+ (_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a);
5921
+ (_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d === void 0 ? void 0 : _d.call(_c);
5926
5922
  this.eventEmitter.on(BarcodeBatchBasicOverlayListenerEvents.brushForTrackedBarcode, (data) => {
5927
5923
  const payload = EventDataParser.parse(data);
5928
5924
  if (payload === null) {
@@ -6027,28 +6023,28 @@ class BarcodeBatchBasicOverlay extends DefaultSerializeable {
6027
6023
  }
6028
6024
  __decorate([
6029
6025
  ignoreFromSerialization
6030
- ], BarcodeBatchBasicOverlay.prototype, "barcodeBatch", undefined);
6026
+ ], BarcodeBatchBasicOverlay.prototype, "barcodeBatch", void 0);
6031
6027
  __decorate([
6032
6028
  ignoreFromSerialization
6033
- ], BarcodeBatchBasicOverlay.prototype, "_view", undefined);
6029
+ ], BarcodeBatchBasicOverlay.prototype, "_view", void 0);
6034
6030
  __decorate([
6035
6031
  nameForSerialization('style')
6036
- ], BarcodeBatchBasicOverlay.prototype, "_style", undefined);
6032
+ ], BarcodeBatchBasicOverlay.prototype, "_style", void 0);
6037
6033
  __decorate([
6038
6034
  ignoreFromSerialization
6039
6035
  ], BarcodeBatchBasicOverlay.prototype, "defaultBrush", null);
6040
6036
  __decorate([
6041
6037
  nameForSerialization('defaultBrush')
6042
- ], BarcodeBatchBasicOverlay.prototype, "_brush", undefined);
6038
+ ], BarcodeBatchBasicOverlay.prototype, "_brush", void 0);
6043
6039
  __decorate([
6044
6040
  nameForSerialization('shouldShowScanAreaGuides')
6045
- ], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
6041
+ ], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
6046
6042
  __decorate([
6047
6043
  ignoreFromSerialization
6048
- ], BarcodeBatchBasicOverlay.prototype, "listener", undefined);
6044
+ ], BarcodeBatchBasicOverlay.prototype, "listener", void 0);
6049
6045
  __decorate([
6050
6046
  ignoreFromSerialization
6051
- ], BarcodeBatchBasicOverlay.prototype, "controller", undefined);
6047
+ ], BarcodeBatchBasicOverlay.prototype, "controller", void 0);
6052
6048
  __decorate([
6053
6049
  ignoreFromSerialization
6054
6050
  ], BarcodeBatchBasicOverlay, "barcodeBatchDefaults", null);
@@ -6103,7 +6099,7 @@ class BarcodeBatchSettings extends DefaultSerializeable {
6103
6099
  }
6104
6100
  __decorate([
6105
6101
  nameForSerialization('arucoDictionary')
6106
- ], BarcodeBatchSettings.prototype, "_arucoDictionary", undefined);
6102
+ ], BarcodeBatchSettings.prototype, "_arucoDictionary", void 0);
6107
6103
  __decorate([
6108
6104
  ignoreFromSerialization
6109
6105
  ], BarcodeBatchSettings, "barcodeDefaults", null);
@@ -6156,140 +6152,28 @@ class BaseBarcodeBatchAdvancedOverlay extends DefaultSerializeable {
6156
6152
  }
6157
6153
  __decorate([
6158
6154
  nameForSerialization('shouldShowScanAreaGuides')
6159
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
6155
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
6160
6156
  __decorate([
6161
6157
  ignoreFromSerialization
6162
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch", undefined);
6158
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch", void 0);
6163
6159
  __decorate([
6164
6160
  ignoreFromSerialization
6165
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "listener", undefined);
6161
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "listener", void 0);
6166
6162
  __decorate([
6167
6163
  ignoreFromSerialization
6168
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "controller", undefined);
6164
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "controller", void 0);
6169
6165
  __decorate([
6170
6166
  ignoreFromSerialization
6171
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "_view", undefined);
6172
-
6173
- class SparkScanSession {
6174
- static fromJSON(json) {
6175
- var _a;
6176
- const sessionJson = JSON.parse(json.session);
6177
- const session = new SparkScanSession();
6178
- session._newlyRecognizedBarcode = sessionJson.newlyRecognizedBarcode != null ?
6179
- Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) :
6180
- null;
6181
- session._frameSequenceID = sessionJson.frameSequenceId;
6182
- session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
6183
- return session;
6184
- }
6185
- get newlyRecognizedBarcode() {
6186
- return this._newlyRecognizedBarcode;
6187
- }
6188
- get frameSequenceID() {
6189
- return this._frameSequenceID;
6190
- }
6191
- reset() {
6192
- return this.listenerController.reset();
6193
- }
6194
- }
6195
-
6196
- var SparkScanListenerEvents;
6197
- (function (SparkScanListenerEvents) {
6198
- SparkScanListenerEvents["didUpdateSession"] = "SparkScanListener.didUpdateSession";
6199
- SparkScanListenerEvents["didScan"] = "SparkScanListener.didScan";
6200
- })(SparkScanListenerEvents || (SparkScanListenerEvents = {}));
6201
- class SparkScanListenerController extends BaseNewController {
6202
- static forSparkScan(sparkScan) {
6203
- const controller = new SparkScanListenerController();
6204
- controller.sparkScan = sparkScan;
6205
- return controller;
6206
- }
6207
- constructor() {
6208
- super('SparkScanListenerProxy');
6209
- this.hasNativeListenerSubscriptions = false;
6210
- this.didUpdateSessionListener = (data) => __awaiter(this, undefined, undefined, function* () {
6211
- const payload = EventDataParser.parse(data);
6212
- if (payload === null) {
6213
- console.error('SparkScanListenerController didUpdateSession payload is null');
6214
- return;
6215
- }
6216
- const session = SparkScanSession.fromJSON(payload);
6217
- yield this.notifyListenersOfDidUpdateSession(session);
6218
- this._proxy.finishDidUpdateSessionCallback(this.sparkScan.isEnabled);
6219
- });
6220
- this.didScanListener = (data) => __awaiter(this, undefined, undefined, function* () {
6221
- const payload = EventDataParser.parse(data);
6222
- if (payload === null) {
6223
- console.error('SparkScanListenerController.subscribeListener: didScan payload is null');
6224
- return;
6225
- }
6226
- const session = SparkScanSession.fromJSON(payload);
6227
- yield this.notifyListenersOfDidScan(session);
6228
- this._proxy.finishDidScanCallback(this.sparkScan.isEnabled);
6229
- });
6230
- }
6231
- reset() {
6232
- return this._proxy.resetSession();
6233
- }
6234
- update() {
6235
- const sparkScanJson = this.sparkScan.toJSON();
6236
- const json = JSON.stringify(sparkScanJson);
6237
- return this._proxy.updateMode(json);
6238
- }
6239
- subscribeListener() {
6240
- if (this.hasNativeListenerSubscriptions === false) {
6241
- this._proxy.registerListenerForEvents();
6242
- this.hasNativeListenerSubscriptions = true;
6243
- }
6244
- this._proxy.subscribeDidScanListener();
6245
- this._proxy.subscribeDidUpdateSessionListener();
6246
- this.eventEmitter.on(SparkScanListenerEvents.didUpdateSession, this.didUpdateSessionListener);
6247
- this.eventEmitter.on(SparkScanListenerEvents.didScan, this.didScanListener);
6248
- }
6249
- unsubscribeListener() {
6250
- if (this.hasNativeListenerSubscriptions === true) {
6251
- this._proxy.unregisterListenerForEvents();
6252
- this.hasNativeListenerSubscriptions = false;
6253
- }
6254
- this.eventEmitter.off(SparkScanListenerEvents.didUpdateSession, this.didUpdateSessionListener);
6255
- this.eventEmitter.off(SparkScanListenerEvents.didScan, this.didScanListener);
6256
- }
6257
- setModeEnabledState(enabled) {
6258
- this._proxy.setModeEnabledState(enabled);
6259
- }
6260
- notifyListenersOfDidUpdateSession(session) {
6261
- return __awaiter(this, undefined, undefined, function* () {
6262
- const mode = this.sparkScan;
6263
- mode.isInListenerCallback = true;
6264
- for (const listener of mode.listeners) {
6265
- if (listener.didUpdateSession) {
6266
- yield listener.didUpdateSession(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
6267
- }
6268
- }
6269
- mode.isInListenerCallback = false;
6270
- });
6271
- }
6272
- notifyListenersOfDidScan(session) {
6273
- return __awaiter(this, undefined, undefined, function* () {
6274
- const mode = this.sparkScan;
6275
- mode.isInListenerCallback = true;
6276
- for (const listener of mode.listeners) {
6277
- if (listener.didScan) {
6278
- yield listener.didScan(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
6279
- }
6280
- }
6281
- mode.isInListenerCallback = false;
6282
- });
6283
- }
6284
- }
6167
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "_view", void 0);
6285
6168
 
6286
6169
  class SparkScan extends DefaultSerializeable {
6287
6170
  get isEnabled() {
6288
6171
  return this._isEnabled;
6289
6172
  }
6290
6173
  set isEnabled(isEnabled) {
6174
+ var _a;
6291
6175
  this._isEnabled = isEnabled;
6292
- this.listenerController.setModeEnabledState(isEnabled);
6176
+ (_a = this.controller) === null || _a === void 0 ? void 0 : _a.setModeEnabledState(isEnabled);
6293
6177
  }
6294
6178
  get context() {
6295
6179
  return this._context;
@@ -6309,10 +6193,11 @@ class SparkScan extends DefaultSerializeable {
6309
6193
  super();
6310
6194
  this.type = 'sparkScan';
6311
6195
  this._isEnabled = true;
6196
+ this.hasListeners = false;
6312
6197
  this.privateContext = null;
6313
6198
  this.listeners = [];
6199
+ this.controller = null;
6314
6200
  this.isInListenerCallback = false;
6315
- this.listenerController = SparkScanListenerController.forSparkScan(this);
6316
6201
  }
6317
6202
  applySettings(settings) {
6318
6203
  this.settings = settings;
@@ -6324,15 +6209,18 @@ class SparkScan extends DefaultSerializeable {
6324
6209
  return;
6325
6210
  }
6326
6211
  this.listeners.push(listener);
6212
+ this.hasListeners = this.listeners.length > 0;
6327
6213
  }
6328
6214
  checkAndSubscribeListeners() {
6215
+ var _a;
6329
6216
  if (this.listeners.length === 0) {
6330
- this.listenerController.subscribeListener();
6217
+ (_a = this.controller) === null || _a === void 0 ? void 0 : _a.subscribeModeListener();
6331
6218
  }
6332
6219
  }
6333
6220
  checkAndUnsubscribeListeners() {
6221
+ var _a;
6334
6222
  if (this.listeners.length === 0) {
6335
- this.listenerController.unsubscribeListener();
6223
+ (_a = this.controller) === null || _a === void 0 ? void 0 : _a.unsubscribeModeListener();
6336
6224
  }
6337
6225
  }
6338
6226
  removeListener(listener) {
@@ -6340,39 +6228,37 @@ class SparkScan extends DefaultSerializeable {
6340
6228
  return;
6341
6229
  }
6342
6230
  this.listeners.splice(this.listeners.indexOf(listener));
6231
+ this.hasListeners = this.listeners.length > 0;
6343
6232
  this.checkAndUnsubscribeListeners();
6344
6233
  }
6345
6234
  didChange() {
6346
- if (this.listenerController) {
6347
- return this.listenerController.update();
6235
+ if (this.controller) {
6236
+ return this.controller.updateMode();
6348
6237
  }
6349
6238
  else {
6350
6239
  return Promise.resolve();
6351
6240
  }
6352
6241
  }
6353
- unsubscribeNativeListeners() {
6354
- this.listenerController.unsubscribeListener();
6355
- }
6356
6242
  }
6357
6243
  __decorate([
6358
- ignoreFromSerialization
6359
- ], SparkScan.prototype, "_isEnabled", undefined);
6244
+ nameForSerialization('isEnabled')
6245
+ ], SparkScan.prototype, "_isEnabled", void 0);
6360
6246
  __decorate([
6361
6247
  ignoreFromSerialization
6362
- ], SparkScan.prototype, "privateContext", undefined);
6248
+ ], SparkScan.prototype, "privateContext", void 0);
6363
6249
  __decorate([
6364
6250
  ignoreFromSerialization
6365
- ], SparkScan.prototype, "listeners", undefined);
6251
+ ], SparkScan.prototype, "listeners", void 0);
6366
6252
  __decorate([
6367
6253
  ignoreFromSerialization
6368
- ], SparkScan.prototype, "listenerController", undefined);
6254
+ ], SparkScan.prototype, "controller", void 0);
6369
6255
  __decorate([
6370
6256
  ignoreFromSerialization
6371
- ], SparkScan.prototype, "isInListenerCallback", undefined);
6257
+ ], SparkScan.prototype, "isInListenerCallback", void 0);
6372
6258
 
6373
6259
  var SparkScanMiniPreviewSize;
6374
6260
  (function (SparkScanMiniPreviewSize) {
6375
- SparkScanMiniPreviewSize["Regular"] = "expanded";
6261
+ SparkScanMiniPreviewSize["Regular"] = "regular";
6376
6262
  SparkScanMiniPreviewSize["Expanded"] = "expanded";
6377
6263
  })(SparkScanMiniPreviewSize || (SparkScanMiniPreviewSize = {}));
6378
6264
 
@@ -6493,46 +6379,46 @@ class SparkScanToastSettings extends DefaultSerializeable {
6493
6379
  }
6494
6380
  __decorate([
6495
6381
  nameForSerialization('toastEnabled')
6496
- ], SparkScanToastSettings.prototype, "_toastEnabled", undefined);
6382
+ ], SparkScanToastSettings.prototype, "_toastEnabled", void 0);
6497
6383
  __decorate([
6498
6384
  nameForSerialization('toastBackgroundColor')
6499
- ], SparkScanToastSettings.prototype, "_toastBackgroundColor", undefined);
6385
+ ], SparkScanToastSettings.prototype, "_toastBackgroundColor", void 0);
6500
6386
  __decorate([
6501
6387
  nameForSerialization('toastTextColor')
6502
- ], SparkScanToastSettings.prototype, "_toastTextColor", undefined);
6388
+ ], SparkScanToastSettings.prototype, "_toastTextColor", void 0);
6503
6389
  __decorate([
6504
6390
  nameForSerialization('targetModeEnabledMessage')
6505
- ], SparkScanToastSettings.prototype, "_targetModeEnabledMessage", undefined);
6391
+ ], SparkScanToastSettings.prototype, "_targetModeEnabledMessage", void 0);
6506
6392
  __decorate([
6507
6393
  nameForSerialization('targetModeDisabledMessage')
6508
- ], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", undefined);
6394
+ ], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", void 0);
6509
6395
  __decorate([
6510
6396
  nameForSerialization('continuousModeEnabledMessage')
6511
- ], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", undefined);
6397
+ ], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", void 0);
6512
6398
  __decorate([
6513
6399
  nameForSerialization('continuousModeDisabledMessage')
6514
- ], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage", undefined);
6400
+ ], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage", void 0);
6515
6401
  __decorate([
6516
6402
  nameForSerialization('scanPausedMessage')
6517
- ], SparkScanToastSettings.prototype, "_scanPausedMessage", undefined);
6403
+ ], SparkScanToastSettings.prototype, "_scanPausedMessage", void 0);
6518
6404
  __decorate([
6519
6405
  nameForSerialization('zoomedInMessage')
6520
- ], SparkScanToastSettings.prototype, "_zoomedInMessage", undefined);
6406
+ ], SparkScanToastSettings.prototype, "_zoomedInMessage", void 0);
6521
6407
  __decorate([
6522
6408
  nameForSerialization('zoomedOutMessage')
6523
- ], SparkScanToastSettings.prototype, "_zoomedOutMessage", undefined);
6409
+ ], SparkScanToastSettings.prototype, "_zoomedOutMessage", void 0);
6524
6410
  __decorate([
6525
6411
  nameForSerialization('torchEnabledMessage')
6526
- ], SparkScanToastSettings.prototype, "_torchEnabledMessage", undefined);
6412
+ ], SparkScanToastSettings.prototype, "_torchEnabledMessage", void 0);
6527
6413
  __decorate([
6528
6414
  nameForSerialization('torchDisabledMessage')
6529
- ], SparkScanToastSettings.prototype, "_torchDisabledMessage", undefined);
6415
+ ], SparkScanToastSettings.prototype, "_torchDisabledMessage", void 0);
6530
6416
  __decorate([
6531
6417
  nameForSerialization('userFacingCameraEnabledMessage')
6532
- ], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage", undefined);
6418
+ ], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage", void 0);
6533
6419
  __decorate([
6534
6420
  nameForSerialization('worldFacingCameraEnabledMessage')
6535
- ], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage", undefined);
6421
+ ], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage", void 0);
6536
6422
  __decorate([
6537
6423
  ignoreFromSerialization
6538
6424
  ], SparkScanToastSettings, "sparkScanDefaults", null);
@@ -6558,10 +6444,10 @@ class PrivateSparkScanScanningModeSettings extends DefaultSerializeable {
6558
6444
  }
6559
6445
  __decorate([
6560
6446
  nameForSerialization('scanningBehavior')
6561
- ], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior", undefined);
6447
+ ], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior", void 0);
6562
6448
  __decorate([
6563
6449
  nameForSerialization('previewBehavior')
6564
- ], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", undefined);
6450
+ ], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", void 0);
6565
6451
 
6566
6452
  class SparkScanScanningModeDefault extends DefaultSerializeable {
6567
6453
  get scanningBehavior() {
@@ -6585,7 +6471,7 @@ class SparkScanScanningModeDefault extends DefaultSerializeable {
6585
6471
  }
6586
6472
  __decorate([
6587
6473
  nameForSerialization('settings')
6588
- ], SparkScanScanningModeDefault.prototype, "_settings", undefined);
6474
+ ], SparkScanScanningModeDefault.prototype, "_settings", void 0);
6589
6475
 
6590
6476
  class SparkScanScanningModeTarget extends DefaultSerializeable {
6591
6477
  get scanningBehavior() {
@@ -6609,7 +6495,30 @@ class SparkScanScanningModeTarget extends DefaultSerializeable {
6609
6495
  }
6610
6496
  __decorate([
6611
6497
  nameForSerialization('settings')
6612
- ], SparkScanScanningModeTarget.prototype, "_settings", undefined);
6498
+ ], SparkScanScanningModeTarget.prototype, "_settings", void 0);
6499
+
6500
+ class SparkScanSession {
6501
+ static fromJSON(json) {
6502
+ var _a;
6503
+ const sessionJson = JSON.parse(json.session);
6504
+ const session = new SparkScanSession();
6505
+ session._newlyRecognizedBarcode = sessionJson.newlyRecognizedBarcode != null ?
6506
+ Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) :
6507
+ null;
6508
+ session._frameSequenceID = sessionJson.frameSequenceId;
6509
+ session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
6510
+ return session;
6511
+ }
6512
+ get newlyRecognizedBarcode() {
6513
+ return this._newlyRecognizedBarcode;
6514
+ }
6515
+ get frameSequenceID() {
6516
+ return this._frameSequenceID;
6517
+ }
6518
+ reset() {
6519
+ return this.controller.resetSession();
6520
+ }
6521
+ }
6613
6522
 
6614
6523
  class SparkScanSettings extends DefaultSerializeable {
6615
6524
  get batterySaving() {
@@ -6666,10 +6575,10 @@ class SparkScanSettings extends DefaultSerializeable {
6666
6575
  }
6667
6576
  __decorate([
6668
6577
  nameForSerialization('batterySaving')
6669
- ], SparkScanSettings.prototype, "_batterySaving", undefined);
6578
+ ], SparkScanSettings.prototype, "_batterySaving", void 0);
6670
6579
  __decorate([
6671
6580
  nameForSerialization('locationSelection')
6672
- ], SparkScanSettings.prototype, "_locationSelection", undefined);
6581
+ ], SparkScanSettings.prototype, "_locationSelection", void 0);
6673
6582
  __decorate([
6674
6583
  ignoreFromSerialization
6675
6584
  ], SparkScanSettings, "sparkScanDefaults", null);
@@ -6734,158 +6643,319 @@ var SparkScanViewEvents;
6734
6643
  SparkScanViewEvents["barcodeFindButtonTapped"] = "SparkScanViewUiListener.barcodeFindButtonTapped";
6735
6644
  SparkScanViewEvents["barcodeCountButtonTapped"] = "SparkScanViewUiListener.barcodeCountButtonTapped";
6736
6645
  SparkScanViewEvents["didChangeViewState"] = "SparkScanViewUiListener.didChangeViewState";
6646
+ SparkScanViewEvents["feedbackForBarcode"] = "SparkScanFeedbackDelegate.feedbackForBarcode";
6647
+ SparkScanViewEvents["didUpdateSession"] = "SparkScanListener.didUpdateSession";
6648
+ SparkScanViewEvents["didScan"] = "SparkScanListener.didScan";
6737
6649
  })(SparkScanViewEvents || (SparkScanViewEvents = {}));
6738
- var SparkScanFeedbackDelegateEvents;
6739
- (function (SparkScanFeedbackDelegateEvents) {
6740
- SparkScanFeedbackDelegateEvents["feedbackForBarcode"] = "SparkScanFeedbackDelegate.feedbackForBarcode";
6741
- })(SparkScanFeedbackDelegateEvents || (SparkScanFeedbackDelegateEvents = {}));
6742
6650
  class SparkScanViewController extends BaseNewController {
6743
- static forSparkScanView(view, sparkScan, autoCreateNativeView = true) {
6651
+ static forSparkScanView(view, sparkScan) {
6744
6652
  const controller = new SparkScanViewController();
6745
6653
  controller.view = view;
6746
6654
  controller.sparkScan = sparkScan;
6747
- // We call update because it returns a promise, this guarantees, that by the time
6748
- // we need the deserialized context, it will be set in the native layer.
6749
- controller.initialize(autoCreateNativeView);
6655
+ controller.sparkScan.controller = controller;
6656
+ controller.initialize();
6750
6657
  return controller;
6751
6658
  }
6752
6659
  constructor() {
6753
6660
  super('SparkScanViewProxy');
6754
6661
  this.hasFeedbackDelegateListener = false;
6755
- this.hasNativeListenerSubscriptions = false;
6756
- this.barcodeCountButtonTappedListener = () => {
6662
+ this.hasNativeViewListenerSubscriptions = false;
6663
+ this.hasNativeModeListenerSubscriptions = false;
6664
+ this.viewInstanceId = -1;
6665
+ this.didUpdateSessionListener = (ev) => __awaiter(this, void 0, void 0, function* () {
6666
+ const payload = EventDataParser.parse(ev.data);
6667
+ if (payload === null) {
6668
+ console.error('SparkScanListenerController didUpdateSession payload is null');
6669
+ return;
6670
+ }
6671
+ if (payload.viewId !== this.viewInstanceId) {
6672
+ return;
6673
+ }
6674
+ const session = SparkScanSession.fromJSON(payload);
6675
+ session.controller = this;
6676
+ yield this.notifyListenersOfDidUpdateSession(session);
6677
+ this._proxy.$finishSparkScanDidUpdateSession({ viewId: this.viewInstanceId, isEnabled: this.sparkScan.isEnabled });
6678
+ });
6679
+ this.didScanListener = (ev) => __awaiter(this, void 0, void 0, function* () {
6680
+ const payload = EventDataParser.parse(ev.data);
6681
+ if (payload === null) {
6682
+ console.error('SparkScanListenerController.subscribeListener: didScan payload is null');
6683
+ return;
6684
+ }
6685
+ if (payload.viewId !== this.viewInstanceId) {
6686
+ return;
6687
+ }
6688
+ const session = SparkScanSession.fromJSON(payload);
6689
+ session.controller = this;
6690
+ yield this.notifyListenersOfDidScan(session);
6691
+ this._proxy.$finishSparkScanDidScan({ viewId: this.viewInstanceId, isEnabled: this.sparkScan.isEnabled });
6692
+ });
6693
+ this.barcodeCountButtonTappedListener = (ev) => __awaiter(this, void 0, void 0, function* () {
6757
6694
  var _a, _b;
6758
- (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapBarcodeCountButton) === null || _b === undefined ? undefined : _b.call(_a, this.view);
6759
- };
6760
- this.barcodeFindButtonTappedListener = () => {
6695
+ const payload = EventDataParser.parse(ev.data);
6696
+ if (payload === null) {
6697
+ return;
6698
+ }
6699
+ if (payload.viewId !== this.viewInstanceId) {
6700
+ return;
6701
+ }
6702
+ (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeCountButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
6703
+ });
6704
+ this.barcodeFindButtonTappedListener = (ev) => __awaiter(this, void 0, void 0, function* () {
6761
6705
  var _a, _b;
6762
- (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapBarcodeFindButton) === null || _b === undefined ? undefined : _b.call(_a, this.view);
6763
- };
6764
- this.didChangeViewStateListener = (data) => {
6706
+ const payload = EventDataParser.parse(ev.data);
6707
+ if (payload === null) {
6708
+ return;
6709
+ }
6710
+ if (payload.viewId !== this.viewInstanceId) {
6711
+ return;
6712
+ }
6713
+ (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeFindButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
6714
+ });
6715
+ this.didChangeViewStateListener = (ev) => __awaiter(this, void 0, void 0, function* () {
6765
6716
  var _a, _b;
6766
- const payload = EventDataParser.parse(data);
6717
+ const payload = EventDataParser.parse(ev.data);
6767
6718
  if (payload === null) {
6768
6719
  console.error('SparkScanViewController didChangeViewState payload is null');
6769
6720
  return;
6770
6721
  }
6771
- const newState = payload.state;
6772
- (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didChangeViewState) === null || _b === undefined ? undefined : _b.call(_a, newState);
6773
- };
6774
- }
6775
- initialize(autoCreateNativeView) {
6776
- return __awaiter(this, undefined, undefined, function* () {
6777
- this.subscribeListeners();
6778
- yield this.view.context.update();
6779
- if (autoCreateNativeView) {
6780
- yield this.create();
6722
+ if (payload.viewId !== this.viewInstanceId) {
6723
+ return;
6781
6724
  }
6782
- this._proxy.prepareSparkScanViewScanning();
6725
+ const newState = payload.state;
6726
+ (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didChangeViewState) === null || _b === void 0 ? void 0 : _b.call(_a, newState);
6783
6727
  });
6784
6728
  }
6729
+ initialize() {
6730
+ this._proxy.on$barcodeCountButtonTapped = this.barcodeCountButtonTappedListener;
6731
+ this._proxy.on$barcodeFindButtonTapped = this.barcodeFindButtonTappedListener;
6732
+ this._proxy.on$didChangeViewState = this.didChangeViewStateListener;
6733
+ this._proxy.on$didUpdateSession = this.didUpdateSessionListener;
6734
+ this._proxy.on$didScan = this.didScanListener;
6735
+ this._proxy.on$feedbackForBarcode = this.handleFeedbackForBarcode.bind(this);
6736
+ if (this.sparkScan.listeners.length > 0) {
6737
+ this.subscribeModeListener();
6738
+ }
6739
+ if (this.view.uiListener) {
6740
+ this.subscribeViewListeners();
6741
+ }
6742
+ if (this.view.feedbackDelegate) {
6743
+ this.addFeedbackDelegate();
6744
+ }
6745
+ }
6785
6746
  dispose() {
6786
- this.sparkScan.unsubscribeNativeListeners();
6787
- this.unsubscribeListeners();
6747
+ this.unsubscribeModeListener();
6748
+ this.unsubscribeViewListeners();
6788
6749
  this.removeFeedbackDelegate();
6789
- this._proxy.disposeSparkScanView();
6750
+ this._proxy.$disposeSparkScanView({ viewId: this.viewInstanceId });
6751
+ this._proxy.dispose();
6790
6752
  }
6791
- subscribeListeners() {
6792
- if (this.hasNativeListenerSubscriptions === false) {
6793
- this._proxy.registerSparkScanViewListenerEvents();
6794
- this.hasNativeListenerSubscriptions = true;
6795
- }
6796
- this.eventEmitter.on(SparkScanViewEvents.barcodeCountButtonTapped, this.barcodeCountButtonTappedListener);
6797
- this.eventEmitter.on(SparkScanViewEvents.barcodeFindButtonTapped, this.barcodeFindButtonTappedListener);
6798
- this.eventEmitter.on(SparkScanViewEvents.didChangeViewState, this.didChangeViewStateListener);
6753
+ subscribeViewListeners() {
6754
+ if (!this.isViewCreated)
6755
+ return; // view not created yet
6756
+ if (this.hasNativeViewListenerSubscriptions)
6757
+ return;
6758
+ this._proxy.$registerSparkScanViewListenerEvents({ viewId: this.viewInstanceId });
6759
+ this.hasNativeViewListenerSubscriptions = true;
6799
6760
  }
6800
- unsubscribeListeners() {
6801
- if (this.hasNativeListenerSubscriptions === true) {
6802
- this._proxy.unregisterSparkScanViewListenerEvents();
6803
- this.hasNativeListenerSubscriptions = false;
6804
- }
6805
- this.eventEmitter.off(SparkScanViewEvents.barcodeCountButtonTapped, this.barcodeCountButtonTappedListener);
6806
- this.eventEmitter.off(SparkScanViewEvents.barcodeFindButtonTapped, this.barcodeFindButtonTappedListener);
6807
- this.eventEmitter.off(SparkScanViewEvents.didChangeViewState, this.didChangeViewStateListener);
6761
+ unsubscribeViewListeners() {
6762
+ if (!this.isViewCreated)
6763
+ return; // view not created yet
6764
+ if (this.hasNativeViewListenerSubscriptions === false)
6765
+ return;
6766
+ this._proxy.$unregisterSparkScanViewListenerEvents({ viewId: this.viewInstanceId });
6767
+ this.hasNativeViewListenerSubscriptions = false;
6808
6768
  }
6809
- create() {
6769
+ createView() {
6810
6770
  const viewJson = {
6811
6771
  SparkScan: this.sparkScan.toJSON(),
6812
6772
  SparkScanView: this.view.toJSON()
6813
6773
  };
6774
+ const viewId = this.view.viewId;
6814
6775
  const json = JSON.stringify(viewJson);
6815
- return this._proxy.createSparkScanView(json);
6776
+ return this._proxy.$createSparkScanView({ viewId, viewJson: json }).then(() => {
6777
+ this.viewInstanceId = viewId;
6778
+ this.initialize();
6779
+ });
6816
6780
  }
6817
- update() {
6781
+ updateView() {
6782
+ if (!this.isViewCreated) {
6783
+ return Promise.resolve(); // No updates if view not created yet
6784
+ }
6818
6785
  const sparkScanViewJson = this.view.toJSON();
6819
- const json = JSON.stringify({ View: sparkScanViewJson });
6820
- return this._proxy.updateSparkScanView(this.view.viewId, json);
6786
+ const json = JSON.stringify({ SparkScanView: sparkScanViewJson });
6787
+ return this._proxy.$updateSparkScanView({ viewId: this.viewInstanceId, viewJson: json });
6821
6788
  }
6822
6789
  stopScanning() {
6823
- return this._proxy.stopSparkScanViewScanning();
6790
+ if (!this.isViewCreated) {
6791
+ return Promise.resolve(); // No updates if view not created yet
6792
+ }
6793
+ return this._proxy.$stopSparkScanViewScanning({ viewId: this.viewInstanceId });
6824
6794
  }
6825
6795
  pauseScanning() {
6826
- return this._proxy.pauseSparkScanViewScanning();
6796
+ if (!this.isViewCreated) {
6797
+ return Promise.resolve(); // No updates if view not created yet
6798
+ }
6799
+ return this._proxy.$pauseSparkScanViewScanning({ viewId: this.viewInstanceId });
6827
6800
  }
6828
6801
  startScanning() {
6829
- return this._proxy.startSparkScanViewScanning();
6802
+ if (!this.isViewCreated) {
6803
+ return Promise.resolve(); // No updates if view not created yet
6804
+ }
6805
+ return this._proxy.$startSparkScanViewScanning({ viewId: this.viewInstanceId });
6830
6806
  }
6831
6807
  prepareScanning() {
6832
- return this._proxy.prepareSparkScanViewScanning();
6808
+ if (!this.isViewCreated) {
6809
+ return Promise.resolve(); // No updates if view not created yet
6810
+ }
6811
+ return this._proxy.$prepareSparkScanViewScanning({ viewId: this.viewInstanceId });
6833
6812
  }
6834
6813
  showToast(text) {
6835
- return this._proxy.showToast(text);
6814
+ if (!this.isViewCreated) {
6815
+ return Promise.resolve(); // No updates if view not created yet
6816
+ }
6817
+ return this._proxy.$showSparkScanViewToast({ viewId: this.viewInstanceId, text: text });
6836
6818
  }
6837
- show() {
6838
- return this._proxy.showSparkScanView ? this._proxy.showSparkScanView() : Promise.resolve();
6819
+ showView() {
6820
+ if (!this.isViewCreated) {
6821
+ return Promise.resolve(); // No updates if view not created yet
6822
+ }
6823
+ return this._proxy.$showSparkScanView({ viewId: this.viewInstanceId });
6839
6824
  }
6840
- hide() {
6841
- return this._proxy.hideSparkScanView ? this._proxy.hideSparkScanView() : Promise.resolve();
6825
+ hideView() {
6826
+ if (!this.isViewCreated) {
6827
+ return Promise.resolve(); // No updates if view not created yet
6828
+ }
6829
+ return this._proxy.$hideSparkScanView({ viewId: this.viewInstanceId });
6842
6830
  }
6843
6831
  addFeedbackDelegate() {
6844
- if (this.hasFeedbackDelegateListener) {
6832
+ if (!this.isViewCreated)
6833
+ return; // view not created yet
6834
+ if (this.hasFeedbackDelegateListener)
6845
6835
  return;
6836
+ this._proxy.$registerSparkScanFeedbackDelegateForEvents({ viewId: this.viewInstanceId });
6837
+ this.hasFeedbackDelegateListener = true;
6838
+ }
6839
+ removeFeedbackDelegate() {
6840
+ if (!this.isViewCreated)
6841
+ return; // view not created yet
6842
+ if (!this.hasFeedbackDelegateListener)
6843
+ return;
6844
+ this._proxy.$unregisterSparkScanFeedbackDelegateForEvents({ viewId: this.viewInstanceId });
6845
+ this.hasFeedbackDelegateListener = false;
6846
+ }
6847
+ resetSession() {
6848
+ if (!this.isViewCreated) {
6849
+ return Promise.resolve(); // view not created yet
6846
6850
  }
6847
- this._proxy.registerDelegateForEvents();
6848
- this.eventEmitter.on(SparkScanFeedbackDelegateEvents.feedbackForBarcode, (data) => {
6851
+ return this._proxy.$resetSparkScanSession({ viewId: this.viewInstanceId });
6852
+ }
6853
+ updateMode() {
6854
+ if (!this.isViewCreated) {
6855
+ return Promise.resolve(); // No updates if view not created yet
6856
+ }
6857
+ const sparkScanJson = this.sparkScan.toJSON();
6858
+ const json = JSON.stringify(sparkScanJson);
6859
+ return this._proxy.$updateSparkScanMode({ viewId: this.viewInstanceId, modeJson: json });
6860
+ }
6861
+ subscribeModeListener() {
6862
+ if (!this.isViewCreated)
6863
+ return; // view not created yet
6864
+ if (this.hasNativeModeListenerSubscriptions)
6865
+ return;
6866
+ this._proxy.$registerSparkScanListenerForEvents({ viewId: this.viewInstanceId });
6867
+ this.hasNativeModeListenerSubscriptions = true;
6868
+ }
6869
+ unsubscribeModeListener() {
6870
+ if (!this.isViewCreated)
6871
+ return; // view not created yet
6872
+ if (this.hasNativeModeListenerSubscriptions == false)
6873
+ return;
6874
+ this._proxy.$unregisterSparkScanListenerForEvents({ viewId: this.viewInstanceId });
6875
+ this.hasNativeModeListenerSubscriptions = false;
6876
+ }
6877
+ setModeEnabledState(enabled) {
6878
+ if (!this.isViewCreated)
6879
+ return; // view not created yet
6880
+ this._proxy.$setSparkScanModeEnabledState({ viewId: this.viewInstanceId, isEnabled: enabled });
6881
+ }
6882
+ get isViewCreated() {
6883
+ return this.viewInstanceId !== -1;
6884
+ }
6885
+ handleFeedbackForBarcode(ev) {
6886
+ return __awaiter(this, void 0, void 0, function* () {
6849
6887
  var _a, _b;
6850
- const payload = EventDataParser.parse(data);
6888
+ const payload = EventDataParser.parse(ev.data);
6851
6889
  if (payload === null) {
6852
6890
  console.error('SparkScanViewController feedbackForBarcode payload is null');
6853
6891
  return;
6854
6892
  }
6893
+ if (payload.viewId !== this.viewInstanceId) {
6894
+ return;
6895
+ }
6855
6896
  const barcode = Barcode.fromJSON(JSON.parse(payload.barcode));
6856
- const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a === undefined ? undefined : _a.feedbackForBarcode) === null || _b === undefined ? undefined : _b.call(_a, barcode);
6897
+ const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a === void 0 ? void 0 : _a.feedbackForBarcode) === null || _b === void 0 ? void 0 : _b.call(_a, barcode);
6857
6898
  if (feedback instanceof Promise) {
6858
6899
  feedback.then((feedback) => {
6859
- this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === undefined ? undefined : feedback.toJSON()));
6900
+ this._proxy.$submitSparkScanFeedbackForBarcode({ viewId: this.viewInstanceId, feedbackJson: JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()) });
6860
6901
  });
6861
6902
  }
6862
6903
  else {
6863
- this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === undefined ? undefined : feedback.toJSON()));
6904
+ this._proxy.$submitSparkScanFeedbackForBarcode({ viewId: this.viewInstanceId, feedbackJson: JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()) });
6864
6905
  }
6865
6906
  });
6866
- this.hasFeedbackDelegateListener = true;
6867
6907
  }
6868
- removeFeedbackDelegate() {
6869
- if (!this.hasFeedbackDelegateListener) {
6870
- return;
6871
- }
6872
- this._proxy.unregisterDelegateForEvents();
6873
- this.eventEmitter.off(SparkScanFeedbackDelegateEvents.feedbackForBarcode);
6874
- this.hasFeedbackDelegateListener = false;
6908
+ notifyListenersOfDidUpdateSession(session) {
6909
+ return __awaiter(this, void 0, void 0, function* () {
6910
+ const mode = this.sparkScan;
6911
+ mode.isInListenerCallback = true;
6912
+ for (const listener of mode.listeners) {
6913
+ if (listener.didUpdateSession) {
6914
+ yield listener.didUpdateSession(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
6915
+ }
6916
+ }
6917
+ mode.isInListenerCallback = false;
6918
+ });
6919
+ }
6920
+ notifyListenersOfDidScan(session) {
6921
+ return __awaiter(this, void 0, void 0, function* () {
6922
+ const mode = this.sparkScan;
6923
+ mode.isInListenerCallback = true;
6924
+ for (const listener of mode.listeners) {
6925
+ if (listener.didScan) {
6926
+ yield listener.didScan(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
6927
+ }
6928
+ }
6929
+ mode.isInListenerCallback = false;
6930
+ });
6875
6931
  }
6876
6932
  }
6877
6933
 
6878
6934
  class BaseSparkScanView {
6879
- static forContext(context, sparkScan, settings, autoCreateNativeView = true) {
6880
- const view = new BaseSparkScanView({ context, sparkScan, settings, autoCreateNativeView });
6935
+ get viewId() {
6936
+ return this._viewId;
6937
+ }
6938
+ get uiListener() {
6939
+ return this._uiListener;
6940
+ }
6941
+ set uiListener(listener) {
6942
+ this._uiListener = listener;
6943
+ if (listener) {
6944
+ this._controller.subscribeViewListeners();
6945
+ }
6946
+ else {
6947
+ this._controller.unsubscribeViewListeners();
6948
+ }
6949
+ }
6950
+ static forContext(context, sparkScan, settings) {
6951
+ const view = new BaseSparkScanView({ context, sparkScan, settings });
6881
6952
  return view;
6882
6953
  }
6883
- static withProps(props, autoCreateNativeView = true) {
6954
+ static withProps(props) {
6884
6955
  const view = new BaseSparkScanView({
6885
6956
  context: props.context,
6886
6957
  sparkScan: props.sparkScan,
6887
6958
  settings: props.sparkScanViewSettings,
6888
- autoCreateNativeView
6889
6959
  });
6890
6960
  if (props.uiListener) {
6891
6961
  view.uiListener = props.uiListener;
@@ -6949,16 +7019,15 @@ class BaseSparkScanView {
6949
7019
  static get defaultBrush() {
6950
7020
  return BaseSparkScanView.sparkScanDefaults.SparkScanView.brush;
6951
7021
  }
6952
- constructor({ context, sparkScan, settings, autoCreateNativeView }) {
6953
- this.viewId = null;
6954
- this.uiListener = null;
7022
+ constructor({ context, sparkScan, settings }) {
7023
+ this._viewId = -1; // -1 means the view is not created yet
7024
+ this._uiListener = null;
6955
7025
  this._brush = BaseSparkScanView.defaultBrush;
6956
7026
  this._feedbackDelegate = null;
6957
7027
  this._previewSizeControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewSizeControlVisible;
6958
7028
  this._cameraSwitchButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.cameraSwitchButtonVisible;
6959
7029
  this._scanningBehaviorButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.scanningBehaviorButtonVisible;
6960
7030
  this._barcodeCountButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeCountButtonVisible;
6961
- this._fastFindButtonVisible = false;
6962
7031
  this._barcodeFindButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeFindButtonVisible;
6963
7032
  this._targetModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.targetModeButtonVisible;
6964
7033
  this._toolbarBackgroundColor = BaseSparkScanView.sparkScanDefaults.SparkScanView.toolbarBackgroundColor;
@@ -6974,8 +7043,8 @@ class BaseSparkScanView {
6974
7043
  this._previewCloseControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewSizeControlVisible;
6975
7044
  this._sparkScan = sparkScan;
6976
7045
  this.context = context;
6977
- this._viewSettings = settings !== null && settings !== undefined ? settings : new SparkScanViewSettings();
6978
- this._controller = SparkScanViewController.forSparkScanView(this, sparkScan, autoCreateNativeView);
7046
+ this._viewSettings = settings !== null && settings !== void 0 ? settings : new SparkScanViewSettings();
7047
+ this._controller = SparkScanViewController.forSparkScanView(this, sparkScan);
6979
7048
  }
6980
7049
  get previewSizeControlVisible() {
6981
7050
  return this._previewSizeControlVisible;
@@ -6993,7 +7062,6 @@ class BaseSparkScanView {
6993
7062
  /**
6994
7063
  * @deprecated The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.
6995
7064
  */
6996
- // @ts-ignore
6997
7065
  set torchButtonVisible(newValue) {
6998
7066
  console.warn('The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.');
6999
7067
  }
@@ -7048,7 +7116,6 @@ class BaseSparkScanView {
7048
7116
  /**
7049
7117
  * @deprecated The trigger button no longer displays text.
7050
7118
  */
7051
- // @ts-ignore
7052
7119
  set stopCapturingText(newValue) {
7053
7120
  console.warn('The trigger button no longer displays text.');
7054
7121
  }
@@ -7061,7 +7128,6 @@ class BaseSparkScanView {
7061
7128
  /**
7062
7129
  * @deprecated The trigger button no longer displays text.
7063
7130
  */
7064
- // @ts-ignore
7065
7131
  set startCapturingText(newValue) {
7066
7132
  console.warn('The trigger button no longer displays text.');
7067
7133
  }
@@ -7074,7 +7140,6 @@ class BaseSparkScanView {
7074
7140
  /**
7075
7141
  * @deprecated The trigger button no longer displays text.
7076
7142
  */
7077
- // @ts-ignore
7078
7143
  set resumeCapturingText(newValue) {
7079
7144
  console.warn('The trigger button no longer displays text.');
7080
7145
  }
@@ -7087,7 +7152,6 @@ class BaseSparkScanView {
7087
7152
  /**
7088
7153
  * @deprecated The trigger button no longer displays text.
7089
7154
  */
7090
- // @ts-ignore
7091
7155
  set scanningCapturingText(newValue) {
7092
7156
  console.warn('The trigger button no longer displays text.');
7093
7157
  }
@@ -7100,7 +7164,6 @@ class BaseSparkScanView {
7100
7164
  /**
7101
7165
  * @deprecated This property is not relevant anymore.
7102
7166
  */
7103
- // @ts-ignore
7104
7167
  set captureButtonActiveBackgroundColor(newValue) {
7105
7168
  console.warn('captureButtonActiveBackgroundColor is deprecated.');
7106
7169
  }
@@ -7113,7 +7176,6 @@ class BaseSparkScanView {
7113
7176
  /**
7114
7177
  * @deprecated Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.
7115
7178
  */
7116
- // @ts-ignore
7117
7179
  set captureButtonBackgroundColor(newValue) {
7118
7180
  console.warn('captureButtonBackgroundColor is deprecated. ' +
7119
7181
  'Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.');
@@ -7127,7 +7189,6 @@ class BaseSparkScanView {
7127
7189
  /**
7128
7190
  * @deprecated use triggerButtonTintColor instead.
7129
7191
  */
7130
- // @ts-ignore
7131
7192
  set captureButtonTintColor(newValue) {
7132
7193
  console.warn('triggerButtonTintColor is deprecated. Use triggerButtonTintColor instead.');
7133
7194
  }
@@ -7217,7 +7278,7 @@ class BaseSparkScanView {
7217
7278
  this._controller.stopScanning();
7218
7279
  }
7219
7280
  update() {
7220
- return this._controller.update();
7281
+ return this._controller.updateView();
7221
7282
  }
7222
7283
  dispose() {
7223
7284
  this._controller.dispose();
@@ -7228,6 +7289,10 @@ class BaseSparkScanView {
7228
7289
  hide() {
7229
7290
  return this._hide();
7230
7291
  }
7292
+ createNativeView(viewId) {
7293
+ this._viewId = viewId;
7294
+ return this._controller.createView();
7295
+ }
7231
7296
  get feedbackDelegate() {
7232
7297
  return this._feedbackDelegate;
7233
7298
  }
@@ -7240,17 +7305,99 @@ class BaseSparkScanView {
7240
7305
  this._controller.addFeedbackDelegate();
7241
7306
  }
7242
7307
  }
7308
+ updateWithProps(prevProps, props) {
7309
+ // Update UI Listener
7310
+ if (props.uiListener !== prevProps.uiListener) {
7311
+ this.uiListener = props.uiListener || null;
7312
+ }
7313
+ // Update visibility controls
7314
+ if (props.previewSizeControlVisible !== prevProps.previewSizeControlVisible &&
7315
+ props.previewSizeControlVisible !== undefined) {
7316
+ this.previewSizeControlVisible = props.previewSizeControlVisible;
7317
+ }
7318
+ if (props.scanningBehaviorButtonVisible !== prevProps.scanningBehaviorButtonVisible &&
7319
+ props.scanningBehaviorButtonVisible !== undefined) {
7320
+ this.scanningBehaviorButtonVisible = props.scanningBehaviorButtonVisible;
7321
+ }
7322
+ if (props.barcodeCountButtonVisible !== prevProps.barcodeCountButtonVisible &&
7323
+ props.barcodeCountButtonVisible !== undefined) {
7324
+ this.barcodeCountButtonVisible = props.barcodeCountButtonVisible;
7325
+ }
7326
+ if (props.barcodeFindButtonVisible !== prevProps.barcodeFindButtonVisible &&
7327
+ props.barcodeFindButtonVisible !== undefined) {
7328
+ this.barcodeFindButtonVisible = props.barcodeFindButtonVisible;
7329
+ }
7330
+ if (props.targetModeButtonVisible !== prevProps.targetModeButtonVisible &&
7331
+ props.targetModeButtonVisible !== undefined) {
7332
+ this.targetModeButtonVisible = props.targetModeButtonVisible;
7333
+ }
7334
+ if (props.cameraSwitchButtonVisible !== prevProps.cameraSwitchButtonVisible &&
7335
+ props.cameraSwitchButtonVisible !== undefined) {
7336
+ this.cameraSwitchButtonVisible = props.cameraSwitchButtonVisible;
7337
+ }
7338
+ if (props.torchControlVisible !== prevProps.torchControlVisible &&
7339
+ props.torchControlVisible !== undefined) {
7340
+ this.torchControlVisible = props.torchControlVisible;
7341
+ }
7342
+ if (props.previewCloseControlVisible !== prevProps.previewCloseControlVisible &&
7343
+ props.previewCloseControlVisible !== undefined) {
7344
+ this.previewCloseControlVisible = props.previewCloseControlVisible;
7345
+ }
7346
+ if (props.triggerButtonVisible !== prevProps.triggerButtonVisible &&
7347
+ props.triggerButtonVisible !== undefined) {
7348
+ this.triggerButtonVisible = props.triggerButtonVisible;
7349
+ }
7350
+ // Update color customizations
7351
+ if (props.toolbarBackgroundColor !== prevProps.toolbarBackgroundColor &&
7352
+ props.toolbarBackgroundColor !== undefined) {
7353
+ this.toolbarBackgroundColor = props.toolbarBackgroundColor;
7354
+ }
7355
+ if (props.toolbarIconActiveTintColor !== prevProps.toolbarIconActiveTintColor &&
7356
+ props.toolbarIconActiveTintColor !== undefined) {
7357
+ this.toolbarIconActiveTintColor = props.toolbarIconActiveTintColor;
7358
+ }
7359
+ if (props.toolbarIconInactiveTintColor !== prevProps.toolbarIconInactiveTintColor &&
7360
+ props.toolbarIconInactiveTintColor !== undefined) {
7361
+ this.toolbarIconInactiveTintColor = props.toolbarIconInactiveTintColor;
7362
+ }
7363
+ if (props.triggerButtonAnimationColor !== prevProps.triggerButtonAnimationColor &&
7364
+ props.triggerButtonAnimationColor !== undefined) {
7365
+ this.triggerButtonAnimationColor = props.triggerButtonAnimationColor;
7366
+ }
7367
+ if (props.triggerButtonExpandedColor !== prevProps.triggerButtonExpandedColor &&
7368
+ props.triggerButtonExpandedColor !== undefined) {
7369
+ this.triggerButtonExpandedColor = props.triggerButtonExpandedColor;
7370
+ }
7371
+ if (props.triggerButtonCollapsedColor !== prevProps.triggerButtonCollapsedColor &&
7372
+ props.triggerButtonCollapsedColor !== undefined) {
7373
+ this.triggerButtonCollapsedColor = props.triggerButtonCollapsedColor;
7374
+ }
7375
+ if (props.triggerButtonTintColor !== prevProps.triggerButtonTintColor &&
7376
+ props.triggerButtonTintColor !== undefined) {
7377
+ this.triggerButtonTintColor = props.triggerButtonTintColor;
7378
+ }
7379
+ // Update image customizations
7380
+ if (props.triggerButtonImage !== prevProps.triggerButtonImage &&
7381
+ props.triggerButtonImage !== undefined) {
7382
+ this.triggerButtonImage = props.triggerButtonImage;
7383
+ }
7384
+ // Update feedback delegate
7385
+ if (props.feedbackDelegate !== prevProps.feedbackDelegate &&
7386
+ props.feedbackDelegate !== undefined) {
7387
+ this.feedbackDelegate = props.feedbackDelegate;
7388
+ }
7389
+ }
7243
7390
  _show() {
7244
7391
  if (!this.context) {
7245
7392
  throw new Error('There should be a context attached to a view that should be shown');
7246
7393
  }
7247
- return this._controller.show();
7394
+ return this._controller.showView();
7248
7395
  }
7249
7396
  _hide() {
7250
7397
  if (!this.context) {
7251
7398
  throw new Error('There should be a context attached to a view that should be shown');
7252
7399
  }
7253
- return this._controller.hide();
7400
+ return this._controller.hideView();
7254
7401
  }
7255
7402
  static get sparkScanDefaults() {
7256
7403
  return getSparkScanDefaults();
@@ -7280,10 +7427,11 @@ class BaseSparkScanView {
7280
7427
  triggerButtonImage: this.triggerButtonImage,
7281
7428
  torchControlVisible: this.torchControlVisible,
7282
7429
  previewCloseControlVisible: this.previewCloseControlVisible,
7430
+ hasUiListener: this.uiListener !== null,
7283
7431
  viewId: this.viewId,
7284
7432
  };
7285
7433
  if (this._viewSettings != null) {
7286
- json.viewSettings = (_a = this._viewSettings) === null || _a === undefined ? undefined : _a.toJSON();
7434
+ json.viewSettings = (_a = this._viewSettings) === null || _a === void 0 ? void 0 : _a.toJSON();
7287
7435
  }
7288
7436
  return json;
7289
7437
  }
@@ -7331,7 +7479,7 @@ class SparkScanBarcodeErrorFeedback extends SparkScanBarcodeFeedback {
7331
7479
  }
7332
7480
  __decorate([
7333
7481
  nameForSerialization('barcodeFeedback')
7334
- ], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback", undefined);
7482
+ ], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback", void 0);
7335
7483
  __decorate([
7336
7484
  ignoreFromSerialization
7337
7485
  ], SparkScanBarcodeErrorFeedback, "sparkScanDefaults", null);
@@ -7370,7 +7518,7 @@ class SparkScanBarcodeSuccessFeedback extends SparkScanBarcodeFeedback {
7370
7518
  }
7371
7519
  __decorate([
7372
7520
  nameForSerialization('barcodeFeedback')
7373
- ], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback", undefined);
7521
+ ], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback", void 0);
7374
7522
  __decorate([
7375
7523
  ignoreFromSerialization
7376
7524
  ], SparkScanBarcodeSuccessFeedback, "sparkScanDefaults", null);
@@ -7503,19 +7651,19 @@ class BarcodePick extends DefaultSerializeable {
7503
7651
  }
7504
7652
  __decorate([
7505
7653
  ignoreFromSerialization
7506
- ], BarcodePick.prototype, "privateContext", undefined);
7654
+ ], BarcodePick.prototype, "privateContext", void 0);
7507
7655
  __decorate([
7508
7656
  ignoreFromSerialization
7509
- ], BarcodePick.prototype, "_listenerController", undefined);
7657
+ ], BarcodePick.prototype, "_listenerController", void 0);
7510
7658
  __decorate([
7511
7659
  ignoreFromSerialization
7512
- ], BarcodePick.prototype, "listeners", undefined);
7660
+ ], BarcodePick.prototype, "listeners", void 0);
7513
7661
  __decorate([
7514
7662
  nameForSerialization('settings')
7515
- ], BarcodePick.prototype, "_settings", undefined);
7663
+ ], BarcodePick.prototype, "_settings", void 0);
7516
7664
  __decorate([
7517
7665
  nameForSerialization('ProductProvider')
7518
- ], BarcodePick.prototype, "_productProvider", undefined);
7666
+ ], BarcodePick.prototype, "_productProvider", void 0);
7519
7667
  __decorate([
7520
7668
  ignoreFromSerialization
7521
7669
  ], BarcodePick, "barcodePickDefaults", null);
@@ -7555,7 +7703,7 @@ class BarcodePickViewController extends BaseController {
7555
7703
  super('BarcodePickViewProxy');
7556
7704
  }
7557
7705
  initialize(autoCreateNativeView) {
7558
- return __awaiter(this, undefined, undefined, function* () {
7706
+ return __awaiter(this, void 0, void 0, function* () {
7559
7707
  // We call update because it returns a promise, this guarantees, that by the time
7560
7708
  // we need the deserialized context, it will be set in the native layer.
7561
7709
  yield this.view.context.update();
@@ -7587,7 +7735,7 @@ class BarcodePickViewController extends BaseController {
7587
7735
  }
7588
7736
  removeNativeView() {
7589
7737
  var _a, _b, _c;
7590
- return (_c = (_b = (_a = this._proxy).removeView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
7738
+ return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
7591
7739
  }
7592
7740
  create() {
7593
7741
  const barcodePickView = this.view.toJSON();
@@ -7599,7 +7747,7 @@ class BarcodePickViewController extends BaseController {
7599
7747
  this.unsubscribeListeners();
7600
7748
  }
7601
7749
  setUiListener(listener) {
7602
- return __awaiter(this, undefined, undefined, function* () {
7750
+ return __awaiter(this, void 0, void 0, function* () {
7603
7751
  if (listener) {
7604
7752
  yield this._proxy.subscribeBarcodePickViewUiListener();
7605
7753
  }
@@ -7639,7 +7787,7 @@ class BarcodePickViewController extends BaseController {
7639
7787
  if (!this.view.uiListener) {
7640
7788
  return;
7641
7789
  }
7642
- (_b = (_a = this.view) === null || _a === undefined ? undefined : _a.uiListener) === null || _b === undefined ? undefined : _b.didTapFinishButton(this);
7790
+ (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.uiListener) === null || _b === void 0 ? void 0 : _b.didTapFinishButton(this);
7643
7791
  });
7644
7792
  this.eventEmitter.on(BarcodePickViewListenerEvents.DidStartScanning, () => {
7645
7793
  this.view.listeners
@@ -7721,22 +7869,16 @@ class BarcodePickAsyncMapperProductProvider extends DefaultSerializeable {
7721
7869
  }
7722
7870
  __decorate([
7723
7871
  ignoreFromSerialization
7724
- ], BarcodePickAsyncMapperProductProvider.prototype, "_callback", undefined);
7872
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_callback", void 0);
7725
7873
  __decorate([
7726
7874
  ignoreFromSerialization
7727
- ], BarcodePickAsyncMapperProductProvider.prototype, "_productController", undefined);
7875
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_productController", void 0);
7728
7876
  __decorate([
7729
7877
  ignoreFromSerialization
7730
- ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick", undefined);
7878
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick", void 0);
7731
7879
  __decorate([
7732
7880
  nameForSerialization('products')
7733
- ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization", undefined);
7734
-
7735
- var BarcodePickIconStyle;
7736
- (function (BarcodePickIconStyle) {
7737
- BarcodePickIconStyle["Preset_1"] = "preset1";
7738
- BarcodePickIconStyle["Preset_2"] = "preset2";
7739
- })(BarcodePickIconStyle || (BarcodePickIconStyle = {}));
7881
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization", void 0);
7740
7882
 
7741
7883
  class BarcodePickProduct extends DefaultSerializeable {
7742
7884
  constructor(identifier, quantityToPick) {
@@ -7753,10 +7895,10 @@ class BarcodePickProduct extends DefaultSerializeable {
7753
7895
  }
7754
7896
  __decorate([
7755
7897
  nameForSerialization('identifier')
7756
- ], BarcodePickProduct.prototype, "_identifier", undefined);
7898
+ ], BarcodePickProduct.prototype, "_identifier", void 0);
7757
7899
  __decorate([
7758
7900
  nameForSerialization('quantityToPick')
7759
- ], BarcodePickProduct.prototype, "_quantityToPick", undefined);
7901
+ ], BarcodePickProduct.prototype, "_quantityToPick", void 0);
7760
7902
 
7761
7903
  class BarcodePickProductProviderCallback {
7762
7904
  // eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
@@ -7780,10 +7922,10 @@ class BarcodePickProductProviderCallbackItem extends DefaultSerializeable {
7780
7922
  }
7781
7923
  __decorate([
7782
7924
  nameForSerialization('itemData')
7783
- ], BarcodePickProductProviderCallbackItem.prototype, "_itemData", undefined);
7925
+ ], BarcodePickProductProviderCallbackItem.prototype, "_itemData", void 0);
7784
7926
  __decorate([
7785
7927
  nameForSerialization('productIdentifier')
7786
- ], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier", undefined);
7928
+ ], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier", void 0);
7787
7929
 
7788
7930
  class BarcodePickSettings extends DefaultSerializeable {
7789
7931
  static get barcodePickDefaults() {
@@ -7846,16 +7988,16 @@ class BarcodePickSettings extends DefaultSerializeable {
7846
7988
  }
7847
7989
  __decorate([
7848
7990
  nameForSerialization('soundEnabled')
7849
- ], BarcodePickSettings.prototype, "_soundEnabled", undefined);
7991
+ ], BarcodePickSettings.prototype, "_soundEnabled", void 0);
7850
7992
  __decorate([
7851
7993
  nameForSerialization('hapticEnabled')
7852
- ], BarcodePickSettings.prototype, "_hapticsEnabled", undefined);
7994
+ ], BarcodePickSettings.prototype, "_hapticsEnabled", void 0);
7853
7995
  __decorate([
7854
7996
  nameForSerialization('cachingEnabled')
7855
- ], BarcodePickSettings.prototype, "_cachingEnabled", undefined);
7997
+ ], BarcodePickSettings.prototype, "_cachingEnabled", void 0);
7856
7998
  __decorate([
7857
7999
  nameForSerialization('arucoDictionary')
7858
- ], BarcodePickSettings.prototype, "_arucoDictionary", undefined);
8000
+ ], BarcodePickSettings.prototype, "_arucoDictionary", void 0);
7859
8001
  __decorate([
7860
8002
  ignoreFromSerialization
7861
8003
  ], BarcodePickSettings, "barcodePickDefaults", null);
@@ -7903,7 +8045,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
7903
8045
  this.viewController = BarcodePickViewController.forBarcodePick(this, nativeView, this.autoCreateNativeView);
7904
8046
  }
7905
8047
  createNativeView() {
7906
- return __awaiter(this, undefined, undefined, function* () {
8048
+ return __awaiter(this, void 0, void 0, function* () {
7907
8049
  if (this.isViewCreated) {
7908
8050
  return Promise.resolve();
7909
8051
  }
@@ -7912,7 +8054,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
7912
8054
  });
7913
8055
  }
7914
8056
  removeNativeView() {
7915
- return __awaiter(this, undefined, undefined, function* () {
8057
+ return __awaiter(this, void 0, void 0, function* () {
7916
8058
  yield this.viewController.removeNativeView();
7917
8059
  this.isViewCreated = false;
7918
8060
  });
@@ -7988,28 +8130,28 @@ class BaseBarcodePickView extends DefaultSerializeable {
7988
8130
  }
7989
8131
  __decorate([
7990
8132
  ignoreFromSerialization
7991
- ], BaseBarcodePickView.prototype, "viewController", undefined);
8133
+ ], BaseBarcodePickView.prototype, "viewController", void 0);
7992
8134
  __decorate([
7993
8135
  ignoreFromSerialization
7994
- ], BaseBarcodePickView.prototype, "actionListeners", undefined);
8136
+ ], BaseBarcodePickView.prototype, "actionListeners", void 0);
7995
8137
  __decorate([
7996
8138
  ignoreFromSerialization
7997
- ], BaseBarcodePickView.prototype, "listeners", undefined);
8139
+ ], BaseBarcodePickView.prototype, "listeners", void 0);
7998
8140
  __decorate([
7999
8141
  nameForSerialization('isStarted')
8000
- ], BaseBarcodePickView.prototype, "isStarted", undefined);
8142
+ ], BaseBarcodePickView.prototype, "isStarted", void 0);
8001
8143
  __decorate([
8002
8144
  ignoreFromSerialization
8003
- ], BaseBarcodePickView.prototype, "_context", undefined);
8145
+ ], BaseBarcodePickView.prototype, "_context", void 0);
8004
8146
  __decorate([
8005
8147
  ignoreFromSerialization
8006
- ], BaseBarcodePickView.prototype, "isViewCreated", undefined);
8148
+ ], BaseBarcodePickView.prototype, "isViewCreated", void 0);
8007
8149
  __decorate([
8008
8150
  ignoreFromSerialization
8009
- ], BaseBarcodePickView.prototype, "autoCreateNativeView", undefined);
8151
+ ], BaseBarcodePickView.prototype, "autoCreateNativeView", void 0);
8010
8152
  __decorate([
8011
8153
  ignoreFromSerialization
8012
- ], BaseBarcodePickView.prototype, "_barcodePickViewUiListener", undefined);
8154
+ ], BaseBarcodePickView.prototype, "_barcodePickViewUiListener", void 0);
8013
8155
 
8014
8156
  class BarcodePickViewSettings extends DefaultSerializeable {
8015
8157
  static get barcodePickDefaults() {
@@ -8022,7 +8164,8 @@ class BarcodePickViewSettings extends DefaultSerializeable {
8022
8164
  this._showFinishButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showFinishButton;
8023
8165
  this._showPauseButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showPauseButton;
8024
8166
  this._showZoomButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showZoomButton;
8025
- this._loadingDialogText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.loadingDialogText;
8167
+ this._loadingDialogTextForPicking = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.loadingDialogTextForPicking;
8168
+ this._loadingDialogTextForUnpicking = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.loadingDialogTextForUnpicking;
8026
8169
  this._showGuidelines = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showGuidelines;
8027
8170
  this._initialGuidelineText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.initialGuidelineText;
8028
8171
  this._moveCloserGuidelineText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.moveCloserGuidelineText;
@@ -8062,11 +8205,17 @@ class BarcodePickViewSettings extends DefaultSerializeable {
8062
8205
  set showZoomButton(show) {
8063
8206
  this._showZoomButton = show;
8064
8207
  }
8065
- get loadingDialogText() {
8066
- return this._loadingDialogText;
8208
+ get loadingDialogTextForPicking() {
8209
+ return this._loadingDialogTextForPicking;
8210
+ }
8211
+ set loadingDialogTextForPicking(text) {
8212
+ this._loadingDialogTextForPicking = text;
8067
8213
  }
8068
- set loadingDialogText(text) {
8069
- this._loadingDialogText = text;
8214
+ get loadingDialogTextForUnpicking() {
8215
+ return this._loadingDialogTextForUnpicking;
8216
+ }
8217
+ set loadingDialogTextForUnpicking(text) {
8218
+ this._loadingDialogTextForUnpicking = text;
8070
8219
  }
8071
8220
  get showGuidelines() {
8072
8221
  return this._showGuidelines;
@@ -8119,46 +8268,49 @@ class BarcodePickViewSettings extends DefaultSerializeable {
8119
8268
  }
8120
8269
  __decorate([
8121
8270
  nameForSerialization('highlightStyle')
8122
- ], BarcodePickViewSettings.prototype, "_highlightStyle", undefined);
8271
+ ], BarcodePickViewSettings.prototype, "_highlightStyle", void 0);
8123
8272
  __decorate([
8124
8273
  nameForSerialization('shouldShowLoadingDialog')
8125
- ], BarcodePickViewSettings.prototype, "_showLoadingDialog", undefined);
8274
+ ], BarcodePickViewSettings.prototype, "_showLoadingDialog", void 0);
8126
8275
  __decorate([
8127
8276
  nameForSerialization('showFinishButton')
8128
- ], BarcodePickViewSettings.prototype, "_showFinishButton", undefined);
8277
+ ], BarcodePickViewSettings.prototype, "_showFinishButton", void 0);
8129
8278
  __decorate([
8130
8279
  nameForSerialization('showPauseButton')
8131
- ], BarcodePickViewSettings.prototype, "_showPauseButton", undefined);
8280
+ ], BarcodePickViewSettings.prototype, "_showPauseButton", void 0);
8132
8281
  __decorate([
8133
8282
  nameForSerialization('showZoomButton')
8134
- ], BarcodePickViewSettings.prototype, "_showZoomButton", undefined);
8283
+ ], BarcodePickViewSettings.prototype, "_showZoomButton", void 0);
8284
+ __decorate([
8285
+ nameForSerialization('showLoadingDialogTextForPicking')
8286
+ ], BarcodePickViewSettings.prototype, "_loadingDialogTextForPicking", void 0);
8135
8287
  __decorate([
8136
- nameForSerialization('showLoadingDialogText')
8137
- ], BarcodePickViewSettings.prototype, "_loadingDialogText", undefined);
8288
+ nameForSerialization('showLoadingDialogTextForUnpicking')
8289
+ ], BarcodePickViewSettings.prototype, "_loadingDialogTextForUnpicking", void 0);
8138
8290
  __decorate([
8139
8291
  nameForSerialization('shouldShowGuidelines')
8140
- ], BarcodePickViewSettings.prototype, "_showGuidelines", undefined);
8292
+ ], BarcodePickViewSettings.prototype, "_showGuidelines", void 0);
8141
8293
  __decorate([
8142
8294
  nameForSerialization('initialGuidelineText')
8143
- ], BarcodePickViewSettings.prototype, "_initialGuidelineText", undefined);
8295
+ ], BarcodePickViewSettings.prototype, "_initialGuidelineText", void 0);
8144
8296
  __decorate([
8145
8297
  nameForSerialization('moveCloserGuidelineText')
8146
- ], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText", undefined);
8298
+ ], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText", void 0);
8147
8299
  __decorate([
8148
8300
  nameForSerialization('shouldShowHints')
8149
- ], BarcodePickViewSettings.prototype, "_showHints", undefined);
8301
+ ], BarcodePickViewSettings.prototype, "_showHints", void 0);
8150
8302
  __decorate([
8151
8303
  nameForSerialization('onFirstItemToPickFoundHintText')
8152
- ], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText", undefined);
8304
+ ], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText", void 0);
8153
8305
  __decorate([
8154
8306
  nameForSerialization('onFirstItemPickCompletedHintText')
8155
- ], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText", undefined);
8307
+ ], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText", void 0);
8156
8308
  __decorate([
8157
8309
  nameForSerialization('onFirstUnmarkedItemPickCompletedHintText')
8158
- ], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText", undefined);
8310
+ ], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText", void 0);
8159
8311
  __decorate([
8160
8312
  nameForSerialization('onFirstItemUnpickCompletedHintText')
8161
- ], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText", undefined);
8313
+ ], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText", void 0);
8162
8314
  __decorate([
8163
8315
  ignoreFromSerialization
8164
8316
  ], BarcodePickViewSettings, "barcodePickDefaults", null);
@@ -8167,10 +8319,10 @@ class BrushForStateObject extends DefaultSerializeable {
8167
8319
  }
8168
8320
  __decorate([
8169
8321
  nameForSerialization('barcodePickState')
8170
- ], BrushForStateObject.prototype, "barcodePickState", undefined);
8322
+ ], BrushForStateObject.prototype, "barcodePickState", void 0);
8171
8323
  __decorate([
8172
8324
  nameForSerialization('brush')
8173
- ], BrushForStateObject.prototype, "brush", undefined);
8325
+ ], BrushForStateObject.prototype, "brush", void 0);
8174
8326
 
8175
8327
  class BarcodePickStatusIconSettings extends DefaultSerializeable {
8176
8328
  constructor() {
@@ -8205,21 +8357,21 @@ class BarcodePickStatusIconSettings extends DefaultSerializeable {
8205
8357
  return null;
8206
8358
  }
8207
8359
  const barcodePickStatusIconSettings = new BarcodePickStatusIconSettings();
8208
- barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json === undefined ? undefined : json.ratioToHighlightSize;
8209
- barcodePickStatusIconSettings._minSize = json === null || json === undefined ? undefined : json.minSize;
8210
- barcodePickStatusIconSettings._maxSize = json === null || json === undefined ? undefined : json.maxSize;
8360
+ barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json === void 0 ? void 0 : json.ratioToHighlightSize;
8361
+ barcodePickStatusIconSettings._minSize = json === null || json === void 0 ? void 0 : json.minSize;
8362
+ barcodePickStatusIconSettings._maxSize = json === null || json === void 0 ? void 0 : json.maxSize;
8211
8363
  return barcodePickStatusIconSettings;
8212
8364
  }
8213
8365
  }
8214
8366
  __decorate([
8215
8367
  nameForSerialization('ratioToHighlightSize')
8216
- ], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize", undefined);
8368
+ ], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize", void 0);
8217
8369
  __decorate([
8218
8370
  nameForSerialization('minSize')
8219
- ], BarcodePickStatusIconSettings.prototype, "_minSize", undefined);
8371
+ ], BarcodePickStatusIconSettings.prototype, "_minSize", void 0);
8220
8372
  __decorate([
8221
8373
  nameForSerialization('maxSize')
8222
- ], BarcodePickStatusIconSettings.prototype, "_maxSize", undefined);
8374
+ ], BarcodePickStatusIconSettings.prototype, "_maxSize", void 0);
8223
8375
  __decorate([
8224
8376
  ignoreFromSerialization
8225
8377
  ], BarcodePickStatusIconSettings, "barcodePickDefaults", null);
@@ -8244,10 +8396,10 @@ class Dot extends DefaultSerializeable {
8244
8396
  }
8245
8397
  __decorate([
8246
8398
  nameForSerialization('type')
8247
- ], Dot.prototype, "_type", undefined);
8399
+ ], Dot.prototype, "_type", void 0);
8248
8400
  __decorate([
8249
8401
  nameForSerialization('brushesForState')
8250
- ], Dot.prototype, "_brushesForState", undefined);
8402
+ ], Dot.prototype, "_brushesForState", void 0);
8251
8403
  __decorate([
8252
8404
  ignoreFromSerialization
8253
8405
  ], Dot, "barcodePickDefaults", null);
@@ -8267,10 +8419,10 @@ class IconForStateObject extends DefaultSerializeable {
8267
8419
  }
8268
8420
  __decorate([
8269
8421
  nameForSerialization('barcodePickState')
8270
- ], IconForStateObject.prototype, "_barcodePickState", undefined);
8422
+ ], IconForStateObject.prototype, "_barcodePickState", void 0);
8271
8423
  __decorate([
8272
8424
  nameForSerialization('icon')
8273
- ], IconForStateObject.prototype, "_icon", undefined);
8425
+ ], IconForStateObject.prototype, "_icon", void 0);
8274
8426
 
8275
8427
  class DotWithIcons extends DefaultSerializeable {
8276
8428
  static get barcodePickDefaults() {
@@ -8282,7 +8434,6 @@ class DotWithIcons extends DefaultSerializeable {
8282
8434
  this._type = 'dotWithIcons';
8283
8435
  this._brushesForState = DotWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.DotWithIcons.brushesForState;
8284
8436
  this._iconsForState = [];
8285
- this._iconStyle = DotWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.DotWithIcons.iconStyle;
8286
8437
  }
8287
8438
  getBrushForState(state) {
8288
8439
  return (this._brushesForState.filter(item => item.barcodePickState === state)[0] || {}).brush;
@@ -8298,25 +8449,16 @@ class DotWithIcons extends DefaultSerializeable {
8298
8449
  }
8299
8450
  this._iconsForState.push(new IconForStateObject(state, image));
8300
8451
  }
8301
- get iconStyle() {
8302
- return this._iconStyle;
8303
- }
8304
- set iconStyle(style) {
8305
- this._iconStyle = style;
8306
- }
8307
8452
  }
8308
8453
  __decorate([
8309
8454
  nameForSerialization('type')
8310
- ], DotWithIcons.prototype, "_type", undefined);
8455
+ ], DotWithIcons.prototype, "_type", void 0);
8311
8456
  __decorate([
8312
8457
  nameForSerialization('brushesForState')
8313
- ], DotWithIcons.prototype, "_brushesForState", undefined);
8458
+ ], DotWithIcons.prototype, "_brushesForState", void 0);
8314
8459
  __decorate([
8315
8460
  nameForSerialization('iconsForState')
8316
- ], DotWithIcons.prototype, "_iconsForState", undefined);
8317
- __decorate([
8318
- nameForSerialization('iconStyle')
8319
- ], DotWithIcons.prototype, "_iconStyle", undefined);
8461
+ ], DotWithIcons.prototype, "_iconsForState", void 0);
8320
8462
  __decorate([
8321
8463
  ignoreFromSerialization
8322
8464
  ], DotWithIcons, "barcodePickDefaults", null);
@@ -8355,16 +8497,16 @@ class Rectangular extends DefaultSerializeable {
8355
8497
  }
8356
8498
  __decorate([
8357
8499
  nameForSerialization('type')
8358
- ], Rectangular.prototype, "_type", undefined);
8500
+ ], Rectangular.prototype, "_type", void 0);
8359
8501
  __decorate([
8360
8502
  nameForSerialization('brushesForState')
8361
- ], Rectangular.prototype, "_brushesForState", undefined);
8503
+ ], Rectangular.prototype, "_brushesForState", void 0);
8362
8504
  __decorate([
8363
8505
  nameForSerialization('minimumHighlightWidth')
8364
- ], Rectangular.prototype, "_minimumHighlightWidth", undefined);
8506
+ ], Rectangular.prototype, "_minimumHighlightWidth", void 0);
8365
8507
  __decorate([
8366
8508
  nameForSerialization('minimumHighlightHeight')
8367
- ], Rectangular.prototype, "_minimumHighlightHeight", undefined);
8509
+ ], Rectangular.prototype, "_minimumHighlightHeight", void 0);
8368
8510
  __decorate([
8369
8511
  ignoreFromSerialization
8370
8512
  ], Rectangular, "barcodePickDefaults", null);
@@ -8379,7 +8521,6 @@ class RectangularWithIcons extends DefaultSerializeable {
8379
8521
  this._type = 'rectangularWithIcons';
8380
8522
  this._brushesForState = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.brushesForState;
8381
8523
  this._iconsForState = [];
8382
- this._iconStyle = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.iconStyle;
8383
8524
  this._minimumHighlightWidth = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.minimumHighlightWidth;
8384
8525
  this._minimumHighlightHeight = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.minimumHighlightHeight;
8385
8526
  }
@@ -8397,12 +8538,6 @@ class RectangularWithIcons extends DefaultSerializeable {
8397
8538
  }
8398
8539
  this._iconsForState.push(new IconForStateObject(state, image));
8399
8540
  }
8400
- get iconStyle() {
8401
- return this._iconStyle;
8402
- }
8403
- set iconStyle(style) {
8404
- this._iconStyle = style;
8405
- }
8406
8541
  get statusIconSettings() {
8407
8542
  return this._statusIconSettings;
8408
8543
  }
@@ -8424,25 +8559,22 @@ class RectangularWithIcons extends DefaultSerializeable {
8424
8559
  }
8425
8560
  __decorate([
8426
8561
  nameForSerialization('type')
8427
- ], RectangularWithIcons.prototype, "_type", undefined);
8562
+ ], RectangularWithIcons.prototype, "_type", void 0);
8428
8563
  __decorate([
8429
8564
  nameForSerialization('brushesForState')
8430
- ], RectangularWithIcons.prototype, "_brushesForState", undefined);
8565
+ ], RectangularWithIcons.prototype, "_brushesForState", void 0);
8431
8566
  __decorate([
8432
8567
  nameForSerialization('iconsForState')
8433
- ], RectangularWithIcons.prototype, "_iconsForState", undefined);
8434
- __decorate([
8435
- nameForSerialization('iconStyle')
8436
- ], RectangularWithIcons.prototype, "_iconStyle", undefined);
8568
+ ], RectangularWithIcons.prototype, "_iconsForState", void 0);
8437
8569
  __decorate([
8438
8570
  nameForSerialization('statusIconSettings')
8439
- ], RectangularWithIcons.prototype, "_statusIconSettings", undefined);
8571
+ ], RectangularWithIcons.prototype, "_statusIconSettings", void 0);
8440
8572
  __decorate([
8441
8573
  nameForSerialization('minimumHighlightWidth')
8442
- ], RectangularWithIcons.prototype, "_minimumHighlightWidth", undefined);
8574
+ ], RectangularWithIcons.prototype, "_minimumHighlightWidth", void 0);
8443
8575
  __decorate([
8444
8576
  nameForSerialization('minimumHighlightHeight')
8445
- ], RectangularWithIcons.prototype, "_minimumHighlightHeight", undefined);
8577
+ ], RectangularWithIcons.prototype, "_minimumHighlightHeight", void 0);
8446
8578
  __decorate([
8447
8579
  ignoreFromSerialization
8448
8580
  ], RectangularWithIcons, "barcodePickDefaults", null);
@@ -8470,7 +8602,7 @@ class BarcodeFindFeedback extends DefaultSerializeable {
8470
8602
  }
8471
8603
  updateFeedback() {
8472
8604
  var _a;
8473
- (_a = this.controller) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
8605
+ (_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
8474
8606
  }
8475
8607
  static get barcodeFindDefaults() {
8476
8608
  return getBarcodeFindDefaults();
@@ -8481,13 +8613,13 @@ class BarcodeFindFeedback extends DefaultSerializeable {
8481
8613
  }
8482
8614
  __decorate([
8483
8615
  ignoreFromSerialization
8484
- ], BarcodeFindFeedback.prototype, "controller", undefined);
8616
+ ], BarcodeFindFeedback.prototype, "controller", void 0);
8485
8617
  __decorate([
8486
8618
  nameForSerialization('found')
8487
- ], BarcodeFindFeedback.prototype, "_found", undefined);
8619
+ ], BarcodeFindFeedback.prototype, "_found", void 0);
8488
8620
  __decorate([
8489
8621
  nameForSerialization('itemListUpdated')
8490
- ], BarcodeFindFeedback.prototype, "_itemListUpdated", undefined);
8622
+ ], BarcodeFindFeedback.prototype, "_itemListUpdated", void 0);
8491
8623
 
8492
8624
  var BarcodeFindListenerEvents;
8493
8625
  (function (BarcodeFindListenerEvents) {
@@ -8526,7 +8658,7 @@ class BarcodeFindController extends BaseController {
8526
8658
  this._proxy.setModeEnabledState(isEnabled);
8527
8659
  }
8528
8660
  setBarcodeTransformer() {
8529
- return __awaiter(this, undefined, undefined, function* () {
8661
+ return __awaiter(this, void 0, void 0, function* () {
8530
8662
  yield this._proxy.setBarcodeTransformer();
8531
8663
  this.subscribeBarcodeFindTransformerEvent();
8532
8664
  });
@@ -8545,7 +8677,7 @@ class BarcodeFindController extends BaseController {
8545
8677
  console.error('BarcodeFindController onTransformBarcodeData payload is null');
8546
8678
  return;
8547
8679
  }
8548
- const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a === undefined ? undefined : _a.transformBarcodeData(payload.data);
8680
+ const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a === void 0 ? void 0 : _a.transformBarcodeData(payload.data);
8549
8681
  this._proxy.submitBarcodeFindTransformerResult(transformed);
8550
8682
  });
8551
8683
  }
@@ -8555,21 +8687,21 @@ class BarcodeFindController extends BaseController {
8555
8687
  var _a;
8556
8688
  const listeners = this._barcodeFind.listeners;
8557
8689
  for (const listener of listeners) {
8558
- (_a = listener === null || listener === undefined ? undefined : listener.didStartSearch) === null || _a === undefined ? undefined : _a.call(listener);
8690
+ (_a = listener === null || listener === void 0 ? void 0 : listener.didStartSearch) === null || _a === void 0 ? void 0 : _a.call(listener);
8559
8691
  }
8560
8692
  });
8561
8693
  this.eventEmitter.on(BarcodeFindListenerEvents.onSearchPausedEvent, (data) => {
8562
8694
  var _a;
8563
8695
  const foundItems = this.filterFoundItemsFromEvent(data);
8564
8696
  for (const listener of this._barcodeFind.listeners) {
8565
- (_a = listener === null || listener === undefined ? undefined : listener.didPauseSearch) === null || _a === undefined ? undefined : _a.call(listener, foundItems);
8697
+ (_a = listener === null || listener === void 0 ? void 0 : listener.didPauseSearch) === null || _a === void 0 ? void 0 : _a.call(listener, foundItems);
8566
8698
  }
8567
8699
  });
8568
8700
  this.eventEmitter.on(BarcodeFindListenerEvents.onSearchStoppedEvent, (data) => {
8569
8701
  var _a;
8570
8702
  const foundItems = this.filterFoundItemsFromEvent(data);
8571
8703
  for (const listener of this._barcodeFind.listeners) {
8572
- (_a = listener === null || listener === undefined ? undefined : listener.didStopSearch) === null || _a === undefined ? undefined : _a.call(listener, foundItems);
8704
+ (_a = listener === null || listener === void 0 ? void 0 : listener.didStopSearch) === null || _a === void 0 ? void 0 : _a.call(listener, foundItems);
8573
8705
  }
8574
8706
  });
8575
8707
  }
@@ -8688,28 +8820,28 @@ class BarcodeFind extends DefaultSerializeable {
8688
8820
  }
8689
8821
  __decorate([
8690
8822
  nameForSerialization('feedback')
8691
- ], BarcodeFind.prototype, "_feedback", undefined);
8823
+ ], BarcodeFind.prototype, "_feedback", void 0);
8692
8824
  __decorate([
8693
8825
  nameForSerialization('enabled')
8694
- ], BarcodeFind.prototype, "_enabled", undefined);
8826
+ ], BarcodeFind.prototype, "_enabled", void 0);
8695
8827
  __decorate([
8696
8828
  ignoreFromSerialization
8697
- ], BarcodeFind.prototype, "_isInCallback", undefined);
8829
+ ], BarcodeFind.prototype, "_isInCallback", void 0);
8698
8830
  __decorate([
8699
8831
  nameForSerialization('settings')
8700
- ], BarcodeFind.prototype, "_settings", undefined);
8832
+ ], BarcodeFind.prototype, "_settings", void 0);
8701
8833
  __decorate([
8702
8834
  nameForSerialization('hasBarcodeTransformer')
8703
- ], BarcodeFind.prototype, "_hasBarcodeTransformer", undefined);
8835
+ ], BarcodeFind.prototype, "_hasBarcodeTransformer", void 0);
8704
8836
  __decorate([
8705
8837
  ignoreFromSerialization
8706
- ], BarcodeFind.prototype, "listeners", undefined);
8838
+ ], BarcodeFind.prototype, "listeners", void 0);
8707
8839
  __decorate([
8708
8840
  ignoreFromSerialization
8709
- ], BarcodeFind.prototype, "_controller", undefined);
8841
+ ], BarcodeFind.prototype, "_controller", void 0);
8710
8842
  __decorate([
8711
8843
  ignoreFromSerialization
8712
- ], BarcodeFind.prototype, "_dataCaptureContext", undefined);
8844
+ ], BarcodeFind.prototype, "_dataCaptureContext", void 0);
8713
8845
  __decorate([
8714
8846
  ignoreFromSerialization
8715
8847
  ], BarcodeFind, "barcodeFindDefaults", null);
@@ -8729,10 +8861,10 @@ class BarcodeFindItem extends DefaultSerializeable {
8729
8861
  }
8730
8862
  __decorate([
8731
8863
  nameForSerialization('searchOptions')
8732
- ], BarcodeFindItem.prototype, "_searchOptions", undefined);
8864
+ ], BarcodeFindItem.prototype, "_searchOptions", void 0);
8733
8865
  __decorate([
8734
8866
  nameForSerialization('content')
8735
- ], BarcodeFindItem.prototype, "_content", undefined);
8867
+ ], BarcodeFindItem.prototype, "_content", void 0);
8736
8868
 
8737
8869
  class BarcodeFindItemContent extends DefaultSerializeable {
8738
8870
  constructor(info, additionalInfo, image) {
@@ -8743,26 +8875,26 @@ class BarcodeFindItemContent extends DefaultSerializeable {
8743
8875
  }
8744
8876
  get info() {
8745
8877
  var _a;
8746
- return (_a = this._info) !== null && _a !== undefined ? _a : null;
8878
+ return (_a = this._info) !== null && _a !== void 0 ? _a : null;
8747
8879
  }
8748
8880
  get additionalInfo() {
8749
8881
  var _a;
8750
- return (_a = this._additionalInfo) !== null && _a !== undefined ? _a : null;
8882
+ return (_a = this._additionalInfo) !== null && _a !== void 0 ? _a : null;
8751
8883
  }
8752
8884
  get image() {
8753
8885
  var _a;
8754
- return (_a = this._image) !== null && _a !== undefined ? _a : null;
8886
+ return (_a = this._image) !== null && _a !== void 0 ? _a : null;
8755
8887
  }
8756
8888
  }
8757
8889
  __decorate([
8758
8890
  nameForSerialization('info')
8759
- ], BarcodeFindItemContent.prototype, "_info", undefined);
8891
+ ], BarcodeFindItemContent.prototype, "_info", void 0);
8760
8892
  __decorate([
8761
8893
  nameForSerialization('additionalInfo')
8762
- ], BarcodeFindItemContent.prototype, "_additionalInfo", undefined);
8894
+ ], BarcodeFindItemContent.prototype, "_additionalInfo", void 0);
8763
8895
  __decorate([
8764
8896
  nameForSerialization('image')
8765
- ], BarcodeFindItemContent.prototype, "_image", undefined);
8897
+ ], BarcodeFindItemContent.prototype, "_image", void 0);
8766
8898
 
8767
8899
  class BarcodeFindItemSearchOptions extends DefaultSerializeable {
8768
8900
  constructor(barcodeData) {
@@ -8784,10 +8916,10 @@ class BarcodeFindItemSearchOptions extends DefaultSerializeable {
8784
8916
  }
8785
8917
  __decorate([
8786
8918
  nameForSerialization("barcodeData")
8787
- ], BarcodeFindItemSearchOptions.prototype, "_barcodeData", undefined);
8919
+ ], BarcodeFindItemSearchOptions.prototype, "_barcodeData", void 0);
8788
8920
  __decorate([
8789
8921
  nameForSerialization("brush")
8790
- ], BarcodeFindItemSearchOptions.prototype, "_brush", undefined);
8922
+ ], BarcodeFindItemSearchOptions.prototype, "_brush", void 0);
8791
8923
 
8792
8924
  class BarcodeFindSettings extends DefaultSerializeable {
8793
8925
  constructor() {
@@ -8825,10 +8957,10 @@ class BarcodeFindSettings extends DefaultSerializeable {
8825
8957
  }
8826
8958
  __decorate([
8827
8959
  nameForSerialization('symbologies')
8828
- ], BarcodeFindSettings.prototype, "_symbologies", undefined);
8960
+ ], BarcodeFindSettings.prototype, "_symbologies", void 0);
8829
8961
  __decorate([
8830
8962
  nameForSerialization('properties')
8831
- ], BarcodeFindSettings.prototype, "_properties", undefined);
8963
+ ], BarcodeFindSettings.prototype, "_properties", void 0);
8832
8964
  __decorate([
8833
8965
  ignoreFromSerialization
8834
8966
  ], BarcodeFindSettings, "barcodeDefaults", null);
@@ -8867,22 +8999,22 @@ class BarcodeFindViewSettings extends DefaultSerializeable {
8867
8999
  }
8868
9000
  __decorate([
8869
9001
  nameForSerialization('inListItemColor')
8870
- ], BarcodeFindViewSettings.prototype, "_inListItemColor", undefined);
9002
+ ], BarcodeFindViewSettings.prototype, "_inListItemColor", void 0);
8871
9003
  __decorate([
8872
9004
  nameForSerialization('notInListItemColor')
8873
- ], BarcodeFindViewSettings.prototype, "_notInListItemColor", undefined);
9005
+ ], BarcodeFindViewSettings.prototype, "_notInListItemColor", void 0);
8874
9006
  __decorate([
8875
9007
  nameForSerialization('soundEnabled')
8876
- ], BarcodeFindViewSettings.prototype, "_soundEnabled", undefined);
9008
+ ], BarcodeFindViewSettings.prototype, "_soundEnabled", void 0);
8877
9009
  __decorate([
8878
9010
  nameForSerialization('hapticEnabled')
8879
- ], BarcodeFindViewSettings.prototype, "_hapticEnabled", undefined);
9011
+ ], BarcodeFindViewSettings.prototype, "_hapticEnabled", void 0);
8880
9012
  __decorate([
8881
9013
  nameForSerialization('hardwareTriggerEnabled')
8882
- ], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled", undefined);
9014
+ ], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled", void 0);
8883
9015
  __decorate([
8884
9016
  nameForSerialization('hardwareTriggerKeyCode')
8885
- ], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode", undefined);
9017
+ ], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode", void 0);
8886
9018
 
8887
9019
  var BarcodeFindViewEvents;
8888
9020
  (function (BarcodeFindViewEvents) {
@@ -8903,7 +9035,7 @@ class BarcodeFindViewController extends BaseController {
8903
9035
  return viewController;
8904
9036
  }
8905
9037
  setUiListener(listener) {
8906
- return __awaiter(this, undefined, undefined, function* () {
9038
+ return __awaiter(this, void 0, void 0, function* () {
8907
9039
  if (listener && !this.isListenerEnabled) {
8908
9040
  this.isListenerEnabled = true;
8909
9041
  this.subscribeToEvents();
@@ -8938,7 +9070,7 @@ class BarcodeFindViewController extends BaseController {
8938
9070
  }
8939
9071
  removeNativeView() {
8940
9072
  var _a, _b, _c;
8941
- return (_c = (_b = (_a = this._proxy).removeView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
9073
+ return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
8942
9074
  }
8943
9075
  create() {
8944
9076
  const barcodeFindView = this.baseView.toJSON();
@@ -8947,7 +9079,7 @@ class BarcodeFindViewController extends BaseController {
8947
9079
  return this._proxy.createView(id, json);
8948
9080
  }
8949
9081
  initialize() {
8950
- return __awaiter(this, undefined, undefined, function* () {
9082
+ return __awaiter(this, void 0, void 0, function* () {
8951
9083
  yield this.baseView.context.update();
8952
9084
  if (this.autoCreateNativeView) {
8953
9085
  yield this.create();
@@ -8962,7 +9094,7 @@ class BarcodeFindViewController extends BaseController {
8962
9094
  return;
8963
9095
  }
8964
9096
  const { foundItems: barcodeFindItems = [] } = JSON.parse(data);
8965
- (_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.barcodeFindViewUiListener) === null || _b === undefined ? undefined : _b.didTapFinishButton(barcodeFindItems);
9097
+ (_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.barcodeFindViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapFinishButton(barcodeFindItems);
8966
9098
  });
8967
9099
  }
8968
9100
  unsubscribeToEvents() {
@@ -8975,7 +9107,7 @@ class BarcodeFindViewController extends BaseController {
8975
9107
  }
8976
9108
  __decorate([
8977
9109
  ignoreFromSerialization
8978
- ], BarcodeFindViewController.prototype, "autoCreateNativeView", undefined);
9110
+ ], BarcodeFindViewController.prototype, "autoCreateNativeView", void 0);
8979
9111
 
8980
9112
  class BaseBarcodeFindView {
8981
9113
  get barcodeFindViewUiListener() {
@@ -9039,7 +9171,7 @@ class BaseBarcodeFindView {
9039
9171
  return BaseBarcodeFindView.barcodeFindViewDefaults.hardwareTriggerSupported;
9040
9172
  }
9041
9173
  createNativeView() {
9042
- return __awaiter(this, undefined, undefined, function* () {
9174
+ return __awaiter(this, void 0, void 0, function* () {
9043
9175
  if (this.isViewCreated) {
9044
9176
  return Promise.resolve();
9045
9177
  }
@@ -9048,7 +9180,7 @@ class BaseBarcodeFindView {
9048
9180
  });
9049
9181
  }
9050
9182
  removeNativeView() {
9051
- return __awaiter(this, undefined, undefined, function* () {
9183
+ return __awaiter(this, void 0, void 0, function* () {
9052
9184
  yield this.controller.removeNativeView();
9053
9185
  this.isViewCreated = false;
9054
9186
  });
@@ -9194,7 +9326,7 @@ class BaseBarcodeFindView {
9194
9326
  shouldShowFinishButton: this.shouldShowFinishButton,
9195
9327
  shouldShowProgressBar: this.shouldShowProgressBar,
9196
9328
  shouldShowTorchControl: this.shouldShowTorchControl,
9197
- torchControlPosition: (_a = this.torchControlPosition) === null || _a === undefined ? undefined : _a.toString(),
9329
+ torchControlPosition: (_a = this.torchControlPosition) === null || _a === void 0 ? void 0 : _a.toString(),
9198
9330
  textForCollapseCardsButton: this.textForCollapseCardsButton,
9199
9331
  textForAllItemsFoundSuccessfullyHint: this.textForAllItemsFoundSuccessfullyHint,
9200
9332
  textForItemListUpdatedHint: this.textForItemListUpdatedHint,
@@ -9210,20 +9342,20 @@ class BaseBarcodeFindView {
9210
9342
  BarcodeFind: this._barcodeFind.toJSON()
9211
9343
  };
9212
9344
  if (this._barcodeFindViewSettings != null) {
9213
- json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === undefined ? undefined : _b.toJSON();
9345
+ json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === void 0 ? void 0 : _b.toJSON();
9214
9346
  }
9215
9347
  if (this._cameraSettings != null) {
9216
- json.View.cameraSettings = (_c = this._cameraSettings) === null || _c === undefined ? undefined : _c.toJSON();
9348
+ json.View.cameraSettings = (_c = this._cameraSettings) === null || _c === void 0 ? void 0 : _c.toJSON();
9217
9349
  }
9218
9350
  return json;
9219
9351
  }
9220
9352
  }
9221
9353
  __decorate([
9222
9354
  ignoreFromSerialization
9223
- ], BaseBarcodeFindView.prototype, "isViewCreated", undefined);
9355
+ ], BaseBarcodeFindView.prototype, "isViewCreated", void 0);
9224
9356
  __decorate([
9225
9357
  ignoreFromSerialization
9226
- ], BaseBarcodeFindView.prototype, "autoCreateNativeView", undefined);
9358
+ ], BaseBarcodeFindView.prototype, "autoCreateNativeView", void 0);
9227
9359
 
9228
9360
  class BarcodeGeneratorCreationOptions {
9229
9361
  constructor(backgroundColor = null, foregroundColor = null, errorCorrectionLevel = null, versionNumber = null, minimumErrorCorrectionPercent = null, layers = null) {
@@ -9315,7 +9447,7 @@ class BarcodeGeneratorController {
9315
9447
  return controller;
9316
9448
  }
9317
9449
  initialize() {
9318
- return __awaiter(this, undefined, undefined, function* () {
9450
+ return __awaiter(this, void 0, void 0, function* () {
9319
9451
  // We call update because it returns a promise, this guarantees, that by the time
9320
9452
  // we need the deserialized context, it will be set in the native layer.
9321
9453
  yield this.generator.dataCaptureContext.update();
@@ -9326,7 +9458,7 @@ class BarcodeGeneratorController {
9326
9458
  return this._proxy.create(JSON.stringify(this.generator.toJSON()));
9327
9459
  }
9328
9460
  generateFromBase64EncodedData(data, imageWidth) {
9329
- return __awaiter(this, undefined, undefined, function* () {
9461
+ return __awaiter(this, void 0, void 0, function* () {
9330
9462
  const result = yield this._proxy.generateFromBase64EncodedData(this.generator.id, data, imageWidth);
9331
9463
  if (result == null) {
9332
9464
  return '';
@@ -9335,7 +9467,7 @@ class BarcodeGeneratorController {
9335
9467
  });
9336
9468
  }
9337
9469
  generate(text, imageWidth) {
9338
- return __awaiter(this, undefined, undefined, function* () {
9470
+ return __awaiter(this, void 0, void 0, function* () {
9339
9471
  const result = yield this._proxy.generate(this.generator.id, text, imageWidth);
9340
9472
  if (result == null) {
9341
9473
  return '';
@@ -9379,7 +9511,7 @@ class BarcodeGenerator extends DefaultSerializeable {
9379
9511
  this.versionNumber = versionNumber;
9380
9512
  }
9381
9513
  initialize() {
9382
- return __awaiter(this, undefined, undefined, function* () {
9514
+ return __awaiter(this, void 0, void 0, function* () {
9383
9515
  this.controller = BarcodeGeneratorController.forBarcodeGenerator(this);
9384
9516
  this.initializationPromise = this.controller.initialize();
9385
9517
  return this.initializationPromise;
@@ -9391,13 +9523,13 @@ class BarcodeGenerator extends DefaultSerializeable {
9391
9523
  return generator;
9392
9524
  }
9393
9525
  generate(text, imageWidth) {
9394
- return __awaiter(this, undefined, undefined, function* () {
9526
+ return __awaiter(this, void 0, void 0, function* () {
9395
9527
  yield this.initializationPromise;
9396
9528
  return this.controller.generate(text, imageWidth);
9397
9529
  });
9398
9530
  }
9399
9531
  generateFromBase64EncodedData(data, imageWidth) {
9400
- return __awaiter(this, undefined, undefined, function* () {
9532
+ return __awaiter(this, void 0, void 0, function* () {
9401
9533
  yield this.initializationPromise;
9402
9534
  return this.controller.generateFromBase64EncodedData(data, imageWidth);
9403
9535
  });
@@ -9432,13 +9564,13 @@ class BarcodeGenerator extends DefaultSerializeable {
9432
9564
  }
9433
9565
  __decorate([
9434
9566
  nameForSerialization('id')
9435
- ], BarcodeGenerator.prototype, "_id", undefined);
9567
+ ], BarcodeGenerator.prototype, "_id", void 0);
9436
9568
  __decorate([
9437
9569
  ignoreFromSerialization
9438
- ], BarcodeGenerator.prototype, "dataCaptureContext", undefined);
9570
+ ], BarcodeGenerator.prototype, "dataCaptureContext", void 0);
9439
9571
  __decorate([
9440
9572
  ignoreFromSerialization
9441
- ], BarcodeGenerator.prototype, "controller", undefined);
9573
+ ], BarcodeGenerator.prototype, "controller", void 0);
9442
9574
 
9443
9575
  var QrCodeErrorCorrectionLevel;
9444
9576
  (function (QrCodeErrorCorrectionLevel) {
@@ -9448,4 +9580,4 @@ var QrCodeErrorCorrectionLevel;
9448
9580
  QrCodeErrorCorrectionLevel["High"] = "high";
9449
9581
  })(QrCodeErrorCorrectionLevel || (QrCodeErrorCorrectionLevel = {}));
9450
9582
 
9451
- export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchScenario, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCheck, BarcodeCheckAnnotationTrigger, BarcodeCheckCircleHighlight, BarcodeCheckCircleHighlightPreset, BarcodeCheckFeedback, BarcodeCheckInfoAnnotation, BarcodeCheckInfoAnnotationAnchor, BarcodeCheckInfoAnnotationBodyComponent, BarcodeCheckInfoAnnotationFooter, BarcodeCheckInfoAnnotationHeader, BarcodeCheckInfoAnnotationWidthPreset, BarcodeCheckListenerController, BarcodeCheckListenerEvents, BarcodeCheckPopoverAnnotation, BarcodeCheckPopoverAnnotationButton, BarcodeCheckRectangleHighlight, BarcodeCheckSession, BarcodeCheckSessionController, BarcodeCheckSettings, BarcodeCheckStatusIconAnnotation, BarcodeCheckViewController, BarcodeCheckViewEvents, BarcodeCheckViewSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountListenerController, BarcodeCountListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountToolbarSettings, BarcodeCountViewController, BarcodeCountViewEvents, BarcodeCountViewStyle, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindController, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSettings, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodePick, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickEvents, BarcodePickIconStyle, BarcodePickListenerController, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductController, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickViewController, BarcodePickViewListenerEvents, BarcodePickViewSettings, BarcodePickViewUiListenerEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCheckView, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, Checksum, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanFeedbackDelegateEvents, SparkScanListenerController, SparkScanListenerEvents, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TrackedBarcode, UpcaBarcodeGeneratorBuilder, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCheckDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCheckDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults };
9583
+ export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArListenerController, BarcodeArListenerEvents, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchScenario, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountListenerController, BarcodeCountListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountToolbarSettings, BarcodeCountViewController, BarcodeCountViewEvents, BarcodeCountViewStyle, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindController, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSettings, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodePick, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickEvents, BarcodePickListenerController, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductController, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickViewController, BarcodePickViewListenerEvents, BarcodePickViewSettings, BarcodePickViewUiListenerEvents, 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, Checksum, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TrackedBarcode, UpcaBarcodeGeneratorBuilder, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults };