@social-mail/social-mail-client 1.2.676 → 1.2.678

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.
@@ -26021,9 +26021,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
26021
26021
  cancelToken
26022
26022
  })), {
26023
26023
  itemRenderer: item => {
26024
- var _a, _b, _c, _d, _e, _f, _g, _h;
26024
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
26025
26025
  const name = item.name || ((_a = item.variantFor) === null || _a === void 0 ? void 0 : _a.name) || item.name;
26026
- const href = StoreCommands.productDetail.displayRoute(item) + "/" + Slugger.slug(item.storeItemID, name);
26026
+ const storeItemID = ((_b = item.variantFor) === null || _b === void 0 ? void 0 : _b.storeItemID) || item.storeItemID;
26027
+ const slug = Slugger.slug(item.storeItemID, name);
26028
+ const href = StoreCommands.productDetail.displayRoute({
26029
+ storeItemID,
26030
+ name: slug
26031
+ });
26027
26032
  return XNode.create("div", {
26028
26033
  class: "store-item"
26029
26034
  }, XNode.create("a", {
@@ -26033,12 +26038,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
26033
26038
  href: href
26034
26039
  }), XNode.create("label", {
26035
26040
  class: "description",
26036
- title: item.description || ((_b = item.variantFor) === null || _b === void 0 ? void 0 : _b.description) || item.description,
26037
- text: item.description || ((_c = item.variantFor) === null || _c === void 0 ? void 0 : _c.description) || item.description
26041
+ title: item.description || ((_c = item.variantFor) === null || _c === void 0 ? void 0 : _c.description) || item.description,
26042
+ text: item.description || ((_d = item.variantFor) === null || _d === void 0 ? void 0 : _d.description) || item.description
26038
26043
  }), XNode.create("img", {
26039
26044
  src: Bind.oneTimeAsync(() => this.downloadImage(item))
26040
26045
  }), XNode.create("a", {
26041
- title: item.name || ((_d = item.variantFor) === null || _d === void 0 ? void 0 : _d.name) || item.name,
26046
+ title: item.name || ((_e = item.variantFor) === null || _e === void 0 ? void 0 : _e.name) || item.name,
26042
26047
  href: href
26043
26048
  }, XNode.create("button", {
26044
26049
  class: "buy",
@@ -26046,7 +26051,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
26046
26051
  })), XNode.create("div", {
26047
26052
  class: "price"
26048
26053
  }, XNode.create("label", {
26049
- text: formatPrice((_f = (_e = item.storeItemPrices) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : (_h = (_g = item.variantFor) === null || _g === void 0 ? void 0 : _g.storeItemPrices) === null || _h === void 0 ? void 0 : _h[0])
26054
+ text: formatPrice((_g = (_f = item.storeItemPrices) === null || _f === void 0 ? void 0 : _f[0]) !== null && _g !== void 0 ? _g : (_j = (_h = item.variantFor) === null || _h === void 0 ? void 0 : _h.storeItemPrices) === null || _j === void 0 ? void 0 : _j[0])
26050
26055
  })));
26051
26056
  }
26052
26057
  })), XNode.create("footer", null)));
@@ -26177,7 +26182,7 @@ System.register(["@web-atoms/core/dist/core/Command"], function (_export, _conte
26177
26182
  openPage: () => _context.import("../pages/StoreOrderPage")
26178
26183
  });
26179
26184
  StoreCommands.productDetail = Command.create({
26180
- route: "/store/{storeItemID}",
26185
+ route: "/store/{storeItemID}/{*name}",
26181
26186
  routeOrder: 100,
26182
26187
  openPage: () => _context.import("../pages/StoreProductDetailPage")
26183
26188
  });