@churchillliving/se-ui-toolkit 6.53.452 → 6.53.453

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.
@@ -8981,7 +8981,7 @@
8981
8981
  FileUploadComponent.prototype.ngOnInit = function () { };
8982
8982
  FileUploadComponent.prototype.uploadFile = function (files) {
8983
8983
  var _this = this;
8984
- var _a, _b, _c, _d, _e, _f, _g, _h;
8984
+ var _a, _b, _c, _d, _e, _f;
8985
8985
  var fileData = new FormData();
8986
8986
  var chooseFile = false;
8987
8987
  for (var i = 0; i < files.length; i++) {
@@ -8994,11 +8994,8 @@
8994
8994
  if (this.fields && ((_a = this.fields.uniqueKey) === null || _a === void 0 ? void 0 : _a.length) > 0) {
8995
8995
  fileData.append('uniqueKey', (_b = this.fields) === null || _b === void 0 ? void 0 : _b.uniqueKey);
8996
8996
  }
8997
- else if (this.fields && ((_c = this.fields.pathSystemConfig) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((_d = this.fields) === null || _d === void 0 ? void 0 : _d.SetfileTypes) !== exports.ESelectFileType.MRT) {
8998
- fileData.append('pathSystemConfig', (_e = this.fields) === null || _e === void 0 ? void 0 : _e.pathSystemConfig);
8999
- }
9000
- else if (this.fields && ((_f = this.fields.azureContainer) === null || _f === void 0 ? void 0 : _f.length) > 0 && ((_g = this.fields) === null || _g === void 0 ? void 0 : _g.SetfileTypes) === exports.ESelectFileType.MRT) {
9001
- fileData.append('azureContainer', (_h = this.fields) === null || _h === void 0 ? void 0 : _h.azureContainer);
8997
+ else if (this.fields && (((_c = this.fields.azureContainer) === null || _c === void 0 ? void 0 : _c.length) > 0 || ((_d = this.fields.pathSystemConfig) === null || _d === void 0 ? void 0 : _d.length) > 0)) {
8998
+ fileData.append('azureContainer', ((_e = this.fields) === null || _e === void 0 ? void 0 : _e.SetfileTypes) === exports.ESelectFileType.MRT ? (_f = this.fields) === null || _f === void 0 ? void 0 : _f.azureContainer : this.fields.pathSystemConfig);
9002
8999
  }
9003
9000
  this.requestService.get('/Upload', fileData).subscribe(function (data) {
9004
9001
  var _a;
@@ -9010,8 +9007,8 @@
9010
9007
  }
9011
9008
  _this.fileUrl.emit(data.results);
9012
9009
  }
9013
- }, function (_j) {
9014
- var error = _j.error;
9010
+ }, function (_g) {
9011
+ var error = _g.error;
9015
9012
  _this.alertService.apiError(error);
9016
9013
  if (_this.fields.onReturn) {
9017
9014
  _this.fields.onReturn(error);