@vtex/ads-stories 0.7.0 → 0.8.0

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.
@@ -1662,15 +1662,19 @@ var BY_LANGUAGE = /* @__PURE__ */ new Map([
1662
1662
  ["en", en]
1663
1663
  ]);
1664
1664
  function labelsFor(locale, overrides = {}) {
1665
- var _a13, _b3, _c;
1665
+ var _a13, _b3, _c, _d, _e;
1666
1666
  const language = locale.split("-")[0].toLowerCase();
1667
1667
  const labels = (_a13 = BY_LANGUAGE.get(language)) != null ? _a13 : pt;
1668
1668
  const addToCart = (_b3 = overrides.addToCart) == null ? void 0 : _b3.trim();
1669
1669
  const viewProduct = (_c = overrides.viewProduct) == null ? void 0 : _c.trim();
1670
+ const unavailable = (_d = overrides.unavailable) == null ? void 0 : _d.trim();
1671
+ const soldOut = (_e = overrides.soldOut) == null ? void 0 : _e.trim();
1670
1672
  return {
1671
1673
  ...labels,
1672
1674
  ...addToCart && { addToCart },
1673
- ...viewProduct && { viewProduct }
1675
+ ...viewProduct && { viewProduct },
1676
+ ...unavailable && { unavailable },
1677
+ ...soldOut && { soldOut }
1674
1678
  };
1675
1679
  }
1676
1680
 
@@ -5253,14 +5257,28 @@ var VtexAdsStoryCarouselElement = class extends i3 {
5253
5257
  }
5254
5258
  get labels() {
5255
5259
  var _a13;
5256
- const { locale, labelAddToCart = "", labelViewProduct = "" } = this;
5257
- const key = JSON.stringify([locale, labelAddToCart, labelViewProduct]);
5260
+ const {
5261
+ locale,
5262
+ labelAddToCart = "",
5263
+ labelViewProduct = "",
5264
+ labelUnavailable = "",
5265
+ labelSoldOut = ""
5266
+ } = this;
5267
+ const key = JSON.stringify([
5268
+ locale,
5269
+ labelAddToCart,
5270
+ labelViewProduct,
5271
+ labelUnavailable,
5272
+ labelSoldOut
5273
+ ]);
5258
5274
  if (((_a13 = this.labelSet) == null ? void 0 : _a13.key) !== key) {
5259
5275
  this.labelSet = {
5260
5276
  key,
5261
5277
  labels: labelsFor(locale, {
5262
5278
  addToCart: labelAddToCart,
5263
- viewProduct: labelViewProduct
5279
+ viewProduct: labelViewProduct,
5280
+ unavailable: labelUnavailable,
5281
+ soldOut: labelSoldOut
5264
5282
  })
5265
5283
  };
5266
5284
  }
@@ -5369,6 +5387,8 @@ VtexAdsStoryCarouselElement.properties = {
5369
5387
  currency: {},
5370
5388
  labelAddToCart: { attribute: "label-add-to-cart" },
5371
5389
  labelViewProduct: { attribute: "label-view-product" },
5390
+ labelUnavailable: { attribute: "label-unavailable" },
5391
+ labelSoldOut: { attribute: "label-sold-out" },
5372
5392
  hydration: { converter: hydrationConverter },
5373
5393
  hydrationTimeout: { type: Number, attribute: "hydration-timeout" },
5374
5394
  slideDuration: { type: Number, attribute: "slide-duration" },