@expedite-commerce/expedite-components 0.2.3 → 0.2.5
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.
|
@@ -29641,7 +29641,7 @@ function Zr() {
|
|
|
29641
29641
|
},
|
|
29642
29642
|
processSections: async (i, a, l) => {
|
|
29643
29643
|
const u = pa();
|
|
29644
|
-
if (
|
|
29644
|
+
if (a && i)
|
|
29645
29645
|
try {
|
|
29646
29646
|
const f = typeof i == "string" ? JSON.parse(i) : i;
|
|
29647
29647
|
u.pageBlocks = f;
|
|
@@ -29649,7 +29649,7 @@ function Zr() {
|
|
|
29649
29649
|
console.error("[ExpediteCart] Error parsing sections:", f);
|
|
29650
29650
|
}
|
|
29651
29651
|
else
|
|
29652
|
-
await u.fetchBlockInformationREST({
|
|
29652
|
+
a || await u.fetchBlockInformationREST({
|
|
29653
29653
|
templateId: l || Wl.value
|
|
29654
29654
|
});
|
|
29655
29655
|
}
|
|
@@ -34901,7 +34901,7 @@ const ya = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Ub = ["data-test-id
|
|
|
34901
34901
|
const n = e, t = pa(), r = er(), o = fc(), i = pe(() => t.pageBlocks || []), a = (u) => !0, l = pe(() => {
|
|
34902
34902
|
var f, s, p, d;
|
|
34903
34903
|
const u = [];
|
|
34904
|
-
return n.isPreview && ((f = i.value) != null && f.content) ? (p = (s = i.value) == null ? void 0 : s.content) == null || p.forEach((y) => {
|
|
34904
|
+
return console.log("sections", i.value), console.log("props.isPreview", n.isPreview), n.isPreview && ((f = i.value) != null && f.content) ? (p = (s = i.value) == null ? void 0 : s.content) == null || p.forEach((y) => {
|
|
34905
34905
|
const h = [], v = y.section, c = JSON.parse(v.XX_ORD1__Content_JSON__c);
|
|
34906
34906
|
let m = {};
|
|
34907
34907
|
c && (m = Ci(c, o.isMobile), v.styleObject = v.hideStyle ? {} : m.sectionStyle, v.visibility = m.visibility), y.blocks.forEach((g) => {
|
|
@@ -35137,6 +35137,8 @@ const ya = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Ub = ["data-test-id
|
|
|
35137
35137
|
composablesApiKey: r.composablesApiKey,
|
|
35138
35138
|
composablesOrgType: r.composablesOrgType
|
|
35139
35139
|
}), t.quoteId = r.quoteId, await n.processSections(r.sections, r.isPreview, r.templateId);
|
|
35140
|
+
}), Qe(() => [r.sections, r.isPreview], async () => {
|
|
35141
|
+
await n.processSections(r.sections, r.isPreview, r.templateId);
|
|
35140
35142
|
}), (o, i) => (N(), j(xe, null, [
|
|
35141
35143
|
de(ZC, {
|
|
35142
35144
|
"organization-id": r.organizationId,
|