@netceterapx/click-to-pay-sdk 2.2.0 → 2.3.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/build/click-to-pay-sdk.es.js +106 -357
- package/build/click-to-pay-sdk.js +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1209,7 +1209,7 @@ function create_if_block_1$9(ctx) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
|
-
function create_if_block$
|
|
1212
|
+
function create_if_block$d(ctx) {
|
|
1213
1213
|
let g;
|
|
1214
1214
|
let path;
|
|
1215
1215
|
let defs;
|
|
@@ -1282,7 +1282,7 @@ function create_fragment$t(ctx) {
|
|
|
1282
1282
|
/*icon*/
|
|
1283
1283
|
ctx2[0] === "close"
|
|
1284
1284
|
)
|
|
1285
|
-
return create_if_block$
|
|
1285
|
+
return create_if_block$d;
|
|
1286
1286
|
if (
|
|
1287
1287
|
/*icon*/
|
|
1288
1288
|
ctx2[0] === "checkmark"
|
|
@@ -1515,7 +1515,7 @@ class Spinner extends SvelteComponent {
|
|
|
1515
1515
|
function add_css$o(target) {
|
|
1516
1516
|
append_styles(target, "svelte-6vt1r2", "button.svelte-6vt1r2{display:flex;align-items:center;justify-content:center;width:100%;height:var(--button-size-height);border-radius:var(--button-size-radius-all);border:0;padding:var(--button-size-padding-y) var(--button-size-padding-x);line-height:var(--button-line-height);cursor:pointer;text-transform:uppercase}button.svelte-6vt1r2:disabled{cursor:default}button.btn-filled.svelte-6vt1r2{background:var(--button-color-filled-bg-default);color:var(--button-color-filled-text-default)}button.btn-filled.svelte-6vt1r2:not([disabled]):hover,button.btn-filled.svelte-6vt1r2:not([disabled]):active,button.btn-filled.svelte-6vt1r2:not([disabled]):focus{background:var(--button-color-filled-bg-hover)}button.svelte-6vt1r2:not([disabled]):focus{outline:2px solid var(--color-focus)}button.btn-filled.svelte-6vt1r2:disabled{background-color:var(--button-color-filled-bg-disabled)}button.btn-outlined.svelte-6vt1r2{background:var(--button-color-outlined-bg-default);color:var(--button-color-outlined-text-default);border:1px solid var(--button-color-outlined-border-default)}button:disabled.btn-outlined.svelte-6vt1r2{border-color:var(--button-color-outlined-border-disabled);color:var(--button-color-outlined-text-disabled)}button:hover:not(:disabled).btn-outlined.svelte-6vt1r2{background-color:var(--button-color-outlined-bg-hover)}");
|
|
1517
1517
|
}
|
|
1518
|
-
function create_else_block$
|
|
1518
|
+
function create_else_block$1(ctx) {
|
|
1519
1519
|
let t2;
|
|
1520
1520
|
let current;
|
|
1521
1521
|
let if_block = (
|
|
@@ -1620,7 +1620,7 @@ function create_else_block$2(ctx) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
|
-
function create_if_block$
|
|
1623
|
+
function create_if_block$c(ctx) {
|
|
1624
1624
|
let spinner;
|
|
1625
1625
|
let current;
|
|
1626
1626
|
spinner = new Spinner({
|
|
@@ -1719,7 +1719,7 @@ function create_fragment$r(ctx) {
|
|
|
1719
1719
|
let current;
|
|
1720
1720
|
let mounted;
|
|
1721
1721
|
let dispose;
|
|
1722
|
-
const if_block_creators = [create_if_block$
|
|
1722
|
+
const if_block_creators = [create_if_block$c, create_else_block$1];
|
|
1723
1723
|
const if_blocks = [];
|
|
1724
1724
|
function select_block_type(ctx2, dirty) {
|
|
1725
1725
|
if (
|
|
@@ -3470,39 +3470,6 @@ const dictionary = {
|
|
|
3470
3470
|
[LANG.sv_FI]: "Vi lägger nu till ditt kort i Click to Pay...",
|
|
3471
3471
|
[LANG.ja_JP]: "...Click To Payにお客様のカードを追加しています",
|
|
3472
3472
|
[LANG.vi_VN]: "Chúng tôi hiện đang thêm thẻ của bạn vào Click to Pay..."
|
|
3473
|
-
},
|
|
3474
|
-
weWillSendYouAConfirmationEmail: {
|
|
3475
|
-
[LANG.en_US]: "(we'll send you a confirmation email)",
|
|
3476
|
-
[LANG.en_GB]: "(we’ll send you a confirmation email)",
|
|
3477
|
-
[LANG.de_DE]: "(wir senden Ihnen eine Bestätigungs-E-Mail)",
|
|
3478
|
-
[LANG.cs_CZ]: "(zašleme vám potvrzovací e-mail)",
|
|
3479
|
-
[LANG.sk_SK]: "(pošleme vám potvrdzujúci e-mail)",
|
|
3480
|
-
[LANG.ru_RU]: "(mы отправим вам подтверждение по электронной почте)",
|
|
3481
|
-
[LANG.pl_PL]: "(wyślemy Ci wiadomość e-mail z potwierdzeniem)",
|
|
3482
|
-
[LANG.hu_HU]: "(visszaigazoló e-mailt küldünk Önnek)",
|
|
3483
|
-
[LANG.ro_RO]: "(vă vom trimite un email de confirmare)",
|
|
3484
|
-
[LANG.ar_AE]: "(سنُرسل لك رسالة تأكيد عبر البريد الإلكتروني)",
|
|
3485
|
-
[LANG.ar_SA]: "(سنُرسل لك رسالة تأكيد عبر البريد الإلكتروني)",
|
|
3486
|
-
[LANG.uk_UA]: "(вам буде надіслано електронний лист із підтвердженням)",
|
|
3487
|
-
[LANG.bg_BG]: "(ще ви изпратим имейл с потвърждение)",
|
|
3488
|
-
[LANG.da_DA]: "(vi sender dig en bekræftelses-e-mail)",
|
|
3489
|
-
[LANG.de_AT]: "(wir senden Ihnen eine Bestätigungs-E-Mail)",
|
|
3490
|
-
[LANG.el_GR]: "(Θα σας στείλουμε ένα email επιβεβαίωσης)",
|
|
3491
|
-
[LANG.es_ES]: "(te enviaremos un correo electrónico de confirmación)",
|
|
3492
|
-
[LANG.fi_FI]: "(lähetämme sinulle vahvistussähköpostin)",
|
|
3493
|
-
[LANG.fr_FR]: "(nous vous enverrons un e-mail de confirmation)",
|
|
3494
|
-
[LANG.hr_HR]: "(poslat ćemo vam e-poštu s potvrdom)",
|
|
3495
|
-
[LANG.it_IT]: "(ti invieremo un’e-mail di conferma)",
|
|
3496
|
-
[LANG.lv_LV]: "(mēs jums nosūtīsim apstiprinājuma e-pastu)",
|
|
3497
|
-
[LANG.nl_NL]: "(we sturen u een bevestigingsmail)",
|
|
3498
|
-
[LANG.nl_BE]: "(we sturen u een bevestigingsmail)",
|
|
3499
|
-
[LANG.no_NO]: "(vi sender deg en bekreftelse på e-post)",
|
|
3500
|
-
[LANG.pt_PT]: "(enviar-lhe-emos um e-mail de confirmação)",
|
|
3501
|
-
[LANG.sl_SL]: "(poslali vam bomo potrditveno e-poštno sporočilo)",
|
|
3502
|
-
[LANG.sv_SE]: "(vi skickar en bekräftelse via e-post)",
|
|
3503
|
-
[LANG.sv_FI]: "(vi skickar en bekräftelse via e-post)",
|
|
3504
|
-
[LANG.ja_JP]: "(確認Eメールを送信します)",
|
|
3505
|
-
[LANG.vi_VN]: "(Chúng tôi sẽ gửi cho bạn một email xác nhận)"
|
|
3506
3473
|
}
|
|
3507
3474
|
},
|
|
3508
3475
|
logInScreen: {
|
|
@@ -4484,7 +4451,7 @@ function create_if_block_1$7(ctx) {
|
|
|
4484
4451
|
}
|
|
4485
4452
|
};
|
|
4486
4453
|
}
|
|
4487
|
-
function create_if_block$
|
|
4454
|
+
function create_if_block$b(ctx) {
|
|
4488
4455
|
let badge;
|
|
4489
4456
|
let current;
|
|
4490
4457
|
badge = new Badge({
|
|
@@ -4555,7 +4522,7 @@ function create_fragment$o(ctx) {
|
|
|
4555
4522
|
ctx[8] && create_if_block_1$7(ctx)
|
|
4556
4523
|
);
|
|
4557
4524
|
let if_block2 = !/*isSelectable*/
|
|
4558
|
-
ctx[7] && create_if_block$
|
|
4525
|
+
ctx[7] && create_if_block$b(ctx);
|
|
4559
4526
|
return {
|
|
4560
4527
|
c() {
|
|
4561
4528
|
div1 = element("div");
|
|
@@ -4701,7 +4668,7 @@ function create_fragment$o(ctx) {
|
|
|
4701
4668
|
transition_in(if_block2, 1);
|
|
4702
4669
|
}
|
|
4703
4670
|
} else {
|
|
4704
|
-
if_block2 = create_if_block$
|
|
4671
|
+
if_block2 = create_if_block$b(ctx2);
|
|
4705
4672
|
if_block2.c();
|
|
4706
4673
|
transition_in(if_block2, 1);
|
|
4707
4674
|
if_block2.m(div0, null);
|
|
@@ -4942,7 +4909,7 @@ const isErrorForIdFormatUnsupported = (reason) => {
|
|
|
4942
4909
|
function add_css$k(target) {
|
|
4943
4910
|
append_styles(target, "svelte-14mwdt0", ".message.svelte-14mwdt0.svelte-14mwdt0{display:flex;gap:4px;align-items:center;animation-name:svelte-14mwdt0-fadeInOpacity;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:200ms}@keyframes svelte-14mwdt0-fadeInOpacity{0%{opacity:0}100%{opacity:1}}.message.svelte-14mwdt0 p.svelte-14mwdt0{color:var(--color-status-error)}");
|
|
4944
4911
|
}
|
|
4945
|
-
function create_if_block$
|
|
4912
|
+
function create_if_block$a(ctx) {
|
|
4946
4913
|
let div;
|
|
4947
4914
|
let icon;
|
|
4948
4915
|
let t0;
|
|
@@ -5015,7 +4982,7 @@ function create_fragment$n(ctx) {
|
|
|
5015
4982
|
let current;
|
|
5016
4983
|
let if_block = (
|
|
5017
4984
|
/*translationBag*/
|
|
5018
|
-
ctx[0] && create_if_block$
|
|
4985
|
+
ctx[0] && create_if_block$a(ctx)
|
|
5019
4986
|
);
|
|
5020
4987
|
return {
|
|
5021
4988
|
c() {
|
|
@@ -5041,7 +5008,7 @@ function create_fragment$n(ctx) {
|
|
|
5041
5008
|
transition_in(if_block, 1);
|
|
5042
5009
|
}
|
|
5043
5010
|
} else {
|
|
5044
|
-
if_block = create_if_block$
|
|
5011
|
+
if_block = create_if_block$a(ctx2);
|
|
5045
5012
|
if_block.c();
|
|
5046
5013
|
transition_in(if_block, 1);
|
|
5047
5014
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -5112,7 +5079,7 @@ class ErrorMessage extends SvelteComponent {
|
|
|
5112
5079
|
function add_css$j(target) {
|
|
5113
5080
|
append_styles(target, "svelte-cy9eb2", ".message.svelte-cy9eb2.svelte-cy9eb2{display:flex;gap:4px;align-items:center;transition:opacity 100ms;animation-name:svelte-cy9eb2-fadeInOpacity;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:200ms}@keyframes svelte-cy9eb2-fadeInOpacity{0%{opacity:0}100%{opacity:1}}.message.svelte-cy9eb2 .info.svelte-cy9eb2{color:var(--color-status-info)}.message.svelte-cy9eb2 .success.svelte-cy9eb2{color:var(--color-status-success)}");
|
|
5114
5081
|
}
|
|
5115
|
-
function create_if_block$
|
|
5082
|
+
function create_if_block$9(ctx) {
|
|
5116
5083
|
let div;
|
|
5117
5084
|
let t0;
|
|
5118
5085
|
let p;
|
|
@@ -5257,7 +5224,7 @@ function create_fragment$m(ctx) {
|
|
|
5257
5224
|
let current;
|
|
5258
5225
|
let if_block = (
|
|
5259
5226
|
/*infoMessage*/
|
|
5260
|
-
ctx[0] && create_if_block$
|
|
5227
|
+
ctx[0] && create_if_block$9(ctx)
|
|
5261
5228
|
);
|
|
5262
5229
|
return {
|
|
5263
5230
|
c() {
|
|
@@ -5283,7 +5250,7 @@ function create_fragment$m(ctx) {
|
|
|
5283
5250
|
transition_in(if_block, 1);
|
|
5284
5251
|
}
|
|
5285
5252
|
} else {
|
|
5286
|
-
if_block = create_if_block$
|
|
5253
|
+
if_block = create_if_block$9(ctx2);
|
|
5287
5254
|
if_block.c();
|
|
5288
5255
|
transition_in(if_block, 1);
|
|
5289
5256
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -9514,7 +9481,7 @@ function create_default_slot_1$5(ctx) {
|
|
|
9514
9481
|
}
|
|
9515
9482
|
};
|
|
9516
9483
|
}
|
|
9517
|
-
function create_if_block$
|
|
9484
|
+
function create_if_block$8(ctx) {
|
|
9518
9485
|
let button;
|
|
9519
9486
|
let current;
|
|
9520
9487
|
button = new Button({
|
|
@@ -9681,7 +9648,7 @@ function create_fragment$k(ctx) {
|
|
|
9681
9648
|
}
|
|
9682
9649
|
let if_block4 = (
|
|
9683
9650
|
/*hidePayButton*/
|
|
9684
|
-
ctx[3] !== HidePayButton.TRUE && create_if_block$
|
|
9651
|
+
ctx[3] !== HidePayButton.TRUE && create_if_block$8(ctx)
|
|
9685
9652
|
);
|
|
9686
9653
|
return {
|
|
9687
9654
|
c() {
|
|
@@ -9835,7 +9802,7 @@ function create_fragment$k(ctx) {
|
|
|
9835
9802
|
transition_in(if_block4, 1);
|
|
9836
9803
|
}
|
|
9837
9804
|
} else {
|
|
9838
|
-
if_block4 = create_if_block$
|
|
9805
|
+
if_block4 = create_if_block$8(ctx2);
|
|
9839
9806
|
if_block4.c();
|
|
9840
9807
|
transition_in(if_block4, 1);
|
|
9841
9808
|
if_block4.m(if_block4_anchor.parentNode, if_block4_anchor);
|
|
@@ -9926,7 +9893,6 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
9926
9893
|
if (!isCreditCardExpired(selectedCard.maskedCard.panExpirationYear, selectedCard.maskedCard.panExpirationMonth)) {
|
|
9927
9894
|
handleComponentEvent(UserActionType.SELECT, "card");
|
|
9928
9895
|
$$invalidate(0, selectedCreditCard = selectedCard);
|
|
9929
|
-
dispatchCardSelectionEvent();
|
|
9930
9896
|
}
|
|
9931
9897
|
};
|
|
9932
9898
|
const dispatchCardSelectionEvent = () => {
|
|
@@ -9967,6 +9933,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
9967
9933
|
if (selectedCreditCard) {
|
|
9968
9934
|
$$invalidate(1, infoMessage = void 0);
|
|
9969
9935
|
selectCardScreenStore.storeSelectedCreditCard(selectedCreditCard);
|
|
9936
|
+
dispatchCardSelectionEvent();
|
|
9970
9937
|
}
|
|
9971
9938
|
}
|
|
9972
9939
|
if ($$self.$$.dirty & /*$merchantConfigStore*/
|
|
@@ -12158,7 +12125,7 @@ function create_if_block_1$4(ctx) {
|
|
|
12158
12125
|
}
|
|
12159
12126
|
};
|
|
12160
12127
|
}
|
|
12161
|
-
function create_if_block$
|
|
12128
|
+
function create_if_block$7(ctx) {
|
|
12162
12129
|
let linkbutton;
|
|
12163
12130
|
let current;
|
|
12164
12131
|
linkbutton = new LinkButton({
|
|
@@ -12259,7 +12226,7 @@ function create_fragment$f(ctx) {
|
|
|
12259
12226
|
);
|
|
12260
12227
|
let if_block2 = (
|
|
12261
12228
|
/*supportEmail*/
|
|
12262
|
-
ctx[1] && create_if_block$
|
|
12229
|
+
ctx[1] && create_if_block$7(ctx)
|
|
12263
12230
|
);
|
|
12264
12231
|
return {
|
|
12265
12232
|
c() {
|
|
@@ -12344,7 +12311,7 @@ function create_fragment$f(ctx) {
|
|
|
12344
12311
|
transition_in(if_block2, 1);
|
|
12345
12312
|
}
|
|
12346
12313
|
} else {
|
|
12347
|
-
if_block2 = create_if_block$
|
|
12314
|
+
if_block2 = create_if_block$7(ctx2);
|
|
12348
12315
|
if_block2.c();
|
|
12349
12316
|
transition_in(if_block2, 1);
|
|
12350
12317
|
if_block2.m(div, null);
|
|
@@ -12694,7 +12661,7 @@ function create_if_block_3(ctx) {
|
|
|
12694
12661
|
}
|
|
12695
12662
|
};
|
|
12696
12663
|
}
|
|
12697
|
-
function create_else_block
|
|
12664
|
+
function create_else_block(ctx) {
|
|
12698
12665
|
let linkbutton;
|
|
12699
12666
|
let current;
|
|
12700
12667
|
function click_handler() {
|
|
@@ -12898,7 +12865,7 @@ function create_if_block_1$3(ctx) {
|
|
|
12898
12865
|
}
|
|
12899
12866
|
};
|
|
12900
12867
|
}
|
|
12901
|
-
function create_if_block$
|
|
12868
|
+
function create_if_block$6(ctx) {
|
|
12902
12869
|
let infomessage;
|
|
12903
12870
|
let current;
|
|
12904
12871
|
infomessage = new InfoMessage({
|
|
@@ -13057,7 +13024,7 @@ function create_default_slot$5(ctx) {
|
|
|
13057
13024
|
/*errorBag*/
|
|
13058
13025
|
ctx[2] && create_if_block_3(ctx)
|
|
13059
13026
|
);
|
|
13060
|
-
const if_block_creators = [create_if_block_2$1, create_else_block
|
|
13027
|
+
const if_block_creators = [create_if_block_2$1, create_else_block];
|
|
13061
13028
|
const if_blocks = [];
|
|
13062
13029
|
function select_block_type_1(ctx2, dirty) {
|
|
13063
13030
|
if (
|
|
@@ -13075,7 +13042,7 @@ function create_default_slot$5(ctx) {
|
|
|
13075
13042
|
);
|
|
13076
13043
|
let if_block3 = (
|
|
13077
13044
|
/*infoMessage*/
|
|
13078
|
-
ctx[3] && create_if_block$
|
|
13045
|
+
ctx[3] && create_if_block$6(ctx)
|
|
13079
13046
|
);
|
|
13080
13047
|
field = new Field({
|
|
13081
13048
|
props: {
|
|
@@ -13249,7 +13216,7 @@ function create_default_slot$5(ctx) {
|
|
|
13249
13216
|
transition_in(if_block3, 1);
|
|
13250
13217
|
}
|
|
13251
13218
|
} else {
|
|
13252
|
-
if_block3 = create_if_block$
|
|
13219
|
+
if_block3 = create_if_block$6(ctx);
|
|
13253
13220
|
if_block3.c();
|
|
13254
13221
|
transition_in(if_block3, 1);
|
|
13255
13222
|
if_block3.m(div0, null);
|
|
@@ -13763,7 +13730,7 @@ const getUserFriendlyErrorMessage = (errorReason) => {
|
|
|
13763
13730
|
function add_css$a(target) {
|
|
13764
13731
|
append_styles(target, "svelte-1ti5k70", ".container.svelte-1ti5k70{display:flex;flex-direction:column;gap:var(--size-gap-xxl)}.text-wrapper.svelte-1ti5k70{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--size-gap-xl)}.form-wrapper.svelte-1ti5k70{display:flex;flex-direction:column;align-items:center;gap:var(--size-gap-xl)}");
|
|
13765
13732
|
}
|
|
13766
|
-
function create_if_block$
|
|
13733
|
+
function create_if_block$5(ctx) {
|
|
13767
13734
|
let p;
|
|
13768
13735
|
let t_1_value = (
|
|
13769
13736
|
/*$t*/
|
|
@@ -13901,7 +13868,7 @@ function create_fragment$b(ctx) {
|
|
|
13901
13868
|
});
|
|
13902
13869
|
let if_block = (
|
|
13903
13870
|
/*userFriendlyErrorMessage*/
|
|
13904
|
-
ctx[1] && create_if_block$
|
|
13871
|
+
ctx[1] && create_if_block$5(ctx)
|
|
13905
13872
|
);
|
|
13906
13873
|
button0 = new Button({
|
|
13907
13874
|
props: {
|
|
@@ -14066,7 +14033,7 @@ class LockedAccountScreen extends SvelteComponent {
|
|
|
14066
14033
|
function add_css$9(target) {
|
|
14067
14034
|
append_styles(target, "svelte-1ti5k70", ".container.svelte-1ti5k70{display:flex;flex-direction:column;gap:var(--size-gap-xxl)}.text-wrapper.svelte-1ti5k70{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--size-gap-xl)}.form-wrapper.svelte-1ti5k70{display:flex;flex-direction:column;align-items:center;gap:var(--size-gap-xl)}");
|
|
14068
14035
|
}
|
|
14069
|
-
function create_if_block$
|
|
14036
|
+
function create_if_block$4(ctx) {
|
|
14070
14037
|
let div;
|
|
14071
14038
|
let button;
|
|
14072
14039
|
let t_1;
|
|
@@ -14218,7 +14185,7 @@ function create_fragment$a(ctx) {
|
|
|
14218
14185
|
}
|
|
14219
14186
|
});
|
|
14220
14187
|
let if_block = !/*rootFailure*/
|
|
14221
|
-
ctx[0] && create_if_block$
|
|
14188
|
+
ctx[0] && create_if_block$4(ctx);
|
|
14222
14189
|
return {
|
|
14223
14190
|
c() {
|
|
14224
14191
|
div1 = element("div");
|
|
@@ -14269,7 +14236,7 @@ function create_fragment$a(ctx) {
|
|
|
14269
14236
|
transition_in(if_block, 1);
|
|
14270
14237
|
}
|
|
14271
14238
|
} else {
|
|
14272
|
-
if_block = create_if_block$
|
|
14239
|
+
if_block = create_if_block$4(ctx2);
|
|
14273
14240
|
if_block.c();
|
|
14274
14241
|
transition_in(if_block, 1);
|
|
14275
14242
|
if_block.m(div1, null);
|
|
@@ -14333,47 +14300,12 @@ const cardStackLoader = "data:image/gif;base64,R0lGODlhyADIANU/AG1tbYGBgXl5eUxMT
|
|
|
14333
14300
|
function add_css$8(target) {
|
|
14334
14301
|
append_styles(target, "svelte-1n4x7kp", ".loader-container.svelte-1n4x7kp{display:flex;flex-direction:column;align-items:center;gap:var(--size-gap-xl)}.loading-message.svelte-1n4x7kp{max-width:34ch;text-align:center;line-height:1.4}");
|
|
14335
14302
|
}
|
|
14336
|
-
function create_if_block$5(ctx) {
|
|
14337
|
-
let p;
|
|
14338
|
-
let t_1_value = (
|
|
14339
|
-
/*$t*/
|
|
14340
|
-
ctx[2](
|
|
14341
|
-
/*secondaryLoadingMessageKey*/
|
|
14342
|
-
ctx[1]
|
|
14343
|
-
) + ""
|
|
14344
|
-
);
|
|
14345
|
-
let t_1;
|
|
14346
|
-
return {
|
|
14347
|
-
c() {
|
|
14348
|
-
p = element("p");
|
|
14349
|
-
t_1 = text(t_1_value);
|
|
14350
|
-
attr(p, "class", "loading-message svelte-1n4x7kp");
|
|
14351
|
-
},
|
|
14352
|
-
m(target, anchor) {
|
|
14353
|
-
insert(target, p, anchor);
|
|
14354
|
-
append(p, t_1);
|
|
14355
|
-
},
|
|
14356
|
-
p(ctx2, dirty) {
|
|
14357
|
-
if (dirty & /*$t, secondaryLoadingMessageKey*/
|
|
14358
|
-
6 && t_1_value !== (t_1_value = /*$t*/
|
|
14359
|
-
ctx2[2](
|
|
14360
|
-
/*secondaryLoadingMessageKey*/
|
|
14361
|
-
ctx2[1]
|
|
14362
|
-
) + ""))
|
|
14363
|
-
set_data(t_1, t_1_value);
|
|
14364
|
-
},
|
|
14365
|
-
d(detaching) {
|
|
14366
|
-
if (detaching)
|
|
14367
|
-
detach(p);
|
|
14368
|
-
}
|
|
14369
|
-
};
|
|
14370
|
-
}
|
|
14371
14303
|
function create_fragment$9(ctx) {
|
|
14372
14304
|
let div;
|
|
14373
14305
|
let p;
|
|
14374
14306
|
let t0_value = (
|
|
14375
14307
|
/*$t*/
|
|
14376
|
-
ctx[
|
|
14308
|
+
ctx[1](
|
|
14377
14309
|
/*loadingMessageKey*/
|
|
14378
14310
|
ctx[0]
|
|
14379
14311
|
) + ""
|
|
@@ -14383,11 +14315,6 @@ function create_fragment$9(ctx) {
|
|
|
14383
14315
|
let img;
|
|
14384
14316
|
let img_src_value;
|
|
14385
14317
|
let img_alt_value;
|
|
14386
|
-
let t2;
|
|
14387
|
-
let if_block = (
|
|
14388
|
-
/*secondaryLoadingMessageKey*/
|
|
14389
|
-
ctx[1] && create_if_block$5(ctx)
|
|
14390
|
-
);
|
|
14391
14318
|
return {
|
|
14392
14319
|
c() {
|
|
14393
14320
|
div = element("div");
|
|
@@ -14395,14 +14322,11 @@ function create_fragment$9(ctx) {
|
|
|
14395
14322
|
t0 = text(t0_value);
|
|
14396
14323
|
t1 = space();
|
|
14397
14324
|
img = element("img");
|
|
14398
|
-
t2 = space();
|
|
14399
|
-
if (if_block)
|
|
14400
|
-
if_block.c();
|
|
14401
14325
|
attr(p, "class", "loading-message svelte-1n4x7kp");
|
|
14402
14326
|
if (!src_url_equal(img.src, img_src_value = cardStackLoader))
|
|
14403
14327
|
attr(img, "src", img_src_value);
|
|
14404
14328
|
attr(img, "alt", img_alt_value = /*$t*/
|
|
14405
|
-
ctx[
|
|
14329
|
+
ctx[1]("label.cardStackLoaderAltDescription"));
|
|
14406
14330
|
attr(div, "class", "loader-container svelte-1n4x7kp");
|
|
14407
14331
|
},
|
|
14408
14332
|
m(target, anchor) {
|
|
@@ -14411,77 +14335,43 @@ function create_fragment$9(ctx) {
|
|
|
14411
14335
|
append(p, t0);
|
|
14412
14336
|
append(div, t1);
|
|
14413
14337
|
append(div, img);
|
|
14414
|
-
append(div, t2);
|
|
14415
|
-
if (if_block)
|
|
14416
|
-
if_block.m(div, null);
|
|
14417
14338
|
},
|
|
14418
14339
|
p(ctx2, [dirty]) {
|
|
14419
14340
|
if (dirty & /*$t, loadingMessageKey*/
|
|
14420
|
-
|
|
14421
|
-
ctx2[
|
|
14341
|
+
3 && t0_value !== (t0_value = /*$t*/
|
|
14342
|
+
ctx2[1](
|
|
14422
14343
|
/*loadingMessageKey*/
|
|
14423
14344
|
ctx2[0]
|
|
14424
14345
|
) + ""))
|
|
14425
14346
|
set_data(t0, t0_value);
|
|
14426
14347
|
if (dirty & /*$t*/
|
|
14427
|
-
|
|
14428
|
-
ctx2[
|
|
14348
|
+
2 && img_alt_value !== (img_alt_value = /*$t*/
|
|
14349
|
+
ctx2[1]("label.cardStackLoaderAltDescription"))) {
|
|
14429
14350
|
attr(img, "alt", img_alt_value);
|
|
14430
14351
|
}
|
|
14431
|
-
if (
|
|
14432
|
-
/*secondaryLoadingMessageKey*/
|
|
14433
|
-
ctx2[1]
|
|
14434
|
-
) {
|
|
14435
|
-
if (if_block) {
|
|
14436
|
-
if_block.p(ctx2, dirty);
|
|
14437
|
-
} else {
|
|
14438
|
-
if_block = create_if_block$5(ctx2);
|
|
14439
|
-
if_block.c();
|
|
14440
|
-
if_block.m(div, null);
|
|
14441
|
-
}
|
|
14442
|
-
} else if (if_block) {
|
|
14443
|
-
if_block.d(1);
|
|
14444
|
-
if_block = null;
|
|
14445
|
-
}
|
|
14446
14352
|
},
|
|
14447
14353
|
i: noop,
|
|
14448
14354
|
o: noop,
|
|
14449
14355
|
d(detaching) {
|
|
14450
14356
|
if (detaching)
|
|
14451
14357
|
detach(div);
|
|
14452
|
-
if (if_block)
|
|
14453
|
-
if_block.d();
|
|
14454
14358
|
}
|
|
14455
14359
|
};
|
|
14456
14360
|
}
|
|
14457
14361
|
function instance$9($$self, $$props, $$invalidate) {
|
|
14458
14362
|
let $t;
|
|
14459
|
-
component_subscribe($$self, t, ($$value) => $$invalidate(
|
|
14363
|
+
component_subscribe($$self, t, ($$value) => $$invalidate(1, $t = $$value));
|
|
14460
14364
|
let { loadingMessageKey = "label.weAreLookingUpYourCards" } = $$props;
|
|
14461
|
-
let { secondaryLoadingMessageKey = void 0 } = $$props;
|
|
14462
14365
|
$$self.$$set = ($$props2) => {
|
|
14463
14366
|
if ("loadingMessageKey" in $$props2)
|
|
14464
14367
|
$$invalidate(0, loadingMessageKey = $$props2.loadingMessageKey);
|
|
14465
|
-
if ("secondaryLoadingMessageKey" in $$props2)
|
|
14466
|
-
$$invalidate(1, secondaryLoadingMessageKey = $$props2.secondaryLoadingMessageKey);
|
|
14467
14368
|
};
|
|
14468
|
-
return [loadingMessageKey,
|
|
14369
|
+
return [loadingMessageKey, $t];
|
|
14469
14370
|
}
|
|
14470
14371
|
class CardStackingLoader extends SvelteComponent {
|
|
14471
14372
|
constructor(options) {
|
|
14472
14373
|
super();
|
|
14473
|
-
init(
|
|
14474
|
-
this,
|
|
14475
|
-
options,
|
|
14476
|
-
instance$9,
|
|
14477
|
-
create_fragment$9,
|
|
14478
|
-
safe_not_equal,
|
|
14479
|
-
{
|
|
14480
|
-
loadingMessageKey: 0,
|
|
14481
|
-
secondaryLoadingMessageKey: 1
|
|
14482
|
-
},
|
|
14483
|
-
add_css$8
|
|
14484
|
-
);
|
|
14374
|
+
init(this, options, instance$9, create_fragment$9, safe_not_equal, { loadingMessageKey: 0 }, add_css$8);
|
|
14485
14375
|
}
|
|
14486
14376
|
}
|
|
14487
14377
|
const isUserRecognized = (isRecognizedResponse) => isRecognizedResponse.idTokens.length > 0;
|
|
@@ -14749,7 +14639,7 @@ const createCtExplanationModalStore = () => {
|
|
|
14749
14639
|
};
|
|
14750
14640
|
};
|
|
14751
14641
|
const ctpExplanationModalStore = createCtExplanationModalStore();
|
|
14752
|
-
const LogoSRC = "data:image/svg+xml;base64,
|
|
14642
|
+
const LogoSRC = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCA1MiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNy41MzQ3IDAuNUMzOC4xNzg1IC0wLjExOTk0NyAzOS4xOTkzIC0wLjExNTM5NyAzOS44Mzc1IDAuNTEwMjYzTDUxLjQwMTYgMTQuNTU0OUM1Mi4yMDgxIDE1LjM0NTYgNTIuMjAwMSAxNi42NDYxIDUxLjM4MzggMTcuNDI2OEw0MC4wMzk4IDMxLjU4MzRDMzkuNzYwMyAzMS44NTA4IDM5LjM4ODMgMzIgMzkuMDAxMyAzMk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MMzcuNTM0NyAzQzM2Ljg3NTUgMi4zNDg1OCAzNi44NjcyIDEuMTQyODggMzcuNTM0NyAwLjVaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K";
|
|
14753
14643
|
function add_css$6(target) {
|
|
14754
14644
|
append_styles(target, "svelte-150h49s", ".form-container.svelte-150h49s,.login-form.svelte-150h49s{display:flex;flex-direction:column;gap:var(--size-gap-xl)}.text-wrapper.svelte-150h49s{display:flex;flex-direction:column;gap:var(--size-gap-l)}.logoSCR.svelte-150h49s{height:var(--font-size-14)}.helper-text.svelte-150h49s{display:flex;gap:var(--size-gap-m);align-items:center;font-size:var(--font-size-14)}");
|
|
14755
14645
|
}
|
|
@@ -14783,7 +14673,7 @@ function create_default_slot_2(ctx) {
|
|
|
14783
14673
|
}
|
|
14784
14674
|
};
|
|
14785
14675
|
}
|
|
14786
|
-
function create_if_block$
|
|
14676
|
+
function create_if_block$3(ctx) {
|
|
14787
14677
|
let errormessage;
|
|
14788
14678
|
let current;
|
|
14789
14679
|
errormessage = new ErrorMessage({ props: { errorBag: (
|
|
@@ -14913,7 +14803,7 @@ function create_default_slot$1(ctx) {
|
|
|
14913
14803
|
});
|
|
14914
14804
|
let if_block = (
|
|
14915
14805
|
/*errorBag*/
|
|
14916
|
-
ctx[0] && create_if_block$
|
|
14806
|
+
ctx[0] && create_if_block$3(ctx)
|
|
14917
14807
|
);
|
|
14918
14808
|
button = new Button({
|
|
14919
14809
|
props: {
|
|
@@ -15037,7 +14927,7 @@ function create_default_slot$1(ctx) {
|
|
|
15037
14927
|
transition_in(if_block, 1);
|
|
15038
14928
|
}
|
|
15039
14929
|
} else {
|
|
15040
|
-
if_block = create_if_block$
|
|
14930
|
+
if_block = create_if_block$3(ctx);
|
|
15041
14931
|
if_block.c();
|
|
15042
14932
|
transition_in(if_block, 1);
|
|
15043
14933
|
if_block.m(form, t10);
|
|
@@ -15220,7 +15110,7 @@ const LogoIconAmex = "data:image/svg+xml;base64,PHN2ZyB3aWR0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KPHN0b3Agc3RvcC1jb2xvcj0iIzIxMjM1NiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyNDQ5QTUiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K";
|
|
15222
15112
|
function add_css$5(target) {
|
|
15223
|
-
append_styles(target, "svelte-
|
|
15113
|
+
append_styles(target, "svelte-jtvvbv", ".ctp-logo-container.svelte-jtvvbv{display:flex;gap:var(--header-size-scheme-gap-x);height:fit-content}.divider.svelte-jtvvbv{border-left:1px solid var(--header-color-scheme-separator)}img.logoSRC.svelte-jtvvbv{height:20px}img.amex.svelte-jtvvbv{background-size:contain;height:20px;width:20px}img.mastercard.svelte-jtvvbv{background-size:contain;height:20px;width:33px}img.visa.svelte-jtvvbv{background-size:contain;height:20px;width:40px}");
|
|
15224
15114
|
}
|
|
15225
15115
|
function create_if_block_2(ctx) {
|
|
15226
15116
|
let img;
|
|
@@ -15228,7 +15118,7 @@ function create_if_block_2(ctx) {
|
|
|
15228
15118
|
return {
|
|
15229
15119
|
c() {
|
|
15230
15120
|
img = element("img");
|
|
15231
|
-
attr(img, "class", "mastercard svelte-
|
|
15121
|
+
attr(img, "class", "mastercard svelte-jtvvbv");
|
|
15232
15122
|
if (!src_url_equal(img.src, img_src_value = LogoIconMastercard))
|
|
15233
15123
|
attr(img, "src", img_src_value);
|
|
15234
15124
|
attr(img, "alt", "Mastercard");
|
|
@@ -15249,7 +15139,7 @@ function create_if_block_1$2(ctx) {
|
|
|
15249
15139
|
return {
|
|
15250
15140
|
c() {
|
|
15251
15141
|
img = element("img");
|
|
15252
|
-
attr(img, "class", "visa svelte-
|
|
15142
|
+
attr(img, "class", "visa svelte-jtvvbv");
|
|
15253
15143
|
if (!src_url_equal(img.src, img_src_value = LogoIconVisa))
|
|
15254
15144
|
attr(img, "src", img_src_value);
|
|
15255
15145
|
attr(img, "alt", "Visa");
|
|
@@ -15264,13 +15154,13 @@ function create_if_block_1$2(ctx) {
|
|
|
15264
15154
|
}
|
|
15265
15155
|
};
|
|
15266
15156
|
}
|
|
15267
|
-
function create_if_block$
|
|
15157
|
+
function create_if_block$2(ctx) {
|
|
15268
15158
|
let img;
|
|
15269
15159
|
let img_src_value;
|
|
15270
15160
|
return {
|
|
15271
15161
|
c() {
|
|
15272
15162
|
img = element("img");
|
|
15273
|
-
attr(img, "class", "amex svelte-
|
|
15163
|
+
attr(img, "class", "amex svelte-jtvvbv");
|
|
15274
15164
|
if (!src_url_equal(img.src, img_src_value = LogoIconAmex))
|
|
15275
15165
|
attr(img, "src", img_src_value);
|
|
15276
15166
|
attr(img, "alt", "American Express");
|
|
@@ -15304,7 +15194,7 @@ function create_fragment$6(ctx) {
|
|
|
15304
15194
|
);
|
|
15305
15195
|
let if_block2 = (
|
|
15306
15196
|
/*$activeCreditCardBrandsStore*/
|
|
15307
|
-
ctx[0].isAmexEnabled && create_if_block$
|
|
15197
|
+
ctx[0].isAmexEnabled && create_if_block$2()
|
|
15308
15198
|
);
|
|
15309
15199
|
return {
|
|
15310
15200
|
c() {
|
|
@@ -15321,12 +15211,12 @@ function create_fragment$6(ctx) {
|
|
|
15321
15211
|
t3 = space();
|
|
15322
15212
|
if (if_block2)
|
|
15323
15213
|
if_block2.c();
|
|
15324
|
-
attr(img, "class", "logoSRC");
|
|
15214
|
+
attr(img, "class", "logoSRC svelte-jtvvbv");
|
|
15325
15215
|
if (!src_url_equal(img.src, img_src_value = LogoSRC))
|
|
15326
15216
|
attr(img, "src", img_src_value);
|
|
15327
15217
|
attr(img, "alt", "Netcetera SRCi");
|
|
15328
|
-
attr(div0, "class", "divider svelte-
|
|
15329
|
-
attr(div1, "class", "ctp-logo-container svelte-
|
|
15218
|
+
attr(div0, "class", "divider svelte-jtvvbv");
|
|
15219
|
+
attr(div1, "class", "ctp-logo-container svelte-jtvvbv");
|
|
15330
15220
|
},
|
|
15331
15221
|
m(target, anchor) {
|
|
15332
15222
|
insert(target, div1, anchor);
|
|
@@ -15381,7 +15271,7 @@ function create_fragment$6(ctx) {
|
|
|
15381
15271
|
if (if_block2) {
|
|
15382
15272
|
if_block2.p(ctx2, dirty);
|
|
15383
15273
|
} else {
|
|
15384
|
-
if_block2 = create_if_block$
|
|
15274
|
+
if_block2 = create_if_block$2();
|
|
15385
15275
|
if_block2.c();
|
|
15386
15276
|
if_block2.m(div1, null);
|
|
15387
15277
|
}
|
|
@@ -15418,7 +15308,7 @@ class ClickToPayLogoContainer extends SvelteComponent {
|
|
|
15418
15308
|
function add_css$4(target) {
|
|
15419
15309
|
append_styles(target, "svelte-1fcsuqv", "header.svelte-1fcsuqv{display:flex;justify-content:space-between;border-bottom:1px solid var(--header-color-header-separator);padding-bottom:var(--header-size-padding-bottom);margin-bottom:var(--header-size-margin-bottom)}.switch-id-container.svelte-1fcsuqv{display:flex;flex-direction:column;align-items:end;gap:var(--header-size-gap-y)}");
|
|
15420
15310
|
}
|
|
15421
|
-
function create_if_block$
|
|
15311
|
+
function create_if_block$1(ctx) {
|
|
15422
15312
|
let div;
|
|
15423
15313
|
let t_1;
|
|
15424
15314
|
let linkbutton;
|
|
@@ -15546,7 +15436,7 @@ function create_fragment$5(ctx) {
|
|
|
15546
15436
|
clicktopaylogocontainer = new ClickToPayLogoContainer({});
|
|
15547
15437
|
let if_block = (
|
|
15548
15438
|
/*email*/
|
|
15549
|
-
ctx[3] && create_if_block$
|
|
15439
|
+
ctx[3] && create_if_block$1(ctx)
|
|
15550
15440
|
);
|
|
15551
15441
|
return {
|
|
15552
15442
|
c() {
|
|
@@ -15620,132 +15510,6 @@ class Header extends SvelteComponent {
|
|
|
15620
15510
|
init(this, options, instance$5, create_fragment$5, safe_not_equal, {}, add_css$4);
|
|
15621
15511
|
}
|
|
15622
15512
|
}
|
|
15623
|
-
const createAddCardFlowStore = () => {
|
|
15624
|
-
const { subscribe: subscribe2, set, update: update2 } = writable({ addingOfCardInProgress: false });
|
|
15625
|
-
return {
|
|
15626
|
-
subscribe: subscribe2,
|
|
15627
|
-
set,
|
|
15628
|
-
update: update2,
|
|
15629
|
-
startAddingCard: () => update2(() => ({ addingOfCardInProgress: true })),
|
|
15630
|
-
finishAddingCard: () => update2(() => ({ addingOfCardInProgress: false }))
|
|
15631
|
-
};
|
|
15632
|
-
};
|
|
15633
|
-
const addCardFlowStore = createAddCardFlowStore();
|
|
15634
|
-
function create_else_block(ctx) {
|
|
15635
|
-
let await_block_anchor;
|
|
15636
|
-
let promise;
|
|
15637
|
-
let current;
|
|
15638
|
-
let info = {
|
|
15639
|
-
ctx,
|
|
15640
|
-
current: null,
|
|
15641
|
-
token: null,
|
|
15642
|
-
hasCatch: false,
|
|
15643
|
-
pending: create_pending_block$1,
|
|
15644
|
-
then: create_then_block$1,
|
|
15645
|
-
catch: create_catch_block$1,
|
|
15646
|
-
value: 8,
|
|
15647
|
-
blocks: [, , ,]
|
|
15648
|
-
};
|
|
15649
|
-
handle_promise(promise = /*currentComponentPromise*/
|
|
15650
|
-
ctx[0], info);
|
|
15651
|
-
return {
|
|
15652
|
-
c() {
|
|
15653
|
-
await_block_anchor = empty();
|
|
15654
|
-
info.block.c();
|
|
15655
|
-
},
|
|
15656
|
-
m(target, anchor) {
|
|
15657
|
-
insert(target, await_block_anchor, anchor);
|
|
15658
|
-
info.block.m(target, info.anchor = anchor);
|
|
15659
|
-
info.mount = () => await_block_anchor.parentNode;
|
|
15660
|
-
info.anchor = await_block_anchor;
|
|
15661
|
-
current = true;
|
|
15662
|
-
},
|
|
15663
|
-
p(new_ctx, dirty) {
|
|
15664
|
-
ctx = new_ctx;
|
|
15665
|
-
info.ctx = ctx;
|
|
15666
|
-
if (dirty & /*currentComponentPromise*/
|
|
15667
|
-
1 && promise !== (promise = /*currentComponentPromise*/
|
|
15668
|
-
ctx[0]) && handle_promise(promise, info))
|
|
15669
|
-
;
|
|
15670
|
-
else {
|
|
15671
|
-
update_await_block_branch(info, ctx, dirty);
|
|
15672
|
-
}
|
|
15673
|
-
},
|
|
15674
|
-
i(local) {
|
|
15675
|
-
if (current)
|
|
15676
|
-
return;
|
|
15677
|
-
transition_in(info.block);
|
|
15678
|
-
current = true;
|
|
15679
|
-
},
|
|
15680
|
-
o(local) {
|
|
15681
|
-
for (let i = 0; i < 3; i += 1) {
|
|
15682
|
-
const block = info.blocks[i];
|
|
15683
|
-
transition_out(block);
|
|
15684
|
-
}
|
|
15685
|
-
current = false;
|
|
15686
|
-
},
|
|
15687
|
-
d(detaching) {
|
|
15688
|
-
if (detaching)
|
|
15689
|
-
detach(await_block_anchor);
|
|
15690
|
-
info.block.d(detaching);
|
|
15691
|
-
info.token = null;
|
|
15692
|
-
info = null;
|
|
15693
|
-
}
|
|
15694
|
-
};
|
|
15695
|
-
}
|
|
15696
|
-
function create_if_block$1(ctx) {
|
|
15697
|
-
let div;
|
|
15698
|
-
let header;
|
|
15699
|
-
let t2;
|
|
15700
|
-
let cardstackingloader;
|
|
15701
|
-
let current;
|
|
15702
|
-
header = new Header({});
|
|
15703
|
-
header.$on(
|
|
15704
|
-
"flowEvent",
|
|
15705
|
-
/*resolveFlowStepEvent*/
|
|
15706
|
-
ctx[3]
|
|
15707
|
-
);
|
|
15708
|
-
cardstackingloader = new CardStackingLoader({
|
|
15709
|
-
props: {
|
|
15710
|
-
loadingMessageKey: "label.weAreAddingYourCardToCtP",
|
|
15711
|
-
secondaryLoadingMessageKey: "label.weWillSendYouAConfirmationEmail"
|
|
15712
|
-
}
|
|
15713
|
-
});
|
|
15714
|
-
return {
|
|
15715
|
-
c() {
|
|
15716
|
-
div = element("div");
|
|
15717
|
-
create_component(header.$$.fragment);
|
|
15718
|
-
t2 = space();
|
|
15719
|
-
create_component(cardstackingloader.$$.fragment);
|
|
15720
|
-
},
|
|
15721
|
-
m(target, anchor) {
|
|
15722
|
-
insert(target, div, anchor);
|
|
15723
|
-
mount_component(header, div, null);
|
|
15724
|
-
append(div, t2);
|
|
15725
|
-
mount_component(cardstackingloader, div, null);
|
|
15726
|
-
current = true;
|
|
15727
|
-
},
|
|
15728
|
-
p: noop,
|
|
15729
|
-
i(local) {
|
|
15730
|
-
if (current)
|
|
15731
|
-
return;
|
|
15732
|
-
transition_in(header.$$.fragment, local);
|
|
15733
|
-
transition_in(cardstackingloader.$$.fragment, local);
|
|
15734
|
-
current = true;
|
|
15735
|
-
},
|
|
15736
|
-
o(local) {
|
|
15737
|
-
transition_out(header.$$.fragment, local);
|
|
15738
|
-
transition_out(cardstackingloader.$$.fragment, local);
|
|
15739
|
-
current = false;
|
|
15740
|
-
},
|
|
15741
|
-
d(detaching) {
|
|
15742
|
-
if (detaching)
|
|
15743
|
-
detach(div);
|
|
15744
|
-
destroy_component(header);
|
|
15745
|
-
destroy_component(cardstackingloader);
|
|
15746
|
-
}
|
|
15747
|
-
};
|
|
15748
|
-
}
|
|
15749
15513
|
function create_catch_block$1(ctx) {
|
|
15750
15514
|
return {
|
|
15751
15515
|
c: noop,
|
|
@@ -15766,7 +15530,7 @@ function create_then_block$1(ctx) {
|
|
|
15766
15530
|
header.$on(
|
|
15767
15531
|
"flowEvent",
|
|
15768
15532
|
/*resolveFlowStepEvent*/
|
|
15769
|
-
ctx[
|
|
15533
|
+
ctx[2]
|
|
15770
15534
|
);
|
|
15771
15535
|
const switch_instance_spread_levels = [
|
|
15772
15536
|
/*currentComponentProps*/
|
|
@@ -15774,7 +15538,7 @@ function create_then_block$1(ctx) {
|
|
|
15774
15538
|
];
|
|
15775
15539
|
var switch_value = (
|
|
15776
15540
|
/*resolvedComponent*/
|
|
15777
|
-
ctx[
|
|
15541
|
+
ctx[7]
|
|
15778
15542
|
);
|
|
15779
15543
|
function switch_props(ctx2) {
|
|
15780
15544
|
let switch_instance_props = {};
|
|
@@ -15788,7 +15552,7 @@ function create_then_block$1(ctx) {
|
|
|
15788
15552
|
switch_instance.$on(
|
|
15789
15553
|
"flowEvent",
|
|
15790
15554
|
/*resolveFlowStepEvent*/
|
|
15791
|
-
ctx[
|
|
15555
|
+
ctx[2]
|
|
15792
15556
|
);
|
|
15793
15557
|
}
|
|
15794
15558
|
return {
|
|
@@ -15815,7 +15579,7 @@ function create_then_block$1(ctx) {
|
|
|
15815
15579
|
)]) : {};
|
|
15816
15580
|
if (dirty & /*currentComponentPromise*/
|
|
15817
15581
|
1 && switch_value !== (switch_value = /*resolvedComponent*/
|
|
15818
|
-
ctx2[
|
|
15582
|
+
ctx2[7])) {
|
|
15819
15583
|
if (switch_instance) {
|
|
15820
15584
|
group_outros();
|
|
15821
15585
|
const old_component = switch_instance;
|
|
@@ -15829,7 +15593,7 @@ function create_then_block$1(ctx) {
|
|
|
15829
15593
|
switch_instance.$on(
|
|
15830
15594
|
"flowEvent",
|
|
15831
15595
|
/*resolveFlowStepEvent*/
|
|
15832
|
-
ctx2[
|
|
15596
|
+
ctx2[2]
|
|
15833
15597
|
);
|
|
15834
15598
|
create_component(switch_instance.$$.fragment);
|
|
15835
15599
|
transition_in(switch_instance.$$.fragment, 1);
|
|
@@ -15874,7 +15638,7 @@ function create_pending_block$1(ctx) {
|
|
|
15874
15638
|
header.$on(
|
|
15875
15639
|
"flowEvent",
|
|
15876
15640
|
/*resolveFlowStepEvent*/
|
|
15877
|
-
ctx[
|
|
15641
|
+
ctx[2]
|
|
15878
15642
|
);
|
|
15879
15643
|
cardstackingloader = new CardStackingLoader({});
|
|
15880
15644
|
return {
|
|
@@ -15913,68 +15677,64 @@ function create_pending_block$1(ctx) {
|
|
|
15913
15677
|
};
|
|
15914
15678
|
}
|
|
15915
15679
|
function create_fragment$4(ctx) {
|
|
15916
|
-
let
|
|
15917
|
-
let
|
|
15918
|
-
let if_block_anchor;
|
|
15680
|
+
let await_block_anchor;
|
|
15681
|
+
let promise;
|
|
15919
15682
|
let current;
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
|
|
15930
|
-
|
|
15931
|
-
|
|
15683
|
+
let info = {
|
|
15684
|
+
ctx,
|
|
15685
|
+
current: null,
|
|
15686
|
+
token: null,
|
|
15687
|
+
hasCatch: false,
|
|
15688
|
+
pending: create_pending_block$1,
|
|
15689
|
+
then: create_then_block$1,
|
|
15690
|
+
catch: create_catch_block$1,
|
|
15691
|
+
value: 7,
|
|
15692
|
+
blocks: [, , ,]
|
|
15693
|
+
};
|
|
15694
|
+
handle_promise(promise = /*currentComponentPromise*/
|
|
15695
|
+
ctx[0], info);
|
|
15932
15696
|
return {
|
|
15933
15697
|
c() {
|
|
15934
|
-
|
|
15935
|
-
|
|
15698
|
+
await_block_anchor = empty();
|
|
15699
|
+
info.block.c();
|
|
15936
15700
|
},
|
|
15937
15701
|
m(target, anchor) {
|
|
15938
|
-
|
|
15939
|
-
|
|
15702
|
+
insert(target, await_block_anchor, anchor);
|
|
15703
|
+
info.block.m(target, info.anchor = anchor);
|
|
15704
|
+
info.mount = () => await_block_anchor.parentNode;
|
|
15705
|
+
info.anchor = await_block_anchor;
|
|
15940
15706
|
current = true;
|
|
15941
15707
|
},
|
|
15942
|
-
p(
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
if (
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
});
|
|
15952
|
-
check_outros();
|
|
15953
|
-
if_block = if_blocks[current_block_type_index];
|
|
15954
|
-
if (!if_block) {
|
|
15955
|
-
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
15956
|
-
if_block.c();
|
|
15957
|
-
} else {
|
|
15958
|
-
if_block.p(ctx2, dirty);
|
|
15959
|
-
}
|
|
15960
|
-
transition_in(if_block, 1);
|
|
15961
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
15708
|
+
p(new_ctx, [dirty]) {
|
|
15709
|
+
ctx = new_ctx;
|
|
15710
|
+
info.ctx = ctx;
|
|
15711
|
+
if (dirty & /*currentComponentPromise*/
|
|
15712
|
+
1 && promise !== (promise = /*currentComponentPromise*/
|
|
15713
|
+
ctx[0]) && handle_promise(promise, info))
|
|
15714
|
+
;
|
|
15715
|
+
else {
|
|
15716
|
+
update_await_block_branch(info, ctx, dirty);
|
|
15962
15717
|
}
|
|
15963
15718
|
},
|
|
15964
15719
|
i(local) {
|
|
15965
15720
|
if (current)
|
|
15966
15721
|
return;
|
|
15967
|
-
transition_in(
|
|
15722
|
+
transition_in(info.block);
|
|
15968
15723
|
current = true;
|
|
15969
15724
|
},
|
|
15970
15725
|
o(local) {
|
|
15971
|
-
|
|
15726
|
+
for (let i = 0; i < 3; i += 1) {
|
|
15727
|
+
const block = info.blocks[i];
|
|
15728
|
+
transition_out(block);
|
|
15729
|
+
}
|
|
15972
15730
|
current = false;
|
|
15973
15731
|
},
|
|
15974
15732
|
d(detaching) {
|
|
15975
|
-
if_blocks[current_block_type_index].d(detaching);
|
|
15976
15733
|
if (detaching)
|
|
15977
|
-
detach(
|
|
15734
|
+
detach(await_block_anchor);
|
|
15735
|
+
info.block.d(detaching);
|
|
15736
|
+
info.token = null;
|
|
15737
|
+
info = null;
|
|
15978
15738
|
}
|
|
15979
15739
|
};
|
|
15980
15740
|
}
|
|
@@ -15982,11 +15742,9 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
15982
15742
|
let $orchestratorStore;
|
|
15983
15743
|
let $loginFlowStore;
|
|
15984
15744
|
let $merchantConfigStore;
|
|
15985
|
-
|
|
15986
|
-
component_subscribe($$self,
|
|
15987
|
-
component_subscribe($$self,
|
|
15988
|
-
component_subscribe($$self, merchantConfigStore, ($$value) => $$invalidate(6, $merchantConfigStore = $$value));
|
|
15989
|
-
component_subscribe($$self, addCardFlowStore, ($$value) => $$invalidate(2, $addCardFlowStore = $$value));
|
|
15745
|
+
component_subscribe($$self, orchestratorStore, ($$value) => $$invalidate(3, $orchestratorStore = $$value));
|
|
15746
|
+
component_subscribe($$self, loginFlowStore, ($$value) => $$invalidate(4, $loginFlowStore = $$value));
|
|
15747
|
+
component_subscribe($$self, merchantConfigStore, ($$value) => $$invalidate(5, $merchantConfigStore = $$value));
|
|
15990
15748
|
let currentComponentPromise;
|
|
15991
15749
|
let currentComponentProps = {};
|
|
15992
15750
|
const resolveInitialScreen = async () => {
|
|
@@ -16088,12 +15846,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
16088
15846
|
}
|
|
16089
15847
|
};
|
|
16090
15848
|
$$invalidate(0, currentComponentPromise = resolveInitialScreen());
|
|
16091
|
-
return [
|
|
16092
|
-
currentComponentPromise,
|
|
16093
|
-
currentComponentProps,
|
|
16094
|
-
$addCardFlowStore,
|
|
16095
|
-
resolveFlowStepEvent
|
|
16096
|
-
];
|
|
15849
|
+
return [currentComponentPromise, currentComponentProps, resolveFlowStepEvent];
|
|
16097
15850
|
}
|
|
16098
15851
|
class Navigator extends SvelteComponent {
|
|
16099
15852
|
constructor(options) {
|
|
@@ -16258,7 +16011,6 @@ let HeadlessOrchestrator = _HeadlessOrchestrator;
|
|
|
16258
16011
|
__publicField(HeadlessOrchestrator, "checkout", async (params) => {
|
|
16259
16012
|
var _a2, _b;
|
|
16260
16013
|
_HeadlessOrchestrator.validateCheckout(params, get_store_value(t));
|
|
16261
|
-
addCardFlowStore.startAddingCard();
|
|
16262
16014
|
const creditCardBrand = getCreditCardBrand((_a2 = params.card) == null ? void 0 : _a2.primaryAccountNumber);
|
|
16263
16015
|
let internalIframeRef;
|
|
16264
16016
|
if (creditCardBrand === CreditCardBrand.MASTERCARD && !params.iframeRef) {
|
|
@@ -16266,9 +16018,8 @@ __publicField(HeadlessOrchestrator, "checkout", async (params) => {
|
|
|
16266
16018
|
internalIframeRef = (_b = dcfWindowState == null ? void 0 : dcfWindowState.iframe) == null ? void 0 : _b.ref;
|
|
16267
16019
|
dcfWindowStore.showDcf();
|
|
16268
16020
|
}
|
|
16269
|
-
let checkoutResponse;
|
|
16270
16021
|
try {
|
|
16271
|
-
|
|
16022
|
+
return await Orchestrator.checkout({
|
|
16272
16023
|
card: params.card,
|
|
16273
16024
|
creditCardBrand,
|
|
16274
16025
|
iframeRef: params.iframeRef || internalIframeRef,
|
|
@@ -16278,12 +16029,10 @@ __publicField(HeadlessOrchestrator, "checkout", async (params) => {
|
|
|
16278
16029
|
complianceResourceURLs: params.complianceResourceURLs
|
|
16279
16030
|
});
|
|
16280
16031
|
} finally {
|
|
16281
|
-
addCardFlowStore.finishAddingCard();
|
|
16282
16032
|
if (creditCardBrand === CreditCardBrand.MASTERCARD && !params.iframeRef) {
|
|
16283
16033
|
dcfWindowStore.hideDcf();
|
|
16284
16034
|
}
|
|
16285
16035
|
}
|
|
16286
|
-
return checkoutResponse;
|
|
16287
16036
|
});
|
|
16288
16037
|
__publicField(HeadlessOrchestrator, "validateCheckout", (params, t2) => {
|
|
16289
16038
|
var _a2;
|