@coinflowlabs/angular 1.13.0 → 1.14.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.
|
@@ -26,6 +26,7 @@ var WithdrawSpeed;
|
|
|
26
26
|
WithdrawSpeed["PAYPAL"] = "paypal";
|
|
27
27
|
WithdrawSpeed["WIRE"] = "wire";
|
|
28
28
|
WithdrawSpeed["INTERAC"] = "interac";
|
|
29
|
+
WithdrawSpeed["SWIFT"] = "swift";
|
|
29
30
|
})(WithdrawSpeed || (WithdrawSpeed = {}));
|
|
30
31
|
var SettlementType;
|
|
31
32
|
(function (SettlementType) {
|
|
@@ -558,13 +559,15 @@ class CoinflowUtils {
|
|
|
558
559
|
return 'http://localhost:5000';
|
|
559
560
|
return `https://api-${env}.coinflow.cash`;
|
|
560
561
|
}
|
|
561
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, depositAmounts, baseUrl, }) {
|
|
562
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, baseUrl, }) {
|
|
562
563
|
const prefix = routePrefix
|
|
563
564
|
? `/${routePrefix}/${blockchain}`
|
|
564
565
|
: `/${blockchain}`;
|
|
565
566
|
const url = new URL(prefix + route, baseUrl ?? CoinflowUtils.getCoinflowBaseUrl(env));
|
|
566
567
|
if (walletPubkey)
|
|
567
568
|
url.searchParams.append('pubkey', walletPubkey);
|
|
569
|
+
if (ownerOverride)
|
|
570
|
+
url.searchParams.append('ownerOverride', ownerOverride);
|
|
568
571
|
if (sessionKey)
|
|
569
572
|
url.searchParams.append('sessionKey', sessionKey);
|
|
570
573
|
if (transaction) {
|
|
@@ -585,6 +588,10 @@ class CoinflowUtils {
|
|
|
585
588
|
url.searchParams.append('amount', subtotal.amount.toString());
|
|
586
589
|
}
|
|
587
590
|
}
|
|
591
|
+
if (useNativeSubtotal)
|
|
592
|
+
url.searchParams.append('useNativeSubtotal', 'true');
|
|
593
|
+
if (bridgeId)
|
|
594
|
+
url.searchParams.append('bridgeId', bridgeId);
|
|
588
595
|
if (presentment)
|
|
589
596
|
url.searchParams.append('presentment', presentment);
|
|
590
597
|
if (webhookInfo) {
|
|
@@ -684,6 +691,8 @@ class CoinflowUtils {
|
|
|
684
691
|
url.searchParams.append('lat', userLocation.lat.toString());
|
|
685
692
|
url.searchParams.append('lng', userLocation.lng.toString());
|
|
686
693
|
}
|
|
694
|
+
if (appReturnUrl)
|
|
695
|
+
url.searchParams.append('appReturnUrl', appReturnUrl);
|
|
687
696
|
return url.toString();
|
|
688
697
|
}
|
|
689
698
|
static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }) {
|
|
@@ -847,10 +856,13 @@ var IFrameMessageMethods;
|
|
|
847
856
|
IFrameMessageMethods["HeightChange"] = "heightChange";
|
|
848
857
|
IFrameMessageMethods["Success"] = "success";
|
|
849
858
|
IFrameMessageMethods["AuthDeclined"] = "authDeclined";
|
|
859
|
+
IFrameMessageMethods["InputError"] = "inputError";
|
|
860
|
+
IFrameMessageMethods["InputValid"] = "inputValid";
|
|
850
861
|
IFrameMessageMethods["Loaded"] = "loaded";
|
|
851
862
|
IFrameMessageMethods["AccountLinked"] = "accountLinked";
|
|
852
863
|
IFrameMessageMethods["Redirect"] = "redirect";
|
|
853
864
|
IFrameMessageMethods["Overlay"] = "overlay";
|
|
865
|
+
IFrameMessageMethods["UpdateSubtotal"] = "updateSubtotal";
|
|
854
866
|
})(IFrameMessageMethods || (IFrameMessageMethods = {}));
|
|
855
867
|
function getWalletPubkey(input) {
|
|
856
868
|
let wallet;
|
|
@@ -910,6 +922,16 @@ function handleIFrameMessage(rawMessage, handlers, handleHeightChangeId) {
|
|
|
910
922
|
return;
|
|
911
923
|
handlers.onAuthDeclined(walletCall.info);
|
|
912
924
|
return;
|
|
925
|
+
case IFrameMessageMethods.InputError:
|
|
926
|
+
if (!handlers.onInputError)
|
|
927
|
+
return;
|
|
928
|
+
handlers.onInputError(walletCall.info);
|
|
929
|
+
return;
|
|
930
|
+
case IFrameMessageMethods.InputValid:
|
|
931
|
+
if (!handlers.onInputValid)
|
|
932
|
+
return;
|
|
933
|
+
handlers.onInputValid(walletCall.info);
|
|
934
|
+
return;
|
|
913
935
|
case IFrameMessageMethods.Loaded:
|
|
914
936
|
return;
|
|
915
937
|
case IFrameMessageMethods.AccountLinked:
|
|
@@ -953,6 +975,8 @@ function getHandlers(props) {
|
|
|
953
975
|
},
|
|
954
976
|
onSuccess: props.onSuccess,
|
|
955
977
|
onAuthDeclined: props.onAuthDeclined,
|
|
978
|
+
onInputError: props.onInputError,
|
|
979
|
+
onInputValid: props.onInputValid,
|
|
956
980
|
};
|
|
957
981
|
}
|
|
958
982
|
return CoinflowUtils.byBlockchain(chain, {
|
|
@@ -960,46 +984,62 @@ function getHandlers(props) {
|
|
|
960
984
|
wallet: wallet,
|
|
961
985
|
onSuccess: props.onSuccess,
|
|
962
986
|
onAuthDeclined: props.onAuthDeclined,
|
|
987
|
+
onInputError: props.onInputError,
|
|
988
|
+
onInputValid: props.onInputValid,
|
|
963
989
|
}),
|
|
964
990
|
eth: () => getEvmWalletHandlers({
|
|
965
991
|
wallet: wallet,
|
|
966
992
|
onSuccess: props.onSuccess,
|
|
967
993
|
onAuthDeclined: props.onAuthDeclined,
|
|
994
|
+
onInputError: props.onInputError,
|
|
995
|
+
onInputValid: props.onInputValid,
|
|
968
996
|
}),
|
|
969
997
|
polygon: () => getEvmWalletHandlers({
|
|
970
998
|
wallet: wallet,
|
|
971
999
|
onSuccess: props.onSuccess,
|
|
972
1000
|
onAuthDeclined: props.onAuthDeclined,
|
|
1001
|
+
onInputError: props.onInputError,
|
|
1002
|
+
onInputValid: props.onInputValid,
|
|
973
1003
|
}),
|
|
974
1004
|
base: () => getEvmWalletHandlers({
|
|
975
1005
|
wallet: wallet,
|
|
976
1006
|
onSuccess: props.onSuccess,
|
|
977
1007
|
onAuthDeclined: props.onAuthDeclined,
|
|
1008
|
+
onInputError: props.onInputError,
|
|
1009
|
+
onInputValid: props.onInputValid,
|
|
978
1010
|
}),
|
|
979
1011
|
arbitrum: () => getEvmWalletHandlers({
|
|
980
1012
|
wallet: wallet,
|
|
981
1013
|
onSuccess: props.onSuccess,
|
|
982
1014
|
onAuthDeclined: props.onAuthDeclined,
|
|
1015
|
+
onInputError: props.onInputError,
|
|
1016
|
+
onInputValid: props.onInputValid,
|
|
983
1017
|
}),
|
|
984
1018
|
stellar: () => getStellarWalletHandlers({
|
|
985
1019
|
wallet: wallet,
|
|
986
1020
|
onSuccess: props.onSuccess,
|
|
987
1021
|
onAuthDeclined: props.onAuthDeclined,
|
|
1022
|
+
onInputError: props.onInputError,
|
|
1023
|
+
onInputValid: props.onInputValid,
|
|
988
1024
|
}),
|
|
989
1025
|
monad: () => getEvmWalletHandlers({
|
|
990
1026
|
wallet: wallet,
|
|
991
1027
|
onSuccess: props.onSuccess,
|
|
992
1028
|
onAuthDeclined: props.onAuthDeclined,
|
|
1029
|
+
onInputError: props.onInputError,
|
|
1030
|
+
onInputValid: props.onInputValid,
|
|
993
1031
|
}),
|
|
994
1032
|
tempo: () => getEvmWalletHandlers({
|
|
995
1033
|
wallet: wallet,
|
|
996
1034
|
onSuccess: props.onSuccess,
|
|
997
1035
|
onAuthDeclined: props.onAuthDeclined,
|
|
1036
|
+
onInputError: props.onInputError,
|
|
1037
|
+
onInputValid: props.onInputValid,
|
|
998
1038
|
}),
|
|
999
1039
|
user: () => getSessionKeyHandlers(props),
|
|
1000
1040
|
})();
|
|
1001
1041
|
}
|
|
1002
|
-
function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
1042
|
+
function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|
|
1003
1043
|
return {
|
|
1004
1044
|
handleSendTransaction: async (transaction) => {
|
|
1005
1045
|
const tx = getSolanaTransaction(transaction);
|
|
@@ -1031,6 +1071,8 @@ function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
|
1031
1071
|
},
|
|
1032
1072
|
onSuccess,
|
|
1033
1073
|
onAuthDeclined,
|
|
1074
|
+
onInputError,
|
|
1075
|
+
onInputValid,
|
|
1034
1076
|
};
|
|
1035
1077
|
}
|
|
1036
1078
|
function getSolanaTransaction(data) {
|
|
@@ -1044,7 +1086,7 @@ function getSolanaTransaction(data) {
|
|
|
1044
1086
|
return web3.Transaction.from(parsedUInt8Array);
|
|
1045
1087
|
return vtx;
|
|
1046
1088
|
}
|
|
1047
|
-
function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
1089
|
+
function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|
|
1048
1090
|
return {
|
|
1049
1091
|
handleSendTransaction: async (transaction) => {
|
|
1050
1092
|
const tx = JSON.parse(Buffer.from(transaction, 'base64').toString());
|
|
@@ -1056,9 +1098,11 @@ function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
|
1056
1098
|
},
|
|
1057
1099
|
onSuccess,
|
|
1058
1100
|
onAuthDeclined,
|
|
1101
|
+
onInputError,
|
|
1102
|
+
onInputValid,
|
|
1059
1103
|
};
|
|
1060
1104
|
}
|
|
1061
|
-
function getStellarWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
1105
|
+
function getStellarWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|
|
1062
1106
|
return {
|
|
1063
1107
|
handleSendTransaction: async (transaction) => {
|
|
1064
1108
|
// transaction is unsigned base64 XDR
|
|
@@ -1081,15 +1125,19 @@ function getStellarWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
|
1081
1125
|
},
|
|
1082
1126
|
onSuccess,
|
|
1083
1127
|
onAuthDeclined,
|
|
1128
|
+
onInputError,
|
|
1129
|
+
onInputValid,
|
|
1084
1130
|
};
|
|
1085
1131
|
}
|
|
1086
|
-
function getSessionKeyHandlers({ onSuccess, onAuthDeclined, }) {
|
|
1132
|
+
function getSessionKeyHandlers({ onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|
|
1087
1133
|
return {
|
|
1088
1134
|
handleSendTransaction: async () => {
|
|
1089
1135
|
return Promise.resolve('');
|
|
1090
1136
|
},
|
|
1091
1137
|
onSuccess,
|
|
1092
1138
|
onAuthDeclined,
|
|
1139
|
+
onInputError,
|
|
1140
|
+
onInputValid,
|
|
1093
1141
|
};
|
|
1094
1142
|
}
|
|
1095
1143
|
|
|
@@ -1631,6 +1679,56 @@ function getSkeletonColors(theme) {
|
|
|
1631
1679
|
return luminance < 0.5 ? DARK_SURFACE_COLORS : LIGHT_SURFACE_COLORS;
|
|
1632
1680
|
}
|
|
1633
1681
|
|
|
1682
|
+
const CARD_FIELD_ERROR_MESSAGES = {
|
|
1683
|
+
cardNumber: 'Card number is invalid. Please double check information.',
|
|
1684
|
+
expiration: 'Expiration is invalid. Please double check information.',
|
|
1685
|
+
cvv: 'CVV is invalid. Please double check information.',
|
|
1686
|
+
cvvEmpty: 'Please enter your CVV to proceed.',
|
|
1687
|
+
};
|
|
1688
|
+
function getCardFieldValidationError({ cardError, expirationError, cvvError, cvvEmpty, isCvvOnly, }) {
|
|
1689
|
+
if (cardError)
|
|
1690
|
+
return {
|
|
1691
|
+
field: 'card-number',
|
|
1692
|
+
message: CARD_FIELD_ERROR_MESSAGES.cardNumber,
|
|
1693
|
+
};
|
|
1694
|
+
if (expirationError)
|
|
1695
|
+
return {
|
|
1696
|
+
field: 'expiration',
|
|
1697
|
+
message: CARD_FIELD_ERROR_MESSAGES.expiration,
|
|
1698
|
+
};
|
|
1699
|
+
if (!cvvError)
|
|
1700
|
+
return null;
|
|
1701
|
+
if (isCvvOnly && cvvEmpty)
|
|
1702
|
+
return { field: 'cvv', message: CARD_FIELD_ERROR_MESSAGES.cvvEmpty };
|
|
1703
|
+
return { field: 'cvv', message: CARD_FIELD_ERROR_MESSAGES.cvv };
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Derives which messages to emit for a transition between two validation
|
|
1707
|
+
* states, so the parent hears about each change exactly once.
|
|
1708
|
+
*
|
|
1709
|
+
* Nothing is emitted while the state is unchanged (including the pristine
|
|
1710
|
+
* state, where both sides are null), so a field that is never invalid stays
|
|
1711
|
+
* silent and a visible error is not re-sent on every render.
|
|
1712
|
+
*
|
|
1713
|
+
* Only one error is displayed at a time (see getCardFieldValidationError's
|
|
1714
|
+
* precedence), so when the displayed error moves to a different field the
|
|
1715
|
+
* previous field has necessarily become valid and gets its own clear event.
|
|
1716
|
+
*/
|
|
1717
|
+
function getCardFieldInputEvents({ previous, current, }) {
|
|
1718
|
+
if (!current)
|
|
1719
|
+
return previous ? [{ kind: 'valid', info: { field: previous.field } }] : [];
|
|
1720
|
+
if (!previous)
|
|
1721
|
+
return [{ kind: 'error', info: current }];
|
|
1722
|
+
if (previous.field === current.field)
|
|
1723
|
+
return previous.message === current.message
|
|
1724
|
+
? []
|
|
1725
|
+
: [{ kind: 'error', info: current }];
|
|
1726
|
+
return [
|
|
1727
|
+
{ kind: 'valid', info: { field: previous.field } },
|
|
1728
|
+
{ kind: 'error', info: current },
|
|
1729
|
+
];
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1634
1732
|
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1635
1733
|
/* istanbul ignore file */
|
|
1636
1734
|
/* tslint:disable */
|
|
@@ -1903,6 +2001,47 @@ async function initCoinflowProtection({ coinflowEnv, merchantId, }) {
|
|
|
1903
2001
|
}
|
|
1904
2002
|
}
|
|
1905
2003
|
|
|
2004
|
+
function serializeCachedLinkToken(cached) {
|
|
2005
|
+
return JSON.stringify(cached);
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* Reads a cache entry, tolerating the bare-token strings written before the
|
|
2009
|
+
* country was recorded. Those have unknown provenance, so they come back with
|
|
2010
|
+
* no country and `canReuseLinkToken` will refuse them for a specific rail.
|
|
2011
|
+
*/
|
|
2012
|
+
function parseCachedLinkToken(raw) {
|
|
2013
|
+
if (!raw)
|
|
2014
|
+
return null;
|
|
2015
|
+
try {
|
|
2016
|
+
const parsed = JSON.parse(raw);
|
|
2017
|
+
if (typeof parsed?.token !== 'string' || !parsed.token)
|
|
2018
|
+
return null;
|
|
2019
|
+
return {
|
|
2020
|
+
token: parsed.token,
|
|
2021
|
+
country: typeof parsed.country === 'string' ? parsed.country : undefined,
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2024
|
+
catch {
|
|
2025
|
+
// Legacy entry: the raw token with no recorded country.
|
|
2026
|
+
return { token: raw };
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* True when a cached token may be handed to a session for `country`.
|
|
2031
|
+
*
|
|
2032
|
+
* A caller that names a country needs a token minted for that same country;
|
|
2033
|
+
* anything else (a different rail, or an entry whose rail we never recorded)
|
|
2034
|
+
* has to be re-minted. A caller that names no country takes what is cached,
|
|
2035
|
+
* which is what the OAuth leg does when resuming a session already in flight.
|
|
2036
|
+
*/
|
|
2037
|
+
function canReuseLinkToken({ cached, country, }) {
|
|
2038
|
+
if (!cached)
|
|
2039
|
+
return false;
|
|
2040
|
+
if (!country)
|
|
2041
|
+
return true;
|
|
2042
|
+
return cached.country === country;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
1906
2045
|
class CoinflowIFrameComponent {
|
|
1907
2046
|
constructor(sanitizer) {
|
|
1908
2047
|
this.sanitizer = sanitizer;
|
|
@@ -2489,6 +2628,12 @@ class CoinflowCardForm {
|
|
|
2489
2628
|
this.iframeHeight = parsedHeight;
|
|
2490
2629
|
}
|
|
2491
2630
|
}
|
|
2631
|
+
else if (parsed.method === IFrameMessageMethods.InputError) {
|
|
2632
|
+
void this.args.onInputError?.(parsed.info);
|
|
2633
|
+
}
|
|
2634
|
+
else if (parsed.method === IFrameMessageMethods.InputValid) {
|
|
2635
|
+
void this.args.onInputValid?.(parsed.info);
|
|
2636
|
+
}
|
|
2492
2637
|
}
|
|
2493
2638
|
catch {
|
|
2494
2639
|
// not JSON
|
|
@@ -2619,6 +2764,10 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
2619
2764
|
constructor() {
|
|
2620
2765
|
this.opacity = 0.8;
|
|
2621
2766
|
this.display = 'flex';
|
|
2767
|
+
// The subtotal is pinned to its initial value in the iframe URL (built once
|
|
2768
|
+
// in ngOnInit) so amount changes don't force a reload. Updates are instead
|
|
2769
|
+
// sent to the running iframe via postMessage once it has loaded.
|
|
2770
|
+
this.loaded = false;
|
|
2622
2771
|
}
|
|
2623
2772
|
handleMessage({ data }) {
|
|
2624
2773
|
try {
|
|
@@ -2633,11 +2782,38 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
2633
2782
|
setTimeout(() => {
|
|
2634
2783
|
this.display = 'none';
|
|
2635
2784
|
}, 2000);
|
|
2785
|
+
this.loaded = true;
|
|
2786
|
+
if (this.pendingSubtotal) {
|
|
2787
|
+
const pendingSubtotal = this.pendingSubtotal;
|
|
2788
|
+
this.pendingSubtotal = undefined;
|
|
2789
|
+
this.sendSubtotalUpdate(pendingSubtotal);
|
|
2790
|
+
}
|
|
2636
2791
|
}
|
|
2637
2792
|
}
|
|
2638
2793
|
catch (e) { }
|
|
2639
2794
|
}
|
|
2795
|
+
ngOnChanges(changes) {
|
|
2796
|
+
const purchasePropsChange = changes['purchaseProps'];
|
|
2797
|
+
if (!purchasePropsChange || purchasePropsChange.firstChange)
|
|
2798
|
+
return;
|
|
2799
|
+
const subtotal = purchasePropsChange.currentValue?.subtotal;
|
|
2800
|
+
if (!subtotal)
|
|
2801
|
+
return;
|
|
2802
|
+
this.sendSubtotalUpdate(subtotal);
|
|
2803
|
+
}
|
|
2804
|
+
sendSubtotalUpdate(subtotal) {
|
|
2805
|
+
if (!this.loaded) {
|
|
2806
|
+
this.pendingSubtotal = subtotal;
|
|
2807
|
+
return;
|
|
2808
|
+
}
|
|
2809
|
+
const serializedSubtotal = JSON.stringify(subtotal);
|
|
2810
|
+
if (this.lastSentSubtotal === serializedSubtotal)
|
|
2811
|
+
return;
|
|
2812
|
+
this.lastSentSubtotal = serializedSubtotal;
|
|
2813
|
+
this.iframeComponent?.sendMessage(`${IFrameMessageMethods.UpdateSubtotal}:${serializedSubtotal}`);
|
|
2814
|
+
}
|
|
2640
2815
|
ngOnInit() {
|
|
2816
|
+
this.lastSentSubtotal = JSON.stringify(this.purchaseProps?.subtotal);
|
|
2641
2817
|
const walletPubkey = getWalletPubkey(this.purchaseProps);
|
|
2642
2818
|
this.messageHandlers = getHandlers(this.purchaseProps);
|
|
2643
2819
|
this.messageHandlers.handleHeightChange =
|
|
@@ -2653,7 +2829,7 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
2653
2829
|
};
|
|
2654
2830
|
}
|
|
2655
2831
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2656
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowMobileWalletButtonComponent, isStandalone: true, selector: "lib-coinflow-mobile-wallet-button", inputs: { purchaseProps: "purchaseProps", route: "route", overlayDisplayOverride: "overlayDisplayOverride", alignItems: "alignItems" }, ngImport: i0, template: ` <div style="position: relative; height: 100%;">
|
|
2832
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowMobileWalletButtonComponent, isStandalone: true, selector: "lib-coinflow-mobile-wallet-button", inputs: { purchaseProps: "purchaseProps", route: "route", overlayDisplayOverride: "overlayDisplayOverride", alignItems: "alignItems" }, viewQueries: [{ propertyName: "iframeComponent", first: true, predicate: CoinflowIFrameComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: ` <div style="position: relative; height: 100%;">
|
|
2657
2833
|
<div
|
|
2658
2834
|
[style.background-color]="purchaseProps.color"
|
|
2659
2835
|
[style.display]="overlayDisplayOverride ?? display"
|
|
@@ -2711,6 +2887,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
2711
2887
|
type: Input
|
|
2712
2888
|
}], alignItems: [{
|
|
2713
2889
|
type: Input
|
|
2890
|
+
}], iframeComponent: [{
|
|
2891
|
+
type: ViewChild,
|
|
2892
|
+
args: [CoinflowIFrameComponent]
|
|
2714
2893
|
}] } });
|
|
2715
2894
|
|
|
2716
2895
|
class CoinflowApplePayButtonComponent {
|
|
@@ -2981,5 +3160,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
2981
3160
|
* Generated bundle index. Do not edit.
|
|
2982
3161
|
*/
|
|
2983
3162
|
|
|
2984
|
-
export { BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_TYPE_MAPPING, COMPACT_SKELETON_HEIGHT_PX, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, FORTER_TOKEN_HEADER, IFrameMessageMethods, INLINE_SKELETON_HEIGHT_PX, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SKELETON_BOX_STYLE, SKELETON_FADE_MS, SKELETON_LAYOUTS, SKELETON_PULSE_ANIMATION_NAME, SKELETON_ROOT_PADDING_PX, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, captureForterToken, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getIframeConfig, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, paymentMethodLabels, recordFrontendError, setTokenExScriptTag, shouldStackSkeleton };
|
|
3163
|
+
export { BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_FIELD_ERROR_MESSAGES, CARD_TYPE_MAPPING, COMPACT_SKELETON_HEIGHT_PX, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, FORTER_TOKEN_HEADER, IFrameMessageMethods, INLINE_SKELETON_HEIGHT_PX, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SKELETON_BOX_STYLE, SKELETON_FADE_MS, SKELETON_LAYOUTS, SKELETON_PULSE_ANIMATION_NAME, SKELETON_ROOT_PADDING_PX, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, canReuseLinkToken, captureForterToken, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCardFieldInputEvents, getCardFieldValidationError, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getIframeConfig, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, parseCachedLinkToken, paymentMethodLabels, recordFrontendError, serializeCachedLinkToken, setTokenExScriptTag, shouldStackSkeleton };
|
|
2985
3164
|
//# sourceMappingURL=coinflowlabs-angular.mjs.map
|