@social-mail/social-mail-client 1.2.619 → 1.2.621

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.
@@ -24272,12 +24272,26 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
24272
24272
  if (!((_a = email.attachments) === null || _a === void 0 ? void 0 : _a.length)) {
24273
24273
  return XNode.create("div", null);
24274
24274
  }
24275
- return XNode.create("carousel-slider", null, ...email.attachments.map(x => /image/i.test(x.contentType) ? XNode.create("img", {
24276
- src: x.downloadUrl
24277
- }) : /video/i.test(x.contentType) && XNode.create("video", {
24278
- controls: "true",
24279
- src: x.downloadUrl
24280
- })));
24275
+ const children = [];
24276
+ for (const element of email.attachments) {
24277
+ if (element.contentID) {
24278
+ continue;
24279
+ }
24280
+ if (/video/i.test(element.contentType)) {
24281
+ children.push(XNode.create("video", {
24282
+ controls: "true",
24283
+ src: element.downloadUrl
24284
+ }));
24285
+ continue;
24286
+ }
24287
+ if (/image/i.test(element.contentType)) {
24288
+ children.push(XNode.create("img", {
24289
+ src: element.downloadUrl
24290
+ }));
24291
+ continue;
24292
+ }
24293
+ }
24294
+ return XNode.create("carousel-slider", {}, children);
24281
24295
  }
24282
24296
  _export("default", MediaCarousel);
24283
24297
  return {