scandit-capacitor-datacapture-barcode 7.1.2 → 7.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/barcode.js CHANGED
@@ -1,4 +1,4 @@
1
- import { nameForSerialization, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, FactoryMaker, Feedback, Quadrilateral, EventDataParser, BaseController, Brush, Observable, TextAlignment, FontFamily, AimerViewfinder, Anchor, PointWithUnit, BaseNewController, CameraSettings, Color, ScanditIcon, CameraController, DataCaptureContextFeatures } from 'scandit-capacitor-datacapture-core/dist/core';
1
+ import { nameForSerialization, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, FactoryMaker, Feedback, Quadrilateral, BaseController, BaseNewController, Brush, Observable, TextAlignment, FontFamily, EventDataParser, AimerViewfinder, Anchor, PointWithUnit, CameraSettings, Color, ScanditIcon, CameraController } from 'scandit-capacitor-datacapture-core/dist/core';
2
2
 
3
3
  var Symbology;
4
4
  (function (Symbology) {
@@ -99,13 +99,13 @@ class Range extends DefaultSerializeable {
99
99
  }
100
100
  __decorate([
101
101
  nameForSerialization('minimum')
102
- ], Range.prototype, "_minimum", void 0);
102
+ ], Range.prototype, "_minimum", undefined);
103
103
  __decorate([
104
104
  nameForSerialization('maximum')
105
- ], Range.prototype, "_maximum", void 0);
105
+ ], Range.prototype, "_maximum", undefined);
106
106
  __decorate([
107
107
  nameForSerialization('step')
108
- ], Range.prototype, "_step", void 0);
108
+ ], Range.prototype, "_step", undefined);
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", void 0);
198
+ ], SymbologySettings.prototype, "_symbology", undefined);
199
199
  __decorate([
200
200
  nameForSerialization('enabled')
201
- ], SymbologySettings.prototype, "isEnabled", void 0);
201
+ ], SymbologySettings.prototype, "isEnabled", undefined);
202
202
  __decorate([
203
203
  nameForSerialization('colorInvertedEnabled')
204
- ], SymbologySettings.prototype, "isColorInvertedEnabled", void 0);
204
+ ], SymbologySettings.prototype, "isColorInvertedEnabled", undefined);
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 === 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');
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');
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 === void 0 ? void 0 : _a.length) === 13 && ((_b = barcode.data) === null || _b === void 0 ? void 0 : _b.charAt(0)) !== '0';
219
+ return ((_a = barcode.data) === null || _a === undefined ? undefined : _a.length) === 13 && ((_b = barcode.data) === null || _b === undefined ? undefined : _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", void 0);
243
+ ], ArucoDictionary.prototype, "_preset", undefined);
244
244
  __decorate([
245
245
  nameForSerialization('markers')
246
- ], ArucoDictionary.prototype, "_markers", void 0);
246
+ ], ArucoDictionary.prototype, "_markers", undefined);
247
247
  __decorate([
248
248
  nameForSerialization('markerSize')
249
- ], ArucoDictionary.prototype, "_markerSize", void 0);
249
+ ], ArucoDictionary.prototype, "_markerSize", undefined);
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", void 0);
278
+ ], ArucoMarker.prototype, "_markerData", undefined);
279
279
  __decorate([
280
280
  nameForSerialization('markerSize')
281
- ], ArucoMarker.prototype, "_markerSize", void 0);
281
+ ], ArucoMarker.prototype, "_markerSize", undefined);
282
282
 
283
283
  function getBarcodeDefaults() {
284
284
  return FactoryMaker.getInstance('BarcodeDefaults');
@@ -523,7 +523,7 @@ class BarcodeCountFeedback extends DefaultSerializeable {
523
523
  }
524
524
  updateFeedback() {
525
525
  var _a;
526
- (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
526
+ (_a = this.listenerController) === null || _a === undefined ? undefined : _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", void 0);
547
+ ], BarcodeCountFeedback.prototype, "listenerController", undefined);
548
548
  __decorate([
549
549
  nameForSerialization('success')
550
- ], BarcodeCountFeedback.prototype, "_success", void 0);
550
+ ], BarcodeCountFeedback.prototype, "_success", undefined);
551
551
  __decorate([
552
552
  nameForSerialization('failure')
553
- ], BarcodeCountFeedback.prototype, "_failure", void 0);
553
+ ], BarcodeCountFeedback.prototype, "_failure", undefined);
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 !== 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 : [];
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 : [];
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", void 0);
606
+ ], BarcodeCountCaptureListSession.prototype, "_correctBarcodes", undefined);
607
607
  __decorate([
608
608
  nameForSerialization('wrongBarcodes')
609
- ], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes", void 0);
609
+ ], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes", undefined);
610
610
  __decorate([
611
611
  nameForSerialization('missingBarcodes')
612
- ], BarcodeCountCaptureListSession.prototype, "_missingBarcodes", void 0);
612
+ ], BarcodeCountCaptureListSession.prototype, "_missingBarcodes", undefined);
613
613
  __decorate([
614
614
  nameForSerialization('additionalBarcodes')
615
- ], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes", void 0);
615
+ ], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes", undefined);
616
616
  __decorate([
617
617
  nameForSerialization('acceptedBarcodes')
618
- ], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes", void 0);
618
+ ], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes", undefined);
619
619
  __decorate([
620
620
  nameForSerialization('rejectedBarcodes')
621
- ], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes", void 0);
621
+ ], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes", undefined);
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", void 0);
699
+ ], Barcode.prototype, "_symbology", undefined);
700
700
  __decorate([
701
701
  nameForSerialization('data')
702
- ], Barcode.prototype, "_data", void 0);
702
+ ], Barcode.prototype, "_data", undefined);
703
703
  __decorate([
704
704
  nameForSerialization('rawData')
705
- ], Barcode.prototype, "_rawData", void 0);
705
+ ], Barcode.prototype, "_rawData", undefined);
706
706
  __decorate([
707
707
  nameForSerialization('compositeData')
708
- ], Barcode.prototype, "_compositeData", void 0);
708
+ ], Barcode.prototype, "_compositeData", undefined);
709
709
  __decorate([
710
710
  nameForSerialization('compositeRawData')
711
- ], Barcode.prototype, "_compositeRawData", void 0);
711
+ ], Barcode.prototype, "_compositeRawData", undefined);
712
712
  __decorate([
713
713
  nameForSerialization('addOnData')
714
- ], Barcode.prototype, "_addOnData", void 0);
714
+ ], Barcode.prototype, "_addOnData", undefined);
715
715
  __decorate([
716
716
  nameForSerialization('encodingRanges')
717
- ], Barcode.prototype, "_encodingRanges", void 0);
717
+ ], Barcode.prototype, "_encodingRanges", undefined);
718
718
  __decorate([
719
719
  nameForSerialization('location')
720
- ], Barcode.prototype, "_location", void 0);
720
+ ], Barcode.prototype, "_location", undefined);
721
721
  __decorate([
722
722
  nameForSerialization('isGS1DataCarrier')
723
- ], Barcode.prototype, "_isGS1DataCarrier", void 0);
723
+ ], Barcode.prototype, "_isGS1DataCarrier", undefined);
724
724
  __decorate([
725
725
  nameForSerialization('compositeFlag')
726
- ], Barcode.prototype, "_compositeFlag", void 0);
726
+ ], Barcode.prototype, "_compositeFlag", undefined);
727
727
  __decorate([
728
728
  nameForSerialization('isColorInverted')
729
- ], Barcode.prototype, "_isColorInverted", void 0);
729
+ ], Barcode.prototype, "_isColorInverted", undefined);
730
730
  __decorate([
731
731
  nameForSerialization('symbolCount')
732
- ], Barcode.prototype, "_symbolCount", void 0);
732
+ ], Barcode.prototype, "_symbolCount", undefined);
733
733
  __decorate([
734
734
  nameForSerialization('frameID')
735
- ], Barcode.prototype, "_frameID", void 0);
735
+ ], Barcode.prototype, "_frameID", undefined);
736
736
  __decorate([
737
737
  nameForSerialization('structuredAppendData')
738
- ], Barcode.prototype, "_structuredAppendData", void 0);
738
+ ], Barcode.prototype, "_structuredAppendData", undefined);
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", void 0);
795
+ ], TargetBarcode.prototype, "_data", undefined);
796
796
  __decorate([
797
797
  nameForSerialization('quantity')
798
- ], TargetBarcode.prototype, "_quantity", void 0);
798
+ ], TargetBarcode.prototype, "_quantity", undefined);
799
799
 
800
800
  class TrackedBarcode {
801
801
  get barcode() { return this._barcode; }
@@ -855,24 +855,24 @@ class BarcodeSpatialGrid extends DefaultSerializeable {
855
855
  }
856
856
  __decorate([
857
857
  nameForSerialization('rows')
858
- ], BarcodeSpatialGrid.prototype, "_rows", void 0);
858
+ ], BarcodeSpatialGrid.prototype, "_rows", undefined);
859
859
  __decorate([
860
860
  nameForSerialization('columns')
861
- ], BarcodeSpatialGrid.prototype, "_columns", void 0);
861
+ ], BarcodeSpatialGrid.prototype, "_columns", undefined);
862
862
  __decorate([
863
863
  nameForSerialization('grid')
864
- ], BarcodeSpatialGrid.prototype, "_grid", void 0);
864
+ ], BarcodeSpatialGrid.prototype, "_grid", undefined);
865
865
 
866
- class BarcodeCountSessionController {
867
- get _proxy() {
868
- return FactoryMaker.getInstance('BarcodeCountSessionProxy');
866
+ class BarcodeCountSessionController extends BaseController {
867
+ constructor() {
868
+ super('BarcodeCountSessionProxy');
869
869
  }
870
870
  resetSession() {
871
- return this._proxy.resetSession();
871
+ return this._proxy.$resetSession();
872
872
  }
873
873
  getSpatialMap() {
874
- return __awaiter(this, void 0, void 0, function* () {
875
- const result = yield this._proxy.getSpatialMap();
874
+ return __awaiter(this, undefined, undefined, function* () {
875
+ const result = yield this._proxy.$getSpatialMap();
876
876
  if (result) {
877
877
  const payload = JSON.parse(result.data);
878
878
  return BarcodeSpatialGrid.fromJSON(payload);
@@ -880,8 +880,8 @@ class BarcodeCountSessionController {
880
880
  });
881
881
  }
882
882
  getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
883
- return __awaiter(this, void 0, void 0, function* () {
884
- const result = yield this._proxy.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns);
883
+ return __awaiter(this, undefined, undefined, function* () {
884
+ const result = yield this._proxy.$getSpatialMapWithHints({ expectedNumberOfRows, expectedNumberOfColumns });
885
885
  if (result) {
886
886
  const payload = JSON.parse(result.data);
887
887
  return BarcodeSpatialGrid.fromJSON(payload);
@@ -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 !== void 0 ? _a : '';
901
+ session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
902
902
  return session;
903
903
  }
904
904
  constructor() {
@@ -918,128 +918,119 @@ class BarcodeCountSession extends DefaultSerializeable {
918
918
  return this.sessionController.resetSession();
919
919
  }
920
920
  getSpatialMap() {
921
- return __awaiter(this, void 0, void 0, function* () {
921
+ return __awaiter(this, undefined, undefined, function* () {
922
922
  var _a;
923
- return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== void 0 ? _a : null;
923
+ return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== undefined ? _a : null;
924
924
  });
925
925
  }
926
926
  getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
927
- return __awaiter(this, void 0, void 0, function* () {
927
+ return __awaiter(this, undefined, undefined, function* () {
928
928
  var _a;
929
- return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !== void 0 ? _a : null;
929
+ return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !== undefined ? _a : null;
930
930
  });
931
931
  }
932
932
  }
933
933
  __decorate([
934
934
  nameForSerialization('recognizedBarcodes')
935
- ], BarcodeCountSession.prototype, "_recognizedBarcodes", void 0);
935
+ ], BarcodeCountSession.prototype, "_recognizedBarcodes", undefined);
936
936
  __decorate([
937
937
  nameForSerialization('additionalBarcodes')
938
- ], BarcodeCountSession.prototype, "_additionalBarcodes", void 0);
938
+ ], BarcodeCountSession.prototype, "_additionalBarcodes", undefined);
939
939
  __decorate([
940
940
  nameForSerialization('frameSequenceID')
941
- ], BarcodeCountSession.prototype, "_frameSequenceID", void 0);
941
+ ], BarcodeCountSession.prototype, "_frameSequenceID", undefined);
942
942
  __decorate([
943
943
  ignoreFromSerialization
944
- ], BarcodeCountSession.prototype, "sessionController", void 0);
944
+ ], BarcodeCountSession.prototype, "sessionController", undefined);
945
945
  __decorate([
946
946
  ignoreFromSerialization
947
- ], BarcodeCountSession.prototype, "frameId", void 0);
947
+ ], BarcodeCountSession.prototype, "frameId", undefined);
948
948
 
949
949
  var BarcodeCountListenerEvents;
950
950
  (function (BarcodeCountListenerEvents) {
951
- BarcodeCountListenerEvents["inCallback"] = "BarcodeCountCaptureListListener.inCallback";
952
- BarcodeCountListenerEvents["didListSessionUpdate"] = "BarcodeCountCaptureListListener.didUpdateSession";
951
+ BarcodeCountListenerEvents["didUpdateSession"] = "BarcodeCountCaptureListListener.didUpdateSession";
953
952
  BarcodeCountListenerEvents["didScan"] = "BarcodeCountListener.onScan";
954
953
  })(BarcodeCountListenerEvents || (BarcodeCountListenerEvents = {}));
955
- class BarcodeCountListenerController {
956
- get _proxy() {
957
- return FactoryMaker.getInstance('BarcodeCountListenerProxy');
958
- }
954
+ class BarcodeCountListenerController extends BaseController {
959
955
  constructor() {
960
- this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
956
+ super('BarcodeCountListenerProxy');
961
957
  }
962
958
  static forBarcodeCount(barcodeCount) {
963
959
  const controller = new BarcodeCountListenerController();
964
960
  controller.barcodeCount = barcodeCount;
965
- controller._proxy.isModeEnabled = () => barcodeCount.isEnabled;
966
961
  return controller;
967
962
  }
968
963
  update() {
969
964
  const barcodeCount = this.barcodeCount.toJSON();
970
965
  const json = JSON.stringify(barcodeCount);
971
- return this._proxy.updateMode(json);
966
+ return this._proxy.$updateBarcodeCountMode({ barcodeCountJson: json });
972
967
  }
973
968
  reset() {
974
- return this._proxy.resetBarcodeCount();
969
+ return this._proxy.$resetBarcodeCount();
975
970
  }
976
971
  setModeEnabledState(enabled) {
977
- this._proxy.setModeEnabledState(enabled);
972
+ this._proxy.$setBarcodeCountModeEnabledState({ isEnabled: enabled });
978
973
  }
979
974
  subscribeListener() {
980
- this._proxy.registerBarcodeCountListener();
981
- this._proxy.subscribeDidScan();
982
- this._proxy.subscribeDidListSessionUpdate();
983
- this.eventEmitter.on(BarcodeCountListenerEvents.didScan, (data) => __awaiter(this, void 0, void 0, function* () {
984
- const payload = EventDataParser.parse(data);
985
- if (payload === null) {
986
- console.error('BarcodeCountListenerController didScan payload is null');
987
- return;
988
- }
989
- const session = BarcodeCountSession.fromJSON(payload);
990
- yield this.notifyListenersOfDidScanSession(session);
991
- this._proxy.finishOnScan();
992
- }));
993
- this.eventEmitter.on(BarcodeCountListenerEvents.didListSessionUpdate, (data) => {
994
- const payload = EventDataParser.parse(data);
995
- if (payload === null) {
996
- console.error('BarcodeCountListenerController.subscribeListener: didListSessionUpdate payload is null');
997
- return;
998
- }
999
- const session = BarcodeCountCaptureListSession
1000
- .fromJSON(JSON.parse(payload.session));
1001
- this.notifyListenersOfDidListSessionUpdate(session);
975
+ return __awaiter(this, undefined, undefined, function* () {
976
+ yield this._proxy.$registerBarcodeCountListener();
977
+ this._proxy.on$didScan = (ev) => __awaiter(this, undefined, undefined, function* () {
978
+ const payload = EventDataParser.parse(ev.data);
979
+ if (payload === null) {
980
+ console.error('BarcodeCountListenerController didScan payload is null');
981
+ return;
982
+ }
983
+ const session = BarcodeCountSession.fromJSON(payload);
984
+ yield this.notifyListenersOfDidScanSession(session);
985
+ yield this._proxy.$finishBarcodeCountOnScan();
986
+ });
987
+ this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
988
+ const payload = EventDataParser.parse(ev.data);
989
+ if (payload === null) {
990
+ console.error('BarcodeCountListenerController.subscribeListener: didListSessionUpdate payload is null');
991
+ return;
992
+ }
993
+ const session = BarcodeCountCaptureListSession
994
+ .fromJSON(JSON.parse(payload.session));
995
+ this.notifyListenersOfDidListSessionUpdate(session);
996
+ });
1002
997
  });
1003
998
  }
1004
999
  unsubscribeListener() {
1005
- this._proxy.unregisterBarcodeCountListener();
1006
- this.eventEmitter.removeAllListeners(BarcodeCountListenerEvents.didScan);
1007
- this.eventEmitter.removeAllListeners(BarcodeCountListenerEvents.didListSessionUpdate);
1000
+ return __awaiter(this, undefined, undefined, function* () {
1001
+ yield this._proxy.$unregisterBarcodeCountListener();
1002
+ this._proxy.dispose();
1003
+ });
1008
1004
  }
1009
1005
  startScanningPhase() {
1010
- this._proxy.startScanningPhase();
1006
+ this._proxy.$startBarcodeCountScanningPhase();
1011
1007
  }
1012
1008
  endScanningPhase() {
1013
- this._proxy.endScanningPhase();
1009
+ this._proxy.$endBarcodeCountScanningPhase();
1014
1010
  }
1015
1011
  updateFeedback(feedbackJson) {
1016
- this._proxy.updateFeedback(feedbackJson);
1012
+ this._proxy.$updateBarcodeCountFeedback({ feedbackJson });
1017
1013
  }
1018
1014
  setBarcodeCountCaptureList(barcodeCountCaptureList) {
1019
1015
  this._barcodeCountCaptureList = barcodeCountCaptureList;
1020
- this._proxy.setBarcodeCountCaptureList(JSON.stringify(barcodeCountCaptureList.targetBarcodes));
1016
+ this._proxy.$setBarcodeCountCaptureList({ captureListJson: JSON.stringify(barcodeCountCaptureList.targetBarcodes) });
1021
1017
  }
1022
1018
  notifyListenersOfDidScanSession(session) {
1023
- return __awaiter(this, void 0, void 0, function* () {
1019
+ return __awaiter(this, undefined, undefined, function* () {
1024
1020
  const mode = this.barcodeCount;
1025
- mode.isInListenerCallback = true;
1026
1021
  for (const listener of mode.listeners) {
1027
1022
  if (listener.didScan) {
1028
1023
  yield listener.didScan(this.barcodeCount, session, () => CameraController.getFrame(session.frameId));
1029
1024
  }
1030
1025
  }
1031
- mode.isInListenerCallback = false;
1032
1026
  });
1033
1027
  }
1034
1028
  notifyListenersOfDidListSessionUpdate(session) {
1035
1029
  var _a;
1036
- const mode = this.barcodeCount;
1037
- const barcodeCountCaptureListListener = (_a = this._barcodeCountCaptureList) === null || _a === void 0 ? void 0 : _a.listener;
1038
- mode.isInListenerCallback = true;
1039
- if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession)) {
1040
- barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession(this._barcodeCountCaptureList, session);
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);
1041
1033
  }
1042
- mode.isInListenerCallback = false;
1043
1034
  }
1044
1035
  }
1045
1036
 
@@ -1083,7 +1074,6 @@ class BarcodeCount extends DefaultSerializeable {
1083
1074
  this._isEnabled = true;
1084
1075
  this.listeners = [];
1085
1076
  this._additionalBarcodes = [];
1086
- this.isInListenerCallback = false;
1087
1077
  this.privateContext = null;
1088
1078
  this.listenerController = BarcodeCountListenerController.forBarcodeCount(this);
1089
1079
  this._feedback.listenerController = this.listenerController;
@@ -1148,25 +1138,22 @@ class BarcodeCount extends DefaultSerializeable {
1148
1138
  }
1149
1139
  __decorate([
1150
1140
  nameForSerialization('feedback')
1151
- ], BarcodeCount.prototype, "_feedback", void 0);
1141
+ ], BarcodeCount.prototype, "_feedback", undefined);
1152
1142
  __decorate([
1153
1143
  ignoreFromSerialization
1154
- ], BarcodeCount.prototype, "_isEnabled", void 0);
1144
+ ], BarcodeCount.prototype, "_isEnabled", undefined);
1155
1145
  __decorate([
1156
1146
  ignoreFromSerialization
1157
- ], BarcodeCount.prototype, "listeners", void 0);
1147
+ ], BarcodeCount.prototype, "listeners", undefined);
1158
1148
  __decorate([
1159
1149
  nameForSerialization('additionalBarcodes')
1160
- ], BarcodeCount.prototype, "_additionalBarcodes", void 0);
1161
- __decorate([
1162
- ignoreFromSerialization
1163
- ], BarcodeCount.prototype, "isInListenerCallback", void 0);
1150
+ ], BarcodeCount.prototype, "_additionalBarcodes", undefined);
1164
1151
  __decorate([
1165
1152
  ignoreFromSerialization
1166
- ], BarcodeCount.prototype, "privateContext", void 0);
1153
+ ], BarcodeCount.prototype, "privateContext", undefined);
1167
1154
  __decorate([
1168
1155
  ignoreFromSerialization
1169
- ], BarcodeCount.prototype, "listenerController", void 0);
1156
+ ], BarcodeCount.prototype, "listenerController", undefined);
1170
1157
  __decorate([
1171
1158
  ignoreFromSerialization
1172
1159
  ], BarcodeCount, "barcodeCountDefaults", null);
@@ -1249,13 +1236,13 @@ class BarcodeCountSettings extends DefaultSerializeable {
1249
1236
  }
1250
1237
  __decorate([
1251
1238
  nameForSerialization('barcodeFilterSettings')
1252
- ], BarcodeCountSettings.prototype, "_filterSettings", void 0);
1239
+ ], BarcodeCountSettings.prototype, "_filterSettings", undefined);
1253
1240
  __decorate([
1254
1241
  nameForSerialization('expectOnlyUniqueBarcodes')
1255
- ], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes", void 0);
1242
+ ], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes", undefined);
1256
1243
  __decorate([
1257
1244
  nameForSerialization('mappingEnabled')
1258
- ], BarcodeCountSettings.prototype, "_mappingEnabled", void 0);
1245
+ ], BarcodeCountSettings.prototype, "_mappingEnabled", undefined);
1259
1246
  __decorate([
1260
1247
  ignoreFromSerialization
1261
1248
  ], BarcodeCountSettings, "barcodeCountDefaults", null);
@@ -1311,7 +1298,6 @@ var BarcodeCountViewEvents;
1311
1298
  BarcodeCountViewEvents["rejectedBarcodeTapped"] = "BarcodeCountViewListener.didTapRejectedBarcode";
1312
1299
  BarcodeCountViewEvents["captureListCompleted"] = "BarcodeCountViewListener.didCompleteCaptureList";
1313
1300
  })(BarcodeCountViewEvents || (BarcodeCountViewEvents = {}));
1314
-
1315
1301
  class BarcodeCountViewController extends BaseController {
1316
1302
  static forBarcodeCountAndBarcodeCountView(view, barcodeCount) {
1317
1303
  const controller = new BarcodeCountViewController({ view, barcodeCount });
@@ -1325,9 +1311,8 @@ class BarcodeCountViewController extends BaseController {
1325
1311
  this.barcodeCount = barcodeCount;
1326
1312
  }
1327
1313
  initialize(autoCreateNativeView) {
1328
- return __awaiter(this, void 0, void 0, function* () {
1314
+ return __awaiter(this, undefined, undefined, function* () {
1329
1315
  const context = this.view.context;
1330
- yield context.initializeAsync();
1331
1316
  yield context.update();
1332
1317
  if (autoCreateNativeView) {
1333
1318
  yield this.createView();
@@ -1338,14 +1323,14 @@ class BarcodeCountViewController extends BaseController {
1338
1323
  update() {
1339
1324
  const barcodeCountView = this.view.toJSON();
1340
1325
  const json = barcodeCountView.View;
1341
- return this._proxy.updateView(JSON.stringify(json));
1326
+ return this._proxy.$updateBarcodeCountView({ viewJson: JSON.stringify(json) });
1342
1327
  }
1343
1328
  createNativeView() {
1344
1329
  return this.createView();
1345
1330
  }
1346
1331
  removeNativeView() {
1347
1332
  var _a, _b, _c;
1348
- return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
1333
+ return (_c = (_b = (_a = this._proxy).$removeBarcodeCountView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
1349
1334
  }
1350
1335
  createView() {
1351
1336
  const barcodeCountViewSerialized = this.view.toJSON();
@@ -1354,71 +1339,71 @@ class BarcodeCountViewController extends BaseController {
1354
1339
  BarcodeCount: barcodeCountSerialized,
1355
1340
  View: barcodeCountViewSerialized
1356
1341
  });
1357
- return this._proxy.createView(this.view.nativeView, viewJson);
1342
+ return this._proxy.$createBarcodeCountView({ viewJson });
1358
1343
  }
1359
1344
  setUiListener(listener) {
1360
- return __awaiter(this, void 0, void 0, function* () {
1345
+ return __awaiter(this, undefined, undefined, function* () {
1361
1346
  if (listener != null) {
1362
- yield this._proxy.registerBarcodeCountViewUiListener();
1347
+ yield this._proxy.$registerBarcodeCountViewUiListener();
1363
1348
  }
1364
1349
  else {
1365
- yield this._proxy.unregisterBarcodeCountViewUiListener();
1350
+ yield this._proxy.$unregisterBarcodeCountViewUiListener();
1366
1351
  }
1367
1352
  });
1368
1353
  }
1369
1354
  setViewListener(listener) {
1370
- return __awaiter(this, void 0, void 0, function* () {
1355
+ return __awaiter(this, undefined, undefined, function* () {
1371
1356
  if (listener != null) {
1372
- yield this._proxy.registerBarcodeCountViewListener();
1357
+ yield this._proxy.$registerBarcodeCountViewListener();
1373
1358
  }
1374
1359
  else {
1375
- yield this._proxy.unregisterBarcodeCountViewListener();
1360
+ yield this._proxy.$unregisterBarcodeCountViewListener();
1376
1361
  }
1377
1362
  });
1378
1363
  }
1379
1364
  clearHighlights() {
1380
- return __awaiter(this, void 0, void 0, function* () {
1381
- yield this._proxy.clearHighlights();
1365
+ return __awaiter(this, undefined, undefined, function* () {
1366
+ yield this._proxy.$clearBarcodeCountHighlights();
1382
1367
  });
1383
1368
  }
1384
1369
  dispose() {
1385
- return __awaiter(this, void 0, void 0, function* () {
1370
+ return __awaiter(this, undefined, undefined, function* () {
1386
1371
  yield this.unsubscribeListeners();
1387
1372
  });
1388
1373
  }
1389
1374
  setPositionAndSize(top, left, width, height, shouldBeUnderWebView) {
1390
- return this._proxy.setPositionAndSize(top, left, width, height, shouldBeUnderWebView);
1375
+ return this._proxy.$setBarcodeCountViewPositionAndSize({ top, left, width, height, shouldBeUnderWebView });
1391
1376
  }
1392
1377
  show() {
1393
1378
  if (!this.view.context) {
1394
1379
  throw new Error('There should be a context attached to a view that should be shown');
1395
1380
  }
1396
- return this._proxy.show();
1381
+ return this._proxy.$showBarcodeCountView();
1397
1382
  }
1398
1383
  hide() {
1399
1384
  if (!this.view.context) {
1400
1385
  throw new Error('There should be a context attached to a view that should be shown');
1401
1386
  }
1402
- return this._proxy.hide();
1387
+ return this._proxy.$hideBarcodeCountView();
1403
1388
  }
1404
1389
  setBrushForRecognizedBarcode(trackedBarcode, brush) {
1405
1390
  const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1406
- return this._proxy.finishBrushForRecognizedBarcodeCallback(this.view.nativeView, payload.brush, payload.trackedBarcodeID);
1391
+ return this._proxy.$finishBarcodeCountBrushForRecognizedBarcode({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
1407
1392
  }
1408
1393
  setBrushForRecognizedBarcodeNotInList(trackedBarcode, brush) {
1409
1394
  const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1410
- return this._proxy.finishBrushForRecognizedBarcodeNotInListCallback(this.view.nativeView, payload.brush, payload.trackedBarcodeID);
1395
+ return this._proxy.$finishBarcodeCountBrushForRecognizedBarcodeNotInList({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
1411
1396
  }
1412
1397
  setBrushForAcceptedBarcode(trackedBarcode, brush) {
1413
1398
  const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1414
- return this._proxy.finishBrushForAcceptedBarcodeCallback(this.view.nativeView, payload.brush, payload.trackedBarcodeID);
1399
+ return this._proxy.$finishBarcodeCountBrushForAcceptedBarcode({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
1415
1400
  }
1416
1401
  setBrushForRejectedBarcode(trackedBarcode, brush) {
1417
1402
  const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1418
- return this._proxy.finishBrushForRejectedBarcodeCallback(this.view.nativeView, payload.brush, payload.trackedBarcodeID);
1403
+ return this._proxy.$finishBarcodeCountBrushForRejectedBarcode({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
1419
1404
  }
1420
1405
  enableHardwareTrigger(hardwareTriggerKeyCode) {
1421
- return this._proxy.enableHardwareTrigger(hardwareTriggerKeyCode);
1406
+ return this._proxy.$enableBarcodeCountHardwareTrigger({ hardwareTriggerKeyCode });
1422
1407
  }
1423
1408
  buildTrackedBarcodeBrushPayload(trackedBarcode, brush) {
1424
1409
  return {
@@ -1427,22 +1412,22 @@ class BarcodeCountViewController extends BaseController {
1427
1412
  };
1428
1413
  }
1429
1414
  subscribeListeners() {
1430
- return __awaiter(this, void 0, void 0, function* () {
1431
- yield this._proxy.subscribeListeners();
1432
- this.eventEmitter.on(BarcodeCountViewEvents.singleScanButtonTapped, () => {
1415
+ return __awaiter(this, undefined, undefined, function* () {
1416
+ yield this._proxy.$registerBarcodeCountViewListener();
1417
+ this._proxy.on$singleScanButtonTapped = () => {
1433
1418
  var _a, _b;
1434
- (_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);
1435
- });
1436
- this.eventEmitter.on(BarcodeCountViewEvents.listButtonTapped, () => {
1419
+ (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapSingleScanButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
1420
+ };
1421
+ this._proxy.on$listButtonTapped = () => {
1437
1422
  var _a, _b;
1438
- (_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);
1439
- });
1440
- this.eventEmitter.on(BarcodeCountViewEvents.exitButtonTapped, () => {
1423
+ (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapListButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
1424
+ };
1425
+ this._proxy.on$exitButtonTapped = () => {
1441
1426
  var _a, _b;
1442
- (_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);
1443
- });
1444
- this.eventEmitter.on(BarcodeCountViewEvents.brushForRecognizedBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
1445
- const payload = EventDataParser.parse(data);
1427
+ (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapExitButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
1428
+ };
1429
+ this._proxy.on$brushForRecognizedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
1430
+ const payload = EventDataParser.parse(ev.data);
1446
1431
  if (payload === null) {
1447
1432
  console.error('BarcodeCountViewController brushForRecognizedBarcode payload is null');
1448
1433
  return;
@@ -1454,10 +1439,10 @@ class BarcodeCountViewController extends BaseController {
1454
1439
  brush = this.view.listener.brushForRecognizedBarcode(this.view.nativeView, trackedBarcode);
1455
1440
  }
1456
1441
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1457
- yield this._proxy.finishBrushForRecognizedBarcodeCallback(this.view.nativeView, finishPayload.brush, finishPayload.trackedBarcodeID);
1458
- }));
1459
- this.eventEmitter.on(BarcodeCountViewEvents.brushForRecognizedBarcodeNotInList, (data) => __awaiter(this, void 0, void 0, function* () {
1460
- const payload = EventDataParser.parse(data);
1442
+ yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1443
+ });
1444
+ this._proxy.on$brushForRecognizedBarcodeNotInList = (ev) => __awaiter(this, undefined, undefined, function* () {
1445
+ const payload = EventDataParser.parse(ev.data);
1461
1446
  if (payload === null) {
1462
1447
  console.error('BarcodeCountViewController brushForRecognizedBarcodeNotInList payload is null');
1463
1448
  return;
@@ -1469,10 +1454,10 @@ class BarcodeCountViewController extends BaseController {
1469
1454
  brush = this.view.listener.brushForRecognizedBarcodeNotInList(this.view.nativeView, trackedBarcode);
1470
1455
  }
1471
1456
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1472
- yield this._proxy.finishBrushForRecognizedBarcodeNotInListCallback(this.view.nativeView, finishPayload.brush, finishPayload.trackedBarcodeID);
1473
- }));
1474
- this.eventEmitter.on(BarcodeCountViewEvents.brushForAcceptedBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
1475
- const payload = EventDataParser.parse(data);
1457
+ yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcodeNotInList({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1458
+ });
1459
+ this._proxy.on$brushForAcceptedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
1460
+ const payload = EventDataParser.parse(ev.data);
1476
1461
  if (payload === null) {
1477
1462
  console.error('BarcodeCountViewController brushForAcceptedBarcode payload is null');
1478
1463
  return;
@@ -1484,10 +1469,10 @@ class BarcodeCountViewController extends BaseController {
1484
1469
  brush = this.view.listener.brushForAcceptedBarcode(this.view.nativeView, trackedBarcode);
1485
1470
  }
1486
1471
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1487
- yield this._proxy.finishBrushForAcceptedBarcodeCallback(this.view.nativeView, finishPayload.brush, finishPayload.trackedBarcodeID);
1488
- }));
1489
- this.eventEmitter.on(BarcodeCountViewEvents.brushForRejectedBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
1490
- const payload = EventDataParser.parse(data);
1472
+ yield this._proxy.$finishBarcodeCountBrushForAcceptedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1473
+ });
1474
+ this._proxy.on$brushForRejectedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
1475
+ const payload = EventDataParser.parse(ev.data);
1491
1476
  if (payload === null) {
1492
1477
  console.error('BarcodeCountViewController brushForRejectedBarcode payload is null');
1493
1478
  return;
@@ -1499,10 +1484,10 @@ class BarcodeCountViewController extends BaseController {
1499
1484
  brush = this.view.listener.brushForRejectedBarcode(this.view.nativeView, trackedBarcode);
1500
1485
  }
1501
1486
  const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
1502
- yield this._proxy.finishBrushForRejectedBarcodeCallback(this.view.nativeView, finishPayload.brush, finishPayload.trackedBarcodeID);
1503
- }));
1504
- this.eventEmitter.on(BarcodeCountViewEvents.filteredBarcodeTapped, (data) => {
1505
- const payload = EventDataParser.parse(data);
1487
+ yield this._proxy.$finishBarcodeCountBrushForRejectedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
1488
+ });
1489
+ this._proxy.on$filteredBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1490
+ const payload = EventDataParser.parse(ev.data);
1506
1491
  if (payload === null) {
1507
1492
  console.error('BarcodeCountViewController filteredBarcodeTapped payload is null');
1508
1493
  return;
@@ -1513,8 +1498,8 @@ class BarcodeCountViewController extends BaseController {
1513
1498
  this.view.listener.didTapFilteredBarcode(this.view.nativeView, trackedBarcode);
1514
1499
  }
1515
1500
  });
1516
- this.eventEmitter.on(BarcodeCountViewEvents.recognizedBarcodeNotInListTapped, (data) => {
1517
- const payload = EventDataParser.parse(data);
1501
+ this._proxy.on$recognizedBarcodeNotInListTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1502
+ const payload = EventDataParser.parse(ev.data);
1518
1503
  if (payload === null) {
1519
1504
  console.error('BarcodeCountViewController recognizedBarcodeNotInListTapped payload is null');
1520
1505
  return;
@@ -1525,8 +1510,8 @@ class BarcodeCountViewController extends BaseController {
1525
1510
  this.view.listener.didTapRecognizedBarcodeNotInList(this.view.nativeView, trackedBarcode);
1526
1511
  }
1527
1512
  });
1528
- this.eventEmitter.on(BarcodeCountViewEvents.recognizedBarcodeTapped, (data) => {
1529
- const payload = EventDataParser.parse(data);
1513
+ this._proxy.on$recognizedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1514
+ const payload = EventDataParser.parse(ev.data);
1530
1515
  if (payload === null) {
1531
1516
  console.error('BarcodeCountViewController recognizedBarcodeTapped payload is null');
1532
1517
  return;
@@ -1537,8 +1522,8 @@ class BarcodeCountViewController extends BaseController {
1537
1522
  this.view.listener.didTapRecognizedBarcode(this.view.nativeView, trackedBarcode);
1538
1523
  }
1539
1524
  });
1540
- this.eventEmitter.on(BarcodeCountViewEvents.acceptedBarcodeTapped, (data) => {
1541
- const payload = EventDataParser.parse(data);
1525
+ this._proxy.on$acceptedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1526
+ const payload = EventDataParser.parse(ev.data);
1542
1527
  if (payload === null) {
1543
1528
  console.error('BarcodeCountViewController acceptedBarcodeTapped payload is null');
1544
1529
  return;
@@ -1549,8 +1534,8 @@ class BarcodeCountViewController extends BaseController {
1549
1534
  this.view.listener.didTapAcceptedBarcode(this.view.nativeView, trackedBarcode);
1550
1535
  }
1551
1536
  });
1552
- this.eventEmitter.on(BarcodeCountViewEvents.rejectedBarcodeTapped, (data) => {
1553
- const payload = EventDataParser.parse(data);
1537
+ this._proxy.on$rejectedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
1538
+ const payload = EventDataParser.parse(ev.data);
1554
1539
  if (payload === null) {
1555
1540
  console.error('BarcodeCountViewController rejectedBarcodeTapped payload is null');
1556
1541
  return;
@@ -1561,27 +1546,18 @@ class BarcodeCountViewController extends BaseController {
1561
1546
  this.view.listener.didTapRejectedBarcode(this.view.nativeView, trackedBarcode);
1562
1547
  }
1563
1548
  });
1564
- this.eventEmitter.on(BarcodeCountViewEvents.captureListCompleted, () => {
1549
+ this._proxy.on$captureListCompleted = () => {
1565
1550
  if (this.view.listener && this.view.listener.didCompleteCaptureList) {
1566
1551
  this.view.listener.didCompleteCaptureList(this.view.nativeView);
1567
1552
  }
1568
- });
1553
+ };
1569
1554
  });
1570
1555
  }
1571
1556
  unsubscribeListeners() {
1572
- return __awaiter(this, void 0, void 0, function* () {
1573
- yield this._proxy.unsubscribeListeners();
1574
- yield this._proxy.unregisterBarcodeCountViewListener();
1575
- yield this._proxy.unregisterBarcodeCountViewUiListener();
1576
- this.eventEmitter.off(BarcodeCountViewEvents.singleScanButtonTapped);
1577
- this.eventEmitter.off(BarcodeCountViewEvents.listButtonTapped);
1578
- this.eventEmitter.off(BarcodeCountViewEvents.exitButtonTapped);
1579
- this.eventEmitter.off(BarcodeCountViewEvents.brushForRecognizedBarcode);
1580
- this.eventEmitter.off(BarcodeCountViewEvents.brushForRecognizedBarcodeNotInList);
1581
- this.eventEmitter.off(BarcodeCountViewEvents.filteredBarcodeTapped);
1582
- this.eventEmitter.off(BarcodeCountViewEvents.recognizedBarcodeNotInListTapped);
1583
- this.eventEmitter.off(BarcodeCountViewEvents.recognizedBarcodeTapped);
1584
- this.eventEmitter.off(BarcodeCountViewEvents.captureListCompleted);
1557
+ return __awaiter(this, undefined, undefined, function* () {
1558
+ this._proxy.dispose();
1559
+ yield this._proxy.$unregisterBarcodeCountViewListener();
1560
+ yield this._proxy.$unregisterBarcodeCountViewUiListener();
1585
1561
  });
1586
1562
  }
1587
1563
  }
@@ -1701,49 +1677,49 @@ class BarcodeCountNotInListActionSettings extends DefaultSerializeable {
1701
1677
  }
1702
1678
  __decorate([
1703
1679
  nameForSerialization('enabled')
1704
- ], BarcodeCountNotInListActionSettings.prototype, "_enabled", void 0);
1680
+ ], BarcodeCountNotInListActionSettings.prototype, "_enabled", undefined);
1705
1681
  __decorate([
1706
1682
  nameForSerialization('acceptButtonText')
1707
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText", void 0);
1683
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText", undefined);
1708
1684
  __decorate([
1709
1685
  nameForSerialization('acceptButtonAccessibilityLabel')
1710
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel", void 0);
1686
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel", undefined);
1711
1687
  __decorate([
1712
1688
  nameForSerialization('acceptButtonAccessibilityHint')
1713
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint", void 0);
1689
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint", undefined);
1714
1690
  __decorate([
1715
1691
  nameForSerialization('acceptButtonContentDescription')
1716
- ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription", void 0);
1692
+ ], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription", undefined);
1717
1693
  __decorate([
1718
1694
  nameForSerialization('rejectButtonText')
1719
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText", void 0);
1695
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText", undefined);
1720
1696
  __decorate([
1721
1697
  nameForSerialization('rejectButtonAccessibilityLabel')
1722
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel", void 0);
1698
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel", undefined);
1723
1699
  __decorate([
1724
1700
  nameForSerialization('rejectButtonAccessibilityHint')
1725
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint", void 0);
1701
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint", undefined);
1726
1702
  __decorate([
1727
1703
  nameForSerialization('rejectButtonContentDescription')
1728
- ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription", void 0);
1704
+ ], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription", undefined);
1729
1705
  __decorate([
1730
1706
  nameForSerialization('cancelButtonText')
1731
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText", void 0);
1707
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText", undefined);
1732
1708
  __decorate([
1733
1709
  nameForSerialization('cancelButtonAccessibilityLabel')
1734
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel", void 0);
1710
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel", undefined);
1735
1711
  __decorate([
1736
1712
  nameForSerialization('cancelButtonAccessibilityHint')
1737
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint", void 0);
1713
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint", undefined);
1738
1714
  __decorate([
1739
1715
  nameForSerialization('cancelButtonContentDescription')
1740
- ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription", void 0);
1716
+ ], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription", undefined);
1741
1717
  __decorate([
1742
1718
  nameForSerialization('barcodeAcceptedHint')
1743
- ], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint", void 0);
1719
+ ], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint", undefined);
1744
1720
  __decorate([
1745
1721
  nameForSerialization('barcodeRejectedHint')
1746
- ], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint", void 0);
1722
+ ], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint", undefined);
1747
1723
 
1748
1724
  class BaseBarcodeCountView {
1749
1725
  static get defaultRecognizedBrush() {
@@ -2178,7 +2154,7 @@ class BaseBarcodeCountView {
2178
2154
  this._controller.initialize(autoCreateNativeView);
2179
2155
  }
2180
2156
  dispose() {
2181
- return __awaiter(this, void 0, void 0, function* () {
2157
+ return __awaiter(this, undefined, undefined, function* () {
2182
2158
  yield this._controller.dispose();
2183
2159
  this.isViewCreated = false;
2184
2160
  });
@@ -2215,7 +2191,7 @@ class BaseBarcodeCountView {
2215
2191
  return this._controller.enableHardwareTrigger(hardwareTriggerKeyCode);
2216
2192
  }
2217
2193
  createNativeView() {
2218
- return __awaiter(this, void 0, void 0, function* () {
2194
+ return __awaiter(this, undefined, undefined, function* () {
2219
2195
  if (this.isViewCreated) {
2220
2196
  return Promise.resolve();
2221
2197
  }
@@ -2224,7 +2200,7 @@ class BaseBarcodeCountView {
2224
2200
  });
2225
2201
  }
2226
2202
  removeNativeView() {
2227
- return __awaiter(this, void 0, void 0, function* () {
2203
+ return __awaiter(this, undefined, undefined, function* () {
2228
2204
  yield this._controller.removeNativeView();
2229
2205
  this.isViewCreated = false;
2230
2206
  });
@@ -2248,16 +2224,16 @@ class BaseBarcodeCountView {
2248
2224
  shouldShowFloatingShutterButton: this.shouldShowFloatingShutterButton,
2249
2225
  shouldShowToolbar: this.shouldShowToolbar,
2250
2226
  shouldShowScanAreaGuides: this.shouldShowScanAreaGuides,
2251
- toolbarSettings: (_a = this._toolbarSettings) === null || _a === void 0 ? void 0 : _a.toJSON(),
2227
+ toolbarSettings: (_a = this._toolbarSettings) === null || _a === undefined ? undefined : _a.toJSON(),
2252
2228
  shouldShowTorchControl: this.shouldShowTorchControl,
2253
2229
  torchControlPosition: this.torchControlPosition,
2254
2230
  tapToUncountEnabled: this.tapToUncountEnabled,
2255
2231
  textForTapToUncountHint: this.textForTapToUncountHint,
2256
2232
  barcodeNotInListActionSettings: this.barcodeNotInListActionSettings.toJSON(),
2257
- recognizedBrush: (_b = this.recognizedBrush) === null || _b === void 0 ? void 0 : _b.toJSON(),
2258
- notInListBrush: (_c = this.notInListBrush) === null || _c === void 0 ? void 0 : _c.toJSON(),
2259
- acceptedBrush: (_d = this.acceptedBrush) === null || _d === void 0 ? void 0 : _d.toJSON(),
2260
- rejectedBrush: (_e = this.rejectedBrush) === null || _e === void 0 ? void 0 : _e.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(),
2261
2237
  hardwareTriggerEnabled: this._hardwareTriggerEnabled
2262
2238
  },
2263
2239
  BarcodeCount: this._barcodeCount.toJSON()
@@ -2338,23 +2314,23 @@ class BaseBarcodeCountView {
2338
2314
  json.View.shouldShowListProgressBar = this.shouldShowListProgressBar;
2339
2315
  }
2340
2316
  if (this.recognizedBrush) {
2341
- json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f === void 0 ? void 0 : _f.toJSON();
2317
+ json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f === undefined ? undefined : _f.toJSON();
2342
2318
  }
2343
2319
  if (this.notInListBrush) {
2344
- json.View.notInListBrush = (_g = this.notInListBrush) === null || _g === void 0 ? void 0 : _g.toJSON();
2320
+ json.View.notInListBrush = (_g = this.notInListBrush) === null || _g === undefined ? undefined : _g.toJSON();
2345
2321
  }
2346
2322
  if (this.filterSettings) {
2347
- json.View.filterSettings = (_h = this.filterSettings) === null || _h === void 0 ? void 0 : _h.toJSON();
2323
+ json.View.filterSettings = (_h = this.filterSettings) === null || _h === undefined ? undefined : _h.toJSON();
2348
2324
  }
2349
2325
  return json;
2350
2326
  }
2351
2327
  }
2352
2328
  __decorate([
2353
2329
  ignoreFromSerialization
2354
- ], BaseBarcodeCountView.prototype, "isViewCreated", void 0);
2330
+ ], BaseBarcodeCountView.prototype, "isViewCreated", undefined);
2355
2331
  __decorate([
2356
2332
  ignoreFromSerialization
2357
- ], BaseBarcodeCountView.prototype, "autoCreateNativeView", void 0);
2333
+ ], BaseBarcodeCountView.prototype, "autoCreateNativeView", undefined);
2358
2334
  __decorate([
2359
2335
  ignoreFromSerialization
2360
2336
  ], BaseBarcodeCountView, "barcodeCountDefaults", null);
@@ -2378,10 +2354,10 @@ class BarcodeFilterHighlightSettingsBrush extends DefaultSerializeable {
2378
2354
  }
2379
2355
  __decorate([
2380
2356
  nameForSerialization('highlightType')
2381
- ], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType", void 0);
2357
+ ], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType", undefined);
2382
2358
  __decorate([
2383
2359
  nameForSerialization('brush')
2384
- ], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", void 0);
2360
+ ], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", undefined);
2385
2361
 
2386
2362
  class BarcodeFilterSettings extends DefaultSerializeable {
2387
2363
  get excludeEan13() {
@@ -2438,19 +2414,19 @@ class BarcodeFilterSettings extends DefaultSerializeable {
2438
2414
  }
2439
2415
  __decorate([
2440
2416
  nameForSerialization('excludeEan13')
2441
- ], BarcodeFilterSettings.prototype, "_excludeEan13", void 0);
2417
+ ], BarcodeFilterSettings.prototype, "_excludeEan13", undefined);
2442
2418
  __decorate([
2443
2419
  nameForSerialization('excludeUpca')
2444
- ], BarcodeFilterSettings.prototype, "_excludeUpca", void 0);
2420
+ ], BarcodeFilterSettings.prototype, "_excludeUpca", undefined);
2445
2421
  __decorate([
2446
2422
  nameForSerialization('excludedCodesRegex')
2447
- ], BarcodeFilterSettings.prototype, "_excludedCodesRegex", void 0);
2423
+ ], BarcodeFilterSettings.prototype, "_excludedCodesRegex", undefined);
2448
2424
  __decorate([
2449
2425
  nameForSerialization('excludedSymbolCounts')
2450
- ], BarcodeFilterSettings.prototype, "_excludedSymbolCounts", void 0);
2426
+ ], BarcodeFilterSettings.prototype, "_excludedSymbolCounts", undefined);
2451
2427
  __decorate([
2452
2428
  nameForSerialization('excludedSymbologies')
2453
- ], BarcodeFilterSettings.prototype, "_excludedSymbologies", void 0);
2429
+ ], BarcodeFilterSettings.prototype, "_excludedSymbologies", undefined);
2454
2430
 
2455
2431
  function getBarcodeCountDefaults() {
2456
2432
  return FactoryMaker.getInstance('BarcodeCountDefaults');
@@ -2662,14 +2638,14 @@ function parseBarcodeFindDefaults(jsonDefaults) {
2662
2638
  shouldShowUserGuidanceView: jsonDefaults.shouldShowUserGuidanceView,
2663
2639
  shouldShowTorchControl: jsonDefaults.shouldShowTorchControl,
2664
2640
  shouldShowZoomControl: jsonDefaults.shouldShowZoomControl,
2665
- textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !== void 0 ? _a : null,
2666
- textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !== void 0 ? _b : null,
2667
- textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !== void 0 ? _c : null,
2668
- textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !== void 0 ? _d : null,
2669
- textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !== void 0 ? _e : null,
2670
- textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !== void 0 ? _f : null,
2671
- textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !== void 0 ? _g : null,
2672
- textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !== void 0 ? _h : null,
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,
2673
2649
  torchControlPosition: jsonDefaults.torchControlPosition,
2674
2650
  }
2675
2651
  };
@@ -2820,7 +2796,7 @@ class BarcodeCaptureSession {
2820
2796
  session._newlyLocalizedBarcodes = sessionJson.newlyLocalizedBarcodes
2821
2797
  .map(LocalizedOnlyBarcode.fromJSON);
2822
2798
  session._frameSequenceID = sessionJson.frameSequenceId;
2823
- session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
2799
+ session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
2824
2800
  return session;
2825
2801
  }
2826
2802
  reset() {
@@ -2830,95 +2806,78 @@ class BarcodeCaptureSession {
2830
2806
 
2831
2807
  var BarcodeCaptureListenerEvents;
2832
2808
  (function (BarcodeCaptureListenerEvents) {
2833
- BarcodeCaptureListenerEvents["inCallback"] = "BarcodeCaptureListener.inCallback";
2834
2809
  BarcodeCaptureListenerEvents["didUpdateSession"] = "BarcodeCaptureListener.didUpdateSession";
2835
2810
  BarcodeCaptureListenerEvents["didScan"] = "BarcodeCaptureListener.didScan";
2836
2811
  })(BarcodeCaptureListenerEvents || (BarcodeCaptureListenerEvents = {}));
2837
- class BarcodeCaptureListenerController {
2838
- get _proxy() {
2839
- return FactoryMaker.getInstance('BarcodeCaptureListenerProxy');
2840
- }
2812
+ class BarcodeCaptureListenerController extends BaseNewController {
2841
2813
  static forBarcodeCapture(barcodeCapture) {
2842
2814
  const controller = new BarcodeCaptureListenerController();
2843
2815
  controller.barcodeCapture = barcodeCapture;
2844
- controller._proxy.isModeEnabled = () => barcodeCapture.isEnabled;
2845
2816
  return controller;
2846
2817
  }
2847
2818
  constructor() {
2848
- this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
2819
+ super('BarcodeCaptureListenerProxy');
2849
2820
  }
2850
2821
  reset() {
2851
- return this._proxy.resetSession();
2822
+ return this._proxy.$resetBarcodeCaptureSession();
2852
2823
  }
2853
2824
  setModeEnabledState(enabled) {
2854
- this._proxy.setModeEnabledState(enabled);
2825
+ this._proxy.$setBarcodeCaptureModeEnabledState({ enabled: enabled });
2855
2826
  }
2856
2827
  updateBarcodeCaptureMode() {
2857
- return this._proxy.updateBarcodeCaptureMode(JSON.stringify(this.barcodeCapture.toJSON()));
2828
+ return this._proxy.$updateBarcodeCaptureMode({ modeJson: JSON.stringify(this.barcodeCapture.toJSON()) });
2858
2829
  }
2859
2830
  applyBarcodeCaptureModeSettings(newSettings) {
2860
- return this._proxy.applyBarcodeCaptureModeSettings(JSON.stringify(newSettings.toJSON()));
2831
+ return this._proxy.$applyBarcodeCaptureModeSettings({ modeSettingsJson: JSON.stringify(newSettings.toJSON()) });
2861
2832
  }
2862
2833
  updateBarcodeCaptureOverlay(overlay) {
2863
- return this._proxy.updateBarcodeCaptureOverlay(JSON.stringify(overlay.toJSON()));
2834
+ return this._proxy.$updateBarcodeCaptureOverlay({ overlayJson: JSON.stringify(overlay.toJSON()) });
2864
2835
  }
2865
2836
  subscribeListener() {
2866
- var _a, _b, _c, _d;
2867
- this._proxy.registerListenerForEvents();
2868
- (_b = (_a = this._proxy).subscribeDidUpdateSessionListener) === null || _b === void 0 ? void 0 : _b.call(_a);
2869
- (_d = (_c = this._proxy).subscribeDidScanListener) === null || _d === void 0 ? void 0 : _d.call(_c);
2870
- this.eventEmitter.on(BarcodeCaptureListenerEvents.inCallback, (value) => {
2871
- this.barcodeCapture.isInListenerCallback = value;
2872
- });
2873
- this.eventEmitter.on(BarcodeCaptureListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
2874
- const payload = EventDataParser.parse(data);
2837
+ this._proxy.$registerBarcodeCaptureListenerForEvents();
2838
+ this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
2839
+ const payload = EventDataParser.parse(ev.data);
2875
2840
  if (payload === null) {
2876
2841
  console.error('BarcodeCaptureListenerController.subscribeListener: didUpdateSession payload is null');
2877
2842
  return;
2878
2843
  }
2879
2844
  const session = BarcodeCaptureSession.fromJSON(payload);
2880
2845
  yield this.notifyListenersOfDidUpdateSession(session);
2881
- this._proxy.finishDidUpdateSessionCallback(this.barcodeCapture.isEnabled);
2882
- }));
2883
- this.eventEmitter.on(BarcodeCaptureListenerEvents.didScan, (data) => __awaiter(this, void 0, void 0, function* () {
2884
- const payload = EventDataParser.parse(data);
2846
+ this._proxy.$finishBarcodeCaptureDidUpdateSession({ enabled: this.barcodeCapture.isEnabled });
2847
+ });
2848
+ this._proxy.on$didScan = (ev) => __awaiter(this, undefined, undefined, function* () {
2849
+ const payload = EventDataParser.parse(ev.data);
2885
2850
  if (payload === null) {
2886
2851
  console.error('BarcodeCaptureListenerController.subscribeListener: didScan payload is null');
2887
2852
  return;
2888
2853
  }
2889
2854
  const session = BarcodeCaptureSession.fromJSON(payload);
2890
2855
  yield this.notifyListenersOfDidScan(session);
2891
- this._proxy.finishDidScanCallback(this.barcodeCapture.isEnabled);
2892
- }));
2856
+ this._proxy.$finishBarcodeCaptureDidScan({ enabled: this.barcodeCapture.isEnabled });
2857
+ });
2893
2858
  }
2894
2859
  unsubscribeListener() {
2895
- this._proxy.unregisterListenerForEvents();
2896
- this.eventEmitter.removeAllListeners(BarcodeCaptureListenerEvents.inCallback);
2897
- this.eventEmitter.removeAllListeners(BarcodeCaptureListenerEvents.didUpdateSession);
2898
- this.eventEmitter.removeAllListeners(BarcodeCaptureListenerEvents.didScan);
2860
+ this._proxy.$unregisterBarcodeCaptureListenerForEvents();
2861
+ this._proxy.dispose();
2899
2862
  }
2900
2863
  notifyListenersOfDidUpdateSession(session) {
2901
- return __awaiter(this, void 0, void 0, function* () {
2864
+ return __awaiter(this, undefined, undefined, function* () {
2902
2865
  const mode = this.barcodeCapture;
2903
- mode.isInListenerCallback = true;
2904
2866
  for (const listener of mode.listeners) {
2905
2867
  if (listener.didUpdateSession) {
2906
2868
  listener.didUpdateSession(this.barcodeCapture, session, () => CameraController.getFrame(session.frameId));
2907
2869
  }
2908
2870
  }
2909
- mode.isInListenerCallback = false;
2910
2871
  });
2911
2872
  }
2912
2873
  notifyListenersOfDidScan(session) {
2913
- return __awaiter(this, void 0, void 0, function* () {
2874
+ return __awaiter(this, undefined, undefined, function* () {
2914
2875
  const mode = this.barcodeCapture;
2915
- mode.isInListenerCallback = true;
2916
2876
  for (const listener of mode.listeners) {
2917
2877
  if (listener.didScan) {
2918
2878
  listener.didScan(this.barcodeCapture, session, () => CameraController.getFrame(session.frameId));
2919
2879
  }
2920
2880
  }
2921
- mode.isInListenerCallback = false;
2922
2881
  });
2923
2882
  }
2924
2883
  }
@@ -2973,7 +2932,6 @@ class BarcodeCapture extends DefaultSerializeable {
2973
2932
  this._isEnabled = true;
2974
2933
  this.privateContext = null;
2975
2934
  this.listeners = [];
2976
- this.isInListenerCallback = false;
2977
2935
  this.controller = BarcodeCaptureListenerController.forBarcodeCapture(this);
2978
2936
  }
2979
2937
  applySettings(settings) {
@@ -2995,22 +2953,19 @@ class BarcodeCapture extends DefaultSerializeable {
2995
2953
  }
2996
2954
  __decorate([
2997
2955
  ignoreFromSerialization
2998
- ], BarcodeCapture.prototype, "_isEnabled", void 0);
2956
+ ], BarcodeCapture.prototype, "_isEnabled", undefined);
2999
2957
  __decorate([
3000
2958
  nameForSerialization('feedback')
3001
- ], BarcodeCapture.prototype, "_feedback", void 0);
2959
+ ], BarcodeCapture.prototype, "_feedback", undefined);
3002
2960
  __decorate([
3003
2961
  ignoreFromSerialization
3004
- ], BarcodeCapture.prototype, "privateContext", void 0);
2962
+ ], BarcodeCapture.prototype, "privateContext", undefined);
3005
2963
  __decorate([
3006
2964
  ignoreFromSerialization
3007
- ], BarcodeCapture.prototype, "listeners", void 0);
2965
+ ], BarcodeCapture.prototype, "listeners", undefined);
3008
2966
  __decorate([
3009
2967
  ignoreFromSerialization
3010
- ], BarcodeCapture.prototype, "controller", void 0);
3011
- __decorate([
3012
- ignoreFromSerialization
3013
- ], BarcodeCapture.prototype, "isInListenerCallback", void 0);
2968
+ ], BarcodeCapture.prototype, "controller", undefined);
3014
2969
  __decorate([
3015
2970
  ignoreFromSerialization
3016
2971
  ], BarcodeCapture, "barcodeCaptureDefaults", null);
@@ -3092,26 +3047,26 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
3092
3047
  }
3093
3048
  __decorate([
3094
3049
  ignoreFromSerialization
3095
- ], BarcodeCaptureOverlay.prototype, "barcodeCapture", void 0);
3050
+ ], BarcodeCaptureOverlay.prototype, "barcodeCapture", undefined);
3096
3051
  __decorate([
3097
3052
  ignoreFromSerialization
3098
- ], BarcodeCaptureOverlay.prototype, "view", void 0);
3053
+ ], BarcodeCaptureOverlay.prototype, "view", undefined);
3099
3054
  __decorate([
3100
3055
  nameForSerialization('shouldShowScanAreaGuides')
3101
- ], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
3056
+ ], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
3102
3057
  __decorate([
3103
3058
  serializationDefault(NoViewfinder),
3104
3059
  nameForSerialization('viewfinder')
3105
- ], BarcodeCaptureOverlay.prototype, "_viewfinder", void 0);
3060
+ ], BarcodeCaptureOverlay.prototype, "_viewfinder", undefined);
3106
3061
  __decorate([
3107
3062
  nameForSerialization('style')
3108
- ], BarcodeCaptureOverlay.prototype, "_style", void 0);
3063
+ ], BarcodeCaptureOverlay.prototype, "_style", undefined);
3109
3064
  __decorate([
3110
3065
  ignoreFromSerialization
3111
- ], BarcodeCaptureOverlay.prototype, "eventEmitter", void 0);
3066
+ ], BarcodeCaptureOverlay.prototype, "eventEmitter", undefined);
3112
3067
  __decorate([
3113
3068
  nameForSerialization('brush')
3114
- ], BarcodeCaptureOverlay.prototype, "_brush", void 0);
3069
+ ], BarcodeCaptureOverlay.prototype, "_brush", undefined);
3115
3070
  __decorate([
3116
3071
  ignoreFromSerialization
3117
3072
  ], BarcodeCaptureOverlay, "barcodeCaptureDefaults", null);
@@ -3190,13 +3145,13 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
3190
3145
  }
3191
3146
  __decorate([
3192
3147
  serializationDefault(NoneLocationSelection)
3193
- ], BarcodeCaptureSettings.prototype, "locationSelection", void 0);
3148
+ ], BarcodeCaptureSettings.prototype, "locationSelection", undefined);
3194
3149
  __decorate([
3195
3150
  nameForSerialization('codeDuplicateFilter')
3196
- ], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter", void 0);
3151
+ ], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter", undefined);
3197
3152
  __decorate([
3198
3153
  nameForSerialization('arucoDictionary')
3199
- ], BarcodeCaptureSettings.prototype, "_arucoDictionary", void 0);
3154
+ ], BarcodeCaptureSettings.prototype, "_arucoDictionary", undefined);
3200
3155
  __decorate([
3201
3156
  ignoreFromSerialization
3202
3157
  ], BarcodeCaptureSettings, "barcodeDefaults", null);
@@ -3238,7 +3193,7 @@ class BarcodeCheckFeedback extends DefaultSerializeable {
3238
3193
  }
3239
3194
  updateFeedback() {
3240
3195
  var _a;
3241
- (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
3196
+ (_a = this.listenerController) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
3242
3197
  }
3243
3198
  constructor() {
3244
3199
  super();
@@ -3251,13 +3206,13 @@ class BarcodeCheckFeedback extends DefaultSerializeable {
3251
3206
  }
3252
3207
  __decorate([
3253
3208
  ignoreFromSerialization
3254
- ], BarcodeCheckFeedback.prototype, "listenerController", void 0);
3209
+ ], BarcodeCheckFeedback.prototype, "listenerController", undefined);
3255
3210
  __decorate([
3256
3211
  nameForSerialization('scanned')
3257
- ], BarcodeCheckFeedback.prototype, "_scanned", void 0);
3212
+ ], BarcodeCheckFeedback.prototype, "_scanned", undefined);
3258
3213
  __decorate([
3259
3214
  nameForSerialization('tapped')
3260
- ], BarcodeCheckFeedback.prototype, "_tapped", void 0);
3215
+ ], BarcodeCheckFeedback.prototype, "_tapped", undefined);
3261
3216
  __decorate([
3262
3217
  ignoreFromSerialization
3263
3218
  ], BarcodeCheckFeedback, "barcodeCheckDefaults", null);
@@ -3308,16 +3263,16 @@ class BarcodeCheckSession extends DefaultSerializeable {
3308
3263
  }
3309
3264
  __decorate([
3310
3265
  nameForSerialization('addedTrackedBarcodes')
3311
- ], BarcodeCheckSession.prototype, "_addedTrackedBarcodes", void 0);
3266
+ ], BarcodeCheckSession.prototype, "_addedTrackedBarcodes", undefined);
3312
3267
  __decorate([
3313
3268
  nameForSerialization('removedTrackedBarcodes')
3314
- ], BarcodeCheckSession.prototype, "_removedTrackedBarcodes", void 0);
3269
+ ], BarcodeCheckSession.prototype, "_removedTrackedBarcodes", undefined);
3315
3270
  __decorate([
3316
3271
  nameForSerialization('trackedBarcodes')
3317
- ], BarcodeCheckSession.prototype, "_trackedBarcodes", void 0);
3272
+ ], BarcodeCheckSession.prototype, "_trackedBarcodes", undefined);
3318
3273
  __decorate([
3319
3274
  ignoreFromSerialization
3320
- ], BarcodeCheckSession.prototype, "sessionController", void 0);
3275
+ ], BarcodeCheckSession.prototype, "sessionController", undefined);
3321
3276
 
3322
3277
  var BarcodeCheckListenerEvents;
3323
3278
  (function (BarcodeCheckListenerEvents) {
@@ -3346,8 +3301,8 @@ class BarcodeCheckListenerController {
3346
3301
  subscribeListener() {
3347
3302
  var _a, _b;
3348
3303
  this._proxy.registerBarcodeCheckListener();
3349
- (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === void 0 ? void 0 : _b.call(_a);
3350
- this.eventEmitter.on(BarcodeCheckListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
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* () {
3351
3306
  const payload = EventDataParser.parse(data);
3352
3307
  if (payload === null) {
3353
3308
  console.error('BarcodeCheckListenerController didUpdateSession payload is null');
@@ -3369,7 +3324,7 @@ class BarcodeCheckListenerController {
3369
3324
  return FactoryMaker.getInstance('BarcodeCheckListenerProxy');
3370
3325
  }
3371
3326
  notifyListenersOfDidUpdateSession(session, frameId) {
3372
- return __awaiter(this, void 0, void 0, function* () {
3327
+ return __awaiter(this, undefined, undefined, function* () {
3373
3328
  const mode = this.barcodeCheck;
3374
3329
  mode.isInListenerCallback = true;
3375
3330
  for (const listener of mode.listeners) {
@@ -3458,22 +3413,22 @@ class BarcodeCheck extends DefaultSerializeable {
3458
3413
  }
3459
3414
  __decorate([
3460
3415
  ignoreFromSerialization
3461
- ], BarcodeCheck.prototype, "privateContext", void 0);
3416
+ ], BarcodeCheck.prototype, "privateContext", undefined);
3462
3417
  __decorate([
3463
3418
  ignoreFromSerialization
3464
- ], BarcodeCheck.prototype, "listenerController", void 0);
3419
+ ], BarcodeCheck.prototype, "listenerController", undefined);
3465
3420
  __decorate([
3466
3421
  ignoreFromSerialization
3467
- ], BarcodeCheck.prototype, "isInListenerCallback", void 0);
3422
+ ], BarcodeCheck.prototype, "isInListenerCallback", undefined);
3468
3423
  __decorate([
3469
3424
  nameForSerialization('feedback')
3470
- ], BarcodeCheck.prototype, "_feedback", void 0);
3425
+ ], BarcodeCheck.prototype, "_feedback", undefined);
3471
3426
  __decorate([
3472
3427
  nameForSerialization('settings')
3473
- ], BarcodeCheck.prototype, "_settings", void 0);
3428
+ ], BarcodeCheck.prototype, "_settings", undefined);
3474
3429
  __decorate([
3475
3430
  ignoreFromSerialization
3476
- ], BarcodeCheck.prototype, "listeners", void 0);
3431
+ ], BarcodeCheck.prototype, "listeners", undefined);
3477
3432
  __decorate([
3478
3433
  ignoreFromSerialization
3479
3434
  ], BarcodeCheck, "barcodeCheckDefaults", null);
@@ -3518,22 +3473,22 @@ class BarcodeCheckCircleHighlight extends Observable {
3518
3473
  }
3519
3474
  __decorate([
3520
3475
  nameForSerialization('type')
3521
- ], BarcodeCheckCircleHighlight.prototype, "_type", void 0);
3476
+ ], BarcodeCheckCircleHighlight.prototype, "_type", undefined);
3522
3477
  __decorate([
3523
3478
  ignoreFromSerialization
3524
- ], BarcodeCheckCircleHighlight.prototype, "_barcode", void 0);
3479
+ ], BarcodeCheckCircleHighlight.prototype, "_barcode", undefined);
3525
3480
  __decorate([
3526
3481
  nameForSerialization('brush')
3527
- ], BarcodeCheckCircleHighlight.prototype, "_brush", void 0);
3482
+ ], BarcodeCheckCircleHighlight.prototype, "_brush", undefined);
3528
3483
  __decorate([
3529
3484
  nameForSerialization('icon')
3530
- ], BarcodeCheckCircleHighlight.prototype, "_icon", void 0);
3485
+ ], BarcodeCheckCircleHighlight.prototype, "_icon", undefined);
3531
3486
  __decorate([
3532
3487
  nameForSerialization('preset')
3533
- ], BarcodeCheckCircleHighlight.prototype, "_preset", void 0);
3488
+ ], BarcodeCheckCircleHighlight.prototype, "_preset", undefined);
3534
3489
  __decorate([
3535
3490
  nameForSerialization('size')
3536
- ], BarcodeCheckCircleHighlight.prototype, "_size", void 0);
3491
+ ], BarcodeCheckCircleHighlight.prototype, "_size", undefined);
3537
3492
  __decorate([
3538
3493
  ignoreFromSerialization
3539
3494
  ], BarcodeCheckCircleHighlight, "barcodeCheckDefaults", null);
@@ -3610,9 +3565,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
3610
3565
  }
3611
3566
  set footer(newValue) {
3612
3567
  var _a, _b;
3613
- (_a = this._footer) === null || _a === void 0 ? void 0 : _a.removeListener(this.footerChangedListener);
3568
+ (_a = this._footer) === null || _a === undefined ? undefined : _a.removeListener(this.footerChangedListener);
3614
3569
  this._footer = newValue;
3615
- (_b = this._footer) === null || _b === void 0 ? void 0 : _b.addListener(this.footerChangedListener);
3570
+ (_b = this._footer) === null || _b === undefined ? undefined : _b.addListener(this.footerChangedListener);
3616
3571
  this.notifyListeners('footer', newValue);
3617
3572
  }
3618
3573
  get hasTip() {
@@ -3627,9 +3582,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
3627
3582
  }
3628
3583
  set header(newValue) {
3629
3584
  var _a, _b;
3630
- (_a = this._header) === null || _a === void 0 ? void 0 : _a.removeListener(this.headerChangedListener);
3585
+ (_a = this._header) === null || _a === undefined ? undefined : _a.removeListener(this.headerChangedListener);
3631
3586
  this._header = newValue;
3632
- (_b = this._header) === null || _b === void 0 ? void 0 : _b.addListener(this.headerChangedListener);
3587
+ (_b = this._header) === null || _b === undefined ? undefined : _b.addListener(this.headerChangedListener);
3633
3588
  this.notifyListeners('header', newValue);
3634
3589
  }
3635
3590
  get isEntireAnnotationTappable() {
@@ -3657,43 +3612,43 @@ class BarcodeCheckInfoAnnotation extends Observable {
3657
3612
  }
3658
3613
  __decorate([
3659
3614
  ignoreFromSerialization
3660
- ], BarcodeCheckInfoAnnotation.prototype, "_barcode", void 0);
3615
+ ], BarcodeCheckInfoAnnotation.prototype, "_barcode", undefined);
3661
3616
  __decorate([
3662
3617
  nameForSerialization('type')
3663
- ], BarcodeCheckInfoAnnotation.prototype, "_type", void 0);
3618
+ ], BarcodeCheckInfoAnnotation.prototype, "_type", undefined);
3664
3619
  __decorate([
3665
3620
  nameForSerialization('annotationTrigger')
3666
- ], BarcodeCheckInfoAnnotation.prototype, "_annotationTrigger", void 0);
3621
+ ], BarcodeCheckInfoAnnotation.prototype, "_annotationTrigger", undefined);
3667
3622
  __decorate([
3668
3623
  nameForSerialization('anchor')
3669
- ], BarcodeCheckInfoAnnotation.prototype, "_anchor", void 0);
3624
+ ], BarcodeCheckInfoAnnotation.prototype, "_anchor", undefined);
3670
3625
  __decorate([
3671
3626
  nameForSerialization('backgroundColor')
3672
- ], BarcodeCheckInfoAnnotation.prototype, "_backgroundColor", void 0);
3627
+ ], BarcodeCheckInfoAnnotation.prototype, "_backgroundColor", undefined);
3673
3628
  __decorate([
3674
3629
  nameForSerialization('body')
3675
- ], BarcodeCheckInfoAnnotation.prototype, "_body", void 0);
3630
+ ], BarcodeCheckInfoAnnotation.prototype, "_body", undefined);
3676
3631
  __decorate([
3677
3632
  nameForSerialization('footer')
3678
- ], BarcodeCheckInfoAnnotation.prototype, "_footer", void 0);
3633
+ ], BarcodeCheckInfoAnnotation.prototype, "_footer", undefined);
3679
3634
  __decorate([
3680
3635
  nameForSerialization('hasTip')
3681
- ], BarcodeCheckInfoAnnotation.prototype, "_hasTip", void 0);
3636
+ ], BarcodeCheckInfoAnnotation.prototype, "_hasTip", undefined);
3682
3637
  __decorate([
3683
3638
  nameForSerialization('header')
3684
- ], BarcodeCheckInfoAnnotation.prototype, "_header", void 0);
3639
+ ], BarcodeCheckInfoAnnotation.prototype, "_header", undefined);
3685
3640
  __decorate([
3686
3641
  nameForSerialization('isEntireAnnotationTappable')
3687
- ], BarcodeCheckInfoAnnotation.prototype, "_isEntireAnnotationTappable", void 0);
3642
+ ], BarcodeCheckInfoAnnotation.prototype, "_isEntireAnnotationTappable", undefined);
3688
3643
  __decorate([
3689
3644
  ignoreFromSerialization
3690
- ], BarcodeCheckInfoAnnotation.prototype, "_listener", void 0);
3645
+ ], BarcodeCheckInfoAnnotation.prototype, "_listener", undefined);
3691
3646
  __decorate([
3692
3647
  nameForSerialization('hasListener')
3693
- ], BarcodeCheckInfoAnnotation.prototype, "_hasListener", void 0);
3648
+ ], BarcodeCheckInfoAnnotation.prototype, "_hasListener", undefined);
3694
3649
  __decorate([
3695
3650
  nameForSerialization('width')
3696
- ], BarcodeCheckInfoAnnotation.prototype, "_width", void 0);
3651
+ ], BarcodeCheckInfoAnnotation.prototype, "_width", undefined);
3697
3652
  __decorate([
3698
3653
  ignoreFromSerialization
3699
3654
  ], BarcodeCheckInfoAnnotation, "barcodeCheckDefaults", null);
@@ -3787,31 +3742,31 @@ class BarcodeCheckInfoAnnotationBodyComponent extends Observable {
3787
3742
  }
3788
3743
  __decorate([
3789
3744
  nameForSerialization('isRightIconTappable')
3790
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isRightIconTappable", void 0);
3745
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isRightIconTappable", undefined);
3791
3746
  __decorate([
3792
3747
  nameForSerialization('isLeftIconTappable')
3793
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable", void 0);
3748
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable", undefined);
3794
3749
  __decorate([
3795
3750
  nameForSerialization('rightIcon')
3796
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_rightIcon", void 0);
3751
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_rightIcon", undefined);
3797
3752
  __decorate([
3798
3753
  nameForSerialization('leftIcon')
3799
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_leftIcon", void 0);
3754
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_leftIcon", undefined);
3800
3755
  __decorate([
3801
3756
  nameForSerialization('text')
3802
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_text", void 0);
3757
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_text", undefined);
3803
3758
  __decorate([
3804
3759
  nameForSerialization('textAlign')
3805
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textAlign", void 0);
3760
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textAlign", undefined);
3806
3761
  __decorate([
3807
3762
  nameForSerialization('textColor')
3808
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textColor", void 0);
3763
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textColor", undefined);
3809
3764
  __decorate([
3810
3765
  nameForSerialization('textSize')
3811
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textSize", void 0);
3766
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textSize", undefined);
3812
3767
  __decorate([
3813
3768
  nameForSerialization('fontFamily')
3814
- ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_fontFamily", void 0);
3769
+ ], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_fontFamily", undefined);
3815
3770
  __decorate([
3816
3771
  ignoreFromSerialization
3817
3772
  ], BarcodeCheckInfoAnnotationBodyComponent, "barcodeCheckDefaults", null);
@@ -3879,22 +3834,22 @@ class BarcodeCheckInfoAnnotationFooter extends Observable {
3879
3834
  }
3880
3835
  __decorate([
3881
3836
  nameForSerialization('text')
3882
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_text", void 0);
3837
+ ], BarcodeCheckInfoAnnotationFooter.prototype, "_text", undefined);
3883
3838
  __decorate([
3884
3839
  nameForSerialization('icon')
3885
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_icon", void 0);
3840
+ ], BarcodeCheckInfoAnnotationFooter.prototype, "_icon", undefined);
3886
3841
  __decorate([
3887
3842
  nameForSerialization('textSize')
3888
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_textSize", void 0);
3843
+ ], BarcodeCheckInfoAnnotationFooter.prototype, "_textSize", undefined);
3889
3844
  __decorate([
3890
3845
  nameForSerialization('textColor')
3891
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_textColor", void 0);
3846
+ ], BarcodeCheckInfoAnnotationFooter.prototype, "_textColor", undefined);
3892
3847
  __decorate([
3893
3848
  nameForSerialization('backgroundColor')
3894
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_backgroundColor", void 0);
3849
+ ], BarcodeCheckInfoAnnotationFooter.prototype, "_backgroundColor", undefined);
3895
3850
  __decorate([
3896
3851
  nameForSerialization('fontFamily')
3897
- ], BarcodeCheckInfoAnnotationFooter.prototype, "_fontFamily", void 0);
3852
+ ], BarcodeCheckInfoAnnotationFooter.prototype, "_fontFamily", undefined);
3898
3853
  __decorate([
3899
3854
  ignoreFromSerialization
3900
3855
  ], BarcodeCheckInfoAnnotationFooter, "barcodeCheckDefaults", null);
@@ -3962,22 +3917,22 @@ class BarcodeCheckInfoAnnotationHeader extends Observable {
3962
3917
  }
3963
3918
  __decorate([
3964
3919
  nameForSerialization('text')
3965
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_text", void 0);
3920
+ ], BarcodeCheckInfoAnnotationHeader.prototype, "_text", undefined);
3966
3921
  __decorate([
3967
3922
  nameForSerialization('icon')
3968
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_icon", void 0);
3923
+ ], BarcodeCheckInfoAnnotationHeader.prototype, "_icon", undefined);
3969
3924
  __decorate([
3970
3925
  nameForSerialization('textSize')
3971
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_textSize", void 0);
3926
+ ], BarcodeCheckInfoAnnotationHeader.prototype, "_textSize", undefined);
3972
3927
  __decorate([
3973
3928
  nameForSerialization('textColor')
3974
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_textColor", void 0);
3929
+ ], BarcodeCheckInfoAnnotationHeader.prototype, "_textColor", undefined);
3975
3930
  __decorate([
3976
3931
  nameForSerialization('backgroundColor')
3977
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_backgroundColor", void 0);
3932
+ ], BarcodeCheckInfoAnnotationHeader.prototype, "_backgroundColor", undefined);
3978
3933
  __decorate([
3979
3934
  nameForSerialization('fontFamily')
3980
- ], BarcodeCheckInfoAnnotationHeader.prototype, "_fontFamily", void 0);
3935
+ ], BarcodeCheckInfoAnnotationHeader.prototype, "_fontFamily", undefined);
3981
3936
  __decorate([
3982
3937
  ignoreFromSerialization
3983
3938
  ], BarcodeCheckInfoAnnotationHeader, "barcodeCheckDefaults", null);
@@ -4037,25 +3992,25 @@ class BarcodeCheckPopoverAnnotation extends Observable {
4037
3992
  }
4038
3993
  __decorate([
4039
3994
  nameForSerialization('type')
4040
- ], BarcodeCheckPopoverAnnotation.prototype, "_type", void 0);
3995
+ ], BarcodeCheckPopoverAnnotation.prototype, "_type", undefined);
4041
3996
  __decorate([
4042
3997
  nameForSerialization('isEntirePopoverTappable')
4043
- ], BarcodeCheckPopoverAnnotation.prototype, "_isEntirePopoverTappable", void 0);
3998
+ ], BarcodeCheckPopoverAnnotation.prototype, "_isEntirePopoverTappable", undefined);
4044
3999
  __decorate([
4045
4000
  ignoreFromSerialization
4046
- ], BarcodeCheckPopoverAnnotation.prototype, "_listener", void 0);
4001
+ ], BarcodeCheckPopoverAnnotation.prototype, "_listener", undefined);
4047
4002
  __decorate([
4048
4003
  nameForSerialization('hasListener')
4049
- ], BarcodeCheckPopoverAnnotation.prototype, "_hasListener", void 0);
4004
+ ], BarcodeCheckPopoverAnnotation.prototype, "_hasListener", undefined);
4050
4005
  __decorate([
4051
4006
  nameForSerialization('annotationTrigger')
4052
- ], BarcodeCheckPopoverAnnotation.prototype, "_annotationTrigger", void 0);
4007
+ ], BarcodeCheckPopoverAnnotation.prototype, "_annotationTrigger", undefined);
4053
4008
  __decorate([
4054
4009
  ignoreFromSerialization
4055
- ], BarcodeCheckPopoverAnnotation.prototype, "_barcode", void 0);
4010
+ ], BarcodeCheckPopoverAnnotation.prototype, "_barcode", undefined);
4056
4011
  __decorate([
4057
4012
  nameForSerialization('buttons')
4058
- ], BarcodeCheckPopoverAnnotation.prototype, "_buttons", void 0);
4013
+ ], BarcodeCheckPopoverAnnotation.prototype, "_buttons", undefined);
4059
4014
  __decorate([
4060
4015
  ignoreFromSerialization
4061
4016
  ], BarcodeCheckPopoverAnnotation, "barcodeCheckDefaults", null);
@@ -4104,19 +4059,19 @@ class BarcodeCheckPopoverAnnotationButton extends Observable {
4104
4059
  }
4105
4060
  __decorate([
4106
4061
  nameForSerialization('textColor')
4107
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_textColor", void 0);
4062
+ ], BarcodeCheckPopoverAnnotationButton.prototype, "_textColor", undefined);
4108
4063
  __decorate([
4109
4064
  nameForSerialization('textSize')
4110
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_textSize", void 0);
4065
+ ], BarcodeCheckPopoverAnnotationButton.prototype, "_textSize", undefined);
4111
4066
  __decorate([
4112
4067
  nameForSerialization('fontFamily')
4113
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_fontFamily", void 0);
4068
+ ], BarcodeCheckPopoverAnnotationButton.prototype, "_fontFamily", undefined);
4114
4069
  __decorate([
4115
4070
  nameForSerialization('icon')
4116
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_icon", void 0);
4071
+ ], BarcodeCheckPopoverAnnotationButton.prototype, "_icon", undefined);
4117
4072
  __decorate([
4118
4073
  nameForSerialization('text')
4119
- ], BarcodeCheckPopoverAnnotationButton.prototype, "_text", void 0);
4074
+ ], BarcodeCheckPopoverAnnotationButton.prototype, "_text", undefined);
4120
4075
  __decorate([
4121
4076
  ignoreFromSerialization
4122
4077
  ], BarcodeCheckPopoverAnnotationButton, "barcodeCheckDefaults", null);
@@ -4154,16 +4109,16 @@ class BarcodeCheckRectangleHighlight extends Observable {
4154
4109
  }
4155
4110
  __decorate([
4156
4111
  ignoreFromSerialization
4157
- ], BarcodeCheckRectangleHighlight.prototype, "_barcode", void 0);
4112
+ ], BarcodeCheckRectangleHighlight.prototype, "_barcode", undefined);
4158
4113
  __decorate([
4159
4114
  nameForSerialization('type')
4160
- ], BarcodeCheckRectangleHighlight.prototype, "_type", void 0);
4115
+ ], BarcodeCheckRectangleHighlight.prototype, "_type", undefined);
4161
4116
  __decorate([
4162
4117
  nameForSerialization('brush')
4163
- ], BarcodeCheckRectangleHighlight.prototype, "_brush", void 0);
4118
+ ], BarcodeCheckRectangleHighlight.prototype, "_brush", undefined);
4164
4119
  __decorate([
4165
4120
  nameForSerialization('icon')
4166
- ], BarcodeCheckRectangleHighlight.prototype, "_icon", void 0);
4121
+ ], BarcodeCheckRectangleHighlight.prototype, "_icon", undefined);
4167
4122
  __decorate([
4168
4123
  ignoreFromSerialization
4169
4124
  ], BarcodeCheckRectangleHighlight, "barcodeCheckDefaults", null);
@@ -4275,28 +4230,28 @@ class BarcodeCheckStatusIconAnnotation extends Observable {
4275
4230
  }
4276
4231
  __decorate([
4277
4232
  nameForSerialization('type')
4278
- ], BarcodeCheckStatusIconAnnotation.prototype, "_type", void 0);
4233
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_type", undefined);
4279
4234
  __decorate([
4280
4235
  nameForSerialization('barcode')
4281
- ], BarcodeCheckStatusIconAnnotation.prototype, "_barcode", void 0);
4236
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_barcode", undefined);
4282
4237
  __decorate([
4283
4238
  nameForSerialization('hasTip')
4284
- ], BarcodeCheckStatusIconAnnotation.prototype, "_hasTip", void 0);
4239
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_hasTip", undefined);
4285
4240
  __decorate([
4286
4241
  nameForSerialization('icon')
4287
- ], BarcodeCheckStatusIconAnnotation.prototype, "_icon", void 0);
4242
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_icon", undefined);
4288
4243
  __decorate([
4289
4244
  nameForSerialization('text')
4290
- ], BarcodeCheckStatusIconAnnotation.prototype, "_text", void 0);
4245
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_text", undefined);
4291
4246
  __decorate([
4292
4247
  nameForSerialization('textColor')
4293
- ], BarcodeCheckStatusIconAnnotation.prototype, "_textColor", void 0);
4248
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_textColor", undefined);
4294
4249
  __decorate([
4295
4250
  nameForSerialization('backgroundColor')
4296
- ], BarcodeCheckStatusIconAnnotation.prototype, "_backgroundColor", void 0);
4251
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_backgroundColor", undefined);
4297
4252
  __decorate([
4298
4253
  nameForSerialization('annotationTrigger')
4299
- ], BarcodeCheckStatusIconAnnotation.prototype, "_annotationTrigger", void 0);
4254
+ ], BarcodeCheckStatusIconAnnotation.prototype, "_annotationTrigger", undefined);
4300
4255
  __decorate([
4301
4256
  ignoreFromSerialization
4302
4257
  ], BarcodeCheckStatusIconAnnotation, "barcodeCheckDefaults", null);
@@ -4347,7 +4302,7 @@ class BarcodeCheckViewController extends BaseController {
4347
4302
  return viewController;
4348
4303
  }
4349
4304
  initialize() {
4350
- return __awaiter(this, void 0, void 0, function* () {
4305
+ return __awaiter(this, undefined, undefined, function* () {
4351
4306
  yield this.baseView.context.update();
4352
4307
  if (this.autoCreateNativeView) {
4353
4308
  yield this.createView();
@@ -4355,7 +4310,7 @@ class BarcodeCheckViewController extends BaseController {
4355
4310
  });
4356
4311
  }
4357
4312
  createView() {
4358
- return __awaiter(this, void 0, void 0, function* () {
4313
+ return __awaiter(this, undefined, undefined, function* () {
4359
4314
  const barcodeCheckView = this.baseView.toJSON();
4360
4315
  const json = JSON.stringify(barcodeCheckView);
4361
4316
  return this._proxy.createView(this.baseView.nativeView, json);
@@ -4379,7 +4334,7 @@ class BarcodeCheckViewController extends BaseController {
4379
4334
  if (!highlight) {
4380
4335
  return;
4381
4336
  }
4382
- (_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.barcodeCheckViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapHighlightForBarcode(this.barcodeCheck, barcode, highlight);
4337
+ (_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.barcodeCheckViewUiListener) === null || _b === undefined ? undefined : _b.didTapHighlightForBarcode(this.barcodeCheck, barcode, highlight);
4383
4338
  });
4384
4339
  this._proxy.subscribeViewListeners();
4385
4340
  }
@@ -4389,7 +4344,7 @@ class BarcodeCheckViewController extends BaseController {
4389
4344
  }
4390
4345
  subscribeForAnnotationProviderEvents() {
4391
4346
  this.unsubscribeForAnnotationProviderEvents();
4392
- this.eventEmitter.on(BarcodeCheckViewEvents.annotationForBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
4347
+ this.eventEmitter.on(BarcodeCheckViewEvents.annotationForBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
4393
4348
  var _a, _b;
4394
4349
  const payload = EventDataParser.parse(data);
4395
4350
  if (payload === null) {
@@ -4399,7 +4354,7 @@ class BarcodeCheckViewController extends BaseController {
4399
4354
  const barcodeJson = JSON.parse(payload.barcode);
4400
4355
  const barcode = Barcode.fromJSON(barcodeJson);
4401
4356
  barcode.barcodeId = payload.barcodeId;
4402
- const annotation = yield ((_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.annotationProvider) === null || _b === void 0 ? void 0 : _b.annotationForBarcode(barcode));
4357
+ const annotation = yield ((_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.annotationProvider) === null || _b === undefined ? undefined : _b.annotationForBarcode(barcode));
4403
4358
  if (annotation) {
4404
4359
  this.annotationsCache[payload.barcodeId] = annotation;
4405
4360
  annotation.addListener((property, value) => {
@@ -4422,11 +4377,11 @@ class BarcodeCheckViewController extends BaseController {
4422
4377
  }
4423
4378
  const result = {
4424
4379
  barcodeId: payload.barcodeId,
4425
- annotation: annotation === null || annotation === void 0 ? void 0 : annotation.toJSON()
4380
+ annotation: annotation === null || annotation === undefined ? undefined : annotation.toJSON()
4426
4381
  };
4427
4382
  this._proxy.finishAnnotationForBarcode(JSON.stringify(result));
4428
4383
  }));
4429
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4384
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4430
4385
  var _a, _b;
4431
4386
  const payload = EventDataParser.parse(data);
4432
4387
  if (payload === null) {
@@ -4437,9 +4392,9 @@ class BarcodeCheckViewController extends BaseController {
4437
4392
  if (!popover) {
4438
4393
  return;
4439
4394
  }
4440
- (_b = (_a = popover.listener) === null || _a === void 0 ? void 0 : _a.didTap) === null || _b === void 0 ? void 0 : _b.call(_a, popover);
4395
+ (_b = (_a = popover.listener) === null || _a === undefined ? undefined : _a.didTap) === null || _b === undefined ? undefined : _b.call(_a, popover);
4441
4396
  }));
4442
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4397
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4443
4398
  var _a, _b;
4444
4399
  const payload = EventDataParser.parse(data);
4445
4400
  if (payload === null) {
@@ -4451,9 +4406,9 @@ class BarcodeCheckViewController extends BaseController {
4451
4406
  return;
4452
4407
  }
4453
4408
  const button = popover.buttons[payload.index];
4454
- (_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);
4409
+ (_b = (_a = popover.listener) === null || _a === undefined ? undefined : _a.didTapButton) === null || _b === undefined ? undefined : _b.call(_a, popover, button, payload.index);
4455
4410
  }));
4456
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4411
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4457
4412
  var _a, _b;
4458
4413
  const payload = EventDataParser.parse(data);
4459
4414
  if (payload === null) {
@@ -4465,9 +4420,9 @@ class BarcodeCheckViewController extends BaseController {
4465
4420
  return;
4466
4421
  }
4467
4422
  const component = infoAnnotation.body[payload.componentIndex];
4468
- (_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);
4423
+ (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapRightIcon) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation, component, payload.componentIndex);
4469
4424
  }));
4470
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4425
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4471
4426
  var _a, _b;
4472
4427
  const payload = EventDataParser.parse(data);
4473
4428
  if (payload === null) {
@@ -4479,9 +4434,9 @@ class BarcodeCheckViewController extends BaseController {
4479
4434
  return;
4480
4435
  }
4481
4436
  const component = infoAnnotation.body[payload.componentIndex];
4482
- (_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);
4437
+ (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapLeftIcon) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation, component, payload.componentIndex);
4483
4438
  }));
4484
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4439
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4485
4440
  var _a, _b;
4486
4441
  const payload = EventDataParser.parse(data);
4487
4442
  if (payload === null) {
@@ -4492,9 +4447,9 @@ class BarcodeCheckViewController extends BaseController {
4492
4447
  if (infoAnnotation == null) {
4493
4448
  return;
4494
4449
  }
4495
- (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTap) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
4450
+ (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTap) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
4496
4451
  }));
4497
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4452
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4498
4453
  var _a, _b;
4499
4454
  const payload = EventDataParser.parse(data);
4500
4455
  if (payload === null) {
@@ -4505,9 +4460,9 @@ class BarcodeCheckViewController extends BaseController {
4505
4460
  if (infoAnnotation == null) {
4506
4461
  return;
4507
4462
  }
4508
- (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapHeader) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
4463
+ (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapHeader) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
4509
4464
  }));
4510
- this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this, void 0, void 0, function* () {
4465
+ this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this, undefined, undefined, function* () {
4511
4466
  var _a, _b;
4512
4467
  const payload = EventDataParser.parse(data);
4513
4468
  if (payload === null) {
@@ -4518,7 +4473,7 @@ class BarcodeCheckViewController extends BaseController {
4518
4473
  if (infoAnnotation == null) {
4519
4474
  return;
4520
4475
  }
4521
- (_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapFooter) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
4476
+ (_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapFooter) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
4522
4477
  }));
4523
4478
  this._proxy.subscribeToAnnotationProviderEvents();
4524
4479
  }
@@ -4528,7 +4483,7 @@ class BarcodeCheckViewController extends BaseController {
4528
4483
  }
4529
4484
  subscribeForHighlightProviderEvents() {
4530
4485
  this.unsubscribeForHighlightProviderEvents();
4531
- this.eventEmitter.on(BarcodeCheckViewEvents.highlightForBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
4486
+ this.eventEmitter.on(BarcodeCheckViewEvents.highlightForBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
4532
4487
  var _a, _b;
4533
4488
  const payload = EventDataParser.parse(data);
4534
4489
  if (payload === null) {
@@ -4538,7 +4493,7 @@ class BarcodeCheckViewController extends BaseController {
4538
4493
  const barcodeJson = JSON.parse(payload.barcode);
4539
4494
  const barcode = Barcode.fromJSON(barcodeJson);
4540
4495
  barcode.barcodeId = payload.barcodeId;
4541
- const highlight = yield ((_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.highlightProvider) === null || _b === void 0 ? void 0 : _b.highlightForBarcode(barcode));
4496
+ const highlight = yield ((_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.highlightProvider) === null || _b === undefined ? undefined : _b.highlightForBarcode(barcode));
4542
4497
  if (highlight) {
4543
4498
  this.highlightCache[payload.barcodeId] = highlight;
4544
4499
  highlight.addListener(() => {
@@ -4549,7 +4504,7 @@ class BarcodeCheckViewController extends BaseController {
4549
4504
  }
4550
4505
  const result = {
4551
4506
  barcodeId: payload.barcodeId,
4552
- highlight: highlight === null || highlight === void 0 ? void 0 : highlight.toJSON()
4507
+ highlight: highlight === null || highlight === undefined ? undefined : highlight.toJSON()
4553
4508
  };
4554
4509
  this._proxy.finishHighlightForBarcode(JSON.stringify(result));
4555
4510
  }));
@@ -4560,7 +4515,7 @@ class BarcodeCheckViewController extends BaseController {
4560
4515
  this.eventEmitter.off(BarcodeCheckViewEvents.highlightForBarcode);
4561
4516
  }
4562
4517
  setUiListener(listener) {
4563
- return __awaiter(this, void 0, void 0, function* () {
4518
+ return __awaiter(this, undefined, undefined, function* () {
4564
4519
  if (listener && !this.isListenerEnabled) {
4565
4520
  this.isListenerEnabled = true;
4566
4521
  this.subscribeForUiListenerEvents();
@@ -4572,7 +4527,7 @@ class BarcodeCheckViewController extends BaseController {
4572
4527
  });
4573
4528
  }
4574
4529
  setAnnotationProvider(provider) {
4575
- return __awaiter(this, void 0, void 0, function* () {
4530
+ return __awaiter(this, undefined, undefined, function* () {
4576
4531
  if (provider != null) {
4577
4532
  yield this._proxy.registerBarcodeCheckAnnotationProvider();
4578
4533
  this.subscribeForAnnotationProviderEvents();
@@ -4584,7 +4539,7 @@ class BarcodeCheckViewController extends BaseController {
4584
4539
  });
4585
4540
  }
4586
4541
  setHighlightProvider(provider) {
4587
- return __awaiter(this, void 0, void 0, function* () {
4542
+ return __awaiter(this, undefined, undefined, function* () {
4588
4543
  if (provider != null) {
4589
4544
  yield this._proxy.registerBarcodeCheckHighlightProvider();
4590
4545
  this.subscribeForHighlightProviderEvents();
@@ -4615,16 +4570,21 @@ class BarcodeCheckViewController extends BaseController {
4615
4570
  const json = JSON.stringify(barcodeCheckView);
4616
4571
  return this._proxy.update(json);
4617
4572
  }
4573
+ reset() {
4574
+ this.highlightCache = {};
4575
+ this.annotationsCache = {};
4576
+ return this._proxy.barcodeCheckViewReset();
4577
+ }
4618
4578
  }
4619
4579
  __decorate([
4620
4580
  ignoreFromSerialization
4621
- ], BarcodeCheckViewController.prototype, "autoCreateNativeView", void 0);
4581
+ ], BarcodeCheckViewController.prototype, "autoCreateNativeView", undefined);
4622
4582
  __decorate([
4623
4583
  ignoreFromSerialization
4624
- ], BarcodeCheckViewController.prototype, "highlightCache", void 0);
4584
+ ], BarcodeCheckViewController.prototype, "highlightCache", undefined);
4625
4585
  __decorate([
4626
4586
  ignoreFromSerialization
4627
- ], BarcodeCheckViewController.prototype, "annotationsCache", void 0);
4587
+ ], BarcodeCheckViewController.prototype, "annotationsCache", undefined);
4628
4588
 
4629
4589
  class BaseBarcodeCheckView extends DefaultSerializeable {
4630
4590
  static get barcodeCheckDefaults() {
@@ -4653,9 +4613,9 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
4653
4613
  this._barcodeCheckViewSettings = barcodeCheckViewSettings;
4654
4614
  this._cameraSettings = cameraSettings;
4655
4615
  this._autoCreateNativeView = autoCreateNativeView;
4656
- this._annotationProvider = annotationProvider !== null && annotationProvider !== void 0 ? annotationProvider : null;
4657
- this._highlightProvider = highlightProvider !== null && highlightProvider !== void 0 ? highlightProvider : null;
4658
- this._barcodeCheckViewUiListener = uiListener !== null && uiListener !== void 0 ? uiListener : null;
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;
4659
4619
  this.nativeView = nativeView;
4660
4620
  this.controller = BarcodeCheckViewController.forBarcodeCheckView(this._barcodeCheck, this, this._autoCreateNativeView);
4661
4621
  }
@@ -4702,6 +4662,9 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
4702
4662
  // TODO: check if we need to change isStarted
4703
4663
  return this.controller.pause();
4704
4664
  }
4665
+ reset() {
4666
+ return this.controller.reset();
4667
+ }
4705
4668
  get shouldShowTorchControl() {
4706
4669
  return this._shouldShowTorchControl;
4707
4670
  }
@@ -4784,52 +4747,52 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
4784
4747
  }
4785
4748
  __decorate([
4786
4749
  ignoreFromSerialization
4787
- ], BaseBarcodeCheckView.prototype, "_autoCreateNativeView", void 0);
4750
+ ], BaseBarcodeCheckView.prototype, "_autoCreateNativeView", undefined);
4788
4751
  __decorate([
4789
4752
  ignoreFromSerialization
4790
- ], BaseBarcodeCheckView.prototype, "_annotationProvider", void 0);
4753
+ ], BaseBarcodeCheckView.prototype, "_annotationProvider", undefined);
4791
4754
  __decorate([
4792
4755
  ignoreFromSerialization
4793
- ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewUiListener", void 0);
4756
+ ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewUiListener", undefined);
4794
4757
  __decorate([
4795
4758
  ignoreFromSerialization
4796
- ], BaseBarcodeCheckView.prototype, "_highlightProvider", void 0);
4759
+ ], BaseBarcodeCheckView.prototype, "_highlightProvider", undefined);
4797
4760
  __decorate([
4798
4761
  ignoreFromSerialization
4799
- ], BaseBarcodeCheckView.prototype, "nativeView", void 0);
4762
+ ], BaseBarcodeCheckView.prototype, "nativeView", undefined);
4800
4763
  __decorate([
4801
4764
  nameForSerialization('barcodeCheck')
4802
- ], BaseBarcodeCheckView.prototype, "_barcodeCheck", void 0);
4765
+ ], BaseBarcodeCheckView.prototype, "_barcodeCheck", undefined);
4803
4766
  __decorate([
4804
4767
  nameForSerialization('isStarted')
4805
- ], BaseBarcodeCheckView.prototype, "_isStarted", void 0);
4768
+ ], BaseBarcodeCheckView.prototype, "_isStarted", undefined);
4806
4769
  __decorate([
4807
4770
  nameForSerialization('viewSettings')
4808
- ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewSettings", void 0);
4771
+ ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewSettings", undefined);
4809
4772
  __decorate([
4810
4773
  nameForSerialization('cameraSettings')
4811
- ], BaseBarcodeCheckView.prototype, "_cameraSettings", void 0);
4774
+ ], BaseBarcodeCheckView.prototype, "_cameraSettings", undefined);
4812
4775
  __decorate([
4813
4776
  nameForSerialization('dataCaptureContext')
4814
- ], BaseBarcodeCheckView.prototype, "_dataCaptureContext", void 0);
4777
+ ], BaseBarcodeCheckView.prototype, "_dataCaptureContext", undefined);
4815
4778
  __decorate([
4816
4779
  nameForSerialization('shouldShowMacroControl')
4817
- ], BaseBarcodeCheckView.prototype, "_shouldShowMacroControl", void 0);
4780
+ ], BaseBarcodeCheckView.prototype, "_shouldShowMacroControl", undefined);
4818
4781
  __decorate([
4819
4782
  nameForSerialization('macroModeControlPosition')
4820
- ], BaseBarcodeCheckView.prototype, "_macroModeControlPosition", void 0);
4783
+ ], BaseBarcodeCheckView.prototype, "_macroModeControlPosition", undefined);
4821
4784
  __decorate([
4822
4785
  nameForSerialization('shouldShowTorchControl')
4823
- ], BaseBarcodeCheckView.prototype, "_shouldShowTorchControl", void 0);
4786
+ ], BaseBarcodeCheckView.prototype, "_shouldShowTorchControl", undefined);
4824
4787
  __decorate([
4825
4788
  nameForSerialization('torchControlPosition')
4826
- ], BaseBarcodeCheckView.prototype, "_torchControlPosition", void 0);
4789
+ ], BaseBarcodeCheckView.prototype, "_torchControlPosition", undefined);
4827
4790
  __decorate([
4828
4791
  nameForSerialization('shouldShowZoomControl')
4829
- ], BaseBarcodeCheckView.prototype, "_shouldShowZoomControl", void 0);
4792
+ ], BaseBarcodeCheckView.prototype, "_shouldShowZoomControl", undefined);
4830
4793
  __decorate([
4831
4794
  nameForSerialization('zoomControlPosition')
4832
- ], BaseBarcodeCheckView.prototype, "_zoomControlPosition", void 0);
4795
+ ], BaseBarcodeCheckView.prototype, "_zoomControlPosition", undefined);
4833
4796
  __decorate([
4834
4797
  ignoreFromSerialization
4835
4798
  ], BaseBarcodeCheckView, "barcodeCheckDefaults", null);
@@ -4868,13 +4831,13 @@ class BarcodeCheckViewSettings extends DefaultSerializeable {
4868
4831
  }
4869
4832
  __decorate([
4870
4833
  nameForSerialization("soundEnabled")
4871
- ], BarcodeCheckViewSettings.prototype, "_soundEnabled", void 0);
4834
+ ], BarcodeCheckViewSettings.prototype, "_soundEnabled", undefined);
4872
4835
  __decorate([
4873
4836
  nameForSerialization("hapticEnabled")
4874
- ], BarcodeCheckViewSettings.prototype, "_hapticEnabled", void 0);
4837
+ ], BarcodeCheckViewSettings.prototype, "_hapticEnabled", undefined);
4875
4838
  __decorate([
4876
4839
  nameForSerialization("defaultCameraPosition")
4877
- ], BarcodeCheckViewSettings.prototype, "_defaultCameraPosition", void 0);
4840
+ ], BarcodeCheckViewSettings.prototype, "_defaultCameraPosition", undefined);
4878
4841
  __decorate([
4879
4842
  ignoreFromSerialization
4880
4843
  ], BarcodeCheckViewSettings, "barcodeCheckDefaults", null);
@@ -4927,15 +4890,15 @@ class BarcodeSelectionFeedback extends DefaultSerializeable {
4927
4890
  }
4928
4891
  updateFeedback() {
4929
4892
  var _a;
4930
- (_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
4893
+ (_a = this.controller) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
4931
4894
  }
4932
4895
  }
4933
4896
  __decorate([
4934
4897
  ignoreFromSerialization
4935
- ], BarcodeSelectionFeedback.prototype, "controller", void 0);
4898
+ ], BarcodeSelectionFeedback.prototype, "controller", undefined);
4936
4899
  __decorate([
4937
4900
  nameForSerialization('selection')
4938
- ], BarcodeSelectionFeedback.prototype, "_selection", void 0);
4901
+ ], BarcodeSelectionFeedback.prototype, "_selection", undefined);
4939
4902
  __decorate([
4940
4903
  ignoreFromSerialization
4941
4904
  ], BarcodeSelectionFeedback, "barcodeSelectionDefaults", null);
@@ -4964,7 +4927,7 @@ class BarcodeSelectionSession {
4964
4927
  session._newlyUnselectedBarcodes = sessionJson.newlyUnselectedBarcodes
4965
4928
  .map(Barcode.fromJSON);
4966
4929
  session._frameSequenceID = sessionJson.frameSequenceId;
4967
- session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
4930
+ session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
4968
4931
  return session;
4969
4932
  }
4970
4933
  getCount(barcode) {
@@ -4977,26 +4940,22 @@ class BarcodeSelectionSession {
4977
4940
 
4978
4941
  var BarcodeSelectionListenerEvents;
4979
4942
  (function (BarcodeSelectionListenerEvents) {
4980
- BarcodeSelectionListenerEvents["inCallback"] = "BarcodeSelectionListener.inCallback";
4981
4943
  BarcodeSelectionListenerEvents["didUpdateSelection"] = "BarcodeSelectionListener.didUpdateSelection";
4982
4944
  BarcodeSelectionListenerEvents["didUpdateSession"] = "BarcodeSelectionListener.didUpdateSession";
4983
4945
  })(BarcodeSelectionListenerEvents || (BarcodeSelectionListenerEvents = {}));
4984
- class BarcodeSelectionListenerController {
4985
- get _proxy() {
4986
- return FactoryMaker.getInstance('BarcodeSelectionListenerProxy');
4987
- }
4946
+ class BarcodeSelectionListenerController extends BaseNewController {
4988
4947
  static forBarcodeSelection(barcodeSelection) {
4989
4948
  const controller = new BarcodeSelectionListenerController();
4990
4949
  controller.barcodeSelection = barcodeSelection;
4991
- controller._proxy.isModeEnabled = () => barcodeSelection.isEnabled;
4950
+ controller._proxy.$setBarcodeSelectionModeEnabledState = () => barcodeSelection.isEnabled;
4992
4951
  return controller;
4993
4952
  }
4994
4953
  constructor() {
4995
- this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
4954
+ super('BarcodeSelectionListenerProxy');
4996
4955
  }
4997
4956
  getCount(barcode) {
4998
- return __awaiter(this, void 0, void 0, function* () {
4999
- const result = yield this._proxy.getCount(barcode.selectionIdentifier);
4957
+ return __awaiter(this, undefined, undefined, function* () {
4958
+ const result = yield this._proxy.$getCountForBarcodeInBarcodeSelectionSession({ selectionIdentifier: barcode.selectionIdentifier });
5000
4959
  if (result == null) {
5001
4960
  return 0;
5002
4961
  }
@@ -5004,15 +4963,12 @@ class BarcodeSelectionListenerController {
5004
4963
  });
5005
4964
  }
5006
4965
  reset() {
5007
- return this._proxy.resetSession();
4966
+ return this._proxy.$resetBarcodeSelectionSession();
5008
4967
  }
5009
4968
  subscribeListener() {
5010
- var _a, _b, _c, _d;
5011
- this._proxy.registerListenerForEvents();
5012
- (_b = (_a = this._proxy).subscribeDidUpdateSelectionListener) === null || _b === void 0 ? void 0 : _b.call(_a);
5013
- (_d = (_c = this._proxy).subscribeDidUpdateSession) === null || _d === void 0 ? void 0 : _d.call(_c);
5014
- this.eventEmitter.on(BarcodeSelectionListenerEvents.didUpdateSelection, (data) => __awaiter(this, void 0, void 0, function* () {
5015
- const payload = EventDataParser.parse(data);
4969
+ this._proxy.$registerBarcodeSelectionListenerForEvents();
4970
+ this._proxy.on$didUpdateSelection = (ev) => __awaiter(this, undefined, undefined, function* () {
4971
+ const payload = EventDataParser.parse(ev.data);
5016
4972
  if (payload === null) {
5017
4973
  console.error('BarcodeSelectionListenerController didUpdateSelection payload is null');
5018
4974
  return;
@@ -5020,10 +4976,10 @@ class BarcodeSelectionListenerController {
5020
4976
  const session = BarcodeSelectionSession.fromJSON(payload);
5021
4977
  session.listenerController = this;
5022
4978
  yield this.notifyListenersOfDidUpdateSelection(session);
5023
- this._proxy.finishDidUpdateSelectionCallback(this.barcodeSelection.isEnabled);
5024
- }));
5025
- this.eventEmitter.on(BarcodeSelectionListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
5026
- const payload = EventDataParser.parse(data);
4979
+ this._proxy.$finishBarcodeSelectionDidSelect({ enabled: this.barcodeSelection.isEnabled });
4980
+ });
4981
+ this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
4982
+ const payload = EventDataParser.parse(ev.data);
5027
4983
  if (payload === null) {
5028
4984
  console.error('BarcodeSelectionListenerController didUpdateSession payload is null');
5029
4985
  return;
@@ -5031,76 +4987,71 @@ class BarcodeSelectionListenerController {
5031
4987
  const session = BarcodeSelectionSession.fromJSON(payload);
5032
4988
  session.listenerController = this;
5033
4989
  yield this.notifyListenersOfDidUpdateSession(session);
5034
- this._proxy.finishDidUpdateSessionCallback(this.barcodeSelection.isEnabled);
5035
- }));
4990
+ this._proxy.$finishBarcodeSelectionDidUpdateSession({ enabled: this.barcodeSelection.isEnabled });
4991
+ });
5036
4992
  }
5037
4993
  unsubscribeListener() {
5038
- this._proxy.unregisterListenerForEvents();
5039
- this.eventEmitter.removeAllListeners(BarcodeSelectionListenerEvents.didUpdateSelection);
5040
- this.eventEmitter.removeAllListeners(BarcodeSelectionListenerEvents.didUpdateSession);
4994
+ this._proxy.$unregisterBarcodeSelectionListenerForEvents();
4995
+ this._proxy.dispose();
5041
4996
  }
5042
4997
  notifyListenersOfDidUpdateSelection(session) {
5043
- return __awaiter(this, void 0, void 0, function* () {
4998
+ return __awaiter(this, undefined, undefined, function* () {
5044
4999
  const mode = this.barcodeSelection;
5045
- mode.isInListenerCallback = true;
5046
5000
  for (const listener of mode.listeners) {
5047
5001
  if (listener.didUpdateSelection) {
5048
5002
  yield listener.didUpdateSelection(this.barcodeSelection, session, () => CameraController.getFrameOrNull(session.frameId));
5049
5003
  }
5050
5004
  }
5051
- mode.isInListenerCallback = false;
5052
5005
  });
5053
5006
  }
5054
5007
  notifyListenersOfDidUpdateSession(session) {
5055
- return __awaiter(this, void 0, void 0, function* () {
5008
+ return __awaiter(this, undefined, undefined, function* () {
5056
5009
  const mode = this.barcodeSelection;
5057
- mode.isInListenerCallback = true;
5058
5010
  for (const listener of mode.listeners) {
5059
5011
  if (listener.didUpdateSession) {
5060
5012
  yield listener.didUpdateSession(this.barcodeSelection, session, () => CameraController.getFrameOrNull(session.frameId));
5061
5013
  }
5062
5014
  }
5063
- mode.isInListenerCallback = false;
5064
5015
  });
5065
5016
  }
5066
5017
  }
5067
5018
 
5068
- class BarcodeSelectionController {
5069
- get _proxy() {
5070
- return FactoryMaker.getInstance('BarcodeSelectionProxy');
5019
+ class BarcodeSelectionController extends BaseNewController {
5020
+ constructor() {
5021
+ super('BarcodeSelectionProxy');
5071
5022
  }
5072
5023
  unfreezeCamera() {
5073
- return this._proxy.unfreezeCamera();
5024
+ return this._proxy.$unfreezeCameraInBarcodeSelection();
5074
5025
  }
5075
5026
  reset() {
5076
- return this._proxy.resetMode();
5027
+ return this._proxy.$resetBarcodeSelection();
5077
5028
  }
5078
5029
  selectAimedBarcode() {
5079
- return this._proxy.selectAimedBarcode();
5030
+ return this._proxy.$selectAimedBarcode();
5080
5031
  }
5081
5032
  unselectBarcodes(barcodes) {
5082
5033
  const barcodesJson = this.convertBarcodesToJson(barcodes);
5083
- return this._proxy.unselectBarcodes(JSON.stringify({ barcodes: barcodesJson }));
5034
+ return this._proxy.$unselectBarcodes({ barcodesJson: JSON.stringify(barcodesJson) });
5084
5035
  }
5085
5036
  setSelectBarcodeEnabled(barcode, enabled) {
5086
5037
  const barcodesJson = this.convertBarcodesToJson([barcode]);
5087
- return this._proxy.setSelectBarcodeEnabled(JSON.stringify(barcodesJson[0]), enabled);
5038
+ return this._proxy.$setSelectBarcodeEnabled({ barcodeJson: JSON.stringify(barcodesJson[0]), enabled: enabled });
5088
5039
  }
5089
5040
  increaseCountForBarcodes(barcodes) {
5090
5041
  const barcodesJson = this.convertBarcodesToJson(barcodes);
5091
- return this._proxy.increaseCountForBarcodes(JSON.stringify({ barcodes: barcodesJson }));
5042
+ return this._proxy.$increaseCountForBarcodes({ barcodeJson: JSON.stringify(barcodesJson) });
5092
5043
  }
5093
5044
  setModeEnabledState(enabled) {
5094
- this._proxy.setModeEnabledState(enabled);
5045
+ this._proxy.$setBarcodeSelectionModeEnabledState({ enabled: enabled });
5095
5046
  }
5096
5047
  updateBarcodeSelectionMode(barcodeSelection) {
5097
- return this._proxy.updateBarcodeSelectionMode(JSON.stringify(barcodeSelection.toJSON()));
5048
+ return this._proxy.$updateBarcodeSelectionMode({ modeJson: JSON.stringify(barcodeSelection.toJSON()) });
5098
5049
  }
5099
5050
  applyBarcodeSelectionModeSettings(newSettings) {
5100
- return this._proxy.applyBarcodeSelectionModeSettings(JSON.stringify(newSettings.toJSON()));
5051
+ return this._proxy.$applyBarcodeSelectionModeSettings({ modeSettingsJson: JSON.stringify(newSettings.toJSON()) });
5101
5052
  }
5102
5053
  updateFeedback(feedbackJson) {
5103
- this._proxy.updateFeedback(feedbackJson);
5054
+ this._proxy.$updateBarcodeSelectionFeedback({ feedbackJson: feedbackJson });
5104
5055
  }
5105
5056
  convertBarcodesToJson(barcodes) {
5106
5057
  return barcodes.flat().map((barcode) => ({
@@ -5172,7 +5123,6 @@ class BarcodeSelection extends DefaultSerializeable {
5172
5123
  this._pointOfInterest = null;
5173
5124
  this.privateContext = null;
5174
5125
  this.listeners = [];
5175
- this.isInListenerCallback = false;
5176
5126
  this.listenerController = BarcodeSelectionListenerController.forBarcodeSelection(this);
5177
5127
  this.modeController = new BarcodeSelectionController();
5178
5128
  this._feedback.controller = this.modeController;
@@ -5217,28 +5167,25 @@ class BarcodeSelection extends DefaultSerializeable {
5217
5167
  }
5218
5168
  __decorate([
5219
5169
  ignoreFromSerialization
5220
- ], BarcodeSelection.prototype, "_isEnabled", void 0);
5170
+ ], BarcodeSelection.prototype, "_isEnabled", undefined);
5221
5171
  __decorate([
5222
5172
  nameForSerialization('feedback')
5223
- ], BarcodeSelection.prototype, "_feedback", void 0);
5173
+ ], BarcodeSelection.prototype, "_feedback", undefined);
5224
5174
  __decorate([
5225
5175
  nameForSerialization('pointOfInterest')
5226
- ], BarcodeSelection.prototype, "_pointOfInterest", void 0);
5176
+ ], BarcodeSelection.prototype, "_pointOfInterest", undefined);
5227
5177
  __decorate([
5228
5178
  ignoreFromSerialization
5229
- ], BarcodeSelection.prototype, "privateContext", void 0);
5179
+ ], BarcodeSelection.prototype, "privateContext", undefined);
5230
5180
  __decorate([
5231
5181
  ignoreFromSerialization
5232
- ], BarcodeSelection.prototype, "listeners", void 0);
5182
+ ], BarcodeSelection.prototype, "listeners", undefined);
5233
5183
  __decorate([
5234
5184
  ignoreFromSerialization
5235
- ], BarcodeSelection.prototype, "listenerController", void 0);
5185
+ ], BarcodeSelection.prototype, "listenerController", undefined);
5236
5186
  __decorate([
5237
5187
  ignoreFromSerialization
5238
- ], BarcodeSelection.prototype, "modeController", void 0);
5239
- __decorate([
5240
- ignoreFromSerialization
5241
- ], BarcodeSelection.prototype, "isInListenerCallback", void 0);
5188
+ ], BarcodeSelection.prototype, "modeController", undefined);
5242
5189
  __decorate([
5243
5190
  ignoreFromSerialization
5244
5191
  ], BarcodeSelection, "barcodeSelectionDefaults", null);
@@ -5275,31 +5222,26 @@ var BarcodeSelectionTypeName;
5275
5222
 
5276
5223
  var BarcodeSelectionBrushProviderEvents;
5277
5224
  (function (BarcodeSelectionBrushProviderEvents) {
5278
- BarcodeSelectionBrushProviderEvents["inCallback"] = "BarcodeSelectionAimedBrushProvider.inCallback";
5279
5225
  BarcodeSelectionBrushProviderEvents["brushForAimedBarcode"] = "BarcodeSelectionAimedBrushProvider.brushForBarcode";
5280
5226
  BarcodeSelectionBrushProviderEvents["brushForTrackedBarcode"] = "BarcodeSelectionTrackedBrushProvider.brushForBarcode";
5281
5227
  })(BarcodeSelectionBrushProviderEvents || (BarcodeSelectionBrushProviderEvents = {}));
5282
- class BarcodeSelectionOverlayController {
5283
- get _proxy() {
5284
- return FactoryMaker.getInstance('BarcodeSelectionOverlayProxy');
5285
- }
5228
+ class BarcodeSelectionOverlayController extends BaseNewController {
5286
5229
  constructor() {
5287
- this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
5230
+ super('BarcodeSelectionOverlayProxy');
5288
5231
  }
5289
5232
  setTextForAimToSelectAutoHint(text) {
5290
- return __awaiter(this, void 0, void 0, function* () {
5291
- return yield this._proxy.setTextForAimToSelectAutoHint(text);
5233
+ return __awaiter(this, undefined, undefined, function* () {
5234
+ return yield this._proxy.$setTextForAimToSelectAutoHint({ text });
5292
5235
  });
5293
5236
  }
5294
5237
  setAimedBarcodeBrushProvider(brushProvider) {
5295
5238
  if (!brushProvider) {
5296
- this.eventEmitter.removeAllListeners(BarcodeSelectionBrushProviderEvents.brushForAimedBarcode);
5297
- return this._proxy.removeAimedBarcodeBrushProvider();
5239
+ this._proxy.on$brushForAimedBarcode = () => { };
5240
+ return this._proxy.$removeAimedBarcodeBrushProvider();
5298
5241
  }
5299
- const subscriptionResult = this._proxy.setAimedBarcodeBrushProvider();
5300
- this._proxy.subscribeBrushForAimedBarcode();
5301
- this.eventEmitter.on(BarcodeSelectionBrushProviderEvents.brushForAimedBarcode, (data) => {
5302
- const payload = EventDataParser.parse(data);
5242
+ const subscriptionResult = this._proxy.$setAimedBarcodeBrushProvider();
5243
+ this._proxy.on$brushForAimedBarcode = (ev) => {
5244
+ const payload = EventDataParser.parse(ev.data);
5303
5245
  if (payload === null) {
5304
5246
  console.error('BarcodeSelectionOverlayController brushForAimedBarcode payload is null');
5305
5247
  return;
@@ -5310,19 +5252,18 @@ class BarcodeSelectionOverlayController {
5310
5252
  if (brushProvider.brushForBarcode) {
5311
5253
  brush = brushProvider.brushForBarcode(barcode);
5312
5254
  }
5313
- this._proxy.finishBrushForAimedBarcodeCallback(brush ? JSON.stringify(brush.toJSON()) : null, barcode.selectionIdentifier);
5314
- });
5255
+ this._proxy.$finishBrushForAimedBarcodeCallback({ brushJson: brush ? JSON.stringify(brush.toJSON()) : null, selectionIdentifier: barcode.selectionIdentifier });
5256
+ };
5315
5257
  return subscriptionResult;
5316
5258
  }
5317
5259
  setTrackedBarcodeBrushProvider(brushProvider) {
5318
5260
  if (!brushProvider) {
5319
- this.eventEmitter.removeAllListeners(BarcodeSelectionBrushProviderEvents.brushForTrackedBarcode);
5320
- return this._proxy.removeTrackedBarcodeBrushProvider();
5261
+ this._proxy.on$brushForTrackedBarcode = () => { };
5262
+ return this._proxy.$removeTrackedBarcodeBrushProvider();
5321
5263
  }
5322
- const subscriptionResult = this._proxy.setTrackedBarcodeBrushProvider();
5323
- this._proxy.subscribeBrushForTrackedBarcode();
5324
- this.eventEmitter.on(BarcodeSelectionBrushProviderEvents.brushForTrackedBarcode, (data) => {
5325
- const payload = EventDataParser.parse(data);
5264
+ const subscriptionResult = this._proxy.$setTrackedBarcodeBrushProvider();
5265
+ this._proxy.on$brushForTrackedBarcode = (ev) => {
5266
+ const payload = EventDataParser.parse(ev.data);
5326
5267
  if (payload === null) {
5327
5268
  console.error('BarcodeSelectionBrushProvider brushForTrackedBarcode payload is null');
5328
5269
  return;
@@ -5333,20 +5274,19 @@ class BarcodeSelectionOverlayController {
5333
5274
  if (brushProvider.brushForBarcode) {
5334
5275
  brush = brushProvider.brushForBarcode(barcode);
5335
5276
  }
5336
- this._proxy.finishBrushForTrackedBarcodeCallback(brush ? JSON.stringify(brush.toJSON()) : null, barcode.selectionIdentifier);
5337
- });
5277
+ this._proxy.$finishBrushForTrackedBarcodeCallback({ brushJson: brush ? JSON.stringify(brush.toJSON()) : null, selectionIdentifier: barcode.selectionIdentifier });
5278
+ };
5338
5279
  return subscriptionResult;
5339
5280
  }
5340
5281
  updateBarcodeSelectionBasicOverlay(overlay) {
5341
- return this._proxy.updateBarcodeSelectionBasicOverlay(JSON.stringify(overlay.toJSON()));
5282
+ return this._proxy.$updateBarcodeSelectionBasicOverlay({ overlayJson: JSON.stringify(overlay.toJSON()) });
5342
5283
  }
5343
5284
  // TODO: We need to unsubscribe from the providers when the overlay is removed. Need spec.
5344
5285
  // https://scandit.atlassian.net/browse/SDC-16608
5345
5286
  unsubscribeProviders() {
5346
- this.eventEmitter.removeAllListeners(BarcodeSelectionBrushProviderEvents.brushForAimedBarcode);
5347
- this.eventEmitter.removeAllListeners(BarcodeSelectionBrushProviderEvents.brushForTrackedBarcode);
5348
- this._proxy.removeAimedBarcodeBrushProvider();
5349
- this._proxy.removeTrackedBarcodeBrushProvider();
5287
+ this._proxy.$removeAimedBarcodeBrushProvider();
5288
+ this._proxy.$removeTrackedBarcodeBrushProvider();
5289
+ this._proxy.dispose();
5350
5290
  }
5351
5291
  }
5352
5292
 
@@ -5445,37 +5385,37 @@ class BarcodeSelectionBasicOverlay extends DefaultSerializeable {
5445
5385
  }
5446
5386
  __decorate([
5447
5387
  ignoreFromSerialization
5448
- ], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection", void 0);
5388
+ ], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection", undefined);
5449
5389
  __decorate([
5450
5390
  ignoreFromSerialization
5451
- ], BarcodeSelectionBasicOverlay.prototype, "overlayController", void 0);
5391
+ ], BarcodeSelectionBasicOverlay.prototype, "overlayController", undefined);
5452
5392
  __decorate([
5453
5393
  ignoreFromSerialization
5454
- ], BarcodeSelectionBasicOverlay.prototype, "view", void 0);
5394
+ ], BarcodeSelectionBasicOverlay.prototype, "view", undefined);
5455
5395
  __decorate([
5456
5396
  nameForSerialization('shouldShowScanAreaGuides')
5457
- ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
5397
+ ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
5458
5398
  __decorate([
5459
5399
  nameForSerialization('shouldShowHints')
5460
- ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints", void 0);
5400
+ ], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints", undefined);
5461
5401
  __decorate([
5462
5402
  nameForSerialization('viewfinder')
5463
- ], BarcodeSelectionBasicOverlay.prototype, "_viewfinder", void 0);
5403
+ ], BarcodeSelectionBasicOverlay.prototype, "_viewfinder", undefined);
5464
5404
  __decorate([
5465
5405
  nameForSerialization('style')
5466
- ], BarcodeSelectionBasicOverlay.prototype, "_style", void 0);
5406
+ ], BarcodeSelectionBasicOverlay.prototype, "_style", undefined);
5467
5407
  __decorate([
5468
5408
  nameForSerialization('trackedBrush')
5469
- ], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush", void 0);
5409
+ ], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush", undefined);
5470
5410
  __decorate([
5471
5411
  nameForSerialization('aimedBrush')
5472
- ], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush", void 0);
5412
+ ], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush", undefined);
5473
5413
  __decorate([
5474
5414
  nameForSerialization('selectedBrush')
5475
- ], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush", void 0);
5415
+ ], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush", undefined);
5476
5416
  __decorate([
5477
5417
  nameForSerialization('selectingBrush')
5478
- ], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush", void 0);
5418
+ ], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush", undefined);
5479
5419
  __decorate([
5480
5420
  ignoreFromSerialization
5481
5421
  ], BarcodeSelectionBasicOverlay, "barcodeSelectionDefaults", null);
@@ -5621,7 +5561,7 @@ class BarcodeSelectionSettings extends DefaultSerializeable {
5621
5561
  }
5622
5562
  __decorate([
5623
5563
  nameForSerialization('singleBarcodeAutoDetectionEnabled')
5624
- ], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection", void 0);
5564
+ ], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection", undefined);
5625
5565
  __decorate([
5626
5566
  ignoreFromSerialization
5627
5567
  ], BarcodeSelectionSettings, "barcodeSelectionDefaults", null);
@@ -5682,7 +5622,7 @@ class BarcodeBatchSession {
5682
5622
  .fromJSON(sessionJson.trackedBarcodes[identifier], sessionJson.frameSequenceId);
5683
5623
  return trackedBarcodes;
5684
5624
  }, {});
5685
- session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
5625
+ session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
5686
5626
  return session;
5687
5627
  }
5688
5628
  reset() {
@@ -5714,20 +5654,17 @@ class BarcodeBatchListenerController {
5714
5654
  subscribeListener() {
5715
5655
  var _a, _b;
5716
5656
  this._proxy.registerListenerForEvents();
5717
- (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === void 0 ? void 0 : _b.call(_a);
5657
+ (_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === undefined ? undefined : _b.call(_a);
5718
5658
  this.eventEmitter.on(BarcodeBatchListenerEvents.inCallback, (value) => {
5719
5659
  this.barcodeBatch.isInListenerCallback = value;
5720
5660
  });
5721
- this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
5722
- var _a;
5661
+ this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, undefined, undefined, function* () {
5723
5662
  const payload = EventDataParser.parse(data);
5724
5663
  if (payload === null) {
5725
5664
  console.error('BarcodeBatchListenerController didUpdateSession payload is null');
5726
5665
  return;
5727
5666
  }
5728
5667
  const session = BarcodeBatchSession.fromJSON(payload);
5729
- // Read the feature flag from the payload and set it in the DataCaptureContextFeatures.
5730
- DataCaptureContextFeatures.setIsFeatureSupported("barcode-ar-full", (_a = payload.isBarcodeArFull) !== null && _a !== void 0 ? _a : false);
5731
5668
  yield this.notifyListenersOfDidUpdateSession(session);
5732
5669
  this._proxy.finishDidUpdateSessionCallback(this.barcodeBatch.isEnabled);
5733
5670
  }));
@@ -5747,7 +5684,7 @@ class BarcodeBatchListenerController {
5747
5684
  return this._proxy.applyBarcodeBatchModeSettings(JSON.stringify(newSettings.toJSON()));
5748
5685
  }
5749
5686
  notifyListenersOfDidUpdateSession(session) {
5750
- return __awaiter(this, void 0, void 0, function* () {
5687
+ return __awaiter(this, undefined, undefined, function* () {
5751
5688
  const mode = this.barcodeBatch;
5752
5689
  mode.isInListenerCallback = true;
5753
5690
  for (const listener of mode.listeners) {
@@ -5824,24 +5761,24 @@ class BarcodeBatch extends DefaultSerializeable {
5824
5761
  }
5825
5762
  reset() {
5826
5763
  var _a, _b;
5827
- return (_b = (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.resetSession()) !== null && _b !== void 0 ? _b : Promise.resolve();
5764
+ return (_b = (_a = this.listenerController) === null || _a === undefined ? undefined : _a.resetSession()) !== null && _b !== undefined ? _b : Promise.resolve();
5828
5765
  }
5829
5766
  }
5830
5767
  __decorate([
5831
5768
  ignoreFromSerialization
5832
- ], BarcodeBatch.prototype, "_isEnabled", void 0);
5769
+ ], BarcodeBatch.prototype, "_isEnabled", undefined);
5833
5770
  __decorate([
5834
5771
  ignoreFromSerialization
5835
- ], BarcodeBatch.prototype, "privateContext", void 0);
5772
+ ], BarcodeBatch.prototype, "privateContext", undefined);
5836
5773
  __decorate([
5837
5774
  ignoreFromSerialization
5838
- ], BarcodeBatch.prototype, "listeners", void 0);
5775
+ ], BarcodeBatch.prototype, "listeners", undefined);
5839
5776
  __decorate([
5840
5777
  ignoreFromSerialization
5841
- ], BarcodeBatch.prototype, "listenerController", void 0);
5778
+ ], BarcodeBatch.prototype, "listenerController", undefined);
5842
5779
  __decorate([
5843
5780
  ignoreFromSerialization
5844
- ], BarcodeBatch.prototype, "isInListenerCallback", void 0);
5781
+ ], BarcodeBatch.prototype, "isInListenerCallback", undefined);
5845
5782
  __decorate([
5846
5783
  ignoreFromSerialization
5847
5784
  ], BarcodeBatch, "barcodeBatchDefaults", null);
@@ -5869,7 +5806,7 @@ class BarcodeBatchAdvancedOverlayController {
5869
5806
  return this._proxy.setBrushForTrackedBarcode(JSON.stringify(brush.toJSON()), trackedBarcode.sessionFrameSequenceID, trackedBarcode.identifier);
5870
5807
  }
5871
5808
  setViewForTrackedBarcode(view, trackedBarcode) {
5872
- return __awaiter(this, void 0, void 0, function* () {
5809
+ return __awaiter(this, undefined, undefined, function* () {
5873
5810
  const awitedView = yield view;
5874
5811
  const viewJson = this._proxy.getJSONStringForView(awitedView);
5875
5812
  return this._proxy.setViewForTrackedBarcode(viewJson, trackedBarcode.identifier, trackedBarcode.sessionFrameSequenceID);
@@ -5890,11 +5827,11 @@ class BarcodeBatchAdvancedOverlayController {
5890
5827
  subscribeListener() {
5891
5828
  var _a, _b, _c, _d, _e, _f, _g, _h;
5892
5829
  this._proxy.registerListenerForAdvancedOverlayEvents();
5893
- (_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a);
5894
- (_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d === void 0 ? void 0 : _d.call(_c);
5895
- (_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f === void 0 ? void 0 : _f.call(_e);
5896
- (_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h === void 0 ? void 0 : _h.call(_g);
5897
- this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
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* () {
5898
5835
  const payload = EventDataParser.parse(data);
5899
5836
  if (payload === null) {
5900
5837
  console.error('BarcodeBatchAdvancedOverlayController viewForTrackedBarcode payload is null');
@@ -5944,7 +5881,7 @@ class BarcodeBatchAdvancedOverlayController {
5944
5881
  }
5945
5882
  const trackedBarcode = TrackedBarcode
5946
5883
  .fromJSON(JSON.parse(payload.trackedBarcode));
5947
- (_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);
5884
+ (_b = (_a = this.overlay.listener) === null || _a === undefined ? undefined : _a.didTapViewForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a, this.overlay, trackedBarcode);
5948
5885
  });
5949
5886
  }
5950
5887
  unsubscribeListener() {
@@ -5984,8 +5921,8 @@ class BarcodeBatchBasicOverlayController {
5984
5921
  subscribeListener() {
5985
5922
  var _a, _b, _c, _d;
5986
5923
  this._proxy.registerListenerForBasicOverlayEvents();
5987
- (_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a);
5988
- (_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d === void 0 ? void 0 : _d.call(_c);
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);
5989
5926
  this.eventEmitter.on(BarcodeBatchBasicOverlayListenerEvents.brushForTrackedBarcode, (data) => {
5990
5927
  const payload = EventDataParser.parse(data);
5991
5928
  if (payload === null) {
@@ -6090,28 +6027,28 @@ class BarcodeBatchBasicOverlay extends DefaultSerializeable {
6090
6027
  }
6091
6028
  __decorate([
6092
6029
  ignoreFromSerialization
6093
- ], BarcodeBatchBasicOverlay.prototype, "barcodeBatch", void 0);
6030
+ ], BarcodeBatchBasicOverlay.prototype, "barcodeBatch", undefined);
6094
6031
  __decorate([
6095
6032
  ignoreFromSerialization
6096
- ], BarcodeBatchBasicOverlay.prototype, "_view", void 0);
6033
+ ], BarcodeBatchBasicOverlay.prototype, "_view", undefined);
6097
6034
  __decorate([
6098
6035
  nameForSerialization('style')
6099
- ], BarcodeBatchBasicOverlay.prototype, "_style", void 0);
6036
+ ], BarcodeBatchBasicOverlay.prototype, "_style", undefined);
6100
6037
  __decorate([
6101
6038
  ignoreFromSerialization
6102
6039
  ], BarcodeBatchBasicOverlay.prototype, "defaultBrush", null);
6103
6040
  __decorate([
6104
6041
  nameForSerialization('defaultBrush')
6105
- ], BarcodeBatchBasicOverlay.prototype, "_brush", void 0);
6042
+ ], BarcodeBatchBasicOverlay.prototype, "_brush", undefined);
6106
6043
  __decorate([
6107
6044
  nameForSerialization('shouldShowScanAreaGuides')
6108
- ], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
6045
+ ], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
6109
6046
  __decorate([
6110
6047
  ignoreFromSerialization
6111
- ], BarcodeBatchBasicOverlay.prototype, "listener", void 0);
6048
+ ], BarcodeBatchBasicOverlay.prototype, "listener", undefined);
6112
6049
  __decorate([
6113
6050
  ignoreFromSerialization
6114
- ], BarcodeBatchBasicOverlay.prototype, "controller", void 0);
6051
+ ], BarcodeBatchBasicOverlay.prototype, "controller", undefined);
6115
6052
  __decorate([
6116
6053
  ignoreFromSerialization
6117
6054
  ], BarcodeBatchBasicOverlay, "barcodeBatchDefaults", null);
@@ -6166,7 +6103,7 @@ class BarcodeBatchSettings extends DefaultSerializeable {
6166
6103
  }
6167
6104
  __decorate([
6168
6105
  nameForSerialization('arucoDictionary')
6169
- ], BarcodeBatchSettings.prototype, "_arucoDictionary", void 0);
6106
+ ], BarcodeBatchSettings.prototype, "_arucoDictionary", undefined);
6170
6107
  __decorate([
6171
6108
  ignoreFromSerialization
6172
6109
  ], BarcodeBatchSettings, "barcodeDefaults", null);
@@ -6219,19 +6156,19 @@ class BaseBarcodeBatchAdvancedOverlay extends DefaultSerializeable {
6219
6156
  }
6220
6157
  __decorate([
6221
6158
  nameForSerialization('shouldShowScanAreaGuides')
6222
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
6159
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
6223
6160
  __decorate([
6224
6161
  ignoreFromSerialization
6225
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch", void 0);
6162
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch", undefined);
6226
6163
  __decorate([
6227
6164
  ignoreFromSerialization
6228
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "listener", void 0);
6165
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "listener", undefined);
6229
6166
  __decorate([
6230
6167
  ignoreFromSerialization
6231
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "controller", void 0);
6168
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "controller", undefined);
6232
6169
  __decorate([
6233
6170
  ignoreFromSerialization
6234
- ], BaseBarcodeBatchAdvancedOverlay.prototype, "_view", void 0);
6171
+ ], BaseBarcodeBatchAdvancedOverlay.prototype, "_view", undefined);
6235
6172
 
6236
6173
  class SparkScanSession {
6237
6174
  static fromJSON(json) {
@@ -6242,7 +6179,7 @@ class SparkScanSession {
6242
6179
  Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) :
6243
6180
  null;
6244
6181
  session._frameSequenceID = sessionJson.frameSequenceId;
6245
- session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
6182
+ session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
6246
6183
  return session;
6247
6184
  }
6248
6185
  get newlyRecognizedBarcode() {
@@ -6270,7 +6207,7 @@ class SparkScanListenerController extends BaseNewController {
6270
6207
  constructor() {
6271
6208
  super('SparkScanListenerProxy');
6272
6209
  this.hasNativeListenerSubscriptions = false;
6273
- this.didUpdateSessionListener = (data) => __awaiter(this, void 0, void 0, function* () {
6210
+ this.didUpdateSessionListener = (data) => __awaiter(this, undefined, undefined, function* () {
6274
6211
  const payload = EventDataParser.parse(data);
6275
6212
  if (payload === null) {
6276
6213
  console.error('SparkScanListenerController didUpdateSession payload is null');
@@ -6280,7 +6217,7 @@ class SparkScanListenerController extends BaseNewController {
6280
6217
  yield this.notifyListenersOfDidUpdateSession(session);
6281
6218
  this._proxy.finishDidUpdateSessionCallback(this.sparkScan.isEnabled);
6282
6219
  });
6283
- this.didScanListener = (data) => __awaiter(this, void 0, void 0, function* () {
6220
+ this.didScanListener = (data) => __awaiter(this, undefined, undefined, function* () {
6284
6221
  const payload = EventDataParser.parse(data);
6285
6222
  if (payload === null) {
6286
6223
  console.error('SparkScanListenerController.subscribeListener: didScan payload is null');
@@ -6321,7 +6258,7 @@ class SparkScanListenerController extends BaseNewController {
6321
6258
  this._proxy.setModeEnabledState(enabled);
6322
6259
  }
6323
6260
  notifyListenersOfDidUpdateSession(session) {
6324
- return __awaiter(this, void 0, void 0, function* () {
6261
+ return __awaiter(this, undefined, undefined, function* () {
6325
6262
  const mode = this.sparkScan;
6326
6263
  mode.isInListenerCallback = true;
6327
6264
  for (const listener of mode.listeners) {
@@ -6333,7 +6270,7 @@ class SparkScanListenerController extends BaseNewController {
6333
6270
  });
6334
6271
  }
6335
6272
  notifyListenersOfDidScan(session) {
6336
- return __awaiter(this, void 0, void 0, function* () {
6273
+ return __awaiter(this, undefined, undefined, function* () {
6337
6274
  const mode = this.sparkScan;
6338
6275
  mode.isInListenerCallback = true;
6339
6276
  for (const listener of mode.listeners) {
@@ -6419,19 +6356,19 @@ class SparkScan extends DefaultSerializeable {
6419
6356
  }
6420
6357
  __decorate([
6421
6358
  ignoreFromSerialization
6422
- ], SparkScan.prototype, "_isEnabled", void 0);
6359
+ ], SparkScan.prototype, "_isEnabled", undefined);
6423
6360
  __decorate([
6424
6361
  ignoreFromSerialization
6425
- ], SparkScan.prototype, "privateContext", void 0);
6362
+ ], SparkScan.prototype, "privateContext", undefined);
6426
6363
  __decorate([
6427
6364
  ignoreFromSerialization
6428
- ], SparkScan.prototype, "listeners", void 0);
6365
+ ], SparkScan.prototype, "listeners", undefined);
6429
6366
  __decorate([
6430
6367
  ignoreFromSerialization
6431
- ], SparkScan.prototype, "listenerController", void 0);
6368
+ ], SparkScan.prototype, "listenerController", undefined);
6432
6369
  __decorate([
6433
6370
  ignoreFromSerialization
6434
- ], SparkScan.prototype, "isInListenerCallback", void 0);
6371
+ ], SparkScan.prototype, "isInListenerCallback", undefined);
6435
6372
 
6436
6373
  var SparkScanMiniPreviewSize;
6437
6374
  (function (SparkScanMiniPreviewSize) {
@@ -6556,46 +6493,46 @@ class SparkScanToastSettings extends DefaultSerializeable {
6556
6493
  }
6557
6494
  __decorate([
6558
6495
  nameForSerialization('toastEnabled')
6559
- ], SparkScanToastSettings.prototype, "_toastEnabled", void 0);
6496
+ ], SparkScanToastSettings.prototype, "_toastEnabled", undefined);
6560
6497
  __decorate([
6561
6498
  nameForSerialization('toastBackgroundColor')
6562
- ], SparkScanToastSettings.prototype, "_toastBackgroundColor", void 0);
6499
+ ], SparkScanToastSettings.prototype, "_toastBackgroundColor", undefined);
6563
6500
  __decorate([
6564
6501
  nameForSerialization('toastTextColor')
6565
- ], SparkScanToastSettings.prototype, "_toastTextColor", void 0);
6502
+ ], SparkScanToastSettings.prototype, "_toastTextColor", undefined);
6566
6503
  __decorate([
6567
6504
  nameForSerialization('targetModeEnabledMessage')
6568
- ], SparkScanToastSettings.prototype, "_targetModeEnabledMessage", void 0);
6505
+ ], SparkScanToastSettings.prototype, "_targetModeEnabledMessage", undefined);
6569
6506
  __decorate([
6570
6507
  nameForSerialization('targetModeDisabledMessage')
6571
- ], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", void 0);
6508
+ ], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", undefined);
6572
6509
  __decorate([
6573
6510
  nameForSerialization('continuousModeEnabledMessage')
6574
- ], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", void 0);
6511
+ ], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", undefined);
6575
6512
  __decorate([
6576
6513
  nameForSerialization('continuousModeDisabledMessage')
6577
- ], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage", void 0);
6514
+ ], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage", undefined);
6578
6515
  __decorate([
6579
6516
  nameForSerialization('scanPausedMessage')
6580
- ], SparkScanToastSettings.prototype, "_scanPausedMessage", void 0);
6517
+ ], SparkScanToastSettings.prototype, "_scanPausedMessage", undefined);
6581
6518
  __decorate([
6582
6519
  nameForSerialization('zoomedInMessage')
6583
- ], SparkScanToastSettings.prototype, "_zoomedInMessage", void 0);
6520
+ ], SparkScanToastSettings.prototype, "_zoomedInMessage", undefined);
6584
6521
  __decorate([
6585
6522
  nameForSerialization('zoomedOutMessage')
6586
- ], SparkScanToastSettings.prototype, "_zoomedOutMessage", void 0);
6523
+ ], SparkScanToastSettings.prototype, "_zoomedOutMessage", undefined);
6587
6524
  __decorate([
6588
6525
  nameForSerialization('torchEnabledMessage')
6589
- ], SparkScanToastSettings.prototype, "_torchEnabledMessage", void 0);
6526
+ ], SparkScanToastSettings.prototype, "_torchEnabledMessage", undefined);
6590
6527
  __decorate([
6591
6528
  nameForSerialization('torchDisabledMessage')
6592
- ], SparkScanToastSettings.prototype, "_torchDisabledMessage", void 0);
6529
+ ], SparkScanToastSettings.prototype, "_torchDisabledMessage", undefined);
6593
6530
  __decorate([
6594
6531
  nameForSerialization('userFacingCameraEnabledMessage')
6595
- ], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage", void 0);
6532
+ ], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage", undefined);
6596
6533
  __decorate([
6597
6534
  nameForSerialization('worldFacingCameraEnabledMessage')
6598
- ], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage", void 0);
6535
+ ], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage", undefined);
6599
6536
  __decorate([
6600
6537
  ignoreFromSerialization
6601
6538
  ], SparkScanToastSettings, "sparkScanDefaults", null);
@@ -6621,10 +6558,10 @@ class PrivateSparkScanScanningModeSettings extends DefaultSerializeable {
6621
6558
  }
6622
6559
  __decorate([
6623
6560
  nameForSerialization('scanningBehavior')
6624
- ], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior", void 0);
6561
+ ], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior", undefined);
6625
6562
  __decorate([
6626
6563
  nameForSerialization('previewBehavior')
6627
- ], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", void 0);
6564
+ ], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", undefined);
6628
6565
 
6629
6566
  class SparkScanScanningModeDefault extends DefaultSerializeable {
6630
6567
  get scanningBehavior() {
@@ -6648,7 +6585,7 @@ class SparkScanScanningModeDefault extends DefaultSerializeable {
6648
6585
  }
6649
6586
  __decorate([
6650
6587
  nameForSerialization('settings')
6651
- ], SparkScanScanningModeDefault.prototype, "_settings", void 0);
6588
+ ], SparkScanScanningModeDefault.prototype, "_settings", undefined);
6652
6589
 
6653
6590
  class SparkScanScanningModeTarget extends DefaultSerializeable {
6654
6591
  get scanningBehavior() {
@@ -6672,7 +6609,7 @@ class SparkScanScanningModeTarget extends DefaultSerializeable {
6672
6609
  }
6673
6610
  __decorate([
6674
6611
  nameForSerialization('settings')
6675
- ], SparkScanScanningModeTarget.prototype, "_settings", void 0);
6612
+ ], SparkScanScanningModeTarget.prototype, "_settings", undefined);
6676
6613
 
6677
6614
  class SparkScanSettings extends DefaultSerializeable {
6678
6615
  get batterySaving() {
@@ -6729,10 +6666,10 @@ class SparkScanSettings extends DefaultSerializeable {
6729
6666
  }
6730
6667
  __decorate([
6731
6668
  nameForSerialization('batterySaving')
6732
- ], SparkScanSettings.prototype, "_batterySaving", void 0);
6669
+ ], SparkScanSettings.prototype, "_batterySaving", undefined);
6733
6670
  __decorate([
6734
6671
  nameForSerialization('locationSelection')
6735
- ], SparkScanSettings.prototype, "_locationSelection", void 0);
6672
+ ], SparkScanSettings.prototype, "_locationSelection", undefined);
6736
6673
  __decorate([
6737
6674
  ignoreFromSerialization
6738
6675
  ], SparkScanSettings, "sparkScanDefaults", null);
@@ -6818,11 +6755,11 @@ class SparkScanViewController extends BaseNewController {
6818
6755
  this.hasNativeListenerSubscriptions = false;
6819
6756
  this.barcodeCountButtonTappedListener = () => {
6820
6757
  var _a, _b;
6821
- (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeCountButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
6758
+ (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapBarcodeCountButton) === null || _b === undefined ? undefined : _b.call(_a, this.view);
6822
6759
  };
6823
6760
  this.barcodeFindButtonTappedListener = () => {
6824
6761
  var _a, _b;
6825
- (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeFindButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
6762
+ (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapBarcodeFindButton) === null || _b === undefined ? undefined : _b.call(_a, this.view);
6826
6763
  };
6827
6764
  this.didChangeViewStateListener = (data) => {
6828
6765
  var _a, _b;
@@ -6832,11 +6769,11 @@ class SparkScanViewController extends BaseNewController {
6832
6769
  return;
6833
6770
  }
6834
6771
  const newState = payload.state;
6835
- (_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didChangeViewState) === null || _b === void 0 ? void 0 : _b.call(_a, newState);
6772
+ (_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didChangeViewState) === null || _b === undefined ? undefined : _b.call(_a, newState);
6836
6773
  };
6837
6774
  }
6838
6775
  initialize(autoCreateNativeView) {
6839
- return __awaiter(this, void 0, void 0, function* () {
6776
+ return __awaiter(this, undefined, undefined, function* () {
6840
6777
  this.subscribeListeners();
6841
6778
  yield this.view.context.update();
6842
6779
  if (autoCreateNativeView) {
@@ -6916,14 +6853,14 @@ class SparkScanViewController extends BaseNewController {
6916
6853
  return;
6917
6854
  }
6918
6855
  const barcode = Barcode.fromJSON(JSON.parse(payload.barcode));
6919
- 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);
6856
+ const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a === undefined ? undefined : _a.feedbackForBarcode) === null || _b === undefined ? undefined : _b.call(_a, barcode);
6920
6857
  if (feedback instanceof Promise) {
6921
6858
  feedback.then((feedback) => {
6922
- this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()));
6859
+ this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === undefined ? undefined : feedback.toJSON()));
6923
6860
  });
6924
6861
  }
6925
6862
  else {
6926
- this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()));
6863
+ this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === undefined ? undefined : feedback.toJSON()));
6927
6864
  }
6928
6865
  });
6929
6866
  this.hasFeedbackDelegateListener = true;
@@ -7037,7 +6974,7 @@ class BaseSparkScanView {
7037
6974
  this._previewCloseControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewSizeControlVisible;
7038
6975
  this._sparkScan = sparkScan;
7039
6976
  this.context = context;
7040
- this._viewSettings = settings !== null && settings !== void 0 ? settings : new SparkScanViewSettings();
6977
+ this._viewSettings = settings !== null && settings !== undefined ? settings : new SparkScanViewSettings();
7041
6978
  this._controller = SparkScanViewController.forSparkScanView(this, sparkScan, autoCreateNativeView);
7042
6979
  }
7043
6980
  get previewSizeControlVisible() {
@@ -7346,7 +7283,7 @@ class BaseSparkScanView {
7346
7283
  viewId: this.viewId,
7347
7284
  };
7348
7285
  if (this._viewSettings != null) {
7349
- json.viewSettings = (_a = this._viewSettings) === null || _a === void 0 ? void 0 : _a.toJSON();
7286
+ json.viewSettings = (_a = this._viewSettings) === null || _a === undefined ? undefined : _a.toJSON();
7350
7287
  }
7351
7288
  return json;
7352
7289
  }
@@ -7394,7 +7331,7 @@ class SparkScanBarcodeErrorFeedback extends SparkScanBarcodeFeedback {
7394
7331
  }
7395
7332
  __decorate([
7396
7333
  nameForSerialization('barcodeFeedback')
7397
- ], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback", void 0);
7334
+ ], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback", undefined);
7398
7335
  __decorate([
7399
7336
  ignoreFromSerialization
7400
7337
  ], SparkScanBarcodeErrorFeedback, "sparkScanDefaults", null);
@@ -7433,7 +7370,7 @@ class SparkScanBarcodeSuccessFeedback extends SparkScanBarcodeFeedback {
7433
7370
  }
7434
7371
  __decorate([
7435
7372
  nameForSerialization('barcodeFeedback')
7436
- ], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback", void 0);
7373
+ ], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback", undefined);
7437
7374
  __decorate([
7438
7375
  ignoreFromSerialization
7439
7376
  ], SparkScanBarcodeSuccessFeedback, "sparkScanDefaults", null);
@@ -7566,19 +7503,19 @@ class BarcodePick extends DefaultSerializeable {
7566
7503
  }
7567
7504
  __decorate([
7568
7505
  ignoreFromSerialization
7569
- ], BarcodePick.prototype, "privateContext", void 0);
7506
+ ], BarcodePick.prototype, "privateContext", undefined);
7570
7507
  __decorate([
7571
7508
  ignoreFromSerialization
7572
- ], BarcodePick.prototype, "_listenerController", void 0);
7509
+ ], BarcodePick.prototype, "_listenerController", undefined);
7573
7510
  __decorate([
7574
7511
  ignoreFromSerialization
7575
- ], BarcodePick.prototype, "listeners", void 0);
7512
+ ], BarcodePick.prototype, "listeners", undefined);
7576
7513
  __decorate([
7577
7514
  nameForSerialization('settings')
7578
- ], BarcodePick.prototype, "_settings", void 0);
7515
+ ], BarcodePick.prototype, "_settings", undefined);
7579
7516
  __decorate([
7580
7517
  nameForSerialization('ProductProvider')
7581
- ], BarcodePick.prototype, "_productProvider", void 0);
7518
+ ], BarcodePick.prototype, "_productProvider", undefined);
7582
7519
  __decorate([
7583
7520
  ignoreFromSerialization
7584
7521
  ], BarcodePick, "barcodePickDefaults", null);
@@ -7618,7 +7555,7 @@ class BarcodePickViewController extends BaseController {
7618
7555
  super('BarcodePickViewProxy');
7619
7556
  }
7620
7557
  initialize(autoCreateNativeView) {
7621
- return __awaiter(this, void 0, void 0, function* () {
7558
+ return __awaiter(this, undefined, undefined, function* () {
7622
7559
  // We call update because it returns a promise, this guarantees, that by the time
7623
7560
  // we need the deserialized context, it will be set in the native layer.
7624
7561
  yield this.view.context.update();
@@ -7650,7 +7587,7 @@ class BarcodePickViewController extends BaseController {
7650
7587
  }
7651
7588
  removeNativeView() {
7652
7589
  var _a, _b, _c;
7653
- return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
7590
+ return (_c = (_b = (_a = this._proxy).removeView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
7654
7591
  }
7655
7592
  create() {
7656
7593
  const barcodePickView = this.view.toJSON();
@@ -7662,7 +7599,7 @@ class BarcodePickViewController extends BaseController {
7662
7599
  this.unsubscribeListeners();
7663
7600
  }
7664
7601
  setUiListener(listener) {
7665
- return __awaiter(this, void 0, void 0, function* () {
7602
+ return __awaiter(this, undefined, undefined, function* () {
7666
7603
  if (listener) {
7667
7604
  yield this._proxy.subscribeBarcodePickViewUiListener();
7668
7605
  }
@@ -7702,7 +7639,7 @@ class BarcodePickViewController extends BaseController {
7702
7639
  if (!this.view.uiListener) {
7703
7640
  return;
7704
7641
  }
7705
- (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.uiListener) === null || _b === void 0 ? void 0 : _b.didTapFinishButton(this);
7642
+ (_b = (_a = this.view) === null || _a === undefined ? undefined : _a.uiListener) === null || _b === undefined ? undefined : _b.didTapFinishButton(this);
7706
7643
  });
7707
7644
  this.eventEmitter.on(BarcodePickViewListenerEvents.DidStartScanning, () => {
7708
7645
  this.view.listeners
@@ -7784,16 +7721,16 @@ class BarcodePickAsyncMapperProductProvider extends DefaultSerializeable {
7784
7721
  }
7785
7722
  __decorate([
7786
7723
  ignoreFromSerialization
7787
- ], BarcodePickAsyncMapperProductProvider.prototype, "_callback", void 0);
7724
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_callback", undefined);
7788
7725
  __decorate([
7789
7726
  ignoreFromSerialization
7790
- ], BarcodePickAsyncMapperProductProvider.prototype, "_productController", void 0);
7727
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_productController", undefined);
7791
7728
  __decorate([
7792
7729
  ignoreFromSerialization
7793
- ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick", void 0);
7730
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick", undefined);
7794
7731
  __decorate([
7795
7732
  nameForSerialization('products')
7796
- ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization", void 0);
7733
+ ], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization", undefined);
7797
7734
 
7798
7735
  var BarcodePickIconStyle;
7799
7736
  (function (BarcodePickIconStyle) {
@@ -7816,10 +7753,10 @@ class BarcodePickProduct extends DefaultSerializeable {
7816
7753
  }
7817
7754
  __decorate([
7818
7755
  nameForSerialization('identifier')
7819
- ], BarcodePickProduct.prototype, "_identifier", void 0);
7756
+ ], BarcodePickProduct.prototype, "_identifier", undefined);
7820
7757
  __decorate([
7821
7758
  nameForSerialization('quantityToPick')
7822
- ], BarcodePickProduct.prototype, "_quantityToPick", void 0);
7759
+ ], BarcodePickProduct.prototype, "_quantityToPick", undefined);
7823
7760
 
7824
7761
  class BarcodePickProductProviderCallback {
7825
7762
  // eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
@@ -7843,10 +7780,10 @@ class BarcodePickProductProviderCallbackItem extends DefaultSerializeable {
7843
7780
  }
7844
7781
  __decorate([
7845
7782
  nameForSerialization('itemData')
7846
- ], BarcodePickProductProviderCallbackItem.prototype, "_itemData", void 0);
7783
+ ], BarcodePickProductProviderCallbackItem.prototype, "_itemData", undefined);
7847
7784
  __decorate([
7848
7785
  nameForSerialization('productIdentifier')
7849
- ], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier", void 0);
7786
+ ], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier", undefined);
7850
7787
 
7851
7788
  class BarcodePickSettings extends DefaultSerializeable {
7852
7789
  static get barcodePickDefaults() {
@@ -7909,16 +7846,16 @@ class BarcodePickSettings extends DefaultSerializeable {
7909
7846
  }
7910
7847
  __decorate([
7911
7848
  nameForSerialization('soundEnabled')
7912
- ], BarcodePickSettings.prototype, "_soundEnabled", void 0);
7849
+ ], BarcodePickSettings.prototype, "_soundEnabled", undefined);
7913
7850
  __decorate([
7914
7851
  nameForSerialization('hapticEnabled')
7915
- ], BarcodePickSettings.prototype, "_hapticsEnabled", void 0);
7852
+ ], BarcodePickSettings.prototype, "_hapticsEnabled", undefined);
7916
7853
  __decorate([
7917
7854
  nameForSerialization('cachingEnabled')
7918
- ], BarcodePickSettings.prototype, "_cachingEnabled", void 0);
7855
+ ], BarcodePickSettings.prototype, "_cachingEnabled", undefined);
7919
7856
  __decorate([
7920
7857
  nameForSerialization('arucoDictionary')
7921
- ], BarcodePickSettings.prototype, "_arucoDictionary", void 0);
7858
+ ], BarcodePickSettings.prototype, "_arucoDictionary", undefined);
7922
7859
  __decorate([
7923
7860
  ignoreFromSerialization
7924
7861
  ], BarcodePickSettings, "barcodePickDefaults", null);
@@ -7966,7 +7903,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
7966
7903
  this.viewController = BarcodePickViewController.forBarcodePick(this, nativeView, this.autoCreateNativeView);
7967
7904
  }
7968
7905
  createNativeView() {
7969
- return __awaiter(this, void 0, void 0, function* () {
7906
+ return __awaiter(this, undefined, undefined, function* () {
7970
7907
  if (this.isViewCreated) {
7971
7908
  return Promise.resolve();
7972
7909
  }
@@ -7975,7 +7912,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
7975
7912
  });
7976
7913
  }
7977
7914
  removeNativeView() {
7978
- return __awaiter(this, void 0, void 0, function* () {
7915
+ return __awaiter(this, undefined, undefined, function* () {
7979
7916
  yield this.viewController.removeNativeView();
7980
7917
  this.isViewCreated = false;
7981
7918
  });
@@ -8051,28 +7988,28 @@ class BaseBarcodePickView extends DefaultSerializeable {
8051
7988
  }
8052
7989
  __decorate([
8053
7990
  ignoreFromSerialization
8054
- ], BaseBarcodePickView.prototype, "viewController", void 0);
7991
+ ], BaseBarcodePickView.prototype, "viewController", undefined);
8055
7992
  __decorate([
8056
7993
  ignoreFromSerialization
8057
- ], BaseBarcodePickView.prototype, "actionListeners", void 0);
7994
+ ], BaseBarcodePickView.prototype, "actionListeners", undefined);
8058
7995
  __decorate([
8059
7996
  ignoreFromSerialization
8060
- ], BaseBarcodePickView.prototype, "listeners", void 0);
7997
+ ], BaseBarcodePickView.prototype, "listeners", undefined);
8061
7998
  __decorate([
8062
7999
  nameForSerialization('isStarted')
8063
- ], BaseBarcodePickView.prototype, "isStarted", void 0);
8000
+ ], BaseBarcodePickView.prototype, "isStarted", undefined);
8064
8001
  __decorate([
8065
8002
  ignoreFromSerialization
8066
- ], BaseBarcodePickView.prototype, "_context", void 0);
8003
+ ], BaseBarcodePickView.prototype, "_context", undefined);
8067
8004
  __decorate([
8068
8005
  ignoreFromSerialization
8069
- ], BaseBarcodePickView.prototype, "isViewCreated", void 0);
8006
+ ], BaseBarcodePickView.prototype, "isViewCreated", undefined);
8070
8007
  __decorate([
8071
8008
  ignoreFromSerialization
8072
- ], BaseBarcodePickView.prototype, "autoCreateNativeView", void 0);
8009
+ ], BaseBarcodePickView.prototype, "autoCreateNativeView", undefined);
8073
8010
  __decorate([
8074
8011
  ignoreFromSerialization
8075
- ], BaseBarcodePickView.prototype, "_barcodePickViewUiListener", void 0);
8012
+ ], BaseBarcodePickView.prototype, "_barcodePickViewUiListener", undefined);
8076
8013
 
8077
8014
  class BarcodePickViewSettings extends DefaultSerializeable {
8078
8015
  static get barcodePickDefaults() {
@@ -8182,46 +8119,46 @@ class BarcodePickViewSettings extends DefaultSerializeable {
8182
8119
  }
8183
8120
  __decorate([
8184
8121
  nameForSerialization('highlightStyle')
8185
- ], BarcodePickViewSettings.prototype, "_highlightStyle", void 0);
8122
+ ], BarcodePickViewSettings.prototype, "_highlightStyle", undefined);
8186
8123
  __decorate([
8187
8124
  nameForSerialization('shouldShowLoadingDialog')
8188
- ], BarcodePickViewSettings.prototype, "_showLoadingDialog", void 0);
8125
+ ], BarcodePickViewSettings.prototype, "_showLoadingDialog", undefined);
8189
8126
  __decorate([
8190
8127
  nameForSerialization('showFinishButton')
8191
- ], BarcodePickViewSettings.prototype, "_showFinishButton", void 0);
8128
+ ], BarcodePickViewSettings.prototype, "_showFinishButton", undefined);
8192
8129
  __decorate([
8193
8130
  nameForSerialization('showPauseButton')
8194
- ], BarcodePickViewSettings.prototype, "_showPauseButton", void 0);
8131
+ ], BarcodePickViewSettings.prototype, "_showPauseButton", undefined);
8195
8132
  __decorate([
8196
8133
  nameForSerialization('showZoomButton')
8197
- ], BarcodePickViewSettings.prototype, "_showZoomButton", void 0);
8134
+ ], BarcodePickViewSettings.prototype, "_showZoomButton", undefined);
8198
8135
  __decorate([
8199
8136
  nameForSerialization('showLoadingDialogText')
8200
- ], BarcodePickViewSettings.prototype, "_loadingDialogText", void 0);
8137
+ ], BarcodePickViewSettings.prototype, "_loadingDialogText", undefined);
8201
8138
  __decorate([
8202
8139
  nameForSerialization('shouldShowGuidelines')
8203
- ], BarcodePickViewSettings.prototype, "_showGuidelines", void 0);
8140
+ ], BarcodePickViewSettings.prototype, "_showGuidelines", undefined);
8204
8141
  __decorate([
8205
8142
  nameForSerialization('initialGuidelineText')
8206
- ], BarcodePickViewSettings.prototype, "_initialGuidelineText", void 0);
8143
+ ], BarcodePickViewSettings.prototype, "_initialGuidelineText", undefined);
8207
8144
  __decorate([
8208
8145
  nameForSerialization('moveCloserGuidelineText')
8209
- ], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText", void 0);
8146
+ ], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText", undefined);
8210
8147
  __decorate([
8211
8148
  nameForSerialization('shouldShowHints')
8212
- ], BarcodePickViewSettings.prototype, "_showHints", void 0);
8149
+ ], BarcodePickViewSettings.prototype, "_showHints", undefined);
8213
8150
  __decorate([
8214
8151
  nameForSerialization('onFirstItemToPickFoundHintText')
8215
- ], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText", void 0);
8152
+ ], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText", undefined);
8216
8153
  __decorate([
8217
8154
  nameForSerialization('onFirstItemPickCompletedHintText')
8218
- ], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText", void 0);
8155
+ ], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText", undefined);
8219
8156
  __decorate([
8220
8157
  nameForSerialization('onFirstUnmarkedItemPickCompletedHintText')
8221
- ], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText", void 0);
8158
+ ], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText", undefined);
8222
8159
  __decorate([
8223
8160
  nameForSerialization('onFirstItemUnpickCompletedHintText')
8224
- ], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText", void 0);
8161
+ ], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText", undefined);
8225
8162
  __decorate([
8226
8163
  ignoreFromSerialization
8227
8164
  ], BarcodePickViewSettings, "barcodePickDefaults", null);
@@ -8230,10 +8167,10 @@ class BrushForStateObject extends DefaultSerializeable {
8230
8167
  }
8231
8168
  __decorate([
8232
8169
  nameForSerialization('barcodePickState')
8233
- ], BrushForStateObject.prototype, "barcodePickState", void 0);
8170
+ ], BrushForStateObject.prototype, "barcodePickState", undefined);
8234
8171
  __decorate([
8235
8172
  nameForSerialization('brush')
8236
- ], BrushForStateObject.prototype, "brush", void 0);
8173
+ ], BrushForStateObject.prototype, "brush", undefined);
8237
8174
 
8238
8175
  class BarcodePickStatusIconSettings extends DefaultSerializeable {
8239
8176
  constructor() {
@@ -8268,21 +8205,21 @@ class BarcodePickStatusIconSettings extends DefaultSerializeable {
8268
8205
  return null;
8269
8206
  }
8270
8207
  const barcodePickStatusIconSettings = new BarcodePickStatusIconSettings();
8271
- barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json === void 0 ? void 0 : json.ratioToHighlightSize;
8272
- barcodePickStatusIconSettings._minSize = json === null || json === void 0 ? void 0 : json.minSize;
8273
- barcodePickStatusIconSettings._maxSize = json === null || json === void 0 ? void 0 : json.maxSize;
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;
8274
8211
  return barcodePickStatusIconSettings;
8275
8212
  }
8276
8213
  }
8277
8214
  __decorate([
8278
8215
  nameForSerialization('ratioToHighlightSize')
8279
- ], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize", void 0);
8216
+ ], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize", undefined);
8280
8217
  __decorate([
8281
8218
  nameForSerialization('minSize')
8282
- ], BarcodePickStatusIconSettings.prototype, "_minSize", void 0);
8219
+ ], BarcodePickStatusIconSettings.prototype, "_minSize", undefined);
8283
8220
  __decorate([
8284
8221
  nameForSerialization('maxSize')
8285
- ], BarcodePickStatusIconSettings.prototype, "_maxSize", void 0);
8222
+ ], BarcodePickStatusIconSettings.prototype, "_maxSize", undefined);
8286
8223
  __decorate([
8287
8224
  ignoreFromSerialization
8288
8225
  ], BarcodePickStatusIconSettings, "barcodePickDefaults", null);
@@ -8307,10 +8244,10 @@ class Dot extends DefaultSerializeable {
8307
8244
  }
8308
8245
  __decorate([
8309
8246
  nameForSerialization('type')
8310
- ], Dot.prototype, "_type", void 0);
8247
+ ], Dot.prototype, "_type", undefined);
8311
8248
  __decorate([
8312
8249
  nameForSerialization('brushesForState')
8313
- ], Dot.prototype, "_brushesForState", void 0);
8250
+ ], Dot.prototype, "_brushesForState", undefined);
8314
8251
  __decorate([
8315
8252
  ignoreFromSerialization
8316
8253
  ], Dot, "barcodePickDefaults", null);
@@ -8330,10 +8267,10 @@ class IconForStateObject extends DefaultSerializeable {
8330
8267
  }
8331
8268
  __decorate([
8332
8269
  nameForSerialization('barcodePickState')
8333
- ], IconForStateObject.prototype, "_barcodePickState", void 0);
8270
+ ], IconForStateObject.prototype, "_barcodePickState", undefined);
8334
8271
  __decorate([
8335
8272
  nameForSerialization('icon')
8336
- ], IconForStateObject.prototype, "_icon", void 0);
8273
+ ], IconForStateObject.prototype, "_icon", undefined);
8337
8274
 
8338
8275
  class DotWithIcons extends DefaultSerializeable {
8339
8276
  static get barcodePickDefaults() {
@@ -8370,16 +8307,16 @@ class DotWithIcons extends DefaultSerializeable {
8370
8307
  }
8371
8308
  __decorate([
8372
8309
  nameForSerialization('type')
8373
- ], DotWithIcons.prototype, "_type", void 0);
8310
+ ], DotWithIcons.prototype, "_type", undefined);
8374
8311
  __decorate([
8375
8312
  nameForSerialization('brushesForState')
8376
- ], DotWithIcons.prototype, "_brushesForState", void 0);
8313
+ ], DotWithIcons.prototype, "_brushesForState", undefined);
8377
8314
  __decorate([
8378
8315
  nameForSerialization('iconsForState')
8379
- ], DotWithIcons.prototype, "_iconsForState", void 0);
8316
+ ], DotWithIcons.prototype, "_iconsForState", undefined);
8380
8317
  __decorate([
8381
8318
  nameForSerialization('iconStyle')
8382
- ], DotWithIcons.prototype, "_iconStyle", void 0);
8319
+ ], DotWithIcons.prototype, "_iconStyle", undefined);
8383
8320
  __decorate([
8384
8321
  ignoreFromSerialization
8385
8322
  ], DotWithIcons, "barcodePickDefaults", null);
@@ -8418,16 +8355,16 @@ class Rectangular extends DefaultSerializeable {
8418
8355
  }
8419
8356
  __decorate([
8420
8357
  nameForSerialization('type')
8421
- ], Rectangular.prototype, "_type", void 0);
8358
+ ], Rectangular.prototype, "_type", undefined);
8422
8359
  __decorate([
8423
8360
  nameForSerialization('brushesForState')
8424
- ], Rectangular.prototype, "_brushesForState", void 0);
8361
+ ], Rectangular.prototype, "_brushesForState", undefined);
8425
8362
  __decorate([
8426
8363
  nameForSerialization('minimumHighlightWidth')
8427
- ], Rectangular.prototype, "_minimumHighlightWidth", void 0);
8364
+ ], Rectangular.prototype, "_minimumHighlightWidth", undefined);
8428
8365
  __decorate([
8429
8366
  nameForSerialization('minimumHighlightHeight')
8430
- ], Rectangular.prototype, "_minimumHighlightHeight", void 0);
8367
+ ], Rectangular.prototype, "_minimumHighlightHeight", undefined);
8431
8368
  __decorate([
8432
8369
  ignoreFromSerialization
8433
8370
  ], Rectangular, "barcodePickDefaults", null);
@@ -8487,25 +8424,25 @@ class RectangularWithIcons extends DefaultSerializeable {
8487
8424
  }
8488
8425
  __decorate([
8489
8426
  nameForSerialization('type')
8490
- ], RectangularWithIcons.prototype, "_type", void 0);
8427
+ ], RectangularWithIcons.prototype, "_type", undefined);
8491
8428
  __decorate([
8492
8429
  nameForSerialization('brushesForState')
8493
- ], RectangularWithIcons.prototype, "_brushesForState", void 0);
8430
+ ], RectangularWithIcons.prototype, "_brushesForState", undefined);
8494
8431
  __decorate([
8495
8432
  nameForSerialization('iconsForState')
8496
- ], RectangularWithIcons.prototype, "_iconsForState", void 0);
8433
+ ], RectangularWithIcons.prototype, "_iconsForState", undefined);
8497
8434
  __decorate([
8498
8435
  nameForSerialization('iconStyle')
8499
- ], RectangularWithIcons.prototype, "_iconStyle", void 0);
8436
+ ], RectangularWithIcons.prototype, "_iconStyle", undefined);
8500
8437
  __decorate([
8501
8438
  nameForSerialization('statusIconSettings')
8502
- ], RectangularWithIcons.prototype, "_statusIconSettings", void 0);
8439
+ ], RectangularWithIcons.prototype, "_statusIconSettings", undefined);
8503
8440
  __decorate([
8504
8441
  nameForSerialization('minimumHighlightWidth')
8505
- ], RectangularWithIcons.prototype, "_minimumHighlightWidth", void 0);
8442
+ ], RectangularWithIcons.prototype, "_minimumHighlightWidth", undefined);
8506
8443
  __decorate([
8507
8444
  nameForSerialization('minimumHighlightHeight')
8508
- ], RectangularWithIcons.prototype, "_minimumHighlightHeight", void 0);
8445
+ ], RectangularWithIcons.prototype, "_minimumHighlightHeight", undefined);
8509
8446
  __decorate([
8510
8447
  ignoreFromSerialization
8511
8448
  ], RectangularWithIcons, "barcodePickDefaults", null);
@@ -8533,7 +8470,7 @@ class BarcodeFindFeedback extends DefaultSerializeable {
8533
8470
  }
8534
8471
  updateFeedback() {
8535
8472
  var _a;
8536
- (_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
8473
+ (_a = this.controller) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
8537
8474
  }
8538
8475
  static get barcodeFindDefaults() {
8539
8476
  return getBarcodeFindDefaults();
@@ -8544,13 +8481,13 @@ class BarcodeFindFeedback extends DefaultSerializeable {
8544
8481
  }
8545
8482
  __decorate([
8546
8483
  ignoreFromSerialization
8547
- ], BarcodeFindFeedback.prototype, "controller", void 0);
8484
+ ], BarcodeFindFeedback.prototype, "controller", undefined);
8548
8485
  __decorate([
8549
8486
  nameForSerialization('found')
8550
- ], BarcodeFindFeedback.prototype, "_found", void 0);
8487
+ ], BarcodeFindFeedback.prototype, "_found", undefined);
8551
8488
  __decorate([
8552
8489
  nameForSerialization('itemListUpdated')
8553
- ], BarcodeFindFeedback.prototype, "_itemListUpdated", void 0);
8490
+ ], BarcodeFindFeedback.prototype, "_itemListUpdated", undefined);
8554
8491
 
8555
8492
  var BarcodeFindListenerEvents;
8556
8493
  (function (BarcodeFindListenerEvents) {
@@ -8589,7 +8526,7 @@ class BarcodeFindController extends BaseController {
8589
8526
  this._proxy.setModeEnabledState(isEnabled);
8590
8527
  }
8591
8528
  setBarcodeTransformer() {
8592
- return __awaiter(this, void 0, void 0, function* () {
8529
+ return __awaiter(this, undefined, undefined, function* () {
8593
8530
  yield this._proxy.setBarcodeTransformer();
8594
8531
  this.subscribeBarcodeFindTransformerEvent();
8595
8532
  });
@@ -8608,7 +8545,7 @@ class BarcodeFindController extends BaseController {
8608
8545
  console.error('BarcodeFindController onTransformBarcodeData payload is null');
8609
8546
  return;
8610
8547
  }
8611
- const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a === void 0 ? void 0 : _a.transformBarcodeData(payload.data);
8548
+ const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a === undefined ? undefined : _a.transformBarcodeData(payload.data);
8612
8549
  this._proxy.submitBarcodeFindTransformerResult(transformed);
8613
8550
  });
8614
8551
  }
@@ -8618,21 +8555,21 @@ class BarcodeFindController extends BaseController {
8618
8555
  var _a;
8619
8556
  const listeners = this._barcodeFind.listeners;
8620
8557
  for (const listener of listeners) {
8621
- (_a = listener === null || listener === void 0 ? void 0 : listener.didStartSearch) === null || _a === void 0 ? void 0 : _a.call(listener);
8558
+ (_a = listener === null || listener === undefined ? undefined : listener.didStartSearch) === null || _a === undefined ? undefined : _a.call(listener);
8622
8559
  }
8623
8560
  });
8624
8561
  this.eventEmitter.on(BarcodeFindListenerEvents.onSearchPausedEvent, (data) => {
8625
8562
  var _a;
8626
8563
  const foundItems = this.filterFoundItemsFromEvent(data);
8627
8564
  for (const listener of this._barcodeFind.listeners) {
8628
- (_a = listener === null || listener === void 0 ? void 0 : listener.didPauseSearch) === null || _a === void 0 ? void 0 : _a.call(listener, foundItems);
8565
+ (_a = listener === null || listener === undefined ? undefined : listener.didPauseSearch) === null || _a === undefined ? undefined : _a.call(listener, foundItems);
8629
8566
  }
8630
8567
  });
8631
8568
  this.eventEmitter.on(BarcodeFindListenerEvents.onSearchStoppedEvent, (data) => {
8632
8569
  var _a;
8633
8570
  const foundItems = this.filterFoundItemsFromEvent(data);
8634
8571
  for (const listener of this._barcodeFind.listeners) {
8635
- (_a = listener === null || listener === void 0 ? void 0 : listener.didStopSearch) === null || _a === void 0 ? void 0 : _a.call(listener, foundItems);
8572
+ (_a = listener === null || listener === undefined ? undefined : listener.didStopSearch) === null || _a === undefined ? undefined : _a.call(listener, foundItems);
8636
8573
  }
8637
8574
  });
8638
8575
  }
@@ -8751,28 +8688,28 @@ class BarcodeFind extends DefaultSerializeable {
8751
8688
  }
8752
8689
  __decorate([
8753
8690
  nameForSerialization('feedback')
8754
- ], BarcodeFind.prototype, "_feedback", void 0);
8691
+ ], BarcodeFind.prototype, "_feedback", undefined);
8755
8692
  __decorate([
8756
8693
  nameForSerialization('enabled')
8757
- ], BarcodeFind.prototype, "_enabled", void 0);
8694
+ ], BarcodeFind.prototype, "_enabled", undefined);
8758
8695
  __decorate([
8759
8696
  ignoreFromSerialization
8760
- ], BarcodeFind.prototype, "_isInCallback", void 0);
8697
+ ], BarcodeFind.prototype, "_isInCallback", undefined);
8761
8698
  __decorate([
8762
8699
  nameForSerialization('settings')
8763
- ], BarcodeFind.prototype, "_settings", void 0);
8700
+ ], BarcodeFind.prototype, "_settings", undefined);
8764
8701
  __decorate([
8765
8702
  nameForSerialization('hasBarcodeTransformer')
8766
- ], BarcodeFind.prototype, "_hasBarcodeTransformer", void 0);
8703
+ ], BarcodeFind.prototype, "_hasBarcodeTransformer", undefined);
8767
8704
  __decorate([
8768
8705
  ignoreFromSerialization
8769
- ], BarcodeFind.prototype, "listeners", void 0);
8706
+ ], BarcodeFind.prototype, "listeners", undefined);
8770
8707
  __decorate([
8771
8708
  ignoreFromSerialization
8772
- ], BarcodeFind.prototype, "_controller", void 0);
8709
+ ], BarcodeFind.prototype, "_controller", undefined);
8773
8710
  __decorate([
8774
8711
  ignoreFromSerialization
8775
- ], BarcodeFind.prototype, "_dataCaptureContext", void 0);
8712
+ ], BarcodeFind.prototype, "_dataCaptureContext", undefined);
8776
8713
  __decorate([
8777
8714
  ignoreFromSerialization
8778
8715
  ], BarcodeFind, "barcodeFindDefaults", null);
@@ -8792,10 +8729,10 @@ class BarcodeFindItem extends DefaultSerializeable {
8792
8729
  }
8793
8730
  __decorate([
8794
8731
  nameForSerialization('searchOptions')
8795
- ], BarcodeFindItem.prototype, "_searchOptions", void 0);
8732
+ ], BarcodeFindItem.prototype, "_searchOptions", undefined);
8796
8733
  __decorate([
8797
8734
  nameForSerialization('content')
8798
- ], BarcodeFindItem.prototype, "_content", void 0);
8735
+ ], BarcodeFindItem.prototype, "_content", undefined);
8799
8736
 
8800
8737
  class BarcodeFindItemContent extends DefaultSerializeable {
8801
8738
  constructor(info, additionalInfo, image) {
@@ -8806,39 +8743,51 @@ class BarcodeFindItemContent extends DefaultSerializeable {
8806
8743
  }
8807
8744
  get info() {
8808
8745
  var _a;
8809
- return (_a = this._info) !== null && _a !== void 0 ? _a : null;
8746
+ return (_a = this._info) !== null && _a !== undefined ? _a : null;
8810
8747
  }
8811
8748
  get additionalInfo() {
8812
8749
  var _a;
8813
- return (_a = this._additionalInfo) !== null && _a !== void 0 ? _a : null;
8750
+ return (_a = this._additionalInfo) !== null && _a !== undefined ? _a : null;
8814
8751
  }
8815
8752
  get image() {
8816
8753
  var _a;
8817
- return (_a = this._image) !== null && _a !== void 0 ? _a : null;
8754
+ return (_a = this._image) !== null && _a !== undefined ? _a : null;
8818
8755
  }
8819
8756
  }
8820
8757
  __decorate([
8821
8758
  nameForSerialization('info')
8822
- ], BarcodeFindItemContent.prototype, "_info", void 0);
8759
+ ], BarcodeFindItemContent.prototype, "_info", undefined);
8823
8760
  __decorate([
8824
8761
  nameForSerialization('additionalInfo')
8825
- ], BarcodeFindItemContent.prototype, "_additionalInfo", void 0);
8762
+ ], BarcodeFindItemContent.prototype, "_additionalInfo", undefined);
8826
8763
  __decorate([
8827
8764
  nameForSerialization('image')
8828
- ], BarcodeFindItemContent.prototype, "_image", void 0);
8765
+ ], BarcodeFindItemContent.prototype, "_image", undefined);
8829
8766
 
8830
8767
  class BarcodeFindItemSearchOptions extends DefaultSerializeable {
8831
8768
  constructor(barcodeData) {
8832
8769
  super();
8770
+ this._brush = null;
8833
8771
  this._barcodeData = barcodeData;
8834
8772
  }
8773
+ static withBrush(barcodeData, brush) {
8774
+ const options = new BarcodeFindItemSearchOptions(barcodeData);
8775
+ options._brush = brush;
8776
+ return options;
8777
+ }
8835
8778
  get barcodeData() {
8836
8779
  return this._barcodeData;
8837
8780
  }
8781
+ get brush() {
8782
+ return this._brush;
8783
+ }
8838
8784
  }
8839
8785
  __decorate([
8840
8786
  nameForSerialization("barcodeData")
8841
- ], BarcodeFindItemSearchOptions.prototype, "_barcodeData", void 0);
8787
+ ], BarcodeFindItemSearchOptions.prototype, "_barcodeData", undefined);
8788
+ __decorate([
8789
+ nameForSerialization("brush")
8790
+ ], BarcodeFindItemSearchOptions.prototype, "_brush", undefined);
8842
8791
 
8843
8792
  class BarcodeFindSettings extends DefaultSerializeable {
8844
8793
  constructor() {
@@ -8876,10 +8825,10 @@ class BarcodeFindSettings extends DefaultSerializeable {
8876
8825
  }
8877
8826
  __decorate([
8878
8827
  nameForSerialization('symbologies')
8879
- ], BarcodeFindSettings.prototype, "_symbologies", void 0);
8828
+ ], BarcodeFindSettings.prototype, "_symbologies", undefined);
8880
8829
  __decorate([
8881
8830
  nameForSerialization('properties')
8882
- ], BarcodeFindSettings.prototype, "_properties", void 0);
8831
+ ], BarcodeFindSettings.prototype, "_properties", undefined);
8883
8832
  __decorate([
8884
8833
  ignoreFromSerialization
8885
8834
  ], BarcodeFindSettings, "barcodeDefaults", null);
@@ -8918,22 +8867,22 @@ class BarcodeFindViewSettings extends DefaultSerializeable {
8918
8867
  }
8919
8868
  __decorate([
8920
8869
  nameForSerialization('inListItemColor')
8921
- ], BarcodeFindViewSettings.prototype, "_inListItemColor", void 0);
8870
+ ], BarcodeFindViewSettings.prototype, "_inListItemColor", undefined);
8922
8871
  __decorate([
8923
8872
  nameForSerialization('notInListItemColor')
8924
- ], BarcodeFindViewSettings.prototype, "_notInListItemColor", void 0);
8873
+ ], BarcodeFindViewSettings.prototype, "_notInListItemColor", undefined);
8925
8874
  __decorate([
8926
8875
  nameForSerialization('soundEnabled')
8927
- ], BarcodeFindViewSettings.prototype, "_soundEnabled", void 0);
8876
+ ], BarcodeFindViewSettings.prototype, "_soundEnabled", undefined);
8928
8877
  __decorate([
8929
8878
  nameForSerialization('hapticEnabled')
8930
- ], BarcodeFindViewSettings.prototype, "_hapticEnabled", void 0);
8879
+ ], BarcodeFindViewSettings.prototype, "_hapticEnabled", undefined);
8931
8880
  __decorate([
8932
8881
  nameForSerialization('hardwareTriggerEnabled')
8933
- ], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled", void 0);
8882
+ ], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled", undefined);
8934
8883
  __decorate([
8935
8884
  nameForSerialization('hardwareTriggerKeyCode')
8936
- ], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode", void 0);
8885
+ ], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode", undefined);
8937
8886
 
8938
8887
  var BarcodeFindViewEvents;
8939
8888
  (function (BarcodeFindViewEvents) {
@@ -8954,7 +8903,7 @@ class BarcodeFindViewController extends BaseController {
8954
8903
  return viewController;
8955
8904
  }
8956
8905
  setUiListener(listener) {
8957
- return __awaiter(this, void 0, void 0, function* () {
8906
+ return __awaiter(this, undefined, undefined, function* () {
8958
8907
  if (listener && !this.isListenerEnabled) {
8959
8908
  this.isListenerEnabled = true;
8960
8909
  this.subscribeToEvents();
@@ -8965,12 +8914,6 @@ class BarcodeFindViewController extends BaseController {
8965
8914
  }
8966
8915
  });
8967
8916
  }
8968
- viewPaused() {
8969
- return this._proxy.onPause();
8970
- }
8971
- viewResumed() {
8972
- return this._proxy.onResume();
8973
- }
8974
8917
  startSearching() {
8975
8918
  return this._proxy.startSearching();
8976
8919
  }
@@ -8995,7 +8938,7 @@ class BarcodeFindViewController extends BaseController {
8995
8938
  }
8996
8939
  removeNativeView() {
8997
8940
  var _a, _b, _c;
8998
- return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
8941
+ return (_c = (_b = (_a = this._proxy).removeView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
8999
8942
  }
9000
8943
  create() {
9001
8944
  const barcodeFindView = this.baseView.toJSON();
@@ -9004,7 +8947,7 @@ class BarcodeFindViewController extends BaseController {
9004
8947
  return this._proxy.createView(id, json);
9005
8948
  }
9006
8949
  initialize() {
9007
- return __awaiter(this, void 0, void 0, function* () {
8950
+ return __awaiter(this, undefined, undefined, function* () {
9008
8951
  yield this.baseView.context.update();
9009
8952
  if (this.autoCreateNativeView) {
9010
8953
  yield this.create();
@@ -9019,7 +8962,7 @@ class BarcodeFindViewController extends BaseController {
9019
8962
  return;
9020
8963
  }
9021
8964
  const { foundItems: barcodeFindItems = [] } = JSON.parse(data);
9022
- (_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.barcodeFindViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapFinishButton(barcodeFindItems);
8965
+ (_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.barcodeFindViewUiListener) === null || _b === undefined ? undefined : _b.didTapFinishButton(barcodeFindItems);
9023
8966
  });
9024
8967
  }
9025
8968
  unsubscribeToEvents() {
@@ -9032,7 +8975,7 @@ class BarcodeFindViewController extends BaseController {
9032
8975
  }
9033
8976
  __decorate([
9034
8977
  ignoreFromSerialization
9035
- ], BarcodeFindViewController.prototype, "autoCreateNativeView", void 0);
8978
+ ], BarcodeFindViewController.prototype, "autoCreateNativeView", undefined);
9036
8979
 
9037
8980
  class BaseBarcodeFindView {
9038
8981
  get barcodeFindViewUiListener() {
@@ -9074,12 +9017,6 @@ class BaseBarcodeFindView {
9074
9017
  static get barcodeFindViewDefaults() {
9075
9018
  return getBarcodeFindDefaults().BarcodeFindView;
9076
9019
  }
9077
- viewPaused() {
9078
- return this.controller.viewPaused();
9079
- }
9080
- viewResumed() {
9081
- return this.controller.viewResumed();
9082
- }
9083
9020
  stopSearching() {
9084
9021
  this._startSearching = false;
9085
9022
  return this.controller.stopSearching();
@@ -9102,7 +9039,7 @@ class BaseBarcodeFindView {
9102
9039
  return BaseBarcodeFindView.barcodeFindViewDefaults.hardwareTriggerSupported;
9103
9040
  }
9104
9041
  createNativeView() {
9105
- return __awaiter(this, void 0, void 0, function* () {
9042
+ return __awaiter(this, undefined, undefined, function* () {
9106
9043
  if (this.isViewCreated) {
9107
9044
  return Promise.resolve();
9108
9045
  }
@@ -9111,7 +9048,7 @@ class BaseBarcodeFindView {
9111
9048
  });
9112
9049
  }
9113
9050
  removeNativeView() {
9114
- return __awaiter(this, void 0, void 0, function* () {
9051
+ return __awaiter(this, undefined, undefined, function* () {
9115
9052
  yield this.controller.removeNativeView();
9116
9053
  this.isViewCreated = false;
9117
9054
  });
@@ -9257,7 +9194,7 @@ class BaseBarcodeFindView {
9257
9194
  shouldShowFinishButton: this.shouldShowFinishButton,
9258
9195
  shouldShowProgressBar: this.shouldShowProgressBar,
9259
9196
  shouldShowTorchControl: this.shouldShowTorchControl,
9260
- torchControlPosition: (_a = this.torchControlPosition) === null || _a === void 0 ? void 0 : _a.toString(),
9197
+ torchControlPosition: (_a = this.torchControlPosition) === null || _a === undefined ? undefined : _a.toString(),
9261
9198
  textForCollapseCardsButton: this.textForCollapseCardsButton,
9262
9199
  textForAllItemsFoundSuccessfullyHint: this.textForAllItemsFoundSuccessfullyHint,
9263
9200
  textForItemListUpdatedHint: this.textForItemListUpdatedHint,
@@ -9273,20 +9210,20 @@ class BaseBarcodeFindView {
9273
9210
  BarcodeFind: this._barcodeFind.toJSON()
9274
9211
  };
9275
9212
  if (this._barcodeFindViewSettings != null) {
9276
- json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === void 0 ? void 0 : _b.toJSON();
9213
+ json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === undefined ? undefined : _b.toJSON();
9277
9214
  }
9278
9215
  if (this._cameraSettings != null) {
9279
- json.View.cameraSettings = (_c = this._cameraSettings) === null || _c === void 0 ? void 0 : _c.toJSON();
9216
+ json.View.cameraSettings = (_c = this._cameraSettings) === null || _c === undefined ? undefined : _c.toJSON();
9280
9217
  }
9281
9218
  return json;
9282
9219
  }
9283
9220
  }
9284
9221
  __decorate([
9285
9222
  ignoreFromSerialization
9286
- ], BaseBarcodeFindView.prototype, "isViewCreated", void 0);
9223
+ ], BaseBarcodeFindView.prototype, "isViewCreated", undefined);
9287
9224
  __decorate([
9288
9225
  ignoreFromSerialization
9289
- ], BaseBarcodeFindView.prototype, "autoCreateNativeView", void 0);
9226
+ ], BaseBarcodeFindView.prototype, "autoCreateNativeView", undefined);
9290
9227
 
9291
9228
  class BarcodeGeneratorCreationOptions {
9292
9229
  constructor(backgroundColor = null, foregroundColor = null, errorCorrectionLevel = null, versionNumber = null, minimumErrorCorrectionPercent = null, layers = null) {
@@ -9378,7 +9315,7 @@ class BarcodeGeneratorController {
9378
9315
  return controller;
9379
9316
  }
9380
9317
  initialize() {
9381
- return __awaiter(this, void 0, void 0, function* () {
9318
+ return __awaiter(this, undefined, undefined, function* () {
9382
9319
  // We call update because it returns a promise, this guarantees, that by the time
9383
9320
  // we need the deserialized context, it will be set in the native layer.
9384
9321
  yield this.generator.dataCaptureContext.update();
@@ -9389,7 +9326,7 @@ class BarcodeGeneratorController {
9389
9326
  return this._proxy.create(JSON.stringify(this.generator.toJSON()));
9390
9327
  }
9391
9328
  generateFromBase64EncodedData(data, imageWidth) {
9392
- return __awaiter(this, void 0, void 0, function* () {
9329
+ return __awaiter(this, undefined, undefined, function* () {
9393
9330
  const result = yield this._proxy.generateFromBase64EncodedData(this.generator.id, data, imageWidth);
9394
9331
  if (result == null) {
9395
9332
  return '';
@@ -9398,7 +9335,7 @@ class BarcodeGeneratorController {
9398
9335
  });
9399
9336
  }
9400
9337
  generate(text, imageWidth) {
9401
- return __awaiter(this, void 0, void 0, function* () {
9338
+ return __awaiter(this, undefined, undefined, function* () {
9402
9339
  const result = yield this._proxy.generate(this.generator.id, text, imageWidth);
9403
9340
  if (result == null) {
9404
9341
  return '';
@@ -9442,7 +9379,7 @@ class BarcodeGenerator extends DefaultSerializeable {
9442
9379
  this.versionNumber = versionNumber;
9443
9380
  }
9444
9381
  initialize() {
9445
- return __awaiter(this, void 0, void 0, function* () {
9382
+ return __awaiter(this, undefined, undefined, function* () {
9446
9383
  this.controller = BarcodeGeneratorController.forBarcodeGenerator(this);
9447
9384
  this.initializationPromise = this.controller.initialize();
9448
9385
  return this.initializationPromise;
@@ -9454,13 +9391,13 @@ class BarcodeGenerator extends DefaultSerializeable {
9454
9391
  return generator;
9455
9392
  }
9456
9393
  generate(text, imageWidth) {
9457
- return __awaiter(this, void 0, void 0, function* () {
9394
+ return __awaiter(this, undefined, undefined, function* () {
9458
9395
  yield this.initializationPromise;
9459
9396
  return this.controller.generate(text, imageWidth);
9460
9397
  });
9461
9398
  }
9462
9399
  generateFromBase64EncodedData(data, imageWidth) {
9463
- return __awaiter(this, void 0, void 0, function* () {
9400
+ return __awaiter(this, undefined, undefined, function* () {
9464
9401
  yield this.initializationPromise;
9465
9402
  return this.controller.generateFromBase64EncodedData(data, imageWidth);
9466
9403
  });
@@ -9495,13 +9432,13 @@ class BarcodeGenerator extends DefaultSerializeable {
9495
9432
  }
9496
9433
  __decorate([
9497
9434
  nameForSerialization('id')
9498
- ], BarcodeGenerator.prototype, "_id", void 0);
9435
+ ], BarcodeGenerator.prototype, "_id", undefined);
9499
9436
  __decorate([
9500
9437
  ignoreFromSerialization
9501
- ], BarcodeGenerator.prototype, "dataCaptureContext", void 0);
9438
+ ], BarcodeGenerator.prototype, "dataCaptureContext", undefined);
9502
9439
  __decorate([
9503
9440
  ignoreFromSerialization
9504
- ], BarcodeGenerator.prototype, "controller", void 0);
9441
+ ], BarcodeGenerator.prototype, "controller", undefined);
9505
9442
 
9506
9443
  var QrCodeErrorCorrectionLevel;
9507
9444
  (function (QrCodeErrorCorrectionLevel) {