@expedite-commerce/expedite-components 0.2.80 → 0.2.81

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.
@@ -8159,11 +8159,11 @@ const po = bt("blockLegacy", () => {
8159
8159
  });
8160
8160
  }
8161
8161
  async function u(c, p = !0) {
8162
- var f;
8162
+ var f, y, d;
8163
8163
  if (console.info("fetchBlockInformationREST templateId:", c.templateId), !!c.templateId) {
8164
8164
  p && (r.value = [], n.value = !1);
8165
8165
  try {
8166
- const y = await zt({
8166
+ const x = await zt({
8167
8167
  action: "retrieveBlock",
8168
8168
  data: {
8169
8169
  salesforceOrgId: e.organizationId.value,
@@ -8175,18 +8175,18 @@ const po = bt("blockLegacy", () => {
8175
8175
  }
8176
8176
  });
8177
8177
  t.value = c.templateId;
8178
- const d = (f = y == null ? void 0 : y.data[0]) == null ? void 0 : f.blocks;
8179
- if (console.log("fetchBlockInformationREST blocksData", d), p) {
8180
- if (d) {
8181
- const x = typeof d == "string" ? JSON.parse(d) : d;
8182
- console.log("fetchBlockInformationREST parsedBlocks", x), r.value = i(x), console.log("fetchBlockInformationREST pageBlocks", r.value);
8178
+ const h = ((y = (f = x == null ? void 0 : x.data) == null ? void 0 : f[0]) == null ? void 0 : y.blocks) ?? ((d = x == null ? void 0 : x.data) == null ? void 0 : d.blocks);
8179
+ if (console.log("fetchBlockInformationREST blocksData", h), p) {
8180
+ if (h) {
8181
+ const b = typeof h == "string" ? JSON.parse(h) : h;
8182
+ console.log("fetchBlockInformationREST parsedBlocks", b), r.value = i(b), console.log("fetchBlockInformationREST pageBlocks", r.value);
8183
8183
  } else
8184
8184
  console.log("fetchBlockInformationREST blocksData is null"), r.value = [];
8185
8185
  n.value = !0;
8186
8186
  } else
8187
- return d || [];
8188
- } catch (y) {
8189
- throw console.error("fetchBlockInformationREST error:", y), p && (r.value = [], n.value = !0), y;
8187
+ return h || [];
8188
+ } catch (x) {
8189
+ throw console.error("fetchBlockInformationREST error:", x), p && (r.value = [], n.value = !0), x;
8190
8190
  }
8191
8191
  }
8192
8192
  }
@@ -9519,14 +9519,15 @@ const n2 = {
9519
9519
  }
9520
9520
  }
9521
9521
  async function E() {
9522
+ var S;
9522
9523
  try {
9523
- const S = `${r.composablesApiUrl.value}/product-pricing/findCatalogInContext?accountId=${r.accountId.value}&catalogType=Custom&catalogLookupFieldName=XX_ORD1__Parts_eCatalog__c`;
9524
- return (await (await fetch(S, {
9524
+ const D = `${r.composablesApiUrl.value}/product-pricing/findCatalogInContext?accountId=${r.accountId.value}&catalogType=Custom&catalogLookupFieldName=XX_ORD1__Parts_eCatalog__c`, V = await (await fetch(D, {
9525
9525
  method: "GET",
9526
9526
  headers: d()
9527
- })).json()).data.catalogId;
9528
- } catch (S) {
9529
- return e.handleError(S, "playbookStore.getCatalogInContext"), null;
9527
+ })).json();
9528
+ return (S = V == null ? void 0 : V.data) == null ? void 0 : S.catalogId;
9529
+ } catch (D) {
9530
+ return e.handleError(D, "playbookStore.getCatalogInContext"), null;
9530
9531
  }
9531
9532
  }
9532
9533
  return {