@expedite-commerce/expedite-components 0.2.135 → 0.2.137
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.
|
@@ -5457,8 +5457,13 @@ const Dn = $t("error", {
|
|
|
5457
5457
|
}), y2 = $t("comShare", () => {
|
|
5458
5458
|
const e = G({}), n = G(""), t = G(""), r = G(""), o = G(""), i = G(""), a = G(""), s = G(""), l = G(""), u = G("Single"), c = G({}), h = xe(() => u.value === "Single"), d = G({});
|
|
5459
5459
|
function p(g) {
|
|
5460
|
-
var
|
|
5461
|
-
|
|
5460
|
+
var y;
|
|
5461
|
+
if (!g || g.includes("://") || !((y = d.value) != null && y.siteUrl))
|
|
5462
|
+
return g;
|
|
5463
|
+
if (/^[\w-]+(\.[\w-]+)+\//.test(g))
|
|
5464
|
+
return `https://${g}`;
|
|
5465
|
+
const m = d.value.siteUrl.replace(/\/+$/, ""), v = g.replace(/^(?:\.\.?\/)+/, "").replace(/^\/+/, "");
|
|
5466
|
+
return `${m}/${v}`;
|
|
5462
5467
|
}
|
|
5463
5468
|
async function f(g, m, v, y) {
|
|
5464
5469
|
n.value = g.orgType || "Production", t.value = g.orgId || "", r.value = g.userId || "", o.value = g.accountId || "", i.value = g.opportunityId || "", l.value = g.userLocale || "en_US", u.value = g.pricingSchema || "Single", e.value = m || {}, c.value = v || {}, d.value = y || {};
|
|
@@ -37738,7 +37743,7 @@ const Ao = $t("ai", () => {
|
|
|
37738
37743
|
type: "response"
|
|
37739
37744
|
};
|
|
37740
37745
|
}, A = G(Ur()), w = xe(() => {
|
|
37741
|
-
const re = o.organizationId.value, ue = o.userId.value, Ce = o.cid.value || A.value;
|
|
37746
|
+
const re = o.organizationId.value, ue = o.userId.value, Ce = o.quoteId.value || o.cid.value || A.value;
|
|
37742
37747
|
return `${re}_${ue}_${Ce}`;
|
|
37743
37748
|
}), T = xe(() => h.value.readyState == WebSocket.OPEN), P = xe(() => o.websocketUrl.value || ""), X = () => {
|
|
37744
37749
|
d.value = {
|