@netceterapx/click-to-pay-sdk 2.7.0 → 2.7.1
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.
|
@@ -7111,7 +7111,7 @@ const dictionary = {
|
|
|
7111
7111
|
[LANG.en_GB]: "Already have",
|
|
7112
7112
|
[LANG.en_AU]: "Already have",
|
|
7113
7113
|
[LANG.de_DE]: "Haben Sie bereits eine",
|
|
7114
|
-
[LANG.cs_CZ]: "
|
|
7114
|
+
[LANG.cs_CZ]: "Máte už",
|
|
7115
7115
|
[LANG.sk_SK]: "Máte už",
|
|
7116
7116
|
[LANG.ru_RU]: "Уже есть",
|
|
7117
7117
|
[LANG.pl_PL]: "Masz usługę",
|
|
@@ -13572,14 +13572,14 @@ function Field($$anchor, $$props) {
|
|
|
13572
13572
|
const createLoginFlowStore = () => {
|
|
13573
13573
|
const { subscribe, set: set2, update: update2 } = writable({
|
|
13574
13574
|
brandForInitializingLoginFlow: void 0,
|
|
13575
|
-
|
|
13575
|
+
consumerIdentified: false
|
|
13576
13576
|
});
|
|
13577
13577
|
return {
|
|
13578
13578
|
subscribe,
|
|
13579
13579
|
update: update2,
|
|
13580
13580
|
set: set2,
|
|
13581
13581
|
setCreditCardBrandForLogin: (creditCardBrand) => update2((state2) => ({ ...state2, brandForInitializingLoginFlow: creditCardBrand })),
|
|
13582
|
-
|
|
13582
|
+
setConsumerIdentified: (consumerIdentified) => update2((state2) => ({ ...state2, consumerIdentified })),
|
|
13583
13583
|
resetBrandForInitializingLoginFlow: () => update2((state2) => ({ ...state2, brandForInitializingLoginFlow: void 0 }))
|
|
13584
13584
|
};
|
|
13585
13585
|
};
|
|
@@ -14925,6 +14925,7 @@ __publicField(_LogInService, "handleLogIn", async (onFlowEventCallback, email2)
|
|
|
14925
14925
|
const { consumerPresent, userIsRecognizedIn } = await Orchestrator.identityLookup({ email: email2 });
|
|
14926
14926
|
if (!consumerPresent || userIsRecognizedIn.length < 1) {
|
|
14927
14927
|
consumerStatusStore.setEmailAddress(email2);
|
|
14928
|
+
loginFlowStore.setConsumerIdentified(true);
|
|
14928
14929
|
onFlowEventCallback(createFlowEvent({ flowStep: FlowStep.ON_CONSUMER_NOT_FOUND, payload: email2 }));
|
|
14929
14930
|
return;
|
|
14930
14931
|
}
|
|
@@ -14937,7 +14938,7 @@ __publicField(_LogInService, "handleLogIn", async (onFlowEventCallback, email2)
|
|
|
14937
14938
|
const initiateIdentityValidationResponse = await Orchestrator.initiateIdentityValidation({
|
|
14938
14939
|
creditCardBrand: brandForInitializingLoginFlow
|
|
14939
14940
|
});
|
|
14940
|
-
loginFlowStore.
|
|
14941
|
+
loginFlowStore.setConsumerIdentified(true);
|
|
14941
14942
|
orchestratorStore.storeWhichBrandRecognizedUser(userIsRecognizedIn);
|
|
14942
14943
|
onFlowEventCallback(
|
|
14943
14944
|
createFlowEvent({
|
|
@@ -15196,7 +15197,7 @@ function Header($$anchor, $$props) {
|
|
|
15196
15197
|
var _a2;
|
|
15197
15198
|
return (_a2 = $consumerStatusStore()) == null ? void 0 : _a2.consumerIdentity.maskedEmailAddress;
|
|
15198
15199
|
});
|
|
15199
|
-
let
|
|
15200
|
+
let consumerIdentified = /* @__PURE__ */ derived$1(() => $loginFlowStore().consumerIdentified);
|
|
15200
15201
|
let profileHasNoCardsAvailable = /* @__PURE__ */ derived$1(() => {
|
|
15201
15202
|
var _a2;
|
|
15202
15203
|
return (_a2 = $consumerStatusStore()) == null ? void 0 : _a2.manualCardEntryMandatory;
|
|
@@ -15264,7 +15265,7 @@ function Header($$anchor, $$props) {
|
|
|
15264
15265
|
append($$anchor2, div);
|
|
15265
15266
|
};
|
|
15266
15267
|
if_block(node_1, ($$render) => {
|
|
15267
|
-
if (get$1(email2) && get$1(
|
|
15268
|
+
if (get$1(email2) && get$1(consumerIdentified)) $$render(consequent_2);
|
|
15268
15269
|
});
|
|
15269
15270
|
}
|
|
15270
15271
|
reset(header);
|
|
@@ -15303,7 +15304,7 @@ function SwitchIdScreen($$anchor, $$props) {
|
|
|
15303
15304
|
orchestratorStore.forgetUser();
|
|
15304
15305
|
consumerStatusStore.resetConsumerStatusState();
|
|
15305
15306
|
loginFlowStore.resetBrandForInitializingLoginFlow();
|
|
15306
|
-
loginFlowStore.
|
|
15307
|
+
loginFlowStore.setConsumerIdentified(false);
|
|
15307
15308
|
await LogInService.handleLogIn($$props.onflowevent, values.email);
|
|
15308
15309
|
} catch (e) {
|
|
15309
15310
|
const error = e;
|
|
@@ -15422,6 +15423,7 @@ function Navigator($$anchor, $$props) {
|
|
|
15422
15423
|
orchestratorStore.storeUserRecognition(isRecognizedResponse);
|
|
15423
15424
|
consumerStatusStore.setIsRecognized(true);
|
|
15424
15425
|
consumerStatusStore.setHasBeenValidated(true);
|
|
15426
|
+
loginFlowStore.setConsumerIdentified(true);
|
|
15425
15427
|
const srcProfileResponse = await Orchestrator.getSrcProfile({ idTokens: isRecognizedResponse.idTokens });
|
|
15426
15428
|
const maskedEmail = getMaskedEmailFromProfile(srcProfileResponse);
|
|
15427
15429
|
orchestratorStore.storeSrcProfile(srcProfileResponse);
|
|
@@ -15457,11 +15459,12 @@ function Navigator($$anchor, $$props) {
|
|
|
15457
15459
|
maskedValidationChannel: initiateIdentityValidationResponse.maskedValidationChannel,
|
|
15458
15460
|
supportedValidationChannels: initiateIdentityValidationResponse.supportedValidationChannels || []
|
|
15459
15461
|
}));
|
|
15460
|
-
loginFlowStore.
|
|
15462
|
+
loginFlowStore.setConsumerIdentified(true);
|
|
15461
15463
|
orchestratorStore.storeWhichBrandRecognizedUser(userIsRecognizedIn);
|
|
15462
15464
|
return OtpScreen;
|
|
15463
15465
|
}
|
|
15464
15466
|
set(currentComponentProps, proxy({ email: merchantProvidedPreFilledEmail }));
|
|
15467
|
+
loginFlowStore.setConsumerIdentified(true);
|
|
15465
15468
|
clearPrefilledEmail();
|
|
15466
15469
|
return ConsumerNotFound;
|
|
15467
15470
|
}
|
|
@@ -15507,7 +15510,7 @@ function Navigator($$anchor, $$props) {
|
|
|
15507
15510
|
orchestratorStore.forgetUser();
|
|
15508
15511
|
consumerStatusStore.resetConsumerStatusState();
|
|
15509
15512
|
loginFlowStore.resetBrandForInitializingLoginFlow();
|
|
15510
|
-
loginFlowStore.
|
|
15513
|
+
loginFlowStore.setConsumerIdentified(false);
|
|
15511
15514
|
set(currentComponentPromise, proxy(Promise.resolve(LogIn)));
|
|
15512
15515
|
}
|
|
15513
15516
|
if (flowEvent.flowStep === FlowStep.ON_LOCKED_ACCOUNT) {
|
|
@@ -15573,10 +15576,10 @@ const $$css$3 = {
|
|
|
15573
15576
|
function GlobalStyles($$anchor) {
|
|
15574
15577
|
append_styles($$anchor, $$css$3);
|
|
15575
15578
|
}
|
|
15576
|
-
var root$3 = /* @__PURE__ */ template(`<iframe title="dcfIframe" frameborder="0" allowfullscreen=""
|
|
15579
|
+
var root$3 = /* @__PURE__ */ template(`<iframe title="dcfIframe" frameborder="0" allowfullscreen="" class="svelte-1e10jj6"></iframe>`);
|
|
15577
15580
|
const $$css$2 = {
|
|
15578
|
-
hash: "svelte-
|
|
15579
|
-
code: ".hidden.svelte-
|
|
15581
|
+
hash: "svelte-1e10jj6",
|
|
15582
|
+
code: ".hidden.svelte-1e10jj6 {display:none;}.full.svelte-1e10jj6 {position:fixed;top:0;left:0;width:100%;height:100%;border:none;z-index:90;}"
|
|
15580
15583
|
};
|
|
15581
15584
|
function DcfIframe($$anchor, $$props) {
|
|
15582
15585
|
push($$props, true);
|