@coinflowlabs/angular 1.15.2 → 2.0.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 +4 -0
- package/fesm2022/coinflowlabs-angular.mjs +82 -444
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/coinflowlabs-angular.d.ts +117 -164
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, HostListener, ViewChild, Output, Input, Component
|
|
2
|
+
import { EventEmitter, HostListener, ViewChild, Output, Input, Component } from '@angular/core';
|
|
3
3
|
import * as SolanaWeb3Js from '@solana/web3.js';
|
|
4
4
|
import base58Imported from 'bs58';
|
|
5
5
|
import LZString from 'lz-string';
|
|
@@ -62,6 +62,12 @@ var ThreeDsChallengePreference;
|
|
|
62
62
|
ThreeDsChallengePreference["Frictionless"] = "Frictionless";
|
|
63
63
|
ThreeDsChallengePreference["Challenge"] = "Challenge";
|
|
64
64
|
})(ThreeDsChallengePreference || (ThreeDsChallengePreference = {}));
|
|
65
|
+
var CardFunding;
|
|
66
|
+
(function (CardFunding) {
|
|
67
|
+
CardFunding["debit"] = "debit";
|
|
68
|
+
CardFunding["credit"] = "credit";
|
|
69
|
+
CardFunding["prepaid"] = "prepaid";
|
|
70
|
+
})(CardFunding || (CardFunding = {}));
|
|
65
71
|
var PaymentMethods;
|
|
66
72
|
(function (PaymentMethods) {
|
|
67
73
|
PaymentMethods["card"] = "card";
|
|
@@ -72,6 +78,7 @@ var PaymentMethods;
|
|
|
72
78
|
PaymentMethods["usdc"] = "usdc";
|
|
73
79
|
PaymentMethods["googlePay"] = "googlePay";
|
|
74
80
|
PaymentMethods["applePay"] = "applePay";
|
|
81
|
+
PaymentMethods["paze"] = "paze";
|
|
75
82
|
PaymentMethods["credits"] = "credits";
|
|
76
83
|
PaymentMethods["crypto"] = "crypto";
|
|
77
84
|
PaymentMethods["wire"] = "wire";
|
|
@@ -90,6 +97,7 @@ const paymentMethodLabels = {
|
|
|
90
97
|
[PaymentMethods.usdc]: 'USDC',
|
|
91
98
|
[PaymentMethods.googlePay]: 'Google Pay',
|
|
92
99
|
[PaymentMethods.applePay]: 'Apple Pay',
|
|
100
|
+
[PaymentMethods.paze]: 'Paze',
|
|
93
101
|
[PaymentMethods.credits]: 'Credits',
|
|
94
102
|
[PaymentMethods.crypto]: 'Crypto',
|
|
95
103
|
[PaymentMethods.wire]: 'Wire Transfer',
|
|
@@ -581,7 +589,7 @@ class CoinflowUtils {
|
|
|
581
589
|
return 'http://localhost:5000';
|
|
582
590
|
return `https://api-${env}.coinflow.cash`;
|
|
583
591
|
}
|
|
584
|
-
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, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }) {
|
|
592
|
+
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, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, allowedCardFunding, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }) {
|
|
585
593
|
const prefix = routePrefix
|
|
586
594
|
? `/${routePrefix}/${blockchain}`
|
|
587
595
|
: `/${blockchain}`;
|
|
@@ -703,6 +711,9 @@ class CoinflowUtils {
|
|
|
703
711
|
url.searchParams.append('origins', LZString.compressToEncodedURIComponent(JSON.stringify(origins)));
|
|
704
712
|
if (allowedPaymentMethods)
|
|
705
713
|
url.searchParams.append('allowedPaymentMethods', allowedPaymentMethods.join(','));
|
|
714
|
+
if (allowedCardFunding?.length) {
|
|
715
|
+
url.searchParams.append('allowedCardFunding', allowedCardFunding.join(','));
|
|
716
|
+
}
|
|
706
717
|
if (depositAmounts)
|
|
707
718
|
url.searchParams.append('depositAmounts', depositAmounts.join(','));
|
|
708
719
|
if (threeDsChallengePreference)
|
|
@@ -1203,172 +1214,6 @@ class EventBus {
|
|
|
1203
1214
|
}
|
|
1204
1215
|
}
|
|
1205
1216
|
|
|
1206
|
-
// Type definitions for TokenEx iframe integration
|
|
1207
|
-
/// <reference path="./TokenEx.global.d.ts" />
|
|
1208
|
-
const TokenExCardNumberIframeId = 'tokenExCardNumber';
|
|
1209
|
-
const TokenExCvvContainerID = 'tokenExCardCvv';
|
|
1210
|
-
const CARD_TYPE_MAPPING = {
|
|
1211
|
-
[CardType.VISA]: 'visa',
|
|
1212
|
-
[CardType.MASTERCARD]: 'masterCard',
|
|
1213
|
-
[CardType.AMEX]: 'americanExpress',
|
|
1214
|
-
[CardType.DISCOVER]: 'discover',
|
|
1215
|
-
};
|
|
1216
|
-
|
|
1217
|
-
async function getIframeConfig(args) {
|
|
1218
|
-
const { token, origins, env } = args;
|
|
1219
|
-
return new Promise((resolve, reject) => {
|
|
1220
|
-
fetch(new CoinflowUtils(env).url + '/api/tokenize/iframe/config', {
|
|
1221
|
-
method: 'POST',
|
|
1222
|
-
headers: {
|
|
1223
|
-
'Content-Type': 'application/json',
|
|
1224
|
-
},
|
|
1225
|
-
body: JSON.stringify({
|
|
1226
|
-
origins,
|
|
1227
|
-
token,
|
|
1228
|
-
merchantId: 'merchantId' in args ? args.merchantId : undefined,
|
|
1229
|
-
checkoutJwt: 'checkoutJwt' in args ? args.checkoutJwt : undefined,
|
|
1230
|
-
}),
|
|
1231
|
-
})
|
|
1232
|
-
.then(async (res) => {
|
|
1233
|
-
resolve((await res.json()));
|
|
1234
|
-
})
|
|
1235
|
-
.catch(e => reject(e));
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
function setTokenExScriptTag({ env, setTokenExScriptLoaded, }) {
|
|
1239
|
-
const scriptTagId = 'tokenex-script';
|
|
1240
|
-
if (document.head.querySelector(`#${scriptTagId}`)) {
|
|
1241
|
-
setTokenExScriptLoaded(true);
|
|
1242
|
-
}
|
|
1243
|
-
const sdkScriptTag = document.createElement('script');
|
|
1244
|
-
sdkScriptTag.src =
|
|
1245
|
-
env === 'prod'
|
|
1246
|
-
? 'https://htp.tokenex.com/iframe/iframe-v3.min.js'
|
|
1247
|
-
: 'https://test-htp.tokenex.com/iframe/iframe-v3.min.js';
|
|
1248
|
-
sdkScriptTag.id = scriptTagId;
|
|
1249
|
-
document.head.appendChild(sdkScriptTag);
|
|
1250
|
-
document.getElementById(scriptTagId).addEventListener('load', () => {
|
|
1251
|
-
console.log('Setting tokenExScriptLoaded to true!');
|
|
1252
|
-
setTokenExScriptLoaded(true);
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
function loadIframe({ iframe, setCachedToken, setLoaded, }) {
|
|
1256
|
-
const tokenize = async () => {
|
|
1257
|
-
iframe.tokenize();
|
|
1258
|
-
return await new Promise((resolve, reject) => {
|
|
1259
|
-
iframe.on('tokenize', (data) => {
|
|
1260
|
-
setCachedToken(data.token);
|
|
1261
|
-
resolve(data);
|
|
1262
|
-
});
|
|
1263
|
-
iframe.on('validate', (data) => {
|
|
1264
|
-
// noinspection PointlessBooleanExpressionJS
|
|
1265
|
-
const isInvalid = !data.isValid || data.isCvvValid === false;
|
|
1266
|
-
if (isInvalid)
|
|
1267
|
-
reject(data);
|
|
1268
|
-
});
|
|
1269
|
-
});
|
|
1270
|
-
};
|
|
1271
|
-
iframe.on('change', () => setCachedToken(undefined));
|
|
1272
|
-
iframe.on('cvvChange', () => setCachedToken(undefined));
|
|
1273
|
-
iframe.on('load', () => {
|
|
1274
|
-
setTimeout(() => setLoaded(true), 350);
|
|
1275
|
-
const el = document.querySelector('#tx_iframe_tokenExCardNumber');
|
|
1276
|
-
if (el) {
|
|
1277
|
-
// noinspection JSDeprecatedSymbols
|
|
1278
|
-
el.scrolling = 'no';
|
|
1279
|
-
}
|
|
1280
|
-
});
|
|
1281
|
-
iframe.on('focus', () => {
|
|
1282
|
-
iframe.focus();
|
|
1283
|
-
});
|
|
1284
|
-
iframe.on('cvvFocus', () => {
|
|
1285
|
-
iframe.cvvFocus();
|
|
1286
|
-
});
|
|
1287
|
-
setLoaded(false);
|
|
1288
|
-
iframe.load();
|
|
1289
|
-
return { ...iframe, tokenize };
|
|
1290
|
-
}
|
|
1291
|
-
async function doInitializeCvvOnlyTokenExIframe(args) {
|
|
1292
|
-
const { token, cardType } = args;
|
|
1293
|
-
return await doInitialize(TokenExCvvContainerID, args, {
|
|
1294
|
-
cvvOnly: true,
|
|
1295
|
-
cvv: true,
|
|
1296
|
-
cvvContainerID: TokenExCvvContainerID,
|
|
1297
|
-
placeholder: 'CVV',
|
|
1298
|
-
token,
|
|
1299
|
-
cardType: CARD_TYPE_MAPPING[cardType],
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
async function doInitializeTokenExIframe(args) {
|
|
1303
|
-
return await doInitialize(TokenExCardNumberIframeId, args, {
|
|
1304
|
-
cvv: true,
|
|
1305
|
-
cvvContainerID: TokenExCvvContainerID,
|
|
1306
|
-
cvvPlaceholder: 'CVV',
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
async function doInitializeTokenExCardOnlyIframe(args) {
|
|
1310
|
-
return await doInitialize(TokenExCardNumberIframeId, args, { cvv: false });
|
|
1311
|
-
}
|
|
1312
|
-
async function doInitialize(id, args, configOverrides) {
|
|
1313
|
-
const { tokenExScriptLoaded, css, debug, font, setCachedToken, setLoaded } = args;
|
|
1314
|
-
if (!tokenExScriptLoaded && typeof TokenEx === 'undefined') {
|
|
1315
|
-
console.warn('Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script');
|
|
1316
|
-
return;
|
|
1317
|
-
}
|
|
1318
|
-
const iframeConfig = await getIframeConfig({
|
|
1319
|
-
...args,
|
|
1320
|
-
token: configOverrides.token,
|
|
1321
|
-
});
|
|
1322
|
-
const { styles } = getStyles(css);
|
|
1323
|
-
const config = {
|
|
1324
|
-
...iframeConfig,
|
|
1325
|
-
placeholder: '0000 0000 0000 0000',
|
|
1326
|
-
enablePrettyFormat: true,
|
|
1327
|
-
styles,
|
|
1328
|
-
font,
|
|
1329
|
-
debug: debug ?? false,
|
|
1330
|
-
...configOverrides,
|
|
1331
|
-
};
|
|
1332
|
-
const iframe = TokenEx.Iframe(id, config);
|
|
1333
|
-
return loadIframe({ iframe, setCachedToken, setLoaded });
|
|
1334
|
-
}
|
|
1335
|
-
function getStyles(s) {
|
|
1336
|
-
const css = JSON.parse(s);
|
|
1337
|
-
const styles = {
|
|
1338
|
-
base: CSSPropertiesToComponent(css.base),
|
|
1339
|
-
focus: CSSPropertiesToComponent(css.focus),
|
|
1340
|
-
error: CSSPropertiesToComponent(css.error),
|
|
1341
|
-
placeholder: CSSPropertiesToComponent(css.placeholder),
|
|
1342
|
-
cvv: {
|
|
1343
|
-
base: CSSPropertiesToComponent(css.cvv?.base),
|
|
1344
|
-
focus: CSSPropertiesToComponent(css.cvv?.focus),
|
|
1345
|
-
error: CSSPropertiesToComponent(css.cvv?.error),
|
|
1346
|
-
placeholder: CSSPropertiesToComponent(css?.placeholder),
|
|
1347
|
-
},
|
|
1348
|
-
};
|
|
1349
|
-
return { styles };
|
|
1350
|
-
}
|
|
1351
|
-
function CSSPropertiesToComponent(dict) {
|
|
1352
|
-
if (!dict)
|
|
1353
|
-
return '';
|
|
1354
|
-
if (typeof dict === 'string')
|
|
1355
|
-
return dict;
|
|
1356
|
-
let str = '';
|
|
1357
|
-
for (const [key, value] of Object.entries(dict)) {
|
|
1358
|
-
let clo = '';
|
|
1359
|
-
key.split('').forEach(lt => {
|
|
1360
|
-
if (lt.toUpperCase() === lt) {
|
|
1361
|
-
clo += '-' + lt.toLowerCase();
|
|
1362
|
-
}
|
|
1363
|
-
else {
|
|
1364
|
-
clo += lt;
|
|
1365
|
-
}
|
|
1366
|
-
});
|
|
1367
|
-
str += clo + ':' + value + ';';
|
|
1368
|
-
}
|
|
1369
|
-
return str;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
1217
|
/**
|
|
1373
1218
|
* Single source of truth for the card-entry responsive layout.
|
|
1374
1219
|
*
|
|
@@ -1734,6 +1579,8 @@ const CARD_FIELD_ERROR_MESSAGES = {
|
|
|
1734
1579
|
expiration: 'Expiration is invalid. Please double check information.',
|
|
1735
1580
|
cvv: 'CVV is invalid. Please double check information.',
|
|
1736
1581
|
cvvEmpty: 'Please enter your CVV to proceed.',
|
|
1582
|
+
invalidCardToken: 'Card token is invalid. Please add a new card',
|
|
1583
|
+
cardEntryUnavailable: 'Card entry is unavailable. Please re-enter your card details.',
|
|
1737
1584
|
};
|
|
1738
1585
|
function getCardFieldValidationError({ cardError, expirationError, cvvError, cvvEmpty, isCvvOnly, }) {
|
|
1739
1586
|
if (cardError)
|
|
@@ -1993,6 +1840,39 @@ function getCoinflowPurchaseHeaders() {
|
|
|
1993
1840
|
};
|
|
1994
1841
|
}
|
|
1995
1842
|
|
|
1843
|
+
// Wire format of the fraud SDKs' `x-device-id` header: base64url(JSON {v, deviceId, sessionId,
|
|
1844
|
+
// purchaseToken}), unpadded. The iOS / Android / React Native / Flutter SDKs encode it
|
|
1845
|
+
// independently and must match the golden vector in this package's tests.
|
|
1846
|
+
class CoinflowFraudProtectionHeader {
|
|
1847
|
+
static { this.payloadVersion = 1; }
|
|
1848
|
+
// Three tokens; Forter caps at ~1024 chars. Bounds an abusive header before decoding.
|
|
1849
|
+
static { this.maxLength = 8192; }
|
|
1850
|
+
// Returns null when no provider produced a token or the header would exceed maxLength, so
|
|
1851
|
+
// callers omit it rather than send one the API rejects.
|
|
1852
|
+
static encode({ deviceId, sessionId, purchaseToken, }) {
|
|
1853
|
+
if (!deviceId && !sessionId && !purchaseToken)
|
|
1854
|
+
return null;
|
|
1855
|
+
const json = JSON.stringify({
|
|
1856
|
+
v: this.payloadVersion,
|
|
1857
|
+
deviceId: deviceId || null,
|
|
1858
|
+
sessionId: sessionId || null,
|
|
1859
|
+
purchaseToken: purchaseToken || null,
|
|
1860
|
+
});
|
|
1861
|
+
const header = this.base64UrlEncode(new TextEncoder().encode(json));
|
|
1862
|
+
return header.length > this.maxLength ? null : header;
|
|
1863
|
+
}
|
|
1864
|
+
static base64UrlEncode(bytes) {
|
|
1865
|
+
let binary = '';
|
|
1866
|
+
// Index loop: the React Native SDK compiles this file for ES5, which can't iterate a Uint8Array.
|
|
1867
|
+
for (let i = 0; i < bytes.length; i++)
|
|
1868
|
+
binary += String.fromCharCode(bytes[i]);
|
|
1869
|
+
return btoa(binary)
|
|
1870
|
+
.replace(/\+/g, '-')
|
|
1871
|
+
.replace(/\//g, '_')
|
|
1872
|
+
.replace(/=+$/, '');
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1996
1876
|
const NSURE_APP_ID = '9JBW2RHC7JNJN8ZQ';
|
|
1997
1877
|
const PROTECTION_SESSION_PROJECT_IDS = {
|
|
1998
1878
|
prod: '315da543-c486-435a-aa21-53844c469822',
|
|
@@ -2183,8 +2063,8 @@ class CoinflowIFrameComponent {
|
|
|
2183
2063
|
this.isLoading = false;
|
|
2184
2064
|
this.onLoad?.();
|
|
2185
2065
|
}
|
|
2186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2067
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowIFrameComponent, isStandalone: true, selector: "lib-coinflow-iframe", inputs: { iframeProps: "iframeProps", messageHandlers: "messageHandlers", onLoad: "onLoad", waitForLoadedMessage: "waitForLoadedMessage" }, outputs: { messageEvent: "messageEvent" }, host: { listeners: { "window:message": "onPostMessage($event)" } }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: ` <iframe
|
|
2188
2068
|
width="100%"
|
|
2189
2069
|
height="100%"
|
|
2190
2070
|
#iframe
|
|
@@ -2197,7 +2077,7 @@ class CoinflowIFrameComponent {
|
|
|
2197
2077
|
(load)="handleIframeLoad()"
|
|
2198
2078
|
></iframe>`, isInline: true }); }
|
|
2199
2079
|
}
|
|
2200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
|
|
2201
2081
|
type: Component,
|
|
2202
2082
|
args: [{
|
|
2203
2083
|
selector: 'lib-coinflow-iframe',
|
|
@@ -2249,10 +2129,10 @@ class CoinflowPurchaseComponent {
|
|
|
2249
2129
|
handleHeightChangeId,
|
|
2250
2130
|
};
|
|
2251
2131
|
}
|
|
2252
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2253
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowPurchaseComponent, isStandalone: true, selector: "lib-coinflow-purchase", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="purchaseProps?.onLoad" [waitForLoadedMessage]="true"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
2254
2134
|
}
|
|
2255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
|
|
2256
2136
|
type: Component,
|
|
2257
2137
|
args: [{
|
|
2258
2138
|
selector: 'lib-coinflow-purchase',
|
|
@@ -2265,10 +2145,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
2265
2145
|
}] } });
|
|
2266
2146
|
|
|
2267
2147
|
class CoinflowPurchaseHistoryComponent {
|
|
2268
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2269
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2149
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
|
|
2270
2150
|
}
|
|
2271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
|
|
2272
2152
|
type: Component,
|
|
2273
2153
|
args: [{
|
|
2274
2154
|
selector: 'lib-coinflow-purchase-history',
|
|
@@ -2279,10 +2159,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
2279
2159
|
}] });
|
|
2280
2160
|
|
|
2281
2161
|
class CoinflowPurchaseProtectionComponent {
|
|
2282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2283
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2163
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
|
|
2284
2164
|
}
|
|
2285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
|
|
2286
2166
|
type: Component,
|
|
2287
2167
|
args: [{
|
|
2288
2168
|
selector: 'lib-coinflow-purchase-protection',
|
|
@@ -2307,10 +2187,10 @@ class CoinflowWithdrawComponent {
|
|
|
2307
2187
|
handleHeightChangeId,
|
|
2308
2188
|
};
|
|
2309
2189
|
}
|
|
2310
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2311
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2191
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowWithdrawComponent, isStandalone: true, selector: "lib-coinflow-withdraw", inputs: { withdrawProps: "withdrawProps" }, ngImport: i0, template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="withdrawProps?.onLoad"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
2312
2192
|
}
|
|
2313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
|
|
2314
2194
|
type: Component,
|
|
2315
2195
|
args: [{
|
|
2316
2196
|
selector: 'lib-coinflow-withdraw',
|
|
@@ -2323,10 +2203,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
2323
2203
|
}] } });
|
|
2324
2204
|
|
|
2325
2205
|
class CoinflowWithdrawHistoryComponent {
|
|
2326
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2327
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2207
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
|
|
2328
2208
|
}
|
|
2329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
|
|
2330
2210
|
type: Component,
|
|
2331
2211
|
args: [{
|
|
2332
2212
|
selector: 'lib-coinflow-withdraw-history',
|
|
@@ -2336,248 +2216,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
2336
2216
|
}]
|
|
2337
2217
|
}] });
|
|
2338
2218
|
|
|
2339
|
-
class CardFormService {
|
|
2340
|
-
constructor() {
|
|
2341
|
-
this.loaded = false;
|
|
2342
|
-
this.tokenExIframe = undefined;
|
|
2343
|
-
}
|
|
2344
|
-
setTokenExIframe(iframe) {
|
|
2345
|
-
this.tokenExIframe = iframe;
|
|
2346
|
-
}
|
|
2347
|
-
setCachedToken() { }
|
|
2348
|
-
setLoaded(input) {
|
|
2349
|
-
this.loaded = input;
|
|
2350
|
-
}
|
|
2351
|
-
async initializeCvvOnlyTokenExIframe(args) {
|
|
2352
|
-
const iframe = await doInitializeCvvOnlyTokenExIframe({
|
|
2353
|
-
...args,
|
|
2354
|
-
tokenExScriptLoaded: true,
|
|
2355
|
-
setCachedToken: this.setCachedToken.bind(this),
|
|
2356
|
-
setLoaded: this.setLoaded.bind(this),
|
|
2357
|
-
});
|
|
2358
|
-
this.setTokenExIframe(iframe);
|
|
2359
|
-
if (iframe)
|
|
2360
|
-
iframe.load();
|
|
2361
|
-
return iframe;
|
|
2362
|
-
}
|
|
2363
|
-
async initializeTokenExIframe(args) {
|
|
2364
|
-
console.log('initializeTokenExIframe');
|
|
2365
|
-
const iframe = await doInitializeTokenExIframe({
|
|
2366
|
-
...args,
|
|
2367
|
-
tokenExScriptLoaded: true,
|
|
2368
|
-
setCachedToken: this.setCachedToken.bind(this),
|
|
2369
|
-
setLoaded: this.setLoaded.bind(this),
|
|
2370
|
-
});
|
|
2371
|
-
console.log('iframe', iframe);
|
|
2372
|
-
this.setTokenExIframe(iframe);
|
|
2373
|
-
if (iframe)
|
|
2374
|
-
iframe.load();
|
|
2375
|
-
console.log('LOADED');
|
|
2376
|
-
return iframe;
|
|
2377
|
-
}
|
|
2378
|
-
async initializeTokenExCardOnlyIframe(args) {
|
|
2379
|
-
const iframe = await doInitializeTokenExCardOnlyIframe({
|
|
2380
|
-
...args,
|
|
2381
|
-
tokenExScriptLoaded: true,
|
|
2382
|
-
setCachedToken: this.setCachedToken.bind(this),
|
|
2383
|
-
setLoaded: this.setLoaded.bind(this),
|
|
2384
|
-
});
|
|
2385
|
-
this.setTokenExIframe(iframe);
|
|
2386
|
-
if (iframe)
|
|
2387
|
-
iframe.load();
|
|
2388
|
-
return iframe;
|
|
2389
|
-
}
|
|
2390
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2391
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
|
|
2392
|
-
}
|
|
2393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, decorators: [{
|
|
2394
|
-
type: Injectable,
|
|
2395
|
-
args: [{
|
|
2396
|
-
providedIn: 'root',
|
|
2397
|
-
}]
|
|
2398
|
-
}] });
|
|
2399
|
-
|
|
2400
|
-
class CoinflowCardNumberInput {
|
|
2401
|
-
constructor() {
|
|
2402
|
-
this.cardFormService = inject(CardFormService);
|
|
2403
|
-
this.iframe = undefined;
|
|
2404
|
-
this.TokenExCardNumberIframeId = TokenExCardNumberIframeId;
|
|
2405
|
-
}
|
|
2406
|
-
onScriptLoaded() {
|
|
2407
|
-
this.cardFormService
|
|
2408
|
-
.initializeTokenExIframe({
|
|
2409
|
-
...this.args,
|
|
2410
|
-
css: JSON.stringify(this.args.css),
|
|
2411
|
-
})
|
|
2412
|
-
.then(iframe => (this.iframe = iframe))
|
|
2413
|
-
.catch(e => console.error(e));
|
|
2414
|
-
}
|
|
2415
|
-
initializeTokenEx() {
|
|
2416
|
-
setTokenExScriptTag({
|
|
2417
|
-
env: this.args.env,
|
|
2418
|
-
setTokenExScriptLoaded: this.onScriptLoaded.bind(this),
|
|
2419
|
-
});
|
|
2420
|
-
}
|
|
2421
|
-
reinitialize() {
|
|
2422
|
-
this.iframe = undefined;
|
|
2423
|
-
this.initializeTokenEx();
|
|
2424
|
-
}
|
|
2425
|
-
ngOnInit() {
|
|
2426
|
-
this.initializeTokenEx();
|
|
2427
|
-
}
|
|
2428
|
-
ngOnDestroy() {
|
|
2429
|
-
this.iframe = undefined;
|
|
2430
|
-
}
|
|
2431
|
-
tokenize() {
|
|
2432
|
-
return this.iframe.tokenize();
|
|
2433
|
-
}
|
|
2434
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2435
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
|
|
2436
|
-
}
|
|
2437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
|
|
2438
|
-
type: Component,
|
|
2439
|
-
args: [{
|
|
2440
|
-
selector: 'lib-coinflow-card-number-input',
|
|
2441
|
-
standalone: true,
|
|
2442
|
-
imports: [],
|
|
2443
|
-
template: '<div id="{{TokenExCardNumberIframeId}}"></div>',
|
|
2444
|
-
}]
|
|
2445
|
-
}], propDecorators: { args: [{
|
|
2446
|
-
type: Input
|
|
2447
|
-
}] } });
|
|
2448
|
-
|
|
2449
|
-
class CoinflowCardNumberOnlyInput {
|
|
2450
|
-
constructor() {
|
|
2451
|
-
this.cardFormService = inject(CardFormService);
|
|
2452
|
-
this.iframe = undefined;
|
|
2453
|
-
this.TokenExCardNumberIframeId = TokenExCardNumberIframeId;
|
|
2454
|
-
}
|
|
2455
|
-
onScriptLoaded() {
|
|
2456
|
-
this.cardFormService
|
|
2457
|
-
.initializeTokenExCardOnlyIframe({
|
|
2458
|
-
...this.args,
|
|
2459
|
-
css: JSON.stringify(this.args.css),
|
|
2460
|
-
})
|
|
2461
|
-
.then(iframe => (this.iframe = iframe))
|
|
2462
|
-
.catch(e => console.error(e));
|
|
2463
|
-
}
|
|
2464
|
-
initializeTokenEx() {
|
|
2465
|
-
setTokenExScriptTag({
|
|
2466
|
-
env: this.args.env,
|
|
2467
|
-
setTokenExScriptLoaded: this.onScriptLoaded.bind(this),
|
|
2468
|
-
});
|
|
2469
|
-
}
|
|
2470
|
-
reinitialize() {
|
|
2471
|
-
this.iframe = undefined;
|
|
2472
|
-
this.initializeTokenEx();
|
|
2473
|
-
}
|
|
2474
|
-
ngOnInit() {
|
|
2475
|
-
this.initializeTokenEx();
|
|
2476
|
-
}
|
|
2477
|
-
ngOnDestroy() {
|
|
2478
|
-
this.iframe = undefined;
|
|
2479
|
-
}
|
|
2480
|
-
tokenize() {
|
|
2481
|
-
return this.iframe.tokenize();
|
|
2482
|
-
}
|
|
2483
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2484
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
|
|
2485
|
-
}
|
|
2486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
|
|
2487
|
-
type: Component,
|
|
2488
|
-
args: [{
|
|
2489
|
-
selector: 'lib-coinflow-card-number-only-input',
|
|
2490
|
-
standalone: true,
|
|
2491
|
-
imports: [],
|
|
2492
|
-
template: '<div id="{{TokenExCardNumberIframeId}}"></div>',
|
|
2493
|
-
}]
|
|
2494
|
-
}], propDecorators: { args: [{
|
|
2495
|
-
type: Input
|
|
2496
|
-
}] } });
|
|
2497
|
-
|
|
2498
|
-
class CoinflowCvvInputComponent {
|
|
2499
|
-
constructor() {
|
|
2500
|
-
this.TokenExCvvContainerID = TokenExCvvContainerID;
|
|
2501
|
-
}
|
|
2502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2503
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
|
|
2504
|
-
}
|
|
2505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
|
|
2506
|
-
type: Component,
|
|
2507
|
-
args: [{
|
|
2508
|
-
selector: 'lib-coinflow-cvv-input',
|
|
2509
|
-
standalone: true,
|
|
2510
|
-
imports: [],
|
|
2511
|
-
template: '<div id="{{TokenExCvvContainerID}}" ></div>',
|
|
2512
|
-
}]
|
|
2513
|
-
}] });
|
|
2514
|
-
|
|
2515
|
-
class CoinflowCvvOnlyInputComponent {
|
|
2516
|
-
constructor() {
|
|
2517
|
-
this.cardFormService = inject(CardFormService);
|
|
2518
|
-
this.iframe = undefined;
|
|
2519
|
-
this.TokenExCvvContainerID = TokenExCvvContainerID;
|
|
2520
|
-
}
|
|
2521
|
-
onScriptLoaded() {
|
|
2522
|
-
this.cardFormService
|
|
2523
|
-
.initializeCvvOnlyTokenExIframe({
|
|
2524
|
-
...this.args,
|
|
2525
|
-
css: JSON.stringify(this.args.css),
|
|
2526
|
-
})
|
|
2527
|
-
.then(iframe => {
|
|
2528
|
-
this.iframe = iframe;
|
|
2529
|
-
})
|
|
2530
|
-
.catch(e => console.error(e));
|
|
2531
|
-
}
|
|
2532
|
-
cleanup() {
|
|
2533
|
-
if (this.iframe) {
|
|
2534
|
-
const iframeElement = document.querySelector(`#${TokenExCvvContainerID}`);
|
|
2535
|
-
if (iframeElement)
|
|
2536
|
-
iframeElement.innerHTML = '';
|
|
2537
|
-
this.iframe = undefined;
|
|
2538
|
-
}
|
|
2539
|
-
}
|
|
2540
|
-
initializeTokenEx() {
|
|
2541
|
-
setTokenExScriptTag({
|
|
2542
|
-
env: this.args.env,
|
|
2543
|
-
setTokenExScriptLoaded: this.onScriptLoaded.bind(this),
|
|
2544
|
-
});
|
|
2545
|
-
}
|
|
2546
|
-
ngOnChanges(changes) {
|
|
2547
|
-
if (changes.args && !changes.args.firstChange) {
|
|
2548
|
-
this.reinitialize();
|
|
2549
|
-
}
|
|
2550
|
-
}
|
|
2551
|
-
reinitialize() {
|
|
2552
|
-
this.cleanup();
|
|
2553
|
-
setTimeout(() => {
|
|
2554
|
-
this.initializeTokenEx();
|
|
2555
|
-
}, 500);
|
|
2556
|
-
}
|
|
2557
|
-
ngOnInit() {
|
|
2558
|
-
this.initializeTokenEx();
|
|
2559
|
-
}
|
|
2560
|
-
ngOnDestroy() {
|
|
2561
|
-
this.iframe = undefined;
|
|
2562
|
-
}
|
|
2563
|
-
tokenize() {
|
|
2564
|
-
return this.iframe.tokenize();
|
|
2565
|
-
}
|
|
2566
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2567
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
|
|
2568
|
-
}
|
|
2569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
|
|
2570
|
-
type: Component,
|
|
2571
|
-
args: [{
|
|
2572
|
-
selector: 'lib-coinflow-cvv-only-input',
|
|
2573
|
-
standalone: true,
|
|
2574
|
-
imports: [],
|
|
2575
|
-
template: '<div id="{{TokenExCvvContainerID}}"></div>',
|
|
2576
|
-
}]
|
|
2577
|
-
}], propDecorators: { args: [{
|
|
2578
|
-
type: Input
|
|
2579
|
-
}] } });
|
|
2580
|
-
|
|
2581
2219
|
class CoinflowCardForm {
|
|
2582
2220
|
constructor(sanitizer, zone) {
|
|
2583
2221
|
this.sanitizer = sanitizer;
|
|
@@ -2769,8 +2407,8 @@ class CoinflowCardForm {
|
|
|
2769
2407
|
iframe.contentWindow.postMessage('tokenize', targetOrigin);
|
|
2770
2408
|
});
|
|
2771
2409
|
}
|
|
2772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2773
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowCardForm, deps: [{ token: i1.DomSanitizer }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: CoinflowCardForm, isStandalone: true, selector: "lib-coinflow-card-form", inputs: { args: "args" }, host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["cardFormIframe"], descendants: true, static: true }, { propertyName: "wrapperRef", first: true, predicate: ["wrapper"], descendants: true, static: true }], ngImport: i0, template: `<div
|
|
2774
2412
|
#wrapper
|
|
2775
2413
|
[style.position]="'relative'"
|
|
2776
2414
|
[style.width]="'100%'"
|
|
@@ -2804,7 +2442,7 @@ class CoinflowCardForm {
|
|
|
2804
2442
|
></iframe>
|
|
2805
2443
|
</div>`, isInline: true, styles: ["@keyframes coinflow-card-form-skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
2806
2444
|
}
|
|
2807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowCardForm, decorators: [{
|
|
2808
2446
|
type: Component,
|
|
2809
2447
|
args: [{ selector: 'lib-coinflow-card-form', standalone: true, imports: [NgStyle], template: `<div
|
|
2810
2448
|
#wrapper
|
|
@@ -2922,8 +2560,8 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
2922
2560
|
handleHeightChangeId,
|
|
2923
2561
|
};
|
|
2924
2562
|
}
|
|
2925
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2926
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2563
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2564
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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%;">
|
|
2927
2565
|
<div
|
|
2928
2566
|
[style.background-color]="purchaseProps.color"
|
|
2929
2567
|
[style.display]="overlayDisplayOverride ?? display"
|
|
@@ -2945,7 +2583,7 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
2945
2583
|
</div>
|
|
2946
2584
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
2947
2585
|
}
|
|
2948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
|
|
2949
2587
|
type: Component,
|
|
2950
2588
|
args: [{
|
|
2951
2589
|
selector: 'lib-coinflow-mobile-wallet-button',
|
|
@@ -2990,8 +2628,8 @@ class CoinflowApplePayButtonComponent {
|
|
|
2990
2628
|
fill() {
|
|
2991
2629
|
return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
|
|
2992
2630
|
}
|
|
2993
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2994
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2632
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
|
|
2995
2633
|
ng-if="iframeProps && messageHandlers"
|
|
2996
2634
|
[purchaseProps]="purchaseProps"
|
|
2997
2635
|
route="apple-pay"
|
|
@@ -3033,7 +2671,7 @@ class CoinflowApplePayButtonComponent {
|
|
|
3033
2671
|
</svg>
|
|
3034
2672
|
</lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
|
|
3035
2673
|
}
|
|
3036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
|
|
3037
2675
|
type: Component,
|
|
3038
2676
|
args: [{
|
|
3039
2677
|
selector: 'lib-coinflow-apple-pay-button',
|
|
@@ -3086,8 +2724,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
3086
2724
|
}] } });
|
|
3087
2725
|
|
|
3088
2726
|
class CoinflowGooglePayOverlayComponent {
|
|
3089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2728
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
|
|
3091
2729
|
@if (color === 'white') {
|
|
3092
2730
|
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
|
|
3093
2731
|
<g fill="none" fill-rule="evenodd">
|
|
@@ -3142,7 +2780,7 @@ class CoinflowGooglePayOverlayComponent {
|
|
|
3142
2780
|
}
|
|
3143
2781
|
`, isInline: true }); }
|
|
3144
2782
|
}
|
|
3145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
|
|
3146
2784
|
type: Component,
|
|
3147
2785
|
args: [{
|
|
3148
2786
|
selector: 'coinflow-google-pay-overlay',
|
|
@@ -3208,8 +2846,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
3208
2846
|
}] } });
|
|
3209
2847
|
|
|
3210
2848
|
class CoinflowGooglePayButtonComponent {
|
|
3211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3212
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2849
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2850
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
|
|
3213
2851
|
ng-if="iframeProps && messageHandlers"
|
|
3214
2852
|
[purchaseProps]="purchaseProps"
|
|
3215
2853
|
route="google-pay"
|
|
@@ -3221,7 +2859,7 @@ class CoinflowGooglePayButtonComponent {
|
|
|
3221
2859
|
></coinflow-google-pay-overlay>
|
|
3222
2860
|
</lib-coinflow-mobile-wallet-button> `, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }, { kind: "component", type: CoinflowGooglePayOverlayComponent, selector: "coinflow-google-pay-overlay", inputs: ["color"] }] }); }
|
|
3223
2861
|
}
|
|
3224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
|
|
3225
2863
|
type: Component,
|
|
3226
2864
|
args: [{
|
|
3227
2865
|
selector: 'lib-coinflow-google-pay-button',
|
|
@@ -3254,5 +2892,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
3254
2892
|
* Generated bundle index. Do not edit.
|
|
3255
2893
|
*/
|
|
3256
2894
|
|
|
3257
|
-
export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, 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,
|
|
2895
|
+
export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, 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, COMPACT_SKELETON_HEIGHT_PX, CardFunding, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowFraudProtectionHeader, 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, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, bankLinkCallbackParams, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, canReuseLinkToken, captureForterToken, getCardFieldInputEvents, getCardFieldValidationError, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, parseCachedLinkToken, paymentMethodLabels, recordFrontendError, resolveBankLinkCompletion, serializeCachedLinkToken, shouldStackSkeleton };
|
|
3258
2896
|
//# sourceMappingURL=coinflowlabs-angular.mjs.map
|