@coinflowlabs/vue 2.0.0 → 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.
- package/dist/coinflow-vue.js +165 -209
- package/dist/coinflow-vue.umd.cjs +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +0 -42
- package/dist/components/CoinflowWithdraw.vue.d.ts +7 -40
- package/dist/lib/common/CoinflowTypes.d.ts +9 -29
- package/dist/lib/common/CoinflowUtils.d.ts +0 -1
- package/package.json +1 -1
package/dist/coinflow-vue.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as ir, openBlock as On, createElementBlock as Wn, resolveComponent as _l, createBlock as Is, onMounted as El, ref as Kn, computed as Na, watch as Rl, onUnmounted as Sp, normalizeStyle as wo, unref as fs, createElementVNode as jr, Fragment as bl, renderList as Ip, createCommentVNode as nu, renderSlot as Op, createVNode as mu, createStaticVNode as ru, withCtx as Al } from "vue";
|
|
2
2
|
var Np = /* @__PURE__ */ ((t) => (t.USER = "user", t.BUSINESS = "business", t.FIRST_PARTY = "firstParty", t))(Np || {}), Tp = /* @__PURE__ */ ((t) => (t.ASAP = "asap", t.SAME_DAY = "same_day", t.STANDARD = "standard", t.CARD = "card", t.IBAN = "iban", t.PIX = "pix", t.EFT = "eft", t.VENMO = "venmo", t.PAYPAL = "paypal", t.WIRE = "wire", t.INTERAC = "interac", t.SWIFT = "swift", t.CRYPTO = "crypto", t))(Tp || {}), xp = /* @__PURE__ */ ((t) => (t.Credits = "Credits", t.USDC = "USDC", t.Bank = "Bank", t))(xp || {});
|
|
3
|
-
function
|
|
3
|
+
function Zy(t) {
|
|
4
4
|
return "cardToken" in t;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Yy(t) {
|
|
7
7
|
return "disableSavedPaymentMethods" in t;
|
|
8
8
|
}
|
|
9
9
|
var Lp = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Sharp = "sharp", t.Pill = "pill", t))(Lp || {}), Cp = /* @__PURE__ */ ((t) => (t.GUEST = "guest", t.PRIVATE = "private", t.BUSINESS = "business", t))(Cp || {}), Mp = /* @__PURE__ */ ((t) => (t.NoPreference = "NoPreference", t.Frictionless = "Frictionless", t.Challenge = "Challenge", t))(Mp || {}), Bp = /* @__PURE__ */ ((t) => (t.debit = "debit", t.credit = "credit", t.prepaid = "prepaid", t))(Bp || {}), kp = /* @__PURE__ */ ((t) => (t.card = "card", t.ach = "ach", t.fasterPayments = "fasterPayments", t.sepa = "sepa", t.pix = "pix", t.usdc = "usdc", t.googlePay = "googlePay", t.applePay = "applePay", t.paze = "paze", t.credits = "credits", t.crypto = "crypto", t.wire = "wire", t.cashApp = "cashApp", t.apa = "apa", t.paypal = "paypal", t.venmo = "venmo", t.interac = "interac", t))(kp || {});
|
|
10
|
-
const
|
|
10
|
+
const qy = {
|
|
11
11
|
card: "Card",
|
|
12
12
|
ach: "ACH",
|
|
13
13
|
fasterPayments: "Faster Payments",
|
|
@@ -27,7 +27,7 @@ const Xy = {
|
|
|
27
27
|
interac: "Interac"
|
|
28
28
|
};
|
|
29
29
|
var Up = /* @__PURE__ */ ((t) => (t.VISA = "VISA", t.MASTERCARD = "MSTR", t.AMEX = "AMEX", t.DISCOVER = "DISC", t))(Up || {});
|
|
30
|
-
const
|
|
30
|
+
const Xy = "rnredirect";
|
|
31
31
|
function gu(t) {
|
|
32
32
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
33
33
|
}
|
|
@@ -9790,7 +9790,7 @@ function Bv() {
|
|
|
9790
9790
|
var kv = Bv();
|
|
9791
9791
|
const An = /* @__PURE__ */ gu(kv);
|
|
9792
9792
|
var F1 = /* @__PURE__ */ ((t) => (t.USD = "USD", t.AED = "AED", t.AFN = "AFN", t.ALL = "ALL", t.AMD = "AMD", t.ANG = "ANG", t.AOA = "AOA", t.ARS = "ARS", t.AUD = "AUD", t.AWG = "AWG", t.AZN = "AZN", t.BAM = "BAM", t.BBD = "BBD", t.BDT = "BDT", t.BGN = "BGN", t.BHD = "BHD", t.BIF = "BIF", t.BMD = "BMD", t.BND = "BND", t.BOB = "BOB", t.BRL = "BRL", t.BSD = "BSD", t.BTN = "BTN", t.BWP = "BWP", t.BYN = "BYN", t.BZD = "BZD", t.CAD = "CAD", t.CHF = "CHF", t.CLF = "CLF", t.CLP = "CLP", t.CNY = "CNY", t.COP = "COP", t.CRC = "CRC", t.CUP = "CUP", t.CVE = "CVE", t.CZK = "CZK", t.DJF = "DJF", t.DKK = "DKK", t.DOP = "DOP", t.DZD = "DZD", t.EGP = "EGP", t.ETB = "ETB", t.EUR = "EUR", t.FJD = "FJD", t.GBP = "GBP", t.GEL = "GEL", t.GHS = "GHS", t.GMD = "GMD", t.GNF = "GNF", t.GTQ = "GTQ", t.GYD = "GYD", t.HKD = "HKD", t.HNL = "HNL", t.HTG = "HTG", t.HUF = "HUF", t.IDR = "IDR", t.ILS = "ILS", t.INR = "INR", t.IQD = "IQD", t.IRR = "IRR", t.ISK = "ISK", t.JMD = "JMD", t.JOD = "JOD", t.JPY = "JPY", t.KES = "KES", t.KGS = "KGS", t.KHR = "KHR", t.KMF = "KMF", t.KRW = "KRW", t.KWD = "KWD", t.KYD = "KYD", t.KZT = "KZT", t.LAK = "LAK", t.LBP = "LBP", t.LKR = "LKR", t.LRD = "LRD", t.LSL = "LSL", t.LYD = "LYD", t.MAD = "MAD", t.MDL = "MDL", t.MGA = "MGA", t.MKD = "MKD", t.MMK = "MMK", t.MNT = "MNT", t.MOP = "MOP", t.MRU = "MRU", t.MUR = "MUR", t.MWK = "MWK", t.MVR = "MVR", t.MXN = "MXN", t.MYR = "MYR", t.MZN = "MZN", t.NAD = "NAD", t.NGN = "NGN", t.NIO = "NIO", t.NOK = "NOK", t.NPR = "NPR", t.NZD = "NZD", t.OMR = "OMR", t.PAB = "PAB", t.PEN = "PEN", t.PGK = "PGK", t.PHP = "PHP", t.PKR = "PKR", t.PLN = "PLN", t.PYG = "PYG", t.QAR = "QAR", t.RON = "RON", t.RSD = "RSD", t.RWF = "RWF", t.SAR = "SAR", t.SCR = "SCR", t.SDG = "SDG", t.SEK = "SEK", t.SGD = "SGD", t.SLE = "SLE", t.SLL = "SLL", t.SOS = "SOS", t.SRD = "SRD", t.STN = "STN", t.SVC = "SVC", t.SYP = "SYP", t.SZL = "SZL", t.THB = "THB", t.TJS = "TJS", t.TMT = "TMT", t.TND = "TND", t.TOP = "TOP", t.TRY = "TRY", t.TTD = "TTD", t.TWD = "TWD", t.TZS = "TZS", t.UAH = "UAH", t.UGX = "UGX", t.UYU = "UYU", t.UZS = "UZS", t.VND = "VND", t.VUV = "VUV", t.WST = "WST", t.XAF = "XAF", t.XCD = "XCD", t.XOF = "XOF", t.XPF = "XPF", t.YER = "YER", t.ZAR = "ZAR", t.ZMW = "ZMW", t.ZWL = "ZWL", t.CDF = "CDF", t.ERN = "ERN", t.FKP = "FKP", t.KPW = "KPW", t.RUB = "RUB", t.SBD = "SBD", t.SHP = "SHP", t.SSP = "SSP", t.VES = "VES", t))(F1 || {});
|
|
9793
|
-
const
|
|
9793
|
+
const ew = {
|
|
9794
9794
|
AED: "784",
|
|
9795
9795
|
AFN: "971",
|
|
9796
9796
|
ALL: "008",
|
|
@@ -9955,7 +9955,7 @@ const nw = {
|
|
|
9955
9955
|
CAD: "CAD"
|
|
9956
9956
|
/* CAD */
|
|
9957
9957
|
};
|
|
9958
|
-
function
|
|
9958
|
+
function nw(t) {
|
|
9959
9959
|
return t in Uv;
|
|
9960
9960
|
}
|
|
9961
9961
|
const Dv = {
|
|
@@ -9966,7 +9966,7 @@ const Dv = {
|
|
|
9966
9966
|
BRL: "BRL"
|
|
9967
9967
|
/* BRL */
|
|
9968
9968
|
};
|
|
9969
|
-
function
|
|
9969
|
+
function rw(t) {
|
|
9970
9970
|
return t in Dv;
|
|
9971
9971
|
}
|
|
9972
9972
|
const Pv = /* @__PURE__ */ new Set([
|
|
@@ -9999,13 +9999,13 @@ const Pv = /* @__PURE__ */ new Set([
|
|
|
9999
9999
|
"XPF"
|
|
10000
10000
|
/* XPF */
|
|
10001
10001
|
]);
|
|
10002
|
-
function
|
|
10002
|
+
function ow(t) {
|
|
10003
10003
|
return Pv.has(t) ? 4 : Fv.has(t) ? 3 : Vv.has(t) ? 0 : 2;
|
|
10004
10004
|
}
|
|
10005
|
-
function
|
|
10005
|
+
function iw(t, e) {
|
|
10006
10006
|
return t.currency === e;
|
|
10007
10007
|
}
|
|
10008
|
-
function
|
|
10008
|
+
function sw(t) {
|
|
10009
10009
|
return {
|
|
10010
10010
|
base: t.to,
|
|
10011
10011
|
rate: 1 / t.rate,
|
|
@@ -18800,12 +18800,6 @@ class Cn {
|
|
|
18800
18800
|
JSON.stringify(n)
|
|
18801
18801
|
);
|
|
18802
18802
|
},
|
|
18803
|
-
stellar: () => {
|
|
18804
|
-
if (!("transaction" in e)) return;
|
|
18805
|
-
const { transaction: n } = e;
|
|
18806
|
-
if (n)
|
|
18807
|
-
return n;
|
|
18808
|
-
},
|
|
18809
18803
|
monad: () => {
|
|
18810
18804
|
if (!("transaction" in e)) return;
|
|
18811
18805
|
const { transaction: n } = e;
|
|
@@ -18836,8 +18830,6 @@ class Cn {
|
|
|
18836
18830
|
return n.base;
|
|
18837
18831
|
case "arbitrum":
|
|
18838
18832
|
return n.arbitrum;
|
|
18839
|
-
case "stellar":
|
|
18840
|
-
return n.stellar;
|
|
18841
18833
|
case "monad":
|
|
18842
18834
|
return n.monad;
|
|
18843
18835
|
case "tempo":
|
|
@@ -18849,7 +18841,7 @@ class Cn {
|
|
|
18849
18841
|
}
|
|
18850
18842
|
}
|
|
18851
18843
|
}
|
|
18852
|
-
function
|
|
18844
|
+
function aw(t) {
|
|
18853
18845
|
if (!t) return;
|
|
18854
18846
|
let e, n;
|
|
18855
18847
|
if ("name" in t && t.name && (e = t.name.split(" ")[0], n = t.name.split(" ").slice(1).join(" ")), "firstName" in t && t.firstName && (e = t.firstName), "lastName" in t && t.lastName && (n = t.lastName), e && n)
|
|
@@ -18994,13 +18986,6 @@ function Du(t) {
|
|
|
18994
18986
|
onInputError: t.onInputError,
|
|
18995
18987
|
onInputValid: t.onInputValid
|
|
18996
18988
|
}),
|
|
18997
|
-
stellar: () => Kv({
|
|
18998
|
-
wallet: n,
|
|
18999
|
-
onSuccess: t.onSuccess,
|
|
19000
|
-
onAuthDeclined: t.onAuthDeclined,
|
|
19001
|
-
onInputError: t.onInputError,
|
|
19002
|
-
onInputValid: t.onInputValid
|
|
19003
|
-
}),
|
|
19004
18989
|
monad: () => yo({
|
|
19005
18990
|
wallet: n,
|
|
19006
18991
|
onSuccess: t.onSuccess,
|
|
@@ -19015,7 +19000,7 @@ function Du(t) {
|
|
|
19015
19000
|
onInputError: t.onInputError,
|
|
19016
19001
|
onInputValid: t.onInputValid
|
|
19017
19002
|
}),
|
|
19018
|
-
user: () =>
|
|
19003
|
+
user: () => Kv(t)
|
|
19019
19004
|
})(),
|
|
19020
19005
|
onAccountLinked: t.onAccountLinked,
|
|
19021
19006
|
onAccountNotLinked: t.onAccountNotLinked,
|
|
@@ -19114,35 +19099,6 @@ function yo({
|
|
|
19114
19099
|
};
|
|
19115
19100
|
}
|
|
19116
19101
|
function Kv({
|
|
19117
|
-
wallet: t,
|
|
19118
|
-
onSuccess: e,
|
|
19119
|
-
onAuthDeclined: n,
|
|
19120
|
-
onInputError: r,
|
|
19121
|
-
onInputValid: u
|
|
19122
|
-
}) {
|
|
19123
|
-
return {
|
|
19124
|
-
handleSendTransaction: async (i) => {
|
|
19125
|
-
throw new Error(
|
|
19126
|
-
`sendTransaction is not supported on stellar, error when sending: ${i}`
|
|
19127
|
-
);
|
|
19128
|
-
},
|
|
19129
|
-
handleSignMessage: async (i) => {
|
|
19130
|
-
if (!t.signMessage)
|
|
19131
|
-
throw new Error("signMessage is not supported by this wallet");
|
|
19132
|
-
return await t.signMessage(i);
|
|
19133
|
-
},
|
|
19134
|
-
handleSignTransaction: async (i) => {
|
|
19135
|
-
if (!t.signTransaction)
|
|
19136
|
-
throw new Error("signTransaction is not supported by this wallet");
|
|
19137
|
-
return await t.signTransaction(i);
|
|
19138
|
-
},
|
|
19139
|
-
onSuccess: e,
|
|
19140
|
-
onAuthDeclined: n,
|
|
19141
|
-
onInputError: r,
|
|
19142
|
-
onInputValid: u
|
|
19143
|
-
};
|
|
19144
|
-
}
|
|
19145
|
-
function Wv({
|
|
19146
19102
|
onSuccess: t,
|
|
19147
19103
|
onAuthDeclined: e,
|
|
19148
19104
|
onInputError: n,
|
|
@@ -19156,7 +19112,7 @@ function Wv({
|
|
|
19156
19112
|
onInputValid: r
|
|
19157
19113
|
};
|
|
19158
19114
|
}
|
|
19159
|
-
class
|
|
19115
|
+
class uw {
|
|
19160
19116
|
static on(e, n) {
|
|
19161
19117
|
document.addEventListener(e, n);
|
|
19162
19118
|
}
|
|
@@ -19167,11 +19123,11 @@ class cw {
|
|
|
19167
19123
|
document.removeEventListener(e, n);
|
|
19168
19124
|
}
|
|
19169
19125
|
}
|
|
19170
|
-
const
|
|
19126
|
+
const Wv = {
|
|
19171
19127
|
"card-number": 180,
|
|
19172
19128
|
expiration: 96,
|
|
19173
19129
|
cvv: 80
|
|
19174
|
-
},
|
|
19130
|
+
}, zv = 8, As = "3rem", V1 = 48, G1 = 1, Pu = 1, H1 = 2, Zv = {
|
|
19175
19131
|
"card-number": "1fr",
|
|
19176
19132
|
expiration: "96px",
|
|
19177
19133
|
cvv: "80px"
|
|
@@ -19183,14 +19139,14 @@ const zv = {
|
|
|
19183
19139
|
function fi(t, e) {
|
|
19184
19140
|
return t.includes(e);
|
|
19185
19141
|
}
|
|
19186
|
-
function
|
|
19142
|
+
function Yv(t) {
|
|
19187
19143
|
const e = t.reduce(
|
|
19188
|
-
(r, u) => r +
|
|
19144
|
+
(r, u) => r + Wv[u],
|
|
19189
19145
|
0
|
|
19190
|
-
), n = Math.max(0, t.length - 1) *
|
|
19146
|
+
), n = Math.max(0, t.length - 1) * zv;
|
|
19191
19147
|
return e + n;
|
|
19192
19148
|
}
|
|
19193
|
-
function
|
|
19149
|
+
function qv({
|
|
19194
19150
|
inputs: t,
|
|
19195
19151
|
hasIcon: e
|
|
19196
19152
|
}) {
|
|
@@ -19199,10 +19155,10 @@ function Xv({
|
|
|
19199
19155
|
};
|
|
19200
19156
|
e && fi(t, "card-number") && u("icon", "auto");
|
|
19201
19157
|
for (const i of t)
|
|
19202
|
-
u($1[i],
|
|
19158
|
+
u($1[i], Zv[i]);
|
|
19203
19159
|
return `"${n.join(" ")}" ${As} / ${r.join(" ")}`;
|
|
19204
19160
|
}
|
|
19205
|
-
function
|
|
19161
|
+
function Xv({
|
|
19206
19162
|
inputs: t,
|
|
19207
19163
|
hasIcon: e
|
|
19208
19164
|
}) {
|
|
@@ -19242,17 +19198,17 @@ function Ja({
|
|
|
19242
19198
|
hasIconArea: !1,
|
|
19243
19199
|
twoRowDividers: []
|
|
19244
19200
|
};
|
|
19245
|
-
const u = e && fi(t, "card-number"), i =
|
|
19201
|
+
const u = e && fi(t, "card-number"), i = qv({ inputs: t, hasIcon: u }), d = n ? Xv({ inputs: t, hasIcon: u }) : null;
|
|
19246
19202
|
return {
|
|
19247
19203
|
inline: i,
|
|
19248
19204
|
twoRow: d?.template ?? null,
|
|
19249
|
-
breakpointPx: d ?
|
|
19205
|
+
breakpointPx: d ? Yv(t) + 2 * Pu : null,
|
|
19250
19206
|
fieldAreas: r,
|
|
19251
19207
|
hasIconArea: u,
|
|
19252
19208
|
twoRowDividers: d?.dividers ?? []
|
|
19253
19209
|
};
|
|
19254
19210
|
}
|
|
19255
|
-
function
|
|
19211
|
+
function Jv({
|
|
19256
19212
|
gridSelector: t,
|
|
19257
19213
|
layout: e,
|
|
19258
19214
|
containerName: n,
|
|
@@ -19279,7 +19235,7 @@ const Qa = {
|
|
|
19279
19235
|
inputs: Qa["card-number-form"]
|
|
19280
19236
|
}),
|
|
19281
19237
|
"cvv-form": Ja({ inputs: Qa["cvv-form"] })
|
|
19282
|
-
}, j1 = 2 * Pu + 2 * H1, K1 = V1 + j1,
|
|
19238
|
+
}, j1 = 2 * Pu + 2 * H1, K1 = V1 + j1, Qv = 2 * V1 + G1 + j1;
|
|
19283
19239
|
function tu(t) {
|
|
19284
19240
|
return {
|
|
19285
19241
|
inline: t.inline,
|
|
@@ -19292,7 +19248,7 @@ const Fu = {
|
|
|
19292
19248
|
"card-form": tu(us["card-form"]),
|
|
19293
19249
|
"card-number-form": tu(us["card-number-form"]),
|
|
19294
19250
|
"cvv-form": tu(us["cvv-form"])
|
|
19295
|
-
}, W1 = "coinflow-card-form-skeleton-pulse",
|
|
19251
|
+
}, W1 = "coinflow-card-form-skeleton-pulse", ty = 300;
|
|
19296
19252
|
function z1({
|
|
19297
19253
|
variant: t,
|
|
19298
19254
|
width: e
|
|
@@ -19300,24 +19256,24 @@ function z1({
|
|
|
19300
19256
|
const { compact: n, compactMaxWidthPx: r } = Fu[t];
|
|
19301
19257
|
return n !== void 0 && r !== void 0 && e > 0 && e < r;
|
|
19302
19258
|
}
|
|
19303
|
-
function
|
|
19259
|
+
function ey({
|
|
19304
19260
|
variant: t,
|
|
19305
19261
|
width: e
|
|
19306
19262
|
}) {
|
|
19307
|
-
return z1({ variant: t, width: e }) ?
|
|
19263
|
+
return z1({ variant: t, width: e }) ? Qv : K1;
|
|
19308
19264
|
}
|
|
19309
|
-
function
|
|
19265
|
+
function ny({
|
|
19310
19266
|
variant: t,
|
|
19311
19267
|
width: e
|
|
19312
19268
|
}) {
|
|
19313
19269
|
const { inline: n, compact: r } = Fu[t];
|
|
19314
19270
|
return r && z1({ variant: t, width: e }) ? r : n;
|
|
19315
19271
|
}
|
|
19316
|
-
function
|
|
19272
|
+
function ry(t) {
|
|
19317
19273
|
return `coinflow-card-form-skeleton-grid--${t}`;
|
|
19318
19274
|
}
|
|
19319
|
-
function
|
|
19320
|
-
const e =
|
|
19275
|
+
function cw(t) {
|
|
19276
|
+
const e = ry(t), n = Jv({
|
|
19321
19277
|
gridSelector: `.${e}`,
|
|
19322
19278
|
layout: us[t],
|
|
19323
19279
|
extraBaseRules: `.${e} { gap: 0; flex: 1; }`
|
|
@@ -19325,23 +19281,23 @@ function fw(t) {
|
|
|
19325
19281
|
return `@keyframes ${W1} {0%,100%{opacity:1}50%{opacity:0.4}}
|
|
19326
19282
|
${n}`;
|
|
19327
19283
|
}
|
|
19328
|
-
const
|
|
19284
|
+
const oy = H1 + Pu, iy = {
|
|
19329
19285
|
minWidth: "0",
|
|
19330
19286
|
margin: "1px",
|
|
19331
19287
|
borderRadius: "4px",
|
|
19332
19288
|
opacity: "1",
|
|
19333
19289
|
animation: `${W1} 1.5s ease-in-out infinite`
|
|
19334
|
-
},
|
|
19290
|
+
}, sy = {
|
|
19335
19291
|
backdrop: "rgba(255, 255, 255, 0.05)",
|
|
19336
19292
|
box: "rgba(255, 255, 255, 0.30)"
|
|
19337
|
-
},
|
|
19293
|
+
}, ay = {
|
|
19338
19294
|
backdrop: "rgba(0, 0, 0, 0.04)",
|
|
19339
19295
|
box: "rgba(0, 0, 0, 0.30)"
|
|
19340
|
-
},
|
|
19296
|
+
}, uy = {
|
|
19341
19297
|
backdrop: "rgba(128, 128, 128, 0.08)",
|
|
19342
19298
|
box: "rgba(128, 128, 128, 0.38)"
|
|
19343
19299
|
};
|
|
19344
|
-
function
|
|
19300
|
+
function cy(t) {
|
|
19345
19301
|
const e = t.trim().toLowerCase();
|
|
19346
19302
|
let n = e.startsWith("#") ? e.slice(1) : "";
|
|
19347
19303
|
if (n && /^[0-9a-f]+$/.test(n) && (n.length === 3 && (n = n.split("").map((u) => u + u).join("")), n.length === 8 && (n = n.slice(0, 6)), n.length === 6))
|
|
@@ -19353,11 +19309,11 @@ function fy(t) {
|
|
|
19353
19309
|
const r = e.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);
|
|
19354
19310
|
return r ? [Number(r[1]), Number(r[2]), Number(r[3])] : null;
|
|
19355
19311
|
}
|
|
19356
|
-
function
|
|
19357
|
-
const e = t?.background ?
|
|
19358
|
-
if (!e) return
|
|
19312
|
+
function fy(t) {
|
|
19313
|
+
const e = t?.background ? cy(t.background) : null;
|
|
19314
|
+
if (!e) return uy;
|
|
19359
19315
|
const [n, r, u] = e;
|
|
19360
|
-
return (0.299 * n + 0.587 * r + 0.114 * u) / 255 < 0.5 ?
|
|
19316
|
+
return (0.299 * n + 0.587 * r + 0.114 * u) / 255 < 0.5 ? sy : ay;
|
|
19361
19317
|
}
|
|
19362
19318
|
const is = {
|
|
19363
19319
|
cardNumber: "Card number is invalid. Please double check information.",
|
|
@@ -19367,7 +19323,7 @@ const is = {
|
|
|
19367
19323
|
invalidCardToken: "Card token is invalid. Please add a new card",
|
|
19368
19324
|
cardEntryUnavailable: "Card entry is unavailable. Please re-enter your card details."
|
|
19369
19325
|
};
|
|
19370
|
-
function
|
|
19326
|
+
function fw({
|
|
19371
19327
|
cardError: t,
|
|
19372
19328
|
expirationError: e,
|
|
19373
19329
|
cvvError: n,
|
|
@@ -19382,7 +19338,7 @@ function lw({
|
|
|
19382
19338
|
message: is.expiration
|
|
19383
19339
|
} : n ? u && r ? { field: "cvv", message: is.cvvEmpty } : { field: "cvv", message: is.cvv } : null;
|
|
19384
19340
|
}
|
|
19385
|
-
function
|
|
19341
|
+
function lw({
|
|
19386
19342
|
previous: t,
|
|
19387
19343
|
current: e
|
|
19388
19344
|
}) {
|
|
@@ -19400,7 +19356,7 @@ var yl;
|
|
|
19400
19356
|
})(t.productType || (t.productType = {}));
|
|
19401
19357
|
})(yl || (yl = {}));
|
|
19402
19358
|
let pu = null;
|
|
19403
|
-
async function
|
|
19359
|
+
async function ly({
|
|
19404
19360
|
merchantId: t,
|
|
19405
19361
|
env: e
|
|
19406
19362
|
}) {
|
|
@@ -19412,10 +19368,10 @@ async function dy({
|
|
|
19412
19368
|
console.error(n), hu({ event: "ProtectionInit", env: e, merchantId: t, error: n });
|
|
19413
19369
|
}
|
|
19414
19370
|
}
|
|
19415
|
-
function
|
|
19371
|
+
function dy() {
|
|
19416
19372
|
return pu;
|
|
19417
19373
|
}
|
|
19418
|
-
const
|
|
19374
|
+
const hy = "forterToken", py = 1024, my = /[\x00-\x1F\x7F]/;
|
|
19419
19375
|
let Ss = null, Z1 = !1, eu = !1;
|
|
19420
19376
|
function Vu(t) {
|
|
19421
19377
|
if (!t) return null;
|
|
@@ -19424,7 +19380,7 @@ function Vu(t) {
|
|
|
19424
19380
|
e = decodeURIComponent(t);
|
|
19425
19381
|
} catch {
|
|
19426
19382
|
}
|
|
19427
|
-
return !e || e.length >
|
|
19383
|
+
return !e || e.length > py || my.test(e) ? null : e;
|
|
19428
19384
|
}
|
|
19429
19385
|
function Y1() {
|
|
19430
19386
|
if (typeof document > "u" || !document.cookie) return null;
|
|
@@ -19433,7 +19389,7 @@ function Y1() {
|
|
|
19433
19389
|
const n = e.indexOf("=");
|
|
19434
19390
|
if (n === -1) continue;
|
|
19435
19391
|
const r = e.slice(0, n).trim(), u = e.slice(n + 1);
|
|
19436
|
-
if (r ===
|
|
19392
|
+
if (r === hy) return u;
|
|
19437
19393
|
const i = r.toLowerCase();
|
|
19438
19394
|
i.includes("forter") && i.includes("token") && (t = u);
|
|
19439
19395
|
}
|
|
@@ -19442,16 +19398,16 @@ function Y1() {
|
|
|
19442
19398
|
function cs() {
|
|
19443
19399
|
return Ss ?? Vu(Y1());
|
|
19444
19400
|
}
|
|
19445
|
-
const
|
|
19446
|
-
function
|
|
19401
|
+
const gy = "ftr:tokenReady";
|
|
19402
|
+
function vy(t) {
|
|
19447
19403
|
const e = t.detail, n = typeof e == "string" ? Vu(e) : null;
|
|
19448
19404
|
n && (Ss = n, Z1 = !0);
|
|
19449
19405
|
}
|
|
19450
|
-
function
|
|
19406
|
+
function dw({
|
|
19451
19407
|
timeoutMs: t = 15e3,
|
|
19452
19408
|
intervalMs: e = 250
|
|
19453
19409
|
} = {}) {
|
|
19454
|
-
if (typeof window > "u" || (typeof document < "u" && document.addEventListener(
|
|
19410
|
+
if (typeof window > "u" || (typeof document < "u" && document.addEventListener(gy, vy), eu)) return;
|
|
19455
19411
|
eu = !0;
|
|
19456
19412
|
const n = Date.now(), r = () => {
|
|
19457
19413
|
if (!Z1) {
|
|
@@ -19459,14 +19415,14 @@ function hw({
|
|
|
19459
19415
|
u && (Ss = u);
|
|
19460
19416
|
}
|
|
19461
19417
|
if (Date.now() - n >= t) {
|
|
19462
|
-
eu = !1, Ss ||
|
|
19418
|
+
eu = !1, Ss || yy();
|
|
19463
19419
|
return;
|
|
19464
19420
|
}
|
|
19465
19421
|
window.setTimeout(r, e);
|
|
19466
19422
|
};
|
|
19467
19423
|
r();
|
|
19468
19424
|
}
|
|
19469
|
-
function
|
|
19425
|
+
function yy() {
|
|
19470
19426
|
if (typeof document > "u") return;
|
|
19471
19427
|
const t = (document.cookie || "").split(";").map((n) => n.split("=")[0].trim()).filter(Boolean), e = typeof window < "u" ? Object.keys(window).filter((n) => /ftr|forter/i.test(n)) : [];
|
|
19472
19428
|
console.warn(
|
|
@@ -19477,7 +19433,7 @@ function wy() {
|
|
|
19477
19433
|
e
|
|
19478
19434
|
);
|
|
19479
19435
|
}
|
|
19480
|
-
async function
|
|
19436
|
+
async function hw({
|
|
19481
19437
|
timeoutMs: t = 2e3,
|
|
19482
19438
|
intervalMs: e = 100
|
|
19483
19439
|
} = {}) {
|
|
@@ -19492,28 +19448,28 @@ async function pw({
|
|
|
19492
19448
|
window.setTimeout(i, e);
|
|
19493
19449
|
}));
|
|
19494
19450
|
}
|
|
19495
|
-
const
|
|
19496
|
-
function
|
|
19451
|
+
const wy = "x-device-id", _y = "x-session-id", Ey = "x-coinflow-referrer", Ry = "x-forter-token";
|
|
19452
|
+
function by() {
|
|
19497
19453
|
return {
|
|
19498
|
-
[
|
|
19499
|
-
[
|
|
19500
|
-
[
|
|
19454
|
+
[wy]: du(),
|
|
19455
|
+
[_y]: dy(),
|
|
19456
|
+
[Ry]: cs()
|
|
19501
19457
|
};
|
|
19502
19458
|
}
|
|
19503
|
-
function
|
|
19459
|
+
function Ay() {
|
|
19504
19460
|
try {
|
|
19505
19461
|
return document.referrer || null;
|
|
19506
19462
|
} catch {
|
|
19507
19463
|
return null;
|
|
19508
19464
|
}
|
|
19509
19465
|
}
|
|
19510
|
-
function
|
|
19466
|
+
function pw() {
|
|
19511
19467
|
return {
|
|
19512
|
-
...
|
|
19513
|
-
[
|
|
19468
|
+
...by(),
|
|
19469
|
+
[Ey]: Ay()
|
|
19514
19470
|
};
|
|
19515
19471
|
}
|
|
19516
|
-
class
|
|
19472
|
+
class mw {
|
|
19517
19473
|
static payloadVersion = 1;
|
|
19518
19474
|
// Three tokens; Forter caps at ~1024 chars. Bounds an abusive header before decoding.
|
|
19519
19475
|
static maxLength = 8192;
|
|
@@ -19540,11 +19496,11 @@ class gw {
|
|
|
19540
19496
|
return btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
19541
19497
|
}
|
|
19542
19498
|
}
|
|
19543
|
-
const
|
|
19499
|
+
const Sy = "9JBW2RHC7JNJN8ZQ", wl = {
|
|
19544
19500
|
prod: "315da543-c486-435a-aa21-53844c469822",
|
|
19545
19501
|
sandbox: "e9f629c4-80ee-4c6d-967e-62af47d8679e"
|
|
19546
19502
|
};
|
|
19547
|
-
async function
|
|
19503
|
+
async function Iy({
|
|
19548
19504
|
coinflowEnv: t,
|
|
19549
19505
|
merchantId: e
|
|
19550
19506
|
}) {
|
|
@@ -19554,7 +19510,7 @@ async function Oy({
|
|
|
19554
19510
|
e
|
|
19555
19511
|
);
|
|
19556
19512
|
if (u) {
|
|
19557
|
-
const i =
|
|
19513
|
+
const i = Sy;
|
|
19558
19514
|
try {
|
|
19559
19515
|
lu.init(i, u);
|
|
19560
19516
|
} catch (d) {
|
|
@@ -19572,7 +19528,7 @@ async function Oy({
|
|
|
19572
19528
|
i && await new Promise((d) => {
|
|
19573
19529
|
const v = document.createElement("script");
|
|
19574
19530
|
v.src = `https://js.v.coinflow.sh/${n}/bundle.js`, v.async = !0, v.setAttribute("verisoul-project-id", i), v.onload = () => {
|
|
19575
|
-
|
|
19531
|
+
ly({ merchantId: e, env: t }).then(d);
|
|
19576
19532
|
}, v.onerror = (l) => {
|
|
19577
19533
|
hu({
|
|
19578
19534
|
event: "ProtectionError",
|
|
@@ -19584,10 +19540,10 @@ async function Oy({
|
|
|
19584
19540
|
});
|
|
19585
19541
|
}
|
|
19586
19542
|
}
|
|
19587
|
-
function
|
|
19543
|
+
function gw(t) {
|
|
19588
19544
|
return JSON.stringify(t);
|
|
19589
19545
|
}
|
|
19590
|
-
function
|
|
19546
|
+
function vw(t) {
|
|
19591
19547
|
if (!t) return null;
|
|
19592
19548
|
try {
|
|
19593
19549
|
const e = JSON.parse(t);
|
|
@@ -19599,26 +19555,26 @@ function yw(t) {
|
|
|
19599
19555
|
return { token: t };
|
|
19600
19556
|
}
|
|
19601
19557
|
}
|
|
19602
|
-
function
|
|
19558
|
+
function yw({
|
|
19603
19559
|
cached: t,
|
|
19604
19560
|
country: e
|
|
19605
19561
|
}) {
|
|
19606
19562
|
return t ? e ? t.country === e : !0 : !1;
|
|
19607
19563
|
}
|
|
19608
|
-
const
|
|
19609
|
-
function
|
|
19564
|
+
const Oy = "bankLinkStatus";
|
|
19565
|
+
function ww({
|
|
19610
19566
|
status: t
|
|
19611
19567
|
}) {
|
|
19612
|
-
return { [
|
|
19568
|
+
return { [Oy]: t };
|
|
19613
19569
|
}
|
|
19614
|
-
function
|
|
19570
|
+
function _w({
|
|
19615
19571
|
bankLinkOnly: t,
|
|
19616
19572
|
hasCallbackRedirect: e,
|
|
19617
19573
|
isReactNativeLink: n
|
|
19618
19574
|
}) {
|
|
19619
19575
|
return t ? "emit" : e ? "redirect" : n ? "returnToApp" : "returnToCheckout";
|
|
19620
19576
|
}
|
|
19621
|
-
const
|
|
19577
|
+
const Ew = 500, Ny = ir({
|
|
19622
19578
|
name: "CoinflowIFrame",
|
|
19623
19579
|
props: {
|
|
19624
19580
|
args: {
|
|
@@ -19692,8 +19648,8 @@ const Rw = 500, Ty = ir({
|
|
|
19692
19648
|
for (const [r, u] of e)
|
|
19693
19649
|
n[r] = u;
|
|
19694
19650
|
return n;
|
|
19695
|
-
},
|
|
19696
|
-
function
|
|
19651
|
+
}, Ty = ["src", "scrolling"];
|
|
19652
|
+
function xy(t, e, n, r, u, i) {
|
|
19697
19653
|
return On(), Wn("iframe", {
|
|
19698
19654
|
credentialless: "",
|
|
19699
19655
|
style: { height: "100%", width: "100%" },
|
|
@@ -19707,9 +19663,9 @@ function Ly(t, e, n, r, u, i) {
|
|
|
19707
19663
|
const d = t.$refs.iframeRef;
|
|
19708
19664
|
d && (d.style.opacity = "1");
|
|
19709
19665
|
})
|
|
19710
|
-
}, null, 40,
|
|
19666
|
+
}, null, 40, Ty);
|
|
19711
19667
|
}
|
|
19712
|
-
const Hu = /* @__PURE__ */ Gu(
|
|
19668
|
+
const Hu = /* @__PURE__ */ Gu(Ny, [["render", xy]]), Ly = ir({
|
|
19713
19669
|
name: "CoinflowWithdraw",
|
|
19714
19670
|
components: { CoinflowIFrame: Hu },
|
|
19715
19671
|
props: {
|
|
@@ -19739,13 +19695,13 @@ const Hu = /* @__PURE__ */ Gu(Ty, [["render", Ly]]), Cy = ir({
|
|
|
19739
19695
|
}
|
|
19740
19696
|
}
|
|
19741
19697
|
});
|
|
19742
|
-
function
|
|
19698
|
+
function Cy(t, e, n, r, u, i) {
|
|
19743
19699
|
const d = _l("coinflow-i-frame");
|
|
19744
19700
|
return On(), Is(d, {
|
|
19745
19701
|
args: { ...t.iframeProps, ...t.messageHandlers, handleHeightChangeId: t.handleHeightChangeId }
|
|
19746
19702
|
}, null, 8, ["args"]);
|
|
19747
19703
|
}
|
|
19748
|
-
const
|
|
19704
|
+
const Rw = /* @__PURE__ */ Gu(Ly, [["render", Cy]]), My = ir({
|
|
19749
19705
|
name: "CoinflowPurchase",
|
|
19750
19706
|
components: { CoinflowIFrame: Hu },
|
|
19751
19707
|
props: {
|
|
@@ -19775,13 +19731,13 @@ const bw = /* @__PURE__ */ Gu(Cy, [["render", My]]), By = ir({
|
|
|
19775
19731
|
}
|
|
19776
19732
|
}
|
|
19777
19733
|
});
|
|
19778
|
-
function
|
|
19734
|
+
function By(t, e, n, r, u, i) {
|
|
19779
19735
|
const d = _l("coinflow-i-frame");
|
|
19780
19736
|
return On(), Is(d, {
|
|
19781
19737
|
args: { ...t.iframeProps, ...t.messageHandlers, handleHeightChangeId: t.handleHeightChangeId }
|
|
19782
19738
|
}, null, 8, ["args"]);
|
|
19783
19739
|
}
|
|
19784
|
-
const
|
|
19740
|
+
const bw = /* @__PURE__ */ Gu(My, [["render", By]]), Aw = /* @__PURE__ */ ir({
|
|
19785
19741
|
__name: "CoinflowPurchaseProtection",
|
|
19786
19742
|
props: {
|
|
19787
19743
|
args: {
|
|
@@ -19791,10 +19747,10 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
19791
19747
|
},
|
|
19792
19748
|
setup(t) {
|
|
19793
19749
|
return El(() => {
|
|
19794
|
-
|
|
19750
|
+
Iy({ coinflowEnv: t.args.env, merchantId: t.args.merchantId });
|
|
19795
19751
|
}), (e, n) => null;
|
|
19796
19752
|
}
|
|
19797
|
-
}),
|
|
19753
|
+
}), ky = ["src"], Uy = /* @__PURE__ */ ir({
|
|
19798
19754
|
__name: "CoinflowCardFormV2",
|
|
19799
19755
|
props: {
|
|
19800
19756
|
args: {
|
|
@@ -19805,9 +19761,9 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
19805
19761
|
setup(t, { expose: e }) {
|
|
19806
19762
|
const n = Kn(null), r = Kn(null), u = Kn(!1), i = Kn(null), d = Fu[t.args.variant], v = d.areas, l = Kn(K1), y = Kn(d.inline), A = Kn(!0), O = Na(
|
|
19807
19763
|
() => u.value && i.value ? `${i.value}px` : `${l.value}px`
|
|
19808
|
-
), S = Na(() =>
|
|
19764
|
+
), S = Na(() => fy(t.args.theme));
|
|
19809
19765
|
function I(W) {
|
|
19810
|
-
return { ...
|
|
19766
|
+
return { ...iy, background: S.value.box, gridArea: W };
|
|
19811
19767
|
}
|
|
19812
19768
|
const B = Na(() => {
|
|
19813
19769
|
const W = Cn.getCoinflowBaseUrl(t.args.env), st = new URL(`/form/v2/${t.args.variant}`, W);
|
|
@@ -19837,7 +19793,7 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
19837
19793
|
}
|
|
19838
19794
|
Rl(u, (W, st, ct) => {
|
|
19839
19795
|
if (!W) return;
|
|
19840
|
-
const ot = setTimeout(() => A.value = !1,
|
|
19796
|
+
const ot = setTimeout(() => A.value = !1, ty);
|
|
19841
19797
|
ct(() => clearTimeout(ot));
|
|
19842
19798
|
});
|
|
19843
19799
|
let j = null;
|
|
@@ -19847,7 +19803,7 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
19847
19803
|
if (!W || !d.compact) return;
|
|
19848
19804
|
const st = () => {
|
|
19849
19805
|
const ct = W.clientWidth;
|
|
19850
|
-
l.value =
|
|
19806
|
+
l.value = ey({ variant: t.args.variant, width: ct }), y.value = ny({ variant: t.args.variant, width: ct });
|
|
19851
19807
|
};
|
|
19852
19808
|
st(), j = new ResizeObserver(st), j.observe(W);
|
|
19853
19809
|
}), Sp(() => {
|
|
@@ -19899,7 +19855,7 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
19899
19855
|
pointerEvents: "none",
|
|
19900
19856
|
flexDirection: "column",
|
|
19901
19857
|
gap: "8px",
|
|
19902
|
-
padding: `${fs(
|
|
19858
|
+
padding: `${fs(oy)}px`,
|
|
19903
19859
|
boxSizing: "border-box",
|
|
19904
19860
|
borderRadius: "8px",
|
|
19905
19861
|
background: S.value.backdrop,
|
|
@@ -19936,13 +19892,13 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
19936
19892
|
opacity: u.value ? 1 : 0,
|
|
19937
19893
|
transition: "opacity 300ms linear, height 150ms ease-out"
|
|
19938
19894
|
})
|
|
19939
|
-
}, null, 12,
|
|
19895
|
+
}, null, 12, ky)
|
|
19940
19896
|
], 4));
|
|
19941
19897
|
}
|
|
19942
|
-
}),
|
|
19898
|
+
}), Dy = { style: {
|
|
19943
19899
|
position: "relative",
|
|
19944
19900
|
height: "100%"
|
|
19945
|
-
} },
|
|
19901
|
+
} }, Py = { style: {
|
|
19946
19902
|
position: "relative",
|
|
19947
19903
|
zIndex: 10,
|
|
19948
19904
|
height: "100%"
|
|
@@ -20006,7 +19962,7 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20006
19962
|
}
|
|
20007
19963
|
e?.(S);
|
|
20008
19964
|
}
|
|
20009
|
-
return (S, I) => (On(), Wn("div",
|
|
19965
|
+
return (S, I) => (On(), Wn("div", Dy, [
|
|
20010
19966
|
jr("div", {
|
|
20011
19967
|
style: wo({
|
|
20012
19968
|
backgroundColor: t.args.color,
|
|
@@ -20026,7 +19982,7 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20026
19982
|
}, [
|
|
20027
19983
|
Op(S.$slots, "default")
|
|
20028
19984
|
], 4),
|
|
20029
|
-
jr("div",
|
|
19985
|
+
jr("div", Py, [
|
|
20030
19986
|
mu(Hu, {
|
|
20031
19987
|
ref_key: "iframeRef",
|
|
20032
19988
|
ref: l,
|
|
@@ -20036,10 +19992,10 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20036
19992
|
])
|
|
20037
19993
|
]));
|
|
20038
19994
|
}
|
|
20039
|
-
}),
|
|
19995
|
+
}), Fy = {
|
|
20040
19996
|
id: "svg-logo",
|
|
20041
19997
|
viewBox: "0 0 35 15"
|
|
20042
|
-
},
|
|
19998
|
+
}, Vy = {
|
|
20043
19999
|
id: "svg-logo",
|
|
20044
20000
|
x: "0",
|
|
20045
20001
|
y: "3.85",
|
|
@@ -20050,12 +20006,12 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20050
20006
|
version: "1.1",
|
|
20051
20007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20052
20008
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
20053
|
-
},
|
|
20009
|
+
}, Gy = {
|
|
20054
20010
|
stroke: "none",
|
|
20055
20011
|
"stroke-width": "1",
|
|
20056
20012
|
fill: "none",
|
|
20057
20013
|
"fill-rule": "evenodd"
|
|
20058
|
-
},
|
|
20014
|
+
}, Hy = ["fill"], $y = /* @__PURE__ */ ir({
|
|
20059
20015
|
__name: "ApplePayOverlay",
|
|
20060
20016
|
props: {
|
|
20061
20017
|
color: {
|
|
@@ -20065,18 +20021,18 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20065
20021
|
},
|
|
20066
20022
|
setup(t) {
|
|
20067
20023
|
const e = t.color === "white" ? "#000" : "#FFF";
|
|
20068
|
-
return (n, r) => (On(), Wn("svg",
|
|
20069
|
-
(On(), Wn("svg",
|
|
20024
|
+
return (n, r) => (On(), Wn("svg", Fy, [
|
|
20025
|
+
(On(), Wn("svg", Vy, [
|
|
20070
20026
|
r[1] || (r[1] = jr("title", null, "Apple Logo", -1)),
|
|
20071
|
-
jr("g",
|
|
20027
|
+
jr("g", Gy, [
|
|
20072
20028
|
jr("g", { fill: fs(e) }, [...r[0] || (r[0] = [
|
|
20073
20029
|
ru('<path 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"></path><path 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"></path><path 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"></path><path 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"></path><path 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"></path>', 5)
|
|
20074
|
-
])], 8,
|
|
20030
|
+
])], 8, Hy)
|
|
20075
20031
|
])
|
|
20076
20032
|
]))
|
|
20077
20033
|
]));
|
|
20078
20034
|
}
|
|
20079
|
-
}),
|
|
20035
|
+
}), Sw = /* @__PURE__ */ ir({
|
|
20080
20036
|
__name: "CoinflowApplePayButton",
|
|
20081
20037
|
props: {
|
|
20082
20038
|
args: {
|
|
@@ -20090,24 +20046,24 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20090
20046
|
args: t.args
|
|
20091
20047
|
}, {
|
|
20092
20048
|
default: Al(() => [
|
|
20093
|
-
mu(
|
|
20049
|
+
mu($y, {
|
|
20094
20050
|
color: t.args.color
|
|
20095
20051
|
}, null, 8, ["color"])
|
|
20096
20052
|
]),
|
|
20097
20053
|
_: 1
|
|
20098
20054
|
}, 8, ["args"]));
|
|
20099
20055
|
}
|
|
20100
|
-
}),
|
|
20056
|
+
}), jy = {
|
|
20101
20057
|
key: 0,
|
|
20102
20058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20103
20059
|
width: "41",
|
|
20104
20060
|
height: "17"
|
|
20105
|
-
},
|
|
20061
|
+
}, Ky = {
|
|
20106
20062
|
key: 1,
|
|
20107
20063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20108
20064
|
width: "41",
|
|
20109
20065
|
height: "17"
|
|
20110
|
-
},
|
|
20066
|
+
}, Wy = /* @__PURE__ */ ir({
|
|
20111
20067
|
__name: "GooglePayOverlay",
|
|
20112
20068
|
props: {
|
|
20113
20069
|
color: {
|
|
@@ -20117,15 +20073,15 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20117
20073
|
},
|
|
20118
20074
|
setup(t) {
|
|
20119
20075
|
return (e, n) => (On(), Wn(bl, null, [
|
|
20120
|
-
t.color === "white" ? (On(), Wn("svg",
|
|
20076
|
+
t.color === "white" ? (On(), Wn("svg", jy, [...n[0] || (n[0] = [
|
|
20121
20077
|
ru('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>', 1)
|
|
20122
20078
|
])])) : nu("", !0),
|
|
20123
|
-
t.color === "black" ? (On(), Wn("svg",
|
|
20079
|
+
t.color === "black" ? (On(), Wn("svg", Ky, [...n[1] || (n[1] = [
|
|
20124
20080
|
ru('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>', 1)
|
|
20125
20081
|
])])) : nu("", !0)
|
|
20126
20082
|
], 64));
|
|
20127
20083
|
}
|
|
20128
|
-
}),
|
|
20084
|
+
}), Iw = /* @__PURE__ */ ir({
|
|
20129
20085
|
__name: "CoinflowGooglePayButton",
|
|
20130
20086
|
props: {
|
|
20131
20087
|
args: {
|
|
@@ -20141,95 +20097,95 @@ const Aw = /* @__PURE__ */ Gu(By, [["render", ky]]), Sw = /* @__PURE__ */ ir({
|
|
|
20141
20097
|
alignItems: "center"
|
|
20142
20098
|
}, {
|
|
20143
20099
|
default: Al(() => [
|
|
20144
|
-
mu(
|
|
20100
|
+
mu(Wy, {
|
|
20145
20101
|
color: t.args.color
|
|
20146
20102
|
}, null, 8, ["color"])
|
|
20147
20103
|
]),
|
|
20148
20104
|
_: 1
|
|
20149
20105
|
}, 8, ["args"]));
|
|
20150
20106
|
}
|
|
20151
|
-
}),
|
|
20107
|
+
}), Ow = Uy;
|
|
20152
20108
|
export {
|
|
20153
|
-
|
|
20154
|
-
|
|
20109
|
+
Ew as BANK_LINK_REVEAL_DELAY_MS,
|
|
20110
|
+
Oy as BANK_LINK_STATUS_PARAM,
|
|
20155
20111
|
Dv as BankingCurrencies,
|
|
20156
20112
|
Pu as CARD_ENTRY_BORDER_PX,
|
|
20157
20113
|
G1 as CARD_ENTRY_DIVIDER_PX,
|
|
20158
20114
|
H1 as CARD_ENTRY_MARGIN_PX,
|
|
20159
|
-
|
|
20115
|
+
Wv as CARD_ENTRY_MIN_WIDTHS,
|
|
20160
20116
|
As as CARD_ENTRY_ROW_HEIGHT,
|
|
20161
20117
|
V1 as CARD_ENTRY_ROW_HEIGHT_PX,
|
|
20162
|
-
|
|
20118
|
+
zv as CARD_ENTRY_SLOT_GAP_PX,
|
|
20163
20119
|
is as CARD_FIELD_ERROR_MESSAGES,
|
|
20164
|
-
|
|
20120
|
+
Qv as COMPACT_SKELETON_HEIGHT_PX,
|
|
20165
20121
|
Bp as CardFunding,
|
|
20166
20122
|
Up as CardType,
|
|
20167
20123
|
Cp as ChargebackProtectionAccountType,
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
|
|
20172
|
-
|
|
20124
|
+
Sw as CoinflowApplePayButton,
|
|
20125
|
+
Ow as CoinflowCardForm,
|
|
20126
|
+
Uy as CoinflowCardFormV2,
|
|
20127
|
+
mw as CoinflowFraudProtectionHeader,
|
|
20128
|
+
Iw as CoinflowGooglePayButton,
|
|
20173
20129
|
Hu as CoinflowIframe,
|
|
20174
|
-
|
|
20175
|
-
|
|
20130
|
+
bw as CoinflowPurchase,
|
|
20131
|
+
Aw as CoinflowPurchaseProtection,
|
|
20176
20132
|
Cn as CoinflowUtils,
|
|
20177
|
-
|
|
20133
|
+
Rw as CoinflowWithdraw,
|
|
20178
20134
|
F1 as Currency,
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
|
|
20182
|
-
|
|
20135
|
+
ew as CurrencyToISO4217,
|
|
20136
|
+
wy as DEVICE_ID_HEADER,
|
|
20137
|
+
uw as EventBus,
|
|
20138
|
+
Ry as FORTER_TOKEN_HEADER,
|
|
20183
20139
|
pi as IFrameMessageMethods,
|
|
20184
20140
|
K1 as INLINE_SKELETON_HEIGHT_PX,
|
|
20185
20141
|
Lp as MerchantStyle,
|
|
20186
20142
|
kp as PaymentMethods,
|
|
20187
|
-
|
|
20188
|
-
|
|
20189
|
-
|
|
20190
|
-
|
|
20191
|
-
|
|
20143
|
+
Ey as REFERRER_HEADER,
|
|
20144
|
+
Xy as RN_REDIRECT_MESSAGE_NAME,
|
|
20145
|
+
_y as SESSION_ID_HEADER,
|
|
20146
|
+
iy as SKELETON_BOX_STYLE,
|
|
20147
|
+
ty as SKELETON_FADE_MS,
|
|
20192
20148
|
Fu as SKELETON_LAYOUTS,
|
|
20193
20149
|
W1 as SKELETON_PULSE_ANIMATION_NAME,
|
|
20194
|
-
|
|
20150
|
+
oy as SKELETON_ROOT_PADDING_PX,
|
|
20195
20151
|
xp as SettlementType,
|
|
20196
20152
|
Mp as ThreeDsChallengePreference,
|
|
20197
20153
|
Np as WithdrawCategory,
|
|
20198
20154
|
Uv as WithdrawCurrencies,
|
|
20199
20155
|
Tp as WithdrawSpeed,
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20156
|
+
hw as awaitForterToken,
|
|
20157
|
+
ww as bankLinkCallbackParams,
|
|
20158
|
+
Jv as buildCardEntryGridCss,
|
|
20203
20159
|
Ja as buildCardEntryLayout,
|
|
20204
|
-
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
|
|
20211
|
-
|
|
20212
|
-
|
|
20160
|
+
cw as buildSkeletonCss,
|
|
20161
|
+
yw as canReuseLinkToken,
|
|
20162
|
+
dw as captureForterToken,
|
|
20163
|
+
lw as getCardFieldInputEvents,
|
|
20164
|
+
fw as getCardFieldValidationError,
|
|
20165
|
+
by as getCoinflowProtectionHeaders,
|
|
20166
|
+
pw as getCoinflowPurchaseHeaders,
|
|
20167
|
+
ow as getCurrencyDecimals,
|
|
20168
|
+
aw as getCustomerName,
|
|
20213
20169
|
cs as getForterToken,
|
|
20214
20170
|
Du as getHandlers,
|
|
20215
|
-
|
|
20216
|
-
|
|
20217
|
-
|
|
20171
|
+
fy as getSkeletonColors,
|
|
20172
|
+
ry as getSkeletonGridClass,
|
|
20173
|
+
ny as getSkeletonGridTemplate,
|
|
20218
20174
|
Uu as getWalletPubkey,
|
|
20219
|
-
|
|
20175
|
+
ey as guessSkeletonHeightPx,
|
|
20220
20176
|
$v as handleIFrameMessage,
|
|
20221
|
-
|
|
20222
|
-
|
|
20223
|
-
|
|
20224
|
-
|
|
20225
|
-
|
|
20226
|
-
|
|
20227
|
-
|
|
20177
|
+
Iy as initCoinflowProtection,
|
|
20178
|
+
sw as invertRate,
|
|
20179
|
+
rw as isBankingCurrency,
|
|
20180
|
+
iw as isTypedCurrencyCents,
|
|
20181
|
+
nw as isWithdrawCurrency,
|
|
20182
|
+
Yy as isZeroAuthSavedPaymentMethods,
|
|
20183
|
+
Zy as isZeroAuthVerifyCard,
|
|
20228
20184
|
yl as nftCartItem,
|
|
20229
|
-
|
|
20230
|
-
|
|
20185
|
+
vw as parseCachedLinkToken,
|
|
20186
|
+
qy as paymentMethodLabels,
|
|
20231
20187
|
hu as recordFrontendError,
|
|
20232
|
-
|
|
20233
|
-
|
|
20188
|
+
_w as resolveBankLinkCompletion,
|
|
20189
|
+
gw as serializeCachedLinkToken,
|
|
20234
20190
|
z1 as shouldStackSkeleton
|
|
20235
20191
|
};
|