@azzas/azzas-tracker-web 2.0.0-preview.6 → 2.0.0-preview.7

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.
package/dist/mod.js CHANGED
@@ -1329,9 +1329,6 @@ var legacyGetters = {
1329
1329
  // src/params/adapters/meta/index.ts
1330
1330
  var metaAdapters = {
1331
1331
  user_info: getUserInfo,
1332
- // brand: (context: MetaBrandContext) => {
1333
- // return context.meta.brand || null;
1334
- // },
1335
1332
  content_type: (context) => {
1336
1333
  return context.meta.content_type || null;
1337
1334
  },
@@ -1486,6 +1483,7 @@ var decoAdapter = {
1486
1483
  },
1487
1484
  brand: (context, config2) => {
1488
1485
  if (config2 == null ? void 0 : config2.brand) return config2.brand;
1486
+ if (context == null ? void 0 : context.brand) return context.brand;
1489
1487
  if (context == null ? void 0 : context.products) {
1490
1488
  return normalizeBrand2(context.products.map((p) => {
1491
1489
  var _a;
@@ -1612,6 +1610,7 @@ var HeadlessPdpZone = {
1612
1610
  },
1613
1611
  brand: (context, config2) => {
1614
1612
  if (config2 == null ? void 0 : config2.brand) return config2.brand;
1613
+ if (context == null ? void 0 : context.brand) return context.brand;
1615
1614
  if (context == null ? void 0 : context.products) {
1616
1615
  return context.products.map((p) => p.brand).join().trim();
1617
1616
  }
@@ -1670,6 +1669,7 @@ var HeadlessPdcZone = {
1670
1669
  },
1671
1670
  brand: (context, config2) => {
1672
1671
  if (config2 == null ? void 0 : config2.brand) return config2.brand;
1672
+ if (context == null ? void 0 : context.brand) return context.brand;
1673
1673
  if (context == null ? void 0 : context.products) {
1674
1674
  return context.products.map((p) => p.brand.name).join().trim();
1675
1675
  }
@@ -1837,6 +1837,7 @@ var orderFormAdapter = {
1837
1837
  brand: (context, config2) => {
1838
1838
  var _a;
1839
1839
  if (config2 == null ? void 0 : config2.brand) return config2.brand;
1840
+ if (context == null ? void 0 : context.brand) return context.brand;
1840
1841
  if (!((_a = context == null ? void 0 : context.orderForm) == null ? void 0 : _a.items)) return null;
1841
1842
  const brands = getOrderFormItems(context.orderForm).map((item) => item.additionalInfo.brandName);
1842
1843
  return normalizeBrand2(brands);