@coinflowlabs/angular 1.1.0 → 1.1.2
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.
- package/fesm2022/coinflowlabs-angular.mjs +383 -160
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/lib/card-form/CardFormService.d.ts +1 -1
- package/lib/common/CoinflowTypes.d.ts +83 -74
- package/lib/common/CoinflowUtils.d.ts +1 -2
- package/lib/common/card-form/TokenEx.d.ts +1 -1
- package/lib/common/card-form/tokenexHelpers.d.ts +8 -0
- package/lib/common/index.d.ts +5 -1
- package/lib/common/types/AnyObject.d.ts +5 -0
- package/lib/common/types/CartitemCommon.d.ts +163 -0
- package/lib/common/types/Subtotal.d.ts +172 -0
- package/lib/common/types/cryptoCartItem.d.ts +62 -0
- package/lib/common/types/giftCardCartItem.d.ts +58 -0
- package/lib/common/types/moneyTopUpCartItem.d.ts +44 -0
- package/lib/common/types/nftCartItem.d.ts +99 -0
- package/package.json +1 -1
- package/lib/common/Subtotal.d.ts +0 -86
- package/lib/mobile-wallet/apple-pay-overlay.component.d.ts +0 -7
|
@@ -61,60 +61,277 @@ const base58 = base58Imported;
|
|
|
61
61
|
var Currency;
|
|
62
62
|
(function (Currency) {
|
|
63
63
|
Currency["USD"] = "USD";
|
|
64
|
-
Currency["
|
|
65
|
-
Currency["
|
|
66
|
-
Currency["
|
|
67
|
-
Currency["
|
|
64
|
+
Currency["AED"] = "AED";
|
|
65
|
+
Currency["AFN"] = "AFN";
|
|
66
|
+
Currency["ALL"] = "ALL";
|
|
67
|
+
Currency["ANG"] = "ANG";
|
|
68
|
+
Currency["AOA"] = "AOA";
|
|
69
|
+
Currency["AUD"] = "AUD";
|
|
70
|
+
Currency["AWG"] = "AWG";
|
|
71
|
+
Currency["AZN"] = "AZN";
|
|
72
|
+
Currency["BAM"] = "BAM";
|
|
73
|
+
Currency["BBD"] = "BBD";
|
|
74
|
+
Currency["BDT"] = "BDT";
|
|
75
|
+
Currency["BGN"] = "BGN";
|
|
68
76
|
Currency["BHD"] = "BHD";
|
|
69
|
-
Currency["
|
|
77
|
+
Currency["BIF"] = "BIF";
|
|
70
78
|
Currency["BND"] = "BND";
|
|
71
|
-
Currency["
|
|
79
|
+
Currency["BOB"] = "BOB";
|
|
80
|
+
Currency["BRL"] = "BRL";
|
|
81
|
+
Currency["BTN"] = "BTN";
|
|
82
|
+
Currency["BWP"] = "BWP";
|
|
83
|
+
Currency["BZD"] = "BZD";
|
|
84
|
+
Currency["CAD"] = "CAD";
|
|
85
|
+
Currency["CHF"] = "CHF";
|
|
72
86
|
Currency["CLP"] = "CLP";
|
|
73
|
-
Currency["
|
|
87
|
+
Currency["CNY"] = "CNY";
|
|
88
|
+
Currency["COP"] = "COP";
|
|
89
|
+
Currency["CRC"] = "CRC";
|
|
90
|
+
Currency["CVE"] = "CVE";
|
|
91
|
+
Currency["CZK"] = "CZK";
|
|
74
92
|
Currency["DJF"] = "DJF";
|
|
93
|
+
Currency["DKK"] = "DKK";
|
|
75
94
|
Currency["DOP"] = "DOP";
|
|
95
|
+
Currency["DZD"] = "DZD";
|
|
76
96
|
Currency["EGP"] = "EGP";
|
|
97
|
+
Currency["ETB"] = "ETB";
|
|
98
|
+
Currency["EUR"] = "EUR";
|
|
99
|
+
Currency["GBP"] = "GBP";
|
|
77
100
|
Currency["GEL"] = "GEL";
|
|
101
|
+
Currency["GHS"] = "GHS";
|
|
102
|
+
Currency["GMD"] = "GMD";
|
|
103
|
+
Currency["GNF"] = "GNF";
|
|
104
|
+
Currency["GTQ"] = "GTQ";
|
|
105
|
+
Currency["GYD"] = "GYD";
|
|
106
|
+
Currency["HKD"] = "HKD";
|
|
107
|
+
Currency["HNL"] = "HNL";
|
|
108
|
+
Currency["HTG"] = "HTG";
|
|
78
109
|
Currency["HUF"] = "HUF";
|
|
79
|
-
Currency["
|
|
110
|
+
Currency["IDR"] = "IDR";
|
|
80
111
|
Currency["INR"] = "INR";
|
|
81
|
-
Currency["
|
|
112
|
+
Currency["IQD"] = "IQD";
|
|
113
|
+
Currency["IRR"] = "IRR";
|
|
114
|
+
Currency["ISK"] = "ISK";
|
|
82
115
|
Currency["JMD"] = "JMD";
|
|
83
116
|
Currency["JOD"] = "JOD";
|
|
84
|
-
Currency["
|
|
85
|
-
Currency["
|
|
117
|
+
Currency["JPY"] = "JPY";
|
|
118
|
+
Currency["KES"] = "KES";
|
|
86
119
|
Currency["KGS"] = "KGS";
|
|
87
|
-
Currency["
|
|
88
|
-
Currency["
|
|
89
|
-
Currency["
|
|
90
|
-
Currency["
|
|
120
|
+
Currency["KHR"] = "KHR";
|
|
121
|
+
Currency["KMF"] = "KMF";
|
|
122
|
+
Currency["KRW"] = "KRW";
|
|
123
|
+
Currency["KWD"] = "KWD";
|
|
124
|
+
Currency["KYD"] = "KYD";
|
|
125
|
+
Currency["KZT"] = "KZT";
|
|
126
|
+
Currency["LKR"] = "LKR";
|
|
127
|
+
Currency["LRD"] = "LRD";
|
|
128
|
+
Currency["LSL"] = "LSL";
|
|
129
|
+
Currency["LYD"] = "LYD";
|
|
130
|
+
Currency["MAD"] = "MAD";
|
|
131
|
+
Currency["MDL"] = "MDL";
|
|
132
|
+
Currency["MGA"] = "MGA";
|
|
133
|
+
Currency["MKD"] = "MKD";
|
|
134
|
+
Currency["MMK"] = "MMK";
|
|
135
|
+
Currency["MNT"] = "MNT";
|
|
136
|
+
Currency["MOP"] = "MOP";
|
|
137
|
+
Currency["MRU"] = "MRU";
|
|
91
138
|
Currency["MUR"] = "MUR";
|
|
139
|
+
Currency["MVR"] = "MVR";
|
|
92
140
|
Currency["MXN"] = "MXN";
|
|
93
|
-
Currency["
|
|
141
|
+
Currency["MYR"] = "MYR";
|
|
94
142
|
Currency["NAD"] = "NAD";
|
|
143
|
+
Currency["NGN"] = "NGN";
|
|
144
|
+
Currency["NIO"] = "NIO";
|
|
145
|
+
Currency["NOK"] = "NOK";
|
|
146
|
+
Currency["NPR"] = "NPR";
|
|
95
147
|
Currency["NZD"] = "NZD";
|
|
148
|
+
Currency["OMR"] = "OMR";
|
|
149
|
+
Currency["PAB"] = "PAB";
|
|
96
150
|
Currency["PEN"] = "PEN";
|
|
97
151
|
Currency["PHP"] = "PHP";
|
|
152
|
+
Currency["PKR"] = "PKR";
|
|
98
153
|
Currency["PLN"] = "PLN";
|
|
154
|
+
Currency["PYG"] = "PYG";
|
|
155
|
+
Currency["QAR"] = "QAR";
|
|
99
156
|
Currency["RON"] = "RON";
|
|
157
|
+
Currency["RSD"] = "RSD";
|
|
158
|
+
Currency["RWF"] = "RWF";
|
|
100
159
|
Currency["SAR"] = "SAR";
|
|
160
|
+
Currency["SCR"] = "SCR";
|
|
161
|
+
Currency["SDG"] = "SDG";
|
|
162
|
+
Currency["SEK"] = "SEK";
|
|
101
163
|
Currency["SGD"] = "SGD";
|
|
102
|
-
Currency["
|
|
103
|
-
Currency["
|
|
104
|
-
Currency["
|
|
164
|
+
Currency["SLE"] = "SLE";
|
|
165
|
+
Currency["SLL"] = "SLL";
|
|
166
|
+
Currency["SOS"] = "SOS";
|
|
167
|
+
Currency["STN"] = "STN";
|
|
168
|
+
Currency["SVC"] = "SVC";
|
|
169
|
+
Currency["SYP"] = "SYP";
|
|
170
|
+
Currency["SZL"] = "SZL";
|
|
105
171
|
Currency["THB"] = "THB";
|
|
172
|
+
Currency["TJS"] = "TJS";
|
|
173
|
+
Currency["TMT"] = "TMT";
|
|
174
|
+
Currency["TND"] = "TND";
|
|
106
175
|
Currency["TRY"] = "TRY";
|
|
176
|
+
Currency["TTD"] = "TTD";
|
|
177
|
+
Currency["TWD"] = "TWD";
|
|
178
|
+
Currency["TZS"] = "TZS";
|
|
107
179
|
Currency["UAH"] = "UAH";
|
|
180
|
+
Currency["UGX"] = "UGX";
|
|
181
|
+
Currency["UYU"] = "UYU";
|
|
182
|
+
Currency["UZS"] = "UZS";
|
|
183
|
+
Currency["VND"] = "VND";
|
|
184
|
+
Currency["XAF"] = "XAF";
|
|
185
|
+
Currency["XCD"] = "XCD";
|
|
186
|
+
Currency["XOF"] = "XOF";
|
|
187
|
+
Currency["XPF"] = "XPF";
|
|
188
|
+
Currency["YER"] = "YER";
|
|
189
|
+
Currency["ZAR"] = "ZAR";
|
|
190
|
+
Currency["ZMW"] = "ZMW";
|
|
108
191
|
})(Currency || (Currency = {}));
|
|
192
|
+
const CurrencyToISO4217 = {
|
|
193
|
+
[Currency.AED]: '784',
|
|
194
|
+
[Currency.AFN]: '971',
|
|
195
|
+
[Currency.ALL]: '008',
|
|
196
|
+
[Currency.ANG]: '532',
|
|
197
|
+
[Currency.AOA]: '973',
|
|
198
|
+
[Currency.AUD]: '036',
|
|
199
|
+
[Currency.AWG]: '533',
|
|
200
|
+
[Currency.AZN]: '944',
|
|
201
|
+
[Currency.BAM]: '977',
|
|
202
|
+
[Currency.BBD]: '052',
|
|
203
|
+
[Currency.BDT]: '050',
|
|
204
|
+
[Currency.BGN]: '975',
|
|
205
|
+
[Currency.BHD]: '048',
|
|
206
|
+
[Currency.BIF]: '108',
|
|
207
|
+
[Currency.BND]: '096',
|
|
208
|
+
[Currency.BOB]: '068',
|
|
209
|
+
[Currency.BRL]: '986',
|
|
210
|
+
[Currency.BTN]: '064',
|
|
211
|
+
[Currency.BWP]: '072',
|
|
212
|
+
[Currency.BZD]: '084',
|
|
213
|
+
[Currency.CAD]: '124',
|
|
214
|
+
[Currency.CHF]: '756',
|
|
215
|
+
[Currency.CLP]: '152',
|
|
216
|
+
[Currency.CNY]: '156',
|
|
217
|
+
[Currency.COP]: '170',
|
|
218
|
+
[Currency.CRC]: '188',
|
|
219
|
+
[Currency.CVE]: '132',
|
|
220
|
+
[Currency.CZK]: '203',
|
|
221
|
+
[Currency.DJF]: '262',
|
|
222
|
+
[Currency.DKK]: '208',
|
|
223
|
+
[Currency.DOP]: '214',
|
|
224
|
+
[Currency.DZD]: '012',
|
|
225
|
+
[Currency.EGP]: '818',
|
|
226
|
+
[Currency.ETB]: '230',
|
|
227
|
+
[Currency.EUR]: '978',
|
|
228
|
+
[Currency.GBP]: '826',
|
|
229
|
+
[Currency.GEL]: '981',
|
|
230
|
+
[Currency.GHS]: '936',
|
|
231
|
+
[Currency.GMD]: '270',
|
|
232
|
+
[Currency.GNF]: '324',
|
|
233
|
+
[Currency.GTQ]: '320',
|
|
234
|
+
[Currency.GYD]: '328',
|
|
235
|
+
[Currency.HKD]: '344',
|
|
236
|
+
[Currency.HNL]: '340',
|
|
237
|
+
[Currency.HTG]: '332',
|
|
238
|
+
[Currency.HUF]: '348',
|
|
239
|
+
[Currency.IDR]: '360',
|
|
240
|
+
[Currency.INR]: '356',
|
|
241
|
+
[Currency.IQD]: '368',
|
|
242
|
+
[Currency.IRR]: '364',
|
|
243
|
+
[Currency.ISK]: '352',
|
|
244
|
+
[Currency.JMD]: '388',
|
|
245
|
+
[Currency.JOD]: '400',
|
|
246
|
+
[Currency.JPY]: '392',
|
|
247
|
+
[Currency.KES]: '404',
|
|
248
|
+
[Currency.KGS]: '417',
|
|
249
|
+
[Currency.KHR]: '116',
|
|
250
|
+
[Currency.KMF]: '174',
|
|
251
|
+
[Currency.KRW]: '410',
|
|
252
|
+
[Currency.KWD]: '414',
|
|
253
|
+
[Currency.KYD]: '136',
|
|
254
|
+
[Currency.KZT]: '398',
|
|
255
|
+
[Currency.LKR]: '144',
|
|
256
|
+
[Currency.LRD]: '430',
|
|
257
|
+
[Currency.LSL]: '426',
|
|
258
|
+
[Currency.LYD]: '434',
|
|
259
|
+
[Currency.MAD]: '504',
|
|
260
|
+
[Currency.MDL]: '498',
|
|
261
|
+
[Currency.MGA]: '969',
|
|
262
|
+
[Currency.MKD]: '807',
|
|
263
|
+
[Currency.MMK]: '104',
|
|
264
|
+
[Currency.MNT]: '496',
|
|
265
|
+
[Currency.MOP]: '446',
|
|
266
|
+
[Currency.MRU]: '929',
|
|
267
|
+
[Currency.MUR]: '480',
|
|
268
|
+
[Currency.MVR]: '462',
|
|
269
|
+
[Currency.MXN]: '484',
|
|
270
|
+
[Currency.MYR]: '458',
|
|
271
|
+
[Currency.NAD]: '516',
|
|
272
|
+
[Currency.NGN]: '566',
|
|
273
|
+
[Currency.NIO]: '558',
|
|
274
|
+
[Currency.NOK]: '578',
|
|
275
|
+
[Currency.NPR]: '524',
|
|
276
|
+
[Currency.NZD]: '554',
|
|
277
|
+
[Currency.OMR]: '512',
|
|
278
|
+
[Currency.PAB]: '590',
|
|
279
|
+
[Currency.PEN]: '604',
|
|
280
|
+
[Currency.PHP]: '608',
|
|
281
|
+
[Currency.PKR]: '586',
|
|
282
|
+
[Currency.PLN]: '985',
|
|
283
|
+
[Currency.PYG]: '600',
|
|
284
|
+
[Currency.QAR]: '634',
|
|
285
|
+
[Currency.RON]: '946',
|
|
286
|
+
[Currency.RSD]: '941',
|
|
287
|
+
[Currency.RWF]: '646',
|
|
288
|
+
[Currency.SAR]: '682',
|
|
289
|
+
[Currency.SCR]: '690',
|
|
290
|
+
[Currency.SDG]: '938',
|
|
291
|
+
[Currency.SEK]: '752',
|
|
292
|
+
[Currency.SGD]: '702',
|
|
293
|
+
[Currency.SLE]: '925',
|
|
294
|
+
[Currency.SLL]: '694',
|
|
295
|
+
[Currency.SOS]: '706',
|
|
296
|
+
[Currency.STN]: '930',
|
|
297
|
+
[Currency.SVC]: '222',
|
|
298
|
+
[Currency.SYP]: '760',
|
|
299
|
+
[Currency.SZL]: '748',
|
|
300
|
+
[Currency.THB]: '764',
|
|
301
|
+
[Currency.TJS]: '972',
|
|
302
|
+
[Currency.TMT]: '934',
|
|
303
|
+
[Currency.TND]: '788',
|
|
304
|
+
[Currency.TRY]: '949',
|
|
305
|
+
[Currency.TTD]: '780',
|
|
306
|
+
[Currency.TWD]: '901',
|
|
307
|
+
[Currency.TZS]: '834',
|
|
308
|
+
[Currency.UAH]: '980',
|
|
309
|
+
[Currency.UGX]: '800',
|
|
310
|
+
[Currency.USD]: '840',
|
|
311
|
+
[Currency.UYU]: '858',
|
|
312
|
+
[Currency.UZS]: '860',
|
|
313
|
+
[Currency.VND]: '704',
|
|
314
|
+
[Currency.XAF]: '950',
|
|
315
|
+
[Currency.XCD]: '951',
|
|
316
|
+
[Currency.XOF]: '952',
|
|
317
|
+
[Currency.XPF]: '953',
|
|
318
|
+
[Currency.YER]: '886',
|
|
319
|
+
[Currency.ZAR]: '710',
|
|
320
|
+
[Currency.ZMW]: '967',
|
|
321
|
+
};
|
|
109
322
|
const WithdrawCurrencies = {
|
|
110
323
|
[Currency.USD]: Currency.USD,
|
|
111
324
|
[Currency.EUR]: Currency.EUR,
|
|
112
325
|
[Currency.GBP]: Currency.GBP,
|
|
113
326
|
[Currency.BRL]: Currency.BRL,
|
|
327
|
+
[Currency.CAD]: Currency.CAD,
|
|
114
328
|
};
|
|
115
329
|
function isWithdrawCurrency(currency) {
|
|
116
330
|
return currency in WithdrawCurrencies;
|
|
117
331
|
}
|
|
332
|
+
function isTypedCurrencyCents(cents, currency) {
|
|
333
|
+
return cents.currency === currency;
|
|
334
|
+
}
|
|
118
335
|
|
|
119
336
|
class CoinflowUtils {
|
|
120
337
|
constructor(env) {
|
|
@@ -152,7 +369,7 @@ class CoinflowUtils {
|
|
|
152
369
|
return 'http://localhost:5000';
|
|
153
370
|
return `https://api-${env}.coinflow.cash`;
|
|
154
371
|
}
|
|
155
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets,
|
|
372
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, }) {
|
|
156
373
|
const prefix = routePrefix
|
|
157
374
|
? `/${routePrefix}/${blockchain}`
|
|
158
375
|
: `/${blockchain}`;
|
|
@@ -209,8 +426,6 @@ class CoinflowUtils {
|
|
|
209
426
|
}
|
|
210
427
|
if (additionalWallets)
|
|
211
428
|
url.searchParams.append('additionalWallets', LZString.compressToEncodedURIComponent(JSON.stringify(additionalWallets)));
|
|
212
|
-
if (nearDeposit)
|
|
213
|
-
url.searchParams.append('nearDeposit', nearDeposit);
|
|
214
429
|
if (chargebackProtectionData)
|
|
215
430
|
url.searchParams.append('chargebackProtectionData', LZString.compressToEncodedURIComponent(JSON.stringify(chargebackProtectionData)));
|
|
216
431
|
if (deviceId) {
|
|
@@ -306,12 +521,6 @@ class CoinflowUtils {
|
|
|
306
521
|
const { transaction } = props;
|
|
307
522
|
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
308
523
|
},
|
|
309
|
-
near: () => {
|
|
310
|
-
if (!('action' in props))
|
|
311
|
-
return undefined;
|
|
312
|
-
const { action } = props;
|
|
313
|
-
return LZString.compressToEncodedURIComponent(JSON.stringify(action));
|
|
314
|
-
},
|
|
315
524
|
user: () => {
|
|
316
525
|
return undefined;
|
|
317
526
|
},
|
|
@@ -321,8 +530,6 @@ class CoinflowUtils {
|
|
|
321
530
|
switch (blockchain) {
|
|
322
531
|
case 'solana':
|
|
323
532
|
return args.solana;
|
|
324
|
-
case 'near':
|
|
325
|
-
return args.near;
|
|
326
533
|
case 'polygon':
|
|
327
534
|
return args.polygon;
|
|
328
535
|
case 'eth':
|
|
@@ -387,8 +594,6 @@ function getWalletPubkey(input) {
|
|
|
387
594
|
return wallet.publicKey ? wallet.publicKey.toString() : undefined;
|
|
388
595
|
if ('address' in wallet)
|
|
389
596
|
return wallet.address ? wallet.address : undefined;
|
|
390
|
-
if ('accountId' in wallet)
|
|
391
|
-
return wallet.accountId ? wallet.accountId : undefined;
|
|
392
597
|
}
|
|
393
598
|
return null;
|
|
394
599
|
}
|
|
@@ -472,11 +677,6 @@ function getHandlers(props) {
|
|
|
472
677
|
onSuccess: props.onSuccess,
|
|
473
678
|
onAuthDeclined: props.onAuthDeclined,
|
|
474
679
|
}),
|
|
475
|
-
near: () => getNearWalletHandlers({
|
|
476
|
-
wallet: wallet,
|
|
477
|
-
onSuccess: props.onSuccess,
|
|
478
|
-
onAuthDeclined: props.onAuthDeclined,
|
|
479
|
-
}),
|
|
480
680
|
eth: () => getEvmWalletHandlers({
|
|
481
681
|
wallet: wallet,
|
|
482
682
|
onSuccess: props.onSuccess,
|
|
@@ -545,20 +745,6 @@ function getSolanaTransaction(data) {
|
|
|
545
745
|
return web3.Transaction.from(parsedUInt8Array);
|
|
546
746
|
return vtx;
|
|
547
747
|
}
|
|
548
|
-
function getNearWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
549
|
-
return {
|
|
550
|
-
handleSendTransaction: async (transaction) => {
|
|
551
|
-
const action = JSON.parse(Buffer.from(transaction, 'base64').toString());
|
|
552
|
-
const executionOutcome = await wallet.signAndSendTransaction(action);
|
|
553
|
-
if (!executionOutcome)
|
|
554
|
-
throw new Error('Transaction did not send');
|
|
555
|
-
const { transaction: transactionResult } = executionOutcome;
|
|
556
|
-
return transactionResult.hash;
|
|
557
|
-
},
|
|
558
|
-
onSuccess,
|
|
559
|
-
onAuthDeclined,
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
748
|
function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
563
749
|
return {
|
|
564
750
|
handleSendTransaction: async (transaction) => {
|
|
@@ -727,27 +913,158 @@ function getStyles(s) {
|
|
|
727
913
|
};
|
|
728
914
|
return { styles };
|
|
729
915
|
}
|
|
730
|
-
|
|
731
|
-
|
|
916
|
+
const unitlessProperties = new Set([
|
|
917
|
+
'animationIterationCount',
|
|
918
|
+
'aspectRatio',
|
|
919
|
+
'borderImageOutset',
|
|
920
|
+
'borderImageSlice',
|
|
921
|
+
'borderImageWidth',
|
|
922
|
+
'boxFlex',
|
|
923
|
+
'boxFlexGroup',
|
|
924
|
+
'boxOrdinalGroup',
|
|
925
|
+
'columnCount',
|
|
926
|
+
'columns',
|
|
927
|
+
'flex',
|
|
928
|
+
'flexGrow',
|
|
929
|
+
'flexPositive',
|
|
930
|
+
'flexShrink',
|
|
931
|
+
'flexNegative',
|
|
932
|
+
'flexOrder',
|
|
933
|
+
'gridArea',
|
|
934
|
+
'gridRow',
|
|
935
|
+
'gridRowEnd',
|
|
936
|
+
'gridRowSpan',
|
|
937
|
+
'gridRowStart',
|
|
938
|
+
'gridColumn',
|
|
939
|
+
'gridColumnEnd',
|
|
940
|
+
'gridColumnSpan',
|
|
941
|
+
'gridColumnStart',
|
|
942
|
+
'fontWeight',
|
|
943
|
+
'lineClamp',
|
|
944
|
+
'lineHeight',
|
|
945
|
+
'opacity',
|
|
946
|
+
'order',
|
|
947
|
+
'orphans',
|
|
948
|
+
'scale',
|
|
949
|
+
'rotate',
|
|
950
|
+
'rotateX',
|
|
951
|
+
'rotateY',
|
|
952
|
+
'rotateZ',
|
|
953
|
+
'scaleX',
|
|
954
|
+
'scaleY',
|
|
955
|
+
'scaleZ',
|
|
956
|
+
'skew',
|
|
957
|
+
'skewX',
|
|
958
|
+
'skewY',
|
|
959
|
+
'tabSize',
|
|
960
|
+
'widows',
|
|
961
|
+
'zIndex',
|
|
962
|
+
'zoom',
|
|
963
|
+
// svg props here
|
|
964
|
+
'fillOpacity',
|
|
965
|
+
'floodOpacity',
|
|
966
|
+
'stopOpacity',
|
|
967
|
+
'strokeDasharray',
|
|
968
|
+
'strokeDashoffset',
|
|
969
|
+
'strokeMiterlimit',
|
|
970
|
+
'strokeOpacity',
|
|
971
|
+
'strokeWidth',
|
|
972
|
+
]);
|
|
973
|
+
const VENDOR_PREFIX_REGEX = /^(Webkit|Moz|ms|O)/; // ms is lowercase in some jsx keynames
|
|
974
|
+
const KEBAB_CASE_REGEX = /[A-Z]/g;
|
|
975
|
+
/**
|
|
976
|
+
* Converts a CSSProperties object to a valid CSS string.
|
|
977
|
+
*
|
|
978
|
+
* @param styles - the CSSProperties object to convert (should work with either React.CSSProperties or CSS.Properties<string | number>>)
|
|
979
|
+
* @returns a string representation of the CSS properties.
|
|
980
|
+
*
|
|
981
|
+
*/
|
|
982
|
+
function CSSPropertiesToComponent(styles) {
|
|
983
|
+
if (!styles || Object.keys(styles).length === 0) {
|
|
732
984
|
return '';
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
985
|
+
}
|
|
986
|
+
const cssParts = [];
|
|
987
|
+
for (const key in styles) {
|
|
988
|
+
if (Object.prototype.hasOwnProperty.call(styles, key)) {
|
|
989
|
+
const value = styles[key];
|
|
990
|
+
if (value === null || value === undefined || value === '') {
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
let cssPropertyKey = key;
|
|
994
|
+
if (cssPropertyKey.startsWith('--')) {
|
|
995
|
+
// ignore custom props
|
|
741
996
|
}
|
|
742
997
|
else {
|
|
743
|
-
|
|
998
|
+
cssPropertyKey = cssPropertyKey.replace(KEBAB_CASE_REGEX, match => `-${match.toLowerCase()}`);
|
|
999
|
+
if (VENDOR_PREFIX_REGEX.test(key)) {
|
|
1000
|
+
cssPropertyKey = `-${cssPropertyKey}`;
|
|
1001
|
+
}
|
|
744
1002
|
}
|
|
745
|
-
|
|
746
|
-
|
|
1003
|
+
let cssValue;
|
|
1004
|
+
if (typeof value === 'number') {
|
|
1005
|
+
if (unitlessProperties.has(key)) {
|
|
1006
|
+
cssValue = String(value);
|
|
1007
|
+
}
|
|
1008
|
+
else {
|
|
1009
|
+
cssValue = value === 0 ? '0' : `${value}px`;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
else {
|
|
1013
|
+
cssValue = String(value);
|
|
1014
|
+
}
|
|
1015
|
+
cssParts.push(`${cssPropertyKey}: ${cssValue}`);
|
|
1016
|
+
}
|
|
747
1017
|
}
|
|
748
|
-
|
|
1018
|
+
if (cssParts.length === 0) {
|
|
1019
|
+
return '';
|
|
1020
|
+
}
|
|
1021
|
+
return cssParts.join('; ') + ';';
|
|
749
1022
|
}
|
|
750
1023
|
|
|
1024
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1025
|
+
/* istanbul ignore file */
|
|
1026
|
+
/* tslint:disable */
|
|
1027
|
+
/* eslint-disable */
|
|
1028
|
+
var nftCartItem;
|
|
1029
|
+
(function (nftCartItem) {
|
|
1030
|
+
/**
|
|
1031
|
+
* Denotes the cart item class. The item schema is chosen based on this value
|
|
1032
|
+
*/
|
|
1033
|
+
let itemClass;
|
|
1034
|
+
(function (itemClass) {
|
|
1035
|
+
itemClass["NFT"] = "nft";
|
|
1036
|
+
})(itemClass = nftCartItem.itemClass || (nftCartItem.itemClass = {}));
|
|
1037
|
+
/**
|
|
1038
|
+
* The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
|
|
1039
|
+
*/
|
|
1040
|
+
let productType;
|
|
1041
|
+
(function (productType) {
|
|
1042
|
+
productType["IN_GAME_PRODUCT"] = "inGameProduct";
|
|
1043
|
+
productType["GAME_OF_SKILL"] = "gameOfSkill";
|
|
1044
|
+
productType["DATA_STORAGE"] = "dataStorage";
|
|
1045
|
+
productType["COMPUTING_RESOURCES"] = "computingResources";
|
|
1046
|
+
productType["SPORTS_TICKET"] = "sportsTicket";
|
|
1047
|
+
productType["E_SPORTS_TICKET"] = "eSportsTicket";
|
|
1048
|
+
productType["MUSIC_TICKET"] = "musicTicket";
|
|
1049
|
+
productType["CONFERENCE_TICKET"] = "conferenceTicket";
|
|
1050
|
+
productType["VIRTUAL_SPORTS_TICKET"] = "virtualSportsTicket";
|
|
1051
|
+
productType["VIRTUAL_ESPORTS_TICKET"] = "virtualESportsTicket";
|
|
1052
|
+
productType["VIRTUAL_MUSIC_TICKET"] = "virtualMusicTicket";
|
|
1053
|
+
productType["VIRTUAL_CONFERENCE_TICKET"] = "virtualConferenceTicket";
|
|
1054
|
+
productType["ALCOHOL"] = "alcohol";
|
|
1055
|
+
productType["DLC"] = "DLC";
|
|
1056
|
+
productType["SUBSCRIPTION"] = "subscription";
|
|
1057
|
+
productType["FUND_ACAUSE"] = "fundACause";
|
|
1058
|
+
productType["REAL_ESTATE"] = "realEstate";
|
|
1059
|
+
productType["COMPUTING_CONTRACT"] = "computingContract";
|
|
1060
|
+
productType["DIGITAL_ART"] = "digitalArt";
|
|
1061
|
+
productType["TOP_UP"] = "topUp";
|
|
1062
|
+
productType["OWNERSHIP_CONTRACT"] = "ownershipContract";
|
|
1063
|
+
productType["IN_GAME_CURRENCY"] = "inGameCurrency";
|
|
1064
|
+
productType["MONEY_TOP_UP_CART_ITEM"] = "moneyTopUpCartItem";
|
|
1065
|
+
})(productType = nftCartItem.productType || (nftCartItem.productType = {}));
|
|
1066
|
+
})(nftCartItem || (nftCartItem = {}));
|
|
1067
|
+
|
|
751
1068
|
class CoinflowIFrameComponent {
|
|
752
1069
|
constructor(sanitizer) {
|
|
753
1070
|
this.sanitizer = sanitizer;
|
|
@@ -1257,97 +1574,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1257
1574
|
type: Input
|
|
1258
1575
|
}] } });
|
|
1259
1576
|
|
|
1260
|
-
class CoinflowApplePayOverlayComponent {
|
|
1261
|
-
fill() {
|
|
1262
|
-
return this.color === 'white' ? '#000' : '#FFF';
|
|
1263
|
-
}
|
|
1264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowApplePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1265
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowApplePayOverlayComponent, isStandalone: true, selector: "coinflow-apple-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
|
|
1266
|
-
<svg id="svg-logo" viewBox="0 0 35 15">
|
|
1267
|
-
<svg
|
|
1268
|
-
id="svg-logo"
|
|
1269
|
-
x="0"
|
|
1270
|
-
y="3.85"
|
|
1271
|
-
height="7.3"
|
|
1272
|
-
width="35"
|
|
1273
|
-
className="logo"
|
|
1274
|
-
viewBox="0 0 105 43"
|
|
1275
|
-
version="1.1"
|
|
1276
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1277
|
-
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
1278
|
-
>
|
|
1279
|
-
<title>Apple Logo</title>
|
|
1280
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
1281
|
-
<g fill="#000">
|
|
1282
|
-
<path
|
|
1283
|
-
d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"
|
|
1284
|
-
></path>
|
|
1285
|
-
<path
|
|
1286
|
-
d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"
|
|
1287
|
-
></path>
|
|
1288
|
-
<path
|
|
1289
|
-
d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"
|
|
1290
|
-
></path>
|
|
1291
|
-
<path
|
|
1292
|
-
d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"
|
|
1293
|
-
></path>
|
|
1294
|
-
<path
|
|
1295
|
-
d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"
|
|
1296
|
-
></path>
|
|
1297
|
-
</g>
|
|
1298
|
-
</g>
|
|
1299
|
-
</svg>
|
|
1300
|
-
</svg>
|
|
1301
|
-
`, isInline: true }); }
|
|
1302
|
-
}
|
|
1303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowApplePayOverlayComponent, decorators: [{
|
|
1304
|
-
type: Component,
|
|
1305
|
-
args: [{
|
|
1306
|
-
selector: 'coinflow-apple-pay-overlay',
|
|
1307
|
-
standalone: true,
|
|
1308
|
-
imports: [],
|
|
1309
|
-
template: `
|
|
1310
|
-
<svg id="svg-logo" viewBox="0 0 35 15">
|
|
1311
|
-
<svg
|
|
1312
|
-
id="svg-logo"
|
|
1313
|
-
x="0"
|
|
1314
|
-
y="3.85"
|
|
1315
|
-
height="7.3"
|
|
1316
|
-
width="35"
|
|
1317
|
-
className="logo"
|
|
1318
|
-
viewBox="0 0 105 43"
|
|
1319
|
-
version="1.1"
|
|
1320
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1321
|
-
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
1322
|
-
>
|
|
1323
|
-
<title>Apple Logo</title>
|
|
1324
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
1325
|
-
<g fill="#000">
|
|
1326
|
-
<path
|
|
1327
|
-
d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"
|
|
1328
|
-
></path>
|
|
1329
|
-
<path
|
|
1330
|
-
d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"
|
|
1331
|
-
></path>
|
|
1332
|
-
<path
|
|
1333
|
-
d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"
|
|
1334
|
-
></path>
|
|
1335
|
-
<path
|
|
1336
|
-
d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"
|
|
1337
|
-
></path>
|
|
1338
|
-
<path
|
|
1339
|
-
d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"
|
|
1340
|
-
></path>
|
|
1341
|
-
</g>
|
|
1342
|
-
</g>
|
|
1343
|
-
</svg>
|
|
1344
|
-
</svg>
|
|
1345
|
-
`,
|
|
1346
|
-
}]
|
|
1347
|
-
}], propDecorators: { color: [{
|
|
1348
|
-
type: Input
|
|
1349
|
-
}] } });
|
|
1350
|
-
|
|
1351
1577
|
class CoinflowApplePayButtonComponent {
|
|
1352
1578
|
fill() {
|
|
1353
1579
|
return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
|
|
@@ -1400,10 +1626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1400
1626
|
args: [{
|
|
1401
1627
|
selector: 'lib-coinflow-apple-pay-button',
|
|
1402
1628
|
standalone: true,
|
|
1403
|
-
imports: [
|
|
1404
|
-
CoinflowMobileWalletButtonComponent,
|
|
1405
|
-
CoinflowApplePayOverlayComponent,
|
|
1406
|
-
],
|
|
1629
|
+
imports: [CoinflowMobileWalletButtonComponent],
|
|
1407
1630
|
template: ` <lib-coinflow-mobile-wallet-button
|
|
1408
1631
|
ng-if="iframeProps && messageHandlers"
|
|
1409
1632
|
[purchaseProps]="purchaseProps"
|