@everymatrix/player-account-vault 0.19.6 → 0.19.7

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.
@@ -0,0 +1,319 @@
1
+ import { c as W, S as Y, i as H, s as R, j as v, a as U, n as L, d as B, r as q, k as D, l as S, h as u, b as E, m, o as y, p as Z, q as F, u as G, e as k, f as _, g as z, t as J, v as K, w as N, K as C, x as P, y as Q } from "./PlayerAccountVault-CXjFpsjH.js";
2
+ function V(l) {
3
+ U(l, "svelte-1fe9nk9", ".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}");
4
+ }
5
+ function j(l, e, t) {
6
+ const n = l.slice();
7
+ return n[14] = e[t], n[16] = t, n;
8
+ }
9
+ function A(l) {
10
+ let e, t = (
11
+ /*selected*/
12
+ (l[0]?.symbol || "") + ""
13
+ ), n;
14
+ return {
15
+ c() {
16
+ e = k("span"), n = z(t), u(e, "class", "symbol svelte-1fe9nk9");
17
+ },
18
+ m(s, f) {
19
+ E(s, e, f), m(e, n);
20
+ },
21
+ p(s, f) {
22
+ f & /*selected*/
23
+ 1 && t !== (t = /*selected*/
24
+ (s[0]?.symbol || "") + "") && D(n, t);
25
+ },
26
+ d(s) {
27
+ s && B(e);
28
+ }
29
+ };
30
+ }
31
+ function O(l) {
32
+ let e, t = K(
33
+ /*options*/
34
+ l[1]
35
+ ), n = [];
36
+ for (let s = 0; s < t.length; s += 1)
37
+ n[s] = T(j(l, t, s));
38
+ return {
39
+ c() {
40
+ e = k("ul");
41
+ for (let s = 0; s < n.length; s += 1)
42
+ n[s].c();
43
+ u(e, "class", "selectDropdown svelte-1fe9nk9");
44
+ },
45
+ m(s, f) {
46
+ E(s, e, f);
47
+ for (let r = 0; r < n.length; r += 1)
48
+ n[r] && n[r].m(e, null);
49
+ l[13](e);
50
+ },
51
+ p(s, f) {
52
+ if (f & /*options, selected, activeIndex, handleChange*/
53
+ 547) {
54
+ t = K(
55
+ /*options*/
56
+ s[1]
57
+ );
58
+ let r;
59
+ for (r = 0; r < t.length; r += 1) {
60
+ const b = j(s, t, r);
61
+ n[r] ? n[r].p(b, f) : (n[r] = T(b), n[r].c(), n[r].m(e, null));
62
+ }
63
+ for (; r < n.length; r += 1)
64
+ n[r].d(1);
65
+ n.length = t.length;
66
+ }
67
+ },
68
+ d(s) {
69
+ s && B(e), N(n, s), l[13](null);
70
+ }
71
+ };
72
+ }
73
+ function T(l) {
74
+ let e, t, n = (
75
+ /*option*/
76
+ l[14]?.symbol + ""
77
+ ), s, f, r = (
78
+ /*option*/
79
+ l[14]?.currency + ""
80
+ ), b, d, h, g, p;
81
+ return {
82
+ c() {
83
+ e = k("li"), t = k("span"), s = z(n), f = _(), b = z(r), d = _(), u(t, "class", "symbol svelte-1fe9nk9"), u(e, "role", "option"), u(e, "aria-selected", h = /*option*/
84
+ l[14]?.currency === /*selected*/
85
+ l[0]?.currency || /*index*/
86
+ l[16] === /*activeIndex*/
87
+ l[5]), u(e, "class", "svelte-1fe9nk9"), S(
88
+ e,
89
+ "active",
90
+ /*option*/
91
+ l[14]?.currency === /*selected*/
92
+ l[0]?.currency || /*index*/
93
+ l[16] === /*activeIndex*/
94
+ l[5]
95
+ );
96
+ },
97
+ m(o, i) {
98
+ E(o, e, i), m(e, t), m(t, s), m(e, f), m(e, b), m(e, d), g || (p = [
99
+ y(e, "keydown", x),
100
+ y(e, "click", function() {
101
+ Q(
102
+ /*handleChange*/
103
+ l[9](
104
+ /*option*/
105
+ l[14],
106
+ /*index*/
107
+ l[16]
108
+ )
109
+ ) && l[9](
110
+ /*option*/
111
+ l[14],
112
+ /*index*/
113
+ l[16]
114
+ ).apply(this, arguments);
115
+ })
116
+ ], g = !0);
117
+ },
118
+ p(o, i) {
119
+ l = o, i & /*options*/
120
+ 2 && n !== (n = /*option*/
121
+ l[14]?.symbol + "") && D(s, n), i & /*options*/
122
+ 2 && r !== (r = /*option*/
123
+ l[14]?.currency + "") && D(b, r), i & /*options, selected, activeIndex*/
124
+ 35 && h !== (h = /*option*/
125
+ l[14]?.currency === /*selected*/
126
+ l[0]?.currency || /*index*/
127
+ l[16] === /*activeIndex*/
128
+ l[5]) && u(e, "aria-selected", h), i & /*options, selected, activeIndex*/
129
+ 35 && S(
130
+ e,
131
+ "active",
132
+ /*option*/
133
+ l[14]?.currency === /*selected*/
134
+ l[0]?.currency || /*index*/
135
+ l[16] === /*activeIndex*/
136
+ l[5]
137
+ );
138
+ },
139
+ d(o) {
140
+ o && B(e), g = !1, q(p);
141
+ }
142
+ };
143
+ }
144
+ function X(l) {
145
+ let e, t, n, s, f = (
146
+ /*selected*/
147
+ (l[0]?.currency || /*placeholder*/
148
+ l[2]) + ""
149
+ ), r, b, d, h, g, p, o = (
150
+ /*selected*/
151
+ l[0]?.symbol && /*withSymbol*/
152
+ l[4] && A(l)
153
+ ), i = (
154
+ /*open*/
155
+ l[7] && O(l)
156
+ );
157
+ return {
158
+ c() {
159
+ e = k("div"), t = k("button"), n = k("span"), o && o.c(), s = _(), r = z(f), b = _(), d = k("span"), d.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', h = _(), i && i.c(), u(n, "class", "label svelte-1fe9nk9"), u(d, "class", "arrow"), S(
160
+ d,
161
+ "open",
162
+ /*open*/
163
+ l[7]
164
+ ), u(t, "class", "selectButton svelte-1fe9nk9"), u(t, "aria-haspopup", "listbox"), u(
165
+ t,
166
+ "aria-expanded",
167
+ /*open*/
168
+ l[7]
169
+ ), u(t, "aria-controls", "custom-select"), u(t, "tabindex", "0"), t.disabled = /*disabled*/
170
+ l[3], u(e, "class", "selectWrapper svelte-1fe9nk9");
171
+ },
172
+ m(c, w) {
173
+ E(c, e, w), m(e, t), m(t, n), o && o.m(n, null), m(n, s), m(n, r), m(t, b), m(t, d), m(e, h), i && i.m(e, null), g || (p = [
174
+ y(
175
+ t,
176
+ "keydown",
177
+ /*handleKeyDown*/
178
+ l[11]
179
+ ),
180
+ y(t, "click", F(
181
+ /*handleToggleDropdown*/
182
+ l[8]
183
+ )),
184
+ Z(G.call(null, e)),
185
+ y(
186
+ e,
187
+ "outclick",
188
+ /*handleOutClick*/
189
+ l[10]
190
+ )
191
+ ], g = !0);
192
+ },
193
+ p(c, [w]) {
194
+ /*selected*/
195
+ c[0]?.symbol && /*withSymbol*/
196
+ c[4] ? o ? o.p(c, w) : (o = A(c), o.c(), o.m(n, s)) : o && (o.d(1), o = null), w & /*selected, placeholder*/
197
+ 5 && f !== (f = /*selected*/
198
+ (c[0]?.currency || /*placeholder*/
199
+ c[2]) + "") && D(r, f), w & /*open*/
200
+ 128 && S(
201
+ d,
202
+ "open",
203
+ /*open*/
204
+ c[7]
205
+ ), w & /*open*/
206
+ 128 && u(
207
+ t,
208
+ "aria-expanded",
209
+ /*open*/
210
+ c[7]
211
+ ), w & /*disabled*/
212
+ 8 && (t.disabled = /*disabled*/
213
+ c[3]), /*open*/
214
+ c[7] ? i ? i.p(c, w) : (i = O(c), i.c(), i.m(e, null)) : i && (i.d(1), i = null);
215
+ },
216
+ i: L,
217
+ o: L,
218
+ d(c) {
219
+ c && B(e), o && o.d(), i && i.d(), g = !1, q(p);
220
+ }
221
+ };
222
+ }
223
+ const x = (l) => l.preventDefault();
224
+ function $(l, e, t) {
225
+ let { options: n = [] } = e, { selected: s = null } = e, { placeholder: f = J("select") } = e, { disabled: r = !1 } = e, { withSymbol: b = !0 } = e, { onChange: d = () => {
226
+ } } = e, h = -1, g, p = !1;
227
+ const o = () => {
228
+ n.length !== 0 && (t(7, p = !p), p && (t(5, h = n.findIndex((a) => a?.currency === s?.currency)), setTimeout(() => g?.focus(), 0)));
229
+ }, i = (a, M) => () => {
230
+ t(7, p = !1), t(0, s = a), d && typeof d == "function" && d(a, M);
231
+ }, c = () => {
232
+ t(7, p = !1);
233
+ }, w = (a) => {
234
+ p && (a.key === C.ArrowDown ? (a.preventDefault(), t(5, h = (h + 1) % n.length)) : a.key === C.ArrowUp ? (a.preventDefault(), t(5, h = (h - 1 + n.length) % n.length)) : a.key === C.Enter ? (a.preventDefault(), i(s, h)()) : a.key === C.Escape && t(7, p = !1));
235
+ };
236
+ function I(a) {
237
+ P[a ? "unshift" : "push"](() => {
238
+ g = a, t(6, g);
239
+ });
240
+ }
241
+ return l.$$set = (a) => {
242
+ "options" in a && t(1, n = a.options), "selected" in a && t(0, s = a.selected), "placeholder" in a && t(2, f = a.placeholder), "disabled" in a && t(3, r = a.disabled), "withSymbol" in a && t(4, b = a.withSymbol), "onChange" in a && t(12, d = a.onChange);
243
+ }, [
244
+ s,
245
+ n,
246
+ f,
247
+ r,
248
+ b,
249
+ h,
250
+ g,
251
+ p,
252
+ o,
253
+ i,
254
+ c,
255
+ w,
256
+ d,
257
+ I
258
+ ];
259
+ }
260
+ class ee extends Y {
261
+ constructor(e) {
262
+ super(), H(
263
+ this,
264
+ e,
265
+ $,
266
+ X,
267
+ R,
268
+ {
269
+ options: 1,
270
+ selected: 0,
271
+ placeholder: 2,
272
+ disabled: 3,
273
+ withSymbol: 4,
274
+ onChange: 12
275
+ },
276
+ V
277
+ );
278
+ }
279
+ get options() {
280
+ return this.$$.ctx[1];
281
+ }
282
+ set options(e) {
283
+ this.$$set({ options: e }), v();
284
+ }
285
+ get selected() {
286
+ return this.$$.ctx[0];
287
+ }
288
+ set selected(e) {
289
+ this.$$set({ selected: e }), v();
290
+ }
291
+ get placeholder() {
292
+ return this.$$.ctx[2];
293
+ }
294
+ set placeholder(e) {
295
+ this.$$set({ placeholder: e }), v();
296
+ }
297
+ get disabled() {
298
+ return this.$$.ctx[3];
299
+ }
300
+ set disabled(e) {
301
+ this.$$set({ disabled: e }), v();
302
+ }
303
+ get withSymbol() {
304
+ return this.$$.ctx[4];
305
+ }
306
+ set withSymbol(e) {
307
+ this.$$set({ withSymbol: e }), v();
308
+ }
309
+ get onChange() {
310
+ return this.$$.ctx[12];
311
+ }
312
+ set onChange(e) {
313
+ this.$$set({ onChange: e }), v();
314
+ }
315
+ }
316
+ W(ee, { options: {}, selected: {}, placeholder: {}, disabled: { type: "Boolean" }, withSymbol: { type: "Boolean" }, onChange: {} }, [], [], !0);
317
+ export {
318
+ ee as C
319
+ };
@@ -0,0 +1,326 @@
1
+ import { c as R, S as U, i as Z, s as F, j as _, a as G, n as T, d as j, r as H, k as B, l as L, h as u, b as A, m as k, o as D, p as J, q as N, u as P, e as v, f as S, g as K, t as Q, v as q, w as V, K as z, x as X, y as x } from "./PlayerAccountVault-CCs1I5Og.js";
2
+ function $(l) {
3
+ G(l, "svelte-1fe9nk9", ".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}");
4
+ }
5
+ function I(l, e, t) {
6
+ const s = l.slice();
7
+ return s[14] = e[t], s[16] = t, s;
8
+ }
9
+ function M(l) {
10
+ var r;
11
+ let e, t = (
12
+ /*selected*/
13
+ (((r = l[0]) == null ? void 0 : r.symbol) || "") + ""
14
+ ), s;
15
+ return {
16
+ c() {
17
+ e = v("span"), s = K(t), u(e, "class", "symbol svelte-1fe9nk9");
18
+ },
19
+ m(o, a) {
20
+ A(o, e, a), k(e, s);
21
+ },
22
+ p(o, a) {
23
+ var d;
24
+ a & /*selected*/
25
+ 1 && t !== (t = /*selected*/
26
+ (((d = o[0]) == null ? void 0 : d.symbol) || "") + "") && B(s, t);
27
+ },
28
+ d(o) {
29
+ o && j(e);
30
+ }
31
+ };
32
+ }
33
+ function W(l) {
34
+ let e, t = q(
35
+ /*options*/
36
+ l[1]
37
+ ), s = [];
38
+ for (let r = 0; r < t.length; r += 1)
39
+ s[r] = Y(I(l, t, r));
40
+ return {
41
+ c() {
42
+ e = v("ul");
43
+ for (let r = 0; r < s.length; r += 1)
44
+ s[r].c();
45
+ u(e, "class", "selectDropdown svelte-1fe9nk9");
46
+ },
47
+ m(r, o) {
48
+ A(r, e, o);
49
+ for (let a = 0; a < s.length; a += 1)
50
+ s[a] && s[a].m(e, null);
51
+ l[13](e);
52
+ },
53
+ p(r, o) {
54
+ if (o & /*options, selected, activeIndex, handleChange*/
55
+ 547) {
56
+ t = q(
57
+ /*options*/
58
+ r[1]
59
+ );
60
+ let a;
61
+ for (a = 0; a < t.length; a += 1) {
62
+ const d = I(r, t, a);
63
+ s[a] ? s[a].p(d, o) : (s[a] = Y(d), s[a].c(), s[a].m(e, null));
64
+ }
65
+ for (; a < s.length; a += 1)
66
+ s[a].d(1);
67
+ s.length = t.length;
68
+ }
69
+ },
70
+ d(r) {
71
+ r && j(e), V(s, r), l[13](null);
72
+ }
73
+ };
74
+ }
75
+ function Y(l) {
76
+ var c, f;
77
+ let e, t, s = (
78
+ /*option*/
79
+ ((c = l[14]) == null ? void 0 : c.symbol) + ""
80
+ ), r, o, a = (
81
+ /*option*/
82
+ ((f = l[14]) == null ? void 0 : f.currency) + ""
83
+ ), d, h, p, m, b;
84
+ return {
85
+ c() {
86
+ var w, g, i, n;
87
+ e = v("li"), t = v("span"), r = K(s), o = S(), d = K(a), h = S(), u(t, "class", "symbol svelte-1fe9nk9"), u(e, "role", "option"), u(e, "aria-selected", p = /*option*/
88
+ ((w = l[14]) == null ? void 0 : w.currency) === /*selected*/
89
+ ((g = l[0]) == null ? void 0 : g.currency) || /*index*/
90
+ l[16] === /*activeIndex*/
91
+ l[5]), u(e, "class", "svelte-1fe9nk9"), L(
92
+ e,
93
+ "active",
94
+ /*option*/
95
+ ((i = l[14]) == null ? void 0 : i.currency) === /*selected*/
96
+ ((n = l[0]) == null ? void 0 : n.currency) || /*index*/
97
+ l[16] === /*activeIndex*/
98
+ l[5]
99
+ );
100
+ },
101
+ m(w, g) {
102
+ A(w, e, g), k(e, t), k(t, r), k(e, o), k(e, d), k(e, h), m || (b = [
103
+ D(e, "keydown", le),
104
+ D(e, "click", function() {
105
+ x(
106
+ /*handleChange*/
107
+ l[9](
108
+ /*option*/
109
+ l[14],
110
+ /*index*/
111
+ l[16]
112
+ )
113
+ ) && l[9](
114
+ /*option*/
115
+ l[14],
116
+ /*index*/
117
+ l[16]
118
+ ).apply(this, arguments);
119
+ })
120
+ ], m = !0);
121
+ },
122
+ p(w, g) {
123
+ var i, n, y, C, E, O;
124
+ l = w, g & /*options*/
125
+ 2 && s !== (s = /*option*/
126
+ ((i = l[14]) == null ? void 0 : i.symbol) + "") && B(r, s), g & /*options*/
127
+ 2 && a !== (a = /*option*/
128
+ ((n = l[14]) == null ? void 0 : n.currency) + "") && B(d, a), g & /*options, selected, activeIndex*/
129
+ 35 && p !== (p = /*option*/
130
+ ((y = l[14]) == null ? void 0 : y.currency) === /*selected*/
131
+ ((C = l[0]) == null ? void 0 : C.currency) || /*index*/
132
+ l[16] === /*activeIndex*/
133
+ l[5]) && u(e, "aria-selected", p), g & /*options, selected, activeIndex*/
134
+ 35 && L(
135
+ e,
136
+ "active",
137
+ /*option*/
138
+ ((E = l[14]) == null ? void 0 : E.currency) === /*selected*/
139
+ ((O = l[0]) == null ? void 0 : O.currency) || /*index*/
140
+ l[16] === /*activeIndex*/
141
+ l[5]
142
+ );
143
+ },
144
+ d(w) {
145
+ w && j(e), m = !1, H(b);
146
+ }
147
+ };
148
+ }
149
+ function ee(l) {
150
+ var w, g;
151
+ let e, t, s, r, o = (
152
+ /*selected*/
153
+ (((w = l[0]) == null ? void 0 : w.currency) || /*placeholder*/
154
+ l[2]) + ""
155
+ ), a, d, h, p, m, b, c = (
156
+ /*selected*/
157
+ ((g = l[0]) == null ? void 0 : g.symbol) && /*withSymbol*/
158
+ l[4] && M(l)
159
+ ), f = (
160
+ /*open*/
161
+ l[7] && W(l)
162
+ );
163
+ return {
164
+ c() {
165
+ e = v("div"), t = v("button"), s = v("span"), c && c.c(), r = S(), a = K(o), d = S(), h = v("span"), h.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', p = S(), f && f.c(), u(s, "class", "label svelte-1fe9nk9"), u(h, "class", "arrow"), L(
166
+ h,
167
+ "open",
168
+ /*open*/
169
+ l[7]
170
+ ), u(t, "class", "selectButton svelte-1fe9nk9"), u(t, "aria-haspopup", "listbox"), u(
171
+ t,
172
+ "aria-expanded",
173
+ /*open*/
174
+ l[7]
175
+ ), u(t, "aria-controls", "custom-select"), u(t, "tabindex", "0"), t.disabled = /*disabled*/
176
+ l[3], u(e, "class", "selectWrapper svelte-1fe9nk9");
177
+ },
178
+ m(i, n) {
179
+ A(i, e, n), k(e, t), k(t, s), c && c.m(s, null), k(s, r), k(s, a), k(t, d), k(t, h), k(e, p), f && f.m(e, null), m || (b = [
180
+ D(
181
+ t,
182
+ "keydown",
183
+ /*handleKeyDown*/
184
+ l[11]
185
+ ),
186
+ D(t, "click", N(
187
+ /*handleToggleDropdown*/
188
+ l[8]
189
+ )),
190
+ J(P.call(null, e)),
191
+ D(
192
+ e,
193
+ "outclick",
194
+ /*handleOutClick*/
195
+ l[10]
196
+ )
197
+ ], m = !0);
198
+ },
199
+ p(i, [n]) {
200
+ var y, C;
201
+ /*selected*/
202
+ (y = i[0]) != null && y.symbol && /*withSymbol*/
203
+ i[4] ? c ? c.p(i, n) : (c = M(i), c.c(), c.m(s, r)) : c && (c.d(1), c = null), n & /*selected, placeholder*/
204
+ 5 && o !== (o = /*selected*/
205
+ (((C = i[0]) == null ? void 0 : C.currency) || /*placeholder*/
206
+ i[2]) + "") && B(a, o), n & /*open*/
207
+ 128 && L(
208
+ h,
209
+ "open",
210
+ /*open*/
211
+ i[7]
212
+ ), n & /*open*/
213
+ 128 && u(
214
+ t,
215
+ "aria-expanded",
216
+ /*open*/
217
+ i[7]
218
+ ), n & /*disabled*/
219
+ 8 && (t.disabled = /*disabled*/
220
+ i[3]), /*open*/
221
+ i[7] ? f ? f.p(i, n) : (f = W(i), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
222
+ },
223
+ i: T,
224
+ o: T,
225
+ d(i) {
226
+ i && j(e), c && c.d(), f && f.d(), m = !1, H(b);
227
+ }
228
+ };
229
+ }
230
+ const le = (l) => l.preventDefault();
231
+ function te(l, e, t) {
232
+ let { options: s = [] } = e, { selected: r = null } = e, { placeholder: o = Q("select") } = e, { disabled: a = !1 } = e, { withSymbol: d = !0 } = e, { onChange: h = () => {
233
+ } } = e, p = -1, m, b = !1;
234
+ const c = () => {
235
+ s.length !== 0 && (t(7, b = !b), b && (t(5, p = s.findIndex((n) => (n == null ? void 0 : n.currency) === (r == null ? void 0 : r.currency))), setTimeout(() => m == null ? void 0 : m.focus(), 0)));
236
+ }, f = (n, y) => () => {
237
+ t(7, b = !1), t(0, r = n), h && typeof h == "function" && h(n, y);
238
+ }, w = () => {
239
+ t(7, b = !1);
240
+ }, g = (n) => {
241
+ b && (n.key === z.ArrowDown ? (n.preventDefault(), t(5, p = (p + 1) % s.length)) : n.key === z.ArrowUp ? (n.preventDefault(), t(5, p = (p - 1 + s.length) % s.length)) : n.key === z.Enter ? (n.preventDefault(), f(r, p)()) : n.key === z.Escape && t(7, b = !1));
242
+ };
243
+ function i(n) {
244
+ X[n ? "unshift" : "push"](() => {
245
+ m = n, t(6, m);
246
+ });
247
+ }
248
+ return l.$$set = (n) => {
249
+ "options" in n && t(1, s = n.options), "selected" in n && t(0, r = n.selected), "placeholder" in n && t(2, o = n.placeholder), "disabled" in n && t(3, a = n.disabled), "withSymbol" in n && t(4, d = n.withSymbol), "onChange" in n && t(12, h = n.onChange);
250
+ }, [
251
+ r,
252
+ s,
253
+ o,
254
+ a,
255
+ d,
256
+ p,
257
+ m,
258
+ b,
259
+ c,
260
+ f,
261
+ w,
262
+ g,
263
+ h,
264
+ i
265
+ ];
266
+ }
267
+ class ne extends U {
268
+ constructor(e) {
269
+ super(), Z(
270
+ this,
271
+ e,
272
+ te,
273
+ ee,
274
+ F,
275
+ {
276
+ options: 1,
277
+ selected: 0,
278
+ placeholder: 2,
279
+ disabled: 3,
280
+ withSymbol: 4,
281
+ onChange: 12
282
+ },
283
+ $
284
+ );
285
+ }
286
+ get options() {
287
+ return this.$$.ctx[1];
288
+ }
289
+ set options(e) {
290
+ this.$$set({ options: e }), _();
291
+ }
292
+ get selected() {
293
+ return this.$$.ctx[0];
294
+ }
295
+ set selected(e) {
296
+ this.$$set({ selected: e }), _();
297
+ }
298
+ get placeholder() {
299
+ return this.$$.ctx[2];
300
+ }
301
+ set placeholder(e) {
302
+ this.$$set({ placeholder: e }), _();
303
+ }
304
+ get disabled() {
305
+ return this.$$.ctx[3];
306
+ }
307
+ set disabled(e) {
308
+ this.$$set({ disabled: e }), _();
309
+ }
310
+ get withSymbol() {
311
+ return this.$$.ctx[4];
312
+ }
313
+ set withSymbol(e) {
314
+ this.$$set({ withSymbol: e }), _();
315
+ }
316
+ get onChange() {
317
+ return this.$$.ctx[12];
318
+ }
319
+ set onChange(e) {
320
+ this.$$set({ onChange: e }), _();
321
+ }
322
+ }
323
+ R(ne, { options: {}, selected: {}, placeholder: {}, disabled: { type: "Boolean" }, withSymbol: { type: "Boolean" }, onChange: {} }, [], [], !0);
324
+ export {
325
+ ne as C
326
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./PlayerAccountVault-FAeoGOqS.cjs");function K(l){e.append_styles(l,"svelte-1fe9nk9",".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}")}function C(l,t,n){const r=l.slice();return r[14]=t[n],r[16]=n,r}function D(l){var a;let t,n=(((a=l[0])==null?void 0:a.symbol)||"")+"",r;return{c(){t=e.element("span"),r=e.text(n),e.attr(t,"class","symbol svelte-1fe9nk9")},m(f,i){e.insert(f,t,i),e.append(t,r)},p(f,i){var d;i&1&&n!==(n=(((d=f[0])==null?void 0:d.symbol)||"")+"")&&e.set_data(r,n)},d(f){f&&e.detach(t)}}}function S(l){let t,n=e.ensure_array_like(l[1]),r=[];for(let a=0;a<n.length;a+=1)r[a]=B(C(l,n,a));return{c(){t=e.element("ul");for(let a=0;a<r.length;a+=1)r[a].c();e.attr(t,"class","selectDropdown svelte-1fe9nk9")},m(a,f){e.insert(a,t,f);for(let i=0;i<r.length;i+=1)r[i]&&r[i].m(t,null);l[13](t)},p(a,f){if(f&547){n=e.ensure_array_like(a[1]);let i;for(i=0;i<n.length;i+=1){const d=C(a,n,i);r[i]?r[i].p(d,f):(r[i]=B(d),r[i].c(),r[i].m(t,null))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(a){a&&e.detach(t),e.destroy_each(r,a),l[13](null)}}}function B(l){var u,c;let t,n,r=((u=l[14])==null?void 0:u.symbol)+"",a,f,i=((c=l[14])==null?void 0:c.currency)+"",d,p,h,m,g;return{c(){var w,b,o,s;t=e.element("li"),n=e.element("span"),a=e.text(r),f=e.space(),d=e.text(i),p=e.space(),e.attr(n,"class","symbol svelte-1fe9nk9"),e.attr(t,"role","option"),e.attr(t,"aria-selected",h=((w=l[14])==null?void 0:w.currency)===((b=l[0])==null?void 0:b.currency)||l[16]===l[5]),e.attr(t,"class","svelte-1fe9nk9"),e.toggle_class(t,"active",((o=l[14])==null?void 0:o.currency)===((s=l[0])==null?void 0:s.currency)||l[16]===l[5])},m(w,b){e.insert(w,t,b),e.append(t,n),e.append(n,a),e.append(t,f),e.append(t,d),e.append(t,p),m||(g=[e.listen(t,"keydown",z),e.listen(t,"click",function(){e.is_function(l[9](l[14],l[16]))&&l[9](l[14],l[16]).apply(this,arguments)})],m=!0)},p(w,b){var o,s,_,k,y,v;l=w,b&2&&r!==(r=((o=l[14])==null?void 0:o.symbol)+"")&&e.set_data(a,r),b&2&&i!==(i=((s=l[14])==null?void 0:s.currency)+"")&&e.set_data(d,i),b&35&&h!==(h=((_=l[14])==null?void 0:_.currency)===((k=l[0])==null?void 0:k.currency)||l[16]===l[5])&&e.attr(t,"aria-selected",h),b&35&&e.toggle_class(t,"active",((y=l[14])==null?void 0:y.currency)===((v=l[0])==null?void 0:v.currency)||l[16]===l[5])},d(w){w&&e.detach(t),m=!1,e.run_all(g)}}}function Y(l){var w,b;let t,n,r,a,f=(((w=l[0])==null?void 0:w.currency)||l[2])+"",i,d,p,h,m,g,u=((b=l[0])==null?void 0:b.symbol)&&l[4]&&D(l),c=l[7]&&S(l);return{c(){t=e.element("div"),n=e.element("button"),r=e.element("span"),u&&u.c(),a=e.space(),i=e.text(f),d=e.space(),p=e.element("span"),p.innerHTML='<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>',h=e.space(),c&&c.c(),e.attr(r,"class","label svelte-1fe9nk9"),e.attr(p,"class","arrow"),e.toggle_class(p,"open",l[7]),e.attr(n,"class","selectButton svelte-1fe9nk9"),e.attr(n,"aria-haspopup","listbox"),e.attr(n,"aria-expanded",l[7]),e.attr(n,"aria-controls","custom-select"),e.attr(n,"tabindex","0"),n.disabled=l[3],e.attr(t,"class","selectWrapper svelte-1fe9nk9")},m(o,s){e.insert(o,t,s),e.append(t,n),e.append(n,r),u&&u.m(r,null),e.append(r,a),e.append(r,i),e.append(n,d),e.append(n,p),e.append(t,h),c&&c.m(t,null),m||(g=[e.listen(n,"keydown",l[11]),e.listen(n,"click",e.stop_propagation(l[8])),e.action_destroyer(e.handleClickOutside.call(null,t)),e.listen(t,"outclick",l[10])],m=!0)},p(o,[s]){var _,k;(_=o[0])!=null&&_.symbol&&o[4]?u?u.p(o,s):(u=D(o),u.c(),u.m(r,a)):u&&(u.d(1),u=null),s&5&&f!==(f=(((k=o[0])==null?void 0:k.currency)||o[2])+"")&&e.set_data(i,f),s&128&&e.toggle_class(p,"open",o[7]),s&128&&e.attr(n,"aria-expanded",o[7]),s&8&&(n.disabled=o[3]),o[7]?c?c.p(o,s):(c=S(o),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),u&&u.d(),c&&c.d(),m=!1,e.run_all(g)}}}const z=l=>l.preventDefault();function A(l,t,n){let{options:r=[]}=t,{selected:a=null}=t,{placeholder:f=e.t("select")}=t,{disabled:i=!1}=t,{withSymbol:d=!0}=t,{onChange:p=()=>{}}=t,h=-1,m,g=!1;const u=()=>{r.length!==0&&(n(7,g=!g),g&&(n(5,h=r.findIndex(s=>(s==null?void 0:s.currency)===(a==null?void 0:a.currency))),setTimeout(()=>m==null?void 0:m.focus(),0)))},c=(s,_)=>()=>{n(7,g=!1),n(0,a=s),p&&typeof p=="function"&&p(s,_)},w=()=>{n(7,g=!1)},b=s=>{g&&(s.key===e.KEYBOARD_KEYS.ArrowDown?(s.preventDefault(),n(5,h=(h+1)%r.length)):s.key===e.KEYBOARD_KEYS.ArrowUp?(s.preventDefault(),n(5,h=(h-1+r.length)%r.length)):s.key===e.KEYBOARD_KEYS.Enter?(s.preventDefault(),c(a,h)()):s.key===e.KEYBOARD_KEYS.Escape&&n(7,g=!1))};function o(s){e.binding_callbacks[s?"unshift":"push"](()=>{m=s,n(6,m)})}return l.$$set=s=>{"options"in s&&n(1,r=s.options),"selected"in s&&n(0,a=s.selected),"placeholder"in s&&n(2,f=s.placeholder),"disabled"in s&&n(3,i=s.disabled),"withSymbol"in s&&n(4,d=s.withSymbol),"onChange"in s&&n(12,p=s.onChange)},[a,r,f,i,d,h,m,g,u,c,w,b,p,o]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,A,Y,e.safe_not_equal,{options:1,selected:0,placeholder:2,disabled:3,withSymbol:4,onChange:12},K)}get options(){return this.$$.ctx[1]}set options(t){this.$$set({options:t}),e.flush()}get selected(){return this.$$.ctx[0]}set selected(t){this.$$set({selected:t}),e.flush()}get placeholder(){return this.$$.ctx[2]}set placeholder(t){this.$$set({placeholder:t}),e.flush()}get disabled(){return this.$$.ctx[3]}set disabled(t){this.$$set({disabled:t}),e.flush()}get withSymbol(){return this.$$.ctx[4]}set withSymbol(t){this.$$set({withSymbol:t}),e.flush()}get onChange(){return this.$$.ctx[12]}set onChange(t){this.$$set({onChange:t}),e.flush()}}e.create_custom_element(E,{options:{},selected:{},placeholder:{},disabled:{type:"Boolean"},withSymbol:{type:"Boolean"},onChange:{}},[],[],!0);exports.Custom_select=E;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountVault-D22ggFhe.cjs")).then(({default:t})=>{!customElements.get("player-account-vault")&&customElements.define("player-account-vault",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountVault-FAeoGOqS.cjs")).then(e=>e.PlayerAccountVault_ce).then(({default:e})=>{!customElements.get("player-account-vault")&&customElements.define("player-account-vault",e.element)})}