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

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.
@@ -19478,7 +19478,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19478
19478
  url = window.pageUrl;
19479
19479
  ({
19480
19480
  1: storeID = "4",
19481
- 2: itemID = "1w"
19481
+ 2: itemID = "23"
19482
19482
  } = (_a = /^\/store\/([^\/]+)\/([^\/]+)\//.exec(url === null || url === void 0 ? void 0 : url.pathname)) !== null && _a !== void 0 ? _a : {});
19483
19483
  storeID = parseInt(storeID, 36);
19484
19484
  itemID = parseInt(itemID, 36);
@@ -19513,6 +19513,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19513
19513
  display: flex;
19514
19514
  flex-direction: column;
19515
19515
  overflow: auto;
19516
+ max-height: 500px;
19516
19517
  & > img {
19517
19518
  cursor: pointer;
19518
19519
  margin: 5px;
@@ -19547,13 +19548,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19547
19548
  this.images = [];
19548
19549
  this.runAfterInit(() => this.app.runAsync(() => this.init()));
19549
19550
  }
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);
19551
+ getFiles(item, varient, size) {
19552
+ var _a;
19553
+ const varientFiles = (_a = varient === null || varient === void 0 ? void 0 : varient.mediaFiles) === null || _a === void 0 ? void 0 : _a.filter(x => x.isPreview);
19554
+ const files = varientFiles !== null && varientFiles !== void 0 ? varientFiles : item.mediaFiles.filter(x => x.isPreview);
19555
+ if (size === null || size === void 0 ? void 0 : size.mediaFiles) {
19556
+ files.push(...size.mediaFiles.filter(x => x.isPreview));
19557
19557
  }
19558
19558
  this.selectedFile = files[0];
19559
19559
  return files;
@@ -19565,8 +19565,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19565
19565
  text: "..."
19566
19566
  }));
19567
19567
  this.model = yield this.getItem();
19568
- const images = this.model.mediaFiles.where(x => x.isPreview);
19569
- this.selectedFile = images[0];
19570
19568
  const offer = this.model.mediaFiles.find(x => x.title === "offer.html");
19571
19569
  const specifications = this.model.mediaFiles.find(x => x.title === "specs.html");
19572
19570
  const price = this.model.storeItemPrices[0];
@@ -19576,7 +19574,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
19576
19574
  this.selectedVarient = (_d = (_c = this.model.variants) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : null;
19577
19575
  this.renderer = XNode.create("div", {
19578
19576
  class: css,
19579
- images: Bind.oneWay(() => this.getFiles(this.model, this.selectedSize, this.selectedVarient))
19577
+ images: Bind.oneWay(() => this.getFiles(this.model, this.selectedVarient, this.selectedSize))
19580
19578
  }, XNode.create("h2", null, this.model.name), XNode.create("section", {
19581
19579
  class: "photos"
19582
19580
  }, XNode.create(AtomRepeater, {