@moneyto/components 0.0.9 → 0.0.10
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/{Styles-CDM59NCI.js → Styles-DeYSLFsT.js} +188 -188
- package/dist/calculator.js +570 -570
- package/dist/country-list.js +57 -64
- package/package.json +1 -1
package/dist/country-list.js
CHANGED
|
@@ -1,92 +1,85 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
let g =
|
|
6
|
-
const
|
|
7
|
-
let
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { d as I, c as J, p as K, A as O, o as Q, i as k, S as R, a as i, b as W, t as v, e as X, g as t, s as p, f as Y, h as Z, j as o, k as $, l as A, m as w, n as tt, q as at, r as et, u as st, v as L, w as j, x as F, y as rt, z as x, B as nt, C as ot, D as lt, E as s } from "./Styles-DeYSLFsT.js";
|
|
2
|
+
var it = v('<div class="h-250 w-full animate-pulse rounded-lg bg-gray-300"></div>'), ct = v('<a><span class="@2xl:text-4xl text-3xl leading-[.8]"> </span> <span class="max-w-40"> </span></a>'), ut = v('<button><span class="@2xl:text-4xl text-3xl leading-[.8]"> </span> <span class="max-w-40"> </span></button>'), dt = v('<div class="@xl:grid-cols-3 @2xl:grid-cols-4 @4xl:grid-cols-5 @6xl:grid-cols-6 grid grid-cols-2 gap-x-2 gap-y-4"></div>'), vt = v('<main class="@container"><!> <!> <!></main>');
|
|
3
|
+
function pt(N, c) {
|
|
4
|
+
X(c, !0);
|
|
5
|
+
let g = K(c, "countriesUrl", 23, () => "https://transfer.moneyto.co.uk/sf/country-list");
|
|
6
|
+
const P = new O(c.apiVersion);
|
|
7
|
+
let m = A(void 0), f = A(!1);
|
|
8
|
+
const V = async () => {
|
|
9
|
+
w(f, !0), w(m, tt(await P.loadData(g()))), w(f, !1);
|
|
10
|
+
}, C = (a) => nt(ot[a.CountryAlpha3]);
|
|
11
|
+
Q(() => {
|
|
12
|
+
V(), Z();
|
|
13
13
|
});
|
|
14
|
-
var
|
|
14
|
+
var _ = vt(), E = o(_);
|
|
15
15
|
{
|
|
16
|
-
var
|
|
17
|
-
var u =
|
|
18
|
-
|
|
16
|
+
var q = (a) => {
|
|
17
|
+
var u = it();
|
|
18
|
+
i(a, u);
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
k(E, (a) => {
|
|
21
|
+
t(f) && a(q);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var U = p(E, 2);
|
|
25
25
|
{
|
|
26
|
-
var
|
|
26
|
+
var z = (a) => {
|
|
27
27
|
var u = dt();
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
const
|
|
31
|
-
var
|
|
28
|
+
$(u, 21, () => t(m).Country, st, (M, r) => {
|
|
29
|
+
var D = at();
|
|
30
|
+
const S = lt(() => "cursor-pointer flex items-center self-center gap-2 @2xl:gap-3 font-medium text-left text-base @sm:text-lg leading-normal text-pretty text-m2-text-input p-2 rounded-lg transition-colors hover:bg-m2-accent");
|
|
31
|
+
var T = et(D);
|
|
32
32
|
{
|
|
33
|
-
var
|
|
34
|
-
var e =
|
|
33
|
+
var G = (l) => {
|
|
34
|
+
var e = ct(), n = o(e), y = o(n, !0);
|
|
35
35
|
s(n);
|
|
36
|
-
var
|
|
37
|
-
s(
|
|
38
|
-
(
|
|
39
|
-
|
|
36
|
+
var d = p(n, 2), h = o(d, !0);
|
|
37
|
+
s(d), s(e), L(
|
|
38
|
+
(b) => {
|
|
39
|
+
j(e, F(t(S))), rt(e, "href", t(r).PageLink), x(y, b), x(h, t(r).Name);
|
|
40
40
|
},
|
|
41
|
-
[() =>
|
|
42
|
-
),
|
|
43
|
-
},
|
|
44
|
-
var e =
|
|
41
|
+
[() => C(t(r))]
|
|
42
|
+
), i(l, e);
|
|
43
|
+
}, H = (l) => {
|
|
44
|
+
var e = ut();
|
|
45
45
|
e.__click = () => {
|
|
46
|
-
|
|
46
|
+
c.$$host.dispatchEvent(new CustomEvent("select", { detail: { country: t(r) } }));
|
|
47
47
|
};
|
|
48
|
-
var n = o(e),
|
|
48
|
+
var n = o(e), y = o(n, !0);
|
|
49
49
|
s(n);
|
|
50
|
-
var
|
|
51
|
-
s(
|
|
52
|
-
(
|
|
53
|
-
|
|
50
|
+
var d = p(n, 2), h = o(d, !0);
|
|
51
|
+
s(d), s(e), L(
|
|
52
|
+
(b) => {
|
|
53
|
+
j(e, F(t(S))), x(y, b), x(h, t(r).Name);
|
|
54
54
|
},
|
|
55
|
-
[() =>
|
|
56
|
-
),
|
|
55
|
+
[() => C(t(r))]
|
|
56
|
+
), i(l, e);
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
k(T, (l) => {
|
|
59
|
+
t(r).PageLink ? l(G) : l(H, !1);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
}), s(u),
|
|
62
|
+
i(M, D);
|
|
63
|
+
}), s(u), i(a, u);
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
k(U, (a) => {
|
|
66
|
+
t(m) && a(z);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
return
|
|
71
|
-
get apiHost() {
|
|
72
|
-
return g();
|
|
73
|
-
},
|
|
74
|
-
set apiHost(t = "https://transfer.moneyto.co.uk") {
|
|
75
|
-
g(t), L();
|
|
76
|
-
},
|
|
69
|
+
var B = p(U, 2);
|
|
70
|
+
return R(B, { host: c.$$host }), s(_), i(N, _), W({
|
|
77
71
|
get countriesUrl() {
|
|
78
|
-
return
|
|
72
|
+
return g();
|
|
79
73
|
},
|
|
80
|
-
set countriesUrl(
|
|
81
|
-
|
|
74
|
+
set countriesUrl(a = "https://transfer.moneyto.co.uk/sf/country-list") {
|
|
75
|
+
g(a), Y();
|
|
82
76
|
}
|
|
83
77
|
});
|
|
84
78
|
}
|
|
85
|
-
|
|
86
|
-
customElements.define("moneyto-country-list",
|
|
87
|
-
|
|
79
|
+
I(["click"]);
|
|
80
|
+
customElements.define("moneyto-country-list", J(
|
|
81
|
+
pt,
|
|
88
82
|
{
|
|
89
|
-
apiHost: { attribute: "api-host", type: "String" },
|
|
90
83
|
countriesUrl: { attribute: "countries-url", type: "String" },
|
|
91
84
|
apiVersion: { attribute: "api-version", type: "String" }
|
|
92
85
|
},
|
|
@@ -95,5 +88,5 @@ customElements.define("moneyto-country-list", Q(
|
|
|
95
88
|
!0
|
|
96
89
|
));
|
|
97
90
|
export {
|
|
98
|
-
|
|
91
|
+
pt as default
|
|
99
92
|
};
|