@social-mail/social-mail-client 1.2.330 → 1.2.331

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.
@@ -19547,13 +19547,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19547
19547
  this.images = [];
19548
19548
  this.runAfterInit(() => this.app.runAsync(() => this.init()));
19549
19549
  }
19550
- getFiles(...items) {
19551
- const files = [];
19552
- for (const iterator of items) {
19553
- if (!(iterator === null || iterator === void 0 ? void 0 : iterator.mediaFiles)) {
19554
- continue;
19555
- }
19556
- files.push(...iterator.mediaFiles);
19550
+ getFiles(item, varient, size) {
19551
+ var _a;
19552
+ const varientFiles = (_a = varient === null || varient === void 0 ? void 0 : varient.mediaFiles) === null || _a === void 0 ? void 0 : _a.filter(x => x.isPreview);
19553
+ const files = varientFiles !== null && varientFiles !== void 0 ? varientFiles : item.mediaFiles.filter(x => x.isPreview);
19554
+ if (size === null || size === void 0 ? void 0 : size.mediaFiles) {
19555
+ files.push(...size.mediaFiles.filter(x => x.isPreview));
19557
19556
  }
19558
19557
  this.selectedFile = files[0];
19559
19558
  return files;
@@ -19576,7 +19575,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19576
19575
  this.selectedVarient = (_d = (_c = this.model.variants) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : null;
19577
19576
  this.renderer = XNode.create("div", {
19578
19577
  class: css,
19579
- images: Bind.oneWay(() => this.getFiles(this.model, this.selectedSize, this.selectedVarient))
19578
+ images: Bind.oneWay(() => this.getFiles(this.model, this.selectedVarient, this.selectedSize))
19580
19579
  }, XNode.create("h2", null, this.model.name), XNode.create("section", {
19581
19580
  class: "photos"
19582
19581
  }, XNode.create(AtomRepeater, {