@coinflowlabs/angular 1.3.2 → 1.4.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.
Files changed (37) hide show
  1. package/README.md +4 -0
  2. package/fesm2022/coinflowlabs-angular.mjs +87 -58
  3. package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
  4. package/package.json +5 -5
  5. package/types/coinflowlabs-angular.d.ts +1494 -0
  6. package/index.d.ts +0 -5
  7. package/lib/card-form/CardFormService.d.ts +0 -14
  8. package/lib/card-form/coinflow-card-number-input.component.d.ts +0 -17
  9. package/lib/card-form/coinflow-card-number-only-input.component.d.ts +0 -17
  10. package/lib/card-form/coinflow-cvv-input.component.d.ts +0 -6
  11. package/lib/card-form/coinflow-cvv-only-input.component.d.ts +0 -19
  12. package/lib/coinflow-iframe.component.d.ts +0 -22
  13. package/lib/coinflow-purchase-history.component.d.ts +0 -5
  14. package/lib/coinflow-purchase-protection.component.d.ts +0 -5
  15. package/lib/coinflow-purchase.component.d.ts +0 -11
  16. package/lib/coinflow-withdraw-history.component.d.ts +0 -5
  17. package/lib/coinflow-withdraw.component.d.ts +0 -11
  18. package/lib/common/CoinflowLibMessageHandlers.d.ts +0 -35
  19. package/lib/common/CoinflowTypes.d.ts +0 -547
  20. package/lib/common/CoinflowUtils.d.ts +0 -24
  21. package/lib/common/EventBus.d.ts +0 -6
  22. package/lib/common/SolanaPeerDeps.d.ts +0 -5
  23. package/lib/common/card-form/TokenEx.d.ts +0 -171
  24. package/lib/common/card-form/tokenexHelpers.d.ts +0 -35
  25. package/lib/common/index.d.ts +0 -11
  26. package/lib/common/types/AnyObject.d.ts +0 -5
  27. package/lib/common/types/CartitemCommon.d.ts +0 -163
  28. package/lib/common/types/Subtotal.d.ts +0 -210
  29. package/lib/common/types/cryptoCartItem.d.ts +0 -63
  30. package/lib/common/types/giftCardCartItem.d.ts +0 -58
  31. package/lib/common/types/moneyTopUpCartItem.d.ts +0 -44
  32. package/lib/common/types/nftCartItem.d.ts +0 -108
  33. package/lib/mobile-wallet/coinflow-apple-pay-button.component.d.ts +0 -11
  34. package/lib/mobile-wallet/coinflow-google-pay-button.component.d.ts +0 -10
  35. package/lib/mobile-wallet/coinflow-mobile-wallet-button.component.d.ts +0 -22
  36. package/lib/mobile-wallet/google-pay-overlay.component.d.ts +0 -6
  37. package/public-api.d.ts +0 -16
package/README.md CHANGED
@@ -4,6 +4,10 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
4
4
 
5
5
  # Changelog
6
6
 
7
+ ## 1.4.0
8
+
9
+ - New Blockchain Support: The SDK now supports Monad, a high-performance EVM-compatible blockchain. Pass blockchain='monad' to enable Monad payment processing.
10
+
7
11
  ## 1.3.2
8
12
 
9
13
  - Internal change to a query parameter name for zero authorization
@@ -79,6 +79,7 @@ var CardType;
79
79
  CardType["AMEX"] = "AMEX";
80
80
  CardType["DISCOVER"] = "DISC";
81
81
  })(CardType || (CardType = {}));
82
+ const RN_REDIRECT_MESSAGE_NAME = 'rnredirect'; // DO NOT CHANGE
82
83
 
83
84
  // This works in angular, but not react
84
85
  // let web3: typeof import('@solana/web3.js') | undefined;
@@ -471,6 +472,12 @@ function isTypedCurrencyCents(cents, currency) {
471
472
  return cents.currency === currency;
472
473
  }
473
474
 
475
+ function fun() {
476
+ if (nsureSDK)
477
+ return nsureSDK.getDeviceId();
478
+ return null;
479
+ }
480
+
474
481
  class CoinflowUtils {
475
482
  constructor(env) {
476
483
  this.env = env ?? 'prod';
@@ -500,6 +507,16 @@ class CoinflowUtils {
500
507
  return 'http://localhost:3000';
501
508
  return `https://${env}.coinflow.cash`;
502
509
  }
510
+ static getCoinflowAppBaseUrl(env) {
511
+ if (!env || env === 'prod')
512
+ return 'https://app.coinflow.cash';
513
+ // @ts-expect-error This is for testing
514
+ if (env === 'ngrok')
515
+ return 'https://coinflow.ngrok.app';
516
+ if (env === 'local')
517
+ return 'http://localhost:3003';
518
+ return `https://app-${env}.coinflow.cash`;
519
+ }
503
520
  static getCoinflowApiUrl(env) {
504
521
  if (!env || env === 'prod')
505
522
  return 'https://api.coinflow.cash';
@@ -507,11 +524,11 @@ class CoinflowUtils {
507
524
  return 'http://localhost:5000';
508
525
  return `https://api-${env}.coinflow.cash`;
509
526
  }
510
- static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, 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, }) {
527
+ static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, 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, baseUrl, }) {
511
528
  const prefix = routePrefix
512
529
  ? `/${routePrefix}/${blockchain}`
513
530
  : `/${blockchain}`;
514
- const url = new URL(prefix + route, CoinflowUtils.getCoinflowBaseUrl(env));
531
+ const url = new URL(prefix + route, baseUrl ?? CoinflowUtils.getCoinflowBaseUrl(env));
515
532
  if (walletPubkey)
516
533
  url.searchParams.append('pubkey', walletPubkey);
517
534
  if (sessionKey)
@@ -570,11 +587,9 @@ class CoinflowUtils {
570
587
  url.searchParams.append('deviceId', deviceId);
571
588
  }
572
589
  else {
573
- if (typeof window !== 'undefined') {
574
- const deviceId = nsureSDK.getDeviceId();
575
- if (deviceId)
576
- url.searchParams.append('deviceId', deviceId);
577
- }
590
+ const deviceId = fun();
591
+ if (deviceId)
592
+ url.searchParams.append('deviceId', deviceId);
578
593
  }
579
594
  if (merchantCss)
580
595
  url.searchParams.append('merchantCss', merchantCss);
@@ -638,10 +653,10 @@ class CoinflowUtils {
638
653
  throw new Error('bs58 dependency is required for Solana');
639
654
  if (!transaction)
640
655
  return undefined;
641
- return base58.encode(transaction.serialize({
656
+ return base58.encode(Uint8Array.from(transaction.serialize({
642
657
  requireAllSignatures: false,
643
658
  verifySignatures: false,
644
- }));
659
+ })));
645
660
  },
646
661
  polygon: () => {
647
662
  if (!('transaction' in props))
@@ -667,6 +682,12 @@ class CoinflowUtils {
667
682
  const { transaction } = props;
668
683
  return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
669
684
  },
685
+ monad: () => {
686
+ if (!('transaction' in props))
687
+ return undefined;
688
+ const { transaction } = props;
689
+ return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
690
+ },
670
691
  user: () => {
671
692
  return undefined;
672
693
  },
@@ -684,6 +705,8 @@ class CoinflowUtils {
684
705
  return args.base;
685
706
  case 'arbitrum':
686
707
  return args.arbitrum;
708
+ case 'monad':
709
+ return args.monad;
687
710
  case 'user':
688
711
  return args.user;
689
712
  default:
@@ -843,6 +866,11 @@ function getHandlers(props) {
843
866
  onSuccess: props.onSuccess,
844
867
  onAuthDeclined: props.onAuthDeclined,
845
868
  }),
869
+ monad: () => getEvmWalletHandlers({
870
+ wallet: wallet,
871
+ onSuccess: props.onSuccess,
872
+ onAuthDeclined: props.onAuthDeclined,
873
+ }),
846
874
  user: () => getSessionKeyHandlers(props),
847
875
  })();
848
876
  }
@@ -871,10 +899,10 @@ function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
871
899
  const signedTransaction = await signTransaction(tx);
872
900
  if (!base58)
873
901
  throw new Error('bs58 dependency is required');
874
- return base58.encode(signedTransaction.serialize({
902
+ return base58.encode(Uint8Array.from(signedTransaction.serialize({
875
903
  requireAllSignatures: false,
876
904
  verifySignatures: false,
877
- }));
905
+ })));
878
906
  },
879
907
  onSuccess,
880
908
  onAuthDeclined,
@@ -928,6 +956,7 @@ class EventBus {
928
956
  }
929
957
 
930
958
  // Type definitions for TokenEx iframe integration
959
+ /// <reference path="./TokenEx.global.d.ts" />
931
960
  const TokenExCardNumberIframeId = 'tokenExCardNumber';
932
961
  const TokenExCvvContainerID = 'tokenExCardCvv';
933
962
  const CARD_TYPE_MAPPING = {
@@ -1095,7 +1124,7 @@ function CSSPropertiesToComponent(dict) {
1095
1124
  /* generated using openapi-typescript-codegen -- do no edit */
1096
1125
  /* istanbul ignore file */
1097
1126
  /* tslint:disable */
1098
- /* eslint-disable */
1127
+ /* oxlint-disable */
1099
1128
  var nftCartItem;
1100
1129
  (function (nftCartItem) {
1101
1130
  /**
@@ -1183,8 +1212,8 @@ class CoinflowIFrameComponent {
1183
1212
  this.isLoading = false;
1184
1213
  this.onLoad?.();
1185
1214
  }
1186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
1187
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", 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
1215
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
1216
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", 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
1188
1217
  width="100%"
1189
1218
  height="100%"
1190
1219
  #iframe
@@ -1197,7 +1226,7 @@ class CoinflowIFrameComponent {
1197
1226
  (load)="handleIframeLoad()"
1198
1227
  ></iframe>`, isInline: true }); }
1199
1228
  }
1200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
1229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
1201
1230
  type: Component,
1202
1231
  args: [{
1203
1232
  selector: 'lib-coinflow-iframe',
@@ -1249,10 +1278,10 @@ class CoinflowPurchaseComponent {
1249
1278
  handleHeightChangeId,
1250
1279
  };
1251
1280
  }
1252
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1253
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", 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"] }] }); }
1281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1282
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", 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"] }] }); }
1254
1283
  }
1255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
1284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
1256
1285
  type: Component,
1257
1286
  args: [{
1258
1287
  selector: 'lib-coinflow-purchase',
@@ -1265,10 +1294,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
1265
1294
  }] } });
1266
1295
 
1267
1296
  class CoinflowPurchaseHistoryComponent {
1268
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1269
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
1297
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1298
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
1270
1299
  }
1271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
1300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
1272
1301
  type: Component,
1273
1302
  args: [{
1274
1303
  selector: 'lib-coinflow-purchase-history',
@@ -1279,10 +1308,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
1279
1308
  }] });
1280
1309
 
1281
1310
  class CoinflowPurchaseProtectionComponent {
1282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1283
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
1311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1312
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
1284
1313
  }
1285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
1314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
1286
1315
  type: Component,
1287
1316
  args: [{
1288
1317
  selector: 'lib-coinflow-purchase-protection',
@@ -1307,10 +1336,10 @@ class CoinflowWithdrawComponent {
1307
1336
  handleHeightChangeId,
1308
1337
  };
1309
1338
  }
1310
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1311
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", 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"] }] }); }
1339
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1340
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", 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"] }] }); }
1312
1341
  }
1313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
1342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
1314
1343
  type: Component,
1315
1344
  args: [{
1316
1345
  selector: 'lib-coinflow-withdraw',
@@ -1323,10 +1352,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
1323
1352
  }] } });
1324
1353
 
1325
1354
  class CoinflowWithdrawHistoryComponent {
1326
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1327
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
1355
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1356
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
1328
1357
  }
1329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
1358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
1330
1359
  type: Component,
1331
1360
  args: [{
1332
1361
  selector: 'lib-coinflow-withdraw-history',
@@ -1387,10 +1416,10 @@ class CardFormService {
1387
1416
  iframe.load();
1388
1417
  return iframe;
1389
1418
  }
1390
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1391
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
1419
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1420
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
1392
1421
  }
1393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CardFormService, decorators: [{
1422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CardFormService, decorators: [{
1394
1423
  type: Injectable,
1395
1424
  args: [{
1396
1425
  providedIn: 'root',
@@ -1431,10 +1460,10 @@ class CoinflowCardNumberInput {
1431
1460
  tokenize() {
1432
1461
  return this.iframe.tokenize();
1433
1462
  }
1434
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1435
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
1463
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1464
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
1436
1465
  }
1437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
1466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
1438
1467
  type: Component,
1439
1468
  args: [{
1440
1469
  selector: 'lib-coinflow-card-number-input',
@@ -1480,10 +1509,10 @@ class CoinflowCardNumberOnlyInput {
1480
1509
  tokenize() {
1481
1510
  return this.iframe.tokenize();
1482
1511
  }
1483
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1484
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
1512
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1513
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
1485
1514
  }
1486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
1515
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
1487
1516
  type: Component,
1488
1517
  args: [{
1489
1518
  selector: 'lib-coinflow-card-number-only-input',
@@ -1499,10 +1528,10 @@ class CoinflowCvvInputComponent {
1499
1528
  constructor() {
1500
1529
  this.TokenExCvvContainerID = TokenExCvvContainerID;
1501
1530
  }
1502
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1503
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
1531
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1532
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
1504
1533
  }
1505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
1534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
1506
1535
  type: Component,
1507
1536
  args: [{
1508
1537
  selector: 'lib-coinflow-cvv-input',
@@ -1563,10 +1592,10 @@ class CoinflowCvvOnlyInputComponent {
1563
1592
  tokenize() {
1564
1593
  return this.iframe.tokenize();
1565
1594
  }
1566
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1567
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
1595
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1596
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
1568
1597
  }
1569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
1598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
1570
1599
  type: Component,
1571
1600
  args: [{
1572
1601
  selector: 'lib-coinflow-cvv-only-input',
@@ -1615,8 +1644,8 @@ class CoinflowMobileWalletButtonComponent {
1615
1644
  handleHeightChangeId,
1616
1645
  };
1617
1646
  }
1618
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1619
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", 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%;">
1647
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1648
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", 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%;">
1620
1649
  <div
1621
1650
  [style.background-color]="purchaseProps.color"
1622
1651
  [style.display]="overlayDisplayOverride ?? display"
@@ -1638,7 +1667,7 @@ class CoinflowMobileWalletButtonComponent {
1638
1667
  </div>
1639
1668
  </div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
1640
1669
  }
1641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
1670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
1642
1671
  type: Component,
1643
1672
  args: [{
1644
1673
  selector: 'lib-coinflow-mobile-wallet-button',
@@ -1680,8 +1709,8 @@ class CoinflowApplePayButtonComponent {
1680
1709
  fill() {
1681
1710
  return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
1682
1711
  }
1683
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1684
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
1712
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1713
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
1685
1714
  ng-if="iframeProps && messageHandlers"
1686
1715
  [purchaseProps]="purchaseProps"
1687
1716
  route="apple-pay"
@@ -1723,7 +1752,7 @@ class CoinflowApplePayButtonComponent {
1723
1752
  </svg>
1724
1753
  </lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
1725
1754
  }
1726
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
1755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
1727
1756
  type: Component,
1728
1757
  args: [{
1729
1758
  selector: 'lib-coinflow-apple-pay-button',
@@ -1776,8 +1805,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
1776
1805
  }] } });
1777
1806
 
1778
1807
  class CoinflowGooglePayOverlayComponent {
1779
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1780
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.1", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
1808
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1809
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
1781
1810
  @if (color === 'white') {
1782
1811
  <svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
1783
1812
  <g fill="none" fill-rule="evenodd">
@@ -1832,7 +1861,7 @@ class CoinflowGooglePayOverlayComponent {
1832
1861
  }
1833
1862
  `, isInline: true }); }
1834
1863
  }
1835
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
1864
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
1836
1865
  type: Component,
1837
1866
  args: [{
1838
1867
  selector: 'coinflow-google-pay-overlay',
@@ -1898,8 +1927,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
1898
1927
  }] } });
1899
1928
 
1900
1929
  class CoinflowGooglePayButtonComponent {
1901
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1902
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
1930
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1931
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
1903
1932
  ng-if="iframeProps && messageHandlers"
1904
1933
  [purchaseProps]="purchaseProps"
1905
1934
  route="google-pay"
@@ -1911,7 +1940,7 @@ class CoinflowGooglePayButtonComponent {
1911
1940
  ></coinflow-google-pay-overlay>
1912
1941
  </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"] }] }); }
1913
1942
  }
1914
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
1943
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
1915
1944
  type: Component,
1916
1945
  args: [{
1917
1946
  selector: 'lib-coinflow-google-pay-button',
@@ -1944,5 +1973,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
1944
1973
  * Generated bundle index. Do not edit.
1945
1974
  */
1946
1975
 
1947
- export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, CoinflowApplePayButtonComponent, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, nftCartItem, paymentMethodLabels, setTokenExScriptTag };
1976
+ export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, CoinflowApplePayButtonComponent, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, RN_REDIRECT_MESSAGE_NAME, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, nftCartItem, paymentMethodLabels, setTokenExScriptTag };
1948
1977
  //# sourceMappingURL=coinflowlabs-angular.mjs.map