@coinflowlabs/angular 1.15.2 → 2.0.1-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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, HostListener, ViewChild, Output, Input, Component, Injectable, inject } from '@angular/core';
2
+ import { EventEmitter, HostListener, ViewChild, Output, Input, Component } from '@angular/core';
3
3
  import * as SolanaWeb3Js from '@solana/web3.js';
4
4
  import base58Imported from 'bs58';
5
5
  import LZString from 'lz-string';
@@ -62,6 +62,12 @@ var ThreeDsChallengePreference;
62
62
  ThreeDsChallengePreference["Frictionless"] = "Frictionless";
63
63
  ThreeDsChallengePreference["Challenge"] = "Challenge";
64
64
  })(ThreeDsChallengePreference || (ThreeDsChallengePreference = {}));
65
+ var CardFunding;
66
+ (function (CardFunding) {
67
+ CardFunding["debit"] = "debit";
68
+ CardFunding["credit"] = "credit";
69
+ CardFunding["prepaid"] = "prepaid";
70
+ })(CardFunding || (CardFunding = {}));
65
71
  var PaymentMethods;
66
72
  (function (PaymentMethods) {
67
73
  PaymentMethods["card"] = "card";
@@ -72,6 +78,7 @@ var PaymentMethods;
72
78
  PaymentMethods["usdc"] = "usdc";
73
79
  PaymentMethods["googlePay"] = "googlePay";
74
80
  PaymentMethods["applePay"] = "applePay";
81
+ PaymentMethods["paze"] = "paze";
75
82
  PaymentMethods["credits"] = "credits";
76
83
  PaymentMethods["crypto"] = "crypto";
77
84
  PaymentMethods["wire"] = "wire";
@@ -90,6 +97,7 @@ const paymentMethodLabels = {
90
97
  [PaymentMethods.usdc]: 'USDC',
91
98
  [PaymentMethods.googlePay]: 'Google Pay',
92
99
  [PaymentMethods.applePay]: 'Apple Pay',
100
+ [PaymentMethods.paze]: 'Paze',
93
101
  [PaymentMethods.credits]: 'Credits',
94
102
  [PaymentMethods.crypto]: 'Crypto',
95
103
  [PaymentMethods.wire]: 'Wire Transfer',
@@ -581,7 +589,7 @@ class CoinflowUtils {
581
589
  return 'http://localhost:5000';
582
590
  return `https://api-${env}.coinflow.cash`;
583
591
  }
584
- static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }) {
592
+ static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, allowedCardFunding, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }) {
585
593
  const prefix = routePrefix
586
594
  ? `/${routePrefix}/${blockchain}`
587
595
  : `/${blockchain}`;
@@ -703,6 +711,9 @@ class CoinflowUtils {
703
711
  url.searchParams.append('origins', LZString.compressToEncodedURIComponent(JSON.stringify(origins)));
704
712
  if (allowedPaymentMethods)
705
713
  url.searchParams.append('allowedPaymentMethods', allowedPaymentMethods.join(','));
714
+ if (allowedCardFunding?.length) {
715
+ url.searchParams.append('allowedCardFunding', allowedCardFunding.join(','));
716
+ }
706
717
  if (depositAmounts)
707
718
  url.searchParams.append('depositAmounts', depositAmounts.join(','));
708
719
  if (threeDsChallengePreference)
@@ -791,15 +802,6 @@ class CoinflowUtils {
791
802
  const { transaction } = props;
792
803
  return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
793
804
  },
794
- stellar: () => {
795
- if (!('transaction' in props))
796
- return undefined;
797
- const { transaction } = props;
798
- if (!transaction)
799
- return undefined;
800
- // Transaction is already base64 XDR string, pass through directly
801
- return transaction;
802
- },
803
805
  monad: () => {
804
806
  if (!('transaction' in props))
805
807
  return undefined;
@@ -829,8 +831,6 @@ class CoinflowUtils {
829
831
  return args.base;
830
832
  case 'arbitrum':
831
833
  return args.arbitrum;
832
- case 'stellar':
833
- return args.stellar;
834
834
  case 'monad':
835
835
  return args.monad;
836
836
  case 'tempo':
@@ -1059,13 +1059,6 @@ function getHandlers(props) {
1059
1059
  onInputError: props.onInputError,
1060
1060
  onInputValid: props.onInputValid,
1061
1061
  }),
1062
- stellar: () => getStellarWalletHandlers({
1063
- wallet: wallet,
1064
- onSuccess: props.onSuccess,
1065
- onAuthDeclined: props.onAuthDeclined,
1066
- onInputError: props.onInputError,
1067
- onInputValid: props.onInputValid,
1068
- }),
1069
1062
  monad: () => getEvmWalletHandlers({
1070
1063
  wallet: wallet,
1071
1064
  onSuccess: props.onSuccess,
@@ -1152,33 +1145,6 @@ function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError,
1152
1145
  onInputValid,
1153
1146
  };
1154
1147
  }
1155
- function getStellarWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
1156
- return {
1157
- handleSendTransaction: async (transaction) => {
1158
- // transaction is unsigned base64 XDR
1159
- // dapp needs to handle sending and confirming
1160
- throw new Error(`sendTransaction is not supported on stellar, error when sending: ${transaction}`);
1161
- },
1162
- handleSignMessage: async (message) => {
1163
- if (!wallet.signMessage) {
1164
- throw new Error('signMessage is not supported by this wallet');
1165
- }
1166
- // Returns base64-encoded signature
1167
- return await wallet.signMessage(message);
1168
- },
1169
- handleSignTransaction: async (transaction) => {
1170
- if (!wallet.signTransaction) {
1171
- throw new Error('signTransaction is not supported by this wallet');
1172
- }
1173
- // Returns signed base64 XDR
1174
- return await wallet.signTransaction(transaction);
1175
- },
1176
- onSuccess,
1177
- onAuthDeclined,
1178
- onInputError,
1179
- onInputValid,
1180
- };
1181
- }
1182
1148
  function getSessionKeyHandlers({ onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
1183
1149
  return {
1184
1150
  handleSendTransaction: async () => {
@@ -1203,172 +1169,6 @@ class EventBus {
1203
1169
  }
1204
1170
  }
1205
1171
 
1206
- // Type definitions for TokenEx iframe integration
1207
- /// <reference path="./TokenEx.global.d.ts" />
1208
- const TokenExCardNumberIframeId = 'tokenExCardNumber';
1209
- const TokenExCvvContainerID = 'tokenExCardCvv';
1210
- const CARD_TYPE_MAPPING = {
1211
- [CardType.VISA]: 'visa',
1212
- [CardType.MASTERCARD]: 'masterCard',
1213
- [CardType.AMEX]: 'americanExpress',
1214
- [CardType.DISCOVER]: 'discover',
1215
- };
1216
-
1217
- async function getIframeConfig(args) {
1218
- const { token, origins, env } = args;
1219
- return new Promise((resolve, reject) => {
1220
- fetch(new CoinflowUtils(env).url + '/api/tokenize/iframe/config', {
1221
- method: 'POST',
1222
- headers: {
1223
- 'Content-Type': 'application/json',
1224
- },
1225
- body: JSON.stringify({
1226
- origins,
1227
- token,
1228
- merchantId: 'merchantId' in args ? args.merchantId : undefined,
1229
- checkoutJwt: 'checkoutJwt' in args ? args.checkoutJwt : undefined,
1230
- }),
1231
- })
1232
- .then(async (res) => {
1233
- resolve((await res.json()));
1234
- })
1235
- .catch(e => reject(e));
1236
- });
1237
- }
1238
- function setTokenExScriptTag({ env, setTokenExScriptLoaded, }) {
1239
- const scriptTagId = 'tokenex-script';
1240
- if (document.head.querySelector(`#${scriptTagId}`)) {
1241
- setTokenExScriptLoaded(true);
1242
- }
1243
- const sdkScriptTag = document.createElement('script');
1244
- sdkScriptTag.src =
1245
- env === 'prod'
1246
- ? 'https://htp.tokenex.com/iframe/iframe-v3.min.js'
1247
- : 'https://test-htp.tokenex.com/iframe/iframe-v3.min.js';
1248
- sdkScriptTag.id = scriptTagId;
1249
- document.head.appendChild(sdkScriptTag);
1250
- document.getElementById(scriptTagId).addEventListener('load', () => {
1251
- console.log('Setting tokenExScriptLoaded to true!');
1252
- setTokenExScriptLoaded(true);
1253
- });
1254
- }
1255
- function loadIframe({ iframe, setCachedToken, setLoaded, }) {
1256
- const tokenize = async () => {
1257
- iframe.tokenize();
1258
- return await new Promise((resolve, reject) => {
1259
- iframe.on('tokenize', (data) => {
1260
- setCachedToken(data.token);
1261
- resolve(data);
1262
- });
1263
- iframe.on('validate', (data) => {
1264
- // noinspection PointlessBooleanExpressionJS
1265
- const isInvalid = !data.isValid || data.isCvvValid === false;
1266
- if (isInvalid)
1267
- reject(data);
1268
- });
1269
- });
1270
- };
1271
- iframe.on('change', () => setCachedToken(undefined));
1272
- iframe.on('cvvChange', () => setCachedToken(undefined));
1273
- iframe.on('load', () => {
1274
- setTimeout(() => setLoaded(true), 350);
1275
- const el = document.querySelector('#tx_iframe_tokenExCardNumber');
1276
- if (el) {
1277
- // noinspection JSDeprecatedSymbols
1278
- el.scrolling = 'no';
1279
- }
1280
- });
1281
- iframe.on('focus', () => {
1282
- iframe.focus();
1283
- });
1284
- iframe.on('cvvFocus', () => {
1285
- iframe.cvvFocus();
1286
- });
1287
- setLoaded(false);
1288
- iframe.load();
1289
- return { ...iframe, tokenize };
1290
- }
1291
- async function doInitializeCvvOnlyTokenExIframe(args) {
1292
- const { token, cardType } = args;
1293
- return await doInitialize(TokenExCvvContainerID, args, {
1294
- cvvOnly: true,
1295
- cvv: true,
1296
- cvvContainerID: TokenExCvvContainerID,
1297
- placeholder: 'CVV',
1298
- token,
1299
- cardType: CARD_TYPE_MAPPING[cardType],
1300
- });
1301
- }
1302
- async function doInitializeTokenExIframe(args) {
1303
- return await doInitialize(TokenExCardNumberIframeId, args, {
1304
- cvv: true,
1305
- cvvContainerID: TokenExCvvContainerID,
1306
- cvvPlaceholder: 'CVV',
1307
- });
1308
- }
1309
- async function doInitializeTokenExCardOnlyIframe(args) {
1310
- return await doInitialize(TokenExCardNumberIframeId, args, { cvv: false });
1311
- }
1312
- async function doInitialize(id, args, configOverrides) {
1313
- const { tokenExScriptLoaded, css, debug, font, setCachedToken, setLoaded } = args;
1314
- if (!tokenExScriptLoaded && typeof TokenEx === 'undefined') {
1315
- console.warn('Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script');
1316
- return;
1317
- }
1318
- const iframeConfig = await getIframeConfig({
1319
- ...args,
1320
- token: configOverrides.token,
1321
- });
1322
- const { styles } = getStyles(css);
1323
- const config = {
1324
- ...iframeConfig,
1325
- placeholder: '0000 0000 0000 0000',
1326
- enablePrettyFormat: true,
1327
- styles,
1328
- font,
1329
- debug: debug ?? false,
1330
- ...configOverrides,
1331
- };
1332
- const iframe = TokenEx.Iframe(id, config);
1333
- return loadIframe({ iframe, setCachedToken, setLoaded });
1334
- }
1335
- function getStyles(s) {
1336
- const css = JSON.parse(s);
1337
- const styles = {
1338
- base: CSSPropertiesToComponent(css.base),
1339
- focus: CSSPropertiesToComponent(css.focus),
1340
- error: CSSPropertiesToComponent(css.error),
1341
- placeholder: CSSPropertiesToComponent(css.placeholder),
1342
- cvv: {
1343
- base: CSSPropertiesToComponent(css.cvv?.base),
1344
- focus: CSSPropertiesToComponent(css.cvv?.focus),
1345
- error: CSSPropertiesToComponent(css.cvv?.error),
1346
- placeholder: CSSPropertiesToComponent(css?.placeholder),
1347
- },
1348
- };
1349
- return { styles };
1350
- }
1351
- function CSSPropertiesToComponent(dict) {
1352
- if (!dict)
1353
- return '';
1354
- if (typeof dict === 'string')
1355
- return dict;
1356
- let str = '';
1357
- for (const [key, value] of Object.entries(dict)) {
1358
- let clo = '';
1359
- key.split('').forEach(lt => {
1360
- if (lt.toUpperCase() === lt) {
1361
- clo += '-' + lt.toLowerCase();
1362
- }
1363
- else {
1364
- clo += lt;
1365
- }
1366
- });
1367
- str += clo + ':' + value + ';';
1368
- }
1369
- return str;
1370
- }
1371
-
1372
1172
  /**
1373
1173
  * Single source of truth for the card-entry responsive layout.
1374
1174
  *
@@ -1734,6 +1534,8 @@ const CARD_FIELD_ERROR_MESSAGES = {
1734
1534
  expiration: 'Expiration is invalid. Please double check information.',
1735
1535
  cvv: 'CVV is invalid. Please double check information.',
1736
1536
  cvvEmpty: 'Please enter your CVV to proceed.',
1537
+ invalidCardToken: 'Card token is invalid. Please add a new card',
1538
+ cardEntryUnavailable: 'Card entry is unavailable. Please re-enter your card details.',
1737
1539
  };
1738
1540
  function getCardFieldValidationError({ cardError, expirationError, cvvError, cvvEmpty, isCvvOnly, }) {
1739
1541
  if (cardError)
@@ -1993,6 +1795,39 @@ function getCoinflowPurchaseHeaders() {
1993
1795
  };
1994
1796
  }
1995
1797
 
1798
+ // Wire format of the fraud SDKs' `x-device-id` header: base64url(JSON {v, deviceId, sessionId,
1799
+ // purchaseToken}), unpadded. The iOS / Android / React Native / Flutter SDKs encode it
1800
+ // independently and must match the golden vector in this package's tests.
1801
+ class CoinflowFraudProtectionHeader {
1802
+ static { this.payloadVersion = 1; }
1803
+ // Three tokens; Forter caps at ~1024 chars. Bounds an abusive header before decoding.
1804
+ static { this.maxLength = 8192; }
1805
+ // Returns null when no provider produced a token or the header would exceed maxLength, so
1806
+ // callers omit it rather than send one the API rejects.
1807
+ static encode({ deviceId, sessionId, purchaseToken, }) {
1808
+ if (!deviceId && !sessionId && !purchaseToken)
1809
+ return null;
1810
+ const json = JSON.stringify({
1811
+ v: this.payloadVersion,
1812
+ deviceId: deviceId || null,
1813
+ sessionId: sessionId || null,
1814
+ purchaseToken: purchaseToken || null,
1815
+ });
1816
+ const header = this.base64UrlEncode(new TextEncoder().encode(json));
1817
+ return header.length > this.maxLength ? null : header;
1818
+ }
1819
+ static base64UrlEncode(bytes) {
1820
+ let binary = '';
1821
+ // Index loop: the React Native SDK compiles this file for ES5, which can't iterate a Uint8Array.
1822
+ for (let i = 0; i < bytes.length; i++)
1823
+ binary += String.fromCharCode(bytes[i]);
1824
+ return btoa(binary)
1825
+ .replace(/\+/g, '-')
1826
+ .replace(/\//g, '_')
1827
+ .replace(/=+$/, '');
1828
+ }
1829
+ }
1830
+
1996
1831
  const NSURE_APP_ID = '9JBW2RHC7JNJN8ZQ';
1997
1832
  const PROTECTION_SESSION_PROJECT_IDS = {
1998
1833
  prod: '315da543-c486-435a-aa21-53844c469822',
@@ -2183,8 +2018,8 @@ class CoinflowIFrameComponent {
2183
2018
  this.isLoading = false;
2184
2019
  this.onLoad?.();
2185
2020
  }
2186
- 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 }); }
2187
- 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
2021
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
2022
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowIFrameComponent, isStandalone: true, selector: "lib-coinflow-iframe", inputs: { iframeProps: "iframeProps", messageHandlers: "messageHandlers", onLoad: "onLoad", waitForLoadedMessage: "waitForLoadedMessage" }, outputs: { messageEvent: "messageEvent" }, host: { listeners: { "window:message": "onPostMessage($event)" } }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: ` <iframe
2188
2023
  width="100%"
2189
2024
  height="100%"
2190
2025
  #iframe
@@ -2197,7 +2032,7 @@ class CoinflowIFrameComponent {
2197
2032
  (load)="handleIframeLoad()"
2198
2033
  ></iframe>`, isInline: true }); }
2199
2034
  }
2200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
2035
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
2201
2036
  type: Component,
2202
2037
  args: [{
2203
2038
  selector: 'lib-coinflow-iframe',
@@ -2249,10 +2084,10 @@ class CoinflowPurchaseComponent {
2249
2084
  handleHeightChangeId,
2250
2085
  };
2251
2086
  }
2252
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2253
- 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"] }] }); }
2087
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2088
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowPurchaseComponent, isStandalone: true, selector: "lib-coinflow-purchase", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="purchaseProps?.onLoad" [waitForLoadedMessage]="true"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
2254
2089
  }
2255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
2090
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
2256
2091
  type: Component,
2257
2092
  args: [{
2258
2093
  selector: 'lib-coinflow-purchase',
@@ -2265,10 +2100,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
2265
2100
  }] } });
2266
2101
 
2267
2102
  class CoinflowPurchaseHistoryComponent {
2268
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2269
- 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 }); }
2103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2104
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
2270
2105
  }
2271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
2106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
2272
2107
  type: Component,
2273
2108
  args: [{
2274
2109
  selector: 'lib-coinflow-purchase-history',
@@ -2279,10 +2114,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
2279
2114
  }] });
2280
2115
 
2281
2116
  class CoinflowPurchaseProtectionComponent {
2282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2283
- 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 }); }
2117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2118
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
2284
2119
  }
2285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
2120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
2286
2121
  type: Component,
2287
2122
  args: [{
2288
2123
  selector: 'lib-coinflow-purchase-protection',
@@ -2307,10 +2142,10 @@ class CoinflowWithdrawComponent {
2307
2142
  handleHeightChangeId,
2308
2143
  };
2309
2144
  }
2310
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2311
- 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"] }] }); }
2145
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2146
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowWithdrawComponent, isStandalone: true, selector: "lib-coinflow-withdraw", inputs: { withdrawProps: "withdrawProps" }, ngImport: i0, template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="withdrawProps?.onLoad"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
2312
2147
  }
2313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
2148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
2314
2149
  type: Component,
2315
2150
  args: [{
2316
2151
  selector: 'lib-coinflow-withdraw',
@@ -2323,10 +2158,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
2323
2158
  }] } });
2324
2159
 
2325
2160
  class CoinflowWithdrawHistoryComponent {
2326
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2327
- 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 }); }
2161
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2162
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
2328
2163
  }
2329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
2164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
2330
2165
  type: Component,
2331
2166
  args: [{
2332
2167
  selector: 'lib-coinflow-withdraw-history',
@@ -2336,248 +2171,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
2336
2171
  }]
2337
2172
  }] });
2338
2173
 
2339
- class CardFormService {
2340
- constructor() {
2341
- this.loaded = false;
2342
- this.tokenExIframe = undefined;
2343
- }
2344
- setTokenExIframe(iframe) {
2345
- this.tokenExIframe = iframe;
2346
- }
2347
- setCachedToken() { }
2348
- setLoaded(input) {
2349
- this.loaded = input;
2350
- }
2351
- async initializeCvvOnlyTokenExIframe(args) {
2352
- const iframe = await doInitializeCvvOnlyTokenExIframe({
2353
- ...args,
2354
- tokenExScriptLoaded: true,
2355
- setCachedToken: this.setCachedToken.bind(this),
2356
- setLoaded: this.setLoaded.bind(this),
2357
- });
2358
- this.setTokenExIframe(iframe);
2359
- if (iframe)
2360
- iframe.load();
2361
- return iframe;
2362
- }
2363
- async initializeTokenExIframe(args) {
2364
- console.log('initializeTokenExIframe');
2365
- const iframe = await doInitializeTokenExIframe({
2366
- ...args,
2367
- tokenExScriptLoaded: true,
2368
- setCachedToken: this.setCachedToken.bind(this),
2369
- setLoaded: this.setLoaded.bind(this),
2370
- });
2371
- console.log('iframe', iframe);
2372
- this.setTokenExIframe(iframe);
2373
- if (iframe)
2374
- iframe.load();
2375
- console.log('LOADED');
2376
- return iframe;
2377
- }
2378
- async initializeTokenExCardOnlyIframe(args) {
2379
- const iframe = await doInitializeTokenExCardOnlyIframe({
2380
- ...args,
2381
- tokenExScriptLoaded: true,
2382
- setCachedToken: this.setCachedToken.bind(this),
2383
- setLoaded: this.setLoaded.bind(this),
2384
- });
2385
- this.setTokenExIframe(iframe);
2386
- if (iframe)
2387
- iframe.load();
2388
- return iframe;
2389
- }
2390
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2391
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
2392
- }
2393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CardFormService, decorators: [{
2394
- type: Injectable,
2395
- args: [{
2396
- providedIn: 'root',
2397
- }]
2398
- }] });
2399
-
2400
- class CoinflowCardNumberInput {
2401
- constructor() {
2402
- this.cardFormService = inject(CardFormService);
2403
- this.iframe = undefined;
2404
- this.TokenExCardNumberIframeId = TokenExCardNumberIframeId;
2405
- }
2406
- onScriptLoaded() {
2407
- this.cardFormService
2408
- .initializeTokenExIframe({
2409
- ...this.args,
2410
- css: JSON.stringify(this.args.css),
2411
- })
2412
- .then(iframe => (this.iframe = iframe))
2413
- .catch(e => console.error(e));
2414
- }
2415
- initializeTokenEx() {
2416
- setTokenExScriptTag({
2417
- env: this.args.env,
2418
- setTokenExScriptLoaded: this.onScriptLoaded.bind(this),
2419
- });
2420
- }
2421
- reinitialize() {
2422
- this.iframe = undefined;
2423
- this.initializeTokenEx();
2424
- }
2425
- ngOnInit() {
2426
- this.initializeTokenEx();
2427
- }
2428
- ngOnDestroy() {
2429
- this.iframe = undefined;
2430
- }
2431
- tokenize() {
2432
- return this.iframe.tokenize();
2433
- }
2434
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2435
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
2436
- }
2437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
2438
- type: Component,
2439
- args: [{
2440
- selector: 'lib-coinflow-card-number-input',
2441
- standalone: true,
2442
- imports: [],
2443
- template: '<div id="{{TokenExCardNumberIframeId}}"></div>',
2444
- }]
2445
- }], propDecorators: { args: [{
2446
- type: Input
2447
- }] } });
2448
-
2449
- class CoinflowCardNumberOnlyInput {
2450
- constructor() {
2451
- this.cardFormService = inject(CardFormService);
2452
- this.iframe = undefined;
2453
- this.TokenExCardNumberIframeId = TokenExCardNumberIframeId;
2454
- }
2455
- onScriptLoaded() {
2456
- this.cardFormService
2457
- .initializeTokenExCardOnlyIframe({
2458
- ...this.args,
2459
- css: JSON.stringify(this.args.css),
2460
- })
2461
- .then(iframe => (this.iframe = iframe))
2462
- .catch(e => console.error(e));
2463
- }
2464
- initializeTokenEx() {
2465
- setTokenExScriptTag({
2466
- env: this.args.env,
2467
- setTokenExScriptLoaded: this.onScriptLoaded.bind(this),
2468
- });
2469
- }
2470
- reinitialize() {
2471
- this.iframe = undefined;
2472
- this.initializeTokenEx();
2473
- }
2474
- ngOnInit() {
2475
- this.initializeTokenEx();
2476
- }
2477
- ngOnDestroy() {
2478
- this.iframe = undefined;
2479
- }
2480
- tokenize() {
2481
- return this.iframe.tokenize();
2482
- }
2483
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2484
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
2485
- }
2486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
2487
- type: Component,
2488
- args: [{
2489
- selector: 'lib-coinflow-card-number-only-input',
2490
- standalone: true,
2491
- imports: [],
2492
- template: '<div id="{{TokenExCardNumberIframeId}}"></div>',
2493
- }]
2494
- }], propDecorators: { args: [{
2495
- type: Input
2496
- }] } });
2497
-
2498
- class CoinflowCvvInputComponent {
2499
- constructor() {
2500
- this.TokenExCvvContainerID = TokenExCvvContainerID;
2501
- }
2502
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2503
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
2504
- }
2505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
2506
- type: Component,
2507
- args: [{
2508
- selector: 'lib-coinflow-cvv-input',
2509
- standalone: true,
2510
- imports: [],
2511
- template: '<div id="{{TokenExCvvContainerID}}" ></div>',
2512
- }]
2513
- }] });
2514
-
2515
- class CoinflowCvvOnlyInputComponent {
2516
- constructor() {
2517
- this.cardFormService = inject(CardFormService);
2518
- this.iframe = undefined;
2519
- this.TokenExCvvContainerID = TokenExCvvContainerID;
2520
- }
2521
- onScriptLoaded() {
2522
- this.cardFormService
2523
- .initializeCvvOnlyTokenExIframe({
2524
- ...this.args,
2525
- css: JSON.stringify(this.args.css),
2526
- })
2527
- .then(iframe => {
2528
- this.iframe = iframe;
2529
- })
2530
- .catch(e => console.error(e));
2531
- }
2532
- cleanup() {
2533
- if (this.iframe) {
2534
- const iframeElement = document.querySelector(`#${TokenExCvvContainerID}`);
2535
- if (iframeElement)
2536
- iframeElement.innerHTML = '';
2537
- this.iframe = undefined;
2538
- }
2539
- }
2540
- initializeTokenEx() {
2541
- setTokenExScriptTag({
2542
- env: this.args.env,
2543
- setTokenExScriptLoaded: this.onScriptLoaded.bind(this),
2544
- });
2545
- }
2546
- ngOnChanges(changes) {
2547
- if (changes.args && !changes.args.firstChange) {
2548
- this.reinitialize();
2549
- }
2550
- }
2551
- reinitialize() {
2552
- this.cleanup();
2553
- setTimeout(() => {
2554
- this.initializeTokenEx();
2555
- }, 500);
2556
- }
2557
- ngOnInit() {
2558
- this.initializeTokenEx();
2559
- }
2560
- ngOnDestroy() {
2561
- this.iframe = undefined;
2562
- }
2563
- tokenize() {
2564
- return this.iframe.tokenize();
2565
- }
2566
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2567
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
2568
- }
2569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
2570
- type: Component,
2571
- args: [{
2572
- selector: 'lib-coinflow-cvv-only-input',
2573
- standalone: true,
2574
- imports: [],
2575
- template: '<div id="{{TokenExCvvContainerID}}"></div>',
2576
- }]
2577
- }], propDecorators: { args: [{
2578
- type: Input
2579
- }] } });
2580
-
2581
2174
  class CoinflowCardForm {
2582
2175
  constructor(sanitizer, zone) {
2583
2176
  this.sanitizer = sanitizer;
@@ -2769,8 +2362,8 @@ class CoinflowCardForm {
2769
2362
  iframe.contentWindow.postMessage('tokenize', targetOrigin);
2770
2363
  });
2771
2364
  }
2772
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardForm, deps: [{ token: i1.DomSanitizer }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2773
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.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 }, { propertyName: "wrapperRef", first: true, predicate: ["wrapper"], descendants: true, static: true }], ngImport: i0, template: `<div
2365
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowCardForm, deps: [{ token: i1.DomSanitizer }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2366
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: CoinflowCardForm, isStandalone: true, selector: "lib-coinflow-card-form", inputs: { args: "args" }, host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["cardFormIframe"], descendants: true, static: true }, { propertyName: "wrapperRef", first: true, predicate: ["wrapper"], descendants: true, static: true }], ngImport: i0, template: `<div
2774
2367
  #wrapper
2775
2368
  [style.position]="'relative'"
2776
2369
  [style.width]="'100%'"
@@ -2804,7 +2397,7 @@ class CoinflowCardForm {
2804
2397
  ></iframe>
2805
2398
  </div>`, isInline: true, styles: ["@keyframes coinflow-card-form-skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
2806
2399
  }
2807
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowCardForm, decorators: [{
2400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowCardForm, decorators: [{
2808
2401
  type: Component,
2809
2402
  args: [{ selector: 'lib-coinflow-card-form', standalone: true, imports: [NgStyle], template: `<div
2810
2403
  #wrapper
@@ -2922,8 +2515,8 @@ class CoinflowMobileWalletButtonComponent {
2922
2515
  handleHeightChangeId,
2923
2516
  };
2924
2517
  }
2925
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2926
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CoinflowMobileWalletButtonComponent, isStandalone: true, selector: "lib-coinflow-mobile-wallet-button", inputs: { purchaseProps: "purchaseProps", route: "route", overlayDisplayOverride: "overlayDisplayOverride", alignItems: "alignItems" }, viewQueries: [{ propertyName: "iframeComponent", first: true, predicate: CoinflowIFrameComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: ` <div style="position: relative; height: 100%;">
2518
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2519
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowMobileWalletButtonComponent, isStandalone: true, selector: "lib-coinflow-mobile-wallet-button", inputs: { purchaseProps: "purchaseProps", route: "route", overlayDisplayOverride: "overlayDisplayOverride", alignItems: "alignItems" }, viewQueries: [{ propertyName: "iframeComponent", first: true, predicate: CoinflowIFrameComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: ` <div style="position: relative; height: 100%;">
2927
2520
  <div
2928
2521
  [style.background-color]="purchaseProps.color"
2929
2522
  [style.display]="overlayDisplayOverride ?? display"
@@ -2945,7 +2538,7 @@ class CoinflowMobileWalletButtonComponent {
2945
2538
  </div>
2946
2539
  </div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
2947
2540
  }
2948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
2541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
2949
2542
  type: Component,
2950
2543
  args: [{
2951
2544
  selector: 'lib-coinflow-mobile-wallet-button',
@@ -2990,8 +2583,8 @@ class CoinflowApplePayButtonComponent {
2990
2583
  fill() {
2991
2584
  return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
2992
2585
  }
2993
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2994
- 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
2586
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2587
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
2995
2588
  ng-if="iframeProps && messageHandlers"
2996
2589
  [purchaseProps]="purchaseProps"
2997
2590
  route="apple-pay"
@@ -3033,7 +2626,7 @@ class CoinflowApplePayButtonComponent {
3033
2626
  </svg>
3034
2627
  </lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
3035
2628
  }
3036
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
2629
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
3037
2630
  type: Component,
3038
2631
  args: [{
3039
2632
  selector: 'lib-coinflow-apple-pay-button',
@@ -3086,8 +2679,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
3086
2679
  }] } });
3087
2680
 
3088
2681
  class CoinflowGooglePayOverlayComponent {
3089
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3090
- 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: `
2682
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2683
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
3091
2684
  @if (color === 'white') {
3092
2685
  <svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
3093
2686
  <g fill="none" fill-rule="evenodd">
@@ -3142,7 +2735,7 @@ class CoinflowGooglePayOverlayComponent {
3142
2735
  }
3143
2736
  `, isInline: true }); }
3144
2737
  }
3145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
2738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
3146
2739
  type: Component,
3147
2740
  args: [{
3148
2741
  selector: 'coinflow-google-pay-overlay',
@@ -3208,8 +2801,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
3208
2801
  }] } });
3209
2802
 
3210
2803
  class CoinflowGooglePayButtonComponent {
3211
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3212
- 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
2804
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2805
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
3213
2806
  ng-if="iframeProps && messageHandlers"
3214
2807
  [purchaseProps]="purchaseProps"
3215
2808
  route="google-pay"
@@ -3221,7 +2814,7 @@ class CoinflowGooglePayButtonComponent {
3221
2814
  ></coinflow-google-pay-overlay>
3222
2815
  </lib-coinflow-mobile-wallet-button> `, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }, { kind: "component", type: CoinflowGooglePayOverlayComponent, selector: "coinflow-google-pay-overlay", inputs: ["color"] }] }); }
3223
2816
  }
3224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
2817
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
3225
2818
  type: Component,
3226
2819
  args: [{
3227
2820
  selector: 'lib-coinflow-google-pay-button',
@@ -3254,5 +2847,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
3254
2847
  * Generated bundle index. Do not edit.
3255
2848
  */
3256
2849
 
3257
- export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_FIELD_ERROR_MESSAGES, CARD_TYPE_MAPPING, COMPACT_SKELETON_HEIGHT_PX, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, FORTER_TOKEN_HEADER, IFrameMessageMethods, INLINE_SKELETON_HEIGHT_PX, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SKELETON_BOX_STYLE, SKELETON_FADE_MS, SKELETON_LAYOUTS, SKELETON_PULSE_ANIMATION_NAME, SKELETON_ROOT_PADDING_PX, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, bankLinkCallbackParams, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, canReuseLinkToken, captureForterToken, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCardFieldInputEvents, getCardFieldValidationError, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getIframeConfig, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, parseCachedLinkToken, paymentMethodLabels, recordFrontendError, resolveBankLinkCompletion, serializeCachedLinkToken, setTokenExScriptTag, shouldStackSkeleton };
2850
+ export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_FIELD_ERROR_MESSAGES, COMPACT_SKELETON_HEIGHT_PX, CardFunding, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowFraudProtectionHeader, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, FORTER_TOKEN_HEADER, IFrameMessageMethods, INLINE_SKELETON_HEIGHT_PX, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SKELETON_BOX_STYLE, SKELETON_FADE_MS, SKELETON_LAYOUTS, SKELETON_PULSE_ANIMATION_NAME, SKELETON_ROOT_PADDING_PX, SettlementType, ThreeDsChallengePreference, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, bankLinkCallbackParams, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, canReuseLinkToken, captureForterToken, getCardFieldInputEvents, getCardFieldValidationError, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, parseCachedLinkToken, paymentMethodLabels, recordFrontendError, resolveBankLinkCompletion, serializeCachedLinkToken, shouldStackSkeleton };
3258
2851
  //# sourceMappingURL=coinflowlabs-angular.mjs.map