@expedite-commerce/expedite-components 0.2.15 → 0.2.16
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.
|
@@ -35017,23 +35017,23 @@ const ma = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Kb = ["data-test-id
|
|
|
35017
35017
|
], 64))), 128))
|
|
35018
35018
|
]));
|
|
35019
35019
|
}
|
|
35020
|
-
}, GC =
|
|
35020
|
+
}, GC = /* @__PURE__ */ C("link", {
|
|
35021
35021
|
rel: "stylesheet",
|
|
35022
35022
|
href: "https://fonts.googleapis.com/icon?family=Material+Icons",
|
|
35023
35023
|
"data-name": "ec-material-icons"
|
|
35024
|
-
}, null, -1),
|
|
35024
|
+
}, null, -1), QC = /* @__PURE__ */ C("link", {
|
|
35025
35025
|
rel: "stylesheet",
|
|
35026
35026
|
href: "https://fonts.googleapis.com/icon?family=Material+Icons+Outlined",
|
|
35027
35027
|
"data-name": "ec-material-icons-outlined"
|
|
35028
|
-
}, null, -1),
|
|
35028
|
+
}, null, -1), ZC = /* @__PURE__ */ C("link", {
|
|
35029
35029
|
rel: "stylesheet",
|
|
35030
35030
|
href: "https://fonts.googleapis.com/icon?family=Material+Icons+Round",
|
|
35031
35031
|
"data-name": "ec-material-icons-round"
|
|
35032
|
-
}, null, -1),
|
|
35032
|
+
}, null, -1), JC = /* @__PURE__ */ C("link", {
|
|
35033
35033
|
rel: "stylesheet",
|
|
35034
35034
|
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200",
|
|
35035
35035
|
"data-name": "ec-material-symbols-outlined"
|
|
35036
|
-
}, null, -1),
|
|
35036
|
+
}, null, -1), YC = {
|
|
35037
35037
|
__name: "AtomThemeLoader",
|
|
35038
35038
|
props: {
|
|
35039
35039
|
organizationId: {
|
|
@@ -35054,14 +35054,16 @@ const ma = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Kb = ["data-test-id
|
|
|
35054
35054
|
}
|
|
35055
35055
|
},
|
|
35056
35056
|
setup(e) {
|
|
35057
|
-
const n = e, t = Zr(), r = G(""), o = G(
|
|
35058
|
-
if (!(!n.organizationId || !n.templateId))
|
|
35057
|
+
const n = e, t = Zr(), r = G(""), o = G(0), i = async () => {
|
|
35058
|
+
if (!(!n.organizationId || !n.templateId)) {
|
|
35059
|
+
r.value = "", o.value++;
|
|
35059
35060
|
try {
|
|
35060
35061
|
const a = await t.processTheme(n.isPreview, n.theme);
|
|
35061
35062
|
a && a.value && (r.value = a.value);
|
|
35062
35063
|
} catch (a) {
|
|
35063
35064
|
console.error("[ATOMTHEMELOADER:loadTheme] Error loading theme", a);
|
|
35064
35065
|
}
|
|
35066
|
+
}
|
|
35065
35067
|
};
|
|
35066
35068
|
return Ut(() => {
|
|
35067
35069
|
i();
|
|
@@ -35069,7 +35071,7 @@ const ma = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Kb = ["data-test-id
|
|
|
35069
35071
|
i();
|
|
35070
35072
|
}, { deep: !0 }), (a, l) => (N(), j(xe, null, [
|
|
35071
35073
|
r.value ? (N(), _e(Wr("style"), {
|
|
35072
|
-
key:
|
|
35074
|
+
key: o.value,
|
|
35073
35075
|
"data-name": "template-theme"
|
|
35074
35076
|
}, {
|
|
35075
35077
|
default: qe(() => [
|
|
@@ -35077,19 +35079,13 @@ const ma = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Kb = ["data-test-id
|
|
|
35077
35079
|
]),
|
|
35078
35080
|
_: 1
|
|
35079
35081
|
})) : fe("", !0),
|
|
35080
|
-
|
|
35081
|
-
key: 1,
|
|
35082
|
-
rel: "stylesheet",
|
|
35083
|
-
href: o.value,
|
|
35084
|
-
"data-name": "ec-theme-stylesheet-link"
|
|
35085
|
-
}, null, 8, GC)) : fe("", !0),
|
|
35082
|
+
GC,
|
|
35086
35083
|
QC,
|
|
35087
35084
|
ZC,
|
|
35088
|
-
JC
|
|
35089
|
-
YC
|
|
35085
|
+
JC
|
|
35090
35086
|
], 64));
|
|
35091
35087
|
}
|
|
35092
|
-
},
|
|
35088
|
+
}, eE = {
|
|
35093
35089
|
__name: "ExpediteCart",
|
|
35094
35090
|
props: {
|
|
35095
35091
|
templateId: {
|
|
@@ -35170,7 +35166,7 @@ const ma = (e) => (Ft("data-v-975857d5"), e = e(), Pt(), e), Kb = ["data-test-id
|
|
|
35170
35166
|
}), Qe(() => r.sections, async () => {
|
|
35171
35167
|
console.log("props.sections watch expedite cart", r.sections), await n.processSections();
|
|
35172
35168
|
}, { deep: !0 }), (o, i) => (N(), j(xe, null, [
|
|
35173
|
-
de(
|
|
35169
|
+
de(YC, {
|
|
35174
35170
|
"organization-id": r.organizationId,
|
|
35175
35171
|
"template-id": r.templateId,
|
|
35176
35172
|
"is-preview": r.isPreview,
|
|
@@ -35194,7 +35190,7 @@ let pi = null, yi = null;
|
|
|
35194
35190
|
const Es = /* @__PURE__ */ new Set();
|
|
35195
35191
|
let vr = null;
|
|
35196
35192
|
const Yl = /* @__PURE__ */ new Map();
|
|
35197
|
-
async function
|
|
35193
|
+
async function tE(e) {
|
|
35198
35194
|
if (!e)
|
|
35199
35195
|
return "";
|
|
35200
35196
|
if (Yl.has(e))
|
|
@@ -35216,7 +35212,7 @@ async function ws(e, n) {
|
|
|
35216
35212
|
const t = e.querySelector("style[data-vue-expedite-theme]");
|
|
35217
35213
|
t && t.remove();
|
|
35218
35214
|
try {
|
|
35219
|
-
const r = await
|
|
35215
|
+
const r = await tE(n);
|
|
35220
35216
|
if (r) {
|
|
35221
35217
|
const o = document.createElement("style");
|
|
35222
35218
|
o.setAttribute("data-vue-expedite-theme", "true"), o.textContent = r, e.prepend(o);
|
|
@@ -35230,7 +35226,7 @@ function Rf(e) {
|
|
|
35230
35226
|
n && n.shadowRoot && ws(n.shadowRoot, vr);
|
|
35231
35227
|
});
|
|
35232
35228
|
}
|
|
35233
|
-
async function
|
|
35229
|
+
async function nE() {
|
|
35234
35230
|
return pi || yi || (yi = (async () => {
|
|
35235
35231
|
try {
|
|
35236
35232
|
const e = new URL("./style.css", import.meta.url).href, n = await fetch(e);
|
|
@@ -35250,7 +35246,7 @@ const ga = (e) => class extends e {
|
|
|
35250
35246
|
return;
|
|
35251
35247
|
}
|
|
35252
35248
|
try {
|
|
35253
|
-
const n = await
|
|
35249
|
+
const n = await nE();
|
|
35254
35250
|
if (n) {
|
|
35255
35251
|
const t = document.createElement("style");
|
|
35256
35252
|
t.setAttribute("data-vue-expedite-style", "true"), t.textContent = n, this.shadowRoot.prepend(t);
|
|
@@ -35267,12 +35263,12 @@ const ga = (e) => class extends e {
|
|
|
35267
35263
|
disconnectedCallback() {
|
|
35268
35264
|
Es.delete(this), super.disconnectedCallback && super.disconnectedCallback();
|
|
35269
35265
|
}
|
|
35270
|
-
},
|
|
35266
|
+
}, rE = ga(/* @__PURE__ */ na(y7)), oE = ga(/* @__PURE__ */ na(q7)), iE = ga(/* @__PURE__ */ na(f_)), aE = ga(/* @__PURE__ */ na(eE));
|
|
35271
35267
|
function Lf() {
|
|
35272
|
-
typeof window < "u" && (customElements.get("vue-expedite-configurator") || customElements.define("vue-expedite-configurator",
|
|
35268
|
+
typeof window < "u" && (customElements.get("vue-expedite-configurator") || customElements.define("vue-expedite-configurator", rE), customElements.get("vue-expedite-gpt") || customElements.define("vue-expedite-gpt", oE), customElements.get("vue-expedite-catalog") || customElements.define("vue-expedite-catalog", iE), customElements.get("vue-expedite-cart") || customElements.define("vue-expedite-cart", aE));
|
|
35273
35269
|
}
|
|
35274
35270
|
typeof window < "u" && Lf();
|
|
35275
|
-
const
|
|
35271
|
+
const lE = {
|
|
35276
35272
|
register: Lf,
|
|
35277
35273
|
applyThemeToShadows: Rf
|
|
35278
35274
|
};
|
|
@@ -35280,11 +35276,11 @@ typeof window < "u" && (window.VueExpediteComponents = Object.assign(window.VueE
|
|
|
35280
35276
|
applyThemeToShadows: Rf
|
|
35281
35277
|
}));
|
|
35282
35278
|
export {
|
|
35283
|
-
|
|
35284
|
-
|
|
35285
|
-
|
|
35286
|
-
|
|
35279
|
+
aE as ExpediteCartElement,
|
|
35280
|
+
iE as ExpediteCatalogElement,
|
|
35281
|
+
rE as ExpediteConfiguratorElement,
|
|
35282
|
+
oE as ExpediteGPTElement,
|
|
35287
35283
|
Rf as applyThemeToShadows,
|
|
35288
|
-
|
|
35284
|
+
lE as default,
|
|
35289
35285
|
Lf as registerWebComponents
|
|
35290
35286
|
};
|