@vio-live/web-sdk 0.26.1 → 0.27.0
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.
- package/README.md +68 -0
- package/dist/chunk-67QESEV2.js +3 -0
- package/dist/{chunk-NCP76AXW.js.map → chunk-67QESEV2.js.map} +1 -1
- package/dist/{chunk-6Q2M3MIK.js → chunk-GLAKUYQA.js} +263 -28
- package/dist/chunk-GLAKUYQA.js.map +1 -0
- package/dist/{chunk-NXIYIY2D.js → chunk-HJRIPCWB.js} +264 -33
- package/dist/chunk-HJRIPCWB.js.map +1 -0
- package/dist/core/index.d.ts +123 -4
- package/dist/core/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +3 -3
- package/dist/{tokens-Bn7fK9ta.d.ts → tokens-CihuCU2l.d.ts} +56 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-6Q2M3MIK.js.map +0 -1
- package/dist/chunk-NCP76AXW.js +0 -3
- package/dist/chunk-NXIYIY2D.js.map +0 -1
|
@@ -2917,6 +2917,142 @@ function lineOrigins(line) {
|
|
|
2917
2917
|
return copy.origins;
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
|
+
// src/core/sponsor-identity.ts
|
|
2921
|
+
var CHECKOUT_SPONSOR_STORAGE_KEY = "vio.checkoutSponsor.v1";
|
|
2922
|
+
var CHECKOUT_SPONSOR_MEMORY_MAX = 20;
|
|
2923
|
+
function toSponsorId(value) {
|
|
2924
|
+
if (value === null || value === void 0 || value === "") return void 0;
|
|
2925
|
+
const n = typeof value === "number" ? value : Number(String(value).trim());
|
|
2926
|
+
return Number.isInteger(n) && n > 0 ? n : void 0;
|
|
2927
|
+
}
|
|
2928
|
+
function urlOrNull(value) {
|
|
2929
|
+
if (typeof value !== "string") return null;
|
|
2930
|
+
const v = value.trim();
|
|
2931
|
+
return v ? v : null;
|
|
2932
|
+
}
|
|
2933
|
+
function nameOf(value) {
|
|
2934
|
+
return typeof value === "string" ? value.trim() : "";
|
|
2935
|
+
}
|
|
2936
|
+
function findSponsorIn(boot, sponsorId) {
|
|
2937
|
+
const id = toSponsorId(sponsorId);
|
|
2938
|
+
if (id === void 0 || !boot || typeof boot !== "object") return void 0;
|
|
2939
|
+
const match = (s) => !!s && typeof s === "object" && Number(s.id) === id;
|
|
2940
|
+
if (match(boot.primarySponsor)) return boot.primarySponsor;
|
|
2941
|
+
const secondary = Array.isArray(boot.secondarySponsors) ? boot.secondarySponsors.find(match) : void 0;
|
|
2942
|
+
if (secondary) return secondary;
|
|
2943
|
+
const campaigns = Array.isArray(boot.campaigns) ? boot.campaigns : [];
|
|
2944
|
+
for (const c of campaigns) {
|
|
2945
|
+
if (!c || typeof c !== "object") continue;
|
|
2946
|
+
if (match(c.primarySponsor)) return c.primarySponsor;
|
|
2947
|
+
const s = Array.isArray(c.secondarySponsors) ? c.secondarySponsors.find(match) : void 0;
|
|
2948
|
+
if (s) return s;
|
|
2949
|
+
}
|
|
2950
|
+
return void 0;
|
|
2951
|
+
}
|
|
2952
|
+
function sponsorIdentityFrom(boot, sponsorId) {
|
|
2953
|
+
try {
|
|
2954
|
+
const id = toSponsorId(sponsorId);
|
|
2955
|
+
if (id === void 0) return null;
|
|
2956
|
+
const sponsor = findSponsorIn(boot, id);
|
|
2957
|
+
if (!sponsor) return null;
|
|
2958
|
+
const name = nameOf(sponsor.name);
|
|
2959
|
+
const logoUrl = urlOrNull(sponsor.logoUrl);
|
|
2960
|
+
if (!name && !logoUrl) return null;
|
|
2961
|
+
return { id, name, logoUrl, avatarUrl: urlOrNull(sponsor.avatarUrl) };
|
|
2962
|
+
} catch {
|
|
2963
|
+
return null;
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
function checkoutSponsorOf(identity) {
|
|
2967
|
+
if (!identity) return void 0;
|
|
2968
|
+
return { id: identity.id, name: identity.name, logoUrl: identity.logoUrl ?? null };
|
|
2969
|
+
}
|
|
2970
|
+
var inMemory = [];
|
|
2971
|
+
var storageRefusedWrite = false;
|
|
2972
|
+
function sessionStore() {
|
|
2973
|
+
try {
|
|
2974
|
+
const s = globalThis.sessionStorage;
|
|
2975
|
+
return s && typeof s.getItem === "function" && typeof s.setItem === "function" ? s : null;
|
|
2976
|
+
} catch {
|
|
2977
|
+
return null;
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
function normalizeEntry(raw) {
|
|
2981
|
+
if (!raw || typeof raw !== "object") return null;
|
|
2982
|
+
const r = raw;
|
|
2983
|
+
const checkoutId = typeof r.checkoutId === "string" ? r.checkoutId.trim() : "";
|
|
2984
|
+
const sponsorId = toSponsorId(r.sponsorId);
|
|
2985
|
+
if (!checkoutId || sponsorId === void 0) return null;
|
|
2986
|
+
return { checkoutId, sponsorId, name: nameOf(r.name), logoUrl: urlOrNull(r.logoUrl) };
|
|
2987
|
+
}
|
|
2988
|
+
function readEntries() {
|
|
2989
|
+
const store = storageRefusedWrite ? null : sessionStore();
|
|
2990
|
+
if (store) {
|
|
2991
|
+
try {
|
|
2992
|
+
const raw = store.getItem(CHECKOUT_SPONSOR_STORAGE_KEY);
|
|
2993
|
+
if (!raw) return [];
|
|
2994
|
+
const parsed = JSON.parse(raw);
|
|
2995
|
+
if (Array.isArray(parsed)) {
|
|
2996
|
+
return parsed.map(normalizeEntry).filter((e) => e !== null);
|
|
2997
|
+
}
|
|
2998
|
+
} catch {
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
return inMemory.slice();
|
|
3002
|
+
}
|
|
3003
|
+
function writeEntries(entries) {
|
|
3004
|
+
inMemory = entries.slice();
|
|
3005
|
+
const store = sessionStore();
|
|
3006
|
+
if (!store) return;
|
|
3007
|
+
try {
|
|
3008
|
+
store.setItem(CHECKOUT_SPONSOR_STORAGE_KEY, JSON.stringify(entries));
|
|
3009
|
+
} catch {
|
|
3010
|
+
storageRefusedWrite = true;
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
function rememberCheckoutSponsor(checkoutId, sponsor) {
|
|
3014
|
+
try {
|
|
3015
|
+
const id = typeof checkoutId === "string" ? checkoutId.trim() : "";
|
|
3016
|
+
const sponsorId = toSponsorId(sponsor?.sponsorId);
|
|
3017
|
+
if (!id || sponsorId === void 0) return;
|
|
3018
|
+
const entries = readEntries();
|
|
3019
|
+
const previous = entries.find((e) => e.checkoutId === id);
|
|
3020
|
+
let name = nameOf(sponsor.name);
|
|
3021
|
+
let logoUrl = urlOrNull(sponsor.logoUrl);
|
|
3022
|
+
if (previous && previous.sponsorId === sponsorId && !name && !logoUrl) {
|
|
3023
|
+
name = previous.name;
|
|
3024
|
+
logoUrl = previous.logoUrl;
|
|
3025
|
+
}
|
|
3026
|
+
const next = entries.filter((e) => e.checkoutId !== id);
|
|
3027
|
+
next.push({ checkoutId: id, sponsorId, name, logoUrl });
|
|
3028
|
+
writeEntries(next.slice(-CHECKOUT_SPONSOR_MEMORY_MAX));
|
|
3029
|
+
} catch {
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
function rememberedCheckoutSponsor(checkoutId) {
|
|
3033
|
+
try {
|
|
3034
|
+
const id = typeof checkoutId === "string" ? checkoutId.trim() : "";
|
|
3035
|
+
if (!id) return null;
|
|
3036
|
+
return readEntries().find((e) => e.checkoutId === id) ?? null;
|
|
3037
|
+
} catch {
|
|
3038
|
+
return null;
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
function rememberedSponsor(sponsorId) {
|
|
3042
|
+
try {
|
|
3043
|
+
const id = toSponsorId(sponsorId);
|
|
3044
|
+
if (id === void 0) return null;
|
|
3045
|
+
const entries = readEntries();
|
|
3046
|
+
for (let i = entries.length - 1; i >= 0; i--) {
|
|
3047
|
+
const e = entries[i];
|
|
3048
|
+
if (e.sponsorId === id && (e.name || e.logoUrl)) return e;
|
|
3049
|
+
}
|
|
3050
|
+
return null;
|
|
3051
|
+
} catch {
|
|
3052
|
+
return null;
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
|
|
2920
3056
|
// src/core/checkout/payments/apple-pay.ts
|
|
2921
3057
|
var STRIPE_JS_URL = "https://js.stripe.com/v3";
|
|
2922
3058
|
var stripeJsPromise = null;
|
|
@@ -3113,7 +3249,7 @@ async function prepareApplePay(config) {
|
|
|
3113
3249
|
}
|
|
3114
3250
|
|
|
3115
3251
|
// src/core/version.ts
|
|
3116
|
-
var SDK_VERSION = "0.
|
|
3252
|
+
var SDK_VERSION = "0.27.0";
|
|
3117
3253
|
|
|
3118
3254
|
// src/core/checkout/payments/stripe-embedded.ts
|
|
3119
3255
|
var CREATE_PAYMENT_INTENT_STRIPE_MUTATION = `
|
|
@@ -4614,7 +4750,9 @@ var CheckoutManager = class _CheckoutManager extends EventTarget {
|
|
|
4614
4750
|
super();
|
|
4615
4751
|
this.cartManager = cartManager;
|
|
4616
4752
|
this.deps = deps;
|
|
4617
|
-
this.
|
|
4753
|
+
this.currentStateValue = null;
|
|
4754
|
+
/** The last checkout + identity written to the memory — the state is set on every keystroke of the form. */
|
|
4755
|
+
this.lastRememberedSponsor = "";
|
|
4618
4756
|
/** Counts `open()` calls — see CheckoutState.session. */
|
|
4619
4757
|
this.sessionSeq = 0;
|
|
4620
4758
|
this.applePayAvailableCache = null;
|
|
@@ -4658,6 +4796,18 @@ var CheckoutManager = class _CheckoutManager extends EventTarget {
|
|
|
4658
4796
|
this.kustomController = null;
|
|
4659
4797
|
preloadStripeJs();
|
|
4660
4798
|
}
|
|
4799
|
+
/**
|
|
4800
|
+
* Every write of the state goes through here: a state that names its
|
|
4801
|
+
* backend checkout is remembered with its sponsor (see
|
|
4802
|
+
* `rememberSponsorOfCheckout`), whatever path created the checkout.
|
|
4803
|
+
*/
|
|
4804
|
+
get state() {
|
|
4805
|
+
return this.currentStateValue;
|
|
4806
|
+
}
|
|
4807
|
+
set state(next) {
|
|
4808
|
+
this.currentStateValue = next;
|
|
4809
|
+
if (next?.checkoutId && next.sponsorId) this.rememberSponsorOfCheckout(next.checkoutId, next.sponsorId);
|
|
4810
|
+
}
|
|
4661
4811
|
open(sponsorId) {
|
|
4662
4812
|
const cart = this.cartManager.getCart(sponsorId);
|
|
4663
4813
|
if (!cart || cart.items.length === 0) {
|
|
@@ -4776,21 +4926,81 @@ var CheckoutManager = class _CheckoutManager extends EventTarget {
|
|
|
4776
4926
|
* `buyer_id`. Never throws; `null` for whatever the API does not say.
|
|
4777
4927
|
*/
|
|
4778
4928
|
async getOrderReference(checkoutId, sponsorId) {
|
|
4779
|
-
if (!checkoutId) return { orderNumber: null, buyerRef: null };
|
|
4780
|
-
|
|
4781
|
-
if (
|
|
4782
|
-
|
|
4929
|
+
if (!checkoutId) return this.withSponsor({ orderNumber: null, buyerRef: null }, checkoutId, sponsorId);
|
|
4930
|
+
let request = this.referenceInFlight.get(checkoutId);
|
|
4931
|
+
if (!request) {
|
|
4932
|
+
const asked = (async () => {
|
|
4933
|
+
try {
|
|
4934
|
+
const opts = await getCartGraphQLOptions(
|
|
4935
|
+
sponsorId ?? this.sponsorIdOfCheckout(checkoutId) ?? this.state?.sponsorId
|
|
4936
|
+
);
|
|
4937
|
+
return await getCheckoutReference(checkoutId, opts);
|
|
4938
|
+
} catch {
|
|
4939
|
+
return { orderNumber: null, buyerRef: null };
|
|
4940
|
+
} finally {
|
|
4941
|
+
this.referenceInFlight.delete(checkoutId);
|
|
4942
|
+
}
|
|
4943
|
+
})();
|
|
4944
|
+
this.referenceInFlight.set(checkoutId, asked);
|
|
4945
|
+
request = asked;
|
|
4946
|
+
}
|
|
4947
|
+
return this.withSponsor(await request, checkoutId, sponsorId);
|
|
4948
|
+
}
|
|
4949
|
+
/**
|
|
4950
|
+
* The sponsor of a checkout as `getOrderReference` carries it
|
|
4951
|
+
* (`{ id, name, logoUrl }`): the given sponsor, else the one this tab
|
|
4952
|
+
* remembered for the checkout, else the open checkout's when it IS that
|
|
4953
|
+
* checkout — named by the `Vio.sponsorIdentity` rule. `undefined` when
|
|
4954
|
+
* nothing names it; never throws.
|
|
4955
|
+
*/
|
|
4956
|
+
checkoutSponsor(checkoutId, sponsorId) {
|
|
4957
|
+
try {
|
|
4958
|
+
const id = sponsorId ?? this.sponsorIdOfCheckout(checkoutId ?? void 0);
|
|
4959
|
+
const numeric = id === void 0 || id === null || id === "" ? void 0 : Number(id);
|
|
4960
|
+
if (typeof this.deps.sponsorIdentity === "function") {
|
|
4961
|
+
return checkoutSponsorOf(this.deps.sponsorIdentity(numeric, { checkoutId: checkoutId ?? void 0 }));
|
|
4962
|
+
}
|
|
4963
|
+
const memo = rememberedCheckoutSponsor(checkoutId ?? void 0);
|
|
4964
|
+
if (memo && (numeric === void 0 || memo.sponsorId === numeric) && (memo.name || memo.logoUrl)) {
|
|
4965
|
+
return { id: memo.sponsorId, name: memo.name, logoUrl: memo.logoUrl };
|
|
4966
|
+
}
|
|
4967
|
+
return void 0;
|
|
4968
|
+
} catch {
|
|
4969
|
+
return void 0;
|
|
4970
|
+
}
|
|
4971
|
+
}
|
|
4972
|
+
/** The sponsor id of a checkout: this tab's memory of it, else the open checkout's when it is that one. */
|
|
4973
|
+
sponsorIdOfCheckout(checkoutId) {
|
|
4974
|
+
if (!checkoutId) return void 0;
|
|
4975
|
+
const memo = rememberedCheckoutSponsor(checkoutId);
|
|
4976
|
+
if (memo) return memo.sponsorId;
|
|
4977
|
+
return this.state?.checkoutId === checkoutId ? this.state.sponsorId : void 0;
|
|
4978
|
+
}
|
|
4979
|
+
withSponsor(reference, checkoutId, sponsorId) {
|
|
4980
|
+
const sponsor = this.checkoutSponsor(checkoutId || void 0, sponsorId);
|
|
4981
|
+
return sponsor ? { ...reference, sponsor } : reference;
|
|
4982
|
+
}
|
|
4983
|
+
/**
|
|
4984
|
+
* Remember whose checkout this is (`rememberCheckoutSponsor`), with the
|
|
4985
|
+
* sponsor's name and logo as known now — so a confirmation after a redirect
|
|
4986
|
+
* or a reload can name the brand. Written again only when something changed.
|
|
4987
|
+
*/
|
|
4988
|
+
rememberSponsorOfCheckout(checkoutId, sponsorId) {
|
|
4989
|
+
try {
|
|
4990
|
+
let identity = null;
|
|
4783
4991
|
try {
|
|
4784
|
-
|
|
4785
|
-
return await getCheckoutReference(checkoutId, opts);
|
|
4992
|
+
identity = this.deps.sponsorIdentity?.(sponsorId, { checkoutId }) ?? null;
|
|
4786
4993
|
} catch {
|
|
4787
|
-
|
|
4788
|
-
}
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4994
|
+
identity = null;
|
|
4995
|
+
}
|
|
4996
|
+
const name = identity?.name || this.cartManager.getCart(sponsorId)?.sponsorName || "";
|
|
4997
|
+
const logoUrl = identity?.logoUrl ?? null;
|
|
4998
|
+
const key = JSON.stringify([checkoutId, sponsorId, name, logoUrl]);
|
|
4999
|
+
if (key === this.lastRememberedSponsor) return;
|
|
5000
|
+
this.lastRememberedSponsor = key;
|
|
5001
|
+
rememberCheckoutSponsor(checkoutId, { sponsorId, name, logoUrl });
|
|
5002
|
+
} catch {
|
|
5003
|
+
}
|
|
4794
5004
|
}
|
|
4795
5005
|
/**
|
|
4796
5006
|
* Payment methods enabled for the sponsor (backend-configured). Memoised per
|
|
@@ -7744,7 +7954,8 @@ var VioFacade = class {
|
|
|
7744
7954
|
get checkout() {
|
|
7745
7955
|
if (!this.checkoutManager) {
|
|
7746
7956
|
this.checkoutManager = new CheckoutManager(this.cart, {
|
|
7747
|
-
orderAttribution: (sponsorId) => this.orderAttribution(sponsorId)
|
|
7957
|
+
orderAttribution: (sponsorId) => this.orderAttribution(sponsorId),
|
|
7958
|
+
sponsorIdentity: (sponsorId, opts) => this.sponsorIdentity(sponsorId, opts)
|
|
7748
7959
|
});
|
|
7749
7960
|
}
|
|
7750
7961
|
return this.checkoutManager;
|
|
@@ -7805,6 +8016,39 @@ var VioFacade = class {
|
|
|
7805
8016
|
get bootstrapCache() {
|
|
7806
8017
|
return this.cachedBootstrap;
|
|
7807
8018
|
}
|
|
8019
|
+
/**
|
|
8020
|
+
* Who a sponsor is to a shopper — `{ id, name, logoUrl, avatarUrl }` — by
|
|
8021
|
+
* the ONE rule every element uses (`sponsorIdentityFrom`): the live
|
|
8022
|
+
* bootstrap's sponsor blocks (the config's primary and secondaries, then
|
|
8023
|
+
* every `campaigns[]` primary and secondaries, first match); when the
|
|
8024
|
+
* bootstrap does not know the id (not loaded yet, a redirect return), what
|
|
8025
|
+
* this tab remembered of the checkout (`opts.checkoutId`, else the latest
|
|
8026
|
+
* checkout of that sponsor), then the cart's `sponsorName`. With only
|
|
8027
|
+
* `opts.checkoutId`, the sponsor is the one remembered for that checkout.
|
|
8028
|
+
* In a checkout pass the CHECKOUT's sponsor — never the page's
|
|
8029
|
+
* attribution. URLs as given; an empty logo is `null`. `null` when nothing
|
|
8030
|
+
* names it. Pure over local state, never throws.
|
|
8031
|
+
*/
|
|
8032
|
+
sponsorIdentity(sponsorId, opts = {}) {
|
|
8033
|
+
try {
|
|
8034
|
+
let memo;
|
|
8035
|
+
const memoOfCheckout = () => memo === void 0 ? memo = rememberedCheckoutSponsor(opts?.checkoutId ?? void 0) : memo;
|
|
8036
|
+
const id = toSponsorId(sponsorId) ?? memoOfCheckout()?.sponsorId;
|
|
8037
|
+
if (id === void 0) return null;
|
|
8038
|
+
const fromBootstrap = sponsorIdentityFrom(this.cachedBootstrap, id);
|
|
8039
|
+
if (fromBootstrap) return fromBootstrap;
|
|
8040
|
+
const ofCheckout = memoOfCheckout();
|
|
8041
|
+
const remembered = (ofCheckout && ofCheckout.sponsorId === id && (ofCheckout.name || ofCheckout.logoUrl) ? ofCheckout : null) ?? rememberedSponsor(id);
|
|
8042
|
+
if (remembered) {
|
|
8043
|
+
return { id, name: remembered.name, logoUrl: remembered.logoUrl, avatarUrl: null };
|
|
8044
|
+
}
|
|
8045
|
+
const cartName = this.cart.getCart(id)?.sponsorName;
|
|
8046
|
+
const name = typeof cartName === "string" ? cartName.trim() : "";
|
|
8047
|
+
return name ? { id, name, logoUrl: null, avatarUrl: null } : null;
|
|
8048
|
+
} catch {
|
|
8049
|
+
return null;
|
|
8050
|
+
}
|
|
8051
|
+
}
|
|
7808
8052
|
/**
|
|
7809
8053
|
* Get a CommerceClient scoped to a specific sponsor (via bootstrap).
|
|
7810
8054
|
* Throws if bootstrap hasn't been called or the sponsor is unknown.
|
|
@@ -8284,20 +8528,7 @@ var VioFacade = class {
|
|
|
8284
8528
|
}, SLOT_DECLARATION_DEBOUNCE_MS);
|
|
8285
8529
|
}
|
|
8286
8530
|
findSponsor(sponsorId) {
|
|
8287
|
-
|
|
8288
|
-
if (!boot) return void 0;
|
|
8289
|
-
const id = Number(sponsorId);
|
|
8290
|
-
if (Number(boot.primarySponsor?.id) === id) return boot.primarySponsor;
|
|
8291
|
-
const secondary = boot.secondarySponsors?.find((s) => Number(s.id) === id);
|
|
8292
|
-
if (secondary) return secondary;
|
|
8293
|
-
const campaigns = Array.isArray(boot.campaigns) ? boot.campaigns : [];
|
|
8294
|
-
for (const c of campaigns) {
|
|
8295
|
-
if (!c || typeof c !== "object") continue;
|
|
8296
|
-
if (Number(c.primarySponsor?.id) === id) return c.primarySponsor ?? void 0;
|
|
8297
|
-
const s = Array.isArray(c.secondarySponsors) ? c.secondarySponsors.find((x) => Number(x?.id) === id) : void 0;
|
|
8298
|
-
if (s) return s;
|
|
8299
|
-
}
|
|
8300
|
-
return void 0;
|
|
8531
|
+
return findSponsorIn(this.cachedBootstrap, sponsorId);
|
|
8301
8532
|
}
|
|
8302
8533
|
};
|
|
8303
8534
|
function warn(...args) {
|
|
@@ -8358,6 +8589,6 @@ function vippsButtonAttributes(verb = "buy", opts = {}) {
|
|
|
8358
8589
|
};
|
|
8359
8590
|
}
|
|
8360
8591
|
|
|
8361
|
-
export { ADD_ITEM_MUTATION, ADYEN_RETURN_METHOD, ADYEN_RETURN_QUERY_KEYS, AdyenOriginError, AnalyticsManager, BUYER_REF_MAX_LENGTH, CHECKOUT_ATTRIBUTION_CAPS, CLIENT_LANDING_URL_MAX_LENGTH, CONTENT_URL_MAX_LENGTH, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_CHECKOUT_WITH_ATTRIBUTION_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, GRAPHQL_INT_MAX, KUSTOM_RETURN_QUERY_KEYS, LINE_ORIGIN_CAPS, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_CHECKOUT_WITH_ATTRIBUTION_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_ITEM_WITH_ORIGIN_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, __decorateClass, activeCampaignEntry, addItem, adyenReturnOutcome, adyenReturnParams, autoSlotDisplayName, autoSlotId, buyerRefOf, campaignCandidates, capContentUrl, cartSlicesFrom, checkApplePayAvailability, checkoutAttributionOf, componentKindOf, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, dominantCampaignOf, ensureVippsButton, entryContextOf, executeCartGraphQL, formatPrice, gatewayHas, gatewayHasBuyerRef, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCheckoutReference, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, isUnknownFeatureError, isUnknownTokenError, kustomReturnOutcome, landingUrl, lineOriginWire, lineOrigins, nexiReturnPaymentId, normalizeBuyerRef, normalizeOrigin, normalizeScope, normalizeSlotId, normalizeSlotKind, originAndPath, primaryImageUrl, purchaseFromPaymentSuccess, readNexiPending, resetGatewayFeatures, resolveCampaignId, resolveClientContext, resolveContent, resolveLanding, resolveSlotCampaign, sameOrigin, showApplePaySheet, sponsorCampaignEntry, storedLanding, toCampaignId, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes, withGatewayFeature };
|
|
8362
|
-
//# sourceMappingURL=chunk-
|
|
8363
|
-
//# sourceMappingURL=chunk-
|
|
8592
|
+
export { ADD_ITEM_MUTATION, ADYEN_RETURN_METHOD, ADYEN_RETURN_QUERY_KEYS, AdyenOriginError, AnalyticsManager, BUYER_REF_MAX_LENGTH, CHECKOUT_ATTRIBUTION_CAPS, CHECKOUT_SPONSOR_STORAGE_KEY, CLIENT_LANDING_URL_MAX_LENGTH, CONTENT_URL_MAX_LENGTH, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_CHECKOUT_WITH_ATTRIBUTION_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, GRAPHQL_INT_MAX, KUSTOM_RETURN_QUERY_KEYS, LINE_ORIGIN_CAPS, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_CHECKOUT_WITH_ATTRIBUTION_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_ITEM_WITH_ORIGIN_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, __decorateClass, activeCampaignEntry, addItem, adyenReturnOutcome, adyenReturnParams, autoSlotDisplayName, autoSlotId, buyerRefOf, campaignCandidates, capContentUrl, cartSlicesFrom, checkApplePayAvailability, checkoutAttributionOf, checkoutSponsorOf, componentKindOf, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, dominantCampaignOf, ensureVippsButton, entryContextOf, executeCartGraphQL, formatPrice, gatewayHas, gatewayHasBuyerRef, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCheckoutReference, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, isUnknownFeatureError, isUnknownTokenError, kustomReturnOutcome, landingUrl, lineOriginWire, lineOrigins, nexiReturnPaymentId, normalizeBuyerRef, normalizeOrigin, normalizeScope, normalizeSlotId, normalizeSlotKind, originAndPath, primaryImageUrl, purchaseFromPaymentSuccess, readNexiPending, rememberedCheckoutSponsor, resetGatewayFeatures, resolveCampaignId, resolveClientContext, resolveContent, resolveLanding, resolveSlotCampaign, sameOrigin, showApplePaySheet, sponsorCampaignEntry, sponsorIdentityFrom, storedLanding, toCampaignId, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes, withGatewayFeature };
|
|
8593
|
+
//# sourceMappingURL=chunk-HJRIPCWB.js.map
|
|
8594
|
+
//# sourceMappingURL=chunk-HJRIPCWB.js.map
|