@coinflowlabs/angular 1.15.1 → 2.0.0

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