@coinflowlabs/angular 1.8.0 → 1.9.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.
|
@@ -10,6 +10,7 @@ var WithdrawCategory;
|
|
|
10
10
|
(function (WithdrawCategory) {
|
|
11
11
|
WithdrawCategory["USER"] = "user";
|
|
12
12
|
WithdrawCategory["BUSINESS"] = "business";
|
|
13
|
+
WithdrawCategory["FIRST_PARTY"] = "firstParty";
|
|
13
14
|
})(WithdrawCategory || (WithdrawCategory = {}));
|
|
14
15
|
var WithdrawSpeed;
|
|
15
16
|
(function (WithdrawSpeed) {
|
|
@@ -548,7 +549,7 @@ class CoinflowUtils {
|
|
|
548
549
|
return 'http://localhost:5000';
|
|
549
550
|
return `https://api-${env}.coinflow.cash`;
|
|
550
551
|
}
|
|
551
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, customPayInFees, 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, baseUrl, }) {
|
|
552
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, customPayInFees, 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, baseUrl, }) {
|
|
552
553
|
const prefix = routePrefix
|
|
553
554
|
? `/${routePrefix}/${blockchain}`
|
|
554
555
|
: `/${blockchain}`;
|
|
@@ -671,6 +672,10 @@ class CoinflowUtils {
|
|
|
671
672
|
url.searchParams.append('accountFundingTransaction', LZString.compressToEncodedURIComponent(JSON.stringify(accountFundingTransaction)));
|
|
672
673
|
if (allowedWithdrawSpeeds)
|
|
673
674
|
url.searchParams.append('allowedWithdrawSpeeds', allowedWithdrawSpeeds.join(','));
|
|
675
|
+
if (userLocation) {
|
|
676
|
+
url.searchParams.append('lat', userLocation.lat.toString());
|
|
677
|
+
url.searchParams.append('lng', userLocation.lng.toString());
|
|
678
|
+
}
|
|
674
679
|
return url.toString();
|
|
675
680
|
}
|
|
676
681
|
static getTransaction(props) {
|
|
@@ -1291,12 +1296,27 @@ function getProtectionSessionId() {
|
|
|
1291
1296
|
|
|
1292
1297
|
const DEVICE_ID_HEADER = 'x-device-id';
|
|
1293
1298
|
const SESSION_ID_HEADER = 'x-session-id';
|
|
1299
|
+
const REFERRER_HEADER = 'x-coinflow-referrer';
|
|
1294
1300
|
function getCoinflowProtectionHeaders() {
|
|
1295
1301
|
return {
|
|
1296
1302
|
[DEVICE_ID_HEADER]: getNSureDeviceId(),
|
|
1297
1303
|
[SESSION_ID_HEADER]: getProtectionSessionId(),
|
|
1298
1304
|
};
|
|
1299
1305
|
}
|
|
1306
|
+
function getReferrer() {
|
|
1307
|
+
try {
|
|
1308
|
+
return document.referrer || null;
|
|
1309
|
+
}
|
|
1310
|
+
catch {
|
|
1311
|
+
return null;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function getCoinflowPurchaseHeaders() {
|
|
1315
|
+
return {
|
|
1316
|
+
...getCoinflowProtectionHeaders(),
|
|
1317
|
+
[REFERRER_HEADER]: getReferrer(),
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1300
1320
|
|
|
1301
1321
|
const NSURE_APP_IDS = {
|
|
1302
1322
|
prod: '9JBW2RHC7JNJN8ZQ',
|
|
@@ -1406,13 +1426,13 @@ class CoinflowIFrameComponent {
|
|
|
1406
1426
|
this.isLoading = false;
|
|
1407
1427
|
this.onLoad?.();
|
|
1408
1428
|
}
|
|
1409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1410
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1429
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1430
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", 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
|
|
1411
1431
|
width="100%"
|
|
1412
1432
|
height="100%"
|
|
1413
1433
|
#iframe
|
|
1414
1434
|
scrolling="{{ iframeProps?.handleHeightChangeId ? 'no' : 'yes' }}"
|
|
1415
|
-
allow="payment;camera;clipboard-write"
|
|
1435
|
+
allow="payment;camera;clipboard-write;geolocation"
|
|
1416
1436
|
title="withdraw"
|
|
1417
1437
|
frameBorder="0"
|
|
1418
1438
|
[src]="dynamicUrl"
|
|
@@ -1420,7 +1440,7 @@ class CoinflowIFrameComponent {
|
|
|
1420
1440
|
(load)="handleIframeLoad()"
|
|
1421
1441
|
></iframe>`, isInline: true }); }
|
|
1422
1442
|
}
|
|
1423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
|
|
1424
1444
|
type: Component,
|
|
1425
1445
|
args: [{
|
|
1426
1446
|
selector: 'lib-coinflow-iframe',
|
|
@@ -1431,7 +1451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1431
1451
|
height="100%"
|
|
1432
1452
|
#iframe
|
|
1433
1453
|
scrolling="{{ iframeProps?.handleHeightChangeId ? 'no' : 'yes' }}"
|
|
1434
|
-
allow="payment;camera;clipboard-write"
|
|
1454
|
+
allow="payment;camera;clipboard-write;geolocation"
|
|
1435
1455
|
title="withdraw"
|
|
1436
1456
|
frameBorder="0"
|
|
1437
1457
|
[src]="dynamicUrl"
|
|
@@ -1472,10 +1492,10 @@ class CoinflowPurchaseComponent {
|
|
|
1472
1492
|
handleHeightChangeId,
|
|
1473
1493
|
};
|
|
1474
1494
|
}
|
|
1475
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1476
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1496
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", 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"] }] }); }
|
|
1477
1497
|
}
|
|
1478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
|
|
1479
1499
|
type: Component,
|
|
1480
1500
|
args: [{
|
|
1481
1501
|
selector: 'lib-coinflow-purchase',
|
|
@@ -1488,10 +1508,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1488
1508
|
}] } });
|
|
1489
1509
|
|
|
1490
1510
|
class CoinflowPurchaseHistoryComponent {
|
|
1491
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1492
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1512
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
|
|
1493
1513
|
}
|
|
1494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
|
|
1495
1515
|
type: Component,
|
|
1496
1516
|
args: [{
|
|
1497
1517
|
selector: 'lib-coinflow-purchase-history',
|
|
@@ -1502,10 +1522,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1502
1522
|
}] });
|
|
1503
1523
|
|
|
1504
1524
|
class CoinflowPurchaseProtectionComponent {
|
|
1505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1506
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1526
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
|
|
1507
1527
|
}
|
|
1508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
|
|
1509
1529
|
type: Component,
|
|
1510
1530
|
args: [{
|
|
1511
1531
|
selector: 'lib-coinflow-purchase-protection',
|
|
@@ -1530,10 +1550,10 @@ class CoinflowWithdrawComponent {
|
|
|
1530
1550
|
handleHeightChangeId,
|
|
1531
1551
|
};
|
|
1532
1552
|
}
|
|
1533
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1534
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1553
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1554
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", 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"] }] }); }
|
|
1535
1555
|
}
|
|
1536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
|
|
1537
1557
|
type: Component,
|
|
1538
1558
|
args: [{
|
|
1539
1559
|
selector: 'lib-coinflow-withdraw',
|
|
@@ -1546,10 +1566,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1546
1566
|
}] } });
|
|
1547
1567
|
|
|
1548
1568
|
class CoinflowWithdrawHistoryComponent {
|
|
1549
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1550
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1570
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
|
|
1551
1571
|
}
|
|
1552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
|
|
1553
1573
|
type: Component,
|
|
1554
1574
|
args: [{
|
|
1555
1575
|
selector: 'lib-coinflow-withdraw-history',
|
|
@@ -1610,10 +1630,10 @@ class CardFormService {
|
|
|
1610
1630
|
iframe.load();
|
|
1611
1631
|
return iframe;
|
|
1612
1632
|
}
|
|
1613
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1614
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1633
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1634
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
|
|
1615
1635
|
}
|
|
1616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, decorators: [{
|
|
1617
1637
|
type: Injectable,
|
|
1618
1638
|
args: [{
|
|
1619
1639
|
providedIn: 'root',
|
|
@@ -1654,10 +1674,10 @@ class CoinflowCardNumberInput {
|
|
|
1654
1674
|
tokenize() {
|
|
1655
1675
|
return this.iframe.tokenize();
|
|
1656
1676
|
}
|
|
1657
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1658
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1677
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1678
|
+
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 }); }
|
|
1659
1679
|
}
|
|
1660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
|
|
1661
1681
|
type: Component,
|
|
1662
1682
|
args: [{
|
|
1663
1683
|
selector: 'lib-coinflow-card-number-input',
|
|
@@ -1703,10 +1723,10 @@ class CoinflowCardNumberOnlyInput {
|
|
|
1703
1723
|
tokenize() {
|
|
1704
1724
|
return this.iframe.tokenize();
|
|
1705
1725
|
}
|
|
1706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1726
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1727
|
+
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 }); }
|
|
1708
1728
|
}
|
|
1709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
|
|
1710
1730
|
type: Component,
|
|
1711
1731
|
args: [{
|
|
1712
1732
|
selector: 'lib-coinflow-card-number-only-input',
|
|
@@ -1722,10 +1742,10 @@ class CoinflowCvvInputComponent {
|
|
|
1722
1742
|
constructor() {
|
|
1723
1743
|
this.TokenExCvvContainerID = TokenExCvvContainerID;
|
|
1724
1744
|
}
|
|
1725
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1726
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1745
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1746
|
+
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 }); }
|
|
1727
1747
|
}
|
|
1728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
|
|
1729
1749
|
type: Component,
|
|
1730
1750
|
args: [{
|
|
1731
1751
|
selector: 'lib-coinflow-cvv-input',
|
|
@@ -1786,10 +1806,10 @@ class CoinflowCvvOnlyInputComponent {
|
|
|
1786
1806
|
tokenize() {
|
|
1787
1807
|
return this.iframe.tokenize();
|
|
1788
1808
|
}
|
|
1789
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1790
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1809
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1810
|
+
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 }); }
|
|
1791
1811
|
}
|
|
1792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
|
|
1793
1813
|
type: Component,
|
|
1794
1814
|
args: [{
|
|
1795
1815
|
selector: 'lib-coinflow-cvv-only-input',
|
|
@@ -1875,11 +1895,12 @@ class CoinflowCardForm {
|
|
|
1875
1895
|
}
|
|
1876
1896
|
};
|
|
1877
1897
|
window.addEventListener('message', handler);
|
|
1878
|
-
|
|
1898
|
+
const targetOrigin = new URL(CoinflowUtils.getCoinflowBaseUrl(this.args.env)).origin;
|
|
1899
|
+
iframe.contentWindow.postMessage('tokenize', targetOrigin);
|
|
1879
1900
|
});
|
|
1880
1901
|
}
|
|
1881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1882
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardForm, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1903
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCardForm, isStandalone: true, selector: "lib-coinflow-card-form", inputs: { args: "args" }, viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["cardFormIframe"], descendants: true, static: true }], ngImport: i0, template: `<iframe
|
|
1883
1904
|
#cardFormIframe
|
|
1884
1905
|
[src]="url"
|
|
1885
1906
|
title="Card Form"
|
|
@@ -1892,7 +1913,7 @@ class CoinflowCardForm {
|
|
|
1892
1913
|
[style.transition]="'opacity 300ms linear'"
|
|
1893
1914
|
></iframe>`, isInline: true }); }
|
|
1894
1915
|
}
|
|
1895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardForm, decorators: [{
|
|
1896
1917
|
type: Component,
|
|
1897
1918
|
args: [{
|
|
1898
1919
|
selector: 'lib-coinflow-card-form',
|
|
@@ -1957,8 +1978,8 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1957
1978
|
handleHeightChangeId,
|
|
1958
1979
|
};
|
|
1959
1980
|
}
|
|
1960
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1961
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1981
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1982
|
+
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%;">
|
|
1962
1983
|
<div
|
|
1963
1984
|
[style.background-color]="purchaseProps.color"
|
|
1964
1985
|
[style.display]="overlayDisplayOverride ?? display"
|
|
@@ -1980,7 +2001,7 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1980
2001
|
</div>
|
|
1981
2002
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
1982
2003
|
}
|
|
1983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
|
|
1984
2005
|
type: Component,
|
|
1985
2006
|
args: [{
|
|
1986
2007
|
selector: 'lib-coinflow-mobile-wallet-button',
|
|
@@ -2022,8 +2043,8 @@ class CoinflowApplePayButtonComponent {
|
|
|
2022
2043
|
fill() {
|
|
2023
2044
|
return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
|
|
2024
2045
|
}
|
|
2025
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2026
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2046
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2047
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
|
|
2027
2048
|
ng-if="iframeProps && messageHandlers"
|
|
2028
2049
|
[purchaseProps]="purchaseProps"
|
|
2029
2050
|
route="apple-pay"
|
|
@@ -2065,7 +2086,7 @@ class CoinflowApplePayButtonComponent {
|
|
|
2065
2086
|
</svg>
|
|
2066
2087
|
</lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
|
|
2067
2088
|
}
|
|
2068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
|
|
2069
2090
|
type: Component,
|
|
2070
2091
|
args: [{
|
|
2071
2092
|
selector: 'lib-coinflow-apple-pay-button',
|
|
@@ -2118,8 +2139,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2118
2139
|
}] } });
|
|
2119
2140
|
|
|
2120
2141
|
class CoinflowGooglePayOverlayComponent {
|
|
2121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2122
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2143
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
|
|
2123
2144
|
@if (color === 'white') {
|
|
2124
2145
|
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
|
|
2125
2146
|
<g fill="none" fill-rule="evenodd">
|
|
@@ -2174,7 +2195,7 @@ class CoinflowGooglePayOverlayComponent {
|
|
|
2174
2195
|
}
|
|
2175
2196
|
`, isInline: true }); }
|
|
2176
2197
|
}
|
|
2177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
|
|
2178
2199
|
type: Component,
|
|
2179
2200
|
args: [{
|
|
2180
2201
|
selector: 'coinflow-google-pay-overlay',
|
|
@@ -2240,8 +2261,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2240
2261
|
}] } });
|
|
2241
2262
|
|
|
2242
2263
|
class CoinflowGooglePayButtonComponent {
|
|
2243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2244
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
|
|
2245
2266
|
ng-if="iframeProps && messageHandlers"
|
|
2246
2267
|
[purchaseProps]="purchaseProps"
|
|
2247
2268
|
route="google-pay"
|
|
@@ -2253,7 +2274,7 @@ class CoinflowGooglePayButtonComponent {
|
|
|
2253
2274
|
></coinflow-google-pay-overlay>
|
|
2254
2275
|
</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"] }] }); }
|
|
2255
2276
|
}
|
|
2256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
|
|
2257
2278
|
type: Component,
|
|
2258
2279
|
args: [{
|
|
2259
2280
|
selector: 'lib-coinflow-google-pay-button',
|
|
@@ -2286,5 +2307,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2286
2307
|
* Generated bundle index. Do not edit.
|
|
2287
2308
|
*/
|
|
2288
2309
|
|
|
2289
|
-
export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCoinflowProtectionHeaders, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, paymentMethodLabels, recordFrontendError, setTokenExScriptTag };
|
|
2310
|
+
export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, paymentMethodLabels, recordFrontendError, setTokenExScriptTag };
|
|
2290
2311
|
//# sourceMappingURL=coinflowlabs-angular.mjs.map
|