@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.
|
@@ -628,8 +628,13 @@ const hn = St("error", {
|
|
|
628
628
|
}), oc = St("comShare", () => {
|
|
629
629
|
const e = z({}), r = z(""), t = z(""), n = z(""), o = z(""), a = z(""), i = z(""), l = z(""), s = z(""), f = z("Single"), c = z({}), p = fe(() => f.value === "Single"), u = z({});
|
|
630
630
|
function m(g) {
|
|
631
|
-
var
|
|
632
|
-
|
|
631
|
+
var y;
|
|
632
|
+
if (!g || g.includes("://") || !((y = u.value) != null && y.siteUrl))
|
|
633
|
+
return g;
|
|
634
|
+
if (/^[\w-]+(\.[\w-]+)+\//.test(g))
|
|
635
|
+
return `https://${g}`;
|
|
636
|
+
const h = u.value.siteUrl.replace(/\/+$/, ""), v = g.replace(/^(?:\.\.?\/)+/, "").replace(/^\/+/, "");
|
|
637
|
+
return `${h}/${v}`;
|
|
633
638
|
}
|
|
634
639
|
async function d(g, h, v, y) {
|
|
635
640
|
r.value = g.orgType || "Production", t.value = g.orgId || "", n.value = g.userId || "", o.value = g.accountId || "", a.value = g.opportunityId || "", s.value = g.userLocale || "en_US", f.value = g.pricingSchema || "Single", e.value = h || {}, c.value = v || {}, u.value = y || {};
|
|
@@ -32909,7 +32914,7 @@ const vr = St("ai", () => {
|
|
|
32909
32914
|
type: "response"
|
|
32910
32915
|
};
|
|
32911
32916
|
}, k = z(tr()), S = fe(() => {
|
|
32912
|
-
const le = o.organizationId.value, he = o.userId.value, we = o.cid.value || k.value;
|
|
32917
|
+
const le = o.organizationId.value, he = o.userId.value, we = o.quoteId.value || o.cid.value || k.value;
|
|
32913
32918
|
return `${le}_${he}_${we}`;
|
|
32914
32919
|
}), T = fe(() => p.value.readyState == WebSocket.OPEN), q = fe(() => o.websocketUrl.value || ""), G = () => {
|
|
32915
32920
|
u.value = {
|