@churchillliving/se-ui-toolkit 6.52.65 → 6.52.67

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.
@@ -7750,9 +7750,17 @@
7750
7750
  var _a;
7751
7751
  if (this.card) {
7752
7752
  var _d = this.card, data = _d.data, formSections = _d.formSections, cardInfo_1 = _d.cardInfo;
7753
- var isIncluded = data.some(function (x) { var _a, _b, _c; return ((_a = Object.keys(x)) === null || _a === void 0 ? void 0 : _a.includes("blobfileurl")) && ((_b = Object.keys(x)) === null || _b === void 0 ? void 0 : _b.includes("fileextension")) && ((_c = Object.keys(x)) === null || _c === void 0 ? void 0 : _c.includes("filecaption")); });
7754
- console.log('isIncluded: ', isIncluded);
7755
- if (cardInfo_1 && Object.keys(cardInfo_1).length > 0 && !isIncluded) {
7753
+ var isIncluded_1 = false;
7754
+ data.forEach(function (x) {
7755
+ var _a, _b;
7756
+ x = objConvertToLower(x);
7757
+ if (((_a = Object.keys(x)) === null || _a === void 0 ? void 0 : _a.includes('azurecontainerid')) && ((_b = Object.keys(x)) === null || _b === void 0 ? void 0 : _b.includes('blobfileurl'))) {
7758
+ isIncluded_1 = true;
7759
+ }
7760
+ });
7761
+ // const isIncluded = data.some((x)=> Object.keys(x)?.includes("blobfileurl") && Object.keys(x)?.includes("fileextension") && Object.keys(x)?.includes("filecaption"));
7762
+ // console.log('isIncluded: ', isIncluded);
7763
+ if (cardInfo_1 && Object.keys(cardInfo_1).length > 0 && !isIncluded_1) {
7756
7764
  this.displayCardInfo = cardInfo_1;
7757
7765
  this.data = (_a = this.gridService.setDataFields(data)) === null || _a === void 0 ? void 0 : _a.map(function (record) { var _a, _b, _c; return (Object.assign(Object.assign({}, record), { blobfileurl: record[(_a = cardInfo_1.url) === null || _a === void 0 ? void 0 : _a.toLowerCase()], filecaption: record[(_b = cardInfo_1.caption) === null || _b === void 0 ? void 0 : _b.toLowerCase()], fileextension: record[(_c = cardInfo_1.extension) === null || _c === void 0 ? void 0 : _c.toLowerCase()] })); });
7758
7766
  console.log('this.data1: ', this.data);