@coinflowlabs/angular 1.8.0 → 1.10.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) {
@@ -69,6 +70,7 @@ var PaymentMethods;
69
70
  PaymentMethods["crypto"] = "crypto";
70
71
  PaymentMethods["wire"] = "wire";
71
72
  PaymentMethods["cashApp"] = "cashApp";
73
+ PaymentMethods["rain"] = "rain";
72
74
  })(PaymentMethods || (PaymentMethods = {}));
73
75
  const paymentMethodLabels = {
74
76
  [PaymentMethods.card]: 'Card',
@@ -83,6 +85,7 @@ const paymentMethodLabels = {
83
85
  [PaymentMethods.crypto]: 'Crypto',
84
86
  [PaymentMethods.wire]: 'Wire Transfer',
85
87
  [PaymentMethods.cashApp]: 'CashApp',
88
+ [PaymentMethods.rain]: 'Rain',
86
89
  };
87
90
  var CardType;
88
91
  (function (CardType) {
@@ -548,7 +551,7 @@ class CoinflowUtils {
548
551
  return 'http://localhost:5000';
549
552
  return `https://api-${env}.coinflow.cash`;
550
553
  }
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, }) {
554
+ 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, baseUrl, }) {
552
555
  const prefix = routePrefix
553
556
  ? `/${routePrefix}/${blockchain}`
554
557
  : `/${blockchain}`;
@@ -575,9 +578,6 @@ class CoinflowUtils {
575
578
  url.searchParams.append('amount', subtotal.amount.toString());
576
579
  }
577
580
  }
578
- if (customPayInFees && customPayInFees.length > 0) {
579
- url.searchParams.append('customPayInFees', encodeURIComponent(JSON.stringify(customPayInFees)));
580
- }
581
581
  if (presentment)
582
582
  url.searchParams.append('presentment', presentment);
583
583
  if (webhookInfo) {
@@ -671,6 +671,37 @@ class CoinflowUtils {
671
671
  url.searchParams.append('accountFundingTransaction', LZString.compressToEncodedURIComponent(JSON.stringify(accountFundingTransaction)));
672
672
  if (allowedWithdrawSpeeds)
673
673
  url.searchParams.append('allowedWithdrawSpeeds', allowedWithdrawSpeeds.join(','));
674
+ if (userLocation) {
675
+ url.searchParams.append('lat', userLocation.lat.toString());
676
+ url.searchParams.append('lng', userLocation.lng.toString());
677
+ }
678
+ return url.toString();
679
+ }
680
+ static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }) {
681
+ const url = new URL(route, baseUrl ?? CoinflowUtils.getCoinflowBaseUrl(env));
682
+ if (origins)
683
+ url.searchParams.append('origins', LZString.compressToEncodedURIComponent(JSON.stringify(origins)));
684
+ if (deviceId) {
685
+ url.searchParams.append('deviceId', deviceId);
686
+ }
687
+ else {
688
+ const deviceId = getNSureDeviceId();
689
+ if (deviceId)
690
+ url.searchParams.append('deviceId', deviceId);
691
+ }
692
+ if (merchantCss)
693
+ url.searchParams.append('merchantCss', merchantCss);
694
+ if (color)
695
+ url.searchParams.append('color', color);
696
+ if (loaderBackground) {
697
+ url.searchParams.append('loaderBackground', loaderBackground);
698
+ }
699
+ if (handleHeightChangeId) {
700
+ url.searchParams.append('useHeightChange', handleHeightChangeId.toString());
701
+ }
702
+ if (theme) {
703
+ url.searchParams.append('theme', LZString.compressToEncodedURIComponent(JSON.stringify(theme)));
704
+ }
674
705
  return url.toString();
675
706
  }
676
707
  static getTransaction(props) {
@@ -1291,17 +1322,29 @@ function getProtectionSessionId() {
1291
1322
 
1292
1323
  const DEVICE_ID_HEADER = 'x-device-id';
1293
1324
  const SESSION_ID_HEADER = 'x-session-id';
1325
+ const REFERRER_HEADER = 'x-coinflow-referrer';
1294
1326
  function getCoinflowProtectionHeaders() {
1295
1327
  return {
1296
1328
  [DEVICE_ID_HEADER]: getNSureDeviceId(),
1297
1329
  [SESSION_ID_HEADER]: getProtectionSessionId(),
1298
1330
  };
1299
1331
  }
1332
+ function getReferrer() {
1333
+ try {
1334
+ return document.referrer || null;
1335
+ }
1336
+ catch {
1337
+ return null;
1338
+ }
1339
+ }
1340
+ function getCoinflowPurchaseHeaders() {
1341
+ return {
1342
+ ...getCoinflowProtectionHeaders(),
1343
+ [REFERRER_HEADER]: getReferrer(),
1344
+ };
1345
+ }
1300
1346
 
1301
- const NSURE_APP_IDS = {
1302
- prod: '9JBW2RHC7JNJN8ZQ',
1303
- sandbox: 'SANDBOX_CTCE4XK53ZW0R7V1',
1304
- };
1347
+ const NSURE_APP_ID = '9JBW2RHC7JNJN8ZQ';
1305
1348
  const PROTECTION_SESSION_PROJECT_IDS = {
1306
1349
  prod: '315da543-c486-435a-aa21-53844c469822',
1307
1350
  sandbox: 'e9f629c4-80ee-4c6d-967e-62af47d8679e',
@@ -1313,7 +1356,7 @@ async function initCoinflowProtection({ coinflowEnv, merchantId, }) {
1313
1356
  if (!hasUrlDeviceId) {
1314
1357
  const partnerId = await new CoinflowUtils(coinflowEnv).getNSurePartnerId(merchantId);
1315
1358
  if (partnerId) {
1316
- const appId = NSURE_APP_IDS[env] ?? NSURE_APP_IDS['sandbox'];
1359
+ const appId = NSURE_APP_ID;
1317
1360
  try {
1318
1361
  nsureSDK.init(appId, partnerId);
1319
1362
  }
@@ -1406,13 +1449,13 @@ class CoinflowIFrameComponent {
1406
1449
  this.isLoading = false;
1407
1450
  this.onLoad?.();
1408
1451
  }
1409
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
1410
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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
1452
+ 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 }); }
1453
+ 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
1454
  width="100%"
1412
1455
  height="100%"
1413
1456
  #iframe
1414
1457
  scrolling="{{ iframeProps?.handleHeightChangeId ? 'no' : 'yes' }}"
1415
- allow="payment;camera;clipboard-write"
1458
+ allow="payment;camera;clipboard-write;geolocation"
1416
1459
  title="withdraw"
1417
1460
  frameBorder="0"
1418
1461
  [src]="dynamicUrl"
@@ -1420,7 +1463,7 @@ class CoinflowIFrameComponent {
1420
1463
  (load)="handleIframeLoad()"
1421
1464
  ></iframe>`, isInline: true }); }
1422
1465
  }
1423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
1466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
1424
1467
  type: Component,
1425
1468
  args: [{
1426
1469
  selector: 'lib-coinflow-iframe',
@@ -1431,7 +1474,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
1431
1474
  height="100%"
1432
1475
  #iframe
1433
1476
  scrolling="{{ iframeProps?.handleHeightChangeId ? 'no' : 'yes' }}"
1434
- allow="payment;camera;clipboard-write"
1477
+ allow="payment;camera;clipboard-write;geolocation"
1435
1478
  title="withdraw"
1436
1479
  frameBorder="0"
1437
1480
  [src]="dynamicUrl"
@@ -1472,10 +1515,10 @@ class CoinflowPurchaseComponent {
1472
1515
  handleHeightChangeId,
1473
1516
  };
1474
1517
  }
1475
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1476
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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"] }] }); }
1518
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1519
+ 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
1520
  }
1478
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
1521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
1479
1522
  type: Component,
1480
1523
  args: [{
1481
1524
  selector: 'lib-coinflow-purchase',
@@ -1488,10 +1531,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
1488
1531
  }] } });
1489
1532
 
1490
1533
  class CoinflowPurchaseHistoryComponent {
1491
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1492
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
1534
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1535
+ 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
1536
  }
1494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
1537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
1495
1538
  type: Component,
1496
1539
  args: [{
1497
1540
  selector: 'lib-coinflow-purchase-history',
@@ -1502,10 +1545,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
1502
1545
  }] });
1503
1546
 
1504
1547
  class CoinflowPurchaseProtectionComponent {
1505
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1506
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
1548
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1549
+ 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
1550
  }
1508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
1551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
1509
1552
  type: Component,
1510
1553
  args: [{
1511
1554
  selector: 'lib-coinflow-purchase-protection',
@@ -1530,10 +1573,10 @@ class CoinflowWithdrawComponent {
1530
1573
  handleHeightChangeId,
1531
1574
  };
1532
1575
  }
1533
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1534
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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"] }] }); }
1576
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1577
+ 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
1578
  }
1536
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
1579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
1537
1580
  type: Component,
1538
1581
  args: [{
1539
1582
  selector: 'lib-coinflow-withdraw',
@@ -1546,10 +1589,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
1546
1589
  }] } });
1547
1590
 
1548
1591
  class CoinflowWithdrawHistoryComponent {
1549
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1550
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
1592
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1593
+ 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
1594
  }
1552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
1595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
1553
1596
  type: Component,
1554
1597
  args: [{
1555
1598
  selector: 'lib-coinflow-withdraw-history',
@@ -1610,10 +1653,10 @@ class CardFormService {
1610
1653
  iframe.load();
1611
1654
  return iframe;
1612
1655
  }
1613
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1614
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
1656
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1657
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
1615
1658
  }
1616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CardFormService, decorators: [{
1659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, decorators: [{
1617
1660
  type: Injectable,
1618
1661
  args: [{
1619
1662
  providedIn: 'root',
@@ -1654,10 +1697,10 @@ class CoinflowCardNumberInput {
1654
1697
  tokenize() {
1655
1698
  return this.iframe.tokenize();
1656
1699
  }
1657
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1658
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
1700
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1701
+ 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
1702
  }
1660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
1703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
1661
1704
  type: Component,
1662
1705
  args: [{
1663
1706
  selector: 'lib-coinflow-card-number-input',
@@ -1703,10 +1746,10 @@ class CoinflowCardNumberOnlyInput {
1703
1746
  tokenize() {
1704
1747
  return this.iframe.tokenize();
1705
1748
  }
1706
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1707
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
1749
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1750
+ 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
1751
  }
1709
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
1752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
1710
1753
  type: Component,
1711
1754
  args: [{
1712
1755
  selector: 'lib-coinflow-card-number-only-input',
@@ -1722,10 +1765,10 @@ class CoinflowCvvInputComponent {
1722
1765
  constructor() {
1723
1766
  this.TokenExCvvContainerID = TokenExCvvContainerID;
1724
1767
  }
1725
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1726
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
1768
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1769
+ 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
1770
  }
1728
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
1771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
1729
1772
  type: Component,
1730
1773
  args: [{
1731
1774
  selector: 'lib-coinflow-cvv-input',
@@ -1786,10 +1829,10 @@ class CoinflowCvvOnlyInputComponent {
1786
1829
  tokenize() {
1787
1830
  return this.iframe.tokenize();
1788
1831
  }
1789
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1790
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
1832
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1833
+ 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
1834
  }
1792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
1835
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
1793
1836
  type: Component,
1794
1837
  args: [{
1795
1838
  selector: 'lib-coinflow-cvv-only-input',
@@ -1802,31 +1845,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
1802
1845
  }] } });
1803
1846
 
1804
1847
  class CoinflowCardForm {
1805
- constructor() {
1806
- this.url = '';
1848
+ constructor(sanitizer) {
1849
+ this.sanitizer = sanitizer;
1807
1850
  this.loaded = false;
1851
+ this.iframeHeight = null;
1808
1852
  }
1809
1853
  ngOnInit() {
1810
1854
  this.buildUrl();
1811
- this.messageHandler = (event) => this.handleMessage(event.data, event.origin);
1812
- window.addEventListener('message', this.messageHandler);
1813
1855
  }
1814
- ngOnDestroy() {
1815
- if (this.messageHandler) {
1816
- window.removeEventListener('message', this.messageHandler);
1817
- }
1856
+ onMessage(event) {
1857
+ this.handleMessage(event.data, event.origin);
1818
1858
  }
1819
1859
  buildUrl() {
1820
1860
  const baseUrl = CoinflowUtils.getCoinflowBaseUrl(this.args.env);
1821
1861
  const iframeUrl = new URL(`/form/v2/${this.args.variant}`, baseUrl);
1822
1862
  iframeUrl.searchParams.append('merchantId', this.args.merchantId);
1863
+ iframeUrl.searchParams.append('useHeightChange', 'true');
1823
1864
  if (this.args.theme) {
1824
1865
  iframeUrl.searchParams.append('theme', LZString.compressToEncodedURIComponent(JSON.stringify(this.args.theme)));
1825
1866
  }
1826
1867
  if (this.args.token) {
1827
1868
  iframeUrl.searchParams.append('token', this.args.token);
1828
1869
  }
1829
- this.url = iframeUrl.toString();
1870
+ this.url = this.sanitizer.bypassSecurityTrustResourceUrl(iframeUrl.toString());
1830
1871
  }
1831
1872
  handleMessage(data, origin) {
1832
1873
  const expectedOrigin = new URL(CoinflowUtils.getCoinflowBaseUrl(this.args.env)).origin;
@@ -1838,6 +1879,12 @@ class CoinflowCardForm {
1838
1879
  this.loaded = true;
1839
1880
  this.args.onLoad?.();
1840
1881
  }
1882
+ else if (parsed.method === IFrameMessageMethods.HeightChange) {
1883
+ const parsedHeight = Number(parsed.data);
1884
+ if (Number.isFinite(parsedHeight) && parsedHeight > 0) {
1885
+ this.iframeHeight = parsedHeight;
1886
+ }
1887
+ }
1841
1888
  }
1842
1889
  catch {
1843
1890
  // not JSON
@@ -1875,24 +1922,25 @@ class CoinflowCardForm {
1875
1922
  }
1876
1923
  };
1877
1924
  window.addEventListener('message', handler);
1878
- iframe.contentWindow.postMessage('tokenize', '*');
1925
+ const targetOrigin = new URL(CoinflowUtils.getCoinflowBaseUrl(this.args.env)).origin;
1926
+ iframe.contentWindow.postMessage('tokenize', targetOrigin);
1879
1927
  });
1880
1928
  }
1881
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardForm, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1882
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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
1929
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardForm, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
1930
+ 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" }, host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["cardFormIframe"], descendants: true, static: true }], ngImport: i0, template: `<iframe
1883
1931
  #cardFormIframe
1884
1932
  [src]="url"
1885
1933
  title="Card Form"
1886
1934
  frameBorder="0"
1887
1935
  allow="payment"
1888
1936
  [style.width]="'100%'"
1889
- [style.height]="'60px'"
1937
+ [style.height]="iframeHeight ? iframeHeight + 'px' : '60px'"
1890
1938
  [style.border]="'none'"
1891
1939
  [style.opacity]="loaded ? 1 : 0"
1892
- [style.transition]="'opacity 300ms linear'"
1940
+ [style.transition]="'opacity 300ms linear, height 150ms ease-out'"
1893
1941
  ></iframe>`, isInline: true }); }
1894
1942
  }
1895
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardForm, decorators: [{
1943
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardForm, decorators: [{
1896
1944
  type: Component,
1897
1945
  args: [{
1898
1946
  selector: 'lib-coinflow-card-form',
@@ -1905,17 +1953,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
1905
1953
  frameBorder="0"
1906
1954
  allow="payment"
1907
1955
  [style.width]="'100%'"
1908
- [style.height]="'60px'"
1956
+ [style.height]="iframeHeight ? iframeHeight + 'px' : '60px'"
1909
1957
  [style.border]="'none'"
1910
1958
  [style.opacity]="loaded ? 1 : 0"
1911
- [style.transition]="'opacity 300ms linear'"
1959
+ [style.transition]="'opacity 300ms linear, height 150ms ease-out'"
1912
1960
  ></iframe>`,
1913
1961
  }]
1914
- }], propDecorators: { args: [{
1962
+ }], ctorParameters: () => [{ type: i1.DomSanitizer }], propDecorators: { args: [{
1915
1963
  type: Input
1916
1964
  }], iframeRef: [{
1917
1965
  type: ViewChild,
1918
1966
  args: ['cardFormIframe', { static: true }]
1967
+ }], onMessage: [{
1968
+ type: HostListener,
1969
+ args: ['window:message', ['$event']]
1919
1970
  }] } });
1920
1971
  /** @deprecated Use CoinflowCardForm instead */
1921
1972
  const CoinflowCardFormV2 = CoinflowCardForm;
@@ -1957,8 +2008,8 @@ class CoinflowMobileWalletButtonComponent {
1957
2008
  handleHeightChangeId,
1958
2009
  };
1959
2010
  }
1960
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1961
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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%;">
2011
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2012
+ 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
2013
  <div
1963
2014
  [style.background-color]="purchaseProps.color"
1964
2015
  [style.display]="overlayDisplayOverride ?? display"
@@ -1980,7 +2031,7 @@ class CoinflowMobileWalletButtonComponent {
1980
2031
  </div>
1981
2032
  </div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
1982
2033
  }
1983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
2034
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
1984
2035
  type: Component,
1985
2036
  args: [{
1986
2037
  selector: 'lib-coinflow-mobile-wallet-button',
@@ -2022,8 +2073,8 @@ class CoinflowApplePayButtonComponent {
2022
2073
  fill() {
2023
2074
  return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
2024
2075
  }
2025
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2026
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
2076
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2077
+ 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
2078
  ng-if="iframeProps && messageHandlers"
2028
2079
  [purchaseProps]="purchaseProps"
2029
2080
  route="apple-pay"
@@ -2065,7 +2116,7 @@ class CoinflowApplePayButtonComponent {
2065
2116
  </svg>
2066
2117
  </lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
2067
2118
  }
2068
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
2119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
2069
2120
  type: Component,
2070
2121
  args: [{
2071
2122
  selector: 'lib-coinflow-apple-pay-button',
@@ -2118,8 +2169,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
2118
2169
  }] } });
2119
2170
 
2120
2171
  class CoinflowGooglePayOverlayComponent {
2121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2122
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
2172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2173
+ 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
2174
  @if (color === 'white') {
2124
2175
  <svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
2125
2176
  <g fill="none" fill-rule="evenodd">
@@ -2174,7 +2225,7 @@ class CoinflowGooglePayOverlayComponent {
2174
2225
  }
2175
2226
  `, isInline: true }); }
2176
2227
  }
2177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
2228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
2178
2229
  type: Component,
2179
2230
  args: [{
2180
2231
  selector: 'coinflow-google-pay-overlay',
@@ -2240,8 +2291,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
2240
2291
  }] } });
2241
2292
 
2242
2293
  class CoinflowGooglePayButtonComponent {
2243
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2244
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
2294
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2295
+ 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
2296
  ng-if="iframeProps && messageHandlers"
2246
2297
  [purchaseProps]="purchaseProps"
2247
2298
  route="google-pay"
@@ -2253,7 +2304,7 @@ class CoinflowGooglePayButtonComponent {
2253
2304
  ></coinflow-google-pay-overlay>
2254
2305
  </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
2306
  }
2256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
2307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
2257
2308
  type: Component,
2258
2309
  args: [{
2259
2310
  selector: 'lib-coinflow-google-pay-button',
@@ -2286,5 +2337,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
2286
2337
  * Generated bundle index. Do not edit.
2287
2338
  */
2288
2339
 
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 };
2340
+ 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
2341
  //# sourceMappingURL=coinflowlabs-angular.mjs.map